Variables through the grammar and the UML model [message #640171] |
Fri, 19 November 2010 12:51 |
Filipe Braida Messages: 2 Registered: November 2010 |
Junior Member |
|
|
Hi,
I'm using the tool a little time and I'm having some difficulties. I followed the directions on this topic (LINK) and get put to work by reference to UML.
But my objective is to use variables that are in the model or that are declared in code. Below is a summary of the grammar:
import 'http://www.eclipse.org/uml2/3.0.0/UML' as umlMM
MyClassRef:
referencedClass=[umlMM::Class];
IdClass:
MyClassRef |
var={ID};
Assignment:
var=ID EQUALS expression=Expression;
Expression:
Add_Code;
Add_Code:
'ADD_CODE' '(' varClass=IdClass ')';
Only classes derived validates the model, but does not accept the declared variables.
Appreciate the help!
Filipe Braida
[Updated on: Fri, 19 November 2010 12:52] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03223 seconds