def relexp_action(self, text, loc, arg):
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>exshared.setpos(loc, text)<EOL>if not self.symtab.same_types(arg[<NUM_LIT:0>], arg[<NUM_LIT:2>]):<EOL><INDENT>raise SemanticException("<STR_LIT>".format(arg[<NUM_LIT:1>]))<EOL><DEDENT>self.codegen.compare(arg[<NUM_LIT:0>], arg[<NUM_LIT:2>])<EOL>self.relexp_code = self.codegen.relop_code(arg[<NUM_LIT:1>], self.symtab.get_type(arg[<NUM_LIT:0>]))<EOL>return self.relexp_code<EOL>
Code executed after recognising a relexp expression (something relop something)