Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] Affectation problem
[Xpand] Affectation problem [message #521425] Wed, 17 March 2010 15:02 Go to next message
MasterBoy  is currently offline MasterBoy Friend
Messages: 18
Registered: March 2010
Junior Member
Hi all,

I'm working on a project with Xtext and Xpand ( OpenArchitectureWare) and I have a problem with the assignment in an Xpand. In my grammar, I have a rule
Table: (Column = columns +) +
and
Column: length = INT.

in my file Xpand, I have a statement "FOREACH" on Column, and I want to add at each iteration the length value of current column to a variable that I declare before the statement "FOREACH".

I think that i can use a GLOBALVAR but i want to know if there are an other ways to do it.

Best regards

[Updated on: Wed, 17 March 2010 16:20]

Report message to a moderator

Re: [Xpand] Affectation problem [message #521480 is a reply to message #521425] Wed, 17 March 2010 17:45 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
see other post

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:[Xpand] Can Xpand process two input models together?
Next Topic:[Xpand] Modular code generation?
Goto Forum:
  


Current Time: Sat Apr 27 02:56:55 GMT 2024

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

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

Back to the top