16 Commits

Author SHA1 Message Date
Bob Polis
a20f002341 added convenience methods pop_int and pop_str, which saved a lot of code 2020-09-22 14:12:39 +02:00
Bob Polis
7a6f9df82f more readable syntax error construction 2020-09-22 13:41:23 +02:00
Bob Polis
0e735ce7a8 moved headers around a bit 2020-09-22 13:38:17 +02:00
Bob Polis
d1c4106bba renamed _stack to _values, to make a clearer distinction between value and call stacks 2020-09-22 13:13:50 +02:00
Bob Polis
6fe4894c70 removed unnecessary extra initialisation 2020-09-22 11:02:41 +02:00
Bob Polis
184cab5205 improved first pass by using prog vector size instead of pc; added pc offset vector clear to reset 2020-09-22 10:51:20 +02:00
Bob Polis
2689faa67c fixed line numbers for syntax errors by considering removed source lines: labels, comments 2020-09-21 16:37:40 +02:00
Bob Polis
eeeaf894e0 moved comment parsing to first pass, to save program space 2020-09-21 12:41:29 +02:00
Bob Polis
372bc976a0 improved syntax_error to hold line number as well 2020-09-21 12:25:40 +02:00
Bob Polis
49626f9925 added recognition of # at start of line as comment desginator 2020-09-21 10:45:49 +02:00
Bob Polis
b46fae13d7 added inp and err instructions 2020-09-21 10:17:16 +02:00
91d6d59c1b added "out" instruction; fixed comparison bugs by converting values to int first 2020-09-13 16:55:02 +02:00
Bob Polis
41c83877a7 fixed label position calculation 2020-09-09 11:52:01 +02:00
Bob Polis
344f26b05f added 2 code files; added enl instruction; completed main to do the right thing 2020-09-07 18:50:09 +02:00
Bob Polis
b0a3637b1d implemented interpreter; setup code dir; added code sync to Makefile 2020-09-07 11:40:58 +02:00
00d0eac893 partial start of implementation for interpreter 2020-09-06 12:57:28 +02:00