Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » non-grammar features in a model object(non-grammar features in a model object)
non-grammar features in a model object [message #1763702] Thu, 18 May 2017 18:28 Go to next message
Bob Frankel is currently offline Bob FrankelFriend
Messages: 12
Registered: July 2009
Junior Member
is there a way to add features to a model object (eg., Expression) that are *not* specified in grammar.... while i understand that a singleton cache could be used to hold these features (eg., type or evaluated value), it just feels more natural to have these features associated with the model object itself -- albeit these are set in some validation after parsing has finished....

thanks....
Re: non-grammar features in a model object [message #1763703 is a reply to message #1763702] Thu, 18 May 2017 18:31 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
the requirements you describe are very vague, but you can use IDerivedStateCOmputer http://xtextcasts.org/episodes/18-model-optimization to add/modify stuff in the AST

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Thu, 18 May 2017 18:34]

Report message to a moderator

Previous Topic:Hide parts of the textual representation in the editor
Next Topic:Resolver/ResourceSet behavior doubts
Goto Forum:
  


Current Time: Mon Sep 20 00:02:17 GMT 2021

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

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

Back to the top