]> git.saurik.com Git - bison.git/commit
yacc.c: support "%define api.pure full"
authorTheophile Ranquet <ranquet@lrde.epita.fr>
Fri, 23 Nov 2012 17:30:47 +0000 (17:30 +0000)
committerTheophile Ranquet <ranquet@lrde.epita.fr>
Thu, 29 Nov 2012 10:08:36 +0000 (11:08 +0100)
commit6428a8a4a569b0b7ac1b84bdd78efc3fe18160ca
tree718920dbd33581f967ea116a091f3babaa7c33f0
parentdbb998364f6a3057ab65a5ed4b6190396cf5eaf2
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.
data/yacc.c
tests/actions.at
tests/calc.at
tests/local.at