lang/example.script
r4 e7f4773cba 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.
2021-12-22 12:52:16 +01:00

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
}