Generate from TextGen
Hi
I'm new with MPS and for a project i'm currently trying to generate a textual file from a DSL I created. I wanted to use the TextGen tool but it seems that I cannot find how to actually generate a file, I only can see a preview on my solutions... Any help? I searched through tutorials but didn't find anything
Please sign in to leave a comment.
Perform "Rebuild" of a model that contains nodes of a concept that has a textgen definition.
After that open a "Model properties" of this model on the "Advanced" tab and copy the path from the beginning till the "models".
Open the copied path and open the "source_gen" path. Now you can search your generated file inside this folder by the name. By default, text gen definition generates text with a name of a source node:
Thanks a lot it works perfectly!