Skip to content

Commit

Permalink
Fix for loops
Browse files Browse the repository at this point in the history
  • Loading branch information
arnav-ag committed Mar 31, 2024
1 parent 9720635 commit 3dbd81d
Show file tree
Hide file tree
Showing 4 changed files with 367 additions and 118 deletions.
13 changes: 6 additions & 7 deletions booga.ooga
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
func foo(y int) {
if (y == 0) {
return y;
}
print(y);
foo(y - 1);
}
var j = 5
for var i = 5; i < 10; i = i + 1 {
print (i);
}

print(j)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"booga": "yarn compile && yarn ooga",
"test": "node ./dist/tests/test.js",
"tooga": "yarn build && yarn test",
"pooga": "yarn peggy && yarn build"
"pooga": "yarn peggy && yarn build",
"tooga": "yarn build && yarn test",
"server": "node ./dist/server/server.js"
}
Expand Down
Loading

0 comments on commit 3dbd81d

Please sign in to comment.