How to get the sub-rule's content in different parent-rule's action? #334
Answered
by
ColinH
shuizaiku7
asked this question in
Q&A
-
|
Beta Was this translation helpful? Give feedback.
Answered by
ColinH
Feb 1, 2023
Replies: 1 comment
-
There are more ways to do this, but not necessarily any better ones (you could set up a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shuizaiku7
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
There are more ways to do this, but not necessarily any better ones (you could set up a
control
to change theaction
depending on the parent rule). Depending on what is more fitting I have used all three of the options you gave, probably in the order you listed them. Sometimes it's also possible to change the grammar in a way that makes the problem disappear, but that is not always the best choice and sometimes not really possible at all.