1 2002-01-24 Akim Demaille <akim@epita.fr>
3 Bison dumps core when trying to complain about broken input files.
4 Reported by Cris van Pelt.
6 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
7 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
9 (Invalid inputs): Strengthen: exercise parse_percent_token.
11 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
13 * src/Makefile.am: Add bison.c++.
14 * src/bison.c++: New skeleton.
16 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
20 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
22 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
24 2002-01-20 Marc Autret <marc@gnu.org>
26 * src/files.c (compute_output_file_names): Fix
28 2002-01-20 Marc Autret <marc@gnu.org>
30 * tests/output.at: New test.
31 * src/files.c (compute_base_names): Don't map extensions when
32 the YACC flag is set, use defaults.
33 Reported by Evgeny Stambulchik.
35 2002-01-20 Marc Autret <marc@gnu.org>
37 * src/system.h: Need to define __attribute__ away for non-GCC
38 compilers as well (i.e. the vendor C compiler).
39 Suggested by Albert Chin-A-Young.
41 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
43 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
45 * src/system.h: Use the canonical definition for PARAMS (avoids
46 a conflict with the macro from lib/hash.h).
48 2002-01-11 Akim Demaille <akim@epita.fr>
50 * configure.in: Use AC_FUNC_STRNLEN.
51 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
53 2002-01-09 Akim Demaille <akim@epita.fr>
55 * src/files.c, src/files.h (output_infix): New.
56 (tab_extension): Remove.
57 (compute_base_names): Compute the former, drop the latter.
58 * src/output.c (prepare): Insert the muscles `output-infix', and
60 * src/parse-skel.y (string, string.1): New.
61 (section.header): Use it.
62 (section.yacc): Remove.
64 * src/scan-skel.l: Adjust.
65 * src/bison.simple, src/bison.hairy: Adjust.
67 2002-01-09 Akim Demaille <akim@epita.fr>
69 * configure.in (WERROR_CFLAGS): Compute it.
70 * src/Makefile.am (CFLAGS): Pass it.
71 * tests/atlocal.in (CFLAGS): Idem.
72 * src/files.c: Fix a few warnings.
73 (get_extension_index): Remove, unused.
75 2002-01-08 Akim Demaille <akim@epita.fr>
77 * src/getargs.c (AS_FILE_NAME): New.
78 (getargs): Use it to convert DOSish file names.
79 * src/files.c (base_name): Rename as full_base_name to avoid
80 clashes with `base_name ()'.
81 (filename_split): New.
82 (compute_base_names): N-th rewrite, using filename_split.
84 2002-01-08 Akim Demaille <akim@epita.fr>
86 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
87 New, stolen from the Fileutils 4.1.
88 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
89 * configure.in: Check for the presence of memrchr, and of its
92 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
94 * lib/hash.h (__P): Added definition for this macro.
95 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
96 BUILT_SOURCES, to ensure they are generated first.
97 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
98 %error-verbose to allow bootstrapping with bison 1.30x.
100 2002-01-06 Akim Demaille <akim@epita.fr>
102 * src/reader.c (parse_braces): Don't fetch the next char, the
103 convention is to fetch on entry.
104 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
105 'switch' without a following semicolon.
106 * tests/regression.at (braces parsing): New.
108 2002-01-06 Akim Demaille <akim@epita.fr>
110 Bison is dead wrong in its RR conflict reports.
112 * tests/torture.at (GNU Cim Grammar): New.
113 * src/conflicts.c (count_rr_conflicts): Fix.
115 2002-01-06 Akim Demaille <akim@epita.fr>
117 Creating package.m4 from configure.ac causes too many problems.
119 * tests/Makefile.am (package.m4): Create it by hand,
120 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
122 2002-01-06 Akim Demaille <akim@epita.fr>
124 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
127 2002-01-04 Paul Eggert <eggert@twinsun.com>
129 * doc/bison.texinfo (Debugging):
130 Remove YYSTDERR; it's no longer defined or used.
131 Also, s/cstdio.h/cstdio/.
133 2002-01-03 Akim Demaille <akim@epita.fr>
135 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
137 2002-01-03 Akim Demaille <akim@epita.fr>
139 * src/parse-skel.y (process_skeleton): Don't bind the parser's
140 tracing code to --trace, wait for a better --trace option, with
143 2002-01-03 Akim Demaille <akim@epita.fr>
145 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
146 The ISO C++ standard is extremely clear about it: stderr is
147 considered a macro, not a regular symbol (see table 94 `Header
148 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
149 Therefore std:: does not apply to it. It still does with fprintf.
150 Also, s/cstdio.h/cstdio/.
152 2002-01-03 Akim Demaille <akim@epita.fr>
154 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
155 for non system headers.
157 2002-01-02 Akim Demaille <akim@epita.fr>
159 Equip the skeleton chain with location tracking, runtime trace,
160 pure parser and scanner.
162 * src/parse-skel.y: Request a pure parser, locations, and prefix
164 (%union): Having several members with the same type does not help
165 type mismatches, simplify.
166 (YYPRINT, yyprint): New.
167 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
170 * src/scan-skel.l: Adjust to these changes.
171 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
172 (LOCATION_PRINT, skel_control_t): New.
174 2001-12-30 Akim Demaille <akim@epita.fr>
176 * src/parse-skel.y: Get rid of the shift/reduce conflict:
177 replace `gb' with BLANKS.
178 * src/scan-skel.l: Adjust.
180 2001-12-30 Akim Demaille <akim@epita.fr>
182 * src/system.h: We don't need nor want bcopy.
183 Throw away MS-DOS crap: we don't need getpid.
184 * configure.in: We don't need strndup. It was even causing
185 problems: because Flex includes the headers *before* us,
186 _GNU_SOURCE is not defined by config.h, and therefore strndup was
188 * lib/xstrndup.c: New.
189 * src/scan-skel.l: Use it.
190 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
191 * src/parse-skel.y: Use %directives instead of #defines.
193 2001-12-30 Akim Demaille <akim@epita.fr>
195 * src/skeleton.h: New.
196 * src/output.c (output_parser, output_master_parser): Remove, dead
198 * src/output.h (get_lines_number, actions_output, guards_output)
199 (token_definitions_output): Prototype them.
200 * src/parse-skel.y: Add the license notice.
201 Include output.h and skeleton.h.
202 (process_skeleton): Returns void, and takes a single parameter.
203 * src/scan-skel.l: Add the license notice.
205 Don't use %option yylineno: it seems that then Flex imagines
206 REJECT has been used, and therefore it won't reallocate its
207 buffers (which makes no other sense to me than a bug). It results
208 in warnings for `unused: yy_flex_realloc'.
210 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
212 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
213 (MUSCLE_INSERT_PREFIX): ...to there.
214 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
215 (MUSCLE_INSERT_PREFIX): Move from here...
217 * src/bison.hairy: Add a section directive. Put braces around muscle
218 names. This parser skeleton is still broken, but Bison should not
219 choke on a bad muscle 'syntax'.
220 * src/bison.simple: Add a section directive. Put braces around muscle
223 * src/files.h (strsuffix, stringappend): Add declarations.
224 (tab_extension): Add declaration.
225 (short_base_name): Add declaration.
227 * src/files.c (strsuffix, stringappend): No longer static. These
228 functions are used in the skeleton parser.
229 (tab_extension): New.
230 (compute_base_names): Use the computations done in this function
231 to guess if the generated parsers should have '.tab' in their
233 (short_base_name): No longer static.
235 * src/output.c (output_skeleton): New.
236 (output): Disable call to output_master_parser, and give a try to
237 a new skeleton handling system.
238 (guards_output, actions_output): No longer static.
239 (token_definitions_output, get_lines_number): No longer static.
241 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
243 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
246 * src/parse-skel.y: New file.
247 * src/scan-skel.l: New file.
249 2001-12-29 Akim Demaille <akim@epita.fr>
251 %name-prefix is broken.
253 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
254 Adjust all dependencies.
255 * tests/headers.at (export YYLTYPE): Strengthen this test: use
258 Renaming yylval but not yylloc is not consistent. Now we do.
260 * src/bison.simple: Prefix yylloc if used.
261 * doc/bison.texinfo (Decl Summary): Document that.
263 2001-12-29 Akim Demaille <akim@epita.fr>
265 * doc/bison.texinfo: Promote `%long-directive' over
267 Remove all references to fixed-output-files, yacc is enough.
269 2001-12-29 Akim Demaille <akim@epita.fr>
271 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
272 user prologue. These are defaults.
273 * tests/actions.at (Mid-rule actions): Make sure the user can
274 define YYDEBUG and YYERROR_VERBOSE.
276 2001-12-29 Akim Demaille <akim@epita.fr>
278 * src/output.c (header_output): Don't forget to export YYLTYPE and
280 * tests/headers.at (export YYLTYPE): New, make sure it does.
281 * tests/regression.at (%union and --defines, Invalid CPP headers):
283 * tests/headers.at: here.
285 2001-12-29 Akim Demaille <akim@epita.fr>
287 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
289 2001-12-29 Akim Demaille <akim@epita.fr>
291 * tests/actions.at (Mid-rule actions): Output on a single line
294 2001-12-29 Akim Demaille <akim@epita.fr>
296 * doc/bison.texinfo: Formatting changes.
298 2001-12-29 Akim Demaille <akim@epita.fr>
300 Don't store the token defs in a muscle, just be ready to output it
301 on command. Now possible via `symbols'. Fixes a memory leak.
303 * src/output.c (token_definitions_output): New.
304 (output_parser, header_output): Use it.
305 * src/reader.c (symbols_save): Remove.
307 2001-12-29 Akim Demaille <akim@epita.fr>
309 * src/bison.simple: Do not provide a default for YYSTYPE and
310 YYLTYPE before the user's prologue. Otherwise it's hardly... a
313 2001-12-29 Akim Demaille <akim@epita.fr>
315 Mid-rule actions are simply... ignored!
317 * src/reader.c (readgram): Be sure to attach mid-rule actions to
318 the empty-rule associated to the dummy symbol, not to the host
320 * tests/actions.at (Mid-rule actions): New.
322 2001-12-29 Akim Demaille <akim@epita.fr>
326 * src/reader.c (reader): Free grammar.
328 2001-12-29 Akim Demaille <akim@epita.fr>
332 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
333 since it allocates it for each state, although only one is needed.
334 (allocate_storage): Do it here.
336 2001-12-29 Akim Demaille <akim@epita.fr>
338 * src/options.h, src/options.c (create_long_option_table): Rename
340 (long_option_table_new): this, with a clearer prototype.
341 (percent_table): Remove, unused,
342 * src/getargs.c (getargs): Adjust.
344 2001-12-29 Akim Demaille <akim@epita.fr>
346 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
347 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
350 2001-12-29 Akim Demaille <akim@epita.fr>
352 * src/lalr.c (build_relations): Rename `states' as `states1'.
353 Sorry, I don't understand exactly what it is, no better name...
355 2001-12-29 Akim Demaille <akim@epita.fr>
357 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
358 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
359 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
362 2001-12-29 Akim Demaille <akim@epita.fr>
364 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
367 2001-12-29 Akim Demaille <akim@epita.fr>
369 * src/reader.c, src/reader.h (user_toknums): Remove.
370 Adjust all users to use symbols[i]->user_token_number.
372 2001-12-29 Akim Demaille <akim@epita.fr>
374 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
375 Adjust all users to use symbols[i]->prec or ->assoc.
377 2001-12-29 Akim Demaille <akim@epita.fr>
379 * src/reader.c, src/reader.h (tags): Remove.
380 Adjust all users to use symbols[i]->tag.
382 2001-12-29 Akim Demaille <akim@epita.fr>
384 * src/gram.h, src/gram.c (symbols): New, similar to state_table
386 * src/reader.c (packsymbols): Fill this table.
388 * src/conflicts.c (resolve_sr_conflict): Adjust.
389 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
391 Use symbols[i]->tag instead of tags[i].
393 2001-12-29 Akim Demaille <akim@epita.fr>
395 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
396 In addition, put a comment in there, to replace...
397 * tests/regression.at (%union and C comments): Remove.
399 2001-12-29 Akim Demaille <akim@epita.fr>
401 * tests/regression.at (Web2c Actions): Blindly move the actual
402 output as expected output. The contents *seem* right to me, but I
403 can't pretend reading perfectly parser tables... Nonetheless, all
404 the other tests pass correctly, the table look OK, even though the
405 presence of `$axiom' is to be noted: AFAICS it is useless (but
408 2001-12-29 Akim Demaille <akim@epita.fr>
410 * src/reader.c (readgram): Don't add the rule 0 if there were no
411 rules read. In other words, add it _after_ having performed
412 grammar sanity checks.
413 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
415 2001-12-29 Akim Demaille <akim@epita.fr>
417 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
418 visible, and some states have now a different number.
420 2001-12-29 Akim Demaille <akim@epita.fr>
422 * src/reader.c (readgram): Bind the initial rule's lineno to that
424 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
425 (Solved SR Conflicts): Adjust rule 0's line number.
427 2001-12-29 Akim Demaille <akim@epita.fr>
429 Fix the `GAWK Grammar' failure.
431 * src/LR0.c (final_state): Initialize to -1 so that we do compute
432 the reductions of the first state which was mistakenly confused
433 with the final state because precisely final_state was initialized
435 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
436 now noticed by Bison.
437 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
438 have a reduction on $default.
440 2001-12-29 Akim Demaille <akim@epita.fr>
442 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
444 * src/closure.c (print_closure): Likewise.
445 * src/derives.c (print_derives): Likewise.
446 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
449 2001-12-29 Akim Demaille <akim@epita.fr>
451 * src/lalr.c (lookaheads_print): New.
452 (lalr): Call it when --trace-flag.
453 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
456 2001-12-29 Akim Demaille <akim@epita.fr>
458 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
459 when walking through ritem, even via rule->rhs.
460 * src/reduce.c (dump_grammar, useful_production, reduce_output)
461 (useful_production, useless_nonterminals): Likewise.
462 (reduce_grammar_tables): Likewise, plus update nritems.
463 * src/nullable.c (set_nullable): Likewise.
464 * src/lalr.c (build_relations): Likewise.
465 * tests/sets.at (Nullable): Adjust.
466 Fortunately, now, the $axiom is no longer nullable.
468 2001-12-29 Akim Demaille <akim@epita.fr>
470 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
472 * src/gram.c (ritem_longest_rhs): Likewise.
473 * src/reduce.c (nonterminals_reduce): Likewise.
474 * src/print_graph.c (print_graph): Likewise.
475 * src/output.c (output_rule_data): Likewise.
476 * src/nullable.c (set_nullable): Likewise.
478 2001-12-29 Akim Demaille <akim@epita.fr>
480 * src/output.c: Comment changes.
482 2001-12-27 Paul Eggert <eggert@twinsun.com>
484 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
485 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
486 Sparc, as they were causing more porting problems than the
487 (minor) performance improvement was worth.
489 Also, catch up with 1.31's YYSTD.
491 2001-12-27 Akim Demaille <akim@epita.fr>
493 * src/output.c (output_gram): Rely on nritems, not the
494 0-sentinel. See below.
495 Use -1 as separator, not 0.
496 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
497 Rely on -1 as separator in yyrhs, instead of 0.
498 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
499 twice `Now at end of input', therefore there are two lines less to
502 2001-12-27 Akim Demaille <akim@epita.fr>
504 * tests/regression.at (Unresolved SR Conflicts):
505 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
508 2001-12-27 Akim Demaille <akim@epita.fr>
510 * src/LR0.c (new_state): Recognize the final state by the fact it
511 is reached by eoftoken.
512 (insert_start_shifting_state, insert_eof_shifting_state)
513 (insert_accepting_state, augment_automaton): Remove, since now
514 these states are automatically computed from the initial state.
515 (generate_states): Adjust.
516 * src/print.c: When reporting a rule number to the user, substract
517 1, so that the axiom rule is rule 0, and the first user rule is 1.
518 * src/reduce.c: Likewise.
519 * src/print_graph.c (print_core): For the time being, just as for
520 the report, depend upon --trace-flags to dump the full set of
522 * src/reader.c (readgram): Once the grammar read, insert the rule
523 0: `$axiom: START-SYMBOL $'.
524 * tests/set.at: Adjust: rule 0 is now displayed, and since the
525 number of the states has changed (the final state is no longer
526 necessarily the last), catch up.
528 2001-12-27 Akim Demaille <akim@epita.fr>
530 Try to make the use of the eoftoken valid. Given that its value
531 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
532 is used instead of > 0 where appropriate, (ii), depend upon nritems
533 instead of the 0-sentinel.
535 * src/gram.h, src/gram.c (nritems): New.
536 Expected to be duplication of nitems, but for the time being...
537 * src/reader.c (packgram): Assert nritems and nitems are equal.
538 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
539 * src/closure.c (print_closure, print_fderives): Likewise.
540 * src/gram.c (ritem_print): Likewise.
541 * src/print.c (print_core, print_grammar): Likewise.
542 * src/print_graph.c: Likewise.
544 2001-12-27 Akim Demaille <akim@epita.fr>
546 * src/main.c (main): If there are complains after grammar
547 reductions, then output the report anyway if requested, then die.
548 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
549 * src/reader.c (eoftoken): New.
550 (parse_token_decl): If the token being defined has value `0', it
552 (packsymbols): No longer hack `tags' to insert `$' by hand.
553 Be sure to preserve the value of the eoftoken.
554 (reader): Make sure eoftoken is defined.
555 Initialize nsyms to 0: now eoftoken is created just like the others.
556 * src/print.c (print_grammar): Don't special case the eof token.
557 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
558 lie anyway, albeit pleasant.
559 * tests/calc.at: Exercise error messages with eoftoken.
560 Change the grammar so that empty input is invalid.
562 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
564 2001-12-27 Akim Demaille <akim@epita.fr>
566 * configure.in: Check the protos of strchr ans strspn.
567 Replace strchr if needed.
568 * src/system.h: Provide the protos of strchr, strspn and memchr if
571 * src/reader.c (symbols_save): Use strchr.
573 2001-12-27 Akim Demaille <akim@epita.fr>
575 * src/print.c, src/print_graph.c (escape): New.
576 Use it to quote the TAGS outputs.
577 * src/print_graph.c (print_state): Now errors are in red, and
579 Prefer high to wide: output the state number on a line of its own.
581 2001-12-27 Akim Demaille <akim@epita.fr>
583 * src/state.h, src/state.c (reductions_new): New.
584 * src/LR0.c (set_state_table): Let all the states have a
585 `reductions', even if reduced to 0.
586 (save_reductions): Adjust.
587 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
588 * src/print.c (print_reductions, print_actions): Adjust.
589 * src/output.c (action_row): Adjust.
591 2001-12-27 Akim Demaille <akim@epita.fr>
593 * src/state.h, src/state.c (errs_new, errs_dup): New.
594 * src/LR0.c (set_state_table): Let all the states have an errs,
595 even if reduced to 0.
596 * src/print.c (print_errs, print_reductions): Adjust.
597 * src/output.c (output_actions, action_row): Adjust.
598 * src/conflicts.c (resolve_sr_conflict): Adjust.
600 2001-12-27 Akim Demaille <akim@epita.fr>
602 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
604 2001-12-27 Akim Demaille <akim@epita.fr>
606 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
608 (lookaheadset, shiftset): New, used as additional storage by
610 (print_results): Adjust.
611 (print_shifts, print_gotos, print_errs): New, extracted from...
612 (print_actions): here.
613 * src/print_graph.c (print_actions): Remove dead code.
615 2001-12-27 Akim Demaille <akim@epita.fr>
617 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
620 2001-12-27 Akim Demaille <akim@epita.fr>
622 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
623 (build_relations): Adjust.
625 2001-12-27 Akim Demaille <akim@epita.fr>
627 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
630 2001-12-27 Akim Demaille <akim@epita.fr>
632 * src/reader.c (packgram): Catch nitems overflows.
634 2001-12-27 Akim Demaille <akim@epita.fr>
636 * src/files.c, src/files.h (guard_obstack): Remove.
637 * src/output.c (output): Adjust.
638 * src/reader.c (parse_braces): New, factoring...
639 (copy_action, copy_guard): these two which are renamed as...
640 (parse_action, parse_guard): these.
641 As a voluntary consequence, using braces around guards is now
644 2001-12-27 Akim Demaille <akim@epita.fr>
646 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
647 * src/reader.c (symbol_list): `guard' and `guard_line' are new
649 (symbol_list_new): Adjust.
650 (copy_action): action_line is the first line, not the last.
651 (copy_guard): Just as for actions, store the `action' only, not
652 the switch/case/break flesh.
653 Don't parse the user action that might follow the guard, let...
654 (readgram): do it, i.e., now, there can be an action after a
656 In other words the guard is just explicitly optional.
658 * src/output.c (guards_output): New.
659 (output_parser): Call it when needed.
660 (output): Also free the guard and attrs obstacks.
661 * src/files.c, src/files.h (obstack_save): Remove.
662 (output_files): Remove.
663 As a result, if one needs the former `.act' file, using an
664 appropriate skeleton which requires actions and guards is now
666 * src/main.c (main): Adjust.
667 * tests/semantic.at: New.
668 * tests/regression.at: Use `input.y' as input file name.
669 Avoid 8+3 problems by requiring input.c when the test needs the
672 2001-12-27 Akim Demaille <akim@epita.fr>
674 * src/reader.c (symbol_list_new): Be sure to initialize all the
677 2001-12-27 Akim Demaille <akim@epita.fr>
679 All the hacks using a final pseudo state are now useless.
681 * src/LR0.c (set_state_table): state_table holds exactly nstates.
682 * src/lalr.c (nLA): New.
683 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
684 instead of lookaheadsp from the pseudo state (nstate + 1).
686 2001-12-27 Akim Demaille <akim@epita.fr>
688 * src/output.c (action_row, token_actions): Use a state_t instead
689 of a integer, and nlookaheads instead of the following state's
692 2001-12-27 Akim Demaille <akim@epita.fr>
694 * src/conflicts.c (log_resolution, flush_shift)
695 (resolve_sr_conflict, set_conflicts, solve_conflicts)
696 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
697 (conflicts_print, print_reductions): Use a state_t instead of an
698 integer when referring to a state.
699 As much as possible, depend upon nlookaheads, instead of the
700 `lookaheadsp' member of the following state (since lookaheads of
701 successive states are successive, the difference between state n + 1
702 and n served as the number of lookaheads for state n).
703 * src/lalr.c (add_lookback_edge): Likewise.
704 * src/print.c (print_core, print_actions, print_state)
705 (print_results): Likewise.
706 * src/print_graph.c (print_core, print_actions, print_state)
707 (print_graph): Likewise.
708 * src/conflicts.h: Adjust.
710 2001-12-27 Akim Demaille <akim@epita.fr>
712 * src/bison.hairy: Formatting/comment changes.
714 Remove `register' indications.
715 Add plenty of `static'.
717 2001-12-27 Akim Demaille <akim@epita.fr>
719 * src/output.c (prepare): Drop the muscle `ntbase' which
721 * src/bison.simple: Formatting/comment changes.
722 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
723 is an undocumented synonym.
725 2001-12-22 Akim Demaille <akim@epita.fr>
727 * src/output.c (output_table_data): Change the prototype to use
728 `int' for array ranges: some invocations do pass an int, not a
730 Reported by Wayne Green.
732 2001-12-22 Akim Demaille <akim@epita.fr>
734 Some actions of web2c.y are improperly triggered.
735 Reported by Mike Castle.
737 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
738 * tests/regression.at (Web2c): Rename as...
739 (Web2c Report): this.
740 (Web2c Actions): New.
742 2001-12-22 Akim Demaille <akim@epita.fr>
744 Reductions in web2c.y are improperly reported.
745 Reported by Mike Castle.
747 * src/conflicts.c (print_reductions): Fix.
748 * tests/regression.at (Web2c): New.
750 2001-12-18 Akim Demaille <akim@epita.fr>
752 Some host fail on `assert (!"foo")', which expands to
753 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
754 Reported by Nelson Beebee.
756 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
757 `#define it_succeeded 0' and `assert (it_succeeded)'.
759 2001-12-17 Marc Autret <autret_m@epita.fr>
761 * src/bison.simple: Don't hard code the skeleton line and filename.
762 * src/output.c (output_parser): Rename 'line' as 'output_line'.
763 New line counter 'skeleton_line' (skeleton-line muscle).
765 2001-12-17 Paul Eggert <eggert@twinsun.com>
767 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
768 YYDEBUG must be defined to a nonzero value.
770 * src/bison.simple (yytname): Do not assume that the user defines
771 YYDEBUG to a properly parenthesized expression.
773 2001-12-17 Akim Demaille <akim@epita.fr>
775 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
776 nlookaheads is a new member.
778 * src/lalr.h (nlookaheads): Remove this orphan declaration.
779 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
782 2001-12-17 Akim Demaille <akim@epita.fr>
784 * src/files.h, src/files.c (open_files, close_files): Remove.
785 * src/main.c (main): Don't open/close files, nor invoke lex_free,
787 * src/reader.c (reader): Do it.
789 2001-12-17 Akim Demaille <akim@epita.fr>
791 * src/conflicts.c (print_reductions): Formatting changes.
793 2001-12-17 Akim Demaille <akim@epita.fr>
795 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
797 (resolve_sr_conflict): Adjust.
799 2001-12-17 Akim Demaille <akim@epita.fr>
801 * src/output.c (output_obstack): Be static and rename as...
802 (format_obstack): this, to avoid any confusion with files.c's
804 * src/reader.h (muscle_obstack): Move to...
805 * src/output.h: here, since it's defined in output.c.
807 2001-12-17 Akim Demaille <akim@epita.fr>
809 * src/output.c (action_row, save_column, default_goto)
810 (sort_actions, matching_state, pack_vector): Better variable
813 2001-12-17 Akim Demaille <akim@epita.fr>
815 * src/output.c: Various formatting changes.
817 2001-12-17 Akim Demaille <akim@epita.fr>
819 * src/files.c (output_files): Free the output_obstack.
820 * src/main.c (main): Call print and print_graph conditionally.
821 * src/print.c (print): Work unconditionally.
822 * src/print_graph.c (print_graph): Work unconditionally.
823 * src/conflicts.c (log_resolution): Output only if verbose_flag.
825 2001-12-16 Marc Autret <autret_m@epita.fr>
827 * src/output.c (actions_output): Fix. When we use %no-lines,
828 there is one less line per action.
830 2001-12-16 Marc Autret <autret_m@epita.fr>
832 * src/bison.simple: Remove a useless #line directive.
833 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
834 * src/output.c (get_lines_number): New.
835 (output_parser): Adjust, now takes care about the lines of a
838 (actions_output): Computes the number of lines taken by actions.
839 (output_master_parser): Insert new skeleton which is the name of
840 the output parser file name.
842 2001-12-15 Marc Autret <autret_m@epita.fr>
844 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
846 2001-12-15 Marc Autret <autret_m@epita.fr>
848 * src/output.c (output_gram): Keep track of the hairy one.
850 2001-12-15 Akim Demaille <akim@epita.fr>
852 Make `make distcheck' work.
854 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
855 system.h which uses libgettext.h.
857 2001-12-15 Akim Demaille <akim@epita.fr>
859 * src/nullable.c (set_nullable): Useless rules must be skipped,
860 otherwise, since we range over their symbols, we might look at a
861 nonterminal which no longer ``exists'', i.e., it is not counted in
862 `nvars', hence we overflow our arrays.
864 2001-12-15 Akim Demaille <akim@epita.fr>
866 The header can also be produced directly, without any obstack!
869 * src/files.c, src/files.h (defines_obstack): Remove.
870 (compute_header_macro): Global.
871 (defines_obstack_save): Remove.
872 * src/reader.c (parse_union_decl): No longer output to
873 defines_obstack: its content can be found in the `stype' muscle
875 (output_token_translations): Merge into...
876 (symbols_output): this.
878 (symbols_save): this.
880 * src/output.c (header_output): New.
883 2001-12-15 Akim Demaille <akim@epita.fr>
885 * src/reader.c (parse_union_decl): Instead of handling two obstack
886 simultaneously, use one to define the `stype' muscle, and use the
887 value of the latter to fill defines_obstack.
888 (copy_comment): Remove.
889 (copy_comment2): Work for a single obstack.
891 (copy_comment): this.
893 2001-12-15 Akim Demaille <akim@epita.fr>
895 * src/lex.c, src/lex.h (xgetc): No longer static.
896 * src/reader.c (parse_union_decl): Revamp.
898 2001-12-15 Akim Demaille <akim@epita.fr>
900 Still making progress in separating Bison into (i) input, (ii)
901 process, (iii) output: now we can directly output the parser file
902 without using table_obstack at all.
904 * src/files.c, src/files.h (table_obstack): Bye bye.
905 (parser_file_name): New.
906 * src/files.c (compute_output_file_names): Compute it.
907 * src/output.c (actions_output, output_parser)
908 (output_master_parser): To a file instead of an obstack.
910 2001-12-15 Akim Demaille <akim@epita.fr>
912 Attach actions to rules, instead of pre-outputting them to
915 * src/gram.h (rule_t): action and action_line are new members.
916 * src/reader.c (symbol_list): Likewise.
917 (copy_action): Save the actions within the rule.
918 (packgram): Save them in rule_table.
919 * src/output.c (actions_output): New.
920 (output_parser): Use it on `%%actions'.
921 (output_rule_data): Don't free rule_table.
923 (prepare): Don't save the `action' muscle.
924 * src/bison.simple: s/%%action/%%actions/.
926 2001-12-15 Akim Demaille <akim@epita.fr>
928 * src/reader.c (copy_action): When --yacc, don't append a `;'
929 to the user action: let it fail if lacking.
930 Suggested by Arnold Robbins and Tom Tromey.
932 2001-12-14 Akim Demaille <akim@epita.fr>
934 * src/lex.c (literalchar): Simply return the char you decoded, non
935 longer mess around with obstacks and int pointers.
938 2001-12-14 Akim Demaille <akim@epita.fr>
940 * src/lex.c (literalchar): Don't escape the special characters,
941 just decode them, and keep them as char (before, eol was output as
942 the 2 char string `\n' etc.).
943 * src/output.c (output_rule_data): Use quotearg to output the
946 2001-12-13 Paul Eggert <eggert@twinsun.com>
948 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
949 Do not infringe on the global user namespace when using C++.
950 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
951 All uses of `fprintf' and `stderr' changed.
953 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
955 2001-12-13 Akim Demaille <akim@epita.fr>
957 The computation of nullable is broken: it doesn't handle empty
960 * tests/torture.at (GNU AWK Grammar): New.
961 * tests/sets.at (Nullable): New.
962 * src/nullable.c (set_nullable): Instead of blindly looping over
963 `ritems', loop over the rules, and then over their rhs's.
965 Work around Autotest bugs.
967 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
968 frame, because Autotest understand lines starting with a `+' as
969 traces from the shell. Then, they are not processed properly.
970 Admittedly an Autotest bug, but we don't have time to wait for
971 Autotest to catch up.
972 * tests/regression.at (Broken Closure): Adjust to the new table
975 * tests/sets.at: here.
977 2001-12-13 Akim Demaille <akim@epita.fr>
979 * src/closure.c (closure): Use nrules instead of playing tricks
982 2001-12-13 Akim Demaille <akim@epita.fr>
984 * src/print.c (print_actions): Output the handling of `$' as the
985 traces do: shifting the token EOF. Before EOF was treated as a
987 * tests/regression.at: Adjust some tests.
988 * src/print_graph.c (print_core): Complete the set of items via
989 closure. The next-to-final and final states are still unsatisfying,
990 but that's to be addressed elsewhere.
991 No longer output the rule numbers, but do output the state number.
992 A single loop for the shifts + gotos is enough, but picked a
993 distinct color for each.
994 (print_graph): Initialize and finalize closure.
996 2001-12-13 Akim Demaille <akim@epita.fr>
998 * src/reader.c (readgram): Remove dead code, an strip useless
1000 (get_type): Remove, unused.
1002 2001-12-12 Akim Demaille <akim@epita.fr>
1004 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
1005 on that of lib/error.c.
1007 2001-12-12 Akim Demaille <akim@epita.fr>
1009 Some hosts don't like `/' in includes.
1011 * src/system.h: Include libgettext.h without qualifying the path.
1012 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
1015 2001-12-11 Marc Autret <autret_m@epita.fr>
1017 * src/output.c (output_parser): Remove useless muscle.
1019 2001-12-11 Marc Autret <autret_m@epita.fr>
1021 * src/bison.simple: Remove #line just before %%epilogue. It
1022 is now handled in ...
1023 * src/reader.c (read_additionnal_code): Add the output of a
1024 #line for the epilogue.
1026 2001-12-10 Marc Autret <autret_m@epita.fr>
1028 * src/reader.c (copy_definition): Re-use CPP-outed code which
1029 replace precedent remove.
1030 * src/bison.simple: Remove #line before %%prologue because
1031 %%input-line is wrong at this time.
1033 2001-12-10 Marc Autret <autret_m@epita.fr>
1035 * src/reader.c (symbols_output): Clean up.
1036 * src/output.c (output_gram, output): Clean up.
1038 2001-12-10 Akim Demaille <akim@epita.fr>
1040 * src/lalr.c (initialize_lookaheads): New. Extracted from...
1041 * src/LR0.c (set_state_table): here.
1042 * src/lalr.c (lalr): Call it.
1044 2001-12-10 Akim Demaille <akim@epita.fr>
1046 * src/state.h (shifts): Remove the `number' member: shifts are
1047 attached to state, hence no longer need to be labelled with a
1050 2001-12-10 Akim Demaille <akim@epita.fr>
1052 Now that states have a complete set of members, the linked list of
1053 shifts is useless: just fill directly the state's shifts member.
1055 * src/state.h (shifts): Remove the `next' member.
1056 * src/LR0.c (first_state, last_state): Remove.
1058 (augment_automaton): Don't look for the shifts that must be added
1059 a shift on EOF: it is those of the state we looked for! But now,
1060 since shifts are attached, it is no longer needed to looking
1061 merely by its id: its number.
1063 2001-12-10 Akim Demaille <akim@epita.fr>
1065 * src/LR0.c (augment_automaton): Better variable locality.
1066 Remove an impossible branch: if there is a state corresponding to
1067 the start symbol being shifted, then there is shift for the start
1068 symbol from the initial state.
1070 2001-12-10 Akim Demaille <akim@epita.fr>
1072 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
1073 only when appropriate: when insert_start_shifting_state' is not
1075 * tests/regression.at (Rule Line Numbers): Adjust.
1077 2001-12-10 Akim Demaille <akim@epita.fr>
1079 * src/LR0.c (augment_automaton): Now that all states have shifts,
1080 merge the two cases addition shifts to the initial state.
1082 2001-12-10 Akim Demaille <akim@epita.fr>
1084 * src/lalr.c (set_state_table): Move to...
1086 * src/lalr.c (lalr): Don't call it...
1087 * src/LR0.c (generate_states): do it.
1088 * src/LR0.h (first_state): Remove, only the table is used.
1090 2001-12-10 Akim Demaille <akim@epita.fr>
1092 * src/LR0.h (first_shift, first_reduction): Remove.
1093 * src/lalr.c: Don't use first_shift: find shifts through the
1096 2001-12-10 Akim Demaille <akim@epita.fr>
1098 * src/LR0.c: Attach shifts to states as soon as they are
1100 * src/lalr.c (set_state_table): Instead of assigning shifts to
1101 state, just assert that the mapping was properly done.
1103 2001-12-10 Akim Demaille <akim@epita.fr>
1105 * src/LR0.c (insert_start_shift): Rename as...
1106 (insert_start_shifting_state): this.
1107 (insert_eof_shifting_state, insert_accepting_state): New.
1108 (augment_automaton): Adjust.
1109 Better locality of the variables.
1110 When looking if the start_symbol is shifted from the initial
1111 state, using `while (... symbol != start_symbol ...)' sounds
1112 better than `while (... symbol < start_symbol ...)': If fail
1113 to see how the order between symbols could be relevant!
1115 2001-12-10 Akim Demaille <akim@epita.fr>
1117 * src/getargs.h: Don't declare `spec_name_prefix' and
1118 `spec_file_prefix', declared by src/files.h.
1119 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
1120 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
1121 * src/output.c (prepare): Adjust.
1122 * src/reader.c (symbols_output): Likewise.
1123 * src/vmsgetargs.c: Vaguely adjust, but who cares?
1125 2001-12-10 Akim Demaille <akim@epita.fr>
1127 * src/muscle_tab.c (muscle_init): NULL is a better default than
1130 2001-12-10 Akim Demaille <akim@epita.fr>
1132 * src/reader.c (reader): Calling symbols_output once is enough.
1134 2001-12-10 Akim Demaille <akim@epita.fr>
1136 Now that states have a complete set of members, the linked list of
1137 reductions is useless: just fill directly the state's reductions
1140 * src/state.h (struct reductions): Remove member `number' and
1142 * src/LR0.c (first_reduction, last_reduction): Remove.
1143 (save_reductions): Don't link the new reductions, store them in
1145 * src/lalr.c (set_state_table): No need to attach reductions to
1146 states, it's already done.
1147 * src/output.c (output_actions): No longer free the shifts, then
1148 the reductions, then the states: free all the states and their
1151 2001-12-10 Akim Demaille <akim@epita.fr>
1153 * src/options.c (OPTN, DRTV, BOTH): New.
1154 (option_table): Use them.
1156 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
1157 the job of system.h.
1158 * src/options.c: Don't include stdio.h and xalloc.h for the same
1161 2001-12-10 Akim Demaille <akim@epita.fr>
1163 * src/output.c (output, prepare): Make sure the values of the
1164 muscles `action' and `prologue' are 0-terminated.
1166 2001-12-10 Akim Demaille <akim@epita.fr>
1168 Clean up GCC warnings.
1170 * src/reader.c (copy_action): `buf' is not used.
1171 (parse_skel_decl): Be static.
1172 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
1173 * src/options.h (create_long_option_table): Have a real prototype.
1174 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
1175 (hash_delete_at): Return const void *.
1176 Adjust casts to preserve the const.
1178 2001-12-10 Akim Demaille <akim@epita.fr>
1180 * configure.in: Require 2.52g.
1181 M4 is not needed, but AUTOM4TE is.
1183 * tests/Makefile.am: Adjust.
1185 2001-12-10 Akim Demaille <akim@epita.fr>
1187 One structure for states is enough, even though theoretically
1188 there are LR(0) states and LALR(1) states.
1190 * src/lalr.h (state_t): Remove.
1191 (state_table): Be state_t **, not state_t *.
1192 * src/state.h (core, CORE_ALLOC): Rename as...
1193 (state_t, STATE_ALLOC): this.
1194 Add the LALR(1) members: shifts, reductions, errs.
1195 * src/LR0.c (state_table): Rename as...
1196 (state_hash): this, to avoid name clashes with the global
1198 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
1199 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
1201 2001-12-10 Akim Demaille <akim@epita.fr>
1203 Bison dumps core on bash.y.
1204 Reported by Pascal Bart.
1206 * src/warshall.c (bitmatrix_print): New.
1208 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
1209 j must be the outer loop.
1210 * tests/regression.at (Broken Closure): New.
1212 2001-12-05 Akim Demaille <akim@epita.fr>
1214 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
1216 Reported by Peter Hámorský.
1218 2001-12-05 Akim Demaille <akim@epita.fr>
1220 * src/conflicts.c (err_table): Remove.
1221 (resolve_sr_conflict): Adjust.
1222 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
1224 (state_t.reductions, state_t.shifts): this.
1226 2001-12-05 Akim Demaille <akim@epita.fr>
1228 * src/reduce.c (reduce_grammar_tables): No longer disable the
1229 removal of useless rules via CPP but via `if (0)', so that the
1230 compiler still check the code is valid.
1231 For instance, it should have noticed `rline' no longer exists: use
1232 the `line' member of rule_t.
1233 * src/gram.c (dummy, rline): Remove, unused.
1235 2001-12-05 Akim Demaille <akim@epita.fr>
1237 * src/output.c (pack_vector): Use assert, not berror.
1238 * src/main.c (berror): Remove, unused.
1240 2001-12-05 Akim Demaille <akim@epita.fr>
1242 New experimental feature: if --verbose --trace output all the
1243 items of a state, not only its kernel.
1245 * src/print.c (print_core): If `trace_flag', then invoke closure
1246 before outputting the items of the state (print_core is no longer
1247 a correct name them).
1248 (print_results): Invoke new_closure/free_closure if needed.
1250 2001-12-05 Akim Demaille <akim@epita.fr>
1252 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
1253 * src/closure.c, src/closure.h (itemsetsize): Rename as...
1254 (nitemset): for consistency with the rest of the project.
1256 2001-12-05 Akim Demaille <akim@epita.fr>
1258 * src/closure.c (print_closure): Improve.
1259 (closure): Use it for printing input and output.
1261 2001-12-05 Akim Demaille <akim@epita.fr>
1263 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
1264 indexed by nonterminals.
1266 2001-12-05 Akim Demaille <akim@epita.fr>
1268 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
1270 * src/warshall.h: Remove accidental duplication of the content.
1272 2001-12-05 Akim Demaille <akim@epita.fr>
1274 * src/closure.c (set_fderives): De-obfuscate.
1276 2001-12-05 Akim Demaille <akim@epita.fr>
1278 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
1280 2001-12-05 Akim Demaille <akim@epita.fr>
1282 * src/closure.c (set_firsts): De-obfuscate.
1284 2001-12-05 Akim Demaille <akim@epita.fr>
1286 * src/output.c (action_row): De-obfuscate
1287 using the good o' techniques: arrays not pointers, variable
1288 locality, BITISSET, RESETBIT etc.
1290 2001-12-05 Akim Demaille <akim@epita.fr>
1292 Pessimize the code to simplify it: from now on, all the states
1293 have a valid SHIFTS, which NSHIFTS is possibly 0.
1295 * src/LR0.c (shifts_new): Be global and move to..
1296 * src/state.c, src/state.h: here.
1297 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
1298 * src/print_graph: Adjust.
1300 2001-12-05 Akim Demaille <akim@epita.fr>
1302 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
1303 * src/conflicts.c: Use it.
1304 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
1305 incorrectly ``simplified''.
1307 2001-12-05 Akim Demaille <akim@epita.fr>
1309 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
1310 using the good o' techniques: arrays not pointers, variable
1311 locality, BITISSET, RESETBIT etc.
1313 2001-12-05 Akim Demaille <akim@epita.fr>
1315 * src/state.h (SHIFT_SYMBOL): New.
1316 * src/conflicts.c: Use it to deobfuscate.
1318 2001-12-05 Akim Demaille <akim@epita.fr>
1320 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
1321 (print_reductions): De-obfuscate using the good o' techniques:
1322 arrays not pointers, variable locality, BITISSET.
1324 2001-12-05 Akim Demaille <akim@epita.fr>
1326 * src/conflicts.c (print_reductions): Arrays, not pointers.
1329 2001-12-05 Akim Demaille <akim@epita.fr>
1331 * src/conflicts.c (print_reductions): Pessimize, but clarify.
1333 2001-12-05 Akim Demaille <akim@epita.fr>
1335 * src/conflicts.c (print_reductions): Improve variable locality.
1337 2001-12-05 Akim Demaille <akim@epita.fr>
1339 * src/conflicts.c (print_reductions): Pessimize, but clarify.
1341 2001-12-05 Akim Demaille <akim@epita.fr>
1343 * src/conflicts.c (print_reductions): Improve variable locality.
1345 2001-12-05 Akim Demaille <akim@epita.fr>
1347 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
1348 * src/lalr.c: Use them.
1350 2001-12-05 Akim Demaille <akim@epita.fr>
1352 * src/LR0.c (augment_automaton): Formatting changes.
1353 Better variable locality.
1355 2001-12-05 Akim Demaille <akim@epita.fr>
1357 * src/lalr.c (matrix_print): New.
1358 (transpose): Use it.
1359 Use arrays instead of pointers.
1361 2001-12-05 Akim Demaille <akim@epita.fr>
1363 * src/lalr.c (maxrhs): Move to...
1364 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
1365 * src/lalr.c (build_relations): Adjust.
1367 2001-12-05 Akim Demaille <akim@epita.fr>
1369 * src/lalr.c (transpose): Free the memory allocated to the
1370 argument, as it is replaced by the results by the unique caller.
1371 (build_relations): Merely invoke transpose: it handles the memory
1373 Improve variable locality.
1374 Avoid variables used as mere abbreviations.
1375 (compute_lookaheads): Use arrays instead of pointers.
1377 2001-12-05 Akim Demaille <akim@epita.fr>
1379 * src/lalr.c (initialize_F): Improve variable locality.
1380 Avoid variables used as mere abbreviations.
1382 2001-12-05 Akim Demaille <akim@epita.fr>
1384 * src/derives.c (print_derives): Display the ruleno.
1385 * src/lalr.c (initialize_F, transpose): Better variable locality
1386 to improve readability.
1387 Avoid variables used as mere abbreviations.
1389 2001-12-05 Akim Demaille <akim@epita.fr>
1391 * src/lalr.c (traverse): Use arrays instead of pointers.
1393 2001-12-05 Akim Demaille <akim@epita.fr>
1395 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
1396 the handling of squeue.
1397 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
1399 2001-12-05 Akim Demaille <akim@epita.fr>
1401 Because useless nonterminals are now kept alive (instead of being
1402 `destroyed'), we now sometimes examine them, and store information
1403 related to them. Hence we need to know their number, and adjust
1406 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
1408 * src/LR0.c (allocate_itemsets): The memory allocated to
1409 `symbol_count' was used for two different purpose: once to count
1410 the number of occurrences of each symbol, and later reassigned to
1411 `shift_symbol', containing the symbol that can be shifted from a
1413 Deobfuscate, i.e., allocate, use and free `symbol_count' here
1415 (new_itemsets): Allocate `shift_symbol' here.
1416 (allocate_itemsets): symbol_count includes useless nonterminals.
1418 (free_storage): Use `free', not `XFREE', for pointers that cannot
1421 2001-12-05 Akim Demaille <akim@epita.fr>
1423 * src/nullable.c (set_nullable): Deobfuscate the handling of
1425 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
1427 2001-12-05 Akim Demaille <akim@epita.fr>
1429 * src/gram.c, src/gram.h (ritem_print): New.
1430 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
1431 (This useless function was defined only to work around VMS linkers
1432 that can't handle compilation units with variables only).
1433 * src/reduce.c (dump_grammar): Use it to trace the construction of
1436 2001-12-04 Paul Eggert <eggert@twinsun.com>
1438 * src/bison.simple (union yyalloc): Change member names
1439 to be the same as the stack names.
1440 (yyparse): yyptr is now union yyalloc *, not char *.
1441 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
1442 and may generate better code on some machines.
1443 (yystpcpy): Use prototype if __STDC__ is defined, not just
1444 if __cplusplus is defined.
1446 2001-11-30 Akim Demaille <akim@epita.fr>
1448 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
1449 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
1450 Gettext doesn't compile cleanly, and dies with -Werror.
1451 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
1452 Include WARNING_CFLAGS here.
1453 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
1454 before being defined.
1456 2001-11-27 Paul Eggert <eggert@twinsun.com>
1458 * lib/quotearg.h (quotearg_n, quotearg_n_style):
1459 First arg is int, not unsigned.
1460 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
1461 (SIZE_MAX, UINT_MAX): New macros.
1462 (quotearg_n_options): Abort if N is negative.
1463 Avoid overflow check on hosts where size_t is 64 bits and int
1464 is 32 bits, as overflow is impossible there.
1465 Fix off-by-one typo that caused unnecessary reallocation.
1467 2001-11-29 Paul Eggert <eggert@twinsun.com>
1469 Name space cleanup in generated parser.
1471 * doc/bison.texinfo (Bison Parser): Discuss system headers
1472 and their effect on the user name space.
1475 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
1476 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
1477 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
1479 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
1480 on user names when possible.
1482 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
1483 Simplify test for whather <alloca.h> exists.
1485 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
1487 (<stdio.h>): Include if YYDEBUG.
1489 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
1490 ! defined (yyoverflow) && ! defined (yymemcpy).
1492 (yymemcpy, yyparse): Rename local variables as needed so that
1493 they all begin with 'yy'.
1495 (yystrlen, yystpcpy): New functions.
1497 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
1500 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
1501 instead of relying on string.h functions. Use YYSTACK_ALLOC
1502 and YYSTACK_FREE instead of malloc and free.
1504 2001-11-30 Akim Demaille <akim@epita.fr>
1506 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
1507 before their first uses.
1508 (YYBISON, YYPURE): Move to the top of the output.
1510 2001-11-30 Akim Demaille <akim@epita.fr>
1512 * tests/reduce.at (Useless Nonterminals): Fix.
1514 2001-11-30 Akim Demaille <akim@epita.fr>
1516 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
1517 if body instead of `;' to pacify GCC's warnings.
1519 2001-11-30 Akim Demaille <akim@epita.fr>
1521 Instead of mapping the LHS of unused rules to -1, keep the LHS
1522 valid, but flag the rules as invalid.
1524 * src/gram.h (rule_t): `useful' is a new member.
1525 * src/print.c (print_grammar): Adjust.
1526 * src/derives.c (set_derives): Likewise.
1527 * src/reader.c (packgram, reduce_output): Likewise.
1528 * src/reduce.c (reduce_grammar_tables): Likewise.
1529 * tests/reduce.at (Underivable Rules, Useless Rules): New.
1531 2001-11-30 Akim Demaille <akim@epita.fr>
1533 * src/reduce.c (reduce_output): Formatting changes.
1534 * src/print.c (print_results, print_grammar): Likewise.
1535 * tests/regression.at (Rule Line Numbers)
1536 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
1538 2001-11-30 Akim Demaille <akim@epita.fr>
1540 * src/reduce.c (nonterminals_reduce): Instead of throwing away
1541 useless nonterminals, move them at the end of the symbol arrays.
1542 (reduce_output): Adjust.
1543 * tests/reduce.at (Useless Nonterminals): Adjust.
1545 2001-11-30 Akim Demaille <akim@epita.fr>
1547 * src/reduce.c: Various comment/formatting changes.
1548 (nonterminals_reduce): New, extracted from...
1549 (reduce_grammar_tables): here.
1550 (reduce_grammar): Call nonterminals_reduce.
1552 2001-11-29 Paul Eggert <eggert@twinsun.com>
1554 * src/bison.simple (YYSTACK_REALLOC): Remove.
1555 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
1556 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
1558 (union yyalloc): New type.
1559 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
1560 an arbitrary restriction on hosts where size_t is wider than int.
1562 (yyparse): Don't dump core if alloca or malloc fails; instead, report
1563 a parser stack overflow. Allocate just one block of memory for all
1564 three stacks, instead of allocating three blocks; this typically is
1565 faster and reduces fragmentation.
1567 Do not limit the number of items in the stack to a value that fits
1568 in 'int', as this is an arbitrary limit on hosts with 64-bit
1569 size_t and 32-bit int.
1571 2001-11-29 Marc Autret <autret_m@epita.fr>
1573 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
1574 of defining YYERROR_VERBOSE.
1575 [AT_DATA]: $4 is now out of C declarations in the prologue.
1577 2001-11-28 Marc Autret <autret_m@epita.fr>
1579 * src/reader.c (parse_dquoted_param): New.
1580 (parse_skel_decl): Use it.
1581 * src/lex.h: Add its prototype.
1582 * src/lex.c (literalchar): Become not static.
1584 2001-11-28 Marc Autret <autret_m@epita.fr>
1586 * src/output.h: And put its extern declaration here.
1587 * src/output.c (error_verbose): Define here.
1588 (prepare): Echo name modification.
1589 * src/getargs.h: Clean its extern declaration.
1590 * src/getargs.c (error_verbose_flag): Remove.
1591 (getargs): Remove case 'e'.
1592 * src/options.c (option_table): 'error-verbose' is now seen as simple
1596 * src/reader.c (read_declarations): Remove case tok_include.
1597 (parse_include_decl): Remove.
1598 * src/lex.h (token_t): Remove tok_include.
1599 * src/options.c (option_table): 'include' is now a simple command line
1602 2001-11-28 Marc Autret <autret_m@epita.fr>
1604 * src/bison.simple: Adjust muscle names.
1605 * src/muscle_tab.c (muscle_init): Also rename the muscles.
1606 * src/output.c (prepare): s/_/-/ for the muscles names.
1607 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
1609 2001-11-28 Marc Autret <autret_m@epita.fr>
1611 * src/bison.simple: Fix debug.
1612 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
1614 2001-11-28 Akim Demaille <akim@epita.fr>
1616 * src/LR0.c (shifts_new): New.
1617 (save_shifts, insert_start_shift, augment_automaton): Use it.
1619 2001-11-28 Akim Demaille <akim@epita.fr>
1621 * src/closure.c (closure): `b' and `ruleno' denote the same value:
1624 2001-11-28 Akim Demaille <akim@epita.fr>
1626 * src/closure.c (closure): Instead of looping over word in array
1627 then bits in words, loop over bits in array.
1629 2001-11-28 Akim Demaille <akim@epita.fr>
1631 * src/closure.c (closure): No longer optimize the special case
1632 where all the bits of `ruleset[r]' are set to 0, to make the code
1635 2001-11-28 Akim Demaille <akim@epita.fr>
1637 * src/closure.c (closure): `r' and `c' are new variables, used to
1638 de-obfuscate accesses to RULESET and CORE.
1640 2001-11-28 Akim Demaille <akim@epita.fr>
1642 * src/reduce.c (reduce_print): Use ngettext.
1643 (dump_grammar): Improve the trace accuracy.
1645 2001-11-28 Akim Demaille <akim@epita.fr>
1647 * src/reduce.c (dump_grammar): Don't translate trace messages.
1649 2001-11-28 Akim Demaille <akim@epita.fr>
1651 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
1652 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
1653 as all tags are free'ed afterwards.
1656 2001-11-27 Paul Eggert <eggert@twinsun.com>
1658 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
1659 use alloca when we didn't want to, and vice versa.
1661 2001-11-27 Marc Autret <autret_m@epita.fr>
1663 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
1665 * src/output.c (prepare): Remove its update.
1667 2001-11-27 Marc Autret <autret_m@epita.fr>
1669 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
1672 2001-11-27 Marc Autret <autret_m@epita.fr>
1674 * src/bison.simple: Remove YYERROR_VERBOSE using.
1675 Use %%error_verbose.
1676 (yyparse): Likewise.
1677 * src/output.c (prepare): Give its final value.
1678 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
1679 * src/getargs.h: Add its extern declaration.
1680 * src/getargs.c (error_verbose_flag): New int.
1681 (getargs): Update to catch new case.
1682 * src/options.c (option_table): 'error-verbose' is a new option.
1683 (shortopts): Update.
1685 2001-11-27 Akim Demaille <akim@epita.fr>
1687 * src/system.h: Use intl/libgettext.h.
1688 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
1690 2001-11-27 Akim Demaille <akim@epita.fr>
1692 * tests/torture.at (Exploding the Stack Size with Malloc):
1693 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
1695 2001-11-27 Akim Demaille <akim@epita.fr>
1697 * src/files.c: Include error.h.
1698 Reported by Hans Aberg.
1700 2001-11-26 Marc Autret <autret_m@epita.fr>
1702 * src/reader.c (parse_include_decl): New, not yet implemented.
1703 (read_declarations): Add case tok_include.
1704 * src/getargs.h (include): Add its extern definition.
1705 * src/getargs.c (include): New const char *.
1706 (getargs): Add case '-I'.
1707 * src/options.c (option_table): Add include as command line and
1709 * src/lex.h (token_t): Add tok_include.
1711 2001-11-26 Akim Demaille <akim@epita.fr>
1713 * src/reader.c (readgram): Make sure rules for mid-rule actions
1714 have a lineno equal to that of their host rule.
1715 Reported by Hans Aberg.
1716 * tests/regression.at (Rule Line Numbers): New.
1718 2001-11-26 Akim Demaille <akim@epita.fr>
1720 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
1723 2001-11-26 Akim Demaille <akim@epita.fr>
1725 * src/complain.c, src/complain.h (error): Remove, provided by
1728 2001-11-26 Akim Demaille <akim@epita.fr>
1730 * src/reader.c (read_declarations): Don't abort on tok_illegal,
1731 issue an error message.
1732 * tests/regression.at (Invalid %directive): New.
1733 Reported by Hans Aberg.
1735 2001-11-26 Akim Demaille <akim@epita.fr>
1737 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
1738 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1740 2001-11-26 Akim Demaille <akim@epita.fr>
1742 * src/conflicts.c (conflicts_print): Don't complain at all when
1743 there are no reduce/reduce conflicts, and as many shift/reduce
1744 conflicts as expected.
1745 * tests/regression.at (%expect right): Adjust.
1747 2001-11-23 Akim Demaille <akim@epita.fr>
1749 * lib/alloca.c: Update, from fileutils.
1751 2001-11-23 Akim Demaille <akim@epita.fr>
1753 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
1755 2001-11-23 Akim Demaille <akim@epita.fr>
1757 * src/system.h: Include alloca.h.
1758 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
1760 2001-11-23 Akim Demaille <akim@epita.fr>
1762 * src/print_graph.c (print_actions): Remove `rule', unused.
1763 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
1764 pacify GCC's signed < unsigned warnings.
1765 * src/closure.c (itemsetsize): Likewise.
1766 * src/reader.c (symbol_list_new): Static.
1768 2001-11-23 Akim Demaille <akim@epita.fr>
1770 Attaching lineno to buckets is stupid, since only one copy of each
1771 symbol is kept, only the line of the first occurrence is kept too.
1773 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
1774 * src/reader.c (rline_allocated): Remove, unused.
1775 (symbol_list): Have a `line' member.
1776 (symbol_list_new): New.
1778 * src/print.c (print_grammar): Output the rule line numbers.
1779 * tests/regression.at (Solved SR Conflicts)
1780 (Unresolved SR Conflicts): Adjust.
1781 Reported by Hans Aberg.
1783 2001-11-22 Marc Autret <autret_m@epita.fr>
1785 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
1787 2001-11-22 Marc Autret <autret_m@epita.fr>
1789 * src/muscle_tab.c (muscle_init): Remove initialization of
1791 * src/output.c (output_master_parser): Do it here.
1793 2001-11-20 Akim Demaille <akim@epita.fr>
1796 * configure.in (ALL_LINGUAS): Adjust.
1797 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
1798 longer contains strings to translate.
1800 2001-11-19 Akim Demaille <akim@epita.fr>
1802 * src/conflicts.c (conflicts_print): Add a missing \n.
1804 2001-11-19 Akim Demaille <akim@epita.fr>
1806 * src/nullable.c (nullable_print): New.
1807 (set_nullable): Call it when tracing.
1808 Better locality of variables.
1810 2001-11-19 Akim Demaille <akim@epita.fr>
1812 * src/print.c (print_actions): Better locality of variables.
1814 2001-11-19 Akim Demaille <akim@epita.fr>
1816 * src/derives.c (print_derives): Fix and enrich.
1817 * src/closure.c (print_fderives): Likewise.
1819 2001-11-19 Akim Demaille <akim@epita.fr>
1821 * src/closure.c (itemsetend): Remove, replaced with...
1824 2001-11-19 Akim Demaille <akim@epita.fr>
1826 * src/LR0.c (kernel_end): Remove, replaced with...
1829 2001-11-19 Akim Demaille <akim@epita.fr>
1831 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
1834 2001-11-19 Akim Demaille <akim@epita.fr>
1836 * src/closure.c (closure): Use arrays instead of pointers to clarify.
1838 2001-11-19 Akim Demaille <akim@epita.fr>
1840 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
1842 * src/LR0.c: Likewise.
1843 (allocate_itemsets): Use arrays instead of pointers to clarify.
1845 2001-11-19 Akim Demaille <akim@epita.fr>
1847 * src/getargs.c (statistics_flag): Replace with...
1849 (longopts): Accept --trace instead of --statistics.
1850 * src/getargs.h, src/options.c: Adjust.
1851 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
1852 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
1854 2001-11-19 Akim Demaille <akim@epita.fr>
1856 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
1857 pointers to clarify the code.
1858 (save_reductions, save_shifts): Factor common parts of alternatives.
1860 2001-11-19 Akim Demaille <akim@epita.fr>
1862 * src/LR0.c (new_state, get_state): Complete TRACE code.
1863 * src/closure.c: Include `reader.h' to get `tags', needed by the
1865 Rename the conditional DEBUG as TRACE.
1866 Output consistently TRACEs to stderr, not stdout.
1867 * src/derives.c: Likewise.
1868 * src/reduce.c: (inaccessable_symbols): Using if is better style
1870 Use `#if TRACE' instead of `#if 0' for tracing code.
1872 2001-11-19 Akim Demaille <akim@epita.fr>
1874 * src/system.h (LIST_FREE, shortcpy): New.
1875 * src/LR0.c: Use them.
1876 * src/output.c (free_itemsets, free_reductions, free_shifts):
1877 Remove, replaced by LIST_FREE.
1879 2001-11-19 Akim Demaille <akim@epita.fr>
1881 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
1882 (REDUCTIONS_ALLOC): New.
1883 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
1886 2001-11-19 Akim Demaille <akim@epita.fr>
1888 * src/LR0.c (new_state): Complete trace code.
1889 * src/nullable.c (set_nullable): Don't translate traces.
1891 2001-11-19 Akim Demaille <akim@epita.fr>
1893 * src/print_graph.c (print_core): Better locality of variables.
1894 * src/print.c (print_core): Likewise.
1896 2001-11-19 Akim Demaille <akim@epita.fr>
1898 * src/vcg.c: You do the output, so you are responsible of the
1899 handling of VCG syntax, in particular: use quotearg.
1900 * src/print_graph.c: Don't.
1901 (print_actions): Don't output the actions as part of the nodes,
1902 since that's the job of the edges.
1903 (print_state): Don't output by hand: fill the node description,
1904 and ask for its output.
1906 2001-11-19 Akim Demaille <akim@epita.fr>
1908 * src/bison.simple (yyparse): When verbosely reporting an error,
1909 no longer put additional quotes around token names.
1910 * tests/calc.at: Adjust.
1912 2001-11-19 Akim Demaille <akim@epita.fr>
1914 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
1915 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
1916 * src/output.c: Adjust.
1918 2001-11-19 Akim Demaille <akim@epita.fr>
1920 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
1922 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
1924 2001-11-19 Akim Demaille <akim@epita.fr>
1926 * src/gram.h (rule_t): New.
1928 (rrhs, rlhs): Remove, part of state_t.
1929 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
1930 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
1931 * src/reader.c, src/reduce.c: Adjust.
1933 2001-11-19 Akim Demaille <akim@epita.fr>
1935 * src/reader.c (symbols_output): New, extracted from...
1936 (packsymbols): Here.
1939 2001-11-19 Akim Demaille <akim@epita.fr>
1941 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
1942 (maxrhs): this new function.
1944 2001-11-19 Akim Demaille <akim@epita.fr>
1946 * src/lalr.c (F): New macro to access the variable F.
1949 2001-11-19 Akim Demaille <akim@epita.fr>
1951 * src/lalr.h (LA): New macro to access the variable LA.
1952 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1953 * src/lalr.c: Adjust.
1955 2001-11-19 Akim Demaille <akim@epita.fr>
1957 * src/lalr.c (initialize_LA): Only initialize LA. Let...
1958 (set_state_table): handle the `lookaheads' members.
1960 2001-11-19 Akim Demaille <akim@epita.fr>
1962 * src/lalr.h (lookaheads): Removed array, whose contents is now
1964 (state_t): this structure.
1965 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1968 2001-11-19 Akim Demaille <akim@epita.fr>
1970 * src/lalr.h (consistent): Removed array, whose contents is now
1972 (state_t): this structure.
1973 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1976 2001-11-19 Akim Demaille <akim@epita.fr>
1978 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
1979 contents are now members of...
1980 (state_t): this structure.
1981 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1984 2001-11-19 Akim Demaille <akim@epita.fr>
1986 * src/lalr.h (state_t): New.
1987 (state_table): Be a state_t * instead of a core **.
1988 (accessing_symbol): Remove, part of state_t.
1989 * src/lalr.c: Adjust.
1990 (set_accessing_symbol): Merge into...
1991 (set_state_table): this.
1992 * src/print_graph.c, src/conflicts.c: Adjust.
1994 2001-11-14 Akim Demaille <akim@epita.fr>
1996 * tests/calc.at, tests/output.at, tests/regression.at,
1997 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
1998 now the tests are run in private dirs, therefore AC_CLEANUP and
1999 family can be simplified to 0-ary.
2000 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
2001 use abs. path to find config.h.
2002 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
2003 stderr, there can be way too much random noise.
2004 Instead pass -Werror to GCC and rely on the exit status.
2005 Reported by Wolfram Wagner.
2007 2001-11-14 Akim Demaille <akim@epita.fr>
2009 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
2010 defined only if yyoverflow is defined, to avoid `warning: unused
2012 Reported by The Test Suite.
2014 2001-11-14 Akim Demaille <akim@epita.fr>
2016 * src/print.c: Include reduce.h.
2017 Reported by Hans Aberg.
2019 2001-11-14 Akim Demaille <akim@epita.fr>
2021 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
2022 Revert a previous patch: these are really const.
2023 * src/conflicts.c (conflict_report): Additional useless pair of
2024 braces to pacify GCC's warnings for `if () if () {} else {}'.
2025 * src/lex.c (parse_percent_token): Replace equal_offset with
2028 Be sure to strdup `arg' when used, since there is no reason for
2029 token_buffer not to change.
2031 2001-11-14 Akim Demaille <akim@epita.fr>
2033 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
2035 * src/main.c (main): Use them.
2036 Suggested by Hans Aberg.
2038 2001-11-12 Akim Demaille <akim@epita.fr>
2040 * src/system.h (ngettext): Now that we use ngettext, be sure to
2041 provide a default definition when NLS are not used.
2043 2001-11-12 Akim Demaille <akim@epita.fr>
2045 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
2046 Use @kbd to denote user input.
2047 (Language and Grammar): ANSIfy the example.
2048 Adjust its layout for info/notinfo.
2049 (Location Tracking Calc): Output error messages to stderr.
2050 Output locations in a more GNUtically correct way.
2051 Fix a couple of Englishos.
2052 Adjust @group/@end group pairs.
2054 2001-11-12 Akim Demaille <akim@epita.fr>
2056 %expext was not functioning at all.
2058 * src/conflicts.c (expected_conflicts): Set to -1.
2059 (conflict_report): Use ngettext.
2060 (conflicts_print): Check %expect and make its violation an error.
2061 * doc/bison.texinfo (Expect Decl): Adjust.
2062 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
2063 * tests/regression.at (%expect not enough, %expect right)
2064 (%expect too much): New.
2066 2001-11-12 Akim Demaille <akim@epita.fr>
2068 * tests/regression.at (Conflicts): Rename as...
2069 (Unresolved SR Conflicts): this.
2070 (Solved SR Conflicts): New.
2072 2001-11-12 Akim Demaille <akim@epita.fr>
2074 * src/reduce.c (print_results): Rename as...
2075 (reduce_output): This.
2076 Output to OUT, passed as argument, instead of output_obstack.
2077 (dump_grammar): Likewise.
2080 (reduce_grammar): No longer call reduce_output, since...
2081 * src/print.c (print_results): do it.
2082 * src/main.c (main): Call reduce_free;
2084 2001-11-12 Akim Demaille <akim@epita.fr>
2086 * src/conflicts.c (print_reductions): Accept OUT as argument.
2087 Output to it, not to output_obstack.
2088 * src/print.c (print_actions): Adjust.
2090 2001-11-12 Akim Demaille <akim@epita.fr>
2092 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
2093 the result instead of using...
2094 (src_total, rrc_total, src_count, rrc_count): Remove.
2095 (any_conflicts): Remove.
2096 (print_conflicts): Split into...
2097 (conflicts_print, conflicts_output): New.
2098 * src/conflicts.h: Adjust.
2099 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
2100 * src/print.c (print_grammar): Issue `\n' between two rules.
2101 * tests/regression.at (Conflicts): New.
2102 Reported by Tom Lane.
2104 2001-11-12 Akim Demaille <akim@epita.fr>
2106 * tests/regression.at (Invalid input): Remove, duplicate with
2107 ``Invalid input: 1''.
2109 2001-11-12 Akim Demaille <akim@epita.fr>
2111 * tests/torture.at (AT_DATA_STACK_TORTURE)
2112 (Exploding the Stack Size with Alloca)
2113 (Exploding the Stack Size with Malloc): New.
2115 2001-11-12 Akim Demaille <akim@epita.fr>
2117 * src/bison.simple (YYSTACK_REALLOC): New.
2118 (yyparse) [!yyoverflow]: Use it and free the old stack.
2119 Reported by Per Allansson.
2121 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
2123 * src/bison.simple: Define type yystype instead of YYSTYPE, and
2124 define CPP macro, which substitute YYSTYPE by yystype.
2125 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
2126 with yyltype/YYLTYPE. This allows inclusion of the generated
2127 header within the parser if the compiler, such as GGC, accepts
2128 multiple equivalent #defines.
2131 2001-11-05 Akim Demaille <akim@epita.fr>
2133 * src/reader.c (symbols_output): New, extracted from...
2134 (packsymbols): here.
2137 2001-11-05 Akim Demaille <akim@epita.fr>
2139 * src/lex.c (parse_percent_token): s/quotearg/quote/.
2141 2001-11-05 Akim Demaille <akim@epita.fr>
2143 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
2146 2001-11-05 Akim Demaille <akim@epita.fr>
2148 * src/options.h (struct option_table_struct): set_flags is void*.
2149 * src/options.c (longopts): Support `--output' and `%output'.
2151 * src/lex.h (tok_setopt): Remove, replaced with...
2152 (tok_intopt, tok_stropt): these new guys.
2153 * src/lex.c (getopt.h): Not needed.
2154 (token_buffer, unlexed_token_buffer): Not const.
2155 (percent_table): Promote `-' over `_' in directive names.
2156 Active `%name-prefix', `file-prefix', and `output'.
2157 (parse_percent_token): Accept possible arguments to directives.
2158 Promote `-' over `_' in directive names.
2160 2001-11-04 Akim Demaille <akim@epita.fr>
2162 * doc/bison.texinfo (Decl Summary): Split the list into
2163 `directives for grammars' and `directives for bison'.
2165 Add description of `%name-prefix', `file-prefix', and `output'.
2166 Promote `-' over `_' in directive names.
2167 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
2168 Simplify the description of `--name-prefix'.
2169 Promote `-' over `_' in directive names.
2170 Promote `--output' over `--output-file'.
2171 Fix the description of `--defines'.
2172 * tests/output.at: Exercise %file-prefix and %output.
2174 2001-11-02 Akim Demaille <akim@epita.fr>
2176 * doc/refcard.tex: Update.
2178 2001-11-02 Akim Demaille <akim@epita.fr>
2180 * src/symtab.h (SUNDEF): New.
2181 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
2182 stand for `uninitialized', instead of 0.
2183 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
2184 * src/lex.c (lex): Adjust.
2186 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
2188 Let yylex return it instead of a plain 0.
2189 Reported by Dick Streefland.
2191 2001-11-02 Akim Demaille <akim@epita.fr>
2193 * tests/regression.at (Mixing %token styles): New test.
2195 2001-11-02 Akim Demaille <akim@epita.fr>
2197 * src/reader.c (parse_thong_decl): Formatting changes.
2198 (token_translations_init): New, extracted from...
2199 (packsymbols): Here.
2202 2001-11-01 Akim Demaille <akim@epita.fr>
2204 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
2205 Check that `9foo.y' produces correct cpp guards.
2206 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
2210 2001-11-01 Akim Demaille <akim@epita.fr>
2212 * tests/regression.at (Invalid input: 2): New.
2213 * src/lex.c (unlexed_token_buffer): New.
2214 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
2218 2001-11-01 Akim Demaille <akim@epita.fr>
2220 * tests/calc.at: Catch up with 1.30.
2221 * configure.in: Bump to 1.49a.
2222 Adjust to newer Autotest.
2224 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
2226 * src/conflicts.c: Move global variables rrc_total and src_total ...
2227 (print_conflicts): here.
2228 * src/output.c (output): Free global variable user_toknums.
2229 * src/lex.c (token_obstack): Become static.
2231 2001-10-18 Akim Demaille <akim@epita.fr>
2233 * tests/atlocal.in (GCC): Add.
2234 * tests/calc.at: s/m4_match/m4_bmatch/.
2235 s/m4_patsubst/m4_bpatsubst/.
2236 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
2237 * configure.in: AC_SUBST(GCC).
2239 2001-10-14 Marc Autret <autret_m@epita.fr>
2241 * src/options.c (create_long_option_table): Fix.
2243 2001-10-10 Akim Demaille <akim@epita.fr>
2245 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
2247 2001-10-04 Akim Demaille <akim@epita.fr>
2249 * src/reader.c (parse_union_decl): Push the caracters in
2250 union_obstack, not attrs_obstack.
2252 2001-10-04 Akim Demaille <akim@epita.fr>
2254 Merge in the branch 1.29.
2256 * src/reader.c (packsymbols): Use a temporary obstack for
2257 `%%tokendef', since output_stack is already used elsewhere.
2259 2001-10-02 Akim Demaille <akim@epita.fr>
2263 2001-10-02 Akim Demaille <akim@epita.fr>
2267 2001-10-02 Akim Demaille <akim@epita.fr>
2269 * tests/regression.at (Invalid CPP headers): New.
2270 From Alexander Belopolsky.
2271 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
2273 2001-10-02 Akim Demaille <akim@epita.fr>
2275 * tests/regression.at (Invalid input): New.
2276 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
2279 2001-10-02 Akim Demaille <akim@epita.fr>
2281 * tests/calc.at: Now that --debug works, the tests must be adjusted.
2283 2001-10-02 Akim Demaille <akim@epita.fr>
2285 * src/output.c (output_parser): Assert `skeleton'.
2286 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
2290 2001-10-01 Marc Autret <autret_m@epita.fr>
2292 * src/lex.h: Echo modifications.
2293 * src/lex.c (unlex): Parameter is now token_t.
2296 2001-10-01 Marc Autret <autret_m@epita.fr>
2298 * src/main.c: Include lex.h.
2301 2001-09-29 Akim Demaille <akim@epita.fr>
2303 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
2305 2001-09-28 Akim Demaille <akim@epita.fr>
2307 * tests/testsuite.at: Update to newer Autotest.
2308 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
2310 2001-09-27 Akim Demaille <akim@epita.fr>
2312 Position independent wrapper.
2314 * tests/bison: Remove.
2315 * tests/bison.in: New.
2316 * configure.in: Adjust.
2318 2001-09-27 Paul Eggert <eggert@twinsun.com>
2320 Port quotearg fixes from tar 1.13.24.
2322 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
2324 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
2325 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
2327 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
2328 * m4/mbrtowc.m4: New file.
2329 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
2330 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
2332 2001-09-27 Akim Demaille <akim@epita.fr>
2336 2001-09-27 Akim Demaille <akim@epita.fr>
2340 2001-09-25 Akim Demaille <akim@epita.fr>
2342 * src/system.h: Include `xalloc.h'.
2343 Remove it from the C files.
2344 * src/files.c (output_files): Free the obstacks.
2345 * src/lex.c (init_lex): Rename as...
2348 * src/main.c (main): Use it.
2350 2001-09-24 Marc Autret <autret_m@epita.fr>
2352 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
2353 to output informations in fout (FILE*).
2354 (open_graph, close_graph): Likewise.
2355 (output_graph, output_edge, output_node): Likewise.
2356 * src/vcg.h: Update function prototypes.
2357 * src/print_graph.c (print_graph): Open output graph file.
2358 (print_actions): Adjust.
2359 * src/files.h: Remove extern declaration.
2360 * src/files.c: Remove graph_obstack declaration.
2361 (open_files): Remove graph_obstack initialization.
2362 (output_files): Remove graph_obstack saving.
2364 2001-09-24 Marc Autret <autret_m@epita.fr>
2366 * src/files.c (compute_output_file_names): Fix.
2368 2001-09-24 Marc Autret <autret_m@epita.fr>,
2369 Akim Demaille <akim@epita.fr>
2371 * src/reader.c (reader): Remove call to free_symtab ().
2372 * src/main.c (main): Call it here.
2374 * src/conflicts.c (initialize_conflicts): Rename as...
2375 (solve_conflicts): this.
2376 * src/print.c (print_core, print_actions, print_state)
2377 (print_grammar): Dump to a file instead a `output_obstack'.
2378 (print_results): Dump `output_obstack', and then proceed with the
2380 * src/files.c (compute_output_file_names, close_files): New.
2381 (output_files): Adjust.
2382 * src/main.c (main): Adjust.
2384 2001-09-23 Marc Autret <autret_m@epita.fr>
2386 * src/files.c (compute_header_macro): Computes header macro name
2387 from spec_defines_file when given.
2389 2001-09-23 Marc Autret <autret_m@epita.fr>
2391 * src/files.c (output_files): Add default extensions.
2393 2001-09-22 Akim Demaille <akim@epita.fr>
2395 * src/conflicts.c (finalize_conflicts): Rename as...
2396 (free_conflicts): this.
2398 2001-09-22 Akim Demaille <akim@epita.fr>
2400 * src/gram.c (gram_free): Rename back as...
2402 (output_token_translations): Free `token_translations'.
2403 * src/symtab.c (free_symtab): Free the tag field.
2405 2001-09-22 Akim Demaille <akim@epita.fr>
2407 Remove `translations' as it is always set to true.
2409 * src/gram.h: Adjust.
2410 * src/reader.c (packsymbols, parse_token_decl): Adjust
2411 * src/print.c (print_grammar): Adjust.
2412 * src/output.c (output_token_translations): Adjust.
2413 * src/lex.c (lex): Adjust.
2414 * src/gram.c: Be sure the set pointers to NULL.
2415 (dummy): Rename as...
2418 2001-09-22 Akim Demaille <akim@epita.fr>
2420 * configure.in: Invoke AM_LIB_DMALLOC.
2421 * src/system.h: Use dmalloc.
2422 * src/LR0.c: Be sure to have pointers initialized to NULL.
2423 (allocate_itemsets): Allocate kernel_items only if needed.
2425 2001-09-22 Akim Demaille <akim@epita.fr>
2427 * configure.in: Bump to 1.29b.
2428 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
2429 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
2430 need xmalloc.c in calc.y.
2433 2001-09-21 Akim Demaille <akim@epita.fr>
2436 * Makefile.maint, config/config.guess, config/config.sub,
2437 * config/missing: Update from masters.
2438 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
2440 * configure.in (ALL_LINGUAS): Add `tr'.
2442 2001-09-21 Akim Demaille <akim@epita.fr>
2444 * tests/Makefile.am (package.m4): Move to...
2445 ($(srcdir)/$(TESTSUITE)): here.
2447 2001-09-20 Akim Demaille <akim@epita.fr>
2449 * src/complain.c: No longer try to be standalone: use system.h.
2450 Don't assume __STDC__ is defined to 1. Just test if it is defined.
2451 * src/complain.h: Likewise.
2452 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
2453 Remove the unused variable `n'.
2454 From Albert Chin-A-Young.
2456 2001-09-18 Marc Autret <autret_m@epita.fr>
2458 * doc/bison.1: Update.
2459 * doc/bison.texinfo (Bison Options): Update --defines and --graph
2461 (Option Cross Key): Update.
2464 2001-09-18 Marc Autret <autret_m@epita.fr>
2466 * tests/regression.at: New test (comment in %union).
2468 2001-09-18 Marc Autret <autret_m@epita.fr>
2470 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
2472 Reported by Keith Browne.
2474 2001-09-18 Marc Autret <autret_m@epita.fr>
2476 * tests/output.at: Add tests for --defines and --graph.
2478 2001-09-18 Marc Autret <autret_m@epita.fr>
2480 * tests/output.at: Removes tests of %{header,src}_extension features.
2482 2001-09-18 Akim Demaille <akim@epita.fr>
2484 * tests/Makefile.am (package.m4): New.
2485 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
2486 (_AT_CHECK_CALC_ERROR): Likewise.
2487 Factor the `, ' part of verbose error messages.
2489 2001-09-18 Marc Autret <autret_m@epita.fr>
2491 * src/getargs.c (longopts): Declare --defines and --graph as options
2492 with optional arguments.
2493 * src/files.h: Add extern declarations.
2494 * src/files.c (spec_graph_file, spec_defines_file): New.
2495 (output_files): Update.
2496 Remove CPP-outed code.
2498 2001-09-18 Marc Autret <autret_m@epita.fr>
2500 Turn off %{source,header}_extension feature.
2502 * src/files.c (compute_exts_from_gf): Update.
2503 (compute_exts_from_src): Update.
2504 (output_files): CPP-out useless code.
2505 * src/files.h: Remove {header,source}_extension extern declarations.
2506 * src/reader.c (parse_dquoted_param): CPP-out.
2507 (parse_header_extension_decl): Remove.
2508 (parse_source_extension_decl): Remove.
2509 (read_declarations): Remove cases tok_{hdrext,srcext}.
2510 * src/lex.c (percent_table): Remove {header,source}_extension entries.
2511 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
2513 2001-09-10 Akim Demaille <akim@epita.fr>
2515 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
2516 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
2517 (AT_CHECK_OUTPUT): this.
2518 Merely check ls' exit status, its output is useless.
2520 2001-09-10 Akim Demaille <akim@epita.fr>
2522 * tests/calc.at: Use m4_match.
2523 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
2525 2001-09-10 Marc Autret <autret_m@epita.fr>,
2526 Akim Demaille <akim@epita.fr>
2528 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
2530 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
2532 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
2533 * src/lex.h: Adjust prototype.
2534 (token_t): Add `tok_undef'.
2535 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
2536 (parse_percent_token): Now returns token_t.
2537 Add default statement in switch.
2538 (lex): Separate `c' as an input variable, from the token_t result
2540 (unlexed): Is a token_t.
2542 2001-09-10 Akim Demaille <akim@epita.fr>
2544 * configure.in: Bump to 1.29a.
2546 2001-09-07 Akim Demaille <akim@epita.fr>
2550 2001-08-30 Akim Demaille <akim@epita.fr>
2552 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
2553 * m4/atconfig.m4: Remove.
2554 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
2556 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
2557 m4_if, m4_patsubst, and m4_regexp.
2558 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
2559 `input' file instead of echo.
2561 2001-08-29 Akim Demaille <akim@epita.fr>
2565 2001-08-29 Akim Demaille <akim@epita.fr>
2569 2001-08-29 Paul Eggert <eggert@twinsun.com>
2571 * src/bison.simple (yyparse): Don't take the address of an
2572 item before the start of an array, as that doesn't conform to
2575 2001-08-29 Robert Anisko <anisko_r@epita.fr>
2577 * doc/bison.texinfo (Location Tracking Calc): New node.
2579 2001-08-29 Paul Eggert <eggert@twinsun.com>
2581 * src/output.c (output): Do not define const, as this now
2582 causes more problems than it cures.
2584 2001-08-29 Akim Demaille <akim@epita.fr>
2586 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
2588 Be sure to tag the `detailmenu'.
2590 2001-08-29 Akim Demaille <akim@epita.fr>
2592 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
2593 download in a tmp dir.
2595 2001-08-28 Marc Autret <autret_m@epita.fr>
2597 * config/depcomp: New file.
2599 2001-08-28 Marc Autret <autret_m@epita.fr>
2601 * doc/bison.1 (mandoc): Adjust.
2602 From Juan Manuel Guerrero.
2604 2001-08-28 Marc Autret <autret_m@epita.fr>
2606 * src/print_graph.c (print_state): Fix.
2608 2001-08-27 Marc Autret <autret_m@epita.fr>
2610 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
2612 Echo modifications to the functions prototypes.
2613 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
2615 2001-08-27 Marc Autret <autret_m@epita.fr>
2617 * src/vcg.c: Include `xalloc.h'.
2618 (add_colorentry): New.
2619 (add_classname): New.
2620 (add_infoname): New.
2621 * src/vcg.h: Add new prototypes.
2623 2001-08-27 Akim Demaille <akim@epita.fr>
2625 * Makefile.maint: Sync. again with CVS Autoconf.
2627 2001-08-27 Akim Demaille <akim@epita.fr>
2629 * Makefile.maint: Formatting changes.
2630 (po-update, cvs-update, update): New targets.
2633 2001-08-27 Akim Demaille <akim@epita.fr>
2635 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2636 * Makefile.maint: Sync. with CVS Autoconf.
2638 2001-08-27 Marc Autret <autret_m@epita.fr>
2640 * src/vcg.h (struct infoname_s): New.
2641 (struct colorentry_s): New.
2642 (graph_s): New fields {vertical,horizontal}_order in structure.
2643 Add `infoname' field.
2644 Add `colorentry' field;
2645 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
2646 (G_HORIZONTAL_ORDER): New.
2648 (G_COLORENTRY): New.
2649 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
2650 Add output of `infoname'.
2651 Add output of `colorentry'.
2653 2001-08-27 Marc Autret <autret_m@epita.fr>
2655 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
2656 This one shadowed a global parameter.
2658 2001-08-24 Marc Autret <autret_m@epita.fr>
2660 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
2661 instead of `unsigned'.
2662 (print_state): Do not call obstack_object_size () in obstack_grow ()
2663 to avoid macro variables shadowing.
2665 2001-08-23 Marc Autret <autret_m@epita.fr>
2667 * src/lex.c (percent_table): Typo: s/naem/name/.
2669 Normalize new options declarations.
2671 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
2673 * tests/suite.at: Exercise %header_extension and %source_extension.
2675 2001-08-16 Marc Autret <autret_m@epita.fr>
2677 * src/reader.c (parse_dquoted_param): New.
2678 (parse_header_extension_decl): Use it.
2679 (parse_source_extension_decl): Likewise.
2681 2001-08-16 Marc Autret <autret_m@epita.fr>
2683 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
2684 (get_xxxx_str): Use assert () instead of complain ().
2685 Remove return invokations in default cases.
2686 (get_decision_str): Modify default behaviour. Remove second argument.
2687 Echo modifications on calls.
2688 (output_graph): Fix.
2690 2001-08-16 Marc Autret <autret_m@epita.fr>
2692 * src/getargs.c (usage): Update with ``-g, --graph''.
2694 2001-08-16 Marc Autret <autret_m@epita.fr>
2696 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
2697 (Option Cross Key): Likewise.
2698 * doc/bison.1: Update.
2700 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
2702 * src/output.c (output_master_parser): Don't finish action_obstack.
2703 (output_parser): Don't care about the muscle action, here.
2704 (prepare): Copy the action_obstack in the action muscle.
2705 (output): Free action_obstack.
2707 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2709 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
2710 will contain `%union' declaration.
2711 (parse_union_decl): Delete #line directive output.
2712 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
2713 informations about %union.
2714 (parse_union_decl): Copy the union_obstack in the muscle stype.
2715 * src/bison.simple: Add new #line directive.
2716 Add typdef %%stype YYSTYPE.
2718 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2720 * src/bison.simple: Add new `#line' directive.
2722 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
2724 * src/bison.simple: New `#line' directive.
2725 * src/output.c (output_parser): Support new dynamic muscle input_line.
2727 2001-09-22 Marc Autret <autret_m@epita.fr>
2729 * src/output.c (output_master_parser): New.
2730 (output_parser): Be more re-entrant.
2732 2001-09-21 Marc Autret <autret_m@epita.fr>
2734 * src/reader.c (copy_definition, parse_union_decl): Update and use
2736 (copy_action): Likewise.
2737 Use obstack_1grow ().
2738 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
2740 2001-09-21 Marc Autret <autret_m@epita.fr>
2742 * src/options.c (option_table): Adjust.
2743 * src/lex.c (parse_percent_token): Fix.
2745 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2747 * src/options.c (symtab.h): Include it, need by lex.h.
2749 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2751 * src/lex.c (parse_percent_token): Change type of variable `tx', which
2752 is now an option_table_struct*.
2753 (option_strcmp): New function option_strcmp.
2754 (parse_percent_token): Call option_strcmp.
2755 * src/getargs.c (xalloc.h, options.h): Include it.
2756 (getargs): Call create_long_option_table.
2757 (getargs): Free longopts at the end of the function.
2758 (shortopts): Move in options.c.
2759 * src/options.c (create_long_option_table): New function. Convert
2760 information from option_table to option structure.
2761 * src/reader.c (options.h): Include it.
2763 * src/Makefile.am: Adjust.
2764 * src/options.c (option_table): Create from longopts and percent_table.
2765 * src/getargs.c (longopts): Delete.
2766 * src/lex.c (struct percent_table_struct): Delete.
2767 (percent_table): Delete.
2768 (options.h): Include it.
2769 * src/options.c: Create.
2770 * src/options.h: Create.
2771 Declare enum opt_access_e.
2772 Define struct option_table_struct.
2774 2001-09-20 Marc Autret <autret_m@epita.fr>
2776 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
2779 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
2781 * src/bison.simple: s/%%filename/%%skeleton.
2782 * src/muscle_tab.c (getargs.h): Include it.
2783 (muscle_init): Insert new muscle skeleton.
2785 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
2787 * src/output.c (output_parser): Delete unused variable actions_dumped.
2789 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
2791 * src/output.c (output): Delete call to reader_output_yylsp.
2792 * src/reader.c (reader): Likewise.
2793 * src/reader.h: Delete declaration of reader_output_yylsp.
2795 2001-09-02 Marc Autret <autret_m@epita.fr>
2797 * src/reader.c: Include muscle_tab.h.
2798 (parse_union_decl): Update.
2799 (parse_macro_decl): Rename parse_muscle_decl.
2800 Update to use renamed functions and variable.
2801 (read_declarations, copy_action, read_additionnal_code, : Updated
2802 with correct variables and functions names.
2803 (packsymbols, reader): Likewise.
2805 * src/reader.h (muscle_obstack): Extern declaration update.
2807 * src/output.c: Include muscle_tab.h
2808 In all functions using macro_insert, change by using muscle_insert ().
2809 (macro_obstack): Rename muscle_obstack.
2810 Echo modifications in the whole file.
2811 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
2812 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
2813 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
2815 * src/muscle_tab.h: Update double inclusion macros.
2816 (macro_entry_s): Rename muscle_entry_s.
2819 * src/muscle_tab.c: Include muscle_tab.h.
2820 Rename macro_tabble to muscle_table.
2821 (mhash1, mhash2, mcmp): Use muscle_entry.
2822 (macro_init): Rename muscle_init. Update.
2823 (macro_insert): Rename muscle_insert. Update.
2824 (macro_find): Rename muscle_find. Update.
2826 * src/main.c: Include muscle_tab.h.
2827 (main): Call muscle_init ().
2828 * src/Makefile.am (bison_SOURCES): Echo modifications.
2830 2001-09-02 Marc Autret <autret_m@epita.fr>
2832 Now the files macro_tab.[ch] are named muscle_tab.[ch].
2834 * src/muscle_tab.c, src/muscle_tab.h: Add files.
2836 2001-09-02 Marc Autret <autret_m@epita.fr>
2838 * src/macrotab.c, src/macrotab.h: Remove.
2840 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
2842 * src/reader.c (copy_guard): Use muscle to specify the `#line'
2845 2001-09-01 Marc Autret <autret_m@epita.fr>
2847 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
2848 to an explicit value to activate the feature. We do it here.
2850 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2852 * src/output.c (prepare): Delete the `filename' muscule insertion.
2853 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
2854 (parse_union_decl): Likewise.
2855 * src/macrotab.c (macro_init): Initialize filename by infile.
2857 2001-08-31 Marc Autret <autret_m@epita.fr>
2859 * src/bison.simple (YYLSP_NEEDED): New definition.
2860 * src/output.c (prepare): Add macro insertion of `locations_flag'
2862 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2864 * src/output.c (prepare): Delete insertion of previous muscles,
2865 and insert the `prefix' muscles.
2866 * src/macrotab.c (macro_init): Likewise.
2867 (macro_init): Initialization prefix directive by `yy'.
2868 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
2869 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
2870 yylval, yydebug, yyerror, yynerrs and yyparse.
2871 New directive `#define' to substitute yydebug, ... with option
2874 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2876 * src/main.c (main): Standardize.
2877 * src/output.c (output_table_data, output_parser): Likewise.
2878 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
2880 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
2882 * src/reader.c (read_additionnal_code): Rename %%user_code to
2884 * src/output.c (output): Rename %%declarations to %%prologue.
2885 * src/bison.simple: Echo modifications.
2887 2001-08-31 Marc Autret <autret_m@epita.fr>
2889 * src/reader.c (readgram): CleanUp.
2890 (output_token_defines): Likewise.
2891 (packsymbols): Likewise.
2893 * src/output.c (output): CPP-out useless code.
2895 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2897 * src/reader.c (reader): Delete obsolete call to function
2898 output_trailers and output_headers.
2899 * src/output.h: Remove obsolete functions prototypes of output_headers
2900 and output_trailers.
2902 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
2904 * src/main.c: Include macrotab.h.
2905 * src/macrotab.h (macro_entry_s): Constify fields.
2906 Adjust functions prototypes.
2907 * src/macrotab.c (macro_insert): Constify key and value.
2908 (macro_find): Constify key.
2909 (macro_insert): Include 'xalloc.h'
2910 (macro_insert): Use XMALLOC.
2911 (macro_find): Constify return value.
2912 * src/output.c (output_table_data): Rename table to table_data.
2913 (output_parser): Constify macro_key, macro_value.
2915 2001-08-30 Marc Autret <autret_m@epita.fr>
2917 * src/reader.c (parse_skel_decl): New.
2918 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2919 * src/lex.h (token_t): New token `tok_skel'.
2920 * src/lex.c (percent_table): Add skeleton option entry.
2923 2001-08-29 Marc Autret <autret_m@epita.fr>
2925 * src/bison.simple: Add %%user_code directive at the end.
2926 * src/reader.c (read_additionnal_code): New.
2928 * src/output.c (output_program): Remove.
2931 2001-08-28 Marc Autret <autret_m@epita.fr>
2933 * src/output.c (output_actions): Clean up.
2934 (output_gram): CPP-out useless code.
2935 * src/reader.c (reader): Clean up, CPP-out useless code.
2937 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
2939 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
2941 * src/bison.simple: Add `%%definitions'.
2943 2001-08-28 Marc Autret <autret_m@epita.fr>
2945 * config/depcomp: New file.
2947 2001-08-27 Paul Eggert <eggert@twinsun.com>
2949 * src/bison.simple (yyparse): Don't take the address of an
2950 item before the start of an array, as that doesn't conform to
2953 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
2955 * src/output.c (output): Remove the initialization of the macro
2956 obstack. It was done too late here.
2958 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
2960 (reader): Initialize the macro obstack here, since we need it to grow
2961 '%define' directives.
2963 * src/reader.h: Declare the macro obstack as extern.
2965 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
2967 * src/output.c (output_parser): Fix. Store single '%' characters in
2968 the output obstack instead of throwing them away.
2970 2001-08-27 Akim Demaille <akim@epita.fr>
2972 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2974 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2976 * lib/Makefile.am: Adjust.
2978 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2980 * src/bison.simple: Update and add '%%' directives.
2982 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2984 * src/reader.c (reader): Remove calls to 'output_headers' and
2985 'output_trailers'. Remove some C output.
2986 (readgram): Disable a piece of code that was writing a default
2987 definition for 'YYSTYPE'.
2988 (reader_output_yylsp): Remove.
2989 (packsymbols): Output token defintions to a macro.
2990 (copy_definition): Disable C output.
2992 * src/reader.c (parse_macro_decl): New function used to parse macro
2994 (copy_string2): Put the body of copy_string into this new function.
2995 Add a parameter to let the caller choose whether he wants to copy the
2996 string delimiters or not.
2997 (copy_string): Be a simple call to copy_string2 with the last argument
2999 (read_declarations): Add case for macro definition.
3000 (copy_identifier): New.
3001 (parse_macro_decl): Read macro identifiers using copy_identifier
3004 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3006 * src/output.c (prepare): Add prefixed names.
3007 (output_parser): Output semantic actions.
3008 (output_parser): Fix bug on '%%line' directives.
3010 * src/output.c (output_headers): Remove. The C code printed by this
3011 function should now be in the skeletons.
3012 (output_trailers): Remove.
3013 (output): Disable call to 'reader_output_yylsp'.
3014 (output_rule_data): Do not output tables to the table obstack.
3016 * src/output.c: Remove some C dedicated output.
3017 Improve the use of macro and output obstacks.
3018 (output_defines): Remove.
3020 * src/output.c (output_token_translations): Associate 'translate'
3021 table with a macro. No output to the table obstack.
3022 (output_gram): Same for 'rhs' and 'prhs'.
3023 (output_stos): Same for 'stos'.
3024 (output_rule_data): Same for 'r1' and 'r2'.
3025 (token_actions): Same for 'defact'.
3026 (goto_actions): Same for 'defgoto'.
3027 (output_base): Same for 'pact' and 'pgoto'.
3028 (output_table): Same for 'table'.
3029 (output_check): Same for 'check'.
3031 * src/output.c (output_table_data): New function.
3032 (output_short_table): Remove.
3033 (output_short_or_char_table): Remove.
3035 * src/output.c (output_parser): Replace most of the skeleton copy code
3036 with something new. Skeletons are now processed character by character
3037 rather than line by line, and Bison looks for '%%' macros. This is the
3038 first step in making Bison's output process (a lot) more flexible.
3039 (output_parser): Use the macro table.
3041 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3043 * src/main.c (main): Initialize the macro table.
3045 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3047 * src/lex.c (percent_table): Add tok_define.
3048 * src/lex.h: Add tok_define.
3050 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3052 * src/macrotab.c: New file.
3053 * src/macrotab.h: New file.
3054 * src/Makefile.am: Update.
3056 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3058 * lib/hash.c: New file.
3059 * lib/hash.h: New file.
3060 * lib/Makefile.am: Update.
3062 2001-08-15 Akim Demaille <akim@epita.fr>
3066 2001-08-15 Marc Autret <autret_m@epita.fr>
3068 * src/reader.c (readgram): Indent output macro YYSTYPE.
3069 (packsymbols): Likewise.
3070 (output_token_defines): Likewise.
3071 * src/files.c: Standardize.
3072 (compute_header_macro): New.
3073 (defines_obstack_save): New. Use compute_header_macro.
3074 (output_files): Update. Use defines_obstack_save.
3076 2001-08-15 Akim Demaille <akim@epita.fr>
3078 * doc/bison.texinfo (Table of Symbols): Document
3081 2001-08-15 Akim Demaille <akim@epita.fr>
3083 * missing: Update from CVS Automake.
3084 * config/config.guess, config/config.sub, config/texinfo.tex:
3085 Update from gnu.org.
3087 2001-08-15 Akim Demaille <akim@epita.fr>
3089 * Makefile.maint: Sync with CVS Autoconf.
3091 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
3093 * doc/bison.texinfo: Include GNU Free Documentation License from
3095 * doc/fdl.texi: Add to package.
3097 2001-08-14 Marc Autret <autret_m@epita.fr>
3099 Turn on %{source,header}_extension features.
3101 * src/lex.c (percent_table): Un-CPP out header_extension and
3103 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
3104 (compute_exts_from_src): Remove conditions. It restores priorities
3107 2001-08-14 Marc Autret <autret_m@epita.fr>
3109 * src/files.c (compute_base_names): Add extensions computing when
3110 `--file-prefix' used.
3111 Standardize function calls.
3113 2001-08-13 Marc Autret <autret_m@epita.fr>
3115 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
3116 defining it (defined but null disables alloca).
3118 2001-08-13 Marc Autret <autret_m@epita.fr>
3120 * src/bison.simple (_yy_memcpy): CPP reformat.
3122 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
3124 * tests/atconfig.in (CPPFLAGS): Fix.
3126 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
3128 * doc/bison.texinfo: Include GNU General Public License from
3130 * doc/gpl.texi: Add to package.
3132 2001-08-10 Marc Autret <autret_m@epita.fr>
3134 * src/print_graph.h: Fix.
3135 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
3137 2001-08-10 Akim Demaille <akim@epita.fr>
3139 * src/system.h: Provide default declarations for stpcpy, strndup,
3142 2001-08-10 Robert Anisko <anisko_r@epita.fr>
3144 * doc/bison.texinfo (Locations): Update @$ stuff.
3146 2001-08-09 Robert Anisko <anisko_r@epita.fr>
3148 * src/bison.simple (YYLLOC_DEFAULT): Update.
3151 2001-08-08 Marc Autret <autret_m@epita.fr>
3153 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
3154 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
3155 Reported by Fabrice Bauzac.
3157 2001-08-08 Marc Autret <autret_m@epita.fr>
3159 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
3160 * src/vcg.c (output_node): Fix.
3161 * src/vcg.h: Cleanup.
3162 * src/print_graph.c: Add comments.
3163 (node_output_size): New global variable. Simplify the formatting of
3164 the VCG graph output.
3165 (print_actions): Unused code is now used. It notifies the final state
3166 and no action states in the VCG graph. It also give the reduce actions.
3167 The `shift and goto' edges are red and the `go to state' edges are
3169 Get the current node name and node_obstack by argument.
3170 (node_obstack): New variable.
3171 (print_state): Manage node_obstack.
3172 (print_core): Use node_obstack given by argument.
3173 A node is not only computed here but in print_actions also.
3174 (print_graph): CPP out useless code instead of commenting it.
3176 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
3178 * tests/atconfig.in (CPPFLAGS): Fix.
3180 2001-08-07 Akim Demaille <akim@epita.fr>
3182 * src/print_graph.c (quote): New.
3183 (print_core): Use it.
3185 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3187 * src/vcg.c (complain.h): Include it.
3188 Unepitaize `return' invocations.
3189 [NDEBUG] (main): Remove.
3190 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
3191 * src/files.c (open_files): Initialize graph_obstack.
3192 * src/print_graph.c (print_actions): CPP out useless code.
3193 (print_core): Don't output the last `\n' in labels.
3195 * src/files.c (output_files): Output the VCG file.
3196 * src/main.c (main): Invoke print_graph ();
3198 2001-08-06 Marc Autret <autret_m@epita.fr>
3200 Automaton VCG graph output.
3201 Using option ``-g'' or long option ``--graph'', you can generate
3202 a gram_filename.vcg file containing a VCG description of the LALR (1)
3203 automaton of your grammar.
3205 * src/main.c: Call to print_graph() function.
3206 * src/getargs.h: Update.
3207 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
3208 (graph_flag): New flag.
3210 (getargs): Add case `g'.
3211 * src/files.c (graph_obstack): New obstack struct.
3212 (open_files): Initialize new obstack.
3213 (output_files): Saves graph_obstack if required.
3214 * src/files.h (graph_obstack): New extern declaration.
3215 * src/Makefile.am: Add new source files.
3217 2001-08-06 Marc Autret <autret_m@epita.fr>
3219 * src/print_graph.c, src/print_graph.h (graph): New.
3220 * src/vcg.h: New file.
3221 * src/vcg.c: New file, VCG graph handling.
3223 2001-08-06 Marc Autret <autret_m@epita.fr>
3225 Add of %source_extension and %header_extension which specify
3226 the source or/and the header output file extension.
3228 * src/files.c (compute_base_names): Remove initialisation of
3229 src_extension and header_extension.
3230 (compute_exts_from_gf): Update.
3231 (compute_exts_from_src): Update.
3232 (output_files): Update.
3233 * src/reader.c (parse_header_extension_decl): New.
3234 (parse_source_extension_decl): New.
3235 (read_declarations): New case statements for the new tokens.
3236 * src/lex.c (percent_table): Add entries for %source_extension
3237 and %header_extension.
3238 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
3240 2001-08-06 Marc Autret <autret_m@epita.fr>
3242 * configure.in: Bump to 1.28c.
3243 * doc/bison.texinfo: Texinfo thingies.
3245 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
3247 * tests/atconfig.in (CPPFLAGS): Add.
3248 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
3250 2001-08-03 Akim Demaille <akim@epita.fr>
3254 2001-08-03 Akim Demaille <akim@epita.fr>
3256 * tests/Makefile.am (check-local): Ship testsuite.
3257 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
3260 2001-08-03 Akim Demaille <akim@epita.fr>
3262 * configure.in: Try using -Wformat when compiling.
3264 2001-08-03 Akim Demaille <akim@epita.fr>
3266 * configure.in: Bump to 1.28b.
3268 2001-08-03 Akim Demaille <akim@epita.fr>
3270 * src/complain.c: Adjust strerror_r portability issues.
3272 2001-08-03 Akim Demaille <akim@epita.fr>
3276 2001-08-03 Akim Demaille <akim@epita.fr>
3278 * src/getargs.c, src/getarg.h (skeleton)): Constify.
3279 * src/lex.c (literalchar): Avoid name clashes on `buf'.
3280 * src/getargs.c: Include complain.h.
3281 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
3282 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
3284 2001-08-03 Akim Demaille <akim@epita.fr>
3286 * src/reader.c (readgram): Display hidden chars in error messages.
3288 2001-08-03 Akim Demaille <akim@epita.fr>
3290 Update to gettext 0.10.39.
3292 2001-08-03 Akim Demaille <akim@epita.fr>
3294 * lib/strspn.c: New.
3296 2001-08-01 Marc Autret <autret_m@epita.fr>
3298 * doc/bison.texinfo: Update.
3299 * doc/bison.1 (mandoc): Update.
3300 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
3301 * src/files.c: Support output files extensions computing.
3302 (src_extension): New static variable.
3303 (header_extension): New static variable.
3305 (get_extension_index): New function, gets the index of an extension
3306 filename in a string.
3307 (compute_exts_from_gf): New function, computes extensions from the
3308 grammar file extension.
3309 (compute_exts_from_src): New functions, computes extensions from the
3310 C source file extension, file given by ``-o'' option.
3311 (compute_base_names): Update.
3312 (output_files): Update.
3314 2001-08-01 Robert Anisko <anisko_r@epita.fr>
3316 * doc/bison.texi: Document @$.
3317 (Locations): New section.
3319 2001-07-18 Akim Demaille <akim@epita.fr>
3321 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
3322 * config/prev-version.txt, config/move-if-change: New.
3323 * Makefile.am: Adjust.
3325 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
3327 * src/bison.simple (yyparse): Suppress warning `comparaison
3328 between signed and unsigned'.
3330 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
3332 * src/getargs.h (raw_flag): Remove.
3333 * src/getargs.c: Die on `-r'/`--raw'.
3334 * src/lex.c (parse_percent_token): Die on `%raw'.
3335 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
3336 * tests/calc.at: Suppress test with option `--raw'.
3338 2001-07-14 Akim Demaille <akim@epita.fr>
3341 * configure.in: Require Autoconf 2.50.
3342 Update to gettext 0.10.38.
3344 2001-03-16 Akim Demaille <akim@epita.fr>
3346 * doc/bison.texinfo: ANSIfy the examples.
3348 2001-03-16 Akim Demaille <akim@epita.fr>
3350 * getargs.c (skeleton): New variable.
3351 (longopts): --skeleton is a new option.
3352 (shortopts, getargs): -S is a new option.
3353 * getargs.h: Declare skeleton.
3354 * output.c (output_parser): Use it.
3356 2001-03-16 Akim Demaille <akim@epita.fr>
3358 * m4/strerror_r.m4: New.
3359 * m4/error.m4: Run AC_FUNC_STRERROR_R.
3360 * lib/error.h, lib/error.c: Update.
3362 2001-03-16 Akim Demaille <akim@epita.fr>
3364 * src/getargs.c (longopts): Clean up.
3366 2001-02-21 Akim Demaille <akim@epita.fr>
3368 * src/reader.c (gensym): `gensym_count' is your own.
3369 Use a static buf to create the symbol name, as token_buffer is no
3372 2001-02-08 Akim Demaille <akim@epita.fr>
3374 * src/conflicts.c (conflict_report): Be sure not to append to res
3375 between two calls, which could happen if both first sprintf were
3376 skipped, but not the first cp += strlen.
3378 2001-02-08 Akim Demaille <akim@epita.fr>
3380 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
3381 New, from fileutils 4.0.37.
3382 * configure.in: Require Autoconf 2.49c. I took some time before
3383 making this decision. This is the only way out for portability
3384 issues in Bison, it would mean way too much duplicate effort to
3385 import in Bison features implemented in 2.49c since 2.13.
3386 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
3388 2001-02-02 Akim Demaille <akim@epita.fr>
3390 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
3391 * lib/xalloc.h, lib/xmalloc.c: Update.
3393 2001-01-19 Akim Demaille <akim@epita.fr>
3395 Get rid of the ad hoc handling of token_buffer in the scanner: use
3398 * src/lex.c (token_obstack): New.
3399 (init_lex): Initialize it. No longer call...
3400 (grow_token_buffer): this. Remove it.
3401 Adjust all the places which used it to use the obstack.
3403 2001-01-19 Akim Demaille <akim@epita.fr>
3405 * src/lex.h: Rename all the tokens:
3406 s/\bENDFILE\b/tok_eof/g;
3407 s/\bIDENTIFIER\b/tok_identifier/g;
3409 Let them be enums, not #define, to ease debugging.
3410 Adjust all the code.
3412 2001-01-18 Akim Demaille <akim@epita.fr>
3414 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
3415 * src/lex.c (maxtoken, grow_token_buffer): Static.
3417 2001-01-18 Akim Demaille <akim@epita.fr>
3419 Since we now use obstacks, more % directives can be enabled.
3421 * src/lex.c (percent_table): Also accept `%yacc',
3422 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
3424 Handle the actions for `%semantic_parser' and `%pure_parser' here,
3425 instead of returning a token.
3426 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
3427 * src/reader.c (read_declarations): Adjust.
3428 * src/files.c (open_files): Don't call `compute_base_names', don't
3429 compute `attrsfile' since they depend upon data which might be
3430 *in* the input file now.
3431 (output_files): Do it here.
3432 * src/output.c (output_headers): Document the fact that this patch
3433 introduces a guaranteed SEGV for semantic parsers.
3434 * doc/bison.texinfo: Document them.
3435 * tests/suite.at: Exercise these %options.
3437 2000-12-20 Akim Demaille <akim@epita.fr>
3439 Also handle the output file (--verbose) with obstacks.
3441 * files.c (foutput): Remove.
3442 (output_obstack): New.
3443 Adjust all dependencies.
3444 * src/conflicts.c: Return a string.
3445 * src/system.h (obstack_grow_string): Rename as...
3446 (obstack_sgrow): this. Be ready to work with non literals.
3447 (obstack_fgrow4): New.
3449 2000-12-20 Akim Demaille <akim@epita.fr>
3451 * src/files.c (open_files): Fix the computation of short_base_name
3452 in the case of `-o foo.tab.c'.
3454 2000-12-20 Akim Demaille <akim@epita.fr>
3456 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
3457 (copy_dollar): Now that everything uses obstacks, get rid of the
3460 2000-12-20 Akim Demaille <akim@epita.fr>
3462 * src/files.c (open_files): Actually the `.output' file is based
3463 on the short_base_name, not base_name.
3464 * tests/suite.at (Checking output file names): Adjust.
3466 2000-12-20 Akim Demaille <akim@epita.fr>
3468 * src/bison.s1: Remove, we now use directly...
3469 * src/bison.simple: this.
3470 * src/Makefile.am: Use pkgdata instead of data.
3472 2000-12-20 Akim Demaille <akim@epita.fr>
3474 * src/files.c (guard_obstack): New.
3475 (open_files): Initialize it.
3476 (output_files): Dump it...
3477 * src/files.h: Export it.
3478 * src/reader.c (copy_guard): Use it.
3480 2000-12-19 Akim Demaille <akim@epita.fr>
3482 * src/files.c (outfile, defsfile, actfile): Removed as global
3484 (open_files): Don't compute them.
3485 (output_files): Adjust.
3486 (base_name, short_base_name): Be global.
3487 Adjust dependencies.
3489 2000-12-19 Akim Demaille <akim@epita.fr>
3491 * src/files.c (strsuffix): New.
3492 (stringappend): Be just like strcat but allocate.
3493 (base_names): Eve out from open_files.
3494 Try to simplify the rather hairy computation of base_name and
3496 (open_files): Use it.
3497 * tests/suite.at (Checking output file names): New test.
3499 2000-12-19 Akim Demaille <akim@epita.fr>
3501 * src/system.h (obstack_grow_literal_string): Rename as...
3502 (obstack_grow_string): this.
3503 * src/output.c (output_parser): Recognize `%% actions' instead of
3505 * src/bison.s1: s/$/%% actions/.
3506 * src/bison.hairy: Likewise.
3508 2000-12-19 Akim Demaille <akim@epita.fr>
3510 * src/output.c (output_parser): Compute the `#line' lines when
3512 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
3513 Suggested by Hans Aberg.
3515 2000-12-19 Akim Demaille <akim@epita.fr>
3517 Let the handling of the skeleton files be local to the procedures
3520 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
3522 (fparser, open_extra_files): Remove.
3523 (open_files, output_files): Don't take care of fparser.
3524 * src/files.h: Adjust.
3525 * src/output.c (output_parser): Open and close the file to the
3527 * src/reader.c (read_declarations): When %semantic_parser, open
3530 2000-12-19 Akim Demaille <akim@epita.fr>
3532 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
3533 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
3535 2000-12-19 Akim Demaille <akim@epita.fr>
3537 * src/files.c (open_files): Yipee! We no longer need all the code
3538 looking for `/tmp' since we have no tmp file.
3540 2000-12-19 Akim Demaille <akim@epita.fr>
3542 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
3544 * src/files.c (open_files): Less dependency on MSDOS etc.
3546 2000-12-14 Akim Demaille <akim@epita.fr>
3548 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
3549 Provide a default definition.
3550 Use it when executing the default @ action.
3551 * src/reader.c (reader_output_yylsp): No longer include
3552 `timestamp' and `text' in the default YYLTYPE.
3554 2000-12-12 Akim Demaille <akim@epita.fr>
3556 * src/reader.c (copy_definition, parse_union_decl, copy_action)
3557 (copy_guard): Quote the file names.
3558 Reported by Laurent Mascherpa.
3560 2000-12-12 Akim Demaille <akim@epita.fr>
3562 * src/output.c (output_headers, output_program, output): Be sure
3563 to escape special characters when outputting filenames.
3564 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
3565 (output_headers): Don't depend on them, Use ACTSTR.
3567 2000-11-17 Akim Demaille <akim@epita.fr>
3569 * lib/obstack.h: Formatting changes.
3570 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
3571 prevents type checking.
3572 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
3573 cast the value to (void *): assigning a `foo *' to a `void *'
3575 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
3576 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
3579 2000-11-17 Akim Demaille <akim@epita.fr>
3581 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
3583 (suite.m4, regression.m4, calc.m4): these.
3584 * tests/atgeneral.m4: Update from CVS Autoconf.
3586 2000-11-17 Akim Demaille <akim@epita.fr>
3588 * tests/regression.m4 (%union and --defines): New test,
3589 demonstrating a current bug in the obstack implementation.
3591 2000-11-17 Akim Demaille <akim@epita.fr>
3593 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
3595 Use them to declare the variables which are global or local to
3598 2000-11-17 Akim Demaille <akim@epita.fr>
3600 * acconfig.h: Remove, no longer used.
3602 2000-11-07 Akim Demaille <akim@epita.fr>
3604 * src: s/Copyright (C)/Copyright/g.
3606 2000-11-07 Akim Demaille <akim@epita.fr>
3608 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
3610 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
3612 2000-11-07 Akim Demaille <akim@epita.fr>
3614 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
3615 Merge in a single CPP if/else.
3617 2000-11-07 Akim Demaille <akim@epita.fr>
3619 * src/output.c (output): Remove useless variables.
3620 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
3621 argument `data' for consistency with the prototypes.
3623 (obstack_copy, obstack_copy0): Rename the second argument as
3624 `address' for consistency. Qualify it `const'.
3625 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
3626 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
3627 `const' their input argument (`data' or `address').
3628 Adjust the corresponding macros to include `const' in casts.
3630 2000-11-03 Akim Demaille <akim@epita.fr>
3632 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
3633 s/PFILE1/BISON_HAIRY/.
3634 Adjust dependencies.
3636 2000-11-03 Akim Demaille <akim@epita.fr>
3638 For some reason, this was not applied.
3640 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3641 `unlink': it's no longer used.
3643 2000-11-03 Akim Demaille <akim@epita.fr>
3645 * src/files.c (skeleton_find): New function, eved out of...
3646 (open_files, open_extra_files): here.
3648 2000-11-03 Akim Demaille <akim@epita.fr>
3652 * src/files.c (obstack_save): New function.
3653 (done): Rename as...
3654 (output_files): this.
3656 * src/main.c (main): Don't use `atexit' to register `done', since
3657 it no longer has to remove tmp files, just call `output_files'
3658 when there are no errors.
3660 2000-11-02 Akim Demaille <akim@epita.fr>
3662 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3663 `unlink': it's no longer used.
3664 * src/files.h: Formatting changes.
3666 2000-11-02 Akim Demaille <akim@epita.fr>
3668 Remove the last uses of mktemp and unlink/delete.
3670 * src/files.c (fdefines, ftable): Removed.
3671 (defines_ostack, table_obstack): New.
3672 Adjust dependencies of the former into uses of the latter.
3673 * src/output.c (output_short_or_char_table, output_short_table):
3674 Convert to using obstacks.
3675 * src/reader.c (copy_comment2): Accept one FILE * and two
3677 (output_token_defines, reader_output_yylsp): Use obstacks.
3678 * src/system.h (obstack_fgrow3): New.
3680 2000-11-01 Akim Demaille <akim@epita.fr>
3682 Change each use of `fattrs' into a use of `attrs_obstack'.
3684 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
3685 * src/files.c (fattrs): Remove.
3686 (attrs_obstack): New.
3687 Adjust all dependencies.
3688 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
3690 2000-11-01 Akim Demaille <akim@epita.fr>
3693 Change each use of `faction' into a use of `action_obstack'.
3695 * lib/obstack.h, lib/obstack.c: New files.
3696 * src/files.c (faction): Remove.
3697 (action_obstack): New.
3698 Adjust all dependencies.
3700 2000-10-20 Akim Demaille <akim@epita.fr>
3702 * lib/quote.h (PARAMS): New macro. Use it.
3704 2000-10-16 Akim Demaille <akim@epita.fr>
3706 * src/output.c (output_short_or_char_table): New function.
3707 (output_short_table, output_token_translations): Use it.
3708 (goto_actions): Use output_short_table.
3710 2000-10-16 Akim Demaille <akim@epita.fr>
3712 * src/symtab.c (bucket_new): New function.
3715 * src/output.c (output_short_table): New argument to display the
3716 comment associated with the table.
3717 Adjust dependencies.
3718 (output_gram): Use it.
3719 (output_rule_data): Nicer output layout for YYTNAME.
3721 2000-10-16 Akim Demaille <akim@epita.fr>
3723 * src/lex.c (read_typename): New function.
3725 * src/reader.c (copy_dollar): Likewise.
3727 2000-10-16 Akim Demaille <akim@epita.fr>
3729 * src/reader.c (copy_comment2): Expect the input stream to be on
3730 the `/' which is suspected to open a comment, instead of being
3731 called after `//' or `/*' was read.
3732 (copy_comment, copy_definition, parse_union_decl, copy_action)
3733 (copy_guard): Adjust.
3735 2000-10-16 Akim Demaille <akim@epita.fr>
3737 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
3738 `read_signed_integer'.
3740 2000-10-16 Akim Demaille <akim@epita.fr>
3742 * src/reader.c (copy_dollar): New function.
3743 (copy_guard, copy_action): Use it.
3745 2000-10-16 Akim Demaille <akim@epita.fr>
3747 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
3748 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
3749 New files, from Fileutils 4.0.27.
3750 * src/main.c (printable_version): Remove.
3751 * src/lex.c, src/reader.c: Use `quote'.
3753 2000-10-04 Akim Demaille <akim@epita.fr>
3755 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
3757 2000-10-04 Akim Demaille <akim@epita.fr>
3759 * doc/bison.texinfo: Various typos spotted by Neil Booth.
3761 2000-10-04 Akim Demaille <akim@epita.fr>
3763 When a literal string is used to define two different tokens,
3764 `bison -v' segfaults.
3765 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
3767 * tests/regression.m4: New file.
3768 Include the core of the sample provided by Piotr Gackiewicz.
3769 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
3772 2000-10-04 Akim Demaille <akim@epita.fr>
3774 * src/reader.c (parse_expect_decl): Keep `count' within the size
3778 2000-10-02 Paul Eggert <eggert@twinsun.com>
3780 * bison.s1 (yyparse): Assign the default value
3781 unconditionally, to avoid a GCC warning and make the parser a
3784 2000-10-02 Akim Demaille <akim@epita.fr>
3786 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
3789 2000-10-02 Akim Demaille <akim@epita.fr>
3791 * src/derives.c, src/print.c, src/reduce.c: To ease the
3792 translation, move some `\n' out of the translated strings.
3794 2000-10-02 Akim Demaille <akim@epita.fr>
3796 The location tracking mechanism is precious for parse error
3797 messages. Nevertheless, it is enabled only when `@n' is used in
3798 the grammar, which is a different issue (you can use it in error
3799 message, but not in the grammar per se). Therefore, there should
3800 be another means to enable it.
3802 * src/getargs.c (getargs): Support `--locations'.
3804 * src/getargs.h (locationsflag): Export it.
3805 * src/lex.c (percent_table): Support `%locations'.
3806 * src/reader.c (yylsp_needed): Remove this variable, now replaced
3807 with `locationsflag'.
3808 * doc/bison.texinfo: Document `--locations' and `%locations'.
3810 * tests/calc.m4: Test it.
3812 For regularity of the names, replace each
3813 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
3814 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
3815 In addition replace each `flag' with `_flag'.
3817 2000-10-02 Akim Demaille <akim@epita.fr>
3819 Also test parse error messages, including with YYERROR_VERBOSE.
3821 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
3823 Use it to check the computations.
3824 Use it to check `nonassoc' is honored.
3825 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
3826 `--yyerror-verbose'.
3827 (_AT_CHECK_CALC): Adjust to this option.
3828 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
3830 2000-10-02 Akim Demaille <akim@epita.fr>
3832 Test also `--verbose', `--defines' and `--name-prefix'. Testing
3833 the latter demonstrates a flaw in the handling of non debugging
3834 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
3835 was used in order to simplify:
3851 unfortunately this leads to a CPP conflict when
3852 `--name-prefix=foo' is used since it produces `#define yydebug
3855 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
3856 (YYDPRINTF): New macro.
3858 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
3860 Also test `--verbose', `--defines' and `--name-prefix'.
3862 2000-10-02 Akim Demaille <akim@epita.fr>
3864 Improve the readability of the produced parsers.
3866 * src/bison.s1: Formatting changes.
3867 Improve the comment related to the `$' mark.
3868 (yydefault): Don't fall through to `yyresume': `goto' there.
3869 * src/output.c (output_parser): When the `$' is met, skip the end
3871 New variable, `number_of_dollar_signs', to check there's exactly
3872 one `$' in the parser skeleton.
3874 2000-10-02 Akim Demaille <akim@epita.fr>
3876 * lib/xstrdup.c: New file, from the fileutils.
3877 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
3878 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
3879 instead of strlen + xmalloc + strcpy.
3880 * src/symtab.c (copys): Remove, use xstrdup instead.
3882 2000-10-02 Akim Demaille <akim@epita.fr>
3884 * src/gram.h (associativity): New enum type which replaces the
3885 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
3886 `right_assoc', `left_assoc' and `non_assoc'.
3887 Adjust all dependencies.
3888 * src/reader.c: Formatting changes.
3889 (LTYPESTR): Don't define it, use it as a literal in
3890 `reader_output_yylsp'.
3891 * src/symtab.h (symbol_class): New enum type which replaces the
3892 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
3893 `sunknown', `stoken and `snterm'.
3895 2000-10-02 Akim Demaille <akim@epita.fr>
3897 * src/getargs.c (fixed_outfiles): Rename as...
3898 (yaccflag): for consistency and accuracy.
3899 Adjust dependencies.
3901 2000-10-02 Akim Demaille <akim@epita.fr>
3903 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
3904 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
3905 difficult and introduced a lot of core dump. It turns out that
3906 Bison used an implementation of `xmalloc' based on `calloc', and
3907 at various places it does depend upon the initialization to 0. I
3908 have not tried to isolate the pertinent places, and all the former
3909 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
3910 someone should address this issue.
3912 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
3913 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
3915 Adjust dependencies.
3916 * src/warshall.h: New file.
3919 2000-10-02 Akim Demaille <akim@epita.fr>
3921 Various anti-`extern in *.c' changes.
3923 * src/system.h: Include `assert.h'.
3925 2000-10-02 Akim Demaille <akim@epita.fr>
3927 * src/state.h (nstates, final_state, first_state, first_shift)
3928 (first_reduction): Move their exportation from here...
3929 * src/LR0.h: to here.
3930 Adjust dependencies.
3931 * src/getargs.c (statisticsflag): New variable.
3932 Add support for `--statistics'.
3933 Adjust dependencies.
3935 Remove a lot of now useless `extern' statements in most files.
3937 2000-10-02 Akim Demaille <akim@epita.fr>
3939 * src/LR0.h: New file.
3942 2000-10-02 Akim Demaille <akim@epita.fr>
3944 * src/print.h: New file.
3946 * src/print.c: Formatting and ordering changes.
3947 (verbose, terse): Replace with...
3948 (print_results): this new function.
3949 Adjust dependencies.
3951 2000-10-02 Akim Demaille <akim@epita.fr>
3953 * src/conflicts.c (conflict_report): New function.
3954 (conflict_log, verbose_conflict_log): Replace with...
3955 (print_conflicts): this function.
3956 Adjust dependencies.
3957 * src/conflicts.h: New file.
3958 Propagate its inclusion.
3960 2000-10-02 Akim Demaille <akim@epita.fr>
3962 * src/nullable.h: New file.
3963 Propagate its inclusion.
3964 * src/nullable.c: Formatting changes.
3966 2000-10-02 Akim Demaille <akim@epita.fr>
3968 * src/reduce.h: New file.
3969 Propagate its inclusion.
3970 * src/reduce.c: Topological sort and other formatting changes.
3971 (bool, TRUE, FALSE): Move their definition to...
3972 * src/system.h: here.
3974 2000-10-02 Akim Demaille <akim@epita.fr>
3976 * src/files.c: Formatting changes.
3977 (tryopen, tryclose, openfiles): Rename as...
3978 (xfopen, xfclose, open_files): this.
3979 (stringappend): static.
3980 * src/files.h: Complete the list of exported symbols.
3983 2000-10-02 Akim Demaille <akim@epita.fr>
3985 * src/reader.h: New file.
3986 Propagate its use instead of tedious list of `extern' and
3988 * src/reader.c: Formatting changes, topological sort,
3991 2000-10-02 Akim Demaille <akim@epita.fr>
3993 * src/lex.h: Prototype `lex.c' exported functions.
3994 * src/reader.c: Adjust.
3995 * src/lex.c: Formatting changes.
3996 (safegetc): Rename as...
3999 2000-10-02 Akim Demaille <akim@epita.fr>
4001 * src/lalr.h: New file.
4002 Propagate its inclusion instead of prototypes and `extern'.
4003 * src/lalr.c: Formatting changes, topological sorting etc.
4005 2000-10-02 Akim Demaille <akim@epita.fr>
4007 * src/output.c (token_actions): Introduce a temporary array,
4008 YYDEFACT, that makes it possible for this function to use
4011 2000-10-02 Akim Demaille <akim@epita.fr>
4013 `user_toknums' is output as a `short[]' in `output.c', while it is
4014 defined as a `int[]' in `reader.c'. For consistency with the
4015 other output tables, `user_toknums' is now defined as a table of
4018 * src/reader.c (user_toknums): Be a short table instead of an int
4020 Adjust dependencies.
4022 Factor the short table outputs.
4024 * src/output.c (output_short_table): New function.
4025 * src/output.c (output_gram, output_stos, output_rule_data)
4026 (output_base, output_table, output_check): Use it.
4028 2000-10-02 Akim Demaille <akim@epita.fr>
4030 * src/output.c (output): Topological sort of the functions, in
4031 order to get rid of the `static' prototypes.
4032 No longer use `register'.
4033 * src/output.h: New file.
4034 Propagate its inclusion in files explicitly prototyping functions
4037 2000-09-21 Akim Demaille <akim@epita.fr>
4039 * src/atgeneral.m4: Update from Autoconf.
4041 2000-09-21 Akim Demaille <akim@epita.fr>
4043 * src/closure.h: New file.
4044 * src/closure.c: Formatting changes, topological sort over the
4045 functions, use of closure.h.
4046 (initialize_closure, finalize_closure): Rename as...
4047 (new_closure, free_closure): these. Adjust dependencies.
4048 * src/LR0.c: Formatting changes, topological sort, use of
4050 (initialize_states): Rename as...
4052 * src/Makefile.am (noinst_HEADERS): Adjust.
4054 2000-09-20 Akim Demaille <akim@epita.fr>
4056 * src/acconfig.h: Don't protect config.h against multiple
4058 Don't define PARAMS.
4059 * src/system.h: Define PARAMS.
4060 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
4061 purpose of config.h. system.h must not try to fix wrong
4062 definitions in config.h.
4064 2000-09-20 Akim Demaille <akim@epita.fr>
4066 * src/derives.h: New file.
4067 * src/main.c, src/derives.h: Use it.
4069 * src/Makefile.am (noinst_HEADERS): Adjust.
4071 2000-09-20 Akim Demaille <akim@epita.fr>
4073 * tests/atgeneral.m4: Update from Autoconf.
4074 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
4075 (AT_CHECK_CALC): New macros.
4076 Use these macros to test bison with options `', `--raw',
4077 `--debug', `--yacc', `--yacc --debug'.
4079 2000-09-19 Akim Demaille <akim@epita.fr>
4081 * src/output.c: Formatting changes.
4082 * src/machine.h: Remove, leaving its contents in...
4083 * src/system.h: here.
4085 Adjust all dependencies on stdio.h and machine.h.
4086 * src/getargs.h: New file.
4087 Let all `extern' declarations about getargs.c be replaced with
4088 inclusion of `getargs.h'.
4089 * src/Makefile.am (noinst_HEADERS): Adjust.
4091 * tests/calc.m4 (yyin): Be initialized in main, not on the global
4093 (yyerror): Returns void, not int.
4094 * doc/bison.texinfo: Formatting changes.
4096 2000-09-19 Akim Demaille <akim@epita.fr>
4098 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
4101 2000-09-18 Akim Demaille <akim@epita.fr>
4103 * configure.in: Append WARNING_CFLAGS to CFLAGS.
4104 * src/Makefile.am (INCLUDES): Don't.
4105 Be ready to fetch headers in lib/.
4107 2000-09-18 Akim Demaille <akim@epita.fr>
4109 * doc/bison.texinfo: Update the copyright.
4110 ANSIfy and GNUify the examples.
4111 Remove the old menu.
4113 2000-09-18 Akim Demaille <akim@epita.fr>
4115 First set of tests: use the `calc' example from the documentation.
4117 * src/bison.s1 (yyparse): Condition the code using `yytname' which
4118 is defined only when YYDEBUG is.
4119 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
4120 * src/files.c (tryopen, tryclose): Formatting changes.
4121 Move to the top and be static.
4122 * src/reader.c (read_signed_integer): Likewise.
4123 * tests/calc.m4: New file.
4124 * Makefile.am, suite.m4: Adjust.
4125 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
4127 2000-09-18 Akim Demaille <akim@epita.fr>
4129 Add support for an Autotest test suite for Bison.
4131 * m4/m4.m4, m4/atconfig.m4: New files.
4132 * m4/Makefile.am (EXTRA_DIST): Adjust.
4133 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
4135 * src/getargs.c: Display a more standard --version message.
4136 * src/reader.c (reader): Formatting changes.
4137 No longer depend upon VERSION_STRING.
4138 * configure.in: No longer use `dnl'.
4139 Set up the test suite and the new directory `tests/.
4140 (VERSION_STRING): Remove.
4142 2000-04-14 Akim Demaille <akim@epita.fr>
4144 * src/reader.c (copy_comment2): New function, same as former
4145 `copy_comment', but outputs into two FILE *.
4146 (copy_comment): Use it.
4147 (parse_union_decl): Use it.
4148 (get_type, parse_start_decl): Use the same `invalid' message.
4149 (parse_start_decl, parse_union_decl): Use the same `multiple'
4151 (parse_union_decl, copy_guard, copy_action): Use the same
4152 `unmatched' message.
4153 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
4155 2000-03-31 Akim Demaille <akim@epita.fr>
4157 * src/files.c (tryopen, tryclose): Move to the top.
4160 2000-03-31 Akim Demaille <akim@epita.fr>
4162 * src/main.c (main): Don't call `done', exit does it.
4164 2000-03-31 Akim Demaille <akim@epita.fr>
4166 * allocate.c: s/return (foo)/return foo/.
4169 * output.c: Likewise.
4170 * reader.c: Likewise.
4171 * symtab.c: Likewise.
4172 * vmsgetargs.c: Likewise.
4174 2000-03-31 Akim Demaille <akim@epita.fr>
4176 Clean up the error reporting functions.
4178 * src/report.c: New file.
4179 * src/report.h: Likewise.
4180 * src/Makefile.am: Adjust.
4181 * m4/error.m4: New file.
4182 * m4/Makefile.am: Adjust.
4183 * configure.in (jm_PREREQ_ERROR): Call it.
4184 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
4186 (fatal, fatals): Remove. All callers use complain.c::fatal.
4187 (warn, warni, warns, warnss, warnss): Remove. All callers use
4188 complain.c::complain.
4189 (toomany): Remove, use fatal instead.
4190 * src/files.c (done): No argument, use complain_message_count.
4191 * src/main.c (main): Register `done' to `atexit'.
4193 * src/getargs.c (usage): More `fputs', less `fprintf'.
4195 2000-03-28 Akim Demaille <akim@epita.fr>
4197 * lib/: New directory.
4198 * Makefile.am (SUBDIRS): Adjust.
4199 * configure.in: Adjust.
4200 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
4202 * src/alloca.c: Moved to lib/.
4203 * src/getopt.c: Likewise.
4204 * src/getopt1.c: Likewise.
4205 * src/getopt.h: Likewise.
4206 * src/ansi2knr.c: Likewise.
4207 * src/ansi2knr.1: Likewise.
4208 * src/Makefile.am: Adjust.
4209 * lib/Makefile.am: New file.
4211 2000-03-28 Akim Demaille <akim@epita.fr>
4213 * src/getargs.c (usage): Refresh the help message.
4215 2000-03-17 Akim Demaille <akim@epita.fr>
4217 * src/getopt1.c: Updated from textutils 2.0e
4218 * src/getopt.c: Likewise.
4219 * src/getopt.h: Likewise.
4221 2000-03-17 Akim Demaille <akim@epita.fr>
4223 * src/Makefile.am (bison.simple): Fix the awk program: quote only
4224 the file name, not the whole `#line LINE FILE'.
4226 2000-03-17 Akim Demaille <akim@epita.fr>
4228 On syntax errors, report the token on which we choked.
4230 * src/bison.s1 (yyparse): In the label yyerrlab, when
4231 YYERROR_VERBOSE, add yychar in msg.
4233 2000-03-17 Akim Demaille <akim@epita.fr>
4235 * src/reader.c (copy_at): New function.
4236 (copy_guard): Use it.
4237 (copy_action): Use it.
4239 2000-03-17 Akim Demaille <akim@epita.fr>
4241 Be kind to translators, save some useless translations.
4243 * src/main.c (banner): New function.
4244 (fatal_banner): Use it.
4245 (warn_banner): Use it.
4247 2000-03-17 Akim Demaille <akim@epita.fr>
4249 * src/reader.c (copy_definition): Use copy_string and
4250 copy_comment. Removed now unused `match', `ended',
4252 (copy_comment, copy_string): Moved, to be visible from
4255 2000-03-17 Akim Demaille <akim@epita.fr>
4257 * src/reader.c (copy_string): Declare `static inline'. No
4258 problems with inline, since it is checked by configure.
4259 (copy_comment): Likewise.
4261 2000-03-17 Akim Demaille <akim@epita.fr>
4263 * src/reader.c (packsymbols): Formatting changes.
4265 2000-03-17 Akim Demaille <akim@epita.fr>
4267 * src/reader.c (copy_comment): New function, factored out from:
4268 (copy_action): Use it. Removed now unused `match', `ended',
4270 (copy_guard): Likewise.
4272 2000-03-17 Akim Demaille <akim@epita.fr>
4274 * src/reader.c (copy_string): New function, factored out from:
4275 (copy_action): Use it.
4276 (copy_guard): Likewise.
4278 2000-03-17 Akim Demaille <akim@epita.fr>
4280 Change the handling of @s so that they behave exactly like $s.
4281 There is now a pseudo variable @$ (readble and writable), location
4282 of the lhs of the rule (by default ranging from the location of
4283 the first symbol of the rhs, to the location of the last symbol,
4284 or, if the rhs is empty, YYLLOC).
4286 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
4288 (yyparse): When providing a default semantic action, provide a
4289 default location action.
4290 (after the $): No longer change `*YYLSP', just stack YYLOC the
4291 same way you stack YYVAL.
4292 * src/reader.c (read_declarations): Use warns.
4293 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
4294 (copy_action, case '@'): Likewise.
4295 Use a standard error message, to save useless work from
4298 2000-03-17 Akim Demaille <akim@epita.fr>
4300 * src/bison.s1: Formatting and cosmetics changes.
4301 * src/reader.c: Likewise.
4302 Update the Copyright notice.
4304 2000-03-17 Akim Demaille <akim@epita.fr>
4306 * src/bison.s1 (#line): All set to `#line' only, since the
4307 Makefile now handles them.
4309 2000-03-16 Akim Demaille <akim@epita.fr>
4311 * src/output.c (output_rule_data): Output the documentation of
4313 (Copyright notice): Update.
4316 2000-03-16 Akim Demaille <akim@epita.fr>
4318 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
4319 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
4320 One `#if YYDEBUG' remains, since it uses variables which are
4321 defined only if `YYDEBUG != 0'.
4323 2000-03-16 Akim Demaille <akim@epita.fr>
4325 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
4326 and related variables so that the similarities are highlighted.
4328 2000-03-16 Akim Demaille <akim@epita.fr>
4330 * src/bison.s1: Properly indent CPP directives.
4332 2000-03-16 Akim Demaille <akim@epita.fr>
4334 * src/bison.s1: Properly indent the `alloca' CPP section.
4336 2000-03-16 Akim Demaille <akim@epita.fr>
4338 Do not hard code values of directories in `configure.in'.
4339 Update the `configure' tool chain.
4341 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
4343 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
4344 (AC_OUTPUT): Add m4/Makefile.
4345 Bump to bison 1.28a, 1.29 has never been released.
4346 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
4347 handled via src/Makefile.am.
4348 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
4349 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
4351 * Makefile.am (SUBDIRS): Add m4.
4352 (ACLOCAL_AM_FLAGS): New variable.
4353 (AUTOMAKE_OPTIONS): Add check-news.
4354 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
4355 the proper line number and file name.
4356 (DEFS): Propagate the location of bison library files and of the
4358 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
4360 * acinclude.m4: Remove, replaced by the directory m4.
4361 * m4/Makefile.am (EXTRA_DIST): New variable.
4362 * m4/gettext.m4: New file, from the fileutils.
4363 * m4/lcmessage.m4: Likewise
4364 * m4/progtest.m4: Likewise.
4365 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
4367 2000-03-10 Akim Demaille <akim@epita.fr>
4370 Formatting changes of various comments.
4371 Respect the GNU coding standards at various places.
4372 Don't use `_()' when no translation is needed.
4374 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4377 OS/2 honors TMPDIR environment variable.
4379 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4381 * doc/bison.texinfo: Tweaked spelling and grammar.
4383 Removed reference to price of printed copy.
4384 Mention BISON_SIMPLE and BISON_HAIRY.
4386 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4388 * configure.in, NEWS:
4389 Bison 1.29 released.
4391 1999-10-27 Jesse Thilo <jthilo@gnu.org>
4393 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
4394 Added reference card.
4396 1999-07-26 Jesse Thilo <jthilo@gnu.org>
4398 * po/ru.po: Added Russian translation.
4400 1999-07-26 Jesse Thilo <jthilo@gnu.org>
4402 * configure.in: Added Russian translation.
4404 1999-07-06 Jesse Thilo <jthilo@gnu.org>
4406 * configure.in, NEWS, README:
4407 Released version 1.28.
4409 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4412 Squashed redefinition warning on some systems.
4414 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
4415 Have configure build version string instead of relying on ANSI string
4418 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4420 * po/POTFILES.in: Got rid of version.c.
4422 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4424 * acconfig.h, configure.in:
4425 Have configure build version string instead of relying on ANSI string
4428 1999-06-08 Jesse Thilo <jthilo@gnu.org>
4431 Dropped mention of `+' for long-named options.
4433 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4435 * src/files.c: Added <unistd.h> for unlink().
4437 * src/Makefile.am, src/system.h:
4440 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4442 * README: Added a FAQ list.
4444 * configure.in, acconfig.h:
4447 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4449 * doc/FAQ, doc/Makefile.am:
4452 1999-05-19 Jesse Thilo <jthilo@gnu.org>
4454 * src/alloc.h, src/symtab.h, src/version.c:
4455 Protected inclusion of "config.h" with HAVE_CONFIG_H.
4457 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4459 * src/.cvsignore, src/Makefile.am:
4460 Reorganized: sources in `src', documentation in `doc'.
4462 * src/lex.c (literalchar):
4463 fixed the code for escaping double quotes (thanks
4466 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4468 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
4469 Adjusted paths to reflect directory reorganization.
4471 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4473 * doc/.cvsignore, doc/Makefile.am:
4474 Reorganized: sources in `src', documentation in `doc'.
4476 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4479 Updated AC_INIT file to reflect directory reorganization.
4481 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
4482 Reorganized: sources in `src', documentation in `doc'.
4484 1999-04-13 Jesse Thilo <jthilo@gnu.org>
4487 Don't declare calloc() and realloc() if not necessary.
4489 1999-04-13 Jesse Thilo <jthilo@gnu.org>
4491 * configure.in, acconfig.h, acinclude.m4:
4492 Don't declare calloc() and realloc() if not necessary.
4494 1999-03-23 Jesse Thilo <jthilo@gnu.org>
4496 * po/.cvsignore: Added i18n support.
4498 1999-03-23 Jesse Thilo <jthilo@gnu.org>
4500 * acconfig.h, configure.in, Makefile.am:
4503 1999-03-22 Jesse Thilo <jthilo@gnu.org>
4505 * src/bison.s1: Fixed #line numbers.
4507 1999-03-15 Jesse Thilo <jthilo@gnu.org>
4509 * po/es.po, po/fr.po, po/nl.po, po/de.po:
4510 Added PO files from Translation Project.
4512 1999-03-03 Jesse Thilo <jthilo@gnu.org>
4515 Added support for non-ANSI compilers (ansi2knr).
4517 1999-02-16 Jesse Thilo <jthilo@gnu.org>
4519 * configure.in: Bumped version number to 1.27.
4522 Added `bison.simple' to list of files removed by `make distclean'.
4524 1999-02-12 Jesse Thilo <jthilo@gnu.org>
4526 * src/files.c, src/files.h:
4527 Defined locations of parser files in config.h instead of Makefile.
4529 1999-02-12 Jesse Thilo <jthilo@gnu.org>
4531 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
4532 Defined locations of parser files in config.h instead of Makefile.
4534 1999-02-09 Jesse Thilo <jthilo@gnu.org>
4537 Removed inappropriate use of $< macro.
4539 1999-02-05 Jesse Thilo <jthilo@gnu.org>
4541 * po/Makefile.in.in, po/POTFILES.in:
4542 Add `po' directory skeleton.
4544 1999-01-27 Jesse Thilo <jthilo@gnu.org>
4546 * README: Document help-bison list.
4548 * configure.in: Add check for mkstemp().
4550 1999-01-20 Jesse Thilo <jthilo@gnu.org>
4552 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
4553 Hush a few compiler warnings.
4556 Add tryclose(), which verifies that fclose was successful.
4557 Hush a couple of compiler warnings.
4559 1999-01-20 Jesse Thilo <jthilo@gnu.org>
4561 * Makefile.am, OChangeLog:
4562 ChangeLog is now automatically generated. Include the old version as
4565 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4567 * 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:
4570 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4572 * doc/bison.texinfo: Fix formatting glitch.
4574 * doc/bison.texinfo: Update FSF address.
4576 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4578 * acconfig.h: Update FSF address.
4580 1999-01-08 Jesse Thilo <jthilo@gnu.org>
4583 Don't define PACKAGE here, since config.h defines it.
4585 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4587 * src/reader.c: Update copyright date.
4590 Ditch sprintf to statically-sized buffers in fatal/warn functions in
4591 favor of output directly to stderr (avoids buffer overruns).
4593 * src/reader.c: Some checks for premature EOF.
4595 * 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:
4596 Use prototypes if the compiler understands them.
4598 * src/files.c: Honor TMPDIR on Unix hosts.
4599 Use prototypes if the compiler understands them.
4602 Fix a couple of buffer overrun bugs.
4603 Use prototypes if the compiler understands them.
4605 * src/system.h: Include unistd.h and ctype.h.
4606 Use #ifdef instead of #if for NLS symbols.
4608 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4610 * doc/bison.texinfo:
4611 Delete comment "consider using @set for edition number, etc..." since
4612 we now are doing so.
4614 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4617 Use prototypes if the compiler understands them.
4619 * NEWS: Document 1.26 highlights.
4621 * Makefile.am: Require Automake 1.3 or later.
4624 Use prototypes if the compiler understands them.
4626 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4629 Use VERSION symbol from automake for version number.
4631 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4633 * acconfig.h, configure.in, version.cin:
4634 Use VERSION symbol from automake for version number.
4636 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4639 Distribute original version of simple parser (bison.s1), not built
4640 version (bison.simple).
4642 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4644 * doc/bison.texinfo: Add info dir entry.
4646 * doc/bison.texinfo:
4647 Let automake put version number into documentation.
4649 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4651 * src/bison.cld, src/build.com, src/vmshlp.mar:
4652 Add non-RCS files from /gd/gnu/bison.
4654 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4657 Document the BISON_HAIRY and BISON_SIMPLE variables.
4659 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4661 * src/version.c: Build version.c automatically.
4664 Fix token numbering (used to start at 258, not 257).
4666 * src/system.h: Include config.h.
4668 * src/getargs.c: Update bug report address.
4670 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
4671 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
4673 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4676 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4678 * configure.in, version.cin:
4679 Build version.c automatically.
4681 * AUTHORS: Add AUTHORS file.
4683 * README: Update bug report address.
4686 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4688 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
4691 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4693 * doc/bison.texinfo: Clean up some formatting.
4695 1998-05-05 Richard Stallman <rms@gnu.org>
4697 * doc/bison.texinfo:
4698 Explain better why to make a pure parser.
4700 1998-01-05 Richard Stallman <rms@gnu.org>
4702 * src/files.c (openfiles):
4703 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
4704 find a temporary directory, if possible. Do not unlink files while
4707 1997-08-25 Richard Stallman <rms@gnu.org>
4709 * src/reader.c (stack_offset;):
4710 Change some warni to warns.
4712 * src/lex.c (literalchar): Use warns, not warni.
4714 1997-06-28 Richard Stallman <rms@gnu.org>
4716 * src/bison.s1: Add a Bison version comment.
4718 * src/main.c (fatal, warn, berror):
4721 1997-06-28 Richard Stallman <rms@gnu.org>
4723 * Makefile.in (bison_version): New variable.
4724 (dist): Use that variable.
4725 (bison.s1): Substitute the Bison version into bison.simple.
4727 * bison.simple: Add a Bison version comment.
4729 1997-06-18 Richard Stallman <rms@gnu.org>
4731 * src/main.c (fatal, warn, berror):
4732 Make error messages standard.
4733 (toomany): Improve error message text.
4735 * 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:
4736 new.h renamed to alloc.h.
4738 1997-06-18 Richard Stallman <rms@gnu.org>
4740 * Makefile.in: new.h renamed to alloc.h.
4742 1997-05-24 Richard Stallman <rms@gnu.org>
4744 * src/lex.c (literalchar):
4745 Fix the code for escaping \, " and '.
4747 (lex): Avoid trouble when there are many chars
4748 to discard in a char literal with just several chars in it.
4750 1997-05-17 Richard Stallman <rms@gnu.org>
4753 Use malloc, if using alloca is troublesome.
4754 (YYSTACK_USE_ALLOCA): New flag macro.
4755 Define it for some systems and compilers.
4756 (YYSTACK_ALLOC): New macro.
4757 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4758 If it was malloc'd, free it.
4760 1997-05-17 Richard Stallman <rms@gnu.org>
4763 Use malloc, if using alloca is troublesome.
4764 (YYSTACK_USE_ALLOCA): New flag macro.
4765 Define it for some systems and compilers.
4766 (YYSTACK_ALLOC): New macro.
4767 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4768 If it was malloc'd, free it.
4770 1997-04-23 Richard Stallman <rms@gnu.org>
4773 (alloca) [__hpux]: Always define as __builtin_alloca.
4775 1997-04-23 Richard Stallman <rms@gnu.org>
4778 (alloca) [__hpux]: Always define as __builtin_alloca.
4780 1997-04-22 Richard Stallman <rms@gnu.org>
4783 [__hpux]: Include alloca.h (right for HPUX 10)
4784 instead of declaring alloca (right for HPUX 9).
4786 * src/bison.s1 (__yy_memcpy):
4787 Declare arg `count' as unsigned int.
4788 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4790 1997-04-22 Richard Stallman <rms@gnu.org>
4793 [__hpux]: Include alloca.h (right for HPUX 10)
4794 instead of declaring alloca (right for HPUX 9).
4796 * bison.simple (__yy_memcpy):
4797 Declare arg `count' as unsigned int.
4798 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4800 1997-01-03 Richard Stallman <rms@gnu.org>
4802 * src/allocate.c: [__STDC__ or _MSC_VER]:
4803 Declare calloc and realloc to return void *.
4805 1997-01-02 Richard Stallman <rms@gnu.org>
4808 [_MSC_VER]: Include stdlib.h and process.h.
4809 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
4811 * src/main.c (main): Return FAILURE as a value.
4812 (printable_version): Declare arg as int, not char.
4814 1997-01-02 Richard Stallman <rms@gnu.org>
4816 * Makefile.in (dist):
4817 Explicitly check for symlinks, and copy them.
4819 1996-12-19 Richard Stallman <rms@gnu.org>
4822 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
4824 1996-12-18 Paul Eggert <eggert@gnu.org>
4826 * src/bison.s1 (yyparse):
4827 If __GNUC__ and YYPARSE_PARAM are both defined,
4828 declare yyparse to have a void * argument.
4830 1996-12-18 Paul Eggert <eggert@gnu.org>
4832 * bison.simple (yyparse):
4833 If __GNUC__ and YYPARSE_PARAM are both defined,
4834 declare yyparse to have a void * argument.
4836 1996-12-17 Richard Stallman <rms@gnu.org>
4838 * src/reduce.c (nbits): Add some casts.
4840 1996-08-12 Richard Stallman <rms@gnu.org>
4842 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
4844 1996-08-12 Richard Stallman <rms@gnu.org>
4846 * bison.simple: Test _MSDOS as well as _MSDOS_.
4848 1996-07-31 Richard Stallman <rms@gnu.org>
4851 [__sun && __i386]: Include alloca.h.
4853 1996-07-31 Richard Stallman <rms@gnu.org>
4856 [__sun && __i386]: Include alloca.h.
4858 1996-07-30 Richard Stallman <rms@gnu.org>
4860 * src/bison.s1: Comment change.
4862 * src/bison.s1: Test _MSDOS_, not MSDOS.
4864 1996-07-30 Richard Stallman <rms@gnu.org>
4866 * bison.simple: Comment change.
4868 * bison.simple: Test _MSDOS_, not MSDOS.
4870 1996-06-01 Richard Stallman <rms@gnu.org>
4872 * 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:
4873 Insert `_' macro around many string constants.
4876 Insert `_' macro around many string constants.
4878 (main): Call setlocale, bindtextdomain and textdomain.
4880 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
4881 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
4882 [ENABLE_NLS]: Include libintl.h.
4883 [ENABLE_NLS] (gettext): Define.
4884 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
4885 (N_, PACKAGE, LOCALEDIR): New macros.
4887 1996-06-01 Richard Stallman <rms@gnu.org>
4889 * POTFILES.in: New file.
4891 * Makefile.in (allocate.o):
4892 Define target explicitly.
4894 * Makefile.in (CFLAGS): Set to @CFLAGS@.
4895 (LDFLAGS): Set to @LDFLAGS@.
4896 (configure): Run autoconf only if preceding `cd' succeeds.
4897 (bison.s1): Redirect output to temporary file then move the
4898 temporary to the target, rather than redirecting directly to bison.s1.
4899 (clean): Remove config.status and config.log.
4900 (distclean): Don't remove config.status here.
4902 1996-05-12 Richard Stallman <rms@gnu.org>
4905 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
4907 1996-05-12 Richard Stallman <rms@gnu.org>
4910 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
4912 1996-05-11 Richard Stallman <rms@gnu.org>
4914 * src/bison.s1 (__yy_memcpy):
4915 Really reorder the args, as was supposedly done on Feb 14 1995.
4916 (yyparse): Calls changed accordingly.
4918 1996-05-11 Richard Stallman <rms@gnu.org>
4920 * Makefile.in (dist): Don't use $(srcdir).
4922 * bison.simple (__yy_memcpy):
4923 Really reorder the args, as was supposedly done on Feb 14 1995.
4924 (yyparse): Calls changed accordingly.
4926 1996-01-27 Richard Stallman <rms@gnu.org>
4928 * src/output.c (output_rule_data):
4929 Test YYERROR_VERBOSE in the conditional
4930 around the definition of ttyname.
4932 1995-12-29 Richard Stallman <rms@gnu.org>
4935 Fix line numbers in #line commands.
4937 1995-12-29 Richard Stallman <rms@gnu.org>
4940 Fix line numbers in #line commands.
4942 1995-12-27 Richard Stallman <rms@gnu.org>
4944 * src/bison.s1 (YYPARSE_PARAM_DECL):
4945 In C++, make it always null.
4946 (YYPARSE_PARAM_ARG): New macro.
4947 (yyparse): Use YYPARSE_PARAM_ARG.
4949 1995-12-27 Richard Stallman <rms@gnu.org>
4951 * bison.simple (YYPARSE_PARAM_DECL):
4952 In C++, make it always null.
4953 (YYPARSE_PARAM_ARG): New macro.
4954 (yyparse): Use YYPARSE_PARAM_ARG.
4956 1995-11-29 Richard Stallman <rms@gnu.org>
4958 * doc/bison.texinfo:
4959 Describe literal string tokens, %raw, %no_lines, %token_table.
4961 1995-11-29 Daniel Hagerty <hag@gnu.org>
4963 * doc/bison.texinfo: Fixed update date
4965 1995-10-16 Richard Stallman <rms@gnu.org>
4967 * src/version.c: Version 1.25.
4969 1995-10-16 Richard Stallman <rms@gnu.org>
4971 * NEWS: *** empty log message ***
4973 1995-10-16 Richard Stallman <rms@gnu.org>
4975 * doc/bison.1, doc/bison.rnh:
4978 1995-10-15 Richard Stallman <rms@gnu.org>
4980 * src/vmsgetargs.c, src/getargs.c:
4981 Added -n, -k, and -raw switches.
4982 (noparserflag, toknumflag, rawtoknumflag): New variables.
4984 * src/symtab.h (SALIAS):
4985 New #define for adding aliases to %token.
4986 (struct bucket): Added `alias' field.
4988 * src/reduce.c (reduce_grammar):
4989 Revise error message.
4990 (print_notices): Remove final `.' from error message.
4992 * src/reader.c (reader_output_yylsp):
4994 (readgram): Use `#if 0' around code that accepted %command
4995 inside grammar rules: The documentation doesn't allow it,
4996 and it will fail since the %command processors scan for the next %.
4997 (parse_token_decl): Extended the %token
4998 declaration to allow a multi-character symbol as an alias.
4999 (parse_thong_decl): New function.
5000 (read_declarations): Added %thong declarations.
5001 (read_declarations): Handle NOOP to deal with allowing
5002 % declarations as another means to specify the flags.
5003 (readgram): Allow %prec prior to semantics embedded in a rule.
5004 (skip_to_char, read_declarations, copy_definition)
5005 (parse_token_decl, parse_start_decl, parse_type_decl)
5006 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
5007 (get_type_name, copy_guard, copy_action, readgram)
5008 (get_type, packsymbols): Revised most error messages.
5009 Changed `fatal' to `warnxxx' to avoid aborting for error.
5010 Revised and use multiple warnxxx functions to avoid using VARARGS1.
5011 (read_declarations): Improve the error message for
5012 an invalid character. Do not abort.
5013 (read_declarations, copy_guard, copy_action): Use
5014 printable_version to avoid unprintable characters in printed output.
5015 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
5016 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
5017 Allow the type of a non-terminal can be given
5018 more than once, as long as all specifications give the same type.
5021 (output_headers, output_trailers, output, output_gram)
5022 (output_rule_data): Implement noparserflag variable.
5023 Implement toknumflag variable.
5024 (output): Call reader_output_yylsp to output LTYPESTR.
5026 * src/main.c (main):
5027 If reader sees an error, don't process the grammar.
5028 (fatals): Updated to not use VARARGS1.
5029 (printable_version, int_to_string, warn, warni, warns, warnss)
5030 (warnsss): New error reporting functions. Avoid abort for error.
5033 Added THONG and NOOP for alias processing.
5034 Added SETOPT for the new code that allows setting options with %flags.
5037 Include getopt.h. Add some extern decls.
5038 (safegetc): New function to deal with EOF gracefully.
5039 (literalchar); new function to deal with reading \ escapes.
5040 (lex): Use literalchar.
5041 (lex): Implemented "..." tokens.
5042 (literalchar, lex, parse_percent_token): Made tokenbuffer
5043 always contain the token. This includes growing the token
5044 buffer while reading an integer.
5045 (parse_percent_token): Replaced if-else statement with percent_table.
5046 (parse_percent_token): Added % declarations as another
5047 way to specify the flags -n, -l, and -r. Also added hooks for
5048 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
5049 major changes to files.c.
5050 (lex) Retain in the incoming stream a character following
5052 (skip_white_space, lex): Revised most error messages
5053 and changed fatal to warn to avoid aborting.
5054 (percent_table): Added %thong declarations.
5056 * src/gram.h: Comment changes.
5058 * src/files.c (openfiles, open_extra_files, done):
5060 and actfile file. Handle noparserflag. Both for -n switch.
5062 * src/conflicts.c (resolve_sr_conflict):
5063 Remove use of alloca.
5065 1995-06-01 Jim Meyering <meyering@gnu.org>
5067 * doc/bison.texinfo: *** empty log message ***
5069 1995-05-06 Richard Stallman <rms@gnu.org>
5071 * src/bison.s1: Comment change.
5073 1995-05-06 Richard Stallman <rms@gnu.org>
5075 * bison.simple: Comment change.
5077 1995-05-03 Richard Stallman <rms@gnu.org>
5079 * src/version.c: Version now 1.24.
5081 * src/bison.s1: Change distribution terms.
5083 * src/version.c: Version now 1.23.
5085 1995-05-03 Richard Stallman <rms@gnu.org>
5087 * doc/bison.texinfo:
5088 Rewrite "Conditions for Using Bison".
5089 Update version to 1.24.
5091 1995-05-03 Richard Stallman <rms@gnu.org>
5093 * bison.simple: Change distribution terms.
5095 1995-02-23 Richard Stallman <rms@gnu.org>
5097 * src/files.c: Test __VMS_POSIX as well as VMS.
5099 1995-02-14 Jim Meyering <meyering@gnu.org>
5101 * src/bison.s1 (__yy_memcpy):
5102 Renamed from __yy_bcopy to avoid
5103 confusion. Reverse FROM and TO arguments to be consistent with
5106 1995-02-14 Jim Meyering <meyering@gnu.org>
5108 * bison.simple (__yy_memcpy):
5109 Renamed from __yy_bcopy to avoid
5110 confusion. Reverse FROM and TO arguments to be consistent with
5113 1994-11-10 David J. MacKenzie <djm@gnu.org>
5119 * Makefile.in (DISTFILES): Include NEWS.
5121 * Makefile.in (DISTFILES):
5122 Include install-sh, not install.sh.
5124 * configure.in: Update to Autoconf v2 macro names.
5126 1994-10-05 David J. MacKenzie <djm@gnu.org>
5128 * Makefile.in: fix typo
5130 * Makefile.in (prefix, exec_prefix):
5131 Let configure set them.
5133 1994-09-28 David J. MacKenzie <djm@gnu.org>
5135 * Makefile.in: Set datadir to $(prefix)/share.
5137 1994-09-15 Richard Stallman <rms@gnu.org>
5140 Update copyright notice and GPL version.
5142 1994-09-15 Richard Stallman <rms@gnu.org>
5145 Update copyright notice and GPL version.
5147 1994-07-12 Richard Stallman <rms@gnu.org>
5149 * src/reduce.c, src/reader.c:
5152 1994-05-05 David J. MacKenzie <djm@gnu.org>
5154 * Makefile.in: entered into RCS
5156 1994-03-26 Richard Stallman <rms@gnu.org>
5158 * src/bison.s1: entered into RCS
5160 1994-03-26 Richard Stallman <rms@gnu.org>
5162 * bison.simple: entered into RCS
5164 1994-03-25 Richard Stallman <rms@gnu.org>
5166 * src/main.c: entered into RCS
5168 1994-03-24 Richard Stallman <rms@gnu.org>
5170 * src/conflicts.c: entered into RCS
5172 1994-01-02 Richard Stallman <rms@gnu.org>
5174 * Makefile.in: *** empty log message ***
5176 1993-11-21 Richard Stallman <rms@gnu.org>
5178 * src/bison.s1: *** empty log message ***
5180 1993-11-21 Richard Stallman <rms@gnu.org>
5182 * doc/bison.texinfo: entered into RCS
5184 * doc/bison.texinfo: *** empty log message ***
5186 1993-11-21 Richard Stallman <rms@gnu.org>
5188 * bison.simple: *** empty log message ***
5190 1993-10-25 David J. MacKenzie <djm@gnu.org>
5192 * doc/bison.texinfo: *** empty log message ***
5194 1993-10-19 Richard Stallman <rms@gnu.org>
5196 * src/bison.s1: *** empty log message ***
5198 1993-10-19 Richard Stallman <rms@gnu.org>
5200 * bison.simple: *** empty log message ***
5202 1993-10-14 Richard Stallman <rms@gnu.org>
5204 * src/bison.s1: *** empty log message ***
5206 1993-10-14 Richard Stallman <rms@gnu.org>
5208 * bison.simple: *** empty log message ***
5210 1993-09-14 David J. MacKenzie <djm@gnu.org>
5212 * doc/bison.texinfo: *** empty log message ***
5214 1993-09-13 Noah Friedman <friedman@gnu.org>
5216 * Makefile.in: *** empty log message ***
5218 1993-09-10 Richard Stallman <rms@gnu.org>
5220 * src/conflicts.c: *** empty log message ***
5222 * src/system.h: entered into RCS
5224 1993-09-10 Richard Stallman <rms@gnu.org>
5226 * doc/bison.1: entered into RCS
5228 1993-09-06 Noah Friedman <friedman@gnu.org>
5230 * src/version.c: entered into RCS
5232 1993-09-06 Noah Friedman <friedman@gnu.org>
5234 * Makefile.in: *** empty log message ***
5236 1993-07-30 David J. MacKenzie <djm@gnu.org>
5238 * Makefile.in: *** empty log message ***
5240 1993-07-24 Richard Stallman <rms@gnu.org>
5242 * src/bison.s1: *** empty log message ***
5244 1993-07-24 Richard Stallman <rms@gnu.org>
5246 * bison.simple: *** empty log message ***
5248 1993-07-08 David J. MacKenzie <djm@gnu.org>
5250 * Makefile.in: *** empty log message ***
5252 1993-07-04 Richard Stallman <rms@gnu.org>
5254 * src/bison.s1: *** empty log message ***
5256 1993-07-04 Richard Stallman <rms@gnu.org>
5258 * bison.simple: *** empty log message ***
5260 1993-06-26 David J. MacKenzie <djm@gnu.org>
5262 * src/getargs.c: entered into RCS
5264 1993-06-26 David J. MacKenzie <djm@gnu.org>
5266 * doc/bison.texinfo: *** empty log message ***
5268 * doc/bison.1: New file.
5270 1993-06-25 Richard Stallman <rms@gnu.org>
5272 * src/getargs.c: New file.
5274 1993-06-16 Richard Stallman <rms@gnu.org>
5276 * src/bison.s1: *** empty log message ***
5278 1993-06-16 Richard Stallman <rms@gnu.org>
5280 * bison.simple: *** empty log message ***
5282 1993-06-03 Richard Stallman <rms@gnu.org>
5284 * src/bison.s1: New file.
5286 1993-06-03 Richard Stallman <rms@gnu.org>
5288 * doc/bison.texinfo: *** empty log message ***
5290 1993-06-03 Richard Stallman <rms@gnu.org>
5292 * bison.simple: New file.
5294 1993-05-19 Richard Stallman <rms@gnu.org>
5296 * doc/bison.texinfo: New file.
5298 1993-05-07 Noah Friedman <friedman@gnu.org>
5300 * Makefile.in: *** empty log message ***
5302 1993-04-28 Noah Friedman <friedman@gnu.org>
5304 * src/reader.c: *** empty log message ***
5306 1993-04-23 Noah Friedman <friedman@gnu.org>
5308 * src/alloc.h: entered into RCS
5310 1993-04-20 David J. MacKenzie <djm@gnu.org>
5312 * src/version.c: *** empty log message ***
5314 * src/files.c, src/allocate.c:
5317 * src/reader.c: *** empty log message ***
5319 * src/lex.c: entered into RCS
5321 * src/conflicts.c: New file.
5323 * src/symtab.c: entered into RCS
5325 * src/alloc.h: New file.
5327 * src/LR0.c: entered into RCS
5329 1993-04-18 Noah Friedman <friedman@gnu.org>
5331 * src/reader.c: New file.
5333 * src/version.c: *** empty log message ***
5335 1993-04-18 Noah Friedman <friedman@gnu.org>
5337 * Makefile.in: *** empty log message ***
5339 1993-04-17 Noah Friedman <friedman@gnu.org>
5341 * Makefile.in: *** empty log message ***
5343 1993-04-15 Richard Stallman <rms@gnu.org>
5345 * src/main.c, src/files.c:
5348 1993-04-15 Noah Friedman <friedman@gnu.org>
5350 * configure.in: entered into RCS
5352 * configure.in: *** empty log message ***
5354 * configure.in: New file.
5356 1993-04-14 Richard Stallman <rms@gnu.org>
5358 * Makefile.in: New file.
5360 1993-04-13 Richard Stallman <rms@gnu.org>
5362 * src/version.c: New file.
5364 1993-03-25 Richard Stallman <rms@gnu.org>
5366 * src/output.c: entered into RCS
5368 1992-09-25 Richard Stallman <rms@gnu.org>
5370 * configure.bat: entered into RCS
5372 1992-06-22 Richard Stallman <rms@gnu.org>
5374 * src/vmsgetargs.c: entered into RCS
5376 1992-06-22 Richard Stallman <rms@gnu.org>
5378 * doc/bison.rnh: entered into RCS
5380 1992-04-20 David J. MacKenzie <djm@gnu.org>
5382 * README: entered into RCS
5384 1992-01-22 Richard Stallman <rms@gnu.org>
5386 * src/machine.h: entered into RCS
5388 1991-12-21 Richard Stallman <rms@gnu.org>
5390 * src/lalr.c, src/closure.c:
5393 1991-12-20 Richard Stallman <rms@gnu.org>
5395 * src/state.h: entered into RCS
5397 1991-12-18 Richard Stallman <rms@gnu.org>
5399 * src/print.c, src/nullable.c, src/derives.c:
5402 1991-11-03 David J. MacKenzie <djm@gnu.org>
5404 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
5407 1988-09-09 Richard Stallman <rms@gnu.org>
5409 * src/bison.hairy: entered into RCS
5411 1987-12-16 Richard Stallman <rms@gnu.org>
5413 * REFERENCES: entered into RCS