Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » View language
View language [message #1005462] Fri, 25 January 2013 09:31
Quentin Boucher is currently offline Quentin Boucher
Messages: 27
Registered: July 2012
Junior Member
Hello,

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!
Previous Topic:Brother can you spare a grammar?
Next Topic:Compile Xtext-generated DSL from command line
Goto Forum:
  


Current Time: Tue Jul 22 17:40:29 EDT 2014

Powered by FUDForum. Page generated in 0.01459 seconds