1 2001-08-20 Robert Anisko <robert.anisko@epita.fr>
3 * src/output.c (prepare): Add prefixed names.
4 (output_parser): Output semantic actions.
5 (output_parser): Fix bug on '%%line' directives.
7 2001-08-19 Robert Anisko <robert.anisko@epita.fr>
9 * src/output.c (output_rule_data): Do not output tables to
12 * src/reader.c (reader): Remove calls to 'output_headers' and
13 'output_trailers'. Remove some C output.
14 (readgram): Disable a piece of code that was writing a default
15 definition for 'YYSTYPE'.
16 (reader_output_yylsp): Remove.
17 (packsymbols): Output token defintions to a macro.
18 (copy_definition): Disable C output.
20 * src/output.c (output_headers): Remove. The C code printed by this
21 function should now be in the skeletons.
22 (output_trailers): Remove.
23 (output): Disable call to 'reader_output_yylsp'.
25 2001-08-18 Robert Anisko <robert.anisko@epita.fr>
27 * src/output.c: Remove some C dedicated output.
29 2001-08-18 Robert Anisko <robert.anisko@epita.fr>
31 * src/output.c (output_defines): Remove.
33 2001-08-18 Robert Anisko <robert.anisko@epita.fr>
35 * src/output.c: Improve the use of macro and output obstacks.
37 2001-08-18 Robert Anisko <robert.anisko@epita.fr>
39 * src/output.c (output_token_translations): Associate 'translate' table
40 with a macro. No output to the table obstack.
41 (output_gram): Same for 'rhs' and 'prhs'.
42 (output_stos): Same for 'stos'.
43 (output_rule_data): Same for 'r1' and 'r2'.
44 (token_actions): Same for 'defact'.
45 (goto_actions): Same for 'defgoto'.
46 (output_base): Same for 'pact' and 'pgoto'.
47 (output_table): Same for 'table'.
48 (output_check): Same for 'check'.
50 2001-08-18 Robert Anisko <robert.anisko@epita.fr>
52 * src/output.c (output_table_data): New function.
53 (output_short_table): Remove.
54 (output_short_or_char_table): Remove.
56 2001-08-17 Robert Anisko <robert.anisko@epita.fr>
58 * src/main.c (main): Initialize the macro table.
60 2001-08-17 Robert Anisko <robert.anisko@epita.fr>
62 * src/output.c (output_parser): Use the macro table.
63 * src/macrotab.c: New file.
64 * src/macrotab.h: New file.
66 2001-08-17 Robert Anisko <robert.anisko@epita.fr>
68 * lib/xalloc.h (CALLOC, MALLOC, REALLOC): New macros.
70 2001-08-17 Robert Anisko <robert.anisko@epita.fr>
72 * lib/hash.c: New file.
73 * lib/hash.h: New file.
75 2001-08-16 Robert Anisko <robert.anisko@epita.fr>
77 * src/reader.c (parse_macro_decl): Read macro identifiers using
78 copy_identifier rather than lex.
80 2001-08-16 Robert Anisko <robert.anisko@epita.fr>
82 * src/reader.c (copy_identifier): New.
84 2001-08-16 Robert Anisko <robert.anisko@epita.fr>
86 * src/reader.c (read_declarations): Add case for macro definition.
87 * src/lex.c (percent_table): Add tok_define.
88 * src/lex.h: Add tok_define.
90 2001-08-16 Robert Anisko <robert.anisko@epita.fr>
92 * src/reader.c (parse_macro_decl): New function used to parse macro
94 (copy_string2): Put the body of copy_string into this new function.
95 Add a parameter to let the caller choose whether he wants to copy the
96 string delimiters or not.
97 (copy_string): Be a simple call to copy_string2 with the last argument
100 2001-08-15 Robert Anisko <robert.anisko@epita.fr>
102 * src/output.c (output_parser): Replace most of the skeleton copy code
103 with something new. Skeletons are now processed character by character
104 rather than line by line, and Bison looks for '%%' macros. This is the
105 first step in making Bison's output process (a lot) more flexible.
107 2001-08-15 Akim Demaille <akim@epita.fr>
111 2001-08-15 Marc Autret <autret_m@epita.fr>
113 * src/reader.c (readgram): Indent output macro YYSTYPE.
114 (packsymbols): Likewise.
115 (output_token_defines): Likewise.
116 * src/files.c: Standardize.
117 (compute_header_macro): New.
118 (defines_obstack_save): New. Use compute_header_macro.
119 (output_files): Update. Use defines_obstack_save.
121 2001-08-15 Akim Demaille <akim@epita.fr>
123 * doc/bison.texinfo (Table of Symbols): Document
126 2001-08-15 Akim Demaille <akim@epita.fr>
128 * missing: Update from CVS Automake.
129 * config/config.guess, config/config.sub, config/texinfo.tex:
132 2001-08-15 Akim Demaille <akim@epita.fr>
134 * Makefile.maint: Sync with CVS Autoconf.
136 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
138 * doc/bison.texinfo: Include GNU Free Documentation License from
140 * doc/fdl.texi: Add to package.
142 2001-08-14 Marc Autret <autret_m@epita.fr>
144 Turn on %{source,header}_extension features.
146 * src/lex.c (percent_table): Un-CPP out header_extension and
148 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
149 (compute_exts_from_src): Remove conditions. It restores priorities
152 2001-08-14 Marc Autret <autret_m@epita.fr>
154 * src/files.c (compute_base_names): Add extensions computing when
155 `--file-prefix' used.
156 Standardize function calls.
158 2001-08-13 Marc Autret <autret_m@epita.fr>
160 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
161 defining it (defined but null disables alloca).
163 2001-08-13 Marc Autret <autret_m@epita.fr>
165 * src/bison.simple (_yy_memcpy): CPP reformat.
167 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
169 * tests/atconfig.in (CPPFLAGS): Fix.
171 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
173 * doc/bison.texinfo: Include GNU General Public License from
175 * doc/gpl.texi: Add to package.
177 2001-08-10 Marc Autret <autret_m@epita.fr>
179 * src/print_graph.h: Fix.
180 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
182 2001-08-10 Akim Demaille <akim@epita.fr>
184 * src/system.h: Provide default declarations for stpcpy, strndup,
187 2001-08-10 Robert Anisko <anisko_r@epita.fr>
189 * doc/bison.texinfo (Locations): Update @$ stuff.
191 2001-08-09 Robert Anisko <anisko_r@epita.fr>
193 * src/bison.simple (YYLLOC_DEFAULT): Update.
196 2001-08-08 Marc Autret <autret_m@epita.fr>
198 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
199 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
200 Reported by Fabrice Bauzac.
202 2001-08-08 Marc Autret <autret_m@epita.fr>
204 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
205 * src/vcg.c (output_node): Fix.
206 * src/vcg.h: Cleanup.
207 * src/print_graph.c: Add comments.
208 (node_output_size): New global variable. Simplify the formatting of
209 the VCG graph output.
210 (print_actions): Unused code is now used. It notifies the final state
211 and no action states in the VCG graph. It also give the reduce actions.
212 The `shift and goto' edges are red and the `go to state' edges are
214 Get the current node name and node_obstack by argument.
215 (node_obstack): New variable.
216 (print_state): Manage node_obstack.
217 (print_core): Use node_obstack given by argument.
218 A node is not only computed here but in print_actions also.
219 (print_graph): CPP out useless code instead of commenting it.
221 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
223 * tests/atconfig.in (CPPFLAGS): Fix.
225 2001-08-07 Akim Demaille <akim@epita.fr>
227 * src/print_graph.c (quote): New.
228 (print_core): Use it.
230 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
232 * src/vcg.c (complain.h): Include it.
233 Unepitaize `return' invocations.
234 [NDEBUG] (main): Remove.
235 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
236 * src/files.c (open_files): Initialize graph_obstack.
237 * src/print_graph.c (print_actions): CPP out useless code.
238 (print_core): Don't output the last `\n' in labels.
240 * src/files.c (output_files): Output the VCG file.
241 * src/main.c (main): Invoke print_graph ();
243 2001-08-06 Marc Autret <autret_m@epita.fr>
245 Automaton VCG graph output.
246 Using option ``-g'' or long option ``--graph'', you can generate
247 a gram_filename.vcg file containing a VCG description of the LALR (1)
248 automaton of your grammar.
250 * src/main.c: Call to print_graph() function.
251 * src/getargs.h: Update.
252 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
253 (graph_flag): New flag.
255 (getargs): Add case `g'.
256 * src/files.c (graph_obstack): New obstack struct.
257 (open_files): Initialize new obstack.
258 (output_files): Saves graph_obstack if required.
259 * src/files.h (graph_obstack): New extern declaration.
260 * src/Makefile.am: Add new source files.
262 2001-08-06 Marc Autret <autret_m@epita.fr>
264 * src/print_graph.c, src/print_graph.h (graph): New.
265 * src/vcg.h: New file.
266 * src/vcg.c: New file, VCG graph handling.
268 2001-08-06 Marc Autret <autret_m@epita.fr>
270 Add of %source_extension and %header_extension which specify
271 the source or/and the header output file extension.
273 * src/files.c (compute_base_names): Remove initialisation of
274 src_extension and header_extension.
275 (compute_exts_from_gf): Update.
276 (compute_exts_from_src): Update.
277 (output_files): Update.
278 * src/reader.c (parse_header_extension_decl): New.
279 (parse_source_extension_decl): New.
280 (read_declarations): New case statements for the new tokens.
281 * src/lex.c (percent_table): Add entries for %source_extension
282 and %header_extension.
283 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
285 2001-08-06 Marc Autret <autret_m@epita.fr>
287 * configure.in: Bump to 1.28c.
288 * doc/bison.texinfo: Texinfo thingies.
290 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
292 * tests/atconfig.in (CPPFLAGS): Add.
293 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
295 2001-08-03 Akim Demaille <akim@epita.fr>
299 2001-08-03 Akim Demaille <akim@epita.fr>
301 * tests/Makefile.am (check-local): Ship testsuite.
302 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
305 2001-08-03 Akim Demaille <akim@epita.fr>
307 * configure.in: Try using -Wformat when compiling.
309 2001-08-03 Akim Demaille <akim@epita.fr>
311 * configure.in: Bump to 1.28b.
313 2001-08-03 Akim Demaille <akim@epita.fr>
315 * src/complain.c: Adjust strerror_r portability issues.
317 2001-08-03 Akim Demaille <akim@epita.fr>
321 2001-08-03 Akim Demaille <akim@epita.fr>
323 * src/getargs.c, src/getarg.h (skeleton)): Constify.
324 * src/lex.c (literalchar): Avoid name clashes on `buf'.
325 * src/getargs.c: Include complain.h.
326 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
327 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
329 2001-08-03 Akim Demaille <akim@epita.fr>
331 * src/reader.c (readgram): Display hidden chars in error messages.
333 2001-08-03 Akim Demaille <akim@epita.fr>
335 Update to gettext 0.10.39.
337 2001-08-03 Akim Demaille <akim@epita.fr>
341 2001-08-01 Marc Autret <autret_m@epita.fr>
343 * doc/bison.texinfo: Update.
344 * doc/bison.1 (mandoc): Update.
345 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
346 * src/files.c: Support output files extensions computing.
347 (src_extension): New static variable.
348 (header_extension): New static variable.
350 (get_extension_index): New function, gets the index of an extension
351 filename in a string.
352 (compute_exts_from_gf): New function, computes extensions from the
353 grammar file extension.
354 (compute_exts_from_src): New functions, computes extensions from the
355 C source file extension, file given by ``-o'' option.
356 (compute_base_names): Update.
357 (output_files): Update.
359 2001-08-01 Robert Anisko <anisko_r@epita.fr>
361 * doc/bison.texi: Document @$.
362 (Locations): New section.
364 2001-07-18 Akim Demaille <akim@epita.fr>
366 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
367 * config/prev-version.txt, config/move-if-change: New.
368 * Makefile.am: Adjust.
370 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
372 * src/bison.simple (yyparse): Suppress warning `comparaison
373 between signed and unsigned'.
375 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
377 * src/getargs.h (raw_flag): Remove.
378 * src/getargs.c: Die on `-r'/`--raw'.
379 * src/lex.c (parse_percent_token): Die on `%raw'.
380 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
381 * tests/calc.at: Suppress test with option `--raw'.
383 2001-07-14 Akim Demaille <akim@epita.fr>
386 * configure.in: Require Autoconf 2.50.
387 Update to gettext 0.10.38.
389 2001-03-16 Akim Demaille <akim@epita.fr>
391 * doc/bison.texinfo: ANSIfy the examples.
393 2001-03-16 Akim Demaille <akim@epita.fr>
395 * getargs.c (skeleton): New variable.
396 (longopts): --skeleton is a new option.
397 (shortopts, getargs): -S is a new option.
398 * getargs.h: Declare skeleton.
399 * output.c (output_parser): Use it.
401 2001-03-16 Akim Demaille <akim@epita.fr>
403 * m4/strerror_r.m4: New.
404 * m4/error.m4: Run AC_FUNC_STRERROR_R.
405 * lib/error.h, lib/error.c: Update.
407 2001-03-16 Akim Demaille <akim@epita.fr>
409 * src/getargs.c (longopts): Clean up.
411 2001-02-21 Akim Demaille <akim@epita.fr>
413 * src/reader.c (gensym): `gensym_count' is your own.
414 Use a static buf to create the symbol name, as token_buffer is no
417 2001-02-08 Akim Demaille <akim@epita.fr>
419 * src/conflicts.c (conflict_report): Be sure not to append to res
420 between two calls, which could happen if both first sprintf were
421 skipped, but not the first cp += strlen.
423 2001-02-08 Akim Demaille <akim@epita.fr>
425 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
426 New, from fileutils 4.0.37.
427 * configure.in: Require Autoconf 2.49c. I took some time before
428 making this decision. This is the only way out for portability
429 issues in Bison, it would mean way too much duplicate effort to
430 import in Bison features implemented in 2.49c since 2.13.
431 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
433 2001-02-02 Akim Demaille <akim@epita.fr>
435 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
436 * lib/xalloc.h, lib/xmalloc.c: Update.
438 2001-01-19 Akim Demaille <akim@epita.fr>
440 Get rid of the ad hoc handling of token_buffer in the scanner: use
443 * src/lex.c (token_obstack): New.
444 (init_lex): Initialize it. No longer call...
445 (grow_token_buffer): this. Remove it.
446 Adjust all the places which used it to use the obstack.
448 2001-01-19 Akim Demaille <akim@epita.fr>
450 * src/lex.h: Rename all the tokens:
451 s/\bENDFILE\b/tok_eof/g;
452 s/\bIDENTIFIER\b/tok_identifier/g;
454 Let them be enums, not #define, to ease debugging.
457 2001-01-18 Akim Demaille <akim@epita.fr>
459 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
460 * src/lex.c (maxtoken, grow_token_buffer): Static.
462 2001-01-18 Akim Demaille <akim@epita.fr>
464 Since we now use obstacks, more % directives can be enabled.
466 * src/lex.c (percent_table): Also accept `%yacc',
467 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
469 Handle the actions for `%semantic_parser' and `%pure_parser' here,
470 instead of returning a token.
471 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
472 * src/reader.c (read_declarations): Adjust.
473 * src/files.c (open_files): Don't call `compute_base_names', don't
474 compute `attrsfile' since they depend upon data which might be
475 *in* the input file now.
476 (output_files): Do it here.
477 * src/output.c (output_headers): Document the fact that this patch
478 introduces a guaranteed SEGV for semantic parsers.
479 * doc/bison.texinfo: Document them.
480 * tests/suite.at: Exercise these %options.
482 2000-12-20 Akim Demaille <akim@epita.fr>
484 Also handle the output file (--verbose) with obstacks.
486 * files.c (foutput): Remove.
487 (output_obstack): New.
488 Adjust all dependencies.
489 * src/conflicts.c: Return a string.
490 * src/system.h (obstack_grow_string): Rename as...
491 (obstack_sgrow): this. Be ready to work with non literals.
492 (obstack_fgrow4): New.
494 2000-12-20 Akim Demaille <akim@epita.fr>
496 * src/files.c (open_files): Fix the computation of short_base_name
497 in the case of `-o foo.tab.c'.
499 2000-12-20 Akim Demaille <akim@epita.fr>
501 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
502 (copy_dollar): Now that everything uses obstacks, get rid of the
505 2000-12-20 Akim Demaille <akim@epita.fr>
507 * src/files.c (open_files): Actually the `.output' file is based
508 on the short_base_name, not base_name.
509 * tests/suite.at (Checking output file names): Adjust.
511 2000-12-20 Akim Demaille <akim@epita.fr>
513 * src/bison.s1: Remove, we now use directly...
514 * src/bison.simple: this.
515 * src/Makefile.am: Use pkgdata instead of data.
517 2000-12-20 Akim Demaille <akim@epita.fr>
519 * src/files.c (guard_obstack): New.
520 (open_files): Initialize it.
521 (output_files): Dump it...
522 * src/files.h: Export it.
523 * src/reader.c (copy_guard): Use it.
525 2000-12-19 Akim Demaille <akim@epita.fr>
527 * src/files.c (outfile, defsfile, actfile): Removed as global
529 (open_files): Don't compute them.
530 (output_files): Adjust.
531 (base_name, short_base_name): Be global.
534 2000-12-19 Akim Demaille <akim@epita.fr>
536 * src/files.c (strsuffix): New.
537 (stringappend): Be just like strcat but allocate.
538 (base_names): Eve out from open_files.
539 Try to simplify the rather hairy computation of base_name and
541 (open_files): Use it.
542 * tests/suite.at (Checking output file names): New test.
544 2000-12-19 Akim Demaille <akim@epita.fr>
546 * src/system.h (obstack_grow_literal_string): Rename as...
547 (obstack_grow_string): this.
548 * src/output.c (output_parser): Recognize `%% actions' instead of
550 * src/bison.s1: s/$/%% actions/.
551 * src/bison.hairy: Likewise.
553 2000-12-19 Akim Demaille <akim@epita.fr>
555 * src/output.c (output_parser): Compute the `#line' lines when
557 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
558 Suggested by Hans Aberg.
560 2000-12-19 Akim Demaille <akim@epita.fr>
562 Let the handling of the skeleton files be local to the procedures
565 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
567 (fparser, open_extra_files): Remove.
568 (open_files, output_files): Don't take care of fparser.
569 * src/files.h: Adjust.
570 * src/output.c (output_parser): Open and close the file to the
572 * src/reader.c (read_declarations): When %semantic_parser, open
575 2000-12-19 Akim Demaille <akim@epita.fr>
577 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
578 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
580 2000-12-19 Akim Demaille <akim@epita.fr>
582 * src/files.c (open_files): Yipee! We no longer need all the code
583 looking for `/tmp' since we have no tmp file.
585 2000-12-19 Akim Demaille <akim@epita.fr>
587 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
589 * src/files.c (open_files): Less dependency on MSDOS etc.
591 2000-12-14 Akim Demaille <akim@epita.fr>
593 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
594 Provide a default definition.
595 Use it when executing the default @ action.
596 * src/reader.c (reader_output_yylsp): No longer include
597 `timestamp' and `text' in the default YYLTYPE.
599 2000-12-12 Akim Demaille <akim@epita.fr>
601 * src/reader.c (copy_definition, parse_union_decl, copy_action)
602 (copy_guard): Quote the file names.
603 Reported by Laurent Mascherpa.
605 2000-12-12 Akim Demaille <akim@epita.fr>
607 * src/output.c (output_headers, output_program, output): Be sure
608 to escape special characters when outputting filenames.
609 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
610 (output_headers): Don't depend on them, Use ACTSTR.
612 2000-11-17 Akim Demaille <akim@epita.fr>
614 * lib/obstack.h: Formatting changes.
615 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
616 prevents type checking.
617 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
618 cast the value to (void *): assigning a `foo *' to a `void *'
620 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
621 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
624 2000-11-17 Akim Demaille <akim@epita.fr>
626 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
628 (suite.m4, regression.m4, calc.m4): these.
629 * tests/atgeneral.m4: Update from CVS Autoconf.
631 2000-11-17 Akim Demaille <akim@epita.fr>
633 * tests/regression.m4 (%union and --defines): New test,
634 demonstrating a current bug in the obstack implementation.
636 2000-11-17 Akim Demaille <akim@epita.fr>
638 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
640 Use them to declare the variables which are global or local to
643 2000-11-17 Akim Demaille <akim@epita.fr>
645 * acconfig.h: Remove, no longer used.
647 2000-11-07 Akim Demaille <akim@epita.fr>
649 * src: s/Copyright (C)/Copyright/g.
651 2000-11-07 Akim Demaille <akim@epita.fr>
653 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
655 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
657 2000-11-07 Akim Demaille <akim@epita.fr>
659 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
660 Merge in a single CPP if/else.
662 2000-11-07 Akim Demaille <akim@epita.fr>
664 * src/output.c (output): Remove useless variables.
665 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
666 argument `data' for consistency with the prototypes.
668 (obstack_copy, obstack_copy0): Rename the second argument as
669 `address' for consistency. Qualify it `const'.
670 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
671 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
672 `const' their input argument (`data' or `address').
673 Adjust the corresponding macros to include `const' in casts.
675 2000-11-03 Akim Demaille <akim@epita.fr>
677 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
678 s/PFILE1/BISON_HAIRY/.
681 2000-11-03 Akim Demaille <akim@epita.fr>
683 For some reason, this was not applied.
685 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
686 `unlink': it's no longer used.
688 2000-11-03 Akim Demaille <akim@epita.fr>
690 * src/files.c (skeleton_find): New function, eved out of...
691 (open_files, open_extra_files): here.
693 2000-11-03 Akim Demaille <akim@epita.fr>
697 * src/files.c (obstack_save): New function.
699 (output_files): this.
701 * src/main.c (main): Don't use `atexit' to register `done', since
702 it no longer has to remove tmp files, just call `output_files'
703 when there are no errors.
705 2000-11-02 Akim Demaille <akim@epita.fr>
707 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
708 `unlink': it's no longer used.
709 * src/files.h: Formatting changes.
711 2000-11-02 Akim Demaille <akim@epita.fr>
713 Remove the last uses of mktemp and unlink/delete.
715 * src/files.c (fdefines, ftable): Removed.
716 (defines_ostack, table_obstack): New.
717 Adjust dependencies of the former into uses of the latter.
718 * src/output.c (output_short_or_char_table, output_short_table):
719 Convert to using obstacks.
720 * src/reader.c (copy_comment2): Accept one FILE * and two
722 (output_token_defines, reader_output_yylsp): Use obstacks.
723 * src/system.h (obstack_fgrow3): New.
725 2000-11-01 Akim Demaille <akim@epita.fr>
727 Change each use of `fattrs' into a use of `attrs_obstack'.
729 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
730 * src/files.c (fattrs): Remove.
731 (attrs_obstack): New.
732 Adjust all dependencies.
733 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
735 2000-11-01 Akim Demaille <akim@epita.fr>
738 Change each use of `faction' into a use of `action_obstack'.
740 * lib/obstack.h, lib/obstack.c: New files.
741 * src/files.c (faction): Remove.
742 (action_obstack): New.
743 Adjust all dependencies.
745 2000-10-20 Akim Demaille <akim@epita.fr>
747 * lib/quote.h (PARAMS): New macro. Use it.
749 2000-10-16 Akim Demaille <akim@epita.fr>
751 * src/output.c (output_short_or_char_table): New function.
752 (output_short_table, output_token_translations): Use it.
753 (goto_actions): Use output_short_table.
755 2000-10-16 Akim Demaille <akim@epita.fr>
757 * src/symtab.c (bucket_new): New function.
760 * src/output.c (output_short_table): New argument to display the
761 comment associated with the table.
763 (output_gram): Use it.
764 (output_rule_data): Nicer output layout for YYTNAME.
766 2000-10-16 Akim Demaille <akim@epita.fr>
768 * src/lex.c (read_typename): New function.
770 * src/reader.c (copy_dollar): Likewise.
772 2000-10-16 Akim Demaille <akim@epita.fr>
774 * src/reader.c (copy_comment2): Expect the input stream to be on
775 the `/' which is suspected to open a comment, instead of being
776 called after `//' or `/*' was read.
777 (copy_comment, copy_definition, parse_union_decl, copy_action)
778 (copy_guard): Adjust.
780 2000-10-16 Akim Demaille <akim@epita.fr>
782 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
783 `read_signed_integer'.
785 2000-10-16 Akim Demaille <akim@epita.fr>
787 * src/reader.c (copy_dollar): New function.
788 (copy_guard, copy_action): Use it.
790 2000-10-16 Akim Demaille <akim@epita.fr>
792 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
793 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
794 New files, from Fileutils 4.0.27.
795 * src/main.c (printable_version): Remove.
796 * src/lex.c, src/reader.c: Use `quote'.
798 2000-10-04 Akim Demaille <akim@epita.fr>
800 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
802 2000-10-04 Akim Demaille <akim@epita.fr>
804 * doc/bison.texinfo: Various typos spotted by Neil Booth.
806 2000-10-04 Akim Demaille <akim@epita.fr>
808 When a literal string is used to define two different tokens,
809 `bison -v' segfaults.
810 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
812 * tests/regression.m4: New file.
813 Include the core of the sample provided by Piotr Gackiewicz.
814 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
817 2000-10-04 Akim Demaille <akim@epita.fr>
819 * src/reader.c (parse_expect_decl): Keep `count' within the size
823 2000-10-02 Paul Eggert <eggert@twinsun.com>
825 * bison.s1 (yyparse): Assign the default value
826 unconditionally, to avoid a GCC warning and make the parser a
829 2000-10-02 Akim Demaille <akim@epita.fr>
831 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
834 2000-10-02 Akim Demaille <akim@epita.fr>
836 * src/derives.c, src/print.c, src/reduce.c: To ease the
837 translation, move some `\n' out of the translated strings.
839 2000-10-02 Akim Demaille <akim@epita.fr>
841 The location tracking mechanism is precious for parse error
842 messages. Nevertheless, it is enabled only when `@n' is used in
843 the grammar, which is a different issue (you can use it in error
844 message, but not in the grammar per se). Therefore, there should
845 be another means to enable it.
847 * src/getargs.c (getargs): Support `--locations'.
849 * src/getargs.h (locationsflag): Export it.
850 * src/lex.c (percent_table): Support `%locations'.
851 * src/reader.c (yylsp_needed): Remove this variable, now replaced
852 with `locationsflag'.
853 * doc/bison.texinfo: Document `--locations' and `%locations'.
855 * tests/calc.m4: Test it.
857 For regularity of the names, replace each
858 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
859 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
860 In addition replace each `flag' with `_flag'.
862 2000-10-02 Akim Demaille <akim@epita.fr>
864 Also test parse error messages, including with YYERROR_VERBOSE.
866 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
868 Use it to check the computations.
869 Use it to check `nonassoc' is honored.
870 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
872 (_AT_CHECK_CALC): Adjust to this option.
873 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
875 2000-10-02 Akim Demaille <akim@epita.fr>
877 Test also `--verbose', `--defines' and `--name-prefix'. Testing
878 the latter demonstrates a flaw in the handling of non debugging
879 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
880 was used in order to simplify:
896 unfortunately this leads to a CPP conflict when
897 `--name-prefix=foo' is used since it produces `#define yydebug
900 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
901 (YYDPRINTF): New macro.
903 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
905 Also test `--verbose', `--defines' and `--name-prefix'.
907 2000-10-02 Akim Demaille <akim@epita.fr>
909 Improve the readability of the produced parsers.
911 * src/bison.s1: Formatting changes.
912 Improve the comment related to the `$' mark.
913 (yydefault): Don't fall through to `yyresume': `goto' there.
914 * src/output.c (output_parser): When the `$' is met, skip the end
916 New variable, `number_of_dollar_signs', to check there's exactly
917 one `$' in the parser skeleton.
919 2000-10-02 Akim Demaille <akim@epita.fr>
921 * lib/xstrdup.c: New file, from the fileutils.
922 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
923 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
924 instead of strlen + xmalloc + strcpy.
925 * src/symtab.c (copys): Remove, use xstrdup instead.
927 2000-10-02 Akim Demaille <akim@epita.fr>
929 * src/gram.h (associativity): New enum type which replaces the
930 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
931 `right_assoc', `left_assoc' and `non_assoc'.
932 Adjust all dependencies.
933 * src/reader.c: Formatting changes.
934 (LTYPESTR): Don't define it, use it as a literal in
935 `reader_output_yylsp'.
936 * src/symtab.h (symbol_class): New enum type which replaces the
937 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
938 `sunknown', `stoken and `snterm'.
940 2000-10-02 Akim Demaille <akim@epita.fr>
942 * src/getargs.c (fixed_outfiles): Rename as...
943 (yaccflag): for consistency and accuracy.
946 2000-10-02 Akim Demaille <akim@epita.fr>
948 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
949 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
950 difficult and introduced a lot of core dump. It turns out that
951 Bison used an implementation of `xmalloc' based on `calloc', and
952 at various places it does depend upon the initialization to 0. I
953 have not tried to isolate the pertinent places, and all the former
954 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
955 someone should address this issue.
957 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
958 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
961 * src/warshall.h: New file.
964 2000-10-02 Akim Demaille <akim@epita.fr>
966 Various anti-`extern in *.c' changes.
968 * src/system.h: Include `assert.h'.
970 2000-10-02 Akim Demaille <akim@epita.fr>
972 * src/state.h (nstates, final_state, first_state, first_shift)
973 (first_reduction): Move their exportation from here...
974 * src/LR0.h: to here.
976 * src/getargs.c (statisticsflag): New variable.
977 Add support for `--statistics'.
980 Remove a lot of now useless `extern' statements in most files.
982 2000-10-02 Akim Demaille <akim@epita.fr>
984 * src/LR0.h: New file.
987 2000-10-02 Akim Demaille <akim@epita.fr>
989 * src/print.h: New file.
991 * src/print.c: Formatting and ordering changes.
992 (verbose, terse): Replace with...
993 (print_results): this new function.
996 2000-10-02 Akim Demaille <akim@epita.fr>
998 * src/conflicts.c (conflict_report): New function.
999 (conflict_log, verbose_conflict_log): Replace with...
1000 (print_conflicts): this function.
1001 Adjust dependencies.
1002 * src/conflicts.h: New file.
1003 Propagate its inclusion.
1005 2000-10-02 Akim Demaille <akim@epita.fr>
1007 * src/nullable.h: New file.
1008 Propagate its inclusion.
1009 * src/nullable.c: Formatting changes.
1011 2000-10-02 Akim Demaille <akim@epita.fr>
1013 * src/reduce.h: New file.
1014 Propagate its inclusion.
1015 * src/reduce.c: Topological sort and other formatting changes.
1016 (bool, TRUE, FALSE): Move their definition to...
1017 * src/system.h: here.
1019 2000-10-02 Akim Demaille <akim@epita.fr>
1021 * src/files.c: Formatting changes.
1022 (tryopen, tryclose, openfiles): Rename as...
1023 (xfopen, xfclose, open_files): this.
1024 (stringappend): static.
1025 * src/files.h: Complete the list of exported symbols.
1028 2000-10-02 Akim Demaille <akim@epita.fr>
1030 * src/reader.h: New file.
1031 Propagate its use instead of tedious list of `extern' and
1033 * src/reader.c: Formatting changes, topological sort,
1036 2000-10-02 Akim Demaille <akim@epita.fr>
1038 * src/lex.h: Prototype `lex.c' exported functions.
1039 * src/reader.c: Adjust.
1040 * src/lex.c: Formatting changes.
1041 (safegetc): Rename as...
1044 2000-10-02 Akim Demaille <akim@epita.fr>
1046 * src/lalr.h: New file.
1047 Propagate its inclusion instead of prototypes and `extern'.
1048 * src/lalr.c: Formatting changes, topological sorting etc.
1050 2000-10-02 Akim Demaille <akim@epita.fr>
1052 * src/output.c (token_actions): Introduce a temporary array,
1053 YYDEFACT, that makes it possible for this function to use
1056 2000-10-02 Akim Demaille <akim@epita.fr>
1058 `user_toknums' is output as a `short[]' in `output.c', while it is
1059 defined as a `int[]' in `reader.c'. For consistency with the
1060 other output tables, `user_toknums' is now defined as a table of
1063 * src/reader.c (user_toknums): Be a short table instead of an int
1065 Adjust dependencies.
1067 Factor the short table outputs.
1069 * src/output.c (output_short_table): New function.
1070 * src/output.c (output_gram, output_stos, output_rule_data)
1071 (output_base, output_table, output_check): Use it.
1073 2000-10-02 Akim Demaille <akim@epita.fr>
1075 * src/output.c (output): Topological sort of the functions, in
1076 order to get rid of the `static' prototypes.
1077 No longer use `register'.
1078 * src/output.h: New file.
1079 Propagate its inclusion in files explicitly prototyping functions
1082 2000-09-21 Akim Demaille <akim@epita.fr>
1084 * src/atgeneral.m4: Update from Autoconf.
1086 2000-09-21 Akim Demaille <akim@epita.fr>
1088 * src/closure.h: New file.
1089 * src/closure.c: Formatting changes, topological sort over the
1090 functions, use of closure.h.
1091 (initialize_closure, finalize_closure): Rename as...
1092 (new_closure, free_closure): these. Adjust dependencies.
1093 * src/LR0.c: Formatting changes, topological sort, use of
1095 (initialize_states): Rename as...
1097 * src/Makefile.am (noinst_HEADERS): Adjust.
1099 2000-09-20 Akim Demaille <akim@epita.fr>
1101 * src/acconfig.h: Don't protect config.h against multiple
1103 Don't define PARAMS.
1104 * src/system.h: Define PARAMS.
1105 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1106 purpose of config.h. system.h must not try to fix wrong
1107 definitions in config.h.
1109 2000-09-20 Akim Demaille <akim@epita.fr>
1111 * src/derives.h: New file.
1112 * src/main.c, src/derives.h: Use it.
1114 * src/Makefile.am (noinst_HEADERS): Adjust.
1116 2000-09-20 Akim Demaille <akim@epita.fr>
1118 * tests/atgeneral.m4: Update from Autoconf.
1119 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1120 (AT_CHECK_CALC): New macros.
1121 Use these macros to test bison with options `', `--raw',
1122 `--debug', `--yacc', `--yacc --debug'.
1124 2000-09-19 Akim Demaille <akim@epita.fr>
1126 * src/output.c: Formatting changes.
1127 * src/machine.h: Remove, leaving its contents in...
1128 * src/system.h: here.
1130 Adjust all dependencies on stdio.h and machine.h.
1131 * src/getargs.h: New file.
1132 Let all `extern' declarations about getargs.c be replaced with
1133 inclusion of `getargs.h'.
1134 * src/Makefile.am (noinst_HEADERS): Adjust.
1136 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1138 (yyerror): Returns void, not int.
1139 * doc/bison.texinfo: Formatting changes.
1141 2000-09-19 Akim Demaille <akim@epita.fr>
1143 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1146 2000-09-18 Akim Demaille <akim@epita.fr>
1148 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1149 * src/Makefile.am (INCLUDES): Don't.
1150 Be ready to fetch headers in lib/.
1152 2000-09-18 Akim Demaille <akim@epita.fr>
1154 * doc/bison.texinfo: Update the copyright.
1155 ANSIfy and GNUify the examples.
1156 Remove the old menu.
1158 2000-09-18 Akim Demaille <akim@epita.fr>
1160 First set of tests: use the `calc' example from the documentation.
1162 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1163 is defined only when YYDEBUG is.
1164 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1165 * src/files.c (tryopen, tryclose): Formatting changes.
1166 Move to the top and be static.
1167 * src/reader.c (read_signed_integer): Likewise.
1168 * tests/calc.m4: New file.
1169 * Makefile.am, suite.m4: Adjust.
1170 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1172 2000-09-18 Akim Demaille <akim@epita.fr>
1174 Add support for an Autotest test suite for Bison.
1176 * m4/m4.m4, m4/atconfig.m4: New files.
1177 * m4/Makefile.am (EXTRA_DIST): Adjust.
1178 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
1180 * src/getargs.c: Display a more standard --version message.
1181 * src/reader.c (reader): Formatting changes.
1182 No longer depend upon VERSION_STRING.
1183 * configure.in: No longer use `dnl'.
1184 Set up the test suite and the new directory `tests/.
1185 (VERSION_STRING): Remove.
1187 2000-04-14 Akim Demaille <akim@epita.fr>
1189 * src/reader.c (copy_comment2): New function, same as former
1190 `copy_comment', but outputs into two FILE *.
1191 (copy_comment): Use it.
1192 (parse_union_decl): Use it.
1193 (get_type, parse_start_decl): Use the same `invalid' message.
1194 (parse_start_decl, parse_union_decl): Use the same `multiple'
1196 (parse_union_decl, copy_guard, copy_action): Use the same
1197 `unmatched' message.
1198 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1200 2000-03-31 Akim Demaille <akim@epita.fr>
1202 * src/files.c (tryopen, tryclose): Move to the top.
1205 2000-03-31 Akim Demaille <akim@epita.fr>
1207 * src/main.c (main): Don't call `done', exit does it.
1209 2000-03-31 Akim Demaille <akim@epita.fr>
1211 * allocate.c: s/return (foo)/return foo/.
1214 * output.c: Likewise.
1215 * reader.c: Likewise.
1216 * symtab.c: Likewise.
1217 * vmsgetargs.c: Likewise.
1219 2000-03-31 Akim Demaille <akim@epita.fr>
1221 Clean up the error reporting functions.
1223 * src/report.c: New file.
1224 * src/report.h: Likewise.
1225 * src/Makefile.am: Adjust.
1226 * m4/error.m4: New file.
1227 * m4/Makefile.am: Adjust.
1228 * configure.in (jm_PREREQ_ERROR): Call it.
1229 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1231 (fatal, fatals): Remove. All callers use complain.c::fatal.
1232 (warn, warni, warns, warnss, warnss): Remove. All callers use
1233 complain.c::complain.
1234 (toomany): Remove, use fatal instead.
1235 * src/files.c (done): No argument, use complain_message_count.
1236 * src/main.c (main): Register `done' to `atexit'.
1238 * src/getargs.c (usage): More `fputs', less `fprintf'.
1240 2000-03-28 Akim Demaille <akim@epita.fr>
1242 * lib/: New directory.
1243 * Makefile.am (SUBDIRS): Adjust.
1244 * configure.in: Adjust.
1245 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1247 * src/alloca.c: Moved to lib/.
1248 * src/getopt.c: Likewise.
1249 * src/getopt1.c: Likewise.
1250 * src/getopt.h: Likewise.
1251 * src/ansi2knr.c: Likewise.
1252 * src/ansi2knr.1: Likewise.
1253 * src/Makefile.am: Adjust.
1254 * lib/Makefile.am: New file.
1256 2000-03-28 Akim Demaille <akim@epita.fr>
1258 * src/getargs.c (usage): Refresh the help message.
1260 2000-03-17 Akim Demaille <akim@epita.fr>
1262 * src/getopt1.c: Updated from textutils 2.0e
1263 * src/getopt.c: Likewise.
1264 * src/getopt.h: Likewise.
1266 2000-03-17 Akim Demaille <akim@epita.fr>
1268 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1269 the file name, not the whole `#line LINE FILE'.
1271 2000-03-17 Akim Demaille <akim@epita.fr>
1273 On syntax errors, report the token on which we choked.
1275 * src/bison.s1 (yyparse): In the label yyerrlab, when
1276 YYERROR_VERBOSE, add yychar in msg.
1278 2000-03-17 Akim Demaille <akim@epita.fr>
1280 * src/reader.c (copy_at): New function.
1281 (copy_guard): Use it.
1282 (copy_action): Use it.
1284 2000-03-17 Akim Demaille <akim@epita.fr>
1286 Be kind to translators, save some useless translations.
1288 * src/main.c (banner): New function.
1289 (fatal_banner): Use it.
1290 (warn_banner): Use it.
1292 2000-03-17 Akim Demaille <akim@epita.fr>
1294 * src/reader.c (copy_definition): Use copy_string and
1295 copy_comment. Removed now unused `match', `ended',
1297 (copy_comment, copy_string): Moved, to be visible from
1300 2000-03-17 Akim Demaille <akim@epita.fr>
1302 * src/reader.c (copy_string): Declare `static inline'. No
1303 problems with inline, since it is checked by configure.
1304 (copy_comment): Likewise.
1306 2000-03-17 Akim Demaille <akim@epita.fr>
1308 * src/reader.c (packsymbols): Formatting changes.
1310 2000-03-17 Akim Demaille <akim@epita.fr>
1312 * src/reader.c (copy_comment): New function, factored out from:
1313 (copy_action): Use it. Removed now unused `match', `ended',
1315 (copy_guard): Likewise.
1317 2000-03-17 Akim Demaille <akim@epita.fr>
1319 * src/reader.c (copy_string): New function, factored out from:
1320 (copy_action): Use it.
1321 (copy_guard): Likewise.
1323 2000-03-17 Akim Demaille <akim@epita.fr>
1325 Change the handling of @s so that they behave exactly like $s.
1326 There is now a pseudo variable @$ (readble and writable), location
1327 of the lhs of the rule (by default ranging from the location of
1328 the first symbol of the rhs, to the location of the last symbol,
1329 or, if the rhs is empty, YYLLOC).
1331 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1333 (yyparse): When providing a default semantic action, provide a
1334 default location action.
1335 (after the $): No longer change `*YYLSP', just stack YYLOC the
1336 same way you stack YYVAL.
1337 * src/reader.c (read_declarations): Use warns.
1338 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1339 (copy_action, case '@'): Likewise.
1340 Use a standard error message, to save useless work from
1343 2000-03-17 Akim Demaille <akim@epita.fr>
1345 * src/bison.s1: Formatting and cosmetics changes.
1346 * src/reader.c: Likewise.
1347 Update the Copyright notice.
1349 2000-03-17 Akim Demaille <akim@epita.fr>
1351 * src/bison.s1 (#line): All set to `#line' only, since the
1352 Makefile now handles them.
1354 2000-03-16 Akim Demaille <akim@epita.fr>
1356 * src/output.c (output_rule_data): Output the documentation of
1358 (Copyright notice): Update.
1361 2000-03-16 Akim Demaille <akim@epita.fr>
1363 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1364 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1365 One `#if YYDEBUG' remains, since it uses variables which are
1366 defined only if `YYDEBUG != 0'.
1368 2000-03-16 Akim Demaille <akim@epita.fr>
1370 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1371 and related variables so that the similarities are highlighted.
1373 2000-03-16 Akim Demaille <akim@epita.fr>
1375 * src/bison.s1: Properly indent CPP directives.
1377 2000-03-16 Akim Demaille <akim@epita.fr>
1379 * src/bison.s1: Properly indent the `alloca' CPP section.
1381 2000-03-16 Akim Demaille <akim@epita.fr>
1383 Do not hard code values of directories in `configure.in'.
1384 Update the `configure' tool chain.
1386 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1388 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1389 (AC_OUTPUT): Add m4/Makefile.
1390 Bump to bison 1.28a, 1.29 has never been released.
1391 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1392 handled via src/Makefile.am.
1393 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1394 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1396 * Makefile.am (SUBDIRS): Add m4.
1397 (ACLOCAL_AM_FLAGS): New variable.
1398 (AUTOMAKE_OPTIONS): Add check-news.
1399 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1400 the proper line number and file name.
1401 (DEFS): Propagate the location of bison library files and of the
1403 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1405 * acinclude.m4: Remove, replaced by the directory m4.
1406 * m4/Makefile.am (EXTRA_DIST): New variable.
1407 * m4/gettext.m4: New file, from the fileutils.
1408 * m4/lcmessage.m4: Likewise
1409 * m4/progtest.m4: Likewise.
1410 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1412 2000-03-10 Akim Demaille <akim@epita.fr>
1415 Formatting changes of various comments.
1416 Respect the GNU coding standards at various places.
1417 Don't use `_()' when no translation is needed.
1419 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1422 OS/2 honors TMPDIR environment variable.
1424 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1426 * doc/bison.texinfo: Tweaked spelling and grammar.
1428 Removed reference to price of printed copy.
1429 Mention BISON_SIMPLE and BISON_HAIRY.
1431 1999-12-13 Jesse Thilo <jthilo@gnu.org>
1433 * configure.in, NEWS:
1434 Bison 1.29 released.
1436 1999-10-27 Jesse Thilo <jthilo@gnu.org>
1438 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1439 Added reference card.
1441 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1443 * po/ru.po: Added Russian translation.
1445 1999-07-26 Jesse Thilo <jthilo@gnu.org>
1447 * configure.in: Added Russian translation.
1449 1999-07-06 Jesse Thilo <jthilo@gnu.org>
1451 * configure.in, NEWS, README:
1452 Released version 1.28.
1454 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1457 Squashed redefinition warning on some systems.
1459 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1460 Have configure build version string instead of relying on ANSI string
1463 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1465 * po/POTFILES.in: Got rid of version.c.
1467 1999-06-14 Jesse Thilo <jthilo@gnu.org>
1469 * acconfig.h, configure.in:
1470 Have configure build version string instead of relying on ANSI string
1473 1999-06-08 Jesse Thilo <jthilo@gnu.org>
1476 Dropped mention of `+' for long-named options.
1478 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1480 * src/files.c: Added <unistd.h> for unlink().
1482 * src/Makefile.am, src/system.h:
1485 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1487 * README: Added a FAQ list.
1489 * configure.in, acconfig.h:
1492 1999-05-30 Jesse Thilo <jthilo@gnu.org>
1494 * doc/FAQ, doc/Makefile.am:
1497 1999-05-19 Jesse Thilo <jthilo@gnu.org>
1499 * src/alloc.h, src/symtab.h, src/version.c:
1500 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1502 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1504 * src/.cvsignore, src/Makefile.am:
1505 Reorganized: sources in `src', documentation in `doc'.
1507 * src/lex.c (literalchar):
1508 fixed the code for escaping double quotes (thanks
1511 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1513 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1514 Adjusted paths to reflect directory reorganization.
1516 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1518 * doc/.cvsignore, doc/Makefile.am:
1519 Reorganized: sources in `src', documentation in `doc'.
1521 1999-04-18 Jesse Thilo <jthilo@gnu.org>
1524 Updated AC_INIT file to reflect directory reorganization.
1526 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1527 Reorganized: sources in `src', documentation in `doc'.
1529 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1532 Don't declare calloc() and realloc() if not necessary.
1534 1999-04-13 Jesse Thilo <jthilo@gnu.org>
1536 * configure.in, acconfig.h, acinclude.m4:
1537 Don't declare calloc() and realloc() if not necessary.
1539 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1541 * po/.cvsignore: Added i18n support.
1543 1999-03-23 Jesse Thilo <jthilo@gnu.org>
1545 * acconfig.h, configure.in, Makefile.am:
1548 1999-03-22 Jesse Thilo <jthilo@gnu.org>
1550 * src/bison.s1: Fixed #line numbers.
1552 1999-03-15 Jesse Thilo <jthilo@gnu.org>
1554 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1555 Added PO files from Translation Project.
1557 1999-03-03 Jesse Thilo <jthilo@gnu.org>
1560 Added support for non-ANSI compilers (ansi2knr).
1562 1999-02-16 Jesse Thilo <jthilo@gnu.org>
1564 * configure.in: Bumped version number to 1.27.
1567 Added `bison.simple' to list of files removed by `make distclean'.
1569 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1571 * src/files.c, src/files.h:
1572 Defined locations of parser files in config.h instead of Makefile.
1574 1999-02-12 Jesse Thilo <jthilo@gnu.org>
1576 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1577 Defined locations of parser files in config.h instead of Makefile.
1579 1999-02-09 Jesse Thilo <jthilo@gnu.org>
1582 Removed inappropriate use of $< macro.
1584 1999-02-05 Jesse Thilo <jthilo@gnu.org>
1586 * po/Makefile.in.in, po/POTFILES.in:
1587 Add `po' directory skeleton.
1589 1999-01-27 Jesse Thilo <jthilo@gnu.org>
1591 * README: Document help-bison list.
1593 * configure.in: Add check for mkstemp().
1595 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1597 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1598 Hush a few compiler warnings.
1601 Add tryclose(), which verifies that fclose was successful.
1602 Hush a couple of compiler warnings.
1604 1999-01-20 Jesse Thilo <jthilo@gnu.org>
1606 * Makefile.am, OChangeLog:
1607 ChangeLog is now automatically generated. Include the old version as
1610 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1612 * 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:
1615 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1617 * doc/bison.texinfo: Fix formatting glitch.
1619 * doc/bison.texinfo: Update FSF address.
1621 1999-01-14 Jesse Thilo <jthilo@gnu.org>
1623 * acconfig.h: Update FSF address.
1625 1999-01-08 Jesse Thilo <jthilo@gnu.org>
1628 Don't define PACKAGE here, since config.h defines it.
1630 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1632 * src/reader.c: Update copyright date.
1635 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1636 favor of output directly to stderr (avoids buffer overruns).
1638 * src/reader.c: Some checks for premature EOF.
1640 * 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:
1641 Use prototypes if the compiler understands them.
1643 * src/files.c: Honor TMPDIR on Unix hosts.
1644 Use prototypes if the compiler understands them.
1647 Fix a couple of buffer overrun bugs.
1648 Use prototypes if the compiler understands them.
1650 * src/system.h: Include unistd.h and ctype.h.
1651 Use #ifdef instead of #if for NLS symbols.
1653 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1655 * doc/bison.texinfo:
1656 Delete comment "consider using @set for edition number, etc..." since
1657 we now are doing so.
1659 1998-12-30 Jesse Thilo <jthilo@gnu.org>
1662 Use prototypes if the compiler understands them.
1664 * NEWS: Document 1.26 highlights.
1666 * Makefile.am: Require Automake 1.3 or later.
1669 Use prototypes if the compiler understands them.
1671 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1674 Use VERSION symbol from automake for version number.
1676 1998-12-29 Jesse Thilo <jthilo@gnu.org>
1678 * acconfig.h, configure.in, version.cin:
1679 Use VERSION symbol from automake for version number.
1681 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1684 Distribute original version of simple parser (bison.s1), not built
1685 version (bison.simple).
1687 1998-11-28 Jesse Thilo <jthilo@gnu.org>
1689 * doc/bison.texinfo: Add info dir entry.
1691 * doc/bison.texinfo:
1692 Let automake put version number into documentation.
1694 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1696 * src/bison.cld, src/build.com, src/vmshlp.mar:
1697 Add non-RCS files from /gd/gnu/bison.
1699 1998-11-26 Jesse Thilo <jthilo@gnu.org>
1702 Document the BISON_HAIRY and BISON_SIMPLE variables.
1704 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1706 * src/version.c: Build version.c automatically.
1709 Fix token numbering (used to start at 258, not 257).
1711 * src/system.h: Include config.h.
1713 * src/getargs.c: Update bug report address.
1715 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1716 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1718 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1721 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1723 * configure.in, version.cin:
1724 Build version.c automatically.
1726 * AUTHORS: Add AUTHORS file.
1728 * README: Update bug report address.
1731 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1733 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1736 1998-11-25 Jesse Thilo <jthilo@gnu.org>
1738 * doc/bison.texinfo: Clean up some formatting.
1740 1998-05-05 Richard Stallman <rms@gnu.org>
1742 * doc/bison.texinfo:
1743 Explain better why to make a pure parser.
1745 1998-01-05 Richard Stallman <rms@gnu.org>
1747 * src/files.c (openfiles):
1748 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1749 find a temporary directory, if possible. Do not unlink files while
1752 1997-08-25 Richard Stallman <rms@gnu.org>
1754 * src/reader.c (stack_offset;):
1755 Change some warni to warns.
1757 * src/lex.c (literalchar): Use warns, not warni.
1759 1997-06-28 Richard Stallman <rms@gnu.org>
1761 * src/bison.s1: Add a Bison version comment.
1763 * src/main.c (fatal, warn, berror):
1766 1997-06-28 Richard Stallman <rms@gnu.org>
1768 * Makefile.in (bison_version): New variable.
1769 (dist): Use that variable.
1770 (bison.s1): Substitute the Bison version into bison.simple.
1772 * bison.simple: Add a Bison version comment.
1774 1997-06-18 Richard Stallman <rms@gnu.org>
1776 * src/main.c (fatal, warn, berror):
1777 Make error messages standard.
1778 (toomany): Improve error message text.
1780 * 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:
1781 new.h renamed to alloc.h.
1783 1997-06-18 Richard Stallman <rms@gnu.org>
1785 * Makefile.in: new.h renamed to alloc.h.
1787 1997-05-24 Richard Stallman <rms@gnu.org>
1789 * src/lex.c (literalchar):
1790 Fix the code for escaping \, " and '.
1792 (lex): Avoid trouble when there are many chars
1793 to discard in a char literal with just several chars in it.
1795 1997-05-17 Richard Stallman <rms@gnu.org>
1798 Use malloc, if using alloca is troublesome.
1799 (YYSTACK_USE_ALLOCA): New flag macro.
1800 Define it for some systems and compilers.
1801 (YYSTACK_ALLOC): New macro.
1802 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1803 If it was malloc'd, free it.
1805 1997-05-17 Richard Stallman <rms@gnu.org>
1808 Use malloc, if using alloca is troublesome.
1809 (YYSTACK_USE_ALLOCA): New flag macro.
1810 Define it for some systems and compilers.
1811 (YYSTACK_ALLOC): New macro.
1812 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1813 If it was malloc'd, free it.
1815 1997-04-23 Richard Stallman <rms@gnu.org>
1818 (alloca) [__hpux]: Always define as __builtin_alloca.
1820 1997-04-23 Richard Stallman <rms@gnu.org>
1823 (alloca) [__hpux]: Always define as __builtin_alloca.
1825 1997-04-22 Richard Stallman <rms@gnu.org>
1828 [__hpux]: Include alloca.h (right for HPUX 10)
1829 instead of declaring alloca (right for HPUX 9).
1831 * src/bison.s1 (__yy_memcpy):
1832 Declare arg `count' as unsigned int.
1833 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1835 1997-04-22 Richard Stallman <rms@gnu.org>
1838 [__hpux]: Include alloca.h (right for HPUX 10)
1839 instead of declaring alloca (right for HPUX 9).
1841 * bison.simple (__yy_memcpy):
1842 Declare arg `count' as unsigned int.
1843 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1845 1997-01-03 Richard Stallman <rms@gnu.org>
1847 * src/allocate.c: [__STDC__ or _MSC_VER]:
1848 Declare calloc and realloc to return void *.
1850 1997-01-02 Richard Stallman <rms@gnu.org>
1853 [_MSC_VER]: Include stdlib.h and process.h.
1854 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1856 * src/main.c (main): Return FAILURE as a value.
1857 (printable_version): Declare arg as int, not char.
1859 1997-01-02 Richard Stallman <rms@gnu.org>
1861 * Makefile.in (dist):
1862 Explicitly check for symlinks, and copy them.
1864 1996-12-19 Richard Stallman <rms@gnu.org>
1867 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1869 1996-12-18 Paul Eggert <eggert@gnu.org>
1871 * src/bison.s1 (yyparse):
1872 If __GNUC__ and YYPARSE_PARAM are both defined,
1873 declare yyparse to have a void * argument.
1875 1996-12-18 Paul Eggert <eggert@gnu.org>
1877 * bison.simple (yyparse):
1878 If __GNUC__ and YYPARSE_PARAM are both defined,
1879 declare yyparse to have a void * argument.
1881 1996-12-17 Richard Stallman <rms@gnu.org>
1883 * src/reduce.c (nbits): Add some casts.
1885 1996-08-12 Richard Stallman <rms@gnu.org>
1887 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1889 1996-08-12 Richard Stallman <rms@gnu.org>
1891 * bison.simple: Test _MSDOS as well as _MSDOS_.
1893 1996-07-31 Richard Stallman <rms@gnu.org>
1896 [__sun && __i386]: Include alloca.h.
1898 1996-07-31 Richard Stallman <rms@gnu.org>
1901 [__sun && __i386]: Include alloca.h.
1903 1996-07-30 Richard Stallman <rms@gnu.org>
1905 * src/bison.s1: Comment change.
1907 * src/bison.s1: Test _MSDOS_, not MSDOS.
1909 1996-07-30 Richard Stallman <rms@gnu.org>
1911 * bison.simple: Comment change.
1913 * bison.simple: Test _MSDOS_, not MSDOS.
1915 1996-06-01 Richard Stallman <rms@gnu.org>
1917 * 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:
1918 Insert `_' macro around many string constants.
1921 Insert `_' macro around many string constants.
1923 (main): Call setlocale, bindtextdomain and textdomain.
1925 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1926 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1927 [ENABLE_NLS]: Include libintl.h.
1928 [ENABLE_NLS] (gettext): Define.
1929 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1930 (N_, PACKAGE, LOCALEDIR): New macros.
1932 1996-06-01 Richard Stallman <rms@gnu.org>
1934 * POTFILES.in: New file.
1936 * Makefile.in (allocate.o):
1937 Define target explicitly.
1939 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1940 (LDFLAGS): Set to @LDFLAGS@.
1941 (configure): Run autoconf only if preceding `cd' succeeds.
1942 (bison.s1): Redirect output to temporary file then move the
1943 temporary to the target, rather than redirecting directly to bison.s1.
1944 (clean): Remove config.status and config.log.
1945 (distclean): Don't remove config.status here.
1947 1996-05-12 Richard Stallman <rms@gnu.org>
1950 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1952 1996-05-12 Richard Stallman <rms@gnu.org>
1955 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1957 1996-05-11 Richard Stallman <rms@gnu.org>
1959 * src/bison.s1 (__yy_memcpy):
1960 Really reorder the args, as was supposedly done on Feb 14 1995.
1961 (yyparse): Calls changed accordingly.
1963 1996-05-11 Richard Stallman <rms@gnu.org>
1965 * Makefile.in (dist): Don't use $(srcdir).
1967 * bison.simple (__yy_memcpy):
1968 Really reorder the args, as was supposedly done on Feb 14 1995.
1969 (yyparse): Calls changed accordingly.
1971 1996-01-27 Richard Stallman <rms@gnu.org>
1973 * src/output.c (output_rule_data):
1974 Test YYERROR_VERBOSE in the conditional
1975 around the definition of ttyname.
1977 1995-12-29 Richard Stallman <rms@gnu.org>
1980 Fix line numbers in #line commands.
1982 1995-12-29 Richard Stallman <rms@gnu.org>
1985 Fix line numbers in #line commands.
1987 1995-12-27 Richard Stallman <rms@gnu.org>
1989 * src/bison.s1 (YYPARSE_PARAM_DECL):
1990 In C++, make it always null.
1991 (YYPARSE_PARAM_ARG): New macro.
1992 (yyparse): Use YYPARSE_PARAM_ARG.
1994 1995-12-27 Richard Stallman <rms@gnu.org>
1996 * bison.simple (YYPARSE_PARAM_DECL):
1997 In C++, make it always null.
1998 (YYPARSE_PARAM_ARG): New macro.
1999 (yyparse): Use YYPARSE_PARAM_ARG.
2001 1995-11-29 Richard Stallman <rms@gnu.org>
2003 * doc/bison.texinfo:
2004 Describe literal string tokens, %raw, %no_lines, %token_table.
2006 1995-11-29 Daniel Hagerty <hag@gnu.org>
2008 * doc/bison.texinfo: Fixed update date
2010 1995-10-16 Richard Stallman <rms@gnu.org>
2012 * src/version.c: Version 1.25.
2014 1995-10-16 Richard Stallman <rms@gnu.org>
2016 * NEWS: *** empty log message ***
2018 1995-10-16 Richard Stallman <rms@gnu.org>
2020 * doc/bison.1, doc/bison.rnh:
2023 1995-10-15 Richard Stallman <rms@gnu.org>
2025 * src/vmsgetargs.c, src/getargs.c:
2026 Added -n, -k, and -raw switches.
2027 (noparserflag, toknumflag, rawtoknumflag): New variables.
2029 * src/symtab.h (SALIAS):
2030 New #define for adding aliases to %token.
2031 (struct bucket): Added `alias' field.
2033 * src/reduce.c (reduce_grammar):
2034 Revise error message.
2035 (print_notices): Remove final `.' from error message.
2037 * src/reader.c (reader_output_yylsp):
2039 (readgram): Use `#if 0' around code that accepted %command
2040 inside grammar rules: The documentation doesn't allow it,
2041 and it will fail since the %command processors scan for the next %.
2042 (parse_token_decl): Extended the %token
2043 declaration to allow a multi-character symbol as an alias.
2044 (parse_thong_decl): New function.
2045 (read_declarations): Added %thong declarations.
2046 (read_declarations): Handle NOOP to deal with allowing
2047 % declarations as another means to specify the flags.
2048 (readgram): Allow %prec prior to semantics embedded in a rule.
2049 (skip_to_char, read_declarations, copy_definition)
2050 (parse_token_decl, parse_start_decl, parse_type_decl)
2051 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2052 (get_type_name, copy_guard, copy_action, readgram)
2053 (get_type, packsymbols): Revised most error messages.
2054 Changed `fatal' to `warnxxx' to avoid aborting for error.
2055 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2056 (read_declarations): Improve the error message for
2057 an invalid character. Do not abort.
2058 (read_declarations, copy_guard, copy_action): Use
2059 printable_version to avoid unprintable characters in printed output.
2060 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2061 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2062 Allow the type of a non-terminal can be given
2063 more than once, as long as all specifications give the same type.
2066 (output_headers, output_trailers, output, output_gram)
2067 (output_rule_data): Implement noparserflag variable.
2068 Implement toknumflag variable.
2069 (output): Call reader_output_yylsp to output LTYPESTR.
2071 * src/main.c (main):
2072 If reader sees an error, don't process the grammar.
2073 (fatals): Updated to not use VARARGS1.
2074 (printable_version, int_to_string, warn, warni, warns, warnss)
2075 (warnsss): New error reporting functions. Avoid abort for error.
2078 Added THONG and NOOP for alias processing.
2079 Added SETOPT for the new code that allows setting options with %flags.
2082 Include getopt.h. Add some extern decls.
2083 (safegetc): New function to deal with EOF gracefully.
2084 (literalchar); new function to deal with reading \ escapes.
2085 (lex): Use literalchar.
2086 (lex): Implemented "..." tokens.
2087 (literalchar, lex, parse_percent_token): Made tokenbuffer
2088 always contain the token. This includes growing the token
2089 buffer while reading an integer.
2090 (parse_percent_token): Replaced if-else statement with percent_table.
2091 (parse_percent_token): Added % declarations as another
2092 way to specify the flags -n, -l, and -r. Also added hooks for
2093 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2094 major changes to files.c.
2095 (lex) Retain in the incoming stream a character following
2097 (skip_white_space, lex): Revised most error messages
2098 and changed fatal to warn to avoid aborting.
2099 (percent_table): Added %thong declarations.
2101 * src/gram.h: Comment changes.
2103 * src/files.c (openfiles, open_extra_files, done):
2105 and actfile file. Handle noparserflag. Both for -n switch.
2107 * src/conflicts.c (resolve_sr_conflict):
2108 Remove use of alloca.
2110 1995-06-01 Jim Meyering <meyering@gnu.org>
2112 * doc/bison.texinfo: *** empty log message ***
2114 1995-05-06 Richard Stallman <rms@gnu.org>
2116 * src/bison.s1: Comment change.
2118 1995-05-06 Richard Stallman <rms@gnu.org>
2120 * bison.simple: Comment change.
2122 1995-05-03 Richard Stallman <rms@gnu.org>
2124 * src/version.c: Version now 1.24.
2126 * src/bison.s1: Change distribution terms.
2128 * src/version.c: Version now 1.23.
2130 1995-05-03 Richard Stallman <rms@gnu.org>
2132 * doc/bison.texinfo:
2133 Rewrite "Conditions for Using Bison".
2134 Update version to 1.24.
2136 1995-05-03 Richard Stallman <rms@gnu.org>
2138 * bison.simple: Change distribution terms.
2140 1995-02-23 Richard Stallman <rms@gnu.org>
2142 * src/files.c: Test __VMS_POSIX as well as VMS.
2144 1995-02-14 Jim Meyering <meyering@gnu.org>
2146 * src/bison.s1 (__yy_memcpy):
2147 Renamed from __yy_bcopy to avoid
2148 confusion. Reverse FROM and TO arguments to be consistent with
2151 1995-02-14 Jim Meyering <meyering@gnu.org>
2153 * bison.simple (__yy_memcpy):
2154 Renamed from __yy_bcopy to avoid
2155 confusion. Reverse FROM and TO arguments to be consistent with
2158 1994-11-10 David J. MacKenzie <djm@gnu.org>
2164 * Makefile.in (DISTFILES): Include NEWS.
2166 * Makefile.in (DISTFILES):
2167 Include install-sh, not install.sh.
2169 * configure.in: Update to Autoconf v2 macro names.
2171 1994-10-05 David J. MacKenzie <djm@gnu.org>
2173 * Makefile.in: fix typo
2175 * Makefile.in (prefix, exec_prefix):
2176 Let configure set them.
2178 1994-09-28 David J. MacKenzie <djm@gnu.org>
2180 * Makefile.in: Set datadir to $(prefix)/share.
2182 1994-09-15 Richard Stallman <rms@gnu.org>
2185 Update copyright notice and GPL version.
2187 1994-09-15 Richard Stallman <rms@gnu.org>
2190 Update copyright notice and GPL version.
2192 1994-07-12 Richard Stallman <rms@gnu.org>
2194 * src/reduce.c, src/reader.c:
2197 1994-05-05 David J. MacKenzie <djm@gnu.org>
2199 * Makefile.in: entered into RCS
2201 1994-03-26 Richard Stallman <rms@gnu.org>
2203 * src/bison.s1: entered into RCS
2205 1994-03-26 Richard Stallman <rms@gnu.org>
2207 * bison.simple: entered into RCS
2209 1994-03-25 Richard Stallman <rms@gnu.org>
2211 * src/main.c: entered into RCS
2213 1994-03-24 Richard Stallman <rms@gnu.org>
2215 * src/conflicts.c: entered into RCS
2217 1994-01-02 Richard Stallman <rms@gnu.org>
2219 * Makefile.in: *** empty log message ***
2221 1993-11-21 Richard Stallman <rms@gnu.org>
2223 * src/bison.s1: *** empty log message ***
2225 1993-11-21 Richard Stallman <rms@gnu.org>
2227 * doc/bison.texinfo: entered into RCS
2229 * doc/bison.texinfo: *** empty log message ***
2231 1993-11-21 Richard Stallman <rms@gnu.org>
2233 * bison.simple: *** empty log message ***
2235 1993-10-25 David J. MacKenzie <djm@gnu.org>
2237 * doc/bison.texinfo: *** empty log message ***
2239 1993-10-19 Richard Stallman <rms@gnu.org>
2241 * src/bison.s1: *** empty log message ***
2243 1993-10-19 Richard Stallman <rms@gnu.org>
2245 * bison.simple: *** empty log message ***
2247 1993-10-14 Richard Stallman <rms@gnu.org>
2249 * src/bison.s1: *** empty log message ***
2251 1993-10-14 Richard Stallman <rms@gnu.org>
2253 * bison.simple: *** empty log message ***
2255 1993-09-14 David J. MacKenzie <djm@gnu.org>
2257 * doc/bison.texinfo: *** empty log message ***
2259 1993-09-13 Noah Friedman <friedman@gnu.org>
2261 * Makefile.in: *** empty log message ***
2263 1993-09-10 Richard Stallman <rms@gnu.org>
2265 * src/conflicts.c: *** empty log message ***
2267 * src/system.h: entered into RCS
2269 1993-09-10 Richard Stallman <rms@gnu.org>
2271 * doc/bison.1: entered into RCS
2273 1993-09-06 Noah Friedman <friedman@gnu.org>
2275 * src/version.c: entered into RCS
2277 1993-09-06 Noah Friedman <friedman@gnu.org>
2279 * Makefile.in: *** empty log message ***
2281 1993-07-30 David J. MacKenzie <djm@gnu.org>
2283 * Makefile.in: *** empty log message ***
2285 1993-07-24 Richard Stallman <rms@gnu.org>
2287 * src/bison.s1: *** empty log message ***
2289 1993-07-24 Richard Stallman <rms@gnu.org>
2291 * bison.simple: *** empty log message ***
2293 1993-07-08 David J. MacKenzie <djm@gnu.org>
2295 * Makefile.in: *** empty log message ***
2297 1993-07-04 Richard Stallman <rms@gnu.org>
2299 * src/bison.s1: *** empty log message ***
2301 1993-07-04 Richard Stallman <rms@gnu.org>
2303 * bison.simple: *** empty log message ***
2305 1993-06-26 David J. MacKenzie <djm@gnu.org>
2307 * src/getargs.c: entered into RCS
2309 1993-06-26 David J. MacKenzie <djm@gnu.org>
2311 * doc/bison.texinfo: *** empty log message ***
2313 * doc/bison.1: New file.
2315 1993-06-25 Richard Stallman <rms@gnu.org>
2317 * src/getargs.c: New file.
2319 1993-06-16 Richard Stallman <rms@gnu.org>
2321 * src/bison.s1: *** empty log message ***
2323 1993-06-16 Richard Stallman <rms@gnu.org>
2325 * bison.simple: *** empty log message ***
2327 1993-06-03 Richard Stallman <rms@gnu.org>
2329 * src/bison.s1: New file.
2331 1993-06-03 Richard Stallman <rms@gnu.org>
2333 * doc/bison.texinfo: *** empty log message ***
2335 1993-06-03 Richard Stallman <rms@gnu.org>
2337 * bison.simple: New file.
2339 1993-05-19 Richard Stallman <rms@gnu.org>
2341 * doc/bison.texinfo: New file.
2343 1993-05-07 Noah Friedman <friedman@gnu.org>
2345 * Makefile.in: *** empty log message ***
2347 1993-04-28 Noah Friedman <friedman@gnu.org>
2349 * src/reader.c: *** empty log message ***
2351 1993-04-23 Noah Friedman <friedman@gnu.org>
2353 * src/alloc.h: entered into RCS
2355 1993-04-20 David J. MacKenzie <djm@gnu.org>
2357 * src/version.c: *** empty log message ***
2359 * src/files.c, src/allocate.c:
2362 * src/reader.c: *** empty log message ***
2364 * src/lex.c: entered into RCS
2366 * src/conflicts.c: New file.
2368 * src/symtab.c: entered into RCS
2370 * src/alloc.h: New file.
2372 * src/LR0.c: entered into RCS
2374 1993-04-18 Noah Friedman <friedman@gnu.org>
2376 * src/reader.c: New file.
2378 * src/version.c: *** empty log message ***
2380 1993-04-18 Noah Friedman <friedman@gnu.org>
2382 * Makefile.in: *** empty log message ***
2384 1993-04-17 Noah Friedman <friedman@gnu.org>
2386 * Makefile.in: *** empty log message ***
2388 1993-04-15 Richard Stallman <rms@gnu.org>
2390 * src/main.c, src/files.c:
2393 1993-04-15 Noah Friedman <friedman@gnu.org>
2395 * configure.in: entered into RCS
2397 * configure.in: *** empty log message ***
2399 * configure.in: New file.
2401 1993-04-14 Richard Stallman <rms@gnu.org>
2403 * Makefile.in: New file.
2405 1993-04-13 Richard Stallman <rms@gnu.org>
2407 * src/version.c: New file.
2409 1993-03-25 Richard Stallman <rms@gnu.org>
2411 * src/output.c: entered into RCS
2413 1992-09-25 Richard Stallman <rms@gnu.org>
2415 * configure.bat: entered into RCS
2417 1992-06-22 Richard Stallman <rms@gnu.org>
2419 * src/vmsgetargs.c: entered into RCS
2421 1992-06-22 Richard Stallman <rms@gnu.org>
2423 * doc/bison.rnh: entered into RCS
2425 1992-04-20 David J. MacKenzie <djm@gnu.org>
2427 * README: entered into RCS
2429 1992-01-22 Richard Stallman <rms@gnu.org>
2431 * src/machine.h: entered into RCS
2433 1991-12-21 Richard Stallman <rms@gnu.org>
2435 * src/lalr.c, src/closure.c:
2438 1991-12-20 Richard Stallman <rms@gnu.org>
2440 * src/state.h: entered into RCS
2442 1991-12-18 Richard Stallman <rms@gnu.org>
2444 * src/print.c, src/nullable.c, src/derives.c:
2447 1991-11-03 David J. MacKenzie <djm@gnu.org>
2449 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2452 1988-09-09 Richard Stallman <rms@gnu.org>
2454 * src/bison.hairy: entered into RCS
2456 1987-12-16 Richard Stallman <rms@gnu.org>
2458 * REFERENCES: entered into RCS