FormalGrammars-0.4.0.0: (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.

TODO only go over inside grammars! unless the inside grammar for an outside grammar has not been emitted.