-
Notifications
You must be signed in to change notification settings - Fork 165
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
Haskell: spurious character in .cf file leads to ill-formed semantic parse actions #214
Comments
Still do not fully understand this, but the profiles feature allows two identifiers to be given as rule name, and then the second one is taken. I don't know why |
This comes from the syntactic sugar feature. BNFC should check for the presence of the definition, like
instead of silently assuming there is a definition. |
Give proper error message rather than failing mysteriously in the backend.
The situation is much better already:
We would wish for an error location. |
The previous code would override the error location of the rule name Bar with a no-position location of category Bar.
BNFC swallows this, but then the generated parser does not compile.
In the
.y
file, this grammar turns into:The text was updated successfully, but these errors were encountered: