Skip to main content



      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 14:28 Go to next message
Eclipse UserFriend
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 14:31 Go to previous message
Eclipse UserFriend
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

[Updated on: Thu, 18 May 2017 14:34] by Moderator

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


Current Time: Thu May 22 09:44:58 EDT 2025

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

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

Back to the top