no-context / moo

Optimised tokenizer/lexer generator! šŸ„ Uses /y for performance. Moo.
BSD 3-Clause "New" or "Revised" License
821 stars 65 forks source link

Consider ignoreCase for keywords #67

Closed tjvr closed 5 years ago

tjvr commented 7 years ago

Previously, previously.

nathan commented 7 years ago

How would this work implementation-wise? Would moo fold the case itself, e.g., 'const' => /[cC][oO][nN][sS][tT]/? (If so, it should probably support Unicode)

tjvr commented 7 years ago

Would moo fold the case itself

Yes, it would have to.

(I saw a proposal somewhere for inline flag modifiersā€”(?iā€¦) perhaps?ā€”but fairly obviously that's not something Moo can rely on! :-) )

camullen commented 6 years ago

I created a pull request for this: #78

tjvr commented 5 years ago

We now support general-purpose type transforms.