Skip to main content

Eclipse Community Forums
Forum Search:

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

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: Mon Feb 24 16:17:52 GMT 2020

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

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

Back to the top