Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Validation with Xtext(Question about the field of application of Xtext)
Validation with Xtext [message #651408] Sun, 30 January 2011 16:00 Go to next message
Patrick Arnold is currently offline Patrick ArnoldFriend
Messages: 1
Registered: January 2011
Junior Member
Hey,

we consider to read up in Xtext for realizing a grammar, yet before we want to do this, we'd like to know whether our problem can be realized in Xtext and whether Xtext is the appropriate tool respectively.

We have a program which runs several algorithms A, B, C, ... which can be run consecutively and/or in parallel. Also, each algorithm can be run or not run. However, only a few combinations ("workflow") are defined as valid (feasible), so some algorithms cannot be run if not another algorithm has been run before (or vice versa), some algorithms can only be run in parallel (or not be run in parallel) etc.

For instance, we define algorithm B can only be run after A has been run, C and D can be run both in parallel or consecutively, E can only be run if A has not be run before etc. Do you think that developing such a grammar is possible in Xtext? It is also very important for us to verify such a workflow, e.g. to verify the workflow A, B, (E, G), C whether it matches the grammar (valid) or not (not valid) and if not, what the reason for this was (e.g. "The workflow is not valid, because C must not be run after E has been run"). Has Xtext such opportunities for validation/verification? This would be important for us to know before we try to create a grammar in Xtext.


Thank you in advance.

Best regards
Patrick
Re: Validation with Xtext [message #651409 is a reply to message #651408] Sun, 30 January 2011 16:12 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hello Patrick,

of course Xtext supports validation Wink
http://www.eclipse.org/Xtext/documentation/1_0_1/xtext.html# validation

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Xtext 2.0: which eclipse platform is required?
Next Topic:HELP! run a xtext-generator workflow (located in the parent workspace) programmatically
Goto Forum:
  


Current Time: Fri Apr 26 08:39:23 GMT 2024

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

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

Back to the top