1 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
3 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
5 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
7 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
8 * src/lex.h: Adjust prototype.
9 (token_t): Add `tok_undef'.
10 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
11 (parse_percent_token): Now returns token_t.
12 Add default statement in switch.
13 (lex): Separate `c' as an input variable, from the token_t result
15 (unlexed): Is a token_t.
17 2001-09-10 Akim Demaille <akim@epita.fr>
19 * configure.in: Bump to 1.29a.
21 2001-09-07 Akim Demaille <akim@epita.fr>
25 2001-08-30 Akim Demaille <akim@epita.fr>
27 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
28 * m4/atconfig.m4: Remove.
29 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
31 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
32 m4_if, m4_patsubst, and m4_regexp.
33 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
34 `input' file instead of echo.
36 2001-08-29 Akim Demaille <akim@epita.fr>
40 2001-08-29 Akim Demaille <akim@epita.fr>
44 2001-08-29 Paul Eggert <eggert@twinsun.com>
46 * src/bison.simple (yyparse): Don't take the address of an
47 item before the start of an array, as that doesn't conform to
50 2001-08-29 Robert Anisko <anisko_r@epita.fr>
52 * doc/bison.texinfo (Location Tracking Calc): New node.
54 2001-08-29 Paul Eggert <eggert@twinsun.com>
56 * src/output.c (output): Do not define const, as this now
57 causes more problems than it cures.
59 2001-08-29 Akim Demaille <akim@epita.fr>
61 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
63 Be sure to tag the `detailmenu'.
65 2001-08-29 Akim Demaille <akim@epita.fr>
67 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
68 download in a tmp dir.
70 2001-08-28 Marc Autret <autret_m@epita.fr>
72 * config/depcomp: New file.
74 2001-08-28 Marc Autret <autret_m@epita.fr>
76 * doc/bison.1 (mandoc): Adjust.
77 From Juan Manuel Guerrero.
79 2001-08-28 Marc Autret <autret_m@epita.fr>
81 * src/print_graph.c (print_state): Fix.
83 2001-08-27 Marc Autret <autret_m@epita.fr>
85 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
87 Echo modifications to the functions prototypes.
88 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
90 2001-08-27 Marc Autret <autret_m@epita.fr>
92 * src/vcg.c: Include `xalloc.h'.
93 (add_colorentry): New.
96 * src/vcg.h: Add new prototypes.
98 2001-08-27 Akim Demaille <akim@epita.fr>
100 * Makefile.maint: Sync. again with CVS Autoconf.
102 2001-08-27 Akim Demaille <akim@epita.fr>
104 * Makefile.maint: Formatting changes.
105 (po-update, cvs-update, update): New targets.
108 2001-08-27 Akim Demaille <akim@epita.fr>
110 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
111 * Makefile.maint: Sync. with CVS Autoconf.
113 2001-08-27 Marc Autret <autret_m@epita.fr>
115 * src/vcg.h (struct infoname_s): New.
116 (struct colorentry_s): New.
117 (graph_s): New fields {vertical,horizontal}_order in structure.
118 Add `infoname' field.
119 Add `colorentry' field;
120 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
121 (G_HORIZONTAL_ORDER): New.
124 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
125 Add output of `infoname'.
126 Add output of `colorentry'.
128 2001-08-27 Marc Autret <autret_m@epita.fr>
130 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
131 This one shadowed a global parameter.
133 2001-08-24 Marc Autret <autret_m@epita.fr>
135 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
136 instead of `unsigned'.
137 (print_state): Do not call obstack_object_size () in obstack_grow ()
138 to avoid macro variables shadowing.
140 2001-08-23 Marc Autret <autret_m@epita.fr>
142 * src/lex.c (percent_table): Typo: s/naem/name/.
144 Normalize new options declarations.
146 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
148 * tests/suite.at: Exercise %header_extension and %source_extension.
150 2001-08-16 Marc Autret <autret_m@epita.fr>
152 * src/reader.c (parse_dquoted_param): New.
153 (parse_header_extension_decl): Use it.
154 (parse_source_extension_decl): Likewise.
156 2001-08-16 Marc Autret <autret_m@epita.fr>
158 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
159 (get_xxxx_str): Use assert () instead of complain ().
160 Remove return invokations in default cases.
161 (get_decision_str): Modify default behaviour. Remove second argument.
162 Echo modifications on calls.
165 2001-08-16 Marc Autret <autret_m@epita.fr>
167 * src/getargs.c (usage): Update with ``-g, --graph''.
169 2001-08-16 Marc Autret <autret_m@epita.fr>
171 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
172 (Option Cross Key): Likewise.
173 * doc/bison.1: Update.
175 2001-08-15 Akim Demaille <akim@epita.fr>
179 2001-08-15 Marc Autret <autret_m@epita.fr>
181 * src/reader.c (readgram): Indent output macro YYSTYPE.
182 (packsymbols): Likewise.
183 (output_token_defines): Likewise.
184 * src/files.c: Standardize.
185 (compute_header_macro): New.
186 (defines_obstack_save): New. Use compute_header_macro.
187 (output_files): Update. Use defines_obstack_save.
189 2001-08-15 Akim Demaille <akim@epita.fr>
191 * doc/bison.texinfo (Table of Symbols): Document
194 2001-08-15 Akim Demaille <akim@epita.fr>
196 * missing: Update from CVS Automake.
197 * config/config.guess, config/config.sub, config/texinfo.tex:
200 2001-08-15 Akim Demaille <akim@epita.fr>
202 * Makefile.maint: Sync with CVS Autoconf.
204 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
206 * doc/bison.texinfo: Include GNU Free Documentation License from
208 * doc/fdl.texi: Add to package.
210 2001-08-14 Marc Autret <autret_m@epita.fr>
212 Turn on %{source,header}_extension features.
214 * src/lex.c (percent_table): Un-CPP out header_extension and
216 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
217 (compute_exts_from_src): Remove conditions. It restores priorities
220 2001-08-14 Marc Autret <autret_m@epita.fr>
222 * src/files.c (compute_base_names): Add extensions computing when
223 `--file-prefix' used.
224 Standardize function calls.
226 2001-08-13 Marc Autret <autret_m@epita.fr>
228 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
229 defining it (defined but null disables alloca).
231 2001-08-13 Marc Autret <autret_m@epita.fr>
233 * src/bison.simple (_yy_memcpy): CPP reformat.
235 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
237 * tests/atconfig.in (CPPFLAGS): Fix.
239 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
241 * doc/bison.texinfo: Include GNU General Public License from
243 * doc/gpl.texi: Add to package.
245 2001-08-10 Marc Autret <autret_m@epita.fr>
247 * src/print_graph.h: Fix.
248 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
250 2001-08-10 Akim Demaille <akim@epita.fr>
252 * src/system.h: Provide default declarations for stpcpy, strndup,
255 2001-08-10 Robert Anisko <anisko_r@epita.fr>
257 * doc/bison.texinfo (Locations): Update @$ stuff.
259 2001-08-09 Robert Anisko <anisko_r@epita.fr>
261 * src/bison.simple (YYLLOC_DEFAULT): Update.
264 2001-08-08 Marc Autret <autret_m@epita.fr>
266 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
267 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
268 Reported by Fabrice Bauzac.
270 2001-08-08 Marc Autret <autret_m@epita.fr>
272 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
273 * src/vcg.c (output_node): Fix.
274 * src/vcg.h: Cleanup.
275 * src/print_graph.c: Add comments.
276 (node_output_size): New global variable. Simplify the formatting of
277 the VCG graph output.
278 (print_actions): Unused code is now used. It notifies the final state
279 and no action states in the VCG graph. It also give the reduce actions.
280 The `shift and goto' edges are red and the `go to state' edges are
282 Get the current node name and node_obstack by argument.
283 (node_obstack): New variable.
284 (print_state): Manage node_obstack.
285 (print_core): Use node_obstack given by argument.
286 A node is not only computed here but in print_actions also.
287 (print_graph): CPP out useless code instead of commenting it.
289 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
291 * tests/atconfig.in (CPPFLAGS): Fix.
293 2001-08-07 Akim Demaille <akim@epita.fr>
295 * src/print_graph.c (quote): New.
296 (print_core): Use it.
298 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
300 * src/vcg.c (complain.h): Include it.
301 Unepitaize `return' invocations.
302 [NDEBUG] (main): Remove.
303 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
304 * src/files.c (open_files): Initialize graph_obstack.
305 * src/print_graph.c (print_actions): CPP out useless code.
306 (print_core): Don't output the last `\n' in labels.
308 * src/files.c (output_files): Output the VCG file.
309 * src/main.c (main): Invoke print_graph ();
311 2001-08-06 Marc Autret <autret_m@epita.fr>
313 Automaton VCG graph output.
314 Using option ``-g'' or long option ``--graph'', you can generate
315 a gram_filename.vcg file containing a VCG description of the LALR (1)
316 automaton of your grammar.
318 * src/main.c: Call to print_graph() function.
319 * src/getargs.h: Update.
320 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
321 (graph_flag): New flag.
323 (getargs): Add case `g'.
324 * src/files.c (graph_obstack): New obstack struct.
325 (open_files): Initialize new obstack.
326 (output_files): Saves graph_obstack if required.
327 * src/files.h (graph_obstack): New extern declaration.
328 * src/Makefile.am: Add new source files.
330 2001-08-06 Marc Autret <autret_m@epita.fr>
332 * src/print_graph.c, src/print_graph.h (graph): New.
333 * src/vcg.h: New file.
334 * src/vcg.c: New file, VCG graph handling.
336 2001-08-06 Marc Autret <autret_m@epita.fr>
338 Add of %source_extension and %header_extension which specify
339 the source or/and the header output file extension.
341 * src/files.c (compute_base_names): Remove initialisation of
342 src_extension and header_extension.
343 (compute_exts_from_gf): Update.
344 (compute_exts_from_src): Update.
345 (output_files): Update.
346 * src/reader.c (parse_header_extension_decl): New.
347 (parse_source_extension_decl): New.
348 (read_declarations): New case statements for the new tokens.
349 * src/lex.c (percent_table): Add entries for %source_extension
350 and %header_extension.
351 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
353 2001-08-06 Marc Autret <autret_m@epita.fr>
355 * configure.in: Bump to 1.28c.
356 * doc/bison.texinfo: Texinfo thingies.
358 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
360 * tests/atconfig.in (CPPFLAGS): Add.
361 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
363 2001-08-03 Akim Demaille <akim@epita.fr>
367 2001-08-03 Akim Demaille <akim@epita.fr>
369 * tests/Makefile.am (check-local): Ship testsuite.
370 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
373 2001-08-03 Akim Demaille <akim@epita.fr>
375 * configure.in: Try using -Wformat when compiling.
377 2001-08-03 Akim Demaille <akim@epita.fr>
379 * configure.in: Bump to 1.28b.
381 2001-08-03 Akim Demaille <akim@epita.fr>
383 * src/complain.c: Adjust strerror_r portability issues.
385 2001-08-03 Akim Demaille <akim@epita.fr>
389 2001-08-03 Akim Demaille <akim@epita.fr>
391 * src/getargs.c, src/getarg.h (skeleton)): Constify.
392 * src/lex.c (literalchar): Avoid name clashes on `buf'.
393 * src/getargs.c: Include complain.h.
394 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
395 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
397 2001-08-03 Akim Demaille <akim@epita.fr>
399 * src/reader.c (readgram): Display hidden chars in error messages.
401 2001-08-03 Akim Demaille <akim@epita.fr>
403 Update to gettext 0.10.39.
405 2001-08-03 Akim Demaille <akim@epita.fr>
409 2001-08-01 Marc Autret <autret_m@epita.fr>
411 * doc/bison.texinfo: Update.
412 * doc/bison.1 (mandoc): Update.
413 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
414 * src/files.c: Support output files extensions computing.
415 (src_extension): New static variable.
416 (header_extension): New static variable.
418 (get_extension_index): New function, gets the index of an extension
419 filename in a string.
420 (compute_exts_from_gf): New function, computes extensions from the
421 grammar file extension.
422 (compute_exts_from_src): New functions, computes extensions from the
423 C source file extension, file given by ``-o'' option.
424 (compute_base_names): Update.
425 (output_files): Update.
427 2001-08-01 Robert Anisko <anisko_r@epita.fr>
429 * doc/bison.texi: Document @$.
430 (Locations): New section.
432 2001-07-18 Akim Demaille <akim@epita.fr>
434 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
435 * config/prev-version.txt, config/move-if-change: New.
436 * Makefile.am: Adjust.
438 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
440 * src/bison.simple (yyparse): Suppress warning `comparaison
441 between signed and unsigned'.
443 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
445 * src/getargs.h (raw_flag): Remove.
446 * src/getargs.c: Die on `-r'/`--raw'.
447 * src/lex.c (parse_percent_token): Die on `%raw'.
448 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
449 * tests/calc.at: Suppress test with option `--raw'.
451 2001-07-14 Akim Demaille <akim@epita.fr>
454 * configure.in: Require Autoconf 2.50.
455 Update to gettext 0.10.38.
457 2001-03-16 Akim Demaille <akim@epita.fr>
459 * doc/bison.texinfo: ANSIfy the examples.
461 2001-03-16 Akim Demaille <akim@epita.fr>
463 * getargs.c (skeleton): New variable.
464 (longopts): --skeleton is a new option.
465 (shortopts, getargs): -S is a new option.
466 * getargs.h: Declare skeleton.
467 * output.c (output_parser): Use it.
469 2001-03-16 Akim Demaille <akim@epita.fr>
471 * m4/strerror_r.m4: New.
472 * m4/error.m4: Run AC_FUNC_STRERROR_R.
473 * lib/error.h, lib/error.c: Update.
475 2001-03-16 Akim Demaille <akim@epita.fr>
477 * src/getargs.c (longopts): Clean up.
479 2001-02-21 Akim Demaille <akim@epita.fr>
481 * src/reader.c (gensym): `gensym_count' is your own.
482 Use a static buf to create the symbol name, as token_buffer is no
485 2001-02-08 Akim Demaille <akim@epita.fr>
487 * src/conflicts.c (conflict_report): Be sure not to append to res
488 between two calls, which could happen if both first sprintf were
489 skipped, but not the first cp += strlen.
491 2001-02-08 Akim Demaille <akim@epita.fr>
493 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
494 New, from fileutils 4.0.37.
495 * configure.in: Require Autoconf 2.49c. I took some time before
496 making this decision. This is the only way out for portability
497 issues in Bison, it would mean way too much duplicate effort to
498 import in Bison features implemented in 2.49c since 2.13.
499 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
501 2001-02-02 Akim Demaille <akim@epita.fr>
503 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
504 * lib/xalloc.h, lib/xmalloc.c: Update.
506 2001-01-19 Akim Demaille <akim@epita.fr>
508 Get rid of the ad hoc handling of token_buffer in the scanner: use
511 * src/lex.c (token_obstack): New.
512 (init_lex): Initialize it. No longer call...
513 (grow_token_buffer): this. Remove it.
514 Adjust all the places which used it to use the obstack.
516 2001-01-19 Akim Demaille <akim@epita.fr>
518 * src/lex.h: Rename all the tokens:
519 s/\bENDFILE\b/tok_eof/g;
520 s/\bIDENTIFIER\b/tok_identifier/g;
522 Let them be enums, not #define, to ease debugging.
525 2001-01-18 Akim Demaille <akim@epita.fr>
527 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
528 * src/lex.c (maxtoken, grow_token_buffer): Static.
530 2001-01-18 Akim Demaille <akim@epita.fr>
532 Since we now use obstacks, more % directives can be enabled.
534 * src/lex.c (percent_table): Also accept `%yacc',
535 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
537 Handle the actions for `%semantic_parser' and `%pure_parser' here,
538 instead of returning a token.
539 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
540 * src/reader.c (read_declarations): Adjust.
541 * src/files.c (open_files): Don't call `compute_base_names', don't
542 compute `attrsfile' since they depend upon data which might be
543 *in* the input file now.
544 (output_files): Do it here.
545 * src/output.c (output_headers): Document the fact that this patch
546 introduces a guaranteed SEGV for semantic parsers.
547 * doc/bison.texinfo: Document them.
548 * tests/suite.at: Exercise these %options.
550 2000-12-20 Akim Demaille <akim@epita.fr>
552 Also handle the output file (--verbose) with obstacks.
554 * files.c (foutput): Remove.
555 (output_obstack): New.
556 Adjust all dependencies.
557 * src/conflicts.c: Return a string.
558 * src/system.h (obstack_grow_string): Rename as...
559 (obstack_sgrow): this. Be ready to work with non literals.
560 (obstack_fgrow4): New.
562 2000-12-20 Akim Demaille <akim@epita.fr>
564 * src/files.c (open_files): Fix the computation of short_base_name
565 in the case of `-o foo.tab.c'.
567 2000-12-20 Akim Demaille <akim@epita.fr>
569 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
570 (copy_dollar): Now that everything uses obstacks, get rid of the
573 2000-12-20 Akim Demaille <akim@epita.fr>
575 * src/files.c (open_files): Actually the `.output' file is based
576 on the short_base_name, not base_name.
577 * tests/suite.at (Checking output file names): Adjust.
579 2000-12-20 Akim Demaille <akim@epita.fr>
581 * src/bison.s1: Remove, we now use directly...
582 * src/bison.simple: this.
583 * src/Makefile.am: Use pkgdata instead of data.
585 2000-12-20 Akim Demaille <akim@epita.fr>
587 * src/files.c (guard_obstack): New.
588 (open_files): Initialize it.
589 (output_files): Dump it...
590 * src/files.h: Export it.
591 * src/reader.c (copy_guard): Use it.
593 2000-12-19 Akim Demaille <akim@epita.fr>
595 * src/files.c (outfile, defsfile, actfile): Removed as global
597 (open_files): Don't compute them.
598 (output_files): Adjust.
599 (base_name, short_base_name): Be global.
602 2000-12-19 Akim Demaille <akim@epita.fr>
604 * src/files.c (strsuffix): New.
605 (stringappend): Be just like strcat but allocate.
606 (base_names): Eve out from open_files.
607 Try to simplify the rather hairy computation of base_name and
609 (open_files): Use it.
610 * tests/suite.at (Checking output file names): New test.
612 2000-12-19 Akim Demaille <akim@epita.fr>
614 * src/system.h (obstack_grow_literal_string): Rename as...
615 (obstack_grow_string): this.
616 * src/output.c (output_parser): Recognize `%% actions' instead of
618 * src/bison.s1: s/$/%% actions/.
619 * src/bison.hairy: Likewise.
621 2000-12-19 Akim Demaille <akim@epita.fr>
623 * src/output.c (output_parser): Compute the `#line' lines when
625 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
626 Suggested by Hans Aberg.
628 2000-12-19 Akim Demaille <akim@epita.fr>
630 Let the handling of the skeleton files be local to the procedures
633 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
635 (fparser, open_extra_files): Remove.
636 (open_files, output_files): Don't take care of fparser.
637 * src/files.h: Adjust.
638 * src/output.c (output_parser): Open and close the file to the
640 * src/reader.c (read_declarations): When %semantic_parser, open
643 2000-12-19 Akim Demaille <akim@epita.fr>
645 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
646 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
648 2000-12-19 Akim Demaille <akim@epita.fr>
650 * src/files.c (open_files): Yipee! We no longer need all the code
651 looking for `/tmp' since we have no tmp file.
653 2000-12-19 Akim Demaille <akim@epita.fr>
655 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
657 * src/files.c (open_files): Less dependency on MSDOS etc.
659 2000-12-14 Akim Demaille <akim@epita.fr>
661 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
662 Provide a default definition.
663 Use it when executing the default @ action.
664 * src/reader.c (reader_output_yylsp): No longer include
665 `timestamp' and `text' in the default YYLTYPE.
667 2000-12-12 Akim Demaille <akim@epita.fr>
669 * src/reader.c (copy_definition, parse_union_decl, copy_action)
670 (copy_guard): Quote the file names.
671 Reported by Laurent Mascherpa.
673 2000-12-12 Akim Demaille <akim@epita.fr>
675 * src/output.c (output_headers, output_program, output): Be sure
676 to escape special characters when outputting filenames.
677 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
678 (output_headers): Don't depend on them, Use ACTSTR.
680 2000-11-17 Akim Demaille <akim@epita.fr>
682 * lib/obstack.h: Formatting changes.
683 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
684 prevents type checking.
685 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
686 cast the value to (void *): assigning a `foo *' to a `void *'
688 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
689 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
692 2000-11-17 Akim Demaille <akim@epita.fr>
694 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
696 (suite.m4, regression.m4, calc.m4): these.
697 * tests/atgeneral.m4: Update from CVS Autoconf.
699 2000-11-17 Akim Demaille <akim@epita.fr>
701 * tests/regression.m4 (%union and --defines): New test,
702 demonstrating a current bug in the obstack implementation.
704 2000-11-17 Akim Demaille <akim@epita.fr>
706 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
708 Use them to declare the variables which are global or local to
711 2000-11-17 Akim Demaille <akim@epita.fr>
713 * acconfig.h: Remove, no longer used.
715 2000-11-07 Akim Demaille <akim@epita.fr>
717 * src: s/Copyright (C)/Copyright/g.
719 2000-11-07 Akim Demaille <akim@epita.fr>
721 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
723 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
725 2000-11-07 Akim Demaille <akim@epita.fr>
727 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
728 Merge in a single CPP if/else.
730 2000-11-07 Akim Demaille <akim@epita.fr>
732 * src/output.c (output): Remove useless variables.
733 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
734 argument `data' for consistency with the prototypes.
736 (obstack_copy, obstack_copy0): Rename the second argument as
737 `address' for consistency. Qualify it `const'.
738 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
739 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
740 `const' their input argument (`data' or `address').
741 Adjust the corresponding macros to include `const' in casts.
743 2000-11-03 Akim Demaille <akim@epita.fr>
745 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
746 s/PFILE1/BISON_HAIRY/.
749 2000-11-03 Akim Demaille <akim@epita.fr>
751 For some reason, this was not applied.
753 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
754 `unlink': it's no longer used.
756 2000-11-03 Akim Demaille <akim@epita.fr>
758 * src/files.c (skeleton_find): New function, eved out of...
759 (open_files, open_extra_files): here.
761 2000-11-03 Akim Demaille <akim@epita.fr>
765 * src/files.c (obstack_save): New function.
767 (output_files): this.
769 * src/main.c (main): Don't use `atexit' to register `done', since
770 it no longer has to remove tmp files, just call `output_files'
771 when there are no errors.
773 2000-11-02 Akim Demaille <akim@epita.fr>
775 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
776 `unlink': it's no longer used.
777 * src/files.h: Formatting changes.
779 2000-11-02 Akim Demaille <akim@epita.fr>
781 Remove the last uses of mktemp and unlink/delete.
783 * src/files.c (fdefines, ftable): Removed.
784 (defines_ostack, table_obstack): New.
785 Adjust dependencies of the former into uses of the latter.
786 * src/output.c (output_short_or_char_table, output_short_table):
787 Convert to using obstacks.
788 * src/reader.c (copy_comment2): Accept one FILE * and two
790 (output_token_defines, reader_output_yylsp): Use obstacks.
791 * src/system.h (obstack_fgrow3): New.
793 2000-11-01 Akim Demaille <akim@epita.fr>
795 Change each use of `fattrs' into a use of `attrs_obstack'.
797 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
798 * src/files.c (fattrs): Remove.
799 (attrs_obstack): New.
800 Adjust all dependencies.
801 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
803 2000-11-01 Akim Demaille <akim@epita.fr>
806 Change each use of `faction' into a use of `action_obstack'.
808 * lib/obstack.h, lib/obstack.c: New files.
809 * src/files.c (faction): Remove.
810 (action_obstack): New.
811 Adjust all dependencies.
813 2000-10-20 Akim Demaille <akim@epita.fr>
815 * lib/quote.h (PARAMS): New macro. Use it.
817 2000-10-16 Akim Demaille <akim@epita.fr>
819 * src/output.c (output_short_or_char_table): New function.
820 (output_short_table, output_token_translations): Use it.
821 (goto_actions): Use output_short_table.
823 2000-10-16 Akim Demaille <akim@epita.fr>
825 * src/symtab.c (bucket_new): New function.
828 * src/output.c (output_short_table): New argument to display the
829 comment associated with the table.
831 (output_gram): Use it.
832 (output_rule_data): Nicer output layout for YYTNAME.
834 2000-10-16 Akim Demaille <akim@epita.fr>
836 * src/lex.c (read_typename): New function.
838 * src/reader.c (copy_dollar): Likewise.
840 2000-10-16 Akim Demaille <akim@epita.fr>
842 * src/reader.c (copy_comment2): Expect the input stream to be on
843 the `/' which is suspected to open a comment, instead of being
844 called after `//' or `/*' was read.
845 (copy_comment, copy_definition, parse_union_decl, copy_action)
846 (copy_guard): Adjust.
848 2000-10-16 Akim Demaille <akim@epita.fr>
850 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
851 `read_signed_integer'.
853 2000-10-16 Akim Demaille <akim@epita.fr>
855 * src/reader.c (copy_dollar): New function.
856 (copy_guard, copy_action): Use it.
858 2000-10-16 Akim Demaille <akim@epita.fr>
860 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
861 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
862 New files, from Fileutils 4.0.27.
863 * src/main.c (printable_version): Remove.
864 * src/lex.c, src/reader.c: Use `quote'.
866 2000-10-04 Akim Demaille <akim@epita.fr>
868 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
870 2000-10-04 Akim Demaille <akim@epita.fr>
872 * doc/bison.texinfo: Various typos spotted by Neil Booth.
874 2000-10-04 Akim Demaille <akim@epita.fr>
876 When a literal string is used to define two different tokens,
877 `bison -v' segfaults.
878 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
880 * tests/regression.m4: New file.
881 Include the core of the sample provided by Piotr Gackiewicz.
882 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
885 2000-10-04 Akim Demaille <akim@epita.fr>
887 * src/reader.c (parse_expect_decl): Keep `count' within the size
891 2000-10-02 Paul Eggert <eggert@twinsun.com>
893 * bison.s1 (yyparse): Assign the default value
894 unconditionally, to avoid a GCC warning and make the parser a
897 2000-10-02 Akim Demaille <akim@epita.fr>
899 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
902 2000-10-02 Akim Demaille <akim@epita.fr>
904 * src/derives.c, src/print.c, src/reduce.c: To ease the
905 translation, move some `\n' out of the translated strings.
907 2000-10-02 Akim Demaille <akim@epita.fr>
909 The location tracking mechanism is precious for parse error
910 messages. Nevertheless, it is enabled only when `@n' is used in
911 the grammar, which is a different issue (you can use it in error
912 message, but not in the grammar per se). Therefore, there should
913 be another means to enable it.
915 * src/getargs.c (getargs): Support `--locations'.
917 * src/getargs.h (locationsflag): Export it.
918 * src/lex.c (percent_table): Support `%locations'.
919 * src/reader.c (yylsp_needed): Remove this variable, now replaced
920 with `locationsflag'.
921 * doc/bison.texinfo: Document `--locations' and `%locations'.
923 * tests/calc.m4: Test it.
925 For regularity of the names, replace each
926 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
927 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
928 In addition replace each `flag' with `_flag'.
930 2000-10-02 Akim Demaille <akim@epita.fr>
932 Also test parse error messages, including with YYERROR_VERBOSE.
934 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
936 Use it to check the computations.
937 Use it to check `nonassoc' is honored.
938 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
940 (_AT_CHECK_CALC): Adjust to this option.
941 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
943 2000-10-02 Akim Demaille <akim@epita.fr>
945 Test also `--verbose', `--defines' and `--name-prefix'. Testing
946 the latter demonstrates a flaw in the handling of non debugging
947 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
948 was used in order to simplify:
964 unfortunately this leads to a CPP conflict when
965 `--name-prefix=foo' is used since it produces `#define yydebug
968 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
969 (YYDPRINTF): New macro.
971 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
973 Also test `--verbose', `--defines' and `--name-prefix'.
975 2000-10-02 Akim Demaille <akim@epita.fr>
977 Improve the readability of the produced parsers.
979 * src/bison.s1: Formatting changes.
980 Improve the comment related to the `$' mark.
981 (yydefault): Don't fall through to `yyresume': `goto' there.
982 * src/output.c (output_parser): When the `$' is met, skip the end
984 New variable, `number_of_dollar_signs', to check there's exactly
985 one `$' in the parser skeleton.
987 2000-10-02 Akim Demaille <akim@epita.fr>
989 * lib/xstrdup.c: New file, from the fileutils.
990 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
991 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
992 instead of strlen + xmalloc + strcpy.
993 * src/symtab.c (copys): Remove, use xstrdup instead.
995 2000-10-02 Akim Demaille <akim@epita.fr>
997 * src/gram.h (associativity): New enum type which replaces the
998 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
999 `right_assoc', `left_assoc' and `non_assoc'.
1000 Adjust all dependencies.
1001 * src/reader.c: Formatting changes.
1002 (LTYPESTR): Don't define it, use it as a literal in
1003 `reader_output_yylsp'.
1004 * src/symtab.h (symbol_class): New enum type which replaces the
1005 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1006 `sunknown', `stoken and `snterm'.
1008 2000-10-02 Akim Demaille <akim@epita.fr>
1010 * src/getargs.c (fixed_outfiles): Rename as...
1011 (yaccflag): for consistency and accuracy.
1012 Adjust dependencies.
1014 2000-10-02 Akim Demaille <akim@epita.fr>
1016 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1017 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1018 difficult and introduced a lot of core dump. It turns out that
1019 Bison used an implementation of `xmalloc' based on `calloc', and
1020 at various places it does depend upon the initialization to 0. I
1021 have not tried to isolate the pertinent places, and all the former
1022 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1023 someone should address this issue.
1025 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1026 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1028 Adjust dependencies.
1029 * src/warshall.h: New file.
1032 2000-10-02 Akim Demaille <akim@epita.fr>
1034 Various anti-`extern in *.c' changes.
1036 * src/system.h: Include `assert.h'.
1038 2000-10-02 Akim Demaille <akim@epita.fr>
1040 * src/state.h (nstates, final_state, first_state, first_shift)
1041 (first_reduction): Move their exportation from here...
1042 * src/LR0.h: to here.
1043 Adjust dependencies.
1044 * src/getargs.c (statisticsflag): New variable.
1045 Add support for `--statistics'.
1046 Adjust dependencies.
1048 Remove a lot of now useless `extern' statements in most files.
1050 2000-10-02 Akim Demaille <akim@epita.fr>
1052 * src/LR0.h: New file.
1055 2000-10-02 Akim Demaille <akim@epita.fr>
1057 * src/print.h: New file.
1059 * src/print.c: Formatting and ordering changes.
1060 (verbose, terse): Replace with...
1061 (print_results): this new function.
1062 Adjust dependencies.
1064 2000-10-02 Akim Demaille <akim@epita.fr>
1066 * src/conflicts.c (conflict_report): New function.
1067 (conflict_log, verbose_conflict_log): Replace with...
1068 (print_conflicts): this function.
1069 Adjust dependencies.
1070 * src/conflicts.h: New file.
1071 Propagate its inclusion.
1073 2000-10-02 Akim Demaille <akim@epita.fr>
1075 * src/nullable.h: New file.
1076 Propagate its inclusion.
1077 * src/nullable.c: Formatting changes.
1079 2000-10-02 Akim Demaille <akim@epita.fr>
1081 * src/reduce.h: New file.
1082 Propagate its inclusion.
1083 * src/reduce.c: Topological sort and other formatting changes.
1084 (bool, TRUE, FALSE): Move their definition to...
1085 * src/system.h: here.
1087 2000-10-02 Akim Demaille <akim@epita.fr>
1089 * src/files.c: Formatting changes.
1090 (tryopen, tryclose, openfiles): Rename as...
1091 (xfopen, xfclose, open_files): this.
1092 (stringappend): static.
1093 * src/files.h: Complete the list of exported symbols.
1096 2000-10-02 Akim Demaille <akim@epita.fr>
1098 * src/reader.h: New file.
1099 Propagate its use instead of tedious list of `extern' and
1101 * src/reader.c: Formatting changes, topological sort,
1104 2000-10-02 Akim Demaille <akim@epita.fr>
1106 * src/lex.h: Prototype `lex.c' exported functions.
1107 * src/reader.c: Adjust.
1108 * src/lex.c: Formatting changes.
1109 (safegetc): Rename as...
1112 2000-10-02 Akim Demaille <akim@epita.fr>
1114 * src/lalr.h: New file.
1115 Propagate its inclusion instead of prototypes and `extern'.
1116 * src/lalr.c: Formatting changes, topological sorting etc.
1118 2000-10-02 Akim Demaille <akim@epita.fr>
1120 * src/output.c (token_actions): Introduce a temporary array,
1121 YYDEFACT, that makes it possible for this function to use
1124 2000-10-02 Akim Demaille <akim@epita.fr>
1126 `user_toknums' is output as a `short[]' in `output.c', while it is
1127 defined as a `int[]' in `reader.c'. For consistency with the
1128 other output tables, `user_toknums' is now defined as a table of
1131 * src/reader.c (user_toknums): Be a short table instead of an int
1133 Adjust dependencies.
1135 Factor the short table outputs.
1137 * src/output.c (output_short_table): New function.
1138 * src/output.c (output_gram, output_stos, output_rule_data)
1139 (output_base, output_table, output_check): Use it.
1141 2000-10-02 Akim Demaille <akim@epita.fr>
1143 * src/output.c (output): Topological sort of the functions, in
1144 order to get rid of the `static' prototypes.
1145 No longer use `register'.
1146 * src/output.h: New file.
1147 Propagate its inclusion in files explicitly prototyping functions
1150 2000-09-21 Akim Demaille <akim@epita.fr>
1152 * src/atgeneral.m4: Update from Autoconf.
1154 2000-09-21 Akim Demaille <akim@epita.fr>
1156 * src/closure.h: New file.
1157 * src/closure.c: Formatting changes, topological sort over the
1158 functions, use of closure.h.
1159 (initialize_closure, finalize_closure): Rename as...
1160 (new_closure, free_closure): these. Adjust dependencies.
1161 * src/LR0.c: Formatting changes, topological sort, use of
1163 (initialize_states): Rename as...
1165 * src/Makefile.am (noinst_HEADERS): Adjust.
1167 2000-09-20 Akim Demaille <akim@epita.fr>
1169 * src/acconfig.h: Don't protect config.h against multiple
1171 Don't define PARAMS.
1172 * src/system.h: Define PARAMS.
1173 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1174 purpose of config.h. system.h must not try to fix wrong
1175 definitions in config.h.
1177 2000-09-20 Akim Demaille <akim@epita.fr>
1179 * src/derives.h: New file.
1180 * src/main.c, src/derives.h: Use it.
1182 * src/Makefile.am (noinst_HEADERS): Adjust.
1184 2000-09-20 Akim Demaille <akim@epita.fr>
1186 * tests/atgeneral.m4: Update from Autoconf.
1187 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1188 (AT_CHECK_CALC): New macros.
1189 Use these macros to test bison with options `', `--raw',
1190 `--debug', `--yacc', `--yacc --debug'.
1192 2000-09-19 Akim Demaille <akim@epita.fr>
1194 * src/output.c: Formatting changes.
1195 * src/machine.h: Remove, leaving its contents in...
1196 * src/system.h: here.
1198 Adjust all dependencies on stdio.h and machine.h.
1199 * src/getargs.h: New file.
1200 Let all `extern' declarations about getargs.c be replaced with
1201 inclusion of `getargs.h'.
1202 * src/Makefile.am (noinst_HEADERS): Adjust.
1204 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1206 (yyerror): Returns void, not int.
1207 * doc/bison.texinfo: Formatting changes.
1209 2000-09-19 Akim Demaille <akim@epita.fr>
1211 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1214 2000-09-18 Akim Demaille <akim@epita.fr>
1216 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1217 * src/Makefile.am (INCLUDES): Don't.
1218 Be ready to fetch headers in lib/.
1220 2000-09-18 Akim Demaille <akim@epita.fr>
1222 * doc/bison.texinfo: Update the copyright.
1223 ANSIfy and GNUify the examples.
1224 Remove the old menu.
1226 2000-09-18 Akim Demaille <akim@epita.fr>
1228 First set of tests: use the `calc' example from the documentation.
1230 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1231 is defined only when YYDEBUG is.
1232 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1233 * src/files.c (tryopen, tryclose): Formatting changes.
1234 Move to the top and be static.
1235 * src/reader.c (read_signed_integer): Likewise.
1236 * tests/calc.m4: New file.
1237 * Makefile.am, suite.m4: Adjust.
1238 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1240 2000-09-18 Akim Demaille <akim@epita.fr>
1242 Add support for an Autotest test suite for Bison.
1244 * m4/m4.m4, m4/atconfig.m4: New files.
1245 * m4/Makefile.am (EXTRA_DIST): Adjust.
1246 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1248 * src/getargs.c: Display a more standard --version message.
1249 * src/reader.c (reader): Formatting changes.
1250 No longer depend upon VERSION_STRING.
1251 * configure.in: No longer use `dnl'.
1252 Set up the test suite and the new directory `tests/.
1253 (VERSION_STRING): Remove.
1255 2000-04-14 Akim Demaille <akim@epita.fr>
1257 * src/reader.c (copy_comment2): New function, same as former
1258 `copy_comment', but outputs into two FILE *.
1259 (copy_comment): Use it.
1260 (parse_union_decl): Use it.
1261 (get_type, parse_start_decl): Use the same `invalid' message.
1262 (parse_start_decl, parse_union_decl): Use the same `multiple'
1264 (parse_union_decl, copy_guard, copy_action): Use the same
1265 `unmatched' message.
1266 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1268 2000-03-31 Akim Demaille <akim@epita.fr>
1270 * src/files.c (tryopen, tryclose): Move to the top.
1273 2000-03-31 Akim Demaille <akim@epita.fr>
1275 * src/main.c (main): Don't call `done', exit does it.
1277 2000-03-31 Akim Demaille <akim@epita.fr>
1279 * allocate.c: s/return (foo)/return foo/.
1282 * output.c: Likewise.
1283 * reader.c: Likewise.
1284 * symtab.c: Likewise.
1285 * vmsgetargs.c: Likewise.
1287 2000-03-31 Akim Demaille <akim@epita.fr>
1289 Clean up the error reporting functions.
1291 * src/report.c: New file.
1292 * src/report.h: Likewise.
1293 * src/Makefile.am: Adjust.
1294 * m4/error.m4: New file.
1295 * m4/Makefile.am: Adjust.
1296 * configure.in (jm_PREREQ_ERROR): Call it.
1297 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1299 (fatal, fatals): Remove. All callers use complain.c::fatal.
1300 (warn, warni, warns, warnss, warnss): Remove. All callers use
1301 complain.c::complain.
1302 (toomany): Remove, use fatal instead.
1303 * src/files.c (done): No argument, use complain_message_count.
1304 * src/main.c (main): Register `done' to `atexit'.
1306 * src/getargs.c (usage): More `fputs', less `fprintf'.
1308 2000-03-28 Akim Demaille <akim@epita.fr>
1310 * lib/: New directory.
1311 * Makefile.am (SUBDIRS): Adjust.
1312 * configure.in: Adjust.
1313 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1315 * src/alloca.c: Moved to lib/.
1316 * src/getopt.c: Likewise.
1317 * src/getopt1.c: Likewise.
1318 * src/getopt.h: Likewise.
1319 * src/ansi2knr.c: Likewise.
1320 * src/ansi2knr.1: Likewise.
1321 * src/Makefile.am: Adjust.
1322 * lib/Makefile.am: New file.
1324 2000-03-28 Akim Demaille <akim@epita.fr>
1326 * src/getargs.c (usage): Refresh the help message.
1328 2000-03-17 Akim Demaille <akim@epita.fr>
1330 * src/getopt1.c: Updated from textutils 2.0e
1331 * src/getopt.c: Likewise.
1332 * src/getopt.h: Likewise.
1334 2000-03-17 Akim Demaille <akim@epita.fr>
1336 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1337 the file name, not the whole `#line LINE FILE'.
1339 2000-03-17 Akim Demaille <akim@epita.fr>
1341 On syntax errors, report the token on which we choked.
1343 * src/bison.s1 (yyparse): In the label yyerrlab, when
1344 YYERROR_VERBOSE, add yychar in msg.
1346 2000-03-17 Akim Demaille <akim@epita.fr>
1348 * src/reader.c (copy_at): New function.
1349 (copy_guard): Use it.
1350 (copy_action): Use it.
1352 2000-03-17 Akim Demaille <akim@epita.fr>
1354 Be kind to translators, save some useless translations.
1356 * src/main.c (banner): New function.
1357 (fatal_banner): Use it.
1358 (warn_banner): Use it.
1360 2000-03-17 Akim Demaille <akim@epita.fr>
1362 * src/reader.c (copy_definition): Use copy_string and
1363 copy_comment. Removed now unused `match', `ended',
1365 (copy_comment, copy_string): Moved, to be visible from
1368 2000-03-17 Akim Demaille <akim@epita.fr>
1370 * src/reader.c (copy_string): Declare `static inline'. No
1371 problems with inline, since it is checked by configure.
1372 (copy_comment): Likewise.
1374 2000-03-17 Akim Demaille <akim@epita.fr>
1376 * src/reader.c (packsymbols): Formatting changes.
1378 2000-03-17 Akim Demaille <akim@epita.fr>
1380 * src/reader.c (copy_comment): New function, factored out from:
1381 (copy_action): Use it. Removed now unused `match', `ended',
1383 (copy_guard): Likewise.
1385 2000-03-17 Akim Demaille <akim@epita.fr>
1387 * src/reader.c (copy_string): New function, factored out from:
1388 (copy_action): Use it.
1389 (copy_guard): Likewise.
1391 2000-03-17 Akim Demaille <akim@epita.fr>
1393 Change the handling of @s so that they behave exactly like $s.
1394 There is now a pseudo variable @$ (readble and writable), location
1395 of the lhs of the rule (by default ranging from the location of
1396 the first symbol of the rhs, to the location of the last symbol,
1397 or, if the rhs is empty, YYLLOC).
1399 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1401 (yyparse): When providing a default semantic action, provide a
1402 default location action.
1403 (after the $): No longer change `*YYLSP', just stack YYLOC the
1404 same way you stack YYVAL.
1405 * src/reader.c (read_declarations): Use warns.
1406 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1407 (copy_action, case '@'): Likewise.
1408 Use a standard error message, to save useless work from
1411 2000-03-17 Akim Demaille <akim@epita.fr>
1413 * src/bison.s1: Formatting and cosmetics changes.
1414 * src/reader.c: Likewise.
1415 Update the Copyright notice.
1417 2000-03-17 Akim Demaille <akim@epita.fr>
1419 * src/bison.s1 (#line): All set to `#line' only, since the
1420 Makefile now handles them.
1422 2000-03-16 Akim Demaille <akim@epita.fr>
1424 * src/output.c (output_rule_data): Output the documentation of
1426 (Copyright notice): Update.
1429 2000-03-16 Akim Demaille <akim@epita.fr>
1431 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1432 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1433 One `#if YYDEBUG' remains, since it uses variables which are
1434 defined only if `YYDEBUG != 0'.
1436 2000-03-16 Akim Demaille <akim@epita.fr>
1438 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1439 and related variables so that the similarities are highlighted.
1441 2000-03-16 Akim Demaille <akim@epita.fr>
1443 * src/bison.s1: Properly indent CPP directives.
1445 2000-03-16 Akim Demaille <akim@epita.fr>
1447 * src/bison.s1: Properly indent the `alloca' CPP section.
1449 2000-03-16 Akim Demaille <akim@epita.fr>
1451 Do not hard code values of directories in `configure.in'.
1452 Update the `configure' tool chain.
1454 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1456 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1457 (AC_OUTPUT): Add m4/Makefile.
1458 Bump to bison 1.28a, 1.29 has never been released.
1459 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1460 handled via src/Makefile.am.
1461 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1462 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1464 * Makefile.am (SUBDIRS): Add m4.
1465 (ACLOCAL_AM_FLAGS): New variable.
1466 (AUTOMAKE_OPTIONS): Add check-news.
1467 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1468 the proper line number and file name.
1469 (DEFS): Propagate the location of bison library files and of the
1471 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1473 * acinclude.m4: Remove, replaced by the directory m4.
1474 * m4/Makefile.am (EXTRA_DIST): New variable.
1475 * m4/gettext.m4: New file, from the fileutils.
1476 * m4/lcmessage.m4: Likewise
1477 * m4/progtest.m4: Likewise.
1478 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1480 2000-03-10 Akim Demaille <akim@epita.fr>
1483 Formatting changes of various comments.
1484 Respect the GNU coding standards at various places.
1485 Don't use `_()' when no translation is needed.
1487 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1490 OS/2 honors TMPDIR environment variable.
1492 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1494 * doc/bison.texinfo: Tweaked spelling and grammar.
1496 Removed reference to price of printed copy.
1497 Mention BISON_SIMPLE and BISON_HAIRY.
1499 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1501 * configure.in, NEWS:
1502 Bison 1.29 released.
1504 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1506 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1507 Added reference card.
1509 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1511 * po/ru.po: Added Russian translation.
1513 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1515 * configure.in: Added Russian translation.
1517 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1519 * configure.in, NEWS, README:
1520 Released version 1.28.
1522 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1525 Squashed redefinition warning on some systems.
1527 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1528 Have configure build version string instead of relying on ANSI string
1531 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1533 * po/POTFILES.in: Got rid of version.c.
1535 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1537 * acconfig.h, configure.in:
1538 Have configure build version string instead of relying on ANSI string
1541 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1544 Dropped mention of `+' for long-named options.
1546 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1548 * src/files.c: Added <unistd.h> for unlink().
1550 * src/Makefile.am, src/system.h:
1553 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1555 * README: Added a FAQ list.
1557 * configure.in, acconfig.h:
1560 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1562 * doc/FAQ, doc/Makefile.am:
1565 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1567 * src/alloc.h, src/symtab.h, src/version.c:
1568 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1570 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1572 * src/.cvsignore, src/Makefile.am:
1573 Reorganized: sources in `src', documentation in `doc'.
1575 * src/lex.c (literalchar):
1576 fixed the code for escaping double quotes (thanks
1579 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1581 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1582 Adjusted paths to reflect directory reorganization.
1584 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1586 * doc/.cvsignore, doc/Makefile.am:
1587 Reorganized: sources in `src', documentation in `doc'.
1589 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1592 Updated AC_INIT file to reflect directory reorganization.
1594 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1595 Reorganized: sources in `src', documentation in `doc'.
1597 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1600 Don't declare calloc() and realloc() if not necessary.
1602 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1604 * configure.in, acconfig.h, acinclude.m4:
1605 Don't declare calloc() and realloc() if not necessary.
1607 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1609 * po/.cvsignore: Added i18n support.
1611 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1613 * acconfig.h, configure.in, Makefile.am:
1616 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1618 * src/bison.s1: Fixed #line numbers.
1620 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1622 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1623 Added PO files from Translation Project.
1625 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1628 Added support for non-ANSI compilers (ansi2knr).
1630 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1632 * configure.in: Bumped version number to 1.27.
1635 Added `bison.simple' to list of files removed by `make distclean'.
1637 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1639 * src/files.c, src/files.h:
1640 Defined locations of parser files in config.h instead of Makefile.
1642 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1644 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1645 Defined locations of parser files in config.h instead of Makefile.
1647 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1650 Removed inappropriate use of $< macro.
1652 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1654 * po/Makefile.in.in, po/POTFILES.in:
1655 Add `po' directory skeleton.
1657 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1659 * README: Document help-bison list.
1661 * configure.in: Add check for mkstemp().
1663 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1665 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1666 Hush a few compiler warnings.
1669 Add tryclose(), which verifies that fclose was successful.
1670 Hush a couple of compiler warnings.
1672 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1674 * Makefile.am, OChangeLog:
1675 ChangeLog is now automatically generated. Include the old version as
1678 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1680 * 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:
1683 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1685 * doc/bison.texinfo: Fix formatting glitch.
1687 * doc/bison.texinfo: Update FSF address.
1689 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1691 * acconfig.h: Update FSF address.
1693 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1696 Don't define PACKAGE here, since config.h defines it.
1698 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1700 * src/reader.c: Update copyright date.
1703 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1704 favor of output directly to stderr (avoids buffer overruns).
1706 * src/reader.c: Some checks for premature EOF.
1708 * 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:
1709 Use prototypes if the compiler understands them.
1711 * src/files.c: Honor TMPDIR on Unix hosts.
1712 Use prototypes if the compiler understands them.
1715 Fix a couple of buffer overrun bugs.
1716 Use prototypes if the compiler understands them.
1718 * src/system.h: Include unistd.h and ctype.h.
1719 Use #ifdef instead of #if for NLS symbols.
1721 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1723 * doc/bison.texinfo:
1724 Delete comment "consider using @set for edition number, etc..." since
1725 we now are doing so.
1727 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1730 Use prototypes if the compiler understands them.
1732 * NEWS: Document 1.26 highlights.
1734 * Makefile.am: Require Automake 1.3 or later.
1737 Use prototypes if the compiler understands them.
1739 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1742 Use VERSION symbol from automake for version number.
1744 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1746 * acconfig.h, configure.in, version.cin:
1747 Use VERSION symbol from automake for version number.
1749 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1752 Distribute original version of simple parser (bison.s1), not built
1753 version (bison.simple).
1755 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1757 * doc/bison.texinfo: Add info dir entry.
1759 * doc/bison.texinfo:
1760 Let automake put version number into documentation.
1762 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1764 * src/bison.cld, src/build.com, src/vmshlp.mar:
1765 Add non-RCS files from /gd/gnu/bison.
1767 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1770 Document the BISON_HAIRY and BISON_SIMPLE variables.
1772 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1774 * src/version.c: Build version.c automatically.
1777 Fix token numbering (used to start at 258, not 257).
1779 * src/system.h: Include config.h.
1781 * src/getargs.c: Update bug report address.
1783 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1784 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1786 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1789 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1791 * configure.in, version.cin:
1792 Build version.c automatically.
1794 * AUTHORS: Add AUTHORS file.
1796 * README: Update bug report address.
1799 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1801 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1804 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1806 * doc/bison.texinfo: Clean up some formatting.
1808 1998-05-05 Richard Stallman <rms@gnu.org>
1810 * doc/bison.texinfo:
1811 Explain better why to make a pure parser.
1813 1998-01-05 Richard Stallman <rms@gnu.org>
1815 * src/files.c (openfiles):
1816 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1817 find a temporary directory, if possible. Do not unlink files while
1820 1997-08-25 Richard Stallman <rms@gnu.org>
1822 * src/reader.c (stack_offset;):
1823 Change some warni to warns.
1825 * src/lex.c (literalchar): Use warns, not warni.
1827 1997-06-28 Richard Stallman <rms@gnu.org>
1829 * src/bison.s1: Add a Bison version comment.
1831 * src/main.c (fatal, warn, berror):
1834 1997-06-28 Richard Stallman <rms@gnu.org>
1836 * Makefile.in (bison_version): New variable.
1837 (dist): Use that variable.
1838 (bison.s1): Substitute the Bison version into bison.simple.
1840 * bison.simple: Add a Bison version comment.
1842 1997-06-18 Richard Stallman <rms@gnu.org>
1844 * src/main.c (fatal, warn, berror):
1845 Make error messages standard.
1846 (toomany): Improve error message text.
1848 * 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:
1849 new.h renamed to alloc.h.
1851 1997-06-18 Richard Stallman <rms@gnu.org>
1853 * Makefile.in: new.h renamed to alloc.h.
1855 1997-05-24 Richard Stallman <rms@gnu.org>
1857 * src/lex.c (literalchar):
1858 Fix the code for escaping \, " and '.
1860 (lex): Avoid trouble when there are many chars
1861 to discard in a char literal with just several chars in it.
1863 1997-05-17 Richard Stallman <rms@gnu.org>
1866 Use malloc, if using alloca is troublesome.
1867 (YYSTACK_USE_ALLOCA): New flag macro.
1868 Define it for some systems and compilers.
1869 (YYSTACK_ALLOC): New macro.
1870 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1871 If it was malloc'd, free it.
1873 1997-05-17 Richard Stallman <rms@gnu.org>
1876 Use malloc, if using alloca is troublesome.
1877 (YYSTACK_USE_ALLOCA): New flag macro.
1878 Define it for some systems and compilers.
1879 (YYSTACK_ALLOC): New macro.
1880 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1881 If it was malloc'd, free it.
1883 1997-04-23 Richard Stallman <rms@gnu.org>
1886 (alloca) [__hpux]: Always define as __builtin_alloca.
1888 1997-04-23 Richard Stallman <rms@gnu.org>
1891 (alloca) [__hpux]: Always define as __builtin_alloca.
1893 1997-04-22 Richard Stallman <rms@gnu.org>
1896 [__hpux]: Include alloca.h (right for HPUX 10)
1897 instead of declaring alloca (right for HPUX 9).
1899 * src/bison.s1 (__yy_memcpy):
1900 Declare arg `count' as unsigned int.
1901 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1903 1997-04-22 Richard Stallman <rms@gnu.org>
1906 [__hpux]: Include alloca.h (right for HPUX 10)
1907 instead of declaring alloca (right for HPUX 9).
1909 * bison.simple (__yy_memcpy):
1910 Declare arg `count' as unsigned int.
1911 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1913 1997-01-03 Richard Stallman <rms@gnu.org>
1915 * src/allocate.c: [__STDC__ or _MSC_VER]:
1916 Declare calloc and realloc to return void *.
1918 1997-01-02 Richard Stallman <rms@gnu.org>
1921 [_MSC_VER]: Include stdlib.h and process.h.
1922 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1924 * src/main.c (main): Return FAILURE as a value.
1925 (printable_version): Declare arg as int, not char.
1927 1997-01-02 Richard Stallman <rms@gnu.org>
1929 * Makefile.in (dist):
1930 Explicitly check for symlinks, and copy them.
1932 1996-12-19 Richard Stallman <rms@gnu.org>
1935 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1937 1996-12-18 Paul Eggert <eggert@gnu.org>
1939 * src/bison.s1 (yyparse):
1940 If __GNUC__ and YYPARSE_PARAM are both defined,
1941 declare yyparse to have a void * argument.
1943 1996-12-18 Paul Eggert <eggert@gnu.org>
1945 * bison.simple (yyparse):
1946 If __GNUC__ and YYPARSE_PARAM are both defined,
1947 declare yyparse to have a void * argument.
1949 1996-12-17 Richard Stallman <rms@gnu.org>
1951 * src/reduce.c (nbits): Add some casts.
1953 1996-08-12 Richard Stallman <rms@gnu.org>
1955 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1957 1996-08-12 Richard Stallman <rms@gnu.org>
1959 * bison.simple: Test _MSDOS as well as _MSDOS_.
1961 1996-07-31 Richard Stallman <rms@gnu.org>
1964 [__sun && __i386]: Include alloca.h.
1966 1996-07-31 Richard Stallman <rms@gnu.org>
1969 [__sun && __i386]: Include alloca.h.
1971 1996-07-30 Richard Stallman <rms@gnu.org>
1973 * src/bison.s1: Comment change.
1975 * src/bison.s1: Test _MSDOS_, not MSDOS.
1977 1996-07-30 Richard Stallman <rms@gnu.org>
1979 * bison.simple: Comment change.
1981 * bison.simple: Test _MSDOS_, not MSDOS.
1983 1996-06-01 Richard Stallman <rms@gnu.org>
1985 * 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:
1986 Insert `_' macro around many string constants.
1989 Insert `_' macro around many string constants.
1991 (main): Call setlocale, bindtextdomain and textdomain.
1993 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1994 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1995 [ENABLE_NLS]: Include libintl.h.
1996 [ENABLE_NLS] (gettext): Define.
1997 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1998 (N_, PACKAGE, LOCALEDIR): New macros.
2000 1996-06-01 Richard Stallman <rms@gnu.org>
2002 * POTFILES.in: New file.
2004 * Makefile.in (allocate.o):
2005 Define target explicitly.
2007 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2008 (LDFLAGS): Set to @LDFLAGS@.
2009 (configure): Run autoconf only if preceding `cd' succeeds.
2010 (bison.s1): Redirect output to temporary file then move the
2011 temporary to the target, rather than redirecting directly to bison.s1.
2012 (clean): Remove config.status and config.log.
2013 (distclean): Don't remove config.status here.
2015 1996-05-12 Richard Stallman <rms@gnu.org>
2018 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2020 1996-05-12 Richard Stallman <rms@gnu.org>
2023 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2025 1996-05-11 Richard Stallman <rms@gnu.org>
2027 * src/bison.s1 (__yy_memcpy):
2028 Really reorder the args, as was supposedly done on Feb 14 1995.
2029 (yyparse): Calls changed accordingly.
2031 1996-05-11 Richard Stallman <rms@gnu.org>
2033 * Makefile.in (dist): Don't use $(srcdir).
2035 * bison.simple (__yy_memcpy):
2036 Really reorder the args, as was supposedly done on Feb 14 1995.
2037 (yyparse): Calls changed accordingly.
2039 1996-01-27 Richard Stallman <rms@gnu.org>
2041 * src/output.c (output_rule_data):
2042 Test YYERROR_VERBOSE in the conditional
2043 around the definition of ttyname.
2045 1995-12-29 Richard Stallman <rms@gnu.org>
2048 Fix line numbers in #line commands.
2050 1995-12-29 Richard Stallman <rms@gnu.org>
2053 Fix line numbers in #line commands.
2055 1995-12-27 Richard Stallman <rms@gnu.org>
2057 * src/bison.s1 (YYPARSE_PARAM_DECL):
2058 In C++, make it always null.
2059 (YYPARSE_PARAM_ARG): New macro.
2060 (yyparse): Use YYPARSE_PARAM_ARG.
2062 1995-12-27 Richard Stallman <rms@gnu.org>
2064 * bison.simple (YYPARSE_PARAM_DECL):
2065 In C++, make it always null.
2066 (YYPARSE_PARAM_ARG): New macro.
2067 (yyparse): Use YYPARSE_PARAM_ARG.
2069 1995-11-29 Richard Stallman <rms@gnu.org>
2071 * doc/bison.texinfo:
2072 Describe literal string tokens, %raw, %no_lines, %token_table.
2074 1995-11-29 Daniel Hagerty <hag@gnu.org>
2076 * doc/bison.texinfo: Fixed update date
2078 1995-10-16 Richard Stallman <rms@gnu.org>
2080 * src/version.c: Version 1.25.
2082 1995-10-16 Richard Stallman <rms@gnu.org>
2084 * NEWS: *** empty log message ***
2086 1995-10-16 Richard Stallman <rms@gnu.org>
2088 * doc/bison.1, doc/bison.rnh:
2091 1995-10-15 Richard Stallman <rms@gnu.org>
2093 * src/vmsgetargs.c, src/getargs.c:
2094 Added -n, -k, and -raw switches.
2095 (noparserflag, toknumflag, rawtoknumflag): New variables.
2097 * src/symtab.h (SALIAS):
2098 New #define for adding aliases to %token.
2099 (struct bucket): Added `alias' field.
2101 * src/reduce.c (reduce_grammar):
2102 Revise error message.
2103 (print_notices): Remove final `.' from error message.
2105 * src/reader.c (reader_output_yylsp):
2107 (readgram): Use `#if 0' around code that accepted %command
2108 inside grammar rules: The documentation doesn't allow it,
2109 and it will fail since the %command processors scan for the next %.
2110 (parse_token_decl): Extended the %token
2111 declaration to allow a multi-character symbol as an alias.
2112 (parse_thong_decl): New function.
2113 (read_declarations): Added %thong declarations.
2114 (read_declarations): Handle NOOP to deal with allowing
2115 % declarations as another means to specify the flags.
2116 (readgram): Allow %prec prior to semantics embedded in a rule.
2117 (skip_to_char, read_declarations, copy_definition)
2118 (parse_token_decl, parse_start_decl, parse_type_decl)
2119 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2120 (get_type_name, copy_guard, copy_action, readgram)
2121 (get_type, packsymbols): Revised most error messages.
2122 Changed `fatal' to `warnxxx' to avoid aborting for error.
2123 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2124 (read_declarations): Improve the error message for
2125 an invalid character. Do not abort.
2126 (read_declarations, copy_guard, copy_action): Use
2127 printable_version to avoid unprintable characters in printed output.
2128 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2129 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2130 Allow the type of a non-terminal can be given
2131 more than once, as long as all specifications give the same type.
2134 (output_headers, output_trailers, output, output_gram)
2135 (output_rule_data): Implement noparserflag variable.
2136 Implement toknumflag variable.
2137 (output): Call reader_output_yylsp to output LTYPESTR.
2139 * src/main.c (main):
2140 If reader sees an error, don't process the grammar.
2141 (fatals): Updated to not use VARARGS1.
2142 (printable_version, int_to_string, warn, warni, warns, warnss)
2143 (warnsss): New error reporting functions. Avoid abort for error.
2146 Added THONG and NOOP for alias processing.
2147 Added SETOPT for the new code that allows setting options with %flags.
2150 Include getopt.h. Add some extern decls.
2151 (safegetc): New function to deal with EOF gracefully.
2152 (literalchar); new function to deal with reading \ escapes.
2153 (lex): Use literalchar.
2154 (lex): Implemented "..." tokens.
2155 (literalchar, lex, parse_percent_token): Made tokenbuffer
2156 always contain the token. This includes growing the token
2157 buffer while reading an integer.
2158 (parse_percent_token): Replaced if-else statement with percent_table.
2159 (parse_percent_token): Added % declarations as another
2160 way to specify the flags -n, -l, and -r. Also added hooks for
2161 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2162 major changes to files.c.
2163 (lex) Retain in the incoming stream a character following
2165 (skip_white_space, lex): Revised most error messages
2166 and changed fatal to warn to avoid aborting.
2167 (percent_table): Added %thong declarations.
2169 * src/gram.h: Comment changes.
2171 * src/files.c (openfiles, open_extra_files, done):
2173 and actfile file. Handle noparserflag. Both for -n switch.
2175 * src/conflicts.c (resolve_sr_conflict):
2176 Remove use of alloca.
2178 1995-06-01 Jim Meyering <meyering@gnu.org>
2180 * doc/bison.texinfo: *** empty log message ***
2182 1995-05-06 Richard Stallman <rms@gnu.org>
2184 * src/bison.s1: Comment change.
2186 1995-05-06 Richard Stallman <rms@gnu.org>
2188 * bison.simple: Comment change.
2190 1995-05-03 Richard Stallman <rms@gnu.org>
2192 * src/version.c: Version now 1.24.
2194 * src/bison.s1: Change distribution terms.
2196 * src/version.c: Version now 1.23.
2198 1995-05-03 Richard Stallman <rms@gnu.org>
2200 * doc/bison.texinfo:
2201 Rewrite "Conditions for Using Bison".
2202 Update version to 1.24.
2204 1995-05-03 Richard Stallman <rms@gnu.org>
2206 * bison.simple: Change distribution terms.
2208 1995-02-23 Richard Stallman <rms@gnu.org>
2210 * src/files.c: Test __VMS_POSIX as well as VMS.
2212 1995-02-14 Jim Meyering <meyering@gnu.org>
2214 * src/bison.s1 (__yy_memcpy):
2215 Renamed from __yy_bcopy to avoid
2216 confusion. Reverse FROM and TO arguments to be consistent with
2219 1995-02-14 Jim Meyering <meyering@gnu.org>
2221 * bison.simple (__yy_memcpy):
2222 Renamed from __yy_bcopy to avoid
2223 confusion. Reverse FROM and TO arguments to be consistent with
2226 1994-11-10 David J. MacKenzie <djm@gnu.org>
2232 * Makefile.in (DISTFILES): Include NEWS.
2234 * Makefile.in (DISTFILES):
2235 Include install-sh, not install.sh.
2237 * configure.in: Update to Autoconf v2 macro names.
2239 1994-10-05 David J. MacKenzie <djm@gnu.org>
2241 * Makefile.in: fix typo
2243 * Makefile.in (prefix, exec_prefix):
2244 Let configure set them.
2246 1994-09-28 David J. MacKenzie <djm@gnu.org>
2248 * Makefile.in: Set datadir to $(prefix)/share.
2250 1994-09-15 Richard Stallman <rms@gnu.org>
2253 Update copyright notice and GPL version.
2255 1994-09-15 Richard Stallman <rms@gnu.org>
2258 Update copyright notice and GPL version.
2260 1994-07-12 Richard Stallman <rms@gnu.org>
2262 * src/reduce.c, src/reader.c:
2265 1994-05-05 David J. MacKenzie <djm@gnu.org>
2267 * Makefile.in: entered into RCS
2269 1994-03-26 Richard Stallman <rms@gnu.org>
2271 * src/bison.s1: entered into RCS
2273 1994-03-26 Richard Stallman <rms@gnu.org>
2275 * bison.simple: entered into RCS
2277 1994-03-25 Richard Stallman <rms@gnu.org>
2279 * src/main.c: entered into RCS
2281 1994-03-24 Richard Stallman <rms@gnu.org>
2283 * src/conflicts.c: entered into RCS
2285 1994-01-02 Richard Stallman <rms@gnu.org>
2287 * Makefile.in: *** empty log message ***
2289 1993-11-21 Richard Stallman <rms@gnu.org>
2291 * src/bison.s1: *** empty log message ***
2293 1993-11-21 Richard Stallman <rms@gnu.org>
2295 * doc/bison.texinfo: entered into RCS
2297 * doc/bison.texinfo: *** empty log message ***
2299 1993-11-21 Richard Stallman <rms@gnu.org>
2301 * bison.simple: *** empty log message ***
2303 1993-10-25 David J. MacKenzie <djm@gnu.org>
2305 * doc/bison.texinfo: *** empty log message ***
2307 1993-10-19 Richard Stallman <rms@gnu.org>
2309 * src/bison.s1: *** empty log message ***
2311 1993-10-19 Richard Stallman <rms@gnu.org>
2313 * bison.simple: *** empty log message ***
2315 1993-10-14 Richard Stallman <rms@gnu.org>
2317 * src/bison.s1: *** empty log message ***
2319 1993-10-14 Richard Stallman <rms@gnu.org>
2321 * bison.simple: *** empty log message ***
2323 1993-09-14 David J. MacKenzie <djm@gnu.org>
2325 * doc/bison.texinfo: *** empty log message ***
2327 1993-09-13 Noah Friedman <friedman@gnu.org>
2329 * Makefile.in: *** empty log message ***
2331 1993-09-10 Richard Stallman <rms@gnu.org>
2333 * src/conflicts.c: *** empty log message ***
2335 * src/system.h: entered into RCS
2337 1993-09-10 Richard Stallman <rms@gnu.org>
2339 * doc/bison.1: entered into RCS
2341 1993-09-06 Noah Friedman <friedman@gnu.org>
2343 * src/version.c: entered into RCS
2345 1993-09-06 Noah Friedman <friedman@gnu.org>
2347 * Makefile.in: *** empty log message ***
2349 1993-07-30 David J. MacKenzie <djm@gnu.org>
2351 * Makefile.in: *** empty log message ***
2353 1993-07-24 Richard Stallman <rms@gnu.org>
2355 * src/bison.s1: *** empty log message ***
2357 1993-07-24 Richard Stallman <rms@gnu.org>
2359 * bison.simple: *** empty log message ***
2361 1993-07-08 David J. MacKenzie <djm@gnu.org>
2363 * Makefile.in: *** empty log message ***
2365 1993-07-04 Richard Stallman <rms@gnu.org>
2367 * src/bison.s1: *** empty log message ***
2369 1993-07-04 Richard Stallman <rms@gnu.org>
2371 * bison.simple: *** empty log message ***
2373 1993-06-26 David J. MacKenzie <djm@gnu.org>
2375 * src/getargs.c: entered into RCS
2377 1993-06-26 David J. MacKenzie <djm@gnu.org>
2379 * doc/bison.texinfo: *** empty log message ***
2381 * doc/bison.1: New file.
2383 1993-06-25 Richard Stallman <rms@gnu.org>
2385 * src/getargs.c: New file.
2387 1993-06-16 Richard Stallman <rms@gnu.org>
2389 * src/bison.s1: *** empty log message ***
2391 1993-06-16 Richard Stallman <rms@gnu.org>
2393 * bison.simple: *** empty log message ***
2395 1993-06-03 Richard Stallman <rms@gnu.org>
2397 * src/bison.s1: New file.
2399 1993-06-03 Richard Stallman <rms@gnu.org>
2401 * doc/bison.texinfo: *** empty log message ***
2403 1993-06-03 Richard Stallman <rms@gnu.org>
2405 * bison.simple: New file.
2407 1993-05-19 Richard Stallman <rms@gnu.org>
2409 * doc/bison.texinfo: New file.
2411 1993-05-07 Noah Friedman <friedman@gnu.org>
2413 * Makefile.in: *** empty log message ***
2415 1993-04-28 Noah Friedman <friedman@gnu.org>
2417 * src/reader.c: *** empty log message ***
2419 1993-04-23 Noah Friedman <friedman@gnu.org>
2421 * src/alloc.h: entered into RCS
2423 1993-04-20 David J. MacKenzie <djm@gnu.org>
2425 * src/version.c: *** empty log message ***
2427 * src/files.c, src/allocate.c:
2430 * src/reader.c: *** empty log message ***
2432 * src/lex.c: entered into RCS
2434 * src/conflicts.c: New file.
2436 * src/symtab.c: entered into RCS
2438 * src/alloc.h: New file.
2440 * src/LR0.c: entered into RCS
2442 1993-04-18 Noah Friedman <friedman@gnu.org>
2444 * src/reader.c: New file.
2446 * src/version.c: *** empty log message ***
2448 1993-04-18 Noah Friedman <friedman@gnu.org>
2450 * Makefile.in: *** empty log message ***
2452 1993-04-17 Noah Friedman <friedman@gnu.org>
2454 * Makefile.in: *** empty log message ***
2456 1993-04-15 Richard Stallman <rms@gnu.org>
2458 * src/main.c, src/files.c:
2461 1993-04-15 Noah Friedman <friedman@gnu.org>
2463 * configure.in: entered into RCS
2465 * configure.in: *** empty log message ***
2467 * configure.in: New file.
2469 1993-04-14 Richard Stallman <rms@gnu.org>
2471 * Makefile.in: New file.
2473 1993-04-13 Richard Stallman <rms@gnu.org>
2475 * src/version.c: New file.
2477 1993-03-25 Richard Stallman <rms@gnu.org>
2479 * src/output.c: entered into RCS
2481 1992-09-25 Richard Stallman <rms@gnu.org>
2483 * configure.bat: entered into RCS
2485 1992-06-22 Richard Stallman <rms@gnu.org>
2487 * src/vmsgetargs.c: entered into RCS
2489 1992-06-22 Richard Stallman <rms@gnu.org>
2491 * doc/bison.rnh: entered into RCS
2493 1992-04-20 David J. MacKenzie <djm@gnu.org>
2495 * README: entered into RCS
2497 1992-01-22 Richard Stallman <rms@gnu.org>
2499 * src/machine.h: entered into RCS
2501 1991-12-21 Richard Stallman <rms@gnu.org>
2503 * src/lalr.c, src/closure.c:
2506 1991-12-20 Richard Stallman <rms@gnu.org>
2508 * src/state.h: entered into RCS
2510 1991-12-18 Richard Stallman <rms@gnu.org>
2512 * src/print.c, src/nullable.c, src/derives.c:
2515 1991-11-03 David J. MacKenzie <djm@gnu.org>
2517 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2520 1988-09-09 Richard Stallman <rms@gnu.org>
2522 * src/bison.hairy: entered into RCS
2524 1987-12-16 Richard Stallman <rms@gnu.org>
2526 * REFERENCES: entered into RCS