# Bison Regressions. -*- Autotest -*-
-# Copyright 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Bison managed, when fed with `%token 'f' "f"' to #define 'f'!
AT_DATA([input.y],
-[[%token "end of file"
+[%{
+void yyerror (const char *s);
+int yylex (void);
+%}
+[%token "end of file"
%token 'a' "a"
%token "b" 'b'
%token "c" c
# Check only the tables. We don't use --no-parser, because it is
# still to be implemented in the experimental branch of Bison.
AT_CHECK([[sed -n 's/ *$//;/^static const.*\[\] =/,/^}/p' input.c]], 0,
-[[static const yy_token_number_type yytranslate[] =
+[[static const unsigned char yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
{
0, 256, 257, 258, 259, 260, 261, -1
};
-static const yy_token_number_type yyr1[] =
+static const unsigned char yyr1[] =
{
0, 7, 8, 9, 9, 10, 11
};
{
7, 3, 9, 4, 0, -1, 6, 5
};
+static const unsigned char yystos[] =
+{
+ 0, 3, 8, 9, 10, 4, 0, 6, 11, 5,
+ 8, 8
+};
]])
AT_CLEANUP