BNFC-2.9.0: A compiler front-end generator.
Safe HaskellSafe-Inferred
LanguageHaskell2010

BNFC.Print

Description

Pretty-printer for BNFC. Generated by the BNF converter.

Synopsis

Documentation

printTree :: Print a => a -> String Source #

The top-level printing method.

type Doc = [ShowS] -> [ShowS] Source #

class Print a where Source #

The printer class does the job.

Minimal complete definition

prt

Methods

prt :: Int -> a -> Doc Source #

prtList :: Int -> [a] -> Doc Source #

Instances

Instances details
Print Char Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Char -> Doc Source #

prtList :: Int -> [Char] -> Doc Source #

Print Double Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Double -> Doc Source #

prtList :: Int -> [Double] -> Doc Source #

Print Integer Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Integer -> Doc Source #

prtList :: Int -> [Integer] -> Doc Source #

Print Reg Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Reg -> Doc Source #

prtList :: Int -> [Reg] -> Doc Source #

Print MinimumSize Source # 
Instance details

Defined in BNFC.Print

Print RHS Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> RHS -> Doc Source #

prtList :: Int -> [RHS] -> Doc Source #

Print Exp Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Exp -> Doc Source #

prtList :: Int -> [Exp] -> Doc Source #

Print Separation Source # 
Instance details

Defined in BNFC.Print

Print Arg Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Arg -> Doc Source #

prtList :: Int -> [Arg] -> Doc Source #

Print Label Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Label -> Doc Source #

prtList :: Int -> [Label] -> Doc Source #

Print Cat Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Cat -> Doc Source #

prtList :: Int -> [Cat] -> Doc Source #

Print Item Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Item -> Doc Source #

prtList :: Int -> [Item] -> Doc Source #

Print Def Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Def -> Doc Source #

prtList :: Int -> [Def] -> Doc Source #

Print Grammar Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Grammar -> Doc Source #

prtList :: Int -> [Grammar] -> Doc Source #

Print Identifier Source # 
Instance details

Defined in BNFC.Print

Print a => Print [a] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [a] -> Doc Source #

prtList :: Int -> [[a]] -> Doc Source #

Print [String] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [String] -> Doc Source #

prtList :: Int -> [[String]] -> Doc Source #

Print [RHS] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [RHS] -> Doc Source #

prtList :: Int -> [[RHS]] -> Doc Source #

Print [Exp] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [Exp] -> Doc Source #

prtList :: Int -> [[Exp]] -> Doc Source #

Print [Arg] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [Arg] -> Doc Source #

prtList :: Int -> [[Arg]] -> Doc Source #

Print [Cat] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [Cat] -> Doc Source #

prtList :: Int -> [[Cat]] -> Doc Source #

Print [Item] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [Item] -> Doc Source #

prtList :: Int -> [[Item]] -> Doc Source #

Print [Def] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [Def] -> Doc Source #

prtList :: Int -> [[Def]] -> Doc Source #

prPrec :: Int -> Int -> Doc -> Doc Source #