1 2000-12-19 Akim Demaille <akim@epita.fr>
3 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
4 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
6 2000-12-19 Akim Demaille <akim@epita.fr>
8 * src/files.c (open_files): Yipee! We no longer need all the code
9 looking for `/tmp' since we have no tmp file.
11 2000-12-19 Akim Demaille <akim@epita.fr>
13 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
15 * src/files.c (open_files): Less dependency on MSDOS etc.
17 2000-12-14 Akim Demaille <akim@epita.fr>
19 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
20 Provide a default definition.
21 Use it when executing the default @ action.
22 * src/reader.c (reader_output_yylsp): No longer include
23 `timestamp' and `text' in the default YYLTYPE.
25 2000-12-12 Akim Demaille <akim@epita.fr>
27 * src/reader.c (copy_definition, parse_union_decl, copy_action)
28 (copy_guard): Quote the file names.
29 Reported by Laurent Mascherpa.
31 2000-12-12 Akim Demaille <akim@epita.fr>
33 * src/output.c (output_headers, output_program, output): Be sure
34 to escape special characters when outputting filenames.
35 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
36 (output_headers): Don't depend on them, Use ACTSTR.
38 2000-11-17 Akim Demaille <akim@epita.fr>
40 * lib/obstack.h: Formatting changes.
41 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
42 prevents type checking.
43 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
44 cast the value to (void *): assigning a `foo *' to a `void *'
46 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
47 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
50 2000-11-17 Akim Demaille <akim@epita.fr>
52 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
54 (suite.m4, regression.m4, calc.m4): these.
55 * tests/atgeneral.m4: Update from CVS Autoconf.
57 2000-11-17 Akim Demaille <akim@epita.fr>
59 * tests/regression.m4 (%union and --defines): New test,
60 demonstrating a current bug in the obstack implementation.
62 2000-11-17 Akim Demaille <akim@epita.fr>
64 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
66 Use them to declare the variables which are global or local to
69 2000-11-17 Akim Demaille <akim@epita.fr>
71 * acconfig.h: Remove, no longer used.
73 2000-11-07 Akim Demaille <akim@epita.fr>
75 * src: s/Copyright (C)/Copyright/g.
77 2000-11-07 Akim Demaille <akim@epita.fr>
79 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
81 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
83 2000-11-07 Akim Demaille <akim@epita.fr>
85 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
86 Merge in a single CPP if/else.
88 2000-11-07 Akim Demaille <akim@epita.fr>
90 * src/output.c (output): Remove useless variables.
91 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
92 argument `data' for consistency with the prototypes.
94 (obstack_copy, obstack_copy0): Rename the second argument as
95 `address' for consistency. Qualify it `const'.
96 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
97 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
98 `const' their input argument (`data' or `address').
99 Adjust the corresponding macros to include `const' in casts.
101 2000-11-03 Akim Demaille <akim@epita.fr>
103 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
104 s/PFILE1/BISON_HAIRY/.
107 2000-11-03 Akim Demaille <akim@epita.fr>
109 For some reason, this was not applied.
111 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
112 `unlink': it's no longer used.
114 2000-11-03 Akim Demaille <akim@epita.fr>
116 * src/files.c (skeleton_find): New function, eved out of...
117 (open_files, open_extra_files): here.
119 2000-11-03 Akim Demaille <akim@epita.fr>
123 * src/files.c (obstack_save): New function.
125 (output_files): this.
127 * src/main.c (main): Don't use `atexit' to register `done', since
128 it no longer has to remove tmp files, just call `output_files'
129 when there are no errors.
131 2000-11-02 Akim Demaille <akim@epita.fr>
133 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
134 `unlink': it's no longer used.
135 * src/files.h: Formatting changes.
137 2000-11-02 Akim Demaille <akim@epita.fr>
139 Remove the last uses of mktemp and unlink/delete.
141 * src/files.c (fdefines, ftable): Removed.
142 (defines_ostack, table_obstack): New.
143 Adjust dependencies of the former into uses of the latter.
144 * src/output.c (output_short_or_char_table, output_short_table):
145 Convert to using obstacks.
146 * src/reader.c (copy_comment2): Accept one FILE * and two
148 (output_token_defines, reader_output_yylsp): Use obstacks.
149 * src/system.h (obstack_fgrow3): New.
151 2000-11-01 Akim Demaille <akim@epita.fr>
153 Change each use of `fattrs' into a use of `attrs_obstack'.
155 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
156 * src/files.c (fattrs): Remove.
157 (attrs_obstack): New.
158 Adjust all dependencies.
159 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
161 2000-11-01 Akim Demaille <akim@epita.fr>
164 Change each use of `faction' into a use of `action_obstack'.
166 * lib/obstack.h, lib/obstack.c: New files.
167 * src/files.c (faction): Remove.
168 (action_obstack): New.
169 Adjust all dependencies.
171 2000-10-20 Akim Demaille <akim@epita.fr>
173 * lib/quote.h (PARAMS): New macro. Use it.
175 2000-10-16 Akim Demaille <akim@epita.fr>
177 * src/output.c (output_short_or_char_table): New function.
178 (output_short_table, output_token_translations): Use it.
179 (goto_actions): Use output_short_table.
181 2000-10-16 Akim Demaille <akim@epita.fr>
183 * src/symtab.c (bucket_new): New function.
186 * src/output.c (output_short_table): New argument to display the
187 comment associated with the table.
189 (output_gram): Use it.
190 (output_rule_data): Nicer output layout for YYTNAME.
192 2000-10-16 Akim Demaille <akim@epita.fr>
194 * src/lex.c (read_typename): New function.
196 * src/reader.c (copy_dollar): Likewise.
198 2000-10-16 Akim Demaille <akim@epita.fr>
200 * src/reader.c (copy_comment2): Expect the input stream to be on
201 the `/' which is suspected to open a comment, instead of being
202 called after `//' or `/*' was read.
203 (copy_comment, copy_definition, parse_union_decl, copy_action)
204 (copy_guard): Adjust.
206 2000-10-16 Akim Demaille <akim@epita.fr>
208 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
209 `read_signed_integer'.
211 2000-10-16 Akim Demaille <akim@epita.fr>
213 * src/reader.c (copy_dollar): New function.
214 (copy_guard, copy_action): Use it.
216 2000-10-16 Akim Demaille <akim@epita.fr>
218 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
219 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
220 New files, from Fileutils 4.0.27.
221 * src/main.c (printable_version): Remove.
222 * src/lex.c, src/reader.c: Use `quote'.
224 2000-10-04 Akim Demaille <akim@epita.fr>
226 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
228 2000-10-04 Akim Demaille <akim@epita.fr>
230 * doc/bison.texinfo: Various typos spotted by Neil Booth.
232 2000-10-04 Akim Demaille <akim@epita.fr>
234 When a literal string is used to define two different tokens,
235 `bison -v' segfaults.
236 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
238 * tests/regression.m4: New file.
239 Include the core of the sample provided by Piotr Gackiewicz.
240 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
243 2000-10-04 Akim Demaille <akim@epita.fr>
245 * src/reader.c (parse_expect_decl): Keep `count' within the size
249 2000-10-02 Paul Eggert <eggert@twinsun.com>
251 * bison.s1 (yyparse): Assign the default value
252 unconditionally, to avoid a GCC warning and make the parser a
255 2000-10-02 Akim Demaille <akim@epita.fr>
257 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
260 2000-10-02 Akim Demaille <akim@epita.fr>
262 * src/derives.c, src/print.c, src/reduce.c: To ease the
263 translation, move some `\n' out of the translated strings.
265 2000-10-02 Akim Demaille <akim@epita.fr>
267 The location tracking mechanism is precious for parse error
268 messages. Nevertheless, it is enabled only when `@n' is used in
269 the grammar, which is a different issue (you can use it in error
270 message, but not in the grammar per se). Therefore, there should
271 be another means to enable it.
273 * src/getargs.c (getargs): Support `--locations'.
275 * src/getargs.h (locationsflag): Export it.
276 * src/lex.c (percent_table): Support `%locations'.
277 * src/reader.c (yylsp_needed): Remove this variable, now replaced
278 with `locationsflag'.
279 * doc/bison.texinfo: Document `--locations' and `%locations'.
281 * tests/calc.m4: Test it.
283 For regularity of the names, replace each
284 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
285 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
286 In addition replace each `flag' with `_flag'.
288 2000-10-02 Akim Demaille <akim@epita.fr>
290 Also test parse error messages, including with YYERROR_VERBOSE.
292 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
294 Use it to check the computations.
295 Use it to check `nonassoc' is honored.
296 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
298 (_AT_CHECK_CALC): Adjust to this option.
299 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
301 2000-10-02 Akim Demaille <akim@epita.fr>
303 Test also `--verbose', `--defines' and `--name-prefix'. Testing
304 the latter demonstrates a flaw in the handling of non debugging
305 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
306 was used in order to simplify:
322 unfortunately this leads to a CPP conflict when
323 `--name-prefix=foo' is used since it produces `#define yydebug
326 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
327 (YYDPRINTF): New macro.
329 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
331 Also test `--verbose', `--defines' and `--name-prefix'.
333 2000-10-02 Akim Demaille <akim@epita.fr>
335 Improve the readability of the produced parsers.
337 * src/bison.s1: Formatting changes.
338 Improve the comment related to the `$' mark.
339 (yydefault): Don't fall through to `yyresume': `goto' there.
340 * src/output.c (output_parser): When the `$' is met, skip the end
342 New variable, `number_of_dollar_signs', to check there's exactly
343 one `$' in the parser skeleton.
345 2000-10-02 Akim Demaille <akim@epita.fr>
347 * lib/xstrdup.c: New file, from the fileutils.
348 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
349 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
350 instead of strlen + xmalloc + strcpy.
351 * src/symtab.c (copys): Remove, use xstrdup instead.
353 2000-10-02 Akim Demaille <akim@epita.fr>
355 * src/gram.h (associativity): New enum type which replaces the
356 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
357 `right_assoc', `left_assoc' and `non_assoc'.
358 Adjust all dependencies.
359 * src/reader.c: Formatting changes.
360 (LTYPESTR): Don't define it, use it as a literal in
361 `reader_output_yylsp'.
362 * src/symtab.h (symbol_class): New enum type which replaces the
363 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
364 `sunknown', `stoken and `snterm'.
366 2000-10-02 Akim Demaille <akim@epita.fr>
368 * src/getargs.c (fixed_outfiles): Rename as...
369 (yaccflag): for consistency and accuracy.
372 2000-10-02 Akim Demaille <akim@epita.fr>
374 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
375 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
376 difficult and introduced a lot of core dump. It turns out that
377 Bison used an implementation of `xmalloc' based on `calloc', and
378 at various places it does depend upon the initialization to 0. I
379 have not tried to isolate the pertinent places, and all the former
380 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
381 someone should address this issue.
383 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
384 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
387 * src/warshall.h: New file.
390 2000-10-02 Akim Demaille <akim@epita.fr>
392 Various anti-`extern in *.c' changes.
394 * src/system.h: Include `assert.h'.
396 2000-10-02 Akim Demaille <akim@epita.fr>
398 * src/state.h (nstates, final_state, first_state, first_shift)
399 (first_reduction): Move their exportation from here...
400 * src/LR0.h: to here.
402 * src/getargs.c (statisticsflag): New variable.
403 Add support for `--statistics'.
406 Remove a lot of now useless `extern' statements in most files.
408 2000-10-02 Akim Demaille <akim@epita.fr>
410 * src/LR0.h: New file.
413 2000-10-02 Akim Demaille <akim@epita.fr>
415 * src/print.h: New file.
417 * src/print.c: Formatting and ordering changes.
418 (verbose, terse): Replace with...
419 (print_results): this new function.
422 2000-10-02 Akim Demaille <akim@epita.fr>
424 * src/conflicts.c (conflict_report): New function.
425 (conflict_log, verbose_conflict_log): Replace with...
426 (print_conflicts): this function.
428 * src/conflicts.h: New file.
429 Propagate its inclusion.
431 2000-10-02 Akim Demaille <akim@epita.fr>
433 * src/nullable.h: New file.
434 Propagate its inclusion.
435 * src/nullable.c: Formatting changes.
437 2000-10-02 Akim Demaille <akim@epita.fr>
439 * src/reduce.h: New file.
440 Propagate its inclusion.
441 * src/reduce.c: Topological sort and other formatting changes.
442 (bool, TRUE, FALSE): Move their definition to...
443 * src/system.h: here.
445 2000-10-02 Akim Demaille <akim@epita.fr>
447 * src/files.c: Formatting changes.
448 (tryopen, tryclose, openfiles): Rename as...
449 (xfopen, xfclose, open_files): this.
450 (stringappend): static.
451 * src/files.h: Complete the list of exported symbols.
454 2000-10-02 Akim Demaille <akim@epita.fr>
456 * src/reader.h: New file.
457 Propagate its use instead of tedious list of `extern' and
459 * src/reader.c: Formatting changes, topological sort,
462 2000-10-02 Akim Demaille <akim@epita.fr>
464 * src/lex.h: Prototype `lex.c' exported functions.
465 * src/reader.c: Adjust.
466 * src/lex.c: Formatting changes.
467 (safegetc): Rename as...
470 2000-10-02 Akim Demaille <akim@epita.fr>
472 * src/lalr.h: New file.
473 Propagate its inclusion instead of prototypes and `extern'.
474 * src/lalr.c: Formatting changes, topological sorting etc.
476 2000-10-02 Akim Demaille <akim@epita.fr>
478 * src/output.c (token_actions): Introduce a temporary array,
479 YYDEFACT, that makes it possible for this function to use
482 2000-10-02 Akim Demaille <akim@epita.fr>
484 `user_toknums' is output as a `short[]' in `output.c', while it is
485 defined as a `int[]' in `reader.c'. For consistency with the
486 other output tables, `user_toknums' is now defined as a table of
489 * src/reader.c (user_toknums): Be a short table instead of an int
493 Factor the short table outputs.
495 * src/output.c (output_short_table): New function.
496 * src/output.c (output_gram, output_stos, output_rule_data)
497 (output_base, output_table, output_check): Use it.
499 2000-10-02 Akim Demaille <akim@epita.fr>
501 * src/output.c (output): Topological sort of the functions, in
502 order to get rid of the `static' prototypes.
503 No longer use `register'.
504 * src/output.h: New file.
505 Propagate its inclusion in files explicitly prototyping functions
508 2000-09-21 Akim Demaille <akim@epita.fr>
510 * src/atgeneral.m4: Update from Autoconf.
512 2000-09-21 Akim Demaille <akim@epita.fr>
514 * src/closure.h: New file.
515 * src/closure.c: Formatting changes, topological sort over the
516 functions, use of closure.h.
517 (initialize_closure, finalize_closure): Rename as...
518 (new_closure, free_closure): these. Adjust dependencies.
519 * src/LR0.c: Formatting changes, topological sort, use of
521 (initialize_states): Rename as...
523 * src/Makefile.am (noinst_HEADERS): Adjust.
525 2000-09-20 Akim Demaille <akim@epita.fr>
527 * src/acconfig.h: Don't protect config.h against multiple
530 * src/system.h: Define PARAMS.
531 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
532 purpose of config.h. system.h must not try to fix wrong
533 definitions in config.h.
535 2000-09-20 Akim Demaille <akim@epita.fr>
537 * src/derives.h: New file.
538 * src/main.c, src/derives.h: Use it.
540 * src/Makefile.am (noinst_HEADERS): Adjust.
542 2000-09-20 Akim Demaille <akim@epita.fr>
544 * tests/atgeneral.m4: Update from Autoconf.
545 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
546 (AT_CHECK_CALC): New macros.
547 Use these macros to test bison with options `', `--raw',
548 `--debug', `--yacc', `--yacc --debug'.
550 2000-09-19 Akim Demaille <akim@epita.fr>
552 * src/output.c: Formatting changes.
553 * src/machine.h: Remove, leaving its contents in...
554 * src/system.h: here.
556 Adjust all dependencies on stdio.h and machine.h.
557 * src/getargs.h: New file.
558 Let all `extern' declarations about getargs.c be replaced with
559 inclusion of `getargs.h'.
560 * src/Makefile.am (noinst_HEADERS): Adjust.
562 * tests/calc.m4 (yyin): Be initialized in main, not on the global
564 (yyerror): Returns void, not int.
565 * doc/bison.texinfo: Formatting changes.
567 2000-09-19 Akim Demaille <akim@epita.fr>
569 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
572 2000-09-18 Akim Demaille <akim@epita.fr>
574 * configure.in: Append WARNING_CFLAGS to CFLAGS.
575 * src/Makefile.am (INCLUDES): Don't.
576 Be ready to fetch headers in lib/.
578 2000-09-18 Akim Demaille <akim@epita.fr>
580 * doc/bison.texinfo: Update the copyright.
581 ANSIfy and GNUify the examples.
584 2000-09-18 Akim Demaille <akim@epita.fr>
586 First set of tests: use the `calc' example from the documentation.
588 * src/bison.s1 (yyparse): Condition the code using `yytname' which
589 is defined only when YYDEBUG is.
590 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
591 * src/files.c (tryopen, tryclose): Formatting changes.
592 Move to the top and be static.
593 * src/reader.c (read_signed_integer): Likewise.
594 * tests/calc.m4: New file.
595 * Makefile.am, suite.m4: Adjust.
596 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
598 2000-09-18 Akim Demaille <akim@epita.fr>
600 Add support for an Autotest test suite for Bison.
602 * m4/m4.m4, m4/atconfig.m4: New files.
603 * m4/Makefile.am (EXTRA_DIST): Adjust.
604 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
606 * src/getargs.c: Display a more standard --version message.
607 * src/reader.c (reader): Formatting changes.
608 No longer depend upon VERSION_STRING.
609 * configure.in: No longer use `dnl'.
610 Set up the test suite and the new directory `tests/.
611 (VERSION_STRING): Remove.
613 2000-04-14 Akim Demaille <akim@epita.fr>
615 * src/reader.c (copy_comment2): New function, same as former
616 `copy_comment', but outputs into two FILE *.
617 (copy_comment): Use it.
618 (parse_union_decl): Use it.
619 (get_type, parse_start_decl): Use the same `invalid' message.
620 (parse_start_decl, parse_union_decl): Use the same `multiple'
622 (parse_union_decl, copy_guard, copy_action): Use the same
624 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
626 2000-03-31 Akim Demaille <akim@epita.fr>
628 * src/files.c (tryopen, tryclose): Move to the top.
631 2000-03-31 Akim Demaille <akim@epita.fr>
633 * src/main.c (main): Don't call `done', exit does it.
635 2000-03-31 Akim Demaille <akim@epita.fr>
637 * allocate.c: s/return (foo)/return foo/.
640 * output.c: Likewise.
641 * reader.c: Likewise.
642 * symtab.c: Likewise.
643 * vmsgetargs.c: Likewise.
645 2000-03-31 Akim Demaille <akim@epita.fr>
647 Clean up the error reporting functions.
649 * src/report.c: New file.
650 * src/report.h: Likewise.
651 * src/Makefile.am: Adjust.
652 * m4/error.m4: New file.
653 * m4/Makefile.am: Adjust.
654 * configure.in (jm_PREREQ_ERROR): Call it.
655 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
657 (fatal, fatals): Remove. All callers use complain.c::fatal.
658 (warn, warni, warns, warnss, warnss): Remove. All callers use
659 complain.c::complain.
660 (toomany): Remove, use fatal instead.
661 * src/files.c (done): No argument, use complain_message_count.
662 * src/main.c (main): Register `done' to `atexit'.
664 * src/getargs.c (usage): More `fputs', less `fprintf'.
666 2000-03-28 Akim Demaille <akim@epita.fr>
668 * lib/: New directory.
669 * Makefile.am (SUBDIRS): Adjust.
670 * configure.in: Adjust.
671 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
673 * src/alloca.c: Moved to lib/.
674 * src/getopt.c: Likewise.
675 * src/getopt1.c: Likewise.
676 * src/getopt.h: Likewise.
677 * src/ansi2knr.c: Likewise.
678 * src/ansi2knr.1: Likewise.
679 * src/Makefile.am: Adjust.
680 * lib/Makefile.am: New file.
682 2000-03-28 Akim Demaille <akim@epita.fr>
684 * src/getargs.c (usage): Refresh the help message.
686 2000-03-17 Akim Demaille <akim@epita.fr>
688 * src/getopt1.c: Updated from textutils 2.0e
689 * src/getopt.c: Likewise.
690 * src/getopt.h: Likewise.
692 2000-03-17 Akim Demaille <akim@epita.fr>
694 * src/Makefile.am (bison.simple): Fix the awk program: quote only
695 the file name, not the whole `#line LINE FILE'.
697 2000-03-17 Akim Demaille <akim@epita.fr>
699 On syntax errors, report the token on which we choked.
701 * src/bison.s1 (yyparse): In the label yyerrlab, when
702 YYERROR_VERBOSE, add yychar in msg.
704 2000-03-17 Akim Demaille <akim@epita.fr>
706 * src/reader.c (copy_at): New function.
707 (copy_guard): Use it.
708 (copy_action): Use it.
710 2000-03-17 Akim Demaille <akim@epita.fr>
712 Be kind to translators, save some useless translations.
714 * src/main.c (banner): New function.
715 (fatal_banner): Use it.
716 (warn_banner): Use it.
718 2000-03-17 Akim Demaille <akim@epita.fr>
720 * src/reader.c (copy_definition): Use copy_string and
721 copy_comment. Removed now unused `match', `ended',
723 (copy_comment, copy_string): Moved, to be visible from
726 2000-03-17 Akim Demaille <akim@epita.fr>
728 * src/reader.c (copy_string): Declare `static inline'. No
729 problems with inline, since it is checked by configure.
730 (copy_comment): Likewise.
732 2000-03-17 Akim Demaille <akim@epita.fr>
734 * src/reader.c (packsymbols): Formatting changes.
736 2000-03-17 Akim Demaille <akim@epita.fr>
738 * src/reader.c (copy_comment): New function, factored out from:
739 (copy_action): Use it. Removed now unused `match', `ended',
741 (copy_guard): Likewise.
743 2000-03-17 Akim Demaille <akim@epita.fr>
745 * src/reader.c (copy_string): New function, factored out from:
746 (copy_action): Use it.
747 (copy_guard): Likewise.
749 2000-03-17 Akim Demaille <akim@epita.fr>
751 Change the handling of @s so that they behave exactly like $s.
752 There is now a pseudo variable @$ (readble and writable), location
753 of the lhs of the rule (by default ranging from the location of
754 the first symbol of the rhs, to the location of the last symbol,
755 or, if the rhs is empty, YYLLOC).
757 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
759 (yyparse): When providing a default semantic action, provide a
760 default location action.
761 (after the $): No longer change `*YYLSP', just stack YYLOC the
762 same way you stack YYVAL.
763 * src/reader.c (read_declarations): Use warns.
764 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
765 (copy_action, case '@'): Likewise.
766 Use a standard error message, to save useless work from
769 2000-03-17 Akim Demaille <akim@epita.fr>
771 * src/bison.s1: Formatting and cosmetics changes.
772 * src/reader.c: Likewise.
773 Update the Copyright notice.
775 2000-03-17 Akim Demaille <akim@epita.fr>
777 * src/bison.s1 (#line): All set to `#line' only, since the
778 Makefile now handles them.
780 2000-03-16 Akim Demaille <akim@epita.fr>
782 * src/output.c (output_rule_data): Output the documentation of
784 (Copyright notice): Update.
787 2000-03-16 Akim Demaille <akim@epita.fr>
789 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
790 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
791 One `#if YYDEBUG' remains, since it uses variables which are
792 defined only if `YYDEBUG != 0'.
794 2000-03-16 Akim Demaille <akim@epita.fr>
796 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
797 and related variables so that the similarities are highlighted.
799 2000-03-16 Akim Demaille <akim@epita.fr>
801 * src/bison.s1: Properly indent CPP directives.
803 2000-03-16 Akim Demaille <akim@epita.fr>
805 * src/bison.s1: Properly indent the `alloca' CPP section.
807 2000-03-16 Akim Demaille <akim@epita.fr>
809 Do not hard code values of directories in `configure.in'.
810 Update the `configure' tool chain.
812 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
814 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
815 (AC_OUTPUT): Add m4/Makefile.
816 Bump to bison 1.28a, 1.29 has never been released.
817 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
818 handled via src/Makefile.am.
819 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
820 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
822 * Makefile.am (SUBDIRS): Add m4.
823 (ACLOCAL_AM_FLAGS): New variable.
824 (AUTOMAKE_OPTIONS): Add check-news.
825 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
826 the proper line number and file name.
827 (DEFS): Propagate the location of bison library files and of the
829 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
831 * acinclude.m4: Remove, replaced by the directory m4.
832 * m4/Makefile.am (EXTRA_DIST): New variable.
833 * m4/gettext.m4: New file, from the fileutils.
834 * m4/lcmessage.m4: Likewise
835 * m4/progtest.m4: Likewise.
836 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
838 2000-03-10 Akim Demaille <akim@epita.fr>
841 Formatting changes of various comments.
842 Respect the GNU coding standards at various places.
843 Don't use `_()' when no translation is needed.
845 1999-12-13 Jesse Thilo <jthilo@gnu.org>
848 OS/2 honors TMPDIR environment variable.
850 1999-12-13 Jesse Thilo <jthilo@gnu.org>
852 * doc/bison.texinfo: Tweaked spelling and grammar.
854 Removed reference to price of printed copy.
855 Mention BISON_SIMPLE and BISON_HAIRY.
857 1999-12-13 Jesse Thilo <jthilo@gnu.org>
859 * configure.in, NEWS:
862 1999-10-27 Jesse Thilo <jthilo@gnu.org>
864 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
865 Added reference card.
867 1999-07-26 Jesse Thilo <jthilo@gnu.org>
869 * po/ru.po: Added Russian translation.
871 1999-07-26 Jesse Thilo <jthilo@gnu.org>
873 * configure.in: Added Russian translation.
875 1999-07-06 Jesse Thilo <jthilo@gnu.org>
877 * configure.in, NEWS, README:
878 Released version 1.28.
880 1999-06-14 Jesse Thilo <jthilo@gnu.org>
883 Squashed redefinition warning on some systems.
885 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
886 Have configure build version string instead of relying on ANSI string
889 1999-06-14 Jesse Thilo <jthilo@gnu.org>
891 * po/POTFILES.in: Got rid of version.c.
893 1999-06-14 Jesse Thilo <jthilo@gnu.org>
895 * acconfig.h, configure.in:
896 Have configure build version string instead of relying on ANSI string
899 1999-06-08 Jesse Thilo <jthilo@gnu.org>
902 Dropped mention of `+' for long-named options.
904 1999-05-30 Jesse Thilo <jthilo@gnu.org>
906 * src/files.c: Added <unistd.h> for unlink().
908 * src/Makefile.am, src/system.h:
911 1999-05-30 Jesse Thilo <jthilo@gnu.org>
913 * README: Added a FAQ list.
915 * configure.in, acconfig.h:
918 1999-05-30 Jesse Thilo <jthilo@gnu.org>
920 * doc/FAQ, doc/Makefile.am:
923 1999-05-19 Jesse Thilo <jthilo@gnu.org>
925 * src/alloc.h, src/symtab.h, src/version.c:
926 Protected inclusion of "config.h" with HAVE_CONFIG_H.
928 1999-04-18 Jesse Thilo <jthilo@gnu.org>
930 * src/.cvsignore, src/Makefile.am:
931 Reorganized: sources in `src', documentation in `doc'.
933 * src/lex.c (literalchar):
934 fixed the code for escaping double quotes (thanks
937 1999-04-18 Jesse Thilo <jthilo@gnu.org>
939 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
940 Adjusted paths to reflect directory reorganization.
942 1999-04-18 Jesse Thilo <jthilo@gnu.org>
944 * doc/.cvsignore, doc/Makefile.am:
945 Reorganized: sources in `src', documentation in `doc'.
947 1999-04-18 Jesse Thilo <jthilo@gnu.org>
950 Updated AC_INIT file to reflect directory reorganization.
952 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
953 Reorganized: sources in `src', documentation in `doc'.
955 1999-04-13 Jesse Thilo <jthilo@gnu.org>
958 Don't declare calloc() and realloc() if not necessary.
960 1999-04-13 Jesse Thilo <jthilo@gnu.org>
962 * configure.in, acconfig.h, acinclude.m4:
963 Don't declare calloc() and realloc() if not necessary.
965 1999-03-23 Jesse Thilo <jthilo@gnu.org>
967 * po/.cvsignore: Added i18n support.
969 1999-03-23 Jesse Thilo <jthilo@gnu.org>
971 * acconfig.h, configure.in, Makefile.am:
974 1999-03-22 Jesse Thilo <jthilo@gnu.org>
976 * src/bison.s1: Fixed #line numbers.
978 1999-03-15 Jesse Thilo <jthilo@gnu.org>
980 * po/es.po, po/fr.po, po/nl.po, po/de.po:
981 Added PO files from Translation Project.
983 1999-03-03 Jesse Thilo <jthilo@gnu.org>
986 Added support for non-ANSI compilers (ansi2knr).
988 1999-02-16 Jesse Thilo <jthilo@gnu.org>
990 * configure.in: Bumped version number to 1.27.
993 Added `bison.simple' to list of files removed by `make distclean'.
995 1999-02-12 Jesse Thilo <jthilo@gnu.org>
997 * src/files.c, src/files.h:
998 Defined locations of parser files in config.h instead of Makefile.
1000 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1002 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1003 Defined locations of parser files in config.h instead of Makefile.
1005 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1008 Removed inappropriate use of $< macro.
1010 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1012 * po/Makefile.in.in, po/POTFILES.in:
1013 Add `po' directory skeleton.
1015 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1017 * README: Document help-bison list.
1019 * configure.in: Add check for mkstemp().
1021 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1023 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1024 Hush a few compiler warnings.
1027 Add tryclose(), which verifies that fclose was successful.
1028 Hush a couple of compiler warnings.
1030 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1032 * Makefile.am, OChangeLog:
1033 ChangeLog is now automatically generated. Include the old version as
1036 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1038 * src/gram.h, src/lalr.c, src/lex.c, src/lex.h, src/machine.h, src/main.c, src/nullable.c, src/output.c, src/print.c, src/reader.c, src/reduce.c, src/state.h, src/symtab.c, src/symtab.h, src/types.h, src/vmsgetargs.c, src/warshall.c, src/allocate.c, src/alloc.h, src/bison.s1, src/closure.c, src/conflicts.c, src/derives.c, src/files.c, src/files.h, src/getargs.c, src/gram.c, src/LR0.c:
1041 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1043 * doc/bison.texinfo: Fix formatting glitch.
1045 * doc/bison.texinfo: Update FSF address.
1047 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1049 * acconfig.h: Update FSF address.
1051 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1054 Don't define PACKAGE here, since config.h defines it.
1056 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1058 * src/reader.c: Update copyright date.
1061 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1062 favor of output directly to stderr (avoids buffer overruns).
1064 * src/reader.c: Some checks for premature EOF.
1066 * src/allocate.c, src/alloc.h, src/closure.c, src/conflicts.c, src/derives.c, src/getargs.c, src/gram.c, src/lalr.c, src/lex.c, src/LR0.c, src/main.c, src/nullable.c, src/output.c, src/print.c, src/reduce.c, src/symtab.c, src/symtab.h, src/warshall.c:
1067 Use prototypes if the compiler understands them.
1069 * src/files.c: Honor TMPDIR on Unix hosts.
1070 Use prototypes if the compiler understands them.
1073 Fix a couple of buffer overrun bugs.
1074 Use prototypes if the compiler understands them.
1076 * src/system.h: Include unistd.h and ctype.h.
1077 Use #ifdef instead of #if for NLS symbols.
1079 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1081 * doc/bison.texinfo:
1082 Delete comment "consider using @set for edition number, etc..." since
1083 we now are doing so.
1085 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1088 Use prototypes if the compiler understands them.
1090 * NEWS: Document 1.26 highlights.
1092 * Makefile.am: Require Automake 1.3 or later.
1095 Use prototypes if the compiler understands them.
1097 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1100 Use VERSION symbol from automake for version number.
1102 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1104 * acconfig.h, configure.in, version.cin:
1105 Use VERSION symbol from automake for version number.
1107 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1110 Distribute original version of simple parser (bison.s1), not built
1111 version (bison.simple).
1113 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1115 * doc/bison.texinfo: Add info dir entry.
1117 * doc/bison.texinfo:
1118 Let automake put version number into documentation.
1120 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1122 * src/bison.cld, src/build.com, src/vmshlp.mar:
1123 Add non-RCS files from /gd/gnu/bison.
1125 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1128 Document the BISON_HAIRY and BISON_SIMPLE variables.
1130 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1132 * src/version.c: Build version.c automatically.
1135 Fix token numbering (used to start at 258, not 257).
1137 * src/system.h: Include config.h.
1139 * src/getargs.c: Update bug report address.
1141 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1142 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1144 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1147 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1149 * configure.in, version.cin:
1150 Build version.c automatically.
1152 * AUTHORS: Add AUTHORS file.
1154 * README: Update bug report address.
1157 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1159 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1162 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1164 * doc/bison.texinfo: Clean up some formatting.
1166 1998-05-05 Richard Stallman <rms@gnu.org>
1168 * doc/bison.texinfo:
1169 Explain better why to make a pure parser.
1171 1998-01-05 Richard Stallman <rms@gnu.org>
1173 * src/files.c (openfiles):
1174 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1175 find a temporary directory, if possible. Do not unlink files while
1178 1997-08-25 Richard Stallman <rms@gnu.org>
1180 * src/reader.c (stack_offset;):
1181 Change some warni to warns.
1183 * src/lex.c (literalchar): Use warns, not warni.
1185 1997-06-28 Richard Stallman <rms@gnu.org>
1187 * src/bison.s1: Add a Bison version comment.
1189 * src/main.c (fatal, warn, berror):
1192 1997-06-28 Richard Stallman <rms@gnu.org>
1194 * Makefile.in (bison_version): New variable.
1195 (dist): Use that variable.
1196 (bison.s1): Substitute the Bison version into bison.simple.
1198 * bison.simple: Add a Bison version comment.
1200 1997-06-18 Richard Stallman <rms@gnu.org>
1202 * src/main.c (fatal, warn, berror):
1203 Make error messages standard.
1204 (toomany): Improve error message text.
1206 * src/LR0.c, src/closure.c, src/conflicts.c, src/derives.c, src/files.c, src/lalr.c, src/lex.c, src/nullable.c, src/output.c, src/print.c, src/reader.c, src/reduce.c, src/symtab.c:
1207 new.h renamed to alloc.h.
1209 1997-06-18 Richard Stallman <rms@gnu.org>
1211 * Makefile.in: new.h renamed to alloc.h.
1213 1997-05-24 Richard Stallman <rms@gnu.org>
1215 * src/lex.c (literalchar):
1216 Fix the code for escaping \, " and '.
1218 (lex): Avoid trouble when there are many chars
1219 to discard in a char literal with just several chars in it.
1221 1997-05-17 Richard Stallman <rms@gnu.org>
1224 Use malloc, if using alloca is troublesome.
1225 (YYSTACK_USE_ALLOCA): New flag macro.
1226 Define it for some systems and compilers.
1227 (YYSTACK_ALLOC): New macro.
1228 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1229 If it was malloc'd, free it.
1231 1997-05-17 Richard Stallman <rms@gnu.org>
1234 Use malloc, if using alloca is troublesome.
1235 (YYSTACK_USE_ALLOCA): New flag macro.
1236 Define it for some systems and compilers.
1237 (YYSTACK_ALLOC): New macro.
1238 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1239 If it was malloc'd, free it.
1241 1997-04-23 Richard Stallman <rms@gnu.org>
1244 (alloca) [__hpux]: Always define as __builtin_alloca.
1246 1997-04-23 Richard Stallman <rms@gnu.org>
1249 (alloca) [__hpux]: Always define as __builtin_alloca.
1251 1997-04-22 Richard Stallman <rms@gnu.org>
1254 [__hpux]: Include alloca.h (right for HPUX 10)
1255 instead of declaring alloca (right for HPUX 9).
1257 * src/bison.s1 (__yy_memcpy):
1258 Declare arg `count' as unsigned int.
1259 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1261 1997-04-22 Richard Stallman <rms@gnu.org>
1264 [__hpux]: Include alloca.h (right for HPUX 10)
1265 instead of declaring alloca (right for HPUX 9).
1267 * bison.simple (__yy_memcpy):
1268 Declare arg `count' as unsigned int.
1269 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1271 1997-01-03 Richard Stallman <rms@gnu.org>
1273 * src/allocate.c: [__STDC__ or _MSC_VER]:
1274 Declare calloc and realloc to return void *.
1276 1997-01-02 Richard Stallman <rms@gnu.org>
1279 [_MSC_VER]: Include stdlib.h and process.h.
1280 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1282 * src/main.c (main): Return FAILURE as a value.
1283 (printable_version): Declare arg as int, not char.
1285 1997-01-02 Richard Stallman <rms@gnu.org>
1287 * Makefile.in (dist):
1288 Explicitly check for symlinks, and copy them.
1290 1996-12-19 Richard Stallman <rms@gnu.org>
1293 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1295 1996-12-18 Paul Eggert <eggert@gnu.org>
1297 * src/bison.s1 (yyparse):
1298 If __GNUC__ and YYPARSE_PARAM are both defined,
1299 declare yyparse to have a void * argument.
1301 1996-12-18 Paul Eggert <eggert@gnu.org>
1303 * bison.simple (yyparse):
1304 If __GNUC__ and YYPARSE_PARAM are both defined,
1305 declare yyparse to have a void * argument.
1307 1996-12-17 Richard Stallman <rms@gnu.org>
1309 * src/reduce.c (nbits): Add some casts.
1311 1996-08-12 Richard Stallman <rms@gnu.org>
1313 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1315 1996-08-12 Richard Stallman <rms@gnu.org>
1317 * bison.simple: Test _MSDOS as well as _MSDOS_.
1319 1996-07-31 Richard Stallman <rms@gnu.org>
1322 [__sun && __i386]: Include alloca.h.
1324 1996-07-31 Richard Stallman <rms@gnu.org>
1327 [__sun && __i386]: Include alloca.h.
1329 1996-07-30 Richard Stallman <rms@gnu.org>
1331 * src/bison.s1: Comment change.
1333 * src/bison.s1: Test _MSDOS_, not MSDOS.
1335 1996-07-30 Richard Stallman <rms@gnu.org>
1337 * bison.simple: Comment change.
1339 * bison.simple: Test _MSDOS_, not MSDOS.
1341 1996-06-01 Richard Stallman <rms@gnu.org>
1343 * src/reduce.c, src/reader.c, src/print.c, src/output.c, src/nullable.c, src/lex.c, src/lalr.c, src/getargs.c, src/derives.c, src/conflicts.c, src/closure.c, src/allocate.c:
1344 Insert `_' macro around many string constants.
1347 Insert `_' macro around many string constants.
1349 (main): Call setlocale, bindtextdomain and textdomain.
1351 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1352 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1353 [ENABLE_NLS]: Include libintl.h.
1354 [ENABLE_NLS] (gettext): Define.
1355 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1356 (N_, PACKAGE, LOCALEDIR): New macros.
1358 1996-06-01 Richard Stallman <rms@gnu.org>
1360 * POTFILES.in: New file.
1362 * Makefile.in (allocate.o):
1363 Define target explicitly.
1365 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1366 (LDFLAGS): Set to @LDFLAGS@.
1367 (configure): Run autoconf only if preceding `cd' succeeds.
1368 (bison.s1): Redirect output to temporary file then move the
1369 temporary to the target, rather than redirecting directly to bison.s1.
1370 (clean): Remove config.status and config.log.
1371 (distclean): Don't remove config.status here.
1373 1996-05-12 Richard Stallman <rms@gnu.org>
1376 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1378 1996-05-12 Richard Stallman <rms@gnu.org>
1381 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1383 1996-05-11 Richard Stallman <rms@gnu.org>
1385 * src/bison.s1 (__yy_memcpy):
1386 Really reorder the args, as was supposedly done on Feb 14 1995.
1387 (yyparse): Calls changed accordingly.
1389 1996-05-11 Richard Stallman <rms@gnu.org>
1391 * Makefile.in (dist): Don't use $(srcdir).
1393 * bison.simple (__yy_memcpy):
1394 Really reorder the args, as was supposedly done on Feb 14 1995.
1395 (yyparse): Calls changed accordingly.
1397 1996-01-27 Richard Stallman <rms@gnu.org>
1399 * src/output.c (output_rule_data):
1400 Test YYERROR_VERBOSE in the conditional
1401 around the definition of ttyname.
1403 1995-12-29 Richard Stallman <rms@gnu.org>
1406 Fix line numbers in #line commands.
1408 1995-12-29 Richard Stallman <rms@gnu.org>
1411 Fix line numbers in #line commands.
1413 1995-12-27 Richard Stallman <rms@gnu.org>
1415 * src/bison.s1 (YYPARSE_PARAM_DECL):
1416 In C++, make it always null.
1417 (YYPARSE_PARAM_ARG): New macro.
1418 (yyparse): Use YYPARSE_PARAM_ARG.
1420 1995-12-27 Richard Stallman <rms@gnu.org>
1422 * bison.simple (YYPARSE_PARAM_DECL):
1423 In C++, make it always null.
1424 (YYPARSE_PARAM_ARG): New macro.
1425 (yyparse): Use YYPARSE_PARAM_ARG.
1427 1995-11-29 Richard Stallman <rms@gnu.org>
1429 * doc/bison.texinfo:
1430 Describe literal string tokens, %raw, %no_lines, %token_table.
1432 1995-11-29 Daniel Hagerty <hag@gnu.org>
1434 * doc/bison.texinfo: Fixed update date
1436 1995-10-16 Richard Stallman <rms@gnu.org>
1438 * src/version.c: Version 1.25.
1440 1995-10-16 Richard Stallman <rms@gnu.org>
1442 * NEWS: *** empty log message ***
1444 1995-10-16 Richard Stallman <rms@gnu.org>
1446 * doc/bison.1, doc/bison.rnh:
1449 1995-10-15 Richard Stallman <rms@gnu.org>
1451 * src/vmsgetargs.c, src/getargs.c:
1452 Added -n, -k, and -raw switches.
1453 (noparserflag, toknumflag, rawtoknumflag): New variables.
1455 * src/symtab.h (SALIAS):
1456 New #define for adding aliases to %token.
1457 (struct bucket): Added `alias' field.
1459 * src/reduce.c (reduce_grammar):
1460 Revise error message.
1461 (print_notices): Remove final `.' from error message.
1463 * src/reader.c (reader_output_yylsp):
1465 (readgram): Use `#if 0' around code that accepted %command
1466 inside grammar rules: The documentation doesn't allow it,
1467 and it will fail since the %command processors scan for the next %.
1468 (parse_token_decl): Extended the %token
1469 declaration to allow a multi-character symbol as an alias.
1470 (parse_thong_decl): New function.
1471 (read_declarations): Added %thong declarations.
1472 (read_declarations): Handle NOOP to deal with allowing
1473 % declarations as another means to specify the flags.
1474 (readgram): Allow %prec prior to semantics embedded in a rule.
1475 (skip_to_char, read_declarations, copy_definition)
1476 (parse_token_decl, parse_start_decl, parse_type_decl)
1477 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1478 (get_type_name, copy_guard, copy_action, readgram)
1479 (get_type, packsymbols): Revised most error messages.
1480 Changed `fatal' to `warnxxx' to avoid aborting for error.
1481 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1482 (read_declarations): Improve the error message for
1483 an invalid character. Do not abort.
1484 (read_declarations, copy_guard, copy_action): Use
1485 printable_version to avoid unprintable characters in printed output.
1486 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1487 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1488 Allow the type of a non-terminal can be given
1489 more than once, as long as all specifications give the same type.
1492 (output_headers, output_trailers, output, output_gram)
1493 (output_rule_data): Implement noparserflag variable.
1494 Implement toknumflag variable.
1495 (output): Call reader_output_yylsp to output LTYPESTR.
1497 * src/main.c (main):
1498 If reader sees an error, don't process the grammar.
1499 (fatals): Updated to not use VARARGS1.
1500 (printable_version, int_to_string, warn, warni, warns, warnss)
1501 (warnsss): New error reporting functions. Avoid abort for error.
1504 Added THONG and NOOP for alias processing.
1505 Added SETOPT for the new code that allows setting options with %flags.
1508 Include getopt.h. Add some extern decls.
1509 (safegetc): New function to deal with EOF gracefully.
1510 (literalchar); new function to deal with reading \ escapes.
1511 (lex): Use literalchar.
1512 (lex): Implemented "..." tokens.
1513 (literalchar, lex, parse_percent_token): Made tokenbuffer
1514 always contain the token. This includes growing the token
1515 buffer while reading an integer.
1516 (parse_percent_token): Replaced if-else statement with percent_table.
1517 (parse_percent_token): Added % declarations as another
1518 way to specify the flags -n, -l, and -r. Also added hooks for
1519 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1520 major changes to files.c.
1521 (lex) Retain in the incoming stream a character following
1523 (skip_white_space, lex): Revised most error messages
1524 and changed fatal to warn to avoid aborting.
1525 (percent_table): Added %thong declarations.
1527 * src/gram.h: Comment changes.
1529 * src/files.c (openfiles, open_extra_files, done):
1531 and actfile file. Handle noparserflag. Both for -n switch.
1533 * src/conflicts.c (resolve_sr_conflict):
1534 Remove use of alloca.
1536 1995-06-01 Jim Meyering <meyering@gnu.org>
1538 * doc/bison.texinfo: *** empty log message ***
1540 1995-05-06 Richard Stallman <rms@gnu.org>
1542 * src/bison.s1: Comment change.
1544 1995-05-06 Richard Stallman <rms@gnu.org>
1546 * bison.simple: Comment change.
1548 1995-05-03 Richard Stallman <rms@gnu.org>
1550 * src/version.c: Version now 1.24.
1552 * src/bison.s1: Change distribution terms.
1554 * src/version.c: Version now 1.23.
1556 1995-05-03 Richard Stallman <rms@gnu.org>
1558 * doc/bison.texinfo:
1559 Rewrite "Conditions for Using Bison".
1560 Update version to 1.24.
1562 1995-05-03 Richard Stallman <rms@gnu.org>
1564 * bison.simple: Change distribution terms.
1566 1995-02-23 Richard Stallman <rms@gnu.org>
1568 * src/files.c: Test __VMS_POSIX as well as VMS.
1570 1995-02-14 Jim Meyering <meyering@gnu.org>
1572 * src/bison.s1 (__yy_memcpy):
1573 Renamed from __yy_bcopy to avoid
1574 confusion. Reverse FROM and TO arguments to be consistent with
1577 1995-02-14 Jim Meyering <meyering@gnu.org>
1579 * bison.simple (__yy_memcpy):
1580 Renamed from __yy_bcopy to avoid
1581 confusion. Reverse FROM and TO arguments to be consistent with
1584 1994-11-10 David J. MacKenzie <djm@gnu.org>
1590 * Makefile.in (DISTFILES): Include NEWS.
1592 * Makefile.in (DISTFILES):
1593 Include install-sh, not install.sh.
1595 * configure.in: Update to Autoconf v2 macro names.
1597 1994-10-05 David J. MacKenzie <djm@gnu.org>
1599 * Makefile.in: fix typo
1601 * Makefile.in (prefix, exec_prefix):
1602 Let configure set them.
1604 1994-09-28 David J. MacKenzie <djm@gnu.org>
1606 * Makefile.in: Set datadir to $(prefix)/share.
1608 1994-09-15 Richard Stallman <rms@gnu.org>
1611 Update copyright notice and GPL version.
1613 1994-09-15 Richard Stallman <rms@gnu.org>
1616 Update copyright notice and GPL version.
1618 1994-07-12 Richard Stallman <rms@gnu.org>
1620 * src/reduce.c, src/reader.c:
1623 1994-05-05 David J. MacKenzie <djm@gnu.org>
1625 * Makefile.in: entered into RCS
1627 1994-03-26 Richard Stallman <rms@gnu.org>
1629 * src/bison.s1: entered into RCS
1631 1994-03-26 Richard Stallman <rms@gnu.org>
1633 * bison.simple: entered into RCS
1635 1994-03-25 Richard Stallman <rms@gnu.org>
1637 * src/main.c: entered into RCS
1639 1994-03-24 Richard Stallman <rms@gnu.org>
1641 * src/conflicts.c: entered into RCS
1643 1994-01-02 Richard Stallman <rms@gnu.org>
1645 * Makefile.in: *** empty log message ***
1647 1993-11-21 Richard Stallman <rms@gnu.org>
1649 * src/bison.s1: *** empty log message ***
1651 1993-11-21 Richard Stallman <rms@gnu.org>
1653 * doc/bison.texinfo: entered into RCS
1655 * doc/bison.texinfo: *** empty log message ***
1657 1993-11-21 Richard Stallman <rms@gnu.org>
1659 * bison.simple: *** empty log message ***
1661 1993-10-25 David J. MacKenzie <djm@gnu.org>
1663 * doc/bison.texinfo: *** empty log message ***
1665 1993-10-19 Richard Stallman <rms@gnu.org>
1667 * src/bison.s1: *** empty log message ***
1669 1993-10-19 Richard Stallman <rms@gnu.org>
1671 * bison.simple: *** empty log message ***
1673 1993-10-14 Richard Stallman <rms@gnu.org>
1675 * src/bison.s1: *** empty log message ***
1677 1993-10-14 Richard Stallman <rms@gnu.org>
1679 * bison.simple: *** empty log message ***
1681 1993-09-14 David J. MacKenzie <djm@gnu.org>
1683 * doc/bison.texinfo: *** empty log message ***
1685 1993-09-13 Noah Friedman <friedman@gnu.org>
1687 * Makefile.in: *** empty log message ***
1689 1993-09-10 Richard Stallman <rms@gnu.org>
1691 * src/conflicts.c: *** empty log message ***
1693 * src/system.h: entered into RCS
1695 1993-09-10 Richard Stallman <rms@gnu.org>
1697 * doc/bison.1: entered into RCS
1699 1993-09-06 Noah Friedman <friedman@gnu.org>
1701 * src/version.c: entered into RCS
1703 1993-09-06 Noah Friedman <friedman@gnu.org>
1705 * Makefile.in: *** empty log message ***
1707 1993-07-30 David J. MacKenzie <djm@gnu.org>
1709 * Makefile.in: *** empty log message ***
1711 1993-07-24 Richard Stallman <rms@gnu.org>
1713 * src/bison.s1: *** empty log message ***
1715 1993-07-24 Richard Stallman <rms@gnu.org>
1717 * bison.simple: *** empty log message ***
1719 1993-07-08 David J. MacKenzie <djm@gnu.org>
1721 * Makefile.in: *** empty log message ***
1723 1993-07-04 Richard Stallman <rms@gnu.org>
1725 * src/bison.s1: *** empty log message ***
1727 1993-07-04 Richard Stallman <rms@gnu.org>
1729 * bison.simple: *** empty log message ***
1731 1993-06-26 David J. MacKenzie <djm@gnu.org>
1733 * src/getargs.c: entered into RCS
1735 1993-06-26 David J. MacKenzie <djm@gnu.org>
1737 * doc/bison.texinfo: *** empty log message ***
1739 * doc/bison.1: New file.
1741 1993-06-25 Richard Stallman <rms@gnu.org>
1743 * src/getargs.c: New file.
1745 1993-06-16 Richard Stallman <rms@gnu.org>
1747 * src/bison.s1: *** empty log message ***
1749 1993-06-16 Richard Stallman <rms@gnu.org>
1751 * bison.simple: *** empty log message ***
1753 1993-06-03 Richard Stallman <rms@gnu.org>
1755 * src/bison.s1: New file.
1757 1993-06-03 Richard Stallman <rms@gnu.org>
1759 * doc/bison.texinfo: *** empty log message ***
1761 1993-06-03 Richard Stallman <rms@gnu.org>
1763 * bison.simple: New file.
1765 1993-05-19 Richard Stallman <rms@gnu.org>
1767 * doc/bison.texinfo: New file.
1769 1993-05-07 Noah Friedman <friedman@gnu.org>
1771 * Makefile.in: *** empty log message ***
1773 1993-04-28 Noah Friedman <friedman@gnu.org>
1775 * src/reader.c: *** empty log message ***
1777 1993-04-23 Noah Friedman <friedman@gnu.org>
1779 * src/alloc.h: entered into RCS
1781 1993-04-20 David J. MacKenzie <djm@gnu.org>
1783 * src/version.c: *** empty log message ***
1785 * src/files.c, src/allocate.c:
1788 * src/reader.c: *** empty log message ***
1790 * src/lex.c: entered into RCS
1792 * src/conflicts.c: New file.
1794 * src/symtab.c: entered into RCS
1796 * src/alloc.h: New file.
1798 * src/LR0.c: entered into RCS
1800 1993-04-18 Noah Friedman <friedman@gnu.org>
1802 * src/reader.c: New file.
1804 * src/version.c: *** empty log message ***
1806 1993-04-18 Noah Friedman <friedman@gnu.org>
1808 * Makefile.in: *** empty log message ***
1810 1993-04-17 Noah Friedman <friedman@gnu.org>
1812 * Makefile.in: *** empty log message ***
1814 1993-04-15 Richard Stallman <rms@gnu.org>
1816 * src/main.c, src/files.c:
1819 1993-04-15 Noah Friedman <friedman@gnu.org>
1821 * configure.in: entered into RCS
1823 * configure.in: *** empty log message ***
1825 * configure.in: New file.
1827 1993-04-14 Richard Stallman <rms@gnu.org>
1829 * Makefile.in: New file.
1831 1993-04-13 Richard Stallman <rms@gnu.org>
1833 * src/version.c: New file.
1835 1993-03-25 Richard Stallman <rms@gnu.org>
1837 * src/output.c: entered into RCS
1839 1992-09-25 Richard Stallman <rms@gnu.org>
1841 * configure.bat: entered into RCS
1843 1992-06-22 Richard Stallman <rms@gnu.org>
1845 * src/vmsgetargs.c: entered into RCS
1847 1992-06-22 Richard Stallman <rms@gnu.org>
1849 * doc/bison.rnh: entered into RCS
1851 1992-04-20 David J. MacKenzie <djm@gnu.org>
1853 * README: entered into RCS
1855 1992-01-22 Richard Stallman <rms@gnu.org>
1857 * src/machine.h: entered into RCS
1859 1991-12-21 Richard Stallman <rms@gnu.org>
1861 * src/lalr.c, src/closure.c:
1864 1991-12-20 Richard Stallman <rms@gnu.org>
1866 * src/state.h: entered into RCS
1868 1991-12-18 Richard Stallman <rms@gnu.org>
1870 * src/print.c, src/nullable.c, src/derives.c:
1873 1991-11-03 David J. MacKenzie <djm@gnu.org>
1875 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1878 1988-09-09 Richard Stallman <rms@gnu.org>
1880 * src/bison.hairy: entered into RCS
1882 1987-12-16 Richard Stallman <rms@gnu.org>
1884 * REFERENCES: entered into RCS