Skip to content
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

Add way to specify all productions in FISHI %actions block #103

Open
dekarrin opened this issue Apr 27, 2023 · 0 comments
Open

Add way to specify all productions in FISHI %actions block #103

dekarrin opened this issue Apr 27, 2023 · 0 comments
Labels
enhancement New feature or request FISHI Changes to the FISHI language

Comments

@dekarrin
Copy link
Owner

For an SDTS to perform the same semantic action for multiple productions, each production must be specified as well as the parameters it accepts in the %actions block of its FISHI spec. This can be tedious.

Add a new token %all or some other suitable token or shorthand (perhaps *) that comes directly after %prod/-> and specifies that the following semantic action should be applied for all productions of that symbol. It is permissible to give an "%all" semantic action along with any others for the same symbol; the %all will simply be applied to each one after any semantic actions for that symbol that come before it.

Issue created from work on #79

@dekarrin dekarrin added enhancement New feature or request FISHI Changes to the FISHI language labels Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FISHI Changes to the FISHI language
Projects
None yet
Development

No branches or pull requests

1 participant