[TCS] EnumerationTemplate automatic [message #9985] |
Tue, 08 April 2008 06:18  |
Eclipse User |
|
|
|
Hi,
I notice the TCS Syntax has an attribute automatic in EnumerationTemplate.
However, I saw no difference in what was generated whether I used the
"auto" keyword or not.
So what is the meaning of automatic?
|
|
|
Re: [TCS] EnumerationTemplate automatic [message #10009 is a reply to message #9985] |
Tue, 08 April 2008 08:17  |
Eclipse User |
|
|
|
Hi Thibault,
> I notice the TCS Syntax has an attribute automatic in
> EnumerationTemplate. However, I saw no difference in what was generated
> whether I used the "auto" keyword or not.
> So what is the meaning of automatic?
The "auto" keyword is implemented in the metamodel and syntax of TCS,
but not in TCS2ANTLR.atl yet.
When it works, it will automatically create the mappings when the
keyword is the same as the literal.
For instance:
enumerationTemplate E
: #a = "a",
#b = "b",
#c = "c"
;
will be simplified into:
enumerationTemplate E auto;
In the mean time, we should add a constraint to make sure the "auto"
keyword is not used!.
Thanks notifying us.
Regards,
Frédéric Jouault
|
|
|
Powered by
FUDForum. Page generated in 0.02869 seconds