Skip to content
/ Copper Public

A PEG parser generator and parsing engine

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

dkdream/Copper

Repository files navigation

Copper is a PEG (Parsing Expression Grammars) parser generator.
copper converts a peg grammer file (.cu) into a c-file containning an AST (Abstract Syntax Tree).

Copper's grammar is written in Copper and is parsed by the copper parsing engine.
this acts as an example of how to use Copper as well as the main unit test.

Highlights:
  Parsing Expression Grammar base
  Parsing engine is fed the data from the user code instead of using callback functions 
  No need for a separate lexer
  Grammars are composible (as long as the rule definition dont conflict)

Drawbacks:
  Does not support left-recursive grammars
  Non-Packrack parser

References:
  http://en.wikipedia.org/wiki/Parsing_expression_grammar

About

A PEG parser generator and parsing engine

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published