def function_begin_action(self, text, loc, fun):
exshared.setpos(loc, text)<EOL>if DEBUG > <NUM_LIT:0>:<EOL><INDENT>print("<STR_LIT>",fun)<EOL>if DEBUG == <NUM_LIT:2>: self.symtab.display()<EOL>if DEBUG > <NUM_LIT:2>: return<EOL><DEDENT>self.shared.function_index = self.symtab.insert_function(fun.name, fun.type)<EOL>self.shared.function_name = fun.name<EOL>self.shared.function_params = <NUM_LIT:0><EOL>self.shared.function_vars = <NUM_LIT:0><EOL>self.codegen.function_begin()<EOL>
Code executed after recognising a function definition (type and function name)