Using paths in a "uses" statement [message #1835585] |
Mon, 07 December 2020 16:41 |
Yves BERNARD Messages: 189 Registered: July 2014 |
Senior Member |
|
|
I cannot find the appropriate syntax for a "uses" statement that would refer to module that is not located in the same directory than the "using" module. Is it possible do do so?
Thanks,
Yves
Yves
|
|
|
Re: Using paths in a "uses" statement [message #1835593 is a reply to message #1835585] |
Mon, 07 December 2020 22:07 |
|
Note that only EMFTVM has the concept of a module path, where referenced ATL files are automatically loaded; the other VMs require each file to specified manually. To organise ATL files over multiple directories in EMFTVM, you can use qualified names for the module or library name using the '::' separator. You do need to enclose qualified names in double quotes (") to overcome a parser limitation.
I've added the ModulePath example to https://github.com/dwagelaar/atl.examples
Cheers,
Dennis
|
|
|
Re: Using paths in a "uses" statement [message #1835634 is a reply to message #1835593] |
Wed, 09 December 2020 07:15 |
Yves BERNARD Messages: 189 Registered: July 2014 |
Senior Member |
|
|
Dennis,
Thank you so much for your reply. Surprisingly, searching for documentation on ATL only gave me the former ATL 3.5 documentation. I didn't understand why I was not leaded to the page you provide the link above. This will be really helpful to me since the transformation I'm working on is a rather big one. I would like avoiding to put everything in a single file!
Note that what I need is not "superimposition" but actually a simple "dispatching" of all the rules of a single transformation in multiples files. According to what I read, this is supported by EMFTVM... Together with multiple inheritance, which is a great for what I have to do!
Thanks again. :-)
Yves
Yves
|
|
|
Powered by
FUDForum. Page generated in 0.02653 seconds