FormalGrammars-0.3.1.2: (Context-free) grammars in formal language theory

Safe HaskellNone
LanguageHaskell2010

FormalLanguage.CFG.QQ

Description

This QuasiQuoter turns the description of formal grammars into ADPfusion-based code.

TODO use Quote.quoteFile to be able to read files as well

Synopsis

Documentation

trim :: [Char] -> [Char] Source #

uniquePrefixLength :: Seq Grammar -> Int Source #

Determine the length of the unique prefix we need for algebra functions.