I am using Grako EBNF/PEG parser.
I know that EBNF syntax allows to grab expressions that satisfy one of given options:
(a | b | c)
Is there a similar part of syntax or a workaround that allows to grab expessions that are any combinations of a
, b
and c
without repetitions so that valid expressions would be like:
a b c
b a c
a b
b c
b
none
but not like:
b b c
a a
?