parserGen is an LL(1) parser generator framework, that focuses on advanced error-reporting.
The screenshot shows parserGen displaying the hardcoded LL(1) parsing table that is used to read user grammars, and the roughly identical parsing table generated from the user grammar file.
A demo screencast demonstrates the error-reporting capabilities.
- LL(1) grammar parsing
- Generation of the LL(1) parsing table
- Clever error-reporting
- Generation of tokenizers
- Curses-based dashboard for grammar analysis and debugging
Open-GraphEq uses Node.js and yarn. After installing these dependencies, simply run yarn
from the project folder.
Use node --no-warnings src/main.js
to launch the parserGen demo. --no-warnings
is required to silence the warnings that come from using the experimental fs Promises API.