-
Notifications
You must be signed in to change notification settings - Fork 32
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 support for arbitrary rule metadata. #57
Labels
Comments
igordejanovic
added a commit
that referenced
this issue
Aug 29, 2018
igordejanovic
added a commit
that referenced
this issue
Aug 29, 2018
igordejanovic
added a commit
that referenced
this issue
Aug 29, 2018
igordejanovic
added a commit
that referenced
this issue
Aug 29, 2018
Done on Syntax is different from the initially proposed. Please see the docs. |
igordejanovic
added a commit
that referenced
this issue
Sep 7, 2018
igordejanovic
added a commit
that referenced
this issue
Sep 7, 2018
igordejanovic
added a commit
that referenced
this issue
Sep 7, 2018
igordejanovic
added a commit
that referenced
this issue
Sep 7, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This could be used in recognizers, actions, disambituation/error recovery callbacks, error reporting etc. to extend the semantics of parglare grammar language.
Ideas for the syntax (
label
is meta-data attached tomy_rule
grammar rule):or just extending currently build-in meta-data in
{}
:Once defined it could be accessed on grammar symbol as an attribute for example.
I like more the later syntax approach as it wouldn't introduce additional syntax noise and with #17 it would enable defining meta-data per productions also without change in syntax.
The text was updated successfully, but these errors were encountered: