void yyerror (char const *msg);
%}
-%pure-parser %define push_pull "push"
+%define api.pure %define api.push_pull "push"
%%
}
]])
-AT_CHECK([[bison -o input.c input.y]])
+AT_BISON_CHECK([[-o input.c input.y]])
AT_COMPILE([[input]])
AT_PARSER_CHECK([[./input]])
int yylex (void);
%}
-%define push_pull "both"
+%define api.push_pull "both"
%%
}
]])
-AT_CHECK([[bison -o input.c input.y]])
+AT_BISON_CHECK([[-o input.c input.y]])
AT_COMPILE([[input]])
AT_PARSER_CHECK([[./input]], 0, [],
[[cannot allocate multiple impure push-parser instances
AT_DATA([[input.y]],
[[%glr-parser
-%define push_pull "push"
+%define api.push_pull "push"
%%
start: ;
]])
-AT_CHECK([[bison input.y]], [0], [],
-[[input.y:2.9-17: warning: %define variable `push_pull' is not used
+AT_BISON_CHECK([[input.y]], [0], [],
+[[input.y:2.9-21: warning: %define variable `api.push_pull' is not used
]])
AT_CLEANUP