1 2002-01-27 Akim Demaille <akim@epita.fr>
3 * tests/sets.at (AT_EXTRACT_SETS): New.
7 2002-01-26 Akim Demaille <akim@epita.fr>
9 * tests/actions.at, tests/calc.at, tests/headers.at,
10 * tests/torture.at: Adjust to the newest Autotest which no longer
11 forces `.' in the PATH.
13 2002-01-25 Akim Demaille <akim@epita.fr>
15 * tests/regression.at (%nonassoc and eof): New.
16 Suggested by Robert Anisko.
18 2002-01-24 Akim Demaille <akim@epita.fr>
20 Bison dumps core when trying to complain about broken input files.
21 Reported by Cris van Pelt.
23 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
24 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
26 (Invalid inputs): Strengthen: exercise parse_percent_token.
28 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
30 * src/Makefile.am: Add bison.c++.
31 * src/bison.c++: New skeleton.
33 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
37 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
39 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
41 2002-01-20 Marc Autret <marc@gnu.org>
43 * src/files.c (compute_output_file_names): Fix
45 2002-01-20 Marc Autret <marc@gnu.org>
47 * tests/output.at: New test.
48 * src/files.c (compute_base_names): Don't map extensions when
49 the YACC flag is set, use defaults.
50 Reported by Evgeny Stambulchik.
52 2002-01-20 Marc Autret <marc@gnu.org>
54 * src/system.h: Need to define __attribute__ away for non-GCC
55 compilers as well (i.e. the vendor C compiler).
56 Suggested by Albert Chin-A-Young.
58 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
60 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
62 * src/system.h: Use the canonical definition for PARAMS (avoids
63 a conflict with the macro from lib/hash.h).
65 2002-01-11 Akim Demaille <akim@epita.fr>
67 * configure.in: Use AC_FUNC_STRNLEN.
68 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
70 2002-01-09 Akim Demaille <akim@epita.fr>
72 * src/files.c, src/files.h (output_infix): New.
73 (tab_extension): Remove.
74 (compute_base_names): Compute the former, drop the latter.
75 * src/output.c (prepare): Insert the muscles `output-infix', and
77 * src/parse-skel.y (string, string.1): New.
78 (section.header): Use it.
79 (section.yacc): Remove.
81 * src/scan-skel.l: Adjust.
82 * src/bison.simple, src/bison.hairy: Adjust.
84 2002-01-09 Akim Demaille <akim@epita.fr>
86 * configure.in (WERROR_CFLAGS): Compute it.
87 * src/Makefile.am (CFLAGS): Pass it.
88 * tests/atlocal.in (CFLAGS): Idem.
89 * src/files.c: Fix a few warnings.
90 (get_extension_index): Remove, unused.
92 2002-01-08 Akim Demaille <akim@epita.fr>
94 * src/getargs.c (AS_FILE_NAME): New.
95 (getargs): Use it to convert DOSish file names.
96 * src/files.c (base_name): Rename as full_base_name to avoid
97 clashes with `base_name ()'.
98 (filename_split): New.
99 (compute_base_names): N-th rewrite, using filename_split.
101 2002-01-08 Akim Demaille <akim@epita.fr>
103 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
104 New, stolen from the Fileutils 4.1.
105 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
106 * configure.in: Check for the presence of memrchr, and of its
109 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
111 * lib/hash.h (__P): Added definition for this macro.
112 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
113 BUILT_SOURCES, to ensure they are generated first.
114 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
115 %error-verbose to allow bootstrapping with bison 1.30x.
117 2002-01-06 Akim Demaille <akim@epita.fr>
119 * src/reader.c (parse_braces): Don't fetch the next char, the
120 convention is to fetch on entry.
121 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
122 'switch' without a following semicolon.
123 * tests/regression.at (braces parsing): New.
125 2002-01-06 Akim Demaille <akim@epita.fr>
127 Bison is dead wrong in its RR conflict reports.
129 * tests/torture.at (GNU Cim Grammar): New.
130 * src/conflicts.c (count_rr_conflicts): Fix.
132 2002-01-06 Akim Demaille <akim@epita.fr>
134 Creating package.m4 from configure.ac causes too many problems.
136 * tests/Makefile.am (package.m4): Create it by hand,
137 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
139 2002-01-06 Akim Demaille <akim@epita.fr>
141 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
144 2002-01-04 Paul Eggert <eggert@twinsun.com>
146 * doc/bison.texinfo (Debugging):
147 Remove YYSTDERR; it's no longer defined or used.
148 Also, s/cstdio.h/cstdio/.
150 2002-01-03 Akim Demaille <akim@epita.fr>
152 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
154 2002-01-03 Akim Demaille <akim@epita.fr>
156 * src/parse-skel.y (process_skeleton): Don't bind the parser's
157 tracing code to --trace, wait for a better --trace option, with
160 2002-01-03 Akim Demaille <akim@epita.fr>
162 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
163 The ISO C++ standard is extremely clear about it: stderr is
164 considered a macro, not a regular symbol (see table 94 `Header
165 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
166 Therefore std:: does not apply to it. It still does with fprintf.
167 Also, s/cstdio.h/cstdio/.
169 2002-01-03 Akim Demaille <akim@epita.fr>
171 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
172 for non system headers.
174 2002-01-02 Akim Demaille <akim@epita.fr>
176 Equip the skeleton chain with location tracking, runtime trace,
177 pure parser and scanner.
179 * src/parse-skel.y: Request a pure parser, locations, and prefix
181 (%union): Having several members with the same type does not help
182 type mismatches, simplify.
183 (YYPRINT, yyprint): New.
184 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
187 * src/scan-skel.l: Adjust to these changes.
188 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
189 (LOCATION_PRINT, skel_control_t): New.
191 2001-12-30 Akim Demaille <akim@epita.fr>
193 * src/parse-skel.y: Get rid of the shift/reduce conflict:
194 replace `gb' with BLANKS.
195 * src/scan-skel.l: Adjust.
197 2001-12-30 Akim Demaille <akim@epita.fr>
199 * src/system.h: We don't need nor want bcopy.
200 Throw away MS-DOS crap: we don't need getpid.
201 * configure.in: We don't need strndup. It was even causing
202 problems: because Flex includes the headers *before* us,
203 _GNU_SOURCE is not defined by config.h, and therefore strndup was
205 * lib/xstrndup.c: New.
206 * src/scan-skel.l: Use it.
207 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
208 * src/parse-skel.y: Use %directives instead of #defines.
210 2001-12-30 Akim Demaille <akim@epita.fr>
212 * src/skeleton.h: New.
213 * src/output.c (output_parser, output_master_parser): Remove, dead
215 * src/output.h (get_lines_number, actions_output, guards_output)
216 (token_definitions_output): Prototype them.
217 * src/parse-skel.y: Add the license notice.
218 Include output.h and skeleton.h.
219 (process_skeleton): Returns void, and takes a single parameter.
220 * src/scan-skel.l: Add the license notice.
222 Don't use %option yylineno: it seems that then Flex imagines
223 REJECT has been used, and therefore it won't reallocate its
224 buffers (which makes no other sense to me than a bug). It results
225 in warnings for `unused: yy_flex_realloc'.
227 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
229 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
230 (MUSCLE_INSERT_PREFIX): ...to there.
231 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
232 (MUSCLE_INSERT_PREFIX): Move from here...
234 * src/bison.hairy: Add a section directive. Put braces around muscle
235 names. This parser skeleton is still broken, but Bison should not
236 choke on a bad muscle 'syntax'.
237 * src/bison.simple: Add a section directive. Put braces around muscle
240 * src/files.h (strsuffix, stringappend): Add declarations.
241 (tab_extension): Add declaration.
242 (short_base_name): Add declaration.
244 * src/files.c (strsuffix, stringappend): No longer static. These
245 functions are used in the skeleton parser.
246 (tab_extension): New.
247 (compute_base_names): Use the computations done in this function
248 to guess if the generated parsers should have '.tab' in their
250 (short_base_name): No longer static.
252 * src/output.c (output_skeleton): New.
253 (output): Disable call to output_master_parser, and give a try to
254 a new skeleton handling system.
255 (guards_output, actions_output): No longer static.
256 (token_definitions_output, get_lines_number): No longer static.
258 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
260 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
263 * src/parse-skel.y: New file.
264 * src/scan-skel.l: New file.
266 2001-12-29 Akim Demaille <akim@epita.fr>
268 %name-prefix is broken.
270 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
271 Adjust all dependencies.
272 * tests/headers.at (export YYLTYPE): Strengthen this test: use
275 Renaming yylval but not yylloc is not consistent. Now we do.
277 * src/bison.simple: Prefix yylloc if used.
278 * doc/bison.texinfo (Decl Summary): Document that.
280 2001-12-29 Akim Demaille <akim@epita.fr>
282 * doc/bison.texinfo: Promote `%long-directive' over
284 Remove all references to fixed-output-files, yacc is enough.
286 2001-12-29 Akim Demaille <akim@epita.fr>
288 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
289 user prologue. These are defaults.
290 * tests/actions.at (Mid-rule actions): Make sure the user can
291 define YYDEBUG and YYERROR_VERBOSE.
293 2001-12-29 Akim Demaille <akim@epita.fr>
295 * src/output.c (header_output): Don't forget to export YYLTYPE and
297 * tests/headers.at (export YYLTYPE): New, make sure it does.
298 * tests/regression.at (%union and --defines, Invalid CPP headers):
300 * tests/headers.at: here.
302 2001-12-29 Akim Demaille <akim@epita.fr>
304 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
306 2001-12-29 Akim Demaille <akim@epita.fr>
308 * tests/actions.at (Mid-rule actions): Output on a single line
311 2001-12-29 Akim Demaille <akim@epita.fr>
313 * doc/bison.texinfo: Formatting changes.
315 2001-12-29 Akim Demaille <akim@epita.fr>
317 Don't store the token defs in a muscle, just be ready to output it
318 on command. Now possible via `symbols'. Fixes a memory leak.
320 * src/output.c (token_definitions_output): New.
321 (output_parser, header_output): Use it.
322 * src/reader.c (symbols_save): Remove.
324 2001-12-29 Akim Demaille <akim@epita.fr>
326 * src/bison.simple: Do not provide a default for YYSTYPE and
327 YYLTYPE before the user's prologue. Otherwise it's hardly... a
330 2001-12-29 Akim Demaille <akim@epita.fr>
332 Mid-rule actions are simply... ignored!
334 * src/reader.c (readgram): Be sure to attach mid-rule actions to
335 the empty-rule associated to the dummy symbol, not to the host
337 * tests/actions.at (Mid-rule actions): New.
339 2001-12-29 Akim Demaille <akim@epita.fr>
343 * src/reader.c (reader): Free grammar.
345 2001-12-29 Akim Demaille <akim@epita.fr>
349 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
350 since it allocates it for each state, although only one is needed.
351 (allocate_storage): Do it here.
353 2001-12-29 Akim Demaille <akim@epita.fr>
355 * src/options.h, src/options.c (create_long_option_table): Rename
357 (long_option_table_new): this, with a clearer prototype.
358 (percent_table): Remove, unused,
359 * src/getargs.c (getargs): Adjust.
361 2001-12-29 Akim Demaille <akim@epita.fr>
363 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
364 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
367 2001-12-29 Akim Demaille <akim@epita.fr>
369 * src/lalr.c (build_relations): Rename `states' as `states1'.
370 Sorry, I don't understand exactly what it is, no better name...
372 2001-12-29 Akim Demaille <akim@epita.fr>
374 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
375 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
376 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
379 2001-12-29 Akim Demaille <akim@epita.fr>
381 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
384 2001-12-29 Akim Demaille <akim@epita.fr>
386 * src/reader.c, src/reader.h (user_toknums): Remove.
387 Adjust all users to use symbols[i]->user_token_number.
389 2001-12-29 Akim Demaille <akim@epita.fr>
391 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
392 Adjust all users to use symbols[i]->prec or ->assoc.
394 2001-12-29 Akim Demaille <akim@epita.fr>
396 * src/reader.c, src/reader.h (tags): Remove.
397 Adjust all users to use symbols[i]->tag.
399 2001-12-29 Akim Demaille <akim@epita.fr>
401 * src/gram.h, src/gram.c (symbols): New, similar to state_table
403 * src/reader.c (packsymbols): Fill this table.
405 * src/conflicts.c (resolve_sr_conflict): Adjust.
406 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
408 Use symbols[i]->tag instead of tags[i].
410 2001-12-29 Akim Demaille <akim@epita.fr>
412 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
413 In addition, put a comment in there, to replace...
414 * tests/regression.at (%union and C comments): Remove.
416 2001-12-29 Akim Demaille <akim@epita.fr>
418 * tests/regression.at (Web2c Actions): Blindly move the actual
419 output as expected output. The contents *seem* right to me, but I
420 can't pretend reading perfectly parser tables... Nonetheless, all
421 the other tests pass correctly, the table look OK, even though the
422 presence of `$axiom' is to be noted: AFAICS it is useless (but
425 2001-12-29 Akim Demaille <akim@epita.fr>
427 * src/reader.c (readgram): Don't add the rule 0 if there were no
428 rules read. In other words, add it _after_ having performed
429 grammar sanity checks.
430 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
432 2001-12-29 Akim Demaille <akim@epita.fr>
434 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
435 visible, and some states have now a different number.
437 2001-12-29 Akim Demaille <akim@epita.fr>
439 * src/reader.c (readgram): Bind the initial rule's lineno to that
441 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
442 (Solved SR Conflicts): Adjust rule 0's line number.
444 2001-12-29 Akim Demaille <akim@epita.fr>
446 Fix the `GAWK Grammar' failure.
448 * src/LR0.c (final_state): Initialize to -1 so that we do compute
449 the reductions of the first state which was mistakenly confused
450 with the final state because precisely final_state was initialized
452 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
453 now noticed by Bison.
454 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
455 have a reduction on $default.
457 2001-12-29 Akim Demaille <akim@epita.fr>
459 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
461 * src/closure.c (print_closure): Likewise.
462 * src/derives.c (print_derives): Likewise.
463 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
466 2001-12-29 Akim Demaille <akim@epita.fr>
468 * src/lalr.c (lookaheads_print): New.
469 (lalr): Call it when --trace-flag.
470 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
473 2001-12-29 Akim Demaille <akim@epita.fr>
475 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
476 when walking through ritem, even via rule->rhs.
477 * src/reduce.c (dump_grammar, useful_production, reduce_output)
478 (useful_production, useless_nonterminals): Likewise.
479 (reduce_grammar_tables): Likewise, plus update nritems.
480 * src/nullable.c (set_nullable): Likewise.
481 * src/lalr.c (build_relations): Likewise.
482 * tests/sets.at (Nullable): Adjust.
483 Fortunately, now, the $axiom is no longer nullable.
485 2001-12-29 Akim Demaille <akim@epita.fr>
487 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
489 * src/gram.c (ritem_longest_rhs): Likewise.
490 * src/reduce.c (nonterminals_reduce): Likewise.
491 * src/print_graph.c (print_graph): Likewise.
492 * src/output.c (output_rule_data): Likewise.
493 * src/nullable.c (set_nullable): Likewise.
495 2001-12-29 Akim Demaille <akim@epita.fr>
497 * src/output.c: Comment changes.
499 2001-12-27 Paul Eggert <eggert@twinsun.com>
501 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
502 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
503 Sparc, as they were causing more porting problems than the
504 (minor) performance improvement was worth.
506 Also, catch up with 1.31's YYSTD.
508 2001-12-27 Akim Demaille <akim@epita.fr>
510 * src/output.c (output_gram): Rely on nritems, not the
511 0-sentinel. See below.
512 Use -1 as separator, not 0.
513 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
514 Rely on -1 as separator in yyrhs, instead of 0.
515 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
516 twice `Now at end of input', therefore there are two lines less to
519 2001-12-27 Akim Demaille <akim@epita.fr>
521 * tests/regression.at (Unresolved SR Conflicts):
522 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
525 2001-12-27 Akim Demaille <akim@epita.fr>
527 * src/LR0.c (new_state): Recognize the final state by the fact it
528 is reached by eoftoken.
529 (insert_start_shifting_state, insert_eof_shifting_state)
530 (insert_accepting_state, augment_automaton): Remove, since now
531 these states are automatically computed from the initial state.
532 (generate_states): Adjust.
533 * src/print.c: When reporting a rule number to the user, substract
534 1, so that the axiom rule is rule 0, and the first user rule is 1.
535 * src/reduce.c: Likewise.
536 * src/print_graph.c (print_core): For the time being, just as for
537 the report, depend upon --trace-flags to dump the full set of
539 * src/reader.c (readgram): Once the grammar read, insert the rule
540 0: `$axiom: START-SYMBOL $'.
541 * tests/set.at: Adjust: rule 0 is now displayed, and since the
542 number of the states has changed (the final state is no longer
543 necessarily the last), catch up.
545 2001-12-27 Akim Demaille <akim@epita.fr>
547 Try to make the use of the eoftoken valid. Given that its value
548 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
549 is used instead of > 0 where appropriate, (ii), depend upon nritems
550 instead of the 0-sentinel.
552 * src/gram.h, src/gram.c (nritems): New.
553 Expected to be duplication of nitems, but for the time being...
554 * src/reader.c (packgram): Assert nritems and nitems are equal.
555 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
556 * src/closure.c (print_closure, print_fderives): Likewise.
557 * src/gram.c (ritem_print): Likewise.
558 * src/print.c (print_core, print_grammar): Likewise.
559 * src/print_graph.c: Likewise.
561 2001-12-27 Akim Demaille <akim@epita.fr>
563 * src/main.c (main): If there are complains after grammar
564 reductions, then output the report anyway if requested, then die.
565 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
566 * src/reader.c (eoftoken): New.
567 (parse_token_decl): If the token being defined has value `0', it
569 (packsymbols): No longer hack `tags' to insert `$' by hand.
570 Be sure to preserve the value of the eoftoken.
571 (reader): Make sure eoftoken is defined.
572 Initialize nsyms to 0: now eoftoken is created just like the others.
573 * src/print.c (print_grammar): Don't special case the eof token.
574 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
575 lie anyway, albeit pleasant.
576 * tests/calc.at: Exercise error messages with eoftoken.
577 Change the grammar so that empty input is invalid.
579 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
581 2001-12-27 Akim Demaille <akim@epita.fr>
583 * configure.in: Check the protos of strchr ans strspn.
584 Replace strchr if needed.
585 * src/system.h: Provide the protos of strchr, strspn and memchr if
588 * src/reader.c (symbols_save): Use strchr.
590 2001-12-27 Akim Demaille <akim@epita.fr>
592 * src/print.c, src/print_graph.c (escape): New.
593 Use it to quote the TAGS outputs.
594 * src/print_graph.c (print_state): Now errors are in red, and
596 Prefer high to wide: output the state number on a line of its own.
598 2001-12-27 Akim Demaille <akim@epita.fr>
600 * src/state.h, src/state.c (reductions_new): New.
601 * src/LR0.c (set_state_table): Let all the states have a
602 `reductions', even if reduced to 0.
603 (save_reductions): Adjust.
604 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
605 * src/print.c (print_reductions, print_actions): Adjust.
606 * src/output.c (action_row): Adjust.
608 2001-12-27 Akim Demaille <akim@epita.fr>
610 * src/state.h, src/state.c (errs_new, errs_dup): New.
611 * src/LR0.c (set_state_table): Let all the states have an errs,
612 even if reduced to 0.
613 * src/print.c (print_errs, print_reductions): Adjust.
614 * src/output.c (output_actions, action_row): Adjust.
615 * src/conflicts.c (resolve_sr_conflict): Adjust.
617 2001-12-27 Akim Demaille <akim@epita.fr>
619 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
621 2001-12-27 Akim Demaille <akim@epita.fr>
623 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
625 (lookaheadset, shiftset): New, used as additional storage by
627 (print_results): Adjust.
628 (print_shifts, print_gotos, print_errs): New, extracted from...
629 (print_actions): here.
630 * src/print_graph.c (print_actions): Remove dead code.
632 2001-12-27 Akim Demaille <akim@epita.fr>
634 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
637 2001-12-27 Akim Demaille <akim@epita.fr>
639 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
640 (build_relations): Adjust.
642 2001-12-27 Akim Demaille <akim@epita.fr>
644 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
647 2001-12-27 Akim Demaille <akim@epita.fr>
649 * src/reader.c (packgram): Catch nitems overflows.
651 2001-12-27 Akim Demaille <akim@epita.fr>
653 * src/files.c, src/files.h (guard_obstack): Remove.
654 * src/output.c (output): Adjust.
655 * src/reader.c (parse_braces): New, factoring...
656 (copy_action, copy_guard): these two which are renamed as...
657 (parse_action, parse_guard): these.
658 As a voluntary consequence, using braces around guards is now
661 2001-12-27 Akim Demaille <akim@epita.fr>
663 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
664 * src/reader.c (symbol_list): `guard' and `guard_line' are new
666 (symbol_list_new): Adjust.
667 (copy_action): action_line is the first line, not the last.
668 (copy_guard): Just as for actions, store the `action' only, not
669 the switch/case/break flesh.
670 Don't parse the user action that might follow the guard, let...
671 (readgram): do it, i.e., now, there can be an action after a
673 In other words the guard is just explicitly optional.
675 * src/output.c (guards_output): New.
676 (output_parser): Call it when needed.
677 (output): Also free the guard and attrs obstacks.
678 * src/files.c, src/files.h (obstack_save): Remove.
679 (output_files): Remove.
680 As a result, if one needs the former `.act' file, using an
681 appropriate skeleton which requires actions and guards is now
683 * src/main.c (main): Adjust.
684 * tests/semantic.at: New.
685 * tests/regression.at: Use `input.y' as input file name.
686 Avoid 8+3 problems by requiring input.c when the test needs the
689 2001-12-27 Akim Demaille <akim@epita.fr>
691 * src/reader.c (symbol_list_new): Be sure to initialize all the
694 2001-12-27 Akim Demaille <akim@epita.fr>
696 All the hacks using a final pseudo state are now useless.
698 * src/LR0.c (set_state_table): state_table holds exactly nstates.
699 * src/lalr.c (nLA): New.
700 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
701 instead of lookaheadsp from the pseudo state (nstate + 1).
703 2001-12-27 Akim Demaille <akim@epita.fr>
705 * src/output.c (action_row, token_actions): Use a state_t instead
706 of a integer, and nlookaheads instead of the following state's
709 2001-12-27 Akim Demaille <akim@epita.fr>
711 * src/conflicts.c (log_resolution, flush_shift)
712 (resolve_sr_conflict, set_conflicts, solve_conflicts)
713 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
714 (conflicts_print, print_reductions): Use a state_t instead of an
715 integer when referring to a state.
716 As much as possible, depend upon nlookaheads, instead of the
717 `lookaheadsp' member of the following state (since lookaheads of
718 successive states are successive, the difference between state n + 1
719 and n served as the number of lookaheads for state n).
720 * src/lalr.c (add_lookback_edge): Likewise.
721 * src/print.c (print_core, print_actions, print_state)
722 (print_results): Likewise.
723 * src/print_graph.c (print_core, print_actions, print_state)
724 (print_graph): Likewise.
725 * src/conflicts.h: Adjust.
727 2001-12-27 Akim Demaille <akim@epita.fr>
729 * src/bison.hairy: Formatting/comment changes.
731 Remove `register' indications.
732 Add plenty of `static'.
734 2001-12-27 Akim Demaille <akim@epita.fr>
736 * src/output.c (prepare): Drop the muscle `ntbase' which
738 * src/bison.simple: Formatting/comment changes.
739 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
740 is an undocumented synonym.
742 2001-12-22 Akim Demaille <akim@epita.fr>
744 * src/output.c (output_table_data): Change the prototype to use
745 `int' for array ranges: some invocations do pass an int, not a
747 Reported by Wayne Green.
749 2001-12-22 Akim Demaille <akim@epita.fr>
751 Some actions of web2c.y are improperly triggered.
752 Reported by Mike Castle.
754 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
755 * tests/regression.at (Web2c): Rename as...
756 (Web2c Report): this.
757 (Web2c Actions): New.
759 2001-12-22 Akim Demaille <akim@epita.fr>
761 Reductions in web2c.y are improperly reported.
762 Reported by Mike Castle.
764 * src/conflicts.c (print_reductions): Fix.
765 * tests/regression.at (Web2c): New.
767 2001-12-18 Akim Demaille <akim@epita.fr>
769 Some host fail on `assert (!"foo")', which expands to
770 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
771 Reported by Nelson Beebee.
773 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
774 `#define it_succeeded 0' and `assert (it_succeeded)'.
776 2001-12-17 Marc Autret <autret_m@epita.fr>
778 * src/bison.simple: Don't hard code the skeleton line and filename.
779 * src/output.c (output_parser): Rename 'line' as 'output_line'.
780 New line counter 'skeleton_line' (skeleton-line muscle).
782 2001-12-17 Paul Eggert <eggert@twinsun.com>
784 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
785 YYDEBUG must be defined to a nonzero value.
787 * src/bison.simple (yytname): Do not assume that the user defines
788 YYDEBUG to a properly parenthesized expression.
790 2001-12-17 Akim Demaille <akim@epita.fr>
792 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
793 nlookaheads is a new member.
795 * src/lalr.h (nlookaheads): Remove this orphan declaration.
796 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
799 2001-12-17 Akim Demaille <akim@epita.fr>
801 * src/files.h, src/files.c (open_files, close_files): Remove.
802 * src/main.c (main): Don't open/close files, nor invoke lex_free,
804 * src/reader.c (reader): Do it.
806 2001-12-17 Akim Demaille <akim@epita.fr>
808 * src/conflicts.c (print_reductions): Formatting changes.
810 2001-12-17 Akim Demaille <akim@epita.fr>
812 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
814 (resolve_sr_conflict): Adjust.
816 2001-12-17 Akim Demaille <akim@epita.fr>
818 * src/output.c (output_obstack): Be static and rename as...
819 (format_obstack): this, to avoid any confusion with files.c's
821 * src/reader.h (muscle_obstack): Move to...
822 * src/output.h: here, since it's defined in output.c.
824 2001-12-17 Akim Demaille <akim@epita.fr>
826 * src/output.c (action_row, save_column, default_goto)
827 (sort_actions, matching_state, pack_vector): Better variable
830 2001-12-17 Akim Demaille <akim@epita.fr>
832 * src/output.c: Various formatting changes.
834 2001-12-17 Akim Demaille <akim@epita.fr>
836 * src/files.c (output_files): Free the output_obstack.
837 * src/main.c (main): Call print and print_graph conditionally.
838 * src/print.c (print): Work unconditionally.
839 * src/print_graph.c (print_graph): Work unconditionally.
840 * src/conflicts.c (log_resolution): Output only if verbose_flag.
842 2001-12-16 Marc Autret <autret_m@epita.fr>
844 * src/output.c (actions_output): Fix. When we use %no-lines,
845 there is one less line per action.
847 2001-12-16 Marc Autret <autret_m@epita.fr>
849 * src/bison.simple: Remove a useless #line directive.
850 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
851 * src/output.c (get_lines_number): New.
852 (output_parser): Adjust, now takes care about the lines of a
855 (actions_output): Computes the number of lines taken by actions.
856 (output_master_parser): Insert new skeleton which is the name of
857 the output parser file name.
859 2001-12-15 Marc Autret <autret_m@epita.fr>
861 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
863 2001-12-15 Marc Autret <autret_m@epita.fr>
865 * src/output.c (output_gram): Keep track of the hairy one.
867 2001-12-15 Akim Demaille <akim@epita.fr>
869 Make `make distcheck' work.
871 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
872 system.h which uses libgettext.h.
874 2001-12-15 Akim Demaille <akim@epita.fr>
876 * src/nullable.c (set_nullable): Useless rules must be skipped,
877 otherwise, since we range over their symbols, we might look at a
878 nonterminal which no longer ``exists'', i.e., it is not counted in
879 `nvars', hence we overflow our arrays.
881 2001-12-15 Akim Demaille <akim@epita.fr>
883 The header can also be produced directly, without any obstack!
886 * src/files.c, src/files.h (defines_obstack): Remove.
887 (compute_header_macro): Global.
888 (defines_obstack_save): Remove.
889 * src/reader.c (parse_union_decl): No longer output to
890 defines_obstack: its content can be found in the `stype' muscle
892 (output_token_translations): Merge into...
893 (symbols_output): this.
895 (symbols_save): this.
897 * src/output.c (header_output): New.
900 2001-12-15 Akim Demaille <akim@epita.fr>
902 * src/reader.c (parse_union_decl): Instead of handling two obstack
903 simultaneously, use one to define the `stype' muscle, and use the
904 value of the latter to fill defines_obstack.
905 (copy_comment): Remove.
906 (copy_comment2): Work for a single obstack.
908 (copy_comment): this.
910 2001-12-15 Akim Demaille <akim@epita.fr>
912 * src/lex.c, src/lex.h (xgetc): No longer static.
913 * src/reader.c (parse_union_decl): Revamp.
915 2001-12-15 Akim Demaille <akim@epita.fr>
917 Still making progress in separating Bison into (i) input, (ii)
918 process, (iii) output: now we can directly output the parser file
919 without using table_obstack at all.
921 * src/files.c, src/files.h (table_obstack): Bye bye.
922 (parser_file_name): New.
923 * src/files.c (compute_output_file_names): Compute it.
924 * src/output.c (actions_output, output_parser)
925 (output_master_parser): To a file instead of an obstack.
927 2001-12-15 Akim Demaille <akim@epita.fr>
929 Attach actions to rules, instead of pre-outputting them to
932 * src/gram.h (rule_t): action and action_line are new members.
933 * src/reader.c (symbol_list): Likewise.
934 (copy_action): Save the actions within the rule.
935 (packgram): Save them in rule_table.
936 * src/output.c (actions_output): New.
937 (output_parser): Use it on `%%actions'.
938 (output_rule_data): Don't free rule_table.
940 (prepare): Don't save the `action' muscle.
941 * src/bison.simple: s/%%action/%%actions/.
943 2001-12-15 Akim Demaille <akim@epita.fr>
945 * src/reader.c (copy_action): When --yacc, don't append a `;'
946 to the user action: let it fail if lacking.
947 Suggested by Arnold Robbins and Tom Tromey.
949 2001-12-14 Akim Demaille <akim@epita.fr>
951 * src/lex.c (literalchar): Simply return the char you decoded, non
952 longer mess around with obstacks and int pointers.
955 2001-12-14 Akim Demaille <akim@epita.fr>
957 * src/lex.c (literalchar): Don't escape the special characters,
958 just decode them, and keep them as char (before, eol was output as
959 the 2 char string `\n' etc.).
960 * src/output.c (output_rule_data): Use quotearg to output the
963 2001-12-13 Paul Eggert <eggert@twinsun.com>
965 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
966 Do not infringe on the global user namespace when using C++.
967 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
968 All uses of `fprintf' and `stderr' changed.
970 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
972 2001-12-13 Akim Demaille <akim@epita.fr>
974 The computation of nullable is broken: it doesn't handle empty
977 * tests/torture.at (GNU AWK Grammar): New.
978 * tests/sets.at (Nullable): New.
979 * src/nullable.c (set_nullable): Instead of blindly looping over
980 `ritems', loop over the rules, and then over their rhs's.
982 Work around Autotest bugs.
984 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
985 frame, because Autotest understand lines starting with a `+' as
986 traces from the shell. Then, they are not processed properly.
987 Admittedly an Autotest bug, but we don't have time to wait for
988 Autotest to catch up.
989 * tests/regression.at (Broken Closure): Adjust to the new table
992 * tests/sets.at: here.
994 2001-12-13 Akim Demaille <akim@epita.fr>
996 * src/closure.c (closure): Use nrules instead of playing tricks
999 2001-12-13 Akim Demaille <akim@epita.fr>
1001 * src/print.c (print_actions): Output the handling of `$' as the
1002 traces do: shifting the token EOF. Before EOF was treated as a
1004 * tests/regression.at: Adjust some tests.
1005 * src/print_graph.c (print_core): Complete the set of items via
1006 closure. The next-to-final and final states are still unsatisfying,
1007 but that's to be addressed elsewhere.
1008 No longer output the rule numbers, but do output the state number.
1009 A single loop for the shifts + gotos is enough, but picked a
1010 distinct color for each.
1011 (print_graph): Initialize and finalize closure.
1013 2001-12-13 Akim Demaille <akim@epita.fr>
1015 * src/reader.c (readgram): Remove dead code, an strip useless
1017 (get_type): Remove, unused.
1019 2001-12-12 Akim Demaille <akim@epita.fr>
1021 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
1022 on that of lib/error.c.
1024 2001-12-12 Akim Demaille <akim@epita.fr>
1026 Some hosts don't like `/' in includes.
1028 * src/system.h: Include libgettext.h without qualifying the path.
1029 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
1032 2001-12-11 Marc Autret <autret_m@epita.fr>
1034 * src/output.c (output_parser): Remove useless muscle.
1036 2001-12-11 Marc Autret <autret_m@epita.fr>
1038 * src/bison.simple: Remove #line just before %%epilogue. It
1039 is now handled in ...
1040 * src/reader.c (read_additionnal_code): Add the output of a
1041 #line for the epilogue.
1043 2001-12-10 Marc Autret <autret_m@epita.fr>
1045 * src/reader.c (copy_definition): Re-use CPP-outed code which
1046 replace precedent remove.
1047 * src/bison.simple: Remove #line before %%prologue because
1048 %%input-line is wrong at this time.
1050 2001-12-10 Marc Autret <autret_m@epita.fr>
1052 * src/reader.c (symbols_output): Clean up.
1053 * src/output.c (output_gram, output): Clean up.
1055 2001-12-10 Akim Demaille <akim@epita.fr>
1057 * src/lalr.c (initialize_lookaheads): New. Extracted from...
1058 * src/LR0.c (set_state_table): here.
1059 * src/lalr.c (lalr): Call it.
1061 2001-12-10 Akim Demaille <akim@epita.fr>
1063 * src/state.h (shifts): Remove the `number' member: shifts are
1064 attached to state, hence no longer need to be labelled with a
1067 2001-12-10 Akim Demaille <akim@epita.fr>
1069 Now that states have a complete set of members, the linked list of
1070 shifts is useless: just fill directly the state's shifts member.
1072 * src/state.h (shifts): Remove the `next' member.
1073 * src/LR0.c (first_state, last_state): Remove.
1075 (augment_automaton): Don't look for the shifts that must be added
1076 a shift on EOF: it is those of the state we looked for! But now,
1077 since shifts are attached, it is no longer needed to looking
1078 merely by its id: its number.
1080 2001-12-10 Akim Demaille <akim@epita.fr>
1082 * src/LR0.c (augment_automaton): Better variable locality.
1083 Remove an impossible branch: if there is a state corresponding to
1084 the start symbol being shifted, then there is shift for the start
1085 symbol from the initial state.
1087 2001-12-10 Akim Demaille <akim@epita.fr>
1089 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
1090 only when appropriate: when insert_start_shifting_state' is not
1092 * tests/regression.at (Rule Line Numbers): Adjust.
1094 2001-12-10 Akim Demaille <akim@epita.fr>
1096 * src/LR0.c (augment_automaton): Now that all states have shifts,
1097 merge the two cases addition shifts to the initial state.
1099 2001-12-10 Akim Demaille <akim@epita.fr>
1101 * src/lalr.c (set_state_table): Move to...
1103 * src/lalr.c (lalr): Don't call it...
1104 * src/LR0.c (generate_states): do it.
1105 * src/LR0.h (first_state): Remove, only the table is used.
1107 2001-12-10 Akim Demaille <akim@epita.fr>
1109 * src/LR0.h (first_shift, first_reduction): Remove.
1110 * src/lalr.c: Don't use first_shift: find shifts through the
1113 2001-12-10 Akim Demaille <akim@epita.fr>
1115 * src/LR0.c: Attach shifts to states as soon as they are
1117 * src/lalr.c (set_state_table): Instead of assigning shifts to
1118 state, just assert that the mapping was properly done.
1120 2001-12-10 Akim Demaille <akim@epita.fr>
1122 * src/LR0.c (insert_start_shift): Rename as...
1123 (insert_start_shifting_state): this.
1124 (insert_eof_shifting_state, insert_accepting_state): New.
1125 (augment_automaton): Adjust.
1126 Better locality of the variables.
1127 When looking if the start_symbol is shifted from the initial
1128 state, using `while (... symbol != start_symbol ...)' sounds
1129 better than `while (... symbol < start_symbol ...)': If fail
1130 to see how the order between symbols could be relevant!
1132 2001-12-10 Akim Demaille <akim@epita.fr>
1134 * src/getargs.h: Don't declare `spec_name_prefix' and
1135 `spec_file_prefix', declared by src/files.h.
1136 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
1137 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
1138 * src/output.c (prepare): Adjust.
1139 * src/reader.c (symbols_output): Likewise.
1140 * src/vmsgetargs.c: Vaguely adjust, but who cares?
1142 2001-12-10 Akim Demaille <akim@epita.fr>
1144 * src/muscle_tab.c (muscle_init): NULL is a better default than
1147 2001-12-10 Akim Demaille <akim@epita.fr>
1149 * src/reader.c (reader): Calling symbols_output once is enough.
1151 2001-12-10 Akim Demaille <akim@epita.fr>
1153 Now that states have a complete set of members, the linked list of
1154 reductions is useless: just fill directly the state's reductions
1157 * src/state.h (struct reductions): Remove member `number' and
1159 * src/LR0.c (first_reduction, last_reduction): Remove.
1160 (save_reductions): Don't link the new reductions, store them in
1162 * src/lalr.c (set_state_table): No need to attach reductions to
1163 states, it's already done.
1164 * src/output.c (output_actions): No longer free the shifts, then
1165 the reductions, then the states: free all the states and their
1168 2001-12-10 Akim Demaille <akim@epita.fr>
1170 * src/options.c (OPTN, DRTV, BOTH): New.
1171 (option_table): Use them.
1173 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
1174 the job of system.h.
1175 * src/options.c: Don't include stdio.h and xalloc.h for the same
1178 2001-12-10 Akim Demaille <akim@epita.fr>
1180 * src/output.c (output, prepare): Make sure the values of the
1181 muscles `action' and `prologue' are 0-terminated.
1183 2001-12-10 Akim Demaille <akim@epita.fr>
1185 Clean up GCC warnings.
1187 * src/reader.c (copy_action): `buf' is not used.
1188 (parse_skel_decl): Be static.
1189 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
1190 * src/options.h (create_long_option_table): Have a real prototype.
1191 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
1192 (hash_delete_at): Return const void *.
1193 Adjust casts to preserve the const.
1195 2001-12-10 Akim Demaille <akim@epita.fr>
1197 * configure.in: Require 2.52g.
1198 M4 is not needed, but AUTOM4TE is.
1200 * tests/Makefile.am: Adjust.
1202 2001-12-10 Akim Demaille <akim@epita.fr>
1204 One structure for states is enough, even though theoretically
1205 there are LR(0) states and LALR(1) states.
1207 * src/lalr.h (state_t): Remove.
1208 (state_table): Be state_t **, not state_t *.
1209 * src/state.h (core, CORE_ALLOC): Rename as...
1210 (state_t, STATE_ALLOC): this.
1211 Add the LALR(1) members: shifts, reductions, errs.
1212 * src/LR0.c (state_table): Rename as...
1213 (state_hash): this, to avoid name clashes with the global
1215 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
1216 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
1218 2001-12-10 Akim Demaille <akim@epita.fr>
1220 Bison dumps core on bash.y.
1221 Reported by Pascal Bart.
1223 * src/warshall.c (bitmatrix_print): New.
1225 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
1226 j must be the outer loop.
1227 * tests/regression.at (Broken Closure): New.
1229 2001-12-05 Akim Demaille <akim@epita.fr>
1231 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
1233 Reported by Peter Hámorský.
1235 2001-12-05 Akim Demaille <akim@epita.fr>
1237 * src/conflicts.c (err_table): Remove.
1238 (resolve_sr_conflict): Adjust.
1239 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
1241 (state_t.reductions, state_t.shifts): this.
1243 2001-12-05 Akim Demaille <akim@epita.fr>
1245 * src/reduce.c (reduce_grammar_tables): No longer disable the
1246 removal of useless rules via CPP but via `if (0)', so that the
1247 compiler still check the code is valid.
1248 For instance, it should have noticed `rline' no longer exists: use
1249 the `line' member of rule_t.
1250 * src/gram.c (dummy, rline): Remove, unused.
1252 2001-12-05 Akim Demaille <akim@epita.fr>
1254 * src/output.c (pack_vector): Use assert, not berror.
1255 * src/main.c (berror): Remove, unused.
1257 2001-12-05 Akim Demaille <akim@epita.fr>
1259 New experimental feature: if --verbose --trace output all the
1260 items of a state, not only its kernel.
1262 * src/print.c (print_core): If `trace_flag', then invoke closure
1263 before outputting the items of the state (print_core is no longer
1264 a correct name them).
1265 (print_results): Invoke new_closure/free_closure if needed.
1267 2001-12-05 Akim Demaille <akim@epita.fr>
1269 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
1270 * src/closure.c, src/closure.h (itemsetsize): Rename as...
1271 (nitemset): for consistency with the rest of the project.
1273 2001-12-05 Akim Demaille <akim@epita.fr>
1275 * src/closure.c (print_closure): Improve.
1276 (closure): Use it for printing input and output.
1278 2001-12-05 Akim Demaille <akim@epita.fr>
1280 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
1281 indexed by nonterminals.
1283 2001-12-05 Akim Demaille <akim@epita.fr>
1285 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
1287 * src/warshall.h: Remove accidental duplication of the content.
1289 2001-12-05 Akim Demaille <akim@epita.fr>
1291 * src/closure.c (set_fderives): De-obfuscate.
1293 2001-12-05 Akim Demaille <akim@epita.fr>
1295 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
1297 2001-12-05 Akim Demaille <akim@epita.fr>
1299 * src/closure.c (set_firsts): De-obfuscate.
1301 2001-12-05 Akim Demaille <akim@epita.fr>
1303 * src/output.c (action_row): De-obfuscate
1304 using the good o' techniques: arrays not pointers, variable
1305 locality, BITISSET, RESETBIT etc.
1307 2001-12-05 Akim Demaille <akim@epita.fr>
1309 Pessimize the code to simplify it: from now on, all the states
1310 have a valid SHIFTS, which NSHIFTS is possibly 0.
1312 * src/LR0.c (shifts_new): Be global and move to..
1313 * src/state.c, src/state.h: here.
1314 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
1315 * src/print_graph: Adjust.
1317 2001-12-05 Akim Demaille <akim@epita.fr>
1319 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
1320 * src/conflicts.c: Use it.
1321 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
1322 incorrectly ``simplified''.
1324 2001-12-05 Akim Demaille <akim@epita.fr>
1326 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
1327 using the good o' techniques: arrays not pointers, variable
1328 locality, BITISSET, RESETBIT etc.
1330 2001-12-05 Akim Demaille <akim@epita.fr>
1332 * src/state.h (SHIFT_SYMBOL): New.
1333 * src/conflicts.c: Use it to deobfuscate.
1335 2001-12-05 Akim Demaille <akim@epita.fr>
1337 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
1338 (print_reductions): De-obfuscate using the good o' techniques:
1339 arrays not pointers, variable locality, BITISSET.
1341 2001-12-05 Akim Demaille <akim@epita.fr>
1343 * src/conflicts.c (print_reductions): Arrays, not pointers.
1346 2001-12-05 Akim Demaille <akim@epita.fr>
1348 * src/conflicts.c (print_reductions): Pessimize, but clarify.
1350 2001-12-05 Akim Demaille <akim@epita.fr>
1352 * src/conflicts.c (print_reductions): Improve variable locality.
1354 2001-12-05 Akim Demaille <akim@epita.fr>
1356 * src/conflicts.c (print_reductions): Pessimize, but clarify.
1358 2001-12-05 Akim Demaille <akim@epita.fr>
1360 * src/conflicts.c (print_reductions): Improve variable locality.
1362 2001-12-05 Akim Demaille <akim@epita.fr>
1364 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
1365 * src/lalr.c: Use them.
1367 2001-12-05 Akim Demaille <akim@epita.fr>
1369 * src/LR0.c (augment_automaton): Formatting changes.
1370 Better variable locality.
1372 2001-12-05 Akim Demaille <akim@epita.fr>
1374 * src/lalr.c (matrix_print): New.
1375 (transpose): Use it.
1376 Use arrays instead of pointers.
1378 2001-12-05 Akim Demaille <akim@epita.fr>
1380 * src/lalr.c (maxrhs): Move to...
1381 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
1382 * src/lalr.c (build_relations): Adjust.
1384 2001-12-05 Akim Demaille <akim@epita.fr>
1386 * src/lalr.c (transpose): Free the memory allocated to the
1387 argument, as it is replaced by the results by the unique caller.
1388 (build_relations): Merely invoke transpose: it handles the memory
1390 Improve variable locality.
1391 Avoid variables used as mere abbreviations.
1392 (compute_lookaheads): Use arrays instead of pointers.
1394 2001-12-05 Akim Demaille <akim@epita.fr>
1396 * src/lalr.c (initialize_F): Improve variable locality.
1397 Avoid variables used as mere abbreviations.
1399 2001-12-05 Akim Demaille <akim@epita.fr>
1401 * src/derives.c (print_derives): Display the ruleno.
1402 * src/lalr.c (initialize_F, transpose): Better variable locality
1403 to improve readability.
1404 Avoid variables used as mere abbreviations.
1406 2001-12-05 Akim Demaille <akim@epita.fr>
1408 * src/lalr.c (traverse): Use arrays instead of pointers.
1410 2001-12-05 Akim Demaille <akim@epita.fr>
1412 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
1413 the handling of squeue.
1414 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
1416 2001-12-05 Akim Demaille <akim@epita.fr>
1418 Because useless nonterminals are now kept alive (instead of being
1419 `destroyed'), we now sometimes examine them, and store information
1420 related to them. Hence we need to know their number, and adjust
1423 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
1425 * src/LR0.c (allocate_itemsets): The memory allocated to
1426 `symbol_count' was used for two different purpose: once to count
1427 the number of occurrences of each symbol, and later reassigned to
1428 `shift_symbol', containing the symbol that can be shifted from a
1430 Deobfuscate, i.e., allocate, use and free `symbol_count' here
1432 (new_itemsets): Allocate `shift_symbol' here.
1433 (allocate_itemsets): symbol_count includes useless nonterminals.
1435 (free_storage): Use `free', not `XFREE', for pointers that cannot
1438 2001-12-05 Akim Demaille <akim@epita.fr>
1440 * src/nullable.c (set_nullable): Deobfuscate the handling of
1442 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
1444 2001-12-05 Akim Demaille <akim@epita.fr>
1446 * src/gram.c, src/gram.h (ritem_print): New.
1447 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
1448 (This useless function was defined only to work around VMS linkers
1449 that can't handle compilation units with variables only).
1450 * src/reduce.c (dump_grammar): Use it to trace the construction of
1453 2001-12-04 Paul Eggert <eggert@twinsun.com>
1455 * src/bison.simple (union yyalloc): Change member names
1456 to be the same as the stack names.
1457 (yyparse): yyptr is now union yyalloc *, not char *.
1458 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
1459 and may generate better code on some machines.
1460 (yystpcpy): Use prototype if __STDC__ is defined, not just
1461 if __cplusplus is defined.
1463 2001-11-30 Akim Demaille <akim@epita.fr>
1465 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
1466 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
1467 Gettext doesn't compile cleanly, and dies with -Werror.
1468 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
1469 Include WARNING_CFLAGS here.
1470 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
1471 before being defined.
1473 2001-11-27 Paul Eggert <eggert@twinsun.com>
1475 * lib/quotearg.h (quotearg_n, quotearg_n_style):
1476 First arg is int, not unsigned.
1477 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
1478 (SIZE_MAX, UINT_MAX): New macros.
1479 (quotearg_n_options): Abort if N is negative.
1480 Avoid overflow check on hosts where size_t is 64 bits and int
1481 is 32 bits, as overflow is impossible there.
1482 Fix off-by-one typo that caused unnecessary reallocation.
1484 2001-11-29 Paul Eggert <eggert@twinsun.com>
1486 Name space cleanup in generated parser.
1488 * doc/bison.texinfo (Bison Parser): Discuss system headers
1489 and their effect on the user name space.
1492 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
1493 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
1494 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
1496 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
1497 on user names when possible.
1499 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
1500 Simplify test for whather <alloca.h> exists.
1502 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
1504 (<stdio.h>): Include if YYDEBUG.
1506 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
1507 ! defined (yyoverflow) && ! defined (yymemcpy).
1509 (yymemcpy, yyparse): Rename local variables as needed so that
1510 they all begin with 'yy'.
1512 (yystrlen, yystpcpy): New functions.
1514 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
1517 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
1518 instead of relying on string.h functions. Use YYSTACK_ALLOC
1519 and YYSTACK_FREE instead of malloc and free.
1521 2001-11-30 Akim Demaille <akim@epita.fr>
1523 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
1524 before their first uses.
1525 (YYBISON, YYPURE): Move to the top of the output.
1527 2001-11-30 Akim Demaille <akim@epita.fr>
1529 * tests/reduce.at (Useless Nonterminals): Fix.
1531 2001-11-30 Akim Demaille <akim@epita.fr>
1533 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
1534 if body instead of `;' to pacify GCC's warnings.
1536 2001-11-30 Akim Demaille <akim@epita.fr>
1538 Instead of mapping the LHS of unused rules to -1, keep the LHS
1539 valid, but flag the rules as invalid.
1541 * src/gram.h (rule_t): `useful' is a new member.
1542 * src/print.c (print_grammar): Adjust.
1543 * src/derives.c (set_derives): Likewise.
1544 * src/reader.c (packgram, reduce_output): Likewise.
1545 * src/reduce.c (reduce_grammar_tables): Likewise.
1546 * tests/reduce.at (Underivable Rules, Useless Rules): New.
1548 2001-11-30 Akim Demaille <akim@epita.fr>
1550 * src/reduce.c (reduce_output): Formatting changes.
1551 * src/print.c (print_results, print_grammar): Likewise.
1552 * tests/regression.at (Rule Line Numbers)
1553 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
1555 2001-11-30 Akim Demaille <akim@epita.fr>
1557 * src/reduce.c (nonterminals_reduce): Instead of throwing away
1558 useless nonterminals, move them at the end of the symbol arrays.
1559 (reduce_output): Adjust.
1560 * tests/reduce.at (Useless Nonterminals): Adjust.
1562 2001-11-30 Akim Demaille <akim@epita.fr>
1564 * src/reduce.c: Various comment/formatting changes.
1565 (nonterminals_reduce): New, extracted from...
1566 (reduce_grammar_tables): here.
1567 (reduce_grammar): Call nonterminals_reduce.
1569 2001-11-29 Paul Eggert <eggert@twinsun.com>
1571 * src/bison.simple (YYSTACK_REALLOC): Remove.
1572 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
1573 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
1575 (union yyalloc): New type.
1576 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
1577 an arbitrary restriction on hosts where size_t is wider than int.
1579 (yyparse): Don't dump core if alloca or malloc fails; instead, report
1580 a parser stack overflow. Allocate just one block of memory for all
1581 three stacks, instead of allocating three blocks; this typically is
1582 faster and reduces fragmentation.
1584 Do not limit the number of items in the stack to a value that fits
1585 in 'int', as this is an arbitrary limit on hosts with 64-bit
1586 size_t and 32-bit int.
1588 2001-11-29 Marc Autret <autret_m@epita.fr>
1590 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
1591 of defining YYERROR_VERBOSE.
1592 [AT_DATA]: $4 is now out of C declarations in the prologue.
1594 2001-11-28 Marc Autret <autret_m@epita.fr>
1596 * src/reader.c (parse_dquoted_param): New.
1597 (parse_skel_decl): Use it.
1598 * src/lex.h: Add its prototype.
1599 * src/lex.c (literalchar): Become not static.
1601 2001-11-28 Marc Autret <autret_m@epita.fr>
1603 * src/output.h: And put its extern declaration here.
1604 * src/output.c (error_verbose): Define here.
1605 (prepare): Echo name modification.
1606 * src/getargs.h: Clean its extern declaration.
1607 * src/getargs.c (error_verbose_flag): Remove.
1608 (getargs): Remove case 'e'.
1609 * src/options.c (option_table): 'error-verbose' is now seen as simple
1613 * src/reader.c (read_declarations): Remove case tok_include.
1614 (parse_include_decl): Remove.
1615 * src/lex.h (token_t): Remove tok_include.
1616 * src/options.c (option_table): 'include' is now a simple command line
1619 2001-11-28 Marc Autret <autret_m@epita.fr>
1621 * src/bison.simple: Adjust muscle names.
1622 * src/muscle_tab.c (muscle_init): Also rename the muscles.
1623 * src/output.c (prepare): s/_/-/ for the muscles names.
1624 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
1626 2001-11-28 Marc Autret <autret_m@epita.fr>
1628 * src/bison.simple: Fix debug.
1629 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
1631 2001-11-28 Akim Demaille <akim@epita.fr>
1633 * src/LR0.c (shifts_new): New.
1634 (save_shifts, insert_start_shift, augment_automaton): Use it.
1636 2001-11-28 Akim Demaille <akim@epita.fr>
1638 * src/closure.c (closure): `b' and `ruleno' denote the same value:
1641 2001-11-28 Akim Demaille <akim@epita.fr>
1643 * src/closure.c (closure): Instead of looping over word in array
1644 then bits in words, loop over bits in array.
1646 2001-11-28 Akim Demaille <akim@epita.fr>
1648 * src/closure.c (closure): No longer optimize the special case
1649 where all the bits of `ruleset[r]' are set to 0, to make the code
1652 2001-11-28 Akim Demaille <akim@epita.fr>
1654 * src/closure.c (closure): `r' and `c' are new variables, used to
1655 de-obfuscate accesses to RULESET and CORE.
1657 2001-11-28 Akim Demaille <akim@epita.fr>
1659 * src/reduce.c (reduce_print): Use ngettext.
1660 (dump_grammar): Improve the trace accuracy.
1662 2001-11-28 Akim Demaille <akim@epita.fr>
1664 * src/reduce.c (dump_grammar): Don't translate trace messages.
1666 2001-11-28 Akim Demaille <akim@epita.fr>
1668 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
1669 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
1670 as all tags are free'ed afterwards.
1673 2001-11-27 Paul Eggert <eggert@twinsun.com>
1675 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
1676 use alloca when we didn't want to, and vice versa.
1678 2001-11-27 Marc Autret <autret_m@epita.fr>
1680 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
1682 * src/output.c (prepare): Remove its update.
1684 2001-11-27 Marc Autret <autret_m@epita.fr>
1686 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
1689 2001-11-27 Marc Autret <autret_m@epita.fr>
1691 * src/bison.simple: Remove YYERROR_VERBOSE using.
1692 Use %%error_verbose.
1693 (yyparse): Likewise.
1694 * src/output.c (prepare): Give its final value.
1695 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
1696 * src/getargs.h: Add its extern declaration.
1697 * src/getargs.c (error_verbose_flag): New int.
1698 (getargs): Update to catch new case.
1699 * src/options.c (option_table): 'error-verbose' is a new option.
1700 (shortopts): Update.
1702 2001-11-27 Akim Demaille <akim@epita.fr>
1704 * src/system.h: Use intl/libgettext.h.
1705 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
1707 2001-11-27 Akim Demaille <akim@epita.fr>
1709 * tests/torture.at (Exploding the Stack Size with Malloc):
1710 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
1712 2001-11-27 Akim Demaille <akim@epita.fr>
1714 * src/files.c: Include error.h.
1715 Reported by Hans Aberg.
1717 2001-11-26 Marc Autret <autret_m@epita.fr>
1719 * src/reader.c (parse_include_decl): New, not yet implemented.
1720 (read_declarations): Add case tok_include.
1721 * src/getargs.h (include): Add its extern definition.
1722 * src/getargs.c (include): New const char *.
1723 (getargs): Add case '-I'.
1724 * src/options.c (option_table): Add include as command line and
1726 * src/lex.h (token_t): Add tok_include.
1728 2001-11-26 Akim Demaille <akim@epita.fr>
1730 * src/reader.c (readgram): Make sure rules for mid-rule actions
1731 have a lineno equal to that of their host rule.
1732 Reported by Hans Aberg.
1733 * tests/regression.at (Rule Line Numbers): New.
1735 2001-11-26 Akim Demaille <akim@epita.fr>
1737 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
1740 2001-11-26 Akim Demaille <akim@epita.fr>
1742 * src/complain.c, src/complain.h (error): Remove, provided by
1745 2001-11-26 Akim Demaille <akim@epita.fr>
1747 * src/reader.c (read_declarations): Don't abort on tok_illegal,
1748 issue an error message.
1749 * tests/regression.at (Invalid %directive): New.
1750 Reported by Hans Aberg.
1752 2001-11-26 Akim Demaille <akim@epita.fr>
1754 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
1755 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1757 2001-11-26 Akim Demaille <akim@epita.fr>
1759 * src/conflicts.c (conflicts_print): Don't complain at all when
1760 there are no reduce/reduce conflicts, and as many shift/reduce
1761 conflicts as expected.
1762 * tests/regression.at (%expect right): Adjust.
1764 2001-11-23 Akim Demaille <akim@epita.fr>
1766 * lib/alloca.c: Update, from fileutils.
1768 2001-11-23 Akim Demaille <akim@epita.fr>
1770 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
1772 2001-11-23 Akim Demaille <akim@epita.fr>
1774 * src/system.h: Include alloca.h.
1775 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
1777 2001-11-23 Akim Demaille <akim@epita.fr>
1779 * src/print_graph.c (print_actions): Remove `rule', unused.
1780 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
1781 pacify GCC's signed < unsigned warnings.
1782 * src/closure.c (itemsetsize): Likewise.
1783 * src/reader.c (symbol_list_new): Static.
1785 2001-11-23 Akim Demaille <akim@epita.fr>
1787 Attaching lineno to buckets is stupid, since only one copy of each
1788 symbol is kept, only the line of the first occurrence is kept too.
1790 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
1791 * src/reader.c (rline_allocated): Remove, unused.
1792 (symbol_list): Have a `line' member.
1793 (symbol_list_new): New.
1795 * src/print.c (print_grammar): Output the rule line numbers.
1796 * tests/regression.at (Solved SR Conflicts)
1797 (Unresolved SR Conflicts): Adjust.
1798 Reported by Hans Aberg.
1800 2001-11-22 Marc Autret <autret_m@epita.fr>
1802 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
1804 2001-11-22 Marc Autret <autret_m@epita.fr>
1806 * src/muscle_tab.c (muscle_init): Remove initialization of
1808 * src/output.c (output_master_parser): Do it here.
1810 2001-11-20 Akim Demaille <akim@epita.fr>
1813 * configure.in (ALL_LINGUAS): Adjust.
1814 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
1815 longer contains strings to translate.
1817 2001-11-19 Akim Demaille <akim@epita.fr>
1819 * src/conflicts.c (conflicts_print): Add a missing \n.
1821 2001-11-19 Akim Demaille <akim@epita.fr>
1823 * src/nullable.c (nullable_print): New.
1824 (set_nullable): Call it when tracing.
1825 Better locality of variables.
1827 2001-11-19 Akim Demaille <akim@epita.fr>
1829 * src/print.c (print_actions): Better locality of variables.
1831 2001-11-19 Akim Demaille <akim@epita.fr>
1833 * src/derives.c (print_derives): Fix and enrich.
1834 * src/closure.c (print_fderives): Likewise.
1836 2001-11-19 Akim Demaille <akim@epita.fr>
1838 * src/closure.c (itemsetend): Remove, replaced with...
1841 2001-11-19 Akim Demaille <akim@epita.fr>
1843 * src/LR0.c (kernel_end): Remove, replaced with...
1846 2001-11-19 Akim Demaille <akim@epita.fr>
1848 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
1851 2001-11-19 Akim Demaille <akim@epita.fr>
1853 * src/closure.c (closure): Use arrays instead of pointers to clarify.
1855 2001-11-19 Akim Demaille <akim@epita.fr>
1857 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
1859 * src/LR0.c: Likewise.
1860 (allocate_itemsets): Use arrays instead of pointers to clarify.
1862 2001-11-19 Akim Demaille <akim@epita.fr>
1864 * src/getargs.c (statistics_flag): Replace with...
1866 (longopts): Accept --trace instead of --statistics.
1867 * src/getargs.h, src/options.c: Adjust.
1868 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
1869 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
1871 2001-11-19 Akim Demaille <akim@epita.fr>
1873 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
1874 pointers to clarify the code.
1875 (save_reductions, save_shifts): Factor common parts of alternatives.
1877 2001-11-19 Akim Demaille <akim@epita.fr>
1879 * src/LR0.c (new_state, get_state): Complete TRACE code.
1880 * src/closure.c: Include `reader.h' to get `tags', needed by the
1882 Rename the conditional DEBUG as TRACE.
1883 Output consistently TRACEs to stderr, not stdout.
1884 * src/derives.c: Likewise.
1885 * src/reduce.c: (inaccessable_symbols): Using if is better style
1887 Use `#if TRACE' instead of `#if 0' for tracing code.
1889 2001-11-19 Akim Demaille <akim@epita.fr>
1891 * src/system.h (LIST_FREE, shortcpy): New.
1892 * src/LR0.c: Use them.
1893 * src/output.c (free_itemsets, free_reductions, free_shifts):
1894 Remove, replaced by LIST_FREE.
1896 2001-11-19 Akim Demaille <akim@epita.fr>
1898 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
1899 (REDUCTIONS_ALLOC): New.
1900 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
1903 2001-11-19 Akim Demaille <akim@epita.fr>
1905 * src/LR0.c (new_state): Complete trace code.
1906 * src/nullable.c (set_nullable): Don't translate traces.
1908 2001-11-19 Akim Demaille <akim@epita.fr>
1910 * src/print_graph.c (print_core): Better locality of variables.
1911 * src/print.c (print_core): Likewise.
1913 2001-11-19 Akim Demaille <akim@epita.fr>
1915 * src/vcg.c: You do the output, so you are responsible of the
1916 handling of VCG syntax, in particular: use quotearg.
1917 * src/print_graph.c: Don't.
1918 (print_actions): Don't output the actions as part of the nodes,
1919 since that's the job of the edges.
1920 (print_state): Don't output by hand: fill the node description,
1921 and ask for its output.
1923 2001-11-19 Akim Demaille <akim@epita.fr>
1925 * src/bison.simple (yyparse): When verbosely reporting an error,
1926 no longer put additional quotes around token names.
1927 * tests/calc.at: Adjust.
1929 2001-11-19 Akim Demaille <akim@epita.fr>
1931 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
1932 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
1933 * src/output.c: Adjust.
1935 2001-11-19 Akim Demaille <akim@epita.fr>
1937 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
1939 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
1941 2001-11-19 Akim Demaille <akim@epita.fr>
1943 * src/gram.h (rule_t): New.
1945 (rrhs, rlhs): Remove, part of state_t.
1946 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
1947 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
1948 * src/reader.c, src/reduce.c: Adjust.
1950 2001-11-19 Akim Demaille <akim@epita.fr>
1952 * src/reader.c (symbols_output): New, extracted from...
1953 (packsymbols): Here.
1956 2001-11-19 Akim Demaille <akim@epita.fr>
1958 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
1959 (maxrhs): this new function.
1961 2001-11-19 Akim Demaille <akim@epita.fr>
1963 * src/lalr.c (F): New macro to access the variable F.
1966 2001-11-19 Akim Demaille <akim@epita.fr>
1968 * src/lalr.h (LA): New macro to access the variable LA.
1969 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1970 * src/lalr.c: Adjust.
1972 2001-11-19 Akim Demaille <akim@epita.fr>
1974 * src/lalr.c (initialize_LA): Only initialize LA. Let...
1975 (set_state_table): handle the `lookaheads' members.
1977 2001-11-19 Akim Demaille <akim@epita.fr>
1979 * src/lalr.h (lookaheads): Removed array, whose contents is now
1981 (state_t): this structure.
1982 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1985 2001-11-19 Akim Demaille <akim@epita.fr>
1987 * src/lalr.h (consistent): Removed array, whose contents is now
1989 (state_t): this structure.
1990 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1993 2001-11-19 Akim Demaille <akim@epita.fr>
1995 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
1996 contents are now members of...
1997 (state_t): this structure.
1998 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
2001 2001-11-19 Akim Demaille <akim@epita.fr>
2003 * src/lalr.h (state_t): New.
2004 (state_table): Be a state_t * instead of a core **.
2005 (accessing_symbol): Remove, part of state_t.
2006 * src/lalr.c: Adjust.
2007 (set_accessing_symbol): Merge into...
2008 (set_state_table): this.
2009 * src/print_graph.c, src/conflicts.c: Adjust.
2011 2001-11-14 Akim Demaille <akim@epita.fr>
2013 * tests/calc.at, tests/output.at, tests/regression.at,
2014 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
2015 now the tests are run in private dirs, therefore AC_CLEANUP and
2016 family can be simplified to 0-ary.
2017 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
2018 use abs. path to find config.h.
2019 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
2020 stderr, there can be way too much random noise.
2021 Instead pass -Werror to GCC and rely on the exit status.
2022 Reported by Wolfram Wagner.
2024 2001-11-14 Akim Demaille <akim@epita.fr>
2026 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
2027 defined only if yyoverflow is defined, to avoid `warning: unused
2029 Reported by The Test Suite.
2031 2001-11-14 Akim Demaille <akim@epita.fr>
2033 * src/print.c: Include reduce.h.
2034 Reported by Hans Aberg.
2036 2001-11-14 Akim Demaille <akim@epita.fr>
2038 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
2039 Revert a previous patch: these are really const.
2040 * src/conflicts.c (conflict_report): Additional useless pair of
2041 braces to pacify GCC's warnings for `if () if () {} else {}'.
2042 * src/lex.c (parse_percent_token): Replace equal_offset with
2045 Be sure to strdup `arg' when used, since there is no reason for
2046 token_buffer not to change.
2048 2001-11-14 Akim Demaille <akim@epita.fr>
2050 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
2052 * src/main.c (main): Use them.
2053 Suggested by Hans Aberg.
2055 2001-11-12 Akim Demaille <akim@epita.fr>
2057 * src/system.h (ngettext): Now that we use ngettext, be sure to
2058 provide a default definition when NLS are not used.
2060 2001-11-12 Akim Demaille <akim@epita.fr>
2062 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
2063 Use @kbd to denote user input.
2064 (Language and Grammar): ANSIfy the example.
2065 Adjust its layout for info/notinfo.
2066 (Location Tracking Calc): Output error messages to stderr.
2067 Output locations in a more GNUtically correct way.
2068 Fix a couple of Englishos.
2069 Adjust @group/@end group pairs.
2071 2001-11-12 Akim Demaille <akim@epita.fr>
2073 %expext was not functioning at all.
2075 * src/conflicts.c (expected_conflicts): Set to -1.
2076 (conflict_report): Use ngettext.
2077 (conflicts_print): Check %expect and make its violation an error.
2078 * doc/bison.texinfo (Expect Decl): Adjust.
2079 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
2080 * tests/regression.at (%expect not enough, %expect right)
2081 (%expect too much): New.
2083 2001-11-12 Akim Demaille <akim@epita.fr>
2085 * tests/regression.at (Conflicts): Rename as...
2086 (Unresolved SR Conflicts): this.
2087 (Solved SR Conflicts): New.
2089 2001-11-12 Akim Demaille <akim@epita.fr>
2091 * src/reduce.c (print_results): Rename as...
2092 (reduce_output): This.
2093 Output to OUT, passed as argument, instead of output_obstack.
2094 (dump_grammar): Likewise.
2097 (reduce_grammar): No longer call reduce_output, since...
2098 * src/print.c (print_results): do it.
2099 * src/main.c (main): Call reduce_free;
2101 2001-11-12 Akim Demaille <akim@epita.fr>
2103 * src/conflicts.c (print_reductions): Accept OUT as argument.
2104 Output to it, not to output_obstack.
2105 * src/print.c (print_actions): Adjust.
2107 2001-11-12 Akim Demaille <akim@epita.fr>
2109 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
2110 the result instead of using...
2111 (src_total, rrc_total, src_count, rrc_count): Remove.
2112 (any_conflicts): Remove.
2113 (print_conflicts): Split into...
2114 (conflicts_print, conflicts_output): New.
2115 * src/conflicts.h: Adjust.
2116 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
2117 * src/print.c (print_grammar): Issue `\n' between two rules.
2118 * tests/regression.at (Conflicts): New.
2119 Reported by Tom Lane.
2121 2001-11-12 Akim Demaille <akim@epita.fr>
2123 * tests/regression.at (Invalid input): Remove, duplicate with
2124 ``Invalid input: 1''.
2126 2001-11-12 Akim Demaille <akim@epita.fr>
2128 * tests/torture.at (AT_DATA_STACK_TORTURE)
2129 (Exploding the Stack Size with Alloca)
2130 (Exploding the Stack Size with Malloc): New.
2132 2001-11-12 Akim Demaille <akim@epita.fr>
2134 * src/bison.simple (YYSTACK_REALLOC): New.
2135 (yyparse) [!yyoverflow]: Use it and free the old stack.
2136 Reported by Per Allansson.
2138 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
2140 * src/bison.simple: Define type yystype instead of YYSTYPE, and
2141 define CPP macro, which substitute YYSTYPE by yystype.
2142 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
2143 with yyltype/YYLTYPE. This allows inclusion of the generated
2144 header within the parser if the compiler, such as GGC, accepts
2145 multiple equivalent #defines.
2148 2001-11-05 Akim Demaille <akim@epita.fr>
2150 * src/reader.c (symbols_output): New, extracted from...
2151 (packsymbols): here.
2154 2001-11-05 Akim Demaille <akim@epita.fr>
2156 * src/lex.c (parse_percent_token): s/quotearg/quote/.
2158 2001-11-05 Akim Demaille <akim@epita.fr>
2160 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
2163 2001-11-05 Akim Demaille <akim@epita.fr>
2165 * src/options.h (struct option_table_struct): set_flags is void*.
2166 * src/options.c (longopts): Support `--output' and `%output'.
2168 * src/lex.h (tok_setopt): Remove, replaced with...
2169 (tok_intopt, tok_stropt): these new guys.
2170 * src/lex.c (getopt.h): Not needed.
2171 (token_buffer, unlexed_token_buffer): Not const.
2172 (percent_table): Promote `-' over `_' in directive names.
2173 Active `%name-prefix', `file-prefix', and `output'.
2174 (parse_percent_token): Accept possible arguments to directives.
2175 Promote `-' over `_' in directive names.
2177 2001-11-04 Akim Demaille <akim@epita.fr>
2179 * doc/bison.texinfo (Decl Summary): Split the list into
2180 `directives for grammars' and `directives for bison'.
2182 Add description of `%name-prefix', `file-prefix', and `output'.
2183 Promote `-' over `_' in directive names.
2184 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
2185 Simplify the description of `--name-prefix'.
2186 Promote `-' over `_' in directive names.
2187 Promote `--output' over `--output-file'.
2188 Fix the description of `--defines'.
2189 * tests/output.at: Exercise %file-prefix and %output.
2191 2001-11-02 Akim Demaille <akim@epita.fr>
2193 * doc/refcard.tex: Update.
2195 2001-11-02 Akim Demaille <akim@epita.fr>
2197 * src/symtab.h (SUNDEF): New.
2198 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
2199 stand for `uninitialized', instead of 0.
2200 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
2201 * src/lex.c (lex): Adjust.
2203 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
2205 Let yylex return it instead of a plain 0.
2206 Reported by Dick Streefland.
2208 2001-11-02 Akim Demaille <akim@epita.fr>
2210 * tests/regression.at (Mixing %token styles): New test.
2212 2001-11-02 Akim Demaille <akim@epita.fr>
2214 * src/reader.c (parse_thong_decl): Formatting changes.
2215 (token_translations_init): New, extracted from...
2216 (packsymbols): Here.
2219 2001-11-01 Akim Demaille <akim@epita.fr>
2221 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
2222 Check that `9foo.y' produces correct cpp guards.
2223 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
2227 2001-11-01 Akim Demaille <akim@epita.fr>
2229 * tests/regression.at (Invalid input: 2): New.
2230 * src/lex.c (unlexed_token_buffer): New.
2231 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
2235 2001-11-01 Akim Demaille <akim@epita.fr>
2237 * tests/calc.at: Catch up with 1.30.
2238 * configure.in: Bump to 1.49a.
2239 Adjust to newer Autotest.
2241 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
2243 * src/conflicts.c: Move global variables rrc_total and src_total ...
2244 (print_conflicts): here.
2245 * src/output.c (output): Free global variable user_toknums.
2246 * src/lex.c (token_obstack): Become static.
2248 2001-10-18 Akim Demaille <akim@epita.fr>
2250 * tests/atlocal.in (GCC): Add.
2251 * tests/calc.at: s/m4_match/m4_bmatch/.
2252 s/m4_patsubst/m4_bpatsubst/.
2253 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
2254 * configure.in: AC_SUBST(GCC).
2256 2001-10-14 Marc Autret <autret_m@epita.fr>
2258 * src/options.c (create_long_option_table): Fix.
2260 2001-10-10 Akim Demaille <akim@epita.fr>
2262 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
2264 2001-10-04 Akim Demaille <akim@epita.fr>
2266 * src/reader.c (parse_union_decl): Push the caracters in
2267 union_obstack, not attrs_obstack.
2269 2001-10-04 Akim Demaille <akim@epita.fr>
2271 Merge in the branch 1.29.
2273 * src/reader.c (packsymbols): Use a temporary obstack for
2274 `%%tokendef', since output_stack is already used elsewhere.
2276 2001-10-02 Akim Demaille <akim@epita.fr>
2280 2001-10-02 Akim Demaille <akim@epita.fr>
2284 2001-10-02 Akim Demaille <akim@epita.fr>
2286 * tests/regression.at (Invalid CPP headers): New.
2287 From Alexander Belopolsky.
2288 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
2290 2001-10-02 Akim Demaille <akim@epita.fr>
2292 * tests/regression.at (Invalid input): New.
2293 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
2296 2001-10-02 Akim Demaille <akim@epita.fr>
2298 * tests/calc.at: Now that --debug works, the tests must be adjusted.
2300 2001-10-02 Akim Demaille <akim@epita.fr>
2302 * src/output.c (output_parser): Assert `skeleton'.
2303 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
2307 2001-10-01 Marc Autret <autret_m@epita.fr>
2309 * src/lex.h: Echo modifications.
2310 * src/lex.c (unlex): Parameter is now token_t.
2313 2001-10-01 Marc Autret <autret_m@epita.fr>
2315 * src/main.c: Include lex.h.
2318 2001-09-29 Akim Demaille <akim@epita.fr>
2320 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
2322 2001-09-28 Akim Demaille <akim@epita.fr>
2324 * tests/testsuite.at: Update to newer Autotest.
2325 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
2327 2001-09-27 Akim Demaille <akim@epita.fr>
2329 Position independent wrapper.
2331 * tests/bison: Remove.
2332 * tests/bison.in: New.
2333 * configure.in: Adjust.
2335 2001-09-27 Paul Eggert <eggert@twinsun.com>
2337 Port quotearg fixes from tar 1.13.24.
2339 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
2341 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
2342 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
2344 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
2345 * m4/mbrtowc.m4: New file.
2346 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
2347 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
2349 2001-09-27 Akim Demaille <akim@epita.fr>
2353 2001-09-27 Akim Demaille <akim@epita.fr>
2357 2001-09-25 Akim Demaille <akim@epita.fr>
2359 * src/system.h: Include `xalloc.h'.
2360 Remove it from the C files.
2361 * src/files.c (output_files): Free the obstacks.
2362 * src/lex.c (init_lex): Rename as...
2365 * src/main.c (main): Use it.
2367 2001-09-24 Marc Autret <autret_m@epita.fr>
2369 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
2370 to output informations in fout (FILE*).
2371 (open_graph, close_graph): Likewise.
2372 (output_graph, output_edge, output_node): Likewise.
2373 * src/vcg.h: Update function prototypes.
2374 * src/print_graph.c (print_graph): Open output graph file.
2375 (print_actions): Adjust.
2376 * src/files.h: Remove extern declaration.
2377 * src/files.c: Remove graph_obstack declaration.
2378 (open_files): Remove graph_obstack initialization.
2379 (output_files): Remove graph_obstack saving.
2381 2001-09-24 Marc Autret <autret_m@epita.fr>
2383 * src/files.c (compute_output_file_names): Fix.
2385 2001-09-24 Marc Autret <autret_m@epita.fr>,
2386 Akim Demaille <akim@epita.fr>
2388 * src/reader.c (reader): Remove call to free_symtab ().
2389 * src/main.c (main): Call it here.
2391 * src/conflicts.c (initialize_conflicts): Rename as...
2392 (solve_conflicts): this.
2393 * src/print.c (print_core, print_actions, print_state)
2394 (print_grammar): Dump to a file instead a `output_obstack'.
2395 (print_results): Dump `output_obstack', and then proceed with the
2397 * src/files.c (compute_output_file_names, close_files): New.
2398 (output_files): Adjust.
2399 * src/main.c (main): Adjust.
2401 2001-09-23 Marc Autret <autret_m@epita.fr>
2403 * src/files.c (compute_header_macro): Computes header macro name
2404 from spec_defines_file when given.
2406 2001-09-23 Marc Autret <autret_m@epita.fr>
2408 * src/files.c (output_files): Add default extensions.
2410 2001-09-22 Akim Demaille <akim@epita.fr>
2412 * src/conflicts.c (finalize_conflicts): Rename as...
2413 (free_conflicts): this.
2415 2001-09-22 Akim Demaille <akim@epita.fr>
2417 * src/gram.c (gram_free): Rename back as...
2419 (output_token_translations): Free `token_translations'.
2420 * src/symtab.c (free_symtab): Free the tag field.
2422 2001-09-22 Akim Demaille <akim@epita.fr>
2424 Remove `translations' as it is always set to true.
2426 * src/gram.h: Adjust.
2427 * src/reader.c (packsymbols, parse_token_decl): Adjust
2428 * src/print.c (print_grammar): Adjust.
2429 * src/output.c (output_token_translations): Adjust.
2430 * src/lex.c (lex): Adjust.
2431 * src/gram.c: Be sure the set pointers to NULL.
2432 (dummy): Rename as...
2435 2001-09-22 Akim Demaille <akim@epita.fr>
2437 * configure.in: Invoke AM_LIB_DMALLOC.
2438 * src/system.h: Use dmalloc.
2439 * src/LR0.c: Be sure to have pointers initialized to NULL.
2440 (allocate_itemsets): Allocate kernel_items only if needed.
2442 2001-09-22 Akim Demaille <akim@epita.fr>
2444 * configure.in: Bump to 1.29b.
2445 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
2446 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
2447 need xmalloc.c in calc.y.
2450 2001-09-21 Akim Demaille <akim@epita.fr>
2453 * Makefile.maint, config/config.guess, config/config.sub,
2454 * config/missing: Update from masters.
2455 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
2457 * configure.in (ALL_LINGUAS): Add `tr'.
2459 2001-09-21 Akim Demaille <akim@epita.fr>
2461 * tests/Makefile.am (package.m4): Move to...
2462 ($(srcdir)/$(TESTSUITE)): here.
2464 2001-09-20 Akim Demaille <akim@epita.fr>
2466 * src/complain.c: No longer try to be standalone: use system.h.
2467 Don't assume __STDC__ is defined to 1. Just test if it is defined.
2468 * src/complain.h: Likewise.
2469 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
2470 Remove the unused variable `n'.
2471 From Albert Chin-A-Young.
2473 2001-09-18 Marc Autret <autret_m@epita.fr>
2475 * doc/bison.1: Update.
2476 * doc/bison.texinfo (Bison Options): Update --defines and --graph
2478 (Option Cross Key): Update.
2481 2001-09-18 Marc Autret <autret_m@epita.fr>
2483 * tests/regression.at: New test (comment in %union).
2485 2001-09-18 Marc Autret <autret_m@epita.fr>
2487 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
2489 Reported by Keith Browne.
2491 2001-09-18 Marc Autret <autret_m@epita.fr>
2493 * tests/output.at: Add tests for --defines and --graph.
2495 2001-09-18 Marc Autret <autret_m@epita.fr>
2497 * tests/output.at: Removes tests of %{header,src}_extension features.
2499 2001-09-18 Akim Demaille <akim@epita.fr>
2501 * tests/Makefile.am (package.m4): New.
2502 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
2503 (_AT_CHECK_CALC_ERROR): Likewise.
2504 Factor the `, ' part of verbose error messages.
2506 2001-09-18 Marc Autret <autret_m@epita.fr>
2508 * src/getargs.c (longopts): Declare --defines and --graph as options
2509 with optional arguments.
2510 * src/files.h: Add extern declarations.
2511 * src/files.c (spec_graph_file, spec_defines_file): New.
2512 (output_files): Update.
2513 Remove CPP-outed code.
2515 2001-09-18 Marc Autret <autret_m@epita.fr>
2517 Turn off %{source,header}_extension feature.
2519 * src/files.c (compute_exts_from_gf): Update.
2520 (compute_exts_from_src): Update.
2521 (output_files): CPP-out useless code.
2522 * src/files.h: Remove {header,source}_extension extern declarations.
2523 * src/reader.c (parse_dquoted_param): CPP-out.
2524 (parse_header_extension_decl): Remove.
2525 (parse_source_extension_decl): Remove.
2526 (read_declarations): Remove cases tok_{hdrext,srcext}.
2527 * src/lex.c (percent_table): Remove {header,source}_extension entries.
2528 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
2530 2001-09-10 Akim Demaille <akim@epita.fr>
2532 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
2533 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
2534 (AT_CHECK_OUTPUT): this.
2535 Merely check ls' exit status, its output is useless.
2537 2001-09-10 Akim Demaille <akim@epita.fr>
2539 * tests/calc.at: Use m4_match.
2540 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
2542 2001-09-10 Marc Autret <autret_m@epita.fr>,
2543 Akim Demaille <akim@epita.fr>
2545 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
2547 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
2549 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
2550 * src/lex.h: Adjust prototype.
2551 (token_t): Add `tok_undef'.
2552 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
2553 (parse_percent_token): Now returns token_t.
2554 Add default statement in switch.
2555 (lex): Separate `c' as an input variable, from the token_t result
2557 (unlexed): Is a token_t.
2559 2001-09-10 Akim Demaille <akim@epita.fr>
2561 * configure.in: Bump to 1.29a.
2563 2001-09-07 Akim Demaille <akim@epita.fr>
2567 2001-08-30 Akim Demaille <akim@epita.fr>
2569 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
2570 * m4/atconfig.m4: Remove.
2571 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
2573 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
2574 m4_if, m4_patsubst, and m4_regexp.
2575 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
2576 `input' file instead of echo.
2578 2001-08-29 Akim Demaille <akim@epita.fr>
2582 2001-08-29 Akim Demaille <akim@epita.fr>
2586 2001-08-29 Paul Eggert <eggert@twinsun.com>
2588 * src/bison.simple (yyparse): Don't take the address of an
2589 item before the start of an array, as that doesn't conform to
2592 2001-08-29 Robert Anisko <anisko_r@epita.fr>
2594 * doc/bison.texinfo (Location Tracking Calc): New node.
2596 2001-08-29 Paul Eggert <eggert@twinsun.com>
2598 * src/output.c (output): Do not define const, as this now
2599 causes more problems than it cures.
2601 2001-08-29 Akim Demaille <akim@epita.fr>
2603 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
2605 Be sure to tag the `detailmenu'.
2607 2001-08-29 Akim Demaille <akim@epita.fr>
2609 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
2610 download in a tmp dir.
2612 2001-08-28 Marc Autret <autret_m@epita.fr>
2614 * config/depcomp: New file.
2616 2001-08-28 Marc Autret <autret_m@epita.fr>
2618 * doc/bison.1 (mandoc): Adjust.
2619 From Juan Manuel Guerrero.
2621 2001-08-28 Marc Autret <autret_m@epita.fr>
2623 * src/print_graph.c (print_state): Fix.
2625 2001-08-27 Marc Autret <autret_m@epita.fr>
2627 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
2629 Echo modifications to the functions prototypes.
2630 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
2632 2001-08-27 Marc Autret <autret_m@epita.fr>
2634 * src/vcg.c: Include `xalloc.h'.
2635 (add_colorentry): New.
2636 (add_classname): New.
2637 (add_infoname): New.
2638 * src/vcg.h: Add new prototypes.
2640 2001-08-27 Akim Demaille <akim@epita.fr>
2642 * Makefile.maint: Sync. again with CVS Autoconf.
2644 2001-08-27 Akim Demaille <akim@epita.fr>
2646 * Makefile.maint: Formatting changes.
2647 (po-update, cvs-update, update): New targets.
2650 2001-08-27 Akim Demaille <akim@epita.fr>
2652 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2653 * Makefile.maint: Sync. with CVS Autoconf.
2655 2001-08-27 Marc Autret <autret_m@epita.fr>
2657 * src/vcg.h (struct infoname_s): New.
2658 (struct colorentry_s): New.
2659 (graph_s): New fields {vertical,horizontal}_order in structure.
2660 Add `infoname' field.
2661 Add `colorentry' field;
2662 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
2663 (G_HORIZONTAL_ORDER): New.
2665 (G_COLORENTRY): New.
2666 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
2667 Add output of `infoname'.
2668 Add output of `colorentry'.
2670 2001-08-27 Marc Autret <autret_m@epita.fr>
2672 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
2673 This one shadowed a global parameter.
2675 2001-08-24 Marc Autret <autret_m@epita.fr>
2677 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
2678 instead of `unsigned'.
2679 (print_state): Do not call obstack_object_size () in obstack_grow ()
2680 to avoid macro variables shadowing.
2682 2001-08-23 Marc Autret <autret_m@epita.fr>
2684 * src/lex.c (percent_table): Typo: s/naem/name/.
2686 Normalize new options declarations.
2688 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
2690 * tests/suite.at: Exercise %header_extension and %source_extension.
2692 2001-08-16 Marc Autret <autret_m@epita.fr>
2694 * src/reader.c (parse_dquoted_param): New.
2695 (parse_header_extension_decl): Use it.
2696 (parse_source_extension_decl): Likewise.
2698 2001-08-16 Marc Autret <autret_m@epita.fr>
2700 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
2701 (get_xxxx_str): Use assert () instead of complain ().
2702 Remove return invokations in default cases.
2703 (get_decision_str): Modify default behaviour. Remove second argument.
2704 Echo modifications on calls.
2705 (output_graph): Fix.
2707 2001-08-16 Marc Autret <autret_m@epita.fr>
2709 * src/getargs.c (usage): Update with ``-g, --graph''.
2711 2001-08-16 Marc Autret <autret_m@epita.fr>
2713 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
2714 (Option Cross Key): Likewise.
2715 * doc/bison.1: Update.
2717 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
2719 * src/output.c (output_master_parser): Don't finish action_obstack.
2720 (output_parser): Don't care about the muscle action, here.
2721 (prepare): Copy the action_obstack in the action muscle.
2722 (output): Free action_obstack.
2724 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2726 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
2727 will contain `%union' declaration.
2728 (parse_union_decl): Delete #line directive output.
2729 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
2730 informations about %union.
2731 (parse_union_decl): Copy the union_obstack in the muscle stype.
2732 * src/bison.simple: Add new #line directive.
2733 Add typdef %%stype YYSTYPE.
2735 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2737 * src/bison.simple: Add new `#line' directive.
2739 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
2741 * src/bison.simple: New `#line' directive.
2742 * src/output.c (output_parser): Support new dynamic muscle input_line.
2744 2001-09-22 Marc Autret <autret_m@epita.fr>
2746 * src/output.c (output_master_parser): New.
2747 (output_parser): Be more re-entrant.
2749 2001-09-21 Marc Autret <autret_m@epita.fr>
2751 * src/reader.c (copy_definition, parse_union_decl): Update and use
2753 (copy_action): Likewise.
2754 Use obstack_1grow ().
2755 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
2757 2001-09-21 Marc Autret <autret_m@epita.fr>
2759 * src/options.c (option_table): Adjust.
2760 * src/lex.c (parse_percent_token): Fix.
2762 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2764 * src/options.c (symtab.h): Include it, need by lex.h.
2766 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2768 * src/lex.c (parse_percent_token): Change type of variable `tx', which
2769 is now an option_table_struct*.
2770 (option_strcmp): New function option_strcmp.
2771 (parse_percent_token): Call option_strcmp.
2772 * src/getargs.c (xalloc.h, options.h): Include it.
2773 (getargs): Call create_long_option_table.
2774 (getargs): Free longopts at the end of the function.
2775 (shortopts): Move in options.c.
2776 * src/options.c (create_long_option_table): New function. Convert
2777 information from option_table to option structure.
2778 * src/reader.c (options.h): Include it.
2780 * src/Makefile.am: Adjust.
2781 * src/options.c (option_table): Create from longopts and percent_table.
2782 * src/getargs.c (longopts): Delete.
2783 * src/lex.c (struct percent_table_struct): Delete.
2784 (percent_table): Delete.
2785 (options.h): Include it.
2786 * src/options.c: Create.
2787 * src/options.h: Create.
2788 Declare enum opt_access_e.
2789 Define struct option_table_struct.
2791 2001-09-20 Marc Autret <autret_m@epita.fr>
2793 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
2796 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
2798 * src/bison.simple: s/%%filename/%%skeleton.
2799 * src/muscle_tab.c (getargs.h): Include it.
2800 (muscle_init): Insert new muscle skeleton.
2802 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
2804 * src/output.c (output_parser): Delete unused variable actions_dumped.
2806 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
2808 * src/output.c (output): Delete call to reader_output_yylsp.
2809 * src/reader.c (reader): Likewise.
2810 * src/reader.h: Delete declaration of reader_output_yylsp.
2812 2001-09-02 Marc Autret <autret_m@epita.fr>
2814 * src/reader.c: Include muscle_tab.h.
2815 (parse_union_decl): Update.
2816 (parse_macro_decl): Rename parse_muscle_decl.
2817 Update to use renamed functions and variable.
2818 (read_declarations, copy_action, read_additionnal_code, : Updated
2819 with correct variables and functions names.
2820 (packsymbols, reader): Likewise.
2822 * src/reader.h (muscle_obstack): Extern declaration update.
2824 * src/output.c: Include muscle_tab.h
2825 In all functions using macro_insert, change by using muscle_insert ().
2826 (macro_obstack): Rename muscle_obstack.
2827 Echo modifications in the whole file.
2828 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
2829 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
2830 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
2832 * src/muscle_tab.h: Update double inclusion macros.
2833 (macro_entry_s): Rename muscle_entry_s.
2836 * src/muscle_tab.c: Include muscle_tab.h.
2837 Rename macro_tabble to muscle_table.
2838 (mhash1, mhash2, mcmp): Use muscle_entry.
2839 (macro_init): Rename muscle_init. Update.
2840 (macro_insert): Rename muscle_insert. Update.
2841 (macro_find): Rename muscle_find. Update.
2843 * src/main.c: Include muscle_tab.h.
2844 (main): Call muscle_init ().
2845 * src/Makefile.am (bison_SOURCES): Echo modifications.
2847 2001-09-02 Marc Autret <autret_m@epita.fr>
2849 Now the files macro_tab.[ch] are named muscle_tab.[ch].
2851 * src/muscle_tab.c, src/muscle_tab.h: Add files.
2853 2001-09-02 Marc Autret <autret_m@epita.fr>
2855 * src/macrotab.c, src/macrotab.h: Remove.
2857 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
2859 * src/reader.c (copy_guard): Use muscle to specify the `#line'
2862 2001-09-01 Marc Autret <autret_m@epita.fr>
2864 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
2865 to an explicit value to activate the feature. We do it here.
2867 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2869 * src/output.c (prepare): Delete the `filename' muscule insertion.
2870 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
2871 (parse_union_decl): Likewise.
2872 * src/macrotab.c (macro_init): Initialize filename by infile.
2874 2001-08-31 Marc Autret <autret_m@epita.fr>
2876 * src/bison.simple (YYLSP_NEEDED): New definition.
2877 * src/output.c (prepare): Add macro insertion of `locations_flag'
2879 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2881 * src/output.c (prepare): Delete insertion of previous muscles,
2882 and insert the `prefix' muscles.
2883 * src/macrotab.c (macro_init): Likewise.
2884 (macro_init): Initialization prefix directive by `yy'.
2885 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
2886 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
2887 yylval, yydebug, yyerror, yynerrs and yyparse.
2888 New directive `#define' to substitute yydebug, ... with option
2891 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2893 * src/main.c (main): Standardize.
2894 * src/output.c (output_table_data, output_parser): Likewise.
2895 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
2897 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
2899 * src/reader.c (read_additionnal_code): Rename %%user_code to
2901 * src/output.c (output): Rename %%declarations to %%prologue.
2902 * src/bison.simple: Echo modifications.
2904 2001-08-31 Marc Autret <autret_m@epita.fr>
2906 * src/reader.c (readgram): CleanUp.
2907 (output_token_defines): Likewise.
2908 (packsymbols): Likewise.
2910 * src/output.c (output): CPP-out useless code.
2912 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2914 * src/reader.c (reader): Delete obsolete call to function
2915 output_trailers and output_headers.
2916 * src/output.h: Remove obsolete functions prototypes of output_headers
2917 and output_trailers.
2919 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
2921 * src/main.c: Include macrotab.h.
2922 * src/macrotab.h (macro_entry_s): Constify fields.
2923 Adjust functions prototypes.
2924 * src/macrotab.c (macro_insert): Constify key and value.
2925 (macro_find): Constify key.
2926 (macro_insert): Include 'xalloc.h'
2927 (macro_insert): Use XMALLOC.
2928 (macro_find): Constify return value.
2929 * src/output.c (output_table_data): Rename table to table_data.
2930 (output_parser): Constify macro_key, macro_value.
2932 2001-08-30 Marc Autret <autret_m@epita.fr>
2934 * src/reader.c (parse_skel_decl): New.
2935 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2936 * src/lex.h (token_t): New token `tok_skel'.
2937 * src/lex.c (percent_table): Add skeleton option entry.
2940 2001-08-29 Marc Autret <autret_m@epita.fr>
2942 * src/bison.simple: Add %%user_code directive at the end.
2943 * src/reader.c (read_additionnal_code): New.
2945 * src/output.c (output_program): Remove.
2948 2001-08-28 Marc Autret <autret_m@epita.fr>
2950 * src/output.c (output_actions): Clean up.
2951 (output_gram): CPP-out useless code.
2952 * src/reader.c (reader): Clean up, CPP-out useless code.
2954 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
2956 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
2958 * src/bison.simple: Add `%%definitions'.
2960 2001-08-28 Marc Autret <autret_m@epita.fr>
2962 * config/depcomp: New file.
2964 2001-08-27 Paul Eggert <eggert@twinsun.com>
2966 * src/bison.simple (yyparse): Don't take the address of an
2967 item before the start of an array, as that doesn't conform to
2970 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
2972 * src/output.c (output): Remove the initialization of the macro
2973 obstack. It was done too late here.
2975 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
2977 (reader): Initialize the macro obstack here, since we need it to grow
2978 '%define' directives.
2980 * src/reader.h: Declare the macro obstack as extern.
2982 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
2984 * src/output.c (output_parser): Fix. Store single '%' characters in
2985 the output obstack instead of throwing them away.
2987 2001-08-27 Akim Demaille <akim@epita.fr>
2989 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2991 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2993 * lib/Makefile.am: Adjust.
2995 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2997 * src/bison.simple: Update and add '%%' directives.
2999 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3001 * src/reader.c (reader): Remove calls to 'output_headers' and
3002 'output_trailers'. Remove some C output.
3003 (readgram): Disable a piece of code that was writing a default
3004 definition for 'YYSTYPE'.
3005 (reader_output_yylsp): Remove.
3006 (packsymbols): Output token defintions to a macro.
3007 (copy_definition): Disable C output.
3009 * src/reader.c (parse_macro_decl): New function used to parse macro
3011 (copy_string2): Put the body of copy_string into this new function.
3012 Add a parameter to let the caller choose whether he wants to copy the
3013 string delimiters or not.
3014 (copy_string): Be a simple call to copy_string2 with the last argument
3016 (read_declarations): Add case for macro definition.
3017 (copy_identifier): New.
3018 (parse_macro_decl): Read macro identifiers using copy_identifier
3021 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3023 * src/output.c (prepare): Add prefixed names.
3024 (output_parser): Output semantic actions.
3025 (output_parser): Fix bug on '%%line' directives.
3027 * src/output.c (output_headers): Remove. The C code printed by this
3028 function should now be in the skeletons.
3029 (output_trailers): Remove.
3030 (output): Disable call to 'reader_output_yylsp'.
3031 (output_rule_data): Do not output tables to the table obstack.
3033 * src/output.c: Remove some C dedicated output.
3034 Improve the use of macro and output obstacks.
3035 (output_defines): Remove.
3037 * src/output.c (output_token_translations): Associate 'translate'
3038 table with a macro. No output to the table obstack.
3039 (output_gram): Same for 'rhs' and 'prhs'.
3040 (output_stos): Same for 'stos'.
3041 (output_rule_data): Same for 'r1' and 'r2'.
3042 (token_actions): Same for 'defact'.
3043 (goto_actions): Same for 'defgoto'.
3044 (output_base): Same for 'pact' and 'pgoto'.
3045 (output_table): Same for 'table'.
3046 (output_check): Same for 'check'.
3048 * src/output.c (output_table_data): New function.
3049 (output_short_table): Remove.
3050 (output_short_or_char_table): Remove.
3052 * src/output.c (output_parser): Replace most of the skeleton copy code
3053 with something new. Skeletons are now processed character by character
3054 rather than line by line, and Bison looks for '%%' macros. This is the
3055 first step in making Bison's output process (a lot) more flexible.
3056 (output_parser): Use the macro table.
3058 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3060 * src/main.c (main): Initialize the macro table.
3062 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3064 * src/lex.c (percent_table): Add tok_define.
3065 * src/lex.h: Add tok_define.
3067 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3069 * src/macrotab.c: New file.
3070 * src/macrotab.h: New file.
3071 * src/Makefile.am: Update.
3073 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3075 * lib/hash.c: New file.
3076 * lib/hash.h: New file.
3077 * lib/Makefile.am: Update.
3079 2001-08-15 Akim Demaille <akim@epita.fr>
3083 2001-08-15 Marc Autret <autret_m@epita.fr>
3085 * src/reader.c (readgram): Indent output macro YYSTYPE.
3086 (packsymbols): Likewise.
3087 (output_token_defines): Likewise.
3088 * src/files.c: Standardize.
3089 (compute_header_macro): New.
3090 (defines_obstack_save): New. Use compute_header_macro.
3091 (output_files): Update. Use defines_obstack_save.
3093 2001-08-15 Akim Demaille <akim@epita.fr>
3095 * doc/bison.texinfo (Table of Symbols): Document
3098 2001-08-15 Akim Demaille <akim@epita.fr>
3100 * missing: Update from CVS Automake.
3101 * config/config.guess, config/config.sub, config/texinfo.tex:
3102 Update from gnu.org.
3104 2001-08-15 Akim Demaille <akim@epita.fr>
3106 * Makefile.maint: Sync with CVS Autoconf.
3108 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
3110 * doc/bison.texinfo: Include GNU Free Documentation License from
3112 * doc/fdl.texi: Add to package.
3114 2001-08-14 Marc Autret <autret_m@epita.fr>
3116 Turn on %{source,header}_extension features.
3118 * src/lex.c (percent_table): Un-CPP out header_extension and
3120 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
3121 (compute_exts_from_src): Remove conditions. It restores priorities
3124 2001-08-14 Marc Autret <autret_m@epita.fr>
3126 * src/files.c (compute_base_names): Add extensions computing when
3127 `--file-prefix' used.
3128 Standardize function calls.
3130 2001-08-13 Marc Autret <autret_m@epita.fr>
3132 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
3133 defining it (defined but null disables alloca).
3135 2001-08-13 Marc Autret <autret_m@epita.fr>
3137 * src/bison.simple (_yy_memcpy): CPP reformat.
3139 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
3141 * tests/atconfig.in (CPPFLAGS): Fix.
3143 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
3145 * doc/bison.texinfo: Include GNU General Public License from
3147 * doc/gpl.texi: Add to package.
3149 2001-08-10 Marc Autret <autret_m@epita.fr>
3151 * src/print_graph.h: Fix.
3152 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
3154 2001-08-10 Akim Demaille <akim@epita.fr>
3156 * src/system.h: Provide default declarations for stpcpy, strndup,
3159 2001-08-10 Robert Anisko <anisko_r@epita.fr>
3161 * doc/bison.texinfo (Locations): Update @$ stuff.
3163 2001-08-09 Robert Anisko <anisko_r@epita.fr>
3165 * src/bison.simple (YYLLOC_DEFAULT): Update.
3168 2001-08-08 Marc Autret <autret_m@epita.fr>
3170 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
3171 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
3172 Reported by Fabrice Bauzac.
3174 2001-08-08 Marc Autret <autret_m@epita.fr>
3176 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
3177 * src/vcg.c (output_node): Fix.
3178 * src/vcg.h: Cleanup.
3179 * src/print_graph.c: Add comments.
3180 (node_output_size): New global variable. Simplify the formatting of
3181 the VCG graph output.
3182 (print_actions): Unused code is now used. It notifies the final state
3183 and no action states in the VCG graph. It also give the reduce actions.
3184 The `shift and goto' edges are red and the `go to state' edges are
3186 Get the current node name and node_obstack by argument.
3187 (node_obstack): New variable.
3188 (print_state): Manage node_obstack.
3189 (print_core): Use node_obstack given by argument.
3190 A node is not only computed here but in print_actions also.
3191 (print_graph): CPP out useless code instead of commenting it.
3193 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
3195 * tests/atconfig.in (CPPFLAGS): Fix.
3197 2001-08-07 Akim Demaille <akim@epita.fr>
3199 * src/print_graph.c (quote): New.
3200 (print_core): Use it.
3202 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3204 * src/vcg.c (complain.h): Include it.
3205 Unepitaize `return' invocations.
3206 [NDEBUG] (main): Remove.
3207 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
3208 * src/files.c (open_files): Initialize graph_obstack.
3209 * src/print_graph.c (print_actions): CPP out useless code.
3210 (print_core): Don't output the last `\n' in labels.
3212 * src/files.c (output_files): Output the VCG file.
3213 * src/main.c (main): Invoke print_graph ();
3215 2001-08-06 Marc Autret <autret_m@epita.fr>
3217 Automaton VCG graph output.
3218 Using option ``-g'' or long option ``--graph'', you can generate
3219 a gram_filename.vcg file containing a VCG description of the LALR (1)
3220 automaton of your grammar.
3222 * src/main.c: Call to print_graph() function.
3223 * src/getargs.h: Update.
3224 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
3225 (graph_flag): New flag.
3227 (getargs): Add case `g'.
3228 * src/files.c (graph_obstack): New obstack struct.
3229 (open_files): Initialize new obstack.
3230 (output_files): Saves graph_obstack if required.
3231 * src/files.h (graph_obstack): New extern declaration.
3232 * src/Makefile.am: Add new source files.
3234 2001-08-06 Marc Autret <autret_m@epita.fr>
3236 * src/print_graph.c, src/print_graph.h (graph): New.
3237 * src/vcg.h: New file.
3238 * src/vcg.c: New file, VCG graph handling.
3240 2001-08-06 Marc Autret <autret_m@epita.fr>
3242 Add of %source_extension and %header_extension which specify
3243 the source or/and the header output file extension.
3245 * src/files.c (compute_base_names): Remove initialisation of
3246 src_extension and header_extension.
3247 (compute_exts_from_gf): Update.
3248 (compute_exts_from_src): Update.
3249 (output_files): Update.
3250 * src/reader.c (parse_header_extension_decl): New.
3251 (parse_source_extension_decl): New.
3252 (read_declarations): New case statements for the new tokens.
3253 * src/lex.c (percent_table): Add entries for %source_extension
3254 and %header_extension.
3255 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
3257 2001-08-06 Marc Autret <autret_m@epita.fr>
3259 * configure.in: Bump to 1.28c.
3260 * doc/bison.texinfo: Texinfo thingies.
3262 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
3264 * tests/atconfig.in (CPPFLAGS): Add.
3265 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
3267 2001-08-03 Akim Demaille <akim@epita.fr>
3271 2001-08-03 Akim Demaille <akim@epita.fr>
3273 * tests/Makefile.am (check-local): Ship testsuite.
3274 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
3277 2001-08-03 Akim Demaille <akim@epita.fr>
3279 * configure.in: Try using -Wformat when compiling.
3281 2001-08-03 Akim Demaille <akim@epita.fr>
3283 * configure.in: Bump to 1.28b.
3285 2001-08-03 Akim Demaille <akim@epita.fr>
3287 * src/complain.c: Adjust strerror_r portability issues.
3289 2001-08-03 Akim Demaille <akim@epita.fr>
3293 2001-08-03 Akim Demaille <akim@epita.fr>
3295 * src/getargs.c, src/getarg.h (skeleton)): Constify.
3296 * src/lex.c (literalchar): Avoid name clashes on `buf'.
3297 * src/getargs.c: Include complain.h.
3298 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
3299 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
3301 2001-08-03 Akim Demaille <akim@epita.fr>
3303 * src/reader.c (readgram): Display hidden chars in error messages.
3305 2001-08-03 Akim Demaille <akim@epita.fr>
3307 Update to gettext 0.10.39.
3309 2001-08-03 Akim Demaille <akim@epita.fr>
3311 * lib/strspn.c: New.
3313 2001-08-01 Marc Autret <autret_m@epita.fr>
3315 * doc/bison.texinfo: Update.
3316 * doc/bison.1 (mandoc): Update.
3317 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
3318 * src/files.c: Support output files extensions computing.
3319 (src_extension): New static variable.
3320 (header_extension): New static variable.
3322 (get_extension_index): New function, gets the index of an extension
3323 filename in a string.
3324 (compute_exts_from_gf): New function, computes extensions from the
3325 grammar file extension.
3326 (compute_exts_from_src): New functions, computes extensions from the
3327 C source file extension, file given by ``-o'' option.
3328 (compute_base_names): Update.
3329 (output_files): Update.
3331 2001-08-01 Robert Anisko <anisko_r@epita.fr>
3333 * doc/bison.texi: Document @$.
3334 (Locations): New section.
3336 2001-07-18 Akim Demaille <akim@epita.fr>
3338 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
3339 * config/prev-version.txt, config/move-if-change: New.
3340 * Makefile.am: Adjust.
3342 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
3344 * src/bison.simple (yyparse): Suppress warning `comparaison
3345 between signed and unsigned'.
3347 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
3349 * src/getargs.h (raw_flag): Remove.
3350 * src/getargs.c: Die on `-r'/`--raw'.
3351 * src/lex.c (parse_percent_token): Die on `%raw'.
3352 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
3353 * tests/calc.at: Suppress test with option `--raw'.
3355 2001-07-14 Akim Demaille <akim@epita.fr>
3358 * configure.in: Require Autoconf 2.50.
3359 Update to gettext 0.10.38.
3361 2001-03-16 Akim Demaille <akim@epita.fr>
3363 * doc/bison.texinfo: ANSIfy the examples.
3365 2001-03-16 Akim Demaille <akim@epita.fr>
3367 * getargs.c (skeleton): New variable.
3368 (longopts): --skeleton is a new option.
3369 (shortopts, getargs): -S is a new option.
3370 * getargs.h: Declare skeleton.
3371 * output.c (output_parser): Use it.
3373 2001-03-16 Akim Demaille <akim@epita.fr>
3375 * m4/strerror_r.m4: New.
3376 * m4/error.m4: Run AC_FUNC_STRERROR_R.
3377 * lib/error.h, lib/error.c: Update.
3379 2001-03-16 Akim Demaille <akim@epita.fr>
3381 * src/getargs.c (longopts): Clean up.
3383 2001-02-21 Akim Demaille <akim@epita.fr>
3385 * src/reader.c (gensym): `gensym_count' is your own.
3386 Use a static buf to create the symbol name, as token_buffer is no
3389 2001-02-08 Akim Demaille <akim@epita.fr>
3391 * src/conflicts.c (conflict_report): Be sure not to append to res
3392 between two calls, which could happen if both first sprintf were
3393 skipped, but not the first cp += strlen.
3395 2001-02-08 Akim Demaille <akim@epita.fr>
3397 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
3398 New, from fileutils 4.0.37.
3399 * configure.in: Require Autoconf 2.49c. I took some time before
3400 making this decision. This is the only way out for portability
3401 issues in Bison, it would mean way too much duplicate effort to
3402 import in Bison features implemented in 2.49c since 2.13.
3403 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
3405 2001-02-02 Akim Demaille <akim@epita.fr>
3407 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
3408 * lib/xalloc.h, lib/xmalloc.c: Update.
3410 2001-01-19 Akim Demaille <akim@epita.fr>
3412 Get rid of the ad hoc handling of token_buffer in the scanner: use
3415 * src/lex.c (token_obstack): New.
3416 (init_lex): Initialize it. No longer call...
3417 (grow_token_buffer): this. Remove it.
3418 Adjust all the places which used it to use the obstack.
3420 2001-01-19 Akim Demaille <akim@epita.fr>
3422 * src/lex.h: Rename all the tokens:
3423 s/\bENDFILE\b/tok_eof/g;
3424 s/\bIDENTIFIER\b/tok_identifier/g;
3426 Let them be enums, not #define, to ease debugging.
3427 Adjust all the code.
3429 2001-01-18 Akim Demaille <akim@epita.fr>
3431 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
3432 * src/lex.c (maxtoken, grow_token_buffer): Static.
3434 2001-01-18 Akim Demaille <akim@epita.fr>
3436 Since we now use obstacks, more % directives can be enabled.
3438 * src/lex.c (percent_table): Also accept `%yacc',
3439 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
3441 Handle the actions for `%semantic_parser' and `%pure_parser' here,
3442 instead of returning a token.
3443 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
3444 * src/reader.c (read_declarations): Adjust.
3445 * src/files.c (open_files): Don't call `compute_base_names', don't
3446 compute `attrsfile' since they depend upon data which might be
3447 *in* the input file now.
3448 (output_files): Do it here.
3449 * src/output.c (output_headers): Document the fact that this patch
3450 introduces a guaranteed SEGV for semantic parsers.
3451 * doc/bison.texinfo: Document them.
3452 * tests/suite.at: Exercise these %options.
3454 2000-12-20 Akim Demaille <akim@epita.fr>
3456 Also handle the output file (--verbose) with obstacks.
3458 * files.c (foutput): Remove.
3459 (output_obstack): New.
3460 Adjust all dependencies.
3461 * src/conflicts.c: Return a string.
3462 * src/system.h (obstack_grow_string): Rename as...
3463 (obstack_sgrow): this. Be ready to work with non literals.
3464 (obstack_fgrow4): New.
3466 2000-12-20 Akim Demaille <akim@epita.fr>
3468 * src/files.c (open_files): Fix the computation of short_base_name
3469 in the case of `-o foo.tab.c'.
3471 2000-12-20 Akim Demaille <akim@epita.fr>
3473 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
3474 (copy_dollar): Now that everything uses obstacks, get rid of the
3477 2000-12-20 Akim Demaille <akim@epita.fr>
3479 * src/files.c (open_files): Actually the `.output' file is based
3480 on the short_base_name, not base_name.
3481 * tests/suite.at (Checking output file names): Adjust.
3483 2000-12-20 Akim Demaille <akim@epita.fr>
3485 * src/bison.s1: Remove, we now use directly...
3486 * src/bison.simple: this.
3487 * src/Makefile.am: Use pkgdata instead of data.
3489 2000-12-20 Akim Demaille <akim@epita.fr>
3491 * src/files.c (guard_obstack): New.
3492 (open_files): Initialize it.
3493 (output_files): Dump it...
3494 * src/files.h: Export it.
3495 * src/reader.c (copy_guard): Use it.
3497 2000-12-19 Akim Demaille <akim@epita.fr>
3499 * src/files.c (outfile, defsfile, actfile): Removed as global
3501 (open_files): Don't compute them.
3502 (output_files): Adjust.
3503 (base_name, short_base_name): Be global.
3504 Adjust dependencies.
3506 2000-12-19 Akim Demaille <akim@epita.fr>
3508 * src/files.c (strsuffix): New.
3509 (stringappend): Be just like strcat but allocate.
3510 (base_names): Eve out from open_files.
3511 Try to simplify the rather hairy computation of base_name and
3513 (open_files): Use it.
3514 * tests/suite.at (Checking output file names): New test.
3516 2000-12-19 Akim Demaille <akim@epita.fr>
3518 * src/system.h (obstack_grow_literal_string): Rename as...
3519 (obstack_grow_string): this.
3520 * src/output.c (output_parser): Recognize `%% actions' instead of
3522 * src/bison.s1: s/$/%% actions/.
3523 * src/bison.hairy: Likewise.
3525 2000-12-19 Akim Demaille <akim@epita.fr>
3527 * src/output.c (output_parser): Compute the `#line' lines when
3529 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
3530 Suggested by Hans Aberg.
3532 2000-12-19 Akim Demaille <akim@epita.fr>
3534 Let the handling of the skeleton files be local to the procedures
3537 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
3539 (fparser, open_extra_files): Remove.
3540 (open_files, output_files): Don't take care of fparser.
3541 * src/files.h: Adjust.
3542 * src/output.c (output_parser): Open and close the file to the
3544 * src/reader.c (read_declarations): When %semantic_parser, open
3547 2000-12-19 Akim Demaille <akim@epita.fr>
3549 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
3550 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
3552 2000-12-19 Akim Demaille <akim@epita.fr>
3554 * src/files.c (open_files): Yipee! We no longer need all the code
3555 looking for `/tmp' since we have no tmp file.
3557 2000-12-19 Akim Demaille <akim@epita.fr>
3559 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
3561 * src/files.c (open_files): Less dependency on MSDOS etc.
3563 2000-12-14 Akim Demaille <akim@epita.fr>
3565 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
3566 Provide a default definition.
3567 Use it when executing the default @ action.
3568 * src/reader.c (reader_output_yylsp): No longer include
3569 `timestamp' and `text' in the default YYLTYPE.
3571 2000-12-12 Akim Demaille <akim@epita.fr>
3573 * src/reader.c (copy_definition, parse_union_decl, copy_action)
3574 (copy_guard): Quote the file names.
3575 Reported by Laurent Mascherpa.
3577 2000-12-12 Akim Demaille <akim@epita.fr>
3579 * src/output.c (output_headers, output_program, output): Be sure
3580 to escape special characters when outputting filenames.
3581 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
3582 (output_headers): Don't depend on them, Use ACTSTR.
3584 2000-11-17 Akim Demaille <akim@epita.fr>
3586 * lib/obstack.h: Formatting changes.
3587 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
3588 prevents type checking.
3589 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
3590 cast the value to (void *): assigning a `foo *' to a `void *'
3592 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
3593 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
3596 2000-11-17 Akim Demaille <akim@epita.fr>
3598 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
3600 (suite.m4, regression.m4, calc.m4): these.
3601 * tests/atgeneral.m4: Update from CVS Autoconf.
3603 2000-11-17 Akim Demaille <akim@epita.fr>
3605 * tests/regression.m4 (%union and --defines): New test,
3606 demonstrating a current bug in the obstack implementation.
3608 2000-11-17 Akim Demaille <akim@epita.fr>
3610 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
3612 Use them to declare the variables which are global or local to
3615 2000-11-17 Akim Demaille <akim@epita.fr>
3617 * acconfig.h: Remove, no longer used.
3619 2000-11-07 Akim Demaille <akim@epita.fr>
3621 * src: s/Copyright (C)/Copyright/g.
3623 2000-11-07 Akim Demaille <akim@epita.fr>
3625 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
3627 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
3629 2000-11-07 Akim Demaille <akim@epita.fr>
3631 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
3632 Merge in a single CPP if/else.
3634 2000-11-07 Akim Demaille <akim@epita.fr>
3636 * src/output.c (output): Remove useless variables.
3637 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
3638 argument `data' for consistency with the prototypes.
3640 (obstack_copy, obstack_copy0): Rename the second argument as
3641 `address' for consistency. Qualify it `const'.
3642 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
3643 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
3644 `const' their input argument (`data' or `address').
3645 Adjust the corresponding macros to include `const' in casts.
3647 2000-11-03 Akim Demaille <akim@epita.fr>
3649 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
3650 s/PFILE1/BISON_HAIRY/.
3651 Adjust dependencies.
3653 2000-11-03 Akim Demaille <akim@epita.fr>
3655 For some reason, this was not applied.
3657 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3658 `unlink': it's no longer used.
3660 2000-11-03 Akim Demaille <akim@epita.fr>
3662 * src/files.c (skeleton_find): New function, eved out of...
3663 (open_files, open_extra_files): here.
3665 2000-11-03 Akim Demaille <akim@epita.fr>
3669 * src/files.c (obstack_save): New function.
3670 (done): Rename as...
3671 (output_files): this.
3673 * src/main.c (main): Don't use `atexit' to register `done', since
3674 it no longer has to remove tmp files, just call `output_files'
3675 when there are no errors.
3677 2000-11-02 Akim Demaille <akim@epita.fr>
3679 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3680 `unlink': it's no longer used.
3681 * src/files.h: Formatting changes.
3683 2000-11-02 Akim Demaille <akim@epita.fr>
3685 Remove the last uses of mktemp and unlink/delete.
3687 * src/files.c (fdefines, ftable): Removed.
3688 (defines_ostack, table_obstack): New.
3689 Adjust dependencies of the former into uses of the latter.
3690 * src/output.c (output_short_or_char_table, output_short_table):
3691 Convert to using obstacks.
3692 * src/reader.c (copy_comment2): Accept one FILE * and two
3694 (output_token_defines, reader_output_yylsp): Use obstacks.
3695 * src/system.h (obstack_fgrow3): New.
3697 2000-11-01 Akim Demaille <akim@epita.fr>
3699 Change each use of `fattrs' into a use of `attrs_obstack'.
3701 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
3702 * src/files.c (fattrs): Remove.
3703 (attrs_obstack): New.
3704 Adjust all dependencies.
3705 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
3707 2000-11-01 Akim Demaille <akim@epita.fr>
3710 Change each use of `faction' into a use of `action_obstack'.
3712 * lib/obstack.h, lib/obstack.c: New files.
3713 * src/files.c (faction): Remove.
3714 (action_obstack): New.
3715 Adjust all dependencies.
3717 2000-10-20 Akim Demaille <akim@epita.fr>
3719 * lib/quote.h (PARAMS): New macro. Use it.
3721 2000-10-16 Akim Demaille <akim@epita.fr>
3723 * src/output.c (output_short_or_char_table): New function.
3724 (output_short_table, output_token_translations): Use it.
3725 (goto_actions): Use output_short_table.
3727 2000-10-16 Akim Demaille <akim@epita.fr>
3729 * src/symtab.c (bucket_new): New function.
3732 * src/output.c (output_short_table): New argument to display the
3733 comment associated with the table.
3734 Adjust dependencies.
3735 (output_gram): Use it.
3736 (output_rule_data): Nicer output layout for YYTNAME.
3738 2000-10-16 Akim Demaille <akim@epita.fr>
3740 * src/lex.c (read_typename): New function.
3742 * src/reader.c (copy_dollar): Likewise.
3744 2000-10-16 Akim Demaille <akim@epita.fr>
3746 * src/reader.c (copy_comment2): Expect the input stream to be on
3747 the `/' which is suspected to open a comment, instead of being
3748 called after `//' or `/*' was read.
3749 (copy_comment, copy_definition, parse_union_decl, copy_action)
3750 (copy_guard): Adjust.
3752 2000-10-16 Akim Demaille <akim@epita.fr>
3754 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
3755 `read_signed_integer'.
3757 2000-10-16 Akim Demaille <akim@epita.fr>
3759 * src/reader.c (copy_dollar): New function.
3760 (copy_guard, copy_action): Use it.
3762 2000-10-16 Akim Demaille <akim@epita.fr>
3764 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
3765 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
3766 New files, from Fileutils 4.0.27.
3767 * src/main.c (printable_version): Remove.
3768 * src/lex.c, src/reader.c: Use `quote'.
3770 2000-10-04 Akim Demaille <akim@epita.fr>
3772 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
3774 2000-10-04 Akim Demaille <akim@epita.fr>
3776 * doc/bison.texinfo: Various typos spotted by Neil Booth.
3778 2000-10-04 Akim Demaille <akim@epita.fr>
3780 When a literal string is used to define two different tokens,
3781 `bison -v' segfaults.
3782 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
3784 * tests/regression.m4: New file.
3785 Include the core of the sample provided by Piotr Gackiewicz.
3786 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
3789 2000-10-04 Akim Demaille <akim@epita.fr>
3791 * src/reader.c (parse_expect_decl): Keep `count' within the size
3795 2000-10-02 Paul Eggert <eggert@twinsun.com>
3797 * bison.s1 (yyparse): Assign the default value
3798 unconditionally, to avoid a GCC warning and make the parser a
3801 2000-10-02 Akim Demaille <akim@epita.fr>
3803 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
3806 2000-10-02 Akim Demaille <akim@epita.fr>
3808 * src/derives.c, src/print.c, src/reduce.c: To ease the
3809 translation, move some `\n' out of the translated strings.
3811 2000-10-02 Akim Demaille <akim@epita.fr>
3813 The location tracking mechanism is precious for parse error
3814 messages. Nevertheless, it is enabled only when `@n' is used in
3815 the grammar, which is a different issue (you can use it in error
3816 message, but not in the grammar per se). Therefore, there should
3817 be another means to enable it.
3819 * src/getargs.c (getargs): Support `--locations'.
3821 * src/getargs.h (locationsflag): Export it.
3822 * src/lex.c (percent_table): Support `%locations'.
3823 * src/reader.c (yylsp_needed): Remove this variable, now replaced
3824 with `locationsflag'.
3825 * doc/bison.texinfo: Document `--locations' and `%locations'.
3827 * tests/calc.m4: Test it.
3829 For regularity of the names, replace each
3830 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
3831 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
3832 In addition replace each `flag' with `_flag'.
3834 2000-10-02 Akim Demaille <akim@epita.fr>
3836 Also test parse error messages, including with YYERROR_VERBOSE.
3838 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
3840 Use it to check the computations.
3841 Use it to check `nonassoc' is honored.
3842 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
3843 `--yyerror-verbose'.
3844 (_AT_CHECK_CALC): Adjust to this option.
3845 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
3847 2000-10-02 Akim Demaille <akim@epita.fr>
3849 Test also `--verbose', `--defines' and `--name-prefix'. Testing
3850 the latter demonstrates a flaw in the handling of non debugging
3851 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
3852 was used in order to simplify:
3868 unfortunately this leads to a CPP conflict when
3869 `--name-prefix=foo' is used since it produces `#define yydebug
3872 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
3873 (YYDPRINTF): New macro.
3875 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
3877 Also test `--verbose', `--defines' and `--name-prefix'.
3879 2000-10-02 Akim Demaille <akim@epita.fr>
3881 Improve the readability of the produced parsers.
3883 * src/bison.s1: Formatting changes.
3884 Improve the comment related to the `$' mark.
3885 (yydefault): Don't fall through to `yyresume': `goto' there.
3886 * src/output.c (output_parser): When the `$' is met, skip the end
3888 New variable, `number_of_dollar_signs', to check there's exactly
3889 one `$' in the parser skeleton.
3891 2000-10-02 Akim Demaille <akim@epita.fr>
3893 * lib/xstrdup.c: New file, from the fileutils.
3894 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
3895 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
3896 instead of strlen + xmalloc + strcpy.
3897 * src/symtab.c (copys): Remove, use xstrdup instead.
3899 2000-10-02 Akim Demaille <akim@epita.fr>
3901 * src/gram.h (associativity): New enum type which replaces the
3902 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
3903 `right_assoc', `left_assoc' and `non_assoc'.
3904 Adjust all dependencies.
3905 * src/reader.c: Formatting changes.
3906 (LTYPESTR): Don't define it, use it as a literal in
3907 `reader_output_yylsp'.
3908 * src/symtab.h (symbol_class): New enum type which replaces the
3909 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
3910 `sunknown', `stoken and `snterm'.
3912 2000-10-02 Akim Demaille <akim@epita.fr>
3914 * src/getargs.c (fixed_outfiles): Rename as...
3915 (yaccflag): for consistency and accuracy.
3916 Adjust dependencies.
3918 2000-10-02 Akim Demaille <akim@epita.fr>
3920 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
3921 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
3922 difficult and introduced a lot of core dump. It turns out that
3923 Bison used an implementation of `xmalloc' based on `calloc', and
3924 at various places it does depend upon the initialization to 0. I
3925 have not tried to isolate the pertinent places, and all the former
3926 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
3927 someone should address this issue.
3929 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
3930 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
3932 Adjust dependencies.
3933 * src/warshall.h: New file.
3936 2000-10-02 Akim Demaille <akim@epita.fr>
3938 Various anti-`extern in *.c' changes.
3940 * src/system.h: Include `assert.h'.
3942 2000-10-02 Akim Demaille <akim@epita.fr>
3944 * src/state.h (nstates, final_state, first_state, first_shift)
3945 (first_reduction): Move their exportation from here...
3946 * src/LR0.h: to here.
3947 Adjust dependencies.
3948 * src/getargs.c (statisticsflag): New variable.
3949 Add support for `--statistics'.
3950 Adjust dependencies.
3952 Remove a lot of now useless `extern' statements in most files.
3954 2000-10-02 Akim Demaille <akim@epita.fr>
3956 * src/LR0.h: New file.
3959 2000-10-02 Akim Demaille <akim@epita.fr>
3961 * src/print.h: New file.
3963 * src/print.c: Formatting and ordering changes.
3964 (verbose, terse): Replace with...
3965 (print_results): this new function.
3966 Adjust dependencies.
3968 2000-10-02 Akim Demaille <akim@epita.fr>
3970 * src/conflicts.c (conflict_report): New function.
3971 (conflict_log, verbose_conflict_log): Replace with...
3972 (print_conflicts): this function.
3973 Adjust dependencies.
3974 * src/conflicts.h: New file.
3975 Propagate its inclusion.
3977 2000-10-02 Akim Demaille <akim@epita.fr>
3979 * src/nullable.h: New file.
3980 Propagate its inclusion.
3981 * src/nullable.c: Formatting changes.
3983 2000-10-02 Akim Demaille <akim@epita.fr>
3985 * src/reduce.h: New file.
3986 Propagate its inclusion.
3987 * src/reduce.c: Topological sort and other formatting changes.
3988 (bool, TRUE, FALSE): Move their definition to...
3989 * src/system.h: here.
3991 2000-10-02 Akim Demaille <akim@epita.fr>
3993 * src/files.c: Formatting changes.
3994 (tryopen, tryclose, openfiles): Rename as...
3995 (xfopen, xfclose, open_files): this.
3996 (stringappend): static.
3997 * src/files.h: Complete the list of exported symbols.
4000 2000-10-02 Akim Demaille <akim@epita.fr>
4002 * src/reader.h: New file.
4003 Propagate its use instead of tedious list of `extern' and
4005 * src/reader.c: Formatting changes, topological sort,
4008 2000-10-02 Akim Demaille <akim@epita.fr>
4010 * src/lex.h: Prototype `lex.c' exported functions.
4011 * src/reader.c: Adjust.
4012 * src/lex.c: Formatting changes.
4013 (safegetc): Rename as...
4016 2000-10-02 Akim Demaille <akim@epita.fr>
4018 * src/lalr.h: New file.
4019 Propagate its inclusion instead of prototypes and `extern'.
4020 * src/lalr.c: Formatting changes, topological sorting etc.
4022 2000-10-02 Akim Demaille <akim@epita.fr>
4024 * src/output.c (token_actions): Introduce a temporary array,
4025 YYDEFACT, that makes it possible for this function to use
4028 2000-10-02 Akim Demaille <akim@epita.fr>
4030 `user_toknums' is output as a `short[]' in `output.c', while it is
4031 defined as a `int[]' in `reader.c'. For consistency with the
4032 other output tables, `user_toknums' is now defined as a table of
4035 * src/reader.c (user_toknums): Be a short table instead of an int
4037 Adjust dependencies.
4039 Factor the short table outputs.
4041 * src/output.c (output_short_table): New function.
4042 * src/output.c (output_gram, output_stos, output_rule_data)
4043 (output_base, output_table, output_check): Use it.
4045 2000-10-02 Akim Demaille <akim@epita.fr>
4047 * src/output.c (output): Topological sort of the functions, in
4048 order to get rid of the `static' prototypes.
4049 No longer use `register'.
4050 * src/output.h: New file.
4051 Propagate its inclusion in files explicitly prototyping functions
4054 2000-09-21 Akim Demaille <akim@epita.fr>
4056 * src/atgeneral.m4: Update from Autoconf.
4058 2000-09-21 Akim Demaille <akim@epita.fr>
4060 * src/closure.h: New file.
4061 * src/closure.c: Formatting changes, topological sort over the
4062 functions, use of closure.h.
4063 (initialize_closure, finalize_closure): Rename as...
4064 (new_closure, free_closure): these. Adjust dependencies.
4065 * src/LR0.c: Formatting changes, topological sort, use of
4067 (initialize_states): Rename as...
4069 * src/Makefile.am (noinst_HEADERS): Adjust.
4071 2000-09-20 Akim Demaille <akim@epita.fr>
4073 * src/acconfig.h: Don't protect config.h against multiple
4075 Don't define PARAMS.
4076 * src/system.h: Define PARAMS.
4077 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
4078 purpose of config.h. system.h must not try to fix wrong
4079 definitions in config.h.
4081 2000-09-20 Akim Demaille <akim@epita.fr>
4083 * src/derives.h: New file.
4084 * src/main.c, src/derives.h: Use it.
4086 * src/Makefile.am (noinst_HEADERS): Adjust.
4088 2000-09-20 Akim Demaille <akim@epita.fr>
4090 * tests/atgeneral.m4: Update from Autoconf.
4091 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
4092 (AT_CHECK_CALC): New macros.
4093 Use these macros to test bison with options `', `--raw',
4094 `--debug', `--yacc', `--yacc --debug'.
4096 2000-09-19 Akim Demaille <akim@epita.fr>
4098 * src/output.c: Formatting changes.
4099 * src/machine.h: Remove, leaving its contents in...
4100 * src/system.h: here.
4102 Adjust all dependencies on stdio.h and machine.h.
4103 * src/getargs.h: New file.
4104 Let all `extern' declarations about getargs.c be replaced with
4105 inclusion of `getargs.h'.
4106 * src/Makefile.am (noinst_HEADERS): Adjust.
4108 * tests/calc.m4 (yyin): Be initialized in main, not on the global
4110 (yyerror): Returns void, not int.
4111 * doc/bison.texinfo: Formatting changes.
4113 2000-09-19 Akim Demaille <akim@epita.fr>
4115 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
4118 2000-09-18 Akim Demaille <akim@epita.fr>
4120 * configure.in: Append WARNING_CFLAGS to CFLAGS.
4121 * src/Makefile.am (INCLUDES): Don't.
4122 Be ready to fetch headers in lib/.
4124 2000-09-18 Akim Demaille <akim@epita.fr>
4126 * doc/bison.texinfo: Update the copyright.
4127 ANSIfy and GNUify the examples.
4128 Remove the old menu.
4130 2000-09-18 Akim Demaille <akim@epita.fr>
4132 First set of tests: use the `calc' example from the documentation.
4134 * src/bison.s1 (yyparse): Condition the code using `yytname' which
4135 is defined only when YYDEBUG is.
4136 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
4137 * src/files.c (tryopen, tryclose): Formatting changes.
4138 Move to the top and be static.
4139 * src/reader.c (read_signed_integer): Likewise.
4140 * tests/calc.m4: New file.
4141 * Makefile.am, suite.m4: Adjust.
4142 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
4144 2000-09-18 Akim Demaille <akim@epita.fr>
4146 Add support for an Autotest test suite for Bison.
4148 * m4/m4.m4, m4/atconfig.m4: New files.
4149 * m4/Makefile.am (EXTRA_DIST): Adjust.
4150 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
4152 * src/getargs.c: Display a more standard --version message.
4153 * src/reader.c (reader): Formatting changes.
4154 No longer depend upon VERSION_STRING.
4155 * configure.in: No longer use `dnl'.
4156 Set up the test suite and the new directory `tests/.
4157 (VERSION_STRING): Remove.
4159 2000-04-14 Akim Demaille <akim@epita.fr>
4161 * src/reader.c (copy_comment2): New function, same as former
4162 `copy_comment', but outputs into two FILE *.
4163 (copy_comment): Use it.
4164 (parse_union_decl): Use it.
4165 (get_type, parse_start_decl): Use the same `invalid' message.
4166 (parse_start_decl, parse_union_decl): Use the same `multiple'
4168 (parse_union_decl, copy_guard, copy_action): Use the same
4169 `unmatched' message.
4170 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
4172 2000-03-31 Akim Demaille <akim@epita.fr>
4174 * src/files.c (tryopen, tryclose): Move to the top.
4177 2000-03-31 Akim Demaille <akim@epita.fr>
4179 * src/main.c (main): Don't call `done', exit does it.
4181 2000-03-31 Akim Demaille <akim@epita.fr>
4183 * allocate.c: s/return (foo)/return foo/.
4186 * output.c: Likewise.
4187 * reader.c: Likewise.
4188 * symtab.c: Likewise.
4189 * vmsgetargs.c: Likewise.
4191 2000-03-31 Akim Demaille <akim@epita.fr>
4193 Clean up the error reporting functions.
4195 * src/report.c: New file.
4196 * src/report.h: Likewise.
4197 * src/Makefile.am: Adjust.
4198 * m4/error.m4: New file.
4199 * m4/Makefile.am: Adjust.
4200 * configure.in (jm_PREREQ_ERROR): Call it.
4201 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
4203 (fatal, fatals): Remove. All callers use complain.c::fatal.
4204 (warn, warni, warns, warnss, warnss): Remove. All callers use
4205 complain.c::complain.
4206 (toomany): Remove, use fatal instead.
4207 * src/files.c (done): No argument, use complain_message_count.
4208 * src/main.c (main): Register `done' to `atexit'.
4210 * src/getargs.c (usage): More `fputs', less `fprintf'.
4212 2000-03-28 Akim Demaille <akim@epita.fr>
4214 * lib/: New directory.
4215 * Makefile.am (SUBDIRS): Adjust.
4216 * configure.in: Adjust.
4217 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
4219 * src/alloca.c: Moved to lib/.
4220 * src/getopt.c: Likewise.
4221 * src/getopt1.c: Likewise.
4222 * src/getopt.h: Likewise.
4223 * src/ansi2knr.c: Likewise.
4224 * src/ansi2knr.1: Likewise.
4225 * src/Makefile.am: Adjust.
4226 * lib/Makefile.am: New file.
4228 2000-03-28 Akim Demaille <akim@epita.fr>
4230 * src/getargs.c (usage): Refresh the help message.
4232 2000-03-17 Akim Demaille <akim@epita.fr>
4234 * src/getopt1.c: Updated from textutils 2.0e
4235 * src/getopt.c: Likewise.
4236 * src/getopt.h: Likewise.
4238 2000-03-17 Akim Demaille <akim@epita.fr>
4240 * src/Makefile.am (bison.simple): Fix the awk program: quote only
4241 the file name, not the whole `#line LINE FILE'.
4243 2000-03-17 Akim Demaille <akim@epita.fr>
4245 On syntax errors, report the token on which we choked.
4247 * src/bison.s1 (yyparse): In the label yyerrlab, when
4248 YYERROR_VERBOSE, add yychar in msg.
4250 2000-03-17 Akim Demaille <akim@epita.fr>
4252 * src/reader.c (copy_at): New function.
4253 (copy_guard): Use it.
4254 (copy_action): Use it.
4256 2000-03-17 Akim Demaille <akim@epita.fr>
4258 Be kind to translators, save some useless translations.
4260 * src/main.c (banner): New function.
4261 (fatal_banner): Use it.
4262 (warn_banner): Use it.
4264 2000-03-17 Akim Demaille <akim@epita.fr>
4266 * src/reader.c (copy_definition): Use copy_string and
4267 copy_comment. Removed now unused `match', `ended',
4269 (copy_comment, copy_string): Moved, to be visible from
4272 2000-03-17 Akim Demaille <akim@epita.fr>
4274 * src/reader.c (copy_string): Declare `static inline'. No
4275 problems with inline, since it is checked by configure.
4276 (copy_comment): Likewise.
4278 2000-03-17 Akim Demaille <akim@epita.fr>
4280 * src/reader.c (packsymbols): Formatting changes.
4282 2000-03-17 Akim Demaille <akim@epita.fr>
4284 * src/reader.c (copy_comment): New function, factored out from:
4285 (copy_action): Use it. Removed now unused `match', `ended',
4287 (copy_guard): Likewise.
4289 2000-03-17 Akim Demaille <akim@epita.fr>
4291 * src/reader.c (copy_string): New function, factored out from:
4292 (copy_action): Use it.
4293 (copy_guard): Likewise.
4295 2000-03-17 Akim Demaille <akim@epita.fr>
4297 Change the handling of @s so that they behave exactly like $s.
4298 There is now a pseudo variable @$ (readble and writable), location
4299 of the lhs of the rule (by default ranging from the location of
4300 the first symbol of the rhs, to the location of the last symbol,
4301 or, if the rhs is empty, YYLLOC).
4303 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
4305 (yyparse): When providing a default semantic action, provide a
4306 default location action.
4307 (after the $): No longer change `*YYLSP', just stack YYLOC the
4308 same way you stack YYVAL.
4309 * src/reader.c (read_declarations): Use warns.
4310 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
4311 (copy_action, case '@'): Likewise.
4312 Use a standard error message, to save useless work from
4315 2000-03-17 Akim Demaille <akim@epita.fr>
4317 * src/bison.s1: Formatting and cosmetics changes.
4318 * src/reader.c: Likewise.
4319 Update the Copyright notice.
4321 2000-03-17 Akim Demaille <akim@epita.fr>
4323 * src/bison.s1 (#line): All set to `#line' only, since the
4324 Makefile now handles them.
4326 2000-03-16 Akim Demaille <akim@epita.fr>
4328 * src/output.c (output_rule_data): Output the documentation of
4330 (Copyright notice): Update.
4333 2000-03-16 Akim Demaille <akim@epita.fr>
4335 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
4336 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
4337 One `#if YYDEBUG' remains, since it uses variables which are
4338 defined only if `YYDEBUG != 0'.
4340 2000-03-16 Akim Demaille <akim@epita.fr>
4342 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
4343 and related variables so that the similarities are highlighted.
4345 2000-03-16 Akim Demaille <akim@epita.fr>
4347 * src/bison.s1: Properly indent CPP directives.
4349 2000-03-16 Akim Demaille <akim@epita.fr>
4351 * src/bison.s1: Properly indent the `alloca' CPP section.
4353 2000-03-16 Akim Demaille <akim@epita.fr>
4355 Do not hard code values of directories in `configure.in'.
4356 Update the `configure' tool chain.
4358 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
4360 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
4361 (AC_OUTPUT): Add m4/Makefile.
4362 Bump to bison 1.28a, 1.29 has never been released.
4363 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
4364 handled via src/Makefile.am.
4365 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
4366 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
4368 * Makefile.am (SUBDIRS): Add m4.
4369 (ACLOCAL_AM_FLAGS): New variable.
4370 (AUTOMAKE_OPTIONS): Add check-news.
4371 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
4372 the proper line number and file name.
4373 (DEFS): Propagate the location of bison library files and of the
4375 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
4377 * acinclude.m4: Remove, replaced by the directory m4.
4378 * m4/Makefile.am (EXTRA_DIST): New variable.
4379 * m4/gettext.m4: New file, from the fileutils.
4380 * m4/lcmessage.m4: Likewise
4381 * m4/progtest.m4: Likewise.
4382 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
4384 2000-03-10 Akim Demaille <akim@epita.fr>
4387 Formatting changes of various comments.
4388 Respect the GNU coding standards at various places.
4389 Don't use `_()' when no translation is needed.
4391 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4394 OS/2 honors TMPDIR environment variable.
4396 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4398 * doc/bison.texinfo: Tweaked spelling and grammar.
4400 Removed reference to price of printed copy.
4401 Mention BISON_SIMPLE and BISON_HAIRY.
4403 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4405 * configure.in, NEWS:
4406 Bison 1.29 released.
4408 1999-10-27 Jesse Thilo <jthilo@gnu.org>
4410 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
4411 Added reference card.
4413 1999-07-26 Jesse Thilo <jthilo@gnu.org>
4415 * po/ru.po: Added Russian translation.
4417 1999-07-26 Jesse Thilo <jthilo@gnu.org>
4419 * configure.in: Added Russian translation.
4421 1999-07-06 Jesse Thilo <jthilo@gnu.org>
4423 * configure.in, NEWS, README:
4424 Released version 1.28.
4426 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4429 Squashed redefinition warning on some systems.
4431 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
4432 Have configure build version string instead of relying on ANSI string
4435 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4437 * po/POTFILES.in: Got rid of version.c.
4439 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4441 * acconfig.h, configure.in:
4442 Have configure build version string instead of relying on ANSI string
4445 1999-06-08 Jesse Thilo <jthilo@gnu.org>
4448 Dropped mention of `+' for long-named options.
4450 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4452 * src/files.c: Added <unistd.h> for unlink().
4454 * src/Makefile.am, src/system.h:
4457 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4459 * README: Added a FAQ list.
4461 * configure.in, acconfig.h:
4464 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4466 * doc/FAQ, doc/Makefile.am:
4469 1999-05-19 Jesse Thilo <jthilo@gnu.org>
4471 * src/alloc.h, src/symtab.h, src/version.c:
4472 Protected inclusion of "config.h" with HAVE_CONFIG_H.
4474 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4476 * src/.cvsignore, src/Makefile.am:
4477 Reorganized: sources in `src', documentation in `doc'.
4479 * src/lex.c (literalchar):
4480 fixed the code for escaping double quotes (thanks
4483 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4485 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
4486 Adjusted paths to reflect directory reorganization.
4488 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4490 * doc/.cvsignore, doc/Makefile.am:
4491 Reorganized: sources in `src', documentation in `doc'.
4493 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4496 Updated AC_INIT file to reflect directory reorganization.
4498 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
4499 Reorganized: sources in `src', documentation in `doc'.
4501 1999-04-13 Jesse Thilo <jthilo@gnu.org>
4504 Don't declare calloc() and realloc() if not necessary.
4506 1999-04-13 Jesse Thilo <jthilo@gnu.org>
4508 * configure.in, acconfig.h, acinclude.m4:
4509 Don't declare calloc() and realloc() if not necessary.
4511 1999-03-23 Jesse Thilo <jthilo@gnu.org>
4513 * po/.cvsignore: Added i18n support.
4515 1999-03-23 Jesse Thilo <jthilo@gnu.org>
4517 * acconfig.h, configure.in, Makefile.am:
4520 1999-03-22 Jesse Thilo <jthilo@gnu.org>
4522 * src/bison.s1: Fixed #line numbers.
4524 1999-03-15 Jesse Thilo <jthilo@gnu.org>
4526 * po/es.po, po/fr.po, po/nl.po, po/de.po:
4527 Added PO files from Translation Project.
4529 1999-03-03 Jesse Thilo <jthilo@gnu.org>
4532 Added support for non-ANSI compilers (ansi2knr).
4534 1999-02-16 Jesse Thilo <jthilo@gnu.org>
4536 * configure.in: Bumped version number to 1.27.
4539 Added `bison.simple' to list of files removed by `make distclean'.
4541 1999-02-12 Jesse Thilo <jthilo@gnu.org>
4543 * src/files.c, src/files.h:
4544 Defined locations of parser files in config.h instead of Makefile.
4546 1999-02-12 Jesse Thilo <jthilo@gnu.org>
4548 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
4549 Defined locations of parser files in config.h instead of Makefile.
4551 1999-02-09 Jesse Thilo <jthilo@gnu.org>
4554 Removed inappropriate use of $< macro.
4556 1999-02-05 Jesse Thilo <jthilo@gnu.org>
4558 * po/Makefile.in.in, po/POTFILES.in:
4559 Add `po' directory skeleton.
4561 1999-01-27 Jesse Thilo <jthilo@gnu.org>
4563 * README: Document help-bison list.
4565 * configure.in: Add check for mkstemp().
4567 1999-01-20 Jesse Thilo <jthilo@gnu.org>
4569 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
4570 Hush a few compiler warnings.
4573 Add tryclose(), which verifies that fclose was successful.
4574 Hush a couple of compiler warnings.
4576 1999-01-20 Jesse Thilo <jthilo@gnu.org>
4578 * Makefile.am, OChangeLog:
4579 ChangeLog is now automatically generated. Include the old version as
4582 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4584 * 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:
4587 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4589 * doc/bison.texinfo: Fix formatting glitch.
4591 * doc/bison.texinfo: Update FSF address.
4593 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4595 * acconfig.h: Update FSF address.
4597 1999-01-08 Jesse Thilo <jthilo@gnu.org>
4600 Don't define PACKAGE here, since config.h defines it.
4602 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4604 * src/reader.c: Update copyright date.
4607 Ditch sprintf to statically-sized buffers in fatal/warn functions in
4608 favor of output directly to stderr (avoids buffer overruns).
4610 * src/reader.c: Some checks for premature EOF.
4612 * 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:
4613 Use prototypes if the compiler understands them.
4615 * src/files.c: Honor TMPDIR on Unix hosts.
4616 Use prototypes if the compiler understands them.
4619 Fix a couple of buffer overrun bugs.
4620 Use prototypes if the compiler understands them.
4622 * src/system.h: Include unistd.h and ctype.h.
4623 Use #ifdef instead of #if for NLS symbols.
4625 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4627 * doc/bison.texinfo:
4628 Delete comment "consider using @set for edition number, etc..." since
4629 we now are doing so.
4631 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4634 Use prototypes if the compiler understands them.
4636 * NEWS: Document 1.26 highlights.
4638 * Makefile.am: Require Automake 1.3 or later.
4641 Use prototypes if the compiler understands them.
4643 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4646 Use VERSION symbol from automake for version number.
4648 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4650 * acconfig.h, configure.in, version.cin:
4651 Use VERSION symbol from automake for version number.
4653 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4656 Distribute original version of simple parser (bison.s1), not built
4657 version (bison.simple).
4659 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4661 * doc/bison.texinfo: Add info dir entry.
4663 * doc/bison.texinfo:
4664 Let automake put version number into documentation.
4666 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4668 * src/bison.cld, src/build.com, src/vmshlp.mar:
4669 Add non-RCS files from /gd/gnu/bison.
4671 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4674 Document the BISON_HAIRY and BISON_SIMPLE variables.
4676 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4678 * src/version.c: Build version.c automatically.
4681 Fix token numbering (used to start at 258, not 257).
4683 * src/system.h: Include config.h.
4685 * src/getargs.c: Update bug report address.
4687 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
4688 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
4690 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4693 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4695 * configure.in, version.cin:
4696 Build version.c automatically.
4698 * AUTHORS: Add AUTHORS file.
4700 * README: Update bug report address.
4703 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4705 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
4708 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4710 * doc/bison.texinfo: Clean up some formatting.
4712 1998-05-05 Richard Stallman <rms@gnu.org>
4714 * doc/bison.texinfo:
4715 Explain better why to make a pure parser.
4717 1998-01-05 Richard Stallman <rms@gnu.org>
4719 * src/files.c (openfiles):
4720 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
4721 find a temporary directory, if possible. Do not unlink files while
4724 1997-08-25 Richard Stallman <rms@gnu.org>
4726 * src/reader.c (stack_offset;):
4727 Change some warni to warns.
4729 * src/lex.c (literalchar): Use warns, not warni.
4731 1997-06-28 Richard Stallman <rms@gnu.org>
4733 * src/bison.s1: Add a Bison version comment.
4735 * src/main.c (fatal, warn, berror):
4738 1997-06-28 Richard Stallman <rms@gnu.org>
4740 * Makefile.in (bison_version): New variable.
4741 (dist): Use that variable.
4742 (bison.s1): Substitute the Bison version into bison.simple.
4744 * bison.simple: Add a Bison version comment.
4746 1997-06-18 Richard Stallman <rms@gnu.org>
4748 * src/main.c (fatal, warn, berror):
4749 Make error messages standard.
4750 (toomany): Improve error message text.
4752 * 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:
4753 new.h renamed to alloc.h.
4755 1997-06-18 Richard Stallman <rms@gnu.org>
4757 * Makefile.in: new.h renamed to alloc.h.
4759 1997-05-24 Richard Stallman <rms@gnu.org>
4761 * src/lex.c (literalchar):
4762 Fix the code for escaping \, " and '.
4764 (lex): Avoid trouble when there are many chars
4765 to discard in a char literal with just several chars in it.
4767 1997-05-17 Richard Stallman <rms@gnu.org>
4770 Use malloc, if using alloca is troublesome.
4771 (YYSTACK_USE_ALLOCA): New flag macro.
4772 Define it for some systems and compilers.
4773 (YYSTACK_ALLOC): New macro.
4774 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4775 If it was malloc'd, free it.
4777 1997-05-17 Richard Stallman <rms@gnu.org>
4780 Use malloc, if using alloca is troublesome.
4781 (YYSTACK_USE_ALLOCA): New flag macro.
4782 Define it for some systems and compilers.
4783 (YYSTACK_ALLOC): New macro.
4784 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4785 If it was malloc'd, free it.
4787 1997-04-23 Richard Stallman <rms@gnu.org>
4790 (alloca) [__hpux]: Always define as __builtin_alloca.
4792 1997-04-23 Richard Stallman <rms@gnu.org>
4795 (alloca) [__hpux]: Always define as __builtin_alloca.
4797 1997-04-22 Richard Stallman <rms@gnu.org>
4800 [__hpux]: Include alloca.h (right for HPUX 10)
4801 instead of declaring alloca (right for HPUX 9).
4803 * src/bison.s1 (__yy_memcpy):
4804 Declare arg `count' as unsigned int.
4805 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4807 1997-04-22 Richard Stallman <rms@gnu.org>
4810 [__hpux]: Include alloca.h (right for HPUX 10)
4811 instead of declaring alloca (right for HPUX 9).
4813 * bison.simple (__yy_memcpy):
4814 Declare arg `count' as unsigned int.
4815 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4817 1997-01-03 Richard Stallman <rms@gnu.org>
4819 * src/allocate.c: [__STDC__ or _MSC_VER]:
4820 Declare calloc and realloc to return void *.
4822 1997-01-02 Richard Stallman <rms@gnu.org>
4825 [_MSC_VER]: Include stdlib.h and process.h.
4826 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
4828 * src/main.c (main): Return FAILURE as a value.
4829 (printable_version): Declare arg as int, not char.
4831 1997-01-02 Richard Stallman <rms@gnu.org>
4833 * Makefile.in (dist):
4834 Explicitly check for symlinks, and copy them.
4836 1996-12-19 Richard Stallman <rms@gnu.org>
4839 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
4841 1996-12-18 Paul Eggert <eggert@gnu.org>
4843 * src/bison.s1 (yyparse):
4844 If __GNUC__ and YYPARSE_PARAM are both defined,
4845 declare yyparse to have a void * argument.
4847 1996-12-18 Paul Eggert <eggert@gnu.org>
4849 * bison.simple (yyparse):
4850 If __GNUC__ and YYPARSE_PARAM are both defined,
4851 declare yyparse to have a void * argument.
4853 1996-12-17 Richard Stallman <rms@gnu.org>
4855 * src/reduce.c (nbits): Add some casts.
4857 1996-08-12 Richard Stallman <rms@gnu.org>
4859 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
4861 1996-08-12 Richard Stallman <rms@gnu.org>
4863 * bison.simple: Test _MSDOS as well as _MSDOS_.
4865 1996-07-31 Richard Stallman <rms@gnu.org>
4868 [__sun && __i386]: Include alloca.h.
4870 1996-07-31 Richard Stallman <rms@gnu.org>
4873 [__sun && __i386]: Include alloca.h.
4875 1996-07-30 Richard Stallman <rms@gnu.org>
4877 * src/bison.s1: Comment change.
4879 * src/bison.s1: Test _MSDOS_, not MSDOS.
4881 1996-07-30 Richard Stallman <rms@gnu.org>
4883 * bison.simple: Comment change.
4885 * bison.simple: Test _MSDOS_, not MSDOS.
4887 1996-06-01 Richard Stallman <rms@gnu.org>
4889 * 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:
4890 Insert `_' macro around many string constants.
4893 Insert `_' macro around many string constants.
4895 (main): Call setlocale, bindtextdomain and textdomain.
4897 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
4898 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
4899 [ENABLE_NLS]: Include libintl.h.
4900 [ENABLE_NLS] (gettext): Define.
4901 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
4902 (N_, PACKAGE, LOCALEDIR): New macros.
4904 1996-06-01 Richard Stallman <rms@gnu.org>
4906 * POTFILES.in: New file.
4908 * Makefile.in (allocate.o):
4909 Define target explicitly.
4911 * Makefile.in (CFLAGS): Set to @CFLAGS@.
4912 (LDFLAGS): Set to @LDFLAGS@.
4913 (configure): Run autoconf only if preceding `cd' succeeds.
4914 (bison.s1): Redirect output to temporary file then move the
4915 temporary to the target, rather than redirecting directly to bison.s1.
4916 (clean): Remove config.status and config.log.
4917 (distclean): Don't remove config.status here.
4919 1996-05-12 Richard Stallman <rms@gnu.org>
4922 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
4924 1996-05-12 Richard Stallman <rms@gnu.org>
4927 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
4929 1996-05-11 Richard Stallman <rms@gnu.org>
4931 * src/bison.s1 (__yy_memcpy):
4932 Really reorder the args, as was supposedly done on Feb 14 1995.
4933 (yyparse): Calls changed accordingly.
4935 1996-05-11 Richard Stallman <rms@gnu.org>
4937 * Makefile.in (dist): Don't use $(srcdir).
4939 * bison.simple (__yy_memcpy):
4940 Really reorder the args, as was supposedly done on Feb 14 1995.
4941 (yyparse): Calls changed accordingly.
4943 1996-01-27 Richard Stallman <rms@gnu.org>
4945 * src/output.c (output_rule_data):
4946 Test YYERROR_VERBOSE in the conditional
4947 around the definition of ttyname.
4949 1995-12-29 Richard Stallman <rms@gnu.org>
4952 Fix line numbers in #line commands.
4954 1995-12-29 Richard Stallman <rms@gnu.org>
4957 Fix line numbers in #line commands.
4959 1995-12-27 Richard Stallman <rms@gnu.org>
4961 * src/bison.s1 (YYPARSE_PARAM_DECL):
4962 In C++, make it always null.
4963 (YYPARSE_PARAM_ARG): New macro.
4964 (yyparse): Use YYPARSE_PARAM_ARG.
4966 1995-12-27 Richard Stallman <rms@gnu.org>
4968 * bison.simple (YYPARSE_PARAM_DECL):
4969 In C++, make it always null.
4970 (YYPARSE_PARAM_ARG): New macro.
4971 (yyparse): Use YYPARSE_PARAM_ARG.
4973 1995-11-29 Richard Stallman <rms@gnu.org>
4975 * doc/bison.texinfo:
4976 Describe literal string tokens, %raw, %no_lines, %token_table.
4978 1995-11-29 Daniel Hagerty <hag@gnu.org>
4980 * doc/bison.texinfo: Fixed update date
4982 1995-10-16 Richard Stallman <rms@gnu.org>
4984 * src/version.c: Version 1.25.
4986 1995-10-16 Richard Stallman <rms@gnu.org>
4988 * NEWS: *** empty log message ***
4990 1995-10-16 Richard Stallman <rms@gnu.org>
4992 * doc/bison.1, doc/bison.rnh:
4995 1995-10-15 Richard Stallman <rms@gnu.org>
4997 * src/vmsgetargs.c, src/getargs.c:
4998 Added -n, -k, and -raw switches.
4999 (noparserflag, toknumflag, rawtoknumflag): New variables.
5001 * src/symtab.h (SALIAS):
5002 New #define for adding aliases to %token.
5003 (struct bucket): Added `alias' field.
5005 * src/reduce.c (reduce_grammar):
5006 Revise error message.
5007 (print_notices): Remove final `.' from error message.
5009 * src/reader.c (reader_output_yylsp):
5011 (readgram): Use `#if 0' around code that accepted %command
5012 inside grammar rules: The documentation doesn't allow it,
5013 and it will fail since the %command processors scan for the next %.
5014 (parse_token_decl): Extended the %token
5015 declaration to allow a multi-character symbol as an alias.
5016 (parse_thong_decl): New function.
5017 (read_declarations): Added %thong declarations.
5018 (read_declarations): Handle NOOP to deal with allowing
5019 % declarations as another means to specify the flags.
5020 (readgram): Allow %prec prior to semantics embedded in a rule.
5021 (skip_to_char, read_declarations, copy_definition)
5022 (parse_token_decl, parse_start_decl, parse_type_decl)
5023 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
5024 (get_type_name, copy_guard, copy_action, readgram)
5025 (get_type, packsymbols): Revised most error messages.
5026 Changed `fatal' to `warnxxx' to avoid aborting for error.
5027 Revised and use multiple warnxxx functions to avoid using VARARGS1.
5028 (read_declarations): Improve the error message for
5029 an invalid character. Do not abort.
5030 (read_declarations, copy_guard, copy_action): Use
5031 printable_version to avoid unprintable characters in printed output.
5032 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
5033 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
5034 Allow the type of a non-terminal can be given
5035 more than once, as long as all specifications give the same type.
5038 (output_headers, output_trailers, output, output_gram)
5039 (output_rule_data): Implement noparserflag variable.
5040 Implement toknumflag variable.
5041 (output): Call reader_output_yylsp to output LTYPESTR.
5043 * src/main.c (main):
5044 If reader sees an error, don't process the grammar.
5045 (fatals): Updated to not use VARARGS1.
5046 (printable_version, int_to_string, warn, warni, warns, warnss)
5047 (warnsss): New error reporting functions. Avoid abort for error.
5050 Added THONG and NOOP for alias processing.
5051 Added SETOPT for the new code that allows setting options with %flags.
5054 Include getopt.h. Add some extern decls.
5055 (safegetc): New function to deal with EOF gracefully.
5056 (literalchar); new function to deal with reading \ escapes.
5057 (lex): Use literalchar.
5058 (lex): Implemented "..." tokens.
5059 (literalchar, lex, parse_percent_token): Made tokenbuffer
5060 always contain the token. This includes growing the token
5061 buffer while reading an integer.
5062 (parse_percent_token): Replaced if-else statement with percent_table.
5063 (parse_percent_token): Added % declarations as another
5064 way to specify the flags -n, -l, and -r. Also added hooks for
5065 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
5066 major changes to files.c.
5067 (lex) Retain in the incoming stream a character following
5069 (skip_white_space, lex): Revised most error messages
5070 and changed fatal to warn to avoid aborting.
5071 (percent_table): Added %thong declarations.
5073 * src/gram.h: Comment changes.
5075 * src/files.c (openfiles, open_extra_files, done):
5077 and actfile file. Handle noparserflag. Both for -n switch.
5079 * src/conflicts.c (resolve_sr_conflict):
5080 Remove use of alloca.
5082 1995-06-01 Jim Meyering <meyering@gnu.org>
5084 * doc/bison.texinfo: *** empty log message ***
5086 1995-05-06 Richard Stallman <rms@gnu.org>
5088 * src/bison.s1: Comment change.
5090 1995-05-06 Richard Stallman <rms@gnu.org>
5092 * bison.simple: Comment change.
5094 1995-05-03 Richard Stallman <rms@gnu.org>
5096 * src/version.c: Version now 1.24.
5098 * src/bison.s1: Change distribution terms.
5100 * src/version.c: Version now 1.23.
5102 1995-05-03 Richard Stallman <rms@gnu.org>
5104 * doc/bison.texinfo:
5105 Rewrite "Conditions for Using Bison".
5106 Update version to 1.24.
5108 1995-05-03 Richard Stallman <rms@gnu.org>
5110 * bison.simple: Change distribution terms.
5112 1995-02-23 Richard Stallman <rms@gnu.org>
5114 * src/files.c: Test __VMS_POSIX as well as VMS.
5116 1995-02-14 Jim Meyering <meyering@gnu.org>
5118 * src/bison.s1 (__yy_memcpy):
5119 Renamed from __yy_bcopy to avoid
5120 confusion. Reverse FROM and TO arguments to be consistent with
5123 1995-02-14 Jim Meyering <meyering@gnu.org>
5125 * bison.simple (__yy_memcpy):
5126 Renamed from __yy_bcopy to avoid
5127 confusion. Reverse FROM and TO arguments to be consistent with
5130 1994-11-10 David J. MacKenzie <djm@gnu.org>
5136 * Makefile.in (DISTFILES): Include NEWS.
5138 * Makefile.in (DISTFILES):
5139 Include install-sh, not install.sh.
5141 * configure.in: Update to Autoconf v2 macro names.
5143 1994-10-05 David J. MacKenzie <djm@gnu.org>
5145 * Makefile.in: fix typo
5147 * Makefile.in (prefix, exec_prefix):
5148 Let configure set them.
5150 1994-09-28 David J. MacKenzie <djm@gnu.org>
5152 * Makefile.in: Set datadir to $(prefix)/share.
5154 1994-09-15 Richard Stallman <rms@gnu.org>
5157 Update copyright notice and GPL version.
5159 1994-09-15 Richard Stallman <rms@gnu.org>
5162 Update copyright notice and GPL version.
5164 1994-07-12 Richard Stallman <rms@gnu.org>
5166 * src/reduce.c, src/reader.c:
5169 1994-05-05 David J. MacKenzie <djm@gnu.org>
5171 * Makefile.in: entered into RCS
5173 1994-03-26 Richard Stallman <rms@gnu.org>
5175 * src/bison.s1: entered into RCS
5177 1994-03-26 Richard Stallman <rms@gnu.org>
5179 * bison.simple: entered into RCS
5181 1994-03-25 Richard Stallman <rms@gnu.org>
5183 * src/main.c: entered into RCS
5185 1994-03-24 Richard Stallman <rms@gnu.org>
5187 * src/conflicts.c: entered into RCS
5189 1994-01-02 Richard Stallman <rms@gnu.org>
5191 * Makefile.in: *** empty log message ***
5193 1993-11-21 Richard Stallman <rms@gnu.org>
5195 * src/bison.s1: *** empty log message ***
5197 1993-11-21 Richard Stallman <rms@gnu.org>
5199 * doc/bison.texinfo: entered into RCS
5201 * doc/bison.texinfo: *** empty log message ***
5203 1993-11-21 Richard Stallman <rms@gnu.org>
5205 * bison.simple: *** empty log message ***
5207 1993-10-25 David J. MacKenzie <djm@gnu.org>
5209 * doc/bison.texinfo: *** empty log message ***
5211 1993-10-19 Richard Stallman <rms@gnu.org>
5213 * src/bison.s1: *** empty log message ***
5215 1993-10-19 Richard Stallman <rms@gnu.org>
5217 * bison.simple: *** empty log message ***
5219 1993-10-14 Richard Stallman <rms@gnu.org>
5221 * src/bison.s1: *** empty log message ***
5223 1993-10-14 Richard Stallman <rms@gnu.org>
5225 * bison.simple: *** empty log message ***
5227 1993-09-14 David J. MacKenzie <djm@gnu.org>
5229 * doc/bison.texinfo: *** empty log message ***
5231 1993-09-13 Noah Friedman <friedman@gnu.org>
5233 * Makefile.in: *** empty log message ***
5235 1993-09-10 Richard Stallman <rms@gnu.org>
5237 * src/conflicts.c: *** empty log message ***
5239 * src/system.h: entered into RCS
5241 1993-09-10 Richard Stallman <rms@gnu.org>
5243 * doc/bison.1: entered into RCS
5245 1993-09-06 Noah Friedman <friedman@gnu.org>
5247 * src/version.c: entered into RCS
5249 1993-09-06 Noah Friedman <friedman@gnu.org>
5251 * Makefile.in: *** empty log message ***
5253 1993-07-30 David J. MacKenzie <djm@gnu.org>
5255 * Makefile.in: *** empty log message ***
5257 1993-07-24 Richard Stallman <rms@gnu.org>
5259 * src/bison.s1: *** empty log message ***
5261 1993-07-24 Richard Stallman <rms@gnu.org>
5263 * bison.simple: *** empty log message ***
5265 1993-07-08 David J. MacKenzie <djm@gnu.org>
5267 * Makefile.in: *** empty log message ***
5269 1993-07-04 Richard Stallman <rms@gnu.org>
5271 * src/bison.s1: *** empty log message ***
5273 1993-07-04 Richard Stallman <rms@gnu.org>
5275 * bison.simple: *** empty log message ***
5277 1993-06-26 David J. MacKenzie <djm@gnu.org>
5279 * src/getargs.c: entered into RCS
5281 1993-06-26 David J. MacKenzie <djm@gnu.org>
5283 * doc/bison.texinfo: *** empty log message ***
5285 * doc/bison.1: New file.
5287 1993-06-25 Richard Stallman <rms@gnu.org>
5289 * src/getargs.c: New file.
5291 1993-06-16 Richard Stallman <rms@gnu.org>
5293 * src/bison.s1: *** empty log message ***
5295 1993-06-16 Richard Stallman <rms@gnu.org>
5297 * bison.simple: *** empty log message ***
5299 1993-06-03 Richard Stallman <rms@gnu.org>
5301 * src/bison.s1: New file.
5303 1993-06-03 Richard Stallman <rms@gnu.org>
5305 * doc/bison.texinfo: *** empty log message ***
5307 1993-06-03 Richard Stallman <rms@gnu.org>
5309 * bison.simple: New file.
5311 1993-05-19 Richard Stallman <rms@gnu.org>
5313 * doc/bison.texinfo: New file.
5315 1993-05-07 Noah Friedman <friedman@gnu.org>
5317 * Makefile.in: *** empty log message ***
5319 1993-04-28 Noah Friedman <friedman@gnu.org>
5321 * src/reader.c: *** empty log message ***
5323 1993-04-23 Noah Friedman <friedman@gnu.org>
5325 * src/alloc.h: entered into RCS
5327 1993-04-20 David J. MacKenzie <djm@gnu.org>
5329 * src/version.c: *** empty log message ***
5331 * src/files.c, src/allocate.c:
5334 * src/reader.c: *** empty log message ***
5336 * src/lex.c: entered into RCS
5338 * src/conflicts.c: New file.
5340 * src/symtab.c: entered into RCS
5342 * src/alloc.h: New file.
5344 * src/LR0.c: entered into RCS
5346 1993-04-18 Noah Friedman <friedman@gnu.org>
5348 * src/reader.c: New file.
5350 * src/version.c: *** empty log message ***
5352 1993-04-18 Noah Friedman <friedman@gnu.org>
5354 * Makefile.in: *** empty log message ***
5356 1993-04-17 Noah Friedman <friedman@gnu.org>
5358 * Makefile.in: *** empty log message ***
5360 1993-04-15 Richard Stallman <rms@gnu.org>
5362 * src/main.c, src/files.c:
5365 1993-04-15 Noah Friedman <friedman@gnu.org>
5367 * configure.in: entered into RCS
5369 * configure.in: *** empty log message ***
5371 * configure.in: New file.
5373 1993-04-14 Richard Stallman <rms@gnu.org>
5375 * Makefile.in: New file.
5377 1993-04-13 Richard Stallman <rms@gnu.org>
5379 * src/version.c: New file.
5381 1993-03-25 Richard Stallman <rms@gnu.org>
5383 * src/output.c: entered into RCS
5385 1992-09-25 Richard Stallman <rms@gnu.org>
5387 * configure.bat: entered into RCS
5389 1992-06-22 Richard Stallman <rms@gnu.org>
5391 * src/vmsgetargs.c: entered into RCS
5393 1992-06-22 Richard Stallman <rms@gnu.org>
5395 * doc/bison.rnh: entered into RCS
5397 1992-04-20 David J. MacKenzie <djm@gnu.org>
5399 * README: entered into RCS
5401 1992-01-22 Richard Stallman <rms@gnu.org>
5403 * src/machine.h: entered into RCS
5405 1991-12-21 Richard Stallman <rms@gnu.org>
5407 * src/lalr.c, src/closure.c:
5410 1991-12-20 Richard Stallman <rms@gnu.org>
5412 * src/state.h: entered into RCS
5414 1991-12-18 Richard Stallman <rms@gnu.org>
5416 * src/print.c, src/nullable.c, src/derives.c:
5419 1991-11-03 David J. MacKenzie <djm@gnu.org>
5421 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
5424 1988-09-09 Richard Stallman <rms@gnu.org>
5426 * src/bison.hairy: entered into RCS
5428 1987-12-16 Richard Stallman <rms@gnu.org>
5430 * REFERENCES: entered into RCS