def exitRule(self, listener: ParseTreeListener):
    if hasattr(listener, 'exitExpr'):
        listener.exitExpr(self)
def exitRule(self, listener: ParseTreeListener):
    if hasattr(listener, 'exitExpr'):
        listener.exitExpr(self)