Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [TCS] EnumerationTemplate automatic
[TCS] EnumerationTemplate automatic [message #9985] Tue, 08 April 2008 06:18 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Problem injector TCS
Next Topic:[TCS] PropertyVal
Goto Forum:
  


Current Time: Wed Apr 16 17:41:49 EDT 2025

Powered by FUDForum. Page generated in 0.02869 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top