"Generate from model" files different from *.xml and *.java Follow
Hello to MPS Team!
Is there any way to generate arbitrary files for given model into solution directory (or anywhere else) in current MPS build?
My sixth sense suggesting that it's probably hardcoded now:(
Please sign in to leave a comment.
Sorry, connection problems. See post above
Hello, Dmitri,
Its possible to generate files different from xml and java. But you have to implement a text generation aspect of your language. To do so for a language a.b.c create a package a.b.c.textPresentation and for each concept C that you want to generate to text create a class C_TextPresentation that implements interface TextPresentationGenerator. After that it will be possible to generate text. But in this way you can only generate text to the output view not to files.