]>
Commit | Line | Data |
---|---|---|
1 | Bison News | |
2 | ---------- | |
3 | ||
4 | Changes in version 2.1a: | |
5 | ||
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 | ||
12 | * %expect, %expect-rr | |
13 | Incorrect numbers of expected conflicts are now actual errors, | |
14 | instead of warnings. | |
15 | ||
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 | ||
20 | * Bison now warns if it finds a stray `$' or `@' in an action. | |
21 | ||
22 | * %require "VERSION" | |
23 | To specify that the grammar file depends on features implemented in | |
24 | Bison version VERSION or higher. | |
25 | ||
26 | * lalr1.cc: The token and value types are now class members. | |
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: | |
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 | |
34 | definition of tokens and YYSTYPE. This change is suitable both | |
35 | for previous releases of Bison, and this one. | |
36 | ||
37 | If you wish to update, then make sure older version of Bison will | |
38 | fail using `%require "2.1a"'. | |
39 | ||
40 | * DJGPP support added. | |
41 | ||
42 | Changes in version 2.1, 2005-09-16: | |
43 | ||
44 | * The C++ lalr1.cc skeleton supports %lex-param. | |
45 | ||
46 | * Bison-generated parsers now support the translation of diagnostics like | |
47 | "syntax error" into languages other than English. The default | |
48 | language is still English. For details, please see the new | |
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. | |
52 | ||
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 | ||
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 | ||
62 | * When generating verbose diagnostics, Bison-generated parsers no longer | |
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 | ||
68 | Changes in version 2.0, 2004-12-25: | |
69 | ||
70 | * Possibly-incompatible changes | |
71 | ||
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. | |
77 | ||
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. | |
83 | ||
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. | |
87 | ||
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. | |
92 | ||
93 | - NUL bytes are no longer allowed in Bison string literals, unfortunately. | |
94 | ||
95 | * New features | |
96 | ||
97 | - GLR grammars now support locations. | |
98 | ||
99 | - New directive: %initial-action. | |
100 | This directive allows the user to run arbitrary code (including | |
101 | initializing @$) from yyparse before parsing starts. | |
102 | ||
103 | - A new directive "%expect-rr N" specifies the expected number of | |
104 | reduce/reduce conflicts in GLR parsers. | |
105 | ||
106 | - %token numbers can now be hexadecimal integers, e.g., `%token FOO 0x12d'. | |
107 | This is a GNU extension. | |
108 | ||
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. | |
112 | ||
113 | - Experimental %destructor support has been added to lalr1.cc. | |
114 | ||
115 | - New configure option --disable-yacc, to disable installation of the | |
116 | yacc command and -ly library introduced in 1.875 for POSIX conformance. | |
117 | ||
118 | * Bug fixes | |
119 | ||
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. | |
126 | ||
127 | - Within Bison itself, numbers (e.g., goto numbers) are no longer | |
128 | arbitrarily limited to 16-bit counts. | |
129 | ||
130 | - Semicolons are now allowed before "|" in grammar rules, as POSIX requires. | |
131 | \f | |
132 | Changes in version 1.875, 2003-01-01: | |
133 | ||
134 | * The documentation license has been upgraded to version 1.2 | |
135 | of the GNU Free Documentation License. | |
136 | ||
137 | * syntax error processing | |
138 | ||
139 | - In Yacc-style parsers YYLLOC_DEFAULT is now used to compute error | |
140 | locations too. This fixes bugs in error-location computation. | |
141 | ||
142 | - %destructor | |
143 | It is now possible to reclaim the memory associated to symbols | |
144 | discarded during error recovery. This feature is still experimental. | |
145 | ||
146 | - %error-verbose | |
147 | This new directive is preferred over YYERROR_VERBOSE. | |
148 | ||
149 | - #defining yyerror to steal internal variables is discouraged. | |
150 | It is not guaranteed to work forever. | |
151 | ||
152 | * POSIX conformance | |
153 | ||
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. | |
157 | ||
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. | |
163 | ||
164 | - The documentation now emphasizes that yylex and yyerror must be | |
165 | declared before use. C99 requires this. | |
166 | ||
167 | - Bison now parses C99 lexical constructs like UCNs and | |
168 | backslash-newline within C escape sequences, as POSIX 1003.1-2001 requires. | |
169 | ||
170 | - File names are properly escaped in C output. E.g., foo\bar.y is | |
171 | output as "foo\\bar.y". | |
172 | ||
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. | |
178 | ||
179 | - Type clashes now generate warnings, not errors. | |
180 | ||
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. | |
184 | ||
185 | * Other compatibility issues | |
186 | ||
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. | |
193 | ||
194 | - `;' is output before the terminating `}' of an action, for | |
195 | compatibility with Bison 1.35. | |
196 | ||
197 | - Bison now uses a Yacc-style format for conflict reports, e.g., | |
198 | `conflicts: 2 shift/reduce, 1 reduce/reduce'. | |
199 | ||
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. | |
203 | ||
204 | * GLR parser notes | |
205 | ||
206 | - GLR and inline | |
207 | Users of Bison have to decide how they handle the portability of the | |
208 | C keyword `inline'. | |
209 | ||
210 | - `parsing stack overflow...' -> `parser stack overflow' | |
211 | GLR parsers now report `parser stack overflow' as per the Bison manual. | |
212 | ||
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. | |
216 | ||
217 | * #line in output files | |
218 | - --no-line works properly. | |
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. | |
224 | \f | |
225 | Changes in version 1.75, 2002-10-14: | |
226 | ||
227 | * Bison should now work on 64-bit hosts. | |
228 | ||
229 | * Indonesian translation thanks to Tedi Heriyanto. | |
230 | ||
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 | ||
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. | |
255 | \f | |
256 | Changes in version 1.50, 2002-10-04: | |
257 | ||
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 | |
263 | %dprec and %merge on grammar rules allow parse-time resolution of | |
264 | ambiguities. Contributed by Paul Hilfinger. | |
265 | ||
266 | Unfortunately Bison 1.50 does not work properly on 64-bit hosts | |
267 | like the Alpha, so please stick to 32-bit hosts for now. | |
268 | ||
269 | * Output Directory | |
270 | When not in Yacc compatibility mode, when the output file was not | |
271 | specified, running `bison foo/bar.y' created `foo/bar.c'. It | |
272 | now creates `bar.c'. | |
273 | ||
274 | * Undefined token | |
275 | The undefined token was systematically mapped to 2 which prevented | |
276 | the use of 2 by the user. This is no longer the case. | |
277 | ||
278 | * Unknown token numbers | |
279 | If yylex returned an out of range value, yyparse could die. This is | |
280 | no longer the case. | |
281 | ||
282 | * Error token | |
283 | According to POSIX, the error token must be 256. | |
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 | ||
288 | * Verbose error messages | |
289 | They no longer report `..., expecting error or...' for states where | |
290 | error recovery is possible. | |
291 | ||
292 | * End token | |
293 | Defaults to `$end' instead of `$'. | |
294 | ||
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 | |
302 | Paul Eggert, "Reductions during Bison error handling" (2002-05-20) | |
303 | <http://lists.gnu.org/archive/html/bug-bison/2002-05/msg00038.html>. | |
304 | ||
305 | * Traces | |
306 | Popped tokens and nonterminals are now reported. | |
307 | ||
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. | |
313 | ||
314 | * Explicit initial rule | |
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. | |
318 | ||
319 | * Useless rules | |
320 | Before, Bison reported the useless rules, but, although not used, | |
321 | included them in the parsers. They are now actually removed. | |
322 | ||
323 | * Useless rules, useless nonterminals | |
324 | They are now reported, as a warning, with their locations. | |
325 | ||
326 | * Rules never reduced | |
327 | Rules that can never be reduced because of conflicts are now | |
328 | reported. | |
329 | ||
330 | * Incorrect `Token not used' | |
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 | ||
340 | * Revert the C++ namespace changes introduced in 1.31 | |
341 | as they caused too many portability hassles. | |
342 | ||
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 @$. | |
348 | ||
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 | |
352 | error messages instead of `$end', which remains being the default. | |
353 | For instance | |
354 | %token MYEOF 0 | |
355 | or | |
356 | %token MYEOF 0 "end of file" | |
357 | ||
358 | * Semantic parser | |
359 | This old option, which has been broken for ages, is removed. | |
360 | ||
361 | * New translations | |
362 | Brazilian Portuguese, thanks to Alexandre Folle de Menezes. | |
363 | Croatian, thanks to Denis Lackovic. | |
364 | ||
365 | * Incorrect token definitions | |
366 | When given `%token 'a' "A"', Bison used to output `#define 'a' 65'. | |
367 | ||
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. | |
371 | This lets debuggers display names instead of integers. | |
372 | ||
373 | * Reports | |
374 | In addition to --verbose, bison supports --report=THINGS, which | |
375 | produces additional information: | |
376 | - itemset | |
377 | complete the core item sets with their closure | |
378 | - lookahead [changed to `look-ahead' in 1.875e and later] | |
379 | explicitly associate look-ahead tokens to items | |
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. | |
384 | ||
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. | |
394 | ||
395 | * GNU M4 is now required when using Bison. | |
396 | \f | |
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. | |
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 | |
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 | ||
466 | * yyparse now returns 2 if memory is exhausted; formerly it dumped core. | |
467 | ||
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. | |
478 | [This turned out to be a failed experiment, and it was reverted later.] | |
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 | |
536 | Changes in version 1.30, 2001-10-26: | |
537 | ||
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 | |
540 | argument. | |
541 | ||
542 | * `%source_extension' and `%header_extension' are removed, failed | |
543 | experiment. | |
544 | ||
545 | * Portability fixes. | |
546 | \f | |
547 | Changes in version 1.29, 2001-09-07: | |
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'. | |
555 | ||
556 | * The Bison manual is now distributed under the terms of the GNU FDL. | |
557 | ||
558 | * The input and the output files has automatically a similar extension. | |
559 | ||
560 | * Russian translation added. | |
561 | ||
562 | * NLS support updated; should hopefully be less troublesome. | |
563 | ||
564 | * Added the old Bison reference card. | |
565 | ||
566 | * Added `--locations' and `%locations'. | |
567 | ||
568 | * Added `-S' and `--skeleton'. | |
569 | ||
570 | * `%raw', `-r', `--raw' is disabled. | |
571 | ||
572 | * Special characters are escaped when output. This solves the problems | |
573 | of the #line lines with path names including backslashes. | |
574 | ||
575 | * New directives. | |
576 | `%yacc', `%fixed_output_files', `%defines', `%no_parser', `%verbose', | |
577 | `%debug', `%source_extension' and `%header_extension'. | |
578 | ||
579 | * @$ | |
580 | Automatic location tracking. | |
581 | \f | |
582 | Changes in version 1.28, 1999-07-06: | |
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 | |
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: | |
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. | |
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(). | |
613 | \f | |
614 | Changes in version 1.25, 1995-10-16: | |
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. | |
618 | ||
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 | |
639 | Changes in version 1.23: | |
640 | ||
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. | |
645 | ||
646 | Line numbers in output file corrected. | |
647 | \f | |
648 | Changes in version 1.22: | |
649 | ||
650 | --help option added. | |
651 | \f | |
652 | Changes in version 1.20: | |
653 | ||
654 | Output file does not redefine const for C++. | |
655 | ||
656 | Local Variables: | |
657 | mode: outline | |
658 | End: | |
659 | ||
660 | ----- | |
661 | ||
662 | Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | |
663 | Free Software Foundation, Inc. | |
664 | ||
665 | This file is part of Bison, the GNU Compiler Compiler. | |
666 | ||
667 | Bison is free software; you can redistribute it and/or modify | |
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 | ||
672 | Bison is distributed in the hope that it will be useful, | |
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 | |
679 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
680 | Boston, MA 02110-1301, USA. |