I want to declare with EBNF notation a keyword, i.e. switch
.
<keyword_switch> ::= "switch";
Is there a way to declare the keyword as case insensitive without declare all possible letters combination?
I think that the following declaration is correct (but unsire, I'm a newbie with EBNF):
<keyword_switch> ::= ("S"|"s")("W"|"w")("I"|"i")("T"|"t")("C"|"c")("H"|"h");
but it's not very readable. Is there another simpler way?