Yes, if you use the
w3c style where [ ] means a character range instead of an optional section. w3c uses cardinality flags after a terminal or section to denote zero or more (*), one or more (+), or optional (?).
e.g. you can do something like this to match a-z, A-Z, 0-9, and these characters: !@#%
MyTerm ::= [a-zA-Z0-9!@#%];
You can also inverse that by prefixing the sequence with ^, for example:
MyTerm ::= [^a-z]
You can define the specific options of the Ebnf parser to turn on EbnfStyle.CharacterSets, but is mutually exclusive with EbnfStyle.SquareBracketAsOptional. EbnfStyle.SquareBracketAsOptional takes precedence if you define both flags.
Hope this helps!
Curtis.