Hello,

I have found a bug in the generation of java parsers, in file lalr.java,
line 264:

    java.util.Arrays.fill (valueStack, height - num + 1, height, null);

that should be replaced by:

    java.util.Arrays.fill (valueStack, height - num + 1, height + 1, null);

The original one does not clear the (old) top element contents. Actually, a
call
to pop(1) would decrement height, but clear nothing.

-Angelo Borsotti

Reply via email to