pegged.examples

Modules

PEG
module pegged.examples.PEG
Undocumented in source.
arithmetic
module pegged.examples.arithmetic

This module contains a example of a reusable arithmetic expression grammar and a recursive ParseTree parser that returns the evaluation of the arithmetic expression

c
module pegged.examples.c
Undocumented in source.
composition
module pegged.examples.composition

Example of grammar composition in Pegged

constraints
module pegged.examples.constraints

This module was used to parse template constraints and instantiate the various constituent, to find which one is blocking a template to be instantiated.

cparser
module pegged.examples.cparser
Undocumented in source.
csv
module pegged.examples.csv
Undocumented in source.
dgrammar
module pegged.examples.dgrammar
Undocumented in source.
json
module pegged.examples.json
Undocumented in source.
markdown
module pegged.examples.markdown
Undocumented in source.
numbers
module pegged.examples.numbers

This module contains a example grammar rules to parse different kind of numbers literals.

oberon2
module pegged.examples.oberon2

This module was given by Bjoern Lietz-Spendig

parameterized
module pegged.examples.parameterized
Undocumented in source.
pattern
module pegged.examples.pattern

This module is an attempt at introducing pattern-matching in D.

peggedgrammar
module pegged.examples.peggedgrammar
Undocumented in source.
python
module pegged.examples.python
Undocumented in source.
simple_arithmetic
module pegged.examples.simple_arithmetic

This module contains a simple example of a arithmetic expression grammar and how use the ParseTree to calculate a expression.

strings
module pegged.examples.strings
Undocumented in source.
testergrammar
module pegged.examples.testergrammar
Undocumented in source.
xml
module pegged.examples.xml

Ultra-simple XML grammar

xml2
module pegged.examples.xml2
Undocumented in source.