quite a few fixes, overall repo cleanup and some restructurization in the stdlib

This commit is contained in:
IgorCielniak
2026-01-12 19:03:49 +01:00
parent 3f87f12cf1
commit 47a45c050e
25 changed files with 582 additions and 648 deletions

View File

@@ -1,6 +1,5 @@
import ../stdlib/stdlib.sl
import ../stdlib/io.sl
import ../fn.sl
:asm mem-slot {
lea rax, [rel print_buf]
@@ -33,12 +32,6 @@ struct: Point
field y 8
;struct
extend-syntax
fn fancy_add(int a, int b){
return (a + b) * b;
}
word test-add
5 7 + puti cr
end
@@ -161,13 +154,6 @@ word test-cmp
4 5 >= puti cr
end
word test-c-fn
3
7
fancy_add()
puti cr
end
word main
test-add
test-sub
@@ -186,6 +172,5 @@ word main
test-for-zero
test-cmp
test-struct
test-c-fn
0
end