Implement variable reassignment and while loops

This commit is contained in:
dfsek
2020-12-22 02:39:53 -07:00
parent 2ab4ed871c
commit 88da796923
4 changed files with 68 additions and 7 deletions

View File

@@ -1,9 +1,18 @@
test("hello" + 3 + "gdfg", (2 * (3+1) * (2 * (1+1))));
//
num testVar = 3.4;
bool boolean = true;
str stringVar = "hello!";
num iterator = 0;
while(iterator < 5) {
test("fdsgdf" + 2 + stringVar, iterator);
iterator = iterator + 1;
}
if(true && boolean) {
num scopedVar = 2;
test("fdsgdf" + 2 + stringVar, 1 + testVar + scopedVar);