11 Commits

Author SHA1 Message Date
c9a478f7df main: add support for C source code output 2023-08-24 09:39:26 +00:00
118942521e test: add initial test makefile
This also adds support for "#" characters prior to immediates.

nop may also now appear in an op_t. The parser no longer generates nop_t--this
is instead now represented as an op_t with a zero-length ops vector.
2023-08-23 19:21:43 -07:00
0df0b66a6e main: add file output 2023-08-23 22:56:54 +00:00
d4e6c1c717 ast: add emitter and resolver 2023-08-21 10:30:42 +00:00
cd0c9c7c8c parser: add assign and label 2023-08-20 08:45:16 +00:00
b97abc776c parser: add dma and mvi parsers 2023-08-20 05:54:53 +00:00
e48bd182dc keyword: add more keywords
This also concedes that a lexer that returns std::vector is probably
the simplest API for the parser, but I will still continue to consider
alternatives.
2023-08-17 08:14:07 +00:00
e2f587437d expr: add more expression structures 2023-08-15 23:01:35 +00:00
97d35bfa4f visitor/expr: initial 2023-08-15 18:56:13 +00:00
082ebc20e5 lexer: add header
This also calls the lexer from main.
2023-08-14 11:38:52 -07:00
29428c7a92 initial 2023-08-14 16:52:56 +00:00