-
Notifications
You must be signed in to change notification settings - Fork 452
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
Please help to resolve IF THEN ELSE issue in AlaSQL parser #279
Comments
The Bison docs have a section on fixing conflicts. In general, though, I believe the standard advice is, "It's really hard to write unambiguous grammars. If you can, great. If you can't, then it's usually not a problem." I am a newb to Jison, though, so take that with a grain of salt! :) Also just a small piece of advice on simplifying your grammar: if you use the
There's an example of this in my Jison Debugger; check the "musical chords" sample in the dropdown list. |
@nolanlawson - Thank you, great and useful tool! Is there way to to turn on I also tryed to use this Bison documentation parts, and tried to play with %left, %right and other flags - but everything had no desired effect. |
@agershun Yup, check out the Jison Debugger's "musical chords" grammar, where I enable |
Thank you, Nolan! I will create the special issue to rewrite parser with this |
@nolanlawson I love this |
Yeah ebnf is awesome. :) |
Unfortunately, |
Thank you again for the great software! May I ask you to help to resolve one issue in the grammar file, which we can not solve.
This is a grammar file https://github.com/agershun/alasql/blob/master/src/alasqlparser.jison
When I parse my file, I receive the following warnings:
Even with this warning all tests passed ok. How to modify grammar file to remove this warning?
These messages related to lines 1986-2003, which are:
Could you help me with this problem?
The text was updated successfully, but these errors were encountered: