RealKC / reqvm

A register-based bytecode vm, and an assembler for it.
MIT License
6 stars 0 forks source link

Implement a preprocessor #1

Open RealKC opened 4 years ago

RealKC commented 4 years ago

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.

RealKC commented 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:

Specification notes:

Possible features that might be worth adding:

There are still bugs regarding codegen however, so this issue can wait for a bit longer.

[1] Shunting-yard algorithm on Wikipedia