diff options
author | Theophile Ranquet <ranquet@lrde.epita.fr> | 2012-11-23 17:30:47 +0000 |
---|---|---|
committer | Theophile Ranquet <ranquet@lrde.epita.fr> | 2012-11-29 11:08:36 +0100 |
commit | 6428a8a4a569b0b7ac1b84bdd78efc3fe18160ca (patch) | |
tree | 718920dbd33581f967ea116a091f3babaa7c33f0 /tests/local.at | |
parent | dbb998364f6a3057ab65a5ed4b6190396cf5eaf2 (diff) | |
download | bison-6428a8a4a569b0b7ac1b84bdd78efc3fe18160ca.tar.gz |
yacc.c: support "%define api.pure full"
This makes the interface for yyerror() pure without the need for a spurious
parse_param.
* data/yacc.c (b4_pure_if, b4_pure_flag): New definition, accept three states.
(b4_yacc_pure_if): Rename as...
(b4_yyerror_arg_loc_if): This, and use b4_pure_flag.
* tests/actions.at (%define api.pure): Modernize.
* test/calc.at (Simple LALR Calculator): Modernize.
* tests/local.at (AT_YYERROR_ARG_LOC_IF): Adjust.
Diffstat (limited to 'tests/local.at')
-rw-r--r-- | tests/local.at | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/local.at b/tests/local.at index b7cefaaf..48afab83 100644 --- a/tests/local.at +++ b/tests/local.at @@ -168,6 +168,7 @@ m4_pushdef([AT_API_PREFIX], m4_pushdef([AT_YYERROR_ARG_LOC_IF], [AT_LOCATION_IF([AT_PURE_IF([m4_bmatch([$3], m4_quote(m4_join([\|], + [%define api.pure "?full"?], [%glr-parser], [%parse-param], [%skeleton "?glr.c"?])), @@ -355,6 +356,7 @@ static }]dnl ]) +# AT_YYERROR_FORMALS # AT_YYERROR_PROTOTYPE # AT_YYERROR_DECLARE_EXTERN # AT_YYERROR_DECLARE |