예제 #1
0
def write_expr(outexpr):
    generate("WRITE", extract_sem(outexpr), "Integer")
예제 #2
0
def gen_infix(e1, op, e2, symbol_table):
    temp_expr = ExprRec(get_temp(symbol_table))
    generate(extract_sem(op), extract_sem(e1), extract_sem(e2), temp_expr.name)
    return temp_expr
예제 #3
0
def assign(target, source):
    generate("STORE", extract_sem(source), target.name)