A Fast Bytecode VM for Arithmetic: The Compiler
10 points by abhin4v
10 points by abhin4v
I have searched often for tooling that helps write and debug parsers.
Please share your favorites if you have any.
Specifically: I find that I write a parser, give it an input, and then I’m at a loss as to why it isn’t accepted by the parser. I try to change things in small ways to suss it out but end up throwing my hands in the air in despair. This happens often and only because I really want to write these, otherwise I’d give up.
EDIT: also lexers.
Recursive descent parsers are naturally very good at this, because debugging them amounts to coming up with a minimal example that reproduces your issue and then stepping through the parser with a debugger.