]>
Commit | Line | Data |
---|---|---|
6780ca7a DM |
1 | Bison News |
2 | ---------- | |
3af4feb2 | 3 | |
c7fb0b90 AD |
4 | Changes in version 2.1a: |
5 | ||
32b5b719 PE |
6 | * GLR, C++ LALR(1) parsers. |
7 | These parser skeletons are now distributed with the same special | |
8 | license exception that the C LALR(1) parser skeleton has had since | |
9 | Bison 1.24. Hence the FSF imposes no copyright restriction on the | |
10 | output of Bison when it is generating such parsers. | |
11 | ||
035aa4a0 PE |
12 | * %expect, %expect-rr |
13 | Incorrect numbers of expected conflicts are now actual errors, | |
14 | instead of warnings. | |
15 | ||
4b367315 AD |
16 | * GLR, YACC parsers. |
17 | The %parse-params are available in the %destructor's (and the | |
18 | experimental %printer's) as per the documentation. | |
19 | ||
302c0aee | 20 | * Bison now warns if it finds a stray `$' or `@' in an action. |
ad6a9b97 | 21 | |
b50d2359 | 22 | * %require "VERSION" |
2888e8b9 AD |
23 | To specify that the grammar file depends on features implemented in |
24 | Bison version VERSION or higher. | |
b50d2359 | 25 | |
fb9712a9 | 26 | * lalr1.cc: The token and value types are now class members. |
e14d0ab6 AD |
27 | The tokens were defined as free form enums and cpp macros. YYSTYPE |
28 | was defined as a free form union. They are now class members: | |
fb9712a9 AD |
29 | tokens are enumerations of the `yy::parser::token' struct, and the |
30 | semantic values have the `yy::parser::semantic_type' type. | |
31 | ||
32 | If you do not want or can update to this scheme, the directive | |
33 | `%define "global_tokens_and_yystype" "1"' triggers the global | |
b50d2359 AD |
34 | definition of tokens and YYSTYPE. This change is suitable both |
35 | for previous releases of Bison, and this one. | |
fb9712a9 | 36 | |
b50d2359 AD |
37 | If you wish to update, then make sure older version of Bison will |
38 | fail using `%require "2.1a"'. | |
fb9712a9 | 39 | |
302c0aee PE |
40 | * DJGPP support added. |
41 | ||
1bd0deda | 42 | Changes in version 2.1, 2005-09-16: |
1ce59070 | 43 | |
e14d0ab6 AD |
44 | * The C++ lalr1.cc skeleton supports %lex-param. |
45 | ||
a7db4add | 46 | * Bison-generated parsers now support the translation of diagnostics like |
baf785db PE |
47 | "syntax error" into languages other than English. The default |
48 | language is still English. For details, please see the new | |
0410a6e0 PE |
49 | Internationalization section of the Bison manual. Software |
50 | distributors should also see the new PACKAGING file. Thanks to | |
51 | Bruno Haible for this new feature. | |
1ce59070 | 52 | |
1a059451 PE |
53 | * Wording in the Bison-generated parsers has been changed slightly to |
54 | simplify translation. In particular, the message "memory exhausted" | |
55 | has replaced "parser stack overflow", as the old message was not | |
56 | always accurate for modern Bison-generated parsers. | |
57 | ||
258b75ca PE |
58 | * Destructors are now called when the parser aborts, for all symbols left |
59 | behind on the stack. Also, the start symbol is now destroyed after a | |
60 | successful parse. In both cases, the behavior was formerly inconsistent. | |
61 | ||
a7db4add | 62 | * When generating verbose diagnostics, Bison-generated parsers no longer |
72f000b0 PE |
63 | quote the literal strings associated with tokens. For example, for |
64 | a syntax error associated with '%token NUM "number"' they might | |
65 | print 'syntax error, unexpected number' instead of 'syntax error, | |
66 | unexpected "number"'. | |
67 | ||
82de6b0d | 68 | Changes in version 2.0, 2004-12-25: |
efeed023 | 69 | |
82de6b0d | 70 | * Possibly-incompatible changes |
d7e14fc0 | 71 | |
82de6b0d PE |
72 | - Bison-generated parsers no longer default to using the alloca function |
73 | (when available) to extend the parser stack, due to widespread | |
74 | problems in unchecked stack-overflow detection. You can "#define | |
75 | YYSTACK_USE_ALLOCA 1" to require the use of alloca, but please read | |
76 | the manual to determine safe values for YYMAXDEPTH in that case. | |
8dd162d3 | 77 | |
82de6b0d PE |
78 | - Error token location. |
79 | During error recovery, the location of the syntax error is updated | |
80 | to cover the whole sequence covered by the error token: it includes | |
81 | the shifted symbols thrown away during the first part of the error | |
82 | recovery, and the lookahead rejected during the second part. | |
18d192f0 | 83 | |
82de6b0d PE |
84 | - Semicolon changes: |
85 | . Stray semicolons are no longer allowed at the start of a grammar. | |
86 | . Semicolons are now required after in-grammar declarations. | |
e342c3be | 87 | |
82de6b0d PE |
88 | - Unescaped newlines are no longer allowed in character constants or |
89 | string literals. They were never portable, and GCC 3.4.0 has | |
90 | dropped support for them. Better diagnostics are now generated if | |
91 | forget a closing quote. | |
8dd162d3 | 92 | |
82de6b0d | 93 | - NUL bytes are no longer allowed in Bison string literals, unfortunately. |
f74b6f91 | 94 | |
82de6b0d | 95 | * New features |
1452af69 | 96 | |
82de6b0d | 97 | - GLR grammars now support locations. |
4febdd96 | 98 | |
82de6b0d PE |
99 | - New directive: %initial-action. |
100 | This directive allows the user to run arbitrary code (including | |
101 | initializing @$) from yyparse before parsing starts. | |
1452af69 | 102 | |
82de6b0d PE |
103 | - A new directive "%expect-rr N" specifies the expected number of |
104 | reduce/reduce conflicts in GLR parsers. | |
1452af69 | 105 | |
82de6b0d PE |
106 | - %token numbers can now be hexadecimal integers, e.g., `%token FOO 0x12d'. |
107 | This is a GNU extension. | |
4febdd96 | 108 | |
82de6b0d PE |
109 | - The option `--report=lookahead' was changed to `--report=look-ahead'. |
110 | The old spelling still works, but is not documented and will be | |
111 | removed. | |
1452af69 | 112 | |
82de6b0d | 113 | - Experimental %destructor support has been added to lalr1.cc. |
1452af69 | 114 | |
82de6b0d PE |
115 | - New configure option --disable-yacc, to disable installation of the |
116 | yacc command and -ly library introduced in 1.875 for POSIX conformance. | |
6040d338 | 117 | |
82de6b0d | 118 | * Bug fixes |
d5a3fe37 | 119 | |
82de6b0d PE |
120 | - For now, %expect-count violations are now just warnings, not errors. |
121 | This is for compatibility with Bison 1.75 and earlier (when there are | |
122 | reduce/reduce conflicts) and with Bison 1.30 and earlier (when there | |
123 | are too many or too few shift/reduce conflicts). However, in future | |
124 | versions of Bison we plan to improve the %expect machinery so that | |
125 | these violations will become errors again. | |
3473d0f8 | 126 | |
82de6b0d PE |
127 | - Within Bison itself, numbers (e.g., goto numbers) are no longer |
128 | arbitrarily limited to 16-bit counts. | |
d600ee67 | 129 | |
82de6b0d | 130 | - Semicolons are now allowed before "|" in grammar rules, as POSIX requires. |
d600ee67 | 131 | \f |
dc546b0f | 132 | Changes in version 1.875, 2003-01-01: |
963fcc17 | 133 | |
dc546b0f PE |
134 | * The documentation license has been upgraded to version 1.2 |
135 | of the GNU Free Documentation License. | |
75eb3bc4 | 136 | |
dc546b0f | 137 | * syntax error processing |
75eb3bc4 | 138 | |
dc546b0f PE |
139 | - In Yacc-style parsers YYLLOC_DEFAULT is now used to compute error |
140 | locations too. This fixes bugs in error-location computation. | |
75eb3bc4 | 141 | |
dc546b0f PE |
142 | - %destructor |
143 | It is now possible to reclaim the memory associated to symbols | |
144 | discarded during error recovery. This feature is still experimental. | |
20daca06 | 145 | |
dc546b0f PE |
146 | - %error-verbose |
147 | This new directive is preferred over YYERROR_VERBOSE. | |
74724a70 | 148 | |
dc546b0f PE |
149 | - #defining yyerror to steal internal variables is discouraged. |
150 | It is not guaranteed to work forever. | |
d1de5372 | 151 | |
dc546b0f | 152 | * POSIX conformance |
d1de5372 | 153 | |
dc546b0f PE |
154 | - Semicolons are once again optional at the end of grammar rules. |
155 | This reverts to the behavior of Bison 1.33 and earlier, and improves | |
156 | compatibility with Yacc. | |
74724a70 | 157 | |
dc546b0f PE |
158 | - `parse error' -> `syntax error' |
159 | Bison now uniformly uses the term `syntax error'; formerly, the code | |
160 | and manual sometimes used the term `parse error' instead. POSIX | |
161 | requires `syntax error' in diagnostics, and it was thought better to | |
162 | be consistent. | |
74724a70 | 163 | |
dc546b0f PE |
164 | - The documentation now emphasizes that yylex and yyerror must be |
165 | declared before use. C99 requires this. | |
d1de5372 | 166 | |
dc546b0f PE |
167 | - Bison now parses C99 lexical constructs like UCNs and |
168 | backslash-newline within C escape sequences, as POSIX 1003.1-2001 requires. | |
d1de5372 | 169 | |
dc546b0f PE |
170 | - File names are properly escaped in C output. E.g., foo\bar.y is |
171 | output as "foo\\bar.y". | |
6780ca7a | 172 | |
dc546b0f PE |
173 | - Yacc command and library now available |
174 | The Bison distribution now installs a `yacc' command, as POSIX requires. | |
175 | Also, Bison now installs a small library liby.a containing | |
176 | implementations of Yacc-compatible yyerror and main functions. | |
177 | This library is normally not useful, but POSIX requires it. | |
6e649e65 | 178 | |
dc546b0f | 179 | - Type clashes now generate warnings, not errors. |
6e649e65 | 180 | |
dc546b0f PE |
181 | - If the user does not define YYSTYPE as a macro, Bison now declares it |
182 | using typedef instead of defining it as a macro. | |
183 | For consistency, YYLTYPE is also declared instead of defined. | |
9501dc6e | 184 | |
dc546b0f | 185 | * Other compatibility issues |
886a425c | 186 | |
dc546b0f PE |
187 | - %union directives can now have a tag before the `{', e.g., the |
188 | directive `%union foo {...}' now generates the C code | |
189 | `typedef union foo { ... } YYSTYPE;'; this is for Yacc compatibility. | |
190 | The default union tag is `YYSTYPE', for compatibility with Solaris 9 Yacc. | |
191 | For consistency, YYLTYPE's struct tag is now `YYLTYPE' not `yyltype'. | |
192 | This is for compatibility with both Yacc and Bison 1.35. | |
72f889cc | 193 | |
dc546b0f PE |
194 | - `;' is output before the terminating `}' of an action, for |
195 | compatibility with Bison 1.35. | |
886a425c | 196 | |
dc546b0f PE |
197 | - Bison now uses a Yacc-style format for conflict reports, e.g., |
198 | `conflicts: 2 shift/reduce, 1 reduce/reduce'. | |
437c2d80 | 199 | |
dc546b0f PE |
200 | - `yystype' and `yyltype' are now obsolescent macros instead of being |
201 | typedefs or tags; they are no longer documented and are planned to be | |
202 | withdrawn in a future release. | |
2a8d363a | 203 | |
dc546b0f | 204 | * GLR parser notes |
2a8d363a | 205 | |
dc546b0f PE |
206 | - GLR and inline |
207 | Users of Bison have to decide how they handle the portability of the | |
208 | C keyword `inline'. | |
959e5f51 | 209 | |
dc546b0f PE |
210 | - `parsing stack overflow...' -> `parser stack overflow' |
211 | GLR parsers now report `parser stack overflow' as per the Bison manual. | |
900c5db5 | 212 | |
dc546b0f PE |
213 | * Bison now warns if it detects conflicting outputs to the same file, |
214 | e.g., it generates a warning for `bison -d -o foo.h foo.y' since | |
215 | that command outputs both code and header to foo.h. | |
6e40b4eb | 216 | |
dc546b0f PE |
217 | * #line in output files |
218 | - --no-line works properly. | |
6e40b4eb AD |
219 | |
220 | * Bison can no longer be built by a K&R C compiler; it requires C89 or | |
221 | later to be built. This change originally took place a few versions | |
222 | ago, but nobody noticed until we recently asked someone to try | |
223 | building Bison with a K&R C compiler. | |
d600ee67 | 224 | \f |
5c16c6b1 | 225 | Changes in version 1.75, 2002-10-14: |
7933f2b5 PE |
226 | |
227 | * Bison should now work on 64-bit hosts. | |
228 | ||
b7195100 | 229 | * Indonesian translation thanks to Tedi Heriyanto. |
7933f2b5 | 230 | |
f50adbbd AD |
231 | * GLR parsers |
232 | Fix spurious parse errors. | |
233 | ||
234 | * Pure parsers | |
235 | Some people redefine yyerror to steal yyparse' private variables. | |
236 | Reenable this trick until an official feature replaces it. | |
237 | ||
d90c934c AD |
238 | * Type Clashes |
239 | In agreement with POSIX and with other Yaccs, leaving a default | |
240 | action is valid when $$ is untyped, and $1 typed: | |
241 | ||
242 | untyped: ... typed; | |
243 | ||
244 | but the converse remains an error: | |
245 | ||
246 | typed: ... untyped; | |
247 | ||
248 | * Values of mid-rule actions | |
249 | The following code: | |
250 | ||
251 | foo: { ... } { $$ = $1; } ... | |
252 | ||
253 | was incorrectly rejected: $1 is defined in the second mid-rule | |
254 | action, and is equal to the $$ of the first mid-rule action. | |
d600ee67 | 255 | \f |
420f93c8 | 256 | Changes in version 1.50, 2002-10-04: |
adc8c848 | 257 | |
676385e2 PH |
258 | * GLR parsing |
259 | The declaration | |
260 | %glr-parser | |
261 | causes Bison to produce a Generalized LR (GLR) parser, capable of handling | |
262 | almost any context-free grammar, ambiguous or not. The new declarations | |
e8832397 | 263 | %dprec and %merge on grammar rules allow parse-time resolution of |
676385e2 PH |
264 | ambiguities. Contributed by Paul Hilfinger. |
265 | ||
7933f2b5 | 266 | Unfortunately Bison 1.50 does not work properly on 64-bit hosts |
420f93c8 PE |
267 | like the Alpha, so please stick to 32-bit hosts for now. |
268 | ||
8c165d89 AD |
269 | * Output Directory |
270 | When not in Yacc compatibility mode, when the output file was not | |
e88dbdbf | 271 | specified, running `bison foo/bar.y' created `foo/bar.c'. It |
8c165d89 AD |
272 | now creates `bar.c'. |
273 | ||
007a50a4 AD |
274 | * Undefined token |
275 | The undefined token was systematically mapped to 2 which prevented | |
e88dbdbf | 276 | the use of 2 by the user. This is no longer the case. |
007a50a4 | 277 | |
77714df2 | 278 | * Unknown token numbers |
e88dbdbf | 279 | If yylex returned an out of range value, yyparse could die. This is |
007a50a4 AD |
280 | no longer the case. |
281 | ||
23c5a174 | 282 | * Error token |
e88dbdbf | 283 | According to POSIX, the error token must be 256. |
23c5a174 AD |
284 | Bison extends this requirement by making it a preference: *if* the |
285 | user specified that one of her tokens is numbered 256, then error | |
286 | will be mapped onto another number. | |
287 | ||
217598da | 288 | * Verbose error messages |
e88dbdbf | 289 | They no longer report `..., expecting error or...' for states where |
217598da AD |
290 | error recovery is possible. |
291 | ||
292 | * End token | |
293 | Defaults to `$end' instead of `$'. | |
294 | ||
68cd8af3 PE |
295 | * Error recovery now conforms to documentation and to POSIX |
296 | When a Bison-generated parser encounters a syntax error, it now pops | |
297 | the stack until it finds a state that allows shifting the error | |
298 | token. Formerly, it popped the stack until it found a state that | |
299 | allowed some non-error action other than a default reduction on the | |
300 | error token. The new behavior has long been the documented behavior, | |
301 | and has long been required by POSIX. For more details, please see | |
337116ba PE |
302 | Paul Eggert, "Reductions during Bison error handling" (2002-05-20) |
303 | <http://lists.gnu.org/archive/html/bug-bison/2002-05/msg00038.html>. | |
68cd8af3 | 304 | |
5504898e AD |
305 | * Traces |
306 | Popped tokens and nonterminals are now reported. | |
307 | ||
a861a339 PE |
308 | * Larger grammars |
309 | Larger grammars are now supported (larger token numbers, larger grammar | |
310 | size (= sum of the LHS and RHS lengths), larger LALR tables). | |
311 | Formerly, many of these numbers ran afoul of 16-bit limits; | |
312 | now these limits are 32 bits on most hosts. | |
355e7c1c | 313 | |
77714df2 | 314 | * Explicit initial rule |
643a5994 AD |
315 | Bison used to play hacks with the initial rule, which the user does |
316 | not write. It is now explicit, and visible in the reports and | |
317 | graphs as rule 0. | |
23c5a174 | 318 | |
77714df2 | 319 | * Useless rules |
643a5994 | 320 | Before, Bison reported the useless rules, but, although not used, |
77714df2 | 321 | included them in the parsers. They are now actually removed. |
23c5a174 | 322 | |
6b98e4b5 AD |
323 | * Useless rules, useless nonterminals |
324 | They are now reported, as a warning, with their locations. | |
325 | ||
e8832397 AD |
326 | * Rules never reduced |
327 | Rules that can never be reduced because of conflicts are now | |
328 | reported. | |
329 | ||
77714df2 | 330 | * Incorrect `Token not used' |
11652ab3 AD |
331 | On a grammar such as |
332 | ||
333 | %token useless useful | |
334 | %% | |
335 | exp: '0' %prec useful; | |
336 | ||
337 | where a token was used to set the precedence of the last rule, | |
338 | bison reported both `useful' and `useless' as useless tokens. | |
339 | ||
77714df2 AD |
340 | * Revert the C++ namespace changes introduced in 1.31 |
341 | as they caused too many portability hassles. | |
0179dd65 | 342 | |
b2d52318 AD |
343 | * Default locations |
344 | By an accident of design, the default computation of @$ was | |
345 | performed after another default computation was performed: @$ = @1. | |
346 | The latter is now removed: YYLLOC_DEFAULT is fully responsible of | |
347 | the computation of @$. | |
adc8c848 | 348 | |
b7c49edf AD |
349 | * Token end-of-file |
350 | The token end of file may be specified by the user, in which case, | |
351 | the user symbol is used in the reports, the graphs, and the verbose | |
a861a339 | 352 | error messages instead of `$end', which remains being the default. |
b7c49edf | 353 | For instance |
7bd6c77e | 354 | %token MYEOF 0 |
b7c49edf | 355 | or |
7bd6c77e | 356 | %token MYEOF 0 "end of file" |
fdbcd8e2 AD |
357 | |
358 | * Semantic parser | |
359 | This old option, which has been broken for ages, is removed. | |
360 | ||
a861a339 PE |
361 | * New translations |
362 | Brazilian Portuguese, thanks to Alexandre Folle de Menezes. | |
84614e13 AD |
363 | Croatian, thanks to Denis Lackovic. |
364 | ||
77714df2 | 365 | * Incorrect token definitions |
e88dbdbf | 366 | When given `%token 'a' "A"', Bison used to output `#define 'a' 65'. |
b87f8b21 | 367 | |
77714df2 AD |
368 | * Token definitions as enums |
369 | Tokens are output both as the traditional #define's, and, provided | |
370 | the compiler supports ANSI C or is a C++ compiler, as enums. | |
e88dbdbf | 371 | This lets debuggers display names instead of integers. |
77714df2 | 372 | |
ec3bc396 AD |
373 | * Reports |
374 | In addition to --verbose, bison supports --report=THINGS, which | |
375 | produces additional information: | |
b408954b AD |
376 | - itemset |
377 | complete the core item sets with their closure | |
8dd162d3 PE |
378 | - lookahead [changed to `look-ahead' in 1.875e and later] |
379 | explicitly associate look-ahead tokens to items | |
b408954b AD |
380 | - solved |
381 | describe shift/reduce conflicts solving. | |
382 | Bison used to systematically output this information on top of | |
383 | the report. Solved conflicts are now attached to their states. | |
ec3bc396 | 384 | |
9af3fbce AD |
385 | * Type clashes |
386 | Previous versions don't complain when there is a type clash on | |
387 | the default action if the rule has a mid-rule action, such as in: | |
388 | ||
389 | %type <foo> bar | |
390 | %% | |
391 | bar: '0' {} '0'; | |
392 | ||
393 | This is fixed. | |
a861a339 PE |
394 | |
395 | * GNU M4 is now required when using Bison. | |
f987e9d2 | 396 | \f |
76551463 AD |
397 | Changes in version 1.35, 2002-03-25: |
398 | ||
399 | * C Skeleton | |
400 | Some projects use Bison's C parser with C++ compilers, and define | |
401 | YYSTYPE as a class. The recent adjustment of C parsers for data | |
402 | alignment and 64 bit architectures made this impossible. | |
403 | ||
404 | Because for the time being no real solution for C++ parser | |
405 | generation exists, kludges were implemented in the parser to | |
406 | maintain this use. In the future, when Bison has C++ parsers, this | |
407 | kludge will be disabled. | |
408 | ||
409 | This kludge also addresses some C++ problems when the stack was | |
410 | extended. | |
76551463 AD |
411 | \f |
412 | Changes in version 1.34, 2002-03-12: | |
413 | ||
414 | * File name clashes are detected | |
415 | $ bison foo.y -d -o foo.x | |
416 | fatal error: header and parser would both be named `foo.x' | |
417 | ||
418 | * A missing `;' at the end of a rule triggers a warning | |
419 | In accordance with POSIX, and in agreement with other | |
420 | Yacc implementations, Bison will mandate this semicolon in the near | |
421 | future. This eases the implementation of a Bison parser of Bison | |
422 | grammars by making this grammar LALR(1) instead of LR(2). To | |
423 | facilitate the transition, this release introduces a warning. | |
424 | ||
425 | * Revert the C++ namespace changes introduced in 1.31, as they caused too | |
426 | many portability hassles. | |
427 | ||
428 | * DJGPP support added. | |
429 | ||
430 | * Fix test suite portability problems. | |
431 | \f | |
432 | Changes in version 1.33, 2002-02-07: | |
433 | ||
434 | * Fix C++ issues | |
435 | Groff could not be compiled for the definition of size_t was lacking | |
436 | under some conditions. | |
437 | ||
438 | * Catch invalid @n | |
439 | As is done with $n. | |
440 | \f | |
441 | Changes in version 1.32, 2002-01-23: | |
442 | ||
443 | * Fix Yacc output file names | |
444 | ||
445 | * Portability fixes | |
446 | ||
447 | * Italian, Dutch translations | |
448 | \f | |
52d1aeee MA |
449 | Changes in version 1.31, 2002-01-14: |
450 | ||
451 | * Many Bug Fixes | |
452 | ||
453 | * GNU Gettext and %expect | |
454 | GNU Gettext asserts 10 s/r conflicts, but there are 7. Now that | |
455 | Bison dies on incorrect %expectations, we fear there will be | |
456 | too many bug reports for Gettext, so _for the time being_, %expect | |
457 | does not trigger an error when the input file is named `plural.y'. | |
458 | ||
459 | * Use of alloca in parsers | |
460 | If YYSTACK_USE_ALLOCA is defined to 0, then the parsers will use | |
461 | malloc exclusively. Since 1.29, but was not NEWS'ed. | |
462 | ||
463 | alloca is used only when compiled with GCC, to avoid portability | |
464 | problems as on AIX. | |
465 | ||
b47dbebe PE |
466 | * yyparse now returns 2 if memory is exhausted; formerly it dumped core. |
467 | ||
52d1aeee MA |
468 | * When the generated parser lacks debugging code, YYDEBUG is now 0 |
469 | (as POSIX requires) instead of being undefined. | |
470 | ||
471 | * User Actions | |
472 | Bison has always permitted actions such as { $$ = $1 }: it adds the | |
473 | ending semicolon. Now if in Yacc compatibility mode, the semicolon | |
474 | is no longer output: one has to write { $$ = $1; }. | |
475 | ||
476 | * Better C++ compliance | |
477 | The output parsers try to respect C++ namespaces. | |
76551463 | 478 | [This turned out to be a failed experiment, and it was reverted later.] |
52d1aeee MA |
479 | |
480 | * Reduced Grammars | |
481 | Fixed bugs when reporting useless nonterminals. | |
482 | ||
483 | * 64 bit hosts | |
484 | The parsers work properly on 64 bit hosts. | |
485 | ||
486 | * Error messages | |
487 | Some calls to strerror resulted in scrambled or missing error messages. | |
488 | ||
489 | * %expect | |
490 | When the number of shift/reduce conflicts is correct, don't issue | |
491 | any warning. | |
492 | ||
493 | * The verbose report includes the rule line numbers. | |
494 | ||
495 | * Rule line numbers are fixed in traces. | |
496 | ||
497 | * Swedish translation | |
498 | ||
499 | * Parse errors | |
500 | Verbose parse error messages from the parsers are better looking. | |
501 | Before: parse error: unexpected `'/'', expecting `"number"' or `'-'' or `'('' | |
502 | Now: parse error: unexpected '/', expecting "number" or '-' or '(' | |
503 | ||
504 | * Fixed parser memory leaks. | |
505 | When the generated parser was using malloc to extend its stacks, the | |
506 | previous allocations were not freed. | |
507 | ||
508 | * Fixed verbose output file. | |
509 | Some newlines were missing. | |
510 | Some conflicts in state descriptions were missing. | |
511 | ||
512 | * Fixed conflict report. | |
513 | Option -v was needed to get the result. | |
514 | ||
515 | * %expect | |
516 | Was not used. | |
517 | Mismatches are errors, not warnings. | |
518 | ||
519 | * Fixed incorrect processing of some invalid input. | |
520 | ||
521 | * Fixed CPP guards: 9foo.h uses BISON_9FOO_H instead of 9FOO_H. | |
522 | ||
523 | * Fixed some typos in the documentation. | |
524 | ||
525 | * %token MY_EOF 0 is supported. | |
526 | Before, MY_EOF was silently renumbered as 257. | |
527 | ||
528 | * doc/refcard.tex is updated. | |
529 | ||
530 | * %output, %file-prefix, %name-prefix. | |
531 | New. | |
532 | ||
533 | * --output | |
534 | New, aliasing `--output-file'. | |
535 | \f | |
76551463 | 536 | Changes in version 1.30, 2001-10-26: |
342b8b6e | 537 | |
fdac0091 PE |
538 | * `--defines' and `--graph' have now an optional argument which is the |
539 | output file name. `-d' and `-g' do not change; they do not take any | |
342b8b6e AD |
540 | argument. |
541 | ||
542 | * `%source_extension' and `%header_extension' are removed, failed | |
543 | experiment. | |
544 | ||
f987e9d2 AD |
545 | * Portability fixes. |
546 | \f | |
9f4503d6 | 547 | Changes in version 1.29, 2001-09-07: |
342b8b6e AD |
548 | |
549 | * The output file does not define const, as this caused problems when used | |
550 | with common autoconfiguration schemes. If you still use ancient compilers | |
551 | that lack const, compile with the equivalent of the C compiler option | |
552 | `-Dconst='. autoconf's AC_C_CONST macro provides one way to do this. | |
553 | ||
554 | * Added `-g' and `--graph'. | |
f87a2205 | 555 | |
f2b5126e PB |
556 | * The Bison manual is now distributed under the terms of the GNU FDL. |
557 | ||
f1c63ced | 558 | * The input and the output files has automatically a similar extension. |
234a3be3 | 559 | |
f87a2205 JT |
560 | * Russian translation added. |
561 | ||
562 | * NLS support updated; should hopefully be less troublesome. | |
563 | ||
564 | * Added the old Bison reference card. | |
c33638bb AD |
565 | |
566 | * Added `--locations' and `%locations'. | |
6deb4447 | 567 | |
cd5bd6ac AD |
568 | * Added `-S' and `--skeleton'. |
569 | ||
62ab6972 AD |
570 | * `%raw', `-r', `--raw' is disabled. |
571 | ||
cd5bd6ac AD |
572 | * Special characters are escaped when output. This solves the problems |
573 | of the #line lines with path names including backslashes. | |
574 | ||
6deb4447 | 575 | * New directives. |
4ecbf796 MA |
576 | `%yacc', `%fixed_output_files', `%defines', `%no_parser', `%verbose', |
577 | `%debug', `%source_extension' and `%header_extension'. | |
f987e9d2 AD |
578 | |
579 | * @$ | |
580 | Automatic location tracking. | |
f87a2205 | 581 | \f |
9f4503d6 | 582 | Changes in version 1.28, 1999-07-06: |
d2e00347 JT |
583 | |
584 | * Should compile better now with K&R compilers. | |
585 | ||
586 | * Added NLS. | |
587 | ||
588 | * Fixed a problem with escaping the double quote character. | |
589 | ||
590 | * There is now a FAQ. | |
591 | \f | |
5c31c3c2 JT |
592 | Changes in version 1.27: |
593 | ||
594 | * The make rule which prevented bison.simple from being created on | |
595 | some systems has been fixed. | |
596 | \f | |
597 | Changes in version 1.26: | |
4be07551 JT |
598 | |
599 | * Bison now uses automake. | |
600 | ||
601 | * New mailing lists: <bug-bison@gnu.org> and <help-bison@gnu.org>. | |
602 | ||
603 | * Token numbers now start at 257 as previously documented, not 258. | |
604 | ||
605 | * Bison honors the TMPDIR environment variable. | |
606 | ||
607 | * A couple of buffer overruns have been fixed. | |
f51dbca1 JT |
608 | |
609 | * Problems when closing files should now be reported. | |
610 | ||
611 | * Generated parsers should now work even on operating systems which do | |
612 | not provide alloca(). | |
4be07551 | 613 | \f |
9f4503d6 | 614 | Changes in version 1.25, 1995-10-16: |
df8878c5 RS |
615 | |
616 | * Errors in the input grammar are not fatal; Bison keeps reading | |
617 | the grammar file, and reports all the errors found in it. | |
8c44d3ec | 618 | |
df8878c5 RS |
619 | * Tokens can now be specified as multiple-character strings: for |
620 | example, you could use "<=" for a token which looks like <=, instead | |
621 | of chosing a name like LESSEQ. | |
622 | ||
623 | * The %token_table declaration says to write a table of tokens (names | |
624 | and numbers) into the parser file. The yylex function can use this | |
625 | table to recognize multiple-character string tokens, or for other | |
626 | purposes. | |
627 | ||
628 | * The %no_lines declaration says not to generate any #line preprocessor | |
629 | directives in the parser file. | |
630 | ||
631 | * The %raw declaration says to use internal Bison token numbers, not | |
632 | Yacc-compatible token numbers, when token names are defined as macros. | |
633 | ||
634 | * The --no-parser option produces the parser tables without including | |
635 | the parser engine; a project can now use its own parser engine. | |
636 | The actions go into a separate file called NAME.act, in the form of | |
637 | a switch statement body. | |
638 | \f | |
6780ca7a DM |
639 | Changes in version 1.23: |
640 | ||
4d019228 DM |
641 | The user can define YYPARSE_PARAM as the name of an argument to be |
642 | passed into yyparse. The argument should have type void *. It should | |
643 | actually point to an object. Grammar actions can access the variable | |
644 | by casting it to the proper pointer type. | |
6780ca7a | 645 | |
6780ca7a | 646 | Line numbers in output file corrected. |
6780ca7a DM |
647 | \f |
648 | Changes in version 1.22: | |
649 | ||
650 | --help option added. | |
6780ca7a DM |
651 | \f |
652 | Changes in version 1.20: | |
653 | ||
654 | Output file does not redefine const for C++. | |
9f4503d6 AD |
655 | |
656 | Local Variables: | |
657 | mode: outline | |
658 | End: | |
76551463 AD |
659 | |
660 | ----- | |
661 | ||
1ce59070 | 662 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
dc546b0f | 663 | Free Software Foundation, Inc. |
76551463 | 664 | |
75eb3bc4 | 665 | This file is part of Bison, the GNU Compiler Compiler. |
76551463 | 666 | |
75eb3bc4 | 667 | Bison is free software; you can redistribute it and/or modify |
76551463 AD |
668 | it under the terms of the GNU General Public License as published by |
669 | the Free Software Foundation; either version 2, or (at your option) | |
670 | any later version. | |
671 | ||
75eb3bc4 | 672 | Bison is distributed in the hope that it will be useful, |
76551463 AD |
673 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
674 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
675 | GNU General Public License for more details. | |
676 | ||
677 | You should have received a copy of the GNU General Public License | |
678 | along with autoconf; see the file COPYING. If not, write to | |
0fb669f9 PE |
679 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
680 | Boston, MA 02110-1301, USA. |