Enumeration Type [message #24476] |
Mon, 19 March 2007 16:16 |
Eclipse User |
|
|
|
Originally posted by: yassin_chkouri.yahoo.fr
Hello,
i have problem with enumeration. when i write :
if(st.b = #lazy)
there are an error message compilation : " Expecting NAME, found 'lazy' ".
when i show the documentation of ATL there are the same expression :
if(aPerson.gender = #male)
some one can help me
thank in advance
Yassin
|
|
|
Re: Enumeration Type [message #24641 is a reply to message #24476] |
Mon, 19 March 2007 16:47 |
Eclipse User |
|
|
|
Originally posted by: marcos.didonet-del-fabro.univ-nantes.fr
Hello,
this happens because "lazy" is an ATL keyword (to define lazy rules).
If you want to use the lazy word anyway, you write it under ". For example: #"lazy".
There is an post on the ATL archive about this topic:
http://www.sciences.univ-nantes.fr/lina/atl/www/atl_discussi on_archive/2062.html
Regards,
Marcos.
yassin wrote:
> Hello,
> i have problem with enumeration. when i write : if(st.b = #lazy)
> there are an error message compilation : " Expecting NAME, found 'lazy' ".
> when i show the documentation of ATL there are the same expression :
> if(aPerson.gender = #male)
>
> some one can help me
> thank in advance
>
> Yassin
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02544 seconds