1 2002-02-05 Akim Demaille <akim@epita.fr>
3 * data/bison.c++: Adjust to the M4 back end.
4 More is certainly needed.
7 2002-02-05 Akim Demaille <akim@epita.fr>
9 Give a try to M4 as a back end.
11 * lib/readpipe.c: New, from wdiff.
12 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
14 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
15 specific values. Now it is m4 that performs the lookup.
16 * src/parse-skel.y: Remove.
17 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
18 * src/output.c (actions_output, guards_output)
19 (token_definitions_output): No longer keeps track of the output
20 line number, hence remove the second argument.
21 (guards_output): Check against the guard member of a rule, not the
24 (output_skeleton): Don't look for the skeleton location, let m4 do
26 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
28 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
29 (prepare): Given that for the time being changesyntax is not
30 usable in M4, rename the muscles using `-' to `_'.
31 Define `defines_flag', `output_parser_name' and `output_header_name'.
32 * src/output.h (actions_output, guards_output)
33 (token_definitions_output): Adjust prototypes.
34 * src/scan-skel.l: Instead of scanning the skeletons, it now
35 processes the output of m4: `__oline__' and `#output'.
36 * data/bison.simple: Adjust to be used by M4(sugar).
37 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
39 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
40 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
41 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
42 shamelessly stolen from CVS Autoconf.
45 2002-02-05 Akim Demaille <akim@epita.fr>
47 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
48 * configure.in: Check for the declarations of free and malloc.
49 * src/muscle_tab.c: Adjust.
51 2002-02-05 Akim Demaille <akim@epita.fr>
53 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
56 2002-02-05 Akim Demaille <akim@epita.fr>
58 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
61 2002-01-29 Paul Eggert <eggert@twinsun.com>
63 * src/bison.simple (YYSIZE_T): Do not define merely because
64 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
65 On some platforms, <alloca.h> does not declare YYSTD (size_t).
67 2002-01-27 Akim Demaille <akim@epita.fr>
69 Fix `%nonassoc and eof'.
71 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
72 which were not properly copied! Replace
73 memcpy (res->errs, src->errs, src->nerrs);
75 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
77 * tests/regression.at (%nonassoc and eof): Adjust to newest
78 Autotest: `.' is not in the PATH.
80 2002-01-27 Akim Demaille <akim@epita.fr>
82 * tests/sets.at (AT_EXTRACT_SETS): New.
86 2002-01-26 Akim Demaille <akim@epita.fr>
88 * tests/actions.at, tests/calc.at, tests/headers.at,
89 * tests/torture.at: Adjust to the newest Autotest which no longer
90 forces `.' in the PATH.
92 2002-01-25 Akim Demaille <akim@epita.fr>
94 * tests/regression.at (%nonassoc and eof): New.
95 Suggested by Robert Anisko.
97 2002-01-24 Akim Demaille <akim@epita.fr>
99 Bison dumps core when trying to complain about broken input files.
100 Reported by Cris van Pelt.
102 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
103 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
105 (Invalid inputs): Strengthen: exercise parse_percent_token.
107 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
109 * src/Makefile.am: Add bison.c++.
110 * src/bison.c++: New skeleton.
112 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
116 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
118 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
120 2002-01-20 Marc Autret <marc@gnu.org>
122 * src/files.c (compute_output_file_names): Fix
124 2002-01-20 Marc Autret <marc@gnu.org>
126 * tests/output.at: New test.
127 * src/files.c (compute_base_names): Don't map extensions when
128 the YACC flag is set, use defaults.
129 Reported by Evgeny Stambulchik.
131 2002-01-20 Marc Autret <marc@gnu.org>
133 * src/system.h: Need to define __attribute__ away for non-GCC
134 compilers as well (i.e. the vendor C compiler).
135 Suggested by Albert Chin-A-Young.
137 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
139 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
140 canonical definition.
141 * src/system.h: Use the canonical definition for PARAMS (avoids
142 a conflict with the macro from lib/hash.h).
144 2002-01-11 Akim Demaille <akim@epita.fr>
146 * configure.in: Use AC_FUNC_STRNLEN.
147 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
149 2002-01-09 Akim Demaille <akim@epita.fr>
151 * src/files.c, src/files.h (output_infix): New.
152 (tab_extension): Remove.
153 (compute_base_names): Compute the former, drop the latter.
154 * src/output.c (prepare): Insert the muscles `output-infix', and
156 * src/parse-skel.y (string, string.1): New.
157 (section.header): Use it.
158 (section.yacc): Remove.
159 (prefix): Remove too.
160 * src/scan-skel.l: Adjust.
161 * src/bison.simple, src/bison.hairy: Adjust.
163 2002-01-09 Akim Demaille <akim@epita.fr>
165 * configure.in (WERROR_CFLAGS): Compute it.
166 * src/Makefile.am (CFLAGS): Pass it.
167 * tests/atlocal.in (CFLAGS): Idem.
168 * src/files.c: Fix a few warnings.
169 (get_extension_index): Remove, unused.
171 2002-01-08 Akim Demaille <akim@epita.fr>
173 * src/getargs.c (AS_FILE_NAME): New.
174 (getargs): Use it to convert DOSish file names.
175 * src/files.c (base_name): Rename as full_base_name to avoid
176 clashes with `base_name ()'.
177 (filename_split): New.
178 (compute_base_names): N-th rewrite, using filename_split.
180 2002-01-08 Akim Demaille <akim@epita.fr>
182 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
183 New, stolen from the Fileutils 4.1.
184 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
185 * configure.in: Check for the presence of memrchr, and of its
188 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
190 * lib/hash.h (__P): Added definition for this macro.
191 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
192 BUILT_SOURCES, to ensure they are generated first.
193 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
194 %error-verbose to allow bootstrapping with bison 1.30x.
196 2002-01-06 Akim Demaille <akim@epita.fr>
198 * src/reader.c (parse_braces): Don't fetch the next char, the
199 convention is to fetch on entry.
200 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
201 'switch' without a following semicolon.
202 * tests/regression.at (braces parsing): New.
204 2002-01-06 Akim Demaille <akim@epita.fr>
206 Bison is dead wrong in its RR conflict reports.
208 * tests/torture.at (GNU Cim Grammar): New.
209 * src/conflicts.c (count_rr_conflicts): Fix.
211 2002-01-06 Akim Demaille <akim@epita.fr>
213 Creating package.m4 from configure.ac causes too many problems.
215 * tests/Makefile.am (package.m4): Create it by hand,
216 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
218 2002-01-06 Akim Demaille <akim@epita.fr>
220 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
223 2002-01-04 Paul Eggert <eggert@twinsun.com>
225 * doc/bison.texinfo (Debugging):
226 Remove YYSTDERR; it's no longer defined or used.
227 Also, s/cstdio.h/cstdio/.
229 2002-01-03 Akim Demaille <akim@epita.fr>
231 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
233 2002-01-03 Akim Demaille <akim@epita.fr>
235 * src/parse-skel.y (process_skeleton): Don't bind the parser's
236 tracing code to --trace, wait for a better --trace option, with
239 2002-01-03 Akim Demaille <akim@epita.fr>
241 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
242 The ISO C++ standard is extremely clear about it: stderr is
243 considered a macro, not a regular symbol (see table 94 `Header
244 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
245 Therefore std:: does not apply to it. It still does with fprintf.
246 Also, s/cstdio.h/cstdio/.
248 2002-01-03 Akim Demaille <akim@epita.fr>
250 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
251 for non system headers.
253 2002-01-02 Akim Demaille <akim@epita.fr>
255 Equip the skeleton chain with location tracking, runtime trace,
256 pure parser and scanner.
258 * src/parse-skel.y: Request a pure parser, locations, and prefix
260 (%union): Having several members with the same type does not help
261 type mismatches, simplify.
262 (YYPRINT, yyprint): New.
263 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
266 * src/scan-skel.l: Adjust to these changes.
267 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
268 (LOCATION_PRINT, skel_control_t): New.
270 2001-12-30 Akim Demaille <akim@epita.fr>
272 * src/parse-skel.y: Get rid of the shift/reduce conflict:
273 replace `gb' with BLANKS.
274 * src/scan-skel.l: Adjust.
276 2001-12-30 Akim Demaille <akim@epita.fr>
278 * src/system.h: We don't need nor want bcopy.
279 Throw away MS-DOS crap: we don't need getpid.
280 * configure.in: We don't need strndup. It was even causing
281 problems: because Flex includes the headers *before* us,
282 _GNU_SOURCE is not defined by config.h, and therefore strndup was
284 * lib/xstrndup.c: New.
285 * src/scan-skel.l: Use it.
286 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
287 * src/parse-skel.y: Use %directives instead of #defines.
289 2001-12-30 Akim Demaille <akim@epita.fr>
291 * src/skeleton.h: New.
292 * src/output.c (output_parser, output_master_parser): Remove, dead
294 * src/output.h (get_lines_number, actions_output, guards_output)
295 (token_definitions_output): Prototype them.
296 * src/parse-skel.y: Add the license notice.
297 Include output.h and skeleton.h.
298 (process_skeleton): Returns void, and takes a single parameter.
299 * src/scan-skel.l: Add the license notice.
301 Don't use %option yylineno: it seems that then Flex imagines
302 REJECT has been used, and therefore it won't reallocate its
303 buffers (which makes no other sense to me than a bug). It results
304 in warnings for `unused: yy_flex_realloc'.
306 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
308 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
309 (MUSCLE_INSERT_PREFIX): ...to there.
310 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
311 (MUSCLE_INSERT_PREFIX): Move from here...
313 * src/bison.hairy: Add a section directive. Put braces around muscle
314 names. This parser skeleton is still broken, but Bison should not
315 choke on a bad muscle 'syntax'.
316 * src/bison.simple: Add a section directive. Put braces around muscle
319 * src/files.h (strsuffix, stringappend): Add declarations.
320 (tab_extension): Add declaration.
321 (short_base_name): Add declaration.
323 * src/files.c (strsuffix, stringappend): No longer static. These
324 functions are used in the skeleton parser.
325 (tab_extension): New.
326 (compute_base_names): Use the computations done in this function
327 to guess if the generated parsers should have '.tab' in their
329 (short_base_name): No longer static.
331 * src/output.c (output_skeleton): New.
332 (output): Disable call to output_master_parser, and give a try to
333 a new skeleton handling system.
334 (guards_output, actions_output): No longer static.
335 (token_definitions_output, get_lines_number): No longer static.
337 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
339 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
342 * src/parse-skel.y: New file.
343 * src/scan-skel.l: New file.
345 2001-12-29 Akim Demaille <akim@epita.fr>
347 %name-prefix is broken.
349 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
350 Adjust all dependencies.
351 * tests/headers.at (export YYLTYPE): Strengthen this test: use
354 Renaming yylval but not yylloc is not consistent. Now we do.
356 * src/bison.simple: Prefix yylloc if used.
357 * doc/bison.texinfo (Decl Summary): Document that.
359 2001-12-29 Akim Demaille <akim@epita.fr>
361 * doc/bison.texinfo: Promote `%long-directive' over
363 Remove all references to fixed-output-files, yacc is enough.
365 2001-12-29 Akim Demaille <akim@epita.fr>
367 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
368 user prologue. These are defaults.
369 * tests/actions.at (Mid-rule actions): Make sure the user can
370 define YYDEBUG and YYERROR_VERBOSE.
372 2001-12-29 Akim Demaille <akim@epita.fr>
374 * src/output.c (header_output): Don't forget to export YYLTYPE and
376 * tests/headers.at (export YYLTYPE): New, make sure it does.
377 * tests/regression.at (%union and --defines, Invalid CPP headers):
379 * tests/headers.at: here.
381 2001-12-29 Akim Demaille <akim@epita.fr>
383 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
385 2001-12-29 Akim Demaille <akim@epita.fr>
387 * tests/actions.at (Mid-rule actions): Output on a single line
390 2001-12-29 Akim Demaille <akim@epita.fr>
392 * doc/bison.texinfo: Formatting changes.
394 2001-12-29 Akim Demaille <akim@epita.fr>
396 Don't store the token defs in a muscle, just be ready to output it
397 on command. Now possible via `symbols'. Fixes a memory leak.
399 * src/output.c (token_definitions_output): New.
400 (output_parser, header_output): Use it.
401 * src/reader.c (symbols_save): Remove.
403 2001-12-29 Akim Demaille <akim@epita.fr>
405 * src/bison.simple: Do not provide a default for YYSTYPE and
406 YYLTYPE before the user's prologue. Otherwise it's hardly... a
409 2001-12-29 Akim Demaille <akim@epita.fr>
411 Mid-rule actions are simply... ignored!
413 * src/reader.c (readgram): Be sure to attach mid-rule actions to
414 the empty-rule associated to the dummy symbol, not to the host
416 * tests/actions.at (Mid-rule actions): New.
418 2001-12-29 Akim Demaille <akim@epita.fr>
422 * src/reader.c (reader): Free grammar.
424 2001-12-29 Akim Demaille <akim@epita.fr>
428 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
429 since it allocates it for each state, although only one is needed.
430 (allocate_storage): Do it here.
432 2001-12-29 Akim Demaille <akim@epita.fr>
434 * src/options.h, src/options.c (create_long_option_table): Rename
436 (long_option_table_new): this, with a clearer prototype.
437 (percent_table): Remove, unused,
438 * src/getargs.c (getargs): Adjust.
440 2001-12-29 Akim Demaille <akim@epita.fr>
442 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
443 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
446 2001-12-29 Akim Demaille <akim@epita.fr>
448 * src/lalr.c (build_relations): Rename `states' as `states1'.
449 Sorry, I don't understand exactly what it is, no better name...
451 2001-12-29 Akim Demaille <akim@epita.fr>
453 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
454 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
455 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
458 2001-12-29 Akim Demaille <akim@epita.fr>
460 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
463 2001-12-29 Akim Demaille <akim@epita.fr>
465 * src/reader.c, src/reader.h (user_toknums): Remove.
466 Adjust all users to use symbols[i]->user_token_number.
468 2001-12-29 Akim Demaille <akim@epita.fr>
470 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
471 Adjust all users to use symbols[i]->prec or ->assoc.
473 2001-12-29 Akim Demaille <akim@epita.fr>
475 * src/reader.c, src/reader.h (tags): Remove.
476 Adjust all users to use symbols[i]->tag.
478 2001-12-29 Akim Demaille <akim@epita.fr>
480 * src/gram.h, src/gram.c (symbols): New, similar to state_table
482 * src/reader.c (packsymbols): Fill this table.
484 * src/conflicts.c (resolve_sr_conflict): Adjust.
485 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
487 Use symbols[i]->tag instead of tags[i].
489 2001-12-29 Akim Demaille <akim@epita.fr>
491 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
492 In addition, put a comment in there, to replace...
493 * tests/regression.at (%union and C comments): Remove.
495 2001-12-29 Akim Demaille <akim@epita.fr>
497 * tests/regression.at (Web2c Actions): Blindly move the actual
498 output as expected output. The contents *seem* right to me, but I
499 can't pretend reading perfectly parser tables... Nonetheless, all
500 the other tests pass correctly, the table look OK, even though the
501 presence of `$axiom' is to be noted: AFAICS it is useless (but
504 2001-12-29 Akim Demaille <akim@epita.fr>
506 * src/reader.c (readgram): Don't add the rule 0 if there were no
507 rules read. In other words, add it _after_ having performed
508 grammar sanity checks.
509 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
511 2001-12-29 Akim Demaille <akim@epita.fr>
513 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
514 visible, and some states have now a different number.
516 2001-12-29 Akim Demaille <akim@epita.fr>
518 * src/reader.c (readgram): Bind the initial rule's lineno to that
520 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
521 (Solved SR Conflicts): Adjust rule 0's line number.
523 2001-12-29 Akim Demaille <akim@epita.fr>
525 Fix the `GAWK Grammar' failure.
527 * src/LR0.c (final_state): Initialize to -1 so that we do compute
528 the reductions of the first state which was mistakenly confused
529 with the final state because precisely final_state was initialized
531 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
532 now noticed by Bison.
533 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
534 have a reduction on $default.
536 2001-12-29 Akim Demaille <akim@epita.fr>
538 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
540 * src/closure.c (print_closure): Likewise.
541 * src/derives.c (print_derives): Likewise.
542 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
545 2001-12-29 Akim Demaille <akim@epita.fr>
547 * src/lalr.c (lookaheads_print): New.
548 (lalr): Call it when --trace-flag.
549 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
552 2001-12-29 Akim Demaille <akim@epita.fr>
554 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
555 when walking through ritem, even via rule->rhs.
556 * src/reduce.c (dump_grammar, useful_production, reduce_output)
557 (useful_production, useless_nonterminals): Likewise.
558 (reduce_grammar_tables): Likewise, plus update nritems.
559 * src/nullable.c (set_nullable): Likewise.
560 * src/lalr.c (build_relations): Likewise.
561 * tests/sets.at (Nullable): Adjust.
562 Fortunately, now, the $axiom is no longer nullable.
564 2001-12-29 Akim Demaille <akim@epita.fr>
566 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
568 * src/gram.c (ritem_longest_rhs): Likewise.
569 * src/reduce.c (nonterminals_reduce): Likewise.
570 * src/print_graph.c (print_graph): Likewise.
571 * src/output.c (output_rule_data): Likewise.
572 * src/nullable.c (set_nullable): Likewise.
574 2001-12-29 Akim Demaille <akim@epita.fr>
576 * src/output.c: Comment changes.
578 2001-12-27 Paul Eggert <eggert@twinsun.com>
580 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
581 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
582 Sparc, as they were causing more porting problems than the
583 (minor) performance improvement was worth.
585 Also, catch up with 1.31's YYSTD.
587 2001-12-27 Akim Demaille <akim@epita.fr>
589 * src/output.c (output_gram): Rely on nritems, not the
590 0-sentinel. See below.
591 Use -1 as separator, not 0.
592 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
593 Rely on -1 as separator in yyrhs, instead of 0.
594 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
595 twice `Now at end of input', therefore there are two lines less to
598 2001-12-27 Akim Demaille <akim@epita.fr>
600 * tests/regression.at (Unresolved SR Conflicts):
601 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
604 2001-12-27 Akim Demaille <akim@epita.fr>
606 * src/LR0.c (new_state): Recognize the final state by the fact it
607 is reached by eoftoken.
608 (insert_start_shifting_state, insert_eof_shifting_state)
609 (insert_accepting_state, augment_automaton): Remove, since now
610 these states are automatically computed from the initial state.
611 (generate_states): Adjust.
612 * src/print.c: When reporting a rule number to the user, substract
613 1, so that the axiom rule is rule 0, and the first user rule is 1.
614 * src/reduce.c: Likewise.
615 * src/print_graph.c (print_core): For the time being, just as for
616 the report, depend upon --trace-flags to dump the full set of
618 * src/reader.c (readgram): Once the grammar read, insert the rule
619 0: `$axiom: START-SYMBOL $'.
620 * tests/set.at: Adjust: rule 0 is now displayed, and since the
621 number of the states has changed (the final state is no longer
622 necessarily the last), catch up.
624 2001-12-27 Akim Demaille <akim@epita.fr>
626 Try to make the use of the eoftoken valid. Given that its value
627 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
628 is used instead of > 0 where appropriate, (ii), depend upon nritems
629 instead of the 0-sentinel.
631 * src/gram.h, src/gram.c (nritems): New.
632 Expected to be duplication of nitems, but for the time being...
633 * src/reader.c (packgram): Assert nritems and nitems are equal.
634 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
635 * src/closure.c (print_closure, print_fderives): Likewise.
636 * src/gram.c (ritem_print): Likewise.
637 * src/print.c (print_core, print_grammar): Likewise.
638 * src/print_graph.c: Likewise.
640 2001-12-27 Akim Demaille <akim@epita.fr>
642 * src/main.c (main): If there are complains after grammar
643 reductions, then output the report anyway if requested, then die.
644 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
645 * src/reader.c (eoftoken): New.
646 (parse_token_decl): If the token being defined has value `0', it
648 (packsymbols): No longer hack `tags' to insert `$' by hand.
649 Be sure to preserve the value of the eoftoken.
650 (reader): Make sure eoftoken is defined.
651 Initialize nsyms to 0: now eoftoken is created just like the others.
652 * src/print.c (print_grammar): Don't special case the eof token.
653 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
654 lie anyway, albeit pleasant.
655 * tests/calc.at: Exercise error messages with eoftoken.
656 Change the grammar so that empty input is invalid.
658 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
660 2001-12-27 Akim Demaille <akim@epita.fr>
662 * configure.in: Check the protos of strchr ans strspn.
663 Replace strchr if needed.
664 * src/system.h: Provide the protos of strchr, strspn and memchr if
667 * src/reader.c (symbols_save): Use strchr.
669 2001-12-27 Akim Demaille <akim@epita.fr>
671 * src/print.c, src/print_graph.c (escape): New.
672 Use it to quote the TAGS outputs.
673 * src/print_graph.c (print_state): Now errors are in red, and
675 Prefer high to wide: output the state number on a line of its own.
677 2001-12-27 Akim Demaille <akim@epita.fr>
679 * src/state.h, src/state.c (reductions_new): New.
680 * src/LR0.c (set_state_table): Let all the states have a
681 `reductions', even if reduced to 0.
682 (save_reductions): Adjust.
683 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
684 * src/print.c (print_reductions, print_actions): Adjust.
685 * src/output.c (action_row): Adjust.
687 2001-12-27 Akim Demaille <akim@epita.fr>
689 * src/state.h, src/state.c (errs_new, errs_dup): New.
690 * src/LR0.c (set_state_table): Let all the states have an errs,
691 even if reduced to 0.
692 * src/print.c (print_errs, print_reductions): Adjust.
693 * src/output.c (output_actions, action_row): Adjust.
694 * src/conflicts.c (resolve_sr_conflict): Adjust.
696 2001-12-27 Akim Demaille <akim@epita.fr>
698 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
700 2001-12-27 Akim Demaille <akim@epita.fr>
702 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
704 (lookaheadset, shiftset): New, used as additional storage by
706 (print_results): Adjust.
707 (print_shifts, print_gotos, print_errs): New, extracted from...
708 (print_actions): here.
709 * src/print_graph.c (print_actions): Remove dead code.
711 2001-12-27 Akim Demaille <akim@epita.fr>
713 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
716 2001-12-27 Akim Demaille <akim@epita.fr>
718 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
719 (build_relations): Adjust.
721 2001-12-27 Akim Demaille <akim@epita.fr>
723 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
726 2001-12-27 Akim Demaille <akim@epita.fr>
728 * src/reader.c (packgram): Catch nitems overflows.
730 2001-12-27 Akim Demaille <akim@epita.fr>
732 * src/files.c, src/files.h (guard_obstack): Remove.
733 * src/output.c (output): Adjust.
734 * src/reader.c (parse_braces): New, factoring...
735 (copy_action, copy_guard): these two which are renamed as...
736 (parse_action, parse_guard): these.
737 As a voluntary consequence, using braces around guards is now
740 2001-12-27 Akim Demaille <akim@epita.fr>
742 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
743 * src/reader.c (symbol_list): `guard' and `guard_line' are new
745 (symbol_list_new): Adjust.
746 (copy_action): action_line is the first line, not the last.
747 (copy_guard): Just as for actions, store the `action' only, not
748 the switch/case/break flesh.
749 Don't parse the user action that might follow the guard, let...
750 (readgram): do it, i.e., now, there can be an action after a
752 In other words the guard is just explicitly optional.
754 * src/output.c (guards_output): New.
755 (output_parser): Call it when needed.
756 (output): Also free the guard and attrs obstacks.
757 * src/files.c, src/files.h (obstack_save): Remove.
758 (output_files): Remove.
759 As a result, if one needs the former `.act' file, using an
760 appropriate skeleton which requires actions and guards is now
762 * src/main.c (main): Adjust.
763 * tests/semantic.at: New.
764 * tests/regression.at: Use `input.y' as input file name.
765 Avoid 8+3 problems by requiring input.c when the test needs the
768 2001-12-27 Akim Demaille <akim@epita.fr>
770 * src/reader.c (symbol_list_new): Be sure to initialize all the
773 2001-12-27 Akim Demaille <akim@epita.fr>
775 All the hacks using a final pseudo state are now useless.
777 * src/LR0.c (set_state_table): state_table holds exactly nstates.
778 * src/lalr.c (nLA): New.
779 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
780 instead of lookaheadsp from the pseudo state (nstate + 1).
782 2001-12-27 Akim Demaille <akim@epita.fr>
784 * src/output.c (action_row, token_actions): Use a state_t instead
785 of a integer, and nlookaheads instead of the following state's
788 2001-12-27 Akim Demaille <akim@epita.fr>
790 * src/conflicts.c (log_resolution, flush_shift)
791 (resolve_sr_conflict, set_conflicts, solve_conflicts)
792 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
793 (conflicts_print, print_reductions): Use a state_t instead of an
794 integer when referring to a state.
795 As much as possible, depend upon nlookaheads, instead of the
796 `lookaheadsp' member of the following state (since lookaheads of
797 successive states are successive, the difference between state n + 1
798 and n served as the number of lookaheads for state n).
799 * src/lalr.c (add_lookback_edge): Likewise.
800 * src/print.c (print_core, print_actions, print_state)
801 (print_results): Likewise.
802 * src/print_graph.c (print_core, print_actions, print_state)
803 (print_graph): Likewise.
804 * src/conflicts.h: Adjust.
806 2001-12-27 Akim Demaille <akim@epita.fr>
808 * src/bison.hairy: Formatting/comment changes.
810 Remove `register' indications.
811 Add plenty of `static'.
813 2001-12-27 Akim Demaille <akim@epita.fr>
815 * src/output.c (prepare): Drop the muscle `ntbase' which
817 * src/bison.simple: Formatting/comment changes.
818 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
819 is an undocumented synonym.
821 2001-12-22 Akim Demaille <akim@epita.fr>
823 * src/output.c (output_table_data): Change the prototype to use
824 `int' for array ranges: some invocations do pass an int, not a
826 Reported by Wayne Green.
828 2001-12-22 Akim Demaille <akim@epita.fr>
830 Some actions of web2c.y are improperly triggered.
831 Reported by Mike Castle.
833 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
834 * tests/regression.at (Web2c): Rename as...
835 (Web2c Report): this.
836 (Web2c Actions): New.
838 2001-12-22 Akim Demaille <akim@epita.fr>
840 Reductions in web2c.y are improperly reported.
841 Reported by Mike Castle.
843 * src/conflicts.c (print_reductions): Fix.
844 * tests/regression.at (Web2c): New.
846 2001-12-18 Akim Demaille <akim@epita.fr>
848 Some host fail on `assert (!"foo")', which expands to
849 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
850 Reported by Nelson Beebee.
852 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
853 `#define it_succeeded 0' and `assert (it_succeeded)'.
855 2001-12-17 Marc Autret <autret_m@epita.fr>
857 * src/bison.simple: Don't hard code the skeleton line and filename.
858 * src/output.c (output_parser): Rename 'line' as 'output_line'.
859 New line counter 'skeleton_line' (skeleton-line muscle).
861 2001-12-17 Paul Eggert <eggert@twinsun.com>
863 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
864 YYDEBUG must be defined to a nonzero value.
866 * src/bison.simple (yytname): Do not assume that the user defines
867 YYDEBUG to a properly parenthesized expression.
869 2001-12-17 Akim Demaille <akim@epita.fr>
871 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
872 nlookaheads is a new member.
874 * src/lalr.h (nlookaheads): Remove this orphan declaration.
875 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
878 2001-12-17 Akim Demaille <akim@epita.fr>
880 * src/files.h, src/files.c (open_files, close_files): Remove.
881 * src/main.c (main): Don't open/close files, nor invoke lex_free,
883 * src/reader.c (reader): Do it.
885 2001-12-17 Akim Demaille <akim@epita.fr>
887 * src/conflicts.c (print_reductions): Formatting changes.
889 2001-12-17 Akim Demaille <akim@epita.fr>
891 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
893 (resolve_sr_conflict): Adjust.
895 2001-12-17 Akim Demaille <akim@epita.fr>
897 * src/output.c (output_obstack): Be static and rename as...
898 (format_obstack): this, to avoid any confusion with files.c's
900 * src/reader.h (muscle_obstack): Move to...
901 * src/output.h: here, since it's defined in output.c.
903 2001-12-17 Akim Demaille <akim@epita.fr>
905 * src/output.c (action_row, save_column, default_goto)
906 (sort_actions, matching_state, pack_vector): Better variable
909 2001-12-17 Akim Demaille <akim@epita.fr>
911 * src/output.c: Various formatting changes.
913 2001-12-17 Akim Demaille <akim@epita.fr>
915 * src/files.c (output_files): Free the output_obstack.
916 * src/main.c (main): Call print and print_graph conditionally.
917 * src/print.c (print): Work unconditionally.
918 * src/print_graph.c (print_graph): Work unconditionally.
919 * src/conflicts.c (log_resolution): Output only if verbose_flag.
921 2001-12-16 Marc Autret <autret_m@epita.fr>
923 * src/output.c (actions_output): Fix. When we use %no-lines,
924 there is one less line per action.
926 2001-12-16 Marc Autret <autret_m@epita.fr>
928 * src/bison.simple: Remove a useless #line directive.
929 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
930 * src/output.c (get_lines_number): New.
931 (output_parser): Adjust, now takes care about the lines of a
934 (actions_output): Computes the number of lines taken by actions.
935 (output_master_parser): Insert new skeleton which is the name of
936 the output parser file name.
938 2001-12-15 Marc Autret <autret_m@epita.fr>
940 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
942 2001-12-15 Marc Autret <autret_m@epita.fr>
944 * src/output.c (output_gram): Keep track of the hairy one.
946 2001-12-15 Akim Demaille <akim@epita.fr>
948 Make `make distcheck' work.
950 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
951 system.h which uses libgettext.h.
953 2001-12-15 Akim Demaille <akim@epita.fr>
955 * src/nullable.c (set_nullable): Useless rules must be skipped,
956 otherwise, since we range over their symbols, we might look at a
957 nonterminal which no longer ``exists'', i.e., it is not counted in
958 `nvars', hence we overflow our arrays.
960 2001-12-15 Akim Demaille <akim@epita.fr>
962 The header can also be produced directly, without any obstack!
965 * src/files.c, src/files.h (defines_obstack): Remove.
966 (compute_header_macro): Global.
967 (defines_obstack_save): Remove.
968 * src/reader.c (parse_union_decl): No longer output to
969 defines_obstack: its content can be found in the `stype' muscle
971 (output_token_translations): Merge into...
972 (symbols_output): this.
974 (symbols_save): this.
976 * src/output.c (header_output): New.
979 2001-12-15 Akim Demaille <akim@epita.fr>
981 * src/reader.c (parse_union_decl): Instead of handling two obstack
982 simultaneously, use one to define the `stype' muscle, and use the
983 value of the latter to fill defines_obstack.
984 (copy_comment): Remove.
985 (copy_comment2): Work for a single obstack.
987 (copy_comment): this.
989 2001-12-15 Akim Demaille <akim@epita.fr>
991 * src/lex.c, src/lex.h (xgetc): No longer static.
992 * src/reader.c (parse_union_decl): Revamp.
994 2001-12-15 Akim Demaille <akim@epita.fr>
996 Still making progress in separating Bison into (i) input, (ii)
997 process, (iii) output: now we can directly output the parser file
998 without using table_obstack at all.
1000 * src/files.c, src/files.h (table_obstack): Bye bye.
1001 (parser_file_name): New.
1002 * src/files.c (compute_output_file_names): Compute it.
1003 * src/output.c (actions_output, output_parser)
1004 (output_master_parser): To a file instead of an obstack.
1006 2001-12-15 Akim Demaille <akim@epita.fr>
1008 Attach actions to rules, instead of pre-outputting them to
1011 * src/gram.h (rule_t): action and action_line are new members.
1012 * src/reader.c (symbol_list): Likewise.
1013 (copy_action): Save the actions within the rule.
1014 (packgram): Save them in rule_table.
1015 * src/output.c (actions_output): New.
1016 (output_parser): Use it on `%%actions'.
1017 (output_rule_data): Don't free rule_table.
1019 (prepare): Don't save the `action' muscle.
1020 * src/bison.simple: s/%%action/%%actions/.
1022 2001-12-15 Akim Demaille <akim@epita.fr>
1024 * src/reader.c (copy_action): When --yacc, don't append a `;'
1025 to the user action: let it fail if lacking.
1026 Suggested by Arnold Robbins and Tom Tromey.
1028 2001-12-14 Akim Demaille <akim@epita.fr>
1030 * src/lex.c (literalchar): Simply return the char you decoded, non
1031 longer mess around with obstacks and int pointers.
1034 2001-12-14 Akim Demaille <akim@epita.fr>
1036 * src/lex.c (literalchar): Don't escape the special characters,
1037 just decode them, and keep them as char (before, eol was output as
1038 the 2 char string `\n' etc.).
1039 * src/output.c (output_rule_data): Use quotearg to output the
1042 2001-12-13 Paul Eggert <eggert@twinsun.com>
1044 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
1045 Do not infringe on the global user namespace when using C++.
1046 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
1047 All uses of `fprintf' and `stderr' changed.
1049 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
1051 2001-12-13 Akim Demaille <akim@epita.fr>
1053 The computation of nullable is broken: it doesn't handle empty
1056 * tests/torture.at (GNU AWK Grammar): New.
1057 * tests/sets.at (Nullable): New.
1058 * src/nullable.c (set_nullable): Instead of blindly looping over
1059 `ritems', loop over the rules, and then over their rhs's.
1061 Work around Autotest bugs.
1063 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
1064 frame, because Autotest understand lines starting with a `+' as
1065 traces from the shell. Then, they are not processed properly.
1066 Admittedly an Autotest bug, but we don't have time to wait for
1067 Autotest to catch up.
1068 * tests/regression.at (Broken Closure): Adjust to the new table
1071 * tests/sets.at: here.
1073 2001-12-13 Akim Demaille <akim@epita.fr>
1075 * src/closure.c (closure): Use nrules instead of playing tricks
1078 2001-12-13 Akim Demaille <akim@epita.fr>
1080 * src/print.c (print_actions): Output the handling of `$' as the
1081 traces do: shifting the token EOF. Before EOF was treated as a
1083 * tests/regression.at: Adjust some tests.
1084 * src/print_graph.c (print_core): Complete the set of items via
1085 closure. The next-to-final and final states are still unsatisfying,
1086 but that's to be addressed elsewhere.
1087 No longer output the rule numbers, but do output the state number.
1088 A single loop for the shifts + gotos is enough, but picked a
1089 distinct color for each.
1090 (print_graph): Initialize and finalize closure.
1092 2001-12-13 Akim Demaille <akim@epita.fr>
1094 * src/reader.c (readgram): Remove dead code, an strip useless
1096 (get_type): Remove, unused.
1098 2001-12-12 Akim Demaille <akim@epita.fr>
1100 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
1101 on that of lib/error.c.
1103 2001-12-12 Akim Demaille <akim@epita.fr>
1105 Some hosts don't like `/' in includes.
1107 * src/system.h: Include libgettext.h without qualifying the path.
1108 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
1111 2001-12-11 Marc Autret <autret_m@epita.fr>
1113 * src/output.c (output_parser): Remove useless muscle.
1115 2001-12-11 Marc Autret <autret_m@epita.fr>
1117 * src/bison.simple: Remove #line just before %%epilogue. It
1118 is now handled in ...
1119 * src/reader.c (read_additionnal_code): Add the output of a
1120 #line for the epilogue.
1122 2001-12-10 Marc Autret <autret_m@epita.fr>
1124 * src/reader.c (copy_definition): Re-use CPP-outed code which
1125 replace precedent remove.
1126 * src/bison.simple: Remove #line before %%prologue because
1127 %%input-line is wrong at this time.
1129 2001-12-10 Marc Autret <autret_m@epita.fr>
1131 * src/reader.c (symbols_output): Clean up.
1132 * src/output.c (output_gram, output): Clean up.
1134 2001-12-10 Akim Demaille <akim@epita.fr>
1136 * src/lalr.c (initialize_lookaheads): New. Extracted from...
1137 * src/LR0.c (set_state_table): here.
1138 * src/lalr.c (lalr): Call it.
1140 2001-12-10 Akim Demaille <akim@epita.fr>
1142 * src/state.h (shifts): Remove the `number' member: shifts are
1143 attached to state, hence no longer need to be labelled with a
1146 2001-12-10 Akim Demaille <akim@epita.fr>
1148 Now that states have a complete set of members, the linked list of
1149 shifts is useless: just fill directly the state's shifts member.
1151 * src/state.h (shifts): Remove the `next' member.
1152 * src/LR0.c (first_state, last_state): Remove.
1154 (augment_automaton): Don't look for the shifts that must be added
1155 a shift on EOF: it is those of the state we looked for! But now,
1156 since shifts are attached, it is no longer needed to looking
1157 merely by its id: its number.
1159 2001-12-10 Akim Demaille <akim@epita.fr>
1161 * src/LR0.c (augment_automaton): Better variable locality.
1162 Remove an impossible branch: if there is a state corresponding to
1163 the start symbol being shifted, then there is shift for the start
1164 symbol from the initial state.
1166 2001-12-10 Akim Demaille <akim@epita.fr>
1168 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
1169 only when appropriate: when insert_start_shifting_state' is not
1171 * tests/regression.at (Rule Line Numbers): Adjust.
1173 2001-12-10 Akim Demaille <akim@epita.fr>
1175 * src/LR0.c (augment_automaton): Now that all states have shifts,
1176 merge the two cases addition shifts to the initial state.
1178 2001-12-10 Akim Demaille <akim@epita.fr>
1180 * src/lalr.c (set_state_table): Move to...
1182 * src/lalr.c (lalr): Don't call it...
1183 * src/LR0.c (generate_states): do it.
1184 * src/LR0.h (first_state): Remove, only the table is used.
1186 2001-12-10 Akim Demaille <akim@epita.fr>
1188 * src/LR0.h (first_shift, first_reduction): Remove.
1189 * src/lalr.c: Don't use first_shift: find shifts through the
1192 2001-12-10 Akim Demaille <akim@epita.fr>
1194 * src/LR0.c: Attach shifts to states as soon as they are
1196 * src/lalr.c (set_state_table): Instead of assigning shifts to
1197 state, just assert that the mapping was properly done.
1199 2001-12-10 Akim Demaille <akim@epita.fr>
1201 * src/LR0.c (insert_start_shift): Rename as...
1202 (insert_start_shifting_state): this.
1203 (insert_eof_shifting_state, insert_accepting_state): New.
1204 (augment_automaton): Adjust.
1205 Better locality of the variables.
1206 When looking if the start_symbol is shifted from the initial
1207 state, using `while (... symbol != start_symbol ...)' sounds
1208 better than `while (... symbol < start_symbol ...)': If fail
1209 to see how the order between symbols could be relevant!
1211 2001-12-10 Akim Demaille <akim@epita.fr>
1213 * src/getargs.h: Don't declare `spec_name_prefix' and
1214 `spec_file_prefix', declared by src/files.h.
1215 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
1216 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
1217 * src/output.c (prepare): Adjust.
1218 * src/reader.c (symbols_output): Likewise.
1219 * src/vmsgetargs.c: Vaguely adjust, but who cares?
1221 2001-12-10 Akim Demaille <akim@epita.fr>
1223 * src/muscle_tab.c (muscle_init): NULL is a better default than
1226 2001-12-10 Akim Demaille <akim@epita.fr>
1228 * src/reader.c (reader): Calling symbols_output once is enough.
1230 2001-12-10 Akim Demaille <akim@epita.fr>
1232 Now that states have a complete set of members, the linked list of
1233 reductions is useless: just fill directly the state's reductions
1236 * src/state.h (struct reductions): Remove member `number' and
1238 * src/LR0.c (first_reduction, last_reduction): Remove.
1239 (save_reductions): Don't link the new reductions, store them in
1241 * src/lalr.c (set_state_table): No need to attach reductions to
1242 states, it's already done.
1243 * src/output.c (output_actions): No longer free the shifts, then
1244 the reductions, then the states: free all the states and their
1247 2001-12-10 Akim Demaille <akim@epita.fr>
1249 * src/options.c (OPTN, DRTV, BOTH): New.
1250 (option_table): Use them.
1252 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
1253 the job of system.h.
1254 * src/options.c: Don't include stdio.h and xalloc.h for the same
1257 2001-12-10 Akim Demaille <akim@epita.fr>
1259 * src/output.c (output, prepare): Make sure the values of the
1260 muscles `action' and `prologue' are 0-terminated.
1262 2001-12-10 Akim Demaille <akim@epita.fr>
1264 Clean up GCC warnings.
1266 * src/reader.c (copy_action): `buf' is not used.
1267 (parse_skel_decl): Be static.
1268 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
1269 * src/options.h (create_long_option_table): Have a real prototype.
1270 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
1271 (hash_delete_at): Return const void *.
1272 Adjust casts to preserve the const.
1274 2001-12-10 Akim Demaille <akim@epita.fr>
1276 * configure.in: Require 2.52g.
1277 M4 is not needed, but AUTOM4TE is.
1279 * tests/Makefile.am: Adjust.
1281 2001-12-10 Akim Demaille <akim@epita.fr>
1283 One structure for states is enough, even though theoretically
1284 there are LR(0) states and LALR(1) states.
1286 * src/lalr.h (state_t): Remove.
1287 (state_table): Be state_t **, not state_t *.
1288 * src/state.h (core, CORE_ALLOC): Rename as...
1289 (state_t, STATE_ALLOC): this.
1290 Add the LALR(1) members: shifts, reductions, errs.
1291 * src/LR0.c (state_table): Rename as...
1292 (state_hash): this, to avoid name clashes with the global
1294 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
1295 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
1297 2001-12-10 Akim Demaille <akim@epita.fr>
1299 Bison dumps core on bash.y.
1300 Reported by Pascal Bart.
1302 * src/warshall.c (bitmatrix_print): New.
1304 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
1305 j must be the outer loop.
1306 * tests/regression.at (Broken Closure): New.
1308 2001-12-05 Akim Demaille <akim@epita.fr>
1310 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
1312 Reported by Peter Hámorský.
1314 2001-12-05 Akim Demaille <akim@epita.fr>
1316 * src/conflicts.c (err_table): Remove.
1317 (resolve_sr_conflict): Adjust.
1318 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
1320 (state_t.reductions, state_t.shifts): this.
1322 2001-12-05 Akim Demaille <akim@epita.fr>
1324 * src/reduce.c (reduce_grammar_tables): No longer disable the
1325 removal of useless rules via CPP but via `if (0)', so that the
1326 compiler still check the code is valid.
1327 For instance, it should have noticed `rline' no longer exists: use
1328 the `line' member of rule_t.
1329 * src/gram.c (dummy, rline): Remove, unused.
1331 2001-12-05 Akim Demaille <akim@epita.fr>
1333 * src/output.c (pack_vector): Use assert, not berror.
1334 * src/main.c (berror): Remove, unused.
1336 2001-12-05 Akim Demaille <akim@epita.fr>
1338 New experimental feature: if --verbose --trace output all the
1339 items of a state, not only its kernel.
1341 * src/print.c (print_core): If `trace_flag', then invoke closure
1342 before outputting the items of the state (print_core is no longer
1343 a correct name them).
1344 (print_results): Invoke new_closure/free_closure if needed.
1346 2001-12-05 Akim Demaille <akim@epita.fr>
1348 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
1349 * src/closure.c, src/closure.h (itemsetsize): Rename as...
1350 (nitemset): for consistency with the rest of the project.
1352 2001-12-05 Akim Demaille <akim@epita.fr>
1354 * src/closure.c (print_closure): Improve.
1355 (closure): Use it for printing input and output.
1357 2001-12-05 Akim Demaille <akim@epita.fr>
1359 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
1360 indexed by nonterminals.
1362 2001-12-05 Akim Demaille <akim@epita.fr>
1364 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
1366 * src/warshall.h: Remove accidental duplication of the content.
1368 2001-12-05 Akim Demaille <akim@epita.fr>
1370 * src/closure.c (set_fderives): De-obfuscate.
1372 2001-12-05 Akim Demaille <akim@epita.fr>
1374 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
1376 2001-12-05 Akim Demaille <akim@epita.fr>
1378 * src/closure.c (set_firsts): De-obfuscate.
1380 2001-12-05 Akim Demaille <akim@epita.fr>
1382 * src/output.c (action_row): De-obfuscate
1383 using the good o' techniques: arrays not pointers, variable
1384 locality, BITISSET, RESETBIT etc.
1386 2001-12-05 Akim Demaille <akim@epita.fr>
1388 Pessimize the code to simplify it: from now on, all the states
1389 have a valid SHIFTS, which NSHIFTS is possibly 0.
1391 * src/LR0.c (shifts_new): Be global and move to..
1392 * src/state.c, src/state.h: here.
1393 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
1394 * src/print_graph: Adjust.
1396 2001-12-05 Akim Demaille <akim@epita.fr>
1398 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
1399 * src/conflicts.c: Use it.
1400 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
1401 incorrectly ``simplified''.
1403 2001-12-05 Akim Demaille <akim@epita.fr>
1405 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
1406 using the good o' techniques: arrays not pointers, variable
1407 locality, BITISSET, RESETBIT etc.
1409 2001-12-05 Akim Demaille <akim@epita.fr>
1411 * src/state.h (SHIFT_SYMBOL): New.
1412 * src/conflicts.c: Use it to deobfuscate.
1414 2001-12-05 Akim Demaille <akim@epita.fr>
1416 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
1417 (print_reductions): De-obfuscate using the good o' techniques:
1418 arrays not pointers, variable locality, BITISSET.
1420 2001-12-05 Akim Demaille <akim@epita.fr>
1422 * src/conflicts.c (print_reductions): Arrays, not pointers.
1425 2001-12-05 Akim Demaille <akim@epita.fr>
1427 * src/conflicts.c (print_reductions): Pessimize, but clarify.
1429 2001-12-05 Akim Demaille <akim@epita.fr>
1431 * src/conflicts.c (print_reductions): Improve variable locality.
1433 2001-12-05 Akim Demaille <akim@epita.fr>
1435 * src/conflicts.c (print_reductions): Pessimize, but clarify.
1437 2001-12-05 Akim Demaille <akim@epita.fr>
1439 * src/conflicts.c (print_reductions): Improve variable locality.
1441 2001-12-05 Akim Demaille <akim@epita.fr>
1443 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
1444 * src/lalr.c: Use them.
1446 2001-12-05 Akim Demaille <akim@epita.fr>
1448 * src/LR0.c (augment_automaton): Formatting changes.
1449 Better variable locality.
1451 2001-12-05 Akim Demaille <akim@epita.fr>
1453 * src/lalr.c (matrix_print): New.
1454 (transpose): Use it.
1455 Use arrays instead of pointers.
1457 2001-12-05 Akim Demaille <akim@epita.fr>
1459 * src/lalr.c (maxrhs): Move to...
1460 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
1461 * src/lalr.c (build_relations): Adjust.
1463 2001-12-05 Akim Demaille <akim@epita.fr>
1465 * src/lalr.c (transpose): Free the memory allocated to the
1466 argument, as it is replaced by the results by the unique caller.
1467 (build_relations): Merely invoke transpose: it handles the memory
1469 Improve variable locality.
1470 Avoid variables used as mere abbreviations.
1471 (compute_lookaheads): Use arrays instead of pointers.
1473 2001-12-05 Akim Demaille <akim@epita.fr>
1475 * src/lalr.c (initialize_F): Improve variable locality.
1476 Avoid variables used as mere abbreviations.
1478 2001-12-05 Akim Demaille <akim@epita.fr>
1480 * src/derives.c (print_derives): Display the ruleno.
1481 * src/lalr.c (initialize_F, transpose): Better variable locality
1482 to improve readability.
1483 Avoid variables used as mere abbreviations.
1485 2001-12-05 Akim Demaille <akim@epita.fr>
1487 * src/lalr.c (traverse): Use arrays instead of pointers.
1489 2001-12-05 Akim Demaille <akim@epita.fr>
1491 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
1492 the handling of squeue.
1493 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
1495 2001-12-05 Akim Demaille <akim@epita.fr>
1497 Because useless nonterminals are now kept alive (instead of being
1498 `destroyed'), we now sometimes examine them, and store information
1499 related to them. Hence we need to know their number, and adjust
1502 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
1504 * src/LR0.c (allocate_itemsets): The memory allocated to
1505 `symbol_count' was used for two different purpose: once to count
1506 the number of occurrences of each symbol, and later reassigned to
1507 `shift_symbol', containing the symbol that can be shifted from a
1509 Deobfuscate, i.e., allocate, use and free `symbol_count' here
1511 (new_itemsets): Allocate `shift_symbol' here.
1512 (allocate_itemsets): symbol_count includes useless nonterminals.
1514 (free_storage): Use `free', not `XFREE', for pointers that cannot
1517 2001-12-05 Akim Demaille <akim@epita.fr>
1519 * src/nullable.c (set_nullable): Deobfuscate the handling of
1521 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
1523 2001-12-05 Akim Demaille <akim@epita.fr>
1525 * src/gram.c, src/gram.h (ritem_print): New.
1526 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
1527 (This useless function was defined only to work around VMS linkers
1528 that can't handle compilation units with variables only).
1529 * src/reduce.c (dump_grammar): Use it to trace the construction of
1532 2001-12-04 Paul Eggert <eggert@twinsun.com>
1534 * src/bison.simple (union yyalloc): Change member names
1535 to be the same as the stack names.
1536 (yyparse): yyptr is now union yyalloc *, not char *.
1537 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
1538 and may generate better code on some machines.
1539 (yystpcpy): Use prototype if __STDC__ is defined, not just
1540 if __cplusplus is defined.
1542 2001-11-30 Akim Demaille <akim@epita.fr>
1544 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
1545 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
1546 Gettext doesn't compile cleanly, and dies with -Werror.
1547 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
1548 Include WARNING_CFLAGS here.
1549 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
1550 before being defined.
1552 2001-11-27 Paul Eggert <eggert@twinsun.com>
1554 * lib/quotearg.h (quotearg_n, quotearg_n_style):
1555 First arg is int, not unsigned.
1556 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
1557 (SIZE_MAX, UINT_MAX): New macros.
1558 (quotearg_n_options): Abort if N is negative.
1559 Avoid overflow check on hosts where size_t is 64 bits and int
1560 is 32 bits, as overflow is impossible there.
1561 Fix off-by-one typo that caused unnecessary reallocation.
1563 2001-11-29 Paul Eggert <eggert@twinsun.com>
1565 Name space cleanup in generated parser.
1567 * doc/bison.texinfo (Bison Parser): Discuss system headers
1568 and their effect on the user name space.
1571 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
1572 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
1573 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
1575 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
1576 on user names when possible.
1578 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
1579 Simplify test for whather <alloca.h> exists.
1581 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
1583 (<stdio.h>): Include if YYDEBUG.
1585 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
1586 ! defined (yyoverflow) && ! defined (yymemcpy).
1588 (yymemcpy, yyparse): Rename local variables as needed so that
1589 they all begin with 'yy'.
1591 (yystrlen, yystpcpy): New functions.
1593 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
1596 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
1597 instead of relying on string.h functions. Use YYSTACK_ALLOC
1598 and YYSTACK_FREE instead of malloc and free.
1600 2001-11-30 Akim Demaille <akim@epita.fr>
1602 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
1603 before their first uses.
1604 (YYBISON, YYPURE): Move to the top of the output.
1606 2001-11-30 Akim Demaille <akim@epita.fr>
1608 * tests/reduce.at (Useless Nonterminals): Fix.
1610 2001-11-30 Akim Demaille <akim@epita.fr>
1612 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
1613 if body instead of `;' to pacify GCC's warnings.
1615 2001-11-30 Akim Demaille <akim@epita.fr>
1617 Instead of mapping the LHS of unused rules to -1, keep the LHS
1618 valid, but flag the rules as invalid.
1620 * src/gram.h (rule_t): `useful' is a new member.
1621 * src/print.c (print_grammar): Adjust.
1622 * src/derives.c (set_derives): Likewise.
1623 * src/reader.c (packgram, reduce_output): Likewise.
1624 * src/reduce.c (reduce_grammar_tables): Likewise.
1625 * tests/reduce.at (Underivable Rules, Useless Rules): New.
1627 2001-11-30 Akim Demaille <akim@epita.fr>
1629 * src/reduce.c (reduce_output): Formatting changes.
1630 * src/print.c (print_results, print_grammar): Likewise.
1631 * tests/regression.at (Rule Line Numbers)
1632 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
1634 2001-11-30 Akim Demaille <akim@epita.fr>
1636 * src/reduce.c (nonterminals_reduce): Instead of throwing away
1637 useless nonterminals, move them at the end of the symbol arrays.
1638 (reduce_output): Adjust.
1639 * tests/reduce.at (Useless Nonterminals): Adjust.
1641 2001-11-30 Akim Demaille <akim@epita.fr>
1643 * src/reduce.c: Various comment/formatting changes.
1644 (nonterminals_reduce): New, extracted from...
1645 (reduce_grammar_tables): here.
1646 (reduce_grammar): Call nonterminals_reduce.
1648 2001-11-29 Paul Eggert <eggert@twinsun.com>
1650 * src/bison.simple (YYSTACK_REALLOC): Remove.
1651 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
1652 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
1654 (union yyalloc): New type.
1655 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
1656 an arbitrary restriction on hosts where size_t is wider than int.
1658 (yyparse): Don't dump core if alloca or malloc fails; instead, report
1659 a parser stack overflow. Allocate just one block of memory for all
1660 three stacks, instead of allocating three blocks; this typically is
1661 faster and reduces fragmentation.
1663 Do not limit the number of items in the stack to a value that fits
1664 in 'int', as this is an arbitrary limit on hosts with 64-bit
1665 size_t and 32-bit int.
1667 2001-11-29 Marc Autret <autret_m@epita.fr>
1669 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
1670 of defining YYERROR_VERBOSE.
1671 [AT_DATA]: $4 is now out of C declarations in the prologue.
1673 2001-11-28 Marc Autret <autret_m@epita.fr>
1675 * src/reader.c (parse_dquoted_param): New.
1676 (parse_skel_decl): Use it.
1677 * src/lex.h: Add its prototype.
1678 * src/lex.c (literalchar): Become not static.
1680 2001-11-28 Marc Autret <autret_m@epita.fr>
1682 * src/output.h: And put its extern declaration here.
1683 * src/output.c (error_verbose): Define here.
1684 (prepare): Echo name modification.
1685 * src/getargs.h: Clean its extern declaration.
1686 * src/getargs.c (error_verbose_flag): Remove.
1687 (getargs): Remove case 'e'.
1688 * src/options.c (option_table): 'error-verbose' is now seen as simple
1692 * src/reader.c (read_declarations): Remove case tok_include.
1693 (parse_include_decl): Remove.
1694 * src/lex.h (token_t): Remove tok_include.
1695 * src/options.c (option_table): 'include' is now a simple command line
1698 2001-11-28 Marc Autret <autret_m@epita.fr>
1700 * src/bison.simple: Adjust muscle names.
1701 * src/muscle_tab.c (muscle_init): Also rename the muscles.
1702 * src/output.c (prepare): s/_/-/ for the muscles names.
1703 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
1705 2001-11-28 Marc Autret <autret_m@epita.fr>
1707 * src/bison.simple: Fix debug.
1708 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
1710 2001-11-28 Akim Demaille <akim@epita.fr>
1712 * src/LR0.c (shifts_new): New.
1713 (save_shifts, insert_start_shift, augment_automaton): Use it.
1715 2001-11-28 Akim Demaille <akim@epita.fr>
1717 * src/closure.c (closure): `b' and `ruleno' denote the same value:
1720 2001-11-28 Akim Demaille <akim@epita.fr>
1722 * src/closure.c (closure): Instead of looping over word in array
1723 then bits in words, loop over bits in array.
1725 2001-11-28 Akim Demaille <akim@epita.fr>
1727 * src/closure.c (closure): No longer optimize the special case
1728 where all the bits of `ruleset[r]' are set to 0, to make the code
1731 2001-11-28 Akim Demaille <akim@epita.fr>
1733 * src/closure.c (closure): `r' and `c' are new variables, used to
1734 de-obfuscate accesses to RULESET and CORE.
1736 2001-11-28 Akim Demaille <akim@epita.fr>
1738 * src/reduce.c (reduce_print): Use ngettext.
1739 (dump_grammar): Improve the trace accuracy.
1741 2001-11-28 Akim Demaille <akim@epita.fr>
1743 * src/reduce.c (dump_grammar): Don't translate trace messages.
1745 2001-11-28 Akim Demaille <akim@epita.fr>
1747 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
1748 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
1749 as all tags are free'ed afterwards.
1752 2001-11-27 Paul Eggert <eggert@twinsun.com>
1754 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
1755 use alloca when we didn't want to, and vice versa.
1757 2001-11-27 Marc Autret <autret_m@epita.fr>
1759 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
1761 * src/output.c (prepare): Remove its update.
1763 2001-11-27 Marc Autret <autret_m@epita.fr>
1765 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
1768 2001-11-27 Marc Autret <autret_m@epita.fr>
1770 * src/bison.simple: Remove YYERROR_VERBOSE using.
1771 Use %%error_verbose.
1772 (yyparse): Likewise.
1773 * src/output.c (prepare): Give its final value.
1774 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
1775 * src/getargs.h: Add its extern declaration.
1776 * src/getargs.c (error_verbose_flag): New int.
1777 (getargs): Update to catch new case.
1778 * src/options.c (option_table): 'error-verbose' is a new option.
1779 (shortopts): Update.
1781 2001-11-27 Akim Demaille <akim@epita.fr>
1783 * src/system.h: Use intl/libgettext.h.
1784 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
1786 2001-11-27 Akim Demaille <akim@epita.fr>
1788 * tests/torture.at (Exploding the Stack Size with Malloc):
1789 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
1791 2001-11-27 Akim Demaille <akim@epita.fr>
1793 * src/files.c: Include error.h.
1794 Reported by Hans Aberg.
1796 2001-11-26 Marc Autret <autret_m@epita.fr>
1798 * src/reader.c (parse_include_decl): New, not yet implemented.
1799 (read_declarations): Add case tok_include.
1800 * src/getargs.h (include): Add its extern definition.
1801 * src/getargs.c (include): New const char *.
1802 (getargs): Add case '-I'.
1803 * src/options.c (option_table): Add include as command line and
1805 * src/lex.h (token_t): Add tok_include.
1807 2001-11-26 Akim Demaille <akim@epita.fr>
1809 * src/reader.c (readgram): Make sure rules for mid-rule actions
1810 have a lineno equal to that of their host rule.
1811 Reported by Hans Aberg.
1812 * tests/regression.at (Rule Line Numbers): New.
1814 2001-11-26 Akim Demaille <akim@epita.fr>
1816 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
1819 2001-11-26 Akim Demaille <akim@epita.fr>
1821 * src/complain.c, src/complain.h (error): Remove, provided by
1824 2001-11-26 Akim Demaille <akim@epita.fr>
1826 * src/reader.c (read_declarations): Don't abort on tok_illegal,
1827 issue an error message.
1828 * tests/regression.at (Invalid %directive): New.
1829 Reported by Hans Aberg.
1831 2001-11-26 Akim Demaille <akim@epita.fr>
1833 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
1834 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1836 2001-11-26 Akim Demaille <akim@epita.fr>
1838 * src/conflicts.c (conflicts_print): Don't complain at all when
1839 there are no reduce/reduce conflicts, and as many shift/reduce
1840 conflicts as expected.
1841 * tests/regression.at (%expect right): Adjust.
1843 2001-11-23 Akim Demaille <akim@epita.fr>
1845 * lib/alloca.c: Update, from fileutils.
1847 2001-11-23 Akim Demaille <akim@epita.fr>
1849 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
1851 2001-11-23 Akim Demaille <akim@epita.fr>
1853 * src/system.h: Include alloca.h.
1854 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
1856 2001-11-23 Akim Demaille <akim@epita.fr>
1858 * src/print_graph.c (print_actions): Remove `rule', unused.
1859 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
1860 pacify GCC's signed < unsigned warnings.
1861 * src/closure.c (itemsetsize): Likewise.
1862 * src/reader.c (symbol_list_new): Static.
1864 2001-11-23 Akim Demaille <akim@epita.fr>
1866 Attaching lineno to buckets is stupid, since only one copy of each
1867 symbol is kept, only the line of the first occurrence is kept too.
1869 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
1870 * src/reader.c (rline_allocated): Remove, unused.
1871 (symbol_list): Have a `line' member.
1872 (symbol_list_new): New.
1874 * src/print.c (print_grammar): Output the rule line numbers.
1875 * tests/regression.at (Solved SR Conflicts)
1876 (Unresolved SR Conflicts): Adjust.
1877 Reported by Hans Aberg.
1879 2001-11-22 Marc Autret <autret_m@epita.fr>
1881 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
1883 2001-11-22 Marc Autret <autret_m@epita.fr>
1885 * src/muscle_tab.c (muscle_init): Remove initialization of
1887 * src/output.c (output_master_parser): Do it here.
1889 2001-11-20 Akim Demaille <akim@epita.fr>
1892 * configure.in (ALL_LINGUAS): Adjust.
1893 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
1894 longer contains strings to translate.
1896 2001-11-19 Akim Demaille <akim@epita.fr>
1898 * src/conflicts.c (conflicts_print): Add a missing \n.
1900 2001-11-19 Akim Demaille <akim@epita.fr>
1902 * src/nullable.c (nullable_print): New.
1903 (set_nullable): Call it when tracing.
1904 Better locality of variables.
1906 2001-11-19 Akim Demaille <akim@epita.fr>
1908 * src/print.c (print_actions): Better locality of variables.
1910 2001-11-19 Akim Demaille <akim@epita.fr>
1912 * src/derives.c (print_derives): Fix and enrich.
1913 * src/closure.c (print_fderives): Likewise.
1915 2001-11-19 Akim Demaille <akim@epita.fr>
1917 * src/closure.c (itemsetend): Remove, replaced with...
1920 2001-11-19 Akim Demaille <akim@epita.fr>
1922 * src/LR0.c (kernel_end): Remove, replaced with...
1925 2001-11-19 Akim Demaille <akim@epita.fr>
1927 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
1930 2001-11-19 Akim Demaille <akim@epita.fr>
1932 * src/closure.c (closure): Use arrays instead of pointers to clarify.
1934 2001-11-19 Akim Demaille <akim@epita.fr>
1936 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
1938 * src/LR0.c: Likewise.
1939 (allocate_itemsets): Use arrays instead of pointers to clarify.
1941 2001-11-19 Akim Demaille <akim@epita.fr>
1943 * src/getargs.c (statistics_flag): Replace with...
1945 (longopts): Accept --trace instead of --statistics.
1946 * src/getargs.h, src/options.c: Adjust.
1947 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
1948 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
1950 2001-11-19 Akim Demaille <akim@epita.fr>
1952 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
1953 pointers to clarify the code.
1954 (save_reductions, save_shifts): Factor common parts of alternatives.
1956 2001-11-19 Akim Demaille <akim@epita.fr>
1958 * src/LR0.c (new_state, get_state): Complete TRACE code.
1959 * src/closure.c: Include `reader.h' to get `tags', needed by the
1961 Rename the conditional DEBUG as TRACE.
1962 Output consistently TRACEs to stderr, not stdout.
1963 * src/derives.c: Likewise.
1964 * src/reduce.c: (inaccessable_symbols): Using if is better style
1966 Use `#if TRACE' instead of `#if 0' for tracing code.
1968 2001-11-19 Akim Demaille <akim@epita.fr>
1970 * src/system.h (LIST_FREE, shortcpy): New.
1971 * src/LR0.c: Use them.
1972 * src/output.c (free_itemsets, free_reductions, free_shifts):
1973 Remove, replaced by LIST_FREE.
1975 2001-11-19 Akim Demaille <akim@epita.fr>
1977 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
1978 (REDUCTIONS_ALLOC): New.
1979 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
1982 2001-11-19 Akim Demaille <akim@epita.fr>
1984 * src/LR0.c (new_state): Complete trace code.
1985 * src/nullable.c (set_nullable): Don't translate traces.
1987 2001-11-19 Akim Demaille <akim@epita.fr>
1989 * src/print_graph.c (print_core): Better locality of variables.
1990 * src/print.c (print_core): Likewise.
1992 2001-11-19 Akim Demaille <akim@epita.fr>
1994 * src/vcg.c: You do the output, so you are responsible of the
1995 handling of VCG syntax, in particular: use quotearg.
1996 * src/print_graph.c: Don't.
1997 (print_actions): Don't output the actions as part of the nodes,
1998 since that's the job of the edges.
1999 (print_state): Don't output by hand: fill the node description,
2000 and ask for its output.
2002 2001-11-19 Akim Demaille <akim@epita.fr>
2004 * src/bison.simple (yyparse): When verbosely reporting an error,
2005 no longer put additional quotes around token names.
2006 * tests/calc.at: Adjust.
2008 2001-11-19 Akim Demaille <akim@epita.fr>
2010 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
2011 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
2012 * src/output.c: Adjust.
2014 2001-11-19 Akim Demaille <akim@epita.fr>
2016 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
2018 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
2020 2001-11-19 Akim Demaille <akim@epita.fr>
2022 * src/gram.h (rule_t): New.
2024 (rrhs, rlhs): Remove, part of state_t.
2025 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
2026 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
2027 * src/reader.c, src/reduce.c: Adjust.
2029 2001-11-19 Akim Demaille <akim@epita.fr>
2031 * src/reader.c (symbols_output): New, extracted from...
2032 (packsymbols): Here.
2035 2001-11-19 Akim Demaille <akim@epita.fr>
2037 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
2038 (maxrhs): this new function.
2040 2001-11-19 Akim Demaille <akim@epita.fr>
2042 * src/lalr.c (F): New macro to access the variable F.
2045 2001-11-19 Akim Demaille <akim@epita.fr>
2047 * src/lalr.h (LA): New macro to access the variable LA.
2048 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
2049 * src/lalr.c: Adjust.
2051 2001-11-19 Akim Demaille <akim@epita.fr>
2053 * src/lalr.c (initialize_LA): Only initialize LA. Let...
2054 (set_state_table): handle the `lookaheads' members.
2056 2001-11-19 Akim Demaille <akim@epita.fr>
2058 * src/lalr.h (lookaheads): Removed array, whose contents is now
2060 (state_t): this structure.
2061 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
2064 2001-11-19 Akim Demaille <akim@epita.fr>
2066 * src/lalr.h (consistent): Removed array, whose contents is now
2068 (state_t): this structure.
2069 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
2072 2001-11-19 Akim Demaille <akim@epita.fr>
2074 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
2075 contents are now members of...
2076 (state_t): this structure.
2077 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
2080 2001-11-19 Akim Demaille <akim@epita.fr>
2082 * src/lalr.h (state_t): New.
2083 (state_table): Be a state_t * instead of a core **.
2084 (accessing_symbol): Remove, part of state_t.
2085 * src/lalr.c: Adjust.
2086 (set_accessing_symbol): Merge into...
2087 (set_state_table): this.
2088 * src/print_graph.c, src/conflicts.c: Adjust.
2090 2001-11-14 Akim Demaille <akim@epita.fr>
2092 * tests/calc.at, tests/output.at, tests/regression.at,
2093 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
2094 now the tests are run in private dirs, therefore AC_CLEANUP and
2095 family can be simplified to 0-ary.
2096 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
2097 use abs. path to find config.h.
2098 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
2099 stderr, there can be way too much random noise.
2100 Instead pass -Werror to GCC and rely on the exit status.
2101 Reported by Wolfram Wagner.
2103 2001-11-14 Akim Demaille <akim@epita.fr>
2105 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
2106 defined only if yyoverflow is defined, to avoid `warning: unused
2108 Reported by The Test Suite.
2110 2001-11-14 Akim Demaille <akim@epita.fr>
2112 * src/print.c: Include reduce.h.
2113 Reported by Hans Aberg.
2115 2001-11-14 Akim Demaille <akim@epita.fr>
2117 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
2118 Revert a previous patch: these are really const.
2119 * src/conflicts.c (conflict_report): Additional useless pair of
2120 braces to pacify GCC's warnings for `if () if () {} else {}'.
2121 * src/lex.c (parse_percent_token): Replace equal_offset with
2124 Be sure to strdup `arg' when used, since there is no reason for
2125 token_buffer not to change.
2127 2001-11-14 Akim Demaille <akim@epita.fr>
2129 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
2131 * src/main.c (main): Use them.
2132 Suggested by Hans Aberg.
2134 2001-11-12 Akim Demaille <akim@epita.fr>
2136 * src/system.h (ngettext): Now that we use ngettext, be sure to
2137 provide a default definition when NLS are not used.
2139 2001-11-12 Akim Demaille <akim@epita.fr>
2141 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
2142 Use @kbd to denote user input.
2143 (Language and Grammar): ANSIfy the example.
2144 Adjust its layout for info/notinfo.
2145 (Location Tracking Calc): Output error messages to stderr.
2146 Output locations in a more GNUtically correct way.
2147 Fix a couple of Englishos.
2148 Adjust @group/@end group pairs.
2150 2001-11-12 Akim Demaille <akim@epita.fr>
2152 %expext was not functioning at all.
2154 * src/conflicts.c (expected_conflicts): Set to -1.
2155 (conflict_report): Use ngettext.
2156 (conflicts_print): Check %expect and make its violation an error.
2157 * doc/bison.texinfo (Expect Decl): Adjust.
2158 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
2159 * tests/regression.at (%expect not enough, %expect right)
2160 (%expect too much): New.
2162 2001-11-12 Akim Demaille <akim@epita.fr>
2164 * tests/regression.at (Conflicts): Rename as...
2165 (Unresolved SR Conflicts): this.
2166 (Solved SR Conflicts): New.
2168 2001-11-12 Akim Demaille <akim@epita.fr>
2170 * src/reduce.c (print_results): Rename as...
2171 (reduce_output): This.
2172 Output to OUT, passed as argument, instead of output_obstack.
2173 (dump_grammar): Likewise.
2176 (reduce_grammar): No longer call reduce_output, since...
2177 * src/print.c (print_results): do it.
2178 * src/main.c (main): Call reduce_free;
2180 2001-11-12 Akim Demaille <akim@epita.fr>
2182 * src/conflicts.c (print_reductions): Accept OUT as argument.
2183 Output to it, not to output_obstack.
2184 * src/print.c (print_actions): Adjust.
2186 2001-11-12 Akim Demaille <akim@epita.fr>
2188 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
2189 the result instead of using...
2190 (src_total, rrc_total, src_count, rrc_count): Remove.
2191 (any_conflicts): Remove.
2192 (print_conflicts): Split into...
2193 (conflicts_print, conflicts_output): New.
2194 * src/conflicts.h: Adjust.
2195 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
2196 * src/print.c (print_grammar): Issue `\n' between two rules.
2197 * tests/regression.at (Conflicts): New.
2198 Reported by Tom Lane.
2200 2001-11-12 Akim Demaille <akim@epita.fr>
2202 * tests/regression.at (Invalid input): Remove, duplicate with
2203 ``Invalid input: 1''.
2205 2001-11-12 Akim Demaille <akim@epita.fr>
2207 * tests/torture.at (AT_DATA_STACK_TORTURE)
2208 (Exploding the Stack Size with Alloca)
2209 (Exploding the Stack Size with Malloc): New.
2211 2001-11-12 Akim Demaille <akim@epita.fr>
2213 * src/bison.simple (YYSTACK_REALLOC): New.
2214 (yyparse) [!yyoverflow]: Use it and free the old stack.
2215 Reported by Per Allansson.
2217 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
2219 * src/bison.simple: Define type yystype instead of YYSTYPE, and
2220 define CPP macro, which substitute YYSTYPE by yystype.
2221 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
2222 with yyltype/YYLTYPE. This allows inclusion of the generated
2223 header within the parser if the compiler, such as GGC, accepts
2224 multiple equivalent #defines.
2227 2001-11-05 Akim Demaille <akim@epita.fr>
2229 * src/reader.c (symbols_output): New, extracted from...
2230 (packsymbols): here.
2233 2001-11-05 Akim Demaille <akim@epita.fr>
2235 * src/lex.c (parse_percent_token): s/quotearg/quote/.
2237 2001-11-05 Akim Demaille <akim@epita.fr>
2239 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
2242 2001-11-05 Akim Demaille <akim@epita.fr>
2244 * src/options.h (struct option_table_struct): set_flags is void*.
2245 * src/options.c (longopts): Support `--output' and `%output'.
2247 * src/lex.h (tok_setopt): Remove, replaced with...
2248 (tok_intopt, tok_stropt): these new guys.
2249 * src/lex.c (getopt.h): Not needed.
2250 (token_buffer, unlexed_token_buffer): Not const.
2251 (percent_table): Promote `-' over `_' in directive names.
2252 Active `%name-prefix', `file-prefix', and `output'.
2253 (parse_percent_token): Accept possible arguments to directives.
2254 Promote `-' over `_' in directive names.
2256 2001-11-04 Akim Demaille <akim@epita.fr>
2258 * doc/bison.texinfo (Decl Summary): Split the list into
2259 `directives for grammars' and `directives for bison'.
2261 Add description of `%name-prefix', `file-prefix', and `output'.
2262 Promote `-' over `_' in directive names.
2263 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
2264 Simplify the description of `--name-prefix'.
2265 Promote `-' over `_' in directive names.
2266 Promote `--output' over `--output-file'.
2267 Fix the description of `--defines'.
2268 * tests/output.at: Exercise %file-prefix and %output.
2270 2001-11-02 Akim Demaille <akim@epita.fr>
2272 * doc/refcard.tex: Update.
2274 2001-11-02 Akim Demaille <akim@epita.fr>
2276 * src/symtab.h (SUNDEF): New.
2277 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
2278 stand for `uninitialized', instead of 0.
2279 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
2280 * src/lex.c (lex): Adjust.
2282 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
2284 Let yylex return it instead of a plain 0.
2285 Reported by Dick Streefland.
2287 2001-11-02 Akim Demaille <akim@epita.fr>
2289 * tests/regression.at (Mixing %token styles): New test.
2291 2001-11-02 Akim Demaille <akim@epita.fr>
2293 * src/reader.c (parse_thong_decl): Formatting changes.
2294 (token_translations_init): New, extracted from...
2295 (packsymbols): Here.
2298 2001-11-01 Akim Demaille <akim@epita.fr>
2300 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
2301 Check that `9foo.y' produces correct cpp guards.
2302 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
2306 2001-11-01 Akim Demaille <akim@epita.fr>
2308 * tests/regression.at (Invalid input: 2): New.
2309 * src/lex.c (unlexed_token_buffer): New.
2310 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
2314 2001-11-01 Akim Demaille <akim@epita.fr>
2316 * tests/calc.at: Catch up with 1.30.
2317 * configure.in: Bump to 1.49a.
2318 Adjust to newer Autotest.
2320 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
2322 * src/conflicts.c: Move global variables rrc_total and src_total ...
2323 (print_conflicts): here.
2324 * src/output.c (output): Free global variable user_toknums.
2325 * src/lex.c (token_obstack): Become static.
2327 2001-10-18 Akim Demaille <akim@epita.fr>
2329 * tests/atlocal.in (GCC): Add.
2330 * tests/calc.at: s/m4_match/m4_bmatch/.
2331 s/m4_patsubst/m4_bpatsubst/.
2332 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
2333 * configure.in: AC_SUBST(GCC).
2335 2001-10-14 Marc Autret <autret_m@epita.fr>
2337 * src/options.c (create_long_option_table): Fix.
2339 2001-10-10 Akim Demaille <akim@epita.fr>
2341 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
2343 2001-10-04 Akim Demaille <akim@epita.fr>
2345 * src/reader.c (parse_union_decl): Push the caracters in
2346 union_obstack, not attrs_obstack.
2348 2001-10-04 Akim Demaille <akim@epita.fr>
2350 Merge in the branch 1.29.
2352 * src/reader.c (packsymbols): Use a temporary obstack for
2353 `%%tokendef', since output_stack is already used elsewhere.
2355 2001-10-02 Akim Demaille <akim@epita.fr>
2359 2001-10-02 Akim Demaille <akim@epita.fr>
2363 2001-10-02 Akim Demaille <akim@epita.fr>
2365 * tests/regression.at (Invalid CPP headers): New.
2366 From Alexander Belopolsky.
2367 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
2369 2001-10-02 Akim Demaille <akim@epita.fr>
2371 * tests/regression.at (Invalid input): New.
2372 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
2375 2001-10-02 Akim Demaille <akim@epita.fr>
2377 * tests/calc.at: Now that --debug works, the tests must be adjusted.
2379 2001-10-02 Akim Demaille <akim@epita.fr>
2381 * src/output.c (output_parser): Assert `skeleton'.
2382 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
2386 2001-10-01 Marc Autret <autret_m@epita.fr>
2388 * src/lex.h: Echo modifications.
2389 * src/lex.c (unlex): Parameter is now token_t.
2392 2001-10-01 Marc Autret <autret_m@epita.fr>
2394 * src/main.c: Include lex.h.
2397 2001-09-29 Akim Demaille <akim@epita.fr>
2399 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
2401 2001-09-28 Akim Demaille <akim@epita.fr>
2403 * tests/testsuite.at: Update to newer Autotest.
2404 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
2406 2001-09-27 Akim Demaille <akim@epita.fr>
2408 Position independent wrapper.
2410 * tests/bison: Remove.
2411 * tests/bison.in: New.
2412 * configure.in: Adjust.
2414 2001-09-27 Paul Eggert <eggert@twinsun.com>
2416 Port quotearg fixes from tar 1.13.24.
2418 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
2420 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
2421 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
2423 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
2424 * m4/mbrtowc.m4: New file.
2425 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
2426 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
2428 2001-09-27 Akim Demaille <akim@epita.fr>
2432 2001-09-27 Akim Demaille <akim@epita.fr>
2436 2001-09-25 Akim Demaille <akim@epita.fr>
2438 * src/system.h: Include `xalloc.h'.
2439 Remove it from the C files.
2440 * src/files.c (output_files): Free the obstacks.
2441 * src/lex.c (init_lex): Rename as...
2444 * src/main.c (main): Use it.
2446 2001-09-24 Marc Autret <autret_m@epita.fr>
2448 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
2449 to output informations in fout (FILE*).
2450 (open_graph, close_graph): Likewise.
2451 (output_graph, output_edge, output_node): Likewise.
2452 * src/vcg.h: Update function prototypes.
2453 * src/print_graph.c (print_graph): Open output graph file.
2454 (print_actions): Adjust.
2455 * src/files.h: Remove extern declaration.
2456 * src/files.c: Remove graph_obstack declaration.
2457 (open_files): Remove graph_obstack initialization.
2458 (output_files): Remove graph_obstack saving.
2460 2001-09-24 Marc Autret <autret_m@epita.fr>
2462 * src/files.c (compute_output_file_names): Fix.
2464 2001-09-24 Marc Autret <autret_m@epita.fr>,
2465 Akim Demaille <akim@epita.fr>
2467 * src/reader.c (reader): Remove call to free_symtab ().
2468 * src/main.c (main): Call it here.
2470 * src/conflicts.c (initialize_conflicts): Rename as...
2471 (solve_conflicts): this.
2472 * src/print.c (print_core, print_actions, print_state)
2473 (print_grammar): Dump to a file instead a `output_obstack'.
2474 (print_results): Dump `output_obstack', and then proceed with the
2476 * src/files.c (compute_output_file_names, close_files): New.
2477 (output_files): Adjust.
2478 * src/main.c (main): Adjust.
2480 2001-09-23 Marc Autret <autret_m@epita.fr>
2482 * src/files.c (compute_header_macro): Computes header macro name
2483 from spec_defines_file when given.
2485 2001-09-23 Marc Autret <autret_m@epita.fr>
2487 * src/files.c (output_files): Add default extensions.
2489 2001-09-22 Akim Demaille <akim@epita.fr>
2491 * src/conflicts.c (finalize_conflicts): Rename as...
2492 (free_conflicts): this.
2494 2001-09-22 Akim Demaille <akim@epita.fr>
2496 * src/gram.c (gram_free): Rename back as...
2498 (output_token_translations): Free `token_translations'.
2499 * src/symtab.c (free_symtab): Free the tag field.
2501 2001-09-22 Akim Demaille <akim@epita.fr>
2503 Remove `translations' as it is always set to true.
2505 * src/gram.h: Adjust.
2506 * src/reader.c (packsymbols, parse_token_decl): Adjust
2507 * src/print.c (print_grammar): Adjust.
2508 * src/output.c (output_token_translations): Adjust.
2509 * src/lex.c (lex): Adjust.
2510 * src/gram.c: Be sure the set pointers to NULL.
2511 (dummy): Rename as...
2514 2001-09-22 Akim Demaille <akim@epita.fr>
2516 * configure.in: Invoke AM_LIB_DMALLOC.
2517 * src/system.h: Use dmalloc.
2518 * src/LR0.c: Be sure to have pointers initialized to NULL.
2519 (allocate_itemsets): Allocate kernel_items only if needed.
2521 2001-09-22 Akim Demaille <akim@epita.fr>
2523 * configure.in: Bump to 1.29b.
2524 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
2525 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
2526 need xmalloc.c in calc.y.
2529 2001-09-21 Akim Demaille <akim@epita.fr>
2532 * Makefile.maint, config/config.guess, config/config.sub,
2533 * config/missing: Update from masters.
2534 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
2536 * configure.in (ALL_LINGUAS): Add `tr'.
2538 2001-09-21 Akim Demaille <akim@epita.fr>
2540 * tests/Makefile.am (package.m4): Move to...
2541 ($(srcdir)/$(TESTSUITE)): here.
2543 2001-09-20 Akim Demaille <akim@epita.fr>
2545 * src/complain.c: No longer try to be standalone: use system.h.
2546 Don't assume __STDC__ is defined to 1. Just test if it is defined.
2547 * src/complain.h: Likewise.
2548 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
2549 Remove the unused variable `n'.
2550 From Albert Chin-A-Young.
2552 2001-09-18 Marc Autret <autret_m@epita.fr>
2554 * doc/bison.1: Update.
2555 * doc/bison.texinfo (Bison Options): Update --defines and --graph
2557 (Option Cross Key): Update.
2560 2001-09-18 Marc Autret <autret_m@epita.fr>
2562 * tests/regression.at: New test (comment in %union).
2564 2001-09-18 Marc Autret <autret_m@epita.fr>
2566 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
2568 Reported by Keith Browne.
2570 2001-09-18 Marc Autret <autret_m@epita.fr>
2572 * tests/output.at: Add tests for --defines and --graph.
2574 2001-09-18 Marc Autret <autret_m@epita.fr>
2576 * tests/output.at: Removes tests of %{header,src}_extension features.
2578 2001-09-18 Akim Demaille <akim@epita.fr>
2580 * tests/Makefile.am (package.m4): New.
2581 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
2582 (_AT_CHECK_CALC_ERROR): Likewise.
2583 Factor the `, ' part of verbose error messages.
2585 2001-09-18 Marc Autret <autret_m@epita.fr>
2587 * src/getargs.c (longopts): Declare --defines and --graph as options
2588 with optional arguments.
2589 * src/files.h: Add extern declarations.
2590 * src/files.c (spec_graph_file, spec_defines_file): New.
2591 (output_files): Update.
2592 Remove CPP-outed code.
2594 2001-09-18 Marc Autret <autret_m@epita.fr>
2596 Turn off %{source,header}_extension feature.
2598 * src/files.c (compute_exts_from_gf): Update.
2599 (compute_exts_from_src): Update.
2600 (output_files): CPP-out useless code.
2601 * src/files.h: Remove {header,source}_extension extern declarations.
2602 * src/reader.c (parse_dquoted_param): CPP-out.
2603 (parse_header_extension_decl): Remove.
2604 (parse_source_extension_decl): Remove.
2605 (read_declarations): Remove cases tok_{hdrext,srcext}.
2606 * src/lex.c (percent_table): Remove {header,source}_extension entries.
2607 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
2609 2001-09-10 Akim Demaille <akim@epita.fr>
2611 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
2612 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
2613 (AT_CHECK_OUTPUT): this.
2614 Merely check ls' exit status, its output is useless.
2616 2001-09-10 Akim Demaille <akim@epita.fr>
2618 * tests/calc.at: Use m4_match.
2619 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
2621 2001-09-10 Marc Autret <autret_m@epita.fr>,
2622 Akim Demaille <akim@epita.fr>
2624 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
2626 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
2628 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
2629 * src/lex.h: Adjust prototype.
2630 (token_t): Add `tok_undef'.
2631 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
2632 (parse_percent_token): Now returns token_t.
2633 Add default statement in switch.
2634 (lex): Separate `c' as an input variable, from the token_t result
2636 (unlexed): Is a token_t.
2638 2001-09-10 Akim Demaille <akim@epita.fr>
2640 * configure.in: Bump to 1.29a.
2642 2001-09-07 Akim Demaille <akim@epita.fr>
2646 2001-08-30 Akim Demaille <akim@epita.fr>
2648 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
2649 * m4/atconfig.m4: Remove.
2650 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
2652 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
2653 m4_if, m4_patsubst, and m4_regexp.
2654 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
2655 `input' file instead of echo.
2657 2001-08-29 Akim Demaille <akim@epita.fr>
2661 2001-08-29 Akim Demaille <akim@epita.fr>
2665 2001-08-29 Paul Eggert <eggert@twinsun.com>
2667 * src/bison.simple (yyparse): Don't take the address of an
2668 item before the start of an array, as that doesn't conform to
2671 2001-08-29 Robert Anisko <anisko_r@epita.fr>
2673 * doc/bison.texinfo (Location Tracking Calc): New node.
2675 2001-08-29 Paul Eggert <eggert@twinsun.com>
2677 * src/output.c (output): Do not define const, as this now
2678 causes more problems than it cures.
2680 2001-08-29 Akim Demaille <akim@epita.fr>
2682 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
2684 Be sure to tag the `detailmenu'.
2686 2001-08-29 Akim Demaille <akim@epita.fr>
2688 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
2689 download in a tmp dir.
2691 2001-08-28 Marc Autret <autret_m@epita.fr>
2693 * config/depcomp: New file.
2695 2001-08-28 Marc Autret <autret_m@epita.fr>
2697 * doc/bison.1 (mandoc): Adjust.
2698 From Juan Manuel Guerrero.
2700 2001-08-28 Marc Autret <autret_m@epita.fr>
2702 * src/print_graph.c (print_state): Fix.
2704 2001-08-27 Marc Autret <autret_m@epita.fr>
2706 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
2708 Echo modifications to the functions prototypes.
2709 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
2711 2001-08-27 Marc Autret <autret_m@epita.fr>
2713 * src/vcg.c: Include `xalloc.h'.
2714 (add_colorentry): New.
2715 (add_classname): New.
2716 (add_infoname): New.
2717 * src/vcg.h: Add new prototypes.
2719 2001-08-27 Akim Demaille <akim@epita.fr>
2721 * Makefile.maint: Sync. again with CVS Autoconf.
2723 2001-08-27 Akim Demaille <akim@epita.fr>
2725 * Makefile.maint: Formatting changes.
2726 (po-update, cvs-update, update): New targets.
2729 2001-08-27 Akim Demaille <akim@epita.fr>
2731 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2732 * Makefile.maint: Sync. with CVS Autoconf.
2734 2001-08-27 Marc Autret <autret_m@epita.fr>
2736 * src/vcg.h (struct infoname_s): New.
2737 (struct colorentry_s): New.
2738 (graph_s): New fields {vertical,horizontal}_order in structure.
2739 Add `infoname' field.
2740 Add `colorentry' field;
2741 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
2742 (G_HORIZONTAL_ORDER): New.
2744 (G_COLORENTRY): New.
2745 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
2746 Add output of `infoname'.
2747 Add output of `colorentry'.
2749 2001-08-27 Marc Autret <autret_m@epita.fr>
2751 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
2752 This one shadowed a global parameter.
2754 2001-08-24 Marc Autret <autret_m@epita.fr>
2756 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
2757 instead of `unsigned'.
2758 (print_state): Do not call obstack_object_size () in obstack_grow ()
2759 to avoid macro variables shadowing.
2761 2001-08-23 Marc Autret <autret_m@epita.fr>
2763 * src/lex.c (percent_table): Typo: s/naem/name/.
2765 Normalize new options declarations.
2767 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
2769 * tests/suite.at: Exercise %header_extension and %source_extension.
2771 2001-08-16 Marc Autret <autret_m@epita.fr>
2773 * src/reader.c (parse_dquoted_param): New.
2774 (parse_header_extension_decl): Use it.
2775 (parse_source_extension_decl): Likewise.
2777 2001-08-16 Marc Autret <autret_m@epita.fr>
2779 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
2780 (get_xxxx_str): Use assert () instead of complain ().
2781 Remove return invokations in default cases.
2782 (get_decision_str): Modify default behaviour. Remove second argument.
2783 Echo modifications on calls.
2784 (output_graph): Fix.
2786 2001-08-16 Marc Autret <autret_m@epita.fr>
2788 * src/getargs.c (usage): Update with ``-g, --graph''.
2790 2001-08-16 Marc Autret <autret_m@epita.fr>
2792 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
2793 (Option Cross Key): Likewise.
2794 * doc/bison.1: Update.
2796 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
2798 * src/output.c (output_master_parser): Don't finish action_obstack.
2799 (output_parser): Don't care about the muscle action, here.
2800 (prepare): Copy the action_obstack in the action muscle.
2801 (output): Free action_obstack.
2803 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2805 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
2806 will contain `%union' declaration.
2807 (parse_union_decl): Delete #line directive output.
2808 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
2809 informations about %union.
2810 (parse_union_decl): Copy the union_obstack in the muscle stype.
2811 * src/bison.simple: Add new #line directive.
2812 Add typdef %%stype YYSTYPE.
2814 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2816 * src/bison.simple: Add new `#line' directive.
2818 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
2820 * src/bison.simple: New `#line' directive.
2821 * src/output.c (output_parser): Support new dynamic muscle input_line.
2823 2001-09-22 Marc Autret <autret_m@epita.fr>
2825 * src/output.c (output_master_parser): New.
2826 (output_parser): Be more re-entrant.
2828 2001-09-21 Marc Autret <autret_m@epita.fr>
2830 * src/reader.c (copy_definition, parse_union_decl): Update and use
2832 (copy_action): Likewise.
2833 Use obstack_1grow ().
2834 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
2836 2001-09-21 Marc Autret <autret_m@epita.fr>
2838 * src/options.c (option_table): Adjust.
2839 * src/lex.c (parse_percent_token): Fix.
2841 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2843 * src/options.c (symtab.h): Include it, need by lex.h.
2845 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2847 * src/lex.c (parse_percent_token): Change type of variable `tx', which
2848 is now an option_table_struct*.
2849 (option_strcmp): New function option_strcmp.
2850 (parse_percent_token): Call option_strcmp.
2851 * src/getargs.c (xalloc.h, options.h): Include it.
2852 (getargs): Call create_long_option_table.
2853 (getargs): Free longopts at the end of the function.
2854 (shortopts): Move in options.c.
2855 * src/options.c (create_long_option_table): New function. Convert
2856 information from option_table to option structure.
2857 * src/reader.c (options.h): Include it.
2859 * src/Makefile.am: Adjust.
2860 * src/options.c (option_table): Create from longopts and percent_table.
2861 * src/getargs.c (longopts): Delete.
2862 * src/lex.c (struct percent_table_struct): Delete.
2863 (percent_table): Delete.
2864 (options.h): Include it.
2865 * src/options.c: Create.
2866 * src/options.h: Create.
2867 Declare enum opt_access_e.
2868 Define struct option_table_struct.
2870 2001-09-20 Marc Autret <autret_m@epita.fr>
2872 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
2875 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
2877 * src/bison.simple: s/%%filename/%%skeleton.
2878 * src/muscle_tab.c (getargs.h): Include it.
2879 (muscle_init): Insert new muscle skeleton.
2881 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
2883 * src/output.c (output_parser): Delete unused variable actions_dumped.
2885 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
2887 * src/output.c (output): Delete call to reader_output_yylsp.
2888 * src/reader.c (reader): Likewise.
2889 * src/reader.h: Delete declaration of reader_output_yylsp.
2891 2001-09-02 Marc Autret <autret_m@epita.fr>
2893 * src/reader.c: Include muscle_tab.h.
2894 (parse_union_decl): Update.
2895 (parse_macro_decl): Rename parse_muscle_decl.
2896 Update to use renamed functions and variable.
2897 (read_declarations, copy_action, read_additionnal_code, : Updated
2898 with correct variables and functions names.
2899 (packsymbols, reader): Likewise.
2901 * src/reader.h (muscle_obstack): Extern declaration update.
2903 * src/output.c: Include muscle_tab.h
2904 In all functions using macro_insert, change by using muscle_insert ().
2905 (macro_obstack): Rename muscle_obstack.
2906 Echo modifications in the whole file.
2907 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
2908 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
2909 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
2911 * src/muscle_tab.h: Update double inclusion macros.
2912 (macro_entry_s): Rename muscle_entry_s.
2915 * src/muscle_tab.c: Include muscle_tab.h.
2916 Rename macro_tabble to muscle_table.
2917 (mhash1, mhash2, mcmp): Use muscle_entry.
2918 (macro_init): Rename muscle_init. Update.
2919 (macro_insert): Rename muscle_insert. Update.
2920 (macro_find): Rename muscle_find. Update.
2922 * src/main.c: Include muscle_tab.h.
2923 (main): Call muscle_init ().
2924 * src/Makefile.am (bison_SOURCES): Echo modifications.
2926 2001-09-02 Marc Autret <autret_m@epita.fr>
2928 Now the files macro_tab.[ch] are named muscle_tab.[ch].
2930 * src/muscle_tab.c, src/muscle_tab.h: Add files.
2932 2001-09-02 Marc Autret <autret_m@epita.fr>
2934 * src/macrotab.c, src/macrotab.h: Remove.
2936 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
2938 * src/reader.c (copy_guard): Use muscle to specify the `#line'
2941 2001-09-01 Marc Autret <autret_m@epita.fr>
2943 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
2944 to an explicit value to activate the feature. We do it here.
2946 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2948 * src/output.c (prepare): Delete the `filename' muscule insertion.
2949 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
2950 (parse_union_decl): Likewise.
2951 * src/macrotab.c (macro_init): Initialize filename by infile.
2953 2001-08-31 Marc Autret <autret_m@epita.fr>
2955 * src/bison.simple (YYLSP_NEEDED): New definition.
2956 * src/output.c (prepare): Add macro insertion of `locations_flag'
2958 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2960 * src/output.c (prepare): Delete insertion of previous muscles,
2961 and insert the `prefix' muscles.
2962 * src/macrotab.c (macro_init): Likewise.
2963 (macro_init): Initialization prefix directive by `yy'.
2964 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
2965 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
2966 yylval, yydebug, yyerror, yynerrs and yyparse.
2967 New directive `#define' to substitute yydebug, ... with option
2970 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2972 * src/main.c (main): Standardize.
2973 * src/output.c (output_table_data, output_parser): Likewise.
2974 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
2976 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
2978 * src/reader.c (read_additionnal_code): Rename %%user_code to
2980 * src/output.c (output): Rename %%declarations to %%prologue.
2981 * src/bison.simple: Echo modifications.
2983 2001-08-31 Marc Autret <autret_m@epita.fr>
2985 * src/reader.c (readgram): CleanUp.
2986 (output_token_defines): Likewise.
2987 (packsymbols): Likewise.
2989 * src/output.c (output): CPP-out useless code.
2991 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2993 * src/reader.c (reader): Delete obsolete call to function
2994 output_trailers and output_headers.
2995 * src/output.h: Remove obsolete functions prototypes of output_headers
2996 and output_trailers.
2998 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
3000 * src/main.c: Include macrotab.h.
3001 * src/macrotab.h (macro_entry_s): Constify fields.
3002 Adjust functions prototypes.
3003 * src/macrotab.c (macro_insert): Constify key and value.
3004 (macro_find): Constify key.
3005 (macro_insert): Include 'xalloc.h'
3006 (macro_insert): Use XMALLOC.
3007 (macro_find): Constify return value.
3008 * src/output.c (output_table_data): Rename table to table_data.
3009 (output_parser): Constify macro_key, macro_value.
3011 2001-08-30 Marc Autret <autret_m@epita.fr>
3013 * src/reader.c (parse_skel_decl): New.
3014 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
3015 * src/lex.h (token_t): New token `tok_skel'.
3016 * src/lex.c (percent_table): Add skeleton option entry.
3019 2001-08-29 Marc Autret <autret_m@epita.fr>
3021 * src/bison.simple: Add %%user_code directive at the end.
3022 * src/reader.c (read_additionnal_code): New.
3024 * src/output.c (output_program): Remove.
3027 2001-08-28 Marc Autret <autret_m@epita.fr>
3029 * src/output.c (output_actions): Clean up.
3030 (output_gram): CPP-out useless code.
3031 * src/reader.c (reader): Clean up, CPP-out useless code.
3033 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
3035 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
3037 * src/bison.simple: Add `%%definitions'.
3039 2001-08-28 Marc Autret <autret_m@epita.fr>
3041 * config/depcomp: New file.
3043 2001-08-27 Paul Eggert <eggert@twinsun.com>
3045 * src/bison.simple (yyparse): Don't take the address of an
3046 item before the start of an array, as that doesn't conform to
3049 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
3051 * src/output.c (output): Remove the initialization of the macro
3052 obstack. It was done too late here.
3054 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
3056 (reader): Initialize the macro obstack here, since we need it to grow
3057 '%define' directives.
3059 * src/reader.h: Declare the macro obstack as extern.
3061 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
3063 * src/output.c (output_parser): Fix. Store single '%' characters in
3064 the output obstack instead of throwing them away.
3066 2001-08-27 Akim Demaille <akim@epita.fr>
3068 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
3070 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3072 * lib/Makefile.am: Adjust.
3074 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3076 * src/bison.simple: Update and add '%%' directives.
3078 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3080 * src/reader.c (reader): Remove calls to 'output_headers' and
3081 'output_trailers'. Remove some C output.
3082 (readgram): Disable a piece of code that was writing a default
3083 definition for 'YYSTYPE'.
3084 (reader_output_yylsp): Remove.
3085 (packsymbols): Output token defintions to a macro.
3086 (copy_definition): Disable C output.
3088 * src/reader.c (parse_macro_decl): New function used to parse macro
3090 (copy_string2): Put the body of copy_string into this new function.
3091 Add a parameter to let the caller choose whether he wants to copy the
3092 string delimiters or not.
3093 (copy_string): Be a simple call to copy_string2 with the last argument
3095 (read_declarations): Add case for macro definition.
3096 (copy_identifier): New.
3097 (parse_macro_decl): Read macro identifiers using copy_identifier
3100 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3102 * src/output.c (prepare): Add prefixed names.
3103 (output_parser): Output semantic actions.
3104 (output_parser): Fix bug on '%%line' directives.
3106 * src/output.c (output_headers): Remove. The C code printed by this
3107 function should now be in the skeletons.
3108 (output_trailers): Remove.
3109 (output): Disable call to 'reader_output_yylsp'.
3110 (output_rule_data): Do not output tables to the table obstack.
3112 * src/output.c: Remove some C dedicated output.
3113 Improve the use of macro and output obstacks.
3114 (output_defines): Remove.
3116 * src/output.c (output_token_translations): Associate 'translate'
3117 table with a macro. No output to the table obstack.
3118 (output_gram): Same for 'rhs' and 'prhs'.
3119 (output_stos): Same for 'stos'.
3120 (output_rule_data): Same for 'r1' and 'r2'.
3121 (token_actions): Same for 'defact'.
3122 (goto_actions): Same for 'defgoto'.
3123 (output_base): Same for 'pact' and 'pgoto'.
3124 (output_table): Same for 'table'.
3125 (output_check): Same for 'check'.
3127 * src/output.c (output_table_data): New function.
3128 (output_short_table): Remove.
3129 (output_short_or_char_table): Remove.
3131 * src/output.c (output_parser): Replace most of the skeleton copy code
3132 with something new. Skeletons are now processed character by character
3133 rather than line by line, and Bison looks for '%%' macros. This is the
3134 first step in making Bison's output process (a lot) more flexible.
3135 (output_parser): Use the macro table.
3137 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3139 * src/main.c (main): Initialize the macro table.
3141 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3143 * src/lex.c (percent_table): Add tok_define.
3144 * src/lex.h: Add tok_define.
3146 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3148 * src/macrotab.c: New file.
3149 * src/macrotab.h: New file.
3150 * src/Makefile.am: Update.
3152 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3154 * lib/hash.c: New file.
3155 * lib/hash.h: New file.
3156 * lib/Makefile.am: Update.
3158 2001-08-15 Akim Demaille <akim@epita.fr>
3162 2001-08-15 Marc Autret <autret_m@epita.fr>
3164 * src/reader.c (readgram): Indent output macro YYSTYPE.
3165 (packsymbols): Likewise.
3166 (output_token_defines): Likewise.
3167 * src/files.c: Standardize.
3168 (compute_header_macro): New.
3169 (defines_obstack_save): New. Use compute_header_macro.
3170 (output_files): Update. Use defines_obstack_save.
3172 2001-08-15 Akim Demaille <akim@epita.fr>
3174 * doc/bison.texinfo (Table of Symbols): Document
3177 2001-08-15 Akim Demaille <akim@epita.fr>
3179 * missing: Update from CVS Automake.
3180 * config/config.guess, config/config.sub, config/texinfo.tex:
3181 Update from gnu.org.
3183 2001-08-15 Akim Demaille <akim@epita.fr>
3185 * Makefile.maint: Sync with CVS Autoconf.
3187 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
3189 * doc/bison.texinfo: Include GNU Free Documentation License from
3191 * doc/fdl.texi: Add to package.
3193 2001-08-14 Marc Autret <autret_m@epita.fr>
3195 Turn on %{source,header}_extension features.
3197 * src/lex.c (percent_table): Un-CPP out header_extension and
3199 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
3200 (compute_exts_from_src): Remove conditions. It restores priorities
3203 2001-08-14 Marc Autret <autret_m@epita.fr>
3205 * src/files.c (compute_base_names): Add extensions computing when
3206 `--file-prefix' used.
3207 Standardize function calls.
3209 2001-08-13 Marc Autret <autret_m@epita.fr>
3211 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
3212 defining it (defined but null disables alloca).
3214 2001-08-13 Marc Autret <autret_m@epita.fr>
3216 * src/bison.simple (_yy_memcpy): CPP reformat.
3218 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
3220 * tests/atconfig.in (CPPFLAGS): Fix.
3222 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
3224 * doc/bison.texinfo: Include GNU General Public License from
3226 * doc/gpl.texi: Add to package.
3228 2001-08-10 Marc Autret <autret_m@epita.fr>
3230 * src/print_graph.h: Fix.
3231 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
3233 2001-08-10 Akim Demaille <akim@epita.fr>
3235 * src/system.h: Provide default declarations for stpcpy, strndup,
3238 2001-08-10 Robert Anisko <anisko_r@epita.fr>
3240 * doc/bison.texinfo (Locations): Update @$ stuff.
3242 2001-08-09 Robert Anisko <anisko_r@epita.fr>
3244 * src/bison.simple (YYLLOC_DEFAULT): Update.
3247 2001-08-08 Marc Autret <autret_m@epita.fr>
3249 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
3250 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
3251 Reported by Fabrice Bauzac.
3253 2001-08-08 Marc Autret <autret_m@epita.fr>
3255 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
3256 * src/vcg.c (output_node): Fix.
3257 * src/vcg.h: Cleanup.
3258 * src/print_graph.c: Add comments.
3259 (node_output_size): New global variable. Simplify the formatting of
3260 the VCG graph output.
3261 (print_actions): Unused code is now used. It notifies the final state
3262 and no action states in the VCG graph. It also give the reduce actions.
3263 The `shift and goto' edges are red and the `go to state' edges are
3265 Get the current node name and node_obstack by argument.
3266 (node_obstack): New variable.
3267 (print_state): Manage node_obstack.
3268 (print_core): Use node_obstack given by argument.
3269 A node is not only computed here but in print_actions also.
3270 (print_graph): CPP out useless code instead of commenting it.
3272 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
3274 * tests/atconfig.in (CPPFLAGS): Fix.
3276 2001-08-07 Akim Demaille <akim@epita.fr>
3278 * src/print_graph.c (quote): New.
3279 (print_core): Use it.
3281 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3283 * src/vcg.c (complain.h): Include it.
3284 Unepitaize `return' invocations.
3285 [NDEBUG] (main): Remove.
3286 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
3287 * src/files.c (open_files): Initialize graph_obstack.
3288 * src/print_graph.c (print_actions): CPP out useless code.
3289 (print_core): Don't output the last `\n' in labels.
3291 * src/files.c (output_files): Output the VCG file.
3292 * src/main.c (main): Invoke print_graph ();
3294 2001-08-06 Marc Autret <autret_m@epita.fr>
3296 Automaton VCG graph output.
3297 Using option ``-g'' or long option ``--graph'', you can generate
3298 a gram_filename.vcg file containing a VCG description of the LALR (1)
3299 automaton of your grammar.
3301 * src/main.c: Call to print_graph() function.
3302 * src/getargs.h: Update.
3303 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
3304 (graph_flag): New flag.
3306 (getargs): Add case `g'.
3307 * src/files.c (graph_obstack): New obstack struct.
3308 (open_files): Initialize new obstack.
3309 (output_files): Saves graph_obstack if required.
3310 * src/files.h (graph_obstack): New extern declaration.
3311 * src/Makefile.am: Add new source files.
3313 2001-08-06 Marc Autret <autret_m@epita.fr>
3315 * src/print_graph.c, src/print_graph.h (graph): New.
3316 * src/vcg.h: New file.
3317 * src/vcg.c: New file, VCG graph handling.
3319 2001-08-06 Marc Autret <autret_m@epita.fr>
3321 Add of %source_extension and %header_extension which specify
3322 the source or/and the header output file extension.
3324 * src/files.c (compute_base_names): Remove initialisation of
3325 src_extension and header_extension.
3326 (compute_exts_from_gf): Update.
3327 (compute_exts_from_src): Update.
3328 (output_files): Update.
3329 * src/reader.c (parse_header_extension_decl): New.
3330 (parse_source_extension_decl): New.
3331 (read_declarations): New case statements for the new tokens.
3332 * src/lex.c (percent_table): Add entries for %source_extension
3333 and %header_extension.
3334 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
3336 2001-08-06 Marc Autret <autret_m@epita.fr>
3338 * configure.in: Bump to 1.28c.
3339 * doc/bison.texinfo: Texinfo thingies.
3341 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
3343 * tests/atconfig.in (CPPFLAGS): Add.
3344 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
3346 2001-08-03 Akim Demaille <akim@epita.fr>
3350 2001-08-03 Akim Demaille <akim@epita.fr>
3352 * tests/Makefile.am (check-local): Ship testsuite.
3353 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
3356 2001-08-03 Akim Demaille <akim@epita.fr>
3358 * configure.in: Try using -Wformat when compiling.
3360 2001-08-03 Akim Demaille <akim@epita.fr>
3362 * configure.in: Bump to 1.28b.
3364 2001-08-03 Akim Demaille <akim@epita.fr>
3366 * src/complain.c: Adjust strerror_r portability issues.
3368 2001-08-03 Akim Demaille <akim@epita.fr>
3372 2001-08-03 Akim Demaille <akim@epita.fr>
3374 * src/getargs.c, src/getarg.h (skeleton)): Constify.
3375 * src/lex.c (literalchar): Avoid name clashes on `buf'.
3376 * src/getargs.c: Include complain.h.
3377 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
3378 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
3380 2001-08-03 Akim Demaille <akim@epita.fr>
3382 * src/reader.c (readgram): Display hidden chars in error messages.
3384 2001-08-03 Akim Demaille <akim@epita.fr>
3386 Update to gettext 0.10.39.
3388 2001-08-03 Akim Demaille <akim@epita.fr>
3390 * lib/strspn.c: New.
3392 2001-08-01 Marc Autret <autret_m@epita.fr>
3394 * doc/bison.texinfo: Update.
3395 * doc/bison.1 (mandoc): Update.
3396 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
3397 * src/files.c: Support output files extensions computing.
3398 (src_extension): New static variable.
3399 (header_extension): New static variable.
3401 (get_extension_index): New function, gets the index of an extension
3402 filename in a string.
3403 (compute_exts_from_gf): New function, computes extensions from the
3404 grammar file extension.
3405 (compute_exts_from_src): New functions, computes extensions from the
3406 C source file extension, file given by ``-o'' option.
3407 (compute_base_names): Update.
3408 (output_files): Update.
3410 2001-08-01 Robert Anisko <anisko_r@epita.fr>
3412 * doc/bison.texi: Document @$.
3413 (Locations): New section.
3415 2001-07-18 Akim Demaille <akim@epita.fr>
3417 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
3418 * config/prev-version.txt, config/move-if-change: New.
3419 * Makefile.am: Adjust.
3421 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
3423 * src/bison.simple (yyparse): Suppress warning `comparaison
3424 between signed and unsigned'.
3426 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
3428 * src/getargs.h (raw_flag): Remove.
3429 * src/getargs.c: Die on `-r'/`--raw'.
3430 * src/lex.c (parse_percent_token): Die on `%raw'.
3431 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
3432 * tests/calc.at: Suppress test with option `--raw'.
3434 2001-07-14 Akim Demaille <akim@epita.fr>
3437 * configure.in: Require Autoconf 2.50.
3438 Update to gettext 0.10.38.
3440 2001-03-16 Akim Demaille <akim@epita.fr>
3442 * doc/bison.texinfo: ANSIfy the examples.
3444 2001-03-16 Akim Demaille <akim@epita.fr>
3446 * getargs.c (skeleton): New variable.
3447 (longopts): --skeleton is a new option.
3448 (shortopts, getargs): -S is a new option.
3449 * getargs.h: Declare skeleton.
3450 * output.c (output_parser): Use it.
3452 2001-03-16 Akim Demaille <akim@epita.fr>
3454 * m4/strerror_r.m4: New.
3455 * m4/error.m4: Run AC_FUNC_STRERROR_R.
3456 * lib/error.h, lib/error.c: Update.
3458 2001-03-16 Akim Demaille <akim@epita.fr>
3460 * src/getargs.c (longopts): Clean up.
3462 2001-02-21 Akim Demaille <akim@epita.fr>
3464 * src/reader.c (gensym): `gensym_count' is your own.
3465 Use a static buf to create the symbol name, as token_buffer is no
3468 2001-02-08 Akim Demaille <akim@epita.fr>
3470 * src/conflicts.c (conflict_report): Be sure not to append to res
3471 between two calls, which could happen if both first sprintf were
3472 skipped, but not the first cp += strlen.
3474 2001-02-08 Akim Demaille <akim@epita.fr>
3476 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
3477 New, from fileutils 4.0.37.
3478 * configure.in: Require Autoconf 2.49c. I took some time before
3479 making this decision. This is the only way out for portability
3480 issues in Bison, it would mean way too much duplicate effort to
3481 import in Bison features implemented in 2.49c since 2.13.
3482 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
3484 2001-02-02 Akim Demaille <akim@epita.fr>
3486 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
3487 * lib/xalloc.h, lib/xmalloc.c: Update.
3489 2001-01-19 Akim Demaille <akim@epita.fr>
3491 Get rid of the ad hoc handling of token_buffer in the scanner: use
3494 * src/lex.c (token_obstack): New.
3495 (init_lex): Initialize it. No longer call...
3496 (grow_token_buffer): this. Remove it.
3497 Adjust all the places which used it to use the obstack.
3499 2001-01-19 Akim Demaille <akim@epita.fr>
3501 * src/lex.h: Rename all the tokens:
3502 s/\bENDFILE\b/tok_eof/g;
3503 s/\bIDENTIFIER\b/tok_identifier/g;
3505 Let them be enums, not #define, to ease debugging.
3506 Adjust all the code.
3508 2001-01-18 Akim Demaille <akim@epita.fr>
3510 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
3511 * src/lex.c (maxtoken, grow_token_buffer): Static.
3513 2001-01-18 Akim Demaille <akim@epita.fr>
3515 Since we now use obstacks, more % directives can be enabled.
3517 * src/lex.c (percent_table): Also accept `%yacc',
3518 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
3520 Handle the actions for `%semantic_parser' and `%pure_parser' here,
3521 instead of returning a token.
3522 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
3523 * src/reader.c (read_declarations): Adjust.
3524 * src/files.c (open_files): Don't call `compute_base_names', don't
3525 compute `attrsfile' since they depend upon data which might be
3526 *in* the input file now.
3527 (output_files): Do it here.
3528 * src/output.c (output_headers): Document the fact that this patch
3529 introduces a guaranteed SEGV for semantic parsers.
3530 * doc/bison.texinfo: Document them.
3531 * tests/suite.at: Exercise these %options.
3533 2000-12-20 Akim Demaille <akim@epita.fr>
3535 Also handle the output file (--verbose) with obstacks.
3537 * files.c (foutput): Remove.
3538 (output_obstack): New.
3539 Adjust all dependencies.
3540 * src/conflicts.c: Return a string.
3541 * src/system.h (obstack_grow_string): Rename as...
3542 (obstack_sgrow): this. Be ready to work with non literals.
3543 (obstack_fgrow4): New.
3545 2000-12-20 Akim Demaille <akim@epita.fr>
3547 * src/files.c (open_files): Fix the computation of short_base_name
3548 in the case of `-o foo.tab.c'.
3550 2000-12-20 Akim Demaille <akim@epita.fr>
3552 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
3553 (copy_dollar): Now that everything uses obstacks, get rid of the
3556 2000-12-20 Akim Demaille <akim@epita.fr>
3558 * src/files.c (open_files): Actually the `.output' file is based
3559 on the short_base_name, not base_name.
3560 * tests/suite.at (Checking output file names): Adjust.
3562 2000-12-20 Akim Demaille <akim@epita.fr>
3564 * src/bison.s1: Remove, we now use directly...
3565 * src/bison.simple: this.
3566 * src/Makefile.am: Use pkgdata instead of data.
3568 2000-12-20 Akim Demaille <akim@epita.fr>
3570 * src/files.c (guard_obstack): New.
3571 (open_files): Initialize it.
3572 (output_files): Dump it...
3573 * src/files.h: Export it.
3574 * src/reader.c (copy_guard): Use it.
3576 2000-12-19 Akim Demaille <akim@epita.fr>
3578 * src/files.c (outfile, defsfile, actfile): Removed as global
3580 (open_files): Don't compute them.
3581 (output_files): Adjust.
3582 (base_name, short_base_name): Be global.
3583 Adjust dependencies.
3585 2000-12-19 Akim Demaille <akim@epita.fr>
3587 * src/files.c (strsuffix): New.
3588 (stringappend): Be just like strcat but allocate.
3589 (base_names): Eve out from open_files.
3590 Try to simplify the rather hairy computation of base_name and
3592 (open_files): Use it.
3593 * tests/suite.at (Checking output file names): New test.
3595 2000-12-19 Akim Demaille <akim@epita.fr>
3597 * src/system.h (obstack_grow_literal_string): Rename as...
3598 (obstack_grow_string): this.
3599 * src/output.c (output_parser): Recognize `%% actions' instead of
3601 * src/bison.s1: s/$/%% actions/.
3602 * src/bison.hairy: Likewise.
3604 2000-12-19 Akim Demaille <akim@epita.fr>
3606 * src/output.c (output_parser): Compute the `#line' lines when
3608 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
3609 Suggested by Hans Aberg.
3611 2000-12-19 Akim Demaille <akim@epita.fr>
3613 Let the handling of the skeleton files be local to the procedures
3616 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
3618 (fparser, open_extra_files): Remove.
3619 (open_files, output_files): Don't take care of fparser.
3620 * src/files.h: Adjust.
3621 * src/output.c (output_parser): Open and close the file to the
3623 * src/reader.c (read_declarations): When %semantic_parser, open
3626 2000-12-19 Akim Demaille <akim@epita.fr>
3628 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
3629 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
3631 2000-12-19 Akim Demaille <akim@epita.fr>
3633 * src/files.c (open_files): Yipee! We no longer need all the code
3634 looking for `/tmp' since we have no tmp file.
3636 2000-12-19 Akim Demaille <akim@epita.fr>
3638 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
3640 * src/files.c (open_files): Less dependency on MSDOS etc.
3642 2000-12-14 Akim Demaille <akim@epita.fr>
3644 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
3645 Provide a default definition.
3646 Use it when executing the default @ action.
3647 * src/reader.c (reader_output_yylsp): No longer include
3648 `timestamp' and `text' in the default YYLTYPE.
3650 2000-12-12 Akim Demaille <akim@epita.fr>
3652 * src/reader.c (copy_definition, parse_union_decl, copy_action)
3653 (copy_guard): Quote the file names.
3654 Reported by Laurent Mascherpa.
3656 2000-12-12 Akim Demaille <akim@epita.fr>
3658 * src/output.c (output_headers, output_program, output): Be sure
3659 to escape special characters when outputting filenames.
3660 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
3661 (output_headers): Don't depend on them, Use ACTSTR.
3663 2000-11-17 Akim Demaille <akim@epita.fr>
3665 * lib/obstack.h: Formatting changes.
3666 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
3667 prevents type checking.
3668 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
3669 cast the value to (void *): assigning a `foo *' to a `void *'
3671 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
3672 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
3675 2000-11-17 Akim Demaille <akim@epita.fr>
3677 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
3679 (suite.m4, regression.m4, calc.m4): these.
3680 * tests/atgeneral.m4: Update from CVS Autoconf.
3682 2000-11-17 Akim Demaille <akim@epita.fr>
3684 * tests/regression.m4 (%union and --defines): New test,
3685 demonstrating a current bug in the obstack implementation.
3687 2000-11-17 Akim Demaille <akim@epita.fr>
3689 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
3691 Use them to declare the variables which are global or local to
3694 2000-11-17 Akim Demaille <akim@epita.fr>
3696 * acconfig.h: Remove, no longer used.
3698 2000-11-07 Akim Demaille <akim@epita.fr>
3700 * src: s/Copyright (C)/Copyright/g.
3702 2000-11-07 Akim Demaille <akim@epita.fr>
3704 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
3706 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
3708 2000-11-07 Akim Demaille <akim@epita.fr>
3710 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
3711 Merge in a single CPP if/else.
3713 2000-11-07 Akim Demaille <akim@epita.fr>
3715 * src/output.c (output): Remove useless variables.
3716 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
3717 argument `data' for consistency with the prototypes.
3719 (obstack_copy, obstack_copy0): Rename the second argument as
3720 `address' for consistency. Qualify it `const'.
3721 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
3722 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
3723 `const' their input argument (`data' or `address').
3724 Adjust the corresponding macros to include `const' in casts.
3726 2000-11-03 Akim Demaille <akim@epita.fr>
3728 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
3729 s/PFILE1/BISON_HAIRY/.
3730 Adjust dependencies.
3732 2000-11-03 Akim Demaille <akim@epita.fr>
3734 For some reason, this was not applied.
3736 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3737 `unlink': it's no longer used.
3739 2000-11-03 Akim Demaille <akim@epita.fr>
3741 * src/files.c (skeleton_find): New function, eved out of...
3742 (open_files, open_extra_files): here.
3744 2000-11-03 Akim Demaille <akim@epita.fr>
3748 * src/files.c (obstack_save): New function.
3749 (done): Rename as...
3750 (output_files): this.
3752 * src/main.c (main): Don't use `atexit' to register `done', since
3753 it no longer has to remove tmp files, just call `output_files'
3754 when there are no errors.
3756 2000-11-02 Akim Demaille <akim@epita.fr>
3758 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3759 `unlink': it's no longer used.
3760 * src/files.h: Formatting changes.
3762 2000-11-02 Akim Demaille <akim@epita.fr>
3764 Remove the last uses of mktemp and unlink/delete.
3766 * src/files.c (fdefines, ftable): Removed.
3767 (defines_ostack, table_obstack): New.
3768 Adjust dependencies of the former into uses of the latter.
3769 * src/output.c (output_short_or_char_table, output_short_table):
3770 Convert to using obstacks.
3771 * src/reader.c (copy_comment2): Accept one FILE * and two
3773 (output_token_defines, reader_output_yylsp): Use obstacks.
3774 * src/system.h (obstack_fgrow3): New.
3776 2000-11-01 Akim Demaille <akim@epita.fr>
3778 Change each use of `fattrs' into a use of `attrs_obstack'.
3780 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
3781 * src/files.c (fattrs): Remove.
3782 (attrs_obstack): New.
3783 Adjust all dependencies.
3784 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
3786 2000-11-01 Akim Demaille <akim@epita.fr>
3789 Change each use of `faction' into a use of `action_obstack'.
3791 * lib/obstack.h, lib/obstack.c: New files.
3792 * src/files.c (faction): Remove.
3793 (action_obstack): New.
3794 Adjust all dependencies.
3796 2000-10-20 Akim Demaille <akim@epita.fr>
3798 * lib/quote.h (PARAMS): New macro. Use it.
3800 2000-10-16 Akim Demaille <akim@epita.fr>
3802 * src/output.c (output_short_or_char_table): New function.
3803 (output_short_table, output_token_translations): Use it.
3804 (goto_actions): Use output_short_table.
3806 2000-10-16 Akim Demaille <akim@epita.fr>
3808 * src/symtab.c (bucket_new): New function.
3811 * src/output.c (output_short_table): New argument to display the
3812 comment associated with the table.
3813 Adjust dependencies.
3814 (output_gram): Use it.
3815 (output_rule_data): Nicer output layout for YYTNAME.
3817 2000-10-16 Akim Demaille <akim@epita.fr>
3819 * src/lex.c (read_typename): New function.
3821 * src/reader.c (copy_dollar): Likewise.
3823 2000-10-16 Akim Demaille <akim@epita.fr>
3825 * src/reader.c (copy_comment2): Expect the input stream to be on
3826 the `/' which is suspected to open a comment, instead of being
3827 called after `//' or `/*' was read.
3828 (copy_comment, copy_definition, parse_union_decl, copy_action)
3829 (copy_guard): Adjust.
3831 2000-10-16 Akim Demaille <akim@epita.fr>
3833 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
3834 `read_signed_integer'.
3836 2000-10-16 Akim Demaille <akim@epita.fr>
3838 * src/reader.c (copy_dollar): New function.
3839 (copy_guard, copy_action): Use it.
3841 2000-10-16 Akim Demaille <akim@epita.fr>
3843 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
3844 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
3845 New files, from Fileutils 4.0.27.
3846 * src/main.c (printable_version): Remove.
3847 * src/lex.c, src/reader.c: Use `quote'.
3849 2000-10-04 Akim Demaille <akim@epita.fr>
3851 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
3853 2000-10-04 Akim Demaille <akim@epita.fr>
3855 * doc/bison.texinfo: Various typos spotted by Neil Booth.
3857 2000-10-04 Akim Demaille <akim@epita.fr>
3859 When a literal string is used to define two different tokens,
3860 `bison -v' segfaults.
3861 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
3863 * tests/regression.m4: New file.
3864 Include the core of the sample provided by Piotr Gackiewicz.
3865 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
3868 2000-10-04 Akim Demaille <akim@epita.fr>
3870 * src/reader.c (parse_expect_decl): Keep `count' within the size
3874 2000-10-02 Paul Eggert <eggert@twinsun.com>
3876 * bison.s1 (yyparse): Assign the default value
3877 unconditionally, to avoid a GCC warning and make the parser a
3880 2000-10-02 Akim Demaille <akim@epita.fr>
3882 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
3885 2000-10-02 Akim Demaille <akim@epita.fr>
3887 * src/derives.c, src/print.c, src/reduce.c: To ease the
3888 translation, move some `\n' out of the translated strings.
3890 2000-10-02 Akim Demaille <akim@epita.fr>
3892 The location tracking mechanism is precious for parse error
3893 messages. Nevertheless, it is enabled only when `@n' is used in
3894 the grammar, which is a different issue (you can use it in error
3895 message, but not in the grammar per se). Therefore, there should
3896 be another means to enable it.
3898 * src/getargs.c (getargs): Support `--locations'.
3900 * src/getargs.h (locationsflag): Export it.
3901 * src/lex.c (percent_table): Support `%locations'.
3902 * src/reader.c (yylsp_needed): Remove this variable, now replaced
3903 with `locationsflag'.
3904 * doc/bison.texinfo: Document `--locations' and `%locations'.
3906 * tests/calc.m4: Test it.
3908 For regularity of the names, replace each
3909 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
3910 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
3911 In addition replace each `flag' with `_flag'.
3913 2000-10-02 Akim Demaille <akim@epita.fr>
3915 Also test parse error messages, including with YYERROR_VERBOSE.
3917 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
3919 Use it to check the computations.
3920 Use it to check `nonassoc' is honored.
3921 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
3922 `--yyerror-verbose'.
3923 (_AT_CHECK_CALC): Adjust to this option.
3924 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
3926 2000-10-02 Akim Demaille <akim@epita.fr>
3928 Test also `--verbose', `--defines' and `--name-prefix'. Testing
3929 the latter demonstrates a flaw in the handling of non debugging
3930 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
3931 was used in order to simplify:
3947 unfortunately this leads to a CPP conflict when
3948 `--name-prefix=foo' is used since it produces `#define yydebug
3951 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
3952 (YYDPRINTF): New macro.
3954 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
3956 Also test `--verbose', `--defines' and `--name-prefix'.
3958 2000-10-02 Akim Demaille <akim@epita.fr>
3960 Improve the readability of the produced parsers.
3962 * src/bison.s1: Formatting changes.
3963 Improve the comment related to the `$' mark.
3964 (yydefault): Don't fall through to `yyresume': `goto' there.
3965 * src/output.c (output_parser): When the `$' is met, skip the end
3967 New variable, `number_of_dollar_signs', to check there's exactly
3968 one `$' in the parser skeleton.
3970 2000-10-02 Akim Demaille <akim@epita.fr>
3972 * lib/xstrdup.c: New file, from the fileutils.
3973 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
3974 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
3975 instead of strlen + xmalloc + strcpy.
3976 * src/symtab.c (copys): Remove, use xstrdup instead.
3978 2000-10-02 Akim Demaille <akim@epita.fr>
3980 * src/gram.h (associativity): New enum type which replaces the
3981 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
3982 `right_assoc', `left_assoc' and `non_assoc'.
3983 Adjust all dependencies.
3984 * src/reader.c: Formatting changes.
3985 (LTYPESTR): Don't define it, use it as a literal in
3986 `reader_output_yylsp'.
3987 * src/symtab.h (symbol_class): New enum type which replaces the
3988 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
3989 `sunknown', `stoken and `snterm'.
3991 2000-10-02 Akim Demaille <akim@epita.fr>
3993 * src/getargs.c (fixed_outfiles): Rename as...
3994 (yaccflag): for consistency and accuracy.
3995 Adjust dependencies.
3997 2000-10-02 Akim Demaille <akim@epita.fr>
3999 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
4000 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
4001 difficult and introduced a lot of core dump. It turns out that
4002 Bison used an implementation of `xmalloc' based on `calloc', and
4003 at various places it does depend upon the initialization to 0. I
4004 have not tried to isolate the pertinent places, and all the former
4005 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
4006 someone should address this issue.
4008 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
4009 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
4011 Adjust dependencies.
4012 * src/warshall.h: New file.
4015 2000-10-02 Akim Demaille <akim@epita.fr>
4017 Various anti-`extern in *.c' changes.
4019 * src/system.h: Include `assert.h'.
4021 2000-10-02 Akim Demaille <akim@epita.fr>
4023 * src/state.h (nstates, final_state, first_state, first_shift)
4024 (first_reduction): Move their exportation from here...
4025 * src/LR0.h: to here.
4026 Adjust dependencies.
4027 * src/getargs.c (statisticsflag): New variable.
4028 Add support for `--statistics'.
4029 Adjust dependencies.
4031 Remove a lot of now useless `extern' statements in most files.
4033 2000-10-02 Akim Demaille <akim@epita.fr>
4035 * src/LR0.h: New file.
4038 2000-10-02 Akim Demaille <akim@epita.fr>
4040 * src/print.h: New file.
4042 * src/print.c: Formatting and ordering changes.
4043 (verbose, terse): Replace with...
4044 (print_results): this new function.
4045 Adjust dependencies.
4047 2000-10-02 Akim Demaille <akim@epita.fr>
4049 * src/conflicts.c (conflict_report): New function.
4050 (conflict_log, verbose_conflict_log): Replace with...
4051 (print_conflicts): this function.
4052 Adjust dependencies.
4053 * src/conflicts.h: New file.
4054 Propagate its inclusion.
4056 2000-10-02 Akim Demaille <akim@epita.fr>
4058 * src/nullable.h: New file.
4059 Propagate its inclusion.
4060 * src/nullable.c: Formatting changes.
4062 2000-10-02 Akim Demaille <akim@epita.fr>
4064 * src/reduce.h: New file.
4065 Propagate its inclusion.
4066 * src/reduce.c: Topological sort and other formatting changes.
4067 (bool, TRUE, FALSE): Move their definition to...
4068 * src/system.h: here.
4070 2000-10-02 Akim Demaille <akim@epita.fr>
4072 * src/files.c: Formatting changes.
4073 (tryopen, tryclose, openfiles): Rename as...
4074 (xfopen, xfclose, open_files): this.
4075 (stringappend): static.
4076 * src/files.h: Complete the list of exported symbols.
4079 2000-10-02 Akim Demaille <akim@epita.fr>
4081 * src/reader.h: New file.
4082 Propagate its use instead of tedious list of `extern' and
4084 * src/reader.c: Formatting changes, topological sort,
4087 2000-10-02 Akim Demaille <akim@epita.fr>
4089 * src/lex.h: Prototype `lex.c' exported functions.
4090 * src/reader.c: Adjust.
4091 * src/lex.c: Formatting changes.
4092 (safegetc): Rename as...
4095 2000-10-02 Akim Demaille <akim@epita.fr>
4097 * src/lalr.h: New file.
4098 Propagate its inclusion instead of prototypes and `extern'.
4099 * src/lalr.c: Formatting changes, topological sorting etc.
4101 2000-10-02 Akim Demaille <akim@epita.fr>
4103 * src/output.c (token_actions): Introduce a temporary array,
4104 YYDEFACT, that makes it possible for this function to use
4107 2000-10-02 Akim Demaille <akim@epita.fr>
4109 `user_toknums' is output as a `short[]' in `output.c', while it is
4110 defined as a `int[]' in `reader.c'. For consistency with the
4111 other output tables, `user_toknums' is now defined as a table of
4114 * src/reader.c (user_toknums): Be a short table instead of an int
4116 Adjust dependencies.
4118 Factor the short table outputs.
4120 * src/output.c (output_short_table): New function.
4121 * src/output.c (output_gram, output_stos, output_rule_data)
4122 (output_base, output_table, output_check): Use it.
4124 2000-10-02 Akim Demaille <akim@epita.fr>
4126 * src/output.c (output): Topological sort of the functions, in
4127 order to get rid of the `static' prototypes.
4128 No longer use `register'.
4129 * src/output.h: New file.
4130 Propagate its inclusion in files explicitly prototyping functions
4133 2000-09-21 Akim Demaille <akim@epita.fr>
4135 * src/atgeneral.m4: Update from Autoconf.
4137 2000-09-21 Akim Demaille <akim@epita.fr>
4139 * src/closure.h: New file.
4140 * src/closure.c: Formatting changes, topological sort over the
4141 functions, use of closure.h.
4142 (initialize_closure, finalize_closure): Rename as...
4143 (new_closure, free_closure): these. Adjust dependencies.
4144 * src/LR0.c: Formatting changes, topological sort, use of
4146 (initialize_states): Rename as...
4148 * src/Makefile.am (noinst_HEADERS): Adjust.
4150 2000-09-20 Akim Demaille <akim@epita.fr>
4152 * src/acconfig.h: Don't protect config.h against multiple
4154 Don't define PARAMS.
4155 * src/system.h: Define PARAMS.
4156 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
4157 purpose of config.h. system.h must not try to fix wrong
4158 definitions in config.h.
4160 2000-09-20 Akim Demaille <akim@epita.fr>
4162 * src/derives.h: New file.
4163 * src/main.c, src/derives.h: Use it.
4165 * src/Makefile.am (noinst_HEADERS): Adjust.
4167 2000-09-20 Akim Demaille <akim@epita.fr>
4169 * tests/atgeneral.m4: Update from Autoconf.
4170 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
4171 (AT_CHECK_CALC): New macros.
4172 Use these macros to test bison with options `', `--raw',
4173 `--debug', `--yacc', `--yacc --debug'.
4175 2000-09-19 Akim Demaille <akim@epita.fr>
4177 * src/output.c: Formatting changes.
4178 * src/machine.h: Remove, leaving its contents in...
4179 * src/system.h: here.
4181 Adjust all dependencies on stdio.h and machine.h.
4182 * src/getargs.h: New file.
4183 Let all `extern' declarations about getargs.c be replaced with
4184 inclusion of `getargs.h'.
4185 * src/Makefile.am (noinst_HEADERS): Adjust.
4187 * tests/calc.m4 (yyin): Be initialized in main, not on the global
4189 (yyerror): Returns void, not int.
4190 * doc/bison.texinfo: Formatting changes.
4192 2000-09-19 Akim Demaille <akim@epita.fr>
4194 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
4197 2000-09-18 Akim Demaille <akim@epita.fr>
4199 * configure.in: Append WARNING_CFLAGS to CFLAGS.
4200 * src/Makefile.am (INCLUDES): Don't.
4201 Be ready to fetch headers in lib/.
4203 2000-09-18 Akim Demaille <akim@epita.fr>
4205 * doc/bison.texinfo: Update the copyright.
4206 ANSIfy and GNUify the examples.
4207 Remove the old menu.
4209 2000-09-18 Akim Demaille <akim@epita.fr>
4211 First set of tests: use the `calc' example from the documentation.
4213 * src/bison.s1 (yyparse): Condition the code using `yytname' which
4214 is defined only when YYDEBUG is.
4215 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
4216 * src/files.c (tryopen, tryclose): Formatting changes.
4217 Move to the top and be static.
4218 * src/reader.c (read_signed_integer): Likewise.
4219 * tests/calc.m4: New file.
4220 * Makefile.am, suite.m4: Adjust.
4221 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
4223 2000-09-18 Akim Demaille <akim@epita.fr>
4225 Add support for an Autotest test suite for Bison.
4227 * m4/m4.m4, m4/atconfig.m4: New files.
4228 * m4/Makefile.am (EXTRA_DIST): Adjust.
4229 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
4231 * src/getargs.c: Display a more standard --version message.
4232 * src/reader.c (reader): Formatting changes.
4233 No longer depend upon VERSION_STRING.
4234 * configure.in: No longer use `dnl'.
4235 Set up the test suite and the new directory `tests/.
4236 (VERSION_STRING): Remove.
4238 2000-04-14 Akim Demaille <akim@epita.fr>
4240 * src/reader.c (copy_comment2): New function, same as former
4241 `copy_comment', but outputs into two FILE *.
4242 (copy_comment): Use it.
4243 (parse_union_decl): Use it.
4244 (get_type, parse_start_decl): Use the same `invalid' message.
4245 (parse_start_decl, parse_union_decl): Use the same `multiple'
4247 (parse_union_decl, copy_guard, copy_action): Use the same
4248 `unmatched' message.
4249 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
4251 2000-03-31 Akim Demaille <akim@epita.fr>
4253 * src/files.c (tryopen, tryclose): Move to the top.
4256 2000-03-31 Akim Demaille <akim@epita.fr>
4258 * src/main.c (main): Don't call `done', exit does it.
4260 2000-03-31 Akim Demaille <akim@epita.fr>
4262 * allocate.c: s/return (foo)/return foo/.
4265 * output.c: Likewise.
4266 * reader.c: Likewise.
4267 * symtab.c: Likewise.
4268 * vmsgetargs.c: Likewise.
4270 2000-03-31 Akim Demaille <akim@epita.fr>
4272 Clean up the error reporting functions.
4274 * src/report.c: New file.
4275 * src/report.h: Likewise.
4276 * src/Makefile.am: Adjust.
4277 * m4/error.m4: New file.
4278 * m4/Makefile.am: Adjust.
4279 * configure.in (jm_PREREQ_ERROR): Call it.
4280 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
4282 (fatal, fatals): Remove. All callers use complain.c::fatal.
4283 (warn, warni, warns, warnss, warnss): Remove. All callers use
4284 complain.c::complain.
4285 (toomany): Remove, use fatal instead.
4286 * src/files.c (done): No argument, use complain_message_count.
4287 * src/main.c (main): Register `done' to `atexit'.
4289 * src/getargs.c (usage): More `fputs', less `fprintf'.
4291 2000-03-28 Akim Demaille <akim@epita.fr>
4293 * lib/: New directory.
4294 * Makefile.am (SUBDIRS): Adjust.
4295 * configure.in: Adjust.
4296 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
4298 * src/alloca.c: Moved to lib/.
4299 * src/getopt.c: Likewise.
4300 * src/getopt1.c: Likewise.
4301 * src/getopt.h: Likewise.
4302 * src/ansi2knr.c: Likewise.
4303 * src/ansi2knr.1: Likewise.
4304 * src/Makefile.am: Adjust.
4305 * lib/Makefile.am: New file.
4307 2000-03-28 Akim Demaille <akim@epita.fr>
4309 * src/getargs.c (usage): Refresh the help message.
4311 2000-03-17 Akim Demaille <akim@epita.fr>
4313 * src/getopt1.c: Updated from textutils 2.0e
4314 * src/getopt.c: Likewise.
4315 * src/getopt.h: Likewise.
4317 2000-03-17 Akim Demaille <akim@epita.fr>
4319 * src/Makefile.am (bison.simple): Fix the awk program: quote only
4320 the file name, not the whole `#line LINE FILE'.
4322 2000-03-17 Akim Demaille <akim@epita.fr>
4324 On syntax errors, report the token on which we choked.
4326 * src/bison.s1 (yyparse): In the label yyerrlab, when
4327 YYERROR_VERBOSE, add yychar in msg.
4329 2000-03-17 Akim Demaille <akim@epita.fr>
4331 * src/reader.c (copy_at): New function.
4332 (copy_guard): Use it.
4333 (copy_action): Use it.
4335 2000-03-17 Akim Demaille <akim@epita.fr>
4337 Be kind to translators, save some useless translations.
4339 * src/main.c (banner): New function.
4340 (fatal_banner): Use it.
4341 (warn_banner): Use it.
4343 2000-03-17 Akim Demaille <akim@epita.fr>
4345 * src/reader.c (copy_definition): Use copy_string and
4346 copy_comment. Removed now unused `match', `ended',
4348 (copy_comment, copy_string): Moved, to be visible from
4351 2000-03-17 Akim Demaille <akim@epita.fr>
4353 * src/reader.c (copy_string): Declare `static inline'. No
4354 problems with inline, since it is checked by configure.
4355 (copy_comment): Likewise.
4357 2000-03-17 Akim Demaille <akim@epita.fr>
4359 * src/reader.c (packsymbols): Formatting changes.
4361 2000-03-17 Akim Demaille <akim@epita.fr>
4363 * src/reader.c (copy_comment): New function, factored out from:
4364 (copy_action): Use it. Removed now unused `match', `ended',
4366 (copy_guard): Likewise.
4368 2000-03-17 Akim Demaille <akim@epita.fr>
4370 * src/reader.c (copy_string): New function, factored out from:
4371 (copy_action): Use it.
4372 (copy_guard): Likewise.
4374 2000-03-17 Akim Demaille <akim@epita.fr>
4376 Change the handling of @s so that they behave exactly like $s.
4377 There is now a pseudo variable @$ (readble and writable), location
4378 of the lhs of the rule (by default ranging from the location of
4379 the first symbol of the rhs, to the location of the last symbol,
4380 or, if the rhs is empty, YYLLOC).
4382 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
4384 (yyparse): When providing a default semantic action, provide a
4385 default location action.
4386 (after the $): No longer change `*YYLSP', just stack YYLOC the
4387 same way you stack YYVAL.
4388 * src/reader.c (read_declarations): Use warns.
4389 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
4390 (copy_action, case '@'): Likewise.
4391 Use a standard error message, to save useless work from
4394 2000-03-17 Akim Demaille <akim@epita.fr>
4396 * src/bison.s1: Formatting and cosmetics changes.
4397 * src/reader.c: Likewise.
4398 Update the Copyright notice.
4400 2000-03-17 Akim Demaille <akim@epita.fr>
4402 * src/bison.s1 (#line): All set to `#line' only, since the
4403 Makefile now handles them.
4405 2000-03-16 Akim Demaille <akim@epita.fr>
4407 * src/output.c (output_rule_data): Output the documentation of
4409 (Copyright notice): Update.
4412 2000-03-16 Akim Demaille <akim@epita.fr>
4414 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
4415 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
4416 One `#if YYDEBUG' remains, since it uses variables which are
4417 defined only if `YYDEBUG != 0'.
4419 2000-03-16 Akim Demaille <akim@epita.fr>
4421 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
4422 and related variables so that the similarities are highlighted.
4424 2000-03-16 Akim Demaille <akim@epita.fr>
4426 * src/bison.s1: Properly indent CPP directives.
4428 2000-03-16 Akim Demaille <akim@epita.fr>
4430 * src/bison.s1: Properly indent the `alloca' CPP section.
4432 2000-03-16 Akim Demaille <akim@epita.fr>
4434 Do not hard code values of directories in `configure.in'.
4435 Update the `configure' tool chain.
4437 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
4439 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
4440 (AC_OUTPUT): Add m4/Makefile.
4441 Bump to bison 1.28a, 1.29 has never been released.
4442 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
4443 handled via src/Makefile.am.
4444 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
4445 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
4447 * Makefile.am (SUBDIRS): Add m4.
4448 (ACLOCAL_AM_FLAGS): New variable.
4449 (AUTOMAKE_OPTIONS): Add check-news.
4450 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
4451 the proper line number and file name.
4452 (DEFS): Propagate the location of bison library files and of the
4454 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
4456 * acinclude.m4: Remove, replaced by the directory m4.
4457 * m4/Makefile.am (EXTRA_DIST): New variable.
4458 * m4/gettext.m4: New file, from the fileutils.
4459 * m4/lcmessage.m4: Likewise
4460 * m4/progtest.m4: Likewise.
4461 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
4463 2000-03-10 Akim Demaille <akim@epita.fr>
4466 Formatting changes of various comments.
4467 Respect the GNU coding standards at various places.
4468 Don't use `_()' when no translation is needed.
4470 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4473 OS/2 honors TMPDIR environment variable.
4475 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4477 * doc/bison.texinfo: Tweaked spelling and grammar.
4479 Removed reference to price of printed copy.
4480 Mention BISON_SIMPLE and BISON_HAIRY.
4482 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4484 * configure.in, NEWS:
4485 Bison 1.29 released.
4487 1999-10-27 Jesse Thilo <jthilo@gnu.org>
4489 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
4490 Added reference card.
4492 1999-07-26 Jesse Thilo <jthilo@gnu.org>
4494 * po/ru.po: Added Russian translation.
4496 1999-07-26 Jesse Thilo <jthilo@gnu.org>
4498 * configure.in: Added Russian translation.
4500 1999-07-06 Jesse Thilo <jthilo@gnu.org>
4502 * configure.in, NEWS, README:
4503 Released version 1.28.
4505 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4508 Squashed redefinition warning on some systems.
4510 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
4511 Have configure build version string instead of relying on ANSI string
4514 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4516 * po/POTFILES.in: Got rid of version.c.
4518 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4520 * acconfig.h, configure.in:
4521 Have configure build version string instead of relying on ANSI string
4524 1999-06-08 Jesse Thilo <jthilo@gnu.org>
4527 Dropped mention of `+' for long-named options.
4529 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4531 * src/files.c: Added <unistd.h> for unlink().
4533 * src/Makefile.am, src/system.h:
4536 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4538 * README: Added a FAQ list.
4540 * configure.in, acconfig.h:
4543 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4545 * doc/FAQ, doc/Makefile.am:
4548 1999-05-19 Jesse Thilo <jthilo@gnu.org>
4550 * src/alloc.h, src/symtab.h, src/version.c:
4551 Protected inclusion of "config.h" with HAVE_CONFIG_H.
4553 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4555 * src/.cvsignore, src/Makefile.am:
4556 Reorganized: sources in `src', documentation in `doc'.
4558 * src/lex.c (literalchar):
4559 fixed the code for escaping double quotes (thanks
4562 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4564 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
4565 Adjusted paths to reflect directory reorganization.
4567 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4569 * doc/.cvsignore, doc/Makefile.am:
4570 Reorganized: sources in `src', documentation in `doc'.
4572 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4575 Updated AC_INIT file to reflect directory reorganization.
4577 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
4578 Reorganized: sources in `src', documentation in `doc'.
4580 1999-04-13 Jesse Thilo <jthilo@gnu.org>
4583 Don't declare calloc() and realloc() if not necessary.
4585 1999-04-13 Jesse Thilo <jthilo@gnu.org>
4587 * configure.in, acconfig.h, acinclude.m4:
4588 Don't declare calloc() and realloc() if not necessary.
4590 1999-03-23 Jesse Thilo <jthilo@gnu.org>
4592 * po/.cvsignore: Added i18n support.
4594 1999-03-23 Jesse Thilo <jthilo@gnu.org>
4596 * acconfig.h, configure.in, Makefile.am:
4599 1999-03-22 Jesse Thilo <jthilo@gnu.org>
4601 * src/bison.s1: Fixed #line numbers.
4603 1999-03-15 Jesse Thilo <jthilo@gnu.org>
4605 * po/es.po, po/fr.po, po/nl.po, po/de.po:
4606 Added PO files from Translation Project.
4608 1999-03-03 Jesse Thilo <jthilo@gnu.org>
4611 Added support for non-ANSI compilers (ansi2knr).
4613 1999-02-16 Jesse Thilo <jthilo@gnu.org>
4615 * configure.in: Bumped version number to 1.27.
4618 Added `bison.simple' to list of files removed by `make distclean'.
4620 1999-02-12 Jesse Thilo <jthilo@gnu.org>
4622 * src/files.c, src/files.h:
4623 Defined locations of parser files in config.h instead of Makefile.
4625 1999-02-12 Jesse Thilo <jthilo@gnu.org>
4627 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
4628 Defined locations of parser files in config.h instead of Makefile.
4630 1999-02-09 Jesse Thilo <jthilo@gnu.org>
4633 Removed inappropriate use of $< macro.
4635 1999-02-05 Jesse Thilo <jthilo@gnu.org>
4637 * po/Makefile.in.in, po/POTFILES.in:
4638 Add `po' directory skeleton.
4640 1999-01-27 Jesse Thilo <jthilo@gnu.org>
4642 * README: Document help-bison list.
4644 * configure.in: Add check for mkstemp().
4646 1999-01-20 Jesse Thilo <jthilo@gnu.org>
4648 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
4649 Hush a few compiler warnings.
4652 Add tryclose(), which verifies that fclose was successful.
4653 Hush a couple of compiler warnings.
4655 1999-01-20 Jesse Thilo <jthilo@gnu.org>
4657 * Makefile.am, OChangeLog:
4658 ChangeLog is now automatically generated. Include the old version as
4661 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4663 * 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:
4666 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4668 * doc/bison.texinfo: Fix formatting glitch.
4670 * doc/bison.texinfo: Update FSF address.
4672 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4674 * acconfig.h: Update FSF address.
4676 1999-01-08 Jesse Thilo <jthilo@gnu.org>
4679 Don't define PACKAGE here, since config.h defines it.
4681 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4683 * src/reader.c: Update copyright date.
4686 Ditch sprintf to statically-sized buffers in fatal/warn functions in
4687 favor of output directly to stderr (avoids buffer overruns).
4689 * src/reader.c: Some checks for premature EOF.
4691 * 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:
4692 Use prototypes if the compiler understands them.
4694 * src/files.c: Honor TMPDIR on Unix hosts.
4695 Use prototypes if the compiler understands them.
4698 Fix a couple of buffer overrun bugs.
4699 Use prototypes if the compiler understands them.
4701 * src/system.h: Include unistd.h and ctype.h.
4702 Use #ifdef instead of #if for NLS symbols.
4704 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4706 * doc/bison.texinfo:
4707 Delete comment "consider using @set for edition number, etc..." since
4708 we now are doing so.
4710 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4713 Use prototypes if the compiler understands them.
4715 * NEWS: Document 1.26 highlights.
4717 * Makefile.am: Require Automake 1.3 or later.
4720 Use prototypes if the compiler understands them.
4722 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4725 Use VERSION symbol from automake for version number.
4727 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4729 * acconfig.h, configure.in, version.cin:
4730 Use VERSION symbol from automake for version number.
4732 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4735 Distribute original version of simple parser (bison.s1), not built
4736 version (bison.simple).
4738 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4740 * doc/bison.texinfo: Add info dir entry.
4742 * doc/bison.texinfo:
4743 Let automake put version number into documentation.
4745 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4747 * src/bison.cld, src/build.com, src/vmshlp.mar:
4748 Add non-RCS files from /gd/gnu/bison.
4750 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4753 Document the BISON_HAIRY and BISON_SIMPLE variables.
4755 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4757 * src/version.c: Build version.c automatically.
4760 Fix token numbering (used to start at 258, not 257).
4762 * src/system.h: Include config.h.
4764 * src/getargs.c: Update bug report address.
4766 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
4767 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
4769 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4772 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4774 * configure.in, version.cin:
4775 Build version.c automatically.
4777 * AUTHORS: Add AUTHORS file.
4779 * README: Update bug report address.
4782 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4784 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
4787 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4789 * doc/bison.texinfo: Clean up some formatting.
4791 1998-05-05 Richard Stallman <rms@gnu.org>
4793 * doc/bison.texinfo:
4794 Explain better why to make a pure parser.
4796 1998-01-05 Richard Stallman <rms@gnu.org>
4798 * src/files.c (openfiles):
4799 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
4800 find a temporary directory, if possible. Do not unlink files while
4803 1997-08-25 Richard Stallman <rms@gnu.org>
4805 * src/reader.c (stack_offset;):
4806 Change some warni to warns.
4808 * src/lex.c (literalchar): Use warns, not warni.
4810 1997-06-28 Richard Stallman <rms@gnu.org>
4812 * src/bison.s1: Add a Bison version comment.
4814 * src/main.c (fatal, warn, berror):
4817 1997-06-28 Richard Stallman <rms@gnu.org>
4819 * Makefile.in (bison_version): New variable.
4820 (dist): Use that variable.
4821 (bison.s1): Substitute the Bison version into bison.simple.
4823 * bison.simple: Add a Bison version comment.
4825 1997-06-18 Richard Stallman <rms@gnu.org>
4827 * src/main.c (fatal, warn, berror):
4828 Make error messages standard.
4829 (toomany): Improve error message text.
4831 * 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:
4832 new.h renamed to alloc.h.
4834 1997-06-18 Richard Stallman <rms@gnu.org>
4836 * Makefile.in: new.h renamed to alloc.h.
4838 1997-05-24 Richard Stallman <rms@gnu.org>
4840 * src/lex.c (literalchar):
4841 Fix the code for escaping \, " and '.
4843 (lex): Avoid trouble when there are many chars
4844 to discard in a char literal with just several chars in it.
4846 1997-05-17 Richard Stallman <rms@gnu.org>
4849 Use malloc, if using alloca is troublesome.
4850 (YYSTACK_USE_ALLOCA): New flag macro.
4851 Define it for some systems and compilers.
4852 (YYSTACK_ALLOC): New macro.
4853 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4854 If it was malloc'd, free it.
4856 1997-05-17 Richard Stallman <rms@gnu.org>
4859 Use malloc, if using alloca is troublesome.
4860 (YYSTACK_USE_ALLOCA): New flag macro.
4861 Define it for some systems and compilers.
4862 (YYSTACK_ALLOC): New macro.
4863 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4864 If it was malloc'd, free it.
4866 1997-04-23 Richard Stallman <rms@gnu.org>
4869 (alloca) [__hpux]: Always define as __builtin_alloca.
4871 1997-04-23 Richard Stallman <rms@gnu.org>
4874 (alloca) [__hpux]: Always define as __builtin_alloca.
4876 1997-04-22 Richard Stallman <rms@gnu.org>
4879 [__hpux]: Include alloca.h (right for HPUX 10)
4880 instead of declaring alloca (right for HPUX 9).
4882 * src/bison.s1 (__yy_memcpy):
4883 Declare arg `count' as unsigned int.
4884 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4886 1997-04-22 Richard Stallman <rms@gnu.org>
4889 [__hpux]: Include alloca.h (right for HPUX 10)
4890 instead of declaring alloca (right for HPUX 9).
4892 * bison.simple (__yy_memcpy):
4893 Declare arg `count' as unsigned int.
4894 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4896 1997-01-03 Richard Stallman <rms@gnu.org>
4898 * src/allocate.c: [__STDC__ or _MSC_VER]:
4899 Declare calloc and realloc to return void *.
4901 1997-01-02 Richard Stallman <rms@gnu.org>
4904 [_MSC_VER]: Include stdlib.h and process.h.
4905 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
4907 * src/main.c (main): Return FAILURE as a value.
4908 (printable_version): Declare arg as int, not char.
4910 1997-01-02 Richard Stallman <rms@gnu.org>
4912 * Makefile.in (dist):
4913 Explicitly check for symlinks, and copy them.
4915 1996-12-19 Richard Stallman <rms@gnu.org>
4918 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
4920 1996-12-18 Paul Eggert <eggert@gnu.org>
4922 * src/bison.s1 (yyparse):
4923 If __GNUC__ and YYPARSE_PARAM are both defined,
4924 declare yyparse to have a void * argument.
4926 1996-12-18 Paul Eggert <eggert@gnu.org>
4928 * bison.simple (yyparse):
4929 If __GNUC__ and YYPARSE_PARAM are both defined,
4930 declare yyparse to have a void * argument.
4932 1996-12-17 Richard Stallman <rms@gnu.org>
4934 * src/reduce.c (nbits): Add some casts.
4936 1996-08-12 Richard Stallman <rms@gnu.org>
4938 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
4940 1996-08-12 Richard Stallman <rms@gnu.org>
4942 * bison.simple: Test _MSDOS as well as _MSDOS_.
4944 1996-07-31 Richard Stallman <rms@gnu.org>
4947 [__sun && __i386]: Include alloca.h.
4949 1996-07-31 Richard Stallman <rms@gnu.org>
4952 [__sun && __i386]: Include alloca.h.
4954 1996-07-30 Richard Stallman <rms@gnu.org>
4956 * src/bison.s1: Comment change.
4958 * src/bison.s1: Test _MSDOS_, not MSDOS.
4960 1996-07-30 Richard Stallman <rms@gnu.org>
4962 * bison.simple: Comment change.
4964 * bison.simple: Test _MSDOS_, not MSDOS.
4966 1996-06-01 Richard Stallman <rms@gnu.org>
4968 * 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:
4969 Insert `_' macro around many string constants.
4972 Insert `_' macro around many string constants.
4974 (main): Call setlocale, bindtextdomain and textdomain.
4976 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
4977 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
4978 [ENABLE_NLS]: Include libintl.h.
4979 [ENABLE_NLS] (gettext): Define.
4980 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
4981 (N_, PACKAGE, LOCALEDIR): New macros.
4983 1996-06-01 Richard Stallman <rms@gnu.org>
4985 * POTFILES.in: New file.
4987 * Makefile.in (allocate.o):
4988 Define target explicitly.
4990 * Makefile.in (CFLAGS): Set to @CFLAGS@.
4991 (LDFLAGS): Set to @LDFLAGS@.
4992 (configure): Run autoconf only if preceding `cd' succeeds.
4993 (bison.s1): Redirect output to temporary file then move the
4994 temporary to the target, rather than redirecting directly to bison.s1.
4995 (clean): Remove config.status and config.log.
4996 (distclean): Don't remove config.status here.
4998 1996-05-12 Richard Stallman <rms@gnu.org>
5001 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
5003 1996-05-12 Richard Stallman <rms@gnu.org>
5006 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
5008 1996-05-11 Richard Stallman <rms@gnu.org>
5010 * src/bison.s1 (__yy_memcpy):
5011 Really reorder the args, as was supposedly done on Feb 14 1995.
5012 (yyparse): Calls changed accordingly.
5014 1996-05-11 Richard Stallman <rms@gnu.org>
5016 * Makefile.in (dist): Don't use $(srcdir).
5018 * bison.simple (__yy_memcpy):
5019 Really reorder the args, as was supposedly done on Feb 14 1995.
5020 (yyparse): Calls changed accordingly.
5022 1996-01-27 Richard Stallman <rms@gnu.org>
5024 * src/output.c (output_rule_data):
5025 Test YYERROR_VERBOSE in the conditional
5026 around the definition of ttyname.
5028 1995-12-29 Richard Stallman <rms@gnu.org>
5031 Fix line numbers in #line commands.
5033 1995-12-29 Richard Stallman <rms@gnu.org>
5036 Fix line numbers in #line commands.
5038 1995-12-27 Richard Stallman <rms@gnu.org>
5040 * src/bison.s1 (YYPARSE_PARAM_DECL):
5041 In C++, make it always null.
5042 (YYPARSE_PARAM_ARG): New macro.
5043 (yyparse): Use YYPARSE_PARAM_ARG.
5045 1995-12-27 Richard Stallman <rms@gnu.org>
5047 * bison.simple (YYPARSE_PARAM_DECL):
5048 In C++, make it always null.
5049 (YYPARSE_PARAM_ARG): New macro.
5050 (yyparse): Use YYPARSE_PARAM_ARG.
5052 1995-11-29 Richard Stallman <rms@gnu.org>
5054 * doc/bison.texinfo:
5055 Describe literal string tokens, %raw, %no_lines, %token_table.
5057 1995-11-29 Daniel Hagerty <hag@gnu.org>
5059 * doc/bison.texinfo: Fixed update date
5061 1995-10-16 Richard Stallman <rms@gnu.org>
5063 * src/version.c: Version 1.25.
5065 1995-10-16 Richard Stallman <rms@gnu.org>
5067 * NEWS: *** empty log message ***
5069 1995-10-16 Richard Stallman <rms@gnu.org>
5071 * doc/bison.1, doc/bison.rnh:
5074 1995-10-15 Richard Stallman <rms@gnu.org>
5076 * src/vmsgetargs.c, src/getargs.c:
5077 Added -n, -k, and -raw switches.
5078 (noparserflag, toknumflag, rawtoknumflag): New variables.
5080 * src/symtab.h (SALIAS):
5081 New #define for adding aliases to %token.
5082 (struct bucket): Added `alias' field.
5084 * src/reduce.c (reduce_grammar):
5085 Revise error message.
5086 (print_notices): Remove final `.' from error message.
5088 * src/reader.c (reader_output_yylsp):
5090 (readgram): Use `#if 0' around code that accepted %command
5091 inside grammar rules: The documentation doesn't allow it,
5092 and it will fail since the %command processors scan for the next %.
5093 (parse_token_decl): Extended the %token
5094 declaration to allow a multi-character symbol as an alias.
5095 (parse_thong_decl): New function.
5096 (read_declarations): Added %thong declarations.
5097 (read_declarations): Handle NOOP to deal with allowing
5098 % declarations as another means to specify the flags.
5099 (readgram): Allow %prec prior to semantics embedded in a rule.
5100 (skip_to_char, read_declarations, copy_definition)
5101 (parse_token_decl, parse_start_decl, parse_type_decl)
5102 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
5103 (get_type_name, copy_guard, copy_action, readgram)
5104 (get_type, packsymbols): Revised most error messages.
5105 Changed `fatal' to `warnxxx' to avoid aborting for error.
5106 Revised and use multiple warnxxx functions to avoid using VARARGS1.
5107 (read_declarations): Improve the error message for
5108 an invalid character. Do not abort.
5109 (read_declarations, copy_guard, copy_action): Use
5110 printable_version to avoid unprintable characters in printed output.
5111 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
5112 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
5113 Allow the type of a non-terminal can be given
5114 more than once, as long as all specifications give the same type.
5117 (output_headers, output_trailers, output, output_gram)
5118 (output_rule_data): Implement noparserflag variable.
5119 Implement toknumflag variable.
5120 (output): Call reader_output_yylsp to output LTYPESTR.
5122 * src/main.c (main):
5123 If reader sees an error, don't process the grammar.
5124 (fatals): Updated to not use VARARGS1.
5125 (printable_version, int_to_string, warn, warni, warns, warnss)
5126 (warnsss): New error reporting functions. Avoid abort for error.
5129 Added THONG and NOOP for alias processing.
5130 Added SETOPT for the new code that allows setting options with %flags.
5133 Include getopt.h. Add some extern decls.
5134 (safegetc): New function to deal with EOF gracefully.
5135 (literalchar); new function to deal with reading \ escapes.
5136 (lex): Use literalchar.
5137 (lex): Implemented "..." tokens.
5138 (literalchar, lex, parse_percent_token): Made tokenbuffer
5139 always contain the token. This includes growing the token
5140 buffer while reading an integer.
5141 (parse_percent_token): Replaced if-else statement with percent_table.
5142 (parse_percent_token): Added % declarations as another
5143 way to specify the flags -n, -l, and -r. Also added hooks for
5144 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
5145 major changes to files.c.
5146 (lex) Retain in the incoming stream a character following
5148 (skip_white_space, lex): Revised most error messages
5149 and changed fatal to warn to avoid aborting.
5150 (percent_table): Added %thong declarations.
5152 * src/gram.h: Comment changes.
5154 * src/files.c (openfiles, open_extra_files, done):
5156 and actfile file. Handle noparserflag. Both for -n switch.
5158 * src/conflicts.c (resolve_sr_conflict):
5159 Remove use of alloca.
5161 1995-06-01 Jim Meyering <meyering@gnu.org>
5163 * doc/bison.texinfo: *** empty log message ***
5165 1995-05-06 Richard Stallman <rms@gnu.org>
5167 * src/bison.s1: Comment change.
5169 1995-05-06 Richard Stallman <rms@gnu.org>
5171 * bison.simple: Comment change.
5173 1995-05-03 Richard Stallman <rms@gnu.org>
5175 * src/version.c: Version now 1.24.
5177 * src/bison.s1: Change distribution terms.
5179 * src/version.c: Version now 1.23.
5181 1995-05-03 Richard Stallman <rms@gnu.org>
5183 * doc/bison.texinfo:
5184 Rewrite "Conditions for Using Bison".
5185 Update version to 1.24.
5187 1995-05-03 Richard Stallman <rms@gnu.org>
5189 * bison.simple: Change distribution terms.
5191 1995-02-23 Richard Stallman <rms@gnu.org>
5193 * src/files.c: Test __VMS_POSIX as well as VMS.
5195 1995-02-14 Jim Meyering <meyering@gnu.org>
5197 * src/bison.s1 (__yy_memcpy):
5198 Renamed from __yy_bcopy to avoid
5199 confusion. Reverse FROM and TO arguments to be consistent with
5202 1995-02-14 Jim Meyering <meyering@gnu.org>
5204 * bison.simple (__yy_memcpy):
5205 Renamed from __yy_bcopy to avoid
5206 confusion. Reverse FROM and TO arguments to be consistent with
5209 1994-11-10 David J. MacKenzie <djm@gnu.org>
5215 * Makefile.in (DISTFILES): Include NEWS.
5217 * Makefile.in (DISTFILES):
5218 Include install-sh, not install.sh.
5220 * configure.in: Update to Autoconf v2 macro names.
5222 1994-10-05 David J. MacKenzie <djm@gnu.org>
5224 * Makefile.in: fix typo
5226 * Makefile.in (prefix, exec_prefix):
5227 Let configure set them.
5229 1994-09-28 David J. MacKenzie <djm@gnu.org>
5231 * Makefile.in: Set datadir to $(prefix)/share.
5233 1994-09-15 Richard Stallman <rms@gnu.org>
5236 Update copyright notice and GPL version.
5238 1994-09-15 Richard Stallman <rms@gnu.org>
5241 Update copyright notice and GPL version.
5243 1994-07-12 Richard Stallman <rms@gnu.org>
5245 * src/reduce.c, src/reader.c:
5248 1994-05-05 David J. MacKenzie <djm@gnu.org>
5250 * Makefile.in: entered into RCS
5252 1994-03-26 Richard Stallman <rms@gnu.org>
5254 * src/bison.s1: entered into RCS
5256 1994-03-26 Richard Stallman <rms@gnu.org>
5258 * bison.simple: entered into RCS
5260 1994-03-25 Richard Stallman <rms@gnu.org>
5262 * src/main.c: entered into RCS
5264 1994-03-24 Richard Stallman <rms@gnu.org>
5266 * src/conflicts.c: entered into RCS
5268 1994-01-02 Richard Stallman <rms@gnu.org>
5270 * Makefile.in: *** empty log message ***
5272 1993-11-21 Richard Stallman <rms@gnu.org>
5274 * src/bison.s1: *** empty log message ***
5276 1993-11-21 Richard Stallman <rms@gnu.org>
5278 * doc/bison.texinfo: entered into RCS
5280 * doc/bison.texinfo: *** empty log message ***
5282 1993-11-21 Richard Stallman <rms@gnu.org>
5284 * bison.simple: *** empty log message ***
5286 1993-10-25 David J. MacKenzie <djm@gnu.org>
5288 * doc/bison.texinfo: *** empty log message ***
5290 1993-10-19 Richard Stallman <rms@gnu.org>
5292 * src/bison.s1: *** empty log message ***
5294 1993-10-19 Richard Stallman <rms@gnu.org>
5296 * bison.simple: *** empty log message ***
5298 1993-10-14 Richard Stallman <rms@gnu.org>
5300 * src/bison.s1: *** empty log message ***
5302 1993-10-14 Richard Stallman <rms@gnu.org>
5304 * bison.simple: *** empty log message ***
5306 1993-09-14 David J. MacKenzie <djm@gnu.org>
5308 * doc/bison.texinfo: *** empty log message ***
5310 1993-09-13 Noah Friedman <friedman@gnu.org>
5312 * Makefile.in: *** empty log message ***
5314 1993-09-10 Richard Stallman <rms@gnu.org>
5316 * src/conflicts.c: *** empty log message ***
5318 * src/system.h: entered into RCS
5320 1993-09-10 Richard Stallman <rms@gnu.org>
5322 * doc/bison.1: entered into RCS
5324 1993-09-06 Noah Friedman <friedman@gnu.org>
5326 * src/version.c: entered into RCS
5328 1993-09-06 Noah Friedman <friedman@gnu.org>
5330 * Makefile.in: *** empty log message ***
5332 1993-07-30 David J. MacKenzie <djm@gnu.org>
5334 * Makefile.in: *** empty log message ***
5336 1993-07-24 Richard Stallman <rms@gnu.org>
5338 * src/bison.s1: *** empty log message ***
5340 1993-07-24 Richard Stallman <rms@gnu.org>
5342 * bison.simple: *** empty log message ***
5344 1993-07-08 David J. MacKenzie <djm@gnu.org>
5346 * Makefile.in: *** empty log message ***
5348 1993-07-04 Richard Stallman <rms@gnu.org>
5350 * src/bison.s1: *** empty log message ***
5352 1993-07-04 Richard Stallman <rms@gnu.org>
5354 * bison.simple: *** empty log message ***
5356 1993-06-26 David J. MacKenzie <djm@gnu.org>
5358 * src/getargs.c: entered into RCS
5360 1993-06-26 David J. MacKenzie <djm@gnu.org>
5362 * doc/bison.texinfo: *** empty log message ***
5364 * doc/bison.1: New file.
5366 1993-06-25 Richard Stallman <rms@gnu.org>
5368 * src/getargs.c: New file.
5370 1993-06-16 Richard Stallman <rms@gnu.org>
5372 * src/bison.s1: *** empty log message ***
5374 1993-06-16 Richard Stallman <rms@gnu.org>
5376 * bison.simple: *** empty log message ***
5378 1993-06-03 Richard Stallman <rms@gnu.org>
5380 * src/bison.s1: New file.
5382 1993-06-03 Richard Stallman <rms@gnu.org>
5384 * doc/bison.texinfo: *** empty log message ***
5386 1993-06-03 Richard Stallman <rms@gnu.org>
5388 * bison.simple: New file.
5390 1993-05-19 Richard Stallman <rms@gnu.org>
5392 * doc/bison.texinfo: New file.
5394 1993-05-07 Noah Friedman <friedman@gnu.org>
5396 * Makefile.in: *** empty log message ***
5398 1993-04-28 Noah Friedman <friedman@gnu.org>
5400 * src/reader.c: *** empty log message ***
5402 1993-04-23 Noah Friedman <friedman@gnu.org>
5404 * src/alloc.h: entered into RCS
5406 1993-04-20 David J. MacKenzie <djm@gnu.org>
5408 * src/version.c: *** empty log message ***
5410 * src/files.c, src/allocate.c:
5413 * src/reader.c: *** empty log message ***
5415 * src/lex.c: entered into RCS
5417 * src/conflicts.c: New file.
5419 * src/symtab.c: entered into RCS
5421 * src/alloc.h: New file.
5423 * src/LR0.c: entered into RCS
5425 1993-04-18 Noah Friedman <friedman@gnu.org>
5427 * src/reader.c: New file.
5429 * src/version.c: *** empty log message ***
5431 1993-04-18 Noah Friedman <friedman@gnu.org>
5433 * Makefile.in: *** empty log message ***
5435 1993-04-17 Noah Friedman <friedman@gnu.org>
5437 * Makefile.in: *** empty log message ***
5439 1993-04-15 Richard Stallman <rms@gnu.org>
5441 * src/main.c, src/files.c:
5444 1993-04-15 Noah Friedman <friedman@gnu.org>
5446 * configure.in: entered into RCS
5448 * configure.in: *** empty log message ***
5450 * configure.in: New file.
5452 1993-04-14 Richard Stallman <rms@gnu.org>
5454 * Makefile.in: New file.
5456 1993-04-13 Richard Stallman <rms@gnu.org>
5458 * src/version.c: New file.
5460 1993-03-25 Richard Stallman <rms@gnu.org>
5462 * src/output.c: entered into RCS
5464 1992-09-25 Richard Stallman <rms@gnu.org>
5466 * configure.bat: entered into RCS
5468 1992-06-22 Richard Stallman <rms@gnu.org>
5470 * src/vmsgetargs.c: entered into RCS
5472 1992-06-22 Richard Stallman <rms@gnu.org>
5474 * doc/bison.rnh: entered into RCS
5476 1992-04-20 David J. MacKenzie <djm@gnu.org>
5478 * README: entered into RCS
5480 1992-01-22 Richard Stallman <rms@gnu.org>
5482 * src/machine.h: entered into RCS
5484 1991-12-21 Richard Stallman <rms@gnu.org>
5486 * src/lalr.c, src/closure.c:
5489 1991-12-20 Richard Stallman <rms@gnu.org>
5491 * src/state.h: entered into RCS
5493 1991-12-18 Richard Stallman <rms@gnu.org>
5495 * src/print.c, src/nullable.c, src/derives.c:
5498 1991-11-03 David J. MacKenzie <djm@gnu.org>
5500 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
5503 1988-09-09 Richard Stallman <rms@gnu.org>
5505 * src/bison.hairy: entered into RCS
5507 1987-12-16 Richard Stallman <rms@gnu.org>
5509 * REFERENCES: entered into RCS