def enterRule(self, listener: ParseTreeListener):
    if hasattr(listener, 'enterLiteral'):
        listener.enterLiteral(self)
def enterRule(self, listener: ParseTreeListener):
    if hasattr(listener, 'enterLiteral'):
        listener.enterLiteral(self)