mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 18:23:03 +00:00
doc: fix documentation of YYERROR.
* doc/bison.texinfo (Table of Symbols): Fix the documentation of YYERROR by copying that from "Action Features".
This commit is contained in:
@@ -9933,7 +9933,7 @@ Return immediately from the parser, indicating success.
|
|||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@deffn {Statement} {return YYERROR;}
|
@deffn {Statement} {return YYERROR;}
|
||||||
Start error recovery without printing an error message.
|
Start error recovery (without printing an error message).
|
||||||
@xref{Error Recovery}.
|
@xref{Error Recovery}.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@@ -10911,10 +10911,11 @@ after a syntax error. @xref{Error Recovery}.
|
|||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@deffn {Macro} YYERROR
|
@deffn {Macro} YYERROR
|
||||||
Macro to pretend that a syntax error has just been detected: call
|
Cause an immediate syntax error. This statement initiates error
|
||||||
@code{yyerror} and then perform normal error recovery if possible
|
recovery just as if the parser itself had detected an error; however, it
|
||||||
(@pxref{Error Recovery}), or (if recovery is impossible) make
|
does not call @code{yyerror}, and does not print any message. If you
|
||||||
@code{yyparse} return 1. @xref{Error Recovery}.
|
want to print an error message, call @code{yyerror} explicitly before
|
||||||
|
the @samp{YYERROR;} statement. @xref{Error Recovery}.
|
||||||
|
|
||||||
For Java parsers, this functionality is invoked using @code{return YYERROR;}
|
For Java parsers, this functionality is invoked using @code{return YYERROR;}
|
||||||
instead.
|
instead.
|
||||||
|
|||||||
Reference in New Issue
Block a user