In spirit::qi
one could pass a parser to a rule as an inherited attribute, and then use it directly:
... >> lazy(_r1) >> ...
Is there any work-around for this in X3?
I can "inject" the parser to the desired rule context using with<state_tag>(std::ref(my_parser))[destination_rule]
, and I can retrieve it within some semantic action later - but I do not realize how to "invoke" it then.