1 2001-12-10 Akim Demaille <akim@epita.fr>
3 * src/LR0.h (first_shift, first_reduction): Remove.
4 * src/lalr.c: Don't use first_shift: find shifts through the
8 2001-12-10 Akim Demaille <akim@epita.fr>
10 * src/LR0.c: Attach shifts to states as soon as they are
12 * src/lalr.c (set_state_table): Instead of assigning shifts to
13 state, just assert that the mapping was properly done.
16 2001-12-10 Akim Demaille <akim@epita.fr>
18 * src/LR0.c (insert_start_shift): Rename as...
19 (insert_start_shifting_state): this.
20 (insert_eof_shifting_state, insert_accepting_state): New.
21 (augment_automaton): Adjust.
22 Better locality of the variables.
23 When looking if the start_symbol is shifted from the initial
24 state, using `while (... symbol != start_symbol ...)' sounds
25 better than `while (... symbol < start_symbol ...)': If fail
26 to see how the order between symbols could be relevant!
28 2001-12-10 Akim Demaille <akim@epita.fr>
30 * src/getargs.h: Don't declare `spec_name_prefix' and
31 `spec_file_prefix', declared by src/files.h.
32 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
33 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
34 * src/output.c (prepare): Adjust.
35 * src/reader.c (symbols_output): Likewise.
36 * src/vmsgetargs.c: Vaguely adjust, but who cares?
39 2001-12-10 Akim Demaille <akim@epita.fr>
41 * src/muscle_tab.c (muscle_init): NULL is a better default than
45 2001-12-10 Akim Demaille <akim@epita.fr>
47 * src/reader.c (reader): Calling symbols_output once is enough.
50 2001-12-10 Akim Demaille <akim@epita.fr>
52 Now that states have a complete set of members, the linked list of
53 reductions is useless: just fill directly the state's reductions
56 * src/state.h (struct reductions): Remove member `number' and
58 * src/LR0.c (first_reduction, last_reduction): Remove.
59 (save_reductions): Don't link the new reductions, store them in
61 * src/lalr.c (set_state_table): No need to attach reductions to
62 states, it's already done.
63 * src/output.c (output_actions): No longer free the shifts, then
64 the reductions, then the states: free all the states and their
68 2001-12-10 Akim Demaille <akim@epita.fr>
70 * src/options.c (OPTN, DRTV, BOTH): New.
71 (option_table): Use them.
74 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
76 * src/options.c: Don't include stdio.h and xalloc.h for the same
80 2001-12-10 Akim Demaille <akim@epita.fr>
82 * src/output.c (output, prepare): Make sure the values of the
83 muscles `action' and `prologue' are 0-terminated.
85 2001-12-10 Akim Demaille <akim@epita.fr>
87 Clean up GCC warnings.
89 * src/reader.c (copy_action): `buf' is not used.
90 (parse_skel_decl): Be static.
91 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
92 * src/options.h (create_long_option_table): Have a real prototype.
93 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
94 (hash_delete_at): Return const void *.
95 Adjust casts to preserve the const.
97 2001-12-10 Akim Demaille <akim@epita.fr>
99 * configure.in: Require 2.52g.
100 M4 is not needed, but AUTOM4TE is.
102 * tests/Makefile.am: Adjust.
105 2001-12-10 Akim Demaille <akim@epita.fr>
107 One structure for states is enough, even though theoretically
108 there are LR(0) states and LALR(1) states.
110 * src/lalr.h (state_t): Remove.
111 (state_table): Be state_t **, not state_t *.
112 * src/state.h (core, CORE_ALLOC): Rename as...
113 (state_t, STATE_ALLOC): this.
114 Add the LALR(1) members: shifts, reductions, errs.
115 * src/LR0.c (state_table): Rename as...
116 (state_hash): this, to avoid name clashes with the global
118 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
119 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
122 2001-12-10 Akim Demaille <akim@epita.fr>
124 Bison dumps core on bash.y.
125 Reported by Pascal Bart.
127 * src/warshall.c (bitmatrix_print): New.
129 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
130 j must be the outer loop.
131 * tests/regression.at (Broken Closure): New.
133 2001-12-05 Akim Demaille <akim@epita.fr>
135 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
137 Reported by Peter Hámorský.
139 2001-12-05 Akim Demaille <akim@epita.fr>
141 * src/conflicts.c (err_table): Remove.
142 (resolve_sr_conflict): Adjust.
143 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
145 (state_t.reductions, state_t.shifts): this.
147 2001-12-05 Akim Demaille <akim@epita.fr>
149 * src/reduce.c (reduce_grammar_tables): No longer disable the
150 removal of useless rules via CPP but via `if (0)', so that the
151 compiler still check the code is valid.
152 For instance, it should have noticed `rline' no longer exists: use
153 the `line' member of rule_t.
154 * src/gram.c (dummy, rline): Remove, unused.
156 2001-12-05 Akim Demaille <akim@epita.fr>
158 * src/output.c (pack_vector): Use assert, not berror.
159 * src/main.c (berror): Remove, unused.
161 2001-12-05 Akim Demaille <akim@epita.fr>
163 New experimental feature: if --verbose --trace output all the
164 items of a state, not only its kernel.
166 * src/print.c (print_core): If `trace_flag', then invoke closure
167 before outputting the items of the state (print_core is no longer
168 a correct name them).
169 (print_results): Invoke new_closure/free_closure if needed.
171 2001-12-05 Akim Demaille <akim@epita.fr>
173 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
174 * src/closure.c, src/closure.h (itemsetsize): Rename as...
175 (nitemset): for consistency with the rest of the project.
177 2001-12-05 Akim Demaille <akim@epita.fr>
179 * src/closure.c (print_closure): Improve.
180 (closure): Use it for printing input and output.
182 2001-12-05 Akim Demaille <akim@epita.fr>
184 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
185 indexed by nonterminals.
187 2001-12-05 Akim Demaille <akim@epita.fr>
189 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
191 * src/warshall.h: Remove accidental duplication of the content.
193 2001-12-05 Akim Demaille <akim@epita.fr>
195 * src/closure.c (set_fderives): De-obfuscate.
197 2001-12-05 Akim Demaille <akim@epita.fr>
199 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
201 2001-12-05 Akim Demaille <akim@epita.fr>
203 * src/closure.c (set_firsts): De-obfuscate.
205 2001-12-05 Akim Demaille <akim@epita.fr>
207 * src/output.c (action_row): De-obfuscate
208 using the good o' techniques: arrays not pointers, variable
209 locality, BITISSET, RESETBIT etc.
211 2001-12-05 Akim Demaille <akim@epita.fr>
213 Pessimize the code to simplify it: from now on, all the states
214 have a valid SHIFTS, which NSHIFTS is possibly 0.
216 * src/LR0.c (shifts_new): Be global and move to..
217 * src/state.c, src/state.h: here.
218 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
219 * src/print_graph: Adjust.
221 2001-12-05 Akim Demaille <akim@epita.fr>
223 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
224 * src/conflicts.c: Use it.
225 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
226 incorrectly ``simplified''.
228 2001-12-05 Akim Demaille <akim@epita.fr>
230 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
231 using the good o' techniques: arrays not pointers, variable
232 locality, BITISSET, RESETBIT etc.
234 2001-12-05 Akim Demaille <akim@epita.fr>
236 * src/state.h (SHIFT_SYMBOL): New.
237 * src/conflicts.c: Use it to deobfuscate.
239 2001-12-05 Akim Demaille <akim@epita.fr>
241 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
242 (print_reductions): De-obfuscate using the good o' techniques:
243 arrays not pointers, variable locality, BITISSET.
245 2001-12-05 Akim Demaille <akim@epita.fr>
247 * src/conflicts.c (print_reductions): Arrays, not pointers.
250 2001-12-05 Akim Demaille <akim@epita.fr>
252 * src/conflicts.c (print_reductions): Pessimize, but clarify.
254 2001-12-05 Akim Demaille <akim@epita.fr>
256 * src/conflicts.c (print_reductions): Improve variable locality.
258 2001-12-05 Akim Demaille <akim@epita.fr>
260 * src/conflicts.c (print_reductions): Pessimize, but clarify.
262 2001-12-05 Akim Demaille <akim@epita.fr>
264 * src/conflicts.c (print_reductions): Improve variable locality.
266 2001-12-05 Akim Demaille <akim@epita.fr>
268 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
269 * src/lalr.c: Use them.
271 2001-12-05 Akim Demaille <akim@epita.fr>
273 * src/LR0.c (augment_automaton): Formatting changes.
274 Better variable locality.
276 2001-12-05 Akim Demaille <akim@epita.fr>
278 * src/lalr.c (matrix_print): New.
280 Use arrays instead of pointers.
282 2001-12-05 Akim Demaille <akim@epita.fr>
284 * src/lalr.c (maxrhs): Move to...
285 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
286 * src/lalr.c (build_relations): Adjust.
288 2001-12-05 Akim Demaille <akim@epita.fr>
290 * src/lalr.c (transpose): Free the memory allocated to the
291 argument, as it is replaced by the results by the unique caller.
292 (build_relations): Merely invoke transpose: it handles the memory
294 Improve variable locality.
295 Avoid variables used as mere abbreviations.
296 (compute_lookaheads): Use arrays instead of pointers.
298 2001-12-05 Akim Demaille <akim@epita.fr>
300 * src/lalr.c (initialize_F): Improve variable locality.
301 Avoid variables used as mere abbreviations.
303 2001-12-05 Akim Demaille <akim@epita.fr>
305 * src/derives.c (print_derives): Display the ruleno.
306 * src/lalr.c (initialize_F, transpose): Better variable locality
307 to improve readability.
308 Avoid variables used as mere abbreviations.
310 2001-12-05 Akim Demaille <akim@epita.fr>
312 * src/lalr.c (traverse): Use arrays instead of pointers.
314 2001-12-05 Akim Demaille <akim@epita.fr>
316 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
317 the handling of squeue.
318 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
320 2001-12-05 Akim Demaille <akim@epita.fr>
322 Because useless nonterminals are now kept alive (instead of being
323 `destroyed'), we now sometimes examine them, and store information
324 related to them. Hence we need to know their number, and adjust
327 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
329 * src/LR0.c (allocate_itemsets): The memory allocated to
330 `symbol_count' was used for two different purpose: once to count
331 the number of occurrences of each symbol, and later reassigned to
332 `shift_symbol', containing the symbol that can be shifted from a
334 Deobfuscate, i.e., allocate, use and free `symbol_count' here
336 (new_itemsets): Allocate `shift_symbol' here.
337 (allocate_itemsets): symbol_count includes useless nonterminals.
339 (free_storage): Use `free', not `XFREE', for pointers that cannot
342 2001-12-05 Akim Demaille <akim@epita.fr>
344 * src/nullable.c (set_nullable): Deobfuscate the handling of
346 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
348 2001-12-05 Akim Demaille <akim@epita.fr>
350 * src/gram.c, src/gram.h (ritem_print): New.
351 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
352 (This useless function was defined only to work around VMS linkers
353 that can't handle compilation units with variables only).
354 * src/reduce.c (dump_grammar): Use it to trace the construction of
357 2001-12-04 Paul Eggert <eggert@twinsun.com>
359 * src/bison.simple (union yyalloc): Change member names
360 to be the same as the stack names.
361 (yyparse): yyptr is now union yyalloc *, not char *.
362 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
363 and may generate better code on some machines.
364 (yystpcpy): Use prototype if __STDC__ is defined, not just
365 if __cplusplus is defined.
367 2001-11-30 Akim Demaille <akim@epita.fr>
369 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
370 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
371 Gettext doesn't compile cleanly, and dies with -Werror.
372 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
373 Include WARNING_CFLAGS here.
374 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
375 before being defined.
377 2001-11-27 Paul Eggert <eggert@twinsun.com>
379 * lib/quotearg.h (quotearg_n, quotearg_n_style):
380 First arg is int, not unsigned.
381 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
382 (SIZE_MAX, UINT_MAX): New macros.
383 (quotearg_n_options): Abort if N is negative.
384 Avoid overflow check on hosts where size_t is 64 bits and int
385 is 32 bits, as overflow is impossible there.
386 Fix off-by-one typo that caused unnecessary reallocation.
388 2001-11-29 Paul Eggert <eggert@twinsun.com>
390 Name space cleanup in generated parser.
392 * doc/bison.texinfo (Bison Parser): Discuss system headers
393 and their effect on the user name space.
396 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
397 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
398 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
400 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
401 on user names when possible.
403 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
404 Simplify test for whather <alloca.h> exists.
406 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
408 (<stdio.h>): Include if YYDEBUG.
410 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
411 ! defined (yyoverflow) && ! defined (yymemcpy).
413 (yymemcpy, yyparse): Rename local variables as needed so that
414 they all begin with 'yy'.
416 (yystrlen, yystpcpy): New functions.
418 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
421 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
422 instead of relying on string.h functions. Use YYSTACK_ALLOC
423 and YYSTACK_FREE instead of malloc and free.
425 2001-11-30 Akim Demaille <akim@epita.fr>
427 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
428 before their first uses.
429 (YYBISON, YYPURE): Move to the top of the output.
431 2001-11-30 Akim Demaille <akim@epita.fr>
433 * tests/reduce.at (Useless Nonterminals): Fix.
435 2001-11-30 Akim Demaille <akim@epita.fr>
437 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
438 if body instead of `;' to pacify GCC's warnings.
440 2001-11-30 Akim Demaille <akim@epita.fr>
442 Instead of mapping the LHS of unused rules to -1, keep the LHS
443 valid, but flag the rules as invalid.
445 * src/gram.h (rule_t): `useful' is a new member.
446 * src/print.c (print_grammar): Adjust.
447 * src/derives.c (set_derives): Likewise.
448 * src/reader.c (packgram, reduce_output): Likewise.
449 * src/reduce.c (reduce_grammar_tables): Likewise.
450 * tests/reduce.at (Underivable Rules, Useless Rules): New.
452 2001-11-30 Akim Demaille <akim@epita.fr>
454 * src/reduce.c (reduce_output): Formatting changes.
455 * src/print.c (print_results, print_grammar): Likewise.
456 * tests/regression.at (Rule Line Numbers)
457 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
459 2001-11-30 Akim Demaille <akim@epita.fr>
461 * src/reduce.c (nonterminals_reduce): Instead of throwing away
462 useless nonterminals, move them at the end of the symbol arrays.
463 (reduce_output): Adjust.
464 * tests/reduce.at (Useless Nonterminals): Adjust.
466 2001-11-30 Akim Demaille <akim@epita.fr>
468 * src/reduce.c: Various comment/formatting changes.
469 (nonterminals_reduce): New, extracted from...
470 (reduce_grammar_tables): here.
471 (reduce_grammar): Call nonterminals_reduce.
473 2001-11-29 Paul Eggert <eggert@twinsun.com>
475 * src/bison.simple (YYSTACK_REALLOC): Remove.
476 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
477 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
479 (union yyalloc): New type.
480 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
481 an arbitrary restriction on hosts where size_t is wider than int.
483 (yyparse): Don't dump core if alloca or malloc fails; instead, report
484 a parser stack overflow. Allocate just one block of memory for all
485 three stacks, instead of allocating three blocks; this typically is
486 faster and reduces fragmentation.
488 Do not limit the number of items in the stack to a value that fits
489 in 'int', as this is an arbitrary limit on hosts with 64-bit
490 size_t and 32-bit int.
492 2001-11-29 Marc Autret <autret_m@epita.fr>
494 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
495 of defining YYERROR_VERBOSE.
496 [AT_DATA]: $4 is now out of C declarations in the prologue.
498 2001-11-28 Marc Autret <autret_m@epita.fr>
500 * src/reader.c (parse_dquoted_param): New.
501 (parse_skel_decl): Use it.
502 * src/lex.h: Add its prototype.
503 * src/lex.c (literalchar): Become not static.
505 2001-11-28 Marc Autret <autret_m@epita.fr>
507 * src/output.h: And put its extern declaration here.
508 * src/output.c (error_verbose): Define here.
509 (prepare): Echo name modification.
510 * src/getargs.h: Clean its extern declaration.
511 * src/getargs.c (error_verbose_flag): Remove.
512 (getargs): Remove case 'e'.
513 * src/options.c (option_table): 'error-verbose' is now seen as simple
517 * src/reader.c (read_declarations): Remove case tok_include.
518 (parse_include_decl): Remove.
519 * src/lex.h (token_t): Remove tok_include.
520 * src/options.c (option_table): 'include' is now a simple command line
523 2001-11-28 Marc Autret <autret_m@epita.fr>
525 * src/bison.simple: Adjust muscle names.
526 * src/muscle_tab.c (muscle_init): Also rename the muscles.
527 * src/output.c (prepare): s/_/-/ for the muscles names.
528 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
530 2001-11-28 Marc Autret <autret_m@epita.fr>
532 * src/bison.simple: Fix debug.
533 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
535 2001-11-28 Akim Demaille <akim@epita.fr>
537 * src/LR0.c (shifts_new): New.
538 (save_shifts, insert_start_shift, augment_automaton): Use it.
540 2001-11-28 Akim Demaille <akim@epita.fr>
542 * src/closure.c (closure): `b' and `ruleno' denote the same value:
545 2001-11-28 Akim Demaille <akim@epita.fr>
547 * src/closure.c (closure): Instead of looping over word in array
548 then bits in words, loop over bits in array.
550 2001-11-28 Akim Demaille <akim@epita.fr>
552 * src/closure.c (closure): No longer optimize the special case
553 where all the bits of `ruleset[r]' are set to 0, to make the code
556 2001-11-28 Akim Demaille <akim@epita.fr>
558 * src/closure.c (closure): `r' and `c' are new variables, used to
559 de-obfuscate accesses to RULESET and CORE.
561 2001-11-28 Akim Demaille <akim@epita.fr>
563 * src/reduce.c (reduce_print): Use ngettext.
564 (dump_grammar): Improve the trace accuracy.
566 2001-11-28 Akim Demaille <akim@epita.fr>
568 * src/reduce.c (dump_grammar): Don't translate trace messages.
570 2001-11-28 Akim Demaille <akim@epita.fr>
572 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
573 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
574 as all tags are free'ed afterwards.
577 2001-11-27 Paul Eggert <eggert@twinsun.com>
579 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
580 use alloca when we didn't want to, and vice versa.
582 2001-11-27 Marc Autret <autret_m@epita.fr>
584 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
586 * src/output.c (prepare): Remove its update.
588 2001-11-27 Marc Autret <autret_m@epita.fr>
590 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
593 2001-11-27 Marc Autret <autret_m@epita.fr>
595 * src/bison.simple: Remove YYERROR_VERBOSE using.
598 * src/output.c (prepare): Give its final value.
599 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
600 * src/getargs.h: Add its extern declaration.
601 * src/getargs.c (error_verbose_flag): New int.
602 (getargs): Update to catch new case.
603 * src/options.c (option_table): 'error-verbose' is a new option.
606 2001-11-27 Akim Demaille <akim@epita.fr>
608 * src/system.h: Use intl/libgettext.h.
609 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
611 2001-11-27 Akim Demaille <akim@epita.fr>
613 * tests/torture.at (Exploding the Stack Size with Malloc):
614 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
616 2001-11-27 Akim Demaille <akim@epita.fr>
618 * src/files.c: Include error.h.
619 Reported by Hans Aberg.
621 2001-11-26 Marc Autret <autret_m@epita.fr>
623 * src/reader.c (parse_include_decl): New, not yet implemented.
624 (read_declarations): Add case tok_include.
625 * src/getargs.h (include): Add its extern definition.
626 * src/getargs.c (include): New const char *.
627 (getargs): Add case '-I'.
628 * src/options.c (option_table): Add include as command line and
630 * src/lex.h (token_t): Add tok_include.
632 2001-11-26 Akim Demaille <akim@epita.fr>
634 * src/reader.c (readgram): Make sure rules for mid-rule actions
635 have a lineno equal to that of their host rule.
636 Reported by Hans Aberg.
637 * tests/regression.at (Rule Line Numbers): New.
639 2001-11-26 Akim Demaille <akim@epita.fr>
641 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
644 2001-11-26 Akim Demaille <akim@epita.fr>
646 * src/complain.c, src/complain.h (error): Remove, provided by
649 2001-11-26 Akim Demaille <akim@epita.fr>
651 * src/reader.c (read_declarations): Don't abort on tok_illegal,
652 issue an error message.
653 * tests/regression.at (Invalid %directive): New.
654 Reported by Hans Aberg.
656 2001-11-26 Akim Demaille <akim@epita.fr>
658 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
659 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
661 2001-11-26 Akim Demaille <akim@epita.fr>
663 * src/conflicts.c (conflicts_print): Don't complain at all when
664 there are no reduce/reduce conflicts, and as many shift/reduce
665 conflicts as expected.
666 * tests/regression.at (%expect right): Adjust.
668 2001-11-23 Akim Demaille <akim@epita.fr>
670 * lib/alloca.c: Update, from fileutils.
672 2001-11-23 Akim Demaille <akim@epita.fr>
674 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
676 2001-11-23 Akim Demaille <akim@epita.fr>
678 * src/system.h: Include alloca.h.
679 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
681 2001-11-23 Akim Demaille <akim@epita.fr>
683 * src/print_graph.c (print_actions): Remove `rule', unused.
684 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
685 pacify GCC's signed < unsigned warnings.
686 * src/closure.c (itemsetsize): Likewise.
687 * src/reader.c (symbol_list_new): Static.
689 2001-11-23 Akim Demaille <akim@epita.fr>
691 Attaching lineno to buckets is stupid, since only one copy of each
692 symbol is kept, only the line of the first occurrence is kept too.
694 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
695 * src/reader.c (rline_allocated): Remove, unused.
696 (symbol_list): Have a `line' member.
697 (symbol_list_new): New.
699 * src/print.c (print_grammar): Output the rule line numbers.
700 * tests/regression.at (Solved SR Conflicts)
701 (Unresolved SR Conflicts): Adjust.
702 Reported by Hans Aberg.
704 2001-11-22 Marc Autret <autret_m@epita.fr>
706 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
708 2001-11-22 Marc Autret <autret_m@epita.fr>
710 * src/muscle_tab.c (muscle_init): Remove initialization of
712 * src/output.c (output_master_parser): Do it here.
714 2001-11-20 Akim Demaille <akim@epita.fr>
717 * configure.in (ALL_LINGUAS): Adjust.
718 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
719 longer contains strings to translate.
721 2001-11-19 Akim Demaille <akim@epita.fr>
723 * src/conflicts.c (conflicts_print): Add a missing \n.
725 2001-11-19 Akim Demaille <akim@epita.fr>
727 * src/nullable.c (nullable_print): New.
728 (set_nullable): Call it when tracing.
729 Better locality of variables.
731 2001-11-19 Akim Demaille <akim@epita.fr>
733 * src/print.c (print_actions): Better locality of variables.
735 2001-11-19 Akim Demaille <akim@epita.fr>
737 * src/derives.c (print_derives): Fix and enrich.
738 * src/closure.c (print_fderives): Likewise.
740 2001-11-19 Akim Demaille <akim@epita.fr>
742 * src/closure.c (itemsetend): Remove, replaced with...
745 2001-11-19 Akim Demaille <akim@epita.fr>
747 * src/LR0.c (kernel_end): Remove, replaced with...
750 2001-11-19 Akim Demaille <akim@epita.fr>
752 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
755 2001-11-19 Akim Demaille <akim@epita.fr>
757 * src/closure.c (closure): Use arrays instead of pointers to clarify.
759 2001-11-19 Akim Demaille <akim@epita.fr>
761 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
763 * src/LR0.c: Likewise.
764 (allocate_itemsets): Use arrays instead of pointers to clarify.
766 2001-11-19 Akim Demaille <akim@epita.fr>
768 * src/getargs.c (statistics_flag): Replace with...
770 (longopts): Accept --trace instead of --statistics.
771 * src/getargs.h, src/options.c: Adjust.
772 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
773 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
775 2001-11-19 Akim Demaille <akim@epita.fr>
777 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
778 pointers to clarify the code.
779 (save_reductions, save_shifts): Factor common parts of alternatives.
781 2001-11-19 Akim Demaille <akim@epita.fr>
783 * src/LR0.c (new_state, get_state): Complete TRACE code.
784 * src/closure.c: Include `reader.h' to get `tags', needed by the
786 Rename the conditional DEBUG as TRACE.
787 Output consistently TRACEs to stderr, not stdout.
788 * src/derives.c: Likewise.
789 * src/reduce.c: (inaccessable_symbols): Using if is better style
791 Use `#if TRACE' instead of `#if 0' for tracing code.
793 2001-11-19 Akim Demaille <akim@epita.fr>
795 * src/system.h (LIST_FREE, shortcpy): New.
796 * src/LR0.c: Use them.
797 * src/output.c (free_itemsets, free_reductions, free_shifts):
798 Remove, replaced by LIST_FREE.
800 2001-11-19 Akim Demaille <akim@epita.fr>
802 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
803 (REDUCTIONS_ALLOC): New.
804 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
807 2001-11-19 Akim Demaille <akim@epita.fr>
809 * src/LR0.c (new_state): Complete trace code.
810 * src/nullable.c (set_nullable): Don't translate traces.
812 2001-11-19 Akim Demaille <akim@epita.fr>
814 * src/print_graph.c (print_core): Better locality of variables.
815 * src/print.c (print_core): Likewise.
817 2001-11-19 Akim Demaille <akim@epita.fr>
819 * src/vcg.c: You do the output, so you are responsible of the
820 handling of VCG syntax, in particular: use quotearg.
821 * src/print_graph.c: Don't.
822 (print_actions): Don't output the actions as part of the nodes,
823 since that's the job of the edges.
824 (print_state): Don't output by hand: fill the node description,
825 and ask for its output.
827 2001-11-19 Akim Demaille <akim@epita.fr>
829 * src/bison.simple (yyparse): When verbosely reporting an error,
830 no longer put additional quotes around token names.
831 * tests/calc.at: Adjust.
833 2001-11-19 Akim Demaille <akim@epita.fr>
835 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
836 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
837 * src/output.c: Adjust.
839 2001-11-19 Akim Demaille <akim@epita.fr>
841 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
843 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
845 2001-11-19 Akim Demaille <akim@epita.fr>
847 * src/gram.h (rule_t): New.
849 (rrhs, rlhs): Remove, part of state_t.
850 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
851 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
852 * src/reader.c, src/reduce.c: Adjust.
854 2001-11-19 Akim Demaille <akim@epita.fr>
856 * src/reader.c (symbols_output): New, extracted from...
860 2001-11-19 Akim Demaille <akim@epita.fr>
862 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
863 (maxrhs): this new function.
865 2001-11-19 Akim Demaille <akim@epita.fr>
867 * src/lalr.c (F): New macro to access the variable F.
870 2001-11-19 Akim Demaille <akim@epita.fr>
872 * src/lalr.h (LA): New macro to access the variable LA.
873 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
874 * src/lalr.c: Adjust.
876 2001-11-19 Akim Demaille <akim@epita.fr>
878 * src/lalr.c (initialize_LA): Only initialize LA. Let...
879 (set_state_table): handle the `lookaheads' members.
881 2001-11-19 Akim Demaille <akim@epita.fr>
883 * src/lalr.h (lookaheads): Removed array, whose contents is now
885 (state_t): this structure.
886 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
889 2001-11-19 Akim Demaille <akim@epita.fr>
891 * src/lalr.h (consistent): Removed array, whose contents is now
893 (state_t): this structure.
894 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
897 2001-11-19 Akim Demaille <akim@epita.fr>
899 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
900 contents are now members of...
901 (state_t): this structure.
902 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
905 2001-11-19 Akim Demaille <akim@epita.fr>
907 * src/lalr.h (state_t): New.
908 (state_table): Be a state_t * instead of a core **.
909 (accessing_symbol): Remove, part of state_t.
910 * src/lalr.c: Adjust.
911 (set_accessing_symbol): Merge into...
912 (set_state_table): this.
913 * src/print_graph.c, src/conflicts.c: Adjust.
915 2001-11-14 Akim Demaille <akim@epita.fr>
917 * tests/calc.at, tests/output.at, tests/regression.at,
918 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
919 now the tests are run in private dirs, therefore AC_CLEANUP and
920 family can be simplified to 0-ary.
921 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
922 use abs. path to find config.h.
923 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
924 stderr, there can be way too much random noise.
925 Instead pass -Werror to GCC and rely on the exit status.
926 Reported by Wolfram Wagner.
928 2001-11-14 Akim Demaille <akim@epita.fr>
930 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
931 defined only if yyoverflow is defined, to avoid `warning: unused
933 Reported by The Test Suite.
935 2001-11-14 Akim Demaille <akim@epita.fr>
937 * src/print.c: Include reduce.h.
938 Reported by Hans Aberg.
940 2001-11-14 Akim Demaille <akim@epita.fr>
942 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
943 Revert a previous patch: these are really const.
944 * src/conflicts.c (conflict_report): Additional useless pair of
945 braces to pacify GCC's warnings for `if () if () {} else {}'.
946 * src/lex.c (parse_percent_token): Replace equal_offset with
949 Be sure to strdup `arg' when used, since there is no reason for
950 token_buffer not to change.
952 2001-11-14 Akim Demaille <akim@epita.fr>
954 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
956 * src/main.c (main): Use them.
957 Suggested by Hans Aberg.
959 2001-11-12 Akim Demaille <akim@epita.fr>
961 * src/system.h (ngettext): Now that we use ngettext, be sure to
962 provide a default definition when NLS are not used.
964 2001-11-12 Akim Demaille <akim@epita.fr>
966 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
967 Use @kbd to denote user input.
968 (Language and Grammar): ANSIfy the example.
969 Adjust its layout for info/notinfo.
970 (Location Tracking Calc): Output error messages to stderr.
971 Output locations in a more GNUtically correct way.
972 Fix a couple of Englishos.
973 Adjust @group/@end group pairs.
975 2001-11-12 Akim Demaille <akim@epita.fr>
977 %expext was not functioning at all.
979 * src/conflicts.c (expected_conflicts): Set to -1.
980 (conflict_report): Use ngettext.
981 (conflicts_print): Check %expect and make its violation an error.
982 * doc/bison.texinfo (Expect Decl): Adjust.
983 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
984 * tests/regression.at (%expect not enough, %expect right)
985 (%expect too much): New.
987 2001-11-12 Akim Demaille <akim@epita.fr>
989 * tests/regression.at (Conflicts): Rename as...
990 (Unresolved SR Conflicts): this.
991 (Solved SR Conflicts): New.
993 2001-11-12 Akim Demaille <akim@epita.fr>
995 * src/reduce.c (print_results): Rename as...
996 (reduce_output): This.
997 Output to OUT, passed as argument, instead of output_obstack.
998 (dump_grammar): Likewise.
1001 (reduce_grammar): No longer call reduce_output, since...
1002 * src/print.c (print_results): do it.
1003 * src/main.c (main): Call reduce_free;
1005 2001-11-12 Akim Demaille <akim@epita.fr>
1007 * src/conflicts.c (print_reductions): Accept OUT as argument.
1008 Output to it, not to output_obstack.
1009 * src/print.c (print_actions): Adjust.
1011 2001-11-12 Akim Demaille <akim@epita.fr>
1013 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
1014 the result instead of using...
1015 (src_total, rrc_total, src_count, rrc_count): Remove.
1016 (any_conflicts): Remove.
1017 (print_conflicts): Split into...
1018 (conflicts_print, conflicts_output): New.
1019 * src/conflicts.h: Adjust.
1020 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
1021 * src/print.c (print_grammar): Issue `\n' between two rules.
1022 * tests/regression.at (Conflicts): New.
1023 Reported by Tom Lane.
1025 2001-11-12 Akim Demaille <akim@epita.fr>
1027 * tests/regression.at (Invalid input): Remove, duplicate with
1028 ``Invalid input: 1''.
1030 2001-11-12 Akim Demaille <akim@epita.fr>
1032 * tests/torture.at (AT_DATA_STACK_TORTURE)
1033 (Exploding the Stack Size with Alloca)
1034 (Exploding the Stack Size with Malloc): New.
1036 2001-11-12 Akim Demaille <akim@epita.fr>
1038 * src/bison.simple (YYSTACK_REALLOC): New.
1039 (yyparse) [!yyoverflow]: Use it and free the old stack.
1040 Reported by Per Allansson.
1042 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
1044 * src/bison.simple: Define type yystype instead of YYSTYPE, and
1045 define CPP macro, which substitute YYSTYPE by yystype.
1046 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
1047 with yyltype/YYLTYPE. This allows inclusion of the generated
1048 header within the parser if the compiler, such as GGC, accepts
1049 multiple equivalent #defines.
1052 2001-11-05 Akim Demaille <akim@epita.fr>
1054 * src/reader.c (symbols_output): New, extracted from...
1055 (packsymbols): here.
1058 2001-11-05 Akim Demaille <akim@epita.fr>
1060 * src/lex.c (parse_percent_token): s/quotearg/quote/.
1062 2001-11-05 Akim Demaille <akim@epita.fr>
1064 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
1067 2001-11-05 Akim Demaille <akim@epita.fr>
1069 * src/options.h (struct option_table_struct): set_flags is void*.
1070 * src/options.c (longopts): Support `--output' and `%output'.
1072 * src/lex.h (tok_setopt): Remove, replaced with...
1073 (tok_intopt, tok_stropt): these new guys.
1074 * src/lex.c (getopt.h): Not needed.
1075 (token_buffer, unlexed_token_buffer): Not const.
1076 (percent_table): Promote `-' over `_' in directive names.
1077 Active `%name-prefix', `file-prefix', and `output'.
1078 (parse_percent_token): Accept possible arguments to directives.
1079 Promote `-' over `_' in directive names.
1081 2001-11-04 Akim Demaille <akim@epita.fr>
1083 * doc/bison.texinfo (Decl Summary): Split the list into
1084 `directives for grammars' and `directives for bison'.
1086 Add description of `%name-prefix', `file-prefix', and `output'.
1087 Promote `-' over `_' in directive names.
1088 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
1089 Simplify the description of `--name-prefix'.
1090 Promote `-' over `_' in directive names.
1091 Promote `--output' over `--output-file'.
1092 Fix the description of `--defines'.
1093 * tests/output.at: Exercise %file-prefix and %output.
1095 2001-11-02 Akim Demaille <akim@epita.fr>
1097 * doc/refcard.tex: Update.
1099 2001-11-02 Akim Demaille <akim@epita.fr>
1101 * src/symtab.h (SUNDEF): New.
1102 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
1103 stand for `uninitialized', instead of 0.
1104 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
1105 * src/lex.c (lex): Adjust.
1107 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
1109 Let yylex return it instead of a plain 0.
1110 Reported by Dick Streefland.
1112 2001-11-02 Akim Demaille <akim@epita.fr>
1114 * tests/regression.at (Mixing %token styles): New test.
1116 2001-11-02 Akim Demaille <akim@epita.fr>
1118 * src/reader.c (parse_thong_decl): Formatting changes.
1119 (token_translations_init): New, extracted from...
1120 (packsymbols): Here.
1123 2001-11-01 Akim Demaille <akim@epita.fr>
1125 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
1126 Check that `9foo.y' produces correct cpp guards.
1127 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
1131 2001-11-01 Akim Demaille <akim@epita.fr>
1133 * tests/regression.at (Invalid input: 2): New.
1134 * src/lex.c (unlexed_token_buffer): New.
1135 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
1139 2001-11-01 Akim Demaille <akim@epita.fr>
1141 * tests/calc.at: Catch up with 1.30.
1142 * configure.in: Bump to 1.49a.
1143 Adjust to newer Autotest.
1145 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
1147 * src/conflicts.c: Move global variables rrc_total and src_total ...
1148 (print_conflicts): here.
1149 * src/output.c (output): Free global variable user_toknums.
1150 * src/lex.c (token_obstack): Become static.
1152 2001-10-18 Akim Demaille <akim@epita.fr>
1154 * tests/atlocal.in (GCC): Add.
1155 * tests/calc.at: s/m4_match/m4_bmatch/.
1156 s/m4_patsubst/m4_bpatsubst/.
1157 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1158 * configure.in: AC_SUBST(GCC).
1160 2001-10-14 Marc Autret <autret_m@epita.fr>
1162 * src/options.c (create_long_option_table): Fix.
1164 2001-10-10 Akim Demaille <akim@epita.fr>
1166 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1168 2001-10-04 Akim Demaille <akim@epita.fr>
1170 * src/reader.c (parse_union_decl): Push the caracters in
1171 union_obstack, not attrs_obstack.
1173 2001-10-04 Akim Demaille <akim@epita.fr>
1175 Merge in the branch 1.29.
1177 * src/reader.c (packsymbols): Use a temporary obstack for
1178 `%%tokendef', since output_stack is already used elsewhere.
1180 2001-10-02 Akim Demaille <akim@epita.fr>
1184 2001-10-02 Akim Demaille <akim@epita.fr>
1188 2001-10-02 Akim Demaille <akim@epita.fr>
1190 * tests/regression.at (Invalid CPP headers): New.
1191 From Alexander Belopolsky.
1192 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1194 2001-10-02 Akim Demaille <akim@epita.fr>
1196 * tests/regression.at (Invalid input): New.
1197 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1200 2001-10-02 Akim Demaille <akim@epita.fr>
1202 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1204 2001-10-02 Akim Demaille <akim@epita.fr>
1206 * src/output.c (output_parser): Assert `skeleton'.
1207 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1211 2001-10-01 Marc Autret <autret_m@epita.fr>
1213 * src/lex.h: Echo modifications.
1214 * src/lex.c (unlex): Parameter is now token_t.
1217 2001-10-01 Marc Autret <autret_m@epita.fr>
1219 * src/main.c: Include lex.h.
1222 2001-09-29 Akim Demaille <akim@epita.fr>
1224 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1226 2001-09-28 Akim Demaille <akim@epita.fr>
1228 * tests/testsuite.at: Update to newer Autotest.
1229 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1231 2001-09-27 Akim Demaille <akim@epita.fr>
1233 Position independent wrapper.
1235 * tests/bison: Remove.
1236 * tests/bison.in: New.
1237 * configure.in: Adjust.
1239 2001-09-27 Paul Eggert <eggert@twinsun.com>
1241 Port quotearg fixes from tar 1.13.24.
1243 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1245 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1246 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1248 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1249 * m4/mbrtowc.m4: New file.
1250 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1251 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1253 2001-09-27 Akim Demaille <akim@epita.fr>
1257 2001-09-27 Akim Demaille <akim@epita.fr>
1261 2001-09-25 Akim Demaille <akim@epita.fr>
1263 * src/system.h: Include `xalloc.h'.
1264 Remove it from the C files.
1265 * src/files.c (output_files): Free the obstacks.
1266 * src/lex.c (init_lex): Rename as...
1269 * src/main.c (main): Use it.
1271 2001-09-24 Marc Autret <autret_m@epita.fr>
1273 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1274 to output informations in fout (FILE*).
1275 (open_graph, close_graph): Likewise.
1276 (output_graph, output_edge, output_node): Likewise.
1277 * src/vcg.h: Update function prototypes.
1278 * src/print_graph.c (print_graph): Open output graph file.
1279 (print_actions): Adjust.
1280 * src/files.h: Remove extern declaration.
1281 * src/files.c: Remove graph_obstack declaration.
1282 (open_files): Remove graph_obstack initialization.
1283 (output_files): Remove graph_obstack saving.
1285 2001-09-24 Marc Autret <autret_m@epita.fr>
1287 * src/files.c (compute_output_file_names): Fix.
1289 2001-09-24 Marc Autret <autret_m@epita.fr>,
1290 Akim Demaille <akim@epita.fr>
1292 * src/reader.c (reader): Remove call to free_symtab ().
1293 * src/main.c (main): Call it here.
1295 * src/conflicts.c (initialize_conflicts): Rename as...
1296 (solve_conflicts): this.
1297 * src/print.c (print_core, print_actions, print_state)
1298 (print_grammar): Dump to a file instead a `output_obstack'.
1299 (print_results): Dump `output_obstack', and then proceed with the
1301 * src/files.c (compute_output_file_names, close_files): New.
1302 (output_files): Adjust.
1303 * src/main.c (main): Adjust.
1305 2001-09-23 Marc Autret <autret_m@epita.fr>
1307 * src/files.c (compute_header_macro): Computes header macro name
1308 from spec_defines_file when given.
1310 2001-09-23 Marc Autret <autret_m@epita.fr>
1312 * src/files.c (output_files): Add default extensions.
1314 2001-09-22 Akim Demaille <akim@epita.fr>
1316 * src/conflicts.c (finalize_conflicts): Rename as...
1317 (free_conflicts): this.
1319 2001-09-22 Akim Demaille <akim@epita.fr>
1321 * src/gram.c (gram_free): Rename back as...
1323 (output_token_translations): Free `token_translations'.
1324 * src/symtab.c (free_symtab): Free the tag field.
1326 2001-09-22 Akim Demaille <akim@epita.fr>
1328 Remove `translations' as it is always set to true.
1330 * src/gram.h: Adjust.
1331 * src/reader.c (packsymbols, parse_token_decl): Adjust
1332 * src/print.c (print_grammar): Adjust.
1333 * src/output.c (output_token_translations): Adjust.
1334 * src/lex.c (lex): Adjust.
1335 * src/gram.c: Be sure the set pointers to NULL.
1336 (dummy): Rename as...
1339 2001-09-22 Akim Demaille <akim@epita.fr>
1341 * configure.in: Invoke AM_LIB_DMALLOC.
1342 * src/system.h: Use dmalloc.
1343 * src/LR0.c: Be sure to have pointers initialized to NULL.
1344 (allocate_itemsets): Allocate kernel_items only if needed.
1346 2001-09-22 Akim Demaille <akim@epita.fr>
1348 * configure.in: Bump to 1.29b.
1349 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1350 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1351 need xmalloc.c in calc.y.
1354 2001-09-21 Akim Demaille <akim@epita.fr>
1357 * Makefile.maint, config/config.guess, config/config.sub,
1358 * config/missing: Update from masters.
1359 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1361 * configure.in (ALL_LINGUAS): Add `tr'.
1363 2001-09-21 Akim Demaille <akim@epita.fr>
1365 * tests/Makefile.am (package.m4): Move to...
1366 ($(srcdir)/$(TESTSUITE)): here.
1368 2001-09-20 Akim Demaille <akim@epita.fr>
1370 * src/complain.c: No longer try to be standalone: use system.h.
1371 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1372 * src/complain.h: Likewise.
1373 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1374 Remove the unused variable `n'.
1375 From Albert Chin-A-Young.
1377 2001-09-18 Marc Autret <autret_m@epita.fr>
1379 * doc/bison.1: Update.
1380 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1382 (Option Cross Key): Update.
1385 2001-09-18 Marc Autret <autret_m@epita.fr>
1387 * tests/regression.at: New test (comment in %union).
1389 2001-09-18 Marc Autret <autret_m@epita.fr>
1391 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1393 Reported by Keith Browne.
1395 2001-09-18 Marc Autret <autret_m@epita.fr>
1397 * tests/output.at: Add tests for --defines and --graph.
1399 2001-09-18 Marc Autret <autret_m@epita.fr>
1401 * tests/output.at: Removes tests of %{header,src}_extension features.
1403 2001-09-18 Akim Demaille <akim@epita.fr>
1405 * tests/Makefile.am (package.m4): New.
1406 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1407 (_AT_CHECK_CALC_ERROR): Likewise.
1408 Factor the `, ' part of verbose error messages.
1410 2001-09-18 Marc Autret <autret_m@epita.fr>
1412 * src/getargs.c (longopts): Declare --defines and --graph as options
1413 with optional arguments.
1414 * src/files.h: Add extern declarations.
1415 * src/files.c (spec_graph_file, spec_defines_file): New.
1416 (output_files): Update.
1417 Remove CPP-outed code.
1419 2001-09-18 Marc Autret <autret_m@epita.fr>
1421 Turn off %{source,header}_extension feature.
1423 * src/files.c (compute_exts_from_gf): Update.
1424 (compute_exts_from_src): Update.
1425 (output_files): CPP-out useless code.
1426 * src/files.h: Remove {header,source}_extension extern declarations.
1427 * src/reader.c (parse_dquoted_param): CPP-out.
1428 (parse_header_extension_decl): Remove.
1429 (parse_source_extension_decl): Remove.
1430 (read_declarations): Remove cases tok_{hdrext,srcext}.
1431 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1432 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1434 2001-09-10 Akim Demaille <akim@epita.fr>
1436 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1437 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1438 (AT_CHECK_OUTPUT): this.
1439 Merely check ls' exit status, its output is useless.
1441 2001-09-10 Akim Demaille <akim@epita.fr>
1443 * tests/calc.at: Use m4_match.
1444 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1446 2001-09-10 Marc Autret <autret_m@epita.fr>,
1447 Akim Demaille <akim@epita.fr>
1449 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1451 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1453 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1454 * src/lex.h: Adjust prototype.
1455 (token_t): Add `tok_undef'.
1456 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1457 (parse_percent_token): Now returns token_t.
1458 Add default statement in switch.
1459 (lex): Separate `c' as an input variable, from the token_t result
1461 (unlexed): Is a token_t.
1463 2001-09-10 Akim Demaille <akim@epita.fr>
1465 * configure.in: Bump to 1.29a.
1467 2001-09-07 Akim Demaille <akim@epita.fr>
1471 2001-08-30 Akim Demaille <akim@epita.fr>
1473 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1474 * m4/atconfig.m4: Remove.
1475 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1477 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1478 m4_if, m4_patsubst, and m4_regexp.
1479 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1480 `input' file instead of echo.
1482 2001-08-29 Akim Demaille <akim@epita.fr>
1486 2001-08-29 Akim Demaille <akim@epita.fr>
1490 2001-08-29 Paul Eggert <eggert@twinsun.com>
1492 * src/bison.simple (yyparse): Don't take the address of an
1493 item before the start of an array, as that doesn't conform to
1496 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1498 * doc/bison.texinfo (Location Tracking Calc): New node.
1500 2001-08-29 Paul Eggert <eggert@twinsun.com>
1502 * src/output.c (output): Do not define const, as this now
1503 causes more problems than it cures.
1505 2001-08-29 Akim Demaille <akim@epita.fr>
1507 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1509 Be sure to tag the `detailmenu'.
1511 2001-08-29 Akim Demaille <akim@epita.fr>
1513 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1514 download in a tmp dir.
1516 2001-08-28 Marc Autret <autret_m@epita.fr>
1518 * config/depcomp: New file.
1520 2001-08-28 Marc Autret <autret_m@epita.fr>
1522 * doc/bison.1 (mandoc): Adjust.
1523 From Juan Manuel Guerrero.
1525 2001-08-28 Marc Autret <autret_m@epita.fr>
1527 * src/print_graph.c (print_state): Fix.
1529 2001-08-27 Marc Autret <autret_m@epita.fr>
1531 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1533 Echo modifications to the functions prototypes.
1534 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1536 2001-08-27 Marc Autret <autret_m@epita.fr>
1538 * src/vcg.c: Include `xalloc.h'.
1539 (add_colorentry): New.
1540 (add_classname): New.
1541 (add_infoname): New.
1542 * src/vcg.h: Add new prototypes.
1544 2001-08-27 Akim Demaille <akim@epita.fr>
1546 * Makefile.maint: Sync. again with CVS Autoconf.
1548 2001-08-27 Akim Demaille <akim@epita.fr>
1550 * Makefile.maint: Formatting changes.
1551 (po-update, cvs-update, update): New targets.
1554 2001-08-27 Akim Demaille <akim@epita.fr>
1556 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1557 * Makefile.maint: Sync. with CVS Autoconf.
1559 2001-08-27 Marc Autret <autret_m@epita.fr>
1561 * src/vcg.h (struct infoname_s): New.
1562 (struct colorentry_s): New.
1563 (graph_s): New fields {vertical,horizontal}_order in structure.
1564 Add `infoname' field.
1565 Add `colorentry' field;
1566 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1567 (G_HORIZONTAL_ORDER): New.
1569 (G_COLORENTRY): New.
1570 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1571 Add output of `infoname'.
1572 Add output of `colorentry'.
1574 2001-08-27 Marc Autret <autret_m@epita.fr>
1576 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1577 This one shadowed a global parameter.
1579 2001-08-24 Marc Autret <autret_m@epita.fr>
1581 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1582 instead of `unsigned'.
1583 (print_state): Do not call obstack_object_size () in obstack_grow ()
1584 to avoid macro variables shadowing.
1586 2001-08-23 Marc Autret <autret_m@epita.fr>
1588 * src/lex.c (percent_table): Typo: s/naem/name/.
1590 Normalize new options declarations.
1592 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1594 * tests/suite.at: Exercise %header_extension and %source_extension.
1596 2001-08-16 Marc Autret <autret_m@epita.fr>
1598 * src/reader.c (parse_dquoted_param): New.
1599 (parse_header_extension_decl): Use it.
1600 (parse_source_extension_decl): Likewise.
1602 2001-08-16 Marc Autret <autret_m@epita.fr>
1604 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1605 (get_xxxx_str): Use assert () instead of complain ().
1606 Remove return invokations in default cases.
1607 (get_decision_str): Modify default behaviour. Remove second argument.
1608 Echo modifications on calls.
1609 (output_graph): Fix.
1611 2001-08-16 Marc Autret <autret_m@epita.fr>
1613 * src/getargs.c (usage): Update with ``-g, --graph''.
1615 2001-08-16 Marc Autret <autret_m@epita.fr>
1617 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1618 (Option Cross Key): Likewise.
1619 * doc/bison.1: Update.
1621 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1623 * src/output.c (output_master_parser): Don't finish action_obstack.
1624 (output_parser): Don't care about the muscle action, here.
1625 (prepare): Copy the action_obstack in the action muscle.
1626 (output): Free action_obstack.
1628 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1630 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1631 will contain `%union' declaration.
1632 (parse_union_decl): Delete #line directive output.
1633 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1634 informations about %union.
1635 (parse_union_decl): Copy the union_obstack in the muscle stype.
1636 * src/bison.simple: Add new #line directive.
1637 Add typdef %%stype YYSTYPE.
1639 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1641 * src/bison.simple: Add new `#line' directive.
1643 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1645 * src/bison.simple: New `#line' directive.
1646 * src/output.c (output_parser): Support new dynamic muscle input_line.
1648 2001-09-22 Marc Autret <autret_m@epita.fr>
1650 * src/output.c (output_master_parser): New.
1651 (output_parser): Be more re-entrant.
1653 2001-09-21 Marc Autret <autret_m@epita.fr>
1655 * src/reader.c (copy_definition, parse_union_decl): Update and use
1657 (copy_action): Likewise.
1658 Use obstack_1grow ().
1659 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1661 2001-09-21 Marc Autret <autret_m@epita.fr>
1663 * src/options.c (option_table): Adjust.
1664 * src/lex.c (parse_percent_token): Fix.
1666 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1668 * src/options.c (symtab.h): Include it, need by lex.h.
1670 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1672 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1673 is now an option_table_struct*.
1674 (option_strcmp): New function option_strcmp.
1675 (parse_percent_token): Call option_strcmp.
1676 * src/getargs.c (xalloc.h, options.h): Include it.
1677 (getargs): Call create_long_option_table.
1678 (getargs): Free longopts at the end of the function.
1679 (shortopts): Move in options.c.
1680 * src/options.c (create_long_option_table): New function. Convert
1681 information from option_table to option structure.
1682 * src/reader.c (options.h): Include it.
1684 * src/Makefile.am: Adjust.
1685 * src/options.c (option_table): Create from longopts and percent_table.
1686 * src/getargs.c (longopts): Delete.
1687 * src/lex.c (struct percent_table_struct): Delete.
1688 (percent_table): Delete.
1689 (options.h): Include it.
1690 * src/options.c: Create.
1691 * src/options.h: Create.
1692 Declare enum opt_access_e.
1693 Define struct option_table_struct.
1695 2001-09-20 Marc Autret <autret_m@epita.fr>
1697 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1700 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1702 * src/bison.simple: s/%%filename/%%skeleton.
1703 * src/muscle_tab.c (getargs.h): Include it.
1704 (muscle_init): Insert new muscle skeleton.
1706 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1708 * src/output.c (output_parser): Delete unused variable actions_dumped.
1710 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1712 * src/output.c (output): Delete call to reader_output_yylsp.
1713 * src/reader.c (reader): Likewise.
1714 * src/reader.h: Delete declaration of reader_output_yylsp.
1716 2001-09-02 Marc Autret <autret_m@epita.fr>
1718 * src/reader.c: Include muscle_tab.h.
1719 (parse_union_decl): Update.
1720 (parse_macro_decl): Rename parse_muscle_decl.
1721 Update to use renamed functions and variable.
1722 (read_declarations, copy_action, read_additionnal_code, : Updated
1723 with correct variables and functions names.
1724 (packsymbols, reader): Likewise.
1726 * src/reader.h (muscle_obstack): Extern declaration update.
1728 * src/output.c: Include muscle_tab.h
1729 In all functions using macro_insert, change by using muscle_insert ().
1730 (macro_obstack): Rename muscle_obstack.
1731 Echo modifications in the whole file.
1732 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1733 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1734 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1736 * src/muscle_tab.h: Update double inclusion macros.
1737 (macro_entry_s): Rename muscle_entry_s.
1740 * src/muscle_tab.c: Include muscle_tab.h.
1741 Rename macro_tabble to muscle_table.
1742 (mhash1, mhash2, mcmp): Use muscle_entry.
1743 (macro_init): Rename muscle_init. Update.
1744 (macro_insert): Rename muscle_insert. Update.
1745 (macro_find): Rename muscle_find. Update.
1747 * src/main.c: Include muscle_tab.h.
1748 (main): Call muscle_init ().
1749 * src/Makefile.am (bison_SOURCES): Echo modifications.
1751 2001-09-02 Marc Autret <autret_m@epita.fr>
1753 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1755 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1757 2001-09-02 Marc Autret <autret_m@epita.fr>
1759 * src/macrotab.c, src/macrotab.h: Remove.
1761 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1763 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1766 2001-09-01 Marc Autret <autret_m@epita.fr>
1768 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1769 to an explicit value to activate the feature. We do it here.
1771 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1773 * src/output.c (prepare): Delete the `filename' muscule insertion.
1774 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1775 (parse_union_decl): Likewise.
1776 * src/macrotab.c (macro_init): Initialize filename by infile.
1778 2001-08-31 Marc Autret <autret_m@epita.fr>
1780 * src/bison.simple (YYLSP_NEEDED): New definition.
1781 * src/output.c (prepare): Add macro insertion of `locations_flag'
1783 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1785 * src/output.c (prepare): Delete insertion of previous muscles,
1786 and insert the `prefix' muscles.
1787 * src/macrotab.c (macro_init): Likewise.
1788 (macro_init): Initialization prefix directive by `yy'.
1789 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1790 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1791 yylval, yydebug, yyerror, yynerrs and yyparse.
1792 New directive `#define' to substitute yydebug, ... with option
1795 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1797 * src/main.c (main): Standardize.
1798 * src/output.c (output_table_data, output_parser): Likewise.
1799 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1801 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1803 * src/reader.c (read_additionnal_code): Rename %%user_code to
1805 * src/output.c (output): Rename %%declarations to %%prologue.
1806 * src/bison.simple: Echo modifications.
1808 2001-08-31 Marc Autret <autret_m@epita.fr>
1810 * src/reader.c (readgram): CleanUp.
1811 (output_token_defines): Likewise.
1812 (packsymbols): Likewise.
1814 * src/output.c (output): CPP-out useless code.
1816 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1818 * src/reader.c (reader): Delete obsolete call to function
1819 output_trailers and output_headers.
1820 * src/output.h: Remove obsolete functions prototypes of output_headers
1821 and output_trailers.
1823 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1825 * src/main.c: Include macrotab.h.
1826 * src/macrotab.h (macro_entry_s): Constify fields.
1827 Adjust functions prototypes.
1828 * src/macrotab.c (macro_insert): Constify key and value.
1829 (macro_find): Constify key.
1830 (macro_insert): Include 'xalloc.h'
1831 (macro_insert): Use XMALLOC.
1832 (macro_find): Constify return value.
1833 * src/output.c (output_table_data): Rename table to table_data.
1834 (output_parser): Constify macro_key, macro_value.
1836 2001-08-30 Marc Autret <autret_m@epita.fr>
1838 * src/reader.c (parse_skel_decl): New.
1839 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1840 * src/lex.h (token_t): New token `tok_skel'.
1841 * src/lex.c (percent_table): Add skeleton option entry.
1844 2001-08-29 Marc Autret <autret_m@epita.fr>
1846 * src/bison.simple: Add %%user_code directive at the end.
1847 * src/reader.c (read_additionnal_code): New.
1849 * src/output.c (output_program): Remove.
1852 2001-08-28 Marc Autret <autret_m@epita.fr>
1854 * src/output.c (output_actions): Clean up.
1855 (output_gram): CPP-out useless code.
1856 * src/reader.c (reader): Clean up, CPP-out useless code.
1858 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1860 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1862 * src/bison.simple: Add `%%definitions'.
1864 2001-08-28 Marc Autret <autret_m@epita.fr>
1866 * config/depcomp: New file.
1868 2001-08-27 Paul Eggert <eggert@twinsun.com>
1870 * src/bison.simple (yyparse): Don't take the address of an
1871 item before the start of an array, as that doesn't conform to
1874 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1876 * src/output.c (output): Remove the initialization of the macro
1877 obstack. It was done too late here.
1879 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1881 (reader): Initialize the macro obstack here, since we need it to grow
1882 '%define' directives.
1884 * src/reader.h: Declare the macro obstack as extern.
1886 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1888 * src/output.c (output_parser): Fix. Store single '%' characters in
1889 the output obstack instead of throwing them away.
1891 2001-08-27 Akim Demaille <akim@epita.fr>
1893 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1895 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1897 * lib/Makefile.am: Adjust.
1899 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1901 * src/bison.simple: Update and add '%%' directives.
1903 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1905 * src/reader.c (reader): Remove calls to 'output_headers' and
1906 'output_trailers'. Remove some C output.
1907 (readgram): Disable a piece of code that was writing a default
1908 definition for 'YYSTYPE'.
1909 (reader_output_yylsp): Remove.
1910 (packsymbols): Output token defintions to a macro.
1911 (copy_definition): Disable C output.
1913 * src/reader.c (parse_macro_decl): New function used to parse macro
1915 (copy_string2): Put the body of copy_string into this new function.
1916 Add a parameter to let the caller choose whether he wants to copy the
1917 string delimiters or not.
1918 (copy_string): Be a simple call to copy_string2 with the last argument
1920 (read_declarations): Add case for macro definition.
1921 (copy_identifier): New.
1922 (parse_macro_decl): Read macro identifiers using copy_identifier
1925 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1927 * src/output.c (prepare): Add prefixed names.
1928 (output_parser): Output semantic actions.
1929 (output_parser): Fix bug on '%%line' directives.
1931 * src/output.c (output_headers): Remove. The C code printed by this
1932 function should now be in the skeletons.
1933 (output_trailers): Remove.
1934 (output): Disable call to 'reader_output_yylsp'.
1935 (output_rule_data): Do not output tables to the table obstack.
1937 * src/output.c: Remove some C dedicated output.
1938 Improve the use of macro and output obstacks.
1939 (output_defines): Remove.
1941 * src/output.c (output_token_translations): Associate 'translate'
1942 table with a macro. No output to the table obstack.
1943 (output_gram): Same for 'rhs' and 'prhs'.
1944 (output_stos): Same for 'stos'.
1945 (output_rule_data): Same for 'r1' and 'r2'.
1946 (token_actions): Same for 'defact'.
1947 (goto_actions): Same for 'defgoto'.
1948 (output_base): Same for 'pact' and 'pgoto'.
1949 (output_table): Same for 'table'.
1950 (output_check): Same for 'check'.
1952 * src/output.c (output_table_data): New function.
1953 (output_short_table): Remove.
1954 (output_short_or_char_table): Remove.
1956 * src/output.c (output_parser): Replace most of the skeleton copy code
1957 with something new. Skeletons are now processed character by character
1958 rather than line by line, and Bison looks for '%%' macros. This is the
1959 first step in making Bison's output process (a lot) more flexible.
1960 (output_parser): Use the macro table.
1962 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1964 * src/main.c (main): Initialize the macro table.
1966 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1968 * src/lex.c (percent_table): Add tok_define.
1969 * src/lex.h: Add tok_define.
1971 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1973 * src/macrotab.c: New file.
1974 * src/macrotab.h: New file.
1975 * src/Makefile.am: Update.
1977 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1979 * lib/hash.c: New file.
1980 * lib/hash.h: New file.
1981 * lib/Makefile.am: Update.
1983 2001-08-15 Akim Demaille <akim@epita.fr>
1987 2001-08-15 Marc Autret <autret_m@epita.fr>
1989 * src/reader.c (readgram): Indent output macro YYSTYPE.
1990 (packsymbols): Likewise.
1991 (output_token_defines): Likewise.
1992 * src/files.c: Standardize.
1993 (compute_header_macro): New.
1994 (defines_obstack_save): New. Use compute_header_macro.
1995 (output_files): Update. Use defines_obstack_save.
1997 2001-08-15 Akim Demaille <akim@epita.fr>
1999 * doc/bison.texinfo (Table of Symbols): Document
2002 2001-08-15 Akim Demaille <akim@epita.fr>
2004 * missing: Update from CVS Automake.
2005 * config/config.guess, config/config.sub, config/texinfo.tex:
2006 Update from gnu.org.
2008 2001-08-15 Akim Demaille <akim@epita.fr>
2010 * Makefile.maint: Sync with CVS Autoconf.
2012 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
2014 * doc/bison.texinfo: Include GNU Free Documentation License from
2016 * doc/fdl.texi: Add to package.
2018 2001-08-14 Marc Autret <autret_m@epita.fr>
2020 Turn on %{source,header}_extension features.
2022 * src/lex.c (percent_table): Un-CPP out header_extension and
2024 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
2025 (compute_exts_from_src): Remove conditions. It restores priorities
2028 2001-08-14 Marc Autret <autret_m@epita.fr>
2030 * src/files.c (compute_base_names): Add extensions computing when
2031 `--file-prefix' used.
2032 Standardize function calls.
2034 2001-08-13 Marc Autret <autret_m@epita.fr>
2036 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
2037 defining it (defined but null disables alloca).
2039 2001-08-13 Marc Autret <autret_m@epita.fr>
2041 * src/bison.simple (_yy_memcpy): CPP reformat.
2043 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
2045 * tests/atconfig.in (CPPFLAGS): Fix.
2047 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
2049 * doc/bison.texinfo: Include GNU General Public License from
2051 * doc/gpl.texi: Add to package.
2053 2001-08-10 Marc Autret <autret_m@epita.fr>
2055 * src/print_graph.h: Fix.
2056 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
2058 2001-08-10 Akim Demaille <akim@epita.fr>
2060 * src/system.h: Provide default declarations for stpcpy, strndup,
2063 2001-08-10 Robert Anisko <anisko_r@epita.fr>
2065 * doc/bison.texinfo (Locations): Update @$ stuff.
2067 2001-08-09 Robert Anisko <anisko_r@epita.fr>
2069 * src/bison.simple (YYLLOC_DEFAULT): Update.
2072 2001-08-08 Marc Autret <autret_m@epita.fr>
2074 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
2075 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
2076 Reported by Fabrice Bauzac.
2078 2001-08-08 Marc Autret <autret_m@epita.fr>
2080 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
2081 * src/vcg.c (output_node): Fix.
2082 * src/vcg.h: Cleanup.
2083 * src/print_graph.c: Add comments.
2084 (node_output_size): New global variable. Simplify the formatting of
2085 the VCG graph output.
2086 (print_actions): Unused code is now used. It notifies the final state
2087 and no action states in the VCG graph. It also give the reduce actions.
2088 The `shift and goto' edges are red and the `go to state' edges are
2090 Get the current node name and node_obstack by argument.
2091 (node_obstack): New variable.
2092 (print_state): Manage node_obstack.
2093 (print_core): Use node_obstack given by argument.
2094 A node is not only computed here but in print_actions also.
2095 (print_graph): CPP out useless code instead of commenting it.
2097 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
2099 * tests/atconfig.in (CPPFLAGS): Fix.
2101 2001-08-07 Akim Demaille <akim@epita.fr>
2103 * src/print_graph.c (quote): New.
2104 (print_core): Use it.
2106 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
2108 * src/vcg.c (complain.h): Include it.
2109 Unepitaize `return' invocations.
2110 [NDEBUG] (main): Remove.
2111 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
2112 * src/files.c (open_files): Initialize graph_obstack.
2113 * src/print_graph.c (print_actions): CPP out useless code.
2114 (print_core): Don't output the last `\n' in labels.
2116 * src/files.c (output_files): Output the VCG file.
2117 * src/main.c (main): Invoke print_graph ();
2119 2001-08-06 Marc Autret <autret_m@epita.fr>
2121 Automaton VCG graph output.
2122 Using option ``-g'' or long option ``--graph'', you can generate
2123 a gram_filename.vcg file containing a VCG description of the LALR (1)
2124 automaton of your grammar.
2126 * src/main.c: Call to print_graph() function.
2127 * src/getargs.h: Update.
2128 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
2129 (graph_flag): New flag.
2131 (getargs): Add case `g'.
2132 * src/files.c (graph_obstack): New obstack struct.
2133 (open_files): Initialize new obstack.
2134 (output_files): Saves graph_obstack if required.
2135 * src/files.h (graph_obstack): New extern declaration.
2136 * src/Makefile.am: Add new source files.
2138 2001-08-06 Marc Autret <autret_m@epita.fr>
2140 * src/print_graph.c, src/print_graph.h (graph): New.
2141 * src/vcg.h: New file.
2142 * src/vcg.c: New file, VCG graph handling.
2144 2001-08-06 Marc Autret <autret_m@epita.fr>
2146 Add of %source_extension and %header_extension which specify
2147 the source or/and the header output file extension.
2149 * src/files.c (compute_base_names): Remove initialisation of
2150 src_extension and header_extension.
2151 (compute_exts_from_gf): Update.
2152 (compute_exts_from_src): Update.
2153 (output_files): Update.
2154 * src/reader.c (parse_header_extension_decl): New.
2155 (parse_source_extension_decl): New.
2156 (read_declarations): New case statements for the new tokens.
2157 * src/lex.c (percent_table): Add entries for %source_extension
2158 and %header_extension.
2159 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
2161 2001-08-06 Marc Autret <autret_m@epita.fr>
2163 * configure.in: Bump to 1.28c.
2164 * doc/bison.texinfo: Texinfo thingies.
2166 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
2168 * tests/atconfig.in (CPPFLAGS): Add.
2169 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
2171 2001-08-03 Akim Demaille <akim@epita.fr>
2175 2001-08-03 Akim Demaille <akim@epita.fr>
2177 * tests/Makefile.am (check-local): Ship testsuite.
2178 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
2181 2001-08-03 Akim Demaille <akim@epita.fr>
2183 * configure.in: Try using -Wformat when compiling.
2185 2001-08-03 Akim Demaille <akim@epita.fr>
2187 * configure.in: Bump to 1.28b.
2189 2001-08-03 Akim Demaille <akim@epita.fr>
2191 * src/complain.c: Adjust strerror_r portability issues.
2193 2001-08-03 Akim Demaille <akim@epita.fr>
2197 2001-08-03 Akim Demaille <akim@epita.fr>
2199 * src/getargs.c, src/getarg.h (skeleton)): Constify.
2200 * src/lex.c (literalchar): Avoid name clashes on `buf'.
2201 * src/getargs.c: Include complain.h.
2202 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
2203 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
2205 2001-08-03 Akim Demaille <akim@epita.fr>
2207 * src/reader.c (readgram): Display hidden chars in error messages.
2209 2001-08-03 Akim Demaille <akim@epita.fr>
2211 Update to gettext 0.10.39.
2213 2001-08-03 Akim Demaille <akim@epita.fr>
2215 * lib/strspn.c: New.
2217 2001-08-01 Marc Autret <autret_m@epita.fr>
2219 * doc/bison.texinfo: Update.
2220 * doc/bison.1 (mandoc): Update.
2221 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
2222 * src/files.c: Support output files extensions computing.
2223 (src_extension): New static variable.
2224 (header_extension): New static variable.
2226 (get_extension_index): New function, gets the index of an extension
2227 filename in a string.
2228 (compute_exts_from_gf): New function, computes extensions from the
2229 grammar file extension.
2230 (compute_exts_from_src): New functions, computes extensions from the
2231 C source file extension, file given by ``-o'' option.
2232 (compute_base_names): Update.
2233 (output_files): Update.
2235 2001-08-01 Robert Anisko <anisko_r@epita.fr>
2237 * doc/bison.texi: Document @$.
2238 (Locations): New section.
2240 2001-07-18 Akim Demaille <akim@epita.fr>
2242 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
2243 * config/prev-version.txt, config/move-if-change: New.
2244 * Makefile.am: Adjust.
2246 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
2248 * src/bison.simple (yyparse): Suppress warning `comparaison
2249 between signed and unsigned'.
2251 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
2253 * src/getargs.h (raw_flag): Remove.
2254 * src/getargs.c: Die on `-r'/`--raw'.
2255 * src/lex.c (parse_percent_token): Die on `%raw'.
2256 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
2257 * tests/calc.at: Suppress test with option `--raw'.
2259 2001-07-14 Akim Demaille <akim@epita.fr>
2262 * configure.in: Require Autoconf 2.50.
2263 Update to gettext 0.10.38.
2265 2001-03-16 Akim Demaille <akim@epita.fr>
2267 * doc/bison.texinfo: ANSIfy the examples.
2269 2001-03-16 Akim Demaille <akim@epita.fr>
2271 * getargs.c (skeleton): New variable.
2272 (longopts): --skeleton is a new option.
2273 (shortopts, getargs): -S is a new option.
2274 * getargs.h: Declare skeleton.
2275 * output.c (output_parser): Use it.
2277 2001-03-16 Akim Demaille <akim@epita.fr>
2279 * m4/strerror_r.m4: New.
2280 * m4/error.m4: Run AC_FUNC_STRERROR_R.
2281 * lib/error.h, lib/error.c: Update.
2283 2001-03-16 Akim Demaille <akim@epita.fr>
2285 * src/getargs.c (longopts): Clean up.
2287 2001-02-21 Akim Demaille <akim@epita.fr>
2289 * src/reader.c (gensym): `gensym_count' is your own.
2290 Use a static buf to create the symbol name, as token_buffer is no
2293 2001-02-08 Akim Demaille <akim@epita.fr>
2295 * src/conflicts.c (conflict_report): Be sure not to append to res
2296 between two calls, which could happen if both first sprintf were
2297 skipped, but not the first cp += strlen.
2299 2001-02-08 Akim Demaille <akim@epita.fr>
2301 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
2302 New, from fileutils 4.0.37.
2303 * configure.in: Require Autoconf 2.49c. I took some time before
2304 making this decision. This is the only way out for portability
2305 issues in Bison, it would mean way too much duplicate effort to
2306 import in Bison features implemented in 2.49c since 2.13.
2307 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
2309 2001-02-02 Akim Demaille <akim@epita.fr>
2311 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
2312 * lib/xalloc.h, lib/xmalloc.c: Update.
2314 2001-01-19 Akim Demaille <akim@epita.fr>
2316 Get rid of the ad hoc handling of token_buffer in the scanner: use
2319 * src/lex.c (token_obstack): New.
2320 (init_lex): Initialize it. No longer call...
2321 (grow_token_buffer): this. Remove it.
2322 Adjust all the places which used it to use the obstack.
2324 2001-01-19 Akim Demaille <akim@epita.fr>
2326 * src/lex.h: Rename all the tokens:
2327 s/\bENDFILE\b/tok_eof/g;
2328 s/\bIDENTIFIER\b/tok_identifier/g;
2330 Let them be enums, not #define, to ease debugging.
2331 Adjust all the code.
2333 2001-01-18 Akim Demaille <akim@epita.fr>
2335 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2336 * src/lex.c (maxtoken, grow_token_buffer): Static.
2338 2001-01-18 Akim Demaille <akim@epita.fr>
2340 Since we now use obstacks, more % directives can be enabled.
2342 * src/lex.c (percent_table): Also accept `%yacc',
2343 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2345 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2346 instead of returning a token.
2347 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2348 * src/reader.c (read_declarations): Adjust.
2349 * src/files.c (open_files): Don't call `compute_base_names', don't
2350 compute `attrsfile' since they depend upon data which might be
2351 *in* the input file now.
2352 (output_files): Do it here.
2353 * src/output.c (output_headers): Document the fact that this patch
2354 introduces a guaranteed SEGV for semantic parsers.
2355 * doc/bison.texinfo: Document them.
2356 * tests/suite.at: Exercise these %options.
2358 2000-12-20 Akim Demaille <akim@epita.fr>
2360 Also handle the output file (--verbose) with obstacks.
2362 * files.c (foutput): Remove.
2363 (output_obstack): New.
2364 Adjust all dependencies.
2365 * src/conflicts.c: Return a string.
2366 * src/system.h (obstack_grow_string): Rename as...
2367 (obstack_sgrow): this. Be ready to work with non literals.
2368 (obstack_fgrow4): New.
2370 2000-12-20 Akim Demaille <akim@epita.fr>
2372 * src/files.c (open_files): Fix the computation of short_base_name
2373 in the case of `-o foo.tab.c'.
2375 2000-12-20 Akim Demaille <akim@epita.fr>
2377 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2378 (copy_dollar): Now that everything uses obstacks, get rid of the
2381 2000-12-20 Akim Demaille <akim@epita.fr>
2383 * src/files.c (open_files): Actually the `.output' file is based
2384 on the short_base_name, not base_name.
2385 * tests/suite.at (Checking output file names): Adjust.
2387 2000-12-20 Akim Demaille <akim@epita.fr>
2389 * src/bison.s1: Remove, we now use directly...
2390 * src/bison.simple: this.
2391 * src/Makefile.am: Use pkgdata instead of data.
2393 2000-12-20 Akim Demaille <akim@epita.fr>
2395 * src/files.c (guard_obstack): New.
2396 (open_files): Initialize it.
2397 (output_files): Dump it...
2398 * src/files.h: Export it.
2399 * src/reader.c (copy_guard): Use it.
2401 2000-12-19 Akim Demaille <akim@epita.fr>
2403 * src/files.c (outfile, defsfile, actfile): Removed as global
2405 (open_files): Don't compute them.
2406 (output_files): Adjust.
2407 (base_name, short_base_name): Be global.
2408 Adjust dependencies.
2410 2000-12-19 Akim Demaille <akim@epita.fr>
2412 * src/files.c (strsuffix): New.
2413 (stringappend): Be just like strcat but allocate.
2414 (base_names): Eve out from open_files.
2415 Try to simplify the rather hairy computation of base_name and
2417 (open_files): Use it.
2418 * tests/suite.at (Checking output file names): New test.
2420 2000-12-19 Akim Demaille <akim@epita.fr>
2422 * src/system.h (obstack_grow_literal_string): Rename as...
2423 (obstack_grow_string): this.
2424 * src/output.c (output_parser): Recognize `%% actions' instead of
2426 * src/bison.s1: s/$/%% actions/.
2427 * src/bison.hairy: Likewise.
2429 2000-12-19 Akim Demaille <akim@epita.fr>
2431 * src/output.c (output_parser): Compute the `#line' lines when
2433 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2434 Suggested by Hans Aberg.
2436 2000-12-19 Akim Demaille <akim@epita.fr>
2438 Let the handling of the skeleton files be local to the procedures
2441 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2443 (fparser, open_extra_files): Remove.
2444 (open_files, output_files): Don't take care of fparser.
2445 * src/files.h: Adjust.
2446 * src/output.c (output_parser): Open and close the file to the
2448 * src/reader.c (read_declarations): When %semantic_parser, open
2451 2000-12-19 Akim Demaille <akim@epita.fr>
2453 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2454 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2456 2000-12-19 Akim Demaille <akim@epita.fr>
2458 * src/files.c (open_files): Yipee! We no longer need all the code
2459 looking for `/tmp' since we have no tmp file.
2461 2000-12-19 Akim Demaille <akim@epita.fr>
2463 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2465 * src/files.c (open_files): Less dependency on MSDOS etc.
2467 2000-12-14 Akim Demaille <akim@epita.fr>
2469 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2470 Provide a default definition.
2471 Use it when executing the default @ action.
2472 * src/reader.c (reader_output_yylsp): No longer include
2473 `timestamp' and `text' in the default YYLTYPE.
2475 2000-12-12 Akim Demaille <akim@epita.fr>
2477 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2478 (copy_guard): Quote the file names.
2479 Reported by Laurent Mascherpa.
2481 2000-12-12 Akim Demaille <akim@epita.fr>
2483 * src/output.c (output_headers, output_program, output): Be sure
2484 to escape special characters when outputting filenames.
2485 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2486 (output_headers): Don't depend on them, Use ACTSTR.
2488 2000-11-17 Akim Demaille <akim@epita.fr>
2490 * lib/obstack.h: Formatting changes.
2491 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2492 prevents type checking.
2493 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2494 cast the value to (void *): assigning a `foo *' to a `void *'
2496 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2497 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2500 2000-11-17 Akim Demaille <akim@epita.fr>
2502 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2504 (suite.m4, regression.m4, calc.m4): these.
2505 * tests/atgeneral.m4: Update from CVS Autoconf.
2507 2000-11-17 Akim Demaille <akim@epita.fr>
2509 * tests/regression.m4 (%union and --defines): New test,
2510 demonstrating a current bug in the obstack implementation.
2512 2000-11-17 Akim Demaille <akim@epita.fr>
2514 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2516 Use them to declare the variables which are global or local to
2519 2000-11-17 Akim Demaille <akim@epita.fr>
2521 * acconfig.h: Remove, no longer used.
2523 2000-11-07 Akim Demaille <akim@epita.fr>
2525 * src: s/Copyright (C)/Copyright/g.
2527 2000-11-07 Akim Demaille <akim@epita.fr>
2529 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2531 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2533 2000-11-07 Akim Demaille <akim@epita.fr>
2535 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2536 Merge in a single CPP if/else.
2538 2000-11-07 Akim Demaille <akim@epita.fr>
2540 * src/output.c (output): Remove useless variables.
2541 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2542 argument `data' for consistency with the prototypes.
2544 (obstack_copy, obstack_copy0): Rename the second argument as
2545 `address' for consistency. Qualify it `const'.
2546 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2547 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2548 `const' their input argument (`data' or `address').
2549 Adjust the corresponding macros to include `const' in casts.
2551 2000-11-03 Akim Demaille <akim@epita.fr>
2553 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2554 s/PFILE1/BISON_HAIRY/.
2555 Adjust dependencies.
2557 2000-11-03 Akim Demaille <akim@epita.fr>
2559 For some reason, this was not applied.
2561 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2562 `unlink': it's no longer used.
2564 2000-11-03 Akim Demaille <akim@epita.fr>
2566 * src/files.c (skeleton_find): New function, eved out of...
2567 (open_files, open_extra_files): here.
2569 2000-11-03 Akim Demaille <akim@epita.fr>
2573 * src/files.c (obstack_save): New function.
2574 (done): Rename as...
2575 (output_files): this.
2577 * src/main.c (main): Don't use `atexit' to register `done', since
2578 it no longer has to remove tmp files, just call `output_files'
2579 when there are no errors.
2581 2000-11-02 Akim Demaille <akim@epita.fr>
2583 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2584 `unlink': it's no longer used.
2585 * src/files.h: Formatting changes.
2587 2000-11-02 Akim Demaille <akim@epita.fr>
2589 Remove the last uses of mktemp and unlink/delete.
2591 * src/files.c (fdefines, ftable): Removed.
2592 (defines_ostack, table_obstack): New.
2593 Adjust dependencies of the former into uses of the latter.
2594 * src/output.c (output_short_or_char_table, output_short_table):
2595 Convert to using obstacks.
2596 * src/reader.c (copy_comment2): Accept one FILE * and two
2598 (output_token_defines, reader_output_yylsp): Use obstacks.
2599 * src/system.h (obstack_fgrow3): New.
2601 2000-11-01 Akim Demaille <akim@epita.fr>
2603 Change each use of `fattrs' into a use of `attrs_obstack'.
2605 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2606 * src/files.c (fattrs): Remove.
2607 (attrs_obstack): New.
2608 Adjust all dependencies.
2609 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2611 2000-11-01 Akim Demaille <akim@epita.fr>
2614 Change each use of `faction' into a use of `action_obstack'.
2616 * lib/obstack.h, lib/obstack.c: New files.
2617 * src/files.c (faction): Remove.
2618 (action_obstack): New.
2619 Adjust all dependencies.
2621 2000-10-20 Akim Demaille <akim@epita.fr>
2623 * lib/quote.h (PARAMS): New macro. Use it.
2625 2000-10-16 Akim Demaille <akim@epita.fr>
2627 * src/output.c (output_short_or_char_table): New function.
2628 (output_short_table, output_token_translations): Use it.
2629 (goto_actions): Use output_short_table.
2631 2000-10-16 Akim Demaille <akim@epita.fr>
2633 * src/symtab.c (bucket_new): New function.
2636 * src/output.c (output_short_table): New argument to display the
2637 comment associated with the table.
2638 Adjust dependencies.
2639 (output_gram): Use it.
2640 (output_rule_data): Nicer output layout for YYTNAME.
2642 2000-10-16 Akim Demaille <akim@epita.fr>
2644 * src/lex.c (read_typename): New function.
2646 * src/reader.c (copy_dollar): Likewise.
2648 2000-10-16 Akim Demaille <akim@epita.fr>
2650 * src/reader.c (copy_comment2): Expect the input stream to be on
2651 the `/' which is suspected to open a comment, instead of being
2652 called after `//' or `/*' was read.
2653 (copy_comment, copy_definition, parse_union_decl, copy_action)
2654 (copy_guard): Adjust.
2656 2000-10-16 Akim Demaille <akim@epita.fr>
2658 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2659 `read_signed_integer'.
2661 2000-10-16 Akim Demaille <akim@epita.fr>
2663 * src/reader.c (copy_dollar): New function.
2664 (copy_guard, copy_action): Use it.
2666 2000-10-16 Akim Demaille <akim@epita.fr>
2668 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2669 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2670 New files, from Fileutils 4.0.27.
2671 * src/main.c (printable_version): Remove.
2672 * src/lex.c, src/reader.c: Use `quote'.
2674 2000-10-04 Akim Demaille <akim@epita.fr>
2676 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2678 2000-10-04 Akim Demaille <akim@epita.fr>
2680 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2682 2000-10-04 Akim Demaille <akim@epita.fr>
2684 When a literal string is used to define two different tokens,
2685 `bison -v' segfaults.
2686 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2688 * tests/regression.m4: New file.
2689 Include the core of the sample provided by Piotr Gackiewicz.
2690 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2693 2000-10-04 Akim Demaille <akim@epita.fr>
2695 * src/reader.c (parse_expect_decl): Keep `count' within the size
2699 2000-10-02 Paul Eggert <eggert@twinsun.com>
2701 * bison.s1 (yyparse): Assign the default value
2702 unconditionally, to avoid a GCC warning and make the parser a
2705 2000-10-02 Akim Demaille <akim@epita.fr>
2707 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2710 2000-10-02 Akim Demaille <akim@epita.fr>
2712 * src/derives.c, src/print.c, src/reduce.c: To ease the
2713 translation, move some `\n' out of the translated strings.
2715 2000-10-02 Akim Demaille <akim@epita.fr>
2717 The location tracking mechanism is precious for parse error
2718 messages. Nevertheless, it is enabled only when `@n' is used in
2719 the grammar, which is a different issue (you can use it in error
2720 message, but not in the grammar per se). Therefore, there should
2721 be another means to enable it.
2723 * src/getargs.c (getargs): Support `--locations'.
2725 * src/getargs.h (locationsflag): Export it.
2726 * src/lex.c (percent_table): Support `%locations'.
2727 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2728 with `locationsflag'.
2729 * doc/bison.texinfo: Document `--locations' and `%locations'.
2731 * tests/calc.m4: Test it.
2733 For regularity of the names, replace each
2734 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2735 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2736 In addition replace each `flag' with `_flag'.
2738 2000-10-02 Akim Demaille <akim@epita.fr>
2740 Also test parse error messages, including with YYERROR_VERBOSE.
2742 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2744 Use it to check the computations.
2745 Use it to check `nonassoc' is honored.
2746 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2747 `--yyerror-verbose'.
2748 (_AT_CHECK_CALC): Adjust to this option.
2749 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2751 2000-10-02 Akim Demaille <akim@epita.fr>
2753 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2754 the latter demonstrates a flaw in the handling of non debugging
2755 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2756 was used in order to simplify:
2772 unfortunately this leads to a CPP conflict when
2773 `--name-prefix=foo' is used since it produces `#define yydebug
2776 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2777 (YYDPRINTF): New macro.
2779 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2781 Also test `--verbose', `--defines' and `--name-prefix'.
2783 2000-10-02 Akim Demaille <akim@epita.fr>
2785 Improve the readability of the produced parsers.
2787 * src/bison.s1: Formatting changes.
2788 Improve the comment related to the `$' mark.
2789 (yydefault): Don't fall through to `yyresume': `goto' there.
2790 * src/output.c (output_parser): When the `$' is met, skip the end
2792 New variable, `number_of_dollar_signs', to check there's exactly
2793 one `$' in the parser skeleton.
2795 2000-10-02 Akim Demaille <akim@epita.fr>
2797 * lib/xstrdup.c: New file, from the fileutils.
2798 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2799 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2800 instead of strlen + xmalloc + strcpy.
2801 * src/symtab.c (copys): Remove, use xstrdup instead.
2803 2000-10-02 Akim Demaille <akim@epita.fr>
2805 * src/gram.h (associativity): New enum type which replaces the
2806 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2807 `right_assoc', `left_assoc' and `non_assoc'.
2808 Adjust all dependencies.
2809 * src/reader.c: Formatting changes.
2810 (LTYPESTR): Don't define it, use it as a literal in
2811 `reader_output_yylsp'.
2812 * src/symtab.h (symbol_class): New enum type which replaces the
2813 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2814 `sunknown', `stoken and `snterm'.
2816 2000-10-02 Akim Demaille <akim@epita.fr>
2818 * src/getargs.c (fixed_outfiles): Rename as...
2819 (yaccflag): for consistency and accuracy.
2820 Adjust dependencies.
2822 2000-10-02 Akim Demaille <akim@epita.fr>
2824 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2825 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2826 difficult and introduced a lot of core dump. It turns out that
2827 Bison used an implementation of `xmalloc' based on `calloc', and
2828 at various places it does depend upon the initialization to 0. I
2829 have not tried to isolate the pertinent places, and all the former
2830 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2831 someone should address this issue.
2833 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2834 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2836 Adjust dependencies.
2837 * src/warshall.h: New file.
2840 2000-10-02 Akim Demaille <akim@epita.fr>
2842 Various anti-`extern in *.c' changes.
2844 * src/system.h: Include `assert.h'.
2846 2000-10-02 Akim Demaille <akim@epita.fr>
2848 * src/state.h (nstates, final_state, first_state, first_shift)
2849 (first_reduction): Move their exportation from here...
2850 * src/LR0.h: to here.
2851 Adjust dependencies.
2852 * src/getargs.c (statisticsflag): New variable.
2853 Add support for `--statistics'.
2854 Adjust dependencies.
2856 Remove a lot of now useless `extern' statements in most files.
2858 2000-10-02 Akim Demaille <akim@epita.fr>
2860 * src/LR0.h: New file.
2863 2000-10-02 Akim Demaille <akim@epita.fr>
2865 * src/print.h: New file.
2867 * src/print.c: Formatting and ordering changes.
2868 (verbose, terse): Replace with...
2869 (print_results): this new function.
2870 Adjust dependencies.
2872 2000-10-02 Akim Demaille <akim@epita.fr>
2874 * src/conflicts.c (conflict_report): New function.
2875 (conflict_log, verbose_conflict_log): Replace with...
2876 (print_conflicts): this function.
2877 Adjust dependencies.
2878 * src/conflicts.h: New file.
2879 Propagate its inclusion.
2881 2000-10-02 Akim Demaille <akim@epita.fr>
2883 * src/nullable.h: New file.
2884 Propagate its inclusion.
2885 * src/nullable.c: Formatting changes.
2887 2000-10-02 Akim Demaille <akim@epita.fr>
2889 * src/reduce.h: New file.
2890 Propagate its inclusion.
2891 * src/reduce.c: Topological sort and other formatting changes.
2892 (bool, TRUE, FALSE): Move their definition to...
2893 * src/system.h: here.
2895 2000-10-02 Akim Demaille <akim@epita.fr>
2897 * src/files.c: Formatting changes.
2898 (tryopen, tryclose, openfiles): Rename as...
2899 (xfopen, xfclose, open_files): this.
2900 (stringappend): static.
2901 * src/files.h: Complete the list of exported symbols.
2904 2000-10-02 Akim Demaille <akim@epita.fr>
2906 * src/reader.h: New file.
2907 Propagate its use instead of tedious list of `extern' and
2909 * src/reader.c: Formatting changes, topological sort,
2912 2000-10-02 Akim Demaille <akim@epita.fr>
2914 * src/lex.h: Prototype `lex.c' exported functions.
2915 * src/reader.c: Adjust.
2916 * src/lex.c: Formatting changes.
2917 (safegetc): Rename as...
2920 2000-10-02 Akim Demaille <akim@epita.fr>
2922 * src/lalr.h: New file.
2923 Propagate its inclusion instead of prototypes and `extern'.
2924 * src/lalr.c: Formatting changes, topological sorting etc.
2926 2000-10-02 Akim Demaille <akim@epita.fr>
2928 * src/output.c (token_actions): Introduce a temporary array,
2929 YYDEFACT, that makes it possible for this function to use
2932 2000-10-02 Akim Demaille <akim@epita.fr>
2934 `user_toknums' is output as a `short[]' in `output.c', while it is
2935 defined as a `int[]' in `reader.c'. For consistency with the
2936 other output tables, `user_toknums' is now defined as a table of
2939 * src/reader.c (user_toknums): Be a short table instead of an int
2941 Adjust dependencies.
2943 Factor the short table outputs.
2945 * src/output.c (output_short_table): New function.
2946 * src/output.c (output_gram, output_stos, output_rule_data)
2947 (output_base, output_table, output_check): Use it.
2949 2000-10-02 Akim Demaille <akim@epita.fr>
2951 * src/output.c (output): Topological sort of the functions, in
2952 order to get rid of the `static' prototypes.
2953 No longer use `register'.
2954 * src/output.h: New file.
2955 Propagate its inclusion in files explicitly prototyping functions
2958 2000-09-21 Akim Demaille <akim@epita.fr>
2960 * src/atgeneral.m4: Update from Autoconf.
2962 2000-09-21 Akim Demaille <akim@epita.fr>
2964 * src/closure.h: New file.
2965 * src/closure.c: Formatting changes, topological sort over the
2966 functions, use of closure.h.
2967 (initialize_closure, finalize_closure): Rename as...
2968 (new_closure, free_closure): these. Adjust dependencies.
2969 * src/LR0.c: Formatting changes, topological sort, use of
2971 (initialize_states): Rename as...
2973 * src/Makefile.am (noinst_HEADERS): Adjust.
2975 2000-09-20 Akim Demaille <akim@epita.fr>
2977 * src/acconfig.h: Don't protect config.h against multiple
2979 Don't define PARAMS.
2980 * src/system.h: Define PARAMS.
2981 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2982 purpose of config.h. system.h must not try to fix wrong
2983 definitions in config.h.
2985 2000-09-20 Akim Demaille <akim@epita.fr>
2987 * src/derives.h: New file.
2988 * src/main.c, src/derives.h: Use it.
2990 * src/Makefile.am (noinst_HEADERS): Adjust.
2992 2000-09-20 Akim Demaille <akim@epita.fr>
2994 * tests/atgeneral.m4: Update from Autoconf.
2995 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2996 (AT_CHECK_CALC): New macros.
2997 Use these macros to test bison with options `', `--raw',
2998 `--debug', `--yacc', `--yacc --debug'.
3000 2000-09-19 Akim Demaille <akim@epita.fr>
3002 * src/output.c: Formatting changes.
3003 * src/machine.h: Remove, leaving its contents in...
3004 * src/system.h: here.
3006 Adjust all dependencies on stdio.h and machine.h.
3007 * src/getargs.h: New file.
3008 Let all `extern' declarations about getargs.c be replaced with
3009 inclusion of `getargs.h'.
3010 * src/Makefile.am (noinst_HEADERS): Adjust.
3012 * tests/calc.m4 (yyin): Be initialized in main, not on the global
3014 (yyerror): Returns void, not int.
3015 * doc/bison.texinfo: Formatting changes.
3017 2000-09-19 Akim Demaille <akim@epita.fr>
3019 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
3022 2000-09-18 Akim Demaille <akim@epita.fr>
3024 * configure.in: Append WARNING_CFLAGS to CFLAGS.
3025 * src/Makefile.am (INCLUDES): Don't.
3026 Be ready to fetch headers in lib/.
3028 2000-09-18 Akim Demaille <akim@epita.fr>
3030 * doc/bison.texinfo: Update the copyright.
3031 ANSIfy and GNUify the examples.
3032 Remove the old menu.
3034 2000-09-18 Akim Demaille <akim@epita.fr>
3036 First set of tests: use the `calc' example from the documentation.
3038 * src/bison.s1 (yyparse): Condition the code using `yytname' which
3039 is defined only when YYDEBUG is.
3040 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
3041 * src/files.c (tryopen, tryclose): Formatting changes.
3042 Move to the top and be static.
3043 * src/reader.c (read_signed_integer): Likewise.
3044 * tests/calc.m4: New file.
3045 * Makefile.am, suite.m4: Adjust.
3046 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
3048 2000-09-18 Akim Demaille <akim@epita.fr>
3050 Add support for an Autotest test suite for Bison.
3052 * m4/m4.m4, m4/atconfig.m4: New files.
3053 * m4/Makefile.am (EXTRA_DIST): Adjust.
3054 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
3056 * src/getargs.c: Display a more standard --version message.
3057 * src/reader.c (reader): Formatting changes.
3058 No longer depend upon VERSION_STRING.
3059 * configure.in: No longer use `dnl'.
3060 Set up the test suite and the new directory `tests/.
3061 (VERSION_STRING): Remove.
3063 2000-04-14 Akim Demaille <akim@epita.fr>
3065 * src/reader.c (copy_comment2): New function, same as former
3066 `copy_comment', but outputs into two FILE *.
3067 (copy_comment): Use it.
3068 (parse_union_decl): Use it.
3069 (get_type, parse_start_decl): Use the same `invalid' message.
3070 (parse_start_decl, parse_union_decl): Use the same `multiple'
3072 (parse_union_decl, copy_guard, copy_action): Use the same
3073 `unmatched' message.
3074 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
3076 2000-03-31 Akim Demaille <akim@epita.fr>
3078 * src/files.c (tryopen, tryclose): Move to the top.
3081 2000-03-31 Akim Demaille <akim@epita.fr>
3083 * src/main.c (main): Don't call `done', exit does it.
3085 2000-03-31 Akim Demaille <akim@epita.fr>
3087 * allocate.c: s/return (foo)/return foo/.
3090 * output.c: Likewise.
3091 * reader.c: Likewise.
3092 * symtab.c: Likewise.
3093 * vmsgetargs.c: Likewise.
3095 2000-03-31 Akim Demaille <akim@epita.fr>
3097 Clean up the error reporting functions.
3099 * src/report.c: New file.
3100 * src/report.h: Likewise.
3101 * src/Makefile.am: Adjust.
3102 * m4/error.m4: New file.
3103 * m4/Makefile.am: Adjust.
3104 * configure.in (jm_PREREQ_ERROR): Call it.
3105 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
3107 (fatal, fatals): Remove. All callers use complain.c::fatal.
3108 (warn, warni, warns, warnss, warnss): Remove. All callers use
3109 complain.c::complain.
3110 (toomany): Remove, use fatal instead.
3111 * src/files.c (done): No argument, use complain_message_count.
3112 * src/main.c (main): Register `done' to `atexit'.
3114 * src/getargs.c (usage): More `fputs', less `fprintf'.
3116 2000-03-28 Akim Demaille <akim@epita.fr>
3118 * lib/: New directory.
3119 * Makefile.am (SUBDIRS): Adjust.
3120 * configure.in: Adjust.
3121 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
3123 * src/alloca.c: Moved to lib/.
3124 * src/getopt.c: Likewise.
3125 * src/getopt1.c: Likewise.
3126 * src/getopt.h: Likewise.
3127 * src/ansi2knr.c: Likewise.
3128 * src/ansi2knr.1: Likewise.
3129 * src/Makefile.am: Adjust.
3130 * lib/Makefile.am: New file.
3132 2000-03-28 Akim Demaille <akim@epita.fr>
3134 * src/getargs.c (usage): Refresh the help message.
3136 2000-03-17 Akim Demaille <akim@epita.fr>
3138 * src/getopt1.c: Updated from textutils 2.0e
3139 * src/getopt.c: Likewise.
3140 * src/getopt.h: Likewise.
3142 2000-03-17 Akim Demaille <akim@epita.fr>
3144 * src/Makefile.am (bison.simple): Fix the awk program: quote only
3145 the file name, not the whole `#line LINE FILE'.
3147 2000-03-17 Akim Demaille <akim@epita.fr>
3149 On syntax errors, report the token on which we choked.
3151 * src/bison.s1 (yyparse): In the label yyerrlab, when
3152 YYERROR_VERBOSE, add yychar in msg.
3154 2000-03-17 Akim Demaille <akim@epita.fr>
3156 * src/reader.c (copy_at): New function.
3157 (copy_guard): Use it.
3158 (copy_action): Use it.
3160 2000-03-17 Akim Demaille <akim@epita.fr>
3162 Be kind to translators, save some useless translations.
3164 * src/main.c (banner): New function.
3165 (fatal_banner): Use it.
3166 (warn_banner): Use it.
3168 2000-03-17 Akim Demaille <akim@epita.fr>
3170 * src/reader.c (copy_definition): Use copy_string and
3171 copy_comment. Removed now unused `match', `ended',
3173 (copy_comment, copy_string): Moved, to be visible from
3176 2000-03-17 Akim Demaille <akim@epita.fr>
3178 * src/reader.c (copy_string): Declare `static inline'. No
3179 problems with inline, since it is checked by configure.
3180 (copy_comment): Likewise.
3182 2000-03-17 Akim Demaille <akim@epita.fr>
3184 * src/reader.c (packsymbols): Formatting changes.
3186 2000-03-17 Akim Demaille <akim@epita.fr>
3188 * src/reader.c (copy_comment): New function, factored out from:
3189 (copy_action): Use it. Removed now unused `match', `ended',
3191 (copy_guard): Likewise.
3193 2000-03-17 Akim Demaille <akim@epita.fr>
3195 * src/reader.c (copy_string): New function, factored out from:
3196 (copy_action): Use it.
3197 (copy_guard): Likewise.
3199 2000-03-17 Akim Demaille <akim@epita.fr>
3201 Change the handling of @s so that they behave exactly like $s.
3202 There is now a pseudo variable @$ (readble and writable), location
3203 of the lhs of the rule (by default ranging from the location of
3204 the first symbol of the rhs, to the location of the last symbol,
3205 or, if the rhs is empty, YYLLOC).
3207 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
3209 (yyparse): When providing a default semantic action, provide a
3210 default location action.
3211 (after the $): No longer change `*YYLSP', just stack YYLOC the
3212 same way you stack YYVAL.
3213 * src/reader.c (read_declarations): Use warns.
3214 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
3215 (copy_action, case '@'): Likewise.
3216 Use a standard error message, to save useless work from
3219 2000-03-17 Akim Demaille <akim@epita.fr>
3221 * src/bison.s1: Formatting and cosmetics changes.
3222 * src/reader.c: Likewise.
3223 Update the Copyright notice.
3225 2000-03-17 Akim Demaille <akim@epita.fr>
3227 * src/bison.s1 (#line): All set to `#line' only, since the
3228 Makefile now handles them.
3230 2000-03-16 Akim Demaille <akim@epita.fr>
3232 * src/output.c (output_rule_data): Output the documentation of
3234 (Copyright notice): Update.
3237 2000-03-16 Akim Demaille <akim@epita.fr>
3239 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
3240 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
3241 One `#if YYDEBUG' remains, since it uses variables which are
3242 defined only if `YYDEBUG != 0'.
3244 2000-03-16 Akim Demaille <akim@epita.fr>
3246 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
3247 and related variables so that the similarities are highlighted.
3249 2000-03-16 Akim Demaille <akim@epita.fr>
3251 * src/bison.s1: Properly indent CPP directives.
3253 2000-03-16 Akim Demaille <akim@epita.fr>
3255 * src/bison.s1: Properly indent the `alloca' CPP section.
3257 2000-03-16 Akim Demaille <akim@epita.fr>
3259 Do not hard code values of directories in `configure.in'.
3260 Update the `configure' tool chain.
3262 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
3264 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
3265 (AC_OUTPUT): Add m4/Makefile.
3266 Bump to bison 1.28a, 1.29 has never been released.
3267 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
3268 handled via src/Makefile.am.
3269 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
3270 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
3272 * Makefile.am (SUBDIRS): Add m4.
3273 (ACLOCAL_AM_FLAGS): New variable.
3274 (AUTOMAKE_OPTIONS): Add check-news.
3275 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
3276 the proper line number and file name.
3277 (DEFS): Propagate the location of bison library files and of the
3279 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
3281 * acinclude.m4: Remove, replaced by the directory m4.
3282 * m4/Makefile.am (EXTRA_DIST): New variable.
3283 * m4/gettext.m4: New file, from the fileutils.
3284 * m4/lcmessage.m4: Likewise
3285 * m4/progtest.m4: Likewise.
3286 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
3288 2000-03-10 Akim Demaille <akim@epita.fr>
3291 Formatting changes of various comments.
3292 Respect the GNU coding standards at various places.
3293 Don't use `_()' when no translation is needed.
3295 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3298 OS/2 honors TMPDIR environment variable.
3300 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3302 * doc/bison.texinfo: Tweaked spelling and grammar.
3304 Removed reference to price of printed copy.
3305 Mention BISON_SIMPLE and BISON_HAIRY.
3307 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3309 * configure.in, NEWS:
3310 Bison 1.29 released.
3312 1999-10-27 Jesse Thilo <jthilo@gnu.org>
3314 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3315 Added reference card.
3317 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3319 * po/ru.po: Added Russian translation.
3321 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3323 * configure.in: Added Russian translation.
3325 1999-07-06 Jesse Thilo <jthilo@gnu.org>
3327 * configure.in, NEWS, README:
3328 Released version 1.28.
3330 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3333 Squashed redefinition warning on some systems.
3335 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3336 Have configure build version string instead of relying on ANSI string
3339 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3341 * po/POTFILES.in: Got rid of version.c.
3343 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3345 * acconfig.h, configure.in:
3346 Have configure build version string instead of relying on ANSI string
3349 1999-06-08 Jesse Thilo <jthilo@gnu.org>
3352 Dropped mention of `+' for long-named options.
3354 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3356 * src/files.c: Added <unistd.h> for unlink().
3358 * src/Makefile.am, src/system.h:
3361 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3363 * README: Added a FAQ list.
3365 * configure.in, acconfig.h:
3368 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3370 * doc/FAQ, doc/Makefile.am:
3373 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3375 * src/alloc.h, src/symtab.h, src/version.c:
3376 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3378 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3380 * src/.cvsignore, src/Makefile.am:
3381 Reorganized: sources in `src', documentation in `doc'.
3383 * src/lex.c (literalchar):
3384 fixed the code for escaping double quotes (thanks
3387 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3389 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3390 Adjusted paths to reflect directory reorganization.
3392 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3394 * doc/.cvsignore, doc/Makefile.am:
3395 Reorganized: sources in `src', documentation in `doc'.
3397 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3400 Updated AC_INIT file to reflect directory reorganization.
3402 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3403 Reorganized: sources in `src', documentation in `doc'.
3405 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3408 Don't declare calloc() and realloc() if not necessary.
3410 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3412 * configure.in, acconfig.h, acinclude.m4:
3413 Don't declare calloc() and realloc() if not necessary.
3415 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3417 * po/.cvsignore: Added i18n support.
3419 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3421 * acconfig.h, configure.in, Makefile.am:
3424 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3426 * src/bison.s1: Fixed #line numbers.
3428 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3430 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3431 Added PO files from Translation Project.
3433 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3436 Added support for non-ANSI compilers (ansi2knr).
3438 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3440 * configure.in: Bumped version number to 1.27.
3443 Added `bison.simple' to list of files removed by `make distclean'.
3445 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3447 * src/files.c, src/files.h:
3448 Defined locations of parser files in config.h instead of Makefile.
3450 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3452 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3453 Defined locations of parser files in config.h instead of Makefile.
3455 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3458 Removed inappropriate use of $< macro.
3460 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3462 * po/Makefile.in.in, po/POTFILES.in:
3463 Add `po' directory skeleton.
3465 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3467 * README: Document help-bison list.
3469 * configure.in: Add check for mkstemp().
3471 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3473 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3474 Hush a few compiler warnings.
3477 Add tryclose(), which verifies that fclose was successful.
3478 Hush a couple of compiler warnings.
3480 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3482 * Makefile.am, OChangeLog:
3483 ChangeLog is now automatically generated. Include the old version as
3486 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3488 * 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:
3491 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3493 * doc/bison.texinfo: Fix formatting glitch.
3495 * doc/bison.texinfo: Update FSF address.
3497 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3499 * acconfig.h: Update FSF address.
3501 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3504 Don't define PACKAGE here, since config.h defines it.
3506 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3508 * src/reader.c: Update copyright date.
3511 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3512 favor of output directly to stderr (avoids buffer overruns).
3514 * src/reader.c: Some checks for premature EOF.
3516 * 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:
3517 Use prototypes if the compiler understands them.
3519 * src/files.c: Honor TMPDIR on Unix hosts.
3520 Use prototypes if the compiler understands them.
3523 Fix a couple of buffer overrun bugs.
3524 Use prototypes if the compiler understands them.
3526 * src/system.h: Include unistd.h and ctype.h.
3527 Use #ifdef instead of #if for NLS symbols.
3529 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3531 * doc/bison.texinfo:
3532 Delete comment "consider using @set for edition number, etc..." since
3533 we now are doing so.
3535 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3538 Use prototypes if the compiler understands them.
3540 * NEWS: Document 1.26 highlights.
3542 * Makefile.am: Require Automake 1.3 or later.
3545 Use prototypes if the compiler understands them.
3547 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3550 Use VERSION symbol from automake for version number.
3552 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3554 * acconfig.h, configure.in, version.cin:
3555 Use VERSION symbol from automake for version number.
3557 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3560 Distribute original version of simple parser (bison.s1), not built
3561 version (bison.simple).
3563 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3565 * doc/bison.texinfo: Add info dir entry.
3567 * doc/bison.texinfo:
3568 Let automake put version number into documentation.
3570 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3572 * src/bison.cld, src/build.com, src/vmshlp.mar:
3573 Add non-RCS files from /gd/gnu/bison.
3575 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3578 Document the BISON_HAIRY and BISON_SIMPLE variables.
3580 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3582 * src/version.c: Build version.c automatically.
3585 Fix token numbering (used to start at 258, not 257).
3587 * src/system.h: Include config.h.
3589 * src/getargs.c: Update bug report address.
3591 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3592 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3594 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3597 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3599 * configure.in, version.cin:
3600 Build version.c automatically.
3602 * AUTHORS: Add AUTHORS file.
3604 * README: Update bug report address.
3607 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3609 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3612 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3614 * doc/bison.texinfo: Clean up some formatting.
3616 1998-05-05 Richard Stallman <rms@gnu.org>
3618 * doc/bison.texinfo:
3619 Explain better why to make a pure parser.
3621 1998-01-05 Richard Stallman <rms@gnu.org>
3623 * src/files.c (openfiles):
3624 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3625 find a temporary directory, if possible. Do not unlink files while
3628 1997-08-25 Richard Stallman <rms@gnu.org>
3630 * src/reader.c (stack_offset;):
3631 Change some warni to warns.
3633 * src/lex.c (literalchar): Use warns, not warni.
3635 1997-06-28 Richard Stallman <rms@gnu.org>
3637 * src/bison.s1: Add a Bison version comment.
3639 * src/main.c (fatal, warn, berror):
3642 1997-06-28 Richard Stallman <rms@gnu.org>
3644 * Makefile.in (bison_version): New variable.
3645 (dist): Use that variable.
3646 (bison.s1): Substitute the Bison version into bison.simple.
3648 * bison.simple: Add a Bison version comment.
3650 1997-06-18 Richard Stallman <rms@gnu.org>
3652 * src/main.c (fatal, warn, berror):
3653 Make error messages standard.
3654 (toomany): Improve error message text.
3656 * 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:
3657 new.h renamed to alloc.h.
3659 1997-06-18 Richard Stallman <rms@gnu.org>
3661 * Makefile.in: new.h renamed to alloc.h.
3663 1997-05-24 Richard Stallman <rms@gnu.org>
3665 * src/lex.c (literalchar):
3666 Fix the code for escaping \, " and '.
3668 (lex): Avoid trouble when there are many chars
3669 to discard in a char literal with just several chars in it.
3671 1997-05-17 Richard Stallman <rms@gnu.org>
3674 Use malloc, if using alloca is troublesome.
3675 (YYSTACK_USE_ALLOCA): New flag macro.
3676 Define it for some systems and compilers.
3677 (YYSTACK_ALLOC): New macro.
3678 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3679 If it was malloc'd, free it.
3681 1997-05-17 Richard Stallman <rms@gnu.org>
3684 Use malloc, if using alloca is troublesome.
3685 (YYSTACK_USE_ALLOCA): New flag macro.
3686 Define it for some systems and compilers.
3687 (YYSTACK_ALLOC): New macro.
3688 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3689 If it was malloc'd, free it.
3691 1997-04-23 Richard Stallman <rms@gnu.org>
3694 (alloca) [__hpux]: Always define as __builtin_alloca.
3696 1997-04-23 Richard Stallman <rms@gnu.org>
3699 (alloca) [__hpux]: Always define as __builtin_alloca.
3701 1997-04-22 Richard Stallman <rms@gnu.org>
3704 [__hpux]: Include alloca.h (right for HPUX 10)
3705 instead of declaring alloca (right for HPUX 9).
3707 * src/bison.s1 (__yy_memcpy):
3708 Declare arg `count' as unsigned int.
3709 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3711 1997-04-22 Richard Stallman <rms@gnu.org>
3714 [__hpux]: Include alloca.h (right for HPUX 10)
3715 instead of declaring alloca (right for HPUX 9).
3717 * bison.simple (__yy_memcpy):
3718 Declare arg `count' as unsigned int.
3719 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3721 1997-01-03 Richard Stallman <rms@gnu.org>
3723 * src/allocate.c: [__STDC__ or _MSC_VER]:
3724 Declare calloc and realloc to return void *.
3726 1997-01-02 Richard Stallman <rms@gnu.org>
3729 [_MSC_VER]: Include stdlib.h and process.h.
3730 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3732 * src/main.c (main): Return FAILURE as a value.
3733 (printable_version): Declare arg as int, not char.
3735 1997-01-02 Richard Stallman <rms@gnu.org>
3737 * Makefile.in (dist):
3738 Explicitly check for symlinks, and copy them.
3740 1996-12-19 Richard Stallman <rms@gnu.org>
3743 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3745 1996-12-18 Paul Eggert <eggert@gnu.org>
3747 * src/bison.s1 (yyparse):
3748 If __GNUC__ and YYPARSE_PARAM are both defined,
3749 declare yyparse to have a void * argument.
3751 1996-12-18 Paul Eggert <eggert@gnu.org>
3753 * bison.simple (yyparse):
3754 If __GNUC__ and YYPARSE_PARAM are both defined,
3755 declare yyparse to have a void * argument.
3757 1996-12-17 Richard Stallman <rms@gnu.org>
3759 * src/reduce.c (nbits): Add some casts.
3761 1996-08-12 Richard Stallman <rms@gnu.org>
3763 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3765 1996-08-12 Richard Stallman <rms@gnu.org>
3767 * bison.simple: Test _MSDOS as well as _MSDOS_.
3769 1996-07-31 Richard Stallman <rms@gnu.org>
3772 [__sun && __i386]: Include alloca.h.
3774 1996-07-31 Richard Stallman <rms@gnu.org>
3777 [__sun && __i386]: Include alloca.h.
3779 1996-07-30 Richard Stallman <rms@gnu.org>
3781 * src/bison.s1: Comment change.
3783 * src/bison.s1: Test _MSDOS_, not MSDOS.
3785 1996-07-30 Richard Stallman <rms@gnu.org>
3787 * bison.simple: Comment change.
3789 * bison.simple: Test _MSDOS_, not MSDOS.
3791 1996-06-01 Richard Stallman <rms@gnu.org>
3793 * 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:
3794 Insert `_' macro around many string constants.
3797 Insert `_' macro around many string constants.
3799 (main): Call setlocale, bindtextdomain and textdomain.
3801 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3802 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3803 [ENABLE_NLS]: Include libintl.h.
3804 [ENABLE_NLS] (gettext): Define.
3805 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3806 (N_, PACKAGE, LOCALEDIR): New macros.
3808 1996-06-01 Richard Stallman <rms@gnu.org>
3810 * POTFILES.in: New file.
3812 * Makefile.in (allocate.o):
3813 Define target explicitly.
3815 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3816 (LDFLAGS): Set to @LDFLAGS@.
3817 (configure): Run autoconf only if preceding `cd' succeeds.
3818 (bison.s1): Redirect output to temporary file then move the
3819 temporary to the target, rather than redirecting directly to bison.s1.
3820 (clean): Remove config.status and config.log.
3821 (distclean): Don't remove config.status here.
3823 1996-05-12 Richard Stallman <rms@gnu.org>
3826 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3828 1996-05-12 Richard Stallman <rms@gnu.org>
3831 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3833 1996-05-11 Richard Stallman <rms@gnu.org>
3835 * src/bison.s1 (__yy_memcpy):
3836 Really reorder the args, as was supposedly done on Feb 14 1995.
3837 (yyparse): Calls changed accordingly.
3839 1996-05-11 Richard Stallman <rms@gnu.org>
3841 * Makefile.in (dist): Don't use $(srcdir).
3843 * bison.simple (__yy_memcpy):
3844 Really reorder the args, as was supposedly done on Feb 14 1995.
3845 (yyparse): Calls changed accordingly.
3847 1996-01-27 Richard Stallman <rms@gnu.org>
3849 * src/output.c (output_rule_data):
3850 Test YYERROR_VERBOSE in the conditional
3851 around the definition of ttyname.
3853 1995-12-29 Richard Stallman <rms@gnu.org>
3856 Fix line numbers in #line commands.
3858 1995-12-29 Richard Stallman <rms@gnu.org>
3861 Fix line numbers in #line commands.
3863 1995-12-27 Richard Stallman <rms@gnu.org>
3865 * src/bison.s1 (YYPARSE_PARAM_DECL):
3866 In C++, make it always null.
3867 (YYPARSE_PARAM_ARG): New macro.
3868 (yyparse): Use YYPARSE_PARAM_ARG.
3870 1995-12-27 Richard Stallman <rms@gnu.org>
3872 * bison.simple (YYPARSE_PARAM_DECL):
3873 In C++, make it always null.
3874 (YYPARSE_PARAM_ARG): New macro.
3875 (yyparse): Use YYPARSE_PARAM_ARG.
3877 1995-11-29 Richard Stallman <rms@gnu.org>
3879 * doc/bison.texinfo:
3880 Describe literal string tokens, %raw, %no_lines, %token_table.
3882 1995-11-29 Daniel Hagerty <hag@gnu.org>
3884 * doc/bison.texinfo: Fixed update date
3886 1995-10-16 Richard Stallman <rms@gnu.org>
3888 * src/version.c: Version 1.25.
3890 1995-10-16 Richard Stallman <rms@gnu.org>
3892 * NEWS: *** empty log message ***
3894 1995-10-16 Richard Stallman <rms@gnu.org>
3896 * doc/bison.1, doc/bison.rnh:
3899 1995-10-15 Richard Stallman <rms@gnu.org>
3901 * src/vmsgetargs.c, src/getargs.c:
3902 Added -n, -k, and -raw switches.
3903 (noparserflag, toknumflag, rawtoknumflag): New variables.
3905 * src/symtab.h (SALIAS):
3906 New #define for adding aliases to %token.
3907 (struct bucket): Added `alias' field.
3909 * src/reduce.c (reduce_grammar):
3910 Revise error message.
3911 (print_notices): Remove final `.' from error message.
3913 * src/reader.c (reader_output_yylsp):
3915 (readgram): Use `#if 0' around code that accepted %command
3916 inside grammar rules: The documentation doesn't allow it,
3917 and it will fail since the %command processors scan for the next %.
3918 (parse_token_decl): Extended the %token
3919 declaration to allow a multi-character symbol as an alias.
3920 (parse_thong_decl): New function.
3921 (read_declarations): Added %thong declarations.
3922 (read_declarations): Handle NOOP to deal with allowing
3923 % declarations as another means to specify the flags.
3924 (readgram): Allow %prec prior to semantics embedded in a rule.
3925 (skip_to_char, read_declarations, copy_definition)
3926 (parse_token_decl, parse_start_decl, parse_type_decl)
3927 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3928 (get_type_name, copy_guard, copy_action, readgram)
3929 (get_type, packsymbols): Revised most error messages.
3930 Changed `fatal' to `warnxxx' to avoid aborting for error.
3931 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3932 (read_declarations): Improve the error message for
3933 an invalid character. Do not abort.
3934 (read_declarations, copy_guard, copy_action): Use
3935 printable_version to avoid unprintable characters in printed output.
3936 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3937 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3938 Allow the type of a non-terminal can be given
3939 more than once, as long as all specifications give the same type.
3942 (output_headers, output_trailers, output, output_gram)
3943 (output_rule_data): Implement noparserflag variable.
3944 Implement toknumflag variable.
3945 (output): Call reader_output_yylsp to output LTYPESTR.
3947 * src/main.c (main):
3948 If reader sees an error, don't process the grammar.
3949 (fatals): Updated to not use VARARGS1.
3950 (printable_version, int_to_string, warn, warni, warns, warnss)
3951 (warnsss): New error reporting functions. Avoid abort for error.
3954 Added THONG and NOOP for alias processing.
3955 Added SETOPT for the new code that allows setting options with %flags.
3958 Include getopt.h. Add some extern decls.
3959 (safegetc): New function to deal with EOF gracefully.
3960 (literalchar); new function to deal with reading \ escapes.
3961 (lex): Use literalchar.
3962 (lex): Implemented "..." tokens.
3963 (literalchar, lex, parse_percent_token): Made tokenbuffer
3964 always contain the token. This includes growing the token
3965 buffer while reading an integer.
3966 (parse_percent_token): Replaced if-else statement with percent_table.
3967 (parse_percent_token): Added % declarations as another
3968 way to specify the flags -n, -l, and -r. Also added hooks for
3969 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3970 major changes to files.c.
3971 (lex) Retain in the incoming stream a character following
3973 (skip_white_space, lex): Revised most error messages
3974 and changed fatal to warn to avoid aborting.
3975 (percent_table): Added %thong declarations.
3977 * src/gram.h: Comment changes.
3979 * src/files.c (openfiles, open_extra_files, done):
3981 and actfile file. Handle noparserflag. Both for -n switch.
3983 * src/conflicts.c (resolve_sr_conflict):
3984 Remove use of alloca.
3986 1995-06-01 Jim Meyering <meyering@gnu.org>
3988 * doc/bison.texinfo: *** empty log message ***
3990 1995-05-06 Richard Stallman <rms@gnu.org>
3992 * src/bison.s1: Comment change.
3994 1995-05-06 Richard Stallman <rms@gnu.org>
3996 * bison.simple: Comment change.
3998 1995-05-03 Richard Stallman <rms@gnu.org>
4000 * src/version.c: Version now 1.24.
4002 * src/bison.s1: Change distribution terms.
4004 * src/version.c: Version now 1.23.
4006 1995-05-03 Richard Stallman <rms@gnu.org>
4008 * doc/bison.texinfo:
4009 Rewrite "Conditions for Using Bison".
4010 Update version to 1.24.
4012 1995-05-03 Richard Stallman <rms@gnu.org>
4014 * bison.simple: Change distribution terms.
4016 1995-02-23 Richard Stallman <rms@gnu.org>
4018 * src/files.c: Test __VMS_POSIX as well as VMS.
4020 1995-02-14 Jim Meyering <meyering@gnu.org>
4022 * src/bison.s1 (__yy_memcpy):
4023 Renamed from __yy_bcopy to avoid
4024 confusion. Reverse FROM and TO arguments to be consistent with
4027 1995-02-14 Jim Meyering <meyering@gnu.org>
4029 * bison.simple (__yy_memcpy):
4030 Renamed from __yy_bcopy to avoid
4031 confusion. Reverse FROM and TO arguments to be consistent with
4034 1994-11-10 David J. MacKenzie <djm@gnu.org>
4040 * Makefile.in (DISTFILES): Include NEWS.
4042 * Makefile.in (DISTFILES):
4043 Include install-sh, not install.sh.
4045 * configure.in: Update to Autoconf v2 macro names.
4047 1994-10-05 David J. MacKenzie <djm@gnu.org>
4049 * Makefile.in: fix typo
4051 * Makefile.in (prefix, exec_prefix):
4052 Let configure set them.
4054 1994-09-28 David J. MacKenzie <djm@gnu.org>
4056 * Makefile.in: Set datadir to $(prefix)/share.
4058 1994-09-15 Richard Stallman <rms@gnu.org>
4061 Update copyright notice and GPL version.
4063 1994-09-15 Richard Stallman <rms@gnu.org>
4066 Update copyright notice and GPL version.
4068 1994-07-12 Richard Stallman <rms@gnu.org>
4070 * src/reduce.c, src/reader.c:
4073 1994-05-05 David J. MacKenzie <djm@gnu.org>
4075 * Makefile.in: entered into RCS
4077 1994-03-26 Richard Stallman <rms@gnu.org>
4079 * src/bison.s1: entered into RCS
4081 1994-03-26 Richard Stallman <rms@gnu.org>
4083 * bison.simple: entered into RCS
4085 1994-03-25 Richard Stallman <rms@gnu.org>
4087 * src/main.c: entered into RCS
4089 1994-03-24 Richard Stallman <rms@gnu.org>
4091 * src/conflicts.c: entered into RCS
4093 1994-01-02 Richard Stallman <rms@gnu.org>
4095 * Makefile.in: *** empty log message ***
4097 1993-11-21 Richard Stallman <rms@gnu.org>
4099 * src/bison.s1: *** empty log message ***
4101 1993-11-21 Richard Stallman <rms@gnu.org>
4103 * doc/bison.texinfo: entered into RCS
4105 * doc/bison.texinfo: *** empty log message ***
4107 1993-11-21 Richard Stallman <rms@gnu.org>
4109 * bison.simple: *** empty log message ***
4111 1993-10-25 David J. MacKenzie <djm@gnu.org>
4113 * doc/bison.texinfo: *** empty log message ***
4115 1993-10-19 Richard Stallman <rms@gnu.org>
4117 * src/bison.s1: *** empty log message ***
4119 1993-10-19 Richard Stallman <rms@gnu.org>
4121 * bison.simple: *** empty log message ***
4123 1993-10-14 Richard Stallman <rms@gnu.org>
4125 * src/bison.s1: *** empty log message ***
4127 1993-10-14 Richard Stallman <rms@gnu.org>
4129 * bison.simple: *** empty log message ***
4131 1993-09-14 David J. MacKenzie <djm@gnu.org>
4133 * doc/bison.texinfo: *** empty log message ***
4135 1993-09-13 Noah Friedman <friedman@gnu.org>
4137 * Makefile.in: *** empty log message ***
4139 1993-09-10 Richard Stallman <rms@gnu.org>
4141 * src/conflicts.c: *** empty log message ***
4143 * src/system.h: entered into RCS
4145 1993-09-10 Richard Stallman <rms@gnu.org>
4147 * doc/bison.1: entered into RCS
4149 1993-09-06 Noah Friedman <friedman@gnu.org>
4151 * src/version.c: entered into RCS
4153 1993-09-06 Noah Friedman <friedman@gnu.org>
4155 * Makefile.in: *** empty log message ***
4157 1993-07-30 David J. MacKenzie <djm@gnu.org>
4159 * Makefile.in: *** empty log message ***
4161 1993-07-24 Richard Stallman <rms@gnu.org>
4163 * src/bison.s1: *** empty log message ***
4165 1993-07-24 Richard Stallman <rms@gnu.org>
4167 * bison.simple: *** empty log message ***
4169 1993-07-08 David J. MacKenzie <djm@gnu.org>
4171 * Makefile.in: *** empty log message ***
4173 1993-07-04 Richard Stallman <rms@gnu.org>
4175 * src/bison.s1: *** empty log message ***
4177 1993-07-04 Richard Stallman <rms@gnu.org>
4179 * bison.simple: *** empty log message ***
4181 1993-06-26 David J. MacKenzie <djm@gnu.org>
4183 * src/getargs.c: entered into RCS
4185 1993-06-26 David J. MacKenzie <djm@gnu.org>
4187 * doc/bison.texinfo: *** empty log message ***
4189 * doc/bison.1: New file.
4191 1993-06-25 Richard Stallman <rms@gnu.org>
4193 * src/getargs.c: New file.
4195 1993-06-16 Richard Stallman <rms@gnu.org>
4197 * src/bison.s1: *** empty log message ***
4199 1993-06-16 Richard Stallman <rms@gnu.org>
4201 * bison.simple: *** empty log message ***
4203 1993-06-03 Richard Stallman <rms@gnu.org>
4205 * src/bison.s1: New file.
4207 1993-06-03 Richard Stallman <rms@gnu.org>
4209 * doc/bison.texinfo: *** empty log message ***
4211 1993-06-03 Richard Stallman <rms@gnu.org>
4213 * bison.simple: New file.
4215 1993-05-19 Richard Stallman <rms@gnu.org>
4217 * doc/bison.texinfo: New file.
4219 1993-05-07 Noah Friedman <friedman@gnu.org>
4221 * Makefile.in: *** empty log message ***
4223 1993-04-28 Noah Friedman <friedman@gnu.org>
4225 * src/reader.c: *** empty log message ***
4227 1993-04-23 Noah Friedman <friedman@gnu.org>
4229 * src/alloc.h: entered into RCS
4231 1993-04-20 David J. MacKenzie <djm@gnu.org>
4233 * src/version.c: *** empty log message ***
4235 * src/files.c, src/allocate.c:
4238 * src/reader.c: *** empty log message ***
4240 * src/lex.c: entered into RCS
4242 * src/conflicts.c: New file.
4244 * src/symtab.c: entered into RCS
4246 * src/alloc.h: New file.
4248 * src/LR0.c: entered into RCS
4250 1993-04-18 Noah Friedman <friedman@gnu.org>
4252 * src/reader.c: New file.
4254 * src/version.c: *** empty log message ***
4256 1993-04-18 Noah Friedman <friedman@gnu.org>
4258 * Makefile.in: *** empty log message ***
4260 1993-04-17 Noah Friedman <friedman@gnu.org>
4262 * Makefile.in: *** empty log message ***
4264 1993-04-15 Richard Stallman <rms@gnu.org>
4266 * src/main.c, src/files.c:
4269 1993-04-15 Noah Friedman <friedman@gnu.org>
4271 * configure.in: entered into RCS
4273 * configure.in: *** empty log message ***
4275 * configure.in: New file.
4277 1993-04-14 Richard Stallman <rms@gnu.org>
4279 * Makefile.in: New file.
4281 1993-04-13 Richard Stallman <rms@gnu.org>
4283 * src/version.c: New file.
4285 1993-03-25 Richard Stallman <rms@gnu.org>
4287 * src/output.c: entered into RCS
4289 1992-09-25 Richard Stallman <rms@gnu.org>
4291 * configure.bat: entered into RCS
4293 1992-06-22 Richard Stallman <rms@gnu.org>
4295 * src/vmsgetargs.c: entered into RCS
4297 1992-06-22 Richard Stallman <rms@gnu.org>
4299 * doc/bison.rnh: entered into RCS
4301 1992-04-20 David J. MacKenzie <djm@gnu.org>
4303 * README: entered into RCS
4305 1992-01-22 Richard Stallman <rms@gnu.org>
4307 * src/machine.h: entered into RCS
4309 1991-12-21 Richard Stallman <rms@gnu.org>
4311 * src/lalr.c, src/closure.c:
4314 1991-12-20 Richard Stallman <rms@gnu.org>
4316 * src/state.h: entered into RCS
4318 1991-12-18 Richard Stallman <rms@gnu.org>
4320 * src/print.c, src/nullable.c, src/derives.c:
4323 1991-11-03 David J. MacKenzie <djm@gnu.org>
4325 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4328 1988-09-09 Richard Stallman <rms@gnu.org>
4330 * src/bison.hairy: entered into RCS
4332 1987-12-16 Richard Stallman <rms@gnu.org>
4334 * REFERENCES: entered into RCS