1 2001-08-30 Marc Autret <autret_m@epita.fr>
3 * src/reader.c (parse_skel_decl): New.
4 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
5 * src/lex.h (token_t): New token `tok_skel'.
6 * src/lex.c (percent_table): Add skeleton option entry.
9 2001-08-29 Marc Autret <autret_m@epita.fr>
11 * src/bison.simple: Add %%user_code directive at the end.
12 * src/reader.c (read_additionnal_code): New.
14 * src/output.c (output_program): Remove.
17 2001-08-28 Marc Autret <autret_m@epita.fr>
19 * src/output.c (output_actions): Clean up.
20 (output_gram): CPP-out useless code.
21 * src/reader.c (reader): Clean up, CPP-out useless code.
23 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
25 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
27 * src/bison.simple: Add `%%definitions'.
29 2001-08-28 Marc Autret <autret_m@epita.fr>
31 * config/depcomp: New file.
33 2001-08-27 Paul Eggert <eggert@twinsun.com>
35 * src/bison.simple (yyparse): Don't take the address of an
36 item before the start of an array, as that doesn't conform to
39 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
41 * src/output.c (output): Remove the initialization of the macro
42 obstack. It was done too late here.
44 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
46 (reader): Initialize the macro obstack here, since we need it to grow
49 * src/reader.h: Declare the macro obstack as extern.
51 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
53 * src/output.c (output_parser): Fix. Store single '%' characters in
54 the output obstack instead of throwing them away.
56 2001-08-27 Akim Demaille <akim@epita.fr>
58 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
60 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
62 * lib/Makefile.am: Adjust.
64 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
66 * src/bison.simple: Update and add '%%' directives.
68 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
70 * src/reader.c (reader): Remove calls to 'output_headers' and
71 'output_trailers'. Remove some C output.
72 (readgram): Disable a piece of code that was writing a default
73 definition for 'YYSTYPE'.
74 (reader_output_yylsp): Remove.
75 (packsymbols): Output token defintions to a macro.
76 (copy_definition): Disable C output.
78 * src/reader.c (parse_macro_decl): New function used to parse macro
80 (copy_string2): Put the body of copy_string into this new function.
81 Add a parameter to let the caller choose whether he wants to copy the
82 string delimiters or not.
83 (copy_string): Be a simple call to copy_string2 with the last argument
85 (read_declarations): Add case for macro definition.
86 (copy_identifier): New.
87 (parse_macro_decl): Read macro identifiers using copy_identifier
90 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
92 * src/output.c (prepare): Add prefixed names.
93 (output_parser): Output semantic actions.
94 (output_parser): Fix bug on '%%line' directives.
96 * src/output.c (output_headers): Remove. The C code printed by this
97 function should now be in the skeletons.
98 (output_trailers): Remove.
99 (output): Disable call to 'reader_output_yylsp'.
100 (output_rule_data): Do not output tables to the table obstack.
102 * src/output.c: Remove some C dedicated output.
103 Improve the use of macro and output obstacks.
104 (output_defines): Remove.
106 * src/output.c (output_token_translations): Associate 'translate'
107 table with a macro. No output to the table obstack.
108 (output_gram): Same for 'rhs' and 'prhs'.
109 (output_stos): Same for 'stos'.
110 (output_rule_data): Same for 'r1' and 'r2'.
111 (token_actions): Same for 'defact'.
112 (goto_actions): Same for 'defgoto'.
113 (output_base): Same for 'pact' and 'pgoto'.
114 (output_table): Same for 'table'.
115 (output_check): Same for 'check'.
117 * src/output.c (output_table_data): New function.
118 (output_short_table): Remove.
119 (output_short_or_char_table): Remove.
121 * src/output.c (output_parser): Replace most of the skeleton copy code
122 with something new. Skeletons are now processed character by character
123 rather than line by line, and Bison looks for '%%' macros. This is the
124 first step in making Bison's output process (a lot) more flexible.
125 (output_parser): Use the macro table.
127 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
129 * src/main.c (main): Initialize the macro table.
131 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
133 * src/lex.c (percent_table): Add tok_define.
134 * src/lex.h: Add tok_define.
136 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
138 * src/macrotab.c: New file.
139 * src/macrotab.h: New file.
140 * src/Makefile.am: Update.
142 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
144 * lib/hash.c: New file.
145 * lib/hash.h: New file.
146 * lib/Makefile.am: Update.
148 2001-08-15 Akim Demaille <akim@epita.fr>
152 2001-08-15 Marc Autret <autret_m@epita.fr>
154 * src/reader.c (readgram): Indent output macro YYSTYPE.
155 (packsymbols): Likewise.
156 (output_token_defines): Likewise.
157 * src/files.c: Standardize.
158 (compute_header_macro): New.
159 (defines_obstack_save): New. Use compute_header_macro.
160 (output_files): Update. Use defines_obstack_save.
162 2001-08-15 Akim Demaille <akim@epita.fr>
164 * doc/bison.texinfo (Table of Symbols): Document
167 2001-08-15 Akim Demaille <akim@epita.fr>
169 * missing: Update from CVS Automake.
170 * config/config.guess, config/config.sub, config/texinfo.tex:
173 2001-08-15 Akim Demaille <akim@epita.fr>
175 * Makefile.maint: Sync with CVS Autoconf.
177 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
179 * doc/bison.texinfo: Include GNU Free Documentation License from
181 * doc/fdl.texi: Add to package.
183 2001-08-14 Marc Autret <autret_m@epita.fr>
185 Turn on %{source,header}_extension features.
187 * src/lex.c (percent_table): Un-CPP out header_extension and
189 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
190 (compute_exts_from_src): Remove conditions. It restores priorities
193 2001-08-14 Marc Autret <autret_m@epita.fr>
195 * src/files.c (compute_base_names): Add extensions computing when
196 `--file-prefix' used.
197 Standardize function calls.
199 2001-08-13 Marc Autret <autret_m@epita.fr>
201 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
202 defining it (defined but null disables alloca).
204 2001-08-13 Marc Autret <autret_m@epita.fr>
206 * src/bison.simple (_yy_memcpy): CPP reformat.
208 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
210 * tests/atconfig.in (CPPFLAGS): Fix.
212 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
214 * doc/bison.texinfo: Include GNU General Public License from
216 * doc/gpl.texi: Add to package.
218 2001-08-10 Marc Autret <autret_m@epita.fr>
220 * src/print_graph.h: Fix.
221 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
223 2001-08-10 Akim Demaille <akim@epita.fr>
225 * src/system.h: Provide default declarations for stpcpy, strndup,
228 2001-08-10 Robert Anisko <anisko_r@epita.fr>
230 * doc/bison.texinfo (Locations): Update @$ stuff.
232 2001-08-09 Robert Anisko <anisko_r@epita.fr>
234 * src/bison.simple (YYLLOC_DEFAULT): Update.
237 2001-08-08 Marc Autret <autret_m@epita.fr>
239 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
240 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
241 Reported by Fabrice Bauzac.
243 2001-08-08 Marc Autret <autret_m@epita.fr>
245 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
246 * src/vcg.c (output_node): Fix.
247 * src/vcg.h: Cleanup.
248 * src/print_graph.c: Add comments.
249 (node_output_size): New global variable. Simplify the formatting of
250 the VCG graph output.
251 (print_actions): Unused code is now used. It notifies the final state
252 and no action states in the VCG graph. It also give the reduce actions.
253 The `shift and goto' edges are red and the `go to state' edges are
255 Get the current node name and node_obstack by argument.
256 (node_obstack): New variable.
257 (print_state): Manage node_obstack.
258 (print_core): Use node_obstack given by argument.
259 A node is not only computed here but in print_actions also.
260 (print_graph): CPP out useless code instead of commenting it.
262 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
264 * tests/atconfig.in (CPPFLAGS): Fix.
266 2001-08-07 Akim Demaille <akim@epita.fr>
268 * src/print_graph.c (quote): New.
269 (print_core): Use it.
271 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
273 * src/vcg.c (complain.h): Include it.
274 Unepitaize `return' invocations.
275 [NDEBUG] (main): Remove.
276 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
277 * src/files.c (open_files): Initialize graph_obstack.
278 * src/print_graph.c (print_actions): CPP out useless code.
279 (print_core): Don't output the last `\n' in labels.
281 * src/files.c (output_files): Output the VCG file.
282 * src/main.c (main): Invoke print_graph ();
284 2001-08-06 Marc Autret <autret_m@epita.fr>
286 Automaton VCG graph output.
287 Using option ``-g'' or long option ``--graph'', you can generate
288 a gram_filename.vcg file containing a VCG description of the LALR (1)
289 automaton of your grammar.
291 * src/main.c: Call to print_graph() function.
292 * src/getargs.h: Update.
293 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
294 (graph_flag): New flag.
296 (getargs): Add case `g'.
297 * src/files.c (graph_obstack): New obstack struct.
298 (open_files): Initialize new obstack.
299 (output_files): Saves graph_obstack if required.
300 * src/files.h (graph_obstack): New extern declaration.
301 * src/Makefile.am: Add new source files.
303 2001-08-06 Marc Autret <autret_m@epita.fr>
305 * src/print_graph.c, src/print_graph.h (graph): New.
306 * src/vcg.h: New file.
307 * src/vcg.c: New file, VCG graph handling.
309 2001-08-06 Marc Autret <autret_m@epita.fr>
311 Add of %source_extension and %header_extension which specify
312 the source or/and the header output file extension.
314 * src/files.c (compute_base_names): Remove initialisation of
315 src_extension and header_extension.
316 (compute_exts_from_gf): Update.
317 (compute_exts_from_src): Update.
318 (output_files): Update.
319 * src/reader.c (parse_header_extension_decl): New.
320 (parse_source_extension_decl): New.
321 (read_declarations): New case statements for the new tokens.
322 * src/lex.c (percent_table): Add entries for %source_extension
323 and %header_extension.
324 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
326 2001-08-06 Marc Autret <autret_m@epita.fr>
328 * configure.in: Bump to 1.28c.
329 * doc/bison.texinfo: Texinfo thingies.
331 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
333 * tests/atconfig.in (CPPFLAGS): Add.
334 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
336 2001-08-03 Akim Demaille <akim@epita.fr>
340 2001-08-03 Akim Demaille <akim@epita.fr>
342 * tests/Makefile.am (check-local): Ship testsuite.
343 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
346 2001-08-03 Akim Demaille <akim@epita.fr>
348 * configure.in: Try using -Wformat when compiling.
350 2001-08-03 Akim Demaille <akim@epita.fr>
352 * configure.in: Bump to 1.28b.
354 2001-08-03 Akim Demaille <akim@epita.fr>
356 * src/complain.c: Adjust strerror_r portability issues.
358 2001-08-03 Akim Demaille <akim@epita.fr>
362 2001-08-03 Akim Demaille <akim@epita.fr>
364 * src/getargs.c, src/getarg.h (skeleton)): Constify.
365 * src/lex.c (literalchar): Avoid name clashes on `buf'.
366 * src/getargs.c: Include complain.h.
367 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
368 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
370 2001-08-03 Akim Demaille <akim@epita.fr>
372 * src/reader.c (readgram): Display hidden chars in error messages.
374 2001-08-03 Akim Demaille <akim@epita.fr>
376 Update to gettext 0.10.39.
378 2001-08-03 Akim Demaille <akim@epita.fr>
382 2001-08-01 Marc Autret <autret_m@epita.fr>
384 * doc/bison.texinfo: Update.
385 * doc/bison.1 (mandoc): Update.
386 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
387 * src/files.c: Support output files extensions computing.
388 (src_extension): New static variable.
389 (header_extension): New static variable.
391 (get_extension_index): New function, gets the index of an extension
392 filename in a string.
393 (compute_exts_from_gf): New function, computes extensions from the
394 grammar file extension.
395 (compute_exts_from_src): New functions, computes extensions from the
396 C source file extension, file given by ``-o'' option.
397 (compute_base_names): Update.
398 (output_files): Update.
400 2001-08-01 Robert Anisko <anisko_r@epita.fr>
402 * doc/bison.texi: Document @$.
403 (Locations): New section.
405 2001-07-18 Akim Demaille <akim@epita.fr>
407 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
408 * config/prev-version.txt, config/move-if-change: New.
409 * Makefile.am: Adjust.
411 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
413 * src/bison.simple (yyparse): Suppress warning `comparaison
414 between signed and unsigned'.
416 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
418 * src/getargs.h (raw_flag): Remove.
419 * src/getargs.c: Die on `-r'/`--raw'.
420 * src/lex.c (parse_percent_token): Die on `%raw'.
421 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
422 * tests/calc.at: Suppress test with option `--raw'.
424 2001-07-14 Akim Demaille <akim@epita.fr>
427 * configure.in: Require Autoconf 2.50.
428 Update to gettext 0.10.38.
430 2001-03-16 Akim Demaille <akim@epita.fr>
432 * doc/bison.texinfo: ANSIfy the examples.
434 2001-03-16 Akim Demaille <akim@epita.fr>
436 * getargs.c (skeleton): New variable.
437 (longopts): --skeleton is a new option.
438 (shortopts, getargs): -S is a new option.
439 * getargs.h: Declare skeleton.
440 * output.c (output_parser): Use it.
442 2001-03-16 Akim Demaille <akim@epita.fr>
444 * m4/strerror_r.m4: New.
445 * m4/error.m4: Run AC_FUNC_STRERROR_R.
446 * lib/error.h, lib/error.c: Update.
448 2001-03-16 Akim Demaille <akim@epita.fr>
450 * src/getargs.c (longopts): Clean up.
452 2001-02-21 Akim Demaille <akim@epita.fr>
454 * src/reader.c (gensym): `gensym_count' is your own.
455 Use a static buf to create the symbol name, as token_buffer is no
458 2001-02-08 Akim Demaille <akim@epita.fr>
460 * src/conflicts.c (conflict_report): Be sure not to append to res
461 between two calls, which could happen if both first sprintf were
462 skipped, but not the first cp += strlen.
464 2001-02-08 Akim Demaille <akim@epita.fr>
466 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
467 New, from fileutils 4.0.37.
468 * configure.in: Require Autoconf 2.49c. I took some time before
469 making this decision. This is the only way out for portability
470 issues in Bison, it would mean way too much duplicate effort to
471 import in Bison features implemented in 2.49c since 2.13.
472 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
474 2001-02-02 Akim Demaille <akim@epita.fr>
476 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
477 * lib/xalloc.h, lib/xmalloc.c: Update.
479 2001-01-19 Akim Demaille <akim@epita.fr>
481 Get rid of the ad hoc handling of token_buffer in the scanner: use
484 * src/lex.c (token_obstack): New.
485 (init_lex): Initialize it. No longer call...
486 (grow_token_buffer): this. Remove it.
487 Adjust all the places which used it to use the obstack.
489 2001-01-19 Akim Demaille <akim@epita.fr>
491 * src/lex.h: Rename all the tokens:
492 s/\bENDFILE\b/tok_eof/g;
493 s/\bIDENTIFIER\b/tok_identifier/g;
495 Let them be enums, not #define, to ease debugging.
498 2001-01-18 Akim Demaille <akim@epita.fr>
500 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
501 * src/lex.c (maxtoken, grow_token_buffer): Static.
503 2001-01-18 Akim Demaille <akim@epita.fr>
505 Since we now use obstacks, more % directives can be enabled.
507 * src/lex.c (percent_table): Also accept `%yacc',
508 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
510 Handle the actions for `%semantic_parser' and `%pure_parser' here,
511 instead of returning a token.
512 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
513 * src/reader.c (read_declarations): Adjust.
514 * src/files.c (open_files): Don't call `compute_base_names', don't
515 compute `attrsfile' since they depend upon data which might be
516 *in* the input file now.
517 (output_files): Do it here.
518 * src/output.c (output_headers): Document the fact that this patch
519 introduces a guaranteed SEGV for semantic parsers.
520 * doc/bison.texinfo: Document them.
521 * tests/suite.at: Exercise these %options.
523 2000-12-20 Akim Demaille <akim@epita.fr>
525 Also handle the output file (--verbose) with obstacks.
527 * files.c (foutput): Remove.
528 (output_obstack): New.
529 Adjust all dependencies.
530 * src/conflicts.c: Return a string.
531 * src/system.h (obstack_grow_string): Rename as...
532 (obstack_sgrow): this. Be ready to work with non literals.
533 (obstack_fgrow4): New.
535 2000-12-20 Akim Demaille <akim@epita.fr>
537 * src/files.c (open_files): Fix the computation of short_base_name
538 in the case of `-o foo.tab.c'.
540 2000-12-20 Akim Demaille <akim@epita.fr>
542 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
543 (copy_dollar): Now that everything uses obstacks, get rid of the
546 2000-12-20 Akim Demaille <akim@epita.fr>
548 * src/files.c (open_files): Actually the `.output' file is based
549 on the short_base_name, not base_name.
550 * tests/suite.at (Checking output file names): Adjust.
552 2000-12-20 Akim Demaille <akim@epita.fr>
554 * src/bison.s1: Remove, we now use directly...
555 * src/bison.simple: this.
556 * src/Makefile.am: Use pkgdata instead of data.
558 2000-12-20 Akim Demaille <akim@epita.fr>
560 * src/files.c (guard_obstack): New.
561 (open_files): Initialize it.
562 (output_files): Dump it...
563 * src/files.h: Export it.
564 * src/reader.c (copy_guard): Use it.
566 2000-12-19 Akim Demaille <akim@epita.fr>
568 * src/files.c (outfile, defsfile, actfile): Removed as global
570 (open_files): Don't compute them.
571 (output_files): Adjust.
572 (base_name, short_base_name): Be global.
575 2000-12-19 Akim Demaille <akim@epita.fr>
577 * src/files.c (strsuffix): New.
578 (stringappend): Be just like strcat but allocate.
579 (base_names): Eve out from open_files.
580 Try to simplify the rather hairy computation of base_name and
582 (open_files): Use it.
583 * tests/suite.at (Checking output file names): New test.
585 2000-12-19 Akim Demaille <akim@epita.fr>
587 * src/system.h (obstack_grow_literal_string): Rename as...
588 (obstack_grow_string): this.
589 * src/output.c (output_parser): Recognize `%% actions' instead of
591 * src/bison.s1: s/$/%% actions/.
592 * src/bison.hairy: Likewise.
594 2000-12-19 Akim Demaille <akim@epita.fr>
596 * src/output.c (output_parser): Compute the `#line' lines when
598 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
599 Suggested by Hans Aberg.
601 2000-12-19 Akim Demaille <akim@epita.fr>
603 Let the handling of the skeleton files be local to the procedures
606 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
608 (fparser, open_extra_files): Remove.
609 (open_files, output_files): Don't take care of fparser.
610 * src/files.h: Adjust.
611 * src/output.c (output_parser): Open and close the file to the
613 * src/reader.c (read_declarations): When %semantic_parser, open
616 2000-12-19 Akim Demaille <akim@epita.fr>
618 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
619 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
621 2000-12-19 Akim Demaille <akim@epita.fr>
623 * src/files.c (open_files): Yipee! We no longer need all the code
624 looking for `/tmp' since we have no tmp file.
626 2000-12-19 Akim Demaille <akim@epita.fr>
628 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
630 * src/files.c (open_files): Less dependency on MSDOS etc.
632 2000-12-14 Akim Demaille <akim@epita.fr>
634 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
635 Provide a default definition.
636 Use it when executing the default @ action.
637 * src/reader.c (reader_output_yylsp): No longer include
638 `timestamp' and `text' in the default YYLTYPE.
640 2000-12-12 Akim Demaille <akim@epita.fr>
642 * src/reader.c (copy_definition, parse_union_decl, copy_action)
643 (copy_guard): Quote the file names.
644 Reported by Laurent Mascherpa.
646 2000-12-12 Akim Demaille <akim@epita.fr>
648 * src/output.c (output_headers, output_program, output): Be sure
649 to escape special characters when outputting filenames.
650 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
651 (output_headers): Don't depend on them, Use ACTSTR.
653 2000-11-17 Akim Demaille <akim@epita.fr>
655 * lib/obstack.h: Formatting changes.
656 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
657 prevents type checking.
658 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
659 cast the value to (void *): assigning a `foo *' to a `void *'
661 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
662 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
665 2000-11-17 Akim Demaille <akim@epita.fr>
667 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
669 (suite.m4, regression.m4, calc.m4): these.
670 * tests/atgeneral.m4: Update from CVS Autoconf.
672 2000-11-17 Akim Demaille <akim@epita.fr>
674 * tests/regression.m4 (%union and --defines): New test,
675 demonstrating a current bug in the obstack implementation.
677 2000-11-17 Akim Demaille <akim@epita.fr>
679 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
681 Use them to declare the variables which are global or local to
684 2000-11-17 Akim Demaille <akim@epita.fr>
686 * acconfig.h: Remove, no longer used.
688 2000-11-07 Akim Demaille <akim@epita.fr>
690 * src: s/Copyright (C)/Copyright/g.
692 2000-11-07 Akim Demaille <akim@epita.fr>
694 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
696 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
698 2000-11-07 Akim Demaille <akim@epita.fr>
700 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
701 Merge in a single CPP if/else.
703 2000-11-07 Akim Demaille <akim@epita.fr>
705 * src/output.c (output): Remove useless variables.
706 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
707 argument `data' for consistency with the prototypes.
709 (obstack_copy, obstack_copy0): Rename the second argument as
710 `address' for consistency. Qualify it `const'.
711 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
712 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
713 `const' their input argument (`data' or `address').
714 Adjust the corresponding macros to include `const' in casts.
716 2000-11-03 Akim Demaille <akim@epita.fr>
718 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
719 s/PFILE1/BISON_HAIRY/.
722 2000-11-03 Akim Demaille <akim@epita.fr>
724 For some reason, this was not applied.
726 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
727 `unlink': it's no longer used.
729 2000-11-03 Akim Demaille <akim@epita.fr>
731 * src/files.c (skeleton_find): New function, eved out of...
732 (open_files, open_extra_files): here.
734 2000-11-03 Akim Demaille <akim@epita.fr>
738 * src/files.c (obstack_save): New function.
740 (output_files): this.
742 * src/main.c (main): Don't use `atexit' to register `done', since
743 it no longer has to remove tmp files, just call `output_files'
744 when there are no errors.
746 2000-11-02 Akim Demaille <akim@epita.fr>
748 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
749 `unlink': it's no longer used.
750 * src/files.h: Formatting changes.
752 2000-11-02 Akim Demaille <akim@epita.fr>
754 Remove the last uses of mktemp and unlink/delete.
756 * src/files.c (fdefines, ftable): Removed.
757 (defines_ostack, table_obstack): New.
758 Adjust dependencies of the former into uses of the latter.
759 * src/output.c (output_short_or_char_table, output_short_table):
760 Convert to using obstacks.
761 * src/reader.c (copy_comment2): Accept one FILE * and two
763 (output_token_defines, reader_output_yylsp): Use obstacks.
764 * src/system.h (obstack_fgrow3): New.
766 2000-11-01 Akim Demaille <akim@epita.fr>
768 Change each use of `fattrs' into a use of `attrs_obstack'.
770 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
771 * src/files.c (fattrs): Remove.
772 (attrs_obstack): New.
773 Adjust all dependencies.
774 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
776 2000-11-01 Akim Demaille <akim@epita.fr>
779 Change each use of `faction' into a use of `action_obstack'.
781 * lib/obstack.h, lib/obstack.c: New files.
782 * src/files.c (faction): Remove.
783 (action_obstack): New.
784 Adjust all dependencies.
786 2000-10-20 Akim Demaille <akim@epita.fr>
788 * lib/quote.h (PARAMS): New macro. Use it.
790 2000-10-16 Akim Demaille <akim@epita.fr>
792 * src/output.c (output_short_or_char_table): New function.
793 (output_short_table, output_token_translations): Use it.
794 (goto_actions): Use output_short_table.
796 2000-10-16 Akim Demaille <akim@epita.fr>
798 * src/symtab.c (bucket_new): New function.
801 * src/output.c (output_short_table): New argument to display the
802 comment associated with the table.
804 (output_gram): Use it.
805 (output_rule_data): Nicer output layout for YYTNAME.
807 2000-10-16 Akim Demaille <akim@epita.fr>
809 * src/lex.c (read_typename): New function.
811 * src/reader.c (copy_dollar): Likewise.
813 2000-10-16 Akim Demaille <akim@epita.fr>
815 * src/reader.c (copy_comment2): Expect the input stream to be on
816 the `/' which is suspected to open a comment, instead of being
817 called after `//' or `/*' was read.
818 (copy_comment, copy_definition, parse_union_decl, copy_action)
819 (copy_guard): Adjust.
821 2000-10-16 Akim Demaille <akim@epita.fr>
823 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
824 `read_signed_integer'.
826 2000-10-16 Akim Demaille <akim@epita.fr>
828 * src/reader.c (copy_dollar): New function.
829 (copy_guard, copy_action): Use it.
831 2000-10-16 Akim Demaille <akim@epita.fr>
833 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
834 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
835 New files, from Fileutils 4.0.27.
836 * src/main.c (printable_version): Remove.
837 * src/lex.c, src/reader.c: Use `quote'.
839 2000-10-04 Akim Demaille <akim@epita.fr>
841 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
843 2000-10-04 Akim Demaille <akim@epita.fr>
845 * doc/bison.texinfo: Various typos spotted by Neil Booth.
847 2000-10-04 Akim Demaille <akim@epita.fr>
849 When a literal string is used to define two different tokens,
850 `bison -v' segfaults.
851 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
853 * tests/regression.m4: New file.
854 Include the core of the sample provided by Piotr Gackiewicz.
855 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
858 2000-10-04 Akim Demaille <akim@epita.fr>
860 * src/reader.c (parse_expect_decl): Keep `count' within the size
864 2000-10-02 Paul Eggert <eggert@twinsun.com>
866 * bison.s1 (yyparse): Assign the default value
867 unconditionally, to avoid a GCC warning and make the parser a
870 2000-10-02 Akim Demaille <akim@epita.fr>
872 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
875 2000-10-02 Akim Demaille <akim@epita.fr>
877 * src/derives.c, src/print.c, src/reduce.c: To ease the
878 translation, move some `\n' out of the translated strings.
880 2000-10-02 Akim Demaille <akim@epita.fr>
882 The location tracking mechanism is precious for parse error
883 messages. Nevertheless, it is enabled only when `@n' is used in
884 the grammar, which is a different issue (you can use it in error
885 message, but not in the grammar per se). Therefore, there should
886 be another means to enable it.
888 * src/getargs.c (getargs): Support `--locations'.
890 * src/getargs.h (locationsflag): Export it.
891 * src/lex.c (percent_table): Support `%locations'.
892 * src/reader.c (yylsp_needed): Remove this variable, now replaced
893 with `locationsflag'.
894 * doc/bison.texinfo: Document `--locations' and `%locations'.
896 * tests/calc.m4: Test it.
898 For regularity of the names, replace each
899 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
900 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
901 In addition replace each `flag' with `_flag'.
903 2000-10-02 Akim Demaille <akim@epita.fr>
905 Also test parse error messages, including with YYERROR_VERBOSE.
907 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
909 Use it to check the computations.
910 Use it to check `nonassoc' is honored.
911 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
913 (_AT_CHECK_CALC): Adjust to this option.
914 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
916 2000-10-02 Akim Demaille <akim@epita.fr>
918 Test also `--verbose', `--defines' and `--name-prefix'. Testing
919 the latter demonstrates a flaw in the handling of non debugging
920 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
921 was used in order to simplify:
937 unfortunately this leads to a CPP conflict when
938 `--name-prefix=foo' is used since it produces `#define yydebug
941 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
942 (YYDPRINTF): New macro.
944 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
946 Also test `--verbose', `--defines' and `--name-prefix'.
948 2000-10-02 Akim Demaille <akim@epita.fr>
950 Improve the readability of the produced parsers.
952 * src/bison.s1: Formatting changes.
953 Improve the comment related to the `$' mark.
954 (yydefault): Don't fall through to `yyresume': `goto' there.
955 * src/output.c (output_parser): When the `$' is met, skip the end
957 New variable, `number_of_dollar_signs', to check there's exactly
958 one `$' in the parser skeleton.
960 2000-10-02 Akim Demaille <akim@epita.fr>
962 * lib/xstrdup.c: New file, from the fileutils.
963 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
964 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
965 instead of strlen + xmalloc + strcpy.
966 * src/symtab.c (copys): Remove, use xstrdup instead.
968 2000-10-02 Akim Demaille <akim@epita.fr>
970 * src/gram.h (associativity): New enum type which replaces the
971 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
972 `right_assoc', `left_assoc' and `non_assoc'.
973 Adjust all dependencies.
974 * src/reader.c: Formatting changes.
975 (LTYPESTR): Don't define it, use it as a literal in
976 `reader_output_yylsp'.
977 * src/symtab.h (symbol_class): New enum type which replaces the
978 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
979 `sunknown', `stoken and `snterm'.
981 2000-10-02 Akim Demaille <akim@epita.fr>
983 * src/getargs.c (fixed_outfiles): Rename as...
984 (yaccflag): for consistency and accuracy.
987 2000-10-02 Akim Demaille <akim@epita.fr>
989 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
990 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
991 difficult and introduced a lot of core dump. It turns out that
992 Bison used an implementation of `xmalloc' based on `calloc', and
993 at various places it does depend upon the initialization to 0. I
994 have not tried to isolate the pertinent places, and all the former
995 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
996 someone should address this issue.
998 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
999 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1001 Adjust dependencies.
1002 * src/warshall.h: New file.
1005 2000-10-02 Akim Demaille <akim@epita.fr>
1007 Various anti-`extern in *.c' changes.
1009 * src/system.h: Include `assert.h'.
1011 2000-10-02 Akim Demaille <akim@epita.fr>
1013 * src/state.h (nstates, final_state, first_state, first_shift)
1014 (first_reduction): Move their exportation from here...
1015 * src/LR0.h: to here.
1016 Adjust dependencies.
1017 * src/getargs.c (statisticsflag): New variable.
1018 Add support for `--statistics'.
1019 Adjust dependencies.
1021 Remove a lot of now useless `extern' statements in most files.
1023 2000-10-02 Akim Demaille <akim@epita.fr>
1025 * src/LR0.h: New file.
1028 2000-10-02 Akim Demaille <akim@epita.fr>
1030 * src/print.h: New file.
1032 * src/print.c: Formatting and ordering changes.
1033 (verbose, terse): Replace with...
1034 (print_results): this new function.
1035 Adjust dependencies.
1037 2000-10-02 Akim Demaille <akim@epita.fr>
1039 * src/conflicts.c (conflict_report): New function.
1040 (conflict_log, verbose_conflict_log): Replace with...
1041 (print_conflicts): this function.
1042 Adjust dependencies.
1043 * src/conflicts.h: New file.
1044 Propagate its inclusion.
1046 2000-10-02 Akim Demaille <akim@epita.fr>
1048 * src/nullable.h: New file.
1049 Propagate its inclusion.
1050 * src/nullable.c: Formatting changes.
1052 2000-10-02 Akim Demaille <akim@epita.fr>
1054 * src/reduce.h: New file.
1055 Propagate its inclusion.
1056 * src/reduce.c: Topological sort and other formatting changes.
1057 (bool, TRUE, FALSE): Move their definition to...
1058 * src/system.h: here.
1060 2000-10-02 Akim Demaille <akim@epita.fr>
1062 * src/files.c: Formatting changes.
1063 (tryopen, tryclose, openfiles): Rename as...
1064 (xfopen, xfclose, open_files): this.
1065 (stringappend): static.
1066 * src/files.h: Complete the list of exported symbols.
1069 2000-10-02 Akim Demaille <akim@epita.fr>
1071 * src/reader.h: New file.
1072 Propagate its use instead of tedious list of `extern' and
1074 * src/reader.c: Formatting changes, topological sort,
1077 2000-10-02 Akim Demaille <akim@epita.fr>
1079 * src/lex.h: Prototype `lex.c' exported functions.
1080 * src/reader.c: Adjust.
1081 * src/lex.c: Formatting changes.
1082 (safegetc): Rename as...
1085 2000-10-02 Akim Demaille <akim@epita.fr>
1087 * src/lalr.h: New file.
1088 Propagate its inclusion instead of prototypes and `extern'.
1089 * src/lalr.c: Formatting changes, topological sorting etc.
1091 2000-10-02 Akim Demaille <akim@epita.fr>
1093 * src/output.c (token_actions): Introduce a temporary array,
1094 YYDEFACT, that makes it possible for this function to use
1097 2000-10-02 Akim Demaille <akim@epita.fr>
1099 `user_toknums' is output as a `short[]' in `output.c', while it is
1100 defined as a `int[]' in `reader.c'. For consistency with the
1101 other output tables, `user_toknums' is now defined as a table of
1104 * src/reader.c (user_toknums): Be a short table instead of an int
1106 Adjust dependencies.
1108 Factor the short table outputs.
1110 * src/output.c (output_short_table): New function.
1111 * src/output.c (output_gram, output_stos, output_rule_data)
1112 (output_base, output_table, output_check): Use it.
1114 2000-10-02 Akim Demaille <akim@epita.fr>
1116 * src/output.c (output): Topological sort of the functions, in
1117 order to get rid of the `static' prototypes.
1118 No longer use `register'.
1119 * src/output.h: New file.
1120 Propagate its inclusion in files explicitly prototyping functions
1123 2000-09-21 Akim Demaille <akim@epita.fr>
1125 * src/atgeneral.m4: Update from Autoconf.
1127 2000-09-21 Akim Demaille <akim@epita.fr>
1129 * src/closure.h: New file.
1130 * src/closure.c: Formatting changes, topological sort over the
1131 functions, use of closure.h.
1132 (initialize_closure, finalize_closure): Rename as...
1133 (new_closure, free_closure): these. Adjust dependencies.
1134 * src/LR0.c: Formatting changes, topological sort, use of
1136 (initialize_states): Rename as...
1138 * src/Makefile.am (noinst_HEADERS): Adjust.
1140 2000-09-20 Akim Demaille <akim@epita.fr>
1142 * src/acconfig.h: Don't protect config.h against multiple
1144 Don't define PARAMS.
1145 * src/system.h: Define PARAMS.
1146 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1147 purpose of config.h. system.h must not try to fix wrong
1148 definitions in config.h.
1150 2000-09-20 Akim Demaille <akim@epita.fr>
1152 * src/derives.h: New file.
1153 * src/main.c, src/derives.h: Use it.
1155 * src/Makefile.am (noinst_HEADERS): Adjust.
1157 2000-09-20 Akim Demaille <akim@epita.fr>
1159 * tests/atgeneral.m4: Update from Autoconf.
1160 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1161 (AT_CHECK_CALC): New macros.
1162 Use these macros to test bison with options `', `--raw',
1163 `--debug', `--yacc', `--yacc --debug'.
1165 2000-09-19 Akim Demaille <akim@epita.fr>
1167 * src/output.c: Formatting changes.
1168 * src/machine.h: Remove, leaving its contents in...
1169 * src/system.h: here.
1171 Adjust all dependencies on stdio.h and machine.h.
1172 * src/getargs.h: New file.
1173 Let all `extern' declarations about getargs.c be replaced with
1174 inclusion of `getargs.h'.
1175 * src/Makefile.am (noinst_HEADERS): Adjust.
1177 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1179 (yyerror): Returns void, not int.
1180 * doc/bison.texinfo: Formatting changes.
1182 2000-09-19 Akim Demaille <akim@epita.fr>
1184 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1187 2000-09-18 Akim Demaille <akim@epita.fr>
1189 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1190 * src/Makefile.am (INCLUDES): Don't.
1191 Be ready to fetch headers in lib/.
1193 2000-09-18 Akim Demaille <akim@epita.fr>
1195 * doc/bison.texinfo: Update the copyright.
1196 ANSIfy and GNUify the examples.
1197 Remove the old menu.
1199 2000-09-18 Akim Demaille <akim@epita.fr>
1201 First set of tests: use the `calc' example from the documentation.
1203 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1204 is defined only when YYDEBUG is.
1205 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1206 * src/files.c (tryopen, tryclose): Formatting changes.
1207 Move to the top and be static.
1208 * src/reader.c (read_signed_integer): Likewise.
1209 * tests/calc.m4: New file.
1210 * Makefile.am, suite.m4: Adjust.
1211 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1213 2000-09-18 Akim Demaille <akim@epita.fr>
1215 Add support for an Autotest test suite for Bison.
1217 * m4/m4.m4, m4/atconfig.m4: New files.
1218 * m4/Makefile.am (EXTRA_DIST): Adjust.
1219 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1221 * src/getargs.c: Display a more standard --version message.
1222 * src/reader.c (reader): Formatting changes.
1223 No longer depend upon VERSION_STRING.
1224 * configure.in: No longer use `dnl'.
1225 Set up the test suite and the new directory `tests/.
1226 (VERSION_STRING): Remove.
1228 2000-04-14 Akim Demaille <akim@epita.fr>
1230 * src/reader.c (copy_comment2): New function, same as former
1231 `copy_comment', but outputs into two FILE *.
1232 (copy_comment): Use it.
1233 (parse_union_decl): Use it.
1234 (get_type, parse_start_decl): Use the same `invalid' message.
1235 (parse_start_decl, parse_union_decl): Use the same `multiple'
1237 (parse_union_decl, copy_guard, copy_action): Use the same
1238 `unmatched' message.
1239 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1241 2000-03-31 Akim Demaille <akim@epita.fr>
1243 * src/files.c (tryopen, tryclose): Move to the top.
1246 2000-03-31 Akim Demaille <akim@epita.fr>
1248 * src/main.c (main): Don't call `done', exit does it.
1250 2000-03-31 Akim Demaille <akim@epita.fr>
1252 * allocate.c: s/return (foo)/return foo/.
1255 * output.c: Likewise.
1256 * reader.c: Likewise.
1257 * symtab.c: Likewise.
1258 * vmsgetargs.c: Likewise.
1260 2000-03-31 Akim Demaille <akim@epita.fr>
1262 Clean up the error reporting functions.
1264 * src/report.c: New file.
1265 * src/report.h: Likewise.
1266 * src/Makefile.am: Adjust.
1267 * m4/error.m4: New file.
1268 * m4/Makefile.am: Adjust.
1269 * configure.in (jm_PREREQ_ERROR): Call it.
1270 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1272 (fatal, fatals): Remove. All callers use complain.c::fatal.
1273 (warn, warni, warns, warnss, warnss): Remove. All callers use
1274 complain.c::complain.
1275 (toomany): Remove, use fatal instead.
1276 * src/files.c (done): No argument, use complain_message_count.
1277 * src/main.c (main): Register `done' to `atexit'.
1279 * src/getargs.c (usage): More `fputs', less `fprintf'.
1281 2000-03-28 Akim Demaille <akim@epita.fr>
1283 * lib/: New directory.
1284 * Makefile.am (SUBDIRS): Adjust.
1285 * configure.in: Adjust.
1286 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1288 * src/alloca.c: Moved to lib/.
1289 * src/getopt.c: Likewise.
1290 * src/getopt1.c: Likewise.
1291 * src/getopt.h: Likewise.
1292 * src/ansi2knr.c: Likewise.
1293 * src/ansi2knr.1: Likewise.
1294 * src/Makefile.am: Adjust.
1295 * lib/Makefile.am: New file.
1297 2000-03-28 Akim Demaille <akim@epita.fr>
1299 * src/getargs.c (usage): Refresh the help message.
1301 2000-03-17 Akim Demaille <akim@epita.fr>
1303 * src/getopt1.c: Updated from textutils 2.0e
1304 * src/getopt.c: Likewise.
1305 * src/getopt.h: Likewise.
1307 2000-03-17 Akim Demaille <akim@epita.fr>
1309 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1310 the file name, not the whole `#line LINE FILE'.
1312 2000-03-17 Akim Demaille <akim@epita.fr>
1314 On syntax errors, report the token on which we choked.
1316 * src/bison.s1 (yyparse): In the label yyerrlab, when
1317 YYERROR_VERBOSE, add yychar in msg.
1319 2000-03-17 Akim Demaille <akim@epita.fr>
1321 * src/reader.c (copy_at): New function.
1322 (copy_guard): Use it.
1323 (copy_action): Use it.
1325 2000-03-17 Akim Demaille <akim@epita.fr>
1327 Be kind to translators, save some useless translations.
1329 * src/main.c (banner): New function.
1330 (fatal_banner): Use it.
1331 (warn_banner): Use it.
1333 2000-03-17 Akim Demaille <akim@epita.fr>
1335 * src/reader.c (copy_definition): Use copy_string and
1336 copy_comment. Removed now unused `match', `ended',
1338 (copy_comment, copy_string): Moved, to be visible from
1341 2000-03-17 Akim Demaille <akim@epita.fr>
1343 * src/reader.c (copy_string): Declare `static inline'. No
1344 problems with inline, since it is checked by configure.
1345 (copy_comment): Likewise.
1347 2000-03-17 Akim Demaille <akim@epita.fr>
1349 * src/reader.c (packsymbols): Formatting changes.
1351 2000-03-17 Akim Demaille <akim@epita.fr>
1353 * src/reader.c (copy_comment): New function, factored out from:
1354 (copy_action): Use it. Removed now unused `match', `ended',
1356 (copy_guard): Likewise.
1358 2000-03-17 Akim Demaille <akim@epita.fr>
1360 * src/reader.c (copy_string): New function, factored out from:
1361 (copy_action): Use it.
1362 (copy_guard): Likewise.
1364 2000-03-17 Akim Demaille <akim@epita.fr>
1366 Change the handling of @s so that they behave exactly like $s.
1367 There is now a pseudo variable @$ (readble and writable), location
1368 of the lhs of the rule (by default ranging from the location of
1369 the first symbol of the rhs, to the location of the last symbol,
1370 or, if the rhs is empty, YYLLOC).
1372 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1374 (yyparse): When providing a default semantic action, provide a
1375 default location action.
1376 (after the $): No longer change `*YYLSP', just stack YYLOC the
1377 same way you stack YYVAL.
1378 * src/reader.c (read_declarations): Use warns.
1379 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1380 (copy_action, case '@'): Likewise.
1381 Use a standard error message, to save useless work from
1384 2000-03-17 Akim Demaille <akim@epita.fr>
1386 * src/bison.s1: Formatting and cosmetics changes.
1387 * src/reader.c: Likewise.
1388 Update the Copyright notice.
1390 2000-03-17 Akim Demaille <akim@epita.fr>
1392 * src/bison.s1 (#line): All set to `#line' only, since the
1393 Makefile now handles them.
1395 2000-03-16 Akim Demaille <akim@epita.fr>
1397 * src/output.c (output_rule_data): Output the documentation of
1399 (Copyright notice): Update.
1402 2000-03-16 Akim Demaille <akim@epita.fr>
1404 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1405 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1406 One `#if YYDEBUG' remains, since it uses variables which are
1407 defined only if `YYDEBUG != 0'.
1409 2000-03-16 Akim Demaille <akim@epita.fr>
1411 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1412 and related variables so that the similarities are highlighted.
1414 2000-03-16 Akim Demaille <akim@epita.fr>
1416 * src/bison.s1: Properly indent CPP directives.
1418 2000-03-16 Akim Demaille <akim@epita.fr>
1420 * src/bison.s1: Properly indent the `alloca' CPP section.
1422 2000-03-16 Akim Demaille <akim@epita.fr>
1424 Do not hard code values of directories in `configure.in'.
1425 Update the `configure' tool chain.
1427 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1429 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1430 (AC_OUTPUT): Add m4/Makefile.
1431 Bump to bison 1.28a, 1.29 has never been released.
1432 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1433 handled via src/Makefile.am.
1434 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1435 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1437 * Makefile.am (SUBDIRS): Add m4.
1438 (ACLOCAL_AM_FLAGS): New variable.
1439 (AUTOMAKE_OPTIONS): Add check-news.
1440 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1441 the proper line number and file name.
1442 (DEFS): Propagate the location of bison library files and of the
1444 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1446 * acinclude.m4: Remove, replaced by the directory m4.
1447 * m4/Makefile.am (EXTRA_DIST): New variable.
1448 * m4/gettext.m4: New file, from the fileutils.
1449 * m4/lcmessage.m4: Likewise
1450 * m4/progtest.m4: Likewise.
1451 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1453 2000-03-10 Akim Demaille <akim@epita.fr>
1456 Formatting changes of various comments.
1457 Respect the GNU coding standards at various places.
1458 Don't use `_()' when no translation is needed.
1460 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1463 OS/2 honors TMPDIR environment variable.
1465 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1467 * doc/bison.texinfo: Tweaked spelling and grammar.
1469 Removed reference to price of printed copy.
1470 Mention BISON_SIMPLE and BISON_HAIRY.
1472 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1474 * configure.in, NEWS:
1475 Bison 1.29 released.
1477 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1479 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1480 Added reference card.
1482 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1484 * po/ru.po: Added Russian translation.
1486 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1488 * configure.in: Added Russian translation.
1490 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1492 * configure.in, NEWS, README:
1493 Released version 1.28.
1495 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1498 Squashed redefinition warning on some systems.
1500 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1501 Have configure build version string instead of relying on ANSI string
1504 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1506 * po/POTFILES.in: Got rid of version.c.
1508 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1510 * acconfig.h, configure.in:
1511 Have configure build version string instead of relying on ANSI string
1514 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1517 Dropped mention of `+' for long-named options.
1519 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1521 * src/files.c: Added <unistd.h> for unlink().
1523 * src/Makefile.am, src/system.h:
1526 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1528 * README: Added a FAQ list.
1530 * configure.in, acconfig.h:
1533 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1535 * doc/FAQ, doc/Makefile.am:
1538 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1540 * src/alloc.h, src/symtab.h, src/version.c:
1541 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1543 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1545 * src/.cvsignore, src/Makefile.am:
1546 Reorganized: sources in `src', documentation in `doc'.
1548 * src/lex.c (literalchar):
1549 fixed the code for escaping double quotes (thanks
1552 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1554 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1555 Adjusted paths to reflect directory reorganization.
1557 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1559 * doc/.cvsignore, doc/Makefile.am:
1560 Reorganized: sources in `src', documentation in `doc'.
1562 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1565 Updated AC_INIT file to reflect directory reorganization.
1567 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1568 Reorganized: sources in `src', documentation in `doc'.
1570 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1573 Don't declare calloc() and realloc() if not necessary.
1575 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1577 * configure.in, acconfig.h, acinclude.m4:
1578 Don't declare calloc() and realloc() if not necessary.
1580 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1582 * po/.cvsignore: Added i18n support.
1584 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1586 * acconfig.h, configure.in, Makefile.am:
1589 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1591 * src/bison.s1: Fixed #line numbers.
1593 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1595 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1596 Added PO files from Translation Project.
1598 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1601 Added support for non-ANSI compilers (ansi2knr).
1603 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1605 * configure.in: Bumped version number to 1.27.
1608 Added `bison.simple' to list of files removed by `make distclean'.
1610 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1612 * src/files.c, src/files.h:
1613 Defined locations of parser files in config.h instead of Makefile.
1615 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1617 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1618 Defined locations of parser files in config.h instead of Makefile.
1620 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1623 Removed inappropriate use of $< macro.
1625 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1627 * po/Makefile.in.in, po/POTFILES.in:
1628 Add `po' directory skeleton.
1630 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1632 * README: Document help-bison list.
1634 * configure.in: Add check for mkstemp().
1636 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1638 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1639 Hush a few compiler warnings.
1642 Add tryclose(), which verifies that fclose was successful.
1643 Hush a couple of compiler warnings.
1645 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1647 * Makefile.am, OChangeLog:
1648 ChangeLog is now automatically generated. Include the old version as
1651 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1653 * 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:
1656 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1658 * doc/bison.texinfo: Fix formatting glitch.
1660 * doc/bison.texinfo: Update FSF address.
1662 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1664 * acconfig.h: Update FSF address.
1666 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1669 Don't define PACKAGE here, since config.h defines it.
1671 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1673 * src/reader.c: Update copyright date.
1676 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1677 favor of output directly to stderr (avoids buffer overruns).
1679 * src/reader.c: Some checks for premature EOF.
1681 * 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:
1682 Use prototypes if the compiler understands them.
1684 * src/files.c: Honor TMPDIR on Unix hosts.
1685 Use prototypes if the compiler understands them.
1688 Fix a couple of buffer overrun bugs.
1689 Use prototypes if the compiler understands them.
1691 * src/system.h: Include unistd.h and ctype.h.
1692 Use #ifdef instead of #if for NLS symbols.
1694 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1696 * doc/bison.texinfo:
1697 Delete comment "consider using @set for edition number, etc..." since
1698 we now are doing so.
1700 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1703 Use prototypes if the compiler understands them.
1705 * NEWS: Document 1.26 highlights.
1707 * Makefile.am: Require Automake 1.3 or later.
1710 Use prototypes if the compiler understands them.
1712 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1715 Use VERSION symbol from automake for version number.
1717 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1719 * acconfig.h, configure.in, version.cin:
1720 Use VERSION symbol from automake for version number.
1722 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1725 Distribute original version of simple parser (bison.s1), not built
1726 version (bison.simple).
1728 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1730 * doc/bison.texinfo: Add info dir entry.
1732 * doc/bison.texinfo:
1733 Let automake put version number into documentation.
1735 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1737 * src/bison.cld, src/build.com, src/vmshlp.mar:
1738 Add non-RCS files from /gd/gnu/bison.
1740 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1743 Document the BISON_HAIRY and BISON_SIMPLE variables.
1745 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1747 * src/version.c: Build version.c automatically.
1750 Fix token numbering (used to start at 258, not 257).
1752 * src/system.h: Include config.h.
1754 * src/getargs.c: Update bug report address.
1756 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1757 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1759 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1762 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1764 * configure.in, version.cin:
1765 Build version.c automatically.
1767 * AUTHORS: Add AUTHORS file.
1769 * README: Update bug report address.
1772 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1774 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1777 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1779 * doc/bison.texinfo: Clean up some formatting.
1781 1998-05-05 Richard Stallman <rms@gnu.org>
1783 * doc/bison.texinfo:
1784 Explain better why to make a pure parser.
1786 1998-01-05 Richard Stallman <rms@gnu.org>
1788 * src/files.c (openfiles):
1789 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1790 find a temporary directory, if possible. Do not unlink files while
1793 1997-08-25 Richard Stallman <rms@gnu.org>
1795 * src/reader.c (stack_offset;):
1796 Change some warni to warns.
1798 * src/lex.c (literalchar): Use warns, not warni.
1800 1997-06-28 Richard Stallman <rms@gnu.org>
1802 * src/bison.s1: Add a Bison version comment.
1804 * src/main.c (fatal, warn, berror):
1807 1997-06-28 Richard Stallman <rms@gnu.org>
1809 * Makefile.in (bison_version): New variable.
1810 (dist): Use that variable.
1811 (bison.s1): Substitute the Bison version into bison.simple.
1813 * bison.simple: Add a Bison version comment.
1815 1997-06-18 Richard Stallman <rms@gnu.org>
1817 * src/main.c (fatal, warn, berror):
1818 Make error messages standard.
1819 (toomany): Improve error message text.
1821 * 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:
1822 new.h renamed to alloc.h.
1824 1997-06-18 Richard Stallman <rms@gnu.org>
1826 * Makefile.in: new.h renamed to alloc.h.
1828 1997-05-24 Richard Stallman <rms@gnu.org>
1830 * src/lex.c (literalchar):
1831 Fix the code for escaping \, " and '.
1833 (lex): Avoid trouble when there are many chars
1834 to discard in a char literal with just several chars in it.
1836 1997-05-17 Richard Stallman <rms@gnu.org>
1839 Use malloc, if using alloca is troublesome.
1840 (YYSTACK_USE_ALLOCA): New flag macro.
1841 Define it for some systems and compilers.
1842 (YYSTACK_ALLOC): New macro.
1843 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1844 If it was malloc'd, free it.
1846 1997-05-17 Richard Stallman <rms@gnu.org>
1849 Use malloc, if using alloca is troublesome.
1850 (YYSTACK_USE_ALLOCA): New flag macro.
1851 Define it for some systems and compilers.
1852 (YYSTACK_ALLOC): New macro.
1853 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1854 If it was malloc'd, free it.
1856 1997-04-23 Richard Stallman <rms@gnu.org>
1859 (alloca) [__hpux]: Always define as __builtin_alloca.
1861 1997-04-23 Richard Stallman <rms@gnu.org>
1864 (alloca) [__hpux]: Always define as __builtin_alloca.
1866 1997-04-22 Richard Stallman <rms@gnu.org>
1869 [__hpux]: Include alloca.h (right for HPUX 10)
1870 instead of declaring alloca (right for HPUX 9).
1872 * src/bison.s1 (__yy_memcpy):
1873 Declare arg `count' as unsigned int.
1874 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1876 1997-04-22 Richard Stallman <rms@gnu.org>
1879 [__hpux]: Include alloca.h (right for HPUX 10)
1880 instead of declaring alloca (right for HPUX 9).
1882 * bison.simple (__yy_memcpy):
1883 Declare arg `count' as unsigned int.
1884 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1886 1997-01-03 Richard Stallman <rms@gnu.org>
1888 * src/allocate.c: [__STDC__ or _MSC_VER]:
1889 Declare calloc and realloc to return void *.
1891 1997-01-02 Richard Stallman <rms@gnu.org>
1894 [_MSC_VER]: Include stdlib.h and process.h.
1895 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1897 * src/main.c (main): Return FAILURE as a value.
1898 (printable_version): Declare arg as int, not char.
1900 1997-01-02 Richard Stallman <rms@gnu.org>
1902 * Makefile.in (dist):
1903 Explicitly check for symlinks, and copy them.
1905 1996-12-19 Richard Stallman <rms@gnu.org>
1908 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1910 1996-12-18 Paul Eggert <eggert@gnu.org>
1912 * src/bison.s1 (yyparse):
1913 If __GNUC__ and YYPARSE_PARAM are both defined,
1914 declare yyparse to have a void * argument.
1916 1996-12-18 Paul Eggert <eggert@gnu.org>
1918 * bison.simple (yyparse):
1919 If __GNUC__ and YYPARSE_PARAM are both defined,
1920 declare yyparse to have a void * argument.
1922 1996-12-17 Richard Stallman <rms@gnu.org>
1924 * src/reduce.c (nbits): Add some casts.
1926 1996-08-12 Richard Stallman <rms@gnu.org>
1928 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1930 1996-08-12 Richard Stallman <rms@gnu.org>
1932 * bison.simple: Test _MSDOS as well as _MSDOS_.
1934 1996-07-31 Richard Stallman <rms@gnu.org>
1937 [__sun && __i386]: Include alloca.h.
1939 1996-07-31 Richard Stallman <rms@gnu.org>
1942 [__sun && __i386]: Include alloca.h.
1944 1996-07-30 Richard Stallman <rms@gnu.org>
1946 * src/bison.s1: Comment change.
1948 * src/bison.s1: Test _MSDOS_, not MSDOS.
1950 1996-07-30 Richard Stallman <rms@gnu.org>
1952 * bison.simple: Comment change.
1954 * bison.simple: Test _MSDOS_, not MSDOS.
1956 1996-06-01 Richard Stallman <rms@gnu.org>
1958 * 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:
1959 Insert `_' macro around many string constants.
1962 Insert `_' macro around many string constants.
1964 (main): Call setlocale, bindtextdomain and textdomain.
1966 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1967 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1968 [ENABLE_NLS]: Include libintl.h.
1969 [ENABLE_NLS] (gettext): Define.
1970 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1971 (N_, PACKAGE, LOCALEDIR): New macros.
1973 1996-06-01 Richard Stallman <rms@gnu.org>
1975 * POTFILES.in: New file.
1977 * Makefile.in (allocate.o):
1978 Define target explicitly.
1980 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1981 (LDFLAGS): Set to @LDFLAGS@.
1982 (configure): Run autoconf only if preceding `cd' succeeds.
1983 (bison.s1): Redirect output to temporary file then move the
1984 temporary to the target, rather than redirecting directly to bison.s1.
1985 (clean): Remove config.status and config.log.
1986 (distclean): Don't remove config.status here.
1988 1996-05-12 Richard Stallman <rms@gnu.org>
1991 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1993 1996-05-12 Richard Stallman <rms@gnu.org>
1996 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1998 1996-05-11 Richard Stallman <rms@gnu.org>
2000 * src/bison.s1 (__yy_memcpy):
2001 Really reorder the args, as was supposedly done on Feb 14 1995.
2002 (yyparse): Calls changed accordingly.
2004 1996-05-11 Richard Stallman <rms@gnu.org>
2006 * Makefile.in (dist): Don't use $(srcdir).
2008 * bison.simple (__yy_memcpy):
2009 Really reorder the args, as was supposedly done on Feb 14 1995.
2010 (yyparse): Calls changed accordingly.
2012 1996-01-27 Richard Stallman <rms@gnu.org>
2014 * src/output.c (output_rule_data):
2015 Test YYERROR_VERBOSE in the conditional
2016 around the definition of ttyname.
2018 1995-12-29 Richard Stallman <rms@gnu.org>
2021 Fix line numbers in #line commands.
2023 1995-12-29 Richard Stallman <rms@gnu.org>
2026 Fix line numbers in #line commands.
2028 1995-12-27 Richard Stallman <rms@gnu.org>
2030 * src/bison.s1 (YYPARSE_PARAM_DECL):
2031 In C++, make it always null.
2032 (YYPARSE_PARAM_ARG): New macro.
2033 (yyparse): Use YYPARSE_PARAM_ARG.
2035 1995-12-27 Richard Stallman <rms@gnu.org>
2037 * bison.simple (YYPARSE_PARAM_DECL):
2038 In C++, make it always null.
2039 (YYPARSE_PARAM_ARG): New macro.
2040 (yyparse): Use YYPARSE_PARAM_ARG.
2042 1995-11-29 Richard Stallman <rms@gnu.org>
2044 * doc/bison.texinfo:
2045 Describe literal string tokens, %raw, %no_lines, %token_table.
2047 1995-11-29 Daniel Hagerty <hag@gnu.org>
2049 * doc/bison.texinfo: Fixed update date
2051 1995-10-16 Richard Stallman <rms@gnu.org>
2053 * src/version.c: Version 1.25.
2055 1995-10-16 Richard Stallman <rms@gnu.org>
2057 * NEWS: *** empty log message ***
2059 1995-10-16 Richard Stallman <rms@gnu.org>
2061 * doc/bison.1, doc/bison.rnh:
2064 1995-10-15 Richard Stallman <rms@gnu.org>
2066 * src/vmsgetargs.c, src/getargs.c:
2067 Added -n, -k, and -raw switches.
2068 (noparserflag, toknumflag, rawtoknumflag): New variables.
2070 * src/symtab.h (SALIAS):
2071 New #define for adding aliases to %token.
2072 (struct bucket): Added `alias' field.
2074 * src/reduce.c (reduce_grammar):
2075 Revise error message.
2076 (print_notices): Remove final `.' from error message.
2078 * src/reader.c (reader_output_yylsp):
2080 (readgram): Use `#if 0' around code that accepted %command
2081 inside grammar rules: The documentation doesn't allow it,
2082 and it will fail since the %command processors scan for the next %.
2083 (parse_token_decl): Extended the %token
2084 declaration to allow a multi-character symbol as an alias.
2085 (parse_thong_decl): New function.
2086 (read_declarations): Added %thong declarations.
2087 (read_declarations): Handle NOOP to deal with allowing
2088 % declarations as another means to specify the flags.
2089 (readgram): Allow %prec prior to semantics embedded in a rule.
2090 (skip_to_char, read_declarations, copy_definition)
2091 (parse_token_decl, parse_start_decl, parse_type_decl)
2092 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2093 (get_type_name, copy_guard, copy_action, readgram)
2094 (get_type, packsymbols): Revised most error messages.
2095 Changed `fatal' to `warnxxx' to avoid aborting for error.
2096 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2097 (read_declarations): Improve the error message for
2098 an invalid character. Do not abort.
2099 (read_declarations, copy_guard, copy_action): Use
2100 printable_version to avoid unprintable characters in printed output.
2101 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2102 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2103 Allow the type of a non-terminal can be given
2104 more than once, as long as all specifications give the same type.
2107 (output_headers, output_trailers, output, output_gram)
2108 (output_rule_data): Implement noparserflag variable.
2109 Implement toknumflag variable.
2110 (output): Call reader_output_yylsp to output LTYPESTR.
2112 * src/main.c (main):
2113 If reader sees an error, don't process the grammar.
2114 (fatals): Updated to not use VARARGS1.
2115 (printable_version, int_to_string, warn, warni, warns, warnss)
2116 (warnsss): New error reporting functions. Avoid abort for error.
2119 Added THONG and NOOP for alias processing.
2120 Added SETOPT for the new code that allows setting options with %flags.
2123 Include getopt.h. Add some extern decls.
2124 (safegetc): New function to deal with EOF gracefully.
2125 (literalchar); new function to deal with reading \ escapes.
2126 (lex): Use literalchar.
2127 (lex): Implemented "..." tokens.
2128 (literalchar, lex, parse_percent_token): Made tokenbuffer
2129 always contain the token. This includes growing the token
2130 buffer while reading an integer.
2131 (parse_percent_token): Replaced if-else statement with percent_table.
2132 (parse_percent_token): Added % declarations as another
2133 way to specify the flags -n, -l, and -r. Also added hooks for
2134 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2135 major changes to files.c.
2136 (lex) Retain in the incoming stream a character following
2138 (skip_white_space, lex): Revised most error messages
2139 and changed fatal to warn to avoid aborting.
2140 (percent_table): Added %thong declarations.
2142 * src/gram.h: Comment changes.
2144 * src/files.c (openfiles, open_extra_files, done):
2146 and actfile file. Handle noparserflag. Both for -n switch.
2148 * src/conflicts.c (resolve_sr_conflict):
2149 Remove use of alloca.
2151 1995-06-01 Jim Meyering <meyering@gnu.org>
2153 * doc/bison.texinfo: *** empty log message ***
2155 1995-05-06 Richard Stallman <rms@gnu.org>
2157 * src/bison.s1: Comment change.
2159 1995-05-06 Richard Stallman <rms@gnu.org>
2161 * bison.simple: Comment change.
2163 1995-05-03 Richard Stallman <rms@gnu.org>
2165 * src/version.c: Version now 1.24.
2167 * src/bison.s1: Change distribution terms.
2169 * src/version.c: Version now 1.23.
2171 1995-05-03 Richard Stallman <rms@gnu.org>
2173 * doc/bison.texinfo:
2174 Rewrite "Conditions for Using Bison".
2175 Update version to 1.24.
2177 1995-05-03 Richard Stallman <rms@gnu.org>
2179 * bison.simple: Change distribution terms.
2181 1995-02-23 Richard Stallman <rms@gnu.org>
2183 * src/files.c: Test __VMS_POSIX as well as VMS.
2185 1995-02-14 Jim Meyering <meyering@gnu.org>
2187 * src/bison.s1 (__yy_memcpy):
2188 Renamed from __yy_bcopy to avoid
2189 confusion. Reverse FROM and TO arguments to be consistent with
2192 1995-02-14 Jim Meyering <meyering@gnu.org>
2194 * bison.simple (__yy_memcpy):
2195 Renamed from __yy_bcopy to avoid
2196 confusion. Reverse FROM and TO arguments to be consistent with
2199 1994-11-10 David J. MacKenzie <djm@gnu.org>
2205 * Makefile.in (DISTFILES): Include NEWS.
2207 * Makefile.in (DISTFILES):
2208 Include install-sh, not install.sh.
2210 * configure.in: Update to Autoconf v2 macro names.
2212 1994-10-05 David J. MacKenzie <djm@gnu.org>
2214 * Makefile.in: fix typo
2216 * Makefile.in (prefix, exec_prefix):
2217 Let configure set them.
2219 1994-09-28 David J. MacKenzie <djm@gnu.org>
2221 * Makefile.in: Set datadir to $(prefix)/share.
2223 1994-09-15 Richard Stallman <rms@gnu.org>
2226 Update copyright notice and GPL version.
2228 1994-09-15 Richard Stallman <rms@gnu.org>
2231 Update copyright notice and GPL version.
2233 1994-07-12 Richard Stallman <rms@gnu.org>
2235 * src/reduce.c, src/reader.c:
2238 1994-05-05 David J. MacKenzie <djm@gnu.org>
2240 * Makefile.in: entered into RCS
2242 1994-03-26 Richard Stallman <rms@gnu.org>
2244 * src/bison.s1: entered into RCS
2246 1994-03-26 Richard Stallman <rms@gnu.org>
2248 * bison.simple: entered into RCS
2250 1994-03-25 Richard Stallman <rms@gnu.org>
2252 * src/main.c: entered into RCS
2254 1994-03-24 Richard Stallman <rms@gnu.org>
2256 * src/conflicts.c: entered into RCS
2258 1994-01-02 Richard Stallman <rms@gnu.org>
2260 * Makefile.in: *** empty log message ***
2262 1993-11-21 Richard Stallman <rms@gnu.org>
2264 * src/bison.s1: *** empty log message ***
2266 1993-11-21 Richard Stallman <rms@gnu.org>
2268 * doc/bison.texinfo: entered into RCS
2270 * doc/bison.texinfo: *** empty log message ***
2272 1993-11-21 Richard Stallman <rms@gnu.org>
2274 * bison.simple: *** empty log message ***
2276 1993-10-25 David J. MacKenzie <djm@gnu.org>
2278 * doc/bison.texinfo: *** empty log message ***
2280 1993-10-19 Richard Stallman <rms@gnu.org>
2282 * src/bison.s1: *** empty log message ***
2284 1993-10-19 Richard Stallman <rms@gnu.org>
2286 * bison.simple: *** empty log message ***
2288 1993-10-14 Richard Stallman <rms@gnu.org>
2290 * src/bison.s1: *** empty log message ***
2292 1993-10-14 Richard Stallman <rms@gnu.org>
2294 * bison.simple: *** empty log message ***
2296 1993-09-14 David J. MacKenzie <djm@gnu.org>
2298 * doc/bison.texinfo: *** empty log message ***
2300 1993-09-13 Noah Friedman <friedman@gnu.org>
2302 * Makefile.in: *** empty log message ***
2304 1993-09-10 Richard Stallman <rms@gnu.org>
2306 * src/conflicts.c: *** empty log message ***
2308 * src/system.h: entered into RCS
2310 1993-09-10 Richard Stallman <rms@gnu.org>
2312 * doc/bison.1: entered into RCS
2314 1993-09-06 Noah Friedman <friedman@gnu.org>
2316 * src/version.c: entered into RCS
2318 1993-09-06 Noah Friedman <friedman@gnu.org>
2320 * Makefile.in: *** empty log message ***
2322 1993-07-30 David J. MacKenzie <djm@gnu.org>
2324 * Makefile.in: *** empty log message ***
2326 1993-07-24 Richard Stallman <rms@gnu.org>
2328 * src/bison.s1: *** empty log message ***
2330 1993-07-24 Richard Stallman <rms@gnu.org>
2332 * bison.simple: *** empty log message ***
2334 1993-07-08 David J. MacKenzie <djm@gnu.org>
2336 * Makefile.in: *** empty log message ***
2338 1993-07-04 Richard Stallman <rms@gnu.org>
2340 * src/bison.s1: *** empty log message ***
2342 1993-07-04 Richard Stallman <rms@gnu.org>
2344 * bison.simple: *** empty log message ***
2346 1993-06-26 David J. MacKenzie <djm@gnu.org>
2348 * src/getargs.c: entered into RCS
2350 1993-06-26 David J. MacKenzie <djm@gnu.org>
2352 * doc/bison.texinfo: *** empty log message ***
2354 * doc/bison.1: New file.
2356 1993-06-25 Richard Stallman <rms@gnu.org>
2358 * src/getargs.c: New file.
2360 1993-06-16 Richard Stallman <rms@gnu.org>
2362 * src/bison.s1: *** empty log message ***
2364 1993-06-16 Richard Stallman <rms@gnu.org>
2366 * bison.simple: *** empty log message ***
2368 1993-06-03 Richard Stallman <rms@gnu.org>
2370 * src/bison.s1: New file.
2372 1993-06-03 Richard Stallman <rms@gnu.org>
2374 * doc/bison.texinfo: *** empty log message ***
2376 1993-06-03 Richard Stallman <rms@gnu.org>
2378 * bison.simple: New file.
2380 1993-05-19 Richard Stallman <rms@gnu.org>
2382 * doc/bison.texinfo: New file.
2384 1993-05-07 Noah Friedman <friedman@gnu.org>
2386 * Makefile.in: *** empty log message ***
2388 1993-04-28 Noah Friedman <friedman@gnu.org>
2390 * src/reader.c: *** empty log message ***
2392 1993-04-23 Noah Friedman <friedman@gnu.org>
2394 * src/alloc.h: entered into RCS
2396 1993-04-20 David J. MacKenzie <djm@gnu.org>
2398 * src/version.c: *** empty log message ***
2400 * src/files.c, src/allocate.c:
2403 * src/reader.c: *** empty log message ***
2405 * src/lex.c: entered into RCS
2407 * src/conflicts.c: New file.
2409 * src/symtab.c: entered into RCS
2411 * src/alloc.h: New file.
2413 * src/LR0.c: entered into RCS
2415 1993-04-18 Noah Friedman <friedman@gnu.org>
2417 * src/reader.c: New file.
2419 * src/version.c: *** empty log message ***
2421 1993-04-18 Noah Friedman <friedman@gnu.org>
2423 * Makefile.in: *** empty log message ***
2425 1993-04-17 Noah Friedman <friedman@gnu.org>
2427 * Makefile.in: *** empty log message ***
2429 1993-04-15 Richard Stallman <rms@gnu.org>
2431 * src/main.c, src/files.c:
2434 1993-04-15 Noah Friedman <friedman@gnu.org>
2436 * configure.in: entered into RCS
2438 * configure.in: *** empty log message ***
2440 * configure.in: New file.
2442 1993-04-14 Richard Stallman <rms@gnu.org>
2444 * Makefile.in: New file.
2446 1993-04-13 Richard Stallman <rms@gnu.org>
2448 * src/version.c: New file.
2450 1993-03-25 Richard Stallman <rms@gnu.org>
2452 * src/output.c: entered into RCS
2454 1992-09-25 Richard Stallman <rms@gnu.org>
2456 * configure.bat: entered into RCS
2458 1992-06-22 Richard Stallman <rms@gnu.org>
2460 * src/vmsgetargs.c: entered into RCS
2462 1992-06-22 Richard Stallman <rms@gnu.org>
2464 * doc/bison.rnh: entered into RCS
2466 1992-04-20 David J. MacKenzie <djm@gnu.org>
2468 * README: entered into RCS
2470 1992-01-22 Richard Stallman <rms@gnu.org>
2472 * src/machine.h: entered into RCS
2474 1991-12-21 Richard Stallman <rms@gnu.org>
2476 * src/lalr.c, src/closure.c:
2479 1991-12-20 Richard Stallman <rms@gnu.org>
2481 * src/state.h: entered into RCS
2483 1991-12-18 Richard Stallman <rms@gnu.org>
2485 * src/print.c, src/nullable.c, src/derives.c:
2488 1991-11-03 David J. MacKenzie <djm@gnu.org>
2490 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2493 1988-09-09 Richard Stallman <rms@gnu.org>
2495 * src/bison.hairy: entered into RCS
2497 1987-12-16 Richard Stallman <rms@gnu.org>
2499 * REFERENCES: entered into RCS