Is there a way to have case in-sensitive token in Ocamllex specification? I already tried to make case in-sensitive token in this way:
let token = parser
...
| ['C''c']['A''a']['S''s']['E''e'] { CASE }
...
but I'm searching for something else, if exists.
Use an ordinary token lexer that accepts both lower- and upper-case, and look up keywords in a table, ignoring case: