Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Dynamic Model Evolution in xText based DSLs(How can I express time variability of (parts of) DSL grammar and models created on the basis of "evolving" grammars? )
Dynamic Model Evolution in xText based DSLs [message #667430] Thu, 28 April 2011 17:07 Go to next message
Dildar Mising name is currently offline Dildar Mising nameFriend
Messages: 4
Registered: April 2011
Junior Member
I am not a linguist but I guess one can formulate DSL design usecases where multiple variants of a DSL may have to be available in the same runtime environment such the a particular variant is selected based on specific runtime context.

Is this the same as saying that some DSLs may have to be context sensitive?

Let's say that I instantiate an object a1 that belonged to class A on 01/01/2011. 2 months down the line class A was changed due to business/system requirements and now became A' (on 03/01/2011). However, when I work with a1 I want the system to use behavior and structure that was represented by A, while using A' when new object are created.

In other words, can I express this in xText grammar using some sort of conditional composition predicated on "context parameters" ?

Thanks!

Re: Dynamic Model Evolution in xText based DSLs [message #667491 is a reply to message #667430] Fri, 29 April 2011 06:54 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Dildar,

I'm not sure that I fully understood your use case, but you could always
implement your services as you like, e.g. customize the factory that is
used by the parser to instantiate model elements to create a' instead of
a. However, Xtext has no 'native support' for using context parameters
to alter / adapt its behavior.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 28.04.11 19:07, schrieb Dildar:
> I am not a linguist but I guess one can formulate DSL design usecases
> where multiple variants of a DSL may have to be available in the same
> runtime environment such the a particular variant is selected based on
> specific runtime context.
> Is this the same as saying that some DSLs may have to be context sensitive?
>
> Let's say that I instantiate an object a1 that belonged to class A on
> 01/01/2011. 2 months down the line class A was changed due to
> business/system requirements and now became A' (on 03/01/2011). However,
> when I work with a1 I want the system to use behavior and structure that
> was represented by A, while using A' when new object are created.
>
> In other words, can I express this in xText grammar using some sort of
> conditional composition predicated on "context parameters" ?
>
> Thanks!
>
>
Previous Topic:Problem: XPand & JavaVMTypes
Next Topic:Scope Provider
Goto Forum:
  


Current Time: Thu Apr 25 19:23:13 GMT 2024

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

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

Back to the top