Folks

I have the following template def

emitMatchListReluctant(in,v1,v2,c2,v3,fail) ::= <<
<v1> = new LinkedList\<Form\>();
<v3> = new LinkedList\<Form\>();
matched = false;
for (Form <v2> : <in>) {
  <c2>
  if (!matched) {
    <v1>.add(<v2>);
  } else {
    <v3>.add(<v2>);
  }
}
if (!matched) {
  <if (fail)><fail><else>return false;<endif>
}
>>

c2 is a template argument passed into this template.  What I'd like to do is, 
where <c2> appears above, to pass an extra parameter to the template that is 
the actual parameter for c2.  Something like

        <c2 param=value>

to influence the expansion of <c2>

Is this possible?  If so, how?  I can't find it.

Thanks

        Bill

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to