| [news.eclipse.modeling.gmt.amw] Re: [ATL] Injection problem in qATL |
Hi Marcos, this is one of my rules:
Do you have any suggestion?
Marcos Didonet Del Fabro wrote:
Hi Ivano,
the code of the rules with error are in 'normal' ATL files or the code is injected using the .inject ('OUT','ebnf', <exp>) method?
There are two things to pay attention when developing called and lazy rules:
- in called rules, you should have a return expression at the end of the imperative part;
- in lazy rules, the type of the input pattern should be respected.
Regards,
Marcos
Ivano wrote:Hi Marcos, I am using the modified version of AMW4ATL and I still have problems:
when a called rule (that returns something) is executed I get an EmptyStack exception;
when a lazy rule is executed I get an ClassCastException;
These exceptions arise only if I use the modified version of AMW4ATL, do you have any idea about this issue??
Thank you, Ivano