def do(program): tree = parse_expr(program) compiler = Compiler() return compiler.compile(tree)
def compile(filepath): tree = parse(filepath) compiler = Compiler() return compiler.compile(tree)