|Cross Referencing with a different attribute of a rule [message #1032430]
||Tue, 02 April 2013 21:43
| Roza Ghamari
Registered: January 2013
In my DSL, I need to cross reference a rule using a different variable than it's name. For example my rule is like:
name = ID "and" name2 = ID
This always gives errors and cannot be compiled.
I also tried adding a rule for name2 like
Name2String return ecore::EString:
The error is going away when I change the rule2 to "ref" [rule1|Name2String] but it still uses the default name attribute in rule1 to reference it.
Is there any way to solve this problem in xtext?
Thanks very much!
Powered by FUDForum
. Page generated in 0.01499 seconds