예제 #1
0
파일: pretty_print.py 프로젝트: fmota/klein
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