]> git.saurik.com Git - bison.git/blob - NEWS
* src/files.c (compute_output_file_names): s/would be both named/
[bison.git] / NEWS
1 Bison News
2 ----------
3
4 Changes in version 1.34a:
5 \f
6 Changes in version 1.34, 2002-03-12:
7
8 * File name clashes are detected
9 $ bison foo.y -d -o foo.x
10 fatal error: header and parser would both be named `foo.x'
11
12 * A missing `;' at the end of a rule triggers a warning
13 In accordance with POSIX, and in agreement with other
14 Yacc implementations, Bison will mandate this semicolon in the near
15 future. This eases the implementation of a Bison parser of Bison
16 grammars by making this grammar LALR(1) instead of LR(2). To
17 facilitate the transition, this release introduces a warning.
18
19 * Revert the C++ namespace changes introduced in 1.31, as they caused too
20 many portability hassles.
21
22 * DJGPP support added.
23
24 * Fix test suite portability problems.
25 \f
26 Changes in version 1.33, 2002-02-07:
27
28 * Fix C++ issues
29 Groff could not be compiled for the definition of size_t was lacking
30 under some conditions.
31
32 * Catch invalid @n
33 As is done with $n.
34 \f
35 Changes in version 1.32, 2002-01-23:
36
37 * Fix Yacc output file names
38
39 * Portability fixes
40
41 * Italian, Dutch translations
42 \f
43 Changes in version 1.31, 2002-01-14:
44
45 * Many Bug Fixes
46
47 * GNU Gettext and %expect
48 GNU Gettext asserts 10 s/r conflicts, but there are 7. Now that
49 Bison dies on incorrect %expectations, we fear there will be
50 too many bug reports for Gettext, so _for the time being_, %expect
51 does not trigger an error when the input file is named `plural.y'.
52
53 * Use of alloca in parsers
54 If YYSTACK_USE_ALLOCA is defined to 0, then the parsers will use
55 malloc exclusively. Since 1.29, but was not NEWS'ed.
56
57 alloca is used only when compiled with GCC, to avoid portability
58 problems as on AIX.
59
60 * When the generated parser lacks debugging code, YYDEBUG is now 0
61 (as POSIX requires) instead of being undefined.
62
63 * User Actions
64 Bison has always permitted actions such as { $$ = $1 }: it adds the
65 ending semicolon. Now if in Yacc compatibility mode, the semicolon
66 is no longer output: one has to write { $$ = $1; }.
67
68 * Better C++ compliance
69 The output parsers try to respect C++ namespaces.
70 [This turned out to be a failed experiment, and it was reverted later.]
71
72 * Reduced Grammars
73 Fixed bugs when reporting useless nonterminals.
74
75 * 64 bit hosts
76 The parsers work properly on 64 bit hosts.
77
78 * Error messages
79 Some calls to strerror resulted in scrambled or missing error messages.
80
81 * %expect
82 When the number of shift/reduce conflicts is correct, don't issue
83 any warning.
84
85 * The verbose report includes the rule line numbers.
86
87 * Rule line numbers are fixed in traces.
88
89 * Swedish translation
90
91 * Parse errors
92 Verbose parse error messages from the parsers are better looking.
93 Before: parse error: unexpected `'/'', expecting `"number"' or `'-'' or `'(''
94 Now: parse error: unexpected '/', expecting "number" or '-' or '('
95
96 * Fixed parser memory leaks.
97 When the generated parser was using malloc to extend its stacks, the
98 previous allocations were not freed.
99
100 * Fixed verbose output file.
101 Some newlines were missing.
102 Some conflicts in state descriptions were missing.
103
104 * Fixed conflict report.
105 Option -v was needed to get the result.
106
107 * %expect
108 Was not used.
109 Mismatches are errors, not warnings.
110
111 * Fixed incorrect processing of some invalid input.
112
113 * Fixed CPP guards: 9foo.h uses BISON_9FOO_H instead of 9FOO_H.
114
115 * Fixed some typos in the documentation.
116
117 * %token MY_EOF 0 is supported.
118 Before, MY_EOF was silently renumbered as 257.
119
120 * doc/refcard.tex is updated.
121
122 * %output, %file-prefix, %name-prefix.
123 New.
124
125 * --output
126 New, aliasing `--output-file'.
127 \f
128 Changes in version 1.30, 2001-10-26:
129
130 * `--defines' and `--graph' have now an optionnal argument which is the
131 output file name. `-d' and `-g' do not change, they do not take any
132 argument.
133
134 * `%source_extension' and `%header_extension' are removed, failed
135 experiment.
136
137 * Portability fixes.
138 \f
139 Changes in version 1.29, 2001-09-07:
140
141 * The output file does not define const, as this caused problems when used
142 with common autoconfiguration schemes. If you still use ancient compilers
143 that lack const, compile with the equivalent of the C compiler option
144 `-Dconst='. autoconf's AC_C_CONST macro provides one way to do this.
145
146 * Added `-g' and `--graph'.
147
148 * The Bison manual is now distributed under the terms of the GNU FDL.
149
150 * The input and the output files has automatically a similar extension.
151
152 * Russian translation added.
153
154 * NLS support updated; should hopefully be less troublesome.
155
156 * Added the old Bison reference card.
157
158 * Added `--locations' and `%locations'.
159
160 * Added `-S' and `--skeleton'.
161
162 * `%raw', `-r', `--raw' is disabled.
163
164 * Special characters are escaped when output. This solves the problems
165 of the #line lines with path names including backslashes.
166
167 * New directives.
168 `%yacc', `%fixed_output_files', `%defines', `%no_parser', `%verbose',
169 `%debug', `%source_extension' and `%header_extension'.
170
171 * @$
172 Automatic location tracking.
173 \f
174 Changes in version 1.28, 1999-07-06:
175
176 * Should compile better now with K&R compilers.
177
178 * Added NLS.
179
180 * Fixed a problem with escaping the double quote character.
181
182 * There is now a FAQ.
183 \f
184 Changes in version 1.27:
185
186 * The make rule which prevented bison.simple from being created on
187 some systems has been fixed.
188 \f
189 Changes in version 1.26:
190
191 * Bison now uses automake.
192
193 * New mailing lists: <bug-bison@gnu.org> and <help-bison@gnu.org>.
194
195 * Token numbers now start at 257 as previously documented, not 258.
196
197 * Bison honors the TMPDIR environment variable.
198
199 * A couple of buffer overruns have been fixed.
200
201 * Problems when closing files should now be reported.
202
203 * Generated parsers should now work even on operating systems which do
204 not provide alloca().
205 \f
206 Changes in version 1.25, 1995-10-16:
207
208 * Errors in the input grammar are not fatal; Bison keeps reading
209 the grammar file, and reports all the errors found in it.
210
211 * Tokens can now be specified as multiple-character strings: for
212 example, you could use "<=" for a token which looks like <=, instead
213 of chosing a name like LESSEQ.
214
215 * The %token_table declaration says to write a table of tokens (names
216 and numbers) into the parser file. The yylex function can use this
217 table to recognize multiple-character string tokens, or for other
218 purposes.
219
220 * The %no_lines declaration says not to generate any #line preprocessor
221 directives in the parser file.
222
223 * The %raw declaration says to use internal Bison token numbers, not
224 Yacc-compatible token numbers, when token names are defined as macros.
225
226 * The --no-parser option produces the parser tables without including
227 the parser engine; a project can now use its own parser engine.
228 The actions go into a separate file called NAME.act, in the form of
229 a switch statement body.
230 \f
231 Changes in version 1.23:
232
233 The user can define YYPARSE_PARAM as the name of an argument to be
234 passed into yyparse. The argument should have type void *. It should
235 actually point to an object. Grammar actions can access the variable
236 by casting it to the proper pointer type.
237
238 Line numbers in output file corrected.
239 \f
240 Changes in version 1.22:
241
242 --help option added.
243 \f
244 Changes in version 1.20:
245
246 Output file does not redefine const for C++.
247
248 Local Variables:
249 mode: outline
250 End: