def global_variable_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>index = self.symtab.insert_global_var(var.name, var.type)<EOL>self.codegen.global_var(var.name)<EOL>return index<EOL>
Code executed after recognising a global variable