ooc-lang / greg

:ram: a recursive-descent parser generator for PEG
93 stars 30 forks source link

greg

greg used to be _why's fork of Ian Piumarta's peg/leg, with the following differences:

Since then, better error handling and other various features have been added.

Links

The most comprehensive example of greg usage is in nagaqueen, an ooc grammar, used in rock, an ooc compiler written in ooc.

Build instructions

With a GCC-like compiler, make should give you a greg executable.

If you modify greg.g (greg's own grammar is written in LEG), run make grammar to regenerate greg.c using greg itself, then run make again to build it.

Contributor guidelines

For a list of contributors, see the GitHub contributor graph.

License

peg/leg is copyright (c) 2007 by Ian Piumarta released under an MIT license. As is greg.