Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case insensitive tokenization / Flex's %option caseless #130

Open
pablosichert opened this issue Dec 15, 2019 · 1 comment
Open

Case insensitive tokenization / Flex's %option caseless #130

pablosichert opened this issue Dec 15, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@pablosichert
Copy link
Contributor

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?

@ltratt
Copy link
Member

ltratt commented Dec 16, 2019

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 ltratt added enhancement New feature or request good first issue Good for newcomers labels Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants