How to compile generated code
Hello!
I have written a simple DSL that generates TeX documents which I want to get compiled during the build process.
What's the general approach here? I have already created a make facet but am unable to determine the name of the generated TeX file.
Christian
I have written a simple DSL that generates TeX documents which I want to get compiled during the build process.
What's the general approach here? I have already created a make facet but am unable to determine the name of the generated TeX file.
Christian
Please sign in to leave a comment.
the name of the generated file is specified in TextGen for your root concept, if that is what you are struggling with.
In the make facet you can get access to the file names through "TextGenOutcomeResource". Here's an example of a make facet accessing the generated files:
Vaclav
Hi, Vaclav!
Thanks for you reply. Is there any documentation regarding the various available resources? I haven't found any for TextGenOutcomeResource.
Christian
Documentation of this is unfortunately not very update - https://confluence.jetbrains.com/display/MPSD33/HowTo+--+Integrating+into+the+MPS+Make+Framework