- Lexer: recognize 'if' as keyword (TOK_IF) - Parser: add NODE_IF with if_statement union, parse if/cond/body, handle unary minus in parse_term as 0 - expr - Eval: add NODE_IF evaluation, move GC to NODE_BLOCK level to avoid destroying temporary values during sub-expression evaluation
5 lines
48 B
Plaintext
5 lines
48 B
Plaintext
x = 0
|
|
while x < 10000000:
|
|
x = x + 1
|
|
print x
|