java: fix parser tracing bug.

* NEWS (2.5): Document.
* data/lalr1.java (YYParser::YYStack::print): Don't skip top
element.
(cherry picked from commit f0e2c228a0)
This commit is contained in:
Joel E. Denny
2011-03-06 22:27:28 -05:00
parent 1a33f4f608
commit 02803d55cd
3 changed files with 10 additions and 1 deletions

View File

@@ -326,7 +326,7 @@ b4_lexer_if([[
{
out.print ("Stack now");
for (int i = 0; i < height; i++)
for (int i = 0; i <= height; i++)
{
out.print (' ');
out.print (stateStack[i]);