Open RealKC opened 4 years ago
Commit 4a506f04ecef7e0d58fef5ef599a20be3b1c544f removed all traces of the initial preprocessor, this is a good thing (code quality was low + wasn't half finished + it was commented out anyway).
Implementation notes:
if
, and elif
should share the expression parses, which should likely be implemented using the shunting-yard algorithm [1]Specification notes:
(el)if
should be specified(el)if
expressions (should we follow CPP's example and expand them to 0?) and (2) in usual usages of the macrosPossible features that might be worth adding:
There are still bugs regarding codegen however, so this issue can wait for a bit longer.
In commit 8b189c292aa883a7e2c7049cb1d84fb4404bc90e I gave up on working on the assembler. This is something I still need to write and this issue stands to remind me of that.