"Generate from model" files different from *.xml and *.java

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:(

0
2 comments

Sorry, connection problems. See post above

0
Avatar
Permanently deleted user

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.

0

Please sign in to leave a comment.