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

Safe HaskellNone
LanguageHaskell2010

Pinchot.Examples.PostalAstAllRules

Description

Provides an example of the use of ruleTreeToTypes. 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 

newtype Street Source

Constructors

Street (Seq Char) 

newtype Avenue Source

Constructors

Avenue (Seq Char) 

newtype Way Source

Constructors

Way (Seq Char) 

newtype Space Source

Constructors

Space Char 

newtype Comma Source

Constructors

Comma Char 

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

Earley grammar created using Template Haskell.