I'm relativ new to MPS and wrote a language for generating Code (Java and XML).
Currently I'm working on the ".gui" files that should contain the XML. So far my project only consists of the Structure aspect where I define my Concepts and the Generator aspect where for each Concept is defined how to translate it to XML-Code
1) How can I generate the files? I found the preview for nodes of my solution, but I didn't figured out how to create the files
2) So far I used the XML-Language from MPS and created with it the root nodes. Now they're of courseXML-files, but my ending shouldn't be ".xml" instead it should be ".gui". How can I define that and what should I use instead of the XML-Root?
3) I need an Integer value that i can read and change from every point of the AST, while generating (so I need acces in every single Template to it). I read about the "session objekt" and thought that this would be maybe the right thing to use, but how can I use it? I couldn't really understand how it works.
I hope I can get some answer here and I'm grateful for any help and new perspectives. Thank you in advance :)