]> git.saurik.com Git - bison.git/commitdiff
java: push: do not reset the error counter
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 21 Jun 2013 09:17:05 +0000 (11:17 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Fri, 21 Jun 2013 09:17:05 +0000 (11:17 +0200)
* data/lalr1.java (parse): here, when in push-pull is in "both" mode.
This breaks the test suite, for instance
make check TESTSUITEFLAGS='-d 388 BISON_USE_PUSH_FOR_PULL=1'.
More generally make maintainer-push-check.

data/lalr1.java

index d226ce3c710a2903bfcc7c582b50bee700a9ae8f..159882395d689f892106231267e8b4fb9af15ade 100644 (file)
@@ -899,7 +899,6 @@ b4_both_if([[
 ]b4_locations_if([dnl
         b4_location_type yyloc = new b4_location_type (yylexer.getStartPos (),
                                               yylexer.getEndPos ());])[
 ]b4_locations_if([dnl
         b4_location_type yyloc = new b4_location_type (yylexer.getStartPos (),
                                               yylexer.getEndPos ());])[
-        this.yyerrstatus_ = 0;
         ]b4_locations_if([status = push_parse(token,lval,yyloc);],[
         status = push_parse(token,lval);])[
       } while (status == YYMORE);
         ]b4_locations_if([status = push_parse(token,lval,yyloc);],[
         status = push_parse(token,lval);])[
       } while (status == YYMORE);