[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in Java parser
From: |
Angelo Borsotti |
Subject: |
Bug in Java parser |
Date: |
Sun, 20 Feb 2011 19:39:49 +0100 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug in Java parser,
Angelo Borsotti <=