Commit graph

11 commits

Author SHA1 Message Date
dee73dea20 implemented return by rewriting interpreter result 2024-08-28 22:55:15 +02:00
0dc19b4fdf automatically include loxstd in default env 2024-08-28 17:28:07 +02:00
be931b7214 implemented calls 2024-08-27 20:32:05 +02:00
d2077774f7 use prerr_* instead of fprintf where possible 2024-08-27 18:45:26 +02:00
e2fcb0f6ef print errors to stderr instead stdout 2024-08-27 18:42:18 +02:00
3bc871d434 implemented while and for loops 2024-08-27 01:57:47 +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
3590a78154 more work on the parser 2024-08-12 16:31:28 +02:00
d33023f435 init commit 2024-08-02 00:10:48 +02:00