Waxeye is a parser generator based on parsing expression grammars (PEGs).
It supports C, Java, JavaScript, Python, Ruby and Racket.
How it works
- Define your grammar using the waxeye grammar syntax.
- Compile the grammar to a parser in your language of choice.
- Pass the input string to the parser to get an abstract syntax tree (AST) back.
For a more hands-on demonstration, make sure to check out the demo.
Features
- Language-agnostic, modular, composable grammars.
- A grammar testing DSL.
- Full Unicode support in Python, Ruby, and JavaScript.
Learn more
Installation instructions are on GitHub. To learn more about using Waxeye, read the manual.