Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Understanding Xtext syntax
Understanding Xtext syntax [message #1745404] Mon, 10 October 2016 07:29 Go to next message
Eclipse UserFriend
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 10:50 Go to previous messageGo to next message
Eclipse UserFriend
it means

- reference a JvmIdentifiableElement
- parse a OpMulti

so in general:

[ThingYourReference|TErminalOrDatatypeRuleToParse]
Re: Understanding Xtext syntax [message #1745448 is a reply to message #1745425] Mon, 10 October 2016 16:34 Go to previous messageGo to next message
Eclipse UserFriend
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 17:37 Go to previous message
Eclipse UserFriend
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: Thu Jul 17 16:48:08 EDT 2025

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

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

Back to the top