Mixing Other Frameworks [message #517252] |
Fri, 26 February 2010 17:00 |
|
Hello,
I constructed a DSL using xtext. I have a number of text files written in that DSL and I want to transform them into a single model that conforms to another metamodel. AFAIK xtend dosn't support model merging (each text file is considered a model corresponding to the my dsl metamodel) to merge all the files to one or multiple input model to one output model to do the merge on the transformation.
So I think epsilon can help me, but since my models are not ecore based I need the xtext reader class to read the models (org.eclipse.xtext.MweReader). But since epsilon doesn't use a workflow I am wondering if some one can think of a way to read my dsl files (models) so I can use them as inputs for Epsilon.
Regards,
Horacio Hoyos
Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
|
|
|
|
Re: Mixing Other Frameworks [message #520246 is a reply to message #517281] |
Thu, 11 March 2010 16:50 |
|
Dimitris,
My DSL files are not EMf resources, they are just plain text files. The generator project created as part of a xtext project is used to read your dsl files and transform them to text. In the generated workflow the dsl file (model) is read with:
<component class="org.eclipse.xtext.MweReader" uri="${modelFile}">
<!-- this class will be generated by the xtext generator -->
<register class="org.xtext.example.DieselStandaloneSetup"/>
</component>
So it seems that that java class is needed to "interpret" my dsl files and load them to a interpretable xmi instance to use in the transformations.
My guess is that I have to make an ant file to run my transformations (and not a configuration) and include the above component to access my dsl files as models?
Regards,
Horacio
Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
|
|
|
|
Re: Mixing Other Frameworks [message #587368 is a reply to message #517281] |
Thu, 11 March 2010 16:50 |
|
Dimitris,
My DSL files are not EMf resources, they are just plain text files. The generator project created as part of a xtext project is used to read your dsl files and transform them to text. In the generated workflow the dsl file (model) is read with:
<component class="org.eclipse.xtext.MweReader" uri="${modelFile}">
<!-- this class will be generated by the xtext generator -->
<register class="org.xtext.example.DieselStandaloneSetup"/>
</component>
So it seems that that java class is needed to "interpret" my dsl files and load them to a interpretable xmi instance to use in the transformations.
My guess is that I have to make an ant file to run my transformations (and not a configuration) and include the above component to access my dsl files as models?
Regards,
Horacio
Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
|
|
|
|
Powered by
FUDForum. Page generated in 0.03190 seconds