Giter Site home page Giter Site logo

greg's Introduction

greg

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.

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.

To build with MSVC you need a getopt implementation such as this one.

Contributor guidelines

  • GitHub pull requests are the preferred way to submit contributions.
  • Don't modify greg.c, instead, modify greg.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 the GitHub contributor graph.

License

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.