Function calls, with args and single returns are working

This commit is contained in:
2022-08-26 01:48:26 +01:00
parent 041fe99e01
commit a4f1e048e9
11 changed files with 316 additions and 83 deletions

View File

@@ -1,9 +1,12 @@
fn name(argument: type, arg2: type, ...rest): int {
print "hello world";
return 0;
fn name(param1, param2) {
print "foobar";
print param1;
return param2;
}
var result = name("hello world", "goodnight world");
print name;
print "fizz";
print result;
print "buzz";