This project has moved and is read-only. For the latest updates, please go here.

How do I create a case insensitive grammar?

Apr 24, 2015 at 8:54 PM
I have a simple grammar that parses expression strings, such as: "x < 2 and y >= 3". I have a limited set of "variables" (x, y, etc) so I have them defined as NonTerminal; but if I add X and Y, then x and y won't be parsed correctly. Is there a simple way to set a flag somewhere to make the parses case insensitive or do I have to ToLower everything before passing it to Irony?

Thanks in advance,
Apr 24, 2015 at 8:58 PM
caseSEnsitive is a parameter to a constructor of Grammar class
Marked as answer by florinator on 4/24/2015 at 1:54 PM
Apr 24, 2015 at 9:54 PM
Ah, wonderful, I missed that, thank you very much!