[antlr-interest] Question about rule scopes
Olivier Lefevre
lefevrol at yahoo.com
Sun Feb 24 00:32:15 PST 2008
If a rule, say bar, can be invoked by more than one other rule and only one
these invoking rules, say foo, defines a scoped variable x that we wish to
access, then bar needs to know that it was invoked (perhaps through several
intermediates) by foo, otherwise $foo::x within bar would either fail or do
the wrong thing. Is that information available somehow?
I can think of other solutions to my problem but they are more verbose than
using a scope.
-- O.L.
More information about the antlr-interest
mailing list