Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Understanding Xtext syntax
Understanding Xtext syntax [message #1745404] Mon, 10 October 2016 11:29 Go to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
I am still lerning Xtext/Xbase and investigated the source of Xbase.xtext.
I found the following expression "feature=[types::JvmIdentifiableElement|OpMulti]" and want to know what is it's semantic ?
ObMulti is only terminal rule. Where does the JvmIdentifiableElement comes from when parsing or linking an Xbase XExpression ? How is it created ?
Re: Understanding Xtext syntax [message #1745425 is a reply to message #1745404] Mon, 10 October 2016 14:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
it means

- reference a JvmIdentifiableElement
- parse a OpMulti

so in general:

[ThingYourReference|TErminalOrDatatypeRuleToParse]


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Understanding Xtext syntax [message #1745448 is a reply to message #1745425] Mon, 10 October 2016 20:34 Go to previous messageGo to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
Thanks, that means the linking happens in the ScopeProvider ?
Re: Understanding Xtext syntax [message #1745450 is a reply to message #1745404] Mon, 10 October 2016 21:37 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Linking happens in the ILinikingService, which usually is the DefaultLinkingService. The service uses the IScopeProvider to resolve the parsed text to a named element from the scope.
Previous Topic:Problem during Xtext migration and resolving @Data active annotations
Next Topic:Output the parse trace of standalone Xtext parse
Goto Forum:
  


Current Time: Sat Apr 20 04:10:05 GMT 2024

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

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

Back to the top