def program_end_action(self, text, loc, arg):
exshared.setpos(loc, text)<EOL>if DEBUG > <NUM_LIT:0>:<EOL><INDENT>print("<STR_LIT>",arg)<EOL>if DEBUG == <NUM_LIT:2>: self.symtab.display()<EOL>if DEBUG > <NUM_LIT:2>: return<EOL><DEDENT>index = self.symtab.lookup_symbol("<STR_LIT>",SharedData.KINDS.FUNCTION)<EOL>if index == None:<EOL><INDENT>raise SemanticException("<STR_LIT>", False)<EOL><DEDENT>elif self.symtab.get_type(index) != SharedData.TYPES.INT:<EOL><INDENT>self.warning("<STR_LIT>", False)<EOL><DEDENT>
Checks if there is a 'main' function and the type of 'main' function