+2003-02-19 Akim Demaille <akim@epita.fr>
+
+ * data/lalr1.cc (b4_stack_depth_init, yy::Parser::initdepth_):
+ Remove, useless.
+ (YYABORT, YYACCEPT, YYERROR): New.
+ * tests/calc.at: Renable the lalr1.cc test.
+
2003-02-19 Akim Demaille <akim@epita.fr>
* tests/calc.at (AT_CHECK_CALC): Check different scenarios of
## Default values. ##
## ---------------- ##
-# Stack parameters.
-m4_define_default([b4_stack_depth_init], [200])
-
# Default Parser class name.
m4_define_default([b4_parser_class_name], [Parser])
static const int terror_;
static const int errcode_;
static const int ntokens_;
- static const int initdepth_;
static const unsigned user_token_number_max_;
static const TokenNumberType undef_token_;
# define YYCDEBUG if (0) cdebug_
#endif /* !YYDEBUG */
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrlab1
+
+
int
yy::]b4_parser_class_name[::parse ()
{
}
goto yyerrlab1;
- /* Error raised explicitly by an action. */
+
+ /*----------------------------------------------------.
+ | yyerrlab1 -- error raised explicitly by an action. |
+ `----------------------------------------------------*/
yyerrlab1:
if (errstatus == 3)
{
const int yy::]b4_parser_class_name[::terror_ = 1;
const int yy::]b4_parser_class_name[::errcode_ = 256;
const int yy::]b4_parser_class_name[::ntokens_ = ]b4_tokens_number[;
-const int yy::]b4_parser_class_name[::initdepth_ = ]b4_stack_depth_init[;
const unsigned yy::]b4_parser_class_name[::user_token_number_max_ = ]b4_user_token_number_max[;
const yy::]b4_parser_class_name[::TokenNumberType yy::]b4_parser_class_name[::undef_token_ = ]b4_undef_token_number[;
# AT_CHECK_CALC_LALR1_CC()
-# FIXME: YYERROR is not supported
-# AT_CHECK_CALC_LALR1_CC([%defines %pure-parser %locations])
+AT_CHECK_CALC_LALR1_CC([%defines %pure-parser %locations])
# AT_CHECK_CALC_LALR1_CC([%defines])
# AT_CHECK_CALC_LALR1_CC([%locations])