示例#1
0
def prettyPrint(ast):
    ast.accept(prettyPrinter(), 0)
示例#2
0
文件: codegen.py 项目: fmota/klein
def convert(ast):
    """Convert an AST into Three Address Code."""
    v = visitor()
    ast.accept(v)
    return v.program