Lines Matching full:yyerror
233 * Error Reporting:: You must supply a function @code{yyerror}.
947 void yyerror (char const *);
1129 @findex YYERROR
1130 @cindex @acronym{GLR} parsers and @code{YYERROR}
1131 Another Bison feature requiring special consideration is @code{YYERROR}
1134 During deterministic @acronym{GLR} operation, the effect of @code{YYERROR} is
1240 function @code{yyerror} and the parser function @code{yyparse} itself.
1332 printer @code{yyerror} here, along with any other global identifiers
1411 void yyerror (char const *);
1433 The forward declarations for @code{yylex} and @code{yyerror} are
1719 function @code{yyerror} to print an error message (usually but not
1721 @code{yyerror} (@pxref{Interface, ,Parser C-Language Interface}), so
1730 yyerror (char const *s)
1737 After @code{yyerror} returns, the Bison parser may recover from the error
1751 definitions of @code{yylex}, @code{yyerror} and @code{main} go at the
1770 functions in the input file (@code{yylex}, @code{yyerror} and @code{main})
1837 void yyerror (char const *);
1869 The functions @code{yylex}, @code{yyerror} and @code{main} can be the
1914 error. All we have handled is error reporting with @code{yyerror}.
1916 @code{yyerror}. This means that an erroneous input line causes the
1935 and parsing will continue. (The @code{yyerror} function is still called
1939 difference between @code{yyerrok} and @code{yyerror}; neither one is a
1981 void yyerror (char const *);
2218 void yyerror (char const *);
2358 yyerror (char const *s)
2699 definitions of @code{yylex} and @code{yyerror} often go here. Because
2701 to declare functions like @code{yylex} and @code{yyerror} in the Prologue,
3985 error via @code{YYERROR} are not discarded automatically. As a rule
4098 Reporting Function @code{yyerror}}). The convention for calling
4226 is @code{yyparse}, @code{yylex}, @code{yyerror}, @code{yynerrs},
4338 @code{yyerror}, @code{yynerrs}, @code{yylval}, @code{yylloc},
4371 * Error Reporting:: You must supply a function @code{yyerror}.
4699 @section The Error Reporting Function @code{yyerror}
4701 @findex yyerror
4708 macro @code{YYERROR} (@pxref{Action Features, ,Special Features for Use
4712 reporting function named @code{yyerror}, which you must supply. It is
4727 if memory is exhausted, @code{yyparse} calls @code{yyerror} in the usual
4732 they are passed to @code{yyerror}. @xref{Internationalization}.
4739 yyerror (char const *s)
4748 After @code{yyerror} returns to @code{yyparse}, the latter will attempt
4753 Obviously, in location tracking pure parsers, @code{yyerror} should have
4758 @code{yyerror} are:
4761 void yyerror (char const *msg); /* Yacc parsers. */
4762 void yyerror (YYLTYPE *locp, char const *msg); /* GLR parsers. */
4768 void yyerror (int *nastiness, char const *msg); /* Yacc parsers. */
4769 void yyerror (int *nastiness, char const *msg); /* GLR parsers. */
4772 Finally, @acronym{GLR} and Yacc parsers share the same @code{yyerror} calling
4794 void yyerror (YYLTYPE *locp,
4801 uses @code{yyerror}. Bison-generated code always ignores the returned
4802 value, so @code{yyerror} can return any type, including @code{void}.
4803 Also, @code{yyerror} can be a variadic function; that is why the
4806 Traditionally @code{yyerror} returns an @code{int} that is always
4809 @code{yyerror}.
4885 @deffn {Macro} YYERROR;
4886 @findex YYERROR
4889 does not call @code{yyerror}, and does not print any message. If you
4890 want to print an error message, call @code{yyerror} explicitly before
4891 the @samp{YYERROR;} statement. @xref{Error Recovery}.
5847 calls @code{yyerror} and then returns 2.
6129 void yyerror (char const *);
6980 @code{yyerror} and @code{main} functions. These default
6987 If you use the Yacc library's @code{yyerror} function, you should
6988 declare @code{yyerror} as follows:
6991 int yyerror (char const *);
6994 Bison ignores the @code{int} value returned by this @code{yyerror}.
8218 when @code{yyerror} is called.
8340 function @code{yyerror} is not called. @xref{Parser Function, ,The
8383 @deffn {Macro} YYERROR
8385 @code{yyerror} and then perform normal error recovery if possible
8390 @deffn {Function} yyerror
8393 Reporting Function @code{yyerror}}.
8399 when @code{yyerror} is called. It doesn't matter what definition you
8457 yyerror}}.
8693 @c LocalWords: yyerror pxref LR yylval cindex dfn LALR samp gpl BNF xref