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 grammars support #18

Closed
Eliah-Lakhin opened this issue Jul 5, 2024 · 0 comments · Fixed by #20
Closed

Case-insensitive grammars support #18

Eliah-Lakhin opened this issue Jul 5, 2024 · 0 comments · Fixed by #20
Labels
enhancement New feature proposal

Comments

@Eliah-Lakhin
Copy link
Owner

Lady Deirdre's regex syntax currently does not have a straightforward way to express case-insensitive keywords in the Token macro.

To address this issue, a new operator i(...) will be introduced. This operator will turn every encountered Unicode (and ASCII in particular) character inside the surrounding expression into a case-insensitive choice if the character has a case property.

For example, i("abc") will be semantically equal to ['a', 'A'] & ['b', 'B'] & ['c', 'C'].

(See prior discussion in #17)

@Eliah-Lakhin Eliah-Lakhin added enhancement New feature proposal in-progress The maintainer is currently working on this feature labels Jul 5, 2024
Eliah-Lakhin added a commit that referenced this issue Jul 5, 2024
@Eliah-Lakhin Eliah-Lakhin linked a pull request Jul 6, 2024 that will close this issue
@Eliah-Lakhin Eliah-Lakhin removed the in-progress The maintainer is currently working on this feature label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature proposal
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant