Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtend 2: M2T how to skip generation of expression result in output file(Xtend 2: M2T how to skip generation of expression result in output file)
Xtend 2: M2T how to skip generation of expression result in output file [message #1777579] Thu, 30 November 2017 13:55 Go to next message
Zakir Meer is currently offline Zakir MeerFriend
Messages: 25
Registered: February 2016
Junior Member
Hello Experts,

During model to text transformation using Xtend 2:

I am looking for a way to skip generation of expressions result in text files


«var Integer i=0»
	
	«i=i+1»


In the above example, I want to skip the result of «i=i+1» in the text file, which is produced as a part of model to text.

Re: Xtend 2: M2T how to skip generation of expression result in output file [message #1777580 is a reply to message #1777579] Thu, 30 November 2017 13:57 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 11629
Registered: July 2009
Senior Member
you can do «i=i+1;""» or «{i=i+1;""}»

Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Xtend 2: M2T how to skip generation of expression result in output file [message #1777587 is a reply to message #1777580] Thu, 30 November 2017 14:22 Go to previous message
Zakir Meer is currently offline Zakir MeerFriend
Messages: 25
Registered: February 2016
Junior Member
below convention works:
«{i=i+1;""}»

Thanks Christian !!
Previous Topic:Questions about two problems with Xpect
Next Topic:Parsing from a tree
Goto Forum:
  


Current Time: Wed Jan 24 10:10:02 GMT 2018

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

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