Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for ambiguous alternatives #853

Closed
bd82 opened this issue Nov 19, 2018 · 0 comments · Fixed by #1009
Closed

Documentation for ambiguous alternatives #853

bd82 opened this issue Nov 19, 2018 · 0 comments · Fixed by #1009
Labels

Comments

@bd82
Copy link
Member

bd82 commented Nov 19, 2018

Changes (In 6.2.0)


Original Issue

see:


Ambiguous alternatives: <1 ,2> in inside Rule,
<'@', '@', '@', '@'> may appears as a prefix path in all these alternatives.
To Resolve this, try one of of the following:

  1. Refactor your grammar to be LL(K) for the current value of k (by default k=5)
  2. Increase the value of K for your grammar by providing a larger 'maxLookahead' value in the parser's config
  3. This issue can be ignored (if you know what you are doing...), see https://sap.github.io/chevrotain/documentation/4_1_0/interfaces/iparserconfig.html#ignoredissues for more details

A link to in depth docs similar to: http://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
Should be included.

  • Note that the link above "talks" about a different kind of ambiguity.
@bd82 bd82 added the docs label Nov 19, 2018
bd82 added a commit that referenced this issue Aug 29, 2019
@bd82 bd82 changed the title Ambiguous alternatives error message need better docs Documentation for ambiguous alternatives Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant