using multiple alternatives - but there are no alternatives?!?! [message #714336] |
Wed, 10 August 2011 11:03 |
Robin Messages: 25 Registered: August 2010 |
Junior Member |
|
|
Hi,
so I got another stupid question, but I totally don't get it. Please help me!
I have the following grammar:
Model:
(examples+=Example)*;
Example :
{Example} // to get rid of the compiler warning
(
'exampleToken'
exampleTokens+=ID
'end'
)*
(
'meaningToken'
meaningTokens+=ID
'end'
)*
;
And it gives the errors:
Decision can match input such as "{EOF, 'exampleToken', 'meaningToken'}" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
The following alternatives are unreachable: 2
Decision can match input such as "'exampleToken'" using multiple alternatives: 1, 2
Decision can match input such as "'meaningToken'" using multiple alternatives: 1, 2
How? Why? It is just two sequential list of elements that can be repeated. What am I doing wrong??
Regards, Robin
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02941 seconds