[antlr-interest] need help with predicates

Richard Clark rdclark at gmail.com
Thu Aug 9 18:40:01 PDT 2007


On 8/9/07, Thomas Brandon <tbrandonau at gmail.com> wrote:

> I think you shouldn't declare the use of the scope here. I believe
> that makes ANTLR push a new copy of the scope onto the stack. So here
> where you just want to use it you shouldn't declare it.

If you're declaring values to pass to subrules, declare it. If you're
reading values set by a parent or ancestor, don't declare it.

 ...Richard


More information about the antlr-interest mailing list