language-oberon-0.1: 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 # 

Methods

pretty :: QualIdent -> Doc ann #

prettyList :: [QualIdent] -> Doc ann #

Pretty RelOp Source # 

Methods

pretty :: RelOp -> Doc ann #

prettyList :: [RelOp] -> Doc ann #

Pretty IdentDef Source # 

Methods

pretty :: IdentDef -> Doc ann #

prettyList :: [IdentDef] -> Doc ann #

Pretty (CaseLabels Identity) Source # 
Pretty (Case Identity) Source # 

Methods

pretty :: Case Identity -> Doc ann #

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

Pretty (WithAlternative Identity) Source # 
Pretty (Statement Identity) Source # 
Pretty (ProcedureBody Identity) Source # 
Pretty (FPSection Identity) Source # 
Pretty (FormalParameters Identity) Source # 
Pretty (ProcedureHeading Identity) Source # 
Pretty (FieldList Identity) Source # 
Pretty (Type Identity) Source # 

Methods

pretty :: Type Identity -> Doc ann #

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

Pretty (Designator Identity) Source # 
Pretty (Element Identity) Source # 

Methods

pretty :: Element Identity -> Doc ann #

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

Pretty (Expression Identity) Source # 
Pretty (Declaration Identity) Source # 
Pretty (Module Identity) Source # 

Methods

pretty :: Module Identity -> Doc ann #

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