Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pretty-printer for BNFC. Generated by the BNF converter.
Synopsis
- printTree :: Print a => a -> String
- type Doc = [ShowS] -> [ShowS]
- doc :: ShowS -> Doc
- render :: Doc -> String
- parenth :: Doc -> Doc
- concatS :: [ShowS] -> ShowS
- concatD :: [Doc] -> Doc
- replicateS :: Int -> ShowS -> ShowS
- class Print a where
- printString :: String -> Doc
- mkEsc :: Char -> Char -> ShowS
- prPrec :: Int -> Int -> Doc -> Doc
Documentation
The printer class does the job.
Instances
Print Char Source # | |
Print Double Source # | |
Print Integer Source # | |
Print String Source # | |
Print Identifier Source # | |
Defined in BNFC.Print | |
Print a => Print [a] Source # | |
Print [String] Source # | |
Print [RHS' a] Source # | |
Print [Exp' a] Source # | |
Print [Arg' a] Source # | |
Print [Cat' a] Source # | |
Print [Item' a] Source # | |
Print [Def' a] Source # | |
Print (Reg' a) Source # | |
Print (MinimumSize' a) Source # | |
Defined in BNFC.Print | |
Print (RHS' a) Source # | |
Print (Exp' a) Source # | |
Print (Separation' a) Source # | |
Defined in BNFC.Print | |
Print (Arg' a) Source # | |
Print (Label' a) Source # | |
Print (Cat' a) Source # | |
Print (Item' a) Source # | |
Print (Def' a) Source # | |
Print (Grammar' a) Source # | |
printString :: String -> Doc Source #