4 Changes in version 1.49a:
6 * False `Token not used' report fixed.
11 exp: '0' %prec useful;
13 where a token was used to set the precedence of the last rule,
14 bison reported both `useful' and `useless' as useless tokens.
16 * Revert the C++ namespace changes introduced in 1.31, as they caused too
17 many portability hassles.
20 Bison no longer dumps core when there are too many items, it just
24 The token end of file may be specified by the user, in which case,
25 the user symbol is used in the reports, the graphs, and the verbose
26 error messages instead of `$', which remains being the defaults.
30 %token YYEOF 0 "end of file"
32 Changes in version 1.31, 2002-01-14:
36 * GNU Gettext and %expect
37 GNU Gettext asserts 10 s/r conflicts, but there are 7. Now that
38 Bison dies on incorrect %expectations, we fear there will be
39 too many bug reports for Gettext, so _for the time being_, %expect
40 does not trigger an error when the input file is named `plural.y'.
42 * Use of alloca in parsers
43 If YYSTACK_USE_ALLOCA is defined to 0, then the parsers will use
44 malloc exclusively. Since 1.29, but was not NEWS'ed.
46 alloca is used only when compiled with GCC, to avoid portability
49 * When the generated parser lacks debugging code, YYDEBUG is now 0
50 (as POSIX requires) instead of being undefined.
53 Bison has always permitted actions such as { $$ = $1 }: it adds the
54 ending semicolon. Now if in Yacc compatibility mode, the semicolon
55 is no longer output: one has to write { $$ = $1; }.
57 * Better C++ compliance
58 The output parsers try to respect C++ namespaces.
61 Fixed bugs when reporting useless nonterminals.
64 The parsers work properly on 64 bit hosts.
67 Some calls to strerror resulted in scrambled or missing error messages.
70 When the number of shift/reduce conflicts is correct, don't issue
73 * The verbose report includes the rule line numbers.
75 * Rule line numbers are fixed in traces.
80 Verbose parse error messages from the parsers are better looking.
81 Before: parse error: unexpected `'/'', expecting `"number"' or `'-'' or `'(''
82 Now: parse error: unexpected '/', expecting "number" or '-' or '('
84 * Fixed parser memory leaks.
85 When the generated parser was using malloc to extend its stacks, the
86 previous allocations were not freed.
88 * Fixed verbose output file.
89 Some newlines were missing.
90 Some conflicts in state descriptions were missing.
92 * Fixed conflict report.
93 Option -v was needed to get the result.
97 Mismatches are errors, not warnings.
99 * Fixed incorrect processing of some invalid input.
101 * Fixed CPP guards: 9foo.h uses BISON_9FOO_H instead of 9FOO_H.
103 * Fixed some typos in the documentation.
105 * %token MY_EOF 0 is supported.
106 Before, MY_EOF was silently renumbered as 257.
108 * doc/refcard.tex is updated.
110 * %output, %file-prefix, %name-prefix.
114 New, aliasing `--output-file'.
116 Changes in version 1.30:
118 * `--defines' and `--graph' have now an optionnal argument which is the
119 output file name. `-d' and `-g' do not change, they do not take any
122 * `%source_extension' and `%header_extension' are removed, failed
127 Changes in version 1.29, 2001-09-07:
129 * The output file does not define const, as this caused problems when used
130 with common autoconfiguration schemes. If you still use ancient compilers
131 that lack const, compile with the equivalent of the C compiler option
132 `-Dconst='. autoconf's AC_C_CONST macro provides one way to do this.
134 * Added `-g' and `--graph'.
136 * The Bison manual is now distributed under the terms of the GNU FDL.
138 * The input and the output files has automatically a similar extension.
140 * Russian translation added.
142 * NLS support updated; should hopefully be less troublesome.
144 * Added the old Bison reference card.
146 * Added `--locations' and `%locations'.
148 * Added `-S' and `--skeleton'.
150 * `%raw', `-r', `--raw' is disabled.
152 * Special characters are escaped when output. This solves the problems
153 of the #line lines with path names including backslashes.
156 `%yacc', `%fixed_output_files', `%defines', `%no_parser', `%verbose',
157 `%debug', `%source_extension' and `%header_extension'.
160 Automatic location tracking.
162 Changes in version 1.28, 1999-07-06:
164 * Should compile better now with K&R compilers.
168 * Fixed a problem with escaping the double quote character.
170 * There is now a FAQ.
172 Changes in version 1.27:
174 * The make rule which prevented bison.simple from being created on
175 some systems has been fixed.
177 Changes in version 1.26:
179 * Bison now uses automake.
181 * New mailing lists: <bug-bison@gnu.org> and <help-bison@gnu.org>.
183 * Token numbers now start at 257 as previously documented, not 258.
185 * Bison honors the TMPDIR environment variable.
187 * A couple of buffer overruns have been fixed.
189 * Problems when closing files should now be reported.
191 * Generated parsers should now work even on operating systems which do
192 not provide alloca().
194 Changes in version 1.25, 1995-10-16:
196 * Errors in the input grammar are not fatal; Bison keeps reading
197 the grammar file, and reports all the errors found in it.
199 * Tokens can now be specified as multiple-character strings: for
200 example, you could use "<=" for a token which looks like <=, instead
201 of chosing a name like LESSEQ.
203 * The %token_table declaration says to write a table of tokens (names
204 and numbers) into the parser file. The yylex function can use this
205 table to recognize multiple-character string tokens, or for other
208 * The %no_lines declaration says not to generate any #line preprocessor
209 directives in the parser file.
211 * The %raw declaration says to use internal Bison token numbers, not
212 Yacc-compatible token numbers, when token names are defined as macros.
214 * The --no-parser option produces the parser tables without including
215 the parser engine; a project can now use its own parser engine.
216 The actions go into a separate file called NAME.act, in the form of
217 a switch statement body.
219 Changes in version 1.23:
221 The user can define YYPARSE_PARAM as the name of an argument to be
222 passed into yyparse. The argument should have type void *. It should
223 actually point to an object. Grammar actions can access the variable
224 by casting it to the proper pointer type.
226 Line numbers in output file corrected.
228 Changes in version 1.22:
232 Changes in version 1.20:
234 Output file does not redefine const for C++.