I have recently started studying MPS and trying to do some simple tests.
I’m trying to create some simplest generator which uses jetbrains.mps.sampleXML language as input and output languages.
I have only one mapping rule:
where RootOut is
The input is
When I’m looking generated output (Preview Generated Text), I have
I do not understand, WHY
? I specified to generate RootOut node always in the conditional root rules.
If I remove the Input node, I have correct output:
Could anybody say, what is wrong here? Maybe it is just my misunderstanding of some MPS concepts, but currently it looks for me as some MPS bug.