[TCS] Expression and AndExp [message #4430] |
Fri, 29 February 2008 06:50  |
Eclipse User |
|
|
|
Hi,
I noticed in the TS metamodel that the only subtype of abstract type
Expression is AndExp. Is this something historical or something
future-proof?
Also, my builder-based setup seems not to parse OneExp expressions, so I
guess that is again a TCS 2007 feature. Do you have a list of differences
between TCS2005 and TCS2007?
|
|
|
Re: [TCS] Expression and AndExp [message #5053 is a reply to message #4430] |
Tue, 11 March 2008 10:32  |
Eclipse User |
|
|
|
Hello,
> I noticed in the TS metamodel that the only subtype of abstract type
> Expression is AndExp. Is this something historical or something
> future-proof?
TCS expressions are used in the conditional construct:
(<condition-expression> ? <thenSequence> [: <elseSequence>])
Because of this, they have to be "bidirectional" (i.e., usable for both
pretty-printing and parsing).
This is why TCS expressions are not general purpose expressions. The
metamodel guides you into writing appropriate expressions.
> Also, my builder-based setup seems not to parse OneExp expressions, so I
> guess that is again a TCS 2007 feature. Do you have a list of
> differences between TCS2005 and TCS2007?
This should be part of the documentation indeed.
Best regards,
Frédéric Jouault
|
|
|
Powered by
FUDForum. Page generated in 0.06015 seconds