function arguments are getting added to the AST!

This commit is contained in:
SpookyDervish
2025-10-15 07:16:15 +11:00
parent 049db7c53a
commit 3c24b50a80
8 changed files with 123 additions and 25 deletions

View File

@@ -1,8 +1,7 @@
test = Func(): Int {
x: Int = 3;
return x + 2;
add = Func(a: Int, b: Int): Int {
return a + b;
}
main = Func(): Int {
return test();
return add(2, 3);
}