BNFC3-3.0: A compiler front-end generator.
Safe HaskellNone
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 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 String Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print Identifier Source # 
Instance details

Defined in BNFC.Print

Methods

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

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

Defined in BNFC.Print

Methods

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

Print [String] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [RHS' a] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [Exp' a] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [Arg' a] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [Cat' a] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [Item' a] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print [Def' a] Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (Reg' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (MinimumSize' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (RHS' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (Exp' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (Separation' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (Arg' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (Label' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (Cat' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (Item' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (Def' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

Print (Grammar' a) Source # 
Instance details

Defined in BNFC.Print

Methods

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

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