pinchot-0.2.0.0: Build parsers and ASTs for context-free grammars

Safe HaskellNone
LanguageHaskell2010

Pinchot.Examples.PostalAstAllRules

Description

Provides an example of the use of ruleTreeToCode. You will want to look at the source code, as it has a Template Haskell splice that produces all of the data types that you see in the Haddocks.

Synopsis

Documentation

newtype Digit Source

Constructors

Digit Char 

newtype Letter Source

Constructors

Letter Char 

newtype North Source

Constructors

North Char 

newtype South Source

Constructors

South Char 

newtype East Source

Constructors

East Char 

newtype West Source

Constructors

West Char 

data Street Source

Constructors

Street ([] Char) 

data Avenue Source

Constructors

Avenue ([] Char) 

data Way Source

Constructors

Way ([] Char) 

newtype Space Source

Constructors

Space Char 

newtype Comma Source

Constructors

Comma Char 

newtype City Source

Constructors

City Words 

postalGrammar :: Grammar r (Prod r String Char Address) Source

Earley grammar created using Template Haskell.