bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 16/17] yacc.c: also count calls to YYERROR in yynerrs


From: Akim Demaille
Subject: [PATCH 16/17] yacc.c: also count calls to YYERROR in yynerrs
Date: Sun, 20 Sep 2020 10:37:48 +0200

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]