def p_factor_id(self, p):
def resolve_id(key, context):<EOL><INDENT>try:<EOL><INDENT>return context[key]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise NameError("<STR_LIT>".format(key))<EOL><DEDENT><DEDENT>p[<NUM_LIT:0>] = Instruction('<STR_LIT>', context={<EOL>'<STR_LIT>': resolve_id,<EOL>'<STR_LIT:key>': p[<NUM_LIT:1>],<EOL>'<STR_LIT>': self.context<EOL>})<EOL>
factor : ID