Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » What's the meaning of the operator "row" (=>) in Xtext?
What's the meaning of the operator "row" (=>) in Xtext? [message #789638] Fri, 03 February 2012 08:11 Go to next message
kisito Missing name is currently offline kisito Missing nameFriend
Messages: 16
Registered: November 2011
Junior Member
Hi
Look this example taken from Xbase.text

XCastedExpression returns XExpression:
	XMemberFeatureCall (=>({XCastedExpression.target=current} 'as') type=JvmTypeReference)*
;



i don't understand this rule because i don't see anywhere a documentation explaining the meaning of the operator "row" (=>)

Re: What's the meaning of the operator "row" (=>) in Xtext? [message #789647 is a reply to message #789638] Fri, 03 February 2012 08:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi, this is a Syntactic Predicate. Regards Christian

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: What's the meaning of the operator "row" (=>) in Xtext? [message #789664 is a reply to message #789647] Fri, 03 February 2012 08:47 Go to previous messageGo to next message
kisito Missing name is currently offline kisito Missing nameFriend
Messages: 16
Registered: November 2011
Junior Member
Thank's Christian

But for me the term "Syntatic predicate" is not more clear. How to have more explanation or a link where it's documented?
Best regard
Re: What's the meaning of the operator "row" (=>) in Xtext? [message #789677 is a reply to message #789664] Fri, 03 February 2012 09:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
http://dslmeinte.wordpress.com/2011/12/05/using-syntactic-predicates-in-xtext-part-1/

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: What's the meaning of the operator "row" (=>) in Xtext? [message #790520 is a reply to message #789638] Sat, 04 February 2012 11:30 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
It's in the docs:

http://www.eclipse.org/Xtext/documentation/2_1_0/020-grammar-language.php#antlr_errors

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 03.02.12 09:11, schrieb kisito Mising name:
> Hi
> Look this example taken from Xbase.text
>
> XCastedExpression returns XExpression:
> XMemberFeatureCall (=>({XCastedExpression.target=current} 'as')
> type=JvmTypeReference)*
> ;
>
>
> i don't understand this rule because i don't see anywhere a
> documentation explaining the meaning of the operator "row" (=>)
>
Previous Topic:DSL Instance and Maven
Next Topic:Comma Separated List
Goto Forum:
  


Current Time: Thu Apr 25 12:14:12 GMT 2024

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

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

Back to the top