badicsalex / peginator

PEG parser generator for creating ASTs in Rust
MIT License
34 stars 3 forks source link

Add case insensitive string literals #4

Closed badicsalex closed 2 years ago

badicsalex commented 2 years ago

3 implies that there is a need for case-insensitive string matching (for keywords, probably).

There should probably be an easy, but intuitive syntax to do it (e.g. i"whatever"). I'll look into how other PEG parsers mark it.

badicsalex commented 2 years ago

Apparently in pest it's marked written as ^"ASCII case-insensitive string".

Both tatsu and lalrpop recommends regex with ?i, the others don't seem to have this functionality.