Many tests were using %defines because C++ skeletons used to require
it.
* tests/actions.at, tests/c++.at, tests/input.at, tests/regression.at:
Remove useless %defines.
AT_BISON_OPTION_PUSHDEFS([%locations %skeleton "$1" $2])
AT_DATA_GRAMMAR([[input.y]],
AT_BISON_OPTION_PUSHDEFS([%locations %skeleton "$1" $2])
AT_DATA_GRAMMAR([[input.y]],
-[[%defines /* FIXME: Required by lalr1.cc in Bison 2.6. */
-%locations
%debug
%skeleton "$1"
]$2[
%debug
%skeleton "$1"
]$2[
AT_BISON_OPTION_PUSHDEFS([%locations %skeleton "$1" $2])
AT_DATA_GRAMMAR([[input.y]],
AT_BISON_OPTION_PUSHDEFS([%locations %skeleton "$1" $2])
AT_DATA_GRAMMAR([[input.y]],
-[[%defines /* FIXME: Required by lalr1.cc in Bison 2.6. */
-%locations
%debug
%skeleton "$1"
]$2[
%debug
%skeleton "$1"
]$2[
AT_DATA_GRAMMAR([list.yy],
[[%debug
%skeleton "lalr1.cc"
AT_DATA_GRAMMAR([list.yy],
[[%debug
%skeleton "lalr1.cc"
%define api.value.type variant
]m4_bpatsubst([$1], [\\n], [
])[
%define api.value.type variant
]m4_bpatsubst([$1], [\\n], [
])[
[[%skeleton "lalr1.cc"
%locations
%debug
[[%skeleton "lalr1.cc"
%locations
%debug
[AT_BISON_OPTION_PUSHDEFS([%language "C++" %define api.namespace "$1"])
AT_DATA_GRAMMAR([[input.y]],
[[%language "C++"
[AT_BISON_OPTION_PUSHDEFS([%language "C++" %define api.namespace "$1"])
AT_DATA_GRAMMAR([[input.y]],
[[%language "C++"
%define api.namespace "]$1["
%union { int i; }
%define global_tokens_and_yystype
%define api.namespace "]$1["
%union { int i; }
%define global_tokens_and_yystype
%define parse.error verbose
%nonassoc 'a' ;
%define parse.error verbose
%nonassoc 'a' ;
int yylex (yy::parser::semantic_type *);
}
int yylex (yy::parser::semantic_type *);
}
%define api.value.type variant
%define parse.error verbose
%define parse.trace
%define api.value.type variant
%define parse.error verbose
%define parse.trace
AT_DATA_GRAMMAR([[input.yy]],
[[%skeleton "lalr1.cc"
AT_DATA_GRAMMAR([[input.yy]],
[[%skeleton "lalr1.cc"
-%defines // FIXME: Mandated in 2.6.
-AT_CHECK_API_PURE([[%language "c++" %defines]], [[]])
-AT_CHECK_API_PURE([[%language "c++" %defines]], [[false]])
-AT_CHECK_API_PURE([[%language "c++" %defines %glr-parser]], [[""]])
-AT_CHECK_API_PURE([[%language "c++" %defines %glr-parser]], [[false]])
+AT_CHECK_API_PURE([[%language "c++"]], [[]])
+AT_CHECK_API_PURE([[%language "c++"]], [[false]])
+AT_CHECK_API_PURE([[%language "c++" %glr-parser]], [[""]])
+AT_CHECK_API_PURE([[%language "c++" %glr-parser]], [[false]])
AT_CHECK_API_PURE([[%language "java"]], [[true]])
AT_CHECK_API_PURE([[%language "java"]], [[false]])
AT_CHECK_API_PURE([[%language "java"]], [[true]])
AT_CHECK_API_PURE([[%language "java"]], [[false]])
}
$1
%token ARROW INVALID NUMBER STRING DATA
}
$1
%token ARROW INVALID NUMBER STRING DATA
%verbose
%error-verbose
/* Grammar follows */
%verbose
%error-verbose
/* Grammar follows */
]AT_YYERROR_DECLARE])[
%}
$1
]AT_YYERROR_DECLARE])[
%}
$1
%error-verbose
%token A 1000
%token B
%error-verbose
%token A 1000
%token B
AT_BISON_OPTION_PUSHDEFS([%locations %skeleton "$1" %parse-param { int x } %parse-param { int y }])
AT_DATA_GRAMMAR([input.y],
AT_BISON_OPTION_PUSHDEFS([%locations %skeleton "$1" %parse-param { int x } %parse-param { int y }])
AT_DATA_GRAMMAR([input.y],
%skeleton "$1"
%union { int ival; }
%parse-param { int x }
%skeleton "$1"
%union { int ival; }
%parse-param { int x }