[antlr-interest] Faster expression parsing for ANTLR
jimi at temporal-wave.com
Wed Dec 17 16:15:43 PST 2008
On Wed, 17 Dec 2008 14:51:34 -0800, Zenzike <zenzike at gmail.com> wrote:
> I have just started playing with ANTLR, and it's been a pretty fun ride
> so far,
> but I'm having troubles with a gated semantic predicate that has a
> rule parameter
> in it -- when it gets hoisted, the parameter goes out of scope.
Instead of using a rule parameter in the predicate, assign the rule parameter to a scope variable. The 'scope' is never out of scope unless you found a path to a rule where it was not created.
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the antlr-interest