(no subject) [message #673407] |
Mon, 23 May 2011 14:16 |
Alexander Nittka Messages: 1193 Registered: July 2009 |
Senior Member |
|
|
Hi,
although the syntactic differences may not matter to you, the parser has to construct the model from the syntax.
int i1, i2, i3, i4;
boolean b1, b2, b3, b4;
is equivalent to
int i1;
boolean b1;
int i2;
...
but it is quite hard to define a grammar that will create the same model from both out of the box. You can adapt the model creation.
I'd rather provide utility methods for querying a class or work with an imported metamodel and add the custom methods to the corresponding classes.
Alex
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
|
|
|
Powered by
FUDForum. Page generated in 0.03455 seconds