Waxeye Parser Generator

1 min read Original article ↗

Waxeye is a parser generator based on parsing expression grammars (PEGs).
It supports C, Java, JavaScript, Python, Ruby and Racket.

How it works

  1. Define your grammar using the waxeye grammar syntax.
  2. Compile the grammar to a parser in your language of choice.
  3. 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.