[antlr-interest] Rule-local variables?
Johannes Luber
jaluber at gmx.de
Tue Jul 3 03:00:42 PDT 2007
Vaclav Barta wrote:
> Well, I certainly don't want recursive rules using a single variable,
> and considering I also have no idea what an ANTLR scope is, I think I'll
> go with a local variable in an @init block...
>
> Bye
> Vasek
>
Scopes are using stacks, so your concern is unfounded. Usually you don't
need to access the other slots of the stack, so it does look like using
a single variable.
Best regards,
Johannes Luber
More information about the antlr-interest
mailing list