language-oberon-0.2: Parser and pretty-printer for the Oberon programming language

Safe HaskellNone
LanguageHaskell2010

Language.Oberon.Pretty

Contents

Description

This module exports the instances of the Pretty type class necessary for printing of an Oberon abstract syntax tree. Note that the AST cannot be ambiguous to be pretty-printed, so it must be resolved after parsing.

Orphan instances

Pretty QualIdent Source # 
Instance details

Methods

pretty :: QualIdent -> Doc ann #

prettyList :: [QualIdent] -> Doc ann #

Pretty RelOp Source # 
Instance details

Methods

pretty :: RelOp -> Doc ann #

prettyList :: [RelOp] -> Doc ann #

Pretty IdentDef Source # 
Instance details

Methods

pretty :: IdentDef -> Doc ann #

prettyList :: [IdentDef] -> Doc ann #

Pretty (CaseLabels Identity) Source # 
Instance details

Pretty (Case Identity) Source # 
Instance details

Methods

pretty :: Case Identity -> Doc ann #

prettyList :: [Case Identity] -> Doc ann #

Pretty (WithAlternative Identity) Source # 
Instance details

Pretty (Statement Identity) Source # 
Instance details

Pretty (ProcedureBody Identity) Source # 
Instance details

Pretty (FPSection Identity) Source # 
Instance details

Pretty (FormalParameters Identity) Source # 
Instance details

Pretty (ProcedureHeading Identity) Source # 
Instance details

Pretty (FieldList Identity) Source # 
Instance details

Pretty (Type Identity) Source # 
Instance details

Methods

pretty :: Type Identity -> Doc ann #

prettyList :: [Type Identity] -> Doc ann #

Pretty (Designator Identity) Source # 
Instance details

Pretty (Element Identity) Source # 
Instance details

Methods

pretty :: Element Identity -> Doc ann #

prettyList :: [Element Identity] -> Doc ann #

Pretty (Expression Identity) Source # 
Instance details

Pretty (Declaration Identity) Source # 
Instance details

Pretty (Module Identity) Source # 
Instance details

Methods

pretty :: Module Identity -> Doc ann #

prettyList :: [Module Identity] -> Doc ann #