What does the symbols in Ambiguous Alternatives Detected error mean? #2089
Unanswered
durianwaffle
asked this question in
Q&A
Replies: 1 comment
-
Hey @durianwaffle, this specific error comes from the chevrotain allstar plugin that enables unlimited lookahead. In particular, this error means that the 12th and 14th of your first alternative within the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am using Langium which parse document based on Chevrotain.
In my code editor, I saw an error for some documents saying that:
Ambiguous Alternatives Detected: <12, 14> in <OR1> inside <Primary> Rule, <ID, ;, ID> may appears as a prefix path in all these alternatives. See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES For Further details.
But I don't really understand the numbers 12, 14 nor OR1 mean in my grammar. And this error leads to the failure of ComputedScopes for that document.Anyone knows what do they mean?
Beta Was this translation helpful? Give feedback.
All reactions