1 2001-12-27 Akim Demaille <akim@epita.fr>
3 * src/reader.c (packgram): Catch nitems overflows.
6 2001-12-27 Akim Demaille <akim@epita.fr>
8 * src/files.c, src/files.h (guard_obstack): Remove.
9 * src/output.c (output): Adjust.
10 * src/reader.c (parse_braces): New, factoring...
11 (copy_action, copy_guard): these two which are renamed as...
12 (parse_action, parse_guard): these.
13 As a voluntary consequence, using braces around guards is now
17 2001-12-27 Akim Demaille <akim@epita.fr>
19 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
20 * src/reader.c (symbol_list): `guard' and `guard_line' are new
22 (symbol_list_new): Adjust.
23 (copy_action): action_line is the first line, not the last.
24 (copy_guard): Just as for actions, store the `action' only, not
25 the switch/case/break flesh.
26 Don't parse the user action that might follow the guard, let...
27 (readgram): do it, i.e., now, there can be an action after a
29 In other words the guard is just explicitly optional.
31 * src/output.c (guards_output): New.
32 (output_parser): Call it when needed.
33 (output): Also free the guard and attrs obstacks.
34 * src/files.c, src/files.h (obstack_save): Remove.
35 (output_files): Remove.
36 As a result, if one needs the former `.act' file, using an
37 appropriate skeleton which requires actions and guards is now
39 * src/main.c (main): Adjust.
40 * tests/semantic.at: New.
41 * tests/regression.at: Use `input.y' as input file name.
42 Avoid 8+3 problems by requiring input.c when the test needs the
45 2001-12-27 Akim Demaille <akim@epita.fr>
47 * src/reader.c (symbol_list_new): Be sure to initialize all the
50 2001-12-27 Akim Demaille <akim@epita.fr>
52 All the hacks using a final pseudo state are now useless.
54 * src/LR0.c (set_state_table): state_table holds exactly nstates.
55 * src/lalr.c (nLA): New.
56 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
57 instead of lookaheadsp from the pseudo state (nstate + 1).
59 2001-12-27 Akim Demaille <akim@epita.fr>
61 * src/output.c (action_row, token_actions): Use a state_t instead
62 of a integer, and nlookaheads instead of the following state's
66 2001-12-27 Akim Demaille <akim@epita.fr>
68 * src/conflicts.c (log_resolution, flush_shift)
69 (resolve_sr_conflict, set_conflicts, solve_conflicts)
70 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
71 (conflicts_print, print_reductions): Use a state_t instead of an
72 integer when referring to a state.
73 As much as possible, depend upon nlookaheads, instead of the
74 `lookaheadsp' member of the following state (since lookaheads of
75 successive states are successive, the difference between state n + 1
76 and n served as the number of lookaheads for state n).
77 * src/lalr.c (add_lookback_edge): Likewise.
78 * src/print.c (print_core, print_actions, print_state)
79 (print_results): Likewise.
80 * src/print_graph.c (print_core, print_actions, print_state)
81 (print_graph): Likewise.
82 * src/conflicts.h: Adjust.
84 2001-12-27 Akim Demaille <akim@epita.fr>
86 * src/bison.hairy: Formatting/comment changes.
88 Remove `register' indications.
89 Add plenty of `static'.
91 2001-12-27 Akim Demaille <akim@epita.fr>
93 * src/output.c (prepare): Drop the muscle `ntbase' which
95 * src/bison.simple: Formatting/comment changes.
96 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
97 is an undocumented synonym.
100 2001-12-22 Akim Demaille <akim@epita.fr>
102 * src/output.c (output_table_data): Change the prototype to use
103 `int' for array ranges: some invocations do pass an int, not a
105 Reported by Wayne Green.
107 2001-12-22 Akim Demaille <akim@epita.fr>
109 Some actions of web2c.y are improperly triggered.
110 Reported by Mike Castle.
112 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
113 * tests/regression.at (Web2c): Rename as...
114 (Web2c Report): this.
115 (Web2c Actions): New.
117 2001-12-22 Akim Demaille <akim@epita.fr>
119 Reductions in web2c.y are improperly reported.
120 Reported by Mike Castle.
122 * src/conflicts.c (print_reductions): Fix.
123 * tests/regression.at (Web2c): New.
125 2001-12-18 Akim Demaille <akim@epita.fr>
127 Some host fail on `assert (!"foo")', which expands to
128 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
129 Reported by Nelson Beebee.
131 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
132 `#define it_succeeded 0' and `assert (it_succeeded)'.
134 2001-12-17 Marc Autret <autret_m@epita.fr>
136 * src/bison.simple: Don't hard code the skeleton line and filename.
137 * src/output.c (output_parser): Rename 'line' as 'output_line'.
138 New line counter 'skeleton_line' (skeleton-line muscle).
140 2001-12-17 Paul Eggert <eggert@twinsun.com>
142 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
143 YYDEBUG must be defined to a nonzero value.
145 * src/bison.simple (yytname): Do not assume that the user defines
146 YYDEBUG to a properly parenthesized expression.
148 2001-12-17 Akim Demaille <akim@epita.fr>
150 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
151 nlookaheads is a new member.
153 * src/lalr.h (nlookaheads): Remove this orphan declaration.
154 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
157 2001-12-17 Akim Demaille <akim@epita.fr>
159 * src/files.h, src/files.c (open_files, close_files): Remove.
160 * src/main.c (main): Don't open/close files, nor invoke lex_free,
162 * src/reader.c (reader): Do it.
164 2001-12-17 Akim Demaille <akim@epita.fr>
166 * src/conflicts.c (print_reductions): Formatting changes.
168 2001-12-17 Akim Demaille <akim@epita.fr>
170 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
172 (resolve_sr_conflict): Adjust.
174 2001-12-17 Akim Demaille <akim@epita.fr>
176 * src/output.c (output_obstack): Be static and rename as...
177 (format_obstack): this, to avoid any confusion with files.c's
179 * src/reader.h (muscle_obstack): Move to...
180 * src/output.h: here, since it's defined in output.c.
182 2001-12-17 Akim Demaille <akim@epita.fr>
184 * src/output.c (action_row, save_column, default_goto)
185 (sort_actions, matching_state, pack_vector): Better variable
188 2001-12-17 Akim Demaille <akim@epita.fr>
190 * src/output.c: Various formatting changes.
192 2001-12-17 Akim Demaille <akim@epita.fr>
194 * src/files.c (output_files): Free the output_obstack.
195 * src/main.c (main): Call print and print_graph conditionally.
196 * src/print.c (print): Work unconditionally.
197 * src/print_graph.c (print_graph): Work unconditionally.
198 * src/conflicts.c (log_resolution): Output only if verbose_flag.
200 2001-12-16 Marc Autret <autret_m@epita.fr>
202 * src/output.c (actions_output): Fix. When we use %no-lines,
203 there is one less line per action.
205 2001-12-16 Marc Autret <autret_m@epita.fr>
207 * src/bison.simple: Remove a useless #line directive.
208 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
209 * src/output.c (get_lines_number): New.
210 (output_parser): Adjust, now takes care about the lines of a
213 (actions_output): Computes the number of lines taken by actions.
214 (output_master_parser): Insert new skeleton which is the name of
215 the output parser file name.
217 2001-12-15 Marc Autret <autret_m@epita.fr>
219 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
221 2001-12-15 Marc Autret <autret_m@epita.fr>
223 * src/output.c (output_gram): Keep track of the hairy one.
225 2001-12-15 Akim Demaille <akim@epita.fr>
227 Make `make distcheck' work.
229 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
230 system.h which uses libgettext.h.
232 2001-12-15 Akim Demaille <akim@epita.fr>
234 * src/nullable.c (set_nullable): Useless rules must be skipped,
235 otherwise, since we range over their symbols, we might look at a
236 nonterminal which no longer ``exists'', i.e., it is not counted in
237 `nvars', hence we overflow our arrays.
239 2001-12-15 Akim Demaille <akim@epita.fr>
241 The header can also be produced directly, without any obstack!
244 * src/files.c, src/files.h (defines_obstack): Remove.
245 (compute_header_macro): Global.
246 (defines_obstack_save): Remove.
247 * src/reader.c (parse_union_decl): No longer output to
248 defines_obstack: its content can be found in the `stype' muscle
250 (output_token_translations): Merge into...
251 (symbols_output): this.
253 (symbols_save): this.
255 * src/output.c (header_output): New.
258 2001-12-15 Akim Demaille <akim@epita.fr>
260 * src/reader.c (parse_union_decl): Instead of handling two obstack
261 simultaneously, use one to define the `stype' muscle, and use the
262 value of the latter to fill defines_obstack.
263 (copy_comment): Remove.
264 (copy_comment2): Work for a single obstack.
266 (copy_comment): this.
268 2001-12-15 Akim Demaille <akim@epita.fr>
270 * src/lex.c, src/lex.h (xgetc): No longer static.
271 * src/reader.c (parse_union_decl): Revamp.
273 2001-12-15 Akim Demaille <akim@epita.fr>
275 Still making progress in separating Bison into (i) input, (ii)
276 process, (iii) output: now we can directly output the parser file
277 without using table_obstack at all.
279 * src/files.c, src/files.h (table_obstack): Bye bye.
280 (parser_file_name): New.
281 * src/files.c (compute_output_file_names): Compute it.
282 * src/output.c (actions_output, output_parser)
283 (output_master_parser): To a file instead of an obstack.
285 2001-12-15 Akim Demaille <akim@epita.fr>
287 Attach actions to rules, instead of pre-outputting them to
290 * src/gram.h (rule_t): action and action_line are new members.
291 * src/reader.c (symbol_list): Likewise.
292 (copy_action): Save the actions within the rule.
293 (packgram): Save them in rule_table.
294 * src/output.c (actions_output): New.
295 (output_parser): Use it on `%%actions'.
296 (output_rule_data): Don't free rule_table.
298 (prepare): Don't save the `action' muscle.
299 * src/bison.simple: s/%%action/%%actions/.
301 2001-12-15 Akim Demaille <akim@epita.fr>
303 * src/reader.c (copy_action): When --yacc, don't append a `;'
304 to the user action: let it fail if lacking.
305 Suggested by Arnold Robbins and Tom Tromey.
307 2001-12-14 Akim Demaille <akim@epita.fr>
309 * src/lex.c (literalchar): Simply return the char you decoded, non
310 longer mess around with obstacks and int pointers.
313 2001-12-14 Akim Demaille <akim@epita.fr>
315 * src/lex.c (literalchar): Don't escape the special characters,
316 just decode them, and keep them as char (before, eol was output as
317 the 2 char string `\n' etc.).
318 * src/output.c (output_rule_data): Use quotearg to output the
321 2001-12-13 Paul Eggert <eggert@twinsun.com>
323 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
324 Do not infringe on the global user namespace when using C++.
325 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
326 All uses of `fprintf' and `stderr' changed.
328 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
330 2001-12-13 Akim Demaille <akim@epita.fr>
332 The computation of nullable is broken: it doesn't handle empty
335 * tests/torture.at (GNU AWK Grammar): New.
336 * tests/sets.at (Nullable): New.
337 * src/nullable.c (set_nullable): Instead of blindly looping over
338 `ritems', loop over the rules, and then over their rhs's.
340 Work around Autotest bugs.
342 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
343 frame, because Autotest understand lines starting with a `+' as
344 traces from the shell. Then, they are not processed properly.
345 Admittedly an Autotest bug, but we don't have time to wait for
346 Autotest to catch up.
347 * tests/regression.at (Broken Closure): Adjust to the new table
350 * tests/sets.at: here.
352 2001-12-13 Akim Demaille <akim@epita.fr>
354 * src/closure.c (closure): Use nrules instead of playing tricks
357 2001-12-13 Akim Demaille <akim@epita.fr>
359 * src/print.c (print_actions): Output the handling of `$' as the
360 traces do: shifting the token EOF. Before EOF was treated as a
362 * tests/regression.at: Adjust some tests.
363 * src/print_graph.c (print_core): Complete the set of items via
364 closure. The next-to-final and final states are still unsatisfying,
365 but that's to be addressed elsewhere.
366 No longer output the rule numbers, but do output the state number.
367 A single loop for the shifts + gotos is enough, but picked a
368 distinct color for each.
369 (print_graph): Initialize and finalize closure.
371 2001-12-13 Akim Demaille <akim@epita.fr>
373 * src/reader.c (readgram): Remove dead code, an strip useless
375 (get_type): Remove, unused.
377 2001-12-12 Akim Demaille <akim@epita.fr>
379 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
380 on that of lib/error.c.
382 2001-12-12 Akim Demaille <akim@epita.fr>
384 Some hosts don't like `/' in includes.
386 * src/system.h: Include libgettext.h without qualifying the path.
387 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
390 2001-12-11 Marc Autret <autret_m@epita.fr>
392 * src/output.c (output_parser): Remove useless muscle.
394 2001-12-11 Marc Autret <autret_m@epita.fr>
396 * src/bison.simple: Remove #line just before %%epilogue. It
397 is now handled in ...
398 * src/reader.c (read_additionnal_code): Add the output of a
399 #line for the epilogue.
401 2001-12-10 Marc Autret <autret_m@epita.fr>
403 * src/reader.c (copy_definition): Re-use CPP-outed code which
404 replace precedent remove.
405 * src/bison.simple: Remove #line before %%prologue because
406 %%input-line is wrong at this time.
408 2001-12-10 Marc Autret <autret_m@epita.fr>
410 * src/reader.c (symbols_output): Clean up.
411 * src/output.c (output_gram, output): Clean up.
413 2001-12-10 Akim Demaille <akim@epita.fr>
415 * src/lalr.c (initialize_lookaheads): New. Extracted from...
416 * src/LR0.c (set_state_table): here.
417 * src/lalr.c (lalr): Call it.
419 2001-12-10 Akim Demaille <akim@epita.fr>
421 * src/state.h (shifts): Remove the `number' member: shifts are
422 attached to state, hence no longer need to be labelled with a
425 2001-12-10 Akim Demaille <akim@epita.fr>
427 Now that states have a complete set of members, the linked list of
428 shifts is useless: just fill directly the state's shifts member.
430 * src/state.h (shifts): Remove the `next' member.
431 * src/LR0.c (first_state, last_state): Remove.
433 (augment_automaton): Don't look for the shifts that must be added
434 a shift on EOF: it is those of the state we looked for! But now,
435 since shifts are attached, it is no longer needed to looking
436 merely by its id: its number.
438 2001-12-10 Akim Demaille <akim@epita.fr>
440 * src/LR0.c (augment_automaton): Better variable locality.
441 Remove an impossible branch: if there is a state corresponding to
442 the start symbol being shifted, then there is shift for the start
443 symbol from the initial state.
445 2001-12-10 Akim Demaille <akim@epita.fr>
447 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
448 only when appropriate: when insert_start_shifting_state' is not
450 * tests/regression.at (Rule Line Numbers): Adjust.
452 2001-12-10 Akim Demaille <akim@epita.fr>
454 * src/LR0.c (augment_automaton): Now that all states have shifts,
455 merge the two cases addition shifts to the initial state.
457 2001-12-10 Akim Demaille <akim@epita.fr>
459 * src/lalr.c (set_state_table): Move to...
461 * src/lalr.c (lalr): Don't call it...
462 * src/LR0.c (generate_states): do it.
463 * src/LR0.h (first_state): Remove, only the table is used.
465 2001-12-10 Akim Demaille <akim@epita.fr>
467 * src/LR0.h (first_shift, first_reduction): Remove.
468 * src/lalr.c: Don't use first_shift: find shifts through the
471 2001-12-10 Akim Demaille <akim@epita.fr>
473 * src/LR0.c: Attach shifts to states as soon as they are
475 * src/lalr.c (set_state_table): Instead of assigning shifts to
476 state, just assert that the mapping was properly done.
478 2001-12-10 Akim Demaille <akim@epita.fr>
480 * src/LR0.c (insert_start_shift): Rename as...
481 (insert_start_shifting_state): this.
482 (insert_eof_shifting_state, insert_accepting_state): New.
483 (augment_automaton): Adjust.
484 Better locality of the variables.
485 When looking if the start_symbol is shifted from the initial
486 state, using `while (... symbol != start_symbol ...)' sounds
487 better than `while (... symbol < start_symbol ...)': If fail
488 to see how the order between symbols could be relevant!
490 2001-12-10 Akim Demaille <akim@epita.fr>
492 * src/getargs.h: Don't declare `spec_name_prefix' and
493 `spec_file_prefix', declared by src/files.h.
494 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
495 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
496 * src/output.c (prepare): Adjust.
497 * src/reader.c (symbols_output): Likewise.
498 * src/vmsgetargs.c: Vaguely adjust, but who cares?
500 2001-12-10 Akim Demaille <akim@epita.fr>
502 * src/muscle_tab.c (muscle_init): NULL is a better default than
505 2001-12-10 Akim Demaille <akim@epita.fr>
507 * src/reader.c (reader): Calling symbols_output once is enough.
509 2001-12-10 Akim Demaille <akim@epita.fr>
511 Now that states have a complete set of members, the linked list of
512 reductions is useless: just fill directly the state's reductions
515 * src/state.h (struct reductions): Remove member `number' and
517 * src/LR0.c (first_reduction, last_reduction): Remove.
518 (save_reductions): Don't link the new reductions, store them in
520 * src/lalr.c (set_state_table): No need to attach reductions to
521 states, it's already done.
522 * src/output.c (output_actions): No longer free the shifts, then
523 the reductions, then the states: free all the states and their
526 2001-12-10 Akim Demaille <akim@epita.fr>
528 * src/options.c (OPTN, DRTV, BOTH): New.
529 (option_table): Use them.
531 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
533 * src/options.c: Don't include stdio.h and xalloc.h for the same
536 2001-12-10 Akim Demaille <akim@epita.fr>
538 * src/output.c (output, prepare): Make sure the values of the
539 muscles `action' and `prologue' are 0-terminated.
541 2001-12-10 Akim Demaille <akim@epita.fr>
543 Clean up GCC warnings.
545 * src/reader.c (copy_action): `buf' is not used.
546 (parse_skel_decl): Be static.
547 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
548 * src/options.h (create_long_option_table): Have a real prototype.
549 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
550 (hash_delete_at): Return const void *.
551 Adjust casts to preserve the const.
553 2001-12-10 Akim Demaille <akim@epita.fr>
555 * configure.in: Require 2.52g.
556 M4 is not needed, but AUTOM4TE is.
558 * tests/Makefile.am: Adjust.
560 2001-12-10 Akim Demaille <akim@epita.fr>
562 One structure for states is enough, even though theoretically
563 there are LR(0) states and LALR(1) states.
565 * src/lalr.h (state_t): Remove.
566 (state_table): Be state_t **, not state_t *.
567 * src/state.h (core, CORE_ALLOC): Rename as...
568 (state_t, STATE_ALLOC): this.
569 Add the LALR(1) members: shifts, reductions, errs.
570 * src/LR0.c (state_table): Rename as...
571 (state_hash): this, to avoid name clashes with the global
573 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
574 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
576 2001-12-10 Akim Demaille <akim@epita.fr>
578 Bison dumps core on bash.y.
579 Reported by Pascal Bart.
581 * src/warshall.c (bitmatrix_print): New.
583 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
584 j must be the outer loop.
585 * tests/regression.at (Broken Closure): New.
587 2001-12-05 Akim Demaille <akim@epita.fr>
589 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
591 Reported by Peter Hámorský.
593 2001-12-05 Akim Demaille <akim@epita.fr>
595 * src/conflicts.c (err_table): Remove.
596 (resolve_sr_conflict): Adjust.
597 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
599 (state_t.reductions, state_t.shifts): this.
601 2001-12-05 Akim Demaille <akim@epita.fr>
603 * src/reduce.c (reduce_grammar_tables): No longer disable the
604 removal of useless rules via CPP but via `if (0)', so that the
605 compiler still check the code is valid.
606 For instance, it should have noticed `rline' no longer exists: use
607 the `line' member of rule_t.
608 * src/gram.c (dummy, rline): Remove, unused.
610 2001-12-05 Akim Demaille <akim@epita.fr>
612 * src/output.c (pack_vector): Use assert, not berror.
613 * src/main.c (berror): Remove, unused.
615 2001-12-05 Akim Demaille <akim@epita.fr>
617 New experimental feature: if --verbose --trace output all the
618 items of a state, not only its kernel.
620 * src/print.c (print_core): If `trace_flag', then invoke closure
621 before outputting the items of the state (print_core is no longer
622 a correct name them).
623 (print_results): Invoke new_closure/free_closure if needed.
625 2001-12-05 Akim Demaille <akim@epita.fr>
627 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
628 * src/closure.c, src/closure.h (itemsetsize): Rename as...
629 (nitemset): for consistency with the rest of the project.
631 2001-12-05 Akim Demaille <akim@epita.fr>
633 * src/closure.c (print_closure): Improve.
634 (closure): Use it for printing input and output.
636 2001-12-05 Akim Demaille <akim@epita.fr>
638 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
639 indexed by nonterminals.
641 2001-12-05 Akim Demaille <akim@epita.fr>
643 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
645 * src/warshall.h: Remove accidental duplication of the content.
647 2001-12-05 Akim Demaille <akim@epita.fr>
649 * src/closure.c (set_fderives): De-obfuscate.
651 2001-12-05 Akim Demaille <akim@epita.fr>
653 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
655 2001-12-05 Akim Demaille <akim@epita.fr>
657 * src/closure.c (set_firsts): De-obfuscate.
659 2001-12-05 Akim Demaille <akim@epita.fr>
661 * src/output.c (action_row): De-obfuscate
662 using the good o' techniques: arrays not pointers, variable
663 locality, BITISSET, RESETBIT etc.
665 2001-12-05 Akim Demaille <akim@epita.fr>
667 Pessimize the code to simplify it: from now on, all the states
668 have a valid SHIFTS, which NSHIFTS is possibly 0.
670 * src/LR0.c (shifts_new): Be global and move to..
671 * src/state.c, src/state.h: here.
672 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
673 * src/print_graph: Adjust.
675 2001-12-05 Akim Demaille <akim@epita.fr>
677 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
678 * src/conflicts.c: Use it.
679 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
680 incorrectly ``simplified''.
682 2001-12-05 Akim Demaille <akim@epita.fr>
684 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
685 using the good o' techniques: arrays not pointers, variable
686 locality, BITISSET, RESETBIT etc.
688 2001-12-05 Akim Demaille <akim@epita.fr>
690 * src/state.h (SHIFT_SYMBOL): New.
691 * src/conflicts.c: Use it to deobfuscate.
693 2001-12-05 Akim Demaille <akim@epita.fr>
695 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
696 (print_reductions): De-obfuscate using the good o' techniques:
697 arrays not pointers, variable locality, BITISSET.
699 2001-12-05 Akim Demaille <akim@epita.fr>
701 * src/conflicts.c (print_reductions): Arrays, not pointers.
704 2001-12-05 Akim Demaille <akim@epita.fr>
706 * src/conflicts.c (print_reductions): Pessimize, but clarify.
708 2001-12-05 Akim Demaille <akim@epita.fr>
710 * src/conflicts.c (print_reductions): Improve variable locality.
712 2001-12-05 Akim Demaille <akim@epita.fr>
714 * src/conflicts.c (print_reductions): Pessimize, but clarify.
716 2001-12-05 Akim Demaille <akim@epita.fr>
718 * src/conflicts.c (print_reductions): Improve variable locality.
720 2001-12-05 Akim Demaille <akim@epita.fr>
722 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
723 * src/lalr.c: Use them.
725 2001-12-05 Akim Demaille <akim@epita.fr>
727 * src/LR0.c (augment_automaton): Formatting changes.
728 Better variable locality.
730 2001-12-05 Akim Demaille <akim@epita.fr>
732 * src/lalr.c (matrix_print): New.
734 Use arrays instead of pointers.
736 2001-12-05 Akim Demaille <akim@epita.fr>
738 * src/lalr.c (maxrhs): Move to...
739 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
740 * src/lalr.c (build_relations): Adjust.
742 2001-12-05 Akim Demaille <akim@epita.fr>
744 * src/lalr.c (transpose): Free the memory allocated to the
745 argument, as it is replaced by the results by the unique caller.
746 (build_relations): Merely invoke transpose: it handles the memory
748 Improve variable locality.
749 Avoid variables used as mere abbreviations.
750 (compute_lookaheads): Use arrays instead of pointers.
752 2001-12-05 Akim Demaille <akim@epita.fr>
754 * src/lalr.c (initialize_F): Improve variable locality.
755 Avoid variables used as mere abbreviations.
757 2001-12-05 Akim Demaille <akim@epita.fr>
759 * src/derives.c (print_derives): Display the ruleno.
760 * src/lalr.c (initialize_F, transpose): Better variable locality
761 to improve readability.
762 Avoid variables used as mere abbreviations.
764 2001-12-05 Akim Demaille <akim@epita.fr>
766 * src/lalr.c (traverse): Use arrays instead of pointers.
768 2001-12-05 Akim Demaille <akim@epita.fr>
770 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
771 the handling of squeue.
772 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
774 2001-12-05 Akim Demaille <akim@epita.fr>
776 Because useless nonterminals are now kept alive (instead of being
777 `destroyed'), we now sometimes examine them, and store information
778 related to them. Hence we need to know their number, and adjust
781 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
783 * src/LR0.c (allocate_itemsets): The memory allocated to
784 `symbol_count' was used for two different purpose: once to count
785 the number of occurrences of each symbol, and later reassigned to
786 `shift_symbol', containing the symbol that can be shifted from a
788 Deobfuscate, i.e., allocate, use and free `symbol_count' here
790 (new_itemsets): Allocate `shift_symbol' here.
791 (allocate_itemsets): symbol_count includes useless nonterminals.
793 (free_storage): Use `free', not `XFREE', for pointers that cannot
796 2001-12-05 Akim Demaille <akim@epita.fr>
798 * src/nullable.c (set_nullable): Deobfuscate the handling of
800 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
802 2001-12-05 Akim Demaille <akim@epita.fr>
804 * src/gram.c, src/gram.h (ritem_print): New.
805 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
806 (This useless function was defined only to work around VMS linkers
807 that can't handle compilation units with variables only).
808 * src/reduce.c (dump_grammar): Use it to trace the construction of
811 2001-12-04 Paul Eggert <eggert@twinsun.com>
813 * src/bison.simple (union yyalloc): Change member names
814 to be the same as the stack names.
815 (yyparse): yyptr is now union yyalloc *, not char *.
816 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
817 and may generate better code on some machines.
818 (yystpcpy): Use prototype if __STDC__ is defined, not just
819 if __cplusplus is defined.
821 2001-11-30 Akim Demaille <akim@epita.fr>
823 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
824 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
825 Gettext doesn't compile cleanly, and dies with -Werror.
826 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
827 Include WARNING_CFLAGS here.
828 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
829 before being defined.
831 2001-11-27 Paul Eggert <eggert@twinsun.com>
833 * lib/quotearg.h (quotearg_n, quotearg_n_style):
834 First arg is int, not unsigned.
835 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
836 (SIZE_MAX, UINT_MAX): New macros.
837 (quotearg_n_options): Abort if N is negative.
838 Avoid overflow check on hosts where size_t is 64 bits and int
839 is 32 bits, as overflow is impossible there.
840 Fix off-by-one typo that caused unnecessary reallocation.
842 2001-11-29 Paul Eggert <eggert@twinsun.com>
844 Name space cleanup in generated parser.
846 * doc/bison.texinfo (Bison Parser): Discuss system headers
847 and their effect on the user name space.
850 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
851 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
852 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
854 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
855 on user names when possible.
857 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
858 Simplify test for whather <alloca.h> exists.
860 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
862 (<stdio.h>): Include if YYDEBUG.
864 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
865 ! defined (yyoverflow) && ! defined (yymemcpy).
867 (yymemcpy, yyparse): Rename local variables as needed so that
868 they all begin with 'yy'.
870 (yystrlen, yystpcpy): New functions.
872 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
875 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
876 instead of relying on string.h functions. Use YYSTACK_ALLOC
877 and YYSTACK_FREE instead of malloc and free.
879 2001-11-30 Akim Demaille <akim@epita.fr>
881 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
882 before their first uses.
883 (YYBISON, YYPURE): Move to the top of the output.
885 2001-11-30 Akim Demaille <akim@epita.fr>
887 * tests/reduce.at (Useless Nonterminals): Fix.
889 2001-11-30 Akim Demaille <akim@epita.fr>
891 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
892 if body instead of `;' to pacify GCC's warnings.
894 2001-11-30 Akim Demaille <akim@epita.fr>
896 Instead of mapping the LHS of unused rules to -1, keep the LHS
897 valid, but flag the rules as invalid.
899 * src/gram.h (rule_t): `useful' is a new member.
900 * src/print.c (print_grammar): Adjust.
901 * src/derives.c (set_derives): Likewise.
902 * src/reader.c (packgram, reduce_output): Likewise.
903 * src/reduce.c (reduce_grammar_tables): Likewise.
904 * tests/reduce.at (Underivable Rules, Useless Rules): New.
906 2001-11-30 Akim Demaille <akim@epita.fr>
908 * src/reduce.c (reduce_output): Formatting changes.
909 * src/print.c (print_results, print_grammar): Likewise.
910 * tests/regression.at (Rule Line Numbers)
911 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
913 2001-11-30 Akim Demaille <akim@epita.fr>
915 * src/reduce.c (nonterminals_reduce): Instead of throwing away
916 useless nonterminals, move them at the end of the symbol arrays.
917 (reduce_output): Adjust.
918 * tests/reduce.at (Useless Nonterminals): Adjust.
920 2001-11-30 Akim Demaille <akim@epita.fr>
922 * src/reduce.c: Various comment/formatting changes.
923 (nonterminals_reduce): New, extracted from...
924 (reduce_grammar_tables): here.
925 (reduce_grammar): Call nonterminals_reduce.
927 2001-11-29 Paul Eggert <eggert@twinsun.com>
929 * src/bison.simple (YYSTACK_REALLOC): Remove.
930 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
931 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
933 (union yyalloc): New type.
934 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
935 an arbitrary restriction on hosts where size_t is wider than int.
937 (yyparse): Don't dump core if alloca or malloc fails; instead, report
938 a parser stack overflow. Allocate just one block of memory for all
939 three stacks, instead of allocating three blocks; this typically is
940 faster and reduces fragmentation.
942 Do not limit the number of items in the stack to a value that fits
943 in 'int', as this is an arbitrary limit on hosts with 64-bit
944 size_t and 32-bit int.
946 2001-11-29 Marc Autret <autret_m@epita.fr>
948 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
949 of defining YYERROR_VERBOSE.
950 [AT_DATA]: $4 is now out of C declarations in the prologue.
952 2001-11-28 Marc Autret <autret_m@epita.fr>
954 * src/reader.c (parse_dquoted_param): New.
955 (parse_skel_decl): Use it.
956 * src/lex.h: Add its prototype.
957 * src/lex.c (literalchar): Become not static.
959 2001-11-28 Marc Autret <autret_m@epita.fr>
961 * src/output.h: And put its extern declaration here.
962 * src/output.c (error_verbose): Define here.
963 (prepare): Echo name modification.
964 * src/getargs.h: Clean its extern declaration.
965 * src/getargs.c (error_verbose_flag): Remove.
966 (getargs): Remove case 'e'.
967 * src/options.c (option_table): 'error-verbose' is now seen as simple
971 * src/reader.c (read_declarations): Remove case tok_include.
972 (parse_include_decl): Remove.
973 * src/lex.h (token_t): Remove tok_include.
974 * src/options.c (option_table): 'include' is now a simple command line
977 2001-11-28 Marc Autret <autret_m@epita.fr>
979 * src/bison.simple: Adjust muscle names.
980 * src/muscle_tab.c (muscle_init): Also rename the muscles.
981 * src/output.c (prepare): s/_/-/ for the muscles names.
982 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
984 2001-11-28 Marc Autret <autret_m@epita.fr>
986 * src/bison.simple: Fix debug.
987 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
989 2001-11-28 Akim Demaille <akim@epita.fr>
991 * src/LR0.c (shifts_new): New.
992 (save_shifts, insert_start_shift, augment_automaton): Use it.
994 2001-11-28 Akim Demaille <akim@epita.fr>
996 * src/closure.c (closure): `b' and `ruleno' denote the same value:
999 2001-11-28 Akim Demaille <akim@epita.fr>
1001 * src/closure.c (closure): Instead of looping over word in array
1002 then bits in words, loop over bits in array.
1004 2001-11-28 Akim Demaille <akim@epita.fr>
1006 * src/closure.c (closure): No longer optimize the special case
1007 where all the bits of `ruleset[r]' are set to 0, to make the code
1010 2001-11-28 Akim Demaille <akim@epita.fr>
1012 * src/closure.c (closure): `r' and `c' are new variables, used to
1013 de-obfuscate accesses to RULESET and CORE.
1015 2001-11-28 Akim Demaille <akim@epita.fr>
1017 * src/reduce.c (reduce_print): Use ngettext.
1018 (dump_grammar): Improve the trace accuracy.
1020 2001-11-28 Akim Demaille <akim@epita.fr>
1022 * src/reduce.c (dump_grammar): Don't translate trace messages.
1024 2001-11-28 Akim Demaille <akim@epita.fr>
1026 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
1027 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
1028 as all tags are free'ed afterwards.
1031 2001-11-27 Paul Eggert <eggert@twinsun.com>
1033 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
1034 use alloca when we didn't want to, and vice versa.
1036 2001-11-27 Marc Autret <autret_m@epita.fr>
1038 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
1040 * src/output.c (prepare): Remove its update.
1042 2001-11-27 Marc Autret <autret_m@epita.fr>
1044 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
1047 2001-11-27 Marc Autret <autret_m@epita.fr>
1049 * src/bison.simple: Remove YYERROR_VERBOSE using.
1050 Use %%error_verbose.
1051 (yyparse): Likewise.
1052 * src/output.c (prepare): Give its final value.
1053 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
1054 * src/getargs.h: Add its extern declaration.
1055 * src/getargs.c (error_verbose_flag): New int.
1056 (getargs): Update to catch new case.
1057 * src/options.c (option_table): 'error-verbose' is a new option.
1058 (shortopts): Update.
1060 2001-11-27 Akim Demaille <akim@epita.fr>
1062 * src/system.h: Use intl/libgettext.h.
1063 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
1065 2001-11-27 Akim Demaille <akim@epita.fr>
1067 * tests/torture.at (Exploding the Stack Size with Malloc):
1068 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
1070 2001-11-27 Akim Demaille <akim@epita.fr>
1072 * src/files.c: Include error.h.
1073 Reported by Hans Aberg.
1075 2001-11-26 Marc Autret <autret_m@epita.fr>
1077 * src/reader.c (parse_include_decl): New, not yet implemented.
1078 (read_declarations): Add case tok_include.
1079 * src/getargs.h (include): Add its extern definition.
1080 * src/getargs.c (include): New const char *.
1081 (getargs): Add case '-I'.
1082 * src/options.c (option_table): Add include as command line and
1084 * src/lex.h (token_t): Add tok_include.
1086 2001-11-26 Akim Demaille <akim@epita.fr>
1088 * src/reader.c (readgram): Make sure rules for mid-rule actions
1089 have a lineno equal to that of their host rule.
1090 Reported by Hans Aberg.
1091 * tests/regression.at (Rule Line Numbers): New.
1093 2001-11-26 Akim Demaille <akim@epita.fr>
1095 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
1098 2001-11-26 Akim Demaille <akim@epita.fr>
1100 * src/complain.c, src/complain.h (error): Remove, provided by
1103 2001-11-26 Akim Demaille <akim@epita.fr>
1105 * src/reader.c (read_declarations): Don't abort on tok_illegal,
1106 issue an error message.
1107 * tests/regression.at (Invalid %directive): New.
1108 Reported by Hans Aberg.
1110 2001-11-26 Akim Demaille <akim@epita.fr>
1112 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
1113 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1115 2001-11-26 Akim Demaille <akim@epita.fr>
1117 * src/conflicts.c (conflicts_print): Don't complain at all when
1118 there are no reduce/reduce conflicts, and as many shift/reduce
1119 conflicts as expected.
1120 * tests/regression.at (%expect right): Adjust.
1122 2001-11-23 Akim Demaille <akim@epita.fr>
1124 * lib/alloca.c: Update, from fileutils.
1126 2001-11-23 Akim Demaille <akim@epita.fr>
1128 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
1130 2001-11-23 Akim Demaille <akim@epita.fr>
1132 * src/system.h: Include alloca.h.
1133 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
1135 2001-11-23 Akim Demaille <akim@epita.fr>
1137 * src/print_graph.c (print_actions): Remove `rule', unused.
1138 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
1139 pacify GCC's signed < unsigned warnings.
1140 * src/closure.c (itemsetsize): Likewise.
1141 * src/reader.c (symbol_list_new): Static.
1143 2001-11-23 Akim Demaille <akim@epita.fr>
1145 Attaching lineno to buckets is stupid, since only one copy of each
1146 symbol is kept, only the line of the first occurrence is kept too.
1148 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
1149 * src/reader.c (rline_allocated): Remove, unused.
1150 (symbol_list): Have a `line' member.
1151 (symbol_list_new): New.
1153 * src/print.c (print_grammar): Output the rule line numbers.
1154 * tests/regression.at (Solved SR Conflicts)
1155 (Unresolved SR Conflicts): Adjust.
1156 Reported by Hans Aberg.
1158 2001-11-22 Marc Autret <autret_m@epita.fr>
1160 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
1162 2001-11-22 Marc Autret <autret_m@epita.fr>
1164 * src/muscle_tab.c (muscle_init): Remove initialization of
1166 * src/output.c (output_master_parser): Do it here.
1168 2001-11-20 Akim Demaille <akim@epita.fr>
1171 * configure.in (ALL_LINGUAS): Adjust.
1172 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
1173 longer contains strings to translate.
1175 2001-11-19 Akim Demaille <akim@epita.fr>
1177 * src/conflicts.c (conflicts_print): Add a missing \n.
1179 2001-11-19 Akim Demaille <akim@epita.fr>
1181 * src/nullable.c (nullable_print): New.
1182 (set_nullable): Call it when tracing.
1183 Better locality of variables.
1185 2001-11-19 Akim Demaille <akim@epita.fr>
1187 * src/print.c (print_actions): Better locality of variables.
1189 2001-11-19 Akim Demaille <akim@epita.fr>
1191 * src/derives.c (print_derives): Fix and enrich.
1192 * src/closure.c (print_fderives): Likewise.
1194 2001-11-19 Akim Demaille <akim@epita.fr>
1196 * src/closure.c (itemsetend): Remove, replaced with...
1199 2001-11-19 Akim Demaille <akim@epita.fr>
1201 * src/LR0.c (kernel_end): Remove, replaced with...
1204 2001-11-19 Akim Demaille <akim@epita.fr>
1206 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
1209 2001-11-19 Akim Demaille <akim@epita.fr>
1211 * src/closure.c (closure): Use arrays instead of pointers to clarify.
1213 2001-11-19 Akim Demaille <akim@epita.fr>
1215 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
1217 * src/LR0.c: Likewise.
1218 (allocate_itemsets): Use arrays instead of pointers to clarify.
1220 2001-11-19 Akim Demaille <akim@epita.fr>
1222 * src/getargs.c (statistics_flag): Replace with...
1224 (longopts): Accept --trace instead of --statistics.
1225 * src/getargs.h, src/options.c: Adjust.
1226 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
1227 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
1229 2001-11-19 Akim Demaille <akim@epita.fr>
1231 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
1232 pointers to clarify the code.
1233 (save_reductions, save_shifts): Factor common parts of alternatives.
1235 2001-11-19 Akim Demaille <akim@epita.fr>
1237 * src/LR0.c (new_state, get_state): Complete TRACE code.
1238 * src/closure.c: Include `reader.h' to get `tags', needed by the
1240 Rename the conditional DEBUG as TRACE.
1241 Output consistently TRACEs to stderr, not stdout.
1242 * src/derives.c: Likewise.
1243 * src/reduce.c: (inaccessable_symbols): Using if is better style
1245 Use `#if TRACE' instead of `#if 0' for tracing code.
1247 2001-11-19 Akim Demaille <akim@epita.fr>
1249 * src/system.h (LIST_FREE, shortcpy): New.
1250 * src/LR0.c: Use them.
1251 * src/output.c (free_itemsets, free_reductions, free_shifts):
1252 Remove, replaced by LIST_FREE.
1254 2001-11-19 Akim Demaille <akim@epita.fr>
1256 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
1257 (REDUCTIONS_ALLOC): New.
1258 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
1261 2001-11-19 Akim Demaille <akim@epita.fr>
1263 * src/LR0.c (new_state): Complete trace code.
1264 * src/nullable.c (set_nullable): Don't translate traces.
1266 2001-11-19 Akim Demaille <akim@epita.fr>
1268 * src/print_graph.c (print_core): Better locality of variables.
1269 * src/print.c (print_core): Likewise.
1271 2001-11-19 Akim Demaille <akim@epita.fr>
1273 * src/vcg.c: You do the output, so you are responsible of the
1274 handling of VCG syntax, in particular: use quotearg.
1275 * src/print_graph.c: Don't.
1276 (print_actions): Don't output the actions as part of the nodes,
1277 since that's the job of the edges.
1278 (print_state): Don't output by hand: fill the node description,
1279 and ask for its output.
1281 2001-11-19 Akim Demaille <akim@epita.fr>
1283 * src/bison.simple (yyparse): When verbosely reporting an error,
1284 no longer put additional quotes around token names.
1285 * tests/calc.at: Adjust.
1287 2001-11-19 Akim Demaille <akim@epita.fr>
1289 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
1290 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
1291 * src/output.c: Adjust.
1293 2001-11-19 Akim Demaille <akim@epita.fr>
1295 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
1297 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
1299 2001-11-19 Akim Demaille <akim@epita.fr>
1301 * src/gram.h (rule_t): New.
1303 (rrhs, rlhs): Remove, part of state_t.
1304 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
1305 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
1306 * src/reader.c, src/reduce.c: Adjust.
1308 2001-11-19 Akim Demaille <akim@epita.fr>
1310 * src/reader.c (symbols_output): New, extracted from...
1311 (packsymbols): Here.
1314 2001-11-19 Akim Demaille <akim@epita.fr>
1316 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
1317 (maxrhs): this new function.
1319 2001-11-19 Akim Demaille <akim@epita.fr>
1321 * src/lalr.c (F): New macro to access the variable F.
1324 2001-11-19 Akim Demaille <akim@epita.fr>
1326 * src/lalr.h (LA): New macro to access the variable LA.
1327 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1328 * src/lalr.c: Adjust.
1330 2001-11-19 Akim Demaille <akim@epita.fr>
1332 * src/lalr.c (initialize_LA): Only initialize LA. Let...
1333 (set_state_table): handle the `lookaheads' members.
1335 2001-11-19 Akim Demaille <akim@epita.fr>
1337 * src/lalr.h (lookaheads): Removed array, whose contents is now
1339 (state_t): this structure.
1340 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1343 2001-11-19 Akim Demaille <akim@epita.fr>
1345 * src/lalr.h (consistent): Removed array, whose contents is now
1347 (state_t): this structure.
1348 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1351 2001-11-19 Akim Demaille <akim@epita.fr>
1353 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
1354 contents are now members of...
1355 (state_t): this structure.
1356 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1359 2001-11-19 Akim Demaille <akim@epita.fr>
1361 * src/lalr.h (state_t): New.
1362 (state_table): Be a state_t * instead of a core **.
1363 (accessing_symbol): Remove, part of state_t.
1364 * src/lalr.c: Adjust.
1365 (set_accessing_symbol): Merge into...
1366 (set_state_table): this.
1367 * src/print_graph.c, src/conflicts.c: Adjust.
1369 2001-11-14 Akim Demaille <akim@epita.fr>
1371 * tests/calc.at, tests/output.at, tests/regression.at,
1372 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
1373 now the tests are run in private dirs, therefore AC_CLEANUP and
1374 family can be simplified to 0-ary.
1375 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
1376 use abs. path to find config.h.
1377 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
1378 stderr, there can be way too much random noise.
1379 Instead pass -Werror to GCC and rely on the exit status.
1380 Reported by Wolfram Wagner.
1382 2001-11-14 Akim Demaille <akim@epita.fr>
1384 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
1385 defined only if yyoverflow is defined, to avoid `warning: unused
1387 Reported by The Test Suite.
1389 2001-11-14 Akim Demaille <akim@epita.fr>
1391 * src/print.c: Include reduce.h.
1392 Reported by Hans Aberg.
1394 2001-11-14 Akim Demaille <akim@epita.fr>
1396 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
1397 Revert a previous patch: these are really const.
1398 * src/conflicts.c (conflict_report): Additional useless pair of
1399 braces to pacify GCC's warnings for `if () if () {} else {}'.
1400 * src/lex.c (parse_percent_token): Replace equal_offset with
1403 Be sure to strdup `arg' when used, since there is no reason for
1404 token_buffer not to change.
1406 2001-11-14 Akim Demaille <akim@epita.fr>
1408 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
1410 * src/main.c (main): Use them.
1411 Suggested by Hans Aberg.
1413 2001-11-12 Akim Demaille <akim@epita.fr>
1415 * src/system.h (ngettext): Now that we use ngettext, be sure to
1416 provide a default definition when NLS are not used.
1418 2001-11-12 Akim Demaille <akim@epita.fr>
1420 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
1421 Use @kbd to denote user input.
1422 (Language and Grammar): ANSIfy the example.
1423 Adjust its layout for info/notinfo.
1424 (Location Tracking Calc): Output error messages to stderr.
1425 Output locations in a more GNUtically correct way.
1426 Fix a couple of Englishos.
1427 Adjust @group/@end group pairs.
1429 2001-11-12 Akim Demaille <akim@epita.fr>
1431 %expext was not functioning at all.
1433 * src/conflicts.c (expected_conflicts): Set to -1.
1434 (conflict_report): Use ngettext.
1435 (conflicts_print): Check %expect and make its violation an error.
1436 * doc/bison.texinfo (Expect Decl): Adjust.
1437 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
1438 * tests/regression.at (%expect not enough, %expect right)
1439 (%expect too much): New.
1441 2001-11-12 Akim Demaille <akim@epita.fr>
1443 * tests/regression.at (Conflicts): Rename as...
1444 (Unresolved SR Conflicts): this.
1445 (Solved SR Conflicts): New.
1447 2001-11-12 Akim Demaille <akim@epita.fr>
1449 * src/reduce.c (print_results): Rename as...
1450 (reduce_output): This.
1451 Output to OUT, passed as argument, instead of output_obstack.
1452 (dump_grammar): Likewise.
1455 (reduce_grammar): No longer call reduce_output, since...
1456 * src/print.c (print_results): do it.
1457 * src/main.c (main): Call reduce_free;
1459 2001-11-12 Akim Demaille <akim@epita.fr>
1461 * src/conflicts.c (print_reductions): Accept OUT as argument.
1462 Output to it, not to output_obstack.
1463 * src/print.c (print_actions): Adjust.
1465 2001-11-12 Akim Demaille <akim@epita.fr>
1467 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
1468 the result instead of using...
1469 (src_total, rrc_total, src_count, rrc_count): Remove.
1470 (any_conflicts): Remove.
1471 (print_conflicts): Split into...
1472 (conflicts_print, conflicts_output): New.
1473 * src/conflicts.h: Adjust.
1474 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
1475 * src/print.c (print_grammar): Issue `\n' between two rules.
1476 * tests/regression.at (Conflicts): New.
1477 Reported by Tom Lane.
1479 2001-11-12 Akim Demaille <akim@epita.fr>
1481 * tests/regression.at (Invalid input): Remove, duplicate with
1482 ``Invalid input: 1''.
1484 2001-11-12 Akim Demaille <akim@epita.fr>
1486 * tests/torture.at (AT_DATA_STACK_TORTURE)
1487 (Exploding the Stack Size with Alloca)
1488 (Exploding the Stack Size with Malloc): New.
1490 2001-11-12 Akim Demaille <akim@epita.fr>
1492 * src/bison.simple (YYSTACK_REALLOC): New.
1493 (yyparse) [!yyoverflow]: Use it and free the old stack.
1494 Reported by Per Allansson.
1496 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
1498 * src/bison.simple: Define type yystype instead of YYSTYPE, and
1499 define CPP macro, which substitute YYSTYPE by yystype.
1500 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
1501 with yyltype/YYLTYPE. This allows inclusion of the generated
1502 header within the parser if the compiler, such as GGC, accepts
1503 multiple equivalent #defines.
1506 2001-11-05 Akim Demaille <akim@epita.fr>
1508 * src/reader.c (symbols_output): New, extracted from...
1509 (packsymbols): here.
1512 2001-11-05 Akim Demaille <akim@epita.fr>
1514 * src/lex.c (parse_percent_token): s/quotearg/quote/.
1516 2001-11-05 Akim Demaille <akim@epita.fr>
1518 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
1521 2001-11-05 Akim Demaille <akim@epita.fr>
1523 * src/options.h (struct option_table_struct): set_flags is void*.
1524 * src/options.c (longopts): Support `--output' and `%output'.
1526 * src/lex.h (tok_setopt): Remove, replaced with...
1527 (tok_intopt, tok_stropt): these new guys.
1528 * src/lex.c (getopt.h): Not needed.
1529 (token_buffer, unlexed_token_buffer): Not const.
1530 (percent_table): Promote `-' over `_' in directive names.
1531 Active `%name-prefix', `file-prefix', and `output'.
1532 (parse_percent_token): Accept possible arguments to directives.
1533 Promote `-' over `_' in directive names.
1535 2001-11-04 Akim Demaille <akim@epita.fr>
1537 * doc/bison.texinfo (Decl Summary): Split the list into
1538 `directives for grammars' and `directives for bison'.
1540 Add description of `%name-prefix', `file-prefix', and `output'.
1541 Promote `-' over `_' in directive names.
1542 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
1543 Simplify the description of `--name-prefix'.
1544 Promote `-' over `_' in directive names.
1545 Promote `--output' over `--output-file'.
1546 Fix the description of `--defines'.
1547 * tests/output.at: Exercise %file-prefix and %output.
1549 2001-11-02 Akim Demaille <akim@epita.fr>
1551 * doc/refcard.tex: Update.
1553 2001-11-02 Akim Demaille <akim@epita.fr>
1555 * src/symtab.h (SUNDEF): New.
1556 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
1557 stand for `uninitialized', instead of 0.
1558 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
1559 * src/lex.c (lex): Adjust.
1561 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
1563 Let yylex return it instead of a plain 0.
1564 Reported by Dick Streefland.
1566 2001-11-02 Akim Demaille <akim@epita.fr>
1568 * tests/regression.at (Mixing %token styles): New test.
1570 2001-11-02 Akim Demaille <akim@epita.fr>
1572 * src/reader.c (parse_thong_decl): Formatting changes.
1573 (token_translations_init): New, extracted from...
1574 (packsymbols): Here.
1577 2001-11-01 Akim Demaille <akim@epita.fr>
1579 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
1580 Check that `9foo.y' produces correct cpp guards.
1581 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
1585 2001-11-01 Akim Demaille <akim@epita.fr>
1587 * tests/regression.at (Invalid input: 2): New.
1588 * src/lex.c (unlexed_token_buffer): New.
1589 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
1593 2001-11-01 Akim Demaille <akim@epita.fr>
1595 * tests/calc.at: Catch up with 1.30.
1596 * configure.in: Bump to 1.49a.
1597 Adjust to newer Autotest.
1599 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
1601 * src/conflicts.c: Move global variables rrc_total and src_total ...
1602 (print_conflicts): here.
1603 * src/output.c (output): Free global variable user_toknums.
1604 * src/lex.c (token_obstack): Become static.
1606 2001-10-18 Akim Demaille <akim@epita.fr>
1608 * tests/atlocal.in (GCC): Add.
1609 * tests/calc.at: s/m4_match/m4_bmatch/.
1610 s/m4_patsubst/m4_bpatsubst/.
1611 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1612 * configure.in: AC_SUBST(GCC).
1614 2001-10-14 Marc Autret <autret_m@epita.fr>
1616 * src/options.c (create_long_option_table): Fix.
1618 2001-10-10 Akim Demaille <akim@epita.fr>
1620 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1622 2001-10-04 Akim Demaille <akim@epita.fr>
1624 * src/reader.c (parse_union_decl): Push the caracters in
1625 union_obstack, not attrs_obstack.
1627 2001-10-04 Akim Demaille <akim@epita.fr>
1629 Merge in the branch 1.29.
1631 * src/reader.c (packsymbols): Use a temporary obstack for
1632 `%%tokendef', since output_stack is already used elsewhere.
1634 2001-10-02 Akim Demaille <akim@epita.fr>
1638 2001-10-02 Akim Demaille <akim@epita.fr>
1642 2001-10-02 Akim Demaille <akim@epita.fr>
1644 * tests/regression.at (Invalid CPP headers): New.
1645 From Alexander Belopolsky.
1646 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1648 2001-10-02 Akim Demaille <akim@epita.fr>
1650 * tests/regression.at (Invalid input): New.
1651 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1654 2001-10-02 Akim Demaille <akim@epita.fr>
1656 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1658 2001-10-02 Akim Demaille <akim@epita.fr>
1660 * src/output.c (output_parser): Assert `skeleton'.
1661 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1665 2001-10-01 Marc Autret <autret_m@epita.fr>
1667 * src/lex.h: Echo modifications.
1668 * src/lex.c (unlex): Parameter is now token_t.
1671 2001-10-01 Marc Autret <autret_m@epita.fr>
1673 * src/main.c: Include lex.h.
1676 2001-09-29 Akim Demaille <akim@epita.fr>
1678 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1680 2001-09-28 Akim Demaille <akim@epita.fr>
1682 * tests/testsuite.at: Update to newer Autotest.
1683 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1685 2001-09-27 Akim Demaille <akim@epita.fr>
1687 Position independent wrapper.
1689 * tests/bison: Remove.
1690 * tests/bison.in: New.
1691 * configure.in: Adjust.
1693 2001-09-27 Paul Eggert <eggert@twinsun.com>
1695 Port quotearg fixes from tar 1.13.24.
1697 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1699 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1700 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1702 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1703 * m4/mbrtowc.m4: New file.
1704 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1705 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1707 2001-09-27 Akim Demaille <akim@epita.fr>
1711 2001-09-27 Akim Demaille <akim@epita.fr>
1715 2001-09-25 Akim Demaille <akim@epita.fr>
1717 * src/system.h: Include `xalloc.h'.
1718 Remove it from the C files.
1719 * src/files.c (output_files): Free the obstacks.
1720 * src/lex.c (init_lex): Rename as...
1723 * src/main.c (main): Use it.
1725 2001-09-24 Marc Autret <autret_m@epita.fr>
1727 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1728 to output informations in fout (FILE*).
1729 (open_graph, close_graph): Likewise.
1730 (output_graph, output_edge, output_node): Likewise.
1731 * src/vcg.h: Update function prototypes.
1732 * src/print_graph.c (print_graph): Open output graph file.
1733 (print_actions): Adjust.
1734 * src/files.h: Remove extern declaration.
1735 * src/files.c: Remove graph_obstack declaration.
1736 (open_files): Remove graph_obstack initialization.
1737 (output_files): Remove graph_obstack saving.
1739 2001-09-24 Marc Autret <autret_m@epita.fr>
1741 * src/files.c (compute_output_file_names): Fix.
1743 2001-09-24 Marc Autret <autret_m@epita.fr>,
1744 Akim Demaille <akim@epita.fr>
1746 * src/reader.c (reader): Remove call to free_symtab ().
1747 * src/main.c (main): Call it here.
1749 * src/conflicts.c (initialize_conflicts): Rename as...
1750 (solve_conflicts): this.
1751 * src/print.c (print_core, print_actions, print_state)
1752 (print_grammar): Dump to a file instead a `output_obstack'.
1753 (print_results): Dump `output_obstack', and then proceed with the
1755 * src/files.c (compute_output_file_names, close_files): New.
1756 (output_files): Adjust.
1757 * src/main.c (main): Adjust.
1759 2001-09-23 Marc Autret <autret_m@epita.fr>
1761 * src/files.c (compute_header_macro): Computes header macro name
1762 from spec_defines_file when given.
1764 2001-09-23 Marc Autret <autret_m@epita.fr>
1766 * src/files.c (output_files): Add default extensions.
1768 2001-09-22 Akim Demaille <akim@epita.fr>
1770 * src/conflicts.c (finalize_conflicts): Rename as...
1771 (free_conflicts): this.
1773 2001-09-22 Akim Demaille <akim@epita.fr>
1775 * src/gram.c (gram_free): Rename back as...
1777 (output_token_translations): Free `token_translations'.
1778 * src/symtab.c (free_symtab): Free the tag field.
1780 2001-09-22 Akim Demaille <akim@epita.fr>
1782 Remove `translations' as it is always set to true.
1784 * src/gram.h: Adjust.
1785 * src/reader.c (packsymbols, parse_token_decl): Adjust
1786 * src/print.c (print_grammar): Adjust.
1787 * src/output.c (output_token_translations): Adjust.
1788 * src/lex.c (lex): Adjust.
1789 * src/gram.c: Be sure the set pointers to NULL.
1790 (dummy): Rename as...
1793 2001-09-22 Akim Demaille <akim@epita.fr>
1795 * configure.in: Invoke AM_LIB_DMALLOC.
1796 * src/system.h: Use dmalloc.
1797 * src/LR0.c: Be sure to have pointers initialized to NULL.
1798 (allocate_itemsets): Allocate kernel_items only if needed.
1800 2001-09-22 Akim Demaille <akim@epita.fr>
1802 * configure.in: Bump to 1.29b.
1803 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1804 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1805 need xmalloc.c in calc.y.
1808 2001-09-21 Akim Demaille <akim@epita.fr>
1811 * Makefile.maint, config/config.guess, config/config.sub,
1812 * config/missing: Update from masters.
1813 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1815 * configure.in (ALL_LINGUAS): Add `tr'.
1817 2001-09-21 Akim Demaille <akim@epita.fr>
1819 * tests/Makefile.am (package.m4): Move to...
1820 ($(srcdir)/$(TESTSUITE)): here.
1822 2001-09-20 Akim Demaille <akim@epita.fr>
1824 * src/complain.c: No longer try to be standalone: use system.h.
1825 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1826 * src/complain.h: Likewise.
1827 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1828 Remove the unused variable `n'.
1829 From Albert Chin-A-Young.
1831 2001-09-18 Marc Autret <autret_m@epita.fr>
1833 * doc/bison.1: Update.
1834 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1836 (Option Cross Key): Update.
1839 2001-09-18 Marc Autret <autret_m@epita.fr>
1841 * tests/regression.at: New test (comment in %union).
1843 2001-09-18 Marc Autret <autret_m@epita.fr>
1845 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1847 Reported by Keith Browne.
1849 2001-09-18 Marc Autret <autret_m@epita.fr>
1851 * tests/output.at: Add tests for --defines and --graph.
1853 2001-09-18 Marc Autret <autret_m@epita.fr>
1855 * tests/output.at: Removes tests of %{header,src}_extension features.
1857 2001-09-18 Akim Demaille <akim@epita.fr>
1859 * tests/Makefile.am (package.m4): New.
1860 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1861 (_AT_CHECK_CALC_ERROR): Likewise.
1862 Factor the `, ' part of verbose error messages.
1864 2001-09-18 Marc Autret <autret_m@epita.fr>
1866 * src/getargs.c (longopts): Declare --defines and --graph as options
1867 with optional arguments.
1868 * src/files.h: Add extern declarations.
1869 * src/files.c (spec_graph_file, spec_defines_file): New.
1870 (output_files): Update.
1871 Remove CPP-outed code.
1873 2001-09-18 Marc Autret <autret_m@epita.fr>
1875 Turn off %{source,header}_extension feature.
1877 * src/files.c (compute_exts_from_gf): Update.
1878 (compute_exts_from_src): Update.
1879 (output_files): CPP-out useless code.
1880 * src/files.h: Remove {header,source}_extension extern declarations.
1881 * src/reader.c (parse_dquoted_param): CPP-out.
1882 (parse_header_extension_decl): Remove.
1883 (parse_source_extension_decl): Remove.
1884 (read_declarations): Remove cases tok_{hdrext,srcext}.
1885 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1886 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1888 2001-09-10 Akim Demaille <akim@epita.fr>
1890 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1891 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1892 (AT_CHECK_OUTPUT): this.
1893 Merely check ls' exit status, its output is useless.
1895 2001-09-10 Akim Demaille <akim@epita.fr>
1897 * tests/calc.at: Use m4_match.
1898 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1900 2001-09-10 Marc Autret <autret_m@epita.fr>,
1901 Akim Demaille <akim@epita.fr>
1903 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1905 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1907 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1908 * src/lex.h: Adjust prototype.
1909 (token_t): Add `tok_undef'.
1910 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1911 (parse_percent_token): Now returns token_t.
1912 Add default statement in switch.
1913 (lex): Separate `c' as an input variable, from the token_t result
1915 (unlexed): Is a token_t.
1917 2001-09-10 Akim Demaille <akim@epita.fr>
1919 * configure.in: Bump to 1.29a.
1921 2001-09-07 Akim Demaille <akim@epita.fr>
1925 2001-08-30 Akim Demaille <akim@epita.fr>
1927 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1928 * m4/atconfig.m4: Remove.
1929 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1931 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1932 m4_if, m4_patsubst, and m4_regexp.
1933 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1934 `input' file instead of echo.
1936 2001-08-29 Akim Demaille <akim@epita.fr>
1940 2001-08-29 Akim Demaille <akim@epita.fr>
1944 2001-08-29 Paul Eggert <eggert@twinsun.com>
1946 * src/bison.simple (yyparse): Don't take the address of an
1947 item before the start of an array, as that doesn't conform to
1950 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1952 * doc/bison.texinfo (Location Tracking Calc): New node.
1954 2001-08-29 Paul Eggert <eggert@twinsun.com>
1956 * src/output.c (output): Do not define const, as this now
1957 causes more problems than it cures.
1959 2001-08-29 Akim Demaille <akim@epita.fr>
1961 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1963 Be sure to tag the `detailmenu'.
1965 2001-08-29 Akim Demaille <akim@epita.fr>
1967 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1968 download in a tmp dir.
1970 2001-08-28 Marc Autret <autret_m@epita.fr>
1972 * config/depcomp: New file.
1974 2001-08-28 Marc Autret <autret_m@epita.fr>
1976 * doc/bison.1 (mandoc): Adjust.
1977 From Juan Manuel Guerrero.
1979 2001-08-28 Marc Autret <autret_m@epita.fr>
1981 * src/print_graph.c (print_state): Fix.
1983 2001-08-27 Marc Autret <autret_m@epita.fr>
1985 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1987 Echo modifications to the functions prototypes.
1988 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1990 2001-08-27 Marc Autret <autret_m@epita.fr>
1992 * src/vcg.c: Include `xalloc.h'.
1993 (add_colorentry): New.
1994 (add_classname): New.
1995 (add_infoname): New.
1996 * src/vcg.h: Add new prototypes.
1998 2001-08-27 Akim Demaille <akim@epita.fr>
2000 * Makefile.maint: Sync. again with CVS Autoconf.
2002 2001-08-27 Akim Demaille <akim@epita.fr>
2004 * Makefile.maint: Formatting changes.
2005 (po-update, cvs-update, update): New targets.
2008 2001-08-27 Akim Demaille <akim@epita.fr>
2010 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2011 * Makefile.maint: Sync. with CVS Autoconf.
2013 2001-08-27 Marc Autret <autret_m@epita.fr>
2015 * src/vcg.h (struct infoname_s): New.
2016 (struct colorentry_s): New.
2017 (graph_s): New fields {vertical,horizontal}_order in structure.
2018 Add `infoname' field.
2019 Add `colorentry' field;
2020 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
2021 (G_HORIZONTAL_ORDER): New.
2023 (G_COLORENTRY): New.
2024 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
2025 Add output of `infoname'.
2026 Add output of `colorentry'.
2028 2001-08-27 Marc Autret <autret_m@epita.fr>
2030 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
2031 This one shadowed a global parameter.
2033 2001-08-24 Marc Autret <autret_m@epita.fr>
2035 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
2036 instead of `unsigned'.
2037 (print_state): Do not call obstack_object_size () in obstack_grow ()
2038 to avoid macro variables shadowing.
2040 2001-08-23 Marc Autret <autret_m@epita.fr>
2042 * src/lex.c (percent_table): Typo: s/naem/name/.
2044 Normalize new options declarations.
2046 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
2048 * tests/suite.at: Exercise %header_extension and %source_extension.
2050 2001-08-16 Marc Autret <autret_m@epita.fr>
2052 * src/reader.c (parse_dquoted_param): New.
2053 (parse_header_extension_decl): Use it.
2054 (parse_source_extension_decl): Likewise.
2056 2001-08-16 Marc Autret <autret_m@epita.fr>
2058 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
2059 (get_xxxx_str): Use assert () instead of complain ().
2060 Remove return invokations in default cases.
2061 (get_decision_str): Modify default behaviour. Remove second argument.
2062 Echo modifications on calls.
2063 (output_graph): Fix.
2065 2001-08-16 Marc Autret <autret_m@epita.fr>
2067 * src/getargs.c (usage): Update with ``-g, --graph''.
2069 2001-08-16 Marc Autret <autret_m@epita.fr>
2071 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
2072 (Option Cross Key): Likewise.
2073 * doc/bison.1: Update.
2075 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
2077 * src/output.c (output_master_parser): Don't finish action_obstack.
2078 (output_parser): Don't care about the muscle action, here.
2079 (prepare): Copy the action_obstack in the action muscle.
2080 (output): Free action_obstack.
2082 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2084 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
2085 will contain `%union' declaration.
2086 (parse_union_decl): Delete #line directive output.
2087 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
2088 informations about %union.
2089 (parse_union_decl): Copy the union_obstack in the muscle stype.
2090 * src/bison.simple: Add new #line directive.
2091 Add typdef %%stype YYSTYPE.
2093 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2095 * src/bison.simple: Add new `#line' directive.
2097 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
2099 * src/bison.simple: New `#line' directive.
2100 * src/output.c (output_parser): Support new dynamic muscle input_line.
2102 2001-09-22 Marc Autret <autret_m@epita.fr>
2104 * src/output.c (output_master_parser): New.
2105 (output_parser): Be more re-entrant.
2107 2001-09-21 Marc Autret <autret_m@epita.fr>
2109 * src/reader.c (copy_definition, parse_union_decl): Update and use
2111 (copy_action): Likewise.
2112 Use obstack_1grow ().
2113 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
2115 2001-09-21 Marc Autret <autret_m@epita.fr>
2117 * src/options.c (option_table): Adjust.
2118 * src/lex.c (parse_percent_token): Fix.
2120 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2122 * src/options.c (symtab.h): Include it, need by lex.h.
2124 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2126 * src/lex.c (parse_percent_token): Change type of variable `tx', which
2127 is now an option_table_struct*.
2128 (option_strcmp): New function option_strcmp.
2129 (parse_percent_token): Call option_strcmp.
2130 * src/getargs.c (xalloc.h, options.h): Include it.
2131 (getargs): Call create_long_option_table.
2132 (getargs): Free longopts at the end of the function.
2133 (shortopts): Move in options.c.
2134 * src/options.c (create_long_option_table): New function. Convert
2135 information from option_table to option structure.
2136 * src/reader.c (options.h): Include it.
2138 * src/Makefile.am: Adjust.
2139 * src/options.c (option_table): Create from longopts and percent_table.
2140 * src/getargs.c (longopts): Delete.
2141 * src/lex.c (struct percent_table_struct): Delete.
2142 (percent_table): Delete.
2143 (options.h): Include it.
2144 * src/options.c: Create.
2145 * src/options.h: Create.
2146 Declare enum opt_access_e.
2147 Define struct option_table_struct.
2149 2001-09-20 Marc Autret <autret_m@epita.fr>
2151 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
2154 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
2156 * src/bison.simple: s/%%filename/%%skeleton.
2157 * src/muscle_tab.c (getargs.h): Include it.
2158 (muscle_init): Insert new muscle skeleton.
2160 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
2162 * src/output.c (output_parser): Delete unused variable actions_dumped.
2164 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
2166 * src/output.c (output): Delete call to reader_output_yylsp.
2167 * src/reader.c (reader): Likewise.
2168 * src/reader.h: Delete declaration of reader_output_yylsp.
2170 2001-09-02 Marc Autret <autret_m@epita.fr>
2172 * src/reader.c: Include muscle_tab.h.
2173 (parse_union_decl): Update.
2174 (parse_macro_decl): Rename parse_muscle_decl.
2175 Update to use renamed functions and variable.
2176 (read_declarations, copy_action, read_additionnal_code, : Updated
2177 with correct variables and functions names.
2178 (packsymbols, reader): Likewise.
2180 * src/reader.h (muscle_obstack): Extern declaration update.
2182 * src/output.c: Include muscle_tab.h
2183 In all functions using macro_insert, change by using muscle_insert ().
2184 (macro_obstack): Rename muscle_obstack.
2185 Echo modifications in the whole file.
2186 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
2187 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
2188 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
2190 * src/muscle_tab.h: Update double inclusion macros.
2191 (macro_entry_s): Rename muscle_entry_s.
2194 * src/muscle_tab.c: Include muscle_tab.h.
2195 Rename macro_tabble to muscle_table.
2196 (mhash1, mhash2, mcmp): Use muscle_entry.
2197 (macro_init): Rename muscle_init. Update.
2198 (macro_insert): Rename muscle_insert. Update.
2199 (macro_find): Rename muscle_find. Update.
2201 * src/main.c: Include muscle_tab.h.
2202 (main): Call muscle_init ().
2203 * src/Makefile.am (bison_SOURCES): Echo modifications.
2205 2001-09-02 Marc Autret <autret_m@epita.fr>
2207 Now the files macro_tab.[ch] are named muscle_tab.[ch].
2209 * src/muscle_tab.c, src/muscle_tab.h: Add files.
2211 2001-09-02 Marc Autret <autret_m@epita.fr>
2213 * src/macrotab.c, src/macrotab.h: Remove.
2215 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
2217 * src/reader.c (copy_guard): Use muscle to specify the `#line'
2220 2001-09-01 Marc Autret <autret_m@epita.fr>
2222 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
2223 to an explicit value to activate the feature. We do it here.
2225 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2227 * src/output.c (prepare): Delete the `filename' muscule insertion.
2228 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
2229 (parse_union_decl): Likewise.
2230 * src/macrotab.c (macro_init): Initialize filename by infile.
2232 2001-08-31 Marc Autret <autret_m@epita.fr>
2234 * src/bison.simple (YYLSP_NEEDED): New definition.
2235 * src/output.c (prepare): Add macro insertion of `locations_flag'
2237 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2239 * src/output.c (prepare): Delete insertion of previous muscles,
2240 and insert the `prefix' muscles.
2241 * src/macrotab.c (macro_init): Likewise.
2242 (macro_init): Initialization prefix directive by `yy'.
2243 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
2244 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
2245 yylval, yydebug, yyerror, yynerrs and yyparse.
2246 New directive `#define' to substitute yydebug, ... with option
2249 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2251 * src/main.c (main): Standardize.
2252 * src/output.c (output_table_data, output_parser): Likewise.
2253 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
2255 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
2257 * src/reader.c (read_additionnal_code): Rename %%user_code to
2259 * src/output.c (output): Rename %%declarations to %%prologue.
2260 * src/bison.simple: Echo modifications.
2262 2001-08-31 Marc Autret <autret_m@epita.fr>
2264 * src/reader.c (readgram): CleanUp.
2265 (output_token_defines): Likewise.
2266 (packsymbols): Likewise.
2268 * src/output.c (output): CPP-out useless code.
2270 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2272 * src/reader.c (reader): Delete obsolete call to function
2273 output_trailers and output_headers.
2274 * src/output.h: Remove obsolete functions prototypes of output_headers
2275 and output_trailers.
2277 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
2279 * src/main.c: Include macrotab.h.
2280 * src/macrotab.h (macro_entry_s): Constify fields.
2281 Adjust functions prototypes.
2282 * src/macrotab.c (macro_insert): Constify key and value.
2283 (macro_find): Constify key.
2284 (macro_insert): Include 'xalloc.h'
2285 (macro_insert): Use XMALLOC.
2286 (macro_find): Constify return value.
2287 * src/output.c (output_table_data): Rename table to table_data.
2288 (output_parser): Constify macro_key, macro_value.
2290 2001-08-30 Marc Autret <autret_m@epita.fr>
2292 * src/reader.c (parse_skel_decl): New.
2293 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2294 * src/lex.h (token_t): New token `tok_skel'.
2295 * src/lex.c (percent_table): Add skeleton option entry.
2298 2001-08-29 Marc Autret <autret_m@epita.fr>
2300 * src/bison.simple: Add %%user_code directive at the end.
2301 * src/reader.c (read_additionnal_code): New.
2303 * src/output.c (output_program): Remove.
2306 2001-08-28 Marc Autret <autret_m@epita.fr>
2308 * src/output.c (output_actions): Clean up.
2309 (output_gram): CPP-out useless code.
2310 * src/reader.c (reader): Clean up, CPP-out useless code.
2312 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
2314 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
2316 * src/bison.simple: Add `%%definitions'.
2318 2001-08-28 Marc Autret <autret_m@epita.fr>
2320 * config/depcomp: New file.
2322 2001-08-27 Paul Eggert <eggert@twinsun.com>
2324 * src/bison.simple (yyparse): Don't take the address of an
2325 item before the start of an array, as that doesn't conform to
2328 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
2330 * src/output.c (output): Remove the initialization of the macro
2331 obstack. It was done too late here.
2333 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
2335 (reader): Initialize the macro obstack here, since we need it to grow
2336 '%define' directives.
2338 * src/reader.h: Declare the macro obstack as extern.
2340 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
2342 * src/output.c (output_parser): Fix. Store single '%' characters in
2343 the output obstack instead of throwing them away.
2345 2001-08-27 Akim Demaille <akim@epita.fr>
2347 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2349 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2351 * lib/Makefile.am: Adjust.
2353 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2355 * src/bison.simple: Update and add '%%' directives.
2357 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2359 * src/reader.c (reader): Remove calls to 'output_headers' and
2360 'output_trailers'. Remove some C output.
2361 (readgram): Disable a piece of code that was writing a default
2362 definition for 'YYSTYPE'.
2363 (reader_output_yylsp): Remove.
2364 (packsymbols): Output token defintions to a macro.
2365 (copy_definition): Disable C output.
2367 * src/reader.c (parse_macro_decl): New function used to parse macro
2369 (copy_string2): Put the body of copy_string into this new function.
2370 Add a parameter to let the caller choose whether he wants to copy the
2371 string delimiters or not.
2372 (copy_string): Be a simple call to copy_string2 with the last argument
2374 (read_declarations): Add case for macro definition.
2375 (copy_identifier): New.
2376 (parse_macro_decl): Read macro identifiers using copy_identifier
2379 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2381 * src/output.c (prepare): Add prefixed names.
2382 (output_parser): Output semantic actions.
2383 (output_parser): Fix bug on '%%line' directives.
2385 * src/output.c (output_headers): Remove. The C code printed by this
2386 function should now be in the skeletons.
2387 (output_trailers): Remove.
2388 (output): Disable call to 'reader_output_yylsp'.
2389 (output_rule_data): Do not output tables to the table obstack.
2391 * src/output.c: Remove some C dedicated output.
2392 Improve the use of macro and output obstacks.
2393 (output_defines): Remove.
2395 * src/output.c (output_token_translations): Associate 'translate'
2396 table with a macro. No output to the table obstack.
2397 (output_gram): Same for 'rhs' and 'prhs'.
2398 (output_stos): Same for 'stos'.
2399 (output_rule_data): Same for 'r1' and 'r2'.
2400 (token_actions): Same for 'defact'.
2401 (goto_actions): Same for 'defgoto'.
2402 (output_base): Same for 'pact' and 'pgoto'.
2403 (output_table): Same for 'table'.
2404 (output_check): Same for 'check'.
2406 * src/output.c (output_table_data): New function.
2407 (output_short_table): Remove.
2408 (output_short_or_char_table): Remove.
2410 * src/output.c (output_parser): Replace most of the skeleton copy code
2411 with something new. Skeletons are now processed character by character
2412 rather than line by line, and Bison looks for '%%' macros. This is the
2413 first step in making Bison's output process (a lot) more flexible.
2414 (output_parser): Use the macro table.
2416 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2418 * src/main.c (main): Initialize the macro table.
2420 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2422 * src/lex.c (percent_table): Add tok_define.
2423 * src/lex.h: Add tok_define.
2425 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2427 * src/macrotab.c: New file.
2428 * src/macrotab.h: New file.
2429 * src/Makefile.am: Update.
2431 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2433 * lib/hash.c: New file.
2434 * lib/hash.h: New file.
2435 * lib/Makefile.am: Update.
2437 2001-08-15 Akim Demaille <akim@epita.fr>
2441 2001-08-15 Marc Autret <autret_m@epita.fr>
2443 * src/reader.c (readgram): Indent output macro YYSTYPE.
2444 (packsymbols): Likewise.
2445 (output_token_defines): Likewise.
2446 * src/files.c: Standardize.
2447 (compute_header_macro): New.
2448 (defines_obstack_save): New. Use compute_header_macro.
2449 (output_files): Update. Use defines_obstack_save.
2451 2001-08-15 Akim Demaille <akim@epita.fr>
2453 * doc/bison.texinfo (Table of Symbols): Document
2456 2001-08-15 Akim Demaille <akim@epita.fr>
2458 * missing: Update from CVS Automake.
2459 * config/config.guess, config/config.sub, config/texinfo.tex:
2460 Update from gnu.org.
2462 2001-08-15 Akim Demaille <akim@epita.fr>
2464 * Makefile.maint: Sync with CVS Autoconf.
2466 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
2468 * doc/bison.texinfo: Include GNU Free Documentation License from
2470 * doc/fdl.texi: Add to package.
2472 2001-08-14 Marc Autret <autret_m@epita.fr>
2474 Turn on %{source,header}_extension features.
2476 * src/lex.c (percent_table): Un-CPP out header_extension and
2478 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
2479 (compute_exts_from_src): Remove conditions. It restores priorities
2482 2001-08-14 Marc Autret <autret_m@epita.fr>
2484 * src/files.c (compute_base_names): Add extensions computing when
2485 `--file-prefix' used.
2486 Standardize function calls.
2488 2001-08-13 Marc Autret <autret_m@epita.fr>
2490 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
2491 defining it (defined but null disables alloca).
2493 2001-08-13 Marc Autret <autret_m@epita.fr>
2495 * src/bison.simple (_yy_memcpy): CPP reformat.
2497 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
2499 * tests/atconfig.in (CPPFLAGS): Fix.
2501 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
2503 * doc/bison.texinfo: Include GNU General Public License from
2505 * doc/gpl.texi: Add to package.
2507 2001-08-10 Marc Autret <autret_m@epita.fr>
2509 * src/print_graph.h: Fix.
2510 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
2512 2001-08-10 Akim Demaille <akim@epita.fr>
2514 * src/system.h: Provide default declarations for stpcpy, strndup,
2517 2001-08-10 Robert Anisko <anisko_r@epita.fr>
2519 * doc/bison.texinfo (Locations): Update @$ stuff.
2521 2001-08-09 Robert Anisko <anisko_r@epita.fr>
2523 * src/bison.simple (YYLLOC_DEFAULT): Update.
2526 2001-08-08 Marc Autret <autret_m@epita.fr>
2528 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
2529 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
2530 Reported by Fabrice Bauzac.
2532 2001-08-08 Marc Autret <autret_m@epita.fr>
2534 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
2535 * src/vcg.c (output_node): Fix.
2536 * src/vcg.h: Cleanup.
2537 * src/print_graph.c: Add comments.
2538 (node_output_size): New global variable. Simplify the formatting of
2539 the VCG graph output.
2540 (print_actions): Unused code is now used. It notifies the final state
2541 and no action states in the VCG graph. It also give the reduce actions.
2542 The `shift and goto' edges are red and the `go to state' edges are
2544 Get the current node name and node_obstack by argument.
2545 (node_obstack): New variable.
2546 (print_state): Manage node_obstack.
2547 (print_core): Use node_obstack given by argument.
2548 A node is not only computed here but in print_actions also.
2549 (print_graph): CPP out useless code instead of commenting it.
2551 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
2553 * tests/atconfig.in (CPPFLAGS): Fix.
2555 2001-08-07 Akim Demaille <akim@epita.fr>
2557 * src/print_graph.c (quote): New.
2558 (print_core): Use it.
2560 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
2562 * src/vcg.c (complain.h): Include it.
2563 Unepitaize `return' invocations.
2564 [NDEBUG] (main): Remove.
2565 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
2566 * src/files.c (open_files): Initialize graph_obstack.
2567 * src/print_graph.c (print_actions): CPP out useless code.
2568 (print_core): Don't output the last `\n' in labels.
2570 * src/files.c (output_files): Output the VCG file.
2571 * src/main.c (main): Invoke print_graph ();
2573 2001-08-06 Marc Autret <autret_m@epita.fr>
2575 Automaton VCG graph output.
2576 Using option ``-g'' or long option ``--graph'', you can generate
2577 a gram_filename.vcg file containing a VCG description of the LALR (1)
2578 automaton of your grammar.
2580 * src/main.c: Call to print_graph() function.
2581 * src/getargs.h: Update.
2582 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
2583 (graph_flag): New flag.
2585 (getargs): Add case `g'.
2586 * src/files.c (graph_obstack): New obstack struct.
2587 (open_files): Initialize new obstack.
2588 (output_files): Saves graph_obstack if required.
2589 * src/files.h (graph_obstack): New extern declaration.
2590 * src/Makefile.am: Add new source files.
2592 2001-08-06 Marc Autret <autret_m@epita.fr>
2594 * src/print_graph.c, src/print_graph.h (graph): New.
2595 * src/vcg.h: New file.
2596 * src/vcg.c: New file, VCG graph handling.
2598 2001-08-06 Marc Autret <autret_m@epita.fr>
2600 Add of %source_extension and %header_extension which specify
2601 the source or/and the header output file extension.
2603 * src/files.c (compute_base_names): Remove initialisation of
2604 src_extension and header_extension.
2605 (compute_exts_from_gf): Update.
2606 (compute_exts_from_src): Update.
2607 (output_files): Update.
2608 * src/reader.c (parse_header_extension_decl): New.
2609 (parse_source_extension_decl): New.
2610 (read_declarations): New case statements for the new tokens.
2611 * src/lex.c (percent_table): Add entries for %source_extension
2612 and %header_extension.
2613 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
2615 2001-08-06 Marc Autret <autret_m@epita.fr>
2617 * configure.in: Bump to 1.28c.
2618 * doc/bison.texinfo: Texinfo thingies.
2620 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
2622 * tests/atconfig.in (CPPFLAGS): Add.
2623 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
2625 2001-08-03 Akim Demaille <akim@epita.fr>
2629 2001-08-03 Akim Demaille <akim@epita.fr>
2631 * tests/Makefile.am (check-local): Ship testsuite.
2632 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
2635 2001-08-03 Akim Demaille <akim@epita.fr>
2637 * configure.in: Try using -Wformat when compiling.
2639 2001-08-03 Akim Demaille <akim@epita.fr>
2641 * configure.in: Bump to 1.28b.
2643 2001-08-03 Akim Demaille <akim@epita.fr>
2645 * src/complain.c: Adjust strerror_r portability issues.
2647 2001-08-03 Akim Demaille <akim@epita.fr>
2651 2001-08-03 Akim Demaille <akim@epita.fr>
2653 * src/getargs.c, src/getarg.h (skeleton)): Constify.
2654 * src/lex.c (literalchar): Avoid name clashes on `buf'.
2655 * src/getargs.c: Include complain.h.
2656 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
2657 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
2659 2001-08-03 Akim Demaille <akim@epita.fr>
2661 * src/reader.c (readgram): Display hidden chars in error messages.
2663 2001-08-03 Akim Demaille <akim@epita.fr>
2665 Update to gettext 0.10.39.
2667 2001-08-03 Akim Demaille <akim@epita.fr>
2669 * lib/strspn.c: New.
2671 2001-08-01 Marc Autret <autret_m@epita.fr>
2673 * doc/bison.texinfo: Update.
2674 * doc/bison.1 (mandoc): Update.
2675 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
2676 * src/files.c: Support output files extensions computing.
2677 (src_extension): New static variable.
2678 (header_extension): New static variable.
2680 (get_extension_index): New function, gets the index of an extension
2681 filename in a string.
2682 (compute_exts_from_gf): New function, computes extensions from the
2683 grammar file extension.
2684 (compute_exts_from_src): New functions, computes extensions from the
2685 C source file extension, file given by ``-o'' option.
2686 (compute_base_names): Update.
2687 (output_files): Update.
2689 2001-08-01 Robert Anisko <anisko_r@epita.fr>
2691 * doc/bison.texi: Document @$.
2692 (Locations): New section.
2694 2001-07-18 Akim Demaille <akim@epita.fr>
2696 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
2697 * config/prev-version.txt, config/move-if-change: New.
2698 * Makefile.am: Adjust.
2700 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
2702 * src/bison.simple (yyparse): Suppress warning `comparaison
2703 between signed and unsigned'.
2705 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
2707 * src/getargs.h (raw_flag): Remove.
2708 * src/getargs.c: Die on `-r'/`--raw'.
2709 * src/lex.c (parse_percent_token): Die on `%raw'.
2710 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
2711 * tests/calc.at: Suppress test with option `--raw'.
2713 2001-07-14 Akim Demaille <akim@epita.fr>
2716 * configure.in: Require Autoconf 2.50.
2717 Update to gettext 0.10.38.
2719 2001-03-16 Akim Demaille <akim@epita.fr>
2721 * doc/bison.texinfo: ANSIfy the examples.
2723 2001-03-16 Akim Demaille <akim@epita.fr>
2725 * getargs.c (skeleton): New variable.
2726 (longopts): --skeleton is a new option.
2727 (shortopts, getargs): -S is a new option.
2728 * getargs.h: Declare skeleton.
2729 * output.c (output_parser): Use it.
2731 2001-03-16 Akim Demaille <akim@epita.fr>
2733 * m4/strerror_r.m4: New.
2734 * m4/error.m4: Run AC_FUNC_STRERROR_R.
2735 * lib/error.h, lib/error.c: Update.
2737 2001-03-16 Akim Demaille <akim@epita.fr>
2739 * src/getargs.c (longopts): Clean up.
2741 2001-02-21 Akim Demaille <akim@epita.fr>
2743 * src/reader.c (gensym): `gensym_count' is your own.
2744 Use a static buf to create the symbol name, as token_buffer is no
2747 2001-02-08 Akim Demaille <akim@epita.fr>
2749 * src/conflicts.c (conflict_report): Be sure not to append to res
2750 between two calls, which could happen if both first sprintf were
2751 skipped, but not the first cp += strlen.
2753 2001-02-08 Akim Demaille <akim@epita.fr>
2755 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
2756 New, from fileutils 4.0.37.
2757 * configure.in: Require Autoconf 2.49c. I took some time before
2758 making this decision. This is the only way out for portability
2759 issues in Bison, it would mean way too much duplicate effort to
2760 import in Bison features implemented in 2.49c since 2.13.
2761 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
2763 2001-02-02 Akim Demaille <akim@epita.fr>
2765 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
2766 * lib/xalloc.h, lib/xmalloc.c: Update.
2768 2001-01-19 Akim Demaille <akim@epita.fr>
2770 Get rid of the ad hoc handling of token_buffer in the scanner: use
2773 * src/lex.c (token_obstack): New.
2774 (init_lex): Initialize it. No longer call...
2775 (grow_token_buffer): this. Remove it.
2776 Adjust all the places which used it to use the obstack.
2778 2001-01-19 Akim Demaille <akim@epita.fr>
2780 * src/lex.h: Rename all the tokens:
2781 s/\bENDFILE\b/tok_eof/g;
2782 s/\bIDENTIFIER\b/tok_identifier/g;
2784 Let them be enums, not #define, to ease debugging.
2785 Adjust all the code.
2787 2001-01-18 Akim Demaille <akim@epita.fr>
2789 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2790 * src/lex.c (maxtoken, grow_token_buffer): Static.
2792 2001-01-18 Akim Demaille <akim@epita.fr>
2794 Since we now use obstacks, more % directives can be enabled.
2796 * src/lex.c (percent_table): Also accept `%yacc',
2797 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2799 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2800 instead of returning a token.
2801 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2802 * src/reader.c (read_declarations): Adjust.
2803 * src/files.c (open_files): Don't call `compute_base_names', don't
2804 compute `attrsfile' since they depend upon data which might be
2805 *in* the input file now.
2806 (output_files): Do it here.
2807 * src/output.c (output_headers): Document the fact that this patch
2808 introduces a guaranteed SEGV for semantic parsers.
2809 * doc/bison.texinfo: Document them.
2810 * tests/suite.at: Exercise these %options.
2812 2000-12-20 Akim Demaille <akim@epita.fr>
2814 Also handle the output file (--verbose) with obstacks.
2816 * files.c (foutput): Remove.
2817 (output_obstack): New.
2818 Adjust all dependencies.
2819 * src/conflicts.c: Return a string.
2820 * src/system.h (obstack_grow_string): Rename as...
2821 (obstack_sgrow): this. Be ready to work with non literals.
2822 (obstack_fgrow4): New.
2824 2000-12-20 Akim Demaille <akim@epita.fr>
2826 * src/files.c (open_files): Fix the computation of short_base_name
2827 in the case of `-o foo.tab.c'.
2829 2000-12-20 Akim Demaille <akim@epita.fr>
2831 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2832 (copy_dollar): Now that everything uses obstacks, get rid of the
2835 2000-12-20 Akim Demaille <akim@epita.fr>
2837 * src/files.c (open_files): Actually the `.output' file is based
2838 on the short_base_name, not base_name.
2839 * tests/suite.at (Checking output file names): Adjust.
2841 2000-12-20 Akim Demaille <akim@epita.fr>
2843 * src/bison.s1: Remove, we now use directly...
2844 * src/bison.simple: this.
2845 * src/Makefile.am: Use pkgdata instead of data.
2847 2000-12-20 Akim Demaille <akim@epita.fr>
2849 * src/files.c (guard_obstack): New.
2850 (open_files): Initialize it.
2851 (output_files): Dump it...
2852 * src/files.h: Export it.
2853 * src/reader.c (copy_guard): Use it.
2855 2000-12-19 Akim Demaille <akim@epita.fr>
2857 * src/files.c (outfile, defsfile, actfile): Removed as global
2859 (open_files): Don't compute them.
2860 (output_files): Adjust.
2861 (base_name, short_base_name): Be global.
2862 Adjust dependencies.
2864 2000-12-19 Akim Demaille <akim@epita.fr>
2866 * src/files.c (strsuffix): New.
2867 (stringappend): Be just like strcat but allocate.
2868 (base_names): Eve out from open_files.
2869 Try to simplify the rather hairy computation of base_name and
2871 (open_files): Use it.
2872 * tests/suite.at (Checking output file names): New test.
2874 2000-12-19 Akim Demaille <akim@epita.fr>
2876 * src/system.h (obstack_grow_literal_string): Rename as...
2877 (obstack_grow_string): this.
2878 * src/output.c (output_parser): Recognize `%% actions' instead of
2880 * src/bison.s1: s/$/%% actions/.
2881 * src/bison.hairy: Likewise.
2883 2000-12-19 Akim Demaille <akim@epita.fr>
2885 * src/output.c (output_parser): Compute the `#line' lines when
2887 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2888 Suggested by Hans Aberg.
2890 2000-12-19 Akim Demaille <akim@epita.fr>
2892 Let the handling of the skeleton files be local to the procedures
2895 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2897 (fparser, open_extra_files): Remove.
2898 (open_files, output_files): Don't take care of fparser.
2899 * src/files.h: Adjust.
2900 * src/output.c (output_parser): Open and close the file to the
2902 * src/reader.c (read_declarations): When %semantic_parser, open
2905 2000-12-19 Akim Demaille <akim@epita.fr>
2907 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2908 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2910 2000-12-19 Akim Demaille <akim@epita.fr>
2912 * src/files.c (open_files): Yipee! We no longer need all the code
2913 looking for `/tmp' since we have no tmp file.
2915 2000-12-19 Akim Demaille <akim@epita.fr>
2917 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2919 * src/files.c (open_files): Less dependency on MSDOS etc.
2921 2000-12-14 Akim Demaille <akim@epita.fr>
2923 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2924 Provide a default definition.
2925 Use it when executing the default @ action.
2926 * src/reader.c (reader_output_yylsp): No longer include
2927 `timestamp' and `text' in the default YYLTYPE.
2929 2000-12-12 Akim Demaille <akim@epita.fr>
2931 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2932 (copy_guard): Quote the file names.
2933 Reported by Laurent Mascherpa.
2935 2000-12-12 Akim Demaille <akim@epita.fr>
2937 * src/output.c (output_headers, output_program, output): Be sure
2938 to escape special characters when outputting filenames.
2939 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2940 (output_headers): Don't depend on them, Use ACTSTR.
2942 2000-11-17 Akim Demaille <akim@epita.fr>
2944 * lib/obstack.h: Formatting changes.
2945 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2946 prevents type checking.
2947 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2948 cast the value to (void *): assigning a `foo *' to a `void *'
2950 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2951 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2954 2000-11-17 Akim Demaille <akim@epita.fr>
2956 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2958 (suite.m4, regression.m4, calc.m4): these.
2959 * tests/atgeneral.m4: Update from CVS Autoconf.
2961 2000-11-17 Akim Demaille <akim@epita.fr>
2963 * tests/regression.m4 (%union and --defines): New test,
2964 demonstrating a current bug in the obstack implementation.
2966 2000-11-17 Akim Demaille <akim@epita.fr>
2968 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2970 Use them to declare the variables which are global or local to
2973 2000-11-17 Akim Demaille <akim@epita.fr>
2975 * acconfig.h: Remove, no longer used.
2977 2000-11-07 Akim Demaille <akim@epita.fr>
2979 * src: s/Copyright (C)/Copyright/g.
2981 2000-11-07 Akim Demaille <akim@epita.fr>
2983 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2985 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2987 2000-11-07 Akim Demaille <akim@epita.fr>
2989 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2990 Merge in a single CPP if/else.
2992 2000-11-07 Akim Demaille <akim@epita.fr>
2994 * src/output.c (output): Remove useless variables.
2995 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2996 argument `data' for consistency with the prototypes.
2998 (obstack_copy, obstack_copy0): Rename the second argument as
2999 `address' for consistency. Qualify it `const'.
3000 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
3001 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
3002 `const' their input argument (`data' or `address').
3003 Adjust the corresponding macros to include `const' in casts.
3005 2000-11-03 Akim Demaille <akim@epita.fr>
3007 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
3008 s/PFILE1/BISON_HAIRY/.
3009 Adjust dependencies.
3011 2000-11-03 Akim Demaille <akim@epita.fr>
3013 For some reason, this was not applied.
3015 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3016 `unlink': it's no longer used.
3018 2000-11-03 Akim Demaille <akim@epita.fr>
3020 * src/files.c (skeleton_find): New function, eved out of...
3021 (open_files, open_extra_files): here.
3023 2000-11-03 Akim Demaille <akim@epita.fr>
3027 * src/files.c (obstack_save): New function.
3028 (done): Rename as...
3029 (output_files): this.
3031 * src/main.c (main): Don't use `atexit' to register `done', since
3032 it no longer has to remove tmp files, just call `output_files'
3033 when there are no errors.
3035 2000-11-02 Akim Demaille <akim@epita.fr>
3037 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3038 `unlink': it's no longer used.
3039 * src/files.h: Formatting changes.
3041 2000-11-02 Akim Demaille <akim@epita.fr>
3043 Remove the last uses of mktemp and unlink/delete.
3045 * src/files.c (fdefines, ftable): Removed.
3046 (defines_ostack, table_obstack): New.
3047 Adjust dependencies of the former into uses of the latter.
3048 * src/output.c (output_short_or_char_table, output_short_table):
3049 Convert to using obstacks.
3050 * src/reader.c (copy_comment2): Accept one FILE * and two
3052 (output_token_defines, reader_output_yylsp): Use obstacks.
3053 * src/system.h (obstack_fgrow3): New.
3055 2000-11-01 Akim Demaille <akim@epita.fr>
3057 Change each use of `fattrs' into a use of `attrs_obstack'.
3059 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
3060 * src/files.c (fattrs): Remove.
3061 (attrs_obstack): New.
3062 Adjust all dependencies.
3063 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
3065 2000-11-01 Akim Demaille <akim@epita.fr>
3068 Change each use of `faction' into a use of `action_obstack'.
3070 * lib/obstack.h, lib/obstack.c: New files.
3071 * src/files.c (faction): Remove.
3072 (action_obstack): New.
3073 Adjust all dependencies.
3075 2000-10-20 Akim Demaille <akim@epita.fr>
3077 * lib/quote.h (PARAMS): New macro. Use it.
3079 2000-10-16 Akim Demaille <akim@epita.fr>
3081 * src/output.c (output_short_or_char_table): New function.
3082 (output_short_table, output_token_translations): Use it.
3083 (goto_actions): Use output_short_table.
3085 2000-10-16 Akim Demaille <akim@epita.fr>
3087 * src/symtab.c (bucket_new): New function.
3090 * src/output.c (output_short_table): New argument to display the
3091 comment associated with the table.
3092 Adjust dependencies.
3093 (output_gram): Use it.
3094 (output_rule_data): Nicer output layout for YYTNAME.
3096 2000-10-16 Akim Demaille <akim@epita.fr>
3098 * src/lex.c (read_typename): New function.
3100 * src/reader.c (copy_dollar): Likewise.
3102 2000-10-16 Akim Demaille <akim@epita.fr>
3104 * src/reader.c (copy_comment2): Expect the input stream to be on
3105 the `/' which is suspected to open a comment, instead of being
3106 called after `//' or `/*' was read.
3107 (copy_comment, copy_definition, parse_union_decl, copy_action)
3108 (copy_guard): Adjust.
3110 2000-10-16 Akim Demaille <akim@epita.fr>
3112 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
3113 `read_signed_integer'.
3115 2000-10-16 Akim Demaille <akim@epita.fr>
3117 * src/reader.c (copy_dollar): New function.
3118 (copy_guard, copy_action): Use it.
3120 2000-10-16 Akim Demaille <akim@epita.fr>
3122 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
3123 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
3124 New files, from Fileutils 4.0.27.
3125 * src/main.c (printable_version): Remove.
3126 * src/lex.c, src/reader.c: Use `quote'.
3128 2000-10-04 Akim Demaille <akim@epita.fr>
3130 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
3132 2000-10-04 Akim Demaille <akim@epita.fr>
3134 * doc/bison.texinfo: Various typos spotted by Neil Booth.
3136 2000-10-04 Akim Demaille <akim@epita.fr>
3138 When a literal string is used to define two different tokens,
3139 `bison -v' segfaults.
3140 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
3142 * tests/regression.m4: New file.
3143 Include the core of the sample provided by Piotr Gackiewicz.
3144 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
3147 2000-10-04 Akim Demaille <akim@epita.fr>
3149 * src/reader.c (parse_expect_decl): Keep `count' within the size
3153 2000-10-02 Paul Eggert <eggert@twinsun.com>
3155 * bison.s1 (yyparse): Assign the default value
3156 unconditionally, to avoid a GCC warning and make the parser a
3159 2000-10-02 Akim Demaille <akim@epita.fr>
3161 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
3164 2000-10-02 Akim Demaille <akim@epita.fr>
3166 * src/derives.c, src/print.c, src/reduce.c: To ease the
3167 translation, move some `\n' out of the translated strings.
3169 2000-10-02 Akim Demaille <akim@epita.fr>
3171 The location tracking mechanism is precious for parse error
3172 messages. Nevertheless, it is enabled only when `@n' is used in
3173 the grammar, which is a different issue (you can use it in error
3174 message, but not in the grammar per se). Therefore, there should
3175 be another means to enable it.
3177 * src/getargs.c (getargs): Support `--locations'.
3179 * src/getargs.h (locationsflag): Export it.
3180 * src/lex.c (percent_table): Support `%locations'.
3181 * src/reader.c (yylsp_needed): Remove this variable, now replaced
3182 with `locationsflag'.
3183 * doc/bison.texinfo: Document `--locations' and `%locations'.
3185 * tests/calc.m4: Test it.
3187 For regularity of the names, replace each
3188 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
3189 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
3190 In addition replace each `flag' with `_flag'.
3192 2000-10-02 Akim Demaille <akim@epita.fr>
3194 Also test parse error messages, including with YYERROR_VERBOSE.
3196 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
3198 Use it to check the computations.
3199 Use it to check `nonassoc' is honored.
3200 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
3201 `--yyerror-verbose'.
3202 (_AT_CHECK_CALC): Adjust to this option.
3203 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
3205 2000-10-02 Akim Demaille <akim@epita.fr>
3207 Test also `--verbose', `--defines' and `--name-prefix'. Testing
3208 the latter demonstrates a flaw in the handling of non debugging
3209 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
3210 was used in order to simplify:
3226 unfortunately this leads to a CPP conflict when
3227 `--name-prefix=foo' is used since it produces `#define yydebug
3230 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
3231 (YYDPRINTF): New macro.
3233 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
3235 Also test `--verbose', `--defines' and `--name-prefix'.
3237 2000-10-02 Akim Demaille <akim@epita.fr>
3239 Improve the readability of the produced parsers.
3241 * src/bison.s1: Formatting changes.
3242 Improve the comment related to the `$' mark.
3243 (yydefault): Don't fall through to `yyresume': `goto' there.
3244 * src/output.c (output_parser): When the `$' is met, skip the end
3246 New variable, `number_of_dollar_signs', to check there's exactly
3247 one `$' in the parser skeleton.
3249 2000-10-02 Akim Demaille <akim@epita.fr>
3251 * lib/xstrdup.c: New file, from the fileutils.
3252 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
3253 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
3254 instead of strlen + xmalloc + strcpy.
3255 * src/symtab.c (copys): Remove, use xstrdup instead.
3257 2000-10-02 Akim Demaille <akim@epita.fr>
3259 * src/gram.h (associativity): New enum type which replaces the
3260 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
3261 `right_assoc', `left_assoc' and `non_assoc'.
3262 Adjust all dependencies.
3263 * src/reader.c: Formatting changes.
3264 (LTYPESTR): Don't define it, use it as a literal in
3265 `reader_output_yylsp'.
3266 * src/symtab.h (symbol_class): New enum type which replaces the
3267 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
3268 `sunknown', `stoken and `snterm'.
3270 2000-10-02 Akim Demaille <akim@epita.fr>
3272 * src/getargs.c (fixed_outfiles): Rename as...
3273 (yaccflag): for consistency and accuracy.
3274 Adjust dependencies.
3276 2000-10-02 Akim Demaille <akim@epita.fr>
3278 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
3279 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
3280 difficult and introduced a lot of core dump. It turns out that
3281 Bison used an implementation of `xmalloc' based on `calloc', and
3282 at various places it does depend upon the initialization to 0. I
3283 have not tried to isolate the pertinent places, and all the former
3284 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
3285 someone should address this issue.
3287 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
3288 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
3290 Adjust dependencies.
3291 * src/warshall.h: New file.
3294 2000-10-02 Akim Demaille <akim@epita.fr>
3296 Various anti-`extern in *.c' changes.
3298 * src/system.h: Include `assert.h'.
3300 2000-10-02 Akim Demaille <akim@epita.fr>
3302 * src/state.h (nstates, final_state, first_state, first_shift)
3303 (first_reduction): Move their exportation from here...
3304 * src/LR0.h: to here.
3305 Adjust dependencies.
3306 * src/getargs.c (statisticsflag): New variable.
3307 Add support for `--statistics'.
3308 Adjust dependencies.
3310 Remove a lot of now useless `extern' statements in most files.
3312 2000-10-02 Akim Demaille <akim@epita.fr>
3314 * src/LR0.h: New file.
3317 2000-10-02 Akim Demaille <akim@epita.fr>
3319 * src/print.h: New file.
3321 * src/print.c: Formatting and ordering changes.
3322 (verbose, terse): Replace with...
3323 (print_results): this new function.
3324 Adjust dependencies.
3326 2000-10-02 Akim Demaille <akim@epita.fr>
3328 * src/conflicts.c (conflict_report): New function.
3329 (conflict_log, verbose_conflict_log): Replace with...
3330 (print_conflicts): this function.
3331 Adjust dependencies.
3332 * src/conflicts.h: New file.
3333 Propagate its inclusion.
3335 2000-10-02 Akim Demaille <akim@epita.fr>
3337 * src/nullable.h: New file.
3338 Propagate its inclusion.
3339 * src/nullable.c: Formatting changes.
3341 2000-10-02 Akim Demaille <akim@epita.fr>
3343 * src/reduce.h: New file.
3344 Propagate its inclusion.
3345 * src/reduce.c: Topological sort and other formatting changes.
3346 (bool, TRUE, FALSE): Move their definition to...
3347 * src/system.h: here.
3349 2000-10-02 Akim Demaille <akim@epita.fr>
3351 * src/files.c: Formatting changes.
3352 (tryopen, tryclose, openfiles): Rename as...
3353 (xfopen, xfclose, open_files): this.
3354 (stringappend): static.
3355 * src/files.h: Complete the list of exported symbols.
3358 2000-10-02 Akim Demaille <akim@epita.fr>
3360 * src/reader.h: New file.
3361 Propagate its use instead of tedious list of `extern' and
3363 * src/reader.c: Formatting changes, topological sort,
3366 2000-10-02 Akim Demaille <akim@epita.fr>
3368 * src/lex.h: Prototype `lex.c' exported functions.
3369 * src/reader.c: Adjust.
3370 * src/lex.c: Formatting changes.
3371 (safegetc): Rename as...
3374 2000-10-02 Akim Demaille <akim@epita.fr>
3376 * src/lalr.h: New file.
3377 Propagate its inclusion instead of prototypes and `extern'.
3378 * src/lalr.c: Formatting changes, topological sorting etc.
3380 2000-10-02 Akim Demaille <akim@epita.fr>
3382 * src/output.c (token_actions): Introduce a temporary array,
3383 YYDEFACT, that makes it possible for this function to use
3386 2000-10-02 Akim Demaille <akim@epita.fr>
3388 `user_toknums' is output as a `short[]' in `output.c', while it is
3389 defined as a `int[]' in `reader.c'. For consistency with the
3390 other output tables, `user_toknums' is now defined as a table of
3393 * src/reader.c (user_toknums): Be a short table instead of an int
3395 Adjust dependencies.
3397 Factor the short table outputs.
3399 * src/output.c (output_short_table): New function.
3400 * src/output.c (output_gram, output_stos, output_rule_data)
3401 (output_base, output_table, output_check): Use it.
3403 2000-10-02 Akim Demaille <akim@epita.fr>
3405 * src/output.c (output): Topological sort of the functions, in
3406 order to get rid of the `static' prototypes.
3407 No longer use `register'.
3408 * src/output.h: New file.
3409 Propagate its inclusion in files explicitly prototyping functions
3412 2000-09-21 Akim Demaille <akim@epita.fr>
3414 * src/atgeneral.m4: Update from Autoconf.
3416 2000-09-21 Akim Demaille <akim@epita.fr>
3418 * src/closure.h: New file.
3419 * src/closure.c: Formatting changes, topological sort over the
3420 functions, use of closure.h.
3421 (initialize_closure, finalize_closure): Rename as...
3422 (new_closure, free_closure): these. Adjust dependencies.
3423 * src/LR0.c: Formatting changes, topological sort, use of
3425 (initialize_states): Rename as...
3427 * src/Makefile.am (noinst_HEADERS): Adjust.
3429 2000-09-20 Akim Demaille <akim@epita.fr>
3431 * src/acconfig.h: Don't protect config.h against multiple
3433 Don't define PARAMS.
3434 * src/system.h: Define PARAMS.
3435 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
3436 purpose of config.h. system.h must not try to fix wrong
3437 definitions in config.h.
3439 2000-09-20 Akim Demaille <akim@epita.fr>
3441 * src/derives.h: New file.
3442 * src/main.c, src/derives.h: Use it.
3444 * src/Makefile.am (noinst_HEADERS): Adjust.
3446 2000-09-20 Akim Demaille <akim@epita.fr>
3448 * tests/atgeneral.m4: Update from Autoconf.
3449 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
3450 (AT_CHECK_CALC): New macros.
3451 Use these macros to test bison with options `', `--raw',
3452 `--debug', `--yacc', `--yacc --debug'.
3454 2000-09-19 Akim Demaille <akim@epita.fr>
3456 * src/output.c: Formatting changes.
3457 * src/machine.h: Remove, leaving its contents in...
3458 * src/system.h: here.
3460 Adjust all dependencies on stdio.h and machine.h.
3461 * src/getargs.h: New file.
3462 Let all `extern' declarations about getargs.c be replaced with
3463 inclusion of `getargs.h'.
3464 * src/Makefile.am (noinst_HEADERS): Adjust.
3466 * tests/calc.m4 (yyin): Be initialized in main, not on the global
3468 (yyerror): Returns void, not int.
3469 * doc/bison.texinfo: Formatting changes.
3471 2000-09-19 Akim Demaille <akim@epita.fr>
3473 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
3476 2000-09-18 Akim Demaille <akim@epita.fr>
3478 * configure.in: Append WARNING_CFLAGS to CFLAGS.
3479 * src/Makefile.am (INCLUDES): Don't.
3480 Be ready to fetch headers in lib/.
3482 2000-09-18 Akim Demaille <akim@epita.fr>
3484 * doc/bison.texinfo: Update the copyright.
3485 ANSIfy and GNUify the examples.
3486 Remove the old menu.
3488 2000-09-18 Akim Demaille <akim@epita.fr>
3490 First set of tests: use the `calc' example from the documentation.
3492 * src/bison.s1 (yyparse): Condition the code using `yytname' which
3493 is defined only when YYDEBUG is.
3494 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
3495 * src/files.c (tryopen, tryclose): Formatting changes.
3496 Move to the top and be static.
3497 * src/reader.c (read_signed_integer): Likewise.
3498 * tests/calc.m4: New file.
3499 * Makefile.am, suite.m4: Adjust.
3500 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
3502 2000-09-18 Akim Demaille <akim@epita.fr>
3504 Add support for an Autotest test suite for Bison.
3506 * m4/m4.m4, m4/atconfig.m4: New files.
3507 * m4/Makefile.am (EXTRA_DIST): Adjust.
3508 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
3510 * src/getargs.c: Display a more standard --version message.
3511 * src/reader.c (reader): Formatting changes.
3512 No longer depend upon VERSION_STRING.
3513 * configure.in: No longer use `dnl'.
3514 Set up the test suite and the new directory `tests/.
3515 (VERSION_STRING): Remove.
3517 2000-04-14 Akim Demaille <akim@epita.fr>
3519 * src/reader.c (copy_comment2): New function, same as former
3520 `copy_comment', but outputs into two FILE *.
3521 (copy_comment): Use it.
3522 (parse_union_decl): Use it.
3523 (get_type, parse_start_decl): Use the same `invalid' message.
3524 (parse_start_decl, parse_union_decl): Use the same `multiple'
3526 (parse_union_decl, copy_guard, copy_action): Use the same
3527 `unmatched' message.
3528 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
3530 2000-03-31 Akim Demaille <akim@epita.fr>
3532 * src/files.c (tryopen, tryclose): Move to the top.
3535 2000-03-31 Akim Demaille <akim@epita.fr>
3537 * src/main.c (main): Don't call `done', exit does it.
3539 2000-03-31 Akim Demaille <akim@epita.fr>
3541 * allocate.c: s/return (foo)/return foo/.
3544 * output.c: Likewise.
3545 * reader.c: Likewise.
3546 * symtab.c: Likewise.
3547 * vmsgetargs.c: Likewise.
3549 2000-03-31 Akim Demaille <akim@epita.fr>
3551 Clean up the error reporting functions.
3553 * src/report.c: New file.
3554 * src/report.h: Likewise.
3555 * src/Makefile.am: Adjust.
3556 * m4/error.m4: New file.
3557 * m4/Makefile.am: Adjust.
3558 * configure.in (jm_PREREQ_ERROR): Call it.
3559 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
3561 (fatal, fatals): Remove. All callers use complain.c::fatal.
3562 (warn, warni, warns, warnss, warnss): Remove. All callers use
3563 complain.c::complain.
3564 (toomany): Remove, use fatal instead.
3565 * src/files.c (done): No argument, use complain_message_count.
3566 * src/main.c (main): Register `done' to `atexit'.
3568 * src/getargs.c (usage): More `fputs', less `fprintf'.
3570 2000-03-28 Akim Demaille <akim@epita.fr>
3572 * lib/: New directory.
3573 * Makefile.am (SUBDIRS): Adjust.
3574 * configure.in: Adjust.
3575 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
3577 * src/alloca.c: Moved to lib/.
3578 * src/getopt.c: Likewise.
3579 * src/getopt1.c: Likewise.
3580 * src/getopt.h: Likewise.
3581 * src/ansi2knr.c: Likewise.
3582 * src/ansi2knr.1: Likewise.
3583 * src/Makefile.am: Adjust.
3584 * lib/Makefile.am: New file.
3586 2000-03-28 Akim Demaille <akim@epita.fr>
3588 * src/getargs.c (usage): Refresh the help message.
3590 2000-03-17 Akim Demaille <akim@epita.fr>
3592 * src/getopt1.c: Updated from textutils 2.0e
3593 * src/getopt.c: Likewise.
3594 * src/getopt.h: Likewise.
3596 2000-03-17 Akim Demaille <akim@epita.fr>
3598 * src/Makefile.am (bison.simple): Fix the awk program: quote only
3599 the file name, not the whole `#line LINE FILE'.
3601 2000-03-17 Akim Demaille <akim@epita.fr>
3603 On syntax errors, report the token on which we choked.
3605 * src/bison.s1 (yyparse): In the label yyerrlab, when
3606 YYERROR_VERBOSE, add yychar in msg.
3608 2000-03-17 Akim Demaille <akim@epita.fr>
3610 * src/reader.c (copy_at): New function.
3611 (copy_guard): Use it.
3612 (copy_action): Use it.
3614 2000-03-17 Akim Demaille <akim@epita.fr>
3616 Be kind to translators, save some useless translations.
3618 * src/main.c (banner): New function.
3619 (fatal_banner): Use it.
3620 (warn_banner): Use it.
3622 2000-03-17 Akim Demaille <akim@epita.fr>
3624 * src/reader.c (copy_definition): Use copy_string and
3625 copy_comment. Removed now unused `match', `ended',
3627 (copy_comment, copy_string): Moved, to be visible from
3630 2000-03-17 Akim Demaille <akim@epita.fr>
3632 * src/reader.c (copy_string): Declare `static inline'. No
3633 problems with inline, since it is checked by configure.
3634 (copy_comment): Likewise.
3636 2000-03-17 Akim Demaille <akim@epita.fr>
3638 * src/reader.c (packsymbols): Formatting changes.
3640 2000-03-17 Akim Demaille <akim@epita.fr>
3642 * src/reader.c (copy_comment): New function, factored out from:
3643 (copy_action): Use it. Removed now unused `match', `ended',
3645 (copy_guard): Likewise.
3647 2000-03-17 Akim Demaille <akim@epita.fr>
3649 * src/reader.c (copy_string): New function, factored out from:
3650 (copy_action): Use it.
3651 (copy_guard): Likewise.
3653 2000-03-17 Akim Demaille <akim@epita.fr>
3655 Change the handling of @s so that they behave exactly like $s.
3656 There is now a pseudo variable @$ (readble and writable), location
3657 of the lhs of the rule (by default ranging from the location of
3658 the first symbol of the rhs, to the location of the last symbol,
3659 or, if the rhs is empty, YYLLOC).
3661 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
3663 (yyparse): When providing a default semantic action, provide a
3664 default location action.
3665 (after the $): No longer change `*YYLSP', just stack YYLOC the
3666 same way you stack YYVAL.
3667 * src/reader.c (read_declarations): Use warns.
3668 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
3669 (copy_action, case '@'): Likewise.
3670 Use a standard error message, to save useless work from
3673 2000-03-17 Akim Demaille <akim@epita.fr>
3675 * src/bison.s1: Formatting and cosmetics changes.
3676 * src/reader.c: Likewise.
3677 Update the Copyright notice.
3679 2000-03-17 Akim Demaille <akim@epita.fr>
3681 * src/bison.s1 (#line): All set to `#line' only, since the
3682 Makefile now handles them.
3684 2000-03-16 Akim Demaille <akim@epita.fr>
3686 * src/output.c (output_rule_data): Output the documentation of
3688 (Copyright notice): Update.
3691 2000-03-16 Akim Demaille <akim@epita.fr>
3693 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
3694 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
3695 One `#if YYDEBUG' remains, since it uses variables which are
3696 defined only if `YYDEBUG != 0'.
3698 2000-03-16 Akim Demaille <akim@epita.fr>
3700 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
3701 and related variables so that the similarities are highlighted.
3703 2000-03-16 Akim Demaille <akim@epita.fr>
3705 * src/bison.s1: Properly indent CPP directives.
3707 2000-03-16 Akim Demaille <akim@epita.fr>
3709 * src/bison.s1: Properly indent the `alloca' CPP section.
3711 2000-03-16 Akim Demaille <akim@epita.fr>
3713 Do not hard code values of directories in `configure.in'.
3714 Update the `configure' tool chain.
3716 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
3718 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
3719 (AC_OUTPUT): Add m4/Makefile.
3720 Bump to bison 1.28a, 1.29 has never been released.
3721 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
3722 handled via src/Makefile.am.
3723 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
3724 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
3726 * Makefile.am (SUBDIRS): Add m4.
3727 (ACLOCAL_AM_FLAGS): New variable.
3728 (AUTOMAKE_OPTIONS): Add check-news.
3729 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
3730 the proper line number and file name.
3731 (DEFS): Propagate the location of bison library files and of the
3733 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
3735 * acinclude.m4: Remove, replaced by the directory m4.
3736 * m4/Makefile.am (EXTRA_DIST): New variable.
3737 * m4/gettext.m4: New file, from the fileutils.
3738 * m4/lcmessage.m4: Likewise
3739 * m4/progtest.m4: Likewise.
3740 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
3742 2000-03-10 Akim Demaille <akim@epita.fr>
3745 Formatting changes of various comments.
3746 Respect the GNU coding standards at various places.
3747 Don't use `_()' when no translation is needed.
3749 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3752 OS/2 honors TMPDIR environment variable.
3754 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3756 * doc/bison.texinfo: Tweaked spelling and grammar.
3758 Removed reference to price of printed copy.
3759 Mention BISON_SIMPLE and BISON_HAIRY.
3761 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3763 * configure.in, NEWS:
3764 Bison 1.29 released.
3766 1999-10-27 Jesse Thilo <jthilo@gnu.org>
3768 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3769 Added reference card.
3771 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3773 * po/ru.po: Added Russian translation.
3775 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3777 * configure.in: Added Russian translation.
3779 1999-07-06 Jesse Thilo <jthilo@gnu.org>
3781 * configure.in, NEWS, README:
3782 Released version 1.28.
3784 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3787 Squashed redefinition warning on some systems.
3789 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3790 Have configure build version string instead of relying on ANSI string
3793 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3795 * po/POTFILES.in: Got rid of version.c.
3797 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3799 * acconfig.h, configure.in:
3800 Have configure build version string instead of relying on ANSI string
3803 1999-06-08 Jesse Thilo <jthilo@gnu.org>
3806 Dropped mention of `+' for long-named options.
3808 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3810 * src/files.c: Added <unistd.h> for unlink().
3812 * src/Makefile.am, src/system.h:
3815 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3817 * README: Added a FAQ list.
3819 * configure.in, acconfig.h:
3822 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3824 * doc/FAQ, doc/Makefile.am:
3827 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3829 * src/alloc.h, src/symtab.h, src/version.c:
3830 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3832 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3834 * src/.cvsignore, src/Makefile.am:
3835 Reorganized: sources in `src', documentation in `doc'.
3837 * src/lex.c (literalchar):
3838 fixed the code for escaping double quotes (thanks
3841 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3843 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3844 Adjusted paths to reflect directory reorganization.
3846 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3848 * doc/.cvsignore, doc/Makefile.am:
3849 Reorganized: sources in `src', documentation in `doc'.
3851 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3854 Updated AC_INIT file to reflect directory reorganization.
3856 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3857 Reorganized: sources in `src', documentation in `doc'.
3859 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3862 Don't declare calloc() and realloc() if not necessary.
3864 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3866 * configure.in, acconfig.h, acinclude.m4:
3867 Don't declare calloc() and realloc() if not necessary.
3869 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3871 * po/.cvsignore: Added i18n support.
3873 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3875 * acconfig.h, configure.in, Makefile.am:
3878 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3880 * src/bison.s1: Fixed #line numbers.
3882 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3884 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3885 Added PO files from Translation Project.
3887 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3890 Added support for non-ANSI compilers (ansi2knr).
3892 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3894 * configure.in: Bumped version number to 1.27.
3897 Added `bison.simple' to list of files removed by `make distclean'.
3899 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3901 * src/files.c, src/files.h:
3902 Defined locations of parser files in config.h instead of Makefile.
3904 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3906 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3907 Defined locations of parser files in config.h instead of Makefile.
3909 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3912 Removed inappropriate use of $< macro.
3914 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3916 * po/Makefile.in.in, po/POTFILES.in:
3917 Add `po' directory skeleton.
3919 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3921 * README: Document help-bison list.
3923 * configure.in: Add check for mkstemp().
3925 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3927 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3928 Hush a few compiler warnings.
3931 Add tryclose(), which verifies that fclose was successful.
3932 Hush a couple of compiler warnings.
3934 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3936 * Makefile.am, OChangeLog:
3937 ChangeLog is now automatically generated. Include the old version as
3940 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3942 * 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:
3945 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3947 * doc/bison.texinfo: Fix formatting glitch.
3949 * doc/bison.texinfo: Update FSF address.
3951 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3953 * acconfig.h: Update FSF address.
3955 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3958 Don't define PACKAGE here, since config.h defines it.
3960 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3962 * src/reader.c: Update copyright date.
3965 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3966 favor of output directly to stderr (avoids buffer overruns).
3968 * src/reader.c: Some checks for premature EOF.
3970 * 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:
3971 Use prototypes if the compiler understands them.
3973 * src/files.c: Honor TMPDIR on Unix hosts.
3974 Use prototypes if the compiler understands them.
3977 Fix a couple of buffer overrun bugs.
3978 Use prototypes if the compiler understands them.
3980 * src/system.h: Include unistd.h and ctype.h.
3981 Use #ifdef instead of #if for NLS symbols.
3983 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3985 * doc/bison.texinfo:
3986 Delete comment "consider using @set for edition number, etc..." since
3987 we now are doing so.
3989 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3992 Use prototypes if the compiler understands them.
3994 * NEWS: Document 1.26 highlights.
3996 * Makefile.am: Require Automake 1.3 or later.
3999 Use prototypes if the compiler understands them.
4001 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4004 Use VERSION symbol from automake for version number.
4006 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4008 * acconfig.h, configure.in, version.cin:
4009 Use VERSION symbol from automake for version number.
4011 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4014 Distribute original version of simple parser (bison.s1), not built
4015 version (bison.simple).
4017 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4019 * doc/bison.texinfo: Add info dir entry.
4021 * doc/bison.texinfo:
4022 Let automake put version number into documentation.
4024 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4026 * src/bison.cld, src/build.com, src/vmshlp.mar:
4027 Add non-RCS files from /gd/gnu/bison.
4029 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4032 Document the BISON_HAIRY and BISON_SIMPLE variables.
4034 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4036 * src/version.c: Build version.c automatically.
4039 Fix token numbering (used to start at 258, not 257).
4041 * src/system.h: Include config.h.
4043 * src/getargs.c: Update bug report address.
4045 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
4046 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
4048 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4051 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4053 * configure.in, version.cin:
4054 Build version.c automatically.
4056 * AUTHORS: Add AUTHORS file.
4058 * README: Update bug report address.
4061 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4063 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
4066 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4068 * doc/bison.texinfo: Clean up some formatting.
4070 1998-05-05 Richard Stallman <rms@gnu.org>
4072 * doc/bison.texinfo:
4073 Explain better why to make a pure parser.
4075 1998-01-05 Richard Stallman <rms@gnu.org>
4077 * src/files.c (openfiles):
4078 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
4079 find a temporary directory, if possible. Do not unlink files while
4082 1997-08-25 Richard Stallman <rms@gnu.org>
4084 * src/reader.c (stack_offset;):
4085 Change some warni to warns.
4087 * src/lex.c (literalchar): Use warns, not warni.
4089 1997-06-28 Richard Stallman <rms@gnu.org>
4091 * src/bison.s1: Add a Bison version comment.
4093 * src/main.c (fatal, warn, berror):
4096 1997-06-28 Richard Stallman <rms@gnu.org>
4098 * Makefile.in (bison_version): New variable.
4099 (dist): Use that variable.
4100 (bison.s1): Substitute the Bison version into bison.simple.
4102 * bison.simple: Add a Bison version comment.
4104 1997-06-18 Richard Stallman <rms@gnu.org>
4106 * src/main.c (fatal, warn, berror):
4107 Make error messages standard.
4108 (toomany): Improve error message text.
4110 * 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:
4111 new.h renamed to alloc.h.
4113 1997-06-18 Richard Stallman <rms@gnu.org>
4115 * Makefile.in: new.h renamed to alloc.h.
4117 1997-05-24 Richard Stallman <rms@gnu.org>
4119 * src/lex.c (literalchar):
4120 Fix the code for escaping \, " and '.
4122 (lex): Avoid trouble when there are many chars
4123 to discard in a char literal with just several chars in it.
4125 1997-05-17 Richard Stallman <rms@gnu.org>
4128 Use malloc, if using alloca is troublesome.
4129 (YYSTACK_USE_ALLOCA): New flag macro.
4130 Define it for some systems and compilers.
4131 (YYSTACK_ALLOC): New macro.
4132 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4133 If it was malloc'd, free it.
4135 1997-05-17 Richard Stallman <rms@gnu.org>
4138 Use malloc, if using alloca is troublesome.
4139 (YYSTACK_USE_ALLOCA): New flag macro.
4140 Define it for some systems and compilers.
4141 (YYSTACK_ALLOC): New macro.
4142 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4143 If it was malloc'd, free it.
4145 1997-04-23 Richard Stallman <rms@gnu.org>
4148 (alloca) [__hpux]: Always define as __builtin_alloca.
4150 1997-04-23 Richard Stallman <rms@gnu.org>
4153 (alloca) [__hpux]: Always define as __builtin_alloca.
4155 1997-04-22 Richard Stallman <rms@gnu.org>
4158 [__hpux]: Include alloca.h (right for HPUX 10)
4159 instead of declaring alloca (right for HPUX 9).
4161 * src/bison.s1 (__yy_memcpy):
4162 Declare arg `count' as unsigned int.
4163 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4165 1997-04-22 Richard Stallman <rms@gnu.org>
4168 [__hpux]: Include alloca.h (right for HPUX 10)
4169 instead of declaring alloca (right for HPUX 9).
4171 * bison.simple (__yy_memcpy):
4172 Declare arg `count' as unsigned int.
4173 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4175 1997-01-03 Richard Stallman <rms@gnu.org>
4177 * src/allocate.c: [__STDC__ or _MSC_VER]:
4178 Declare calloc and realloc to return void *.
4180 1997-01-02 Richard Stallman <rms@gnu.org>
4183 [_MSC_VER]: Include stdlib.h and process.h.
4184 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
4186 * src/main.c (main): Return FAILURE as a value.
4187 (printable_version): Declare arg as int, not char.
4189 1997-01-02 Richard Stallman <rms@gnu.org>
4191 * Makefile.in (dist):
4192 Explicitly check for symlinks, and copy them.
4194 1996-12-19 Richard Stallman <rms@gnu.org>
4197 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
4199 1996-12-18 Paul Eggert <eggert@gnu.org>
4201 * src/bison.s1 (yyparse):
4202 If __GNUC__ and YYPARSE_PARAM are both defined,
4203 declare yyparse to have a void * argument.
4205 1996-12-18 Paul Eggert <eggert@gnu.org>
4207 * bison.simple (yyparse):
4208 If __GNUC__ and YYPARSE_PARAM are both defined,
4209 declare yyparse to have a void * argument.
4211 1996-12-17 Richard Stallman <rms@gnu.org>
4213 * src/reduce.c (nbits): Add some casts.
4215 1996-08-12 Richard Stallman <rms@gnu.org>
4217 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
4219 1996-08-12 Richard Stallman <rms@gnu.org>
4221 * bison.simple: Test _MSDOS as well as _MSDOS_.
4223 1996-07-31 Richard Stallman <rms@gnu.org>
4226 [__sun && __i386]: Include alloca.h.
4228 1996-07-31 Richard Stallman <rms@gnu.org>
4231 [__sun && __i386]: Include alloca.h.
4233 1996-07-30 Richard Stallman <rms@gnu.org>
4235 * src/bison.s1: Comment change.
4237 * src/bison.s1: Test _MSDOS_, not MSDOS.
4239 1996-07-30 Richard Stallman <rms@gnu.org>
4241 * bison.simple: Comment change.
4243 * bison.simple: Test _MSDOS_, not MSDOS.
4245 1996-06-01 Richard Stallman <rms@gnu.org>
4247 * 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:
4248 Insert `_' macro around many string constants.
4251 Insert `_' macro around many string constants.
4253 (main): Call setlocale, bindtextdomain and textdomain.
4255 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
4256 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
4257 [ENABLE_NLS]: Include libintl.h.
4258 [ENABLE_NLS] (gettext): Define.
4259 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
4260 (N_, PACKAGE, LOCALEDIR): New macros.
4262 1996-06-01 Richard Stallman <rms@gnu.org>
4264 * POTFILES.in: New file.
4266 * Makefile.in (allocate.o):
4267 Define target explicitly.
4269 * Makefile.in (CFLAGS): Set to @CFLAGS@.
4270 (LDFLAGS): Set to @LDFLAGS@.
4271 (configure): Run autoconf only if preceding `cd' succeeds.
4272 (bison.s1): Redirect output to temporary file then move the
4273 temporary to the target, rather than redirecting directly to bison.s1.
4274 (clean): Remove config.status and config.log.
4275 (distclean): Don't remove config.status here.
4277 1996-05-12 Richard Stallman <rms@gnu.org>
4280 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
4282 1996-05-12 Richard Stallman <rms@gnu.org>
4285 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
4287 1996-05-11 Richard Stallman <rms@gnu.org>
4289 * src/bison.s1 (__yy_memcpy):
4290 Really reorder the args, as was supposedly done on Feb 14 1995.
4291 (yyparse): Calls changed accordingly.
4293 1996-05-11 Richard Stallman <rms@gnu.org>
4295 * Makefile.in (dist): Don't use $(srcdir).
4297 * bison.simple (__yy_memcpy):
4298 Really reorder the args, as was supposedly done on Feb 14 1995.
4299 (yyparse): Calls changed accordingly.
4301 1996-01-27 Richard Stallman <rms@gnu.org>
4303 * src/output.c (output_rule_data):
4304 Test YYERROR_VERBOSE in the conditional
4305 around the definition of ttyname.
4307 1995-12-29 Richard Stallman <rms@gnu.org>
4310 Fix line numbers in #line commands.
4312 1995-12-29 Richard Stallman <rms@gnu.org>
4315 Fix line numbers in #line commands.
4317 1995-12-27 Richard Stallman <rms@gnu.org>
4319 * src/bison.s1 (YYPARSE_PARAM_DECL):
4320 In C++, make it always null.
4321 (YYPARSE_PARAM_ARG): New macro.
4322 (yyparse): Use YYPARSE_PARAM_ARG.
4324 1995-12-27 Richard Stallman <rms@gnu.org>
4326 * bison.simple (YYPARSE_PARAM_DECL):
4327 In C++, make it always null.
4328 (YYPARSE_PARAM_ARG): New macro.
4329 (yyparse): Use YYPARSE_PARAM_ARG.
4331 1995-11-29 Richard Stallman <rms@gnu.org>
4333 * doc/bison.texinfo:
4334 Describe literal string tokens, %raw, %no_lines, %token_table.
4336 1995-11-29 Daniel Hagerty <hag@gnu.org>
4338 * doc/bison.texinfo: Fixed update date
4340 1995-10-16 Richard Stallman <rms@gnu.org>
4342 * src/version.c: Version 1.25.
4344 1995-10-16 Richard Stallman <rms@gnu.org>
4346 * NEWS: *** empty log message ***
4348 1995-10-16 Richard Stallman <rms@gnu.org>
4350 * doc/bison.1, doc/bison.rnh:
4353 1995-10-15 Richard Stallman <rms@gnu.org>
4355 * src/vmsgetargs.c, src/getargs.c:
4356 Added -n, -k, and -raw switches.
4357 (noparserflag, toknumflag, rawtoknumflag): New variables.
4359 * src/symtab.h (SALIAS):
4360 New #define for adding aliases to %token.
4361 (struct bucket): Added `alias' field.
4363 * src/reduce.c (reduce_grammar):
4364 Revise error message.
4365 (print_notices): Remove final `.' from error message.
4367 * src/reader.c (reader_output_yylsp):
4369 (readgram): Use `#if 0' around code that accepted %command
4370 inside grammar rules: The documentation doesn't allow it,
4371 and it will fail since the %command processors scan for the next %.
4372 (parse_token_decl): Extended the %token
4373 declaration to allow a multi-character symbol as an alias.
4374 (parse_thong_decl): New function.
4375 (read_declarations): Added %thong declarations.
4376 (read_declarations): Handle NOOP to deal with allowing
4377 % declarations as another means to specify the flags.
4378 (readgram): Allow %prec prior to semantics embedded in a rule.
4379 (skip_to_char, read_declarations, copy_definition)
4380 (parse_token_decl, parse_start_decl, parse_type_decl)
4381 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
4382 (get_type_name, copy_guard, copy_action, readgram)
4383 (get_type, packsymbols): Revised most error messages.
4384 Changed `fatal' to `warnxxx' to avoid aborting for error.
4385 Revised and use multiple warnxxx functions to avoid using VARARGS1.
4386 (read_declarations): Improve the error message for
4387 an invalid character. Do not abort.
4388 (read_declarations, copy_guard, copy_action): Use
4389 printable_version to avoid unprintable characters in printed output.
4390 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
4391 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
4392 Allow the type of a non-terminal can be given
4393 more than once, as long as all specifications give the same type.
4396 (output_headers, output_trailers, output, output_gram)
4397 (output_rule_data): Implement noparserflag variable.
4398 Implement toknumflag variable.
4399 (output): Call reader_output_yylsp to output LTYPESTR.
4401 * src/main.c (main):
4402 If reader sees an error, don't process the grammar.
4403 (fatals): Updated to not use VARARGS1.
4404 (printable_version, int_to_string, warn, warni, warns, warnss)
4405 (warnsss): New error reporting functions. Avoid abort for error.
4408 Added THONG and NOOP for alias processing.
4409 Added SETOPT for the new code that allows setting options with %flags.
4412 Include getopt.h. Add some extern decls.
4413 (safegetc): New function to deal with EOF gracefully.
4414 (literalchar); new function to deal with reading \ escapes.
4415 (lex): Use literalchar.
4416 (lex): Implemented "..." tokens.
4417 (literalchar, lex, parse_percent_token): Made tokenbuffer
4418 always contain the token. This includes growing the token
4419 buffer while reading an integer.
4420 (parse_percent_token): Replaced if-else statement with percent_table.
4421 (parse_percent_token): Added % declarations as another
4422 way to specify the flags -n, -l, and -r. Also added hooks for
4423 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
4424 major changes to files.c.
4425 (lex) Retain in the incoming stream a character following
4427 (skip_white_space, lex): Revised most error messages
4428 and changed fatal to warn to avoid aborting.
4429 (percent_table): Added %thong declarations.
4431 * src/gram.h: Comment changes.
4433 * src/files.c (openfiles, open_extra_files, done):
4435 and actfile file. Handle noparserflag. Both for -n switch.
4437 * src/conflicts.c (resolve_sr_conflict):
4438 Remove use of alloca.
4440 1995-06-01 Jim Meyering <meyering@gnu.org>
4442 * doc/bison.texinfo: *** empty log message ***
4444 1995-05-06 Richard Stallman <rms@gnu.org>
4446 * src/bison.s1: Comment change.
4448 1995-05-06 Richard Stallman <rms@gnu.org>
4450 * bison.simple: Comment change.
4452 1995-05-03 Richard Stallman <rms@gnu.org>
4454 * src/version.c: Version now 1.24.
4456 * src/bison.s1: Change distribution terms.
4458 * src/version.c: Version now 1.23.
4460 1995-05-03 Richard Stallman <rms@gnu.org>
4462 * doc/bison.texinfo:
4463 Rewrite "Conditions for Using Bison".
4464 Update version to 1.24.
4466 1995-05-03 Richard Stallman <rms@gnu.org>
4468 * bison.simple: Change distribution terms.
4470 1995-02-23 Richard Stallman <rms@gnu.org>
4472 * src/files.c: Test __VMS_POSIX as well as VMS.
4474 1995-02-14 Jim Meyering <meyering@gnu.org>
4476 * src/bison.s1 (__yy_memcpy):
4477 Renamed from __yy_bcopy to avoid
4478 confusion. Reverse FROM and TO arguments to be consistent with
4481 1995-02-14 Jim Meyering <meyering@gnu.org>
4483 * bison.simple (__yy_memcpy):
4484 Renamed from __yy_bcopy to avoid
4485 confusion. Reverse FROM and TO arguments to be consistent with
4488 1994-11-10 David J. MacKenzie <djm@gnu.org>
4494 * Makefile.in (DISTFILES): Include NEWS.
4496 * Makefile.in (DISTFILES):
4497 Include install-sh, not install.sh.
4499 * configure.in: Update to Autoconf v2 macro names.
4501 1994-10-05 David J. MacKenzie <djm@gnu.org>
4503 * Makefile.in: fix typo
4505 * Makefile.in (prefix, exec_prefix):
4506 Let configure set them.
4508 1994-09-28 David J. MacKenzie <djm@gnu.org>
4510 * Makefile.in: Set datadir to $(prefix)/share.
4512 1994-09-15 Richard Stallman <rms@gnu.org>
4515 Update copyright notice and GPL version.
4517 1994-09-15 Richard Stallman <rms@gnu.org>
4520 Update copyright notice and GPL version.
4522 1994-07-12 Richard Stallman <rms@gnu.org>
4524 * src/reduce.c, src/reader.c:
4527 1994-05-05 David J. MacKenzie <djm@gnu.org>
4529 * Makefile.in: entered into RCS
4531 1994-03-26 Richard Stallman <rms@gnu.org>
4533 * src/bison.s1: entered into RCS
4535 1994-03-26 Richard Stallman <rms@gnu.org>
4537 * bison.simple: entered into RCS
4539 1994-03-25 Richard Stallman <rms@gnu.org>
4541 * src/main.c: entered into RCS
4543 1994-03-24 Richard Stallman <rms@gnu.org>
4545 * src/conflicts.c: entered into RCS
4547 1994-01-02 Richard Stallman <rms@gnu.org>
4549 * Makefile.in: *** empty log message ***
4551 1993-11-21 Richard Stallman <rms@gnu.org>
4553 * src/bison.s1: *** empty log message ***
4555 1993-11-21 Richard Stallman <rms@gnu.org>
4557 * doc/bison.texinfo: entered into RCS
4559 * doc/bison.texinfo: *** empty log message ***
4561 1993-11-21 Richard Stallman <rms@gnu.org>
4563 * bison.simple: *** empty log message ***
4565 1993-10-25 David J. MacKenzie <djm@gnu.org>
4567 * doc/bison.texinfo: *** empty log message ***
4569 1993-10-19 Richard Stallman <rms@gnu.org>
4571 * src/bison.s1: *** empty log message ***
4573 1993-10-19 Richard Stallman <rms@gnu.org>
4575 * bison.simple: *** empty log message ***
4577 1993-10-14 Richard Stallman <rms@gnu.org>
4579 * src/bison.s1: *** empty log message ***
4581 1993-10-14 Richard Stallman <rms@gnu.org>
4583 * bison.simple: *** empty log message ***
4585 1993-09-14 David J. MacKenzie <djm@gnu.org>
4587 * doc/bison.texinfo: *** empty log message ***
4589 1993-09-13 Noah Friedman <friedman@gnu.org>
4591 * Makefile.in: *** empty log message ***
4593 1993-09-10 Richard Stallman <rms@gnu.org>
4595 * src/conflicts.c: *** empty log message ***
4597 * src/system.h: entered into RCS
4599 1993-09-10 Richard Stallman <rms@gnu.org>
4601 * doc/bison.1: entered into RCS
4603 1993-09-06 Noah Friedman <friedman@gnu.org>
4605 * src/version.c: entered into RCS
4607 1993-09-06 Noah Friedman <friedman@gnu.org>
4609 * Makefile.in: *** empty log message ***
4611 1993-07-30 David J. MacKenzie <djm@gnu.org>
4613 * Makefile.in: *** empty log message ***
4615 1993-07-24 Richard Stallman <rms@gnu.org>
4617 * src/bison.s1: *** empty log message ***
4619 1993-07-24 Richard Stallman <rms@gnu.org>
4621 * bison.simple: *** empty log message ***
4623 1993-07-08 David J. MacKenzie <djm@gnu.org>
4625 * Makefile.in: *** empty log message ***
4627 1993-07-04 Richard Stallman <rms@gnu.org>
4629 * src/bison.s1: *** empty log message ***
4631 1993-07-04 Richard Stallman <rms@gnu.org>
4633 * bison.simple: *** empty log message ***
4635 1993-06-26 David J. MacKenzie <djm@gnu.org>
4637 * src/getargs.c: entered into RCS
4639 1993-06-26 David J. MacKenzie <djm@gnu.org>
4641 * doc/bison.texinfo: *** empty log message ***
4643 * doc/bison.1: New file.
4645 1993-06-25 Richard Stallman <rms@gnu.org>
4647 * src/getargs.c: New file.
4649 1993-06-16 Richard Stallman <rms@gnu.org>
4651 * src/bison.s1: *** empty log message ***
4653 1993-06-16 Richard Stallman <rms@gnu.org>
4655 * bison.simple: *** empty log message ***
4657 1993-06-03 Richard Stallman <rms@gnu.org>
4659 * src/bison.s1: New file.
4661 1993-06-03 Richard Stallman <rms@gnu.org>
4663 * doc/bison.texinfo: *** empty log message ***
4665 1993-06-03 Richard Stallman <rms@gnu.org>
4667 * bison.simple: New file.
4669 1993-05-19 Richard Stallman <rms@gnu.org>
4671 * doc/bison.texinfo: New file.
4673 1993-05-07 Noah Friedman <friedman@gnu.org>
4675 * Makefile.in: *** empty log message ***
4677 1993-04-28 Noah Friedman <friedman@gnu.org>
4679 * src/reader.c: *** empty log message ***
4681 1993-04-23 Noah Friedman <friedman@gnu.org>
4683 * src/alloc.h: entered into RCS
4685 1993-04-20 David J. MacKenzie <djm@gnu.org>
4687 * src/version.c: *** empty log message ***
4689 * src/files.c, src/allocate.c:
4692 * src/reader.c: *** empty log message ***
4694 * src/lex.c: entered into RCS
4696 * src/conflicts.c: New file.
4698 * src/symtab.c: entered into RCS
4700 * src/alloc.h: New file.
4702 * src/LR0.c: entered into RCS
4704 1993-04-18 Noah Friedman <friedman@gnu.org>
4706 * src/reader.c: New file.
4708 * src/version.c: *** empty log message ***
4710 1993-04-18 Noah Friedman <friedman@gnu.org>
4712 * Makefile.in: *** empty log message ***
4714 1993-04-17 Noah Friedman <friedman@gnu.org>
4716 * Makefile.in: *** empty log message ***
4718 1993-04-15 Richard Stallman <rms@gnu.org>
4720 * src/main.c, src/files.c:
4723 1993-04-15 Noah Friedman <friedman@gnu.org>
4725 * configure.in: entered into RCS
4727 * configure.in: *** empty log message ***
4729 * configure.in: New file.
4731 1993-04-14 Richard Stallman <rms@gnu.org>
4733 * Makefile.in: New file.
4735 1993-04-13 Richard Stallman <rms@gnu.org>
4737 * src/version.c: New file.
4739 1993-03-25 Richard Stallman <rms@gnu.org>
4741 * src/output.c: entered into RCS
4743 1992-09-25 Richard Stallman <rms@gnu.org>
4745 * configure.bat: entered into RCS
4747 1992-06-22 Richard Stallman <rms@gnu.org>
4749 * src/vmsgetargs.c: entered into RCS
4751 1992-06-22 Richard Stallman <rms@gnu.org>
4753 * doc/bison.rnh: entered into RCS
4755 1992-04-20 David J. MacKenzie <djm@gnu.org>
4757 * README: entered into RCS
4759 1992-01-22 Richard Stallman <rms@gnu.org>
4761 * src/machine.h: entered into RCS
4763 1991-12-21 Richard Stallman <rms@gnu.org>
4765 * src/lalr.c, src/closure.c:
4768 1991-12-20 Richard Stallman <rms@gnu.org>
4770 * src/state.h: entered into RCS
4772 1991-12-18 Richard Stallman <rms@gnu.org>
4774 * src/print.c, src/nullable.c, src/derives.c:
4777 1991-11-03 David J. MacKenzie <djm@gnu.org>
4779 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4782 1988-09-09 Richard Stallman <rms@gnu.org>
4784 * src/bison.hairy: entered into RCS
4786 1987-12-16 Richard Stallman <rms@gnu.org>
4788 * REFERENCES: entered into RCS