Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Recognizing identical parts
Recognizing identical parts [message #1403183] Tue, 22 July 2014 08:37
Dell Falcon is currently offline Dell FalconFriend
Messages: 2
Registered: July 2014
Junior Member
Part of my xText grammar is as follows:

'Transition' from=TransitionTerminal;
TransitionTerminal: StateTerminal|SubStateTerminal;
StateTerminal: 'st' state=[State|ID];
State: 'state' name=ID;

Now, I want to identify Transitions with the same TransitionTerminal as in 'from'. So, in xtend I would write:

var origin = transition.from
//to check 'from' given some other Transition t, I use:
if(origin==t.from) {}

However, the above if statement is never entered. I suppose that additional nesting based on the provided grammar needs to be provided. Any help on how to achieve this is welcome.
Previous Topic:Generation with maven fornax plugin and use of own fragments
Next Topic:Xtend throwing error on override method
Goto Forum:

Current Time: Tue Sep 22 14:56:20 GMT 2020

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

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

Back to the top