8 Commits

Author SHA1 Message Date
ddf46ce8fd stmt_ins: refactor
The overall intent is to make writing a decompiler require less code
duplication.

"bits.hpp" and "stmt_enum.hpp" are replaced with "stmt_ins.hpp" which
is generated directly from dsp-notes.csv.
2023-09-03 04:46:34 +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
cd0c9c7c8c parser: add assign and label 2023-08-20 08:45:16 +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
cc7345ec33 lexer: loop if the current character does not produce a token 2023-08-16 19:52:02 +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