コード例 #1
0
def id_exp(node):

    (ID, name) = node

    target_name = symtab.get_target_name(name)

    return ('ADDR', target_name)
コード例 #2
0
def assign_stmt(node):

    (ASSIGN, (ID, name), exp) = node

    t = walk(exp)
    target_name = symtab.get_target_name(name)
    return ('ASSIGN', ('ADDR', target_name), t)
コード例 #3
0
def get_stmt(node):

    (GET, (ID, name)) = node

    target_name = symtab.get_target_name(name)
    return ('GET', ('ADDR', target_name))