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

Safe HaskellNone
LanguageHaskell2010

Pinchot.Examples.Postal

Synopsis

Documentation

postal :: Pinchot Char (Rule Char) Source

A grammar for simple U.S. postal addresses. This example would never hold up to real-world usage but it gives you a flavor of how Pinchot works.

The grammar is ambiguous.