Initial commit

This commit is contained in:
IgorCielniak
2025-12-06 16:30:58 +01:00
commit 8e8faf3c91
5 changed files with 873 additions and 0 deletions

45
test.sl Normal file
View File

@@ -0,0 +1,45 @@
import stdlib.sl
: test-add
5 7 + puts
;
: test-sub
10 3 - puts
;
: test-mul
6 7 * puts
;
: test-div
84 7 / puts
;
: test-mod
85 7 % puts
;
: test-drop
10 20 drop puts
;
: test-dup
11 dup + puts
;
: test-swap
2 5 swap - puts
;
: main
test-add
test-sub
test-mul
test-div
test-mod
test-drop
test-dup
test-swap
0
;