1 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
3 * src/main.c (main): Standardize.
4 * src/output.c (output_table_data, output_parser): Likewise.
5 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
7 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
9 * src/reader.c (read_additionnal_code): Rename %%user_code to
11 * src/output.c (output): Rename %%declarations to %%prologue.
12 * src/bison.simple: Echo modifications.
14 2001-08-31 Marc Autret <autret_m@epita.fr>
16 * src/reader.c (readgram): CleanUp.
17 (output_token_defines): Likewise.
18 (packsymbols): Likewise.
20 * src/output.c (output): CPP-out useless code.
22 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
24 * src/reader.c (reader): Delete obsolete call to function
25 output_trailers and output_headers.
26 * src/output.h: Remove obsolete functions prototypes of output_headers
29 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
31 * src/main.c: Include macrotab.h.
32 * src/macrotab.h (macro_entry_s): Constify fields.
33 Adjust functions prototypes.
34 * src/macrotab.c (macro_insert): Constify key and value.
35 (macro_find): Constify key.
36 (macro_insert): Include 'xalloc.h'
37 (macro_insert): Use XMALLOC.
38 (macro_find): Constify return value.
39 * src/output.c (output_table_data): Rename table to table_data.
40 (output_parser): Constify macro_key, macro_value.
42 2001-08-30 Marc Autret <autret_m@epita.fr>
44 * src/reader.c (parse_skel_decl): New.
45 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
46 * src/lex.h (token_t): New token `tok_skel'.
47 * src/lex.c (percent_table): Add skeleton option entry.
50 2001-08-29 Marc Autret <autret_m@epita.fr>
52 * src/bison.simple: Add %%user_code directive at the end.
53 * src/reader.c (read_additionnal_code): New.
55 * src/output.c (output_program): Remove.
58 2001-08-28 Marc Autret <autret_m@epita.fr>
60 * src/output.c (output_actions): Clean up.
61 (output_gram): CPP-out useless code.
62 * src/reader.c (reader): Clean up, CPP-out useless code.
64 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
66 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
68 * src/bison.simple: Add `%%definitions'.
70 2001-08-28 Marc Autret <autret_m@epita.fr>
72 * config/depcomp: New file.
74 2001-08-27 Paul Eggert <eggert@twinsun.com>
76 * src/bison.simple (yyparse): Don't take the address of an
77 item before the start of an array, as that doesn't conform to
80 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
82 * src/output.c (output): Remove the initialization of the macro
83 obstack. It was done too late here.
85 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
87 (reader): Initialize the macro obstack here, since we need it to grow
90 * src/reader.h: Declare the macro obstack as extern.
92 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
94 * src/output.c (output_parser): Fix. Store single '%' characters in
95 the output obstack instead of throwing them away.
97 2001-08-27 Akim Demaille <akim@epita.fr>
99 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
101 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
103 * lib/Makefile.am: Adjust.
105 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
107 * src/bison.simple: Update and add '%%' directives.
109 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
111 * src/reader.c (reader): Remove calls to 'output_headers' and
112 'output_trailers'. Remove some C output.
113 (readgram): Disable a piece of code that was writing a default
114 definition for 'YYSTYPE'.
115 (reader_output_yylsp): Remove.
116 (packsymbols): Output token defintions to a macro.
117 (copy_definition): Disable C output.
119 * src/reader.c (parse_macro_decl): New function used to parse macro
121 (copy_string2): Put the body of copy_string into this new function.
122 Add a parameter to let the caller choose whether he wants to copy the
123 string delimiters or not.
124 (copy_string): Be a simple call to copy_string2 with the last argument
126 (read_declarations): Add case for macro definition.
127 (copy_identifier): New.
128 (parse_macro_decl): Read macro identifiers using copy_identifier
131 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
133 * src/output.c (prepare): Add prefixed names.
134 (output_parser): Output semantic actions.
135 (output_parser): Fix bug on '%%line' directives.
137 * src/output.c (output_headers): Remove. The C code printed by this
138 function should now be in the skeletons.
139 (output_trailers): Remove.
140 (output): Disable call to 'reader_output_yylsp'.
141 (output_rule_data): Do not output tables to the table obstack.
143 * src/output.c: Remove some C dedicated output.
144 Improve the use of macro and output obstacks.
145 (output_defines): Remove.
147 * src/output.c (output_token_translations): Associate 'translate'
148 table with a macro. No output to the table obstack.
149 (output_gram): Same for 'rhs' and 'prhs'.
150 (output_stos): Same for 'stos'.
151 (output_rule_data): Same for 'r1' and 'r2'.
152 (token_actions): Same for 'defact'.
153 (goto_actions): Same for 'defgoto'.
154 (output_base): Same for 'pact' and 'pgoto'.
155 (output_table): Same for 'table'.
156 (output_check): Same for 'check'.
158 * src/output.c (output_table_data): New function.
159 (output_short_table): Remove.
160 (output_short_or_char_table): Remove.
162 * src/output.c (output_parser): Replace most of the skeleton copy code
163 with something new. Skeletons are now processed character by character
164 rather than line by line, and Bison looks for '%%' macros. This is the
165 first step in making Bison's output process (a lot) more flexible.
166 (output_parser): Use the macro table.
168 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
170 * src/main.c (main): Initialize the macro table.
172 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
174 * src/lex.c (percent_table): Add tok_define.
175 * src/lex.h: Add tok_define.
177 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
179 * src/macrotab.c: New file.
180 * src/macrotab.h: New file.
181 * src/Makefile.am: Update.
183 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
185 * lib/hash.c: New file.
186 * lib/hash.h: New file.
187 * lib/Makefile.am: Update.
189 2001-08-15 Akim Demaille <akim@epita.fr>
193 2001-08-15 Marc Autret <autret_m@epita.fr>
195 * src/reader.c (readgram): Indent output macro YYSTYPE.
196 (packsymbols): Likewise.
197 (output_token_defines): Likewise.
198 * src/files.c: Standardize.
199 (compute_header_macro): New.
200 (defines_obstack_save): New. Use compute_header_macro.
201 (output_files): Update. Use defines_obstack_save.
203 2001-08-15 Akim Demaille <akim@epita.fr>
205 * doc/bison.texinfo (Table of Symbols): Document
208 2001-08-15 Akim Demaille <akim@epita.fr>
210 * missing: Update from CVS Automake.
211 * config/config.guess, config/config.sub, config/texinfo.tex:
214 2001-08-15 Akim Demaille <akim@epita.fr>
216 * Makefile.maint: Sync with CVS Autoconf.
218 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
220 * doc/bison.texinfo: Include GNU Free Documentation License from
222 * doc/fdl.texi: Add to package.
224 2001-08-14 Marc Autret <autret_m@epita.fr>
226 Turn on %{source,header}_extension features.
228 * src/lex.c (percent_table): Un-CPP out header_extension and
230 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
231 (compute_exts_from_src): Remove conditions. It restores priorities
234 2001-08-14 Marc Autret <autret_m@epita.fr>
236 * src/files.c (compute_base_names): Add extensions computing when
237 `--file-prefix' used.
238 Standardize function calls.
240 2001-08-13 Marc Autret <autret_m@epita.fr>
242 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
243 defining it (defined but null disables alloca).
245 2001-08-13 Marc Autret <autret_m@epita.fr>
247 * src/bison.simple (_yy_memcpy): CPP reformat.
249 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
251 * tests/atconfig.in (CPPFLAGS): Fix.
253 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
255 * doc/bison.texinfo: Include GNU General Public License from
257 * doc/gpl.texi: Add to package.
259 2001-08-10 Marc Autret <autret_m@epita.fr>
261 * src/print_graph.h: Fix.
262 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
264 2001-08-10 Akim Demaille <akim@epita.fr>
266 * src/system.h: Provide default declarations for stpcpy, strndup,
269 2001-08-10 Robert Anisko <anisko_r@epita.fr>
271 * doc/bison.texinfo (Locations): Update @$ stuff.
273 2001-08-09 Robert Anisko <anisko_r@epita.fr>
275 * src/bison.simple (YYLLOC_DEFAULT): Update.
278 2001-08-08 Marc Autret <autret_m@epita.fr>
280 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
281 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
282 Reported by Fabrice Bauzac.
284 2001-08-08 Marc Autret <autret_m@epita.fr>
286 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
287 * src/vcg.c (output_node): Fix.
288 * src/vcg.h: Cleanup.
289 * src/print_graph.c: Add comments.
290 (node_output_size): New global variable. Simplify the formatting of
291 the VCG graph output.
292 (print_actions): Unused code is now used. It notifies the final state
293 and no action states in the VCG graph. It also give the reduce actions.
294 The `shift and goto' edges are red and the `go to state' edges are
296 Get the current node name and node_obstack by argument.
297 (node_obstack): New variable.
298 (print_state): Manage node_obstack.
299 (print_core): Use node_obstack given by argument.
300 A node is not only computed here but in print_actions also.
301 (print_graph): CPP out useless code instead of commenting it.
303 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
305 * tests/atconfig.in (CPPFLAGS): Fix.
307 2001-08-07 Akim Demaille <akim@epita.fr>
309 * src/print_graph.c (quote): New.
310 (print_core): Use it.
312 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
314 * src/vcg.c (complain.h): Include it.
315 Unepitaize `return' invocations.
316 [NDEBUG] (main): Remove.
317 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
318 * src/files.c (open_files): Initialize graph_obstack.
319 * src/print_graph.c (print_actions): CPP out useless code.
320 (print_core): Don't output the last `\n' in labels.
322 * src/files.c (output_files): Output the VCG file.
323 * src/main.c (main): Invoke print_graph ();
325 2001-08-06 Marc Autret <autret_m@epita.fr>
327 Automaton VCG graph output.
328 Using option ``-g'' or long option ``--graph'', you can generate
329 a gram_filename.vcg file containing a VCG description of the LALR (1)
330 automaton of your grammar.
332 * src/main.c: Call to print_graph() function.
333 * src/getargs.h: Update.
334 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
335 (graph_flag): New flag.
337 (getargs): Add case `g'.
338 * src/files.c (graph_obstack): New obstack struct.
339 (open_files): Initialize new obstack.
340 (output_files): Saves graph_obstack if required.
341 * src/files.h (graph_obstack): New extern declaration.
342 * src/Makefile.am: Add new source files.
344 2001-08-06 Marc Autret <autret_m@epita.fr>
346 * src/print_graph.c, src/print_graph.h (graph): New.
347 * src/vcg.h: New file.
348 * src/vcg.c: New file, VCG graph handling.
350 2001-08-06 Marc Autret <autret_m@epita.fr>
352 Add of %source_extension and %header_extension which specify
353 the source or/and the header output file extension.
355 * src/files.c (compute_base_names): Remove initialisation of
356 src_extension and header_extension.
357 (compute_exts_from_gf): Update.
358 (compute_exts_from_src): Update.
359 (output_files): Update.
360 * src/reader.c (parse_header_extension_decl): New.
361 (parse_source_extension_decl): New.
362 (read_declarations): New case statements for the new tokens.
363 * src/lex.c (percent_table): Add entries for %source_extension
364 and %header_extension.
365 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
367 2001-08-06 Marc Autret <autret_m@epita.fr>
369 * configure.in: Bump to 1.28c.
370 * doc/bison.texinfo: Texinfo thingies.
372 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
374 * tests/atconfig.in (CPPFLAGS): Add.
375 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
377 2001-08-03 Akim Demaille <akim@epita.fr>
381 2001-08-03 Akim Demaille <akim@epita.fr>
383 * tests/Makefile.am (check-local): Ship testsuite.
384 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
387 2001-08-03 Akim Demaille <akim@epita.fr>
389 * configure.in: Try using -Wformat when compiling.
391 2001-08-03 Akim Demaille <akim@epita.fr>
393 * configure.in: Bump to 1.28b.
395 2001-08-03 Akim Demaille <akim@epita.fr>
397 * src/complain.c: Adjust strerror_r portability issues.
399 2001-08-03 Akim Demaille <akim@epita.fr>
403 2001-08-03 Akim Demaille <akim@epita.fr>
405 * src/getargs.c, src/getarg.h (skeleton)): Constify.
406 * src/lex.c (literalchar): Avoid name clashes on `buf'.
407 * src/getargs.c: Include complain.h.
408 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
409 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
411 2001-08-03 Akim Demaille <akim@epita.fr>
413 * src/reader.c (readgram): Display hidden chars in error messages.
415 2001-08-03 Akim Demaille <akim@epita.fr>
417 Update to gettext 0.10.39.
419 2001-08-03 Akim Demaille <akim@epita.fr>
423 2001-08-01 Marc Autret <autret_m@epita.fr>
425 * doc/bison.texinfo: Update.
426 * doc/bison.1 (mandoc): Update.
427 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
428 * src/files.c: Support output files extensions computing.
429 (src_extension): New static variable.
430 (header_extension): New static variable.
432 (get_extension_index): New function, gets the index of an extension
433 filename in a string.
434 (compute_exts_from_gf): New function, computes extensions from the
435 grammar file extension.
436 (compute_exts_from_src): New functions, computes extensions from the
437 C source file extension, file given by ``-o'' option.
438 (compute_base_names): Update.
439 (output_files): Update.
441 2001-08-01 Robert Anisko <anisko_r@epita.fr>
443 * doc/bison.texi: Document @$.
444 (Locations): New section.
446 2001-07-18 Akim Demaille <akim@epita.fr>
448 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
449 * config/prev-version.txt, config/move-if-change: New.
450 * Makefile.am: Adjust.
452 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
454 * src/bison.simple (yyparse): Suppress warning `comparaison
455 between signed and unsigned'.
457 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
459 * src/getargs.h (raw_flag): Remove.
460 * src/getargs.c: Die on `-r'/`--raw'.
461 * src/lex.c (parse_percent_token): Die on `%raw'.
462 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
463 * tests/calc.at: Suppress test with option `--raw'.
465 2001-07-14 Akim Demaille <akim@epita.fr>
468 * configure.in: Require Autoconf 2.50.
469 Update to gettext 0.10.38.
471 2001-03-16 Akim Demaille <akim@epita.fr>
473 * doc/bison.texinfo: ANSIfy the examples.
475 2001-03-16 Akim Demaille <akim@epita.fr>
477 * getargs.c (skeleton): New variable.
478 (longopts): --skeleton is a new option.
479 (shortopts, getargs): -S is a new option.
480 * getargs.h: Declare skeleton.
481 * output.c (output_parser): Use it.
483 2001-03-16 Akim Demaille <akim@epita.fr>
485 * m4/strerror_r.m4: New.
486 * m4/error.m4: Run AC_FUNC_STRERROR_R.
487 * lib/error.h, lib/error.c: Update.
489 2001-03-16 Akim Demaille <akim@epita.fr>
491 * src/getargs.c (longopts): Clean up.
493 2001-02-21 Akim Demaille <akim@epita.fr>
495 * src/reader.c (gensym): `gensym_count' is your own.
496 Use a static buf to create the symbol name, as token_buffer is no
499 2001-02-08 Akim Demaille <akim@epita.fr>
501 * src/conflicts.c (conflict_report): Be sure not to append to res
502 between two calls, which could happen if both first sprintf were
503 skipped, but not the first cp += strlen.
505 2001-02-08 Akim Demaille <akim@epita.fr>
507 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
508 New, from fileutils 4.0.37.
509 * configure.in: Require Autoconf 2.49c. I took some time before
510 making this decision. This is the only way out for portability
511 issues in Bison, it would mean way too much duplicate effort to
512 import in Bison features implemented in 2.49c since 2.13.
513 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
515 2001-02-02 Akim Demaille <akim@epita.fr>
517 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
518 * lib/xalloc.h, lib/xmalloc.c: Update.
520 2001-01-19 Akim Demaille <akim@epita.fr>
522 Get rid of the ad hoc handling of token_buffer in the scanner: use
525 * src/lex.c (token_obstack): New.
526 (init_lex): Initialize it. No longer call...
527 (grow_token_buffer): this. Remove it.
528 Adjust all the places which used it to use the obstack.
530 2001-01-19 Akim Demaille <akim@epita.fr>
532 * src/lex.h: Rename all the tokens:
533 s/\bENDFILE\b/tok_eof/g;
534 s/\bIDENTIFIER\b/tok_identifier/g;
536 Let them be enums, not #define, to ease debugging.
539 2001-01-18 Akim Demaille <akim@epita.fr>
541 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
542 * src/lex.c (maxtoken, grow_token_buffer): Static.
544 2001-01-18 Akim Demaille <akim@epita.fr>
546 Since we now use obstacks, more % directives can be enabled.
548 * src/lex.c (percent_table): Also accept `%yacc',
549 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
551 Handle the actions for `%semantic_parser' and `%pure_parser' here,
552 instead of returning a token.
553 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
554 * src/reader.c (read_declarations): Adjust.
555 * src/files.c (open_files): Don't call `compute_base_names', don't
556 compute `attrsfile' since they depend upon data which might be
557 *in* the input file now.
558 (output_files): Do it here.
559 * src/output.c (output_headers): Document the fact that this patch
560 introduces a guaranteed SEGV for semantic parsers.
561 * doc/bison.texinfo: Document them.
562 * tests/suite.at: Exercise these %options.
564 2000-12-20 Akim Demaille <akim@epita.fr>
566 Also handle the output file (--verbose) with obstacks.
568 * files.c (foutput): Remove.
569 (output_obstack): New.
570 Adjust all dependencies.
571 * src/conflicts.c: Return a string.
572 * src/system.h (obstack_grow_string): Rename as...
573 (obstack_sgrow): this. Be ready to work with non literals.
574 (obstack_fgrow4): New.
576 2000-12-20 Akim Demaille <akim@epita.fr>
578 * src/files.c (open_files): Fix the computation of short_base_name
579 in the case of `-o foo.tab.c'.
581 2000-12-20 Akim Demaille <akim@epita.fr>
583 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
584 (copy_dollar): Now that everything uses obstacks, get rid of the
587 2000-12-20 Akim Demaille <akim@epita.fr>
589 * src/files.c (open_files): Actually the `.output' file is based
590 on the short_base_name, not base_name.
591 * tests/suite.at (Checking output file names): Adjust.
593 2000-12-20 Akim Demaille <akim@epita.fr>
595 * src/bison.s1: Remove, we now use directly...
596 * src/bison.simple: this.
597 * src/Makefile.am: Use pkgdata instead of data.
599 2000-12-20 Akim Demaille <akim@epita.fr>
601 * src/files.c (guard_obstack): New.
602 (open_files): Initialize it.
603 (output_files): Dump it...
604 * src/files.h: Export it.
605 * src/reader.c (copy_guard): Use it.
607 2000-12-19 Akim Demaille <akim@epita.fr>
609 * src/files.c (outfile, defsfile, actfile): Removed as global
611 (open_files): Don't compute them.
612 (output_files): Adjust.
613 (base_name, short_base_name): Be global.
616 2000-12-19 Akim Demaille <akim@epita.fr>
618 * src/files.c (strsuffix): New.
619 (stringappend): Be just like strcat but allocate.
620 (base_names): Eve out from open_files.
621 Try to simplify the rather hairy computation of base_name and
623 (open_files): Use it.
624 * tests/suite.at (Checking output file names): New test.
626 2000-12-19 Akim Demaille <akim@epita.fr>
628 * src/system.h (obstack_grow_literal_string): Rename as...
629 (obstack_grow_string): this.
630 * src/output.c (output_parser): Recognize `%% actions' instead of
632 * src/bison.s1: s/$/%% actions/.
633 * src/bison.hairy: Likewise.
635 2000-12-19 Akim Demaille <akim@epita.fr>
637 * src/output.c (output_parser): Compute the `#line' lines when
639 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
640 Suggested by Hans Aberg.
642 2000-12-19 Akim Demaille <akim@epita.fr>
644 Let the handling of the skeleton files be local to the procedures
647 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
649 (fparser, open_extra_files): Remove.
650 (open_files, output_files): Don't take care of fparser.
651 * src/files.h: Adjust.
652 * src/output.c (output_parser): Open and close the file to the
654 * src/reader.c (read_declarations): When %semantic_parser, open
657 2000-12-19 Akim Demaille <akim@epita.fr>
659 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
660 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
662 2000-12-19 Akim Demaille <akim@epita.fr>
664 * src/files.c (open_files): Yipee! We no longer need all the code
665 looking for `/tmp' since we have no tmp file.
667 2000-12-19 Akim Demaille <akim@epita.fr>
669 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
671 * src/files.c (open_files): Less dependency on MSDOS etc.
673 2000-12-14 Akim Demaille <akim@epita.fr>
675 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
676 Provide a default definition.
677 Use it when executing the default @ action.
678 * src/reader.c (reader_output_yylsp): No longer include
679 `timestamp' and `text' in the default YYLTYPE.
681 2000-12-12 Akim Demaille <akim@epita.fr>
683 * src/reader.c (copy_definition, parse_union_decl, copy_action)
684 (copy_guard): Quote the file names.
685 Reported by Laurent Mascherpa.
687 2000-12-12 Akim Demaille <akim@epita.fr>
689 * src/output.c (output_headers, output_program, output): Be sure
690 to escape special characters when outputting filenames.
691 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
692 (output_headers): Don't depend on them, Use ACTSTR.
694 2000-11-17 Akim Demaille <akim@epita.fr>
696 * lib/obstack.h: Formatting changes.
697 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
698 prevents type checking.
699 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
700 cast the value to (void *): assigning a `foo *' to a `void *'
702 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
703 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
706 2000-11-17 Akim Demaille <akim@epita.fr>
708 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
710 (suite.m4, regression.m4, calc.m4): these.
711 * tests/atgeneral.m4: Update from CVS Autoconf.
713 2000-11-17 Akim Demaille <akim@epita.fr>
715 * tests/regression.m4 (%union and --defines): New test,
716 demonstrating a current bug in the obstack implementation.
718 2000-11-17 Akim Demaille <akim@epita.fr>
720 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
722 Use them to declare the variables which are global or local to
725 2000-11-17 Akim Demaille <akim@epita.fr>
727 * acconfig.h: Remove, no longer used.
729 2000-11-07 Akim Demaille <akim@epita.fr>
731 * src: s/Copyright (C)/Copyright/g.
733 2000-11-07 Akim Demaille <akim@epita.fr>
735 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
737 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
739 2000-11-07 Akim Demaille <akim@epita.fr>
741 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
742 Merge in a single CPP if/else.
744 2000-11-07 Akim Demaille <akim@epita.fr>
746 * src/output.c (output): Remove useless variables.
747 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
748 argument `data' for consistency with the prototypes.
750 (obstack_copy, obstack_copy0): Rename the second argument as
751 `address' for consistency. Qualify it `const'.
752 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
753 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
754 `const' their input argument (`data' or `address').
755 Adjust the corresponding macros to include `const' in casts.
757 2000-11-03 Akim Demaille <akim@epita.fr>
759 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
760 s/PFILE1/BISON_HAIRY/.
763 2000-11-03 Akim Demaille <akim@epita.fr>
765 For some reason, this was not applied.
767 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
768 `unlink': it's no longer used.
770 2000-11-03 Akim Demaille <akim@epita.fr>
772 * src/files.c (skeleton_find): New function, eved out of...
773 (open_files, open_extra_files): here.
775 2000-11-03 Akim Demaille <akim@epita.fr>
779 * src/files.c (obstack_save): New function.
781 (output_files): this.
783 * src/main.c (main): Don't use `atexit' to register `done', since
784 it no longer has to remove tmp files, just call `output_files'
785 when there are no errors.
787 2000-11-02 Akim Demaille <akim@epita.fr>
789 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
790 `unlink': it's no longer used.
791 * src/files.h: Formatting changes.
793 2000-11-02 Akim Demaille <akim@epita.fr>
795 Remove the last uses of mktemp and unlink/delete.
797 * src/files.c (fdefines, ftable): Removed.
798 (defines_ostack, table_obstack): New.
799 Adjust dependencies of the former into uses of the latter.
800 * src/output.c (output_short_or_char_table, output_short_table):
801 Convert to using obstacks.
802 * src/reader.c (copy_comment2): Accept one FILE * and two
804 (output_token_defines, reader_output_yylsp): Use obstacks.
805 * src/system.h (obstack_fgrow3): New.
807 2000-11-01 Akim Demaille <akim@epita.fr>
809 Change each use of `fattrs' into a use of `attrs_obstack'.
811 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
812 * src/files.c (fattrs): Remove.
813 (attrs_obstack): New.
814 Adjust all dependencies.
815 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
817 2000-11-01 Akim Demaille <akim@epita.fr>
820 Change each use of `faction' into a use of `action_obstack'.
822 * lib/obstack.h, lib/obstack.c: New files.
823 * src/files.c (faction): Remove.
824 (action_obstack): New.
825 Adjust all dependencies.
827 2000-10-20 Akim Demaille <akim@epita.fr>
829 * lib/quote.h (PARAMS): New macro. Use it.
831 2000-10-16 Akim Demaille <akim@epita.fr>
833 * src/output.c (output_short_or_char_table): New function.
834 (output_short_table, output_token_translations): Use it.
835 (goto_actions): Use output_short_table.
837 2000-10-16 Akim Demaille <akim@epita.fr>
839 * src/symtab.c (bucket_new): New function.
842 * src/output.c (output_short_table): New argument to display the
843 comment associated with the table.
845 (output_gram): Use it.
846 (output_rule_data): Nicer output layout for YYTNAME.
848 2000-10-16 Akim Demaille <akim@epita.fr>
850 * src/lex.c (read_typename): New function.
852 * src/reader.c (copy_dollar): Likewise.
854 2000-10-16 Akim Demaille <akim@epita.fr>
856 * src/reader.c (copy_comment2): Expect the input stream to be on
857 the `/' which is suspected to open a comment, instead of being
858 called after `//' or `/*' was read.
859 (copy_comment, copy_definition, parse_union_decl, copy_action)
860 (copy_guard): Adjust.
862 2000-10-16 Akim Demaille <akim@epita.fr>
864 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
865 `read_signed_integer'.
867 2000-10-16 Akim Demaille <akim@epita.fr>
869 * src/reader.c (copy_dollar): New function.
870 (copy_guard, copy_action): Use it.
872 2000-10-16 Akim Demaille <akim@epita.fr>
874 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
875 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
876 New files, from Fileutils 4.0.27.
877 * src/main.c (printable_version): Remove.
878 * src/lex.c, src/reader.c: Use `quote'.
880 2000-10-04 Akim Demaille <akim@epita.fr>
882 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
884 2000-10-04 Akim Demaille <akim@epita.fr>
886 * doc/bison.texinfo: Various typos spotted by Neil Booth.
888 2000-10-04 Akim Demaille <akim@epita.fr>
890 When a literal string is used to define two different tokens,
891 `bison -v' segfaults.
892 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
894 * tests/regression.m4: New file.
895 Include the core of the sample provided by Piotr Gackiewicz.
896 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
899 2000-10-04 Akim Demaille <akim@epita.fr>
901 * src/reader.c (parse_expect_decl): Keep `count' within the size
905 2000-10-02 Paul Eggert <eggert@twinsun.com>
907 * bison.s1 (yyparse): Assign the default value
908 unconditionally, to avoid a GCC warning and make the parser a
911 2000-10-02 Akim Demaille <akim@epita.fr>
913 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
916 2000-10-02 Akim Demaille <akim@epita.fr>
918 * src/derives.c, src/print.c, src/reduce.c: To ease the
919 translation, move some `\n' out of the translated strings.
921 2000-10-02 Akim Demaille <akim@epita.fr>
923 The location tracking mechanism is precious for parse error
924 messages. Nevertheless, it is enabled only when `@n' is used in
925 the grammar, which is a different issue (you can use it in error
926 message, but not in the grammar per se). Therefore, there should
927 be another means to enable it.
929 * src/getargs.c (getargs): Support `--locations'.
931 * src/getargs.h (locationsflag): Export it.
932 * src/lex.c (percent_table): Support `%locations'.
933 * src/reader.c (yylsp_needed): Remove this variable, now replaced
934 with `locationsflag'.
935 * doc/bison.texinfo: Document `--locations' and `%locations'.
937 * tests/calc.m4: Test it.
939 For regularity of the names, replace each
940 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
941 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
942 In addition replace each `flag' with `_flag'.
944 2000-10-02 Akim Demaille <akim@epita.fr>
946 Also test parse error messages, including with YYERROR_VERBOSE.
948 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
950 Use it to check the computations.
951 Use it to check `nonassoc' is honored.
952 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
954 (_AT_CHECK_CALC): Adjust to this option.
955 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
957 2000-10-02 Akim Demaille <akim@epita.fr>
959 Test also `--verbose', `--defines' and `--name-prefix'. Testing
960 the latter demonstrates a flaw in the handling of non debugging
961 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
962 was used in order to simplify:
978 unfortunately this leads to a CPP conflict when
979 `--name-prefix=foo' is used since it produces `#define yydebug
982 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
983 (YYDPRINTF): New macro.
985 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
987 Also test `--verbose', `--defines' and `--name-prefix'.
989 2000-10-02 Akim Demaille <akim@epita.fr>
991 Improve the readability of the produced parsers.
993 * src/bison.s1: Formatting changes.
994 Improve the comment related to the `$' mark.
995 (yydefault): Don't fall through to `yyresume': `goto' there.
996 * src/output.c (output_parser): When the `$' is met, skip the end
998 New variable, `number_of_dollar_signs', to check there's exactly
999 one `$' in the parser skeleton.
1001 2000-10-02 Akim Demaille <akim@epita.fr>
1003 * lib/xstrdup.c: New file, from the fileutils.
1004 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1005 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1006 instead of strlen + xmalloc + strcpy.
1007 * src/symtab.c (copys): Remove, use xstrdup instead.
1009 2000-10-02 Akim Demaille <akim@epita.fr>
1011 * src/gram.h (associativity): New enum type which replaces the
1012 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1013 `right_assoc', `left_assoc' and `non_assoc'.
1014 Adjust all dependencies.
1015 * src/reader.c: Formatting changes.
1016 (LTYPESTR): Don't define it, use it as a literal in
1017 `reader_output_yylsp'.
1018 * src/symtab.h (symbol_class): New enum type which replaces the
1019 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1020 `sunknown', `stoken and `snterm'.
1022 2000-10-02 Akim Demaille <akim@epita.fr>
1024 * src/getargs.c (fixed_outfiles): Rename as...
1025 (yaccflag): for consistency and accuracy.
1026 Adjust dependencies.
1028 2000-10-02 Akim Demaille <akim@epita.fr>
1030 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1031 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1032 difficult and introduced a lot of core dump. It turns out that
1033 Bison used an implementation of `xmalloc' based on `calloc', and
1034 at various places it does depend upon the initialization to 0. I
1035 have not tried to isolate the pertinent places, and all the former
1036 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1037 someone should address this issue.
1039 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1040 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1042 Adjust dependencies.
1043 * src/warshall.h: New file.
1046 2000-10-02 Akim Demaille <akim@epita.fr>
1048 Various anti-`extern in *.c' changes.
1050 * src/system.h: Include `assert.h'.
1052 2000-10-02 Akim Demaille <akim@epita.fr>
1054 * src/state.h (nstates, final_state, first_state, first_shift)
1055 (first_reduction): Move their exportation from here...
1056 * src/LR0.h: to here.
1057 Adjust dependencies.
1058 * src/getargs.c (statisticsflag): New variable.
1059 Add support for `--statistics'.
1060 Adjust dependencies.
1062 Remove a lot of now useless `extern' statements in most files.
1064 2000-10-02 Akim Demaille <akim@epita.fr>
1066 * src/LR0.h: New file.
1069 2000-10-02 Akim Demaille <akim@epita.fr>
1071 * src/print.h: New file.
1073 * src/print.c: Formatting and ordering changes.
1074 (verbose, terse): Replace with...
1075 (print_results): this new function.
1076 Adjust dependencies.
1078 2000-10-02 Akim Demaille <akim@epita.fr>
1080 * src/conflicts.c (conflict_report): New function.
1081 (conflict_log, verbose_conflict_log): Replace with...
1082 (print_conflicts): this function.
1083 Adjust dependencies.
1084 * src/conflicts.h: New file.
1085 Propagate its inclusion.
1087 2000-10-02 Akim Demaille <akim@epita.fr>
1089 * src/nullable.h: New file.
1090 Propagate its inclusion.
1091 * src/nullable.c: Formatting changes.
1093 2000-10-02 Akim Demaille <akim@epita.fr>
1095 * src/reduce.h: New file.
1096 Propagate its inclusion.
1097 * src/reduce.c: Topological sort and other formatting changes.
1098 (bool, TRUE, FALSE): Move their definition to...
1099 * src/system.h: here.
1101 2000-10-02 Akim Demaille <akim@epita.fr>
1103 * src/files.c: Formatting changes.
1104 (tryopen, tryclose, openfiles): Rename as...
1105 (xfopen, xfclose, open_files): this.
1106 (stringappend): static.
1107 * src/files.h: Complete the list of exported symbols.
1110 2000-10-02 Akim Demaille <akim@epita.fr>
1112 * src/reader.h: New file.
1113 Propagate its use instead of tedious list of `extern' and
1115 * src/reader.c: Formatting changes, topological sort,
1118 2000-10-02 Akim Demaille <akim@epita.fr>
1120 * src/lex.h: Prototype `lex.c' exported functions.
1121 * src/reader.c: Adjust.
1122 * src/lex.c: Formatting changes.
1123 (safegetc): Rename as...
1126 2000-10-02 Akim Demaille <akim@epita.fr>
1128 * src/lalr.h: New file.
1129 Propagate its inclusion instead of prototypes and `extern'.
1130 * src/lalr.c: Formatting changes, topological sorting etc.
1132 2000-10-02 Akim Demaille <akim@epita.fr>
1134 * src/output.c (token_actions): Introduce a temporary array,
1135 YYDEFACT, that makes it possible for this function to use
1138 2000-10-02 Akim Demaille <akim@epita.fr>
1140 `user_toknums' is output as a `short[]' in `output.c', while it is
1141 defined as a `int[]' in `reader.c'. For consistency with the
1142 other output tables, `user_toknums' is now defined as a table of
1145 * src/reader.c (user_toknums): Be a short table instead of an int
1147 Adjust dependencies.
1149 Factor the short table outputs.
1151 * src/output.c (output_short_table): New function.
1152 * src/output.c (output_gram, output_stos, output_rule_data)
1153 (output_base, output_table, output_check): Use it.
1155 2000-10-02 Akim Demaille <akim@epita.fr>
1157 * src/output.c (output): Topological sort of the functions, in
1158 order to get rid of the `static' prototypes.
1159 No longer use `register'.
1160 * src/output.h: New file.
1161 Propagate its inclusion in files explicitly prototyping functions
1164 2000-09-21 Akim Demaille <akim@epita.fr>
1166 * src/atgeneral.m4: Update from Autoconf.
1168 2000-09-21 Akim Demaille <akim@epita.fr>
1170 * src/closure.h: New file.
1171 * src/closure.c: Formatting changes, topological sort over the
1172 functions, use of closure.h.
1173 (initialize_closure, finalize_closure): Rename as...
1174 (new_closure, free_closure): these. Adjust dependencies.
1175 * src/LR0.c: Formatting changes, topological sort, use of
1177 (initialize_states): Rename as...
1179 * src/Makefile.am (noinst_HEADERS): Adjust.
1181 2000-09-20 Akim Demaille <akim@epita.fr>
1183 * src/acconfig.h: Don't protect config.h against multiple
1185 Don't define PARAMS.
1186 * src/system.h: Define PARAMS.
1187 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1188 purpose of config.h. system.h must not try to fix wrong
1189 definitions in config.h.
1191 2000-09-20 Akim Demaille <akim@epita.fr>
1193 * src/derives.h: New file.
1194 * src/main.c, src/derives.h: Use it.
1196 * src/Makefile.am (noinst_HEADERS): Adjust.
1198 2000-09-20 Akim Demaille <akim@epita.fr>
1200 * tests/atgeneral.m4: Update from Autoconf.
1201 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1202 (AT_CHECK_CALC): New macros.
1203 Use these macros to test bison with options `', `--raw',
1204 `--debug', `--yacc', `--yacc --debug'.
1206 2000-09-19 Akim Demaille <akim@epita.fr>
1208 * src/output.c: Formatting changes.
1209 * src/machine.h: Remove, leaving its contents in...
1210 * src/system.h: here.
1212 Adjust all dependencies on stdio.h and machine.h.
1213 * src/getargs.h: New file.
1214 Let all `extern' declarations about getargs.c be replaced with
1215 inclusion of `getargs.h'.
1216 * src/Makefile.am (noinst_HEADERS): Adjust.
1218 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1220 (yyerror): Returns void, not int.
1221 * doc/bison.texinfo: Formatting changes.
1223 2000-09-19 Akim Demaille <akim@epita.fr>
1225 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1228 2000-09-18 Akim Demaille <akim@epita.fr>
1230 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1231 * src/Makefile.am (INCLUDES): Don't.
1232 Be ready to fetch headers in lib/.
1234 2000-09-18 Akim Demaille <akim@epita.fr>
1236 * doc/bison.texinfo: Update the copyright.
1237 ANSIfy and GNUify the examples.
1238 Remove the old menu.
1240 2000-09-18 Akim Demaille <akim@epita.fr>
1242 First set of tests: use the `calc' example from the documentation.
1244 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1245 is defined only when YYDEBUG is.
1246 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1247 * src/files.c (tryopen, tryclose): Formatting changes.
1248 Move to the top and be static.
1249 * src/reader.c (read_signed_integer): Likewise.
1250 * tests/calc.m4: New file.
1251 * Makefile.am, suite.m4: Adjust.
1252 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1254 2000-09-18 Akim Demaille <akim@epita.fr>
1256 Add support for an Autotest test suite for Bison.
1258 * m4/m4.m4, m4/atconfig.m4: New files.
1259 * m4/Makefile.am (EXTRA_DIST): Adjust.
1260 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1262 * src/getargs.c: Display a more standard --version message.
1263 * src/reader.c (reader): Formatting changes.
1264 No longer depend upon VERSION_STRING.
1265 * configure.in: No longer use `dnl'.
1266 Set up the test suite and the new directory `tests/.
1267 (VERSION_STRING): Remove.
1269 2000-04-14 Akim Demaille <akim@epita.fr>
1271 * src/reader.c (copy_comment2): New function, same as former
1272 `copy_comment', but outputs into two FILE *.
1273 (copy_comment): Use it.
1274 (parse_union_decl): Use it.
1275 (get_type, parse_start_decl): Use the same `invalid' message.
1276 (parse_start_decl, parse_union_decl): Use the same `multiple'
1278 (parse_union_decl, copy_guard, copy_action): Use the same
1279 `unmatched' message.
1280 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1282 2000-03-31 Akim Demaille <akim@epita.fr>
1284 * src/files.c (tryopen, tryclose): Move to the top.
1287 2000-03-31 Akim Demaille <akim@epita.fr>
1289 * src/main.c (main): Don't call `done', exit does it.
1291 2000-03-31 Akim Demaille <akim@epita.fr>
1293 * allocate.c: s/return (foo)/return foo/.
1296 * output.c: Likewise.
1297 * reader.c: Likewise.
1298 * symtab.c: Likewise.
1299 * vmsgetargs.c: Likewise.
1301 2000-03-31 Akim Demaille <akim@epita.fr>
1303 Clean up the error reporting functions.
1305 * src/report.c: New file.
1306 * src/report.h: Likewise.
1307 * src/Makefile.am: Adjust.
1308 * m4/error.m4: New file.
1309 * m4/Makefile.am: Adjust.
1310 * configure.in (jm_PREREQ_ERROR): Call it.
1311 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1313 (fatal, fatals): Remove. All callers use complain.c::fatal.
1314 (warn, warni, warns, warnss, warnss): Remove. All callers use
1315 complain.c::complain.
1316 (toomany): Remove, use fatal instead.
1317 * src/files.c (done): No argument, use complain_message_count.
1318 * src/main.c (main): Register `done' to `atexit'.
1320 * src/getargs.c (usage): More `fputs', less `fprintf'.
1322 2000-03-28 Akim Demaille <akim@epita.fr>
1324 * lib/: New directory.
1325 * Makefile.am (SUBDIRS): Adjust.
1326 * configure.in: Adjust.
1327 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1329 * src/alloca.c: Moved to lib/.
1330 * src/getopt.c: Likewise.
1331 * src/getopt1.c: Likewise.
1332 * src/getopt.h: Likewise.
1333 * src/ansi2knr.c: Likewise.
1334 * src/ansi2knr.1: Likewise.
1335 * src/Makefile.am: Adjust.
1336 * lib/Makefile.am: New file.
1338 2000-03-28 Akim Demaille <akim@epita.fr>
1340 * src/getargs.c (usage): Refresh the help message.
1342 2000-03-17 Akim Demaille <akim@epita.fr>
1344 * src/getopt1.c: Updated from textutils 2.0e
1345 * src/getopt.c: Likewise.
1346 * src/getopt.h: Likewise.
1348 2000-03-17 Akim Demaille <akim@epita.fr>
1350 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1351 the file name, not the whole `#line LINE FILE'.
1353 2000-03-17 Akim Demaille <akim@epita.fr>
1355 On syntax errors, report the token on which we choked.
1357 * src/bison.s1 (yyparse): In the label yyerrlab, when
1358 YYERROR_VERBOSE, add yychar in msg.
1360 2000-03-17 Akim Demaille <akim@epita.fr>
1362 * src/reader.c (copy_at): New function.
1363 (copy_guard): Use it.
1364 (copy_action): Use it.
1366 2000-03-17 Akim Demaille <akim@epita.fr>
1368 Be kind to translators, save some useless translations.
1370 * src/main.c (banner): New function.
1371 (fatal_banner): Use it.
1372 (warn_banner): Use it.
1374 2000-03-17 Akim Demaille <akim@epita.fr>
1376 * src/reader.c (copy_definition): Use copy_string and
1377 copy_comment. Removed now unused `match', `ended',
1379 (copy_comment, copy_string): Moved, to be visible from
1382 2000-03-17 Akim Demaille <akim@epita.fr>
1384 * src/reader.c (copy_string): Declare `static inline'. No
1385 problems with inline, since it is checked by configure.
1386 (copy_comment): Likewise.
1388 2000-03-17 Akim Demaille <akim@epita.fr>
1390 * src/reader.c (packsymbols): Formatting changes.
1392 2000-03-17 Akim Demaille <akim@epita.fr>
1394 * src/reader.c (copy_comment): New function, factored out from:
1395 (copy_action): Use it. Removed now unused `match', `ended',
1397 (copy_guard): Likewise.
1399 2000-03-17 Akim Demaille <akim@epita.fr>
1401 * src/reader.c (copy_string): New function, factored out from:
1402 (copy_action): Use it.
1403 (copy_guard): Likewise.
1405 2000-03-17 Akim Demaille <akim@epita.fr>
1407 Change the handling of @s so that they behave exactly like $s.
1408 There is now a pseudo variable @$ (readble and writable), location
1409 of the lhs of the rule (by default ranging from the location of
1410 the first symbol of the rhs, to the location of the last symbol,
1411 or, if the rhs is empty, YYLLOC).
1413 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1415 (yyparse): When providing a default semantic action, provide a
1416 default location action.
1417 (after the $): No longer change `*YYLSP', just stack YYLOC the
1418 same way you stack YYVAL.
1419 * src/reader.c (read_declarations): Use warns.
1420 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1421 (copy_action, case '@'): Likewise.
1422 Use a standard error message, to save useless work from
1425 2000-03-17 Akim Demaille <akim@epita.fr>
1427 * src/bison.s1: Formatting and cosmetics changes.
1428 * src/reader.c: Likewise.
1429 Update the Copyright notice.
1431 2000-03-17 Akim Demaille <akim@epita.fr>
1433 * src/bison.s1 (#line): All set to `#line' only, since the
1434 Makefile now handles them.
1436 2000-03-16 Akim Demaille <akim@epita.fr>
1438 * src/output.c (output_rule_data): Output the documentation of
1440 (Copyright notice): Update.
1443 2000-03-16 Akim Demaille <akim@epita.fr>
1445 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1446 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1447 One `#if YYDEBUG' remains, since it uses variables which are
1448 defined only if `YYDEBUG != 0'.
1450 2000-03-16 Akim Demaille <akim@epita.fr>
1452 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1453 and related variables so that the similarities are highlighted.
1455 2000-03-16 Akim Demaille <akim@epita.fr>
1457 * src/bison.s1: Properly indent CPP directives.
1459 2000-03-16 Akim Demaille <akim@epita.fr>
1461 * src/bison.s1: Properly indent the `alloca' CPP section.
1463 2000-03-16 Akim Demaille <akim@epita.fr>
1465 Do not hard code values of directories in `configure.in'.
1466 Update the `configure' tool chain.
1468 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1470 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1471 (AC_OUTPUT): Add m4/Makefile.
1472 Bump to bison 1.28a, 1.29 has never been released.
1473 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1474 handled via src/Makefile.am.
1475 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1476 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1478 * Makefile.am (SUBDIRS): Add m4.
1479 (ACLOCAL_AM_FLAGS): New variable.
1480 (AUTOMAKE_OPTIONS): Add check-news.
1481 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1482 the proper line number and file name.
1483 (DEFS): Propagate the location of bison library files and of the
1485 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1487 * acinclude.m4: Remove, replaced by the directory m4.
1488 * m4/Makefile.am (EXTRA_DIST): New variable.
1489 * m4/gettext.m4: New file, from the fileutils.
1490 * m4/lcmessage.m4: Likewise
1491 * m4/progtest.m4: Likewise.
1492 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1494 2000-03-10 Akim Demaille <akim@epita.fr>
1497 Formatting changes of various comments.
1498 Respect the GNU coding standards at various places.
1499 Don't use `_()' when no translation is needed.
1501 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1504 OS/2 honors TMPDIR environment variable.
1506 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1508 * doc/bison.texinfo: Tweaked spelling and grammar.
1510 Removed reference to price of printed copy.
1511 Mention BISON_SIMPLE and BISON_HAIRY.
1513 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1515 * configure.in, NEWS:
1516 Bison 1.29 released.
1518 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1520 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1521 Added reference card.
1523 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1525 * po/ru.po: Added Russian translation.
1527 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1529 * configure.in: Added Russian translation.
1531 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1533 * configure.in, NEWS, README:
1534 Released version 1.28.
1536 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1539 Squashed redefinition warning on some systems.
1541 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1542 Have configure build version string instead of relying on ANSI string
1545 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1547 * po/POTFILES.in: Got rid of version.c.
1549 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1551 * acconfig.h, configure.in:
1552 Have configure build version string instead of relying on ANSI string
1555 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1558 Dropped mention of `+' for long-named options.
1560 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1562 * src/files.c: Added <unistd.h> for unlink().
1564 * src/Makefile.am, src/system.h:
1567 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1569 * README: Added a FAQ list.
1571 * configure.in, acconfig.h:
1574 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1576 * doc/FAQ, doc/Makefile.am:
1579 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1581 * src/alloc.h, src/symtab.h, src/version.c:
1582 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1584 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1586 * src/.cvsignore, src/Makefile.am:
1587 Reorganized: sources in `src', documentation in `doc'.
1589 * src/lex.c (literalchar):
1590 fixed the code for escaping double quotes (thanks
1593 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1595 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1596 Adjusted paths to reflect directory reorganization.
1598 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1600 * doc/.cvsignore, doc/Makefile.am:
1601 Reorganized: sources in `src', documentation in `doc'.
1603 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1606 Updated AC_INIT file to reflect directory reorganization.
1608 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1609 Reorganized: sources in `src', documentation in `doc'.
1611 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1614 Don't declare calloc() and realloc() if not necessary.
1616 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1618 * configure.in, acconfig.h, acinclude.m4:
1619 Don't declare calloc() and realloc() if not necessary.
1621 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1623 * po/.cvsignore: Added i18n support.
1625 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1627 * acconfig.h, configure.in, Makefile.am:
1630 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1632 * src/bison.s1: Fixed #line numbers.
1634 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1636 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1637 Added PO files from Translation Project.
1639 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1642 Added support for non-ANSI compilers (ansi2knr).
1644 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1646 * configure.in: Bumped version number to 1.27.
1649 Added `bison.simple' to list of files removed by `make distclean'.
1651 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1653 * src/files.c, src/files.h:
1654 Defined locations of parser files in config.h instead of Makefile.
1656 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1658 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1659 Defined locations of parser files in config.h instead of Makefile.
1661 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1664 Removed inappropriate use of $< macro.
1666 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1668 * po/Makefile.in.in, po/POTFILES.in:
1669 Add `po' directory skeleton.
1671 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1673 * README: Document help-bison list.
1675 * configure.in: Add check for mkstemp().
1677 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1679 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1680 Hush a few compiler warnings.
1683 Add tryclose(), which verifies that fclose was successful.
1684 Hush a couple of compiler warnings.
1686 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1688 * Makefile.am, OChangeLog:
1689 ChangeLog is now automatically generated. Include the old version as
1692 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1694 * 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:
1697 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1699 * doc/bison.texinfo: Fix formatting glitch.
1701 * doc/bison.texinfo: Update FSF address.
1703 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1705 * acconfig.h: Update FSF address.
1707 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1710 Don't define PACKAGE here, since config.h defines it.
1712 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1714 * src/reader.c: Update copyright date.
1717 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1718 favor of output directly to stderr (avoids buffer overruns).
1720 * src/reader.c: Some checks for premature EOF.
1722 * 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:
1723 Use prototypes if the compiler understands them.
1725 * src/files.c: Honor TMPDIR on Unix hosts.
1726 Use prototypes if the compiler understands them.
1729 Fix a couple of buffer overrun bugs.
1730 Use prototypes if the compiler understands them.
1732 * src/system.h: Include unistd.h and ctype.h.
1733 Use #ifdef instead of #if for NLS symbols.
1735 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1737 * doc/bison.texinfo:
1738 Delete comment "consider using @set for edition number, etc..." since
1739 we now are doing so.
1741 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1744 Use prototypes if the compiler understands them.
1746 * NEWS: Document 1.26 highlights.
1748 * Makefile.am: Require Automake 1.3 or later.
1751 Use prototypes if the compiler understands them.
1753 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1756 Use VERSION symbol from automake for version number.
1758 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1760 * acconfig.h, configure.in, version.cin:
1761 Use VERSION symbol from automake for version number.
1763 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1766 Distribute original version of simple parser (bison.s1), not built
1767 version (bison.simple).
1769 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1771 * doc/bison.texinfo: Add info dir entry.
1773 * doc/bison.texinfo:
1774 Let automake put version number into documentation.
1776 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1778 * src/bison.cld, src/build.com, src/vmshlp.mar:
1779 Add non-RCS files from /gd/gnu/bison.
1781 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1784 Document the BISON_HAIRY and BISON_SIMPLE variables.
1786 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1788 * src/version.c: Build version.c automatically.
1791 Fix token numbering (used to start at 258, not 257).
1793 * src/system.h: Include config.h.
1795 * src/getargs.c: Update bug report address.
1797 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1798 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1800 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1803 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1805 * configure.in, version.cin:
1806 Build version.c automatically.
1808 * AUTHORS: Add AUTHORS file.
1810 * README: Update bug report address.
1813 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1815 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1818 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1820 * doc/bison.texinfo: Clean up some formatting.
1822 1998-05-05 Richard Stallman <rms@gnu.org>
1824 * doc/bison.texinfo:
1825 Explain better why to make a pure parser.
1827 1998-01-05 Richard Stallman <rms@gnu.org>
1829 * src/files.c (openfiles):
1830 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1831 find a temporary directory, if possible. Do not unlink files while
1834 1997-08-25 Richard Stallman <rms@gnu.org>
1836 * src/reader.c (stack_offset;):
1837 Change some warni to warns.
1839 * src/lex.c (literalchar): Use warns, not warni.
1841 1997-06-28 Richard Stallman <rms@gnu.org>
1843 * src/bison.s1: Add a Bison version comment.
1845 * src/main.c (fatal, warn, berror):
1848 1997-06-28 Richard Stallman <rms@gnu.org>
1850 * Makefile.in (bison_version): New variable.
1851 (dist): Use that variable.
1852 (bison.s1): Substitute the Bison version into bison.simple.
1854 * bison.simple: Add a Bison version comment.
1856 1997-06-18 Richard Stallman <rms@gnu.org>
1858 * src/main.c (fatal, warn, berror):
1859 Make error messages standard.
1860 (toomany): Improve error message text.
1862 * 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:
1863 new.h renamed to alloc.h.
1865 1997-06-18 Richard Stallman <rms@gnu.org>
1867 * Makefile.in: new.h renamed to alloc.h.
1869 1997-05-24 Richard Stallman <rms@gnu.org>
1871 * src/lex.c (literalchar):
1872 Fix the code for escaping \, " and '.
1874 (lex): Avoid trouble when there are many chars
1875 to discard in a char literal with just several chars in it.
1877 1997-05-17 Richard Stallman <rms@gnu.org>
1880 Use malloc, if using alloca is troublesome.
1881 (YYSTACK_USE_ALLOCA): New flag macro.
1882 Define it for some systems and compilers.
1883 (YYSTACK_ALLOC): New macro.
1884 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1885 If it was malloc'd, free it.
1887 1997-05-17 Richard Stallman <rms@gnu.org>
1890 Use malloc, if using alloca is troublesome.
1891 (YYSTACK_USE_ALLOCA): New flag macro.
1892 Define it for some systems and compilers.
1893 (YYSTACK_ALLOC): New macro.
1894 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1895 If it was malloc'd, free it.
1897 1997-04-23 Richard Stallman <rms@gnu.org>
1900 (alloca) [__hpux]: Always define as __builtin_alloca.
1902 1997-04-23 Richard Stallman <rms@gnu.org>
1905 (alloca) [__hpux]: Always define as __builtin_alloca.
1907 1997-04-22 Richard Stallman <rms@gnu.org>
1910 [__hpux]: Include alloca.h (right for HPUX 10)
1911 instead of declaring alloca (right for HPUX 9).
1913 * src/bison.s1 (__yy_memcpy):
1914 Declare arg `count' as unsigned int.
1915 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1917 1997-04-22 Richard Stallman <rms@gnu.org>
1920 [__hpux]: Include alloca.h (right for HPUX 10)
1921 instead of declaring alloca (right for HPUX 9).
1923 * bison.simple (__yy_memcpy):
1924 Declare arg `count' as unsigned int.
1925 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1927 1997-01-03 Richard Stallman <rms@gnu.org>
1929 * src/allocate.c: [__STDC__ or _MSC_VER]:
1930 Declare calloc and realloc to return void *.
1932 1997-01-02 Richard Stallman <rms@gnu.org>
1935 [_MSC_VER]: Include stdlib.h and process.h.
1936 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1938 * src/main.c (main): Return FAILURE as a value.
1939 (printable_version): Declare arg as int, not char.
1941 1997-01-02 Richard Stallman <rms@gnu.org>
1943 * Makefile.in (dist):
1944 Explicitly check for symlinks, and copy them.
1946 1996-12-19 Richard Stallman <rms@gnu.org>
1949 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1951 1996-12-18 Paul Eggert <eggert@gnu.org>
1953 * src/bison.s1 (yyparse):
1954 If __GNUC__ and YYPARSE_PARAM are both defined,
1955 declare yyparse to have a void * argument.
1957 1996-12-18 Paul Eggert <eggert@gnu.org>
1959 * bison.simple (yyparse):
1960 If __GNUC__ and YYPARSE_PARAM are both defined,
1961 declare yyparse to have a void * argument.
1963 1996-12-17 Richard Stallman <rms@gnu.org>
1965 * src/reduce.c (nbits): Add some casts.
1967 1996-08-12 Richard Stallman <rms@gnu.org>
1969 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1971 1996-08-12 Richard Stallman <rms@gnu.org>
1973 * bison.simple: Test _MSDOS as well as _MSDOS_.
1975 1996-07-31 Richard Stallman <rms@gnu.org>
1978 [__sun && __i386]: Include alloca.h.
1980 1996-07-31 Richard Stallman <rms@gnu.org>
1983 [__sun && __i386]: Include alloca.h.
1985 1996-07-30 Richard Stallman <rms@gnu.org>
1987 * src/bison.s1: Comment change.
1989 * src/bison.s1: Test _MSDOS_, not MSDOS.
1991 1996-07-30 Richard Stallman <rms@gnu.org>
1993 * bison.simple: Comment change.
1995 * bison.simple: Test _MSDOS_, not MSDOS.
1997 1996-06-01 Richard Stallman <rms@gnu.org>
1999 * 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:
2000 Insert `_' macro around many string constants.
2003 Insert `_' macro around many string constants.
2005 (main): Call setlocale, bindtextdomain and textdomain.
2007 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2008 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2009 [ENABLE_NLS]: Include libintl.h.
2010 [ENABLE_NLS] (gettext): Define.
2011 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2012 (N_, PACKAGE, LOCALEDIR): New macros.
2014 1996-06-01 Richard Stallman <rms@gnu.org>
2016 * POTFILES.in: New file.
2018 * Makefile.in (allocate.o):
2019 Define target explicitly.
2021 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2022 (LDFLAGS): Set to @LDFLAGS@.
2023 (configure): Run autoconf only if preceding `cd' succeeds.
2024 (bison.s1): Redirect output to temporary file then move the
2025 temporary to the target, rather than redirecting directly to bison.s1.
2026 (clean): Remove config.status and config.log.
2027 (distclean): Don't remove config.status here.
2029 1996-05-12 Richard Stallman <rms@gnu.org>
2032 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2034 1996-05-12 Richard Stallman <rms@gnu.org>
2037 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2039 1996-05-11 Richard Stallman <rms@gnu.org>
2041 * src/bison.s1 (__yy_memcpy):
2042 Really reorder the args, as was supposedly done on Feb 14 1995.
2043 (yyparse): Calls changed accordingly.
2045 1996-05-11 Richard Stallman <rms@gnu.org>
2047 * Makefile.in (dist): Don't use $(srcdir).
2049 * bison.simple (__yy_memcpy):
2050 Really reorder the args, as was supposedly done on Feb 14 1995.
2051 (yyparse): Calls changed accordingly.
2053 1996-01-27 Richard Stallman <rms@gnu.org>
2055 * src/output.c (output_rule_data):
2056 Test YYERROR_VERBOSE in the conditional
2057 around the definition of ttyname.
2059 1995-12-29 Richard Stallman <rms@gnu.org>
2062 Fix line numbers in #line commands.
2064 1995-12-29 Richard Stallman <rms@gnu.org>
2067 Fix line numbers in #line commands.
2069 1995-12-27 Richard Stallman <rms@gnu.org>
2071 * src/bison.s1 (YYPARSE_PARAM_DECL):
2072 In C++, make it always null.
2073 (YYPARSE_PARAM_ARG): New macro.
2074 (yyparse): Use YYPARSE_PARAM_ARG.
2076 1995-12-27 Richard Stallman <rms@gnu.org>
2078 * bison.simple (YYPARSE_PARAM_DECL):
2079 In C++, make it always null.
2080 (YYPARSE_PARAM_ARG): New macro.
2081 (yyparse): Use YYPARSE_PARAM_ARG.
2083 1995-11-29 Richard Stallman <rms@gnu.org>
2085 * doc/bison.texinfo:
2086 Describe literal string tokens, %raw, %no_lines, %token_table.
2088 1995-11-29 Daniel Hagerty <hag@gnu.org>
2090 * doc/bison.texinfo: Fixed update date
2092 1995-10-16 Richard Stallman <rms@gnu.org>
2094 * src/version.c: Version 1.25.
2096 1995-10-16 Richard Stallman <rms@gnu.org>
2098 * NEWS: *** empty log message ***
2100 1995-10-16 Richard Stallman <rms@gnu.org>
2102 * doc/bison.1, doc/bison.rnh:
2105 1995-10-15 Richard Stallman <rms@gnu.org>
2107 * src/vmsgetargs.c, src/getargs.c:
2108 Added -n, -k, and -raw switches.
2109 (noparserflag, toknumflag, rawtoknumflag): New variables.
2111 * src/symtab.h (SALIAS):
2112 New #define for adding aliases to %token.
2113 (struct bucket): Added `alias' field.
2115 * src/reduce.c (reduce_grammar):
2116 Revise error message.
2117 (print_notices): Remove final `.' from error message.
2119 * src/reader.c (reader_output_yylsp):
2121 (readgram): Use `#if 0' around code that accepted %command
2122 inside grammar rules: The documentation doesn't allow it,
2123 and it will fail since the %command processors scan for the next %.
2124 (parse_token_decl): Extended the %token
2125 declaration to allow a multi-character symbol as an alias.
2126 (parse_thong_decl): New function.
2127 (read_declarations): Added %thong declarations.
2128 (read_declarations): Handle NOOP to deal with allowing
2129 % declarations as another means to specify the flags.
2130 (readgram): Allow %prec prior to semantics embedded in a rule.
2131 (skip_to_char, read_declarations, copy_definition)
2132 (parse_token_decl, parse_start_decl, parse_type_decl)
2133 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2134 (get_type_name, copy_guard, copy_action, readgram)
2135 (get_type, packsymbols): Revised most error messages.
2136 Changed `fatal' to `warnxxx' to avoid aborting for error.
2137 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2138 (read_declarations): Improve the error message for
2139 an invalid character. Do not abort.
2140 (read_declarations, copy_guard, copy_action): Use
2141 printable_version to avoid unprintable characters in printed output.
2142 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2143 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2144 Allow the type of a non-terminal can be given
2145 more than once, as long as all specifications give the same type.
2148 (output_headers, output_trailers, output, output_gram)
2149 (output_rule_data): Implement noparserflag variable.
2150 Implement toknumflag variable.
2151 (output): Call reader_output_yylsp to output LTYPESTR.
2153 * src/main.c (main):
2154 If reader sees an error, don't process the grammar.
2155 (fatals): Updated to not use VARARGS1.
2156 (printable_version, int_to_string, warn, warni, warns, warnss)
2157 (warnsss): New error reporting functions. Avoid abort for error.
2160 Added THONG and NOOP for alias processing.
2161 Added SETOPT for the new code that allows setting options with %flags.
2164 Include getopt.h. Add some extern decls.
2165 (safegetc): New function to deal with EOF gracefully.
2166 (literalchar); new function to deal with reading \ escapes.
2167 (lex): Use literalchar.
2168 (lex): Implemented "..." tokens.
2169 (literalchar, lex, parse_percent_token): Made tokenbuffer
2170 always contain the token. This includes growing the token
2171 buffer while reading an integer.
2172 (parse_percent_token): Replaced if-else statement with percent_table.
2173 (parse_percent_token): Added % declarations as another
2174 way to specify the flags -n, -l, and -r. Also added hooks for
2175 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2176 major changes to files.c.
2177 (lex) Retain in the incoming stream a character following
2179 (skip_white_space, lex): Revised most error messages
2180 and changed fatal to warn to avoid aborting.
2181 (percent_table): Added %thong declarations.
2183 * src/gram.h: Comment changes.
2185 * src/files.c (openfiles, open_extra_files, done):
2187 and actfile file. Handle noparserflag. Both for -n switch.
2189 * src/conflicts.c (resolve_sr_conflict):
2190 Remove use of alloca.
2192 1995-06-01 Jim Meyering <meyering@gnu.org>
2194 * doc/bison.texinfo: *** empty log message ***
2196 1995-05-06 Richard Stallman <rms@gnu.org>
2198 * src/bison.s1: Comment change.
2200 1995-05-06 Richard Stallman <rms@gnu.org>
2202 * bison.simple: Comment change.
2204 1995-05-03 Richard Stallman <rms@gnu.org>
2206 * src/version.c: Version now 1.24.
2208 * src/bison.s1: Change distribution terms.
2210 * src/version.c: Version now 1.23.
2212 1995-05-03 Richard Stallman <rms@gnu.org>
2214 * doc/bison.texinfo:
2215 Rewrite "Conditions for Using Bison".
2216 Update version to 1.24.
2218 1995-05-03 Richard Stallman <rms@gnu.org>
2220 * bison.simple: Change distribution terms.
2222 1995-02-23 Richard Stallman <rms@gnu.org>
2224 * src/files.c: Test __VMS_POSIX as well as VMS.
2226 1995-02-14 Jim Meyering <meyering@gnu.org>
2228 * src/bison.s1 (__yy_memcpy):
2229 Renamed from __yy_bcopy to avoid
2230 confusion. Reverse FROM and TO arguments to be consistent with
2233 1995-02-14 Jim Meyering <meyering@gnu.org>
2235 * bison.simple (__yy_memcpy):
2236 Renamed from __yy_bcopy to avoid
2237 confusion. Reverse FROM and TO arguments to be consistent with
2240 1994-11-10 David J. MacKenzie <djm@gnu.org>
2246 * Makefile.in (DISTFILES): Include NEWS.
2248 * Makefile.in (DISTFILES):
2249 Include install-sh, not install.sh.
2251 * configure.in: Update to Autoconf v2 macro names.
2253 1994-10-05 David J. MacKenzie <djm@gnu.org>
2255 * Makefile.in: fix typo
2257 * Makefile.in (prefix, exec_prefix):
2258 Let configure set them.
2260 1994-09-28 David J. MacKenzie <djm@gnu.org>
2262 * Makefile.in: Set datadir to $(prefix)/share.
2264 1994-09-15 Richard Stallman <rms@gnu.org>
2267 Update copyright notice and GPL version.
2269 1994-09-15 Richard Stallman <rms@gnu.org>
2272 Update copyright notice and GPL version.
2274 1994-07-12 Richard Stallman <rms@gnu.org>
2276 * src/reduce.c, src/reader.c:
2279 1994-05-05 David J. MacKenzie <djm@gnu.org>
2281 * Makefile.in: entered into RCS
2283 1994-03-26 Richard Stallman <rms@gnu.org>
2285 * src/bison.s1: entered into RCS
2287 1994-03-26 Richard Stallman <rms@gnu.org>
2289 * bison.simple: entered into RCS
2291 1994-03-25 Richard Stallman <rms@gnu.org>
2293 * src/main.c: entered into RCS
2295 1994-03-24 Richard Stallman <rms@gnu.org>
2297 * src/conflicts.c: entered into RCS
2299 1994-01-02 Richard Stallman <rms@gnu.org>
2301 * Makefile.in: *** empty log message ***
2303 1993-11-21 Richard Stallman <rms@gnu.org>
2305 * src/bison.s1: *** empty log message ***
2307 1993-11-21 Richard Stallman <rms@gnu.org>
2309 * doc/bison.texinfo: entered into RCS
2311 * doc/bison.texinfo: *** empty log message ***
2313 1993-11-21 Richard Stallman <rms@gnu.org>
2315 * bison.simple: *** empty log message ***
2317 1993-10-25 David J. MacKenzie <djm@gnu.org>
2319 * doc/bison.texinfo: *** empty log message ***
2321 1993-10-19 Richard Stallman <rms@gnu.org>
2323 * src/bison.s1: *** empty log message ***
2325 1993-10-19 Richard Stallman <rms@gnu.org>
2327 * bison.simple: *** empty log message ***
2329 1993-10-14 Richard Stallman <rms@gnu.org>
2331 * src/bison.s1: *** empty log message ***
2333 1993-10-14 Richard Stallman <rms@gnu.org>
2335 * bison.simple: *** empty log message ***
2337 1993-09-14 David J. MacKenzie <djm@gnu.org>
2339 * doc/bison.texinfo: *** empty log message ***
2341 1993-09-13 Noah Friedman <friedman@gnu.org>
2343 * Makefile.in: *** empty log message ***
2345 1993-09-10 Richard Stallman <rms@gnu.org>
2347 * src/conflicts.c: *** empty log message ***
2349 * src/system.h: entered into RCS
2351 1993-09-10 Richard Stallman <rms@gnu.org>
2353 * doc/bison.1: entered into RCS
2355 1993-09-06 Noah Friedman <friedman@gnu.org>
2357 * src/version.c: entered into RCS
2359 1993-09-06 Noah Friedman <friedman@gnu.org>
2361 * Makefile.in: *** empty log message ***
2363 1993-07-30 David J. MacKenzie <djm@gnu.org>
2365 * Makefile.in: *** empty log message ***
2367 1993-07-24 Richard Stallman <rms@gnu.org>
2369 * src/bison.s1: *** empty log message ***
2371 1993-07-24 Richard Stallman <rms@gnu.org>
2373 * bison.simple: *** empty log message ***
2375 1993-07-08 David J. MacKenzie <djm@gnu.org>
2377 * Makefile.in: *** empty log message ***
2379 1993-07-04 Richard Stallman <rms@gnu.org>
2381 * src/bison.s1: *** empty log message ***
2383 1993-07-04 Richard Stallman <rms@gnu.org>
2385 * bison.simple: *** empty log message ***
2387 1993-06-26 David J. MacKenzie <djm@gnu.org>
2389 * src/getargs.c: entered into RCS
2391 1993-06-26 David J. MacKenzie <djm@gnu.org>
2393 * doc/bison.texinfo: *** empty log message ***
2395 * doc/bison.1: New file.
2397 1993-06-25 Richard Stallman <rms@gnu.org>
2399 * src/getargs.c: New file.
2401 1993-06-16 Richard Stallman <rms@gnu.org>
2403 * src/bison.s1: *** empty log message ***
2405 1993-06-16 Richard Stallman <rms@gnu.org>
2407 * bison.simple: *** empty log message ***
2409 1993-06-03 Richard Stallman <rms@gnu.org>
2411 * src/bison.s1: New file.
2413 1993-06-03 Richard Stallman <rms@gnu.org>
2415 * doc/bison.texinfo: *** empty log message ***
2417 1993-06-03 Richard Stallman <rms@gnu.org>
2419 * bison.simple: New file.
2421 1993-05-19 Richard Stallman <rms@gnu.org>
2423 * doc/bison.texinfo: New file.
2425 1993-05-07 Noah Friedman <friedman@gnu.org>
2427 * Makefile.in: *** empty log message ***
2429 1993-04-28 Noah Friedman <friedman@gnu.org>
2431 * src/reader.c: *** empty log message ***
2433 1993-04-23 Noah Friedman <friedman@gnu.org>
2435 * src/alloc.h: entered into RCS
2437 1993-04-20 David J. MacKenzie <djm@gnu.org>
2439 * src/version.c: *** empty log message ***
2441 * src/files.c, src/allocate.c:
2444 * src/reader.c: *** empty log message ***
2446 * src/lex.c: entered into RCS
2448 * src/conflicts.c: New file.
2450 * src/symtab.c: entered into RCS
2452 * src/alloc.h: New file.
2454 * src/LR0.c: entered into RCS
2456 1993-04-18 Noah Friedman <friedman@gnu.org>
2458 * src/reader.c: New file.
2460 * src/version.c: *** empty log message ***
2462 1993-04-18 Noah Friedman <friedman@gnu.org>
2464 * Makefile.in: *** empty log message ***
2466 1993-04-17 Noah Friedman <friedman@gnu.org>
2468 * Makefile.in: *** empty log message ***
2470 1993-04-15 Richard Stallman <rms@gnu.org>
2472 * src/main.c, src/files.c:
2475 1993-04-15 Noah Friedman <friedman@gnu.org>
2477 * configure.in: entered into RCS
2479 * configure.in: *** empty log message ***
2481 * configure.in: New file.
2483 1993-04-14 Richard Stallman <rms@gnu.org>
2485 * Makefile.in: New file.
2487 1993-04-13 Richard Stallman <rms@gnu.org>
2489 * src/version.c: New file.
2491 1993-03-25 Richard Stallman <rms@gnu.org>
2493 * src/output.c: entered into RCS
2495 1992-09-25 Richard Stallman <rms@gnu.org>
2497 * configure.bat: entered into RCS
2499 1992-06-22 Richard Stallman <rms@gnu.org>
2501 * src/vmsgetargs.c: entered into RCS
2503 1992-06-22 Richard Stallman <rms@gnu.org>
2505 * doc/bison.rnh: entered into RCS
2507 1992-04-20 David J. MacKenzie <djm@gnu.org>
2509 * README: entered into RCS
2511 1992-01-22 Richard Stallman <rms@gnu.org>
2513 * src/machine.h: entered into RCS
2515 1991-12-21 Richard Stallman <rms@gnu.org>
2517 * src/lalr.c, src/closure.c:
2520 1991-12-20 Richard Stallman <rms@gnu.org>
2522 * src/state.h: entered into RCS
2524 1991-12-18 Richard Stallman <rms@gnu.org>
2526 * src/print.c, src/nullable.c, src/derives.c:
2529 1991-11-03 David J. MacKenzie <djm@gnu.org>
2531 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2534 1988-09-09 Richard Stallman <rms@gnu.org>
2536 * src/bison.hairy: entered into RCS
2538 1987-12-16 Richard Stallman <rms@gnu.org>
2540 * REFERENCES: entered into RCS