goodmami / goodmami/pe

Support for case-insensitive matching of literals?

Open
#52 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
51
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I apologise if I missed this somewhere, but I have a grammar with a lot of string literals that are case insensitive, and I cannot find anything in the docs about how to parse this best, here's one example:

`unary_operator <- ~("abs" / "acos" / "asin" / "atan" / "cos" / "exp" / "fix" / "fup" / "ln" / "round" / "sin" / "sqrt" / "tan")`

The best I've been able to do is to replace every literal with a combination of class matches, e.g. `[aA][bB][sS]` instead of "abs", which I guess works but does become tedious, so I just wanted to check if there's something I'm missing!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.