Cross Reference to nested Elements [message #879930] |
Fri, 01 June 2012 02:36  |
Eclipse User |
|
|
|
Hi,
i have written the following grammar.
Module:
'Modul' name=ID
(forms+=Formular)+
dependency=Dependency
'ModulEnde';
Dependency:
'Ablauf'
conditions+=Condition+
'AblaufEnde'
;
Condition:
(field=[Field]) (type=ConditionType) '->' (targetElement=[FormElement])
;
Formular:
'Formular' name=ID
(formlabel=Label)?
(elements+=FormElement)*
'FormularEnde';
FormElement:
Field | Orgbox;
Orgbox:
'OrgEinheit' name=ID
(label=Label)?
(elements+=FormElement)*
'OrgEinheitEnde';
Field:
'Feld' (type='optional'|'looping')? name=ID ('maps' model=ModelElement)?
...
'FeldEnde';
My problem is that the rule "Condition" cannot reference to a "Field" or a "FormElement" which is nested in the "Formular" Element.
Any idea how i can solve this problem?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28895 seconds