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