Skip to content

Commit

Permalink
Make x-deltat.y work with bison 3
Browse files Browse the repository at this point in the history
Bison 3 removed support for YYPARSE_PARAM and YYLEX_PARAM, breaking
x-deltat.y.  Use %parse-param and %lex-param instead.  (In Bison 3 we
could use just %param, but that doesn't work in 2.x.)  The parameter
added by %parse-param is also passed to yyerror, so adjust the macro
we use to suppress yyerror accordingly.

Also use "%define api.pure" instead of "%pure_parser", which was
deprecated in bison 2.3b.  (The correct spelling was actually
"%pure-parser", and bison 3 generates a warning about the underscore
spelling.)

Regenerate deltat.c using the new x-deltat.y and bison 3.0.2.

ticket: 7923
  • Loading branch information
greghudson committed Jun 1, 2014
1 parent 26a43af commit ca8207d
Show file tree
Hide file tree
Showing 2 changed files with 629 additions and 762 deletions.

0 comments on commit ca8207d

Please sign in to comment.