although this question seems to have already been asked a few times in the forum, so far, none of the threads could help me further (I already tried the various suggestions). So, coming to the problem I'm facing, I need to generate output from my language into two different languages (Scala and Datalog). So far, for Datalog, the generation worked (fairly trivial), however, as soon as I tried adding a second generator model for generating Scala source, problems arose. For the root mapping rules, they are applied properly, however, the reduction rules get messed up completely (to be more clear, the reduction rules of the Scala generator model are completely ignored but instead the ones for the Datalog code are taken). Any chance anybody in here has a solution to this problem? Setting generator priorities or using branch mappings somehow did not work (http://forum.jetbrains.com/thread/Meta-Programming-System-740
). I also tried using conditions for the various rules on when to apply them, yet I did not succeed in doing so. My attempt was to kinda query for the applied root mapping rule and use the respective reduction rules according to the applied root mapping, yet I could not figure out on how to do that or whether it is possible...any help would be greatly appreciated. Thanks a lot!