« All posts

05.18.2022 - Generating parser code with PeggyJS

For this project, I’ll just use a generator to create parser code, as I want to focus on the bytecode virtual machine.

PeggyJS is the best generator I could find for now, it even supports TypeScript, this mean, we can control the return type for each non-terminals.

See commit dd6e44.

Read more