1 2000-12-19 Akim Demaille <akim@epita.fr>
3 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
5 * src/files.c (open_files): Less dependency on MSDOS etc.
7 2000-12-14 Akim Demaille <akim@epita.fr>
9 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
10 Provide a default definition.
11 Use it when executing the default @ action.
12 * src/reader.c (reader_output_yylsp): No longer include
13 `timestamp' and `text' in the default YYLTYPE.
15 2000-12-12 Akim Demaille <akim@epita.fr>
17 * src/reader.c (copy_definition, parse_union_decl, copy_action)
18 (copy_guard): Quote the file names.
19 Reported by Laurent Mascherpa.
21 2000-12-12 Akim Demaille <akim@epita.fr>
23 * src/output.c (output_headers, output_program, output): Be sure
24 to escape special characters when outputting filenames.
25 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
26 (output_headers): Don't depend on them, Use ACTSTR.
28 2000-11-17 Akim Demaille <akim@epita.fr>
30 * lib/obstack.h: Formatting changes.
31 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
32 prevents type checking.
33 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
34 cast the value to (void *): assigning a `foo *' to a `void *'
36 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
37 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
40 2000-11-17 Akim Demaille <akim@epita.fr>
42 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
44 (suite.m4, regression.m4, calc.m4): these.
45 * tests/atgeneral.m4: Update from CVS Autoconf.
47 2000-11-17 Akim Demaille <akim@epita.fr>
49 * tests/regression.m4 (%union and --defines): New test,
50 demonstrating a current bug in the obstack implementation.
52 2000-11-17 Akim Demaille <akim@epita.fr>
54 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
56 Use them to declare the variables which are global or local to
59 2000-11-17 Akim Demaille <akim@epita.fr>
61 * acconfig.h: Remove, no longer used.
63 2000-11-07 Akim Demaille <akim@epita.fr>
65 * src: s/Copyright (C)/Copyright/g.
67 2000-11-07 Akim Demaille <akim@epita.fr>
69 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
71 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
73 2000-11-07 Akim Demaille <akim@epita.fr>
75 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
76 Merge in a single CPP if/else.
78 2000-11-07 Akim Demaille <akim@epita.fr>
80 * src/output.c (output): Remove useless variables.
81 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
82 argument `data' for consistency with the prototypes.
84 (obstack_copy, obstack_copy0): Rename the second argument as
85 `address' for consistency. Qualify it `const'.
86 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
87 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
88 `const' their input argument (`data' or `address').
89 Adjust the corresponding macros to include `const' in casts.
91 2000-11-03 Akim Demaille <akim@epita.fr>
93 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
94 s/PFILE1/BISON_HAIRY/.
97 2000-11-03 Akim Demaille <akim@epita.fr>
99 For some reason, this was not applied.
101 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
102 `unlink': it's no longer used.
104 2000-11-03 Akim Demaille <akim@epita.fr>
106 * src/files.c (skeleton_find): New function, eved out of...
107 (open_files, open_extra_files): here.
109 2000-11-03 Akim Demaille <akim@epita.fr>
113 * src/files.c (obstack_save): New function.
115 (output_files): this.
117 * src/main.c (main): Don't use `atexit' to register `done', since
118 it no longer has to remove tmp files, just call `output_files'
119 when there are no errors.
121 2000-11-02 Akim Demaille <akim@epita.fr>
123 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
124 `unlink': it's no longer used.
125 * src/files.h: Formatting changes.
127 2000-11-02 Akim Demaille <akim@epita.fr>
129 Remove the last uses of mktemp and unlink/delete.
131 * src/files.c (fdefines, ftable): Removed.
132 (defines_ostack, table_obstack): New.
133 Adjust dependencies of the former into uses of the latter.
134 * src/output.c (output_short_or_char_table, output_short_table):
135 Convert to using obstacks.
136 * src/reader.c (copy_comment2): Accept one FILE * and two
138 (output_token_defines, reader_output_yylsp): Use obstacks.
139 * src/system.h (obstack_fgrow3): New.
141 2000-11-01 Akim Demaille <akim@epita.fr>
143 Change each use of `fattrs' into a use of `attrs_obstack'.
145 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
146 * src/files.c (fattrs): Remove.
147 (attrs_obstack): New.
148 Adjust all dependencies.
149 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
151 2000-11-01 Akim Demaille <akim@epita.fr>
154 Change each use of `faction' into a use of `action_obstack'.
156 * lib/obstack.h, lib/obstack.c: New files.
157 * src/files.c (faction): Remove.
158 (action_obstack): New.
159 Adjust all dependencies.
161 2000-10-20 Akim Demaille <akim@epita.fr>
163 * lib/quote.h (PARAMS): New macro. Use it.
165 2000-10-16 Akim Demaille <akim@epita.fr>
167 * src/output.c (output_short_or_char_table): New function.
168 (output_short_table, output_token_translations): Use it.
169 (goto_actions): Use output_short_table.
171 2000-10-16 Akim Demaille <akim@epita.fr>
173 * src/symtab.c (bucket_new): New function.
176 * src/output.c (output_short_table): New argument to display the
177 comment associated with the table.
179 (output_gram): Use it.
180 (output_rule_data): Nicer output layout for YYTNAME.
182 2000-10-16 Akim Demaille <akim@epita.fr>
184 * src/lex.c (read_typename): New function.
186 * src/reader.c (copy_dollar): Likewise.
188 2000-10-16 Akim Demaille <akim@epita.fr>
190 * src/reader.c (copy_comment2): Expect the input stream to be on
191 the `/' which is suspected to open a comment, instead of being
192 called after `//' or `/*' was read.
193 (copy_comment, copy_definition, parse_union_decl, copy_action)
194 (copy_guard): Adjust.
196 2000-10-16 Akim Demaille <akim@epita.fr>
198 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
199 `read_signed_integer'.
201 2000-10-16 Akim Demaille <akim@epita.fr>
203 * src/reader.c (copy_dollar): New function.
204 (copy_guard, copy_action): Use it.
206 2000-10-16 Akim Demaille <akim@epita.fr>
208 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
209 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
210 New files, from Fileutils 4.0.27.
211 * src/main.c (printable_version): Remove.
212 * src/lex.c, src/reader.c: Use `quote'.
214 2000-10-04 Akim Demaille <akim@epita.fr>
216 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
218 2000-10-04 Akim Demaille <akim@epita.fr>
220 * doc/bison.texinfo: Various typos spotted by Neil Booth.
222 2000-10-04 Akim Demaille <akim@epita.fr>
224 When a literal string is used to define two different tokens,
225 `bison -v' segfaults.
226 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
228 * tests/regression.m4: New file.
229 Include the core of the sample provided by Piotr Gackiewicz.
230 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
233 2000-10-04 Akim Demaille <akim@epita.fr>
235 * src/reader.c (parse_expect_decl): Keep `count' within the size
239 2000-10-02 Paul Eggert <eggert@twinsun.com>
241 * bison.s1 (yyparse): Assign the default value
242 unconditionally, to avoid a GCC warning and make the parser a
245 2000-10-02 Akim Demaille <akim@epita.fr>
247 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
250 2000-10-02 Akim Demaille <akim@epita.fr>
252 * src/derives.c, src/print.c, src/reduce.c: To ease the
253 translation, move some `\n' out of the translated strings.
255 2000-10-02 Akim Demaille <akim@epita.fr>
257 The location tracking mechanism is precious for parse error
258 messages. Nevertheless, it is enabled only when `@n' is used in
259 the grammar, which is a different issue (you can use it in error
260 message, but not in the grammar per se). Therefore, there should
261 be another means to enable it.
263 * src/getargs.c (getargs): Support `--locations'.
265 * src/getargs.h (locationsflag): Export it.
266 * src/lex.c (percent_table): Support `%locations'.
267 * src/reader.c (yylsp_needed): Remove this variable, now replaced
268 with `locationsflag'.
269 * doc/bison.texinfo: Document `--locations' and `%locations'.
271 * tests/calc.m4: Test it.
273 For regularity of the names, replace each
274 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
275 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
276 In addition replace each `flag' with `_flag'.
278 2000-10-02 Akim Demaille <akim@epita.fr>
280 Also test parse error messages, including with YYERROR_VERBOSE.
282 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
284 Use it to check the computations.
285 Use it to check `nonassoc' is honored.
286 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
288 (_AT_CHECK_CALC): Adjust to this option.
289 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
291 2000-10-02 Akim Demaille <akim@epita.fr>
293 Test also `--verbose', `--defines' and `--name-prefix'. Testing
294 the latter demonstrates a flaw in the handling of non debugging
295 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
296 was used in order to simplify:
312 unfortunately this leads to a CPP conflict when
313 `--name-prefix=foo' is used since it produces `#define yydebug
316 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
317 (YYDPRINTF): New macro.
319 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
321 Also test `--verbose', `--defines' and `--name-prefix'.
323 2000-10-02 Akim Demaille <akim@epita.fr>
325 Improve the readability of the produced parsers.
327 * src/bison.s1: Formatting changes.
328 Improve the comment related to the `$' mark.
329 (yydefault): Don't fall through to `yyresume': `goto' there.
330 * src/output.c (output_parser): When the `$' is met, skip the end
332 New variable, `number_of_dollar_signs', to check there's exactly
333 one `$' in the parser skeleton.
335 2000-10-02 Akim Demaille <akim@epita.fr>
337 * lib/xstrdup.c: New file, from the fileutils.
338 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
339 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
340 instead of strlen + xmalloc + strcpy.
341 * src/symtab.c (copys): Remove, use xstrdup instead.
343 2000-10-02 Akim Demaille <akim@epita.fr>
345 * src/gram.h (associativity): New enum type which replaces the
346 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
347 `right_assoc', `left_assoc' and `non_assoc'.
348 Adjust all dependencies.
349 * src/reader.c: Formatting changes.
350 (LTYPESTR): Don't define it, use it as a literal in
351 `reader_output_yylsp'.
352 * src/symtab.h (symbol_class): New enum type which replaces the
353 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
354 `sunknown', `stoken and `snterm'.
356 2000-10-02 Akim Demaille <akim@epita.fr>
358 * src/getargs.c (fixed_outfiles): Rename as...
359 (yaccflag): for consistency and accuracy.
362 2000-10-02 Akim Demaille <akim@epita.fr>
364 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
365 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
366 difficult and introduced a lot of core dump. It turns out that
367 Bison used an implementation of `xmalloc' based on `calloc', and
368 at various places it does depend upon the initialization to 0. I
369 have not tried to isolate the pertinent places, and all the former
370 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
371 someone should address this issue.
373 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
374 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
377 * src/warshall.h: New file.
380 2000-10-02 Akim Demaille <akim@epita.fr>
382 Various anti-`extern in *.c' changes.
384 * src/system.h: Include `assert.h'.
386 2000-10-02 Akim Demaille <akim@epita.fr>
388 * src/state.h (nstates, final_state, first_state, first_shift)
389 (first_reduction): Move their exportation from here...
390 * src/LR0.h: to here.
392 * src/getargs.c (statisticsflag): New variable.
393 Add support for `--statistics'.
396 Remove a lot of now useless `extern' statements in most files.
398 2000-10-02 Akim Demaille <akim@epita.fr>
400 * src/LR0.h: New file.
403 2000-10-02 Akim Demaille <akim@epita.fr>
405 * src/print.h: New file.
407 * src/print.c: Formatting and ordering changes.
408 (verbose, terse): Replace with...
409 (print_results): this new function.
412 2000-10-02 Akim Demaille <akim@epita.fr>
414 * src/conflicts.c (conflict_report): New function.
415 (conflict_log, verbose_conflict_log): Replace with...
416 (print_conflicts): this function.
418 * src/conflicts.h: New file.
419 Propagate its inclusion.
421 2000-10-02 Akim Demaille <akim@epita.fr>
423 * src/nullable.h: New file.
424 Propagate its inclusion.
425 * src/nullable.c: Formatting changes.
427 2000-10-02 Akim Demaille <akim@epita.fr>
429 * src/reduce.h: New file.
430 Propagate its inclusion.
431 * src/reduce.c: Topological sort and other formatting changes.
432 (bool, TRUE, FALSE): Move their definition to...
433 * src/system.h: here.
435 2000-10-02 Akim Demaille <akim@epita.fr>
437 * src/files.c: Formatting changes.
438 (tryopen, tryclose, openfiles): Rename as...
439 (xfopen, xfclose, open_files): this.
440 (stringappend): static.
441 * src/files.h: Complete the list of exported symbols.
444 2000-10-02 Akim Demaille <akim@epita.fr>
446 * src/reader.h: New file.
447 Propagate its use instead of tedious list of `extern' and
449 * src/reader.c: Formatting changes, topological sort,
452 2000-10-02 Akim Demaille <akim@epita.fr>
454 * src/lex.h: Prototype `lex.c' exported functions.
455 * src/reader.c: Adjust.
456 * src/lex.c: Formatting changes.
457 (safegetc): Rename as...
460 2000-10-02 Akim Demaille <akim@epita.fr>
462 * src/lalr.h: New file.
463 Propagate its inclusion instead of prototypes and `extern'.
464 * src/lalr.c: Formatting changes, topological sorting etc.
466 2000-10-02 Akim Demaille <akim@epita.fr>
468 * src/output.c (token_actions): Introduce a temporary array,
469 YYDEFACT, that makes it possible for this function to use
472 2000-10-02 Akim Demaille <akim@epita.fr>
474 `user_toknums' is output as a `short[]' in `output.c', while it is
475 defined as a `int[]' in `reader.c'. For consistency with the
476 other output tables, `user_toknums' is now defined as a table of
479 * src/reader.c (user_toknums): Be a short table instead of an int
483 Factor the short table outputs.
485 * src/output.c (output_short_table): New function.
486 * src/output.c (output_gram, output_stos, output_rule_data)
487 (output_base, output_table, output_check): Use it.
489 2000-10-02 Akim Demaille <akim@epita.fr>
491 * src/output.c (output): Topological sort of the functions, in
492 order to get rid of the `static' prototypes.
493 No longer use `register'.
494 * src/output.h: New file.
495 Propagate its inclusion in files explicitly prototyping functions
498 2000-09-21 Akim Demaille <akim@epita.fr>
500 * src/atgeneral.m4: Update from Autoconf.
502 2000-09-21 Akim Demaille <akim@epita.fr>
504 * src/closure.h: New file.
505 * src/closure.c: Formatting changes, topological sort over the
506 functions, use of closure.h.
507 (initialize_closure, finalize_closure): Rename as...
508 (new_closure, free_closure): these. Adjust dependencies.
509 * src/LR0.c: Formatting changes, topological sort, use of
511 (initialize_states): Rename as...
513 * src/Makefile.am (noinst_HEADERS): Adjust.
515 2000-09-20 Akim Demaille <akim@epita.fr>
517 * src/acconfig.h: Don't protect config.h against multiple
520 * src/system.h: Define PARAMS.
521 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
522 purpose of config.h. system.h must not try to fix wrong
523 definitions in config.h.
525 2000-09-20 Akim Demaille <akim@epita.fr>
527 * src/derives.h: New file.
528 * src/main.c, src/derives.h: Use it.
530 * src/Makefile.am (noinst_HEADERS): Adjust.
532 2000-09-20 Akim Demaille <akim@epita.fr>
534 * tests/atgeneral.m4: Update from Autoconf.
535 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
536 (AT_CHECK_CALC): New macros.
537 Use these macros to test bison with options `', `--raw',
538 `--debug', `--yacc', `--yacc --debug'.
540 2000-09-19 Akim Demaille <akim@epita.fr>
542 * src/output.c: Formatting changes.
543 * src/machine.h: Remove, leaving its contents in...
544 * src/system.h: here.
546 Adjust all dependencies on stdio.h and machine.h.
547 * src/getargs.h: New file.
548 Let all `extern' declarations about getargs.c be replaced with
549 inclusion of `getargs.h'.
550 * src/Makefile.am (noinst_HEADERS): Adjust.
552 * tests/calc.m4 (yyin): Be initialized in main, not on the global
554 (yyerror): Returns void, not int.
555 * doc/bison.texinfo: Formatting changes.
557 2000-09-19 Akim Demaille <akim@epita.fr>
559 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
562 2000-09-18 Akim Demaille <akim@epita.fr>
564 * configure.in: Append WARNING_CFLAGS to CFLAGS.
565 * src/Makefile.am (INCLUDES): Don't.
566 Be ready to fetch headers in lib/.
568 2000-09-18 Akim Demaille <akim@epita.fr>
570 * doc/bison.texinfo: Update the copyright.
571 ANSIfy and GNUify the examples.
574 2000-09-18 Akim Demaille <akim@epita.fr>
576 First set of tests: use the `calc' example from the documentation.
578 * src/bison.s1 (yyparse): Condition the code using `yytname' which
579 is defined only when YYDEBUG is.
580 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
581 * src/files.c (tryopen, tryclose): Formatting changes.
582 Move to the top and be static.
583 * src/reader.c (read_signed_integer): Likewise.
584 * tests/calc.m4: New file.
585 * Makefile.am, suite.m4: Adjust.
586 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
588 2000-09-18 Akim Demaille <akim@epita.fr>
590 Add support for an Autotest test suite for Bison.
592 * m4/m4.m4, m4/atconfig.m4: New files.
593 * m4/Makefile.am (EXTRA_DIST): Adjust.
594 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
596 * src/getargs.c: Display a more standard --version message.
597 * src/reader.c (reader): Formatting changes.
598 No longer depend upon VERSION_STRING.
599 * configure.in: No longer use `dnl'.
600 Set up the test suite and the new directory `tests/.
601 (VERSION_STRING): Remove.
603 2000-04-14 Akim Demaille <akim@epita.fr>
605 * src/reader.c (copy_comment2): New function, same as former
606 `copy_comment', but outputs into two FILE *.
607 (copy_comment): Use it.
608 (parse_union_decl): Use it.
609 (get_type, parse_start_decl): Use the same `invalid' message.
610 (parse_start_decl, parse_union_decl): Use the same `multiple'
612 (parse_union_decl, copy_guard, copy_action): Use the same
614 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
616 2000-03-31 Akim Demaille <akim@epita.fr>
618 * src/files.c (tryopen, tryclose): Move to the top.
621 2000-03-31 Akim Demaille <akim@epita.fr>
623 * src/main.c (main): Don't call `done', exit does it.
625 2000-03-31 Akim Demaille <akim@epita.fr>
627 * allocate.c: s/return (foo)/return foo/.
630 * output.c: Likewise.
631 * reader.c: Likewise.
632 * symtab.c: Likewise.
633 * vmsgetargs.c: Likewise.
635 2000-03-31 Akim Demaille <akim@epita.fr>
637 Clean up the error reporting functions.
639 * src/report.c: New file.
640 * src/report.h: Likewise.
641 * src/Makefile.am: Adjust.
642 * m4/error.m4: New file.
643 * m4/Makefile.am: Adjust.
644 * configure.in (jm_PREREQ_ERROR): Call it.
645 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
647 (fatal, fatals): Remove. All callers use complain.c::fatal.
648 (warn, warni, warns, warnss, warnss): Remove. All callers use
649 complain.c::complain.
650 (toomany): Remove, use fatal instead.
651 * src/files.c (done): No argument, use complain_message_count.
652 * src/main.c (main): Register `done' to `atexit'.
654 * src/getargs.c (usage): More `fputs', less `fprintf'.
656 2000-03-28 Akim Demaille <akim@epita.fr>
658 * lib/: New directory.
659 * Makefile.am (SUBDIRS): Adjust.
660 * configure.in: Adjust.
661 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
663 * src/alloca.c: Moved to lib/.
664 * src/getopt.c: Likewise.
665 * src/getopt1.c: Likewise.
666 * src/getopt.h: Likewise.
667 * src/ansi2knr.c: Likewise.
668 * src/ansi2knr.1: Likewise.
669 * src/Makefile.am: Adjust.
670 * lib/Makefile.am: New file.
672 2000-03-28 Akim Demaille <akim@epita.fr>
674 * src/getargs.c (usage): Refresh the help message.
676 2000-03-17 Akim Demaille <akim@epita.fr>
678 * src/getopt1.c: Updated from textutils 2.0e
679 * src/getopt.c: Likewise.
680 * src/getopt.h: Likewise.
682 2000-03-17 Akim Demaille <akim@epita.fr>
684 * src/Makefile.am (bison.simple): Fix the awk program: quote only
685 the file name, not the whole `#line LINE FILE'.
687 2000-03-17 Akim Demaille <akim@epita.fr>
689 On syntax errors, report the token on which we choked.
691 * src/bison.s1 (yyparse): In the label yyerrlab, when
692 YYERROR_VERBOSE, add yychar in msg.
694 2000-03-17 Akim Demaille <akim@epita.fr>
696 * src/reader.c (copy_at): New function.
697 (copy_guard): Use it.
698 (copy_action): Use it.
700 2000-03-17 Akim Demaille <akim@epita.fr>
702 Be kind to translators, save some useless translations.
704 * src/main.c (banner): New function.
705 (fatal_banner): Use it.
706 (warn_banner): Use it.
708 2000-03-17 Akim Demaille <akim@epita.fr>
710 * src/reader.c (copy_definition): Use copy_string and
711 copy_comment. Removed now unused `match', `ended',
713 (copy_comment, copy_string): Moved, to be visible from
716 2000-03-17 Akim Demaille <akim@epita.fr>
718 * src/reader.c (copy_string): Declare `static inline'. No
719 problems with inline, since it is checked by configure.
720 (copy_comment): Likewise.
722 2000-03-17 Akim Demaille <akim@epita.fr>
724 * src/reader.c (packsymbols): Formatting changes.
726 2000-03-17 Akim Demaille <akim@epita.fr>
728 * src/reader.c (copy_comment): New function, factored out from:
729 (copy_action): Use it. Removed now unused `match', `ended',
731 (copy_guard): Likewise.
733 2000-03-17 Akim Demaille <akim@epita.fr>
735 * src/reader.c (copy_string): New function, factored out from:
736 (copy_action): Use it.
737 (copy_guard): Likewise.
739 2000-03-17 Akim Demaille <akim@epita.fr>
741 Change the handling of @s so that they behave exactly like $s.
742 There is now a pseudo variable @$ (readble and writable), location
743 of the lhs of the rule (by default ranging from the location of
744 the first symbol of the rhs, to the location of the last symbol,
745 or, if the rhs is empty, YYLLOC).
747 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
749 (yyparse): When providing a default semantic action, provide a
750 default location action.
751 (after the $): No longer change `*YYLSP', just stack YYLOC the
752 same way you stack YYVAL.
753 * src/reader.c (read_declarations): Use warns.
754 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
755 (copy_action, case '@'): Likewise.
756 Use a standard error message, to save useless work from
759 2000-03-17 Akim Demaille <akim@epita.fr>
761 * src/bison.s1: Formatting and cosmetics changes.
762 * src/reader.c: Likewise.
763 Update the Copyright notice.
765 2000-03-17 Akim Demaille <akim@epita.fr>
767 * src/bison.s1 (#line): All set to `#line' only, since the
768 Makefile now handles them.
770 2000-03-16 Akim Demaille <akim@epita.fr>
772 * src/output.c (output_rule_data): Output the documentation of
774 (Copyright notice): Update.
777 2000-03-16 Akim Demaille <akim@epita.fr>
779 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
780 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
781 One `#if YYDEBUG' remains, since it uses variables which are
782 defined only if `YYDEBUG != 0'.
784 2000-03-16 Akim Demaille <akim@epita.fr>
786 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
787 and related variables so that the similarities are highlighted.
789 2000-03-16 Akim Demaille <akim@epita.fr>
791 * src/bison.s1: Properly indent CPP directives.
793 2000-03-16 Akim Demaille <akim@epita.fr>
795 * src/bison.s1: Properly indent the `alloca' CPP section.
797 2000-03-16 Akim Demaille <akim@epita.fr>
799 Do not hard code values of directories in `configure.in'.
800 Update the `configure' tool chain.
802 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
804 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
805 (AC_OUTPUT): Add m4/Makefile.
806 Bump to bison 1.28a, 1.29 has never been released.
807 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
808 handled via src/Makefile.am.
809 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
810 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
812 * Makefile.am (SUBDIRS): Add m4.
813 (ACLOCAL_AM_FLAGS): New variable.
814 (AUTOMAKE_OPTIONS): Add check-news.
815 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
816 the proper line number and file name.
817 (DEFS): Propagate the location of bison library files and of the
819 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
821 * acinclude.m4: Remove, replaced by the directory m4.
822 * m4/Makefile.am (EXTRA_DIST): New variable.
823 * m4/gettext.m4: New file, from the fileutils.
824 * m4/lcmessage.m4: Likewise
825 * m4/progtest.m4: Likewise.
826 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
828 2000-03-10 Akim Demaille <akim@epita.fr>
831 Formatting changes of various comments.
832 Respect the GNU coding standards at various places.
833 Don't use `_()' when no translation is needed.
835 1999-12-13 Jesse Thilo <jthilo@gnu.org>
838 OS/2 honors TMPDIR environment variable.
840 1999-12-13 Jesse Thilo <jthilo@gnu.org>
842 * doc/bison.texinfo: Tweaked spelling and grammar.
844 Removed reference to price of printed copy.
845 Mention BISON_SIMPLE and BISON_HAIRY.
847 1999-12-13 Jesse Thilo <jthilo@gnu.org>
849 * configure.in, NEWS:
852 1999-10-27 Jesse Thilo <jthilo@gnu.org>
854 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
855 Added reference card.
857 1999-07-26 Jesse Thilo <jthilo@gnu.org>
859 * po/ru.po: Added Russian translation.
861 1999-07-26 Jesse Thilo <jthilo@gnu.org>
863 * configure.in: Added Russian translation.
865 1999-07-06 Jesse Thilo <jthilo@gnu.org>
867 * configure.in, NEWS, README:
868 Released version 1.28.
870 1999-06-14 Jesse Thilo <jthilo@gnu.org>
873 Squashed redefinition warning on some systems.
875 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
876 Have configure build version string instead of relying on ANSI string
879 1999-06-14 Jesse Thilo <jthilo@gnu.org>
881 * po/POTFILES.in: Got rid of version.c.
883 1999-06-14 Jesse Thilo <jthilo@gnu.org>
885 * acconfig.h, configure.in:
886 Have configure build version string instead of relying on ANSI string
889 1999-06-08 Jesse Thilo <jthilo@gnu.org>
892 Dropped mention of `+' for long-named options.
894 1999-05-30 Jesse Thilo <jthilo@gnu.org>
896 * src/files.c: Added <unistd.h> for unlink().
898 * src/Makefile.am, src/system.h:
901 1999-05-30 Jesse Thilo <jthilo@gnu.org>
903 * README: Added a FAQ list.
905 * configure.in, acconfig.h:
908 1999-05-30 Jesse Thilo <jthilo@gnu.org>
910 * doc/FAQ, doc/Makefile.am:
913 1999-05-19 Jesse Thilo <jthilo@gnu.org>
915 * src/alloc.h, src/symtab.h, src/version.c:
916 Protected inclusion of "config.h" with HAVE_CONFIG_H.
918 1999-04-18 Jesse Thilo <jthilo@gnu.org>
920 * src/.cvsignore, src/Makefile.am:
921 Reorganized: sources in `src', documentation in `doc'.
923 * src/lex.c (literalchar):
924 fixed the code for escaping double quotes (thanks
927 1999-04-18 Jesse Thilo <jthilo@gnu.org>
929 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
930 Adjusted paths to reflect directory reorganization.
932 1999-04-18 Jesse Thilo <jthilo@gnu.org>
934 * doc/.cvsignore, doc/Makefile.am:
935 Reorganized: sources in `src', documentation in `doc'.
937 1999-04-18 Jesse Thilo <jthilo@gnu.org>
940 Updated AC_INIT file to reflect directory reorganization.
942 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
943 Reorganized: sources in `src', documentation in `doc'.
945 1999-04-13 Jesse Thilo <jthilo@gnu.org>
948 Don't declare calloc() and realloc() if not necessary.
950 1999-04-13 Jesse Thilo <jthilo@gnu.org>
952 * configure.in, acconfig.h, acinclude.m4:
953 Don't declare calloc() and realloc() if not necessary.
955 1999-03-23 Jesse Thilo <jthilo@gnu.org>
957 * po/.cvsignore: Added i18n support.
959 1999-03-23 Jesse Thilo <jthilo@gnu.org>
961 * acconfig.h, configure.in, Makefile.am:
964 1999-03-22 Jesse Thilo <jthilo@gnu.org>
966 * src/bison.s1: Fixed #line numbers.
968 1999-03-15 Jesse Thilo <jthilo@gnu.org>
970 * po/es.po, po/fr.po, po/nl.po, po/de.po:
971 Added PO files from Translation Project.
973 1999-03-03 Jesse Thilo <jthilo@gnu.org>
976 Added support for non-ANSI compilers (ansi2knr).
978 1999-02-16 Jesse Thilo <jthilo@gnu.org>
980 * configure.in: Bumped version number to 1.27.
983 Added `bison.simple' to list of files removed by `make distclean'.
985 1999-02-12 Jesse Thilo <jthilo@gnu.org>
987 * src/files.c, src/files.h:
988 Defined locations of parser files in config.h instead of Makefile.
990 1999-02-12 Jesse Thilo <jthilo@gnu.org>
992 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
993 Defined locations of parser files in config.h instead of Makefile.
995 1999-02-09 Jesse Thilo <jthilo@gnu.org>
998 Removed inappropriate use of $< macro.
1000 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1002 * po/Makefile.in.in, po/POTFILES.in:
1003 Add `po' directory skeleton.
1005 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1007 * README: Document help-bison list.
1009 * configure.in: Add check for mkstemp().
1011 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1013 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1014 Hush a few compiler warnings.
1017 Add tryclose(), which verifies that fclose was successful.
1018 Hush a couple of compiler warnings.
1020 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1022 * Makefile.am, OChangeLog:
1023 ChangeLog is now automatically generated. Include the old version as
1026 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1028 * 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:
1031 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1033 * doc/bison.texinfo: Fix formatting glitch.
1035 * doc/bison.texinfo: Update FSF address.
1037 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1039 * acconfig.h: Update FSF address.
1041 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1044 Don't define PACKAGE here, since config.h defines it.
1046 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1048 * src/reader.c: Update copyright date.
1051 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1052 favor of output directly to stderr (avoids buffer overruns).
1054 * src/reader.c: Some checks for premature EOF.
1056 * 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:
1057 Use prototypes if the compiler understands them.
1059 * src/files.c: Honor TMPDIR on Unix hosts.
1060 Use prototypes if the compiler understands them.
1063 Fix a couple of buffer overrun bugs.
1064 Use prototypes if the compiler understands them.
1066 * src/system.h: Include unistd.h and ctype.h.
1067 Use #ifdef instead of #if for NLS symbols.
1069 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1071 * doc/bison.texinfo:
1072 Delete comment "consider using @set for edition number, etc..." since
1073 we now are doing so.
1075 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1078 Use prototypes if the compiler understands them.
1080 * NEWS: Document 1.26 highlights.
1082 * Makefile.am: Require Automake 1.3 or later.
1085 Use prototypes if the compiler understands them.
1087 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1090 Use VERSION symbol from automake for version number.
1092 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1094 * acconfig.h, configure.in, version.cin:
1095 Use VERSION symbol from automake for version number.
1097 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1100 Distribute original version of simple parser (bison.s1), not built
1101 version (bison.simple).
1103 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1105 * doc/bison.texinfo: Add info dir entry.
1107 * doc/bison.texinfo:
1108 Let automake put version number into documentation.
1110 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1112 * src/bison.cld, src/build.com, src/vmshlp.mar:
1113 Add non-RCS files from /gd/gnu/bison.
1115 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1118 Document the BISON_HAIRY and BISON_SIMPLE variables.
1120 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1122 * src/version.c: Build version.c automatically.
1125 Fix token numbering (used to start at 258, not 257).
1127 * src/system.h: Include config.h.
1129 * src/getargs.c: Update bug report address.
1131 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1132 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1134 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1137 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1139 * configure.in, version.cin:
1140 Build version.c automatically.
1142 * AUTHORS: Add AUTHORS file.
1144 * README: Update bug report address.
1147 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1149 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1152 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1154 * doc/bison.texinfo: Clean up some formatting.
1156 1998-05-05 Richard Stallman <rms@gnu.org>
1158 * doc/bison.texinfo:
1159 Explain better why to make a pure parser.
1161 1998-01-05 Richard Stallman <rms@gnu.org>
1163 * src/files.c (openfiles):
1164 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1165 find a temporary directory, if possible. Do not unlink files while
1168 1997-08-25 Richard Stallman <rms@gnu.org>
1170 * src/reader.c (stack_offset;):
1171 Change some warni to warns.
1173 * src/lex.c (literalchar): Use warns, not warni.
1175 1997-06-28 Richard Stallman <rms@gnu.org>
1177 * src/bison.s1: Add a Bison version comment.
1179 * src/main.c (fatal, warn, berror):
1182 1997-06-28 Richard Stallman <rms@gnu.org>
1184 * Makefile.in (bison_version): New variable.
1185 (dist): Use that variable.
1186 (bison.s1): Substitute the Bison version into bison.simple.
1188 * bison.simple: Add a Bison version comment.
1190 1997-06-18 Richard Stallman <rms@gnu.org>
1192 * src/main.c (fatal, warn, berror):
1193 Make error messages standard.
1194 (toomany): Improve error message text.
1196 * 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:
1197 new.h renamed to alloc.h.
1199 1997-06-18 Richard Stallman <rms@gnu.org>
1201 * Makefile.in: new.h renamed to alloc.h.
1203 1997-05-24 Richard Stallman <rms@gnu.org>
1205 * src/lex.c (literalchar):
1206 Fix the code for escaping \, " and '.
1208 (lex): Avoid trouble when there are many chars
1209 to discard in a char literal with just several chars in it.
1211 1997-05-17 Richard Stallman <rms@gnu.org>
1214 Use malloc, if using alloca is troublesome.
1215 (YYSTACK_USE_ALLOCA): New flag macro.
1216 Define it for some systems and compilers.
1217 (YYSTACK_ALLOC): New macro.
1218 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1219 If it was malloc'd, free 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-04-23 Richard Stallman <rms@gnu.org>
1234 (alloca) [__hpux]: Always define as __builtin_alloca.
1236 1997-04-23 Richard Stallman <rms@gnu.org>
1239 (alloca) [__hpux]: Always define as __builtin_alloca.
1241 1997-04-22 Richard Stallman <rms@gnu.org>
1244 [__hpux]: Include alloca.h (right for HPUX 10)
1245 instead of declaring alloca (right for HPUX 9).
1247 * src/bison.s1 (__yy_memcpy):
1248 Declare arg `count' as unsigned int.
1249 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
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 * bison.simple (__yy_memcpy):
1258 Declare arg `count' as unsigned int.
1259 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1261 1997-01-03 Richard Stallman <rms@gnu.org>
1263 * src/allocate.c: [__STDC__ or _MSC_VER]:
1264 Declare calloc and realloc to return void *.
1266 1997-01-02 Richard Stallman <rms@gnu.org>
1269 [_MSC_VER]: Include stdlib.h and process.h.
1270 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1272 * src/main.c (main): Return FAILURE as a value.
1273 (printable_version): Declare arg as int, not char.
1275 1997-01-02 Richard Stallman <rms@gnu.org>
1277 * Makefile.in (dist):
1278 Explicitly check for symlinks, and copy them.
1280 1996-12-19 Richard Stallman <rms@gnu.org>
1283 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1285 1996-12-18 Paul Eggert <eggert@gnu.org>
1287 * src/bison.s1 (yyparse):
1288 If __GNUC__ and YYPARSE_PARAM are both defined,
1289 declare yyparse to have a void * argument.
1291 1996-12-18 Paul Eggert <eggert@gnu.org>
1293 * bison.simple (yyparse):
1294 If __GNUC__ and YYPARSE_PARAM are both defined,
1295 declare yyparse to have a void * argument.
1297 1996-12-17 Richard Stallman <rms@gnu.org>
1299 * src/reduce.c (nbits): Add some casts.
1301 1996-08-12 Richard Stallman <rms@gnu.org>
1303 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1305 1996-08-12 Richard Stallman <rms@gnu.org>
1307 * bison.simple: Test _MSDOS as well as _MSDOS_.
1309 1996-07-31 Richard Stallman <rms@gnu.org>
1312 [__sun && __i386]: Include alloca.h.
1314 1996-07-31 Richard Stallman <rms@gnu.org>
1317 [__sun && __i386]: Include alloca.h.
1319 1996-07-30 Richard Stallman <rms@gnu.org>
1321 * src/bison.s1: Comment change.
1323 * src/bison.s1: Test _MSDOS_, not MSDOS.
1325 1996-07-30 Richard Stallman <rms@gnu.org>
1327 * bison.simple: Comment change.
1329 * bison.simple: Test _MSDOS_, not MSDOS.
1331 1996-06-01 Richard Stallman <rms@gnu.org>
1333 * 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:
1334 Insert `_' macro around many string constants.
1337 Insert `_' macro around many string constants.
1339 (main): Call setlocale, bindtextdomain and textdomain.
1341 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1342 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1343 [ENABLE_NLS]: Include libintl.h.
1344 [ENABLE_NLS] (gettext): Define.
1345 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1346 (N_, PACKAGE, LOCALEDIR): New macros.
1348 1996-06-01 Richard Stallman <rms@gnu.org>
1350 * POTFILES.in: New file.
1352 * Makefile.in (allocate.o):
1353 Define target explicitly.
1355 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1356 (LDFLAGS): Set to @LDFLAGS@.
1357 (configure): Run autoconf only if preceding `cd' succeeds.
1358 (bison.s1): Redirect output to temporary file then move the
1359 temporary to the target, rather than redirecting directly to bison.s1.
1360 (clean): Remove config.status and config.log.
1361 (distclean): Don't remove config.status here.
1363 1996-05-12 Richard Stallman <rms@gnu.org>
1366 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1368 1996-05-12 Richard Stallman <rms@gnu.org>
1371 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1373 1996-05-11 Richard Stallman <rms@gnu.org>
1375 * src/bison.s1 (__yy_memcpy):
1376 Really reorder the args, as was supposedly done on Feb 14 1995.
1377 (yyparse): Calls changed accordingly.
1379 1996-05-11 Richard Stallman <rms@gnu.org>
1381 * Makefile.in (dist): Don't use $(srcdir).
1383 * bison.simple (__yy_memcpy):
1384 Really reorder the args, as was supposedly done on Feb 14 1995.
1385 (yyparse): Calls changed accordingly.
1387 1996-01-27 Richard Stallman <rms@gnu.org>
1389 * src/output.c (output_rule_data):
1390 Test YYERROR_VERBOSE in the conditional
1391 around the definition of ttyname.
1393 1995-12-29 Richard Stallman <rms@gnu.org>
1396 Fix line numbers in #line commands.
1398 1995-12-29 Richard Stallman <rms@gnu.org>
1401 Fix line numbers in #line commands.
1403 1995-12-27 Richard Stallman <rms@gnu.org>
1405 * src/bison.s1 (YYPARSE_PARAM_DECL):
1406 In C++, make it always null.
1407 (YYPARSE_PARAM_ARG): New macro.
1408 (yyparse): Use YYPARSE_PARAM_ARG.
1410 1995-12-27 Richard Stallman <rms@gnu.org>
1412 * bison.simple (YYPARSE_PARAM_DECL):
1413 In C++, make it always null.
1414 (YYPARSE_PARAM_ARG): New macro.
1415 (yyparse): Use YYPARSE_PARAM_ARG.
1417 1995-11-29 Richard Stallman <rms@gnu.org>
1419 * doc/bison.texinfo:
1420 Describe literal string tokens, %raw, %no_lines, %token_table.
1422 1995-11-29 Daniel Hagerty <hag@gnu.org>
1424 * doc/bison.texinfo: Fixed update date
1426 1995-10-16 Richard Stallman <rms@gnu.org>
1428 * src/version.c: Version 1.25.
1430 1995-10-16 Richard Stallman <rms@gnu.org>
1432 * NEWS: *** empty log message ***
1434 1995-10-16 Richard Stallman <rms@gnu.org>
1436 * doc/bison.1, doc/bison.rnh:
1439 1995-10-15 Richard Stallman <rms@gnu.org>
1441 * src/vmsgetargs.c, src/getargs.c:
1442 Added -n, -k, and -raw switches.
1443 (noparserflag, toknumflag, rawtoknumflag): New variables.
1445 * src/symtab.h (SALIAS):
1446 New #define for adding aliases to %token.
1447 (struct bucket): Added `alias' field.
1449 * src/reduce.c (reduce_grammar):
1450 Revise error message.
1451 (print_notices): Remove final `.' from error message.
1453 * src/reader.c (reader_output_yylsp):
1455 (readgram): Use `#if 0' around code that accepted %command
1456 inside grammar rules: The documentation doesn't allow it,
1457 and it will fail since the %command processors scan for the next %.
1458 (parse_token_decl): Extended the %token
1459 declaration to allow a multi-character symbol as an alias.
1460 (parse_thong_decl): New function.
1461 (read_declarations): Added %thong declarations.
1462 (read_declarations): Handle NOOP to deal with allowing
1463 % declarations as another means to specify the flags.
1464 (readgram): Allow %prec prior to semantics embedded in a rule.
1465 (skip_to_char, read_declarations, copy_definition)
1466 (parse_token_decl, parse_start_decl, parse_type_decl)
1467 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1468 (get_type_name, copy_guard, copy_action, readgram)
1469 (get_type, packsymbols): Revised most error messages.
1470 Changed `fatal' to `warnxxx' to avoid aborting for error.
1471 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1472 (read_declarations): Improve the error message for
1473 an invalid character. Do not abort.
1474 (read_declarations, copy_guard, copy_action): Use
1475 printable_version to avoid unprintable characters in printed output.
1476 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1477 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1478 Allow the type of a non-terminal can be given
1479 more than once, as long as all specifications give the same type.
1482 (output_headers, output_trailers, output, output_gram)
1483 (output_rule_data): Implement noparserflag variable.
1484 Implement toknumflag variable.
1485 (output): Call reader_output_yylsp to output LTYPESTR.
1487 * src/main.c (main):
1488 If reader sees an error, don't process the grammar.
1489 (fatals): Updated to not use VARARGS1.
1490 (printable_version, int_to_string, warn, warni, warns, warnss)
1491 (warnsss): New error reporting functions. Avoid abort for error.
1494 Added THONG and NOOP for alias processing.
1495 Added SETOPT for the new code that allows setting options with %flags.
1498 Include getopt.h. Add some extern decls.
1499 (safegetc): New function to deal with EOF gracefully.
1500 (literalchar); new function to deal with reading \ escapes.
1501 (lex): Use literalchar.
1502 (lex): Implemented "..." tokens.
1503 (literalchar, lex, parse_percent_token): Made tokenbuffer
1504 always contain the token. This includes growing the token
1505 buffer while reading an integer.
1506 (parse_percent_token): Replaced if-else statement with percent_table.
1507 (parse_percent_token): Added % declarations as another
1508 way to specify the flags -n, -l, and -r. Also added hooks for
1509 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1510 major changes to files.c.
1511 (lex) Retain in the incoming stream a character following
1513 (skip_white_space, lex): Revised most error messages
1514 and changed fatal to warn to avoid aborting.
1515 (percent_table): Added %thong declarations.
1517 * src/gram.h: Comment changes.
1519 * src/files.c (openfiles, open_extra_files, done):
1521 and actfile file. Handle noparserflag. Both for -n switch.
1523 * src/conflicts.c (resolve_sr_conflict):
1524 Remove use of alloca.
1526 1995-06-01 Jim Meyering <meyering@gnu.org>
1528 * doc/bison.texinfo: *** empty log message ***
1530 1995-05-06 Richard Stallman <rms@gnu.org>
1532 * src/bison.s1: Comment change.
1534 1995-05-06 Richard Stallman <rms@gnu.org>
1536 * bison.simple: Comment change.
1538 1995-05-03 Richard Stallman <rms@gnu.org>
1540 * src/version.c: Version now 1.24.
1542 * src/bison.s1: Change distribution terms.
1544 * src/version.c: Version now 1.23.
1546 1995-05-03 Richard Stallman <rms@gnu.org>
1548 * doc/bison.texinfo:
1549 Rewrite "Conditions for Using Bison".
1550 Update version to 1.24.
1552 1995-05-03 Richard Stallman <rms@gnu.org>
1554 * bison.simple: Change distribution terms.
1556 1995-02-23 Richard Stallman <rms@gnu.org>
1558 * src/files.c: Test __VMS_POSIX as well as VMS.
1560 1995-02-14 Jim Meyering <meyering@gnu.org>
1562 * src/bison.s1 (__yy_memcpy):
1563 Renamed from __yy_bcopy to avoid
1564 confusion. Reverse FROM and TO arguments to be consistent with
1567 1995-02-14 Jim Meyering <meyering@gnu.org>
1569 * bison.simple (__yy_memcpy):
1570 Renamed from __yy_bcopy to avoid
1571 confusion. Reverse FROM and TO arguments to be consistent with
1574 1994-11-10 David J. MacKenzie <djm@gnu.org>
1580 * Makefile.in (DISTFILES): Include NEWS.
1582 * Makefile.in (DISTFILES):
1583 Include install-sh, not install.sh.
1585 * configure.in: Update to Autoconf v2 macro names.
1587 1994-10-05 David J. MacKenzie <djm@gnu.org>
1589 * Makefile.in: fix typo
1591 * Makefile.in (prefix, exec_prefix):
1592 Let configure set them.
1594 1994-09-28 David J. MacKenzie <djm@gnu.org>
1596 * Makefile.in: Set datadir to $(prefix)/share.
1598 1994-09-15 Richard Stallman <rms@gnu.org>
1601 Update copyright notice and GPL version.
1603 1994-09-15 Richard Stallman <rms@gnu.org>
1606 Update copyright notice and GPL version.
1608 1994-07-12 Richard Stallman <rms@gnu.org>
1610 * src/reduce.c, src/reader.c:
1613 1994-05-05 David J. MacKenzie <djm@gnu.org>
1615 * Makefile.in: entered into RCS
1617 1994-03-26 Richard Stallman <rms@gnu.org>
1619 * src/bison.s1: entered into RCS
1621 1994-03-26 Richard Stallman <rms@gnu.org>
1623 * bison.simple: entered into RCS
1625 1994-03-25 Richard Stallman <rms@gnu.org>
1627 * src/main.c: entered into RCS
1629 1994-03-24 Richard Stallman <rms@gnu.org>
1631 * src/conflicts.c: entered into RCS
1633 1994-01-02 Richard Stallman <rms@gnu.org>
1635 * Makefile.in: *** empty log message ***
1637 1993-11-21 Richard Stallman <rms@gnu.org>
1639 * src/bison.s1: *** empty log message ***
1641 1993-11-21 Richard Stallman <rms@gnu.org>
1643 * doc/bison.texinfo: entered into RCS
1645 * doc/bison.texinfo: *** empty log message ***
1647 1993-11-21 Richard Stallman <rms@gnu.org>
1649 * bison.simple: *** empty log message ***
1651 1993-10-25 David J. MacKenzie <djm@gnu.org>
1653 * doc/bison.texinfo: *** empty log message ***
1655 1993-10-19 Richard Stallman <rms@gnu.org>
1657 * src/bison.s1: *** empty log message ***
1659 1993-10-19 Richard Stallman <rms@gnu.org>
1661 * bison.simple: *** empty log message ***
1663 1993-10-14 Richard Stallman <rms@gnu.org>
1665 * src/bison.s1: *** empty log message ***
1667 1993-10-14 Richard Stallman <rms@gnu.org>
1669 * bison.simple: *** empty log message ***
1671 1993-09-14 David J. MacKenzie <djm@gnu.org>
1673 * doc/bison.texinfo: *** empty log message ***
1675 1993-09-13 Noah Friedman <friedman@gnu.org>
1677 * Makefile.in: *** empty log message ***
1679 1993-09-10 Richard Stallman <rms@gnu.org>
1681 * src/conflicts.c: *** empty log message ***
1683 * src/system.h: entered into RCS
1685 1993-09-10 Richard Stallman <rms@gnu.org>
1687 * doc/bison.1: entered into RCS
1689 1993-09-06 Noah Friedman <friedman@gnu.org>
1691 * src/version.c: entered into RCS
1693 1993-09-06 Noah Friedman <friedman@gnu.org>
1695 * Makefile.in: *** empty log message ***
1697 1993-07-30 David J. MacKenzie <djm@gnu.org>
1699 * Makefile.in: *** empty log message ***
1701 1993-07-24 Richard Stallman <rms@gnu.org>
1703 * src/bison.s1: *** empty log message ***
1705 1993-07-24 Richard Stallman <rms@gnu.org>
1707 * bison.simple: *** empty log message ***
1709 1993-07-08 David J. MacKenzie <djm@gnu.org>
1711 * Makefile.in: *** empty log message ***
1713 1993-07-04 Richard Stallman <rms@gnu.org>
1715 * src/bison.s1: *** empty log message ***
1717 1993-07-04 Richard Stallman <rms@gnu.org>
1719 * bison.simple: *** empty log message ***
1721 1993-06-26 David J. MacKenzie <djm@gnu.org>
1723 * src/getargs.c: entered into RCS
1725 1993-06-26 David J. MacKenzie <djm@gnu.org>
1727 * doc/bison.texinfo: *** empty log message ***
1729 * doc/bison.1: New file.
1731 1993-06-25 Richard Stallman <rms@gnu.org>
1733 * src/getargs.c: New file.
1735 1993-06-16 Richard Stallman <rms@gnu.org>
1737 * src/bison.s1: *** empty log message ***
1739 1993-06-16 Richard Stallman <rms@gnu.org>
1741 * bison.simple: *** empty log message ***
1743 1993-06-03 Richard Stallman <rms@gnu.org>
1745 * src/bison.s1: New file.
1747 1993-06-03 Richard Stallman <rms@gnu.org>
1749 * doc/bison.texinfo: *** empty log message ***
1751 1993-06-03 Richard Stallman <rms@gnu.org>
1753 * bison.simple: New file.
1755 1993-05-19 Richard Stallman <rms@gnu.org>
1757 * doc/bison.texinfo: New file.
1759 1993-05-07 Noah Friedman <friedman@gnu.org>
1761 * Makefile.in: *** empty log message ***
1763 1993-04-28 Noah Friedman <friedman@gnu.org>
1765 * src/reader.c: *** empty log message ***
1767 1993-04-23 Noah Friedman <friedman@gnu.org>
1769 * src/alloc.h: entered into RCS
1771 1993-04-20 David J. MacKenzie <djm@gnu.org>
1773 * src/version.c: *** empty log message ***
1775 * src/files.c, src/allocate.c:
1778 * src/reader.c: *** empty log message ***
1780 * src/lex.c: entered into RCS
1782 * src/conflicts.c: New file.
1784 * src/symtab.c: entered into RCS
1786 * src/alloc.h: New file.
1788 * src/LR0.c: entered into RCS
1790 1993-04-18 Noah Friedman <friedman@gnu.org>
1792 * src/reader.c: New file.
1794 * src/version.c: *** empty log message ***
1796 1993-04-18 Noah Friedman <friedman@gnu.org>
1798 * Makefile.in: *** empty log message ***
1800 1993-04-17 Noah Friedman <friedman@gnu.org>
1802 * Makefile.in: *** empty log message ***
1804 1993-04-15 Richard Stallman <rms@gnu.org>
1806 * src/main.c, src/files.c:
1809 1993-04-15 Noah Friedman <friedman@gnu.org>
1811 * configure.in: entered into RCS
1813 * configure.in: *** empty log message ***
1815 * configure.in: New file.
1817 1993-04-14 Richard Stallman <rms@gnu.org>
1819 * Makefile.in: New file.
1821 1993-04-13 Richard Stallman <rms@gnu.org>
1823 * src/version.c: New file.
1825 1993-03-25 Richard Stallman <rms@gnu.org>
1827 * src/output.c: entered into RCS
1829 1992-09-25 Richard Stallman <rms@gnu.org>
1831 * configure.bat: entered into RCS
1833 1992-06-22 Richard Stallman <rms@gnu.org>
1835 * src/vmsgetargs.c: entered into RCS
1837 1992-06-22 Richard Stallman <rms@gnu.org>
1839 * doc/bison.rnh: entered into RCS
1841 1992-04-20 David J. MacKenzie <djm@gnu.org>
1843 * README: entered into RCS
1845 1992-01-22 Richard Stallman <rms@gnu.org>
1847 * src/machine.h: entered into RCS
1849 1991-12-21 Richard Stallman <rms@gnu.org>
1851 * src/lalr.c, src/closure.c:
1854 1991-12-20 Richard Stallman <rms@gnu.org>
1856 * src/state.h: entered into RCS
1858 1991-12-18 Richard Stallman <rms@gnu.org>
1860 * src/print.c, src/nullable.c, src/derives.c:
1863 1991-11-03 David J. MacKenzie <djm@gnu.org>
1865 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1868 1988-09-09 Richard Stallman <rms@gnu.org>
1870 * src/bison.hairy: entered into RCS
1872 1987-12-16 Richard Stallman <rms@gnu.org>
1874 * REFERENCES: entered into RCS