How to perfom template based generation with input language equals output language


In my language there are several statements, whose functionality can be performed by other statements. So I want to replace these statements with different others.
Writing a reduction rule isn't a big deal so far, but my statements contain reference to nodes in my input model. These nodes are not mandatory affected by the first reduction.
Is there an easier way than copy all my nodes and specify mapping labels?
1 comment
Comment actions Permalink
I think if you just create reduction rules for those nodes you have to reduce the rest will be copied by MPS automatically..

Please sign in to leave a comment.