BNFC3-3.0: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Backend.Haskell.Printer

Synopsis

Documentation

cf2printer :: LBNF -> String -> Bool -> Maybe String -> Bool -> [(Type, [(Label, ([Type], (Integer, ARHS)))])] -> [(CatName, TokenDef)] -> Bool -> TokenText -> String Source #

cf2doc :: LBNF -> String -> Bool -> Maybe String -> Bool -> [(Type, [(Label, ([Type], (Integer, ARHS)))])] -> [(CatName, TokenDef)] -> Bool -> TokenText -> Doc () Source #

printPrologue :: LBNF -> String -> Bool -> Maybe String -> Bool -> ModuleName -> [(Type, [(Label, ([Type], (Integer, ARHS)))])] -> Doc () Source #

printTokenInstances :: ModuleName -> TokenText -> [(CatName, TokenDef)] -> Doc () Source #

Print tokens instances for the printer.

printCatInstances :: ModuleName -> Bool -> [(Type, [(Label, ([Type], (Integer, ARHS)))])] -> Doc () Source #

Print cateries instances for the printer.

printCase :: Doc () -> Bool -> (Label, (Integer, ARHS)) -> (Integer, Doc ()) Source #