alexander wrote:
sorry to bother again ... i downloaded antlr's sources and a grep -r "output \?= \?template" `find -name *.g*`to find any grammars with output=template results in one reference, which is commented out: ./tool/src/main/antlr/org/antlr/grammar/v3/ActionTranslator.g: // output=template; TODO: can we make tokens return templates somehow? Terence Parr schrieb: : { $st = %sometemplate();
}
a=something { %{$st}.a = $a; }
(
{b=maybe { %{$st}.b = $b; }
)?
or a=something
( b=maybe
-> sometemplate(a={$a.st}, b={$b.st})
| -> sometemplate(a={$a.st})
)sometemplate(a, b) ::= << <if(b)>b was here<endif> ...... >> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
