done with 11

This commit is contained in:
2018-07-25 15:32:37 +02:00
parent 13106d1788
commit 5adcf93d74
12 changed files with 252 additions and 53 deletions

10
examples/counter.lox Normal file
View File

@@ -0,0 +1,10 @@
fn makeCounter() {
let i = 0;
fn count() {
i = i + 1;
}
}
let counter = makeCounter();
print(counter()); // "1".
print(counter()); // "2".