Skip to content

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
Discussion options

You must be logged in to vote

There are more ways to do this, but not necessarily any better ones (you could set up a control to change the action 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shuizaiku7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants