kiama.example.oberon0.compiler.AST

trait PrettyPrintable

[source: kiama/example/oberon0/compiler/AST.scala]

trait PrettyPrintable
extends AnyRef
Simple interface for pretty-printing capabilities.
Direct Known Subclasses:
AST.Exp, AST.Statement, AST.Declaration, AST.Type

Method Summary
def pretty (o : scala.StringBuilder, indent : Int) : Unit
Pretty-print the object at the end of the given string builder.
def printList (o : scala.StringBuilder, indent : Int, lst : scala.List[PrettyPrintable], heading : java.lang.String) : Unit
Pretty-print a list
def printTabs (o : scala.StringBuilder, indent : Int) : Unit
Print tabs
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def printTabs(o : scala.StringBuilder, indent : Int) : Unit
Print tabs

def printList(o : scala.StringBuilder, indent : Int, lst : scala.List[PrettyPrintable], heading : java.lang.String) : Unit
Pretty-print a list

def pretty(o : scala.StringBuilder, indent : Int) : Unit
Pretty-print the object at the end of the given string builder.