[PATCH 16/17] yacc.c: also count calls to YYERROR in yynerrs
Akim Demaille <[email protected]>
| Newsgroups | gmane.comp.parsers.bison.patches |
|---|---|
| Message-ID | <[email protected]> |
* data/skeletons/yacc.c: here.
---
data/skeletons/yacc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index e0327638..ff1cdb79 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -2037,6 +2037,7 @@ yyerrorlab:
label yyerrorlab therefore never appears in user code. */
if (0)
YYERROR;
+ ++yynerrs;
/* Do not reclaim the symbols of the rule whose action triggered
this YYERROR. */
--
2.28.0