This repository was archived by the owner on Jul 26, 2018. It is now read-only.
forked fromwhymirror/greg
- Notifications
You must be signed in to change notification settings - Fork30
ooc-lang/greg
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
greg used to be _why's fork of Ian Piumarta's peg/leg, with the following differences:
- Re-entrant
- Some bug fixes
Since then, better error handling and other various features have been added.
The most comprehensive example of greg usage is innagaqueen,an ooc grammar, used inrock, anooc compiler written in ooc.
With a GCC-like compiler,make
should give you a greg executable.
If you modifygreg.g
(greg's own grammar is written in LEG), runmake grammar
toregenerategreg.c
using greg itself, then runmake
again to build it.
- GitHub pull requests are the preferred way to submit contributions.
- Don't modify
greg.c
, instead, modifygreg.g
and regenerate it as shown above. - Make sure greg is still self-hosting before you submit your code.
- Major changes warrant a version bump, but they also warrant discussions.
For a list of contributors, see theGitHub contributor graph.
peg/leg is copyright (c) 2007 by Ian Piumarta released under an MIT license. As is greg.
About
🐏 a recursive-descent parser generator for PEG
Resources
Stars
Watchers
Forks
Packages0
No packages published
Languages
- C91.4%
- GAP6.8%
- Other1.8%