Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » (no subject)
(no subject) [message #673407] Mon, 23 May 2011 14:16
Alexander Nittka is currently offline Alexander NittkaFriend
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
Previous Topic:Type var, var, var;
Next Topic:Content assist inserting common prefixes automatically
Goto Forum:
  


Current Time: Thu Apr 25 15:28:13 GMT 2024

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

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

Back to the top