1 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
3 * src/main.c: Include macrotab.h.
4 * src/macrotab.h (macro_entry_s): Constify fields.
5 Adjust functions prototypes.
6 * src/macrotab.c (macro_insert): Constify key and value.
7 (macro_find): Constify key.
8 (macro_insert): Include 'xalloc.h'
9 (macro_insert): Use XMALLOC.
10 (macro_find): Constify return value.
11 * src/output.c (output_table_data): Rename table to table_data.
12 (output_parser): Constify macro_key, macro_value.
14 2001-08-30 Marc Autret <autret_m@epita.fr>
16 * src/reader.c (parse_skel_decl): New.
17 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
18 * src/lex.h (token_t): New token `tok_skel'.
19 * src/lex.c (percent_table): Add skeleton option entry.
22 2001-08-29 Marc Autret <autret_m@epita.fr>
24 * src/bison.simple: Add %%user_code directive at the end.
25 * src/reader.c (read_additionnal_code): New.
27 * src/output.c (output_program): Remove.
30 2001-08-28 Marc Autret <autret_m@epita.fr>
32 * src/output.c (output_actions): Clean up.
33 (output_gram): CPP-out useless code.
34 * src/reader.c (reader): Clean up, CPP-out useless code.
36 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
38 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
40 * src/bison.simple: Add `%%definitions'.
42 2001-08-28 Marc Autret <autret_m@epita.fr>
44 * config/depcomp: New file.
46 2001-08-27 Paul Eggert <eggert@twinsun.com>
48 * src/bison.simple (yyparse): Don't take the address of an
49 item before the start of an array, as that doesn't conform to
52 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
54 * src/output.c (output): Remove the initialization of the macro
55 obstack. It was done too late here.
57 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
59 (reader): Initialize the macro obstack here, since we need it to grow
62 * src/reader.h: Declare the macro obstack as extern.
64 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
66 * src/output.c (output_parser): Fix. Store single '%' characters in
67 the output obstack instead of throwing them away.
69 2001-08-27 Akim Demaille <akim@epita.fr>
71 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
73 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
75 * lib/Makefile.am: Adjust.
77 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
79 * src/bison.simple: Update and add '%%' directives.
81 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
83 * src/reader.c (reader): Remove calls to 'output_headers' and
84 'output_trailers'. Remove some C output.
85 (readgram): Disable a piece of code that was writing a default
86 definition for 'YYSTYPE'.
87 (reader_output_yylsp): Remove.
88 (packsymbols): Output token defintions to a macro.
89 (copy_definition): Disable C output.
91 * src/reader.c (parse_macro_decl): New function used to parse macro
93 (copy_string2): Put the body of copy_string into this new function.
94 Add a parameter to let the caller choose whether he wants to copy the
95 string delimiters or not.
96 (copy_string): Be a simple call to copy_string2 with the last argument
98 (read_declarations): Add case for macro definition.
99 (copy_identifier): New.
100 (parse_macro_decl): Read macro identifiers using copy_identifier
103 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
105 * src/output.c (prepare): Add prefixed names.
106 (output_parser): Output semantic actions.
107 (output_parser): Fix bug on '%%line' directives.
109 * src/output.c (output_headers): Remove. The C code printed by this
110 function should now be in the skeletons.
111 (output_trailers): Remove.
112 (output): Disable call to 'reader_output_yylsp'.
113 (output_rule_data): Do not output tables to the table obstack.
115 * src/output.c: Remove some C dedicated output.
116 Improve the use of macro and output obstacks.
117 (output_defines): Remove.
119 * src/output.c (output_token_translations): Associate 'translate'
120 table with a macro. No output to the table obstack.
121 (output_gram): Same for 'rhs' and 'prhs'.
122 (output_stos): Same for 'stos'.
123 (output_rule_data): Same for 'r1' and 'r2'.
124 (token_actions): Same for 'defact'.
125 (goto_actions): Same for 'defgoto'.
126 (output_base): Same for 'pact' and 'pgoto'.
127 (output_table): Same for 'table'.
128 (output_check): Same for 'check'.
130 * src/output.c (output_table_data): New function.
131 (output_short_table): Remove.
132 (output_short_or_char_table): Remove.
134 * src/output.c (output_parser): Replace most of the skeleton copy code
135 with something new. Skeletons are now processed character by character
136 rather than line by line, and Bison looks for '%%' macros. This is the
137 first step in making Bison's output process (a lot) more flexible.
138 (output_parser): Use the macro table.
140 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
142 * src/main.c (main): Initialize the macro table.
144 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
146 * src/lex.c (percent_table): Add tok_define.
147 * src/lex.h: Add tok_define.
149 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
151 * src/macrotab.c: New file.
152 * src/macrotab.h: New file.
153 * src/Makefile.am: Update.
155 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
157 * lib/hash.c: New file.
158 * lib/hash.h: New file.
159 * lib/Makefile.am: Update.
161 2001-08-15 Akim Demaille <akim@epita.fr>
165 2001-08-15 Marc Autret <autret_m@epita.fr>
167 * src/reader.c (readgram): Indent output macro YYSTYPE.
168 (packsymbols): Likewise.
169 (output_token_defines): Likewise.
170 * src/files.c: Standardize.
171 (compute_header_macro): New.
172 (defines_obstack_save): New. Use compute_header_macro.
173 (output_files): Update. Use defines_obstack_save.
175 2001-08-15 Akim Demaille <akim@epita.fr>
177 * doc/bison.texinfo (Table of Symbols): Document
180 2001-08-15 Akim Demaille <akim@epita.fr>
182 * missing: Update from CVS Automake.
183 * config/config.guess, config/config.sub, config/texinfo.tex:
186 2001-08-15 Akim Demaille <akim@epita.fr>
188 * Makefile.maint: Sync with CVS Autoconf.
190 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
192 * doc/bison.texinfo: Include GNU Free Documentation License from
194 * doc/fdl.texi: Add to package.
196 2001-08-14 Marc Autret <autret_m@epita.fr>
198 Turn on %{source,header}_extension features.
200 * src/lex.c (percent_table): Un-CPP out header_extension and
202 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
203 (compute_exts_from_src): Remove conditions. It restores priorities
206 2001-08-14 Marc Autret <autret_m@epita.fr>
208 * src/files.c (compute_base_names): Add extensions computing when
209 `--file-prefix' used.
210 Standardize function calls.
212 2001-08-13 Marc Autret <autret_m@epita.fr>
214 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
215 defining it (defined but null disables alloca).
217 2001-08-13 Marc Autret <autret_m@epita.fr>
219 * src/bison.simple (_yy_memcpy): CPP reformat.
221 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
223 * tests/atconfig.in (CPPFLAGS): Fix.
225 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
227 * doc/bison.texinfo: Include GNU General Public License from
229 * doc/gpl.texi: Add to package.
231 2001-08-10 Marc Autret <autret_m@epita.fr>
233 * src/print_graph.h: Fix.
234 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
236 2001-08-10 Akim Demaille <akim@epita.fr>
238 * src/system.h: Provide default declarations for stpcpy, strndup,
241 2001-08-10 Robert Anisko <anisko_r@epita.fr>
243 * doc/bison.texinfo (Locations): Update @$ stuff.
245 2001-08-09 Robert Anisko <anisko_r@epita.fr>
247 * src/bison.simple (YYLLOC_DEFAULT): Update.
250 2001-08-08 Marc Autret <autret_m@epita.fr>
252 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
253 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
254 Reported by Fabrice Bauzac.
256 2001-08-08 Marc Autret <autret_m@epita.fr>
258 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
259 * src/vcg.c (output_node): Fix.
260 * src/vcg.h: Cleanup.
261 * src/print_graph.c: Add comments.
262 (node_output_size): New global variable. Simplify the formatting of
263 the VCG graph output.
264 (print_actions): Unused code is now used. It notifies the final state
265 and no action states in the VCG graph. It also give the reduce actions.
266 The `shift and goto' edges are red and the `go to state' edges are
268 Get the current node name and node_obstack by argument.
269 (node_obstack): New variable.
270 (print_state): Manage node_obstack.
271 (print_core): Use node_obstack given by argument.
272 A node is not only computed here but in print_actions also.
273 (print_graph): CPP out useless code instead of commenting it.
275 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
277 * tests/atconfig.in (CPPFLAGS): Fix.
279 2001-08-07 Akim Demaille <akim@epita.fr>
281 * src/print_graph.c (quote): New.
282 (print_core): Use it.
284 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
286 * src/vcg.c (complain.h): Include it.
287 Unepitaize `return' invocations.
288 [NDEBUG] (main): Remove.
289 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
290 * src/files.c (open_files): Initialize graph_obstack.
291 * src/print_graph.c (print_actions): CPP out useless code.
292 (print_core): Don't output the last `\n' in labels.
294 * src/files.c (output_files): Output the VCG file.
295 * src/main.c (main): Invoke print_graph ();
297 2001-08-06 Marc Autret <autret_m@epita.fr>
299 Automaton VCG graph output.
300 Using option ``-g'' or long option ``--graph'', you can generate
301 a gram_filename.vcg file containing a VCG description of the LALR (1)
302 automaton of your grammar.
304 * src/main.c: Call to print_graph() function.
305 * src/getargs.h: Update.
306 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
307 (graph_flag): New flag.
309 (getargs): Add case `g'.
310 * src/files.c (graph_obstack): New obstack struct.
311 (open_files): Initialize new obstack.
312 (output_files): Saves graph_obstack if required.
313 * src/files.h (graph_obstack): New extern declaration.
314 * src/Makefile.am: Add new source files.
316 2001-08-06 Marc Autret <autret_m@epita.fr>
318 * src/print_graph.c, src/print_graph.h (graph): New.
319 * src/vcg.h: New file.
320 * src/vcg.c: New file, VCG graph handling.
322 2001-08-06 Marc Autret <autret_m@epita.fr>
324 Add of %source_extension and %header_extension which specify
325 the source or/and the header output file extension.
327 * src/files.c (compute_base_names): Remove initialisation of
328 src_extension and header_extension.
329 (compute_exts_from_gf): Update.
330 (compute_exts_from_src): Update.
331 (output_files): Update.
332 * src/reader.c (parse_header_extension_decl): New.
333 (parse_source_extension_decl): New.
334 (read_declarations): New case statements for the new tokens.
335 * src/lex.c (percent_table): Add entries for %source_extension
336 and %header_extension.
337 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
339 2001-08-06 Marc Autret <autret_m@epita.fr>
341 * configure.in: Bump to 1.28c.
342 * doc/bison.texinfo: Texinfo thingies.
344 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
346 * tests/atconfig.in (CPPFLAGS): Add.
347 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
349 2001-08-03 Akim Demaille <akim@epita.fr>
353 2001-08-03 Akim Demaille <akim@epita.fr>
355 * tests/Makefile.am (check-local): Ship testsuite.
356 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
359 2001-08-03 Akim Demaille <akim@epita.fr>
361 * configure.in: Try using -Wformat when compiling.
363 2001-08-03 Akim Demaille <akim@epita.fr>
365 * configure.in: Bump to 1.28b.
367 2001-08-03 Akim Demaille <akim@epita.fr>
369 * src/complain.c: Adjust strerror_r portability issues.
371 2001-08-03 Akim Demaille <akim@epita.fr>
375 2001-08-03 Akim Demaille <akim@epita.fr>
377 * src/getargs.c, src/getarg.h (skeleton)): Constify.
378 * src/lex.c (literalchar): Avoid name clashes on `buf'.
379 * src/getargs.c: Include complain.h.
380 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
381 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
383 2001-08-03 Akim Demaille <akim@epita.fr>
385 * src/reader.c (readgram): Display hidden chars in error messages.
387 2001-08-03 Akim Demaille <akim@epita.fr>
389 Update to gettext 0.10.39.
391 2001-08-03 Akim Demaille <akim@epita.fr>
395 2001-08-01 Marc Autret <autret_m@epita.fr>
397 * doc/bison.texinfo: Update.
398 * doc/bison.1 (mandoc): Update.
399 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
400 * src/files.c: Support output files extensions computing.
401 (src_extension): New static variable.
402 (header_extension): New static variable.
404 (get_extension_index): New function, gets the index of an extension
405 filename in a string.
406 (compute_exts_from_gf): New function, computes extensions from the
407 grammar file extension.
408 (compute_exts_from_src): New functions, computes extensions from the
409 C source file extension, file given by ``-o'' option.
410 (compute_base_names): Update.
411 (output_files): Update.
413 2001-08-01 Robert Anisko <anisko_r@epita.fr>
415 * doc/bison.texi: Document @$.
416 (Locations): New section.
418 2001-07-18 Akim Demaille <akim@epita.fr>
420 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
421 * config/prev-version.txt, config/move-if-change: New.
422 * Makefile.am: Adjust.
424 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
426 * src/bison.simple (yyparse): Suppress warning `comparaison
427 between signed and unsigned'.
429 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
431 * src/getargs.h (raw_flag): Remove.
432 * src/getargs.c: Die on `-r'/`--raw'.
433 * src/lex.c (parse_percent_token): Die on `%raw'.
434 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
435 * tests/calc.at: Suppress test with option `--raw'.
437 2001-07-14 Akim Demaille <akim@epita.fr>
440 * configure.in: Require Autoconf 2.50.
441 Update to gettext 0.10.38.
443 2001-03-16 Akim Demaille <akim@epita.fr>
445 * doc/bison.texinfo: ANSIfy the examples.
447 2001-03-16 Akim Demaille <akim@epita.fr>
449 * getargs.c (skeleton): New variable.
450 (longopts): --skeleton is a new option.
451 (shortopts, getargs): -S is a new option.
452 * getargs.h: Declare skeleton.
453 * output.c (output_parser): Use it.
455 2001-03-16 Akim Demaille <akim@epita.fr>
457 * m4/strerror_r.m4: New.
458 * m4/error.m4: Run AC_FUNC_STRERROR_R.
459 * lib/error.h, lib/error.c: Update.
461 2001-03-16 Akim Demaille <akim@epita.fr>
463 * src/getargs.c (longopts): Clean up.
465 2001-02-21 Akim Demaille <akim@epita.fr>
467 * src/reader.c (gensym): `gensym_count' is your own.
468 Use a static buf to create the symbol name, as token_buffer is no
471 2001-02-08 Akim Demaille <akim@epita.fr>
473 * src/conflicts.c (conflict_report): Be sure not to append to res
474 between two calls, which could happen if both first sprintf were
475 skipped, but not the first cp += strlen.
477 2001-02-08 Akim Demaille <akim@epita.fr>
479 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
480 New, from fileutils 4.0.37.
481 * configure.in: Require Autoconf 2.49c. I took some time before
482 making this decision. This is the only way out for portability
483 issues in Bison, it would mean way too much duplicate effort to
484 import in Bison features implemented in 2.49c since 2.13.
485 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
487 2001-02-02 Akim Demaille <akim@epita.fr>
489 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
490 * lib/xalloc.h, lib/xmalloc.c: Update.
492 2001-01-19 Akim Demaille <akim@epita.fr>
494 Get rid of the ad hoc handling of token_buffer in the scanner: use
497 * src/lex.c (token_obstack): New.
498 (init_lex): Initialize it. No longer call...
499 (grow_token_buffer): this. Remove it.
500 Adjust all the places which used it to use the obstack.
502 2001-01-19 Akim Demaille <akim@epita.fr>
504 * src/lex.h: Rename all the tokens:
505 s/\bENDFILE\b/tok_eof/g;
506 s/\bIDENTIFIER\b/tok_identifier/g;
508 Let them be enums, not #define, to ease debugging.
511 2001-01-18 Akim Demaille <akim@epita.fr>
513 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
514 * src/lex.c (maxtoken, grow_token_buffer): Static.
516 2001-01-18 Akim Demaille <akim@epita.fr>
518 Since we now use obstacks, more % directives can be enabled.
520 * src/lex.c (percent_table): Also accept `%yacc',
521 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
523 Handle the actions for `%semantic_parser' and `%pure_parser' here,
524 instead of returning a token.
525 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
526 * src/reader.c (read_declarations): Adjust.
527 * src/files.c (open_files): Don't call `compute_base_names', don't
528 compute `attrsfile' since they depend upon data which might be
529 *in* the input file now.
530 (output_files): Do it here.
531 * src/output.c (output_headers): Document the fact that this patch
532 introduces a guaranteed SEGV for semantic parsers.
533 * doc/bison.texinfo: Document them.
534 * tests/suite.at: Exercise these %options.
536 2000-12-20 Akim Demaille <akim@epita.fr>
538 Also handle the output file (--verbose) with obstacks.
540 * files.c (foutput): Remove.
541 (output_obstack): New.
542 Adjust all dependencies.
543 * src/conflicts.c: Return a string.
544 * src/system.h (obstack_grow_string): Rename as...
545 (obstack_sgrow): this. Be ready to work with non literals.
546 (obstack_fgrow4): New.
548 2000-12-20 Akim Demaille <akim@epita.fr>
550 * src/files.c (open_files): Fix the computation of short_base_name
551 in the case of `-o foo.tab.c'.
553 2000-12-20 Akim Demaille <akim@epita.fr>
555 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
556 (copy_dollar): Now that everything uses obstacks, get rid of the
559 2000-12-20 Akim Demaille <akim@epita.fr>
561 * src/files.c (open_files): Actually the `.output' file is based
562 on the short_base_name, not base_name.
563 * tests/suite.at (Checking output file names): Adjust.
565 2000-12-20 Akim Demaille <akim@epita.fr>
567 * src/bison.s1: Remove, we now use directly...
568 * src/bison.simple: this.
569 * src/Makefile.am: Use pkgdata instead of data.
571 2000-12-20 Akim Demaille <akim@epita.fr>
573 * src/files.c (guard_obstack): New.
574 (open_files): Initialize it.
575 (output_files): Dump it...
576 * src/files.h: Export it.
577 * src/reader.c (copy_guard): Use it.
579 2000-12-19 Akim Demaille <akim@epita.fr>
581 * src/files.c (outfile, defsfile, actfile): Removed as global
583 (open_files): Don't compute them.
584 (output_files): Adjust.
585 (base_name, short_base_name): Be global.
588 2000-12-19 Akim Demaille <akim@epita.fr>
590 * src/files.c (strsuffix): New.
591 (stringappend): Be just like strcat but allocate.
592 (base_names): Eve out from open_files.
593 Try to simplify the rather hairy computation of base_name and
595 (open_files): Use it.
596 * tests/suite.at (Checking output file names): New test.
598 2000-12-19 Akim Demaille <akim@epita.fr>
600 * src/system.h (obstack_grow_literal_string): Rename as...
601 (obstack_grow_string): this.
602 * src/output.c (output_parser): Recognize `%% actions' instead of
604 * src/bison.s1: s/$/%% actions/.
605 * src/bison.hairy: Likewise.
607 2000-12-19 Akim Demaille <akim@epita.fr>
609 * src/output.c (output_parser): Compute the `#line' lines when
611 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
612 Suggested by Hans Aberg.
614 2000-12-19 Akim Demaille <akim@epita.fr>
616 Let the handling of the skeleton files be local to the procedures
619 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
621 (fparser, open_extra_files): Remove.
622 (open_files, output_files): Don't take care of fparser.
623 * src/files.h: Adjust.
624 * src/output.c (output_parser): Open and close the file to the
626 * src/reader.c (read_declarations): When %semantic_parser, open
629 2000-12-19 Akim Demaille <akim@epita.fr>
631 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
632 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
634 2000-12-19 Akim Demaille <akim@epita.fr>
636 * src/files.c (open_files): Yipee! We no longer need all the code
637 looking for `/tmp' since we have no tmp file.
639 2000-12-19 Akim Demaille <akim@epita.fr>
641 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
643 * src/files.c (open_files): Less dependency on MSDOS etc.
645 2000-12-14 Akim Demaille <akim@epita.fr>
647 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
648 Provide a default definition.
649 Use it when executing the default @ action.
650 * src/reader.c (reader_output_yylsp): No longer include
651 `timestamp' and `text' in the default YYLTYPE.
653 2000-12-12 Akim Demaille <akim@epita.fr>
655 * src/reader.c (copy_definition, parse_union_decl, copy_action)
656 (copy_guard): Quote the file names.
657 Reported by Laurent Mascherpa.
659 2000-12-12 Akim Demaille <akim@epita.fr>
661 * src/output.c (output_headers, output_program, output): Be sure
662 to escape special characters when outputting filenames.
663 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
664 (output_headers): Don't depend on them, Use ACTSTR.
666 2000-11-17 Akim Demaille <akim@epita.fr>
668 * lib/obstack.h: Formatting changes.
669 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
670 prevents type checking.
671 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
672 cast the value to (void *): assigning a `foo *' to a `void *'
674 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
675 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
678 2000-11-17 Akim Demaille <akim@epita.fr>
680 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
682 (suite.m4, regression.m4, calc.m4): these.
683 * tests/atgeneral.m4: Update from CVS Autoconf.
685 2000-11-17 Akim Demaille <akim@epita.fr>
687 * tests/regression.m4 (%union and --defines): New test,
688 demonstrating a current bug in the obstack implementation.
690 2000-11-17 Akim Demaille <akim@epita.fr>
692 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
694 Use them to declare the variables which are global or local to
697 2000-11-17 Akim Demaille <akim@epita.fr>
699 * acconfig.h: Remove, no longer used.
701 2000-11-07 Akim Demaille <akim@epita.fr>
703 * src: s/Copyright (C)/Copyright/g.
705 2000-11-07 Akim Demaille <akim@epita.fr>
707 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
709 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
711 2000-11-07 Akim Demaille <akim@epita.fr>
713 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
714 Merge in a single CPP if/else.
716 2000-11-07 Akim Demaille <akim@epita.fr>
718 * src/output.c (output): Remove useless variables.
719 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
720 argument `data' for consistency with the prototypes.
722 (obstack_copy, obstack_copy0): Rename the second argument as
723 `address' for consistency. Qualify it `const'.
724 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
725 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
726 `const' their input argument (`data' or `address').
727 Adjust the corresponding macros to include `const' in casts.
729 2000-11-03 Akim Demaille <akim@epita.fr>
731 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
732 s/PFILE1/BISON_HAIRY/.
735 2000-11-03 Akim Demaille <akim@epita.fr>
737 For some reason, this was not applied.
739 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
740 `unlink': it's no longer used.
742 2000-11-03 Akim Demaille <akim@epita.fr>
744 * src/files.c (skeleton_find): New function, eved out of...
745 (open_files, open_extra_files): here.
747 2000-11-03 Akim Demaille <akim@epita.fr>
751 * src/files.c (obstack_save): New function.
753 (output_files): this.
755 * src/main.c (main): Don't use `atexit' to register `done', since
756 it no longer has to remove tmp files, just call `output_files'
757 when there are no errors.
759 2000-11-02 Akim Demaille <akim@epita.fr>
761 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
762 `unlink': it's no longer used.
763 * src/files.h: Formatting changes.
765 2000-11-02 Akim Demaille <akim@epita.fr>
767 Remove the last uses of mktemp and unlink/delete.
769 * src/files.c (fdefines, ftable): Removed.
770 (defines_ostack, table_obstack): New.
771 Adjust dependencies of the former into uses of the latter.
772 * src/output.c (output_short_or_char_table, output_short_table):
773 Convert to using obstacks.
774 * src/reader.c (copy_comment2): Accept one FILE * and two
776 (output_token_defines, reader_output_yylsp): Use obstacks.
777 * src/system.h (obstack_fgrow3): New.
779 2000-11-01 Akim Demaille <akim@epita.fr>
781 Change each use of `fattrs' into a use of `attrs_obstack'.
783 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
784 * src/files.c (fattrs): Remove.
785 (attrs_obstack): New.
786 Adjust all dependencies.
787 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
789 2000-11-01 Akim Demaille <akim@epita.fr>
792 Change each use of `faction' into a use of `action_obstack'.
794 * lib/obstack.h, lib/obstack.c: New files.
795 * src/files.c (faction): Remove.
796 (action_obstack): New.
797 Adjust all dependencies.
799 2000-10-20 Akim Demaille <akim@epita.fr>
801 * lib/quote.h (PARAMS): New macro. Use it.
803 2000-10-16 Akim Demaille <akim@epita.fr>
805 * src/output.c (output_short_or_char_table): New function.
806 (output_short_table, output_token_translations): Use it.
807 (goto_actions): Use output_short_table.
809 2000-10-16 Akim Demaille <akim@epita.fr>
811 * src/symtab.c (bucket_new): New function.
814 * src/output.c (output_short_table): New argument to display the
815 comment associated with the table.
817 (output_gram): Use it.
818 (output_rule_data): Nicer output layout for YYTNAME.
820 2000-10-16 Akim Demaille <akim@epita.fr>
822 * src/lex.c (read_typename): New function.
824 * src/reader.c (copy_dollar): Likewise.
826 2000-10-16 Akim Demaille <akim@epita.fr>
828 * src/reader.c (copy_comment2): Expect the input stream to be on
829 the `/' which is suspected to open a comment, instead of being
830 called after `//' or `/*' was read.
831 (copy_comment, copy_definition, parse_union_decl, copy_action)
832 (copy_guard): Adjust.
834 2000-10-16 Akim Demaille <akim@epita.fr>
836 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
837 `read_signed_integer'.
839 2000-10-16 Akim Demaille <akim@epita.fr>
841 * src/reader.c (copy_dollar): New function.
842 (copy_guard, copy_action): Use it.
844 2000-10-16 Akim Demaille <akim@epita.fr>
846 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
847 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
848 New files, from Fileutils 4.0.27.
849 * src/main.c (printable_version): Remove.
850 * src/lex.c, src/reader.c: Use `quote'.
852 2000-10-04 Akim Demaille <akim@epita.fr>
854 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
856 2000-10-04 Akim Demaille <akim@epita.fr>
858 * doc/bison.texinfo: Various typos spotted by Neil Booth.
860 2000-10-04 Akim Demaille <akim@epita.fr>
862 When a literal string is used to define two different tokens,
863 `bison -v' segfaults.
864 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
866 * tests/regression.m4: New file.
867 Include the core of the sample provided by Piotr Gackiewicz.
868 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
871 2000-10-04 Akim Demaille <akim@epita.fr>
873 * src/reader.c (parse_expect_decl): Keep `count' within the size
877 2000-10-02 Paul Eggert <eggert@twinsun.com>
879 * bison.s1 (yyparse): Assign the default value
880 unconditionally, to avoid a GCC warning and make the parser a
883 2000-10-02 Akim Demaille <akim@epita.fr>
885 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
888 2000-10-02 Akim Demaille <akim@epita.fr>
890 * src/derives.c, src/print.c, src/reduce.c: To ease the
891 translation, move some `\n' out of the translated strings.
893 2000-10-02 Akim Demaille <akim@epita.fr>
895 The location tracking mechanism is precious for parse error
896 messages. Nevertheless, it is enabled only when `@n' is used in
897 the grammar, which is a different issue (you can use it in error
898 message, but not in the grammar per se). Therefore, there should
899 be another means to enable it.
901 * src/getargs.c (getargs): Support `--locations'.
903 * src/getargs.h (locationsflag): Export it.
904 * src/lex.c (percent_table): Support `%locations'.
905 * src/reader.c (yylsp_needed): Remove this variable, now replaced
906 with `locationsflag'.
907 * doc/bison.texinfo: Document `--locations' and `%locations'.
909 * tests/calc.m4: Test it.
911 For regularity of the names, replace each
912 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
913 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
914 In addition replace each `flag' with `_flag'.
916 2000-10-02 Akim Demaille <akim@epita.fr>
918 Also test parse error messages, including with YYERROR_VERBOSE.
920 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
922 Use it to check the computations.
923 Use it to check `nonassoc' is honored.
924 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
926 (_AT_CHECK_CALC): Adjust to this option.
927 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
929 2000-10-02 Akim Demaille <akim@epita.fr>
931 Test also `--verbose', `--defines' and `--name-prefix'. Testing
932 the latter demonstrates a flaw in the handling of non debugging
933 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
934 was used in order to simplify:
950 unfortunately this leads to a CPP conflict when
951 `--name-prefix=foo' is used since it produces `#define yydebug
954 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
955 (YYDPRINTF): New macro.
957 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
959 Also test `--verbose', `--defines' and `--name-prefix'.
961 2000-10-02 Akim Demaille <akim@epita.fr>
963 Improve the readability of the produced parsers.
965 * src/bison.s1: Formatting changes.
966 Improve the comment related to the `$' mark.
967 (yydefault): Don't fall through to `yyresume': `goto' there.
968 * src/output.c (output_parser): When the `$' is met, skip the end
970 New variable, `number_of_dollar_signs', to check there's exactly
971 one `$' in the parser skeleton.
973 2000-10-02 Akim Demaille <akim@epita.fr>
975 * lib/xstrdup.c: New file, from the fileutils.
976 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
977 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
978 instead of strlen + xmalloc + strcpy.
979 * src/symtab.c (copys): Remove, use xstrdup instead.
981 2000-10-02 Akim Demaille <akim@epita.fr>
983 * src/gram.h (associativity): New enum type which replaces the
984 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
985 `right_assoc', `left_assoc' and `non_assoc'.
986 Adjust all dependencies.
987 * src/reader.c: Formatting changes.
988 (LTYPESTR): Don't define it, use it as a literal in
989 `reader_output_yylsp'.
990 * src/symtab.h (symbol_class): New enum type which replaces the
991 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
992 `sunknown', `stoken and `snterm'.
994 2000-10-02 Akim Demaille <akim@epita.fr>
996 * src/getargs.c (fixed_outfiles): Rename as...
997 (yaccflag): for consistency and accuracy.
1000 2000-10-02 Akim Demaille <akim@epita.fr>
1002 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1003 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1004 difficult and introduced a lot of core dump. It turns out that
1005 Bison used an implementation of `xmalloc' based on `calloc', and
1006 at various places it does depend upon the initialization to 0. I
1007 have not tried to isolate the pertinent places, and all the former
1008 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1009 someone should address this issue.
1011 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1012 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1014 Adjust dependencies.
1015 * src/warshall.h: New file.
1018 2000-10-02 Akim Demaille <akim@epita.fr>
1020 Various anti-`extern in *.c' changes.
1022 * src/system.h: Include `assert.h'.
1024 2000-10-02 Akim Demaille <akim@epita.fr>
1026 * src/state.h (nstates, final_state, first_state, first_shift)
1027 (first_reduction): Move their exportation from here...
1028 * src/LR0.h: to here.
1029 Adjust dependencies.
1030 * src/getargs.c (statisticsflag): New variable.
1031 Add support for `--statistics'.
1032 Adjust dependencies.
1034 Remove a lot of now useless `extern' statements in most files.
1036 2000-10-02 Akim Demaille <akim@epita.fr>
1038 * src/LR0.h: New file.
1041 2000-10-02 Akim Demaille <akim@epita.fr>
1043 * src/print.h: New file.
1045 * src/print.c: Formatting and ordering changes.
1046 (verbose, terse): Replace with...
1047 (print_results): this new function.
1048 Adjust dependencies.
1050 2000-10-02 Akim Demaille <akim@epita.fr>
1052 * src/conflicts.c (conflict_report): New function.
1053 (conflict_log, verbose_conflict_log): Replace with...
1054 (print_conflicts): this function.
1055 Adjust dependencies.
1056 * src/conflicts.h: New file.
1057 Propagate its inclusion.
1059 2000-10-02 Akim Demaille <akim@epita.fr>
1061 * src/nullable.h: New file.
1062 Propagate its inclusion.
1063 * src/nullable.c: Formatting changes.
1065 2000-10-02 Akim Demaille <akim@epita.fr>
1067 * src/reduce.h: New file.
1068 Propagate its inclusion.
1069 * src/reduce.c: Topological sort and other formatting changes.
1070 (bool, TRUE, FALSE): Move their definition to...
1071 * src/system.h: here.
1073 2000-10-02 Akim Demaille <akim@epita.fr>
1075 * src/files.c: Formatting changes.
1076 (tryopen, tryclose, openfiles): Rename as...
1077 (xfopen, xfclose, open_files): this.
1078 (stringappend): static.
1079 * src/files.h: Complete the list of exported symbols.
1082 2000-10-02 Akim Demaille <akim@epita.fr>
1084 * src/reader.h: New file.
1085 Propagate its use instead of tedious list of `extern' and
1087 * src/reader.c: Formatting changes, topological sort,
1090 2000-10-02 Akim Demaille <akim@epita.fr>
1092 * src/lex.h: Prototype `lex.c' exported functions.
1093 * src/reader.c: Adjust.
1094 * src/lex.c: Formatting changes.
1095 (safegetc): Rename as...
1098 2000-10-02 Akim Demaille <akim@epita.fr>
1100 * src/lalr.h: New file.
1101 Propagate its inclusion instead of prototypes and `extern'.
1102 * src/lalr.c: Formatting changes, topological sorting etc.
1104 2000-10-02 Akim Demaille <akim@epita.fr>
1106 * src/output.c (token_actions): Introduce a temporary array,
1107 YYDEFACT, that makes it possible for this function to use
1110 2000-10-02 Akim Demaille <akim@epita.fr>
1112 `user_toknums' is output as a `short[]' in `output.c', while it is
1113 defined as a `int[]' in `reader.c'. For consistency with the
1114 other output tables, `user_toknums' is now defined as a table of
1117 * src/reader.c (user_toknums): Be a short table instead of an int
1119 Adjust dependencies.
1121 Factor the short table outputs.
1123 * src/output.c (output_short_table): New function.
1124 * src/output.c (output_gram, output_stos, output_rule_data)
1125 (output_base, output_table, output_check): Use it.
1127 2000-10-02 Akim Demaille <akim@epita.fr>
1129 * src/output.c (output): Topological sort of the functions, in
1130 order to get rid of the `static' prototypes.
1131 No longer use `register'.
1132 * src/output.h: New file.
1133 Propagate its inclusion in files explicitly prototyping functions
1136 2000-09-21 Akim Demaille <akim@epita.fr>
1138 * src/atgeneral.m4: Update from Autoconf.
1140 2000-09-21 Akim Demaille <akim@epita.fr>
1142 * src/closure.h: New file.
1143 * src/closure.c: Formatting changes, topological sort over the
1144 functions, use of closure.h.
1145 (initialize_closure, finalize_closure): Rename as...
1146 (new_closure, free_closure): these. Adjust dependencies.
1147 * src/LR0.c: Formatting changes, topological sort, use of
1149 (initialize_states): Rename as...
1151 * src/Makefile.am (noinst_HEADERS): Adjust.
1153 2000-09-20 Akim Demaille <akim@epita.fr>
1155 * src/acconfig.h: Don't protect config.h against multiple
1157 Don't define PARAMS.
1158 * src/system.h: Define PARAMS.
1159 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1160 purpose of config.h. system.h must not try to fix wrong
1161 definitions in config.h.
1163 2000-09-20 Akim Demaille <akim@epita.fr>
1165 * src/derives.h: New file.
1166 * src/main.c, src/derives.h: Use it.
1168 * src/Makefile.am (noinst_HEADERS): Adjust.
1170 2000-09-20 Akim Demaille <akim@epita.fr>
1172 * tests/atgeneral.m4: Update from Autoconf.
1173 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1174 (AT_CHECK_CALC): New macros.
1175 Use these macros to test bison with options `', `--raw',
1176 `--debug', `--yacc', `--yacc --debug'.
1178 2000-09-19 Akim Demaille <akim@epita.fr>
1180 * src/output.c: Formatting changes.
1181 * src/machine.h: Remove, leaving its contents in...
1182 * src/system.h: here.
1184 Adjust all dependencies on stdio.h and machine.h.
1185 * src/getargs.h: New file.
1186 Let all `extern' declarations about getargs.c be replaced with
1187 inclusion of `getargs.h'.
1188 * src/Makefile.am (noinst_HEADERS): Adjust.
1190 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1192 (yyerror): Returns void, not int.
1193 * doc/bison.texinfo: Formatting changes.
1195 2000-09-19 Akim Demaille <akim@epita.fr>
1197 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1200 2000-09-18 Akim Demaille <akim@epita.fr>
1202 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1203 * src/Makefile.am (INCLUDES): Don't.
1204 Be ready to fetch headers in lib/.
1206 2000-09-18 Akim Demaille <akim@epita.fr>
1208 * doc/bison.texinfo: Update the copyright.
1209 ANSIfy and GNUify the examples.
1210 Remove the old menu.
1212 2000-09-18 Akim Demaille <akim@epita.fr>
1214 First set of tests: use the `calc' example from the documentation.
1216 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1217 is defined only when YYDEBUG is.
1218 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1219 * src/files.c (tryopen, tryclose): Formatting changes.
1220 Move to the top and be static.
1221 * src/reader.c (read_signed_integer): Likewise.
1222 * tests/calc.m4: New file.
1223 * Makefile.am, suite.m4: Adjust.
1224 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1226 2000-09-18 Akim Demaille <akim@epita.fr>
1228 Add support for an Autotest test suite for Bison.
1230 * m4/m4.m4, m4/atconfig.m4: New files.
1231 * m4/Makefile.am (EXTRA_DIST): Adjust.
1232 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1234 * src/getargs.c: Display a more standard --version message.
1235 * src/reader.c (reader): Formatting changes.
1236 No longer depend upon VERSION_STRING.
1237 * configure.in: No longer use `dnl'.
1238 Set up the test suite and the new directory `tests/.
1239 (VERSION_STRING): Remove.
1241 2000-04-14 Akim Demaille <akim@epita.fr>
1243 * src/reader.c (copy_comment2): New function, same as former
1244 `copy_comment', but outputs into two FILE *.
1245 (copy_comment): Use it.
1246 (parse_union_decl): Use it.
1247 (get_type, parse_start_decl): Use the same `invalid' message.
1248 (parse_start_decl, parse_union_decl): Use the same `multiple'
1250 (parse_union_decl, copy_guard, copy_action): Use the same
1251 `unmatched' message.
1252 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1254 2000-03-31 Akim Demaille <akim@epita.fr>
1256 * src/files.c (tryopen, tryclose): Move to the top.
1259 2000-03-31 Akim Demaille <akim@epita.fr>
1261 * src/main.c (main): Don't call `done', exit does it.
1263 2000-03-31 Akim Demaille <akim@epita.fr>
1265 * allocate.c: s/return (foo)/return foo/.
1268 * output.c: Likewise.
1269 * reader.c: Likewise.
1270 * symtab.c: Likewise.
1271 * vmsgetargs.c: Likewise.
1273 2000-03-31 Akim Demaille <akim@epita.fr>
1275 Clean up the error reporting functions.
1277 * src/report.c: New file.
1278 * src/report.h: Likewise.
1279 * src/Makefile.am: Adjust.
1280 * m4/error.m4: New file.
1281 * m4/Makefile.am: Adjust.
1282 * configure.in (jm_PREREQ_ERROR): Call it.
1283 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1285 (fatal, fatals): Remove. All callers use complain.c::fatal.
1286 (warn, warni, warns, warnss, warnss): Remove. All callers use
1287 complain.c::complain.
1288 (toomany): Remove, use fatal instead.
1289 * src/files.c (done): No argument, use complain_message_count.
1290 * src/main.c (main): Register `done' to `atexit'.
1292 * src/getargs.c (usage): More `fputs', less `fprintf'.
1294 2000-03-28 Akim Demaille <akim@epita.fr>
1296 * lib/: New directory.
1297 * Makefile.am (SUBDIRS): Adjust.
1298 * configure.in: Adjust.
1299 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1301 * src/alloca.c: Moved to lib/.
1302 * src/getopt.c: Likewise.
1303 * src/getopt1.c: Likewise.
1304 * src/getopt.h: Likewise.
1305 * src/ansi2knr.c: Likewise.
1306 * src/ansi2knr.1: Likewise.
1307 * src/Makefile.am: Adjust.
1308 * lib/Makefile.am: New file.
1310 2000-03-28 Akim Demaille <akim@epita.fr>
1312 * src/getargs.c (usage): Refresh the help message.
1314 2000-03-17 Akim Demaille <akim@epita.fr>
1316 * src/getopt1.c: Updated from textutils 2.0e
1317 * src/getopt.c: Likewise.
1318 * src/getopt.h: Likewise.
1320 2000-03-17 Akim Demaille <akim@epita.fr>
1322 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1323 the file name, not the whole `#line LINE FILE'.
1325 2000-03-17 Akim Demaille <akim@epita.fr>
1327 On syntax errors, report the token on which we choked.
1329 * src/bison.s1 (yyparse): In the label yyerrlab, when
1330 YYERROR_VERBOSE, add yychar in msg.
1332 2000-03-17 Akim Demaille <akim@epita.fr>
1334 * src/reader.c (copy_at): New function.
1335 (copy_guard): Use it.
1336 (copy_action): Use it.
1338 2000-03-17 Akim Demaille <akim@epita.fr>
1340 Be kind to translators, save some useless translations.
1342 * src/main.c (banner): New function.
1343 (fatal_banner): Use it.
1344 (warn_banner): Use it.
1346 2000-03-17 Akim Demaille <akim@epita.fr>
1348 * src/reader.c (copy_definition): Use copy_string and
1349 copy_comment. Removed now unused `match', `ended',
1351 (copy_comment, copy_string): Moved, to be visible from
1354 2000-03-17 Akim Demaille <akim@epita.fr>
1356 * src/reader.c (copy_string): Declare `static inline'. No
1357 problems with inline, since it is checked by configure.
1358 (copy_comment): Likewise.
1360 2000-03-17 Akim Demaille <akim@epita.fr>
1362 * src/reader.c (packsymbols): Formatting changes.
1364 2000-03-17 Akim Demaille <akim@epita.fr>
1366 * src/reader.c (copy_comment): New function, factored out from:
1367 (copy_action): Use it. Removed now unused `match', `ended',
1369 (copy_guard): Likewise.
1371 2000-03-17 Akim Demaille <akim@epita.fr>
1373 * src/reader.c (copy_string): New function, factored out from:
1374 (copy_action): Use it.
1375 (copy_guard): Likewise.
1377 2000-03-17 Akim Demaille <akim@epita.fr>
1379 Change the handling of @s so that they behave exactly like $s.
1380 There is now a pseudo variable @$ (readble and writable), location
1381 of the lhs of the rule (by default ranging from the location of
1382 the first symbol of the rhs, to the location of the last symbol,
1383 or, if the rhs is empty, YYLLOC).
1385 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1387 (yyparse): When providing a default semantic action, provide a
1388 default location action.
1389 (after the $): No longer change `*YYLSP', just stack YYLOC the
1390 same way you stack YYVAL.
1391 * src/reader.c (read_declarations): Use warns.
1392 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1393 (copy_action, case '@'): Likewise.
1394 Use a standard error message, to save useless work from
1397 2000-03-17 Akim Demaille <akim@epita.fr>
1399 * src/bison.s1: Formatting and cosmetics changes.
1400 * src/reader.c: Likewise.
1401 Update the Copyright notice.
1403 2000-03-17 Akim Demaille <akim@epita.fr>
1405 * src/bison.s1 (#line): All set to `#line' only, since the
1406 Makefile now handles them.
1408 2000-03-16 Akim Demaille <akim@epita.fr>
1410 * src/output.c (output_rule_data): Output the documentation of
1412 (Copyright notice): Update.
1415 2000-03-16 Akim Demaille <akim@epita.fr>
1417 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1418 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1419 One `#if YYDEBUG' remains, since it uses variables which are
1420 defined only if `YYDEBUG != 0'.
1422 2000-03-16 Akim Demaille <akim@epita.fr>
1424 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1425 and related variables so that the similarities are highlighted.
1427 2000-03-16 Akim Demaille <akim@epita.fr>
1429 * src/bison.s1: Properly indent CPP directives.
1431 2000-03-16 Akim Demaille <akim@epita.fr>
1433 * src/bison.s1: Properly indent the `alloca' CPP section.
1435 2000-03-16 Akim Demaille <akim@epita.fr>
1437 Do not hard code values of directories in `configure.in'.
1438 Update the `configure' tool chain.
1440 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1442 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1443 (AC_OUTPUT): Add m4/Makefile.
1444 Bump to bison 1.28a, 1.29 has never been released.
1445 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1446 handled via src/Makefile.am.
1447 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1448 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1450 * Makefile.am (SUBDIRS): Add m4.
1451 (ACLOCAL_AM_FLAGS): New variable.
1452 (AUTOMAKE_OPTIONS): Add check-news.
1453 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1454 the proper line number and file name.
1455 (DEFS): Propagate the location of bison library files and of the
1457 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1459 * acinclude.m4: Remove, replaced by the directory m4.
1460 * m4/Makefile.am (EXTRA_DIST): New variable.
1461 * m4/gettext.m4: New file, from the fileutils.
1462 * m4/lcmessage.m4: Likewise
1463 * m4/progtest.m4: Likewise.
1464 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1466 2000-03-10 Akim Demaille <akim@epita.fr>
1469 Formatting changes of various comments.
1470 Respect the GNU coding standards at various places.
1471 Don't use `_()' when no translation is needed.
1473 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1476 OS/2 honors TMPDIR environment variable.
1478 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1480 * doc/bison.texinfo: Tweaked spelling and grammar.
1482 Removed reference to price of printed copy.
1483 Mention BISON_SIMPLE and BISON_HAIRY.
1485 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1487 * configure.in, NEWS:
1488 Bison 1.29 released.
1490 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1492 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1493 Added reference card.
1495 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1497 * po/ru.po: Added Russian translation.
1499 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1501 * configure.in: Added Russian translation.
1503 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1505 * configure.in, NEWS, README:
1506 Released version 1.28.
1508 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1511 Squashed redefinition warning on some systems.
1513 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1514 Have configure build version string instead of relying on ANSI string
1517 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1519 * po/POTFILES.in: Got rid of version.c.
1521 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1523 * acconfig.h, configure.in:
1524 Have configure build version string instead of relying on ANSI string
1527 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1530 Dropped mention of `+' for long-named options.
1532 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1534 * src/files.c: Added <unistd.h> for unlink().
1536 * src/Makefile.am, src/system.h:
1539 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1541 * README: Added a FAQ list.
1543 * configure.in, acconfig.h:
1546 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1548 * doc/FAQ, doc/Makefile.am:
1551 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1553 * src/alloc.h, src/symtab.h, src/version.c:
1554 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1556 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1558 * src/.cvsignore, src/Makefile.am:
1559 Reorganized: sources in `src', documentation in `doc'.
1561 * src/lex.c (literalchar):
1562 fixed the code for escaping double quotes (thanks
1565 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1567 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1568 Adjusted paths to reflect directory reorganization.
1570 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1572 * doc/.cvsignore, doc/Makefile.am:
1573 Reorganized: sources in `src', documentation in `doc'.
1575 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1578 Updated AC_INIT file to reflect directory reorganization.
1580 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1581 Reorganized: sources in `src', documentation in `doc'.
1583 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1586 Don't declare calloc() and realloc() if not necessary.
1588 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1590 * configure.in, acconfig.h, acinclude.m4:
1591 Don't declare calloc() and realloc() if not necessary.
1593 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1595 * po/.cvsignore: Added i18n support.
1597 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1599 * acconfig.h, configure.in, Makefile.am:
1602 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1604 * src/bison.s1: Fixed #line numbers.
1606 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1608 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1609 Added PO files from Translation Project.
1611 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1614 Added support for non-ANSI compilers (ansi2knr).
1616 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1618 * configure.in: Bumped version number to 1.27.
1621 Added `bison.simple' to list of files removed by `make distclean'.
1623 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1625 * src/files.c, src/files.h:
1626 Defined locations of parser files in config.h instead of Makefile.
1628 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1630 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1631 Defined locations of parser files in config.h instead of Makefile.
1633 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1636 Removed inappropriate use of $< macro.
1638 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1640 * po/Makefile.in.in, po/POTFILES.in:
1641 Add `po' directory skeleton.
1643 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1645 * README: Document help-bison list.
1647 * configure.in: Add check for mkstemp().
1649 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1651 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1652 Hush a few compiler warnings.
1655 Add tryclose(), which verifies that fclose was successful.
1656 Hush a couple of compiler warnings.
1658 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1660 * Makefile.am, OChangeLog:
1661 ChangeLog is now automatically generated. Include the old version as
1664 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1666 * 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:
1669 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1671 * doc/bison.texinfo: Fix formatting glitch.
1673 * doc/bison.texinfo: Update FSF address.
1675 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1677 * acconfig.h: Update FSF address.
1679 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1682 Don't define PACKAGE here, since config.h defines it.
1684 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1686 * src/reader.c: Update copyright date.
1689 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1690 favor of output directly to stderr (avoids buffer overruns).
1692 * src/reader.c: Some checks for premature EOF.
1694 * 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:
1695 Use prototypes if the compiler understands them.
1697 * src/files.c: Honor TMPDIR on Unix hosts.
1698 Use prototypes if the compiler understands them.
1701 Fix a couple of buffer overrun bugs.
1702 Use prototypes if the compiler understands them.
1704 * src/system.h: Include unistd.h and ctype.h.
1705 Use #ifdef instead of #if for NLS symbols.
1707 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1709 * doc/bison.texinfo:
1710 Delete comment "consider using @set for edition number, etc..." since
1711 we now are doing so.
1713 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1716 Use prototypes if the compiler understands them.
1718 * NEWS: Document 1.26 highlights.
1720 * Makefile.am: Require Automake 1.3 or later.
1723 Use prototypes if the compiler understands them.
1725 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1728 Use VERSION symbol from automake for version number.
1730 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1732 * acconfig.h, configure.in, version.cin:
1733 Use VERSION symbol from automake for version number.
1735 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1738 Distribute original version of simple parser (bison.s1), not built
1739 version (bison.simple).
1741 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1743 * doc/bison.texinfo: Add info dir entry.
1745 * doc/bison.texinfo:
1746 Let automake put version number into documentation.
1748 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1750 * src/bison.cld, src/build.com, src/vmshlp.mar:
1751 Add non-RCS files from /gd/gnu/bison.
1753 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1756 Document the BISON_HAIRY and BISON_SIMPLE variables.
1758 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1760 * src/version.c: Build version.c automatically.
1763 Fix token numbering (used to start at 258, not 257).
1765 * src/system.h: Include config.h.
1767 * src/getargs.c: Update bug report address.
1769 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1770 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1772 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1775 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1777 * configure.in, version.cin:
1778 Build version.c automatically.
1780 * AUTHORS: Add AUTHORS file.
1782 * README: Update bug report address.
1785 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1787 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1790 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1792 * doc/bison.texinfo: Clean up some formatting.
1794 1998-05-05 Richard Stallman <rms@gnu.org>
1796 * doc/bison.texinfo:
1797 Explain better why to make a pure parser.
1799 1998-01-05 Richard Stallman <rms@gnu.org>
1801 * src/files.c (openfiles):
1802 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1803 find a temporary directory, if possible. Do not unlink files while
1806 1997-08-25 Richard Stallman <rms@gnu.org>
1808 * src/reader.c (stack_offset;):
1809 Change some warni to warns.
1811 * src/lex.c (literalchar): Use warns, not warni.
1813 1997-06-28 Richard Stallman <rms@gnu.org>
1815 * src/bison.s1: Add a Bison version comment.
1817 * src/main.c (fatal, warn, berror):
1820 1997-06-28 Richard Stallman <rms@gnu.org>
1822 * Makefile.in (bison_version): New variable.
1823 (dist): Use that variable.
1824 (bison.s1): Substitute the Bison version into bison.simple.
1826 * bison.simple: Add a Bison version comment.
1828 1997-06-18 Richard Stallman <rms@gnu.org>
1830 * src/main.c (fatal, warn, berror):
1831 Make error messages standard.
1832 (toomany): Improve error message text.
1834 * 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:
1835 new.h renamed to alloc.h.
1837 1997-06-18 Richard Stallman <rms@gnu.org>
1839 * Makefile.in: new.h renamed to alloc.h.
1841 1997-05-24 Richard Stallman <rms@gnu.org>
1843 * src/lex.c (literalchar):
1844 Fix the code for escaping \, " and '.
1846 (lex): Avoid trouble when there are many chars
1847 to discard in a char literal with just several chars in it.
1849 1997-05-17 Richard Stallman <rms@gnu.org>
1852 Use malloc, if using alloca is troublesome.
1853 (YYSTACK_USE_ALLOCA): New flag macro.
1854 Define it for some systems and compilers.
1855 (YYSTACK_ALLOC): New macro.
1856 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1857 If it was malloc'd, free it.
1859 1997-05-17 Richard Stallman <rms@gnu.org>
1862 Use malloc, if using alloca is troublesome.
1863 (YYSTACK_USE_ALLOCA): New flag macro.
1864 Define it for some systems and compilers.
1865 (YYSTACK_ALLOC): New macro.
1866 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1867 If it was malloc'd, free it.
1869 1997-04-23 Richard Stallman <rms@gnu.org>
1872 (alloca) [__hpux]: Always define as __builtin_alloca.
1874 1997-04-23 Richard Stallman <rms@gnu.org>
1877 (alloca) [__hpux]: Always define as __builtin_alloca.
1879 1997-04-22 Richard Stallman <rms@gnu.org>
1882 [__hpux]: Include alloca.h (right for HPUX 10)
1883 instead of declaring alloca (right for HPUX 9).
1885 * src/bison.s1 (__yy_memcpy):
1886 Declare arg `count' as unsigned int.
1887 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1889 1997-04-22 Richard Stallman <rms@gnu.org>
1892 [__hpux]: Include alloca.h (right for HPUX 10)
1893 instead of declaring alloca (right for HPUX 9).
1895 * bison.simple (__yy_memcpy):
1896 Declare arg `count' as unsigned int.
1897 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1899 1997-01-03 Richard Stallman <rms@gnu.org>
1901 * src/allocate.c: [__STDC__ or _MSC_VER]:
1902 Declare calloc and realloc to return void *.
1904 1997-01-02 Richard Stallman <rms@gnu.org>
1907 [_MSC_VER]: Include stdlib.h and process.h.
1908 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1910 * src/main.c (main): Return FAILURE as a value.
1911 (printable_version): Declare arg as int, not char.
1913 1997-01-02 Richard Stallman <rms@gnu.org>
1915 * Makefile.in (dist):
1916 Explicitly check for symlinks, and copy them.
1918 1996-12-19 Richard Stallman <rms@gnu.org>
1921 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1923 1996-12-18 Paul Eggert <eggert@gnu.org>
1925 * src/bison.s1 (yyparse):
1926 If __GNUC__ and YYPARSE_PARAM are both defined,
1927 declare yyparse to have a void * argument.
1929 1996-12-18 Paul Eggert <eggert@gnu.org>
1931 * bison.simple (yyparse):
1932 If __GNUC__ and YYPARSE_PARAM are both defined,
1933 declare yyparse to have a void * argument.
1935 1996-12-17 Richard Stallman <rms@gnu.org>
1937 * src/reduce.c (nbits): Add some casts.
1939 1996-08-12 Richard Stallman <rms@gnu.org>
1941 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1943 1996-08-12 Richard Stallman <rms@gnu.org>
1945 * bison.simple: Test _MSDOS as well as _MSDOS_.
1947 1996-07-31 Richard Stallman <rms@gnu.org>
1950 [__sun && __i386]: Include alloca.h.
1952 1996-07-31 Richard Stallman <rms@gnu.org>
1955 [__sun && __i386]: Include alloca.h.
1957 1996-07-30 Richard Stallman <rms@gnu.org>
1959 * src/bison.s1: Comment change.
1961 * src/bison.s1: Test _MSDOS_, not MSDOS.
1963 1996-07-30 Richard Stallman <rms@gnu.org>
1965 * bison.simple: Comment change.
1967 * bison.simple: Test _MSDOS_, not MSDOS.
1969 1996-06-01 Richard Stallman <rms@gnu.org>
1971 * 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:
1972 Insert `_' macro around many string constants.
1975 Insert `_' macro around many string constants.
1977 (main): Call setlocale, bindtextdomain and textdomain.
1979 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1980 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1981 [ENABLE_NLS]: Include libintl.h.
1982 [ENABLE_NLS] (gettext): Define.
1983 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1984 (N_, PACKAGE, LOCALEDIR): New macros.
1986 1996-06-01 Richard Stallman <rms@gnu.org>
1988 * POTFILES.in: New file.
1990 * Makefile.in (allocate.o):
1991 Define target explicitly.
1993 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1994 (LDFLAGS): Set to @LDFLAGS@.
1995 (configure): Run autoconf only if preceding `cd' succeeds.
1996 (bison.s1): Redirect output to temporary file then move the
1997 temporary to the target, rather than redirecting directly to bison.s1.
1998 (clean): Remove config.status and config.log.
1999 (distclean): Don't remove config.status here.
2001 1996-05-12 Richard Stallman <rms@gnu.org>
2004 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2006 1996-05-12 Richard Stallman <rms@gnu.org>
2009 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2011 1996-05-11 Richard Stallman <rms@gnu.org>
2013 * src/bison.s1 (__yy_memcpy):
2014 Really reorder the args, as was supposedly done on Feb 14 1995.
2015 (yyparse): Calls changed accordingly.
2017 1996-05-11 Richard Stallman <rms@gnu.org>
2019 * Makefile.in (dist): Don't use $(srcdir).
2021 * bison.simple (__yy_memcpy):
2022 Really reorder the args, as was supposedly done on Feb 14 1995.
2023 (yyparse): Calls changed accordingly.
2025 1996-01-27 Richard Stallman <rms@gnu.org>
2027 * src/output.c (output_rule_data):
2028 Test YYERROR_VERBOSE in the conditional
2029 around the definition of ttyname.
2031 1995-12-29 Richard Stallman <rms@gnu.org>
2034 Fix line numbers in #line commands.
2036 1995-12-29 Richard Stallman <rms@gnu.org>
2039 Fix line numbers in #line commands.
2041 1995-12-27 Richard Stallman <rms@gnu.org>
2043 * src/bison.s1 (YYPARSE_PARAM_DECL):
2044 In C++, make it always null.
2045 (YYPARSE_PARAM_ARG): New macro.
2046 (yyparse): Use YYPARSE_PARAM_ARG.
2048 1995-12-27 Richard Stallman <rms@gnu.org>
2050 * bison.simple (YYPARSE_PARAM_DECL):
2051 In C++, make it always null.
2052 (YYPARSE_PARAM_ARG): New macro.
2053 (yyparse): Use YYPARSE_PARAM_ARG.
2055 1995-11-29 Richard Stallman <rms@gnu.org>
2057 * doc/bison.texinfo:
2058 Describe literal string tokens, %raw, %no_lines, %token_table.
2060 1995-11-29 Daniel Hagerty <hag@gnu.org>
2062 * doc/bison.texinfo: Fixed update date
2064 1995-10-16 Richard Stallman <rms@gnu.org>
2066 * src/version.c: Version 1.25.
2068 1995-10-16 Richard Stallman <rms@gnu.org>
2070 * NEWS: *** empty log message ***
2072 1995-10-16 Richard Stallman <rms@gnu.org>
2074 * doc/bison.1, doc/bison.rnh:
2077 1995-10-15 Richard Stallman <rms@gnu.org>
2079 * src/vmsgetargs.c, src/getargs.c:
2080 Added -n, -k, and -raw switches.
2081 (noparserflag, toknumflag, rawtoknumflag): New variables.
2083 * src/symtab.h (SALIAS):
2084 New #define for adding aliases to %token.
2085 (struct bucket): Added `alias' field.
2087 * src/reduce.c (reduce_grammar):
2088 Revise error message.
2089 (print_notices): Remove final `.' from error message.
2091 * src/reader.c (reader_output_yylsp):
2093 (readgram): Use `#if 0' around code that accepted %command
2094 inside grammar rules: The documentation doesn't allow it,
2095 and it will fail since the %command processors scan for the next %.
2096 (parse_token_decl): Extended the %token
2097 declaration to allow a multi-character symbol as an alias.
2098 (parse_thong_decl): New function.
2099 (read_declarations): Added %thong declarations.
2100 (read_declarations): Handle NOOP to deal with allowing
2101 % declarations as another means to specify the flags.
2102 (readgram): Allow %prec prior to semantics embedded in a rule.
2103 (skip_to_char, read_declarations, copy_definition)
2104 (parse_token_decl, parse_start_decl, parse_type_decl)
2105 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2106 (get_type_name, copy_guard, copy_action, readgram)
2107 (get_type, packsymbols): Revised most error messages.
2108 Changed `fatal' to `warnxxx' to avoid aborting for error.
2109 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2110 (read_declarations): Improve the error message for
2111 an invalid character. Do not abort.
2112 (read_declarations, copy_guard, copy_action): Use
2113 printable_version to avoid unprintable characters in printed output.
2114 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2115 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2116 Allow the type of a non-terminal can be given
2117 more than once, as long as all specifications give the same type.
2120 (output_headers, output_trailers, output, output_gram)
2121 (output_rule_data): Implement noparserflag variable.
2122 Implement toknumflag variable.
2123 (output): Call reader_output_yylsp to output LTYPESTR.
2125 * src/main.c (main):
2126 If reader sees an error, don't process the grammar.
2127 (fatals): Updated to not use VARARGS1.
2128 (printable_version, int_to_string, warn, warni, warns, warnss)
2129 (warnsss): New error reporting functions. Avoid abort for error.
2132 Added THONG and NOOP for alias processing.
2133 Added SETOPT for the new code that allows setting options with %flags.
2136 Include getopt.h. Add some extern decls.
2137 (safegetc): New function to deal with EOF gracefully.
2138 (literalchar); new function to deal with reading \ escapes.
2139 (lex): Use literalchar.
2140 (lex): Implemented "..." tokens.
2141 (literalchar, lex, parse_percent_token): Made tokenbuffer
2142 always contain the token. This includes growing the token
2143 buffer while reading an integer.
2144 (parse_percent_token): Replaced if-else statement with percent_table.
2145 (parse_percent_token): Added % declarations as another
2146 way to specify the flags -n, -l, and -r. Also added hooks for
2147 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2148 major changes to files.c.
2149 (lex) Retain in the incoming stream a character following
2151 (skip_white_space, lex): Revised most error messages
2152 and changed fatal to warn to avoid aborting.
2153 (percent_table): Added %thong declarations.
2155 * src/gram.h: Comment changes.
2157 * src/files.c (openfiles, open_extra_files, done):
2159 and actfile file. Handle noparserflag. Both for -n switch.
2161 * src/conflicts.c (resolve_sr_conflict):
2162 Remove use of alloca.
2164 1995-06-01 Jim Meyering <meyering@gnu.org>
2166 * doc/bison.texinfo: *** empty log message ***
2168 1995-05-06 Richard Stallman <rms@gnu.org>
2170 * src/bison.s1: Comment change.
2172 1995-05-06 Richard Stallman <rms@gnu.org>
2174 * bison.simple: Comment change.
2176 1995-05-03 Richard Stallman <rms@gnu.org>
2178 * src/version.c: Version now 1.24.
2180 * src/bison.s1: Change distribution terms.
2182 * src/version.c: Version now 1.23.
2184 1995-05-03 Richard Stallman <rms@gnu.org>
2186 * doc/bison.texinfo:
2187 Rewrite "Conditions for Using Bison".
2188 Update version to 1.24.
2190 1995-05-03 Richard Stallman <rms@gnu.org>
2192 * bison.simple: Change distribution terms.
2194 1995-02-23 Richard Stallman <rms@gnu.org>
2196 * src/files.c: Test __VMS_POSIX as well as VMS.
2198 1995-02-14 Jim Meyering <meyering@gnu.org>
2200 * src/bison.s1 (__yy_memcpy):
2201 Renamed from __yy_bcopy to avoid
2202 confusion. Reverse FROM and TO arguments to be consistent with
2205 1995-02-14 Jim Meyering <meyering@gnu.org>
2207 * bison.simple (__yy_memcpy):
2208 Renamed from __yy_bcopy to avoid
2209 confusion. Reverse FROM and TO arguments to be consistent with
2212 1994-11-10 David J. MacKenzie <djm@gnu.org>
2218 * Makefile.in (DISTFILES): Include NEWS.
2220 * Makefile.in (DISTFILES):
2221 Include install-sh, not install.sh.
2223 * configure.in: Update to Autoconf v2 macro names.
2225 1994-10-05 David J. MacKenzie <djm@gnu.org>
2227 * Makefile.in: fix typo
2229 * Makefile.in (prefix, exec_prefix):
2230 Let configure set them.
2232 1994-09-28 David J. MacKenzie <djm@gnu.org>
2234 * Makefile.in: Set datadir to $(prefix)/share.
2236 1994-09-15 Richard Stallman <rms@gnu.org>
2239 Update copyright notice and GPL version.
2241 1994-09-15 Richard Stallman <rms@gnu.org>
2244 Update copyright notice and GPL version.
2246 1994-07-12 Richard Stallman <rms@gnu.org>
2248 * src/reduce.c, src/reader.c:
2251 1994-05-05 David J. MacKenzie <djm@gnu.org>
2253 * Makefile.in: entered into RCS
2255 1994-03-26 Richard Stallman <rms@gnu.org>
2257 * src/bison.s1: entered into RCS
2259 1994-03-26 Richard Stallman <rms@gnu.org>
2261 * bison.simple: entered into RCS
2263 1994-03-25 Richard Stallman <rms@gnu.org>
2265 * src/main.c: entered into RCS
2267 1994-03-24 Richard Stallman <rms@gnu.org>
2269 * src/conflicts.c: entered into RCS
2271 1994-01-02 Richard Stallman <rms@gnu.org>
2273 * Makefile.in: *** empty log message ***
2275 1993-11-21 Richard Stallman <rms@gnu.org>
2277 * src/bison.s1: *** empty log message ***
2279 1993-11-21 Richard Stallman <rms@gnu.org>
2281 * doc/bison.texinfo: entered into RCS
2283 * doc/bison.texinfo: *** empty log message ***
2285 1993-11-21 Richard Stallman <rms@gnu.org>
2287 * bison.simple: *** empty log message ***
2289 1993-10-25 David J. MacKenzie <djm@gnu.org>
2291 * doc/bison.texinfo: *** empty log message ***
2293 1993-10-19 Richard Stallman <rms@gnu.org>
2295 * src/bison.s1: *** empty log message ***
2297 1993-10-19 Richard Stallman <rms@gnu.org>
2299 * bison.simple: *** empty log message ***
2301 1993-10-14 Richard Stallman <rms@gnu.org>
2303 * src/bison.s1: *** empty log message ***
2305 1993-10-14 Richard Stallman <rms@gnu.org>
2307 * bison.simple: *** empty log message ***
2309 1993-09-14 David J. MacKenzie <djm@gnu.org>
2311 * doc/bison.texinfo: *** empty log message ***
2313 1993-09-13 Noah Friedman <friedman@gnu.org>
2315 * Makefile.in: *** empty log message ***
2317 1993-09-10 Richard Stallman <rms@gnu.org>
2319 * src/conflicts.c: *** empty log message ***
2321 * src/system.h: entered into RCS
2323 1993-09-10 Richard Stallman <rms@gnu.org>
2325 * doc/bison.1: entered into RCS
2327 1993-09-06 Noah Friedman <friedman@gnu.org>
2329 * src/version.c: entered into RCS
2331 1993-09-06 Noah Friedman <friedman@gnu.org>
2333 * Makefile.in: *** empty log message ***
2335 1993-07-30 David J. MacKenzie <djm@gnu.org>
2337 * Makefile.in: *** empty log message ***
2339 1993-07-24 Richard Stallman <rms@gnu.org>
2341 * src/bison.s1: *** empty log message ***
2343 1993-07-24 Richard Stallman <rms@gnu.org>
2345 * bison.simple: *** empty log message ***
2347 1993-07-08 David J. MacKenzie <djm@gnu.org>
2349 * Makefile.in: *** empty log message ***
2351 1993-07-04 Richard Stallman <rms@gnu.org>
2353 * src/bison.s1: *** empty log message ***
2355 1993-07-04 Richard Stallman <rms@gnu.org>
2357 * bison.simple: *** empty log message ***
2359 1993-06-26 David J. MacKenzie <djm@gnu.org>
2361 * src/getargs.c: entered into RCS
2363 1993-06-26 David J. MacKenzie <djm@gnu.org>
2365 * doc/bison.texinfo: *** empty log message ***
2367 * doc/bison.1: New file.
2369 1993-06-25 Richard Stallman <rms@gnu.org>
2371 * src/getargs.c: New file.
2373 1993-06-16 Richard Stallman <rms@gnu.org>
2375 * src/bison.s1: *** empty log message ***
2377 1993-06-16 Richard Stallman <rms@gnu.org>
2379 * bison.simple: *** empty log message ***
2381 1993-06-03 Richard Stallman <rms@gnu.org>
2383 * src/bison.s1: New file.
2385 1993-06-03 Richard Stallman <rms@gnu.org>
2387 * doc/bison.texinfo: *** empty log message ***
2389 1993-06-03 Richard Stallman <rms@gnu.org>
2391 * bison.simple: New file.
2393 1993-05-19 Richard Stallman <rms@gnu.org>
2395 * doc/bison.texinfo: New file.
2397 1993-05-07 Noah Friedman <friedman@gnu.org>
2399 * Makefile.in: *** empty log message ***
2401 1993-04-28 Noah Friedman <friedman@gnu.org>
2403 * src/reader.c: *** empty log message ***
2405 1993-04-23 Noah Friedman <friedman@gnu.org>
2407 * src/alloc.h: entered into RCS
2409 1993-04-20 David J. MacKenzie <djm@gnu.org>
2411 * src/version.c: *** empty log message ***
2413 * src/files.c, src/allocate.c:
2416 * src/reader.c: *** empty log message ***
2418 * src/lex.c: entered into RCS
2420 * src/conflicts.c: New file.
2422 * src/symtab.c: entered into RCS
2424 * src/alloc.h: New file.
2426 * src/LR0.c: entered into RCS
2428 1993-04-18 Noah Friedman <friedman@gnu.org>
2430 * src/reader.c: New file.
2432 * src/version.c: *** empty log message ***
2434 1993-04-18 Noah Friedman <friedman@gnu.org>
2436 * Makefile.in: *** empty log message ***
2438 1993-04-17 Noah Friedman <friedman@gnu.org>
2440 * Makefile.in: *** empty log message ***
2442 1993-04-15 Richard Stallman <rms@gnu.org>
2444 * src/main.c, src/files.c:
2447 1993-04-15 Noah Friedman <friedman@gnu.org>
2449 * configure.in: entered into RCS
2451 * configure.in: *** empty log message ***
2453 * configure.in: New file.
2455 1993-04-14 Richard Stallman <rms@gnu.org>
2457 * Makefile.in: New file.
2459 1993-04-13 Richard Stallman <rms@gnu.org>
2461 * src/version.c: New file.
2463 1993-03-25 Richard Stallman <rms@gnu.org>
2465 * src/output.c: entered into RCS
2467 1992-09-25 Richard Stallman <rms@gnu.org>
2469 * configure.bat: entered into RCS
2471 1992-06-22 Richard Stallman <rms@gnu.org>
2473 * src/vmsgetargs.c: entered into RCS
2475 1992-06-22 Richard Stallman <rms@gnu.org>
2477 * doc/bison.rnh: entered into RCS
2479 1992-04-20 David J. MacKenzie <djm@gnu.org>
2481 * README: entered into RCS
2483 1992-01-22 Richard Stallman <rms@gnu.org>
2485 * src/machine.h: entered into RCS
2487 1991-12-21 Richard Stallman <rms@gnu.org>
2489 * src/lalr.c, src/closure.c:
2492 1991-12-20 Richard Stallman <rms@gnu.org>
2494 * src/state.h: entered into RCS
2496 1991-12-18 Richard Stallman <rms@gnu.org>
2498 * src/print.c, src/nullable.c, src/derives.c:
2501 1991-11-03 David J. MacKenzie <djm@gnu.org>
2503 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2506 1988-09-09 Richard Stallman <rms@gnu.org>
2508 * src/bison.hairy: entered into RCS
2510 1987-12-16 Richard Stallman <rms@gnu.org>
2512 * REFERENCES: entered into RCS