* bootstrap (gnulib_modules): Add strverscmp.

* lib/.cvsignore: Add strverscmp.c, strverscmp.h.
* m4/.cvsignore: Add strverscmp.m4.
* src/parse-gram.y (%require): New token, new rule.
(version_check): New.
* src/scan-gram.l (%require): Adjust.
* tests/input.at (AT_REQUIRE): New.
Use it.
* doc/bison.texinfo (Require Decl): New.
(Calc++ Parser): Use %require.
This commit is contained in:
Akim Demaille
2005-10-02 18:49:15 +00:00
parent 21667f64cd
commit b50d2359d7
11 changed files with 491 additions and 380 deletions

8
NEWS
View File

@@ -5,6 +5,9 @@ Changes in version 2.1a:
* DJGPP support added.
* %require "VERSION"
To specify the youngest version of Bison accepted by the grammar file.
* lalr1.cc: The token and value types are now class members.
The tokens where defined as free form enums and cpp macros. YYSTYPE
was defined as a free form union. Both are now class members:
@@ -13,8 +16,11 @@ Changes in version 2.1a:
If you do not want or can update to this scheme, the directive
`%define "global_tokens_and_yystype" "1"' triggers the global
definition of tokens and YYSTYPE.
definition of tokens and YYSTYPE. This change is suitable both
for previous releases of Bison, and this one.
If you wish to update, then make sure older version of Bison will
fail using `%require "2.1a"'.
Changes in version 2.1, 2005-09-16: