Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PEG parsing library for Open Dylan

branch: master
=== Library: Peg-parser ===

This is a memoizing (or, more correctly, caching) recursive descent parser
that handles attributed parsing expression grammars (PEGs), as described at

It isn't too tricky to use. Basically, a PEG can act as both a lexical and
phrase grammar, and acts similarly to a forward-looking greedy regular
expression processor, except that it acts on tokens instead of characters.

This library allows for simple rules-based declarations and also custom parser
functions (you'll need some of these to get characters and literals from the

The parser can simplify and consolidate syntax elements in an upwards
direction along the syntax tree via token class slots, and downward or across
the syntax tree via attributes. You can also define a context class to keep
global information for later semantic processing.

-- Dustin Voss
Something went wrong with that request. Please try again.