I am writing a grammar with a lot of case-insensitive keywords in ANTLR4. I collected some example files for the format, that I try to test parse and some use the same tokens wh
You can simply list the keywords that are allowed as identifiers as alternatives in the id rule:
id
id: IDSTRING | CORE | ... ;