(Error Reporting, Table of Symbols):

yynerrs is the number of errors reported, not the number of
errors encountered.
This commit is contained in:
Paul Eggert
2005-09-20 06:01:50 +00:00
parent a9739e7c4c
commit 8a2800e787

View File

@@ -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