aboutsummaryrefslogblamecommitdiff
path: root/Sil/Util/Printer.dcl
blob: 5535dc20808455aee2767757a8c4df85032fbcf4 (plain) (tree)
1
2
3
4
5
6
7
                                  



                                                             
                                       







                                       




                                     
                                                          
definition module Sil.Util.Printer

from StdOverloaded import class toString, class zero

from Sil.Parse import :: Token
from Sil.Syntax import :: Program, :: Function, :: CodeBlock,
	:: Initialisation, :: Statement

:: PrintState

instance zero PrintState

class PrettyPrinter t where
	print :: PrintState t -> String

instance PrettyPrinter [Token]
instance PrettyPrinter Program
instance PrettyPrinter Function
instance PrettyPrinter CodeBlock
instance PrettyPrinter Initialisation
instance PrettyPrinter Statement

printersperse :: a [b] -> String | toString a & toString b