-
Notifications
You must be signed in to change notification settings - Fork 21
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
make sure all named sub-parsers can produce rule kinds #486
make sure all named sub-parsers can produce rule kinds #486
Conversation
|
0ac8348
to
b1efa97
Compare
@@ -42,6 +42,7 @@ pub enum CombinatorNode<'context> { | |||
primary_expression: &'context CombinatorNode<'context>, | |||
}, | |||
Reference { | |||
name: Option<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure of the use case for renaming references. The referenced tree is already named. I thought this issue was about eliminating the _* names, which would be done by adding names to e.g. repetitions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure of the use case for renaming references.
The current PR is about #339, which makes sure we can give names to choices + references.
I thought this issue was about eliminating the _* names, which would be done by adding names to e.g. repetitions?
That would be #353, which is still WIP.
For references, it is needed to give names to inlined nodes (that will not generate their own NodeKind
). Please check the description of #323 for some examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will remove the changes to reference
and keep choice
.
b1efa97
to
2e35aa7
Compare
@AntonyBlakey comment addressed. |
Context: #339 (comment)
add support for naming
choice
parsers, as we can have two nodes of the same kind in succession, and we need to differentiate which is which.Closes #339