Support yyerrok in lalr1.cc.

YYBACKUP is still to import back into lalr1.cc.

	* data/lalr1.cc (yyerrork, yyclearin, YYRECOVERING): Define.
This commit is contained in:
Akim Demaille
2008-08-04 23:19:26 +02:00
parent 86c0e78460
commit 98e26a9201
2 changed files with 10 additions and 0 deletions

View File

@@ -367,9 +367,13 @@ do { \
#endif /* !YYDEBUG */
#define yyerrok (yyerrstatus_ = 0)
#define yyclearin (yychar = yyempty_)
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrorlab
#define YYRECOVERING() (!!yyerrstatus_)
]b4_namespace_open[
#if YYERROR_VERBOSE