mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +00:00
(Error Reporting, Table of Symbols):
yynerrs is the number of errors reported, not the number of errors encountered.
This commit is contained in:
@@ -4693,7 +4693,7 @@ preferable since it more accurately describes the return type for
|
|||||||
|
|
||||||
@vindex yynerrs
|
@vindex yynerrs
|
||||||
The variable @code{yynerrs} contains the number of syntax errors
|
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})
|
request a pure parser (@pxref{Pure Decl, ,A Pure (Reentrant) Parser})
|
||||||
then it is a local variable which only the actions can access.
|
then it is a local variable which only the actions can access.
|
||||||
|
|
||||||
@@ -8097,7 +8097,7 @@ Management}.
|
|||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@deffn {Variable} yynerrs
|
@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}.)
|
(In a pure parser, it is a local variable within @code{yyparse}.)
|
||||||
@xref{Error Reporting, ,The Error Reporting Function @code{yyerror}}.
|
@xref{Error Reporting, ,The Error Reporting Function @code{yyerror}}.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|||||||
Reference in New Issue
Block a user