Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Maintaining Customized Xtext Grammar(How to maintain customised Xtext grammar when the DSL metamodel changes)
Maintaining Customized Xtext Grammar [message #1257566] Wed, 26 February 2014 15:23 Go to next message
Salome Maro is currently offline Salome MaroFriend
Messages: 15
Registered: January 2014
Junior Member
Hi,

I generate Xtext grammar from an ecore file. But since the grammar generated is not perfect I edit it manually to fit my needs. The problem comes when the meta model is updated, if I regenerate the grammar then I have to make the changes all over again. Is there a smart way to keep the customized changes when I update the meta model?


Re: Maintaining Customized Xtext Grammar [message #1257670 is a reply to message #1257566] Wed, 26 February 2014 17:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi I don't know of such a smart way besides not reimporting the grammar but adapting it manually

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Maintaining Customized Xtext Grammar [message #1257701 is a reply to message #1257670] Wed, 26 February 2014 18:02 Go to previous messageGo to next message
Salome Maro is currently offline Salome MaroFriend
Messages: 15
Registered: January 2014
Junior Member
Thanks for the reply. So this means that as the metamodel evolves then the grammar has to be modified manually to fit the metamodel, right?
Re: Maintaining Customized Xtext Grammar [message #1257747 is a reply to message #1257701] Wed, 26 February 2014 19:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Yes

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Maintaining Customized Xtext Grammar [message #1262350 is a reply to message #1257747] Mon, 03 March 2014 14:41 Go to previous message
Salome Maro is currently offline Salome MaroFriend
Messages: 15
Registered: January 2014
Junior Member
Thanks Christian!
Previous Topic:XText grammar with variable token terminators & embedded grammars
Next Topic:Add UML-Profiles to Xtext-Models
Goto Forum:
  


Current Time: Wed Apr 24 23:47:37 GMT 2024

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

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

Back to the top