I'm trying to write a little grammar file to parse SQLPlus scripts
(Oracle) - only some parts of them, e.g. creation of a sequence.
Everything looks fine, but I have a problem with "unexpected token"
parser error message and do not know why it happens and how to fix it...
The tokenizer returns the following stream of tokens:
Another thing is that I'd like to define somehow that there may be
either e.g. T_ORDER or T_NOORDER token used, but not both. I tried to
make all the alternatives optional (T_ORDER | T_NOORDER)? instead of
setting the whole group as "*" but then I had to use the tokens in
specified order (e.g. "cache" after "cycle"). How can it be defined?