]> git.saurik.com Git - bison.git/commit - tests/input.at
For push mode, add pull wrappers around yypush_parse.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 25 Dec 2006 18:21:52 +0000 (18:21 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 25 Dec 2006 18:21:52 +0000 (18:21 +0000)
commitc3d503425f8014b432601a33b3398446d63b5963
tree34de2fbd670c05a1e1c27aed82e885ffb674c3ae
parent94ebeba53ffd20afbc5d0c9caa3c80c40e910e4c
For push mode, add pull wrappers around yypush_parse.
* data/push.c: (b4_generate_macro_args, b4_parenthesize): New macros.
(yypull_parse): New function wrapping yypush_parse.
(yyparse): New #define wrapping yypull_parse.
* tests/calc.at (_AT_DATA_CALC_Y): Call yyparse even when %push-parser
is declared.
* tests/headers.at (export YYLTYPE): Make yylex global.  For push mode,
prototype yylex in the module that calls yyparse, and don't prototype
yyparse there.  Otherwise, the yyparse expansion won't compile.
* tests/input.at (Torturing the Scanner): Likewise.
ChangeLog
data/push.c
tests/calc.at
tests/headers.at
tests/input.at