From 8a2800e787cfb3e8f59480b8f50ba204e01f9071 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 20 Sep 2005 06:01:50 +0000 Subject: [PATCH] (Error Reporting, Table of Symbols): yynerrs is the number of errors reported, not the number of errors encountered. --- doc/bison.texinfo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/bison.texinfo b/doc/bison.texinfo index c384d2d4..4cc32bea 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -4693,7 +4693,7 @@ preferable since it more accurately describes the return type for @vindex yynerrs The variable @code{yynerrs} contains the number of syntax errors -encountered so far. Normally this variable is global; but if you +reported so far. Normally this variable is global; but if you request a pure parser (@pxref{Pure Decl, ,A Pure (Reentrant) Parser}) then it is a local variable which only the actions can access. @@ -8097,7 +8097,7 @@ Management}. @end deffn @deffn {Variable} yynerrs -Global variable which Bison increments each time there is a syntax error. +Global variable which Bison increments each time it reports a syntax error. (In a pure parser, it is a local variable within @code{yyparse}.) @xref{Error Reporting, ,The Error Reporting Function @code{yyerror}}. @end deffn -- 2.45.2