|Referencing elements of one DSL from another DSL [message #1411013]
||Fri, 22 August 2014 07:07
| Alex K
Registered: August 2014
I have a problem with xtext and especially with the link between two grammars. I have two grammar : the grammar A with the extension .a and the grammar B with the extension .b which references elements from the grammar A.
Therefore, I followed this tutorial : http://christiandietrich.wordpress.com/2012/08/07/xtext-referencing-elements-of-one-dsl-from-another-dsl/
and everything works as expected. I have my grammar A and in my grammar B I can access elements from the grammar A (with the cross-references [A::Rule]).
The problem comes after. For my project, I would like to do some checking in my xtext file (for instance verify whether two rules created are identical) and in order to do that, I use EOL (epsilon object language). For the grammar A, everything works without problem but for the grammar B, when I want to check the elements which come from the grammar A, instead of having access to the attributes of the elements, I have this strange attribute :
I understand that xtext makes a link between the element in the grammar A and his copy in the grammar B but I would like to have access to all the attributes of this element in the grammar B (for example, the attribute 'name') instead of having only the attribute 'eProxuURI'.
Thanks for any help,
Powered by FUDForum
. Page generated in 0.02684 seconds