-
If I have a rule contained in a plus statement how do I get that rule to apply method to occur on every successive input it succeeds on rather than just once for the entirety of the input that matches with the rule? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You mean something like: struct A : seq< whatever > {};
struct B : plus< A > {}; ? If you specialize an action for |
Beta Was this translation helpful? Give feedback.
-
Yes that works. I was trying to combine both of those lines. |
Beta Was this translation helpful? Give feedback.
You mean something like:
?
If you specialize an action for
B
, it will receive the whole input that matches in one go. If you want to have your action called for eachA
you'd simply specialize an action forA
.