BNFC-2.9.2: 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.

Methods

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

Instances

Instances details
Print String Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Char Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Double Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Integer Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Identifier Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Reg Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print MinimumSize Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print RHS Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Exp Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Separation Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Arg Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Label Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Cat Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Item Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Def Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Grammar Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [String] Source # 
Instance details

Defined in BNFC.Print

Methods

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

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

Defined in BNFC.Print

Methods

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

Print [RHS] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [Exp] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [Arg] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [Cat] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [Item] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [Def] Source # 
Instance details

Defined in BNFC.Print

Methods

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

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