|
|
|
Re: EPX to Ecore and EMX to Xtext instances [message #1856685 is a reply to message #1856679] |
Thu, 22 December 2022 14:27 |
Christopher Gerking Messages: 116 Registered: April 2011 |
Senior Member |
|
|
Basically yes, that's possible. The output of QVTo is a model in its abstract syntax (based on the generated Ecore metanodel). For any such model, Xtext provides the required facilities to serialize that model into a concrete textual syntax that conforms to the grammar. These two steps should be completely interoperable.
In case you want to do that in practice, you could use the launch configurations provided by Eclipse QVTo, which enable you to specify the URIs of the input and output models explicitly. Provided that your Xtext language is properly integrated with EMF, QVTo will automatically invoke the Xtext serializer when saving your output models to the specified URI. You will need to use the proper file extension for your output URI, thereby indicating to EMF which serializer to use. Hence, using the QVTo UI, this should work out of the box. Did you try that?
In case you want to do it programmatically, take a look at how you get Xtext to serialize your EMF models accordingly. This has nothing to do with QVTo.
Kind regards
Christopher
|
|
|
Powered by
FUDForum. Page generated in 0.05584 seconds