[ATL] How to extract an ATL model to an ATL file? [message #101848] |
Mon, 16 March 2009 06:10  |
Eclipse User |
|
|
|
HI,
To do a high order transformation with ATL i need to extract an ATL model
(.ecore) to an ATL file (.atl) so that i can compile it (is it possible to
directly compile the ATL model into .asm ?). I'm using ATL 3.0, i've seen
some examples that use TCS but i think that was with ATL2.x (i'm i right?).
thanks in advance
Skander TURKI
UBS Lab-STICC
Lorient.
|
|
|
Re: [ATL] How to extract an ATL model to an ATL file? [message #101957 is a reply to message #101848] |
Mon, 16 March 2009 10:05  |
Eclipse User |
|
|
|
Skander wrote:
> HI,
> To do a high order transformation with ATL i need to extract an ATL
> model (.ecore) to an ATL file (.atl) so that i can compile it (is it
> possible to directly compile the ATL model into .asm ?). I'm using ATL
> 3.0, i've seen some examples that use TCS but i think that was with
> ATL2.x (i'm i right?).
>
> thanks in advance
>
> Skander TURKI
> UBS Lab-STICC Lorient.
>
Here's an example of how to extract ATL models to text via Ant:
http://ssel.vub.ac.be/viewvc/atl-superimposition-semantics/b uild.xml?revision=7530&view=markup
This example is based on an ATL 2.1.0 snapshot, which includes AM3.
In principle, it's also possible to compile an ATL model into a .asm
file, but you'll have to write your own compiler that skips the parsing
step, based on AtlDefaultCompiler.java. It's normally easier to extract
ATL models to file first, provided you have the ATL Ant tasks available.
Dennis
|
|
|
Powered by
FUDForum. Page generated in 0.07702 seconds