[SOLVED] Disabling DSL metamodel source generation [message #1704188] |
Sat, 08 August 2015 10:47 |
Davide G Messages: 36 Registered: October 2013 |
Member |
|
|
Hi, i'm writing a grammar using Xtext that includes the following rules:
MyList
:
elements+=Element
| elements+=Element ',' elements+=Element
;
Element
:
name=ID
;
and i would like to implements the interface Iterable<EObject> to the class MyListImpl that
implements the data type for MyList rule. MyListImpl is automatically generated from Xtext every time I launch the .mwe2 script. However I would like Xtext to prevent from automatically generating and updating MyListImpl class, so I can add custom fields or methods to it and eventually changing the grammar rules without modifying every time the class MyListImpl. Is it possible to do this?
[Updated on: Sun, 09 August 2015 15:00] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02327 seconds