1 2001-12-05 Akim Demaille <akim@epita.fr>
5 2001-12-05 Akim Demaille <akim@epita.fr>
7 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
9 Reported by Peter Hámorský.
11 2001-12-05 Akim Demaille <akim@epita.fr>
13 * src/conflicts.c (err_table): Remove.
14 (resolve_sr_conflict): Adjust.
15 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
17 (state_t.reductions, state_t.shifts): this.
19 2001-12-05 Akim Demaille <akim@epita.fr>
21 * src/reduce.c (reduce_grammar_tables): No longer disable the
22 removal of useless rules via CPP but via `if (0)', so that the
23 compiler still check the code is valid.
24 For instance, it should have noticed `rline' no longer exists: use
25 the `line' member of rule_t.
26 * src/gram.c (dummy, rline): Remove, unused.
28 2001-12-05 Akim Demaille <akim@epita.fr>
30 * src/output.c (pack_vector): Use assert, not berror.
31 * src/main.c (berror): Remove, unused.
33 2001-12-05 Akim Demaille <akim@epita.fr>
35 New experimental feature: if --verbose --trace output all the
36 items of a state, not only its kernel.
38 * src/print.c (print_core): If `trace_flag', then invoke closure
39 before outputting the items of the state (print_core is no longer
41 (print_results): Invoke new_closure/free_closure if needed.
43 2001-12-05 Akim Demaille <akim@epita.fr>
45 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
46 * src/closure.c, src/closure.h (itemsetsize): Rename as...
47 (nitemset): for consistency with the rest of the project.
49 2001-12-05 Akim Demaille <akim@epita.fr>
51 * src/closure.c (print_closure): Improve.
52 (closure): Use it for printing input and output.
54 2001-12-05 Akim Demaille <akim@epita.fr>
56 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
57 indexed by nonterminals.
59 2001-12-05 Akim Demaille <akim@epita.fr>
61 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
63 * src/warshall.h: Remove accidental duplication of the content.
65 2001-12-05 Akim Demaille <akim@epita.fr>
67 * src/closure.c (set_fderives): De-obfuscate.
69 2001-12-05 Akim Demaille <akim@epita.fr>
71 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
73 2001-12-05 Akim Demaille <akim@epita.fr>
75 * src/closure.c (set_firsts): De-obfuscate.
77 2001-12-05 Akim Demaille <akim@epita.fr>
79 * src/output.c (action_row): De-obfuscate
80 using the good o' techniques: arrays not pointers, variable
81 locality, BITISSET, RESETBIT etc.
83 2001-12-05 Akim Demaille <akim@epita.fr>
85 Pessimize the code to simplify it: from now on, all the states
86 have a valid SHIFTS, which NSHIFTS is possibly 0.
88 * src/LR0.c (shifts_new): Be global and move to..
89 * src/state.c, src/state.h: here.
90 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
91 * src/print_graph: Adjust.
93 2001-12-05 Akim Demaille <akim@epita.fr>
95 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
96 * src/conflicts.c: Use it.
97 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
98 incorrectly ``simplified''.
100 2001-12-05 Akim Demaille <akim@epita.fr>
102 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
103 using the good o' techniques: arrays not pointers, variable
104 locality, BITISSET, RESETBIT etc.
106 2001-12-05 Akim Demaille <akim@epita.fr>
108 * src/state.h (SHIFT_SYMBOL): New.
109 * src/conflicts.c: Use it to deobfuscate.
111 2001-12-05 Akim Demaille <akim@epita.fr>
113 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
114 (print_reductions): De-obfuscate using the good o' techniques:
115 arrays not pointers, variable locality, BITISSET.
117 2001-12-05 Akim Demaille <akim@epita.fr>
119 * src/conflicts.c (print_reductions): Arrays, not pointers.
122 2001-12-05 Akim Demaille <akim@epita.fr>
124 * src/conflicts.c (print_reductions): Pessimize, but clarify.
126 2001-12-05 Akim Demaille <akim@epita.fr>
128 * src/conflicts.c (print_reductions): Improve variable locality.
130 2001-12-05 Akim Demaille <akim@epita.fr>
132 * src/conflicts.c (print_reductions): Pessimize, but clarify.
134 2001-12-05 Akim Demaille <akim@epita.fr>
136 * src/conflicts.c (print_reductions): Improve variable locality.
138 2001-12-05 Akim Demaille <akim@epita.fr>
140 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
141 * src/lalr.c: Use them.
143 2001-12-05 Akim Demaille <akim@epita.fr>
145 * src/LR0.c (augment_automaton): Formatting changes.
146 Better variable locality.
148 2001-12-05 Akim Demaille <akim@epita.fr>
150 * src/lalr.c (matrix_print): New.
152 Use arrays instead of pointers.
154 2001-12-05 Akim Demaille <akim@epita.fr>
156 * src/lalr.c (maxrhs): Move to...
157 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
158 * src/lalr.c (build_relations): Adjust.
160 2001-12-05 Akim Demaille <akim@epita.fr>
162 * src/lalr.c (transpose): Free the memory allocated to the
163 argument, as it is replaced by the results by the unique caller.
164 (build_relations): Merely invoke transpose: it handles the memory
166 Improve variable locality.
167 Avoid variables used as mere abbreviations.
168 (compute_lookaheads): Use arrays instead of pointers.
170 2001-12-05 Akim Demaille <akim@epita.fr>
172 * src/lalr.c (initialize_F): Improve variable locality.
173 Avoid variables used as mere abbreviations.
175 2001-12-05 Akim Demaille <akim@epita.fr>
177 * src/derives.c (print_derives): Display the ruleno.
178 * src/lalr.c (initialize_F, transpose): Better variable locality
179 to improve readability.
180 Avoid variables used as mere abbreviations.
182 2001-12-05 Akim Demaille <akim@epita.fr>
184 * src/lalr.c (traverse): Use arrays instead of pointers.
186 2001-12-05 Akim Demaille <akim@epita.fr>
188 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
189 the handling of squeue.
190 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
192 2001-12-05 Akim Demaille <akim@epita.fr>
194 Because useless nonterminals are now kept alive (instead of being
195 `destroyed'), we now sometimes examine them, and store information
196 related to them. Hence we need to know their number, and adjust
199 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
201 * src/LR0.c (allocate_itemsets): The memory allocated to
202 `symbol_count' was used for two different purpose: once to count
203 the number of occurrences of each symbol, and later reassigned to
204 `shift_symbol', containing the symbol that can be shifted from a
206 Deobfuscate, i.e., allocate, use and free `symbol_count' here
208 (new_itemsets): Allocate `shift_symbol' here.
209 (allocate_itemsets): symbol_count includes useless nonterminals.
211 (free_storage): Use `free', not `XFREE', for pointers that cannot
214 2001-12-05 Akim Demaille <akim@epita.fr>
216 * src/nullable.c (set_nullable): Deobfuscate the handling of
218 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
220 2001-12-05 Akim Demaille <akim@epita.fr>
222 * src/gram.c, src/gram.h (ritem_print): New.
223 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
224 (This useless function was defined only to work around VMS linkers
225 that can't handle compilation units with variables only).
226 * src/reduce.c (dump_grammar): Use it to trace the construction of
229 2001-12-04 Paul Eggert <eggert@twinsun.com>
231 * src/bison.simple (union yyalloc): Change member names
232 to be the same as the stack names.
233 (yyparse): yyptr is now union yyalloc *, not char *.
234 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
235 and may generate better code on some machines.
236 (yystpcpy): Use prototype if __STDC__ is defined, not just
237 if __cplusplus is defined.
239 2001-11-30 Akim Demaille <akim@epita.fr>
241 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
242 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
243 Gettext doesn't compile cleanly, and dies with -Werror.
244 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
245 Include WARNING_CFLAGS here.
246 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
247 before being defined.
249 2001-11-30 Paul Eggert <eggert@twinsun.com>
251 * lib/quotearg.h (quotearg_n, quotearg_n_style):
252 First arg is int, not unsigned.
253 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
254 (SIZE_MAX, UINT_MAX): New macros.
255 (quotearg_n_options): Abort if N is negative.
256 Avoid overflow check on hosts where size_t is 64 bits and int
257 is 32 bits, as overflow is impossible there.
258 Fix off-by-one typo that caused unnecessary reallocation.
260 2001-11-30 Paul Eggert <eggert@twinsun.com>
262 Name space cleanup in generated parser.
264 * doc/bison.texinfo (Bison Parser): Discuss system headers
265 and their effect on the user name space.
268 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
269 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
270 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
272 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
273 on user names when possible.
275 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
276 Simplify test for whather <alloca.h> exists.
278 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
280 (<stdio.h>): Include if YYDEBUG.
282 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
283 ! defined (yyoverflow) && ! defined (yymemcpy).
285 (yymemcpy, yyparse): Rename local variables as needed so that
286 they all begin with 'yy'.
288 (yystrlen, yystpcpy): New functions.
290 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
293 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
294 instead of relying on string.h functions. Use YYSTACK_ALLOC
295 and YYSTACK_FREE instead of malloc and free.
297 2001-11-30 Akim Demaille <akim@epita.fr>
299 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
300 if body instead of `;' to pacify GCC's warnings.
302 2001-11-30 Akim Demaille <akim@epita.fr>
304 Instead of mapping the LHS of unused rules to -1, keep the LHS
305 valid, but flag the rules as invalid.
307 * src/gram.h (rule_t): `useful' is a new member.
308 * src/print.c (print_grammar): Adjust.
309 * src/derives.c (set_derives): Likewise.
310 * src/reader.c (packgram, reduce_output): Likewise.
311 * src/reduce.c (reduce_grammar_tables): Likewise.
312 * tests/reduce.at (Underivable Rules, Useless Rules): New.
314 2001-11-30 Akim Demaille <akim@epita.fr>
316 * src/reduce.c (reduce_output): Formatting changes.
317 * src/print.c (print_results, print_grammar): Likewise.
318 * tests/regression.at (Rule Line Numbers)
319 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
321 2001-11-30 Akim Demaille <akim@epita.fr>
323 * src/reduce.c (nonterminals_reduce): Instead of throwing away
324 useless nonterminals, move them at the end of the symbol arrays.
325 (reduce_output): Adjust.
326 * tests/reduce.at (Useless Nonterminals): Adjust.
328 2001-11-30 Akim Demaille <akim@epita.fr>
330 * src/reduce.c: Various comment/formatting changes.
331 (nonterminals_reduce): New, extracted from...
332 (reduce_grammar_tables): here.
333 (reduce_grammar): Call nonterminals_reduce.
335 2001-11-29 Paul Eggert <eggert@twinsun.com>
337 * src/bison.simple (YYSTACK_REALLOC): Remove.
338 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
339 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
341 (union yyalloc): New type.
342 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
343 an arbitrary restriction on hosts where size_t is wider than int.
345 (yyparse): Don't dump core if alloca or malloc fails; instead, report
346 a parser stack overflow. Allocate just one block of memory for all
347 three stacks, instead of allocating three blocks; this typically is
348 faster and reduces fragmentation.
350 Do not limit the number of items in the stack to a value that fits
351 in 'int', as this is an arbitrary limit on hosts with 64-bit
352 size_t and 32-bit int.
354 2001-11-28 Akim Demaille <akim@epita.fr>
356 * src/LR0.c (shifts_new): New.
357 (save_shifts, insert_start_shift, augment_automaton): Use it.
359 2001-11-28 Akim Demaille <akim@epita.fr>
361 * src/closure.c (closure): `b' and `ruleno' denote the same value:
364 2001-11-28 Akim Demaille <akim@epita.fr>
366 * src/closure.c (closure): Instead of looping over word in array
367 then bits in words, loop over bits in array.
369 2001-11-28 Akim Demaille <akim@epita.fr>
371 * src/closure.c (closure): No longer optimize the special case
372 where all the bits of `ruleset[r]' are set to 0, to make the code
375 2001-11-28 Akim Demaille <akim@epita.fr>
377 * src/closure.c (closure): `r' and `c' are new variables, used to
378 de-obfuscate accesses to RULESET and CORE.
380 2001-11-28 Akim Demaille <akim@epita.fr>
382 * src/reduce.c (reduce_print): Use ngettext.
383 (dump_grammar): Improve the trace accuracy.
385 2001-11-28 Akim Demaille <akim@epita.fr>
387 * src/reduce.c (dump_grammar): Don't translate trace messages.
389 2001-11-28 Akim Demaille <akim@epita.fr>
391 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
392 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
393 as all tags are free'ed afterwards.
396 2001-11-27 Akim Demaille <akim@epita.fr>
398 * src/system.h: Use intl/libgettext.h.
399 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
401 2001-11-27 Paul Eggert <eggert@twinsun.com>
403 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
404 use alloca when we didn't want to, and vice versa.
406 2001-11-27 Akim Demaille <akim@epita.fr>
408 * tests/torture.at (Exploding the Stack Size with Malloc):
409 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
411 2001-11-27 Akim Demaille <akim@epita.fr>
413 * src/files.c: Include error.h.
416 2001-11-26 Akim Demaille <akim@epita.fr>
420 2001-11-26 Akim Demaille <akim@epita.fr>
422 * src/reader.c (readgram): Make sure rules for mid-rule actions
423 have a lineno equal to that of their host rule.
424 Reported by Hans Aberg.
425 * tests/regression.at (Rule Line Numbers): New.
427 2001-11-26 Akim Demaille <akim@epita.fr>
429 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
431 Reported by Hans Aberg.
433 2001-11-26 Akim Demaille <akim@epita.fr>
435 * src/complain.c, src/complain.h (error): Remove, provided by
438 2001-11-26 Akim Demaille <akim@epita.fr>
440 * src/reader.c (read_declarations): Don't abort on tok_illegal,
441 issue an error message.
442 * tests/regression.at (Invalid %directive): New.
443 Reported by Hans Aberg.
445 2001-11-26 Akim Demaille <akim@epita.fr>
447 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
448 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
450 2001-11-26 Akim Demaille <akim@epita.fr>
452 * src/conflicts.c (conflicts_print): Don't complain at all when
453 there are no reduce/reduce conflicts, and as many shift/reduce
454 conflicts as expected.
455 * tests/regression.at (%expect right): Adjust.
457 2001-11-23 Akim Demaille <akim@epita.fr>
459 * lib/alloca.c: Update, from fileutils.
461 2001-11-23 Akim Demaille <akim@epita.fr>
463 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
465 2001-11-23 Akim Demaille <akim@epita.fr>
467 * src/system.h: Include alloca.h.
468 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
470 2001-11-23 Akim Demaille <akim@epita.fr>
472 * src/print_graph.c (print_actions): Remove `rule', unused.
473 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
474 pacify GCC's signed < unsigned warnings.
475 * src/closure.c (itemsetsize): Likewise.
476 * src/reader.c (symbol_list_new): Static.
478 2001-11-23 Akim Demaille <akim@epita.fr>
480 Attaching lineno to buckets is stupid, since only one copy of each
481 symbol is kept, only the line of the first occurrence is kept too.
483 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
484 * src/reader.c (rline_allocated): Remove, unused.
485 (symbol_list): Have a `line' member.
486 (symbol_list_new): New.
488 * src/print.c (print_grammar): Output the rule line numbers.
489 * tests/regression.at (Solved SR Conflicts)
490 (Unresolved SR Conflicts): Adjust.
491 Reported by Hans Aberg.
493 2001-11-20 Akim Demaille <akim@epita.fr>
497 2001-11-20 Akim Demaille <akim@epita.fr>
500 * configure.in (ALL_LINGUAS): Adjust.
501 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
502 longer contains strings to translate.
504 2001-11-19 Akim Demaille <akim@epita.fr>
506 * src/conflicts.c (conflicts_print): Add a missing \n.
508 2001-11-19 Akim Demaille <akim@epita.fr>
510 * src/nullable.c (nullable_print): New.
511 (set_nullable): Call it when tracing.
512 Better locality of variables.
514 2001-11-19 Akim Demaille <akim@epita.fr>
516 * src/print.c (print_actions): Better locality of variables.
518 2001-11-19 Akim Demaille <akim@epita.fr>
520 * src/derives.c (print_derives): Fix and enrich.
521 * src/closure.c (print_fderives): Likewise.
523 2001-11-19 Akim Demaille <akim@epita.fr>
525 * src/closure.c (itemsetend): Remove, replaced with...
528 2001-11-19 Akim Demaille <akim@epita.fr>
530 * src/LR0.c (kernel_end): Remove, replaced with...
533 2001-11-19 Akim Demaille <akim@epita.fr>
535 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
538 2001-11-19 Akim Demaille <akim@epita.fr>
540 * src/closure.c (closure): Use arrays instead of pointers to clarify.
542 2001-11-19 Akim Demaille <akim@epita.fr>
544 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
546 * src/LR0.c: Likewise.
547 (allocate_itemsets): Use arrays instead of pointers to clarify.
549 2001-11-19 Akim Demaille <akim@epita.fr>
551 * src/getargs.c (statistics_flag): Replace with...
553 (longopts): Accept --trace instead of --statistics.
554 * src/getargs.h: Adjust.
555 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
556 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
558 2001-11-19 Akim Demaille <akim@epita.fr>
560 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
561 pointers to clarify the code.
562 (save_reductions, save_shifts): Factor common parts of alternatives.
564 2001-11-19 Akim Demaille <akim@epita.fr>
566 * src/LR0.c (new_state, get_state): Complete TRACE code.
567 * src/closure.c: Include `reader.h' to get `tags', needed by the
569 Rename the conditional DEBUG as TRACE.
570 Output consistently TRACEs to stderr, not stdout.
571 * src/derives.c: Likewise.
572 * src/reduce.c: (inaccessable_symbols): Using if is better style
574 Use `#if TRACE' instead of `#if 0' for tracing code.
576 2001-11-19 Akim Demaille <akim@epita.fr>
578 * src/system.h (LIST_FREE, shortcpy): New.
579 * src/LR0.c: Use them.
580 * src/output.c (free_itemsets, free_reductions, free_shifts):
581 Remove, replaced by LIST_FREE.
583 2001-11-19 Akim Demaille <akim@epita.fr>
585 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
586 (REDUCTIONS_ALLOC): New.
587 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
590 2001-11-19 Akim Demaille <akim@epita.fr>
592 * src/LR0.c (new_state): Complete trace code.
593 * src/nullable.c (set_nullable): Don't translate traces.
595 2001-11-19 Akim Demaille <akim@epita.fr>
597 * src/print_graph.c (print_core): Better locality of variables.
598 * src/print.c (print_core): Likewise.
600 2001-11-19 Akim Demaille <akim@epita.fr>
602 * src/vcg.c: You do the output, so you are responsible of the
603 handling of VCG syntax, in particular: use quotearg.
604 * src/print_graph.c: Don't.
605 (print_actions): Don't output the actions as part of the nodes,
606 since that's the job of the edges.
607 (print_state): Don't output by hand: fill the node description,
608 and ask for its output.
610 2001-11-19 Akim Demaille <akim@epita.fr>
612 * src/bison.simple (yyparse): When verbosely reporting an error,
613 no longer put additional quotes around token names.
614 * tests/calc.at: Adjust.
616 2001-11-19 Akim Demaille <akim@epita.fr>
618 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
619 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
620 * src/output.c: Adjust.
622 2001-11-19 Akim Demaille <akim@epita.fr>
624 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
626 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
628 2001-11-19 Akim Demaille <akim@epita.fr>
630 * src/gram.h (rule_t): New.
632 (rrhs, rlhs): Remove, part of state_t.
633 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
634 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
635 * src/reader.c, src/reduce.c: Adjust.
637 2001-11-19 Akim Demaille <akim@epita.fr>
639 * src/reader.c (symbols_output): New, extracted from...
643 2001-11-19 Akim Demaille <akim@epita.fr>
645 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
646 (maxrhs): this new function.
648 2001-11-19 Akim Demaille <akim@epita.fr>
650 * src/lalr.c (F): New macro to access the variable F.
653 2001-11-19 Akim Demaille <akim@epita.fr>
655 * src/lalr.h (LA): New macro to access the variable LA.
656 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
657 * src/lalr.c: Adjust.
659 2001-11-19 Akim Demaille <akim@epita.fr>
661 * src/lalr.c (initialize_LA): Only initialize LA. Let...
662 (set_state_table): handle the `lookaheads' members.
664 2001-11-19 Akim Demaille <akim@epita.fr>
666 * src/lalr.h (lookaheads): Removed array, whose contents is now
668 (state_t): this structure.
669 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
672 2001-11-19 Akim Demaille <akim@epita.fr>
674 * src/lalr.h (consistent): Removed array, whose contents is now
676 (state_t): this structure.
677 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
680 2001-11-19 Akim Demaille <akim@epita.fr>
682 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
683 contents are now members of...
684 (state_t): this structure.
685 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
688 2001-11-19 Akim Demaille <akim@epita.fr>
690 * src/lalr.h (state_t): New.
691 (state_table): Be a state_t * instead of a core **.
692 (accessing_symbol): Remove, part of state_t.
693 * src/lalr.c: Adjust.
694 (set_accessing_symbol): Merge into...
695 (set_state_table): this.
696 * src/print_graph.c, src/conflicts.c: Adjust.
698 2001-11-14 Akim Demaille <akim@epita.fr>
702 2001-11-14 Akim Demaille <akim@epita.fr>
704 * tests/calc.at, tests/output.at, tests/regression.at,
705 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
706 now the tests are run in private dirs, therefore AC_CLEANUP and
707 family can be simplified to 0-ary.
708 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
709 use abs. path to find config.h.
711 2001-11-14 Akim Demaille <akim@epita.fr>
713 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
714 stderr, there can be way too much random noise.
715 Instead pass -Werror to GCC and rely on the exit status.
716 Reported by Wolfram Wagner.
718 2001-11-14 Akim Demaille <akim@epita.fr>
720 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
721 defined only if yyoverflow is defined, to avoid `warning: unused
723 Reported by The Test Suite.
725 2001-11-14 Akim Demaille <akim@epita.fr>
727 * src/print.c: Include reduce.h.
728 Reported by Hans Aberg.
730 2001-11-14 Akim Demaille <akim@epita.fr>
732 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
733 Revert a previous patch: these are really const.
734 * src/conflicts.c (conflict_report): Additional useless pair of
735 braces to pacify GCC's warnings for `if () if () {} else {}'.
736 * src/lex.c (parse_percent_token): Replace equal_offset with
739 Be sure to strdup `arg' when used, since there is no reason for
740 token_buffer not to change.
742 2001-11-14 Akim Demaille <akim@epita.fr>
744 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
746 * src/main.c (main): Use them.
747 Suggested by Hans Aberg.
749 2001-11-12 Akim Demaille <akim@epita.fr>
753 * src/system.h (ngettext): Now that we use ngettext, be sure to
754 provide a default definition when NLS are not used that takes care
757 2001-11-12 Akim Demaille <akim@epita.fr>
759 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
760 Use @kbd to denote user input.
761 (Language and Grammar): ANSIfy the example.
762 Adjust its layout for info/notinfo.
763 (Location Tracking Calc): Output error messages to stderr.
764 Output locations in a more GNUtically correct way.
765 Fix a couple of Englishos.
766 Adjust @group/@end group pairs.
768 2001-11-12 Akim Demaille <akim@epita.fr>
770 %expext was not functioning at all.
772 * src/conflicts.c (expected_conflicts): Set to -1.
773 (conflict_report): Use ngettext.
774 (conflicts_print): Check %expect and make its violation an error.
775 * doc/bison.texinfo (Expect Decl): Adjust.
776 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
777 * tests/regression.at (%expect not enough, %expect right)
778 (%expect too much): New.
780 2001-11-12 Akim Demaille <akim@epita.fr>
782 * tests/regression.at (Conflicts): Rename as...
783 (Unresolved SR Conflicts): this.
784 (Solved SR Conflicts): New.
786 2001-11-12 Akim Demaille <akim@epita.fr>
788 * src/reduce.c (print_results): Rename as...
789 (reduce_output): This.
790 Output to OUT, passed as argument, instead of output_obstack.
791 (dump_grammar): Likewise.
794 (reduce_grammar): No longer call reduce_output, since...
795 * src/print.c (print_results): do it.
796 * src/main.c (main): Call reduce_free;
798 2001-11-12 Akim Demaille <akim@epita.fr>
800 * src/conflicts.c (print_reductions): Accept OUT as argument.
801 Output to it, not to output_obstack.
802 * src/print.c (print_actions): Adjust.
804 2001-11-12 Akim Demaille <akim@epita.fr>
806 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
807 the result instead of using...
808 (src_total, rrc_total, src_count, rrc_count): Remove.
809 (any_conflicts): Remove.
810 (print_conflicts): Split into...
811 (conflicts_print, conflicts_output): New.
812 * src/conflicts.h: Adjust.
813 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
814 * src/print.c (print_grammar): Issue `\n' between to rule outputs.
815 * tests/regression.at (Conflicts): New.
816 Reported by Tom Lane.
818 2001-11-12 Akim Demaille <akim@epita.fr>
820 * tests/regression.at (Invalid input): Remove, duplicate with
821 ``Invalid input: 1''.
823 2001-11-12 Akim Demaille <akim@epita.fr>
825 * tests/torture.at (AT_DATA_STACK_TORTURE)
826 (Exploding the Stack Size with Alloca)
827 (Exploding the Stack Size with Malloc): New.
829 2001-11-12 Akim Demaille <akim@epita.fr>
831 * src/bison.simple (YYSTACK_REALLOC): New.
832 (yyparse) [!yyoverflow]: Use it and free the old stack.
833 Reported by Per Allansson.
835 2001-11-05 Akim Demaille <akim@epita.fr>
838 * src/lex.c (parse_percent_token): s/quotearg/quote/.
840 2001-11-05 Akim Demaille <akim@epita.fr>
842 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
845 2001-11-05 Akim Demaille <akim@epita.fr>
847 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
848 with yyltype/YYLTYPE. This allows inclusion of the generated
849 header within the parser if the compiler, such as GGC, accepts
850 multiple equivalent #defines.
852 2001-11-04 Akim Demaille <akim@epita.fr>
854 * src/getargs.c (longopts): Support `--output'. getopt is now
855 able to understand that `--out' is OK: the two racing long options
858 * src/lex.h (tok_setopt): Remove, replaced with...
859 (tok_intopt, tok_stropt): these new guys.
860 * src/lex.c (getopt.h): Not needed.
861 (token_buffer, unlexed_token_buffer): Not const.
862 (percent_table): Promote `-' over `_' in directive names.
863 Active `%name-prefix', `file-prefix', and `output'.
864 (parse_percent_token): Accept possible arguments to directives.
865 Promote `-' over `_' in directive names.
866 * doc/bison.texinfo (Decl Summary): Split the list into
867 `directives for grammars' and `directives for bison'.
869 Add description of `%name-prefix', `file-prefix', and `output'.
870 Promote `-' over `_' in directive names.
871 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
872 Simplify the description of `--name-prefix'.
873 Promote `-' over `_' in directive names.
874 Promote `--output' over `--output-file'.
875 Fix the description of `--defines'.
876 * tests/output.at: Exercise %file-prefix and %output.
878 2001-11-02 Akim Demaille <akim@epita.fr>
880 * doc/refcard.tex: Update.
882 2001-11-02 Akim Demaille <akim@epita.fr>
884 * src/symtab.h (SUNDEF): New.
885 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
886 stand for `uninitialized', instead of 0.
887 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
888 * src/lex.c (lex): Adjust.
890 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
892 Let yylex return it instead of a plain 0.
893 Reported by Dick Streefland.
895 2001-11-02 Akim Demaille <akim@epita.fr>
897 * tests/regression.at (Mixing %token styles): New test.
899 2001-11-02 Akim Demaille <akim@epita.fr>
901 * src/reader.c (parse_thong_decl): Formatting changes.
902 (token_translations_init): New, extracted from...
906 2001-11-01 Akim Demaille <akim@epita.fr>
908 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
909 Check that `9foo.y' produces correct cpp guards.
910 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
914 2001-11-01 Akim Demaille <akim@epita.fr>
916 * tests/regression.at (Invalid input: 2): New.
917 * src/lex.c (unlexed_token_buffer): New.
918 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
922 2001-11-01 Akim Demaille <akim@epita.fr>
924 * configure.in: Bump to 1.30a.
925 Adjust to newer Autotest.
927 2001-10-26 Akim Demaille <akim@epita.fr>
931 2001-10-26 Paul Eggert <eggert@twinsun.com>
933 * lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h,
934 lib/getopt1.c, lib/obstack.c, lib/obstack.h, lib/quote.c,
935 lib/strnlen.c, lib/xmalloc.c, m4/c-bs-a.m4, m4/error.m4,
936 m4/gettext.m4, m4/lcmessage.m4, m4/malloc.m4, m4/mbstate_t.m4,
937 m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4:
938 Sync with fileutils 4.1.1.
940 2001-10-18 Akim Demaille <akim@epita.fr>
943 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't use `foo && bar', to
944 avoid spurious failures.
946 2001-10-18 Akim Demaille <akim@epita.fr>
950 2001-10-18 Akim Demaille <akim@epita.fr>
952 * tests/atlocal.in (GCC): Add.
953 * tests/calc.at: s/m4_match/m4_bmatch/.
954 s/m4_patsubst/m4_bpatsubst/.
955 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
956 * configure.in: AC_SUBST(GCC).
958 2001-10-10 Akim Demaille <akim@epita.fr>
961 * configure.in: M4 is no longer needed, but autom4te is.
962 * tests/Makefile.am (AUTOTEST): Don't define AUTOM4TE, let
965 2001-10-10 Akim Demaille <akim@epita.fr>
969 2001-10-10 Akim Demaille <akim@epita.fr>
972 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
973 Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
974 Reported by Airy Andre.
976 2001-10-10 Akim Demaille <akim@epita.fr>
978 * INSTALL, config/config.guess, config/config.sub, config/mdate-sh
979 * config/mkinstalldirs, lib/ansi2knr.c: Update.
981 2001-10-02 Akim Demaille <akim@epita.fr>
985 2001-10-02 Akim Demaille <akim@epita.fr>
989 2001-10-02 Akim Demaille <akim@epita.fr>
991 * tests/regression.at (Invalid CPP headers): New.
992 From Alexander Belopolsky.
993 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
995 2001-10-02 Akim Demaille <akim@epita.fr>
997 * tests/regression.at (Invalid input): New.
998 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1001 2001-10-02 Akim Demaille <akim@epita.fr>
1003 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1005 2001-10-02 Akim Demaille <akim@epita.fr>
1007 * src/output.c (output_parser): Assert `skeleton'.
1008 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1012 2001-10-01 Marc Autret <autret_m@epita.fr>
1014 * src/lex.h: Echo modifications.
1015 * src/lex.c (unlex): Parameter is now token_t.
1018 2001-10-01 Marc Autret <autret_m@epita.fr>
1020 * src/main.c: Include lex.h.
1023 2001-09-29 Akim Demaille <akim@epita.fr>
1025 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1027 2001-09-28 Akim Demaille <akim@epita.fr>
1029 * tests/testsuite.at: Update to newer Autotest.
1030 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1032 2001-09-27 Akim Demaille <akim@epita.fr>
1034 Position independent wrapper.
1036 * tests/bison: Remove.
1037 * tests/bison.in: New.
1038 * configure.in: Adjust.
1040 2001-09-27 Paul Eggert <eggert@twinsun.com>
1042 Port quotearg fixes from tar 1.13.24.
1044 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1046 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1047 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1049 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1050 * m4/mbrtowc.m4: New file.
1051 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1052 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1054 2001-09-27 Akim Demaille <akim@epita.fr>
1058 2001-09-27 Akim Demaille <akim@epita.fr>
1062 2001-09-25 Akim Demaille <akim@epita.fr>
1064 * src/system.h: Include `xalloc.h'.
1065 Remove it from the C files.
1066 * src/files.c (output_files): Free the obstacks.
1067 * src/lex.c (init_lex): Rename as...
1070 * src/main.c (main): Use it.
1072 2001-09-24 Marc Autret <autret_m@epita.fr>
1074 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1075 to output informations in fout (FILE*).
1076 (open_graph, close_graph): Likewise.
1077 (output_graph, output_edge, output_node): Likewise.
1078 * src/vcg.h: Update function prototypes.
1079 * src/print_graph.c (print_graph): Open output graph file.
1080 (print_actions): Adjust.
1081 * src/files.h: Remove extern declaration.
1082 * src/files.c: Remove graph_obstack declaration.
1083 (open_files): Remove graph_obstack initialization.
1084 (output_files): Remove graph_obstack saving.
1086 2001-09-24 Marc Autret <autret_m@epita.fr>
1088 * src/files.c (compute_output_file_names): Fix.
1090 2001-09-24 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1092 * src/reader.c (reader): Remove call to free_symtab ().
1093 * src/main.c (main): Call it here.
1095 * src/conflicts.c (initialize_conflicts): Rename as...
1096 (solve_conflicts): this.
1097 * src/print.c (print_core, print_actions, print_state)
1098 (print_grammar): Dump to a file instead a `output_obstack'.
1099 (print_results): Dump `output_obstack', and then proceed with the
1101 * src/files.c (compute_output_file_names, close_files): New.
1102 (output_files): Adjust.
1103 * src/main.c (main): Adjust.
1105 2001-09-23 Marc Autret <autret_m@epita.fr>
1107 * src/files.c (compute_header_macro): Computes header macro name
1108 from spec_defines_file when given.
1110 2001-09-23 Marc Autret <autret_m@epita.fr>
1112 * src/files.c (output_files): Add default extensions.
1114 2001-09-22 Akim Demaille <akim@epita.fr>
1116 * src/conflicts.c (finalize_conflicts): Rename as...
1117 (free_conflicts): this.
1119 2001-09-22 Akim Demaille <akim@epita.fr>
1121 * src/gram.c (gram_free): Rename back as...
1123 (output_token_translations): Free `token_translations'.
1124 * src/symtab.c (free_symtab): Free the tag field.
1126 2001-09-22 Akim Demaille <akim@epita.fr>
1128 Remove `translations' as it is always set to true.
1130 * src/gram.h: Adjust.
1131 * src/reader.c (packsymbols, parse_token_decl): Adjust
1132 * src/print.c (print_grammar): Adjust.
1133 * src/output.c (output_token_translations): Adjust.
1134 * src/lex.c (lex): Adjust.
1135 * src/gram.c: Be sure the set pointers to NULL.
1136 (dummy): Rename as...
1139 2001-09-22 Akim Demaille <akim@epita.fr>
1141 * configure.in: Invoke AM_LIB_DMALLOC.
1142 * src/system.h: Use dmalloc.
1143 * src/LR0.c: Be sure to have pointers initialized to NULL.
1144 (allocate_itemsets): Allocate kernel_items only if needed.
1146 2001-09-22 Akim Demaille <akim@epita.fr>
1148 * configure.in: Bump to 1.29b.
1149 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1150 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1151 need xmalloc.c in calc.y.
1154 2001-09-21 Akim Demaille <akim@epita.fr>
1157 * Makefile.maint, config/config.guess, config/config.sub,
1158 * config/missing: Update from masters.
1159 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1161 * configure.in (ALL_LINGUAS): Add `tr'.
1163 2001-09-21 Akim Demaille <akim@epita.fr>
1165 * tests/Makefile.am (package.m4): Move to...
1166 ($(srcdir)/$(TESTSUITE)): here.
1168 2001-09-20 Akim Demaille <akim@epita.fr>
1170 * src/complain.c: No longer try to be standalone: use system.h.
1171 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1172 * src/complain.h: Likewise.
1173 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1174 Remove the unused variable `n'.
1175 From Albert Chin-A-Young.
1177 2001-09-18 Marc Autret <autret_m@epita.fr>
1179 * doc/bison.1: Update.
1180 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1182 (Option Cross Key): Update.
1185 2001-09-18 Marc Autret <autret_m@epita.fr>
1187 * tests/regression.at: New test (comment in %union).
1189 2001-09-18 Marc Autret <autret_m@epita.fr>
1191 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1193 Reported by Keith Browne.
1195 2001-09-18 Marc Autret <autret_m@epita.fr>
1197 * tests/output.at: Add tests for --defines and --graph.
1199 2001-09-18 Marc Autret <autret_m@epita.fr>
1201 * tests/output.at: Removes tests of %{header,src}_extension features.
1203 2001-09-18 Akim Demaille <akim@epita.fr>
1205 * tests/Makefile.am (package.m4): New.
1206 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1207 (_AT_CHECK_CALC_ERROR): Likewise.
1208 Factor the `, ' part of verbose error messages.
1210 2001-09-18 Marc Autret <autret_m@epita.fr>
1212 * src/getargs.c (longopts): Declare --defines and --graph as options
1213 with optional arguments.
1214 * src/files.h: Add extern declarations.
1215 * src/files.c (spec_graph_file, spec_defines_file): New.
1216 (output_files): Update.
1217 Remove CPP-outed code.
1219 2001-09-18 Marc Autret <autret_m@epita.fr>
1221 Turn off %{source,header}_extension feature.
1223 * src/files.c (compute_exts_from_gf): Update.
1224 (compute_exts_from_src): Update.
1225 (output_files): CPP-out useless code.
1226 * src/files.h: Remove {header,source}_extension extern declarations.
1227 * src/reader.c (parse_dquoted_param): CPP-out.
1228 (parse_header_extension_decl): Remove.
1229 (parse_source_extension_decl): Remove.
1230 (read_declarations): Remove cases tok_{hdrext,srcext}.
1231 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1232 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1234 2001-09-10 Akim Demaille <akim@epita.fr>
1236 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1237 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1238 (AT_CHECK_OUTPUT): this.
1239 Merely check ls' exit status, its output is useless.
1241 2001-09-10 Akim Demaille <akim@epita.fr>
1243 * tests/calc.at: Use m4_match.
1244 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1246 2001-09-10 Marc Autret <autret_m@epita.fr>, Akim Demaille <akim@epita.fr>
1248 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1250 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1252 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1253 * src/lex.h: Adjust prototype.
1254 (token_t): Add `tok_undef'.
1255 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1256 (parse_percent_token): Now returns token_t.
1257 Add default statement in switch.
1258 (lex): Separate `c' as an input variable, from the token_t result
1260 (unlexed): Is a token_t.
1262 2001-09-10 Akim Demaille <akim@epita.fr>
1264 * configure.in: Bump to 1.29a.
1266 2001-09-07 Akim Demaille <akim@epita.fr>
1270 2001-08-30 Akim Demaille <akim@epita.fr>
1272 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1273 * m4/atconfig.m4: Remove.
1274 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1276 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1277 m4_if, m4_patsubst, and m4_regexp.
1278 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1279 `input' file instead of echo.
1281 2001-08-29 Akim Demaille <akim@epita.fr>
1285 2001-08-29 Akim Demaille <akim@epita.fr>
1289 2001-08-29 Paul Eggert <eggert@twinsun.com>
1291 * src/bison.simple (yyparse): Don't take the address of an
1292 item before the start of an array, as that doesn't conform to
1295 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1297 * doc/bison.texinfo (Location Tracking Calc): New node.
1299 2001-08-29 Paul Eggert <eggert@twinsun.com>
1301 * src/output.c (output): Do not define const, as this now
1302 causes more problems than it cures.
1304 2001-08-29 Akim Demaille <akim@epita.fr>
1306 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1308 Be sure to tag the `detailmenu'.
1310 2001-08-29 Akim Demaille <akim@epita.fr>
1312 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1313 download in a tmp dir.
1315 2001-08-28 Marc Autret <autret_m@epita.fr>
1317 * config/depcomp: New file.
1319 2001-08-28 Marc Autret <autret_m@epita.fr>
1321 * doc/bison.1 (mandoc): Adjust.
1322 From Juan Manuel Guerrero.
1324 2001-08-28 Marc Autret <autret_m@epita.fr>
1326 * src/print_graph.c (print_state): Fix.
1328 2001-08-27 Marc Autret <autret_m@epita.fr>
1330 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1332 Echo modifications to the functions prototypes.
1333 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1335 2001-08-27 Marc Autret <autret_m@epita.fr>
1337 * src/vcg.c: Include `xalloc.h'.
1338 (add_colorentry): New.
1339 (add_classname): New.
1340 (add_infoname): New.
1341 * src/vcg.h: Add new prototypes.
1343 2001-08-27 Akim Demaille <akim@epita.fr>
1345 * Makefile.maint: Sync. again with CVS Autoconf.
1347 2001-08-27 Akim Demaille <akim@epita.fr>
1349 * Makefile.maint: Formatting changes.
1350 (po-update, cvs-update, update): New targets.
1353 2001-08-27 Akim Demaille <akim@epita.fr>
1355 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1356 * Makefile.maint: Sync. with CVS Autoconf.
1358 2001-08-27 Marc Autret <autret_m@epita.fr>
1360 * src/vcg.h (struct infoname_s): New.
1361 (struct colorentry_s): New.
1362 (graph_s): New fields {vertical,horizontal}_order in structure.
1363 Add `infoname' field.
1364 Add `colorentry' field;
1365 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1366 (G_HORIZONTAL_ORDER): New.
1368 (G_COLORENTRY): New.
1369 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1370 Add output of `infoname'.
1371 Add output of `colorentry'.
1373 2001-08-27 Marc Autret <autret_m@epita.fr>
1375 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1376 This one shadowed a global parameter.
1378 2001-08-24 Marc Autret <autret_m@epita.fr>
1380 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1381 instead of `unsigned'.
1382 (print_state): Do not call obstack_object_size () in obstack_grow ()
1383 to avoid macro variables shadowing.
1385 2001-08-23 Marc Autret <autret_m@epita.fr>
1387 * src/lex.c (percent_table): Typo: s/naem/name/.
1389 Normalize new options declarations.
1391 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1393 * tests/suite.at: Exercise %header_extension and %source_extension.
1395 2001-08-16 Marc Autret <autret_m@epita.fr>
1397 * src/reader.c (parse_dquoted_param): New.
1398 (parse_header_extension_decl): Use it.
1399 (parse_source_extension_decl): Likewise.
1401 2001-08-16 Marc Autret <autret_m@epita.fr>
1403 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1404 (get_xxxx_str): Use assert () instead of complain ().
1405 Remove return invokations in default cases.
1406 (get_decision_str): Modify default behaviour. Remove second argument.
1407 Echo modifications on calls.
1408 (output_graph): Fix.
1410 2001-08-16 Marc Autret <autret_m@epita.fr>
1412 * src/getargs.c (usage): Update with ``-g, --graph''.
1414 2001-08-16 Marc Autret <autret_m@epita.fr>
1416 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1417 (Option Cross Key): Likewise.
1418 * doc/bison.1: Update.
1420 2001-08-15 Akim Demaille <akim@epita.fr>
1424 2001-08-15 Marc Autret <autret_m@epita.fr>
1426 * src/reader.c (readgram): Indent output macro YYSTYPE.
1427 (packsymbols): Likewise.
1428 (output_token_defines): Likewise.
1429 * src/files.c: Standardize.
1430 (compute_header_macro): New.
1431 (defines_obstack_save): New. Use compute_header_macro.
1432 (output_files): Update. Use defines_obstack_save.
1434 2001-08-15 Akim Demaille <akim@epita.fr>
1436 * doc/bison.texinfo (Table of Symbols): Document
1439 2001-08-15 Akim Demaille <akim@epita.fr>
1441 * missing: Update from CVS Automake.
1442 * config/config.guess, config/config.sub, config/texinfo.tex:
1443 Update from gnu.org.
1445 2001-08-15 Akim Demaille <akim@epita.fr>
1447 * Makefile.maint: Sync with CVS Autoconf.
1449 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1451 * doc/bison.texinfo: Include GNU Free Documentation License from
1453 * doc/fdl.texi: Add to package.
1455 2001-08-14 Marc Autret <autret_m@epita.fr>
1457 Turn on %{source,header}_extension features.
1459 * src/lex.c (percent_table): Un-CPP out header_extension and
1461 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1462 (compute_exts_from_src): Remove conditions. It restores priorities
1465 2001-08-14 Marc Autret <autret_m@epita.fr>
1467 * src/files.c (compute_base_names): Add extensions computing when
1468 `--file-prefix' used.
1469 Standardize function calls.
1471 2001-08-13 Marc Autret <autret_m@epita.fr>
1473 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1474 defining it (defined but null disables alloca).
1476 2001-08-13 Marc Autret <autret_m@epita.fr>
1478 * src/bison.simple (_yy_memcpy): CPP reformat.
1480 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1482 * tests/atconfig.in (CPPFLAGS): Fix.
1484 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1486 * doc/bison.texinfo: Include GNU General Public License from
1488 * doc/gpl.texi: Add to package.
1490 2001-08-10 Marc Autret <autret_m@epita.fr>
1492 * src/print_graph.h: Fix.
1493 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1495 2001-08-10 Akim Demaille <akim@epita.fr>
1497 * src/system.h: Provide default declarations for stpcpy, strndup,
1500 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1502 * doc/bison.texinfo (Locations): Update @$ stuff.
1504 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1506 * src/bison.simple (YYLLOC_DEFAULT): Update.
1509 2001-08-08 Marc Autret <autret_m@epita.fr>
1511 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1512 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1513 Reported by Fabrice Bauzac.
1515 2001-08-08 Marc Autret <autret_m@epita.fr>
1517 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1518 * src/vcg.c (output_node): Fix.
1519 * src/vcg.h: Cleanup.
1520 * src/print_graph.c: Add comments.
1521 (node_output_size): New global variable. Simplify the formatting of
1522 the VCG graph output.
1523 (print_actions): Unused code is now used. It notifies the final state
1524 and no action states in the VCG graph. It also give the reduce actions.
1525 The `shift and goto' edges are red and the `go to state' edges are
1527 Get the current node name and node_obstack by argument.
1528 (node_obstack): New variable.
1529 (print_state): Manage node_obstack.
1530 (print_core): Use node_obstack given by argument.
1531 A node is not only computed here but in print_actions also.
1532 (print_graph): CPP out useless code instead of commenting it.
1534 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1536 * tests/atconfig.in (CPPFLAGS): Fix.
1538 2001-08-07 Akim Demaille <akim@epita.fr>
1540 * src/print_graph.c (quote): New.
1541 (print_core): Use it.
1543 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1545 * src/vcg.c (complain.h): Include it.
1546 Unepitaize `return' invocations.
1547 [NDEBUG] (main): Remove.
1548 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1549 * src/files.c (open_files): Initialize graph_obstack.
1550 * src/print_graph.c (print_actions): CPP out useless code.
1551 (print_core): Don't output the last `\n' in labels.
1553 * src/files.c (output_files): Output the VCG file.
1554 * src/main.c (main): Invoke print_graph ();
1556 2001-08-06 Marc Autret <autret_m@epita.fr>
1558 Automaton VCG graph output.
1559 Using option ``-g'' or long option ``--graph'', you can generate
1560 a gram_filename.vcg file containing a VCG description of the LALR (1)
1561 automaton of your grammar.
1563 * src/main.c: Call to print_graph() function.
1564 * src/getargs.h: Update.
1565 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1566 (graph_flag): New flag.
1568 (getargs): Add case `g'.
1569 * src/files.c (graph_obstack): New obstack struct.
1570 (open_files): Initialize new obstack.
1571 (output_files): Saves graph_obstack if required.
1572 * src/files.h (graph_obstack): New extern declaration.
1573 * src/Makefile.am: Add new source files.
1575 2001-08-06 Marc Autret <autret_m@epita.fr>
1577 * src/print_graph.c, src/print_graph.h (graph): New.
1578 * src/vcg.h: New file.
1579 * src/vcg.c: New file, VCG graph handling.
1581 2001-08-06 Marc Autret <autret_m@epita.fr>
1583 Add of %source_extension and %header_extension which specify
1584 the source or/and the header output file extension.
1586 * src/files.c (compute_base_names): Remove initialisation of
1587 src_extension and header_extension.
1588 (compute_exts_from_gf): Update.
1589 (compute_exts_from_src): Update.
1590 (output_files): Update.
1591 * src/reader.c (parse_header_extension_decl): New.
1592 (parse_source_extension_decl): New.
1593 (read_declarations): New case statements for the new tokens.
1594 * src/lex.c (percent_table): Add entries for %source_extension
1595 and %header_extension.
1596 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1598 2001-08-06 Marc Autret <autret_m@epita.fr>
1600 * configure.in: Bump to 1.28c.
1601 * doc/bison.texinfo: Texinfo thingies.
1603 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1605 * tests/atconfig.in (CPPFLAGS): Add.
1606 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1608 2001-08-03 Akim Demaille <akim@epita.fr>
1612 2001-08-03 Akim Demaille <akim@epita.fr>
1614 * tests/Makefile.am (check-local): Ship testsuite.
1615 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1618 2001-08-03 Akim Demaille <akim@epita.fr>
1620 * configure.in: Try using -Wformat when compiling.
1622 2001-08-03 Akim Demaille <akim@epita.fr>
1624 * configure.in: Bump to 1.28b.
1626 2001-08-03 Akim Demaille <akim@epita.fr>
1628 * src/complain.c: Adjust strerror_r portability issues.
1630 2001-08-03 Akim Demaille <akim@epita.fr>
1634 2001-08-03 Akim Demaille <akim@epita.fr>
1636 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1637 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1638 * src/getargs.c: Include complain.h.
1639 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1640 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1642 2001-08-03 Akim Demaille <akim@epita.fr>
1644 * src/reader.c (readgram): Display hidden chars in error messages.
1646 2001-08-03 Akim Demaille <akim@epita.fr>
1648 Update to gettext 0.10.39.
1650 2001-08-03 Akim Demaille <akim@epita.fr>
1652 * lib/strspn.c: New.
1654 2001-08-01 Marc Autret <autret_m@epita.fr>
1656 * doc/bison.texinfo: Update.
1657 * doc/bison.1 (mandoc): Update.
1658 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1659 * src/files.c: Support output files extensions computing.
1660 (src_extension): New static variable.
1661 (header_extension): New static variable.
1663 (get_extension_index): New function, gets the index of an extension
1664 filename in a string.
1665 (compute_exts_from_gf): New function, computes extensions from the
1666 grammar file extension.
1667 (compute_exts_from_src): New functions, computes extensions from the
1668 C source file extension, file given by ``-o'' option.
1669 (compute_base_names): Update.
1670 (output_files): Update.
1672 2001-08-01 Robert Anisko <anisko_r@epita.fr>
1674 * doc/bison.texi: Document @$.
1675 (Locations): New section.
1677 2001-07-18 Akim Demaille <akim@epita.fr>
1679 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1680 * config/prev-version.txt, config/move-if-change: New.
1681 * Makefile.am: Adjust.
1683 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
1685 * src/bison.simple (yyparse): Suppress warning `comparaison
1686 between signed and unsigned'.
1688 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
1690 * src/getargs.h (raw_flag): Remove.
1691 * src/getargs.c: Die on `-r'/`--raw'.
1692 * src/lex.c (parse_percent_token): Die on `%raw'.
1693 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1694 * tests/calc.at: Suppress test with option `--raw'.
1696 2001-07-14 Akim Demaille <akim@epita.fr>
1699 * configure.in: Require Autoconf 2.50.
1700 Update to gettext 0.10.38.
1702 2001-03-16 Akim Demaille <akim@epita.fr>
1704 * doc/bison.texinfo: ANSIfy the examples.
1706 2001-03-16 Akim Demaille <akim@epita.fr>
1708 * getargs.c (skeleton): New variable.
1709 (longopts): --skeleton is a new option.
1710 (shortopts, getargs): -S is a new option.
1711 * getargs.h: Declare skeleton.
1712 * output.c (output_parser): Use it.
1714 2001-03-16 Akim Demaille <akim@epita.fr>
1716 * m4/strerror_r.m4: New.
1717 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1718 * lib/error.h, lib/error.c: Update.
1720 2001-03-16 Akim Demaille <akim@epita.fr>
1722 * src/getargs.c (longopts): Clean up.
1724 2001-02-21 Akim Demaille <akim@epita.fr>
1726 * src/reader.c (gensym): `gensym_count' is your own.
1727 Use a static buf to create the symbol name, as token_buffer is no
1730 2001-02-08 Akim Demaille <akim@epita.fr>
1732 * src/conflicts.c (conflict_report): Be sure not to append to res
1733 between two calls, which could happen if both first sprintf were
1734 skipped, but not the first cp += strlen.
1736 2001-02-08 Akim Demaille <akim@epita.fr>
1738 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1739 New, from fileutils 4.0.37.
1740 * configure.in: Require Autoconf 2.49c. I took some time before
1741 making this decision. This is the only way out for portability
1742 issues in Bison, it would mean way too much duplicate effort to
1743 import in Bison features implemented in 2.49c since 2.13.
1744 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1746 2001-02-02 Akim Demaille <akim@epita.fr>
1748 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
1749 * lib/xalloc.h, lib/xmalloc.c: Update.
1751 2001-01-19 Akim Demaille <akim@epita.fr>
1753 Get rid of the ad hoc handling of token_buffer in the scanner: use
1756 * src/lex.c (token_obstack): New.
1757 (init_lex): Initialize it. No longer call...
1758 (grow_token_buffer): this. Remove it.
1759 Adjust all the places which used it to use the obstack.
1761 2001-01-19 Akim Demaille <akim@epita.fr>
1763 * src/lex.h: Rename all the tokens:
1764 s/\bENDFILE\b/tok_eof/g;
1765 s/\bIDENTIFIER\b/tok_identifier/g;
1767 Let them be enums, not #define, to ease debugging.
1768 Adjust all the code.
1770 2001-01-18 Akim Demaille <akim@epita.fr>
1772 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1773 * src/lex.c (maxtoken, grow_token_buffer): Static.
1775 2001-01-18 Akim Demaille <akim@epita.fr>
1777 Since we now use obstacks, more % directives can be enabled.
1779 * src/lex.c (percent_table): Also accept `%yacc',
1780 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1782 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1783 instead of returning a token.
1784 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1785 * src/reader.c (read_declarations): Adjust.
1786 * src/files.c (open_files): Don't call `compute_base_names', don't
1787 compute `attrsfile' since they depend upon data which might be
1788 *in* the input file now.
1789 (output_files): Do it here.
1790 * src/output.c (output_headers): Document the fact that this patch
1791 introduces a guaranteed SEGV for semantic parsers.
1792 * doc/bison.texinfo: Document them.
1793 * tests/suite.at: Exercise these %options.
1795 2000-12-20 Akim Demaille <akim@epita.fr>
1797 Also handle the output file (--verbose) with obstacks.
1799 * files.c (foutput): Remove.
1800 (output_obstack): New.
1801 Adjust all dependencies.
1802 * src/conflicts.c: Return a string.
1803 * src/system.h (obstack_grow_string): Rename as...
1804 (obstack_sgrow): this. Be ready to work with non literals.
1805 (obstack_fgrow4): New.
1807 2000-12-20 Akim Demaille <akim@epita.fr>
1809 * src/files.c (open_files): Fix the computation of short_base_name
1810 in the case of `-o foo.tab.c'.
1812 2000-12-20 Akim Demaille <akim@epita.fr>
1814 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1815 (copy_dollar): Now that everything uses obstacks, get rid of the
1818 2000-12-20 Akim Demaille <akim@epita.fr>
1820 * src/files.c (open_files): Actually the `.output' file is based
1821 on the short_base_name, not base_name.
1822 * tests/suite.at (Checking output file names): Adjust.
1824 2000-12-20 Akim Demaille <akim@epita.fr>
1826 * src/bison.s1: Remove, we now use directly...
1827 * src/bison.simple: this.
1828 * src/Makefile.am: Use pkgdata instead of data.
1830 2000-12-20 Akim Demaille <akim@epita.fr>
1832 * src/files.c (guard_obstack): New.
1833 (open_files): Initialize it.
1834 (output_files): Dump it...
1835 * src/files.h: Export it.
1836 * src/reader.c (copy_guard): Use it.
1838 2000-12-19 Akim Demaille <akim@epita.fr>
1840 * src/files.c (outfile, defsfile, actfile): Removed as global
1842 (open_files): Don't compute them.
1843 (output_files): Adjust.
1844 (base_name, short_base_name): Be global.
1845 Adjust dependencies.
1847 2000-12-19 Akim Demaille <akim@epita.fr>
1849 * src/files.c (strsuffix): New.
1850 (stringappend): Be just like strcat but allocate.
1851 (base_names): Eve out from open_files.
1852 Try to simplify the rather hairy computation of base_name and
1854 (open_files): Use it.
1855 * tests/suite.at (Checking output file names): New test.
1857 2000-12-19 Akim Demaille <akim@epita.fr>
1859 * src/system.h (obstack_grow_literal_string): Rename as...
1860 (obstack_grow_string): this.
1861 * src/output.c (output_parser): Recognize `%% actions' instead of
1863 * src/bison.s1: s/$/%% actions/.
1864 * src/bison.hairy: Likewise.
1866 2000-12-19 Akim Demaille <akim@epita.fr>
1868 * src/output.c (output_parser): Compute the `#line' lines when
1870 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1871 Suggested by Hans Aberg.
1873 2000-12-19 Akim Demaille <akim@epita.fr>
1875 Let the handling of the skeleton files be local to the procedures
1878 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1880 (fparser, open_extra_files): Remove.
1881 (open_files, output_files): Don't take care of fparser.
1882 * src/files.h: Adjust.
1883 * src/output.c (output_parser): Open and close the file to the
1885 * src/reader.c (read_declarations): When %semantic_parser, open
1888 2000-12-19 Akim Demaille <akim@epita.fr>
1890 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1891 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1893 2000-12-19 Akim Demaille <akim@epita.fr>
1895 * src/files.c (open_files): Yipee! We no longer need all the code
1896 looking for `/tmp' since we have no tmp file.
1898 2000-12-19 Akim Demaille <akim@epita.fr>
1900 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1902 * src/files.c (open_files): Less dependency on MSDOS etc.
1904 2000-12-14 Akim Demaille <akim@epita.fr>
1906 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1907 Provide a default definition.
1908 Use it when executing the default @ action.
1909 * src/reader.c (reader_output_yylsp): No longer include
1910 `timestamp' and `text' in the default YYLTYPE.
1912 2000-12-12 Akim Demaille <akim@epita.fr>
1914 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1915 (copy_guard): Quote the file names.
1916 Reported by Laurent Mascherpa.
1918 2000-12-12 Akim Demaille <akim@epita.fr>
1920 * src/output.c (output_headers, output_program, output): Be sure
1921 to escape special characters when outputting filenames.
1922 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1923 (output_headers): Don't depend on them, Use ACTSTR.
1925 2000-11-17 Akim Demaille <akim@epita.fr>
1927 * lib/obstack.h: Formatting changes.
1928 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1929 prevents type checking.
1930 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1931 cast the value to (void *): assigning a `foo *' to a `void *'
1933 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1934 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1937 2000-11-17 Akim Demaille <akim@epita.fr>
1939 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1941 (suite.m4, regression.m4, calc.m4): these.
1942 * tests/atgeneral.m4: Update from CVS Autoconf.
1944 2000-11-17 Akim Demaille <akim@epita.fr>
1946 * tests/regression.m4 (%union and --defines): New test,
1947 demonstrating a current bug in the obstack implementation.
1949 2000-11-17 Akim Demaille <akim@epita.fr>
1951 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1953 Use them to declare the variables which are global or local to
1956 2000-11-17 Akim Demaille <akim@epita.fr>
1958 * acconfig.h: Remove, no longer used.
1960 2000-11-07 Akim Demaille <akim@epita.fr>
1962 * src: s/Copyright (C)/Copyright/g.
1964 2000-11-07 Akim Demaille <akim@epita.fr>
1966 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1968 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1970 2000-11-07 Akim Demaille <akim@epita.fr>
1972 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1973 Merge in a single CPP if/else.
1975 2000-11-07 Akim Demaille <akim@epita.fr>
1977 * src/output.c (output): Remove useless variables.
1978 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1979 argument `data' for consistency with the prototypes.
1981 (obstack_copy, obstack_copy0): Rename the second argument as
1982 `address' for consistency. Qualify it `const'.
1983 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1984 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1985 `const' their input argument (`data' or `address').
1986 Adjust the corresponding macros to include `const' in casts.
1988 2000-11-03 Akim Demaille <akim@epita.fr>
1990 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1991 s/PFILE1/BISON_HAIRY/.
1992 Adjust dependencies.
1994 2000-11-03 Akim Demaille <akim@epita.fr>
1996 For some reason, this was not applied.
1998 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1999 `unlink': it's no longer used.
2001 2000-11-03 Akim Demaille <akim@epita.fr>
2003 * src/files.c (skeleton_find): New function, eved out of...
2004 (open_files, open_extra_files): here.
2006 2000-11-03 Akim Demaille <akim@epita.fr>
2010 * src/files.c (obstack_save): New function.
2011 (done): Rename as...
2012 (output_files): this.
2014 * src/main.c (main): Don't use `atexit' to register `done', since
2015 it no longer has to remove tmp files, just call `output_files'
2016 when there are no errors.
2018 2000-11-02 Akim Demaille <akim@epita.fr>
2020 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2021 `unlink': it's no longer used.
2022 * src/files.h: Formatting changes.
2024 2000-11-02 Akim Demaille <akim@epita.fr>
2026 Remove the last uses of mktemp and unlink/delete.
2028 * src/files.c (fdefines, ftable): Removed.
2029 (defines_ostack, table_obstack): New.
2030 Adjust dependencies of the former into uses of the latter.
2031 * src/output.c (output_short_or_char_table, output_short_table):
2032 Convert to using obstacks.
2033 * src/reader.c (copy_comment2): Accept one FILE * and two
2035 (output_token_defines, reader_output_yylsp): Use obstacks.
2036 * src/system.h (obstack_fgrow3): New.
2038 2000-11-01 Akim Demaille <akim@epita.fr>
2040 Change each use of `fattrs' into a use of `attrs_obstack'.
2042 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2043 * src/files.c (fattrs): Remove.
2044 (attrs_obstack): New.
2045 Adjust all dependencies.
2046 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2048 2000-11-01 Akim Demaille <akim@epita.fr>
2051 Change each use of `faction' into a use of `action_obstack'.
2053 * lib/obstack.h, lib/obstack.c: New files.
2054 * src/files.c (faction): Remove.
2055 (action_obstack): New.
2056 Adjust all dependencies.
2058 2000-10-20 Akim Demaille <akim@epita.fr>
2060 * lib/quote.h (PARAMS): New macro. Use it.
2062 2000-10-16 Akim Demaille <akim@epita.fr>
2064 * src/output.c (output_short_or_char_table): New function.
2065 (output_short_table, output_token_translations): Use it.
2066 (goto_actions): Use output_short_table.
2068 2000-10-16 Akim Demaille <akim@epita.fr>
2070 * src/symtab.c (bucket_new): New function.
2073 * src/output.c (output_short_table): New argument to display the
2074 comment associated with the table.
2075 Adjust dependencies.
2076 (output_gram): Use it.
2077 (output_rule_data): Nicer output layout for YYTNAME.
2079 2000-10-16 Akim Demaille <akim@epita.fr>
2081 * src/lex.c (read_typename): New function.
2083 * src/reader.c (copy_dollar): Likewise.
2085 2000-10-16 Akim Demaille <akim@epita.fr>
2087 * src/reader.c (copy_comment2): Expect the input stream to be on
2088 the `/' which is suspected to open a comment, instead of being
2089 called after `//' or `/*' was read.
2090 (copy_comment, copy_definition, parse_union_decl, copy_action)
2091 (copy_guard): Adjust.
2093 2000-10-16 Akim Demaille <akim@epita.fr>
2095 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2096 `read_signed_integer'.
2098 2000-10-16 Akim Demaille <akim@epita.fr>
2100 * src/reader.c (copy_dollar): New function.
2101 (copy_guard, copy_action): Use it.
2103 2000-10-16 Akim Demaille <akim@epita.fr>
2105 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2106 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2107 New files, from Fileutils 4.0.27.
2108 * src/main.c (printable_version): Remove.
2109 * src/lex.c, src/reader.c: Use `quote'.
2111 2000-10-04 Akim Demaille <akim@epita.fr>
2113 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2115 2000-10-04 Akim Demaille <akim@epita.fr>
2117 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2119 2000-10-04 Akim Demaille <akim@epita.fr>
2121 When a literal string is used to define two different tokens,
2122 `bison -v' segfaults.
2123 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2125 * tests/regression.m4: New file.
2126 Include the core of the sample provided by Piotr Gackiewicz.
2127 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2130 2000-10-04 Akim Demaille <akim@epita.fr>
2132 * src/reader.c (parse_expect_decl): Keep `count' within the size
2136 2000-10-02 Paul Eggert <eggert@twinsun.com>
2138 * bison.s1 (yyparse): Assign the default value
2139 unconditionally, to avoid a GCC warning and make the parser a
2142 2000-10-02 Akim Demaille <akim@epita.fr>
2144 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2147 2000-10-02 Akim Demaille <akim@epita.fr>
2149 * src/derives.c, src/print.c, src/reduce.c: To ease the
2150 translation, move some `\n' out of the translated strings.
2152 2000-10-02 Akim Demaille <akim@epita.fr>
2154 The location tracking mechanism is precious for parse error
2155 messages. Nevertheless, it is enabled only when `@n' is used in
2156 the grammar, which is a different issue (you can use it in error
2157 message, but not in the grammar per se). Therefore, there should
2158 be another means to enable it.
2160 * src/getargs.c (getargs): Support `--locations'.
2162 * src/getargs.h (locationsflag): Export it.
2163 * src/lex.c (percent_table): Support `%locations'.
2164 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2165 with `locationsflag'.
2166 * doc/bison.texinfo: Document `--locations' and `%locations'.
2168 * tests/calc.m4: Test it.
2170 For regularity of the names, replace each
2171 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2172 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2173 In addition replace each `flag' with `_flag'.
2175 2000-10-02 Akim Demaille <akim@epita.fr>
2177 Also test parse error messages, including with YYERROR_VERBOSE.
2179 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2181 Use it to check the computations.
2182 Use it to check `nonassoc' is honored.
2183 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2184 `--yyerror-verbose'.
2185 (_AT_CHECK_CALC): Adjust to this option.
2186 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2188 2000-10-02 Akim Demaille <akim@epita.fr>
2190 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2191 the latter demonstrates a flaw in the handling of non debugging
2192 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2193 was used in order to simplify:
2209 unfortunately this leads to a CPP conflict when
2210 `--name-prefix=foo' is used since it produces `#define yydebug
2213 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2214 (YYDPRINTF): New macro.
2216 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2218 Also test `--verbose', `--defines' and `--name-prefix'.
2220 2000-10-02 Akim Demaille <akim@epita.fr>
2222 Improve the readability of the produced parsers.
2224 * src/bison.s1: Formatting changes.
2225 Improve the comment related to the `$' mark.
2226 (yydefault): Don't fall through to `yyresume': `goto' there.
2227 * src/output.c (output_parser): When the `$' is met, skip the end
2229 New variable, `number_of_dollar_signs', to check there's exactly
2230 one `$' in the parser skeleton.
2232 2000-10-02 Akim Demaille <akim@epita.fr>
2234 * lib/xstrdup.c: New file, from the fileutils.
2235 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2236 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2237 instead of strlen + xmalloc + strcpy.
2238 * src/symtab.c (copys): Remove, use xstrdup instead.
2240 2000-10-02 Akim Demaille <akim@epita.fr>
2242 * src/gram.h (associativity): New enum type which replaces the
2243 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2244 `right_assoc', `left_assoc' and `non_assoc'.
2245 Adjust all dependencies.
2246 * src/reader.c: Formatting changes.
2247 (LTYPESTR): Don't define it, use it as a literal in
2248 `reader_output_yylsp'.
2249 * src/symtab.h (symbol_class): New enum type which replaces the
2250 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2251 `sunknown', `stoken and `snterm'.
2253 2000-10-02 Akim Demaille <akim@epita.fr>
2255 * src/getargs.c (fixed_outfiles): Rename as...
2256 (yaccflag): for consistency and accuracy.
2257 Adjust dependencies.
2259 2000-10-02 Akim Demaille <akim@epita.fr>
2261 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2262 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2263 difficult and introduced a lot of core dump. It turns out that
2264 Bison used an implementation of `xmalloc' based on `calloc', and
2265 at various places it does depend upon the initialization to 0. I
2266 have not tried to isolate the pertinent places, and all the former
2267 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2268 someone should address this issue.
2270 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2271 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2273 Adjust dependencies.
2274 * src/warshall.h: New file.
2277 2000-10-02 Akim Demaille <akim@epita.fr>
2279 Various anti-`extern in *.c' changes.
2281 * src/system.h: Include `assert.h'.
2283 2000-10-02 Akim Demaille <akim@epita.fr>
2285 * src/state.h (nstates, final_state, first_state, first_shift)
2286 (first_reduction): Move their exportation from here...
2287 * src/LR0.h: to here.
2288 Adjust dependencies.
2289 * src/getargs.c (statisticsflag): New variable.
2290 Add support for `--statistics'.
2291 Adjust dependencies.
2293 Remove a lot of now useless `extern' statements in most files.
2295 2000-10-02 Akim Demaille <akim@epita.fr>
2297 * src/LR0.h: New file.
2300 2000-10-02 Akim Demaille <akim@epita.fr>
2302 * src/print.h: New file.
2304 * src/print.c: Formatting and ordering changes.
2305 (verbose, terse): Replace with...
2306 (print_results): this new function.
2307 Adjust dependencies.
2309 2000-10-02 Akim Demaille <akim@epita.fr>
2311 * src/conflicts.c (conflict_report): New function.
2312 (conflict_log, verbose_conflict_log): Replace with...
2313 (print_conflicts): this function.
2314 Adjust dependencies.
2315 * src/conflicts.h: New file.
2316 Propagate its inclusion.
2318 2000-10-02 Akim Demaille <akim@epita.fr>
2320 * src/nullable.h: New file.
2321 Propagate its inclusion.
2322 * src/nullable.c: Formatting changes.
2324 2000-10-02 Akim Demaille <akim@epita.fr>
2326 * src/reduce.h: New file.
2327 Propagate its inclusion.
2328 * src/reduce.c: Topological sort and other formatting changes.
2329 (bool, TRUE, FALSE): Move their definition to...
2330 * src/system.h: here.
2332 2000-10-02 Akim Demaille <akim@epita.fr>
2334 * src/files.c: Formatting changes.
2335 (tryopen, tryclose, openfiles): Rename as...
2336 (xfopen, xfclose, open_files): this.
2337 (stringappend): static.
2338 * src/files.h: Complete the list of exported symbols.
2341 2000-10-02 Akim Demaille <akim@epita.fr>
2343 * src/reader.h: New file.
2344 Propagate its use instead of tedious list of `extern' and
2346 * src/reader.c: Formatting changes, topological sort,
2349 2000-10-02 Akim Demaille <akim@epita.fr>
2351 * src/lex.h: Prototype `lex.c' exported functions.
2352 * src/reader.c: Adjust.
2353 * src/lex.c: Formatting changes.
2354 (safegetc): Rename as...
2357 2000-10-02 Akim Demaille <akim@epita.fr>
2359 * src/lalr.h: New file.
2360 Propagate its inclusion instead of prototypes and `extern'.
2361 * src/lalr.c: Formatting changes, topological sorting etc.
2363 2000-10-02 Akim Demaille <akim@epita.fr>
2365 * src/output.c (token_actions): Introduce a temporary array,
2366 YYDEFACT, that makes it possible for this function to use
2369 2000-10-02 Akim Demaille <akim@epita.fr>
2371 `user_toknums' is output as a `short[]' in `output.c', while it is
2372 defined as a `int[]' in `reader.c'. For consistency with the
2373 other output tables, `user_toknums' is now defined as a table of
2376 * src/reader.c (user_toknums): Be a short table instead of an int
2378 Adjust dependencies.
2380 Factor the short table outputs.
2382 * src/output.c (output_short_table): New function.
2383 * src/output.c (output_gram, output_stos, output_rule_data)
2384 (output_base, output_table, output_check): Use it.
2386 2000-10-02 Akim Demaille <akim@epita.fr>
2388 * src/output.c (output): Topological sort of the functions, in
2389 order to get rid of the `static' prototypes.
2390 No longer use `register'.
2391 * src/output.h: New file.
2392 Propagate its inclusion in files explicitly prototyping functions
2395 2000-09-21 Akim Demaille <akim@epita.fr>
2397 * src/atgeneral.m4: Update from Autoconf.
2399 2000-09-21 Akim Demaille <akim@epita.fr>
2401 * src/closure.h: New file.
2402 * src/closure.c: Formatting changes, topological sort over the
2403 functions, use of closure.h.
2404 (initialize_closure, finalize_closure): Rename as...
2405 (new_closure, free_closure): these. Adjust dependencies.
2406 * src/LR0.c: Formatting changes, topological sort, use of
2408 (initialize_states): Rename as...
2410 * src/Makefile.am (noinst_HEADERS): Adjust.
2412 2000-09-20 Akim Demaille <akim@epita.fr>
2414 * src/acconfig.h: Don't protect config.h against multiple
2416 Don't define PARAMS.
2417 * src/system.h: Define PARAMS.
2418 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2419 purpose of config.h. system.h must not try to fix wrong
2420 definitions in config.h.
2422 2000-09-20 Akim Demaille <akim@epita.fr>
2424 * src/derives.h: New file.
2425 * src/main.c, src/derives.h: Use it.
2427 * src/Makefile.am (noinst_HEADERS): Adjust.
2429 2000-09-20 Akim Demaille <akim@epita.fr>
2431 * tests/atgeneral.m4: Update from Autoconf.
2432 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2433 (AT_CHECK_CALC): New macros.
2434 Use these macros to test bison with options `', `--raw',
2435 `--debug', `--yacc', `--yacc --debug'.
2437 2000-09-19 Akim Demaille <akim@epita.fr>
2439 * src/output.c: Formatting changes.
2440 * src/machine.h: Remove, leaving its contents in...
2441 * src/system.h: here.
2443 Adjust all dependencies on stdio.h and machine.h.
2444 * src/getargs.h: New file.
2445 Let all `extern' declarations about getargs.c be replaced with
2446 inclusion of `getargs.h'.
2447 * src/Makefile.am (noinst_HEADERS): Adjust.
2449 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2451 (yyerror): Returns void, not int.
2452 * doc/bison.texinfo: Formatting changes.
2454 2000-09-19 Akim Demaille <akim@epita.fr>
2456 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2459 2000-09-18 Akim Demaille <akim@epita.fr>
2461 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2462 * src/Makefile.am (INCLUDES): Don't.
2463 Be ready to fetch headers in lib/.
2465 2000-09-18 Akim Demaille <akim@epita.fr>
2467 * doc/bison.texinfo: Update the copyright.
2468 ANSIfy and GNUify the examples.
2469 Remove the old menu.
2471 2000-09-18 Akim Demaille <akim@epita.fr>
2473 First set of tests: use the `calc' example from the documentation.
2475 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2476 is defined only when YYDEBUG is.
2477 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2478 * src/files.c (tryopen, tryclose): Formatting changes.
2479 Move to the top and be static.
2480 * src/reader.c (read_signed_integer): Likewise.
2481 * tests/calc.m4: New file.
2482 * Makefile.am, suite.m4: Adjust.
2483 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2485 2000-09-18 Akim Demaille <akim@epita.fr>
2487 Add support for an Autotest test suite for Bison.
2489 * m4/m4.m4, m4/atconfig.m4: New files.
2490 * m4/Makefile.am (EXTRA_DIST): Adjust.
2491 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2493 * src/getargs.c: Display a more standard --version message.
2494 * src/reader.c (reader): Formatting changes.
2495 No longer depend upon VERSION_STRING.
2496 * configure.in: No longer use `dnl'.
2497 Set up the test suite and the new directory `tests/.
2498 (VERSION_STRING): Remove.
2500 2000-04-14 Akim Demaille <akim@epita.fr>
2502 * src/reader.c (copy_comment2): New function, same as former
2503 `copy_comment', but outputs into two FILE *.
2504 (copy_comment): Use it.
2505 (parse_union_decl): Use it.
2506 (get_type, parse_start_decl): Use the same `invalid' message.
2507 (parse_start_decl, parse_union_decl): Use the same `multiple'
2509 (parse_union_decl, copy_guard, copy_action): Use the same
2510 `unmatched' message.
2511 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2513 2000-03-31 Akim Demaille <akim@epita.fr>
2515 * src/files.c (tryopen, tryclose): Move to the top.
2518 2000-03-31 Akim Demaille <akim@epita.fr>
2520 * src/main.c (main): Don't call `done', exit does it.
2522 2000-03-31 Akim Demaille <akim@epita.fr>
2524 * allocate.c: s/return (foo)/return foo/.
2527 * output.c: Likewise.
2528 * reader.c: Likewise.
2529 * symtab.c: Likewise.
2530 * vmsgetargs.c: Likewise.
2532 2000-03-31 Akim Demaille <akim@epita.fr>
2534 Clean up the error reporting functions.
2536 * src/report.c: New file.
2537 * src/report.h: Likewise.
2538 * src/Makefile.am: Adjust.
2539 * m4/error.m4: New file.
2540 * m4/Makefile.am: Adjust.
2541 * configure.in (jm_PREREQ_ERROR): Call it.
2542 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2544 (fatal, fatals): Remove. All callers use complain.c::fatal.
2545 (warn, warni, warns, warnss, warnss): Remove. All callers use
2546 complain.c::complain.
2547 (toomany): Remove, use fatal instead.
2548 * src/files.c (done): No argument, use complain_message_count.
2549 * src/main.c (main): Register `done' to `atexit'.
2551 * src/getargs.c (usage): More `fputs', less `fprintf'.
2553 2000-03-28 Akim Demaille <akim@epita.fr>
2555 * lib/: New directory.
2556 * Makefile.am (SUBDIRS): Adjust.
2557 * configure.in: Adjust.
2558 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2560 * src/alloca.c: Moved to lib/.
2561 * src/getopt.c: Likewise.
2562 * src/getopt1.c: Likewise.
2563 * src/getopt.h: Likewise.
2564 * src/ansi2knr.c: Likewise.
2565 * src/ansi2knr.1: Likewise.
2566 * src/Makefile.am: Adjust.
2567 * lib/Makefile.am: New file.
2569 2000-03-28 Akim Demaille <akim@epita.fr>
2571 * src/getargs.c (usage): Refresh the help message.
2573 2000-03-17 Akim Demaille <akim@epita.fr>
2575 * src/getopt1.c: Updated from textutils 2.0e
2576 * src/getopt.c: Likewise.
2577 * src/getopt.h: Likewise.
2579 2000-03-17 Akim Demaille <akim@epita.fr>
2581 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2582 the file name, not the whole `#line LINE FILE'.
2584 2000-03-17 Akim Demaille <akim@epita.fr>
2586 On syntax errors, report the token on which we choked.
2588 * src/bison.s1 (yyparse): In the label yyerrlab, when
2589 YYERROR_VERBOSE, add yychar in msg.
2591 2000-03-17 Akim Demaille <akim@epita.fr>
2593 * src/reader.c (copy_at): New function.
2594 (copy_guard): Use it.
2595 (copy_action): Use it.
2597 2000-03-17 Akim Demaille <akim@epita.fr>
2599 Be kind to translators, save some useless translations.
2601 * src/main.c (banner): New function.
2602 (fatal_banner): Use it.
2603 (warn_banner): Use it.
2605 2000-03-17 Akim Demaille <akim@epita.fr>
2607 * src/reader.c (copy_definition): Use copy_string and
2608 copy_comment. Removed now unused `match', `ended',
2610 (copy_comment, copy_string): Moved, to be visible from
2613 2000-03-17 Akim Demaille <akim@epita.fr>
2615 * src/reader.c (copy_string): Declare `static inline'. No
2616 problems with inline, since it is checked by configure.
2617 (copy_comment): Likewise.
2619 2000-03-17 Akim Demaille <akim@epita.fr>
2621 * src/reader.c (packsymbols): Formatting changes.
2623 2000-03-17 Akim Demaille <akim@epita.fr>
2625 * src/reader.c (copy_comment): New function, factored out from:
2626 (copy_action): Use it. Removed now unused `match', `ended',
2628 (copy_guard): Likewise.
2630 2000-03-17 Akim Demaille <akim@epita.fr>
2632 * src/reader.c (copy_string): New function, factored out from:
2633 (copy_action): Use it.
2634 (copy_guard): Likewise.
2636 2000-03-17 Akim Demaille <akim@epita.fr>
2638 Change the handling of @s so that they behave exactly like $s.
2639 There is now a pseudo variable @$ (readble and writable), location
2640 of the lhs of the rule (by default ranging from the location of
2641 the first symbol of the rhs, to the location of the last symbol,
2642 or, if the rhs is empty, YYLLOC).
2644 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2646 (yyparse): When providing a default semantic action, provide a
2647 default location action.
2648 (after the $): No longer change `*YYLSP', just stack YYLOC the
2649 same way you stack YYVAL.
2650 * src/reader.c (read_declarations): Use warns.
2651 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2652 (copy_action, case '@'): Likewise.
2653 Use a standard error message, to save useless work from
2656 2000-03-17 Akim Demaille <akim@epita.fr>
2658 * src/bison.s1: Formatting and cosmetics changes.
2659 * src/reader.c: Likewise.
2660 Update the Copyright notice.
2662 2000-03-17 Akim Demaille <akim@epita.fr>
2664 * src/bison.s1 (#line): All set to `#line' only, since the
2665 Makefile now handles them.
2667 2000-03-16 Akim Demaille <akim@epita.fr>
2669 * src/output.c (output_rule_data): Output the documentation of
2671 (Copyright notice): Update.
2674 2000-03-16 Akim Demaille <akim@epita.fr>
2676 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2677 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2678 One `#if YYDEBUG' remains, since it uses variables which are
2679 defined only if `YYDEBUG != 0'.
2681 2000-03-16 Akim Demaille <akim@epita.fr>
2683 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2684 and related variables so that the similarities are highlighted.
2686 2000-03-16 Akim Demaille <akim@epita.fr>
2688 * src/bison.s1: Properly indent CPP directives.
2690 2000-03-16 Akim Demaille <akim@epita.fr>
2692 * src/bison.s1: Properly indent the `alloca' CPP section.
2694 2000-03-16 Akim Demaille <akim@epita.fr>
2696 Do not hard code values of directories in `configure.in'.
2697 Update the `configure' tool chain.
2699 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2701 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2702 (AC_OUTPUT): Add m4/Makefile.
2703 Bump to bison 1.28a, 1.29 has never been released.
2704 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2705 handled via src/Makefile.am.
2706 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2707 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2709 * Makefile.am (SUBDIRS): Add m4.
2710 (ACLOCAL_AM_FLAGS): New variable.
2711 (AUTOMAKE_OPTIONS): Add check-news.
2712 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2713 the proper line number and file name.
2714 (DEFS): Propagate the location of bison library files and of the
2716 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2718 * acinclude.m4: Remove, replaced by the directory m4.
2719 * m4/Makefile.am (EXTRA_DIST): New variable.
2720 * m4/gettext.m4: New file, from the fileutils.
2721 * m4/lcmessage.m4: Likewise
2722 * m4/progtest.m4: Likewise.
2723 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2725 2000-03-10 Akim Demaille <akim@epita.fr>
2728 Formatting changes of various comments.
2729 Respect the GNU coding standards at various places.
2730 Don't use `_()' when no translation is needed.
2732 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2735 OS/2 honors TMPDIR environment variable.
2737 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2739 * doc/bison.texinfo: Tweaked spelling and grammar.
2741 Removed reference to price of printed copy.
2742 Mention BISON_SIMPLE and BISON_HAIRY.
2744 1999-12-13 Jesse Thilo <jthilo@gnu.org>
2746 * configure.in, NEWS:
2747 Bison 1.29 released.
2749 1999-10-27 Jesse Thilo <jthilo@gnu.org>
2751 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2752 Added reference card.
2754 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2756 * po/ru.po: Added Russian translation.
2758 1999-07-26 Jesse Thilo <jthilo@gnu.org>
2760 * configure.in: Added Russian translation.
2762 1999-07-06 Jesse Thilo <jthilo@gnu.org>
2764 * configure.in, NEWS, README:
2765 Released version 1.28.
2767 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2770 Squashed redefinition warning on some systems.
2772 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2773 Have configure build version string instead of relying on ANSI string
2776 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2778 * po/POTFILES.in: Got rid of version.c.
2780 1999-06-14 Jesse Thilo <jthilo@gnu.org>
2782 * acconfig.h, configure.in:
2783 Have configure build version string instead of relying on ANSI string
2786 1999-06-08 Jesse Thilo <jthilo@gnu.org>
2789 Dropped mention of `+' for long-named options.
2791 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2793 * src/files.c: Added <unistd.h> for unlink().
2795 * src/Makefile.am, src/system.h:
2798 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2800 * README: Added a FAQ list.
2802 * configure.in, acconfig.h:
2805 1999-05-30 Jesse Thilo <jthilo@gnu.org>
2807 * doc/FAQ, doc/Makefile.am:
2810 1999-05-19 Jesse Thilo <jthilo@gnu.org>
2812 * src/alloc.h, src/symtab.h, src/version.c:
2813 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2815 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2817 * src/.cvsignore, src/Makefile.am:
2818 Reorganized: sources in `src', documentation in `doc'.
2820 * src/lex.c (literalchar):
2821 fixed the code for escaping double quotes (thanks
2824 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2826 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2827 Adjusted paths to reflect directory reorganization.
2829 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2831 * doc/.cvsignore, doc/Makefile.am:
2832 Reorganized: sources in `src', documentation in `doc'.
2834 1999-04-18 Jesse Thilo <jthilo@gnu.org>
2837 Updated AC_INIT file to reflect directory reorganization.
2839 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2840 Reorganized: sources in `src', documentation in `doc'.
2842 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2845 Don't declare calloc() and realloc() if not necessary.
2847 1999-04-13 Jesse Thilo <jthilo@gnu.org>
2849 * configure.in, acconfig.h, acinclude.m4:
2850 Don't declare calloc() and realloc() if not necessary.
2852 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2854 * po/.cvsignore: Added i18n support.
2856 1999-03-23 Jesse Thilo <jthilo@gnu.org>
2858 * acconfig.h, configure.in, Makefile.am:
2861 1999-03-22 Jesse Thilo <jthilo@gnu.org>
2863 * src/bison.s1: Fixed #line numbers.
2865 1999-03-15 Jesse Thilo <jthilo@gnu.org>
2867 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2868 Added PO files from Translation Project.
2870 1999-03-03 Jesse Thilo <jthilo@gnu.org>
2873 Added support for non-ANSI compilers (ansi2knr).
2875 1999-02-16 Jesse Thilo <jthilo@gnu.org>
2877 * configure.in: Bumped version number to 1.27.
2880 Added `bison.simple' to list of files removed by `make distclean'.
2882 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2884 * src/files.c, src/files.h:
2885 Defined locations of parser files in config.h instead of Makefile.
2887 1999-02-12 Jesse Thilo <jthilo@gnu.org>
2889 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2890 Defined locations of parser files in config.h instead of Makefile.
2892 1999-02-09 Jesse Thilo <jthilo@gnu.org>
2895 Removed inappropriate use of $< macro.
2897 1999-02-05 Jesse Thilo <jthilo@gnu.org>
2899 * po/Makefile.in.in, po/POTFILES.in:
2900 Add `po' directory skeleton.
2902 1999-01-27 Jesse Thilo <jthilo@gnu.org>
2904 * README: Document help-bison list.
2906 * configure.in: Add check for mkstemp().
2908 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2910 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2911 Hush a few compiler warnings.
2914 Add tryclose(), which verifies that fclose was successful.
2915 Hush a couple of compiler warnings.
2917 1999-01-20 Jesse Thilo <jthilo@gnu.org>
2919 * Makefile.am, OChangeLog:
2920 ChangeLog is now automatically generated. Include the old version as
2923 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2925 * 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:
2928 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2930 * doc/bison.texinfo: Fix formatting glitch.
2932 * doc/bison.texinfo: Update FSF address.
2934 1999-01-14 Jesse Thilo <jthilo@gnu.org>
2936 * acconfig.h: Update FSF address.
2938 1999-01-08 Jesse Thilo <jthilo@gnu.org>
2941 Don't define PACKAGE here, since config.h defines it.
2943 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2945 * src/reader.c: Update copyright date.
2948 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2949 favor of output directly to stderr (avoids buffer overruns).
2951 * src/reader.c: Some checks for premature EOF.
2953 * 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:
2954 Use prototypes if the compiler understands them.
2956 * src/files.c: Honor TMPDIR on Unix hosts.
2957 Use prototypes if the compiler understands them.
2960 Fix a couple of buffer overrun bugs.
2961 Use prototypes if the compiler understands them.
2963 * src/system.h: Include unistd.h and ctype.h.
2964 Use #ifdef instead of #if for NLS symbols.
2966 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2968 * doc/bison.texinfo:
2969 Delete comment "consider using @set for edition number, etc..." since
2970 we now are doing so.
2972 1998-12-30 Jesse Thilo <jthilo@gnu.org>
2975 Use prototypes if the compiler understands them.
2977 * NEWS: Document 1.26 highlights.
2979 * Makefile.am: Require Automake 1.3 or later.
2982 Use prototypes if the compiler understands them.
2984 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2987 Use VERSION symbol from automake for version number.
2989 1998-12-29 Jesse Thilo <jthilo@gnu.org>
2991 * acconfig.h, configure.in, version.cin:
2992 Use VERSION symbol from automake for version number.
2994 1998-11-28 Jesse Thilo <jthilo@gnu.org>
2997 Distribute original version of simple parser (bison.s1), not built
2998 version (bison.simple).
3000 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3002 * doc/bison.texinfo: Add info dir entry.
3004 * doc/bison.texinfo:
3005 Let automake put version number into documentation.
3007 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3009 * src/bison.cld, src/build.com, src/vmshlp.mar:
3010 Add non-RCS files from /gd/gnu/bison.
3012 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3015 Document the BISON_HAIRY and BISON_SIMPLE variables.
3017 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3019 * src/version.c: Build version.c automatically.
3022 Fix token numbering (used to start at 258, not 257).
3024 * src/system.h: Include config.h.
3026 * src/getargs.c: Update bug report address.
3028 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3029 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3031 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3034 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3036 * configure.in, version.cin:
3037 Build version.c automatically.
3039 * AUTHORS: Add AUTHORS file.
3041 * README: Update bug report address.
3044 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3046 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3049 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3051 * doc/bison.texinfo: Clean up some formatting.
3053 1998-05-05 Richard Stallman <rms@gnu.org>
3055 * doc/bison.texinfo:
3056 Explain better why to make a pure parser.
3058 1998-01-05 Richard Stallman <rms@gnu.org>
3060 * src/files.c (openfiles):
3061 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3062 find a temporary directory, if possible. Do not unlink files while
3065 1997-08-25 Richard Stallman <rms@gnu.org>
3067 * src/reader.c (stack_offset;):
3068 Change some warni to warns.
3070 * src/lex.c (literalchar): Use warns, not warni.
3072 1997-06-28 Richard Stallman <rms@gnu.org>
3074 * src/bison.s1: Add a Bison version comment.
3076 * src/main.c (fatal, warn, berror):
3079 1997-06-28 Richard Stallman <rms@gnu.org>
3081 * Makefile.in (bison_version): New variable.
3082 (dist): Use that variable.
3083 (bison.s1): Substitute the Bison version into bison.simple.
3085 * bison.simple: Add a Bison version comment.
3087 1997-06-18 Richard Stallman <rms@gnu.org>
3089 * src/main.c (fatal, warn, berror):
3090 Make error messages standard.
3091 (toomany): Improve error message text.
3093 * 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:
3094 new.h renamed to alloc.h.
3096 1997-06-18 Richard Stallman <rms@gnu.org>
3098 * Makefile.in: new.h renamed to alloc.h.
3100 1997-05-24 Richard Stallman <rms@gnu.org>
3102 * src/lex.c (literalchar):
3103 Fix the code for escaping \, " and '.
3105 (lex): Avoid trouble when there are many chars
3106 to discard in a char literal with just several chars in it.
3108 1997-05-17 Richard Stallman <rms@gnu.org>
3111 Use malloc, if using alloca is troublesome.
3112 (YYSTACK_USE_ALLOCA): New flag macro.
3113 Define it for some systems and compilers.
3114 (YYSTACK_ALLOC): New macro.
3115 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3116 If it was malloc'd, free it.
3118 1997-05-17 Richard Stallman <rms@gnu.org>
3121 Use malloc, if using alloca is troublesome.
3122 (YYSTACK_USE_ALLOCA): New flag macro.
3123 Define it for some systems and compilers.
3124 (YYSTACK_ALLOC): New macro.
3125 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3126 If it was malloc'd, free it.
3128 1997-04-23 Richard Stallman <rms@gnu.org>
3131 (alloca) [__hpux]: Always define as __builtin_alloca.
3133 1997-04-23 Richard Stallman <rms@gnu.org>
3136 (alloca) [__hpux]: Always define as __builtin_alloca.
3138 1997-04-22 Richard Stallman <rms@gnu.org>
3141 [__hpux]: Include alloca.h (right for HPUX 10)
3142 instead of declaring alloca (right for HPUX 9).
3144 * src/bison.s1 (__yy_memcpy):
3145 Declare arg `count' as unsigned int.
3146 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3148 1997-04-22 Richard Stallman <rms@gnu.org>
3151 [__hpux]: Include alloca.h (right for HPUX 10)
3152 instead of declaring alloca (right for HPUX 9).
3154 * bison.simple (__yy_memcpy):
3155 Declare arg `count' as unsigned int.
3156 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3158 1997-01-03 Richard Stallman <rms@gnu.org>
3160 * src/allocate.c: [__STDC__ or _MSC_VER]:
3161 Declare calloc and realloc to return void *.
3163 1997-01-02 Richard Stallman <rms@gnu.org>
3166 [_MSC_VER]: Include stdlib.h and process.h.
3167 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3169 * src/main.c (main): Return FAILURE as a value.
3170 (printable_version): Declare arg as int, not char.
3172 1997-01-02 Richard Stallman <rms@gnu.org>
3174 * Makefile.in (dist):
3175 Explicitly check for symlinks, and copy them.
3177 1996-12-19 Richard Stallman <rms@gnu.org>
3180 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3182 1996-12-18 Paul Eggert <eggert@gnu.org>
3184 * src/bison.s1 (yyparse):
3185 If __GNUC__ and YYPARSE_PARAM are both defined,
3186 declare yyparse to have a void * argument.
3188 1996-12-18 Paul Eggert <eggert@gnu.org>
3190 * bison.simple (yyparse):
3191 If __GNUC__ and YYPARSE_PARAM are both defined,
3192 declare yyparse to have a void * argument.
3194 1996-12-17 Richard Stallman <rms@gnu.org>
3196 * src/reduce.c (nbits): Add some casts.
3198 1996-08-12 Richard Stallman <rms@gnu.org>
3200 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3202 1996-08-12 Richard Stallman <rms@gnu.org>
3204 * bison.simple: Test _MSDOS as well as _MSDOS_.
3206 1996-07-31 Richard Stallman <rms@gnu.org>
3209 [__sun && __i386]: Include alloca.h.
3211 1996-07-31 Richard Stallman <rms@gnu.org>
3214 [__sun && __i386]: Include alloca.h.
3216 1996-07-30 Richard Stallman <rms@gnu.org>
3218 * src/bison.s1: Comment change.
3220 * src/bison.s1: Test _MSDOS_, not MSDOS.
3222 1996-07-30 Richard Stallman <rms@gnu.org>
3224 * bison.simple: Comment change.
3226 * bison.simple: Test _MSDOS_, not MSDOS.
3228 1996-06-01 Richard Stallman <rms@gnu.org>
3230 * 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:
3231 Insert `_' macro around many string constants.
3234 Insert `_' macro around many string constants.
3236 (main): Call setlocale, bindtextdomain and textdomain.
3238 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3239 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3240 [ENABLE_NLS]: Include libintl.h.
3241 [ENABLE_NLS] (gettext): Define.
3242 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3243 (N_, PACKAGE, LOCALEDIR): New macros.
3245 1996-06-01 Richard Stallman <rms@gnu.org>
3247 * POTFILES.in: New file.
3249 * Makefile.in (allocate.o):
3250 Define target explicitly.
3252 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3253 (LDFLAGS): Set to @LDFLAGS@.
3254 (configure): Run autoconf only if preceding `cd' succeeds.
3255 (bison.s1): Redirect output to temporary file then move the
3256 temporary to the target, rather than redirecting directly to bison.s1.
3257 (clean): Remove config.status and config.log.
3258 (distclean): Don't remove config.status here.
3260 1996-05-12 Richard Stallman <rms@gnu.org>
3263 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3265 1996-05-12 Richard Stallman <rms@gnu.org>
3268 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3270 1996-05-11 Richard Stallman <rms@gnu.org>
3272 * src/bison.s1 (__yy_memcpy):
3273 Really reorder the args, as was supposedly done on Feb 14 1995.
3274 (yyparse): Calls changed accordingly.
3276 1996-05-11 Richard Stallman <rms@gnu.org>
3278 * Makefile.in (dist): Don't use $(srcdir).
3280 * bison.simple (__yy_memcpy):
3281 Really reorder the args, as was supposedly done on Feb 14 1995.
3282 (yyparse): Calls changed accordingly.
3284 1996-01-27 Richard Stallman <rms@gnu.org>
3286 * src/output.c (output_rule_data):
3287 Test YYERROR_VERBOSE in the conditional
3288 around the definition of ttyname.
3290 1995-12-29 Richard Stallman <rms@gnu.org>
3293 Fix line numbers in #line commands.
3295 1995-12-29 Richard Stallman <rms@gnu.org>
3298 Fix line numbers in #line commands.
3300 1995-12-27 Richard Stallman <rms@gnu.org>
3302 * src/bison.s1 (YYPARSE_PARAM_DECL):
3303 In C++, make it always null.
3304 (YYPARSE_PARAM_ARG): New macro.
3305 (yyparse): Use YYPARSE_PARAM_ARG.
3307 1995-12-27 Richard Stallman <rms@gnu.org>
3309 * bison.simple (YYPARSE_PARAM_DECL):
3310 In C++, make it always null.
3311 (YYPARSE_PARAM_ARG): New macro.
3312 (yyparse): Use YYPARSE_PARAM_ARG.
3314 1995-11-29 Richard Stallman <rms@gnu.org>
3316 * doc/bison.texinfo:
3317 Describe literal string tokens, %raw, %no_lines, %token_table.
3319 1995-11-29 Daniel Hagerty <hag@gnu.org>
3321 * doc/bison.texinfo: Fixed update date
3323 1995-10-16 Richard Stallman <rms@gnu.org>
3325 * src/version.c: Version 1.25.
3327 1995-10-16 Richard Stallman <rms@gnu.org>
3329 * NEWS: *** empty log message ***
3331 1995-10-16 Richard Stallman <rms@gnu.org>
3333 * doc/bison.1, doc/bison.rnh:
3336 1995-10-15 Richard Stallman <rms@gnu.org>
3338 * src/vmsgetargs.c, src/getargs.c:
3339 Added -n, -k, and -raw switches.
3340 (noparserflag, toknumflag, rawtoknumflag): New variables.
3342 * src/symtab.h (SALIAS):
3343 New #define for adding aliases to %token.
3344 (struct bucket): Added `alias' field.
3346 * src/reduce.c (reduce_grammar):
3347 Revise error message.
3348 (print_notices): Remove final `.' from error message.
3350 * src/reader.c (reader_output_yylsp):
3352 (readgram): Use `#if 0' around code that accepted %command
3353 inside grammar rules: The documentation doesn't allow it,
3354 and it will fail since the %command processors scan for the next %.
3355 (parse_token_decl): Extended the %token
3356 declaration to allow a multi-character symbol as an alias.
3357 (parse_thong_decl): New function.
3358 (read_declarations): Added %thong declarations.
3359 (read_declarations): Handle NOOP to deal with allowing
3360 % declarations as another means to specify the flags.
3361 (readgram): Allow %prec prior to semantics embedded in a rule.
3362 (skip_to_char, read_declarations, copy_definition)
3363 (parse_token_decl, parse_start_decl, parse_type_decl)
3364 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3365 (get_type_name, copy_guard, copy_action, readgram)
3366 (get_type, packsymbols): Revised most error messages.
3367 Changed `fatal' to `warnxxx' to avoid aborting for error.
3368 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3369 (read_declarations): Improve the error message for
3370 an invalid character. Do not abort.
3371 (read_declarations, copy_guard, copy_action): Use
3372 printable_version to avoid unprintable characters in printed output.
3373 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3374 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3375 Allow the type of a non-terminal can be given
3376 more than once, as long as all specifications give the same type.
3379 (output_headers, output_trailers, output, output_gram)
3380 (output_rule_data): Implement noparserflag variable.
3381 Implement toknumflag variable.
3382 (output): Call reader_output_yylsp to output LTYPESTR.
3384 * src/main.c (main):
3385 If reader sees an error, don't process the grammar.
3386 (fatals): Updated to not use VARARGS1.
3387 (printable_version, int_to_string, warn, warni, warns, warnss)
3388 (warnsss): New error reporting functions. Avoid abort for error.
3391 Added THONG and NOOP for alias processing.
3392 Added SETOPT for the new code that allows setting options with %flags.
3395 Include getopt.h. Add some extern decls.
3396 (safegetc): New function to deal with EOF gracefully.
3397 (literalchar); new function to deal with reading \ escapes.
3398 (lex): Use literalchar.
3399 (lex): Implemented "..." tokens.
3400 (literalchar, lex, parse_percent_token): Made tokenbuffer
3401 always contain the token. This includes growing the token
3402 buffer while reading an integer.
3403 (parse_percent_token): Replaced if-else statement with percent_table.
3404 (parse_percent_token): Added % declarations as another
3405 way to specify the flags -n, -l, and -r. Also added hooks for
3406 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3407 major changes to files.c.
3408 (lex) Retain in the incoming stream a character following
3410 (skip_white_space, lex): Revised most error messages
3411 and changed fatal to warn to avoid aborting.
3412 (percent_table): Added %thong declarations.
3414 * src/gram.h: Comment changes.
3416 * src/files.c (openfiles, open_extra_files, done):
3418 and actfile file. Handle noparserflag. Both for -n switch.
3420 * src/conflicts.c (resolve_sr_conflict):
3421 Remove use of alloca.
3423 1995-06-01 Jim Meyering <meyering@gnu.org>
3425 * doc/bison.texinfo: *** empty log message ***
3427 1995-05-06 Richard Stallman <rms@gnu.org>
3429 * src/bison.s1: Comment change.
3431 1995-05-06 Richard Stallman <rms@gnu.org>
3433 * bison.simple: Comment change.
3435 1995-05-03 Richard Stallman <rms@gnu.org>
3437 * src/version.c: Version now 1.24.
3439 * src/bison.s1: Change distribution terms.
3441 * src/version.c: Version now 1.23.
3443 1995-05-03 Richard Stallman <rms@gnu.org>
3445 * doc/bison.texinfo:
3446 Rewrite "Conditions for Using Bison".
3447 Update version to 1.24.
3449 1995-05-03 Richard Stallman <rms@gnu.org>
3451 * bison.simple: Change distribution terms.
3453 1995-02-23 Richard Stallman <rms@gnu.org>
3455 * src/files.c: Test __VMS_POSIX as well as VMS.
3457 1995-02-14 Jim Meyering <meyering@gnu.org>
3459 * src/bison.s1 (__yy_memcpy):
3460 Renamed from __yy_bcopy to avoid
3461 confusion. Reverse FROM and TO arguments to be consistent with
3464 1995-02-14 Jim Meyering <meyering@gnu.org>
3466 * bison.simple (__yy_memcpy):
3467 Renamed from __yy_bcopy to avoid
3468 confusion. Reverse FROM and TO arguments to be consistent with
3471 1994-11-10 David J. MacKenzie <djm@gnu.org>
3477 * Makefile.in (DISTFILES): Include NEWS.
3479 * Makefile.in (DISTFILES):
3480 Include install-sh, not install.sh.
3482 * configure.in: Update to Autoconf v2 macro names.
3484 1994-10-05 David J. MacKenzie <djm@gnu.org>
3486 * Makefile.in: fix typo
3488 * Makefile.in (prefix, exec_prefix):
3489 Let configure set them.
3491 1994-09-28 David J. MacKenzie <djm@gnu.org>
3493 * Makefile.in: Set datadir to $(prefix)/share.
3495 1994-09-15 Richard Stallman <rms@gnu.org>
3498 Update copyright notice and GPL version.
3500 1994-09-15 Richard Stallman <rms@gnu.org>
3503 Update copyright notice and GPL version.
3505 1994-07-12 Richard Stallman <rms@gnu.org>
3507 * src/reduce.c, src/reader.c:
3510 1994-05-05 David J. MacKenzie <djm@gnu.org>
3512 * Makefile.in: entered into RCS
3514 1994-03-26 Richard Stallman <rms@gnu.org>
3516 * src/bison.s1: entered into RCS
3518 1994-03-26 Richard Stallman <rms@gnu.org>
3520 * bison.simple: entered into RCS
3522 1994-03-25 Richard Stallman <rms@gnu.org>
3524 * src/main.c: entered into RCS
3526 1994-03-24 Richard Stallman <rms@gnu.org>
3528 * src/conflicts.c: entered into RCS
3530 1994-01-02 Richard Stallman <rms@gnu.org>
3532 * Makefile.in: *** empty log message ***
3534 1993-11-21 Richard Stallman <rms@gnu.org>
3536 * src/bison.s1: *** empty log message ***
3538 1993-11-21 Richard Stallman <rms@gnu.org>
3540 * doc/bison.texinfo: entered into RCS
3542 * doc/bison.texinfo: *** empty log message ***
3544 1993-11-21 Richard Stallman <rms@gnu.org>
3546 * bison.simple: *** empty log message ***
3548 1993-10-25 David J. MacKenzie <djm@gnu.org>
3550 * doc/bison.texinfo: *** empty log message ***
3552 1993-10-19 Richard Stallman <rms@gnu.org>
3554 * src/bison.s1: *** empty log message ***
3556 1993-10-19 Richard Stallman <rms@gnu.org>
3558 * bison.simple: *** empty log message ***
3560 1993-10-14 Richard Stallman <rms@gnu.org>
3562 * src/bison.s1: *** empty log message ***
3564 1993-10-14 Richard Stallman <rms@gnu.org>
3566 * bison.simple: *** empty log message ***
3568 1993-09-14 David J. MacKenzie <djm@gnu.org>
3570 * doc/bison.texinfo: *** empty log message ***
3572 1993-09-13 Noah Friedman <friedman@gnu.org>
3574 * Makefile.in: *** empty log message ***
3576 1993-09-10 Richard Stallman <rms@gnu.org>
3578 * src/conflicts.c: *** empty log message ***
3580 * src/system.h: entered into RCS
3582 1993-09-10 Richard Stallman <rms@gnu.org>
3584 * doc/bison.1: entered into RCS
3586 1993-09-06 Noah Friedman <friedman@gnu.org>
3588 * src/version.c: entered into RCS
3590 1993-09-06 Noah Friedman <friedman@gnu.org>
3592 * Makefile.in: *** empty log message ***
3594 1993-07-30 David J. MacKenzie <djm@gnu.org>
3596 * Makefile.in: *** empty log message ***
3598 1993-07-24 Richard Stallman <rms@gnu.org>
3600 * src/bison.s1: *** empty log message ***
3602 1993-07-24 Richard Stallman <rms@gnu.org>
3604 * bison.simple: *** empty log message ***
3606 1993-07-08 David J. MacKenzie <djm@gnu.org>
3608 * Makefile.in: *** empty log message ***
3610 1993-07-04 Richard Stallman <rms@gnu.org>
3612 * src/bison.s1: *** empty log message ***
3614 1993-07-04 Richard Stallman <rms@gnu.org>
3616 * bison.simple: *** empty log message ***
3618 1993-06-26 David J. MacKenzie <djm@gnu.org>
3620 * src/getargs.c: entered into RCS
3622 1993-06-26 David J. MacKenzie <djm@gnu.org>
3624 * doc/bison.texinfo: *** empty log message ***
3626 * doc/bison.1: New file.
3628 1993-06-25 Richard Stallman <rms@gnu.org>
3630 * src/getargs.c: New file.
3632 1993-06-16 Richard Stallman <rms@gnu.org>
3634 * src/bison.s1: *** empty log message ***
3636 1993-06-16 Richard Stallman <rms@gnu.org>
3638 * bison.simple: *** empty log message ***
3640 1993-06-03 Richard Stallman <rms@gnu.org>
3642 * src/bison.s1: New file.
3644 1993-06-03 Richard Stallman <rms@gnu.org>
3646 * doc/bison.texinfo: *** empty log message ***
3648 1993-06-03 Richard Stallman <rms@gnu.org>
3650 * bison.simple: New file.
3652 1993-05-19 Richard Stallman <rms@gnu.org>
3654 * doc/bison.texinfo: New file.
3656 1993-05-07 Noah Friedman <friedman@gnu.org>
3658 * Makefile.in: *** empty log message ***
3660 1993-04-28 Noah Friedman <friedman@gnu.org>
3662 * src/reader.c: *** empty log message ***
3664 1993-04-23 Noah Friedman <friedman@gnu.org>
3666 * src/alloc.h: entered into RCS
3668 1993-04-20 David J. MacKenzie <djm@gnu.org>
3670 * src/version.c: *** empty log message ***
3672 * src/files.c, src/allocate.c:
3675 * src/reader.c: *** empty log message ***
3677 * src/lex.c: entered into RCS
3679 * src/conflicts.c: New file.
3681 * src/symtab.c: entered into RCS
3683 * src/alloc.h: New file.
3685 * src/LR0.c: entered into RCS
3687 1993-04-18 Noah Friedman <friedman@gnu.org>
3689 * src/reader.c: New file.
3691 * src/version.c: *** empty log message ***
3693 1993-04-18 Noah Friedman <friedman@gnu.org>
3695 * Makefile.in: *** empty log message ***
3697 1993-04-17 Noah Friedman <friedman@gnu.org>
3699 * Makefile.in: *** empty log message ***
3701 1993-04-15 Richard Stallman <rms@gnu.org>
3703 * src/main.c, src/files.c:
3706 1993-04-15 Noah Friedman <friedman@gnu.org>
3708 * configure.in: entered into RCS
3710 * configure.in: *** empty log message ***
3712 * configure.in: New file.
3714 1993-04-14 Richard Stallman <rms@gnu.org>
3716 * Makefile.in: New file.
3718 1993-04-13 Richard Stallman <rms@gnu.org>
3720 * src/version.c: New file.
3722 1993-03-25 Richard Stallman <rms@gnu.org>
3724 * src/output.c: entered into RCS
3726 1992-09-25 Richard Stallman <rms@gnu.org>
3728 * configure.bat: entered into RCS
3730 1992-06-22 Richard Stallman <rms@gnu.org>
3732 * src/vmsgetargs.c: entered into RCS
3734 1992-06-22 Richard Stallman <rms@gnu.org>
3736 * doc/bison.rnh: entered into RCS
3738 1992-04-20 David J. MacKenzie <djm@gnu.org>
3740 * README: entered into RCS
3742 1992-01-22 Richard Stallman <rms@gnu.org>
3744 * src/machine.h: entered into RCS
3746 1991-12-21 Richard Stallman <rms@gnu.org>
3748 * src/lalr.c, src/closure.c:
3751 1991-12-20 Richard Stallman <rms@gnu.org>
3753 * src/state.h: entered into RCS
3755 1991-12-18 Richard Stallman <rms@gnu.org>
3757 * src/print.c, src/nullable.c, src/derives.c:
3760 1991-11-03 David J. MacKenzie <djm@gnu.org>
3762 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3765 1988-09-09 Richard Stallman <rms@gnu.org>
3767 * src/bison.hairy: entered into RCS
3769 1987-12-16 Richard Stallman <rms@gnu.org>
3771 * REFERENCES: entered into RCS