Referencing elements of one DSL from another DSL [message #1411013] |
Fri, 22 August 2014 07:07 |
Alex K Messages: 8 Registered: August 2014 |
Junior Member |
|
|
Hi all,
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 :
"eProxyURI: PATH_TO/runtime-New_configuration/testRules/src/output/example.rule#xtextLink_::0.0.0::1::/2"
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,
Alex
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04191 seconds