All posts

Generating parser code with PeggyJS

Posted On 05.18.2022

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.