Commit graph

8 commits

Author SHA1 Message Date
fdf392b53f fixed scoping in For loop 2024-08-27 18:31:23 +02:00
be28dad67e moved for loop to separate Stmt and added continue 2024-08-27 17:15:35 +02:00
e288a626fd implemented break 2024-08-27 02:46:17 +02:00
3bc871d434 implemented while and for loops 2024-08-27 01:57:47 +02:00
dbcdbc216f added If, And, Or 2024-08-26 17:26:59 +02:00
77e57cd8c2 global and local variables with scope
also reworked arg parsing, now has --debug flag
2024-08-26 01:58:03 +02:00
ea0d7acbee started implementing expressions
Parser.parse now return list of statements or list of errors.
parsing continues until EOF, even when errors are found; but after the
first error the result can only be Error.
Also implemented Print and Expr statements.
2024-08-25 02:12:51 +02:00
a8290a4104 moved exprs into nodes with code position 2024-08-17 13:32:59 +02:00