Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » syntactic predicates / references
syntactic predicates / references [message #1692234] Tue, 14 April 2015 12:36 Go to next message
roman stingler is currently offline roman stinglerFriend
Messages: 8
Registered: November 2014
Junior Member
Hi I want to use the SendSPIExpression and optionally CheckSPIExpression
but I want to be able to call other things in-between but CheckSPIExpression should always refer to the previous send command.

I don't want to have cross references due to necessary ID.
The problem I have is the code generation, because I have to generate



{
sendcommand
checkcommand
}



is there a possibility???

thanks in advance?

SendSPIExpression:
	{SendSPIExpression} 'send_spi' '(' spiParameter=SPIParameter ')' NEWLINE?
	(=> checkstatement=CheckSPIExpression)?;

CheckSPIExpression:
	{CheckSPIExpression} 'check_spi' '(' spiParameter=SPIParameter ')';
Re: syntactic predicates / references [message #1692267 is a reply to message #1692234] Tue, 14 April 2015 16:13 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13883
Registered: July 2009
Senior Member
Hi youmay look for derivedstatecomputer. There you can create the wanted model viam2m

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:RichString in Xbase
Next Topic:eContainer becomes null after model transformation
Goto Forum:
  


Current Time: Fri Apr 16 03:46:13 GMT 2021

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

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

Back to the top