mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
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:
@@ -1,3 +1,10 @@
|
||||
2011-03-06 Joel E. Denny <joeldenny@joeldenny.org>
|
||||
|
||||
java: fix parser tracing bug.
|
||||
* NEWS (2.5): Document.
|
||||
* data/lalr1.java (YYParser::YYStack::print): Don't skip top
|
||||
element.
|
||||
|
||||
2011-03-06 Joel E. Denny <joeldenny@joeldenny.org>
|
||||
|
||||
java: finish fixing parser stack popping bug.
|
||||
|
||||
2
NEWS
2
NEWS
@@ -357,6 +357,8 @@ Bison News
|
||||
*** The top element of each of the value stack and location stack is now
|
||||
cleared when popped so that it can be garbage collected.
|
||||
|
||||
*** Parser traces now print the top element of the stack.
|
||||
|
||||
* Changes in version 2.4.3 (2010-08-05):
|
||||
|
||||
** Bison now obeys -Werror and --warnings=error for warnings about
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user