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