[antlr-interest] ANTLR3 STs and rewrite=true
Kailey Joanette
kaileyjo at bigbluebubble.com
Tue Mar 27 13:15:18 PDT 2007
To clear up my last post. why can I not do this:
classBody
: '{' (c+=classBodyDeclaration)* '}' ->
classBlock( body={$c} )
;
And have anything in those classBodyDeclarations come back as if they were
just using the default rewrite?
My grammar uses:
options
{
output=template;
rewrite=true;
}
When I use this rule instead I end up with
class Test
{
};
Even though there it should be
class Test
{
static int NUMBER[];
void ttt(){}
}
And it is in fact that if I don't have a template rewrite rule in there.
Kailey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070327/aa35f2c5/attachment.html
More information about the antlr-interest
mailing list