grmtools icon indicating copy to clipboard operation
grmtools copied to clipboard

Case insensitive tokenization / Flex's %option caseless

Open pablosichert opened this issue 4 years ago • 1 comments

Flex has a directive %option caseless to lex tokens in a case insensitive way.

Is there currently a way (besides using regular expressions) to accomplish the same?

pablosichert avatar Dec 15 '19 16:12 pablosichert

At the moment, no. I think before we added this, we'd need to add the idea of lexerkinds to lrlex (in the same way that lrpar has the idea of grammarkinds), because caseless is a Flex extension that isn't supported by lex. That would be a nice little project for someone to add.

ltratt avatar Dec 16 '19 09:12 ltratt