LR-demo
Safe HaskellNone
LanguageHaskell2010

LBNF.Print

Description

Pretty-printer for LBNF.

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 Entry Source # 
Instance details

Defined in LBNF.Print

Methods

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

Print Grammar Source # 
Instance details

Defined in LBNF.Print

Methods

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

Print Ident Source # 
Instance details

Defined in LBNF.Print

Methods

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

Print Rule Source # 
Instance details

Defined in LBNF.Print

Methods

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

Print Integer Source # 
Instance details

Defined in LBNF.Print

Methods

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

Print String Source # 
Instance details

Defined in LBNF.Print

Methods

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

Print Char Source # 
Instance details

Defined in LBNF.Print

Methods

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

Print Double Source # 
Instance details

Defined in LBNF.Print

Methods

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

Print [Entry] Source # 
Instance details

Defined in LBNF.Print

Methods

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

Print [Rule] Source # 
Instance details

Defined in LBNF.Print

Methods

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

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

Defined in LBNF.Print

Methods

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

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