[SOLVED]Validation- Grammar mixin semantic validation [message #1352049] |
Tue, 13 May 2014 09:25 |
emilio incerto Messages: 3 Registered: May 2012 Location: l'aquila |
Junior Member |
|
|
Hi guys
I'm developping a new textual dsl with xtext, I have splitted the whole grammar in 3 differents xtext projects related each other as follow:
- org.xtext.odata (odata.xtext)
- org.xtext.ogda extends org.xtext.odata (ogda.xtext)
- org.xtext.obcp extends org.xtext.odata (obcp.xtext)
The extending grammar include the base grammar with the "with" clause and everything works fine. I can use the rule of the super-grammar inside the sub-grammar and there are no generation errors.
Now, I have created many semantic validator classes for the rules specified in the odata grammar but these are not called during the validation of the model of the sub grammar.
There is a mechanism that allow me to include the super grammar validator classes during the validation of sub-grammar models?
I hope I explained it well, thanks
[Updated on: Tue, 13 May 2014 18:21] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02237 seconds