def lookup_id_action(self, text, loc, var):
exshared.setpos(loc, text)<EOL>if DEBUG > <NUM_LIT:0>:<EOL><INDENT>print("<STR_LIT>",var)<EOL>if DEBUG == <NUM_LIT:2>: self.symtab.display()<EOL>if DEBUG > <NUM_LIT:2>: return<EOL><DEDENT>var_index = self.symtab.lookup_symbol(var.name, [SharedData.KINDS.GLOBAL_VAR, SharedData.KINDS.PARAMETER, SharedData.KINDS.LOCAL_VAR])<EOL>if var_index == None:<EOL><INDENT>raise SemanticException("<STR_LIT>" % var.name)<EOL><DEDENT>return var_index<EOL>
Code executed after recognising an identificator in expression