|Re: [QVTO] AST and Pretty Printing [message #555659 is a reply to message #555635]
||Fri, 27 August 2010 13:46
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl|
using this transformation:
modeltype mm_qvto "strict" uses
transformation qvtocopy(in inModel : mm_qvto, out outModel : mm_qvto);
log("in rootObjects=", inModel.rootObjects());
log("out rootObjects=", outModel.rootObjects());
and as input some .qvto file, and as output a .xmi file. The input .qvto
text file is automatically parsed, so that it can be used as an input
resource for the transformation. I got an XMI file as output with some
QVTo AST in there, so it seemed. Not sure about pretty printing back to
code. Using .qvto as output file did not result in an output file at all...
I think it should be possible to transform QVTo transformations using
QVTo, as QVTo itself is based on a metamodel...
> How can I obtain the AST of a given .qvto file in order to process it
> with QVTO itself? I figured out how to extract the concrete syntax using
> the internal Parser, but couldn't quite find out how to do it for AST.
> Also, how can I pretty print EMF AST or CST back to QVT code?
Powered by FUDForum
. Page generated in 0.36135 seconds