I have write two rules to generate two different files,and combine them to a strategy,like:

but the rule “generate-b” had not be executed while the rule “generate-a” executed

Submitted on 15 March 2013 at 11:42

On 15 March 2013 at 12:01 Gabriël Konat commented:

The + operator is the non-deterministic choice operator. If one of the strategies succeeds, the other one is not executed.
If you want both strategies to be executed, use the ; operator which sequences strategies instead of choosing.

More information on strategy combinators can be found here: http://hydra.nixos.org/build/4325353/download/1/manual/chunk-chapter/stratego-strategy-combinators.html.
Also, if you have a question please use the Q&A part of Yellowgrass (click the Q&A button next to the Spoofax button).

On 15 March 2013 at 13:33 Gabriël Konat closed this issue.

Log in to post comments