-
Notifications
You must be signed in to change notification settings - Fork 18
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
Generic grammar traits #350
Comments
I see. |
Thanks, Jörg. This would be very nice because currently, to pass information through the AST requires creating some other data structure to store the information, which can be quite ackward! |
Probably has to be |
Sounds like a plan 👍 |
Hi @nblei, |
Jörg, I'm working on type checking for Veryl. So I need to transform a large number of terminals and non-terminals into their type. This can likely be done by implementing |
The problem with your proposal is that the parser calls the semantic actions and simply doesn't know how to handle return values. |
I recomment you to implement only a view sematic actions where symbols play a role and collect the information for later evaluation. |
Jörg,
It would be useful to have the following:
The text was updated successfully, but these errors were encountered: