This commit is contained in:
IgorCielniak
2025-12-08 18:14:52 +01:00
parent 3a63347380
commit 2ea49d26f7
8 changed files with 2099 additions and 18 deletions

14
test.sl
View File

@@ -31,6 +31,12 @@ struct: Point
field y 8
;struct
extend-syntax
fn fancy_add(int left, int right){
return (left + right) * right;
}
: test-add
5 7 + puts
;
@@ -153,6 +159,13 @@ struct: Point
4 5 >= puts
;
: test-c-fn
3
7
fancy_add()
puts
;
: main
test-add
test-sub
@@ -171,5 +184,6 @@ struct: Point
test-for-zero
test-cmp
test-struct
test-c-fn
0
;