Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [TCS] Expression and AndExp
[TCS] Expression and AndExp [message #4430] Fri, 29 February 2008 06:50 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:[TCS] Operators
Next Topic:[TCS] TCSZoo XPath
Goto Forum:
  


Current Time: Tue Apr 29 01:33:36 EDT 2025

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

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

Back to the top