Calls and Functions 24
This commit is contained in:
parent
2cd7a44bc7
commit
a45f6a9e17
18 changed files with 550 additions and 285 deletions
13
test/func.lox
Normal file
13
test/func.lox
Normal 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);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue