Maybe I can distill my question a bit as follows:
I want to pass some information obtained by some sub rules to their super rules with a group templates. My current attempt to achieve this is to pass an empty parameter to the super template, and use it in the super template after it has been assigned proper value within the sub templates. E.g.,
Super_Rule
: Sub_Rule1 -> superTemplate(informationContainer={""})
| Sub_Rule2 -> superTemplate(informationContainer={""})
;
Sub_Rule1
: blabla1 -> subTemplate1()
;
Sub_Rule2
: blabla2 -> subTemplate2()
;
================================
superTemplate(informationContainer) ::= <<
super_blabla
<informationContainer>
>>
subTemplate1() ::= <<
I want some assignment like "informationContainer=string1" here
>>
subTemplate2() ::= <<
I want some assignment like "informationContainer=string2" here
>>
Besides, if the subrule-assigning method turns out to be not supported by string template, is there any suggestion for an alternative approach? Thank you very much.
Regards,
Meng