]> git.saurik.com Git - bison.git/commit
Remove some unnecessary differences between the pull parser code and
authorJoel E. Denny <jdenny@ces.clemson.edu>
Wed, 20 Dec 2006 07:48:57 +0000 (07:48 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Wed, 20 Dec 2006 07:48:57 +0000 (07:48 +0000)
commita06331788509386cd43b8cc1d2891126b372c5de
tree0cf801bfa42e12d51acd49bae982b6bdf212116c
parent8646b6a3fdd5991346314c57257dc8e855e12b2a
Remove some unnecessary differences between the pull parser code and
the push parser code.  This patch enables yynerrs in push mode.
* data/push.c: Reformat M4 a little.
(b4_yyerror_range): Remove and convert all uses to just yyerror_range.
(b4_declare_scanner_communication_variables): Don't omit yynerrs just
because push mode is on.  Instead, if pure mode is on, move yynerrs
to...
(b4_declare_parser_state_variables): ... here.
(yynerrs, yyerror_range): For push mode, #define each NAME in this list
to yyps->NAME so it can be used in yypush_parse.
(yypush_parse): Don't omit uses of yynerrs in push mode.
ChangeLog
data/push.c