def visitTerminal(self, ctx):
        """Converts case insensitive keywords and identifiers to lowercase
           Identifiers in quotes are not lowercased even though there is case sensitivity in quotes for identifiers,
            to prevent lowercasing quoted values.
        """
        text = str(super().visitTerminal(ctx))
        quotes = ["'", '"']
        if not (text[0] in quotes and text[-1] in quotes):
            text = text.lower()
        return Terminal.from_text(text, ctx)