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

Safe HaskellNone
LanguageHaskell2010

Pinchot.Examples.PostalAstNoLenses

Description

Provides an example of ruleTreeToTypes, but unlike Pinchot.Examples.PostalAstAllRules, does not make optics.

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 

newtype City Source

Constructors

City Words 

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

Earley grammar created using Template Haskell.