[antlr-interest] Nested Stringtemplate creation inside actions
Felix Dorner
felix_do at web.de
Sun Jun 8 10:32:20 PDT 2008
Hey,
I've been trying to do something like that:
rule : a b c
{
$st = %s1(p1={%s2(p2={...})});
}
Doesnt seem to like that. Though it works inside rewrite syntax:
-> s1(p1={%s2...});
The big question is whether I should try to factor out my string
templates as much as possible, or pay some redundancy for better grammar
readability.
Felix
More information about the antlr-interest
mailing list