We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tokens defined with %precedence are not detected as being declared. Example:
%precedence
%precedence token1 %precedence token2 %% rule1: token1 token2
Gives the error Symbol was not declared. for both tokens, although the code is accepted by bison.
Symbol was not declared.
Tested on: Yash 0.2.5 GNU bison 3.7
The text was updated successfully, but these errors were encountered:
After digging though the code a bit I think this could be fixed by adding a case for %precedence here:
yash/src/languages/parser/yaccParser.ts
Lines 218 to 223 in 66face2
Sorry, something went wrong.
@DubiousDoggo thanks for the issue.
Yes, it seems that we skipped one case. It will be fixed soon in the next version.
@DubiousDoggo sorry for the late response.
Indeed, great find, that one line case is all we need. A new patch will be released soon fixing the problem.
021fdbf
No branches or pull requests
Tokens defined with
%precedence
are not detected as being declared.Example:
Gives the error
Symbol was not declared.
for both tokens, although the code is accepted by bison.Tested on:
Yash 0.2.5
GNU bison 3.7
The text was updated successfully, but these errors were encountered: