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

Add caseInsensitive option to parser builder #109

Closed
wants to merge 2 commits into from

Conversation

curvedmark
Copy link

Fix #108

@curvedmark
Copy link
Author

The second commit makes the parser builder try case-insensitive comparison only if the literal actually contains alphabet. Character sets are also covered.

I simply use /[a-z]/i to test alphabet, which should be suffice. If the language is case-insensitive and also need to support international characters, the author can manually append is anyway if she doesn't want slight performance penalty.

@dmajda
Copy link
Contributor

dmajda commented Aug 7, 2015

Sorry I didn’t get to look at this, closing as obsolete now. See also my comment at #108.

@dmajda dmajda closed this Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a global option to make generated parser case insensitive
2 participants