|
Re: Dynamic Model Evolution in xText based DSLs [message #667491 is a reply to message #667430] |
Fri, 29 April 2011 06:54 |
Sebastian Zarnekow 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!
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02823 seconds