-
Notifications
You must be signed in to change notification settings - Fork 0
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
Attribute ops as special control package #740
Comments
Some discussion points:
Original comment by: rensink |
W.r.t. point 1 in the previous comment: In fact, wildcards are currently not allowed at all import declarations. Original comment by: rensink |
Comments:
Original comment by: zambon |
Original comment by: rensink |
Original comment by: zambon |
Currently, when one wants to perform some operation on attributes (sum, sub, etc) inside a recipe, one has to create an auxiliary rule with just a product node (and corresponding parameters) so it can be invoked from the recipe. This is unattractive since it pollutes the grammar with helper rules which are also duplicated in many grammars that use recipes.
Suggestion: create a special library to provide all the existing attribute operations to a control program. For instance, one could say in the beginning
import attr.*;
and then use, for example
int.add(x, y, out z)
in the program. Implementing this will probably require the programmatic creation of internal rules into the grammar model.
Reported by: zambon
The text was updated successfully, but these errors were encountered: