Calls and Functions 24

This commit is contained in:
nazrin 2025-06-09 03:54:01 +00:00
parent 2cd7a44bc7
commit a45f6a9e17
18 changed files with 550 additions and 285 deletions

13
test/func.lox Normal file
View file

@ -0,0 +1,13 @@
fun sub(a, b){
print a - b;
}
fun mul(a, b){
sub(a, b);
print a * b;
sub(b, a);
}
mul(2, 3);