make while loop parsing more elegant
It is now possible to parse parts of the program and save the IR for later addition. This is currently used for while loops but will also make other control flow elements easier to implement in the future.
This commit is contained in:
@@ -2,7 +2,7 @@ x := 1
|
||||
y := 1
|
||||
|
||||
i := 60
|
||||
while i + 1 {
|
||||
while i {
|
||||
z := x + y
|
||||
y = x
|
||||
x = z
|
||||
|
||||
Reference in New Issue
Block a user