def argument_action(self, text, loc, arg):
exshared.setpos(loc, text)<EOL>if DEBUG > <NUM_LIT:0>:<EOL><INDENT>print("<STR_LIT>",arg.exp)<EOL>if DEBUG == <NUM_LIT:2>: self.symtab.display()<EOL>if DEBUG > <NUM_LIT:2>: return<EOL><DEDENT>arg_ordinal = len(self.function_arguments)<EOL>if not self.symtab.same_type_as_argument(arg.exp, self.function_call_index, arg_ordinal):<EOL><INDENT>raise SemanticException("<STR_LIT>" % (arg_ordinal + <NUM_LIT:1>, self.symtab.get_name(self.function_call_index)))<EOL><DEDENT>self.function_arguments.append(arg.exp)<EOL>
Code executed after recognising each of function's arguments