-
Notifications
You must be signed in to change notification settings - Fork 164
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
Allow or check overwriting of build-in token types #197
Comments
I started to work on this towards allowing the overwrite, but I realized I will have to modify every single backend for this. :( |
Yes. Right now each backend adds its own hard-coded definition for the built-in token types. I think the right way to fix this is to add the built-in token categories to the if you look in |
The good thing is that now that there is a big regression test suite, changing all the backends is a bit less scarry than it used to be... I assigned this issue to you since you said you started working on this. 👍 |
Ok, I will have a go at it. I already changed |
This issue gets more weight by problems such as #302 (comment) . |
BNFC passes this
but it fails in the Haskell backend:
Ideally,
token Ident ...
should overwrite the built-in definition ofIdent
.At least, there should be an error message from bnfc.
The text was updated successfully, but these errors were encountered: