1 2001-12-10 Akim Demaille <akim@epita.fr>
3 One structure for states is enough, even though theoretically
4 there are LR(0) states and LALR(1) states.
6 * src/lalr.h (state_t): Remove.
7 (state_table): Be state_t **, not state_t *.
8 * src/state.h (core, CORE_ALLOC): Rename as...
9 (state_t, STATE_ALLOC): this.
10 Add the LALR(1) members: shifts, reductions, errs.
11 * src/LR0.c (state_table): Rename as...
12 (state_hash): this, to avoid name clashes with the global
14 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
15 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
18 2001-12-10 Akim Demaille <akim@epita.fr>
20 Bison dumps core on bash.y.
21 Reported by Pascal Bart.
23 * src/warshall.c (bitmatrix_print): New.
25 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
26 j must be the outer loop.
27 * tests/regression.at (Broken Closure): New.
29 2001-12-05 Akim Demaille <akim@epita.fr>
31 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
33 Reported by Peter Hámorský.
35 2001-12-05 Akim Demaille <akim@epita.fr>
37 * src/conflicts.c (err_table): Remove.
38 (resolve_sr_conflict): Adjust.
39 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
41 (state_t.reductions, state_t.shifts): this.
43 2001-12-05 Akim Demaille <akim@epita.fr>
45 * src/reduce.c (reduce_grammar_tables): No longer disable the
46 removal of useless rules via CPP but via `if (0)', so that the
47 compiler still check the code is valid.
48 For instance, it should have noticed `rline' no longer exists: use
49 the `line' member of rule_t.
50 * src/gram.c (dummy, rline): Remove, unused.
52 2001-12-05 Akim Demaille <akim@epita.fr>
54 * src/output.c (pack_vector): Use assert, not berror.
55 * src/main.c (berror): Remove, unused.
57 2001-12-05 Akim Demaille <akim@epita.fr>
59 New experimental feature: if --verbose --trace output all the
60 items of a state, not only its kernel.
62 * src/print.c (print_core): If `trace_flag', then invoke closure
63 before outputting the items of the state (print_core is no longer
65 (print_results): Invoke new_closure/free_closure if needed.
67 2001-12-05 Akim Demaille <akim@epita.fr>
69 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
70 * src/closure.c, src/closure.h (itemsetsize): Rename as...
71 (nitemset): for consistency with the rest of the project.
73 2001-12-05 Akim Demaille <akim@epita.fr>
75 * src/closure.c (print_closure): Improve.
76 (closure): Use it for printing input and output.
78 2001-12-05 Akim Demaille <akim@epita.fr>
80 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
81 indexed by nonterminals.
83 2001-12-05 Akim Demaille <akim@epita.fr>
85 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
87 * src/warshall.h: Remove accidental duplication of the content.
89 2001-12-05 Akim Demaille <akim@epita.fr>
91 * src/closure.c (set_fderives): De-obfuscate.
93 2001-12-05 Akim Demaille <akim@epita.fr>
95 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
97 2001-12-05 Akim Demaille <akim@epita.fr>
99 * src/closure.c (set_firsts): De-obfuscate.
101 2001-12-05 Akim Demaille <akim@epita.fr>
103 * src/output.c (action_row): De-obfuscate
104 using the good o' techniques: arrays not pointers, variable
105 locality, BITISSET, RESETBIT etc.
107 2001-12-05 Akim Demaille <akim@epita.fr>
109 Pessimize the code to simplify it: from now on, all the states
110 have a valid SHIFTS, which NSHIFTS is possibly 0.
112 * src/LR0.c (shifts_new): Be global and move to..
113 * src/state.c, src/state.h: here.
114 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
115 * src/print_graph: Adjust.
117 2001-12-05 Akim Demaille <akim@epita.fr>
119 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
120 * src/conflicts.c: Use it.
121 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
122 incorrectly ``simplified''.
124 2001-12-05 Akim Demaille <akim@epita.fr>
126 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
127 using the good o' techniques: arrays not pointers, variable
128 locality, BITISSET, RESETBIT etc.
130 2001-12-05 Akim Demaille <akim@epita.fr>
132 * src/state.h (SHIFT_SYMBOL): New.
133 * src/conflicts.c: Use it to deobfuscate.
135 2001-12-05 Akim Demaille <akim@epita.fr>
137 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
138 (print_reductions): De-obfuscate using the good o' techniques:
139 arrays not pointers, variable locality, BITISSET.
141 2001-12-05 Akim Demaille <akim@epita.fr>
143 * src/conflicts.c (print_reductions): Arrays, not pointers.
146 2001-12-05 Akim Demaille <akim@epita.fr>
148 * src/conflicts.c (print_reductions): Pessimize, but clarify.
150 2001-12-05 Akim Demaille <akim@epita.fr>
152 * src/conflicts.c (print_reductions): Improve variable locality.
154 2001-12-05 Akim Demaille <akim@epita.fr>
156 * src/conflicts.c (print_reductions): Pessimize, but clarify.
158 2001-12-05 Akim Demaille <akim@epita.fr>
160 * src/conflicts.c (print_reductions): Improve variable locality.
162 2001-12-05 Akim Demaille <akim@epita.fr>
164 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
165 * src/lalr.c: Use them.
167 2001-12-05 Akim Demaille <akim@epita.fr>
169 * src/LR0.c (augment_automaton): Formatting changes.
170 Better variable locality.
172 2001-12-05 Akim Demaille <akim@epita.fr>
174 * src/lalr.c (matrix_print): New.
176 Use arrays instead of pointers.
178 2001-12-05 Akim Demaille <akim@epita.fr>
180 * src/lalr.c (maxrhs): Move to...
181 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
182 * src/lalr.c (build_relations): Adjust.
184 2001-12-05 Akim Demaille <akim@epita.fr>
186 * src/lalr.c (transpose): Free the memory allocated to the
187 argument, as it is replaced by the results by the unique caller.
188 (build_relations): Merely invoke transpose: it handles the memory
190 Improve variable locality.
191 Avoid variables used as mere abbreviations.
192 (compute_lookaheads): Use arrays instead of pointers.
194 2001-12-05 Akim Demaille <akim@epita.fr>
196 * src/lalr.c (initialize_F): Improve variable locality.
197 Avoid variables used as mere abbreviations.
199 2001-12-05 Akim Demaille <akim@epita.fr>
201 * src/derives.c (print_derives): Display the ruleno.
202 * src/lalr.c (initialize_F, transpose): Better variable locality
203 to improve readability.
204 Avoid variables used as mere abbreviations.
206 2001-12-05 Akim Demaille <akim@epita.fr>
208 * src/lalr.c (traverse): Use arrays instead of pointers.
210 2001-12-05 Akim Demaille <akim@epita.fr>
212 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
213 the handling of squeue.
214 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
216 2001-12-05 Akim Demaille <akim@epita.fr>
218 Because useless nonterminals are now kept alive (instead of being
219 `destroyed'), we now sometimes examine them, and store information
220 related to them. Hence we need to know their number, and adjust
223 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
225 * src/LR0.c (allocate_itemsets): The memory allocated to
226 `symbol_count' was used for two different purpose: once to count
227 the number of occurrences of each symbol, and later reassigned to
228 `shift_symbol', containing the symbol that can be shifted from a
230 Deobfuscate, i.e., allocate, use and free `symbol_count' here
232 (new_itemsets): Allocate `shift_symbol' here.
233 (allocate_itemsets): symbol_count includes useless nonterminals.
235 (free_storage): Use `free', not `XFREE', for pointers that cannot
238 2001-12-05 Akim Demaille <akim@epita.fr>
240 * src/nullable.c (set_nullable): Deobfuscate the handling of
242 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
244 2001-12-05 Akim Demaille <akim@epita.fr>
246 * src/gram.c, src/gram.h (ritem_print): New.
247 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
248 (This useless function was defined only to work around VMS linkers
249 that can't handle compilation units with variables only).
250 * src/reduce.c (dump_grammar): Use it to trace the construction of
253 2001-12-04 Paul Eggert <eggert@twinsun.com>
255 * src/bison.simple (union yyalloc): Change member names
256 to be the same as the stack names.
257 (yyparse): yyptr is now union yyalloc *, not char *.
258 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
259 and may generate better code on some machines.
260 (yystpcpy): Use prototype if __STDC__ is defined, not just
261 if __cplusplus is defined.
263 2001-11-30 Akim Demaille <akim@epita.fr>
265 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
266 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
267 Gettext doesn't compile cleanly, and dies with -Werror.
268 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
269 Include WARNING_CFLAGS here.
270 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
271 before being defined.
273 2001-11-27 Paul Eggert <eggert@twinsun.com>
275 * lib/quotearg.h (quotearg_n, quotearg_n_style):
276 First arg is int, not unsigned.
277 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
278 (SIZE_MAX, UINT_MAX): New macros.
279 (quotearg_n_options): Abort if N is negative.
280 Avoid overflow check on hosts where size_t is 64 bits and int
281 is 32 bits, as overflow is impossible there.
282 Fix off-by-one typo that caused unnecessary reallocation.
284 2001-11-29 Paul Eggert <eggert@twinsun.com>
286 Name space cleanup in generated parser.
288 * doc/bison.texinfo (Bison Parser): Discuss system headers
289 and their effect on the user name space.
292 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
293 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
294 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
296 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
297 on user names when possible.
299 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
300 Simplify test for whather <alloca.h> exists.
302 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
304 (<stdio.h>): Include if YYDEBUG.
306 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
307 ! defined (yyoverflow) && ! defined (yymemcpy).
309 (yymemcpy, yyparse): Rename local variables as needed so that
310 they all begin with 'yy'.
312 (yystrlen, yystpcpy): New functions.
314 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
317 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
318 instead of relying on string.h functions. Use YYSTACK_ALLOC
319 and YYSTACK_FREE instead of malloc and free.
321 2001-11-30 Akim Demaille <akim@epita.fr>
323 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
324 before their first uses.
325 (YYBISON, YYPURE): Move to the top of the output.
327 2001-11-30 Akim Demaille <akim@epita.fr>
329 * tests/reduce.at (Useless Nonterminals): Fix.
331 2001-11-30 Akim Demaille <akim@epita.fr>
333 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
334 if body instead of `;' to pacify GCC's warnings.
336 2001-11-30 Akim Demaille <akim@epita.fr>
338 Instead of mapping the LHS of unused rules to -1, keep the LHS
339 valid, but flag the rules as invalid.
341 * src/gram.h (rule_t): `useful' is a new member.
342 * src/print.c (print_grammar): Adjust.
343 * src/derives.c (set_derives): Likewise.
344 * src/reader.c (packgram, reduce_output): Likewise.
345 * src/reduce.c (reduce_grammar_tables): Likewise.
346 * tests/reduce.at (Underivable Rules, Useless Rules): New.
348 2001-11-30 Akim Demaille <akim@epita.fr>
350 * src/reduce.c (reduce_output): Formatting changes.
351 * src/print.c (print_results, print_grammar): Likewise.
352 * tests/regression.at (Rule Line Numbers)
353 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
355 2001-11-30 Akim Demaille <akim@epita.fr>
357 * src/reduce.c (nonterminals_reduce): Instead of throwing away
358 useless nonterminals, move them at the end of the symbol arrays.
359 (reduce_output): Adjust.
360 * tests/reduce.at (Useless Nonterminals): Adjust.
362 2001-11-30 Akim Demaille <akim@epita.fr>
364 * src/reduce.c: Various comment/formatting changes.
365 (nonterminals_reduce): New, extracted from...
366 (reduce_grammar_tables): here.
367 (reduce_grammar): Call nonterminals_reduce.
369 2001-11-29 Paul Eggert <eggert@twinsun.com>
371 * src/bison.simple (YYSTACK_REALLOC): Remove.
372 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
373 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
375 (union yyalloc): New type.
376 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
377 an arbitrary restriction on hosts where size_t is wider than int.
379 (yyparse): Don't dump core if alloca or malloc fails; instead, report
380 a parser stack overflow. Allocate just one block of memory for all
381 three stacks, instead of allocating three blocks; this typically is
382 faster and reduces fragmentation.
384 Do not limit the number of items in the stack to a value that fits
385 in 'int', as this is an arbitrary limit on hosts with 64-bit
386 size_t and 32-bit int.
388 2001-11-29 Marc Autret <autret_m@epita.fr>
390 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
391 of defining YYERROR_VERBOSE.
392 [AT_DATA]: $4 is now out of C declarations in the prologue.
394 2001-11-28 Marc Autret <autret_m@epita.fr>
396 * src/reader.c (parse_dquoted_param): New.
397 (parse_skel_decl): Use it.
398 * src/lex.h: Add its prototype.
399 * src/lex.c (literalchar): Become not static.
401 2001-11-28 Marc Autret <autret_m@epita.fr>
403 * src/output.h: And put its extern declaration here.
404 * src/output.c (error_verbose): Define here.
405 (prepare): Echo name modification.
406 * src/getargs.h: Clean its extern declaration.
407 * src/getargs.c (error_verbose_flag): Remove.
408 (getargs): Remove case 'e'.
409 * src/options.c (option_table): 'error-verbose' is now seen as simple
413 * src/reader.c (read_declarations): Remove case tok_include.
414 (parse_include_decl): Remove.
415 * src/lex.h (token_t): Remove tok_include.
416 * src/options.c (option_table): 'include' is now a simple command line
419 2001-11-28 Marc Autret <autret_m@epita.fr>
421 * src/bison.simple: Adjust muscle names.
422 * src/muscle_tab.c (muscle_init): Also rename the muscles.
423 * src/output.c (prepare): s/_/-/ for the muscles names.
424 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
426 2001-11-28 Marc Autret <autret_m@epita.fr>
428 * src/bison.simple: Fix debug.
429 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
431 2001-11-28 Akim Demaille <akim@epita.fr>
433 * src/LR0.c (shifts_new): New.
434 (save_shifts, insert_start_shift, augment_automaton): Use it.
436 2001-11-28 Akim Demaille <akim@epita.fr>
438 * src/closure.c (closure): `b' and `ruleno' denote the same value:
441 2001-11-28 Akim Demaille <akim@epita.fr>
443 * src/closure.c (closure): Instead of looping over word in array
444 then bits in words, loop over bits in array.
446 2001-11-28 Akim Demaille <akim@epita.fr>
448 * src/closure.c (closure): No longer optimize the special case
449 where all the bits of `ruleset[r]' are set to 0, to make the code
452 2001-11-28 Akim Demaille <akim@epita.fr>
454 * src/closure.c (closure): `r' and `c' are new variables, used to
455 de-obfuscate accesses to RULESET and CORE.
457 2001-11-28 Akim Demaille <akim@epita.fr>
459 * src/reduce.c (reduce_print): Use ngettext.
460 (dump_grammar): Improve the trace accuracy.
462 2001-11-28 Akim Demaille <akim@epita.fr>
464 * src/reduce.c (dump_grammar): Don't translate trace messages.
466 2001-11-28 Akim Demaille <akim@epita.fr>
468 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
469 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
470 as all tags are free'ed afterwards.
473 2001-11-27 Paul Eggert <eggert@twinsun.com>
475 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
476 use alloca when we didn't want to, and vice versa.
478 2001-11-27 Marc Autret <autret_m@epita.fr>
480 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
482 * src/output.c (prepare): Remove its update.
484 2001-11-27 Marc Autret <autret_m@epita.fr>
486 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
489 2001-11-27 Marc Autret <autret_m@epita.fr>
491 * src/bison.simple: Remove YYERROR_VERBOSE using.
494 * src/output.c (prepare): Give its final value.
495 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
496 * src/getargs.h: Add its extern declaration.
497 * src/getargs.c (error_verbose_flag): New int.
498 (getargs): Update to catch new case.
499 * src/options.c (option_table): 'error-verbose' is a new option.
502 2001-11-27 Akim Demaille <akim@epita.fr>
504 * src/system.h: Use intl/libgettext.h.
505 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
507 2001-11-27 Akim Demaille <akim@epita.fr>
509 * tests/torture.at (Exploding the Stack Size with Malloc):
510 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
512 2001-11-27 Akim Demaille <akim@epita.fr>
514 * src/files.c: Include error.h.
515 Reported by Hans Aberg.
517 2001-11-26 Marc Autret <autret_m@epita.fr>
519 * src/reader.c (parse_include_decl): New, not yet implemented.
520 (read_declarations): Add case tok_include.
521 * src/getargs.h (include): Add its extern definition.
522 * src/getargs.c (include): New const char *.
523 (getargs): Add case '-I'.
524 * src/options.c (option_table): Add include as command line and
526 * src/lex.h (token_t): Add tok_include.
528 2001-11-26 Akim Demaille <akim@epita.fr>
530 * src/reader.c (readgram): Make sure rules for mid-rule actions
531 have a lineno equal to that of their host rule.
532 Reported by Hans Aberg.
533 * tests/regression.at (Rule Line Numbers): New.
535 2001-11-26 Akim Demaille <akim@epita.fr>
537 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
540 2001-11-26 Akim Demaille <akim@epita.fr>
542 * src/complain.c, src/complain.h (error): Remove, provided by
545 2001-11-26 Akim Demaille <akim@epita.fr>
547 * src/reader.c (read_declarations): Don't abort on tok_illegal,
548 issue an error message.
549 * tests/regression.at (Invalid %directive): New.
550 Reported by Hans Aberg.
552 2001-11-26 Akim Demaille <akim@epita.fr>
554 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
555 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
557 2001-11-26 Akim Demaille <akim@epita.fr>
559 * src/conflicts.c (conflicts_print): Don't complain at all when
560 there are no reduce/reduce conflicts, and as many shift/reduce
561 conflicts as expected.
562 * tests/regression.at (%expect right): Adjust.
564 2001-11-23 Akim Demaille <akim@epita.fr>
566 * lib/alloca.c: Update, from fileutils.
568 2001-11-23 Akim Demaille <akim@epita.fr>
570 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
572 2001-11-23 Akim Demaille <akim@epita.fr>
574 * src/system.h: Include alloca.h.
575 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
577 2001-11-23 Akim Demaille <akim@epita.fr>
579 * src/print_graph.c (print_actions): Remove `rule', unused.
580 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
581 pacify GCC's signed < unsigned warnings.
582 * src/closure.c (itemsetsize): Likewise.
583 * src/reader.c (symbol_list_new): Static.
585 2001-11-23 Akim Demaille <akim@epita.fr>
587 Attaching lineno to buckets is stupid, since only one copy of each
588 symbol is kept, only the line of the first occurrence is kept too.
590 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
591 * src/reader.c (rline_allocated): Remove, unused.
592 (symbol_list): Have a `line' member.
593 (symbol_list_new): New.
595 * src/print.c (print_grammar): Output the rule line numbers.
596 * tests/regression.at (Solved SR Conflicts)
597 (Unresolved SR Conflicts): Adjust.
598 Reported by Hans Aberg.
600 2001-11-22 Marc Autret <autret_m@epita.fr>
602 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
604 2001-11-22 Marc Autret <autret_m@epita.fr>
606 * src/muscle_tab.c (muscle_init): Remove initialization of
608 * src/output.c (output_master_parser): Do it here.
610 2001-11-20 Akim Demaille <akim@epita.fr>
613 * configure.in (ALL_LINGUAS): Adjust.
614 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
615 longer contains strings to translate.
617 2001-11-19 Akim Demaille <akim@epita.fr>
619 * src/conflicts.c (conflicts_print): Add a missing \n.
621 2001-11-19 Akim Demaille <akim@epita.fr>
623 * src/nullable.c (nullable_print): New.
624 (set_nullable): Call it when tracing.
625 Better locality of variables.
627 2001-11-19 Akim Demaille <akim@epita.fr>
629 * src/print.c (print_actions): Better locality of variables.
631 2001-11-19 Akim Demaille <akim@epita.fr>
633 * src/derives.c (print_derives): Fix and enrich.
634 * src/closure.c (print_fderives): Likewise.
636 2001-11-19 Akim Demaille <akim@epita.fr>
638 * src/closure.c (itemsetend): Remove, replaced with...
641 2001-11-19 Akim Demaille <akim@epita.fr>
643 * src/LR0.c (kernel_end): Remove, replaced with...
646 2001-11-19 Akim Demaille <akim@epita.fr>
648 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
651 2001-11-19 Akim Demaille <akim@epita.fr>
653 * src/closure.c (closure): Use arrays instead of pointers to clarify.
655 2001-11-19 Akim Demaille <akim@epita.fr>
657 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
659 * src/LR0.c: Likewise.
660 (allocate_itemsets): Use arrays instead of pointers to clarify.
662 2001-11-19 Akim Demaille <akim@epita.fr>
664 * src/getargs.c (statistics_flag): Replace with...
666 (longopts): Accept --trace instead of --statistics.
667 * src/getargs.h, src/options.c: Adjust.
668 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
669 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
671 2001-11-19 Akim Demaille <akim@epita.fr>
673 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
674 pointers to clarify the code.
675 (save_reductions, save_shifts): Factor common parts of alternatives.
677 2001-11-19 Akim Demaille <akim@epita.fr>
679 * src/LR0.c (new_state, get_state): Complete TRACE code.
680 * src/closure.c: Include `reader.h' to get `tags', needed by the
682 Rename the conditional DEBUG as TRACE.
683 Output consistently TRACEs to stderr, not stdout.
684 * src/derives.c: Likewise.
685 * src/reduce.c: (inaccessable_symbols): Using if is better style
687 Use `#if TRACE' instead of `#if 0' for tracing code.
689 2001-11-19 Akim Demaille <akim@epita.fr>
691 * src/system.h (LIST_FREE, shortcpy): New.
692 * src/LR0.c: Use them.
693 * src/output.c (free_itemsets, free_reductions, free_shifts):
694 Remove, replaced by LIST_FREE.
696 2001-11-19 Akim Demaille <akim@epita.fr>
698 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
699 (REDUCTIONS_ALLOC): New.
700 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
703 2001-11-19 Akim Demaille <akim@epita.fr>
705 * src/LR0.c (new_state): Complete trace code.
706 * src/nullable.c (set_nullable): Don't translate traces.
708 2001-11-19 Akim Demaille <akim@epita.fr>
710 * src/print_graph.c (print_core): Better locality of variables.
711 * src/print.c (print_core): Likewise.
713 2001-11-19 Akim Demaille <akim@epita.fr>
715 * src/vcg.c: You do the output, so you are responsible of the
716 handling of VCG syntax, in particular: use quotearg.
717 * src/print_graph.c: Don't.
718 (print_actions): Don't output the actions as part of the nodes,
719 since that's the job of the edges.
720 (print_state): Don't output by hand: fill the node description,
721 and ask for its output.
723 2001-11-19 Akim Demaille <akim@epita.fr>
725 * src/bison.simple (yyparse): When verbosely reporting an error,
726 no longer put additional quotes around token names.
727 * tests/calc.at: Adjust.
729 2001-11-19 Akim Demaille <akim@epita.fr>
731 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
732 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
733 * src/output.c: Adjust.
735 2001-11-19 Akim Demaille <akim@epita.fr>
737 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
739 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
741 2001-11-19 Akim Demaille <akim@epita.fr>
743 * src/gram.h (rule_t): New.
745 (rrhs, rlhs): Remove, part of state_t.
746 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
747 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
748 * src/reader.c, src/reduce.c: Adjust.
750 2001-11-19 Akim Demaille <akim@epita.fr>
752 * src/reader.c (symbols_output): New, extracted from...
756 2001-11-19 Akim Demaille <akim@epita.fr>
758 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
759 (maxrhs): this new function.
761 2001-11-19 Akim Demaille <akim@epita.fr>
763 * src/lalr.c (F): New macro to access the variable F.
766 2001-11-19 Akim Demaille <akim@epita.fr>
768 * src/lalr.h (LA): New macro to access the variable LA.
769 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
770 * src/lalr.c: Adjust.
772 2001-11-19 Akim Demaille <akim@epita.fr>
774 * src/lalr.c (initialize_LA): Only initialize LA. Let...
775 (set_state_table): handle the `lookaheads' members.
777 2001-11-19 Akim Demaille <akim@epita.fr>
779 * src/lalr.h (lookaheads): Removed array, whose contents is now
781 (state_t): this structure.
782 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
785 2001-11-19 Akim Demaille <akim@epita.fr>
787 * src/lalr.h (consistent): Removed array, whose contents is now
789 (state_t): this structure.
790 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
793 2001-11-19 Akim Demaille <akim@epita.fr>
795 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
796 contents are now members of...
797 (state_t): this structure.
798 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
801 2001-11-19 Akim Demaille <akim@epita.fr>
803 * src/lalr.h (state_t): New.
804 (state_table): Be a state_t * instead of a core **.
805 (accessing_symbol): Remove, part of state_t.
806 * src/lalr.c: Adjust.
807 (set_accessing_symbol): Merge into...
808 (set_state_table): this.
809 * src/print_graph.c, src/conflicts.c: Adjust.
811 2001-11-14 Akim Demaille <akim@epita.fr>
813 * tests/calc.at, tests/output.at, tests/regression.at,
814 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
815 now the tests are run in private dirs, therefore AC_CLEANUP and
816 family can be simplified to 0-ary.
817 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
818 use abs. path to find config.h.
819 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
820 stderr, there can be way too much random noise.
821 Instead pass -Werror to GCC and rely on the exit status.
822 Reported by Wolfram Wagner.
824 2001-11-14 Akim Demaille <akim@epita.fr>
826 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
827 defined only if yyoverflow is defined, to avoid `warning: unused
829 Reported by The Test Suite.
831 2001-11-14 Akim Demaille <akim@epita.fr>
833 * src/print.c: Include reduce.h.
834 Reported by Hans Aberg.
836 2001-11-14 Akim Demaille <akim@epita.fr>
838 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
839 Revert a previous patch: these are really const.
840 * src/conflicts.c (conflict_report): Additional useless pair of
841 braces to pacify GCC's warnings for `if () if () {} else {}'.
842 * src/lex.c (parse_percent_token): Replace equal_offset with
845 Be sure to strdup `arg' when used, since there is no reason for
846 token_buffer not to change.
848 2001-11-14 Akim Demaille <akim@epita.fr>
850 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
852 * src/main.c (main): Use them.
853 Suggested by Hans Aberg.
855 2001-11-12 Akim Demaille <akim@epita.fr>
857 * src/system.h (ngettext): Now that we use ngettext, be sure to
858 provide a default definition when NLS are not used.
860 2001-11-12 Akim Demaille <akim@epita.fr>
862 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
863 Use @kbd to denote user input.
864 (Language and Grammar): ANSIfy the example.
865 Adjust its layout for info/notinfo.
866 (Location Tracking Calc): Output error messages to stderr.
867 Output locations in a more GNUtically correct way.
868 Fix a couple of Englishos.
869 Adjust @group/@end group pairs.
871 2001-11-12 Akim Demaille <akim@epita.fr>
873 %expext was not functioning at all.
875 * src/conflicts.c (expected_conflicts): Set to -1.
876 (conflict_report): Use ngettext.
877 (conflicts_print): Check %expect and make its violation an error.
878 * doc/bison.texinfo (Expect Decl): Adjust.
879 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
880 * tests/regression.at (%expect not enough, %expect right)
881 (%expect too much): New.
883 2001-11-12 Akim Demaille <akim@epita.fr>
885 * tests/regression.at (Conflicts): Rename as...
886 (Unresolved SR Conflicts): this.
887 (Solved SR Conflicts): New.
889 2001-11-12 Akim Demaille <akim@epita.fr>
891 * src/reduce.c (print_results): Rename as...
892 (reduce_output): This.
893 Output to OUT, passed as argument, instead of output_obstack.
894 (dump_grammar): Likewise.
897 (reduce_grammar): No longer call reduce_output, since...
898 * src/print.c (print_results): do it.
899 * src/main.c (main): Call reduce_free;
901 2001-11-12 Akim Demaille <akim@epita.fr>
903 * src/conflicts.c (print_reductions): Accept OUT as argument.
904 Output to it, not to output_obstack.
905 * src/print.c (print_actions): Adjust.
907 2001-11-12 Akim Demaille <akim@epita.fr>
909 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
910 the result instead of using...
911 (src_total, rrc_total, src_count, rrc_count): Remove.
912 (any_conflicts): Remove.
913 (print_conflicts): Split into...
914 (conflicts_print, conflicts_output): New.
915 * src/conflicts.h: Adjust.
916 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
917 * src/print.c (print_grammar): Issue `\n' between two rules.
918 * tests/regression.at (Conflicts): New.
919 Reported by Tom Lane.
921 2001-11-12 Akim Demaille <akim@epita.fr>
923 * tests/regression.at (Invalid input): Remove, duplicate with
924 ``Invalid input: 1''.
926 2001-11-12 Akim Demaille <akim@epita.fr>
928 * tests/torture.at (AT_DATA_STACK_TORTURE)
929 (Exploding the Stack Size with Alloca)
930 (Exploding the Stack Size with Malloc): New.
932 2001-11-12 Akim Demaille <akim@epita.fr>
934 * src/bison.simple (YYSTACK_REALLOC): New.
935 (yyparse) [!yyoverflow]: Use it and free the old stack.
936 Reported by Per Allansson.
938 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
940 * src/bison.simple: Define type yystype instead of YYSTYPE, and
941 define CPP macro, which substitute YYSTYPE by yystype.
942 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
943 with yyltype/YYLTYPE. This allows inclusion of the generated
944 header within the parser if the compiler, such as GGC, accepts
945 multiple equivalent #defines.
948 2001-11-05 Akim Demaille <akim@epita.fr>
950 * src/reader.c (symbols_output): New, extracted from...
954 2001-11-05 Akim Demaille <akim@epita.fr>
956 * src/lex.c (parse_percent_token): s/quotearg/quote/.
958 2001-11-05 Akim Demaille <akim@epita.fr>
960 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
963 2001-11-05 Akim Demaille <akim@epita.fr>
965 * src/options.h (struct option_table_struct): set_flags is void*.
966 * src/options.c (longopts): Support `--output' and `%output'.
968 * src/lex.h (tok_setopt): Remove, replaced with...
969 (tok_intopt, tok_stropt): these new guys.
970 * src/lex.c (getopt.h): Not needed.
971 (token_buffer, unlexed_token_buffer): Not const.
972 (percent_table): Promote `-' over `_' in directive names.
973 Active `%name-prefix', `file-prefix', and `output'.
974 (parse_percent_token): Accept possible arguments to directives.
975 Promote `-' over `_' in directive names.
977 2001-11-04 Akim Demaille <akim@epita.fr>
979 * doc/bison.texinfo (Decl Summary): Split the list into
980 `directives for grammars' and `directives for bison'.
982 Add description of `%name-prefix', `file-prefix', and `output'.
983 Promote `-' over `_' in directive names.
984 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
985 Simplify the description of `--name-prefix'.
986 Promote `-' over `_' in directive names.
987 Promote `--output' over `--output-file'.
988 Fix the description of `--defines'.
989 * tests/output.at: Exercise %file-prefix and %output.
991 2001-11-02 Akim Demaille <akim@epita.fr>
993 * doc/refcard.tex: Update.
995 2001-11-02 Akim Demaille <akim@epita.fr>
997 * src/symtab.h (SUNDEF): New.
998 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
999 stand for `uninitialized', instead of 0.
1000 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
1001 * src/lex.c (lex): Adjust.
1003 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
1005 Let yylex return it instead of a plain 0.
1006 Reported by Dick Streefland.
1008 2001-11-02 Akim Demaille <akim@epita.fr>
1010 * tests/regression.at (Mixing %token styles): New test.
1012 2001-11-02 Akim Demaille <akim@epita.fr>
1014 * src/reader.c (parse_thong_decl): Formatting changes.
1015 (token_translations_init): New, extracted from...
1016 (packsymbols): Here.
1019 2001-11-01 Akim Demaille <akim@epita.fr>
1021 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
1022 Check that `9foo.y' produces correct cpp guards.
1023 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
1027 2001-11-01 Akim Demaille <akim@epita.fr>
1029 * tests/regression.at (Invalid input: 2): New.
1030 * src/lex.c (unlexed_token_buffer): New.
1031 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
1035 2001-11-01 Akim Demaille <akim@epita.fr>
1037 * tests/calc.at: Catch up with 1.30.
1038 * configure.in: Bump to 1.49a.
1039 Adjust to newer Autotest.
1041 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
1043 * src/conflicts.c: Move global variables rrc_total and src_total ...
1044 (print_conflicts): here.
1045 * src/output.c (output): Free global variable user_toknums.
1046 * src/lex.c (token_obstack): Become static.
1048 2001-10-18 Akim Demaille <akim@epita.fr>
1050 * tests/atlocal.in (GCC): Add.
1051 * tests/calc.at: s/m4_match/m4_bmatch/.
1052 s/m4_patsubst/m4_bpatsubst/.
1053 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1054 * configure.in: AC_SUBST(GCC).
1056 2001-10-14 Marc Autret <autret_m@epita.fr>
1058 * src/options.c (create_long_option_table): Fix.
1060 2001-10-10 Akim Demaille <akim@epita.fr>
1062 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1064 2001-10-04 Akim Demaille <akim@epita.fr>
1066 * src/reader.c (parse_union_decl): Push the caracters in
1067 union_obstack, not attrs_obstack.
1069 2001-10-04 Akim Demaille <akim@epita.fr>
1071 Merge in the branch 1.29.
1073 * src/reader.c (packsymbols): Use a temporary obstack for
1074 `%%tokendef', since output_stack is already used elsewhere.
1076 2001-10-02 Akim Demaille <akim@epita.fr>
1080 2001-10-02 Akim Demaille <akim@epita.fr>
1084 2001-10-02 Akim Demaille <akim@epita.fr>
1086 * tests/regression.at (Invalid CPP headers): New.
1087 From Alexander Belopolsky.
1088 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1090 2001-10-02 Akim Demaille <akim@epita.fr>
1092 * tests/regression.at (Invalid input): New.
1093 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1096 2001-10-02 Akim Demaille <akim@epita.fr>
1098 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1100 2001-10-02 Akim Demaille <akim@epita.fr>
1102 * src/output.c (output_parser): Assert `skeleton'.
1103 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1107 2001-10-01 Marc Autret <autret_m@epita.fr>
1109 * src/lex.h: Echo modifications.
1110 * src/lex.c (unlex): Parameter is now token_t.
1113 2001-10-01 Marc Autret <autret_m@epita.fr>
1115 * src/main.c: Include lex.h.
1118 2001-09-29 Akim Demaille <akim@epita.fr>
1120 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1122 2001-09-28 Akim Demaille <akim@epita.fr>
1124 * tests/testsuite.at: Update to newer Autotest.
1125 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1127 2001-09-27 Akim Demaille <akim@epita.fr>
1129 Position independent wrapper.
1131 * tests/bison: Remove.
1132 * tests/bison.in: New.
1133 * configure.in: Adjust.
1135 2001-09-27 Paul Eggert <eggert@twinsun.com>
1137 Port quotearg fixes from tar 1.13.24.
1139 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1141 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1142 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1144 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1145 * m4/mbrtowc.m4: New file.
1146 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1147 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1149 2001-09-27 Akim Demaille <akim@epita.fr>
1153 2001-09-27 Akim Demaille <akim@epita.fr>
1157 2001-09-25 Akim Demaille <akim@epita.fr>
1159 * src/system.h: Include `xalloc.h'.
1160 Remove it from the C files.
1161 * src/files.c (output_files): Free the obstacks.
1162 * src/lex.c (init_lex): Rename as...
1165 * src/main.c (main): Use it.
1167 2001-09-24 Marc Autret <autret_m@epita.fr>
1169 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1170 to output informations in fout (FILE*).
1171 (open_graph, close_graph): Likewise.
1172 (output_graph, output_edge, output_node): Likewise.
1173 * src/vcg.h: Update function prototypes.
1174 * src/print_graph.c (print_graph): Open output graph file.
1175 (print_actions): Adjust.
1176 * src/files.h: Remove extern declaration.
1177 * src/files.c: Remove graph_obstack declaration.
1178 (open_files): Remove graph_obstack initialization.
1179 (output_files): Remove graph_obstack saving.
1181 2001-09-24 Marc Autret <autret_m@epita.fr>
1183 * src/files.c (compute_output_file_names): Fix.
1185 2001-09-24 Marc Autret <autret_m@epita.fr>,
1186 Akim Demaille <akim@epita.fr>
1188 * src/reader.c (reader): Remove call to free_symtab ().
1189 * src/main.c (main): Call it here.
1191 * src/conflicts.c (initialize_conflicts): Rename as...
1192 (solve_conflicts): this.
1193 * src/print.c (print_core, print_actions, print_state)
1194 (print_grammar): Dump to a file instead a `output_obstack'.
1195 (print_results): Dump `output_obstack', and then proceed with the
1197 * src/files.c (compute_output_file_names, close_files): New.
1198 (output_files): Adjust.
1199 * src/main.c (main): Adjust.
1201 2001-09-23 Marc Autret <autret_m@epita.fr>
1203 * src/files.c (compute_header_macro): Computes header macro name
1204 from spec_defines_file when given.
1206 2001-09-23 Marc Autret <autret_m@epita.fr>
1208 * src/files.c (output_files): Add default extensions.
1210 2001-09-22 Akim Demaille <akim@epita.fr>
1212 * src/conflicts.c (finalize_conflicts): Rename as...
1213 (free_conflicts): this.
1215 2001-09-22 Akim Demaille <akim@epita.fr>
1217 * src/gram.c (gram_free): Rename back as...
1219 (output_token_translations): Free `token_translations'.
1220 * src/symtab.c (free_symtab): Free the tag field.
1222 2001-09-22 Akim Demaille <akim@epita.fr>
1224 Remove `translations' as it is always set to true.
1226 * src/gram.h: Adjust.
1227 * src/reader.c (packsymbols, parse_token_decl): Adjust
1228 * src/print.c (print_grammar): Adjust.
1229 * src/output.c (output_token_translations): Adjust.
1230 * src/lex.c (lex): Adjust.
1231 * src/gram.c: Be sure the set pointers to NULL.
1232 (dummy): Rename as...
1235 2001-09-22 Akim Demaille <akim@epita.fr>
1237 * configure.in: Invoke AM_LIB_DMALLOC.
1238 * src/system.h: Use dmalloc.
1239 * src/LR0.c: Be sure to have pointers initialized to NULL.
1240 (allocate_itemsets): Allocate kernel_items only if needed.
1242 2001-09-22 Akim Demaille <akim@epita.fr>
1244 * configure.in: Bump to 1.29b.
1245 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1246 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1247 need xmalloc.c in calc.y.
1250 2001-09-21 Akim Demaille <akim@epita.fr>
1253 * Makefile.maint, config/config.guess, config/config.sub,
1254 * config/missing: Update from masters.
1255 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1257 * configure.in (ALL_LINGUAS): Add `tr'.
1259 2001-09-21 Akim Demaille <akim@epita.fr>
1261 * tests/Makefile.am (package.m4): Move to...
1262 ($(srcdir)/$(TESTSUITE)): here.
1264 2001-09-20 Akim Demaille <akim@epita.fr>
1266 * src/complain.c: No longer try to be standalone: use system.h.
1267 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1268 * src/complain.h: Likewise.
1269 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1270 Remove the unused variable `n'.
1271 From Albert Chin-A-Young.
1273 2001-09-18 Marc Autret <autret_m@epita.fr>
1275 * doc/bison.1: Update.
1276 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1278 (Option Cross Key): Update.
1281 2001-09-18 Marc Autret <autret_m@epita.fr>
1283 * tests/regression.at: New test (comment in %union).
1285 2001-09-18 Marc Autret <autret_m@epita.fr>
1287 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1289 Reported by Keith Browne.
1291 2001-09-18 Marc Autret <autret_m@epita.fr>
1293 * tests/output.at: Add tests for --defines and --graph.
1295 2001-09-18 Marc Autret <autret_m@epita.fr>
1297 * tests/output.at: Removes tests of %{header,src}_extension features.
1299 2001-09-18 Akim Demaille <akim@epita.fr>
1301 * tests/Makefile.am (package.m4): New.
1302 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1303 (_AT_CHECK_CALC_ERROR): Likewise.
1304 Factor the `, ' part of verbose error messages.
1306 2001-09-18 Marc Autret <autret_m@epita.fr>
1308 * src/getargs.c (longopts): Declare --defines and --graph as options
1309 with optional arguments.
1310 * src/files.h: Add extern declarations.
1311 * src/files.c (spec_graph_file, spec_defines_file): New.
1312 (output_files): Update.
1313 Remove CPP-outed code.
1315 2001-09-18 Marc Autret <autret_m@epita.fr>
1317 Turn off %{source,header}_extension feature.
1319 * src/files.c (compute_exts_from_gf): Update.
1320 (compute_exts_from_src): Update.
1321 (output_files): CPP-out useless code.
1322 * src/files.h: Remove {header,source}_extension extern declarations.
1323 * src/reader.c (parse_dquoted_param): CPP-out.
1324 (parse_header_extension_decl): Remove.
1325 (parse_source_extension_decl): Remove.
1326 (read_declarations): Remove cases tok_{hdrext,srcext}.
1327 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1328 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1330 2001-09-10 Akim Demaille <akim@epita.fr>
1332 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1333 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1334 (AT_CHECK_OUTPUT): this.
1335 Merely check ls' exit status, its output is useless.
1337 2001-09-10 Akim Demaille <akim@epita.fr>
1339 * tests/calc.at: Use m4_match.
1340 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1342 2001-09-10 Marc Autret <autret_m@epita.fr>,
1343 Akim Demaille <akim@epita.fr>
1345 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1347 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1349 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1350 * src/lex.h: Adjust prototype.
1351 (token_t): Add `tok_undef'.
1352 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1353 (parse_percent_token): Now returns token_t.
1354 Add default statement in switch.
1355 (lex): Separate `c' as an input variable, from the token_t result
1357 (unlexed): Is a token_t.
1359 2001-09-10 Akim Demaille <akim@epita.fr>
1361 * configure.in: Bump to 1.29a.
1363 2001-09-07 Akim Demaille <akim@epita.fr>
1367 2001-08-30 Akim Demaille <akim@epita.fr>
1369 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1370 * m4/atconfig.m4: Remove.
1371 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1373 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1374 m4_if, m4_patsubst, and m4_regexp.
1375 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1376 `input' file instead of echo.
1378 2001-08-29 Akim Demaille <akim@epita.fr>
1382 2001-08-29 Akim Demaille <akim@epita.fr>
1386 2001-08-29 Paul Eggert <eggert@twinsun.com>
1388 * src/bison.simple (yyparse): Don't take the address of an
1389 item before the start of an array, as that doesn't conform to
1392 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1394 * doc/bison.texinfo (Location Tracking Calc): New node.
1396 2001-08-29 Paul Eggert <eggert@twinsun.com>
1398 * src/output.c (output): Do not define const, as this now
1399 causes more problems than it cures.
1401 2001-08-29 Akim Demaille <akim@epita.fr>
1403 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1405 Be sure to tag the `detailmenu'.
1407 2001-08-29 Akim Demaille <akim@epita.fr>
1409 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1410 download in a tmp dir.
1412 2001-08-28 Marc Autret <autret_m@epita.fr>
1414 * config/depcomp: New file.
1416 2001-08-28 Marc Autret <autret_m@epita.fr>
1418 * doc/bison.1 (mandoc): Adjust.
1419 From Juan Manuel Guerrero.
1421 2001-08-28 Marc Autret <autret_m@epita.fr>
1423 * src/print_graph.c (print_state): Fix.
1425 2001-08-27 Marc Autret <autret_m@epita.fr>
1427 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1429 Echo modifications to the functions prototypes.
1430 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1432 2001-08-27 Marc Autret <autret_m@epita.fr>
1434 * src/vcg.c: Include `xalloc.h'.
1435 (add_colorentry): New.
1436 (add_classname): New.
1437 (add_infoname): New.
1438 * src/vcg.h: Add new prototypes.
1440 2001-08-27 Akim Demaille <akim@epita.fr>
1442 * Makefile.maint: Sync. again with CVS Autoconf.
1444 2001-08-27 Akim Demaille <akim@epita.fr>
1446 * Makefile.maint: Formatting changes.
1447 (po-update, cvs-update, update): New targets.
1450 2001-08-27 Akim Demaille <akim@epita.fr>
1452 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1453 * Makefile.maint: Sync. with CVS Autoconf.
1455 2001-08-27 Marc Autret <autret_m@epita.fr>
1457 * src/vcg.h (struct infoname_s): New.
1458 (struct colorentry_s): New.
1459 (graph_s): New fields {vertical,horizontal}_order in structure.
1460 Add `infoname' field.
1461 Add `colorentry' field;
1462 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1463 (G_HORIZONTAL_ORDER): New.
1465 (G_COLORENTRY): New.
1466 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1467 Add output of `infoname'.
1468 Add output of `colorentry'.
1470 2001-08-27 Marc Autret <autret_m@epita.fr>
1472 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1473 This one shadowed a global parameter.
1475 2001-08-24 Marc Autret <autret_m@epita.fr>
1477 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1478 instead of `unsigned'.
1479 (print_state): Do not call obstack_object_size () in obstack_grow ()
1480 to avoid macro variables shadowing.
1482 2001-08-23 Marc Autret <autret_m@epita.fr>
1484 * src/lex.c (percent_table): Typo: s/naem/name/.
1486 Normalize new options declarations.
1488 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1490 * tests/suite.at: Exercise %header_extension and %source_extension.
1492 2001-08-16 Marc Autret <autret_m@epita.fr>
1494 * src/reader.c (parse_dquoted_param): New.
1495 (parse_header_extension_decl): Use it.
1496 (parse_source_extension_decl): Likewise.
1498 2001-08-16 Marc Autret <autret_m@epita.fr>
1500 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1501 (get_xxxx_str): Use assert () instead of complain ().
1502 Remove return invokations in default cases.
1503 (get_decision_str): Modify default behaviour. Remove second argument.
1504 Echo modifications on calls.
1505 (output_graph): Fix.
1507 2001-08-16 Marc Autret <autret_m@epita.fr>
1509 * src/getargs.c (usage): Update with ``-g, --graph''.
1511 2001-08-16 Marc Autret <autret_m@epita.fr>
1513 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1514 (Option Cross Key): Likewise.
1515 * doc/bison.1: Update.
1517 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1519 * src/output.c (output_master_parser): Don't finish action_obstack.
1520 (output_parser): Don't care about the muscle action, here.
1521 (prepare): Copy the action_obstack in the action muscle.
1522 (output): Free action_obstack.
1524 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1526 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1527 will contain `%union' declaration.
1528 (parse_union_decl): Delete #line directive output.
1529 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1530 informations about %union.
1531 (parse_union_decl): Copy the union_obstack in the muscle stype.
1532 * src/bison.simple: Add new #line directive.
1533 Add typdef %%stype YYSTYPE.
1535 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1537 * src/bison.simple: Add new `#line' directive.
1539 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1541 * src/bison.simple: New `#line' directive.
1542 * src/output.c (output_parser): Support new dynamic muscle input_line.
1544 2001-09-22 Marc Autret <autret_m@epita.fr>
1546 * src/output.c (output_master_parser): New.
1547 (output_parser): Be more re-entrant.
1549 2001-09-21 Marc Autret <autret_m@epita.fr>
1551 * src/reader.c (copy_definition, parse_union_decl): Update and use
1553 (copy_action): Likewise.
1554 Use obstack_1grow ().
1555 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1557 2001-09-21 Marc Autret <autret_m@epita.fr>
1559 * src/options.c (option_table): Adjust.
1560 * src/lex.c (parse_percent_token): Fix.
1562 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1564 * src/options.c (symtab.h): Include it, need by lex.h.
1566 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1568 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1569 is now an option_table_struct*.
1570 (option_strcmp): New function option_strcmp.
1571 (parse_percent_token): Call option_strcmp.
1572 * src/getargs.c (xalloc.h, options.h): Include it.
1573 (getargs): Call create_long_option_table.
1574 (getargs): Free longopts at the end of the function.
1575 (shortopts): Move in options.c.
1576 * src/options.c (create_long_option_table): New function. Convert
1577 information from option_table to option structure.
1578 * src/reader.c (options.h): Include it.
1580 * src/Makefile.am: Adjust.
1581 * src/options.c (option_table): Create from longopts and percent_table.
1582 * src/getargs.c (longopts): Delete.
1583 * src/lex.c (struct percent_table_struct): Delete.
1584 (percent_table): Delete.
1585 (options.h): Include it.
1586 * src/options.c: Create.
1587 * src/options.h: Create.
1588 Declare enum opt_access_e.
1589 Define struct option_table_struct.
1591 2001-09-20 Marc Autret <autret_m@epita.fr>
1593 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1596 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1598 * src/bison.simple: s/%%filename/%%skeleton.
1599 * src/muscle_tab.c (getargs.h): Include it.
1600 (muscle_init): Insert new muscle skeleton.
1602 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1604 * src/output.c (output_parser): Delete unused variable actions_dumped.
1606 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1608 * src/output.c (output): Delete call to reader_output_yylsp.
1609 * src/reader.c (reader): Likewise.
1610 * src/reader.h: Delete declaration of reader_output_yylsp.
1612 2001-09-02 Marc Autret <autret_m@epita.fr>
1614 * src/reader.c: Include muscle_tab.h.
1615 (parse_union_decl): Update.
1616 (parse_macro_decl): Rename parse_muscle_decl.
1617 Update to use renamed functions and variable.
1618 (read_declarations, copy_action, read_additionnal_code, : Updated
1619 with correct variables and functions names.
1620 (packsymbols, reader): Likewise.
1622 * src/reader.h (muscle_obstack): Extern declaration update.
1624 * src/output.c: Include muscle_tab.h
1625 In all functions using macro_insert, change by using muscle_insert ().
1626 (macro_obstack): Rename muscle_obstack.
1627 Echo modifications in the whole file.
1628 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1629 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1630 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1632 * src/muscle_tab.h: Update double inclusion macros.
1633 (macro_entry_s): Rename muscle_entry_s.
1636 * src/muscle_tab.c: Include muscle_tab.h.
1637 Rename macro_tabble to muscle_table.
1638 (mhash1, mhash2, mcmp): Use muscle_entry.
1639 (macro_init): Rename muscle_init. Update.
1640 (macro_insert): Rename muscle_insert. Update.
1641 (macro_find): Rename muscle_find. Update.
1643 * src/main.c: Include muscle_tab.h.
1644 (main): Call muscle_init ().
1645 * src/Makefile.am (bison_SOURCES): Echo modifications.
1647 2001-09-02 Marc Autret <autret_m@epita.fr>
1649 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1651 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1653 2001-09-02 Marc Autret <autret_m@epita.fr>
1655 * src/macrotab.c, src/macrotab.h: Remove.
1657 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1659 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1662 2001-09-01 Marc Autret <autret_m@epita.fr>
1664 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1665 to an explicit value to activate the feature. We do it here.
1667 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1669 * src/output.c (prepare): Delete the `filename' muscule insertion.
1670 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1671 (parse_union_decl): Likewise.
1672 * src/macrotab.c (macro_init): Initialize filename by infile.
1674 2001-08-31 Marc Autret <autret_m@epita.fr>
1676 * src/bison.simple (YYLSP_NEEDED): New definition.
1677 * src/output.c (prepare): Add macro insertion of `locations_flag'
1679 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1681 * src/output.c (prepare): Delete insertion of previous muscles,
1682 and insert the `prefix' muscles.
1683 * src/macrotab.c (macro_init): Likewise.
1684 (macro_init): Initialization prefix directive by `yy'.
1685 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1686 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1687 yylval, yydebug, yyerror, yynerrs and yyparse.
1688 New directive `#define' to substitute yydebug, ... with option
1691 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1693 * src/main.c (main): Standardize.
1694 * src/output.c (output_table_data, output_parser): Likewise.
1695 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1697 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1699 * src/reader.c (read_additionnal_code): Rename %%user_code to
1701 * src/output.c (output): Rename %%declarations to %%prologue.
1702 * src/bison.simple: Echo modifications.
1704 2001-08-31 Marc Autret <autret_m@epita.fr>
1706 * src/reader.c (readgram): CleanUp.
1707 (output_token_defines): Likewise.
1708 (packsymbols): Likewise.
1710 * src/output.c (output): CPP-out useless code.
1712 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1714 * src/reader.c (reader): Delete obsolete call to function
1715 output_trailers and output_headers.
1716 * src/output.h: Remove obsolete functions prototypes of output_headers
1717 and output_trailers.
1719 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1721 * src/main.c: Include macrotab.h.
1722 * src/macrotab.h (macro_entry_s): Constify fields.
1723 Adjust functions prototypes.
1724 * src/macrotab.c (macro_insert): Constify key and value.
1725 (macro_find): Constify key.
1726 (macro_insert): Include 'xalloc.h'
1727 (macro_insert): Use XMALLOC.
1728 (macro_find): Constify return value.
1729 * src/output.c (output_table_data): Rename table to table_data.
1730 (output_parser): Constify macro_key, macro_value.
1732 2001-08-30 Marc Autret <autret_m@epita.fr>
1734 * src/reader.c (parse_skel_decl): New.
1735 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1736 * src/lex.h (token_t): New token `tok_skel'.
1737 * src/lex.c (percent_table): Add skeleton option entry.
1740 2001-08-29 Marc Autret <autret_m@epita.fr>
1742 * src/bison.simple: Add %%user_code directive at the end.
1743 * src/reader.c (read_additionnal_code): New.
1745 * src/output.c (output_program): Remove.
1748 2001-08-28 Marc Autret <autret_m@epita.fr>
1750 * src/output.c (output_actions): Clean up.
1751 (output_gram): CPP-out useless code.
1752 * src/reader.c (reader): Clean up, CPP-out useless code.
1754 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1756 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1758 * src/bison.simple: Add `%%definitions'.
1760 2001-08-28 Marc Autret <autret_m@epita.fr>
1762 * config/depcomp: New file.
1764 2001-08-27 Paul Eggert <eggert@twinsun.com>
1766 * src/bison.simple (yyparse): Don't take the address of an
1767 item before the start of an array, as that doesn't conform to
1770 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1772 * src/output.c (output): Remove the initialization of the macro
1773 obstack. It was done too late here.
1775 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1777 (reader): Initialize the macro obstack here, since we need it to grow
1778 '%define' directives.
1780 * src/reader.h: Declare the macro obstack as extern.
1782 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1784 * src/output.c (output_parser): Fix. Store single '%' characters in
1785 the output obstack instead of throwing them away.
1787 2001-08-27 Akim Demaille <akim@epita.fr>
1789 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1791 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1793 * lib/Makefile.am: Adjust.
1795 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1797 * src/bison.simple: Update and add '%%' directives.
1799 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1801 * src/reader.c (reader): Remove calls to 'output_headers' and
1802 'output_trailers'. Remove some C output.
1803 (readgram): Disable a piece of code that was writing a default
1804 definition for 'YYSTYPE'.
1805 (reader_output_yylsp): Remove.
1806 (packsymbols): Output token defintions to a macro.
1807 (copy_definition): Disable C output.
1809 * src/reader.c (parse_macro_decl): New function used to parse macro
1811 (copy_string2): Put the body of copy_string into this new function.
1812 Add a parameter to let the caller choose whether he wants to copy the
1813 string delimiters or not.
1814 (copy_string): Be a simple call to copy_string2 with the last argument
1816 (read_declarations): Add case for macro definition.
1817 (copy_identifier): New.
1818 (parse_macro_decl): Read macro identifiers using copy_identifier
1821 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1823 * src/output.c (prepare): Add prefixed names.
1824 (output_parser): Output semantic actions.
1825 (output_parser): Fix bug on '%%line' directives.
1827 * src/output.c (output_headers): Remove. The C code printed by this
1828 function should now be in the skeletons.
1829 (output_trailers): Remove.
1830 (output): Disable call to 'reader_output_yylsp'.
1831 (output_rule_data): Do not output tables to the table obstack.
1833 * src/output.c: Remove some C dedicated output.
1834 Improve the use of macro and output obstacks.
1835 (output_defines): Remove.
1837 * src/output.c (output_token_translations): Associate 'translate'
1838 table with a macro. No output to the table obstack.
1839 (output_gram): Same for 'rhs' and 'prhs'.
1840 (output_stos): Same for 'stos'.
1841 (output_rule_data): Same for 'r1' and 'r2'.
1842 (token_actions): Same for 'defact'.
1843 (goto_actions): Same for 'defgoto'.
1844 (output_base): Same for 'pact' and 'pgoto'.
1845 (output_table): Same for 'table'.
1846 (output_check): Same for 'check'.
1848 * src/output.c (output_table_data): New function.
1849 (output_short_table): Remove.
1850 (output_short_or_char_table): Remove.
1852 * src/output.c (output_parser): Replace most of the skeleton copy code
1853 with something new. Skeletons are now processed character by character
1854 rather than line by line, and Bison looks for '%%' macros. This is the
1855 first step in making Bison's output process (a lot) more flexible.
1856 (output_parser): Use the macro table.
1858 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1860 * src/main.c (main): Initialize the macro table.
1862 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1864 * src/lex.c (percent_table): Add tok_define.
1865 * src/lex.h: Add tok_define.
1867 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1869 * src/macrotab.c: New file.
1870 * src/macrotab.h: New file.
1871 * src/Makefile.am: Update.
1873 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1875 * lib/hash.c: New file.
1876 * lib/hash.h: New file.
1877 * lib/Makefile.am: Update.
1879 2001-08-15 Akim Demaille <akim@epita.fr>
1883 2001-08-15 Marc Autret <autret_m@epita.fr>
1885 * src/reader.c (readgram): Indent output macro YYSTYPE.
1886 (packsymbols): Likewise.
1887 (output_token_defines): Likewise.
1888 * src/files.c: Standardize.
1889 (compute_header_macro): New.
1890 (defines_obstack_save): New. Use compute_header_macro.
1891 (output_files): Update. Use defines_obstack_save.
1893 2001-08-15 Akim Demaille <akim@epita.fr>
1895 * doc/bison.texinfo (Table of Symbols): Document
1898 2001-08-15 Akim Demaille <akim@epita.fr>
1900 * missing: Update from CVS Automake.
1901 * config/config.guess, config/config.sub, config/texinfo.tex:
1902 Update from gnu.org.
1904 2001-08-15 Akim Demaille <akim@epita.fr>
1906 * Makefile.maint: Sync with CVS Autoconf.
1908 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1910 * doc/bison.texinfo: Include GNU Free Documentation License from
1912 * doc/fdl.texi: Add to package.
1914 2001-08-14 Marc Autret <autret_m@epita.fr>
1916 Turn on %{source,header}_extension features.
1918 * src/lex.c (percent_table): Un-CPP out header_extension and
1920 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1921 (compute_exts_from_src): Remove conditions. It restores priorities
1924 2001-08-14 Marc Autret <autret_m@epita.fr>
1926 * src/files.c (compute_base_names): Add extensions computing when
1927 `--file-prefix' used.
1928 Standardize function calls.
1930 2001-08-13 Marc Autret <autret_m@epita.fr>
1932 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1933 defining it (defined but null disables alloca).
1935 2001-08-13 Marc Autret <autret_m@epita.fr>
1937 * src/bison.simple (_yy_memcpy): CPP reformat.
1939 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1941 * tests/atconfig.in (CPPFLAGS): Fix.
1943 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1945 * doc/bison.texinfo: Include GNU General Public License from
1947 * doc/gpl.texi: Add to package.
1949 2001-08-10 Marc Autret <autret_m@epita.fr>
1951 * src/print_graph.h: Fix.
1952 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1954 2001-08-10 Akim Demaille <akim@epita.fr>
1956 * src/system.h: Provide default declarations for stpcpy, strndup,
1959 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1961 * doc/bison.texinfo (Locations): Update @$ stuff.
1963 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1965 * src/bison.simple (YYLLOC_DEFAULT): Update.
1968 2001-08-08 Marc Autret <autret_m@epita.fr>
1970 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1971 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1972 Reported by Fabrice Bauzac.
1974 2001-08-08 Marc Autret <autret_m@epita.fr>
1976 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1977 * src/vcg.c (output_node): Fix.
1978 * src/vcg.h: Cleanup.
1979 * src/print_graph.c: Add comments.
1980 (node_output_size): New global variable. Simplify the formatting of
1981 the VCG graph output.
1982 (print_actions): Unused code is now used. It notifies the final state
1983 and no action states in the VCG graph. It also give the reduce actions.
1984 The `shift and goto' edges are red and the `go to state' edges are
1986 Get the current node name and node_obstack by argument.
1987 (node_obstack): New variable.
1988 (print_state): Manage node_obstack.
1989 (print_core): Use node_obstack given by argument.
1990 A node is not only computed here but in print_actions also.
1991 (print_graph): CPP out useless code instead of commenting it.
1993 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1995 * tests/atconfig.in (CPPFLAGS): Fix.
1997 2001-08-07 Akim Demaille <akim@epita.fr>
1999 * src/print_graph.c (quote): New.
2000 (print_core): Use it.
2002 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
2004 * src/vcg.c (complain.h): Include it.
2005 Unepitaize `return' invocations.
2006 [NDEBUG] (main): Remove.
2007 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
2008 * src/files.c (open_files): Initialize graph_obstack.
2009 * src/print_graph.c (print_actions): CPP out useless code.
2010 (print_core): Don't output the last `\n' in labels.
2012 * src/files.c (output_files): Output the VCG file.
2013 * src/main.c (main): Invoke print_graph ();
2015 2001-08-06 Marc Autret <autret_m@epita.fr>
2017 Automaton VCG graph output.
2018 Using option ``-g'' or long option ``--graph'', you can generate
2019 a gram_filename.vcg file containing a VCG description of the LALR (1)
2020 automaton of your grammar.
2022 * src/main.c: Call to print_graph() function.
2023 * src/getargs.h: Update.
2024 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
2025 (graph_flag): New flag.
2027 (getargs): Add case `g'.
2028 * src/files.c (graph_obstack): New obstack struct.
2029 (open_files): Initialize new obstack.
2030 (output_files): Saves graph_obstack if required.
2031 * src/files.h (graph_obstack): New extern declaration.
2032 * src/Makefile.am: Add new source files.
2034 2001-08-06 Marc Autret <autret_m@epita.fr>
2036 * src/print_graph.c, src/print_graph.h (graph): New.
2037 * src/vcg.h: New file.
2038 * src/vcg.c: New file, VCG graph handling.
2040 2001-08-06 Marc Autret <autret_m@epita.fr>
2042 Add of %source_extension and %header_extension which specify
2043 the source or/and the header output file extension.
2045 * src/files.c (compute_base_names): Remove initialisation of
2046 src_extension and header_extension.
2047 (compute_exts_from_gf): Update.
2048 (compute_exts_from_src): Update.
2049 (output_files): Update.
2050 * src/reader.c (parse_header_extension_decl): New.
2051 (parse_source_extension_decl): New.
2052 (read_declarations): New case statements for the new tokens.
2053 * src/lex.c (percent_table): Add entries for %source_extension
2054 and %header_extension.
2055 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
2057 2001-08-06 Marc Autret <autret_m@epita.fr>
2059 * configure.in: Bump to 1.28c.
2060 * doc/bison.texinfo: Texinfo thingies.
2062 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
2064 * tests/atconfig.in (CPPFLAGS): Add.
2065 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
2067 2001-08-03 Akim Demaille <akim@epita.fr>
2071 2001-08-03 Akim Demaille <akim@epita.fr>
2073 * tests/Makefile.am (check-local): Ship testsuite.
2074 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
2077 2001-08-03 Akim Demaille <akim@epita.fr>
2079 * configure.in: Try using -Wformat when compiling.
2081 2001-08-03 Akim Demaille <akim@epita.fr>
2083 * configure.in: Bump to 1.28b.
2085 2001-08-03 Akim Demaille <akim@epita.fr>
2087 * src/complain.c: Adjust strerror_r portability issues.
2089 2001-08-03 Akim Demaille <akim@epita.fr>
2093 2001-08-03 Akim Demaille <akim@epita.fr>
2095 * src/getargs.c, src/getarg.h (skeleton)): Constify.
2096 * src/lex.c (literalchar): Avoid name clashes on `buf'.
2097 * src/getargs.c: Include complain.h.
2098 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
2099 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
2101 2001-08-03 Akim Demaille <akim@epita.fr>
2103 * src/reader.c (readgram): Display hidden chars in error messages.
2105 2001-08-03 Akim Demaille <akim@epita.fr>
2107 Update to gettext 0.10.39.
2109 2001-08-03 Akim Demaille <akim@epita.fr>
2111 * lib/strspn.c: New.
2113 2001-08-01 Marc Autret <autret_m@epita.fr>
2115 * doc/bison.texinfo: Update.
2116 * doc/bison.1 (mandoc): Update.
2117 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
2118 * src/files.c: Support output files extensions computing.
2119 (src_extension): New static variable.
2120 (header_extension): New static variable.
2122 (get_extension_index): New function, gets the index of an extension
2123 filename in a string.
2124 (compute_exts_from_gf): New function, computes extensions from the
2125 grammar file extension.
2126 (compute_exts_from_src): New functions, computes extensions from the
2127 C source file extension, file given by ``-o'' option.
2128 (compute_base_names): Update.
2129 (output_files): Update.
2131 2001-08-01 Robert Anisko <anisko_r@epita.fr>
2133 * doc/bison.texi: Document @$.
2134 (Locations): New section.
2136 2001-07-18 Akim Demaille <akim@epita.fr>
2138 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
2139 * config/prev-version.txt, config/move-if-change: New.
2140 * Makefile.am: Adjust.
2142 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
2144 * src/bison.simple (yyparse): Suppress warning `comparaison
2145 between signed and unsigned'.
2147 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
2149 * src/getargs.h (raw_flag): Remove.
2150 * src/getargs.c: Die on `-r'/`--raw'.
2151 * src/lex.c (parse_percent_token): Die on `%raw'.
2152 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
2153 * tests/calc.at: Suppress test with option `--raw'.
2155 2001-07-14 Akim Demaille <akim@epita.fr>
2158 * configure.in: Require Autoconf 2.50.
2159 Update to gettext 0.10.38.
2161 2001-03-16 Akim Demaille <akim@epita.fr>
2163 * doc/bison.texinfo: ANSIfy the examples.
2165 2001-03-16 Akim Demaille <akim@epita.fr>
2167 * getargs.c (skeleton): New variable.
2168 (longopts): --skeleton is a new option.
2169 (shortopts, getargs): -S is a new option.
2170 * getargs.h: Declare skeleton.
2171 * output.c (output_parser): Use it.
2173 2001-03-16 Akim Demaille <akim@epita.fr>
2175 * m4/strerror_r.m4: New.
2176 * m4/error.m4: Run AC_FUNC_STRERROR_R.
2177 * lib/error.h, lib/error.c: Update.
2179 2001-03-16 Akim Demaille <akim@epita.fr>
2181 * src/getargs.c (longopts): Clean up.
2183 2001-02-21 Akim Demaille <akim@epita.fr>
2185 * src/reader.c (gensym): `gensym_count' is your own.
2186 Use a static buf to create the symbol name, as token_buffer is no
2189 2001-02-08 Akim Demaille <akim@epita.fr>
2191 * src/conflicts.c (conflict_report): Be sure not to append to res
2192 between two calls, which could happen if both first sprintf were
2193 skipped, but not the first cp += strlen.
2195 2001-02-08 Akim Demaille <akim@epita.fr>
2197 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
2198 New, from fileutils 4.0.37.
2199 * configure.in: Require Autoconf 2.49c. I took some time before
2200 making this decision. This is the only way out for portability
2201 issues in Bison, it would mean way too much duplicate effort to
2202 import in Bison features implemented in 2.49c since 2.13.
2203 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
2205 2001-02-02 Akim Demaille <akim@epita.fr>
2207 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
2208 * lib/xalloc.h, lib/xmalloc.c: Update.
2210 2001-01-19 Akim Demaille <akim@epita.fr>
2212 Get rid of the ad hoc handling of token_buffer in the scanner: use
2215 * src/lex.c (token_obstack): New.
2216 (init_lex): Initialize it. No longer call...
2217 (grow_token_buffer): this. Remove it.
2218 Adjust all the places which used it to use the obstack.
2220 2001-01-19 Akim Demaille <akim@epita.fr>
2222 * src/lex.h: Rename all the tokens:
2223 s/\bENDFILE\b/tok_eof/g;
2224 s/\bIDENTIFIER\b/tok_identifier/g;
2226 Let them be enums, not #define, to ease debugging.
2227 Adjust all the code.
2229 2001-01-18 Akim Demaille <akim@epita.fr>
2231 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2232 * src/lex.c (maxtoken, grow_token_buffer): Static.
2234 2001-01-18 Akim Demaille <akim@epita.fr>
2236 Since we now use obstacks, more % directives can be enabled.
2238 * src/lex.c (percent_table): Also accept `%yacc',
2239 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2241 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2242 instead of returning a token.
2243 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2244 * src/reader.c (read_declarations): Adjust.
2245 * src/files.c (open_files): Don't call `compute_base_names', don't
2246 compute `attrsfile' since they depend upon data which might be
2247 *in* the input file now.
2248 (output_files): Do it here.
2249 * src/output.c (output_headers): Document the fact that this patch
2250 introduces a guaranteed SEGV for semantic parsers.
2251 * doc/bison.texinfo: Document them.
2252 * tests/suite.at: Exercise these %options.
2254 2000-12-20 Akim Demaille <akim@epita.fr>
2256 Also handle the output file (--verbose) with obstacks.
2258 * files.c (foutput): Remove.
2259 (output_obstack): New.
2260 Adjust all dependencies.
2261 * src/conflicts.c: Return a string.
2262 * src/system.h (obstack_grow_string): Rename as...
2263 (obstack_sgrow): this. Be ready to work with non literals.
2264 (obstack_fgrow4): New.
2266 2000-12-20 Akim Demaille <akim@epita.fr>
2268 * src/files.c (open_files): Fix the computation of short_base_name
2269 in the case of `-o foo.tab.c'.
2271 2000-12-20 Akim Demaille <akim@epita.fr>
2273 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2274 (copy_dollar): Now that everything uses obstacks, get rid of the
2277 2000-12-20 Akim Demaille <akim@epita.fr>
2279 * src/files.c (open_files): Actually the `.output' file is based
2280 on the short_base_name, not base_name.
2281 * tests/suite.at (Checking output file names): Adjust.
2283 2000-12-20 Akim Demaille <akim@epita.fr>
2285 * src/bison.s1: Remove, we now use directly...
2286 * src/bison.simple: this.
2287 * src/Makefile.am: Use pkgdata instead of data.
2289 2000-12-20 Akim Demaille <akim@epita.fr>
2291 * src/files.c (guard_obstack): New.
2292 (open_files): Initialize it.
2293 (output_files): Dump it...
2294 * src/files.h: Export it.
2295 * src/reader.c (copy_guard): Use it.
2297 2000-12-19 Akim Demaille <akim@epita.fr>
2299 * src/files.c (outfile, defsfile, actfile): Removed as global
2301 (open_files): Don't compute them.
2302 (output_files): Adjust.
2303 (base_name, short_base_name): Be global.
2304 Adjust dependencies.
2306 2000-12-19 Akim Demaille <akim@epita.fr>
2308 * src/files.c (strsuffix): New.
2309 (stringappend): Be just like strcat but allocate.
2310 (base_names): Eve out from open_files.
2311 Try to simplify the rather hairy computation of base_name and
2313 (open_files): Use it.
2314 * tests/suite.at (Checking output file names): New test.
2316 2000-12-19 Akim Demaille <akim@epita.fr>
2318 * src/system.h (obstack_grow_literal_string): Rename as...
2319 (obstack_grow_string): this.
2320 * src/output.c (output_parser): Recognize `%% actions' instead of
2322 * src/bison.s1: s/$/%% actions/.
2323 * src/bison.hairy: Likewise.
2325 2000-12-19 Akim Demaille <akim@epita.fr>
2327 * src/output.c (output_parser): Compute the `#line' lines when
2329 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2330 Suggested by Hans Aberg.
2332 2000-12-19 Akim Demaille <akim@epita.fr>
2334 Let the handling of the skeleton files be local to the procedures
2337 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2339 (fparser, open_extra_files): Remove.
2340 (open_files, output_files): Don't take care of fparser.
2341 * src/files.h: Adjust.
2342 * src/output.c (output_parser): Open and close the file to the
2344 * src/reader.c (read_declarations): When %semantic_parser, open
2347 2000-12-19 Akim Demaille <akim@epita.fr>
2349 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2350 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2352 2000-12-19 Akim Demaille <akim@epita.fr>
2354 * src/files.c (open_files): Yipee! We no longer need all the code
2355 looking for `/tmp' since we have no tmp file.
2357 2000-12-19 Akim Demaille <akim@epita.fr>
2359 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2361 * src/files.c (open_files): Less dependency on MSDOS etc.
2363 2000-12-14 Akim Demaille <akim@epita.fr>
2365 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2366 Provide a default definition.
2367 Use it when executing the default @ action.
2368 * src/reader.c (reader_output_yylsp): No longer include
2369 `timestamp' and `text' in the default YYLTYPE.
2371 2000-12-12 Akim Demaille <akim@epita.fr>
2373 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2374 (copy_guard): Quote the file names.
2375 Reported by Laurent Mascherpa.
2377 2000-12-12 Akim Demaille <akim@epita.fr>
2379 * src/output.c (output_headers, output_program, output): Be sure
2380 to escape special characters when outputting filenames.
2381 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2382 (output_headers): Don't depend on them, Use ACTSTR.
2384 2000-11-17 Akim Demaille <akim@epita.fr>
2386 * lib/obstack.h: Formatting changes.
2387 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2388 prevents type checking.
2389 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2390 cast the value to (void *): assigning a `foo *' to a `void *'
2392 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2393 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2396 2000-11-17 Akim Demaille <akim@epita.fr>
2398 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2400 (suite.m4, regression.m4, calc.m4): these.
2401 * tests/atgeneral.m4: Update from CVS Autoconf.
2403 2000-11-17 Akim Demaille <akim@epita.fr>
2405 * tests/regression.m4 (%union and --defines): New test,
2406 demonstrating a current bug in the obstack implementation.
2408 2000-11-17 Akim Demaille <akim@epita.fr>
2410 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2412 Use them to declare the variables which are global or local to
2415 2000-11-17 Akim Demaille <akim@epita.fr>
2417 * acconfig.h: Remove, no longer used.
2419 2000-11-07 Akim Demaille <akim@epita.fr>
2421 * src: s/Copyright (C)/Copyright/g.
2423 2000-11-07 Akim Demaille <akim@epita.fr>
2425 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2427 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2429 2000-11-07 Akim Demaille <akim@epita.fr>
2431 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2432 Merge in a single CPP if/else.
2434 2000-11-07 Akim Demaille <akim@epita.fr>
2436 * src/output.c (output): Remove useless variables.
2437 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2438 argument `data' for consistency with the prototypes.
2440 (obstack_copy, obstack_copy0): Rename the second argument as
2441 `address' for consistency. Qualify it `const'.
2442 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2443 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2444 `const' their input argument (`data' or `address').
2445 Adjust the corresponding macros to include `const' in casts.
2447 2000-11-03 Akim Demaille <akim@epita.fr>
2449 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2450 s/PFILE1/BISON_HAIRY/.
2451 Adjust dependencies.
2453 2000-11-03 Akim Demaille <akim@epita.fr>
2455 For some reason, this was not applied.
2457 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2458 `unlink': it's no longer used.
2460 2000-11-03 Akim Demaille <akim@epita.fr>
2462 * src/files.c (skeleton_find): New function, eved out of...
2463 (open_files, open_extra_files): here.
2465 2000-11-03 Akim Demaille <akim@epita.fr>
2469 * src/files.c (obstack_save): New function.
2470 (done): Rename as...
2471 (output_files): this.
2473 * src/main.c (main): Don't use `atexit' to register `done', since
2474 it no longer has to remove tmp files, just call `output_files'
2475 when there are no errors.
2477 2000-11-02 Akim Demaille <akim@epita.fr>
2479 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2480 `unlink': it's no longer used.
2481 * src/files.h: Formatting changes.
2483 2000-11-02 Akim Demaille <akim@epita.fr>
2485 Remove the last uses of mktemp and unlink/delete.
2487 * src/files.c (fdefines, ftable): Removed.
2488 (defines_ostack, table_obstack): New.
2489 Adjust dependencies of the former into uses of the latter.
2490 * src/output.c (output_short_or_char_table, output_short_table):
2491 Convert to using obstacks.
2492 * src/reader.c (copy_comment2): Accept one FILE * and two
2494 (output_token_defines, reader_output_yylsp): Use obstacks.
2495 * src/system.h (obstack_fgrow3): New.
2497 2000-11-01 Akim Demaille <akim@epita.fr>
2499 Change each use of `fattrs' into a use of `attrs_obstack'.
2501 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2502 * src/files.c (fattrs): Remove.
2503 (attrs_obstack): New.
2504 Adjust all dependencies.
2505 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2507 2000-11-01 Akim Demaille <akim@epita.fr>
2510 Change each use of `faction' into a use of `action_obstack'.
2512 * lib/obstack.h, lib/obstack.c: New files.
2513 * src/files.c (faction): Remove.
2514 (action_obstack): New.
2515 Adjust all dependencies.
2517 2000-10-20 Akim Demaille <akim@epita.fr>
2519 * lib/quote.h (PARAMS): New macro. Use it.
2521 2000-10-16 Akim Demaille <akim@epita.fr>
2523 * src/output.c (output_short_or_char_table): New function.
2524 (output_short_table, output_token_translations): Use it.
2525 (goto_actions): Use output_short_table.
2527 2000-10-16 Akim Demaille <akim@epita.fr>
2529 * src/symtab.c (bucket_new): New function.
2532 * src/output.c (output_short_table): New argument to display the
2533 comment associated with the table.
2534 Adjust dependencies.
2535 (output_gram): Use it.
2536 (output_rule_data): Nicer output layout for YYTNAME.
2538 2000-10-16 Akim Demaille <akim@epita.fr>
2540 * src/lex.c (read_typename): New function.
2542 * src/reader.c (copy_dollar): Likewise.
2544 2000-10-16 Akim Demaille <akim@epita.fr>
2546 * src/reader.c (copy_comment2): Expect the input stream to be on
2547 the `/' which is suspected to open a comment, instead of being
2548 called after `//' or `/*' was read.
2549 (copy_comment, copy_definition, parse_union_decl, copy_action)
2550 (copy_guard): Adjust.
2552 2000-10-16 Akim Demaille <akim@epita.fr>
2554 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2555 `read_signed_integer'.
2557 2000-10-16 Akim Demaille <akim@epita.fr>
2559 * src/reader.c (copy_dollar): New function.
2560 (copy_guard, copy_action): Use it.
2562 2000-10-16 Akim Demaille <akim@epita.fr>
2564 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2565 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2566 New files, from Fileutils 4.0.27.
2567 * src/main.c (printable_version): Remove.
2568 * src/lex.c, src/reader.c: Use `quote'.
2570 2000-10-04 Akim Demaille <akim@epita.fr>
2572 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2574 2000-10-04 Akim Demaille <akim@epita.fr>
2576 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2578 2000-10-04 Akim Demaille <akim@epita.fr>
2580 When a literal string is used to define two different tokens,
2581 `bison -v' segfaults.
2582 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2584 * tests/regression.m4: New file.
2585 Include the core of the sample provided by Piotr Gackiewicz.
2586 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2589 2000-10-04 Akim Demaille <akim@epita.fr>
2591 * src/reader.c (parse_expect_decl): Keep `count' within the size
2595 2000-10-02 Paul Eggert <eggert@twinsun.com>
2597 * bison.s1 (yyparse): Assign the default value
2598 unconditionally, to avoid a GCC warning and make the parser a
2601 2000-10-02 Akim Demaille <akim@epita.fr>
2603 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2606 2000-10-02 Akim Demaille <akim@epita.fr>
2608 * src/derives.c, src/print.c, src/reduce.c: To ease the
2609 translation, move some `\n' out of the translated strings.
2611 2000-10-02 Akim Demaille <akim@epita.fr>
2613 The location tracking mechanism is precious for parse error
2614 messages. Nevertheless, it is enabled only when `@n' is used in
2615 the grammar, which is a different issue (you can use it in error
2616 message, but not in the grammar per se). Therefore, there should
2617 be another means to enable it.
2619 * src/getargs.c (getargs): Support `--locations'.
2621 * src/getargs.h (locationsflag): Export it.
2622 * src/lex.c (percent_table): Support `%locations'.
2623 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2624 with `locationsflag'.
2625 * doc/bison.texinfo: Document `--locations' and `%locations'.
2627 * tests/calc.m4: Test it.
2629 For regularity of the names, replace each
2630 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2631 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2632 In addition replace each `flag' with `_flag'.
2634 2000-10-02 Akim Demaille <akim@epita.fr>
2636 Also test parse error messages, including with YYERROR_VERBOSE.
2638 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2640 Use it to check the computations.
2641 Use it to check `nonassoc' is honored.
2642 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2643 `--yyerror-verbose'.
2644 (_AT_CHECK_CALC): Adjust to this option.
2645 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2647 2000-10-02 Akim Demaille <akim@epita.fr>
2649 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2650 the latter demonstrates a flaw in the handling of non debugging
2651 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2652 was used in order to simplify:
2668 unfortunately this leads to a CPP conflict when
2669 `--name-prefix=foo' is used since it produces `#define yydebug
2672 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2673 (YYDPRINTF): New macro.
2675 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2677 Also test `--verbose', `--defines' and `--name-prefix'.
2679 2000-10-02 Akim Demaille <akim@epita.fr>
2681 Improve the readability of the produced parsers.
2683 * src/bison.s1: Formatting changes.
2684 Improve the comment related to the `$' mark.
2685 (yydefault): Don't fall through to `yyresume': `goto' there.
2686 * src/output.c (output_parser): When the `$' is met, skip the end
2688 New variable, `number_of_dollar_signs', to check there's exactly
2689 one `$' in the parser skeleton.
2691 2000-10-02 Akim Demaille <akim@epita.fr>
2693 * lib/xstrdup.c: New file, from the fileutils.
2694 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2695 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2696 instead of strlen + xmalloc + strcpy.
2697 * src/symtab.c (copys): Remove, use xstrdup instead.
2699 2000-10-02 Akim Demaille <akim@epita.fr>
2701 * src/gram.h (associativity): New enum type which replaces the
2702 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2703 `right_assoc', `left_assoc' and `non_assoc'.
2704 Adjust all dependencies.
2705 * src/reader.c: Formatting changes.
2706 (LTYPESTR): Don't define it, use it as a literal in
2707 `reader_output_yylsp'.
2708 * src/symtab.h (symbol_class): New enum type which replaces the
2709 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2710 `sunknown', `stoken and `snterm'.
2712 2000-10-02 Akim Demaille <akim@epita.fr>
2714 * src/getargs.c (fixed_outfiles): Rename as...
2715 (yaccflag): for consistency and accuracy.
2716 Adjust dependencies.
2718 2000-10-02 Akim Demaille <akim@epita.fr>
2720 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2721 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2722 difficult and introduced a lot of core dump. It turns out that
2723 Bison used an implementation of `xmalloc' based on `calloc', and
2724 at various places it does depend upon the initialization to 0. I
2725 have not tried to isolate the pertinent places, and all the former
2726 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2727 someone should address this issue.
2729 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2730 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2732 Adjust dependencies.
2733 * src/warshall.h: New file.
2736 2000-10-02 Akim Demaille <akim@epita.fr>
2738 Various anti-`extern in *.c' changes.
2740 * src/system.h: Include `assert.h'.
2742 2000-10-02 Akim Demaille <akim@epita.fr>
2744 * src/state.h (nstates, final_state, first_state, first_shift)
2745 (first_reduction): Move their exportation from here...
2746 * src/LR0.h: to here.
2747 Adjust dependencies.
2748 * src/getargs.c (statisticsflag): New variable.
2749 Add support for `--statistics'.
2750 Adjust dependencies.
2752 Remove a lot of now useless `extern' statements in most files.
2754 2000-10-02 Akim Demaille <akim@epita.fr>
2756 * src/LR0.h: New file.
2759 2000-10-02 Akim Demaille <akim@epita.fr>
2761 * src/print.h: New file.
2763 * src/print.c: Formatting and ordering changes.
2764 (verbose, terse): Replace with...
2765 (print_results): this new function.
2766 Adjust dependencies.
2768 2000-10-02 Akim Demaille <akim@epita.fr>
2770 * src/conflicts.c (conflict_report): New function.
2771 (conflict_log, verbose_conflict_log): Replace with...
2772 (print_conflicts): this function.
2773 Adjust dependencies.
2774 * src/conflicts.h: New file.
2775 Propagate its inclusion.
2777 2000-10-02 Akim Demaille <akim@epita.fr>
2779 * src/nullable.h: New file.
2780 Propagate its inclusion.
2781 * src/nullable.c: Formatting changes.
2783 2000-10-02 Akim Demaille <akim@epita.fr>
2785 * src/reduce.h: New file.
2786 Propagate its inclusion.
2787 * src/reduce.c: Topological sort and other formatting changes.
2788 (bool, TRUE, FALSE): Move their definition to...
2789 * src/system.h: here.
2791 2000-10-02 Akim Demaille <akim@epita.fr>
2793 * src/files.c: Formatting changes.
2794 (tryopen, tryclose, openfiles): Rename as...
2795 (xfopen, xfclose, open_files): this.
2796 (stringappend): static.
2797 * src/files.h: Complete the list of exported symbols.
2800 2000-10-02 Akim Demaille <akim@epita.fr>
2802 * src/reader.h: New file.
2803 Propagate its use instead of tedious list of `extern' and
2805 * src/reader.c: Formatting changes, topological sort,
2808 2000-10-02 Akim Demaille <akim@epita.fr>
2810 * src/lex.h: Prototype `lex.c' exported functions.
2811 * src/reader.c: Adjust.
2812 * src/lex.c: Formatting changes.
2813 (safegetc): Rename as...
2816 2000-10-02 Akim Demaille <akim@epita.fr>
2818 * src/lalr.h: New file.
2819 Propagate its inclusion instead of prototypes and `extern'.
2820 * src/lalr.c: Formatting changes, topological sorting etc.
2822 2000-10-02 Akim Demaille <akim@epita.fr>
2824 * src/output.c (token_actions): Introduce a temporary array,
2825 YYDEFACT, that makes it possible for this function to use
2828 2000-10-02 Akim Demaille <akim@epita.fr>
2830 `user_toknums' is output as a `short[]' in `output.c', while it is
2831 defined as a `int[]' in `reader.c'. For consistency with the
2832 other output tables, `user_toknums' is now defined as a table of
2835 * src/reader.c (user_toknums): Be a short table instead of an int
2837 Adjust dependencies.
2839 Factor the short table outputs.
2841 * src/output.c (output_short_table): New function.
2842 * src/output.c (output_gram, output_stos, output_rule_data)
2843 (output_base, output_table, output_check): Use it.
2845 2000-10-02 Akim Demaille <akim@epita.fr>
2847 * src/output.c (output): Topological sort of the functions, in
2848 order to get rid of the `static' prototypes.
2849 No longer use `register'.
2850 * src/output.h: New file.
2851 Propagate its inclusion in files explicitly prototyping functions
2854 2000-09-21 Akim Demaille <akim@epita.fr>
2856 * src/atgeneral.m4: Update from Autoconf.
2858 2000-09-21 Akim Demaille <akim@epita.fr>
2860 * src/closure.h: New file.
2861 * src/closure.c: Formatting changes, topological sort over the
2862 functions, use of closure.h.
2863 (initialize_closure, finalize_closure): Rename as...
2864 (new_closure, free_closure): these. Adjust dependencies.
2865 * src/LR0.c: Formatting changes, topological sort, use of
2867 (initialize_states): Rename as...
2869 * src/Makefile.am (noinst_HEADERS): Adjust.
2871 2000-09-20 Akim Demaille <akim@epita.fr>
2873 * src/acconfig.h: Don't protect config.h against multiple
2875 Don't define PARAMS.
2876 * src/system.h: Define PARAMS.
2877 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2878 purpose of config.h. system.h must not try to fix wrong
2879 definitions in config.h.
2881 2000-09-20 Akim Demaille <akim@epita.fr>
2883 * src/derives.h: New file.
2884 * src/main.c, src/derives.h: Use it.
2886 * src/Makefile.am (noinst_HEADERS): Adjust.
2888 2000-09-20 Akim Demaille <akim@epita.fr>
2890 * tests/atgeneral.m4: Update from Autoconf.
2891 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2892 (AT_CHECK_CALC): New macros.
2893 Use these macros to test bison with options `', `--raw',
2894 `--debug', `--yacc', `--yacc --debug'.
2896 2000-09-19 Akim Demaille <akim@epita.fr>
2898 * src/output.c: Formatting changes.
2899 * src/machine.h: Remove, leaving its contents in...
2900 * src/system.h: here.
2902 Adjust all dependencies on stdio.h and machine.h.
2903 * src/getargs.h: New file.
2904 Let all `extern' declarations about getargs.c be replaced with
2905 inclusion of `getargs.h'.
2906 * src/Makefile.am (noinst_HEADERS): Adjust.
2908 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2910 (yyerror): Returns void, not int.
2911 * doc/bison.texinfo: Formatting changes.
2913 2000-09-19 Akim Demaille <akim@epita.fr>
2915 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2918 2000-09-18 Akim Demaille <akim@epita.fr>
2920 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2921 * src/Makefile.am (INCLUDES): Don't.
2922 Be ready to fetch headers in lib/.
2924 2000-09-18 Akim Demaille <akim@epita.fr>
2926 * doc/bison.texinfo: Update the copyright.
2927 ANSIfy and GNUify the examples.
2928 Remove the old menu.
2930 2000-09-18 Akim Demaille <akim@epita.fr>
2932 First set of tests: use the `calc' example from the documentation.
2934 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2935 is defined only when YYDEBUG is.
2936 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2937 * src/files.c (tryopen, tryclose): Formatting changes.
2938 Move to the top and be static.
2939 * src/reader.c (read_signed_integer): Likewise.
2940 * tests/calc.m4: New file.
2941 * Makefile.am, suite.m4: Adjust.
2942 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2944 2000-09-18 Akim Demaille <akim@epita.fr>
2946 Add support for an Autotest test suite for Bison.
2948 * m4/m4.m4, m4/atconfig.m4: New files.
2949 * m4/Makefile.am (EXTRA_DIST): Adjust.
2950 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2952 * src/getargs.c: Display a more standard --version message.
2953 * src/reader.c (reader): Formatting changes.
2954 No longer depend upon VERSION_STRING.
2955 * configure.in: No longer use `dnl'.
2956 Set up the test suite and the new directory `tests/.
2957 (VERSION_STRING): Remove.
2959 2000-04-14 Akim Demaille <akim@epita.fr>
2961 * src/reader.c (copy_comment2): New function, same as former
2962 `copy_comment', but outputs into two FILE *.
2963 (copy_comment): Use it.
2964 (parse_union_decl): Use it.
2965 (get_type, parse_start_decl): Use the same `invalid' message.
2966 (parse_start_decl, parse_union_decl): Use the same `multiple'
2968 (parse_union_decl, copy_guard, copy_action): Use the same
2969 `unmatched' message.
2970 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2972 2000-03-31 Akim Demaille <akim@epita.fr>
2974 * src/files.c (tryopen, tryclose): Move to the top.
2977 2000-03-31 Akim Demaille <akim@epita.fr>
2979 * src/main.c (main): Don't call `done', exit does it.
2981 2000-03-31 Akim Demaille <akim@epita.fr>
2983 * allocate.c: s/return (foo)/return foo/.
2986 * output.c: Likewise.
2987 * reader.c: Likewise.
2988 * symtab.c: Likewise.
2989 * vmsgetargs.c: Likewise.
2991 2000-03-31 Akim Demaille <akim@epita.fr>
2993 Clean up the error reporting functions.
2995 * src/report.c: New file.
2996 * src/report.h: Likewise.
2997 * src/Makefile.am: Adjust.
2998 * m4/error.m4: New file.
2999 * m4/Makefile.am: Adjust.
3000 * configure.in (jm_PREREQ_ERROR): Call it.
3001 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
3003 (fatal, fatals): Remove. All callers use complain.c::fatal.
3004 (warn, warni, warns, warnss, warnss): Remove. All callers use
3005 complain.c::complain.
3006 (toomany): Remove, use fatal instead.
3007 * src/files.c (done): No argument, use complain_message_count.
3008 * src/main.c (main): Register `done' to `atexit'.
3010 * src/getargs.c (usage): More `fputs', less `fprintf'.
3012 2000-03-28 Akim Demaille <akim@epita.fr>
3014 * lib/: New directory.
3015 * Makefile.am (SUBDIRS): Adjust.
3016 * configure.in: Adjust.
3017 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
3019 * src/alloca.c: Moved to lib/.
3020 * src/getopt.c: Likewise.
3021 * src/getopt1.c: Likewise.
3022 * src/getopt.h: Likewise.
3023 * src/ansi2knr.c: Likewise.
3024 * src/ansi2knr.1: Likewise.
3025 * src/Makefile.am: Adjust.
3026 * lib/Makefile.am: New file.
3028 2000-03-28 Akim Demaille <akim@epita.fr>
3030 * src/getargs.c (usage): Refresh the help message.
3032 2000-03-17 Akim Demaille <akim@epita.fr>
3034 * src/getopt1.c: Updated from textutils 2.0e
3035 * src/getopt.c: Likewise.
3036 * src/getopt.h: Likewise.
3038 2000-03-17 Akim Demaille <akim@epita.fr>
3040 * src/Makefile.am (bison.simple): Fix the awk program: quote only
3041 the file name, not the whole `#line LINE FILE'.
3043 2000-03-17 Akim Demaille <akim@epita.fr>
3045 On syntax errors, report the token on which we choked.
3047 * src/bison.s1 (yyparse): In the label yyerrlab, when
3048 YYERROR_VERBOSE, add yychar in msg.
3050 2000-03-17 Akim Demaille <akim@epita.fr>
3052 * src/reader.c (copy_at): New function.
3053 (copy_guard): Use it.
3054 (copy_action): Use it.
3056 2000-03-17 Akim Demaille <akim@epita.fr>
3058 Be kind to translators, save some useless translations.
3060 * src/main.c (banner): New function.
3061 (fatal_banner): Use it.
3062 (warn_banner): Use it.
3064 2000-03-17 Akim Demaille <akim@epita.fr>
3066 * src/reader.c (copy_definition): Use copy_string and
3067 copy_comment. Removed now unused `match', `ended',
3069 (copy_comment, copy_string): Moved, to be visible from
3072 2000-03-17 Akim Demaille <akim@epita.fr>
3074 * src/reader.c (copy_string): Declare `static inline'. No
3075 problems with inline, since it is checked by configure.
3076 (copy_comment): Likewise.
3078 2000-03-17 Akim Demaille <akim@epita.fr>
3080 * src/reader.c (packsymbols): Formatting changes.
3082 2000-03-17 Akim Demaille <akim@epita.fr>
3084 * src/reader.c (copy_comment): New function, factored out from:
3085 (copy_action): Use it. Removed now unused `match', `ended',
3087 (copy_guard): Likewise.
3089 2000-03-17 Akim Demaille <akim@epita.fr>
3091 * src/reader.c (copy_string): New function, factored out from:
3092 (copy_action): Use it.
3093 (copy_guard): Likewise.
3095 2000-03-17 Akim Demaille <akim@epita.fr>
3097 Change the handling of @s so that they behave exactly like $s.
3098 There is now a pseudo variable @$ (readble and writable), location
3099 of the lhs of the rule (by default ranging from the location of
3100 the first symbol of the rhs, to the location of the last symbol,
3101 or, if the rhs is empty, YYLLOC).
3103 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
3105 (yyparse): When providing a default semantic action, provide a
3106 default location action.
3107 (after the $): No longer change `*YYLSP', just stack YYLOC the
3108 same way you stack YYVAL.
3109 * src/reader.c (read_declarations): Use warns.
3110 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
3111 (copy_action, case '@'): Likewise.
3112 Use a standard error message, to save useless work from
3115 2000-03-17 Akim Demaille <akim@epita.fr>
3117 * src/bison.s1: Formatting and cosmetics changes.
3118 * src/reader.c: Likewise.
3119 Update the Copyright notice.
3121 2000-03-17 Akim Demaille <akim@epita.fr>
3123 * src/bison.s1 (#line): All set to `#line' only, since the
3124 Makefile now handles them.
3126 2000-03-16 Akim Demaille <akim@epita.fr>
3128 * src/output.c (output_rule_data): Output the documentation of
3130 (Copyright notice): Update.
3133 2000-03-16 Akim Demaille <akim@epita.fr>
3135 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
3136 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
3137 One `#if YYDEBUG' remains, since it uses variables which are
3138 defined only if `YYDEBUG != 0'.
3140 2000-03-16 Akim Demaille <akim@epita.fr>
3142 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
3143 and related variables so that the similarities are highlighted.
3145 2000-03-16 Akim Demaille <akim@epita.fr>
3147 * src/bison.s1: Properly indent CPP directives.
3149 2000-03-16 Akim Demaille <akim@epita.fr>
3151 * src/bison.s1: Properly indent the `alloca' CPP section.
3153 2000-03-16 Akim Demaille <akim@epita.fr>
3155 Do not hard code values of directories in `configure.in'.
3156 Update the `configure' tool chain.
3158 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
3160 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
3161 (AC_OUTPUT): Add m4/Makefile.
3162 Bump to bison 1.28a, 1.29 has never been released.
3163 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
3164 handled via src/Makefile.am.
3165 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
3166 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
3168 * Makefile.am (SUBDIRS): Add m4.
3169 (ACLOCAL_AM_FLAGS): New variable.
3170 (AUTOMAKE_OPTIONS): Add check-news.
3171 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
3172 the proper line number and file name.
3173 (DEFS): Propagate the location of bison library files and of the
3175 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
3177 * acinclude.m4: Remove, replaced by the directory m4.
3178 * m4/Makefile.am (EXTRA_DIST): New variable.
3179 * m4/gettext.m4: New file, from the fileutils.
3180 * m4/lcmessage.m4: Likewise
3181 * m4/progtest.m4: Likewise.
3182 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
3184 2000-03-10 Akim Demaille <akim@epita.fr>
3187 Formatting changes of various comments.
3188 Respect the GNU coding standards at various places.
3189 Don't use `_()' when no translation is needed.
3191 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3194 OS/2 honors TMPDIR environment variable.
3196 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3198 * doc/bison.texinfo: Tweaked spelling and grammar.
3200 Removed reference to price of printed copy.
3201 Mention BISON_SIMPLE and BISON_HAIRY.
3203 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3205 * configure.in, NEWS:
3206 Bison 1.29 released.
3208 1999-10-27 Jesse Thilo <jthilo@gnu.org>
3210 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3211 Added reference card.
3213 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3215 * po/ru.po: Added Russian translation.
3217 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3219 * configure.in: Added Russian translation.
3221 1999-07-06 Jesse Thilo <jthilo@gnu.org>
3223 * configure.in, NEWS, README:
3224 Released version 1.28.
3226 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3229 Squashed redefinition warning on some systems.
3231 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3232 Have configure build version string instead of relying on ANSI string
3235 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3237 * po/POTFILES.in: Got rid of version.c.
3239 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3241 * acconfig.h, configure.in:
3242 Have configure build version string instead of relying on ANSI string
3245 1999-06-08 Jesse Thilo <jthilo@gnu.org>
3248 Dropped mention of `+' for long-named options.
3250 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3252 * src/files.c: Added <unistd.h> for unlink().
3254 * src/Makefile.am, src/system.h:
3257 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3259 * README: Added a FAQ list.
3261 * configure.in, acconfig.h:
3264 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3266 * doc/FAQ, doc/Makefile.am:
3269 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3271 * src/alloc.h, src/symtab.h, src/version.c:
3272 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3274 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3276 * src/.cvsignore, src/Makefile.am:
3277 Reorganized: sources in `src', documentation in `doc'.
3279 * src/lex.c (literalchar):
3280 fixed the code for escaping double quotes (thanks
3283 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3285 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3286 Adjusted paths to reflect directory reorganization.
3288 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3290 * doc/.cvsignore, doc/Makefile.am:
3291 Reorganized: sources in `src', documentation in `doc'.
3293 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3296 Updated AC_INIT file to reflect directory reorganization.
3298 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3299 Reorganized: sources in `src', documentation in `doc'.
3301 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3304 Don't declare calloc() and realloc() if not necessary.
3306 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3308 * configure.in, acconfig.h, acinclude.m4:
3309 Don't declare calloc() and realloc() if not necessary.
3311 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3313 * po/.cvsignore: Added i18n support.
3315 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3317 * acconfig.h, configure.in, Makefile.am:
3320 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3322 * src/bison.s1: Fixed #line numbers.
3324 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3326 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3327 Added PO files from Translation Project.
3329 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3332 Added support for non-ANSI compilers (ansi2knr).
3334 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3336 * configure.in: Bumped version number to 1.27.
3339 Added `bison.simple' to list of files removed by `make distclean'.
3341 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3343 * src/files.c, src/files.h:
3344 Defined locations of parser files in config.h instead of Makefile.
3346 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3348 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3349 Defined locations of parser files in config.h instead of Makefile.
3351 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3354 Removed inappropriate use of $< macro.
3356 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3358 * po/Makefile.in.in, po/POTFILES.in:
3359 Add `po' directory skeleton.
3361 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3363 * README: Document help-bison list.
3365 * configure.in: Add check for mkstemp().
3367 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3369 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3370 Hush a few compiler warnings.
3373 Add tryclose(), which verifies that fclose was successful.
3374 Hush a couple of compiler warnings.
3376 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3378 * Makefile.am, OChangeLog:
3379 ChangeLog is now automatically generated. Include the old version as
3382 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3384 * 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:
3387 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3389 * doc/bison.texinfo: Fix formatting glitch.
3391 * doc/bison.texinfo: Update FSF address.
3393 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3395 * acconfig.h: Update FSF address.
3397 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3400 Don't define PACKAGE here, since config.h defines it.
3402 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3404 * src/reader.c: Update copyright date.
3407 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3408 favor of output directly to stderr (avoids buffer overruns).
3410 * src/reader.c: Some checks for premature EOF.
3412 * 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:
3413 Use prototypes if the compiler understands them.
3415 * src/files.c: Honor TMPDIR on Unix hosts.
3416 Use prototypes if the compiler understands them.
3419 Fix a couple of buffer overrun bugs.
3420 Use prototypes if the compiler understands them.
3422 * src/system.h: Include unistd.h and ctype.h.
3423 Use #ifdef instead of #if for NLS symbols.
3425 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3427 * doc/bison.texinfo:
3428 Delete comment "consider using @set for edition number, etc..." since
3429 we now are doing so.
3431 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3434 Use prototypes if the compiler understands them.
3436 * NEWS: Document 1.26 highlights.
3438 * Makefile.am: Require Automake 1.3 or later.
3441 Use prototypes if the compiler understands them.
3443 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3446 Use VERSION symbol from automake for version number.
3448 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3450 * acconfig.h, configure.in, version.cin:
3451 Use VERSION symbol from automake for version number.
3453 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3456 Distribute original version of simple parser (bison.s1), not built
3457 version (bison.simple).
3459 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3461 * doc/bison.texinfo: Add info dir entry.
3463 * doc/bison.texinfo:
3464 Let automake put version number into documentation.
3466 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3468 * src/bison.cld, src/build.com, src/vmshlp.mar:
3469 Add non-RCS files from /gd/gnu/bison.
3471 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3474 Document the BISON_HAIRY and BISON_SIMPLE variables.
3476 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3478 * src/version.c: Build version.c automatically.
3481 Fix token numbering (used to start at 258, not 257).
3483 * src/system.h: Include config.h.
3485 * src/getargs.c: Update bug report address.
3487 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3488 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3490 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3493 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3495 * configure.in, version.cin:
3496 Build version.c automatically.
3498 * AUTHORS: Add AUTHORS file.
3500 * README: Update bug report address.
3503 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3505 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3508 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3510 * doc/bison.texinfo: Clean up some formatting.
3512 1998-05-05 Richard Stallman <rms@gnu.org>
3514 * doc/bison.texinfo:
3515 Explain better why to make a pure parser.
3517 1998-01-05 Richard Stallman <rms@gnu.org>
3519 * src/files.c (openfiles):
3520 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3521 find a temporary directory, if possible. Do not unlink files while
3524 1997-08-25 Richard Stallman <rms@gnu.org>
3526 * src/reader.c (stack_offset;):
3527 Change some warni to warns.
3529 * src/lex.c (literalchar): Use warns, not warni.
3531 1997-06-28 Richard Stallman <rms@gnu.org>
3533 * src/bison.s1: Add a Bison version comment.
3535 * src/main.c (fatal, warn, berror):
3538 1997-06-28 Richard Stallman <rms@gnu.org>
3540 * Makefile.in (bison_version): New variable.
3541 (dist): Use that variable.
3542 (bison.s1): Substitute the Bison version into bison.simple.
3544 * bison.simple: Add a Bison version comment.
3546 1997-06-18 Richard Stallman <rms@gnu.org>
3548 * src/main.c (fatal, warn, berror):
3549 Make error messages standard.
3550 (toomany): Improve error message text.
3552 * 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:
3553 new.h renamed to alloc.h.
3555 1997-06-18 Richard Stallman <rms@gnu.org>
3557 * Makefile.in: new.h renamed to alloc.h.
3559 1997-05-24 Richard Stallman <rms@gnu.org>
3561 * src/lex.c (literalchar):
3562 Fix the code for escaping \, " and '.
3564 (lex): Avoid trouble when there are many chars
3565 to discard in a char literal with just several chars in it.
3567 1997-05-17 Richard Stallman <rms@gnu.org>
3570 Use malloc, if using alloca is troublesome.
3571 (YYSTACK_USE_ALLOCA): New flag macro.
3572 Define it for some systems and compilers.
3573 (YYSTACK_ALLOC): New macro.
3574 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3575 If it was malloc'd, free it.
3577 1997-05-17 Richard Stallman <rms@gnu.org>
3580 Use malloc, if using alloca is troublesome.
3581 (YYSTACK_USE_ALLOCA): New flag macro.
3582 Define it for some systems and compilers.
3583 (YYSTACK_ALLOC): New macro.
3584 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3585 If it was malloc'd, free it.
3587 1997-04-23 Richard Stallman <rms@gnu.org>
3590 (alloca) [__hpux]: Always define as __builtin_alloca.
3592 1997-04-23 Richard Stallman <rms@gnu.org>
3595 (alloca) [__hpux]: Always define as __builtin_alloca.
3597 1997-04-22 Richard Stallman <rms@gnu.org>
3600 [__hpux]: Include alloca.h (right for HPUX 10)
3601 instead of declaring alloca (right for HPUX 9).
3603 * src/bison.s1 (__yy_memcpy):
3604 Declare arg `count' as unsigned int.
3605 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3607 1997-04-22 Richard Stallman <rms@gnu.org>
3610 [__hpux]: Include alloca.h (right for HPUX 10)
3611 instead of declaring alloca (right for HPUX 9).
3613 * bison.simple (__yy_memcpy):
3614 Declare arg `count' as unsigned int.
3615 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3617 1997-01-03 Richard Stallman <rms@gnu.org>
3619 * src/allocate.c: [__STDC__ or _MSC_VER]:
3620 Declare calloc and realloc to return void *.
3622 1997-01-02 Richard Stallman <rms@gnu.org>
3625 [_MSC_VER]: Include stdlib.h and process.h.
3626 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3628 * src/main.c (main): Return FAILURE as a value.
3629 (printable_version): Declare arg as int, not char.
3631 1997-01-02 Richard Stallman <rms@gnu.org>
3633 * Makefile.in (dist):
3634 Explicitly check for symlinks, and copy them.
3636 1996-12-19 Richard Stallman <rms@gnu.org>
3639 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3641 1996-12-18 Paul Eggert <eggert@gnu.org>
3643 * src/bison.s1 (yyparse):
3644 If __GNUC__ and YYPARSE_PARAM are both defined,
3645 declare yyparse to have a void * argument.
3647 1996-12-18 Paul Eggert <eggert@gnu.org>
3649 * bison.simple (yyparse):
3650 If __GNUC__ and YYPARSE_PARAM are both defined,
3651 declare yyparse to have a void * argument.
3653 1996-12-17 Richard Stallman <rms@gnu.org>
3655 * src/reduce.c (nbits): Add some casts.
3657 1996-08-12 Richard Stallman <rms@gnu.org>
3659 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3661 1996-08-12 Richard Stallman <rms@gnu.org>
3663 * bison.simple: Test _MSDOS as well as _MSDOS_.
3665 1996-07-31 Richard Stallman <rms@gnu.org>
3668 [__sun && __i386]: Include alloca.h.
3670 1996-07-31 Richard Stallman <rms@gnu.org>
3673 [__sun && __i386]: Include alloca.h.
3675 1996-07-30 Richard Stallman <rms@gnu.org>
3677 * src/bison.s1: Comment change.
3679 * src/bison.s1: Test _MSDOS_, not MSDOS.
3681 1996-07-30 Richard Stallman <rms@gnu.org>
3683 * bison.simple: Comment change.
3685 * bison.simple: Test _MSDOS_, not MSDOS.
3687 1996-06-01 Richard Stallman <rms@gnu.org>
3689 * 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:
3690 Insert `_' macro around many string constants.
3693 Insert `_' macro around many string constants.
3695 (main): Call setlocale, bindtextdomain and textdomain.
3697 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3698 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3699 [ENABLE_NLS]: Include libintl.h.
3700 [ENABLE_NLS] (gettext): Define.
3701 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3702 (N_, PACKAGE, LOCALEDIR): New macros.
3704 1996-06-01 Richard Stallman <rms@gnu.org>
3706 * POTFILES.in: New file.
3708 * Makefile.in (allocate.o):
3709 Define target explicitly.
3711 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3712 (LDFLAGS): Set to @LDFLAGS@.
3713 (configure): Run autoconf only if preceding `cd' succeeds.
3714 (bison.s1): Redirect output to temporary file then move the
3715 temporary to the target, rather than redirecting directly to bison.s1.
3716 (clean): Remove config.status and config.log.
3717 (distclean): Don't remove config.status here.
3719 1996-05-12 Richard Stallman <rms@gnu.org>
3722 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3724 1996-05-12 Richard Stallman <rms@gnu.org>
3727 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3729 1996-05-11 Richard Stallman <rms@gnu.org>
3731 * src/bison.s1 (__yy_memcpy):
3732 Really reorder the args, as was supposedly done on Feb 14 1995.
3733 (yyparse): Calls changed accordingly.
3735 1996-05-11 Richard Stallman <rms@gnu.org>
3737 * Makefile.in (dist): Don't use $(srcdir).
3739 * bison.simple (__yy_memcpy):
3740 Really reorder the args, as was supposedly done on Feb 14 1995.
3741 (yyparse): Calls changed accordingly.
3743 1996-01-27 Richard Stallman <rms@gnu.org>
3745 * src/output.c (output_rule_data):
3746 Test YYERROR_VERBOSE in the conditional
3747 around the definition of ttyname.
3749 1995-12-29 Richard Stallman <rms@gnu.org>
3752 Fix line numbers in #line commands.
3754 1995-12-29 Richard Stallman <rms@gnu.org>
3757 Fix line numbers in #line commands.
3759 1995-12-27 Richard Stallman <rms@gnu.org>
3761 * src/bison.s1 (YYPARSE_PARAM_DECL):
3762 In C++, make it always null.
3763 (YYPARSE_PARAM_ARG): New macro.
3764 (yyparse): Use YYPARSE_PARAM_ARG.
3766 1995-12-27 Richard Stallman <rms@gnu.org>
3768 * bison.simple (YYPARSE_PARAM_DECL):
3769 In C++, make it always null.
3770 (YYPARSE_PARAM_ARG): New macro.
3771 (yyparse): Use YYPARSE_PARAM_ARG.
3773 1995-11-29 Richard Stallman <rms@gnu.org>
3775 * doc/bison.texinfo:
3776 Describe literal string tokens, %raw, %no_lines, %token_table.
3778 1995-11-29 Daniel Hagerty <hag@gnu.org>
3780 * doc/bison.texinfo: Fixed update date
3782 1995-10-16 Richard Stallman <rms@gnu.org>
3784 * src/version.c: Version 1.25.
3786 1995-10-16 Richard Stallman <rms@gnu.org>
3788 * NEWS: *** empty log message ***
3790 1995-10-16 Richard Stallman <rms@gnu.org>
3792 * doc/bison.1, doc/bison.rnh:
3795 1995-10-15 Richard Stallman <rms@gnu.org>
3797 * src/vmsgetargs.c, src/getargs.c:
3798 Added -n, -k, and -raw switches.
3799 (noparserflag, toknumflag, rawtoknumflag): New variables.
3801 * src/symtab.h (SALIAS):
3802 New #define for adding aliases to %token.
3803 (struct bucket): Added `alias' field.
3805 * src/reduce.c (reduce_grammar):
3806 Revise error message.
3807 (print_notices): Remove final `.' from error message.
3809 * src/reader.c (reader_output_yylsp):
3811 (readgram): Use `#if 0' around code that accepted %command
3812 inside grammar rules: The documentation doesn't allow it,
3813 and it will fail since the %command processors scan for the next %.
3814 (parse_token_decl): Extended the %token
3815 declaration to allow a multi-character symbol as an alias.
3816 (parse_thong_decl): New function.
3817 (read_declarations): Added %thong declarations.
3818 (read_declarations): Handle NOOP to deal with allowing
3819 % declarations as another means to specify the flags.
3820 (readgram): Allow %prec prior to semantics embedded in a rule.
3821 (skip_to_char, read_declarations, copy_definition)
3822 (parse_token_decl, parse_start_decl, parse_type_decl)
3823 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3824 (get_type_name, copy_guard, copy_action, readgram)
3825 (get_type, packsymbols): Revised most error messages.
3826 Changed `fatal' to `warnxxx' to avoid aborting for error.
3827 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3828 (read_declarations): Improve the error message for
3829 an invalid character. Do not abort.
3830 (read_declarations, copy_guard, copy_action): Use
3831 printable_version to avoid unprintable characters in printed output.
3832 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3833 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3834 Allow the type of a non-terminal can be given
3835 more than once, as long as all specifications give the same type.
3838 (output_headers, output_trailers, output, output_gram)
3839 (output_rule_data): Implement noparserflag variable.
3840 Implement toknumflag variable.
3841 (output): Call reader_output_yylsp to output LTYPESTR.
3843 * src/main.c (main):
3844 If reader sees an error, don't process the grammar.
3845 (fatals): Updated to not use VARARGS1.
3846 (printable_version, int_to_string, warn, warni, warns, warnss)
3847 (warnsss): New error reporting functions. Avoid abort for error.
3850 Added THONG and NOOP for alias processing.
3851 Added SETOPT for the new code that allows setting options with %flags.
3854 Include getopt.h. Add some extern decls.
3855 (safegetc): New function to deal with EOF gracefully.
3856 (literalchar); new function to deal with reading \ escapes.
3857 (lex): Use literalchar.
3858 (lex): Implemented "..." tokens.
3859 (literalchar, lex, parse_percent_token): Made tokenbuffer
3860 always contain the token. This includes growing the token
3861 buffer while reading an integer.
3862 (parse_percent_token): Replaced if-else statement with percent_table.
3863 (parse_percent_token): Added % declarations as another
3864 way to specify the flags -n, -l, and -r. Also added hooks for
3865 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3866 major changes to files.c.
3867 (lex) Retain in the incoming stream a character following
3869 (skip_white_space, lex): Revised most error messages
3870 and changed fatal to warn to avoid aborting.
3871 (percent_table): Added %thong declarations.
3873 * src/gram.h: Comment changes.
3875 * src/files.c (openfiles, open_extra_files, done):
3877 and actfile file. Handle noparserflag. Both for -n switch.
3879 * src/conflicts.c (resolve_sr_conflict):
3880 Remove use of alloca.
3882 1995-06-01 Jim Meyering <meyering@gnu.org>
3884 * doc/bison.texinfo: *** empty log message ***
3886 1995-05-06 Richard Stallman <rms@gnu.org>
3888 * src/bison.s1: Comment change.
3890 1995-05-06 Richard Stallman <rms@gnu.org>
3892 * bison.simple: Comment change.
3894 1995-05-03 Richard Stallman <rms@gnu.org>
3896 * src/version.c: Version now 1.24.
3898 * src/bison.s1: Change distribution terms.
3900 * src/version.c: Version now 1.23.
3902 1995-05-03 Richard Stallman <rms@gnu.org>
3904 * doc/bison.texinfo:
3905 Rewrite "Conditions for Using Bison".
3906 Update version to 1.24.
3908 1995-05-03 Richard Stallman <rms@gnu.org>
3910 * bison.simple: Change distribution terms.
3912 1995-02-23 Richard Stallman <rms@gnu.org>
3914 * src/files.c: Test __VMS_POSIX as well as VMS.
3916 1995-02-14 Jim Meyering <meyering@gnu.org>
3918 * src/bison.s1 (__yy_memcpy):
3919 Renamed from __yy_bcopy to avoid
3920 confusion. Reverse FROM and TO arguments to be consistent with
3923 1995-02-14 Jim Meyering <meyering@gnu.org>
3925 * bison.simple (__yy_memcpy):
3926 Renamed from __yy_bcopy to avoid
3927 confusion. Reverse FROM and TO arguments to be consistent with
3930 1994-11-10 David J. MacKenzie <djm@gnu.org>
3936 * Makefile.in (DISTFILES): Include NEWS.
3938 * Makefile.in (DISTFILES):
3939 Include install-sh, not install.sh.
3941 * configure.in: Update to Autoconf v2 macro names.
3943 1994-10-05 David J. MacKenzie <djm@gnu.org>
3945 * Makefile.in: fix typo
3947 * Makefile.in (prefix, exec_prefix):
3948 Let configure set them.
3950 1994-09-28 David J. MacKenzie <djm@gnu.org>
3952 * Makefile.in: Set datadir to $(prefix)/share.
3954 1994-09-15 Richard Stallman <rms@gnu.org>
3957 Update copyright notice and GPL version.
3959 1994-09-15 Richard Stallman <rms@gnu.org>
3962 Update copyright notice and GPL version.
3964 1994-07-12 Richard Stallman <rms@gnu.org>
3966 * src/reduce.c, src/reader.c:
3969 1994-05-05 David J. MacKenzie <djm@gnu.org>
3971 * Makefile.in: entered into RCS
3973 1994-03-26 Richard Stallman <rms@gnu.org>
3975 * src/bison.s1: entered into RCS
3977 1994-03-26 Richard Stallman <rms@gnu.org>
3979 * bison.simple: entered into RCS
3981 1994-03-25 Richard Stallman <rms@gnu.org>
3983 * src/main.c: entered into RCS
3985 1994-03-24 Richard Stallman <rms@gnu.org>
3987 * src/conflicts.c: entered into RCS
3989 1994-01-02 Richard Stallman <rms@gnu.org>
3991 * Makefile.in: *** empty log message ***
3993 1993-11-21 Richard Stallman <rms@gnu.org>
3995 * src/bison.s1: *** empty log message ***
3997 1993-11-21 Richard Stallman <rms@gnu.org>
3999 * doc/bison.texinfo: entered into RCS
4001 * doc/bison.texinfo: *** empty log message ***
4003 1993-11-21 Richard Stallman <rms@gnu.org>
4005 * bison.simple: *** empty log message ***
4007 1993-10-25 David J. MacKenzie <djm@gnu.org>
4009 * doc/bison.texinfo: *** empty log message ***
4011 1993-10-19 Richard Stallman <rms@gnu.org>
4013 * src/bison.s1: *** empty log message ***
4015 1993-10-19 Richard Stallman <rms@gnu.org>
4017 * bison.simple: *** empty log message ***
4019 1993-10-14 Richard Stallman <rms@gnu.org>
4021 * src/bison.s1: *** empty log message ***
4023 1993-10-14 Richard Stallman <rms@gnu.org>
4025 * bison.simple: *** empty log message ***
4027 1993-09-14 David J. MacKenzie <djm@gnu.org>
4029 * doc/bison.texinfo: *** empty log message ***
4031 1993-09-13 Noah Friedman <friedman@gnu.org>
4033 * Makefile.in: *** empty log message ***
4035 1993-09-10 Richard Stallman <rms@gnu.org>
4037 * src/conflicts.c: *** empty log message ***
4039 * src/system.h: entered into RCS
4041 1993-09-10 Richard Stallman <rms@gnu.org>
4043 * doc/bison.1: entered into RCS
4045 1993-09-06 Noah Friedman <friedman@gnu.org>
4047 * src/version.c: entered into RCS
4049 1993-09-06 Noah Friedman <friedman@gnu.org>
4051 * Makefile.in: *** empty log message ***
4053 1993-07-30 David J. MacKenzie <djm@gnu.org>
4055 * Makefile.in: *** empty log message ***
4057 1993-07-24 Richard Stallman <rms@gnu.org>
4059 * src/bison.s1: *** empty log message ***
4061 1993-07-24 Richard Stallman <rms@gnu.org>
4063 * bison.simple: *** empty log message ***
4065 1993-07-08 David J. MacKenzie <djm@gnu.org>
4067 * Makefile.in: *** empty log message ***
4069 1993-07-04 Richard Stallman <rms@gnu.org>
4071 * src/bison.s1: *** empty log message ***
4073 1993-07-04 Richard Stallman <rms@gnu.org>
4075 * bison.simple: *** empty log message ***
4077 1993-06-26 David J. MacKenzie <djm@gnu.org>
4079 * src/getargs.c: entered into RCS
4081 1993-06-26 David J. MacKenzie <djm@gnu.org>
4083 * doc/bison.texinfo: *** empty log message ***
4085 * doc/bison.1: New file.
4087 1993-06-25 Richard Stallman <rms@gnu.org>
4089 * src/getargs.c: New file.
4091 1993-06-16 Richard Stallman <rms@gnu.org>
4093 * src/bison.s1: *** empty log message ***
4095 1993-06-16 Richard Stallman <rms@gnu.org>
4097 * bison.simple: *** empty log message ***
4099 1993-06-03 Richard Stallman <rms@gnu.org>
4101 * src/bison.s1: New file.
4103 1993-06-03 Richard Stallman <rms@gnu.org>
4105 * doc/bison.texinfo: *** empty log message ***
4107 1993-06-03 Richard Stallman <rms@gnu.org>
4109 * bison.simple: New file.
4111 1993-05-19 Richard Stallman <rms@gnu.org>
4113 * doc/bison.texinfo: New file.
4115 1993-05-07 Noah Friedman <friedman@gnu.org>
4117 * Makefile.in: *** empty log message ***
4119 1993-04-28 Noah Friedman <friedman@gnu.org>
4121 * src/reader.c: *** empty log message ***
4123 1993-04-23 Noah Friedman <friedman@gnu.org>
4125 * src/alloc.h: entered into RCS
4127 1993-04-20 David J. MacKenzie <djm@gnu.org>
4129 * src/version.c: *** empty log message ***
4131 * src/files.c, src/allocate.c:
4134 * src/reader.c: *** empty log message ***
4136 * src/lex.c: entered into RCS
4138 * src/conflicts.c: New file.
4140 * src/symtab.c: entered into RCS
4142 * src/alloc.h: New file.
4144 * src/LR0.c: entered into RCS
4146 1993-04-18 Noah Friedman <friedman@gnu.org>
4148 * src/reader.c: New file.
4150 * src/version.c: *** empty log message ***
4152 1993-04-18 Noah Friedman <friedman@gnu.org>
4154 * Makefile.in: *** empty log message ***
4156 1993-04-17 Noah Friedman <friedman@gnu.org>
4158 * Makefile.in: *** empty log message ***
4160 1993-04-15 Richard Stallman <rms@gnu.org>
4162 * src/main.c, src/files.c:
4165 1993-04-15 Noah Friedman <friedman@gnu.org>
4167 * configure.in: entered into RCS
4169 * configure.in: *** empty log message ***
4171 * configure.in: New file.
4173 1993-04-14 Richard Stallman <rms@gnu.org>
4175 * Makefile.in: New file.
4177 1993-04-13 Richard Stallman <rms@gnu.org>
4179 * src/version.c: New file.
4181 1993-03-25 Richard Stallman <rms@gnu.org>
4183 * src/output.c: entered into RCS
4185 1992-09-25 Richard Stallman <rms@gnu.org>
4187 * configure.bat: entered into RCS
4189 1992-06-22 Richard Stallman <rms@gnu.org>
4191 * src/vmsgetargs.c: entered into RCS
4193 1992-06-22 Richard Stallman <rms@gnu.org>
4195 * doc/bison.rnh: entered into RCS
4197 1992-04-20 David J. MacKenzie <djm@gnu.org>
4199 * README: entered into RCS
4201 1992-01-22 Richard Stallman <rms@gnu.org>
4203 * src/machine.h: entered into RCS
4205 1991-12-21 Richard Stallman <rms@gnu.org>
4207 * src/lalr.c, src/closure.c:
4210 1991-12-20 Richard Stallman <rms@gnu.org>
4212 * src/state.h: entered into RCS
4214 1991-12-18 Richard Stallman <rms@gnu.org>
4216 * src/print.c, src/nullable.c, src/derives.c:
4219 1991-11-03 David J. MacKenzie <djm@gnu.org>
4221 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4224 1988-09-09 Richard Stallman <rms@gnu.org>
4226 * src/bison.hairy: entered into RCS
4228 1987-12-16 Richard Stallman <rms@gnu.org>
4230 * REFERENCES: entered into RCS