e7f4773cba
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.
12 lines
84 B
Plaintext
12 lines
84 B
Plaintext
x := 1
|
|
y := 1
|
|
|
|
i := 60
|
|
while i {
|
|
z := x + y
|
|
y = x
|
|
x = z
|
|
//print(z)
|
|
i = i - 1
|
|
}
|