nand2tetris / web-ide

A web-based IDE for https://nand2tetris.org
https://nand2tetris.github.io/web-ide
Other
60 stars 16 forks source link

Implement error recovery & reporting in parsers #3

Open DavidSouther opened 2 years ago

DavidSouther commented 2 years ago

The OhmJS parser implements a first-error-is-failure PEG grammar. There are issues like https://github.com/ohmjs/ohm/issues/387 to explore having it recover and report errors. Alternatively, we could look into changing the parsing infrastructure to better handle recovery & reporting multiple errors.

DavidSouther commented 2 months ago

Looks like migrating to Langium might also be an option? https://langium.org/