[antlr-interest] Bug in Generated Parser?
antlr at mirality.co.nz
Thu Jul 17 14:23:39 PDT 2008
At 09:10 18/07/2008, Terence Parr wrote:
> BitSet followSet = new BitSet();
> BitSet localFollowSet = (BitSet)state.following[i];
>Note that it is creating a new BitSet at the start...it is
>removing only from that set.
Yes, the logic looks correct, but I think the variable names are
backwards -- "localFollowSet" contains the shared follow set and
"followSet" contains the local clone :)
More information about the antlr-interest