Java: Fix syntax error handling without error token.

* data/lalr1.java (YYParser::parse): Here.
* tests/java.at: Add test case.
This commit is contained in:
Tim Landscheidt authored and Akim Demaille committed 2012-03-27 15:21:28 +02:00
1 parent bbaf618c3e
commit e34e97bcd7
2 files changed
+67 -1

No files matched your search

+1 -1
View File
@@ -642,7 +642,7 @@ m4_popdef([b4_at_dollar])])dnl
}
/* Pop the current state because it cannot handle the error token. */
if (yystack.height == 1)
if (yystack.height == 0)
return false;
]b4_locations_if([yyerrloc = yystack.locationAt (0);])[