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....

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: 14497
Registered: July 2009
Senior Member
the requirements you describe are very vague, but you can use IDerivedStateCOmputer to add/modify stuff in the AST

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :

[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: Fri Jun 09 11:54:48 GMT 2023

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

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

Back to the top