[ATL] Recursive NavigationOrAttributeCallExp creation [message #107118] |
Wed, 24 June 2009 15:50 |
Cosmin Ciuraru Messages: 16 Registered: July 2009 |
Junior Member |
|
|
Hello,
I'm working on a higher order transformation which targets an ATL model.
Amongst other things, I need to generate from a string sequence like:
{'self','expressions','smthElse'}
the following ATL code:
self.expressions.smthElse
The string sequence dependes upon the input model for my HOT. I've started
doing this by generating several NavigationOrAttributeCallExp in ATL. I
have some problems though, because I need to write something recursive in
ATL, by using lazy rules, called rules or helpers...
One question will be: what do I set as source element for the initial
NavigationOrAttributeCallExp (self)?
What combination would you advice to use in order to call a rule, helper,
that takes as parameters the name of the NavigationOrAttributeCallExp to
be built and as source the last built navigation exp, in order to call it
recursively.
I've tried all kinds of possibilities but still haven't found something
good. In the end, I want to have just one NavigationOrAttributeCallExp
element, that has as source all the chain of elements.
Any suggestions, please? Thank you!
Regards,
Cosmin
|
|
|
Powered by
FUDForum. Page generated in 0.02778 seconds