Function declaration seems to work

This commit is contained in:
2022-08-25 15:19:08 +01:00
parent 4f70bea808
commit 041fe99e01
13 changed files with 615 additions and 93 deletions

9
scripts/function.toy Normal file
View File

@@ -0,0 +1,9 @@
fn name(argument: type, arg2: type, ...rest): int {
print "hello world";
return 0;
}
print name;