added support for raw l2 statementrs inside 'fn' decls

This commit is contained in:
IgorCielniak
2025-12-14 17:02:09 +01:00
parent 566a438242
commit 1dd1ba377b
7 changed files with 93 additions and 25 deletions

8
t.sl
View File

@@ -1,13 +1,15 @@
import stdlib.sl
import fn.sl
fn foo(int a){
return a + 1;
fn foo(int a, int b){
1
puts
return a b +;
}
: main
extend-syntax
foo(1)
foo(3, 2)
puts
0
;