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?


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

// C# Code
enum Items

1 comment
Comment actions Permalink
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.


Please sign in to leave a comment.