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