Multiple roots defined

Hello forum!

How can I access all three Items from the sandbox (shown in screenshot above) in the textgen aspect of my language named New Language?

Unbenannt.PNG


I need to have code, which looks quite similar to this.

// C# Code
enum Items
{
  Ball,
  Car,
  Cat
}
prettyPrint();


Regards
msch95
1 comment
I'd suggest using a generator to transform the original model into a model corresponding to the desired output - so a new root node representing the "Items" should be created using a conditional root rule and the original three roots should be hooked underneath the "Items" root, perhaps using a post-processing script. Then the text-gen will be straightforward, I think.

Vaclav
0

Please sign in to leave a comment.