]> git.saurik.com Git - bison.git/commit - ChangeLog
Fix bug such that the first pushed token's value and location are
authorJoel E. Denny <jdenny@ces.clemson.edu>
Wed, 20 Dec 2006 06:46:20 +0000 (06:46 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Wed, 20 Dec 2006 06:46:20 +0000 (06:46 +0000)
commit8646b6a3fdd5991346314c57257dc8e855e12b2a
tree0d6e767a6bb442e613e366893cae0f59ace4d7bf
parent9baf4d74a62f21448a30109ccc60efae22229a98
Fix bug such that the first pushed token's value and location are
sometimes overwritten (sometimes by %initial-action) before being used.
* data/push.c (yypush_parse): Rename arguments yynchar, yynlval, and
yynlloc to yypushed_char, yypushed_val, and yypushed_loc for clarity.
For the first yypush_parse invocation, initialize yychar to YYEMPTY to
more closely mimic the pull parser logic.
Don't copy the pushed token to yychar, yylval, and yylloc until it's
time to read a token, which is after any initialization of yylval and
yylloc.
(gottoken): Rename label to...
(yyread_pushed_token): ... for clarity and to avoid infringing on the
user namespace.
ChangeLog
data/push.c