I'm tryting to write a small language syntax using BNF style. I came to an option like this:
option ::= 'option1' | 'option2' | 'read' | 'write' | etc
The first four options are as example of what values the option
can have, but I can't enumerate all of them and nor I can group them. Instead, I thought to use something like etc
, but I don't know if a syntax can have it. Any idea how these options can be shown, what to write instead of etc
?
Thank you!