|View language [message #1005462]
||Fri, 25 January 2013 14:31
| Quentin Boucher
Registered: July 2012
I have implemented a language (called A for simplicity) using Xtext thanks to your helpful feedback. Now I'm going to the next step: implement a view definition language for it. Basically, the idea of this language would be to split the model defined using the A language in order to separate the different concerns. My current idea is to propose an XPATH-like language (which still has to be defined). We will call it B.
Now, here is my question: according to your experience, what is the best way to implement views on models defined using an Xtext DSL? Furthermore, I need to check that the whole set of views covers all elements declared in the source model in A language.
A solution would be to behave like XPATH and, for each view define a method which returns its set of elements. Similarly, for A language a method returning the whole set of declared elements should be declared. Then, the union of the elements declared in the views should be compared the the complete set of elements.
What do you think of this solution? Can you propose simpler ones?
Thank you for your help!
Powered by FUDForum
. Page generated in 0.01555 seconds