def prettyPrint(ast): ast.accept(prettyPrinter(), 0)
def convert(ast): """Convert an AST into Three Address Code.""" v = visitor() ast.accept(v) return v.program