quite a few fixes, overall repo cleanup and some restructurization in the stdlib
This commit is contained in:
21
fn_test.sl
Normal file
21
fn_test.sl
Normal file
@@ -0,0 +1,21 @@
|
||||
import stdlib/stdlib.sl
|
||||
import stdlib/io.sl
|
||||
import fn.sl
|
||||
|
||||
fn foo(int a, int b){
|
||||
1
|
||||
puti cr
|
||||
return a b +;
|
||||
}
|
||||
|
||||
fn bar(int a, int b){
|
||||
return a + b;
|
||||
}
|
||||
|
||||
word main
|
||||
extend-syntax
|
||||
foo(3, 2)
|
||||
puti cr
|
||||
bar(1, 2)
|
||||
puti cr
|
||||
end
|
||||
Reference in New Issue
Block a user