Yertle Jr is a Parsing Expression Grammar (PEG) and parser generator
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples/ejs
test
Makefile
README.md
abstractor.js
generator.js
index.html
yertle.json
yertlejr.js

README.md

Yertle is:

A library of text matching primitives:

* De/Serializable from/to JSON
* Robust enough to implement Pure Regular Expressions
* match results contain source location information

An arrangement of those primitives which matches against a BNF-like grammar description.

An "Abstractor" that simplifies the match result, leaving ony named match groups in the tree

A "Generator" which takes an abstracted match result from the BNF-like grammar and creates a JSON parser description (making Yertle a meta-parser-generator! sadly, there it is not a generator generator, so it is not as powerful as META II, but I think you'll still like it.)