1 2002-07-09 Akim Demaille <akim@epita.fr>
3 * lib/quotearg.h: Protect against multiple inclusions.
4 * src/location.h (location_t): Add a `file' member.
5 (LOCATION_RESET, LOCATION_PRINT): Adjust.
6 * src/complain.c (warn_at, complain_at, fatal_at): Drop
7 `error_one_per_line' support.
9 2002-07-09 Akim Demaille <akim@epita.fr>
11 * src/complain.h, src/complain.c (warn, complain): Remove, unused.
12 * src/reader.c (lineno): Remove.
13 Adjust all dependencies.
14 (get_merge_function): Take a location and use complain_at.
15 * src/symtab.h, src/symtab.c (symbol_make_alias): Likewise.
16 * tests/regression.at (Invalid inputs, Mixing %token styles):
19 2002-07-09 Akim Demaille <akim@epita.fr>
21 * src/parse-gram.y (rules_or_grammar_declaration): Add an error
22 recovery rule, and forbid extensions when --yacc.
23 (gram_error): Use complain_at.
24 * src/reader.c (reader): Exit if there were parse errors.
26 2002-07-09 Akim Demaille <akim@epita.fr>
28 * tests/synclines.at (AT_SYNCLINES_COMPILE): New.
29 (AT_TEST_SYNCLINE): Adjust to unusual GCC outputs.
30 Reported by R Blake <blakers@mac.com>.
32 2002-07-09 Akim Demaille <akim@epita.fr>
34 * data/yacc.c: Output the copyright notive in the header.
36 2002-07-03 Akim Demaille <akim@epita.fr>
38 * src/output.c (froms, tos): Are state_number_t.
39 (save_column): sp, sp1, and sp2 are state_number_t.
40 (prepare): Rename `final' as `final_state_number', `nnts' as
41 `nterms_number', `nrules' as `rules_number', `nstates' as
42 `states_number', and `ntokens' as `tokens_number'. Remove `nsym',
44 * data/yacc.c, data/glr.c, data/lalr1.cc: Adjust.
45 * data/lalr1.cc (nsym_): Remove, unused.
47 2002-07-03 Akim Demaille <akim@epita.fr>
49 * src/lalr.h, src/lalr.c (goto_number_t): New.
50 * src/lalr.c (goto_list_t): New.
52 * src/nullable.c (rule_list_t): New.
54 * src/types.h: Remove.
56 2002-07-03 Akim Demaille <akim@epita.fr>
58 * src/closure.c (print_fderives): Use rule_rhs_print.
59 * src/derives.c (print_derives): Use rule_rhs_print.
60 (rule_list_t): New, replaces `shorts'.
61 (set_derives): Add comments.
62 * tests/sets.at (Nullable, Firsts): Adjust.
64 2002-07-03 Akim Demaille <akim@epita.fr>
66 * src/output.c (prepare_actions): Free `tally' and `width'.
67 (prepare_actions): Allocate and free `order'.
68 * src/symtab.c (symbols_free): Free `symbols'.
69 * src/scan-gram.l (scanner_free): Clear Flex's scanners memory.
70 * src/output.c (m4_invoke): Move to...
71 * src/scan-skel.l: here.
72 (<<EOF>>): Close yyout, and free its name.
74 2002-07-03 Akim Demaille <akim@epita.fr>
76 Fix some memory leaks, and fix a bug: state 0 was examined twice.
78 * src/LR0.c (new_state): Merge into...
79 (state_list_append): this.
80 (new_states): Merge into...
81 (generate_states): here.
82 (set_states): Don't ensure a proper `errs' state member here, do it...
83 * src/conflicts.c (conflicts_solve): here.
84 * src/state.h, src/state.c: Comment changes.
85 (state_t): Rename member `shifts' as `transitions'.
86 Adjust all dependencies.
87 (errs_new): For consistency, also take the values as argument.
89 (state_errs_set): New.
90 (state_reductions_set, state_transitions_set): Assert that no
91 previous value was assigned.
93 (states_free): Use it.
94 * src/conflicts.c (resolve_sr_conflict): Don't use an `errs_t' as
95 temporary storage: use `errs' and `nerrs' as elsewhere.
96 (set_conflicts): Allocate and free this `errs'.
98 2002-07-02 Akim Demaille <akim@epita.fr>
100 * lib/libiberty.h: New.
101 * lib: Update the bitset implementation from upstream.
102 * src/closure.c, src/lalr.c, src/output.c, src/print_graph.c,
103 * src/state.c: Use BITSET_FOR_EACH, not BITSET_EXECUTE.
104 * src/main.c: Adjust bitset stats calls.
106 2002-07-01 Paul Eggert <eggert@twinsun.com>
108 * src/scan-gram.l (<SC_ESCAPED_CHARACTER>): Convert to unsigned
109 char, so that negative chars don't collide with $.
111 2002-06-30 Akim Demaille <akim@epita.fr>
113 Have the GLR tests be `warning' checked, and fix the warnings.
115 * data/glr.c (YYFPRINTF): Always define it, not only when YYDEBUG
116 (yyuserAction, yyreportAmbiguity): `Use' all the arguments.
117 (yyremoveDeletes): `yyi' and `yyj' are size_t.
118 Use YYFPRINTF when under if (YYDEBUG) to avoid empty `if' bodies.
119 (yyaddDeferredAction): static.
120 (yyglrReduce): yyi, yyk, amd yyposn are size_t.
121 (yyreportParseError): yyprefix is const.
122 yytokenp is used only when verbose.
123 (yy__GNUC__): Replace with __GNUC__.
124 (yypdumpstack): yyi is size_t.
125 (yypreference): Un-yy local variables and arguments, to avoid
126 clashes with `yyr1'. Anyway, we are not in the user name space.
127 (yytname_size): be an int, as is compared with ints.
128 * tests/testsuite.at (AT_COMPILE, AT_PARSER_CHECK): New.
130 * tests/cxx-gram.at: Use quotation to protect $1.
131 Use AT_COMPILE to enable warnings hunts.
132 Prototype yylex and yyerror.
134 Include `string.h', not `strings.h'.
135 Produce and prototype stmtMerge only when used.
136 yylex takes a location.
138 2002-06-30 Akim Demaille <akim@epita.fr>
140 We spend a lot of time in quotearg, in particular when --verbose.
142 * src/symtab.c (symbol_get): Store a quoted version of the key.
143 (symbol_tag_get, symbol_tag_get_n, symbol_tag_print): Remove.
146 2002-06-30 Akim Demaille <akim@epita.fr>
148 * src/state.h (reductions_t): Rename member `nreds' as num.
149 (errs_t): Rename members `nerrs' and `errs' as `num' and `symbols'.
150 * src/state.c (ERRS_ALLOC, REDUCTIONS_ALLOC): Use the correct types.
152 2002-06-30 Akim Demaille <akim@epita.fr>
154 * src/state.h, src/state.c (shift_t, SHIFT_SYMBOL, SHIFT_IS_SHIFT)
155 (SHIFT_IS_GOTO, SHIFT_IS_ERROR, SHIFT_DISABLE, SHIFT_IS_DISABLED)
156 (shifts_to): Rename as...
157 (transition_t, TRANSITION_SYMBOL, TRANSITION_IS_TRANSITION)
158 (TRANSITION_IS_GOTO, TRANSITION_IS_ERROR, TRANSITION_DISABLE)
159 (TRANSITION_IS_DISABLED, transitions_to): these.
161 2002-06-30 Akim Demaille <akim@epita.fr>
163 * src/print.c (print_shifts, print_gotos): Merge into...
164 (print_transitions): this.
165 (print_transitions, print_errs, print_reductions): Align the
167 (print_core, print_transitions, print_errs, print_state,
168 print_grammar): Output empty lines separator before, not after.
169 (state_default_rule_compute): Rename as...
170 (state_default_rule): this.
171 * tests/conflicts.at (Defaulted Conflicted Reduction),
172 (Unresolved SR Conflicts, Resolved SR Conflicts): Adjust.
173 * tests/regression.at (Rule Line Numbers, Web2c Report): Adjust.
175 2002-06-30 Akim Demaille <akim@epita.fr>
177 Display items as we display rules.
179 * src/gram.h, src/gram.c (rule_lhs_print): New.
180 * src/gram.c (grammar_rules_partial_print): Use it.
181 * src/print.c (print_core): Likewise.
182 * tests/conflicts.at (Defaulted Conflicted Reduction),
183 (Unresolved SR Conflicts): Adjust.
184 (Unresolved SR Conflicts): Adjust and rename as...
185 (Resolved SR Conflicts): this, as was meant.
186 * tests/regression.at (Web2c Report): Adjust.
188 2002-06-30 Akim Demaille <akim@epita.fr>
190 * src/print.c (state_default_rule_compute): New, extracted from...
191 (print_reductions): here.
192 Pessimize, but clarify the code.
193 * tests/conflicts.at (Defaulted Conflicted Reduction): New.
195 2002-06-30 Akim Demaille <akim@epita.fr>
197 * src/output.c (action_row): Let default_rule be always a rule
200 2002-06-30 Akim Demaille <akim@epita.fr>
202 * src/closure.c (print_firsts, print_fderives, closure):
204 * src/lalr.c (lookaheads_print): Likewise.
205 * src/state.c (state_rule_lookaheads_print): Likewise.
206 * src/print_graph.c (print_core): Likewise.
207 * src/print.c (print_reductions): Likewise.
208 * src/output.c (action_row): Likewise.
209 Use SHIFT_IS_DISABLED, SHIFT_IS_SHIFT and SHIFT_SYMBOL.
211 2002-06-30 Akim Demaille <akim@epita.fr>
213 * src/print_graph.c: Use report_flag.
215 2002-06-30 Akim Demaille <akim@epita.fr>
217 * src/lalr.c (traverse, digraph, matrix_print, transpose): Move
219 * src/relation.h, src/relation.c (traverse, relation_digraph)
220 (relation_print, relation_transpose): New.
222 2002-06-30 Akim Demaille <akim@epita.fr>
224 * src/state.h, src/state.c (shifts_to): New.
225 * src/lalr.c (build_relations): Use it.
227 2002-06-30 Akim Demaille <akim@epita.fr>
229 * src/gram.h (rule_number_t, RULE_NUMBER_MAX, int_of_rule_number)
230 (item_number_of_rule_number, rule_number_of_item_number): New.
231 * src/LR0.c, src/closure.c, src/derives.c, src/derives.h,
232 * src/gram.c, src/lalr.c, src/nullable.c, src/output.c, src/print.c,
233 * src/print_graph.c, src/reader.c, src/reduce.c, src/reduce.h:
235 Much remains to be done, in particular wrt `shorts' from types.h.
237 2002-06-30 Akim Demaille <akim@epita.fr>
239 * src/symtab.c (symbol_new): Initialize the `printer' member.
241 2002-06-30 Akim Demaille <akim@epita.fr>
243 * src/LR0.c (save_reductions): Remove, replaced by...
244 * src/state.h, src/state.c (state_reductions_set): New.
245 (reductions, errs): Rename as...
246 (reductions_t, errs_t): these.
247 Adjust all dependencies.
249 2002-06-30 Akim Demaille <akim@epita.fr>
251 * src/LR0.c (state_list_t, state_list_append): New.
252 (first_state, last_state): Now symbol_list_t.
253 (this_state): Remove.
254 (new_itemsets, append_states, save_reductions): Take a state_t as
256 (set_states, generate_states): Adjust.
257 (save_shifts): Remove, replaced by...
258 * src/state.h, src/state.c (state_shifts_set): New.
259 (shifts): Rename as...
261 Adjust all dependencies.
262 * src/state.h (state_t): Remove the `next' member.
264 2002-06-30 Akim Demaille <akim@epita.fr>
266 * src/vcg.c (quote): Use slot 2, since we often pass symbol tag
269 2002-06-30 Akim Demaille <akim@epita.fr>
271 Use hash.h for the state hash table.
273 * src/LR0.c (STATE_HASH_SIZE, state_hash): Remove.
274 (allocate_storage): Use state_hash_new.
275 (free_storage): Use state_hash_free.
276 (new_state, get_state): Adjust.
277 * src/lalr.h, src/lalr.c (states): Move to...
278 * src/states.h (state_t): Remove the `link' member, no longer
280 * src/states.h, src/states.c: here.
281 (state_hash_new, state_hash_free, state_hash_lookup)
282 (state_hash_insert, states_free): New.
283 * src/states.c (state_table, state_compare, state_hash): New.
284 * src/output.c (output_actions): Do not free states now, since we
285 still need to know the final_state number in `prepare', called
287 * src/main.c (main): here: call states_free after `output'.
289 2002-06-30 Akim Demaille <akim@epita.fr>
291 * src/state.h, src/state.c (state_new): New, extracted from...
292 * src/LR0.c (new_state): here.
293 * src/state.h (STATE_ALLOC): Move to...
295 * src/LR0.h, src/LR0.c (nstates, final_state): Move to...
296 * src/state.h, src/state.c: here.
298 2002-06-30 Akim Demaille <akim@epita.fr>
300 * src/reader.c (gensym): Rename as...
301 * src/symtab.h, src/symtab.c (dummy_symbol_get): this.
302 (getsym): Rename as...
305 2002-06-30 Akim Demaille <akim@epita.fr>
307 * src/state.h (state_number_t, STATE_NUMBER_MAX): New.
308 * src/LR0.c, src/LR0.h, src/conflicts.c, src/lalr.c, src/lalr.h,
309 * src/output.c, src/print.c, src/print_graph.c: Propagate.
310 * src/LR0.h, src/LR0.h (final_state): Is a state_t*.
312 2002-06-30 Akim Demaille <akim@epita.fr>
314 Make the test suite pass with warnings checked.
316 * tests/actions.at (Printers and Destructors): Improve.
317 Avoid unsigned vs. signed issues.
318 * tests/calc.at: Don't exercise the scanner here, do it...
319 * tests/input.at (Torturing the Scanner): here.
321 2002-06-28 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
323 * data/glr.c: Correct typo in Emacs-mode directive. Slightly
324 reorganize first lines parallel to yacc.c.
326 2002-06-28 Akim Demaille <akim@epita.fr>
328 * data/c.m4 (b4_copyright, b4_sint_type, b4_uint_type, b4_token_define)
329 (b4_token_enum, b4_token_defines): New, factored from...
330 * data/lalr1.cc, data/yacc.c, glr.c: here.
332 2002-06-28 Akim Demaille <akim@epita.fr>
334 * data/yacc.c (yydestruct, yysymprint): Pacify GCC warnings for
336 * src/output.c (merger_output): static.
338 2002-06-28 Akim Demaille <akim@epita.fr>
340 * src/reader.h: s/grammer_current_rule_merge_set/grammar_.../.
341 * src/conflicts.c (conflicts_total_count): `i' is unsigned, to
343 * src/output.c (save_row): Initialize all the variables to pacify GCC.
345 2002-06-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
347 Accumulated changelog for new GLR parsing features.
349 * src/conflicts.c (count_total_conflicts): Change name to
350 conflicts_total_count.
351 * src/conflicts.h: Ditto.
352 * src/output.c (token_actions): Use the new name.
353 (output_conflicts): Change conflp => conflict_list_heads, and
354 confl => conflict_list for better readability.
355 * data/glr.c: Use the new names.
356 * NEWS: Add self to GLR announcement.
358 * src/reader.c (free_merger_functions): Cleanup: XFREE->free.
360 * doc/bison.texinfo (GLR Parsers): Make corrections suggested by
363 * data/bison.glr: Change name to glr.c
364 * data/glr.c: Renamed from bison.glr.
365 * data/Makefile.am: Add glr.c
369 * src/symlist.h: Add dprec and merger fields to symbol_list_s.
370 * src/symlist.c (symbol_list_new): Initialize dprec and merger fields.
372 Originally 2002-06-16 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
374 * data/bison.glr: Be sure to restore the
375 current #line when returning to the skeleton contents after having
376 exposed the input file's #line.
378 Originally 2002-06-13 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
380 * data/bison.glr: Bring up to date with changes to bison.simple.
382 Originally 2002-06-03 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
384 * data/bison.glr: Correct definitions that use b4_prefix.
385 Various reformatting.
386 (GLRStack): Make yychar (in YYPURE case) and yytokenp as part of stack.
387 (yyreportParseError, yyrecoverParseError, yyprocessOneStack): remove
388 yytokenp argument; now part of stack.
389 (yychar): Define to behave as documented.
392 Originally 2002-05-14 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
394 * src/reader.h: Add declaration for free_merger_functions.
396 * src/reader.c (merge_functions): New variable.
397 (get_merge_function): New function.
398 (free_merger_functions): New function.
399 (readgram): Check for %prec that is not followed by a symbol.
400 Handle %dprec and %merge declarations.
401 (packgram): Initialize dprec and merger fields in rules array.
403 * src/output.c (conflict_tos, conflrow, conflict_table, conflict_list,
404 conflict_list_cnt, conflict_list_free): New variables.
405 (table_grow): Also grow conflict_table.
406 (prepare_rules): Output dprec and merger tables.
407 (conflict_row): New function.
408 (action_row): Output conflict lists for GLR parser. Don't use
409 default reduction in conflicted states for GLR parser so that there
410 are spaces for the conflict lists.
411 (save_row): Also save conflict information.
412 (token_actions): Allocate conflict list.
413 (merger_output): New function.
414 (pack_vector): Pack conflict table, too.
415 (output_conflicts): New function to output yyconflp and yyconfl.
416 (output_check): Allocate conflict_tos.
417 (output_actions): Output conflict tables, also.
418 (output_skeleton): Output b4_mergers definition.
419 (prepare): Output b4_max_rhs_length definition.
420 Use 'bison.glr' as default skeleton for GLR parsers.
422 * src/gram.c (glr_parser): New flag.
423 (grammar_free): Call free_merger_functions.
425 * src/conflicts.c (count_rr_conflicts): Augment to optionally count
426 all pairs of conflicting reductions, rather than just all tokens
427 causing conflicts. Needed to size conflict tables.
428 (conflicts_output): Modify call to count_rr_conflicts for new
430 (conflicts_print): Ditto.
431 (count_total_conflicts): New function.
433 * src/reader.h (merger_list): New type.
434 (merge_functions): New variable.
436 * src/lex.h (tok_dprec, tok_merge): New token types.
438 * src/gram.h (rule_s): Add dprec and merger fields.
439 (glr_parser): New flag.
441 * src/conflicts.h (count_total_conflicts): New function.
443 * src/options.c (option_table): Add %dprec, %merge, and %glr-parser.
445 * doc/bison.texinfo (Generalized LR Parsing): New section.
446 (GLR Parsers): New section.
447 (Language and Grammar): Mention GLR parsing.
448 (Table of Symbols): Add %dprec, %glr-parser, %merge, GLR
449 Correct typo ("tge" -> "the").
451 * data/bison.glr: New skeleton for GLR parsing.
453 * tests/cxx-gram.at: New tests for GLR parsing.
455 * tests/testsuite.at: Include cxx-gram.at.
457 * tests/Makefile.am: Add cxx-gram.at.
461 * src/scan-gram.l: Add %dprec, %glr-parser, %merge.
463 * src/parse-gram.y: Grammar for %dprec, %merge, %glr-parser.
465 2002-06-27 Akim Demaille <akim@epita.fr>
467 * src/options.h, src/options.c: Remove.
468 * src/getargs.c (short_options, long_options): New.
470 2002-06-27 Akim Demaille <akim@epita.fr>
472 * data/bison.simple, data/bison.c++: Rename as...
473 * data/yacc.c, data/lalr1.cc: these.
474 * doc/bison.texinfo (Environment Variables): Remove.
476 2002-06-25 Raja R Harinath <harinath@cs.umn.edu>
478 * src/getargs.c (report_argmatch): Initialize strtok().
480 2002-06-20 Akim Demaille <akim@epita.fr>
482 * data/bison.simple (b4_symbol_actions): New, replaces...
483 (b4_symbol_destructor, b4_symbol_printer): these.
484 (yysymprint): Be sure to call YYPRINT only for tokens, and using
487 2002-06-20 Akim Demaille <akim@epita.fr>
489 * data/bison.simple (yydestructor): Rename as...
492 2002-06-20 Akim Demaille <akim@epita.fr>
494 * src/symtab.h, src/symtab.c (symbol_type_set)
495 (symbol_destructor_set, symbol_precedence_set): The location is
499 2002-06-20 Akim Demaille <akim@epita.fr>
501 * src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser
503 * src/reader.h, src/reader.c (grammar_current_rule_prec_set):
505 * src/symtab.h, src/symtab.c (symbol_class_set)
506 (symbol_user_token_number_set): Likewise.
509 * tests/input.at (Type Clashes): Adjust.
511 2002-06-20 Akim Demaille <akim@epita.fr>
513 * data/bison.simple (YYLEX): Fix the declaration when
516 2002-06-20 Akim Demaille <akim@epita.fr>
518 * data/bison.simple (yysymprint): Don't print the token number,
520 * tests/actions.at (Destructors): Rename as...
521 (Printers and Destructors): this.
522 Also exercise %printer.
524 2002-06-20 Akim Demaille <akim@epita.fr>
526 * data/bison.simple (YYDSYMPRINT): New.
527 Use it to remove many of the #if YYDEBUG/if (yydebug).
529 2002-06-20 Akim Demaille <akim@epita.fr>
531 * src/symtab.h, src/symtab.c (symbol_t): printer and
532 printer_location are new members.
533 (symbol_printer_set): New.
534 * src/parse-gram.y (PERCENT_PRINTER): New token.
535 Handle its associated rule.
536 * src/scan-gram.l: Adjust.
537 (handle_destructor_at, handle_destructor_dollar): Rename as...
538 (handle_symbol_code_at, handle_symbol_code_dollar): these.
539 * src/output.c (symbol_printers_output): New.
540 (output_skeleton): Call it.
541 * data/bison.simple (yysymprint): New. Cannot be named yyprint
542 since there are already many grammar files with a user `yyprint'.
543 Replace the calls to YYPRINT to calls to yysymprint.
544 * tests/calc.at: Adjust.
545 * tests/torture.at (AT_DATA_STACK_TORTURE): Remove YYPRINT: it was
546 taking advantage of parser very internal details (stack size!).
548 2002-06-20 Akim Demaille <akim@epita.fr>
550 * src/scan-gram.l: Complete the scanner with the missing patterns
552 Use `quote' and `symbol_tag_get' where appropriate.
554 2002-06-19 Akim Demaille <akim@epita.fr>
556 * tests/actions.at (Destructors): Augment to test locations.
557 * data/bison.simple (yydestructor): Pass it the current location
558 if locations are enabled.
559 Prototype only when __STDC__ or C++.
560 Change the argument names to move into the yy name space: there is
563 2002-06-19 Akim Demaille <akim@epita.fr>
565 * data/bison.simple (b4_pure_if): New.
566 Use it instead of #ifdef YYPURE.
568 2002-06-19 Akim Demaille <akim@epita.fr>
570 * data/bison.simple (b4_location_if): New.
571 Use it instead of #ifdef YYLSP_NEEDED.
573 2002-06-19 Akim Demaille <akim@epita.fr>
575 Prepare @$ in %destructor, but currently don't bind it in the
576 skeleton, as %location use is not cleaned up yet.
578 * src/scan-gram.l (handle_dollar, handle_destructor_at)
579 (handle_action_at): New.
580 (handle_at, handle_action_dollar, handle_destructor_dollar): Take
581 a braced_code_t and a location as additional arguments.
582 (handle_destructor_dollar): Instead of requiring `b4_eval', just
583 unquote one when outputting `b4_dollar_dollar'.
585 * data/bison.simple (b4_eval): Remove.
586 (b4_symbol_destructor): Adjust.
587 * tests/input.at (Invalid @n): Adjust.
589 2002-06-19 Zack Weinberg <zack@codesourcery.com>
591 * doc/bison.texinfo: Document ability to have multiple
594 2002-06-18 Akim Demaille <akim@epita.fr>
596 * src/files.c (compute_base_names): When computing the output file
597 names from the input file name, strip the directory part.
599 2002-06-18 Akim Demaille <akim@epita.fr>
601 * data/bison.simple.new: Comment changes.
602 Reported by Andreas Schwab.
604 2002-06-18 Matt Kraai <kraai@alumni.cmu.edu>
606 * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
607 there are no `label `yyoverflowlab' defined but not used' warnings
608 when yyoverflow is defined.
610 2002-06-18 Akim Demaille <akim@epita.fr>
612 * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a
614 (symbol_destructor_set): Adjust.
615 * src/output.c (symbol_destructors_output): Output the destructor
617 Output the symbol name.
618 * data/bison.simple (b4_symbol_destructor): Adjust.
620 2002-06-18 Cris Bailiff <c.bailiff@awayweb.com>
621 and Akim Demaille <akim@epita.fr>
623 * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy
624 what's left on the stack when the error recovery hits EOF.
625 * tests/actions.at (Destructors): Complete to exercise this case.
627 2002-06-17 Akim Demaille <akim@epita.fr>
629 * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of
630 arguments is really empty, not only equal to `[]'.
631 * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new
633 (symbol_destructor_set): New.
634 * src/output.c (symbol_destructors_output): New.
635 * src/reader.h (brace_code_t, current_braced_code): New.
636 * src/scan-gram.l (BRACED_CODE): Use it to branch on...
637 (handle_dollar): Rename as...
638 (handle_action_dollar): this.
639 (handle_destructor_dollar): New.
640 * src/parse-gram.y (PERCENT_DESTRUCTOR): New.
641 (grammar_declaration): Use it.
642 * data/bison.simple (yystos): Is always defined.
644 * tests/actions.at (Destructors): New.
645 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep.
647 2002-06-17 Akim Demaille <akim@epita.fr>
649 * src/symlist.h, src/symlist.c (symbol_list_length): New.
650 * src/scan-gram.l (handle_dollar, handle_at): Compute the
651 rule_length only when needed.
652 * src/output.c (actions_output, token_definitions_output): Output
654 * src/symtab.c: Don't access directly to the symbol tag, use
656 * src/parse-gram.y: Use symbol_list_free.
658 2002-06-17 Akim Demaille <akim@epita.fr>
660 * src/reader.h, src/reader.c (symbol_list, symbol_list_new)
661 (symbol_list_prepend, get_type_name): Move to...
662 * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new)
663 (symbol_list_prepend, symbol_list_n_type_name_get): here.
665 (symbol_list_free): New.
666 * src/scan-gram.l (handle_dollar): Takes a location.
667 * tests/input.at (Invalid $n): Adjust.
669 2002-06-17 Akim Demaille <akim@epita.fr>
671 * src/reader.h, src/reader.c (symbol_list_new): Export it.
672 (symbol_list_prepend): New.
673 * src/parse-gram.y (%union): `list' is a new member.
674 (symbols.1): New, replaces...
675 (terms_to_prec.1, nterms_to_type.1): these.
676 * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set)
677 Take a location as additional argument.
680 2002-06-15 Akim Demaille <akim@epita.fr>
682 * src/parse-gram.y: Move %token in the declaration section so that
683 we don't depend upon CVS Bison.
685 2002-06-15 Akim Demaille <akim@epita.fr>
687 * src/state.h, src/state.c (state_rule_lookaheads_print): New.
688 * src/print.c (print_core): Use it.
690 2002-06-15 Akim Demaille <akim@epita.fr>
692 * src/conflicts.c (log_resolution): Accept the rule involved in
693 the sr conflicts instead of the lookahead number that points to
695 (flush_reduce): Accept the current lookahead vector as argument,
696 instead of the index in LA.
697 (resolve_sr_conflict): Accept the current number of lookahead
698 bitset to consider for the STATE, instead of the index in LA.
699 (set_conflicts): Adjust.
700 * src/lalr.c, src/lalr.h, src/state.h: Comment changes.
702 2002-06-15 Akim Demaille <akim@epita.fr>
704 * src/state.h (state_t): Replace the `lookaheadsp' member, a
705 short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**).
706 Adjust all dependencies.
707 * src/lalr.c (initialize_lookaheads): Split into...
708 (states_lookaheads_count, states_lookaheads_initialize): these.
711 2002-06-15 Akim Demaille <akim@epita.fr>
713 * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved
715 (grammar_rules_print): here.
716 * src/reduce.c (reduce_output): Use it.
717 * tests/reduce.at (Useless Rules, Reduced Automaton)
718 (Underivable Rules): Adjust.
720 2002-06-15 Akim Demaille <akim@epita.fr>
722 Copy BYacc's nice way to report the grammar.
724 * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print):
726 Don't print the rules' location, it is confusing and useless.
727 (rule_print): Use grammar_rhs_print.
728 * src/print.c (print_grammar): Use grammar_rules_print.
730 2002-06-15 Akim Demaille <akim@epita.fr>
732 Complete and rationalize `useless thing' warnings.
734 * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n)
735 (symbol_tag_print): New.
736 Use them everywhere in place of accessing directly the tag member.
737 * src/gram.h, src/gram.c (rule_print): New.
738 Use it where a rule used to be printed `by hand'.
739 * src/reduce.c (nonterminals_reduce): Report the use nonterminals.
740 (reduce_grammar_tables): Report the useless rules.
741 (reduce_print): Useless things are a warning, not an error.
743 * tests/reduce.at (Useless Nonterminals, Useless Rules):
744 (Reduced Automaton, Underivable Rules): Adjust.
745 * tests/regression.at (Web2c Report, Web2c Report): Adjust.
746 * tests/conflicts.at (Unresolved SR Conflicts)
747 (Solved SR Conflicts): Adjust.
749 2002-06-15 Akim Demaille <akim@epita.fr>
751 Let symbols have a location.
753 * src/symtab.h, src/symtab.c (symbol_t): Location is a new member.
756 * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at):
757 Use location_t, not int.
758 * src/symtab.c (symbol_check_defined): Take advantage of the
760 * tests/regression.at (Invalid inputs): Adjust.
762 2002-06-15 Akim Demaille <akim@epita.fr>
764 * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
765 (input): Don't try to initialize yylloc here, do it in the
767 * src/scan-gram.l (YY_USER_INIT): Initialize yylloc.
768 * src/gram.h (rule_t): Change line and action_line into location
769 and action_location, of location_t type.
770 Adjust all dependencies.
771 * src/location.h, src/location.c (empty_location): New.
772 * src/reader.h, src/reader.c (grammar_start_symbol_set)
773 (grammar_symbol_append, grammar_rule_begin, grammar_rule_end)
774 (grammar_current_rule_symbol_append)
775 (grammar_current_rule_action_append): Expect a location as argument.
776 * src/reader.c (grammar_midrule_action): Adjust to attach an
777 action's location as dummy symbol location.
778 * src/symtab.h, src/symtab.c (startsymbol_location): New.
779 * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust
782 2002-06-14 Akim Demaille <akim@epita.fr>
784 Grammar declarations may be found in the grammar section.
786 * src/parse-gram.y (rules_or_grammar_declaration): New.
787 (declarations): Each declaration may end with a semicolon, not
789 (grammar_declaration): `"%union"'.
790 (grammar): Branch to rules_or_grammar_declaration.
792 2002-06-14 Akim Demaille <akim@epita.fr>
794 * src/main.c (main): Invoke scanner_free.
796 2002-06-14 Akim Demaille <akim@epita.fr>
798 * src/output.c (m4_invoke): Extracted from...
799 (output_skeleton): here.
802 2002-06-14 Akim Demaille <akim@epita.fr>
804 * src/parse-gram.y (directives, directive, gram)
805 (grammar_directives, precedence_directives, precedence_directive):
807 (declarations, declaration, grammar, grammar_declaration)
808 (precedence_declaration, precedence_declarator): these.
809 (symbol_declaration): New.
811 2002-06-14 Akim Demaille <akim@epita.fr>
813 * src/files.c (action_obstack): Remove, unused.
814 (output_obstack): Remove it, and all its dependencies, as it is no
816 * src/reader.c (epilogue_set): Build the epilogue in the
818 * src/output.h, src/output.c (muscle_obstack): Move to...
819 * src/muscle_tab.h, src/muscle_tab.h: here.
820 (muscle_init): Initialize muscle_obstack.
822 * src/main.c (main): Call it.
824 2002-06-14 Akim Demaille <akim@epita.fr>
826 * src/location.h: New, extracted from...
827 * src/reader.h: here.
828 * src/Makefile.am (noinst_HEADERS): Merge into
829 (bison_SOURCES): this.
831 * src/parse-gram.y: Use location_t instead of Bison's.
832 * src/reader.h, src/reader.c (prologue_augment, epilogue_set):
833 Use location_t instead of ints.
835 2002-06-14 Akim Demaille <akim@epita.fr>
837 * data/bison.simple, data/bison.c++: Be sure to restore the
838 current #line when returning to the skeleton contents after having
839 exposed the input file's #line.
841 2002-06-12 Akim Demaille <akim@epita.fr>
843 * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
845 * tests/actions.at (Exotic Dollars): New.
847 2002-06-12 Akim Demaille <akim@epita.fr>
849 * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
851 * tests/input.at (Torturing the Scanner): New.
853 2002-06-11 Akim Demaille <akim@epita.fr>
855 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
856 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
857 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
858 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
859 * src/reader.c (reader): Use it.
861 2002-06-11 Akim Demaille <akim@epita.fr>
863 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
865 (scanner_last_string_free): New.
867 2002-06-11 Akim Demaille <akim@epita.fr>
869 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
870 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
871 (last_string, YY_OBS_FREE): New.
872 Use them when returning an ID.
874 2002-06-11 Akim Demaille <akim@epita.fr>
876 Have Bison grammars parsed by a Bison grammar.
878 * src/reader.c, src/reader.h (prologue_augment): New.
879 * src/reader.c (copy_definition): Remove.
881 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
882 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
883 (grammar_current_rule_prec_set, grammar_current_rule_check)
884 (grammar_current_rule_symbol_append)
885 (grammar_current_rule_action_append): Export.
886 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
887 (symbol_list_action_append): Remove.
888 Hook the routines from reader.
889 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
890 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
892 * src/reader.c (read_declarations): Remove, unused.
894 * src/parse-gram.y: Handle the epilogue.
895 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
896 (grammar_start_symbol_set): this.
897 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
898 * src/reader.c (readgram): Remove, unused.
899 (reader): Adjust to insert eoftoken and axiom where appropriate.
901 * src/reader.c (copy_dollar): Replace with...
902 * src/scan-gram.h (handle_dollar): this.
903 * src/parse-gram.y: Remove `%thong'.
905 * src/reader.c (copy_at): Replace with...
906 * src/scan-gram.h (handle_at): this.
908 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
911 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
914 * src/reader.h, src/reader.c (grammar_rule_end): New.
916 * src/parse.y (current_type, current_class): New.
917 Implement `%nterm', `%token' support.
918 Merge `%term' into `%token'.
920 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
923 * src/parse-gram.y: Be sure to handle properly the beginning of
926 * src/parse-gram.y: Handle %type.
927 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
929 * src/parse-gram.y: More directives support.
930 * src/options.c: No longer handle source directives.
932 * src/parse-gram.y: Fix %output.
934 * src/parse-gram.y: Handle %union.
935 Use the prologue locations.
936 * src/reader.c (parse_union_decl): Remove.
938 * src/reader.h, src/reader.c (epilogue_set): New.
939 * src/parse-gram.y: Use it.
941 * data/bison.simple, data/bison.c++: b4_stype is now either not
942 defined, then default to int, or to the contents of %union,
943 without `union' itself.
945 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
947 * src/output.c (actions_output): Don't output braces, as they are
948 already handled by the scanner.
950 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
951 characters to themselves.
953 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
954 that the epilogue has a proper #line.
956 * src/parse-gram.y: Handle precedence/associativity.
958 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
960 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
961 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
962 at all to define terminals that cannot be emitted.
964 * src/scan-gram.l: Escape M4 characters.
966 * src/scan-gram.l: Working properly with escapes in user
969 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
970 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
972 Use more modest sizes, as for the time being the parser does not
973 release memory, and therefore the process swallows a huge amount
976 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
977 stricter %token grammar.
979 * src/symtab.h (associativity): Add `undef_assoc'.
980 (symbol_precedence_set): Do nothing when passed an undef_assoc.
981 * src/symtab.c (symbol_check_alias_consistence): Adjust.
983 * tests/regression.at (Invalid %directive): Remove, as it is now
985 (Invalid inputs): Adjust to the new error messages.
986 (Token definitions): The new grammar doesn't allow too many
989 * src/lex.h, src/lex.c: Remove.
990 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
991 (copy_character, copy_string2, copy_string, copy_identifier)
992 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
993 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
994 (parse_action): Remove.
995 * po/POTFILES.in: Adjust.
997 2002-06-11 Akim Demaille <akim@epita.fr>
999 * src/reader.c (parse_action): Don't store directly into the
1000 rule's action member: return the action as a string.
1001 Don't require `rule_length' as an argument: compute it.
1002 (grammar_current_rule_symbol_append)
1003 (grammar_current_rule_action_append): New, eved out from
1005 Remove `action_flag', `rulelength', unused now.
1007 2002-06-11 Akim Demaille <akim@epita.fr>
1009 * src/reader.c (grammar_current_rule_prec_set).
1010 (grammar_current_rule_check): New, eved out from...
1012 Remove `xaction', `first_rhs': useless.
1013 * tests/input.at (Type clashes): New.
1014 * tests/existing.at (GNU Cim Grammar): Adjust.
1016 2002-06-11 Akim Demaille <akim@epita.fr>
1018 * src/reader.c (grammar_midrule_action): New, Eved out from
1021 2002-06-11 Akim Demaille <akim@epita.fr>
1023 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
1025 (readgram): Use them as replacement of inlined code, crule and
1028 2002-06-11 Akim Demaille <akim@epita.fr>
1030 * src/reader.c (grammar_end, grammar_symbol_append): New.
1031 (readgram): Use them.
1032 Make the use of `p' as local as possible.
1034 2002-06-10 Akim Demaille <akim@epita.fr>
1036 GCJ's parser requires the tokens to be defined before the prologue.
1038 * data/bison.simple: Output the token definition before the user's
1040 * tests/regression.at (Braces parsing, Duplicate string)
1041 (Mixing %token styles): Check the output from bison.
1042 (Early token definitions): New.
1044 2002-06-10 Akim Demaille <akim@epita.fr>
1046 * src/symtab.c (symbol_user_token_number_set): Don't complain when
1047 assigning twice the same user number to a token, so that we can
1049 * src/lex.c (lex): here.
1050 Also use `symbol_class_set' instead of hand written code.
1051 * src/reader.c (parse_assoc_decl): Likewise.
1053 2002-06-10 Akim Demaille <akim@epita.fr>
1055 * src/symtab.c, src/symtab.c (symbol_class_set)
1056 (symbol_user_token_number_set): New.
1057 * src/reader.c (parse_token_decl): Use them.
1058 Use a switch instead of ifs.
1059 Use a single argument.
1061 2002-06-10 Akim Demaille <akim@epita.fr>
1063 Remove `%thong' support as it is undocumented, unused, duplicates
1064 `%token's job, and creates useless e-mail traffic with people who
1065 want to know what it is, why it is undocumented, unused, and
1066 duplicates `%token's job.
1068 * src/reader.c (parse_thong_decl): Remove.
1069 * src/options.c (option_table): Remove "thong".
1070 * src/lex.h (tok_thong): Remove.
1072 2002-06-10 Akim Demaille <akim@epita.fr>
1074 * src/symtab.c, src/symtab.c (symbol_type_set)
1075 (symbol_precedence_set): New.
1076 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
1077 (value_components_used): Remove, unused.
1079 2002-06-09 Akim Demaille <akim@epita.fr>
1081 Move symbols handling code out of the reader.
1083 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
1085 * src/symtab.h, src/symtab.c: here.
1087 * src/gram.c (start_symbol): Remove: use startsymbol->number.
1088 * src/reader.c (startval): Rename as...
1089 * src/symtab.h, src/symtab.c (startsymbol): this.
1090 * src/reader.c: Adjust.
1092 * src/reader.c (symbol_check_defined, symbol_make_alias)
1093 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
1094 (token_translations_init)
1096 * src/symtab.c: here.
1097 * src/reader.c (packsymbols): Move to...
1098 * src/symtab.h, src/symtab.c (symbols_pack): here.
1099 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
1102 2002-06-03 Akim Demaille <akim@epita.fr>
1104 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
1107 2002-06-03 Akim Demaille <akim@epita.fr>
1109 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
1110 structs with non literals.
1111 * src/scan-skel.l: never-interactive.
1112 * src/conflicts.c (enum conflict_resolution_e): No trailing
1114 * src/getargs.c (usage): Split long literal strings.
1115 Reported by Hans Aberg.
1117 2002-05-28 Akim Demaille <akim@epita.fr>
1119 * data/bison.c++: Use C++ ostreams.
1120 (cdebug_): New member.
1122 2002-05-28 Akim Demaille <akim@epita.fr>
1124 * src/output.c (output_skeleton): Be sure to allocate enough room
1125 for `/' _and_ for `\0' in full_skeleton.
1127 2002-05-28 Akim Demaille <akim@epita.fr>
1129 * data/bison.c++: Catch up with bison.simple:
1130 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1131 and Paul Eggert <eggert@twinsun.com>: `error' handing.
1132 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
1135 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1137 * src/output.c (output_skeleton): Put an explicit path in front of
1138 the skeleton file name, rather than relying on the -I directory,
1139 to partially alleviate effects of having a skeleton file lying around
1140 in the current directory.
1142 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1144 * src/conflicts.c (log_resolution): Correct typo:
1145 obstack_printf should be obstack_fgrow1.
1147 2002-05-26 Akim Demaille <akim@epita.fr>
1149 * src/state.h (state_t): `solved_conflicts' is a new member.
1150 * src/LR0.c (new_state): Set it to 0.
1151 * src/conflicts.h, src/conflicts.c (print_conflicts)
1152 (free_conflicts, solve_conflicts): Rename as...
1153 (conflicts_print, conflicts_free, conflicts_solve): these.
1155 * src/conflicts.c (enum conflict_resolution_e)
1156 (solved_conflicts_obstack): New, used by...
1157 (log_resolution): this.
1158 Adjust to attach the conflict resolution to each state.
1159 Complete the description with the precedence/associativity
1161 (resolve_sr_conflict): Adjust.
1162 * src/print.c (print_state): Output its solved_conflicts.
1163 * tests/conflicts.at (Unresolved SR Conflicts)
1164 (Solved SR Conflicts): Exercise --report=all.
1166 2002-05-26 Akim Demaille <akim@epita.fr>
1168 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
1169 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1170 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
1171 (token_number_t, item_number_as_token_number)
1172 (token_number_as_item_number, muscle_insert_token_number_table):
1174 (symbol_number_t, item_number_as_symbol_number)
1175 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
1176 these, since it is more appropriate.
1178 2002-05-26 Akim Demaille <akim@epita.fr>
1180 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
1182 * data/bison.simple (yystos) [YYDEBUG]: New.
1183 (yyparse) [YYDEBUG]: Display the symbols which are popped during
1185 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
1187 2002-05-25 Akim Demaille <akim@epita.fr>
1189 * doc/bison.texinfo (Debugging): Split into...
1190 (Tracing): this new section, its former contents, and...
1191 (Understanding): this new section.
1192 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
1194 (report_flag): this.
1195 Adjust all dependencies.
1196 (report_args, report_types, report_argmatch): New.
1197 (usage, getargs): Report/support -r, --report.
1199 (struct option_table_struct): Rename as..,
1200 (struct option_table_s): this.
1201 Rename the `set_flag' member to `flag' to match with getopt_long's
1203 * src/options.c (option_table): Split verbose into an entry for
1204 %verbose, and another for --verbose.
1205 Support --report/-r, so remove -r from the obsolete --raw.
1206 * src/print.c: Attach full item sets and lookaheads reports to
1207 report_flag instead of trace_flag.
1208 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
1210 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1211 and Paul Eggert <eggert@twinsun.com>
1213 * data/bison.simple (yyparse): Correct error handling to conform to
1214 POSIX and yacc. Specifically, after syntax error is discovered,
1215 do not reduce further before shifting the error token.
1216 Clean up the code a bit by removing the labels yyerrdefault,
1217 yyerrhandle, yyerrpop.
1218 * NEWS: Document the above.
1220 2002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1222 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
1223 type; it isn't always big enough, since it doesn't necessarily
1224 include non-terminals.
1225 (yytranslate): Expand definition of yy_token_number_type, so that
1226 the latter can be removed.
1227 (yy_token_number_type): Remove, only one use.
1228 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
1229 don't use TokenNumberType as element type.
1231 * tests/regression.at: Modify expected output to agree with change
1232 to yyr1 and yytranslate.
1234 2002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
1236 * src/reader.c (parse_action): Use copy_character instead of
1239 2002-05-13 Akim Demaille <akim@epita.fr>
1241 * tests/regression.at (Token definitions): Prototype yylex and
1244 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1246 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
1247 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
1249 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
1251 2002-05-07 Akim Demaille <akim@epita.fr>
1253 * tests/synclines.at: Be sure to prototype yylex and yyerror to
1256 2002-05-07 Akim Demaille <akim@epita.fr>
1260 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
1261 over the RHS of each rule.
1262 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
1263 * src/state.h (state_t): Member `nitems' is unsigned short.
1264 * src/LR0.c (get_state): Adjust.
1265 * src/reader.c (packgram): Likewise.
1266 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
1268 (muscle_insert_int_table): Remove, unused.
1269 (prepare_rules): Remove `max'.
1271 2002-05-06 Akim Demaille <akim@epita.fr>
1273 * src/closure.c (print_firsts): Display of the symbol tags.
1274 (bitmatrix_print): Move to...
1275 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
1277 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
1279 2002-05-06 Akim Demaille <akim@epita.fr>
1281 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
1284 2002-05-06 Akim Demaille <akim@epita.fr>
1286 * src/LR0.c (new_state, get_state): Instead of using the global
1287 `kernel_size' and `kernel_base', have two new arguments:
1288 `core_size' and `core'.
1291 2002-05-06 Akim Demaille <akim@epita.fr>
1293 * src/reader.c (packgram): No longer end `ritem' with a 0
1294 sentinel: it is not used.
1296 2002-05-05 Akim Demaille <akim@epita.fr>
1298 New experimental feature: display the lookaheads in the report and
1301 * src/print (print_core): When --trace-flag, display the rules
1303 * src/print_graph.c (print_core): Likewise.
1307 2002-05-05 Akim Demaille <akim@epita.fr>
1309 * tests/torture.at (Many lookaheads): New test.
1311 2002-05-05 Akim Demaille <akim@epita.fr>
1313 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
1314 (GENERATE_MUSCLE_INSERT_TABLE): this.
1315 (output_int_table, output_unsigned_int_table, output_short_table)
1316 (output_token_number_table, output_item_number_table): Replace with...
1317 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
1318 (muscle_insert_short_table, muscle_insert_token_number_table)
1319 (muscle_insert_item_number_table): these.
1321 (prepare_tokens): Don't free `translations', since...
1322 * src/reader.h, src/reader.c (grammar_free): do it.
1324 * src/gram.h, src/gram.c (grammar_free): here.
1325 * data/bison.simple, data/bison.c++: b4_token_number_max is now
1328 2002-05-05 Akim Demaille <akim@epita.fr>
1330 * src/output.c (output_unsigned_int_table): New.
1331 (prepare_rules): `i' is unsigned.
1332 `prhs', `rline', `r2' are unsigned int.
1333 Rename muscle `rhs_number_max' as `rhs_max'.
1334 Output muscles `prhs_max', `rline_max', and `r2_max'.
1336 * data/bison.simple, data/bison.c++: Adjust to use these muscles
1337 to compute types instead of constant types.
1338 * tests/regression.at (Web2c Actions): Adjust.
1340 2002-05-04 Akim Demaille <akim@epita.fr>
1342 * src/symtab.h (SALIAS, SUNDEF): Rename as...
1343 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
1344 Adjust dependencies.
1345 * src/output.c (token_definitions_output): Be sure not to output a
1346 `#define 'a'' when fed with `%token 'a' "a"'.
1347 * tests/regression.at (Token definitions): New.
1349 2002-05-03 Paul Eggert <eggert@twinsun.com>
1351 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
1354 2002-05-03 gettextize <bug-gnu-gettext@gnu.org>
1356 * Makefile.am (SUBDIRS): Remove intl.
1357 (EXTRA_DIST): Add config/config.rpath.
1359 2002-05-03 Akim Demaille <akim@epita.fr>
1361 * data/bison.simple (m4_if): Don't output empty enums.
1362 And actually, output valid enum definitions :(.
1364 2002-05-03 Akim Demaille <akim@epita.fr>
1366 * configure.bat: Remove, completely obsolete.
1367 * Makefile.am (EXTRA_DIST): Adjust.
1368 Don't distribute config.rpath...
1369 * config/Makefile.am (EXTRA_DIST): Do it.
1371 2002-05-03 Akim Demaille <akim@epita.fr>
1373 * configure.in (GETTEXT_VERSION): New.
1374 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
1376 2002-05-03 Akim Demaille <akim@epita.fr>
1378 * data/bison.simple (b4_token_enum): New.
1379 (b4_token_defines): Use it to output tokens both as #define and
1381 Suggested by Paul Eggert.
1382 * src/output.c (token_definitions_output): Don't output spurious
1385 2002-05-03 Akim Demaille <akim@epita.fr>
1387 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1389 2002-05-02 Robert Anisko <robert@lrde.epita.fr>
1391 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
1392 Update the stack class, give a try to deque as the default container.
1394 2002-05-02 Akim Demaille <akim@epita.fr>
1396 * data/bison.simple (yyparse): Do not implement @$ = @1.
1397 (YYLLOC_DEFAULT): Adjust to do it.
1398 * doc/bison.texinfo (Location Default Action): Fix.
1400 2002-05-02 Akim Demaille <akim@epita.fr>
1402 * src/reader.c (parse_braces): Merge into...
1403 (parse_action): this.
1405 2002-05-02 Akim Demaille <akim@epita.fr>
1407 * configure.in (ALL_LINGUAS): Remove.
1408 * po/LINGUAS, hr.po: New.
1410 2002-05-02 Akim Demaille <akim@epita.fr>
1412 Remove the so called hairy (semantic) parsers.
1414 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
1415 * src/gram.h, src/gram.c (semantic_parser): Remove.
1416 (rule_t): Remove the guard and guard_line members.
1417 * src/lex.h (token_t): remove tok_guard.
1418 * src/options.c (option_table): Remove %guard and %semantic_parser
1420 * src/output.c, src/output.h (guards_output): Remove.
1422 (token_definitions_output): Don't output the `T'
1424 (output_skeleton): Don't output the guards.
1425 * src/files.c, src/files.c (attrsfile): Remove.
1426 * src/reader.c (symbol_list): Remove the guard and guard_line
1428 Adjust dependencies.
1429 (parse_guard): Remove.
1430 * data/bison.hairy: Remove.
1431 * doc/bison.texinfo (Environment Variables): Remove occurrences of
1434 2002-05-02 Akim Demaille <akim@epita.fr>
1436 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
1437 (parse_guard): Rename the formal argument `stack_offset' as
1438 `rule_length', which is more readable.
1440 (copy_at, copy_dollar): Instead of outputting the hard coded
1441 values of $$, $n and so forth, output invocation to b4_lhs_value,
1442 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
1443 Note: this patch partially drops `semantic-parser' support: it
1444 always does `rule_length - n', where semantic parsers ought to
1446 * data/bison.simple, data/bison.c++ (b4_lhs_value)
1447 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
1449 2002-05-02 Akim Demaille <akim@epita.fr>
1451 * configure.in (AC_INIT): Bump to 1.49b.
1452 (AM_INIT_AUTOMAKE): Short invocation.
1454 2002-05-02 Akim Demaille <akim@epita.fr>
1458 2002-05-01 Akim Demaille <akim@epita.fr>
1460 * src/skeleton.h: Remove.
1462 2002-05-01 Akim Demaille <akim@epita.fr>
1464 * src/skeleton.h: Fix the #endif.
1465 Reported by Magnus Fromreide.
1467 2002-04-26 Paul Eggert <eggert@twinsun.com>
1469 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
1470 Define if we define YYSTYPE and YYLTYPE, respectively.
1471 (YYCOPY): Fix [] quoting problem in the non-GCC case.
1473 2002-04-25 Robert Anisko <robert@lrde.epita.fr>
1475 * src/scan-skel.l: Postprocess quadrigraphs.
1477 * src/reader.c (copy_character): New function, used to output
1478 single characters while replacing `[' and `]' with quadrigraphs, to
1479 avoid troubles with M4 quotes.
1480 (copy_comment): Output characters with copy_character.
1481 (read_additionnal_code): Likewise.
1482 (copy_string2): Likewise.
1483 (copy_definition): Likewise.
1485 * tests/calc.at: Exercise M4 quoting.
1487 2002-04-25 Akim Demaille <akim@epita.fr>
1489 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
1490 between `!' and the command.
1491 Reported by Paul Eggert.
1493 2002-04-24 Robert Anisko <robert@lrde.epita.fr>
1495 * tests/calc.at: Exercise prologue splitting.
1497 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
1498 `b4_post_prologue' instead of `b4_prologue'.
1500 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
1502 (output): Free pre_prologue_obstack and post_prologue_obstack.
1503 * src/files.h, src/files.c (attrs_obstack): Remove.
1504 (pre_prologue_obstack, post_prologue_obstack): New.
1505 * src/reader.c (copy_definition): Add a parameter to specify the
1506 obstack to fill, instead of using attrs_obstack unconditionally.
1507 (read_declarations): Pass pre_prologue_obstack to copy_definition if
1508 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
1510 2002-04-23 Paul Eggert <eggert@twinsun.com>
1512 * data/bison.simple: Remove unnecessary commentary and white
1513 space differences from 1_29-branch.
1514 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
1516 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
1517 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
1518 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
1519 constructors or destructors.
1521 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
1523 2002-04-23 Akim Demaille <akim@epita.fr>
1525 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
1526 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
1527 location with columns.
1528 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
1529 All reported by Paul Eggert.
1531 2002-04-22 Akim Demaille <akim@epita.fr>
1533 * src/reduce.c (dump_grammar): Move to...
1534 * src/gram.h, src/gram.c (grammar_dump): here.
1535 Be sure to separate long item numbers.
1536 Don't read the members of a rule's prec if its nil.
1538 2002-04-22 Akim Demaille <akim@epita.fr>
1540 * src/output.c (table_size, table_grow): New.
1541 (MAXTABLE): Remove, replace uses with table_size.
1542 (pack_vector): Instead of dying when the table is too big, grow it.
1544 2002-04-22 Akim Demaille <akim@epita.fr>
1546 * data/bison.simple (yyr1): Its type is that of a token number.
1547 * data/bison.c++ (r1_): Likewise.
1548 * tests/regression.at (Web2c Actions): Adjust.
1550 2002-04-22 Akim Demaille <akim@epita.fr>
1552 * src/reader.c (token_translations_init): 256 is now the default
1553 value for the error token, i.e., it will be assigned another
1554 number if the user assigned 256 to one of her tokens.
1555 (reader): Don't force 256 to error.
1556 * doc/bison.texinfo (Symbols): Adjust.
1557 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
1558 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
1559 etc. instead of 10, 20, 30 (which was used to `jump' over error
1560 (256) and undefined (2)).
1562 2002-04-22 Akim Demaille <akim@epita.fr>
1564 Propagate more token_number_t.
1566 * src/gram.h (token_number_as_item_number)
1567 (item_number_as_token_number): New.
1568 * src/output.c (GENERATE_OUTPUT_TABLE): New.
1569 Use it to create output_item_number_table and
1570 output_token_number_table.
1571 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
1572 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
1573 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
1574 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
1576 2002-04-22 Akim Demaille <akim@epita.fr>
1578 * src/output.h, src/output.c (get_lines_number): Remove.
1580 2002-04-19 Akim Demaille <akim@epita.fr>
1582 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
1584 (Debugging): More details about enabling the debugging features.
1585 (Table of Symbols): Describe $$, $n, @$, and @n.
1586 Suggested by Tim Josling.
1588 2002-04-19 Akim Demaille <akim@epita.fr>
1590 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
1592 2002-04-10 Akim Demaille <akim@epita.fr>
1594 * src/system.h: Rely on HAVE_LIMITS_H.
1595 Suggested by Paul Eggert.
1597 2002-04-09 Akim Demaille <akim@epita.fr>
1599 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
1600 full stderr, and strip it according to the bison options, instead
1601 of composing the error message from different bits.
1602 This makes it easier to check for several error messages.
1603 Adjust all the invocations.
1604 Add an invocation exercising the error token.
1605 Add an invocation demonstrating a stupid error message.
1606 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
1608 Error message are for stderr, not stdout.
1610 2002-04-09 Akim Demaille <akim@epita.fr>
1612 * src/gram.h, src/gram.c (error_token_number): Remove, use
1614 * src/reader.c (reader): Don't specify the user token number (2)
1615 for $undefined, as it uselessly prevents using it.
1616 * src/gram.h (token_number_t): Move to...
1617 * src/symtab.h: here.
1618 (state_t.number): Is a token_number_t.
1619 * src/print.c, src/reader.c: Use undeftoken->number instead of
1621 (Even though this 2 is not the same as above: the number of the
1622 undeftoken remains being 2, it is its user token number which
1624 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
1625 `user_token_number_max'.
1626 Output `undef_token_number'.
1627 * data/bison.simple, data/bison.c++: Use them.
1628 Be sure to map invalid yylex return values to
1629 `undef_token_number'. This saves us from gratuitous SEGV.
1631 * tests/conflicts.at (Solved SR Conflicts)
1632 (Unresolved SR Conflicts): Adjust.
1633 * tests/regression.at (Web2c Actions): Adjust.
1635 2002-04-08 Akim Demaille <akim@epita.fr>
1637 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
1639 Remove the duplicate `typedefs'.
1640 (RhsNumberType): Fix the declaration and various other typos.
1642 * data/bison.simple: Use __ofile__.
1643 * src/scan-skel.l: Handle __ofile__.
1645 2002-04-08 Akim Demaille <akim@epita.fr>
1647 * src/gram.h (item_number_t): New, the type of item numbers in
1648 RITEM. Note that it must be able to code symbol numbers as
1649 positive number, and the negation of rule numbers as negative
1651 Adjust all dependencies (pretty many).
1652 * src/reduce.c (rule): Remove this `short *' pointer: use
1654 * src/system.h (MINSHORT, MAXSHORT): Remove.
1656 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
1658 (MAXTABLE): Move to...
1659 * src/output.c (MAXTABLE): here.
1660 (prepare_rules): Use output_int_table to output rhs.
1661 * data/bison.simple, data/bison.c++: Adjust.
1662 * tests/torture.at (Big triangle): Move the limit from 254 to
1664 * tests/regression.at (Web2c Actions): Ajust.
1666 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
1667 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
1668 passes, but produces negative #line number, once fixed, GCC is
1669 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
1671 * src/state.h (state_h): Code input lines on ints, not shorts.
1673 2002-04-08 Akim Demaille <akim@epita.fr>
1675 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
1676 and then the grammar.
1678 2002-04-08 Akim Demaille <akim@epita.fr>
1680 * src/system.h: No longer using strndup.
1682 2002-04-07 Akim Demaille <akim@epita.fr>
1684 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
1685 * src/output.c (output_table_data): Return the longest number.
1686 (prepare_tokens): Output `token_number_max').
1687 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
1689 Use them to define yy_token_number_type/TokenNumberType.
1690 Use this type for yytranslate.
1691 * tests/torture.at (Big triangle): Push the limit from 124 to
1693 * tests/regression.at (Web2c Actions): Adjust.
1695 2002-04-07 Akim Demaille <akim@epita.fr>
1697 * tests/torture.at (Big triangle): New.
1698 (GNU AWK Grammar, GNU Cim Grammar): Move to...
1699 * tests/existing.at: here.
1701 2002-04-07 Akim Demaille <akim@epita.fr>
1703 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
1705 Adjust dependencies.
1707 2002-04-07 Akim Demaille <akim@epita.fr>
1709 * src/reader.c: Normalize increments to prefix form.
1711 2002-04-07 Akim Demaille <akim@epita.fr>
1713 * src/reader.c, symtab.c: Remove debugging code.
1715 2002-04-07 Akim Demaille <akim@epita.fr>
1717 Rename all the `bucket's as `symbol_t'.
1719 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
1720 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
1721 * src/symtab.c, src/symtab.h (bucket): Rename as...
1723 (symbol_list_new, bucket_check_defined, bucket_make_alias)
1724 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
1725 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1726 (buckets_new, buckets_free, buckets_do): Rename as...
1727 (symbol_list_new, symbol_check_defined, symbol_make_alias)
1728 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
1729 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
1730 (symbols_new, symbols_free, symbols_do): these.
1732 2002-04-07 Akim Demaille <akim@epita.fr>
1734 Use lib/hash for the symbol table.
1736 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
1738 * src/lex.c (lex): Set the `number' member of new terminals.
1739 * src/reader.c (bucket_check_defined, bucket_make_alias)
1740 (bucket_check_alias_consistence, bucket_translation): New.
1741 (reader, grammar_free, readgram, token_translations_init)
1742 (packsymbols): Adjust.
1743 (reader): Number the predefined tokens.
1744 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
1745 for predefined tokens.
1746 * src/symtab.h (bucket): Remove all the hash table related
1748 * src/symtab.c (symtab): Replace by...
1749 (bucket_table): this.
1750 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1751 (buckets_new, buckets_do): New.
1753 2002-04-07 Akim Demaille <akim@epita.fr>
1755 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
1756 (start_symbol, max_user_token_number, semantic_parser)
1757 (error_token_number): Initialize.
1758 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
1761 (errtoken, eoftoken, undeftoken, axiom): Extern.
1763 2002-04-07 Akim Demaille <akim@epita.fr>
1765 * src/gram.h (rule_s): prec and precsym are now pointers
1766 to the bucket giving the priority/associativity.
1767 Member `associativity' removed: useless.
1768 * src/reduce.c, src/conflicts.c: Adjust.
1770 2002-04-07 Akim Demaille <akim@epita.fr>
1772 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
1773 Properly escape the symbols' TAG when outputting them.
1775 2002-04-07 Akim Demaille <akim@epita.fr>
1777 * src/lalr.h (LA): Is a bitsetv, not bitset*.
1779 2002-04-07 Akim Demaille <akim@epita.fr>
1781 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
1782 (LArule): this, which is an array to rule_t*.
1783 * src/print.c, src/conflicts.c: Adjust.
1785 2002-04-07 Akim Demaille <akim@epita.fr>
1787 * src/gram.h (rule_t): Rename `number' as `user_number'.
1788 `number' is a new member.
1789 Adjust dependencies.
1790 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
1792 2002-04-07 Akim Demaille <akim@epita.fr>
1794 As a result of the previous patch, it is no longer needed
1795 to reorder ritem itself.
1797 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
1799 2002-04-07 Akim Demaille <akim@epita.fr>
1801 Be sure never to walk through RITEMS, but use only data related to
1802 the rules themselves. RITEMS should be banished.
1804 * src/output.c (output_token_translations): Rename as...
1805 (prepare_tokens): this.
1806 In addition to `translate', prepare the muscles `tname' and
1807 `toknum', which were handled by...
1808 (output_rule_data): this.
1809 Remove, and move the remainder of its outputs into...
1810 (prepare_rules): this new routines, which also merges content from
1811 (output_gram): this.
1812 (prepare_rules): Be sure never to walk through RITEMS.
1813 (output_stos): Rename as...
1814 (prepare_stos): this.
1815 (output): Always invoke prepare_states, after all, just don't use it
1816 in the output if you don't need it.
1818 2002-04-07 Akim Demaille <akim@epita.fr>
1820 * src/LR0.c (new_state): Display `nstates' as the name of the
1821 newly created state.
1822 Adjust to initialize first_state and last_state if needed.
1823 Be sure to distinguish the initial from the final state.
1824 (new_states): Create the itemset of the initial state, and use
1826 * src/closure.c (closure): Now that the initial state has its
1827 items properly set, there is no need for a special case when
1830 As a result, now the rule 0, reducing to $axiom, is visible in the
1831 outputs. Adjust the test suite.
1833 * tests/conflicts.at (Solved SR Conflicts)
1834 (Unresolved SR Conflicts): Adjust.
1835 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
1836 * tests/conflicts.at (S/R in initial): New.
1838 2002-04-07 Akim Demaille <akim@epita.fr>
1840 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
1841 the RHS of the rules.
1842 * src/output.c (output_gram): Likewise.
1844 2002-04-07 Akim Demaille <akim@epita.fr>
1846 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
1848 Adjust all dependencies.
1849 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
1850 `number' of the buckets too.
1851 * src/gram.h: Include `symtab.h'.
1852 (associativity): Move to...
1853 * src/symtab.h: here.
1854 No longer include `gram.h'.
1856 2002-04-07 Akim Demaille <akim@epita.fr>
1858 * src/gram.h, src/gram.c (rules_rhs_length): New.
1859 (ritem_longest_rhs): Use it.
1860 * src/gram.h (rule_t): `number' is a new member.
1861 * src/reader.c (packgram): Set it.
1862 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
1863 the end of `rules', and count them out of `nrules'.
1864 (reduce_output, dump_grammar): Adjust.
1865 * src/print.c (print_grammar): It is no longer needed to check for
1866 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
1867 * tests/reduce.at (Reduced Automaton): New test.
1869 2002-04-07 Akim Demaille <akim@epita.fr>
1871 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
1872 lacking `+ 1' to nrules, Bison reported as useless a token if it
1873 was used solely to set the precedence of the last rule...
1875 2002-04-07 Akim Demaille <akim@epita.fr>
1877 * data/bison.c++, data/bison.simple: Don't output the current file
1878 name in #line, to avoid useless diffs between two identical
1879 outputs under different names.
1881 2002-04-07 Akim Demaille <akim@epita.fr>
1883 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
1884 Normalize loops to using `< nrules + 1', not `<= nrules'.
1886 2002-04-07 Akim Demaille <akim@epita.fr>
1890 2002-04-07 Akim Demaille <akim@epita.fr>
1892 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
1893 bucket.value as bucket.number.
1895 2002-04-07 Akim Demaille <akim@epita.fr>
1897 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
1898 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1899 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
1900 RHS, instead of being an index in RITEMS.
1902 2002-04-04 Paul Eggert <eggert@twinsun.com>
1904 * doc/bison.texinfo: Update copyright date.
1905 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
1906 (Symbols): Warn about running Bison in one character set,
1907 but compiling and/or running in an incompatible one.
1908 Warn about character code 256, too.
1910 2002-04-03 Paul Eggert <eggert@twinsun.com>
1912 * src/bison.data (YYSTACK_ALLOC): Depend on whether
1913 YYERROR_VERBOSE is nonzero, not whether it is defined.
1915 Merge changes from bison-1_29-branch.
1917 2002-03-20 Paul Eggert <eggert@twinsun.com>
1919 Merge fixes from Debian bison_1.34-1.diff.
1921 * configure.in (AC_PREREQ): 2.53.
1923 2002-03-20 Akim Demaille <akim@epita.fr>
1925 * src/conflicts.c (log_resolution): Argument `resolution' is const.
1927 2002-03-19 Paul Eggert <eggert@twinsun.com>
1929 * src/bison.simple (YYCOPY): New macro.
1930 (YYSTACK_RELOCATE): Use it.
1931 Remove Type arg; no longer needed. All callers changed.
1932 (yymemcpy): Remove; no longer needed.
1934 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
1935 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1937 2002-03-19 Akim Demaille <akim@epita.fr>
1939 Test and fix the #line outputs.
1941 * tests/atlocal.at (GCC): New.
1942 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
1943 (Prologue synch line, ,%union synch line, Postprologue synch line)
1944 (Action synch line, Epilogue synch line): New tests.
1945 * src/reader.c (parse_union_decl): Define the muscle stype_line.
1946 * data/bison.simple, data/bison.c++: Use it.
1948 2002-03-19 Akim Demaille <akim@epita.fr>
1950 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
1951 (Solved SR Conflicts, %expect not enough, %expect right)
1952 (%expect too much): Move to...
1953 * tests/conflicts.at: this new file.
1955 2002-03-19 Akim Demaille <akim@epita.fr>
1957 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1958 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
1959 that we can move to enums for instance.
1960 * src/output.c (token_definitions_output): Output a list of
1961 `token-name, token-number' instead of the #define.
1962 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
1964 2002-03-14 Akim Demaille <akim@epita.fr>
1968 2002-03-09 Robert Anisko <robert@lrde.epita.fr>
1970 * data/bison.c++: Make the user able to add members to the generated
1971 parser by subclassing.
1973 2002-03-05 Robert Anisko <robert@lrde.epita.fr>
1975 * src/reader.c (read_additionnal_code): `c' should be an integer, not
1977 Reported by Nicolas Tisserand and Nicolas Burrus.
1979 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1981 * src/reader.c: Warn about lacking semi-colons, do not complain.
1983 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1985 * data/bison.c++: Remove a debug line.
1987 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1989 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
1990 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
1991 provide a default implementation.
1993 2002-03-04 Akim Demaille <akim@epita.fr>
1995 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
1996 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
1997 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
1998 * tests/semantic.at (Parsing Guards): Similarly.
1999 * src/reader.at (readgram): Complain if the last rule is not ended
2002 2002-03-04 Akim Demaille <akim@epita.fr>
2004 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
2005 * src/closure.c: here.
2006 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
2008 * src/warshall.h, src/warshall.c: Remove.
2009 * tests/sets.at (Broken Closure): Adjust.
2011 2002-03-04 Akim Demaille <akim@epita.fr>
2013 * src/output.c (output_skeleton): tempdir is const.
2014 bytes_read is unused.
2016 2002-03-04 Akim Demaille <akim@epita.fr>
2018 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
2019 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
2023 2002-03-04 Akim Demaille <akim@epita.fr>
2025 * src/closure.c (closure): `r' is unused.
2027 2002-03-04 Akim Demaille <akim@epita.fr>
2029 * tests/sets.at (Broken Closure): Add the ending `;'.
2030 * src/reader.at (readgram): Complain if a rule is not ended with a
2033 2002-03-04 Akim Demaille <akim@epita.fr>
2035 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
2036 (count_sr_conflicts): Use bitset_count.
2037 * src/reduce.c (inaccessable_symbols): Ditto.
2038 (bits_size): Remove.
2039 * src/warshall.h, src/warshall.c: Convert to bitsetv.
2041 2002-03-04 Akim Demaille <akim@epita.fr>
2043 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
2044 * src/reduce.c: Remove the `bitset_zero's following the
2045 `bitset_create's, as now it is performed by the latter.
2047 2002-03-04 Akim Demaille <akim@epita.fr>
2049 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
2050 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
2051 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
2052 latest sources from Michael.
2054 2002-03-04 Akim Demaille <akim@epita.fr>
2056 * src/output.c (output): Don't free the grammar.
2057 * src/reader.c (grammar_free): New.
2058 * src/main.c (main): Call it and don't free symtab here.
2060 2002-03-04 Akim Demaille <akim@epita.fr>
2062 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
2064 Reported by Benoit Perrot.
2066 2002-03-04 Akim Demaille <akim@epita.fr>
2068 Use bitset operations when possible, not loops over bits.
2070 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
2072 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
2073 * src/reduce.c (useless_nonterminals): Formatting changes.
2074 * src/warshall.c (TC): Use bitset_or.
2076 2002-03-04 Akim Demaille <akim@epita.fr>
2078 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
2079 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
2082 2002-03-04 Akim Demaille <akim@epita.fr>
2084 * src/lalr.c (F): Now a bitset*.
2085 Adjust all dependencies.
2087 2002-03-04 Akim Demaille <akim@epita.fr>
2089 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
2090 Adjust all dependencies.
2092 2002-03-04 Akim Demaille <akim@epita.fr>
2094 * src/L0.c, src/LR0.h (nstates): Be size_t.
2095 Adjust comparisons (signed vs unsigned).
2096 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
2098 Adjust all dependencies.
2100 2002-03-04 Akim Demaille <akim@epita.fr>
2102 * src/closure.c (firsts): Now, also a bitset.
2103 Adjust all dependencies.
2104 (varsetsize): Remove, now unused.
2105 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
2107 2002-03-04 Akim Demaille <akim@epita.fr>
2109 * src/print.c: Convert to use bitset.h, not hand coded iterations
2112 2002-03-04 Akim Demaille <akim@epita.fr>
2114 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
2116 2002-03-04 Akim Demaille <akim@epita.fr>
2118 * src/closure.c (ruleset): Be a bitset.
2119 (rulesetsize): Remove.
2121 2002-03-04 Akim Demaille <akim@epita.fr>
2123 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
2124 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
2125 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
2126 * src/closure.c (fderives): Be an array of bitsets.
2128 2002-02-28 Robert Anisko <robert@lrde.epita.fr>
2130 * data/bison.c++: Merge the two generated headers. Insert a copyright
2131 notice in each output file.
2133 2002-02-28 Akim Demaille <akim@epita.fr>
2135 * data/bison.c++: Copy the prologue of bison.simple to fetch
2136 useful M4 definitions, such as b4_header_guard.
2138 2002-02-25 Akim Demaille <akim@epita.fr>
2140 * src/getargs.c (version): Give the name of the authors, and use a
2141 translator friendly scheme for the bgr
2144 2002-02-25 Akim Demaille <akim@epita.fr>
2146 * src/output.c (header_output): Remove, now handled completely via
2149 2002-02-25 Akim Demaille <akim@epita.fr>
2151 * m4/m4.m4: New, from CVS Autoconf.
2152 * configure.in: Invoke it.
2153 * src/output.c (output_skeleton): Use its result instead of the
2156 2002-02-25 Akim Demaille <akim@epita.fr>
2158 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
2160 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
2161 * src/output.c (output_skeleton): Use mkstemp to create a real
2163 Move the filling of `skeleton' and its muscle to...
2165 (output): Move the definition of the prologue muscle to...
2167 * src/system.h (DEFAULT_TMPDIR): New.
2169 2002-02-14 Paul Eggert <eggert@twinsun.com>
2171 Remove the support for C++ namespace cleanliness; it was
2172 causing more problems than it was curing, since it didn't work
2173 properly on some nonstandard C++ compilers. This can wait
2174 for a proper C++ parser.
2176 * NEWS: Document this.
2177 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
2178 of C++, as it's treated like C now.
2179 * src/bison.simple (YYSTD): Remove.
2180 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
2181 Treat C++ just like Standard C instead of trying to support
2182 namespace cleanliness.
2184 2002-02-14 Akim Demaille <akim@epita.fr>
2186 * tests/regression.at (else): Adjust to Andreas' change.
2188 2002-02-14 Akim Demaille <akim@epita.fr>
2190 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
2192 2002-02-13 Andreas Schwab <schwab@suse.de>
2194 * src/output.c (output_rule_data): Don't output NULL, it might
2197 2002-02-11 Robert Anisko <robert@lrde.epita.fr>
2199 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
2200 (Copyright notice): Update.
2202 2002-02-11 Akim Demaille <akim@epita.fr>
2204 * tests/regression.at (%nonassoc and eof): Don't include
2205 nonportable headers.
2207 2002-02-08 Robert Anisko <robert@lrde.epita.fr>
2209 * data/bison.c++: Correct error recovery. Make the user able to
2210 initialize the starting location.
2212 2002-02-07 Akim Demaille <akim@epita.fr>
2214 * tests/input.at: New.
2216 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
2218 * data/bison.c++: Replace some direct m4 expansions by constants. Be
2219 more consistent when naming methods and variables. Put preprocessor
2220 directives around tables only needed for debugging.
2222 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
2224 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
2226 (yy::b4_name::parse): Use print_.
2228 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
2230 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
2232 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
2234 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
2236 (yy::b4_name::parse): Build verbose error messages, and use error_.
2238 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
2240 * data/bison.c++: Fix m4 quoting in comments.
2242 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
2244 * data/bison.c++: Adjust the parser code. Fix some muscles that were
2247 2002-02-05 Akim Demaille <akim@epita.fr>
2249 * data/bison.c++: Adjust to the M4 back end.
2250 More is certainly needed.
2252 2002-02-05 Akim Demaille <akim@epita.fr>
2254 Give a try to M4 as a back end.
2256 * lib/readpipe.c: New, from wdiff.
2257 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
2259 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
2260 specific values. Now it is m4 that performs the lookup.
2261 * src/parse-skel.y: Remove.
2262 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
2263 * src/output.c (actions_output, guards_output)
2264 (token_definitions_output): No longer keeps track of the output
2265 line number, hence remove the second argument.
2266 (guards_output): Check against the guard member of a rule, not the
2269 (output_skeleton): Don't look for the skeleton location, let m4 do
2271 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
2273 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
2274 (prepare): Given that for the time being changesyntax is not
2275 usable in M4, rename the muscles using `-' to `_'.
2276 Define `defines_flag', `output_parser_name' and `output_header_name'.
2277 * src/output.h (actions_output, guards_output)
2278 (token_definitions_output): Adjust prototypes.
2279 * src/scan-skel.l: Instead of scanning the skeletons, it now
2280 processes the output of m4: `__oline__' and `#output'.
2281 * data/bison.simple: Adjust to be used by M4(sugar).
2282 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
2284 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
2285 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
2286 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
2287 shamelessly stolen from CVS Autoconf.
2289 2002-02-05 Akim Demaille <akim@epita.fr>
2291 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
2292 * configure.in: Check for the declarations of free and malloc.
2293 * src/muscle_tab.c: Adjust.
2295 2002-02-05 Akim Demaille <akim@epita.fr>
2297 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
2298 which have no values.
2300 2002-02-05 Akim Demaille <akim@epita.fr>
2302 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
2305 2002-01-29 Paul Eggert <eggert@twinsun.com>
2307 * src/bison.simple (YYSIZE_T): Do not define merely because
2308 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
2309 On some platforms, <alloca.h> does not declare YYSTD (size_t).
2311 2002-01-27 Akim Demaille <akim@epita.fr>
2313 Fix `%nonassoc and eof'.
2315 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
2316 which were not properly copied! Replace
2317 memcpy (res->errs, src->errs, src->nerrs);
2319 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
2321 * tests/regression.at (%nonassoc and eof): Adjust to newest
2322 Autotest: `.' is not in the PATH.
2324 2002-01-27 Akim Demaille <akim@epita.fr>
2326 * tests/sets.at (AT_EXTRACT_SETS): New.
2330 2002-01-26 Akim Demaille <akim@epita.fr>
2332 * tests/actions.at, tests/calc.at, tests/headers.at,
2333 * tests/torture.at: Adjust to the newest Autotest which no longer
2334 forces `.' in the PATH.
2336 2002-01-25 Akim Demaille <akim@epita.fr>
2338 * tests/regression.at (%nonassoc and eof): New.
2339 Suggested by Robert Anisko.
2341 2002-01-24 Akim Demaille <akim@epita.fr>
2343 Bison dumps core when trying to complain about broken input files.
2344 Reported by Cris van Pelt.
2346 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
2347 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
2349 (Invalid inputs): Strengthen: exercise parse_percent_token.
2351 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
2353 * src/Makefile.am: Add bison.c++.
2354 * src/bison.c++: New skeleton.
2356 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
2360 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
2362 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
2364 2002-01-20 Marc Autret <marc@gnu.org>
2366 * src/files.c (compute_output_file_names): Fix
2368 2002-01-20 Marc Autret <marc@gnu.org>
2370 * tests/output.at: New test.
2371 * src/files.c (compute_base_names): Don't map extensions when
2372 the YACC flag is set, use defaults.
2373 Reported by Evgeny Stambulchik.
2375 2002-01-20 Marc Autret <marc@gnu.org>
2377 * src/system.h: Need to define __attribute__ away for non-GCC
2378 compilers as well (i.e. the vendor C compiler).
2379 Suggested by Albert Chin-A-Young.
2381 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
2383 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
2384 canonical definition.
2385 * src/system.h: Use the canonical definition for PARAMS (avoids
2386 a conflict with the macro from lib/hash.h).
2388 2002-01-11 Akim Demaille <akim@epita.fr>
2390 * configure.in: Use AC_FUNC_STRNLEN.
2391 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
2393 2002-01-09 Akim Demaille <akim@epita.fr>
2395 * src/files.c, src/files.h (output_infix): New.
2396 (tab_extension): Remove.
2397 (compute_base_names): Compute the former, drop the latter.
2398 * src/output.c (prepare): Insert the muscles `output-infix', and
2400 * src/parse-skel.y (string, string.1): New.
2401 (section.header): Use it.
2402 (section.yacc): Remove.
2403 (prefix): Remove too.
2404 * src/scan-skel.l: Adjust.
2405 * src/bison.simple, src/bison.hairy: Adjust.
2407 2002-01-09 Akim Demaille <akim@epita.fr>
2409 * configure.in (WERROR_CFLAGS): Compute it.
2410 * src/Makefile.am (CFLAGS): Pass it.
2411 * tests/atlocal.in (CFLAGS): Idem.
2412 * src/files.c: Fix a few warnings.
2413 (get_extension_index): Remove, unused.
2415 2002-01-08 Akim Demaille <akim@epita.fr>
2417 * src/getargs.c (AS_FILE_NAME): New.
2418 (getargs): Use it to convert DOSish file names.
2419 * src/files.c (base_name): Rename as full_base_name to avoid
2420 clashes with `base_name ()'.
2421 (filename_split): New.
2422 (compute_base_names): N-th rewrite, using filename_split.
2424 2002-01-08 Akim Demaille <akim@epita.fr>
2426 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
2427 New, stolen from the Fileutils 4.1.
2428 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
2429 * configure.in: Check for the presence of memrchr, and of its
2432 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
2434 * lib/hash.h (__P): Added definition for this macro.
2435 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
2436 BUILT_SOURCES, to ensure they are generated first.
2437 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
2438 %error-verbose to allow bootstrapping with bison 1.30x.
2440 2002-01-06 Akim Demaille <akim@epita.fr>
2442 * src/reader.c (parse_braces): Don't fetch the next char, the
2443 convention is to fetch on entry.
2444 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
2445 'switch' without a following semicolon.
2446 * tests/regression.at (braces parsing): New.
2448 2002-01-06 Akim Demaille <akim@epita.fr>
2450 Bison is dead wrong in its RR conflict reports.
2452 * tests/torture.at (GNU Cim Grammar): New.
2453 * src/conflicts.c (count_rr_conflicts): Fix.
2455 2002-01-06 Akim Demaille <akim@epita.fr>
2457 Creating package.m4 from configure.ac causes too many problems.
2459 * tests/Makefile.am (package.m4): Create it by hand,
2460 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
2462 2002-01-06 Akim Demaille <akim@epita.fr>
2464 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
2467 2002-01-04 Paul Eggert <eggert@twinsun.com>
2469 * doc/bison.texinfo (Debugging):
2470 Remove YYSTDERR; it's no longer defined or used.
2471 Also, s/cstdio.h/cstdio/.
2473 2002-01-03 Akim Demaille <akim@epita.fr>
2475 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
2477 2002-01-03 Akim Demaille <akim@epita.fr>
2479 * src/parse-skel.y (process_skeleton): Don't bind the parser's
2480 tracing code to --trace, wait for a better --trace option, with
2483 2002-01-03 Akim Demaille <akim@epita.fr>
2485 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
2486 The ISO C++ standard is extremely clear about it: stderr is
2487 considered a macro, not a regular symbol (see table 94 `Header
2488 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
2489 Therefore std:: does not apply to it. It still does with fprintf.
2490 Also, s/cstdio.h/cstdio/.
2492 2002-01-03 Akim Demaille <akim@epita.fr>
2494 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
2495 for non system headers.
2497 2002-01-02 Akim Demaille <akim@epita.fr>
2499 Equip the skeleton chain with location tracking, runtime trace,
2500 pure parser and scanner.
2502 * src/parse-skel.y: Request a pure parser, locations, and prefix
2504 (%union): Having several members with the same type does not help
2505 type mismatches, simplify.
2506 (YYPRINT, yyprint): New.
2507 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
2510 * src/scan-skel.l: Adjust to these changes.
2511 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
2512 (LOCATION_PRINT, skel_control_t): New.
2514 2001-12-30 Akim Demaille <akim@epita.fr>
2516 * src/parse-skel.y: Get rid of the shift/reduce conflict:
2517 replace `gb' with BLANKS.
2518 * src/scan-skel.l: Adjust.
2520 2001-12-30 Akim Demaille <akim@epita.fr>
2522 * src/system.h: We don't need nor want bcopy.
2523 Throw away MS-DOS crap: we don't need getpid.
2524 * configure.in: We don't need strndup. It was even causing
2525 problems: because Flex includes the headers *before* us,
2526 _GNU_SOURCE is not defined by config.h, and therefore strndup was
2528 * lib/xstrndup.c: New.
2529 * src/scan-skel.l: Use it.
2530 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
2531 * src/parse-skel.y: Use %directives instead of #defines.
2533 2001-12-30 Akim Demaille <akim@epita.fr>
2535 * src/skeleton.h: New.
2536 * src/output.c (output_parser, output_master_parser): Remove, dead
2538 * src/output.h (get_lines_number, actions_output, guards_output)
2539 (token_definitions_output): Prototype them.
2540 * src/parse-skel.y: Add the license notice.
2541 Include output.h and skeleton.h.
2542 (process_skeleton): Returns void, and takes a single parameter.
2543 * src/scan-skel.l: Add the license notice.
2545 Don't use %option yylineno: it seems that then Flex imagines
2546 REJECT has been used, and therefore it won't reallocate its
2547 buffers (which makes no other sense to me than a bug). It results
2548 in warnings for `unused: yy_flex_realloc'.
2550 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
2552 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
2553 (MUSCLE_INSERT_PREFIX): ...to there.
2554 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
2555 (MUSCLE_INSERT_PREFIX): Move from here...
2557 * src/bison.hairy: Add a section directive. Put braces around muscle
2558 names. This parser skeleton is still broken, but Bison should not
2559 choke on a bad muscle 'syntax'.
2560 * src/bison.simple: Add a section directive. Put braces around muscle
2563 * src/files.h (strsuffix, stringappend): Add declarations.
2564 (tab_extension): Add declaration.
2565 (short_base_name): Add declaration.
2567 * src/files.c (strsuffix, stringappend): No longer static. These
2568 functions are used in the skeleton parser.
2569 (tab_extension): New.
2570 (compute_base_names): Use the computations done in this function
2571 to guess if the generated parsers should have '.tab' in their
2573 (short_base_name): No longer static.
2575 * src/output.c (output_skeleton): New.
2576 (output): Disable call to output_master_parser, and give a try to
2577 a new skeleton handling system.
2578 (guards_output, actions_output): No longer static.
2579 (token_definitions_output, get_lines_number): No longer static.
2581 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
2583 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
2586 * src/parse-skel.y: New file.
2587 * src/scan-skel.l: New file.
2589 2001-12-29 Akim Demaille <akim@epita.fr>
2591 %name-prefix is broken.
2593 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
2594 Adjust all dependencies.
2595 * tests/headers.at (export YYLTYPE): Strengthen this test: use
2598 Renaming yylval but not yylloc is not consistent. Now we do.
2600 * src/bison.simple: Prefix yylloc if used.
2601 * doc/bison.texinfo (Decl Summary): Document that.
2603 2001-12-29 Akim Demaille <akim@epita.fr>
2605 * doc/bison.texinfo: Promote `%long-directive' over
2607 Remove all references to fixed-output-files, yacc is enough.
2609 2001-12-29 Akim Demaille <akim@epita.fr>
2611 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
2612 user prologue. These are defaults.
2613 * tests/actions.at (Mid-rule actions): Make sure the user can
2614 define YYDEBUG and YYERROR_VERBOSE.
2616 2001-12-29 Akim Demaille <akim@epita.fr>
2618 * src/output.c (header_output): Don't forget to export YYLTYPE and
2620 * tests/headers.at (export YYLTYPE): New, make sure it does.
2621 * tests/regression.at (%union and --defines, Invalid CPP headers):
2623 * tests/headers.at: here.
2625 2001-12-29 Akim Demaille <akim@epita.fr>
2627 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
2629 2001-12-29 Akim Demaille <akim@epita.fr>
2631 * tests/actions.at (Mid-rule actions): Output on a single line
2634 2001-12-29 Akim Demaille <akim@epita.fr>
2636 * doc/bison.texinfo: Formatting changes.
2638 2001-12-29 Akim Demaille <akim@epita.fr>
2640 Don't store the token defs in a muscle, just be ready to output it
2641 on command. Now possible via `symbols'. Fixes a memory leak.
2643 * src/output.c (token_definitions_output): New.
2644 (output_parser, header_output): Use it.
2645 * src/reader.c (symbols_save): Remove.
2647 2001-12-29 Akim Demaille <akim@epita.fr>
2649 * src/bison.simple: Do not provide a default for YYSTYPE and
2650 YYLTYPE before the user's prologue. Otherwise it's hardly... a
2653 2001-12-29 Akim Demaille <akim@epita.fr>
2655 Mid-rule actions are simply... ignored!
2657 * src/reader.c (readgram): Be sure to attach mid-rule actions to
2658 the empty-rule associated to the dummy symbol, not to the host
2660 * tests/actions.at (Mid-rule actions): New.
2662 2001-12-29 Akim Demaille <akim@epita.fr>
2666 * src/reader.c (reader): Free grammar.
2668 2001-12-29 Akim Demaille <akim@epita.fr>
2672 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
2673 since it allocates it for each state, although only one is needed.
2674 (allocate_storage): Do it here.
2676 2001-12-29 Akim Demaille <akim@epita.fr>
2678 * src/options.h, src/options.c (create_long_option_table): Rename
2680 (long_option_table_new): this, with a clearer prototype.
2681 (percent_table): Remove, unused,
2682 * src/getargs.c (getargs): Adjust.
2684 2001-12-29 Akim Demaille <akim@epita.fr>
2686 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
2687 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
2690 2001-12-29 Akim Demaille <akim@epita.fr>
2692 * src/lalr.c (build_relations): Rename `states' as `states1'.
2693 Sorry, I don't understand exactly what it is, no better name...
2695 2001-12-29 Akim Demaille <akim@epita.fr>
2697 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
2698 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
2699 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
2702 2001-12-29 Akim Demaille <akim@epita.fr>
2704 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
2707 2001-12-29 Akim Demaille <akim@epita.fr>
2709 * src/reader.c, src/reader.h (user_toknums): Remove.
2710 Adjust all users to use symbols[i]->user_token_number.
2712 2001-12-29 Akim Demaille <akim@epita.fr>
2714 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
2715 Adjust all users to use symbols[i]->prec or ->assoc.
2717 2001-12-29 Akim Demaille <akim@epita.fr>
2719 * src/reader.c, src/reader.h (tags): Remove.
2720 Adjust all users to use symbols[i]->tag.
2722 2001-12-29 Akim Demaille <akim@epita.fr>
2724 * src/gram.h, src/gram.c (symbols): New, similar to state_table
2726 * src/reader.c (packsymbols): Fill this table.
2728 * src/conflicts.c (resolve_sr_conflict): Adjust.
2729 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
2731 Use symbols[i]->tag instead of tags[i].
2733 2001-12-29 Akim Demaille <akim@epita.fr>
2735 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
2736 In addition, put a comment in there, to replace...
2737 * tests/regression.at (%union and C comments): Remove.
2739 2001-12-29 Akim Demaille <akim@epita.fr>
2741 * tests/regression.at (Web2c Actions): Blindly move the actual
2742 output as expected output. The contents *seem* right to me, but I
2743 can't pretend reading perfectly parser tables... Nonetheless, all
2744 the other tests pass correctly, the table look OK, even though the
2745 presence of `$axiom' is to be noted: AFAICS it is useless (but
2748 2001-12-29 Akim Demaille <akim@epita.fr>
2750 * src/reader.c (readgram): Don't add the rule 0 if there were no
2751 rules read. In other words, add it _after_ having performed
2752 grammar sanity checks.
2753 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
2755 2001-12-29 Akim Demaille <akim@epita.fr>
2757 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
2758 visible, and some states have now a different number.
2760 2001-12-29 Akim Demaille <akim@epita.fr>
2762 * src/reader.c (readgram): Bind the initial rule's lineno to that
2764 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
2765 (Solved SR Conflicts): Adjust rule 0's line number.
2767 2001-12-29 Akim Demaille <akim@epita.fr>
2769 Fix the `GAWK Grammar' failure.
2771 * src/LR0.c (final_state): Initialize to -1 so that we do compute
2772 the reductions of the first state which was mistakenly confused
2773 with the final state because precisely final_state was initialized
2775 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
2776 now noticed by Bison.
2777 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
2778 have a reduction on $default.
2780 2001-12-29 Akim Demaille <akim@epita.fr>
2782 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
2784 * src/closure.c (print_closure): Likewise.
2785 * src/derives.c (print_derives): Likewise.
2786 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
2789 2001-12-29 Akim Demaille <akim@epita.fr>
2791 * src/lalr.c (lookaheads_print): New.
2792 (lalr): Call it when --trace-flag.
2793 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
2796 2001-12-29 Akim Demaille <akim@epita.fr>
2798 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
2799 when walking through ritem, even via rule->rhs.
2800 * src/reduce.c (dump_grammar, useful_production, reduce_output)
2801 (useful_production, useless_nonterminals): Likewise.
2802 (reduce_grammar_tables): Likewise, plus update nritems.
2803 * src/nullable.c (set_nullable): Likewise.
2804 * src/lalr.c (build_relations): Likewise.
2805 * tests/sets.at (Nullable): Adjust.
2806 Fortunately, now, the $axiom is no longer nullable.
2808 2001-12-29 Akim Demaille <akim@epita.fr>
2810 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
2812 * src/gram.c (ritem_longest_rhs): Likewise.
2813 * src/reduce.c (nonterminals_reduce): Likewise.
2814 * src/print_graph.c (print_graph): Likewise.
2815 * src/output.c (output_rule_data): Likewise.
2816 * src/nullable.c (set_nullable): Likewise.
2818 2001-12-29 Akim Demaille <akim@epita.fr>
2820 * src/output.c: Comment changes.
2822 2001-12-27 Paul Eggert <eggert@twinsun.com>
2824 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
2825 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
2826 Sparc, as they were causing more porting problems than the
2827 (minor) performance improvement was worth.
2829 Also, catch up with 1.31's YYSTD.
2831 2001-12-27 Akim Demaille <akim@epita.fr>
2833 * src/output.c (output_gram): Rely on nritems, not the
2834 0-sentinel. See below.
2835 Use -1 as separator, not 0.
2836 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
2837 Rely on -1 as separator in yyrhs, instead of 0.
2838 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
2839 twice `Now at end of input', therefore there are two lines less to
2842 2001-12-27 Akim Demaille <akim@epita.fr>
2844 * tests/regression.at (Unresolved SR Conflicts):
2845 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
2848 2001-12-27 Akim Demaille <akim@epita.fr>
2850 * src/LR0.c (new_state): Recognize the final state by the fact it
2851 is reached by eoftoken.
2852 (insert_start_shifting_state, insert_eof_shifting_state)
2853 (insert_accepting_state, augment_automaton): Remove, since now
2854 these states are automatically computed from the initial state.
2855 (generate_states): Adjust.
2856 * src/print.c: When reporting a rule number to the user, substract
2857 1, so that the axiom rule is rule 0, and the first user rule is 1.
2858 * src/reduce.c: Likewise.
2859 * src/print_graph.c (print_core): For the time being, just as for
2860 the report, depend upon --trace-flags to dump the full set of
2862 * src/reader.c (readgram): Once the grammar read, insert the rule
2863 0: `$axiom: START-SYMBOL $'.
2864 * tests/set.at: Adjust: rule 0 is now displayed, and since the
2865 number of the states has changed (the final state is no longer
2866 necessarily the last), catch up.
2868 2001-12-27 Akim Demaille <akim@epita.fr>
2870 Try to make the use of the eoftoken valid. Given that its value
2871 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
2872 is used instead of > 0 where appropriate, (ii), depend upon nritems
2873 instead of the 0-sentinel.
2875 * src/gram.h, src/gram.c (nritems): New.
2876 Expected to be duplication of nitems, but for the time being...
2877 * src/reader.c (packgram): Assert nritems and nitems are equal.
2878 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
2879 * src/closure.c (print_closure, print_fderives): Likewise.
2880 * src/gram.c (ritem_print): Likewise.
2881 * src/print.c (print_core, print_grammar): Likewise.
2882 * src/print_graph.c: Likewise.
2884 2001-12-27 Akim Demaille <akim@epita.fr>
2886 * src/main.c (main): If there are complains after grammar
2887 reductions, then output the report anyway if requested, then die.
2888 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
2889 * src/reader.c (eoftoken): New.
2890 (parse_token_decl): If the token being defined has value `0', it
2892 (packsymbols): No longer hack `tags' to insert `$' by hand.
2893 Be sure to preserve the value of the eoftoken.
2894 (reader): Make sure eoftoken is defined.
2895 Initialize nsyms to 0: now eoftoken is created just like the others.
2896 * src/print.c (print_grammar): Don't special case the eof token.
2897 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
2898 lie anyway, albeit pleasant.
2899 * tests/calc.at: Exercise error messages with eoftoken.
2900 Change the grammar so that empty input is invalid.
2901 Adjust expectations.
2902 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
2904 2001-12-27 Akim Demaille <akim@epita.fr>
2906 * configure.in: Check the protos of strchr ans strspn.
2907 Replace strchr if needed.
2908 * src/system.h: Provide the protos of strchr, strspn and memchr if
2910 * lib/strchr.c: New.
2911 * src/reader.c (symbols_save): Use strchr.
2913 2001-12-27 Akim Demaille <akim@epita.fr>
2915 * src/print.c, src/print_graph.c (escape): New.
2916 Use it to quote the TAGS outputs.
2917 * src/print_graph.c (print_state): Now errors are in red, and
2918 reductions in green.
2919 Prefer high to wide: output the state number on a line of its own.
2921 2001-12-27 Akim Demaille <akim@epita.fr>
2923 * src/state.h, src/state.c (reductions_new): New.
2924 * src/LR0.c (set_state_table): Let all the states have a
2925 `reductions', even if reduced to 0.
2926 (save_reductions): Adjust.
2927 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
2928 * src/print.c (print_reductions, print_actions): Adjust.
2929 * src/output.c (action_row): Adjust.
2931 2001-12-27 Akim Demaille <akim@epita.fr>
2933 * src/state.h, src/state.c (errs_new, errs_dup): New.
2934 * src/LR0.c (set_state_table): Let all the states have an errs,
2935 even if reduced to 0.
2936 * src/print.c (print_errs, print_reductions): Adjust.
2937 * src/output.c (output_actions, action_row): Adjust.
2938 * src/conflicts.c (resolve_sr_conflict): Adjust.
2940 2001-12-27 Akim Demaille <akim@epita.fr>
2942 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
2944 2001-12-27 Akim Demaille <akim@epita.fr>
2946 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
2947 * src/print.c: here.
2948 (lookaheadset, shiftset): New, used as additional storage by
2950 (print_results): Adjust.
2951 (print_shifts, print_gotos, print_errs): New, extracted from...
2952 (print_actions): here.
2953 * src/print_graph.c (print_actions): Remove dead code.
2955 2001-12-27 Akim Demaille <akim@epita.fr>
2957 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
2960 2001-12-27 Akim Demaille <akim@epita.fr>
2962 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
2963 (build_relations): Adjust.
2965 2001-12-27 Akim Demaille <akim@epita.fr>
2967 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
2970 2001-12-27 Akim Demaille <akim@epita.fr>
2972 * src/reader.c (packgram): Catch nitems overflows.
2974 2001-12-27 Akim Demaille <akim@epita.fr>
2976 * src/files.c, src/files.h (guard_obstack): Remove.
2977 * src/output.c (output): Adjust.
2978 * src/reader.c (parse_braces): New, factoring...
2979 (copy_action, copy_guard): these two which are renamed as...
2980 (parse_action, parse_guard): these.
2981 As a voluntary consequence, using braces around guards is now
2984 2001-12-27 Akim Demaille <akim@epita.fr>
2986 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
2987 * src/reader.c (symbol_list): `guard' and `guard_line' are new
2989 (symbol_list_new): Adjust.
2990 (copy_action): action_line is the first line, not the last.
2991 (copy_guard): Just as for actions, store the `action' only, not
2992 the switch/case/break flesh.
2993 Don't parse the user action that might follow the guard, let...
2994 (readgram): do it, i.e., now, there can be an action after a
2996 In other words the guard is just explicitly optional.
2998 * src/output.c (guards_output): New.
2999 (output_parser): Call it when needed.
3000 (output): Also free the guard and attrs obstacks.
3001 * src/files.c, src/files.h (obstack_save): Remove.
3002 (output_files): Remove.
3003 As a result, if one needs the former `.act' file, using an
3004 appropriate skeleton which requires actions and guards is now
3006 * src/main.c (main): Adjust.
3007 * tests/semantic.at: New.
3008 * tests/regression.at: Use `input.y' as input file name.
3009 Avoid 8+3 problems by requiring input.c when the test needs the
3012 2001-12-27 Akim Demaille <akim@epita.fr>
3014 * src/reader.c (symbol_list_new): Be sure to initialize all the
3017 2001-12-27 Akim Demaille <akim@epita.fr>
3019 All the hacks using a final pseudo state are now useless.
3021 * src/LR0.c (set_state_table): state_table holds exactly nstates.
3022 * src/lalr.c (nLA): New.
3023 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
3024 instead of lookaheadsp from the pseudo state (nstate + 1).
3026 2001-12-27 Akim Demaille <akim@epita.fr>
3028 * src/output.c (action_row, token_actions): Use a state_t instead
3029 of a integer, and nlookaheads instead of the following state's
3032 2001-12-27 Akim Demaille <akim@epita.fr>
3034 * src/conflicts.c (log_resolution, flush_shift)
3035 (resolve_sr_conflict, set_conflicts, solve_conflicts)
3036 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
3037 (conflicts_print, print_reductions): Use a state_t instead of an
3038 integer when referring to a state.
3039 As much as possible, depend upon nlookaheads, instead of the
3040 `lookaheadsp' member of the following state (since lookaheads of
3041 successive states are successive, the difference between state n + 1
3042 and n served as the number of lookaheads for state n).
3043 * src/lalr.c (add_lookback_edge): Likewise.
3044 * src/print.c (print_core, print_actions, print_state)
3045 (print_results): Likewise.
3046 * src/print_graph.c (print_core, print_actions, print_state)
3047 (print_graph): Likewise.
3048 * src/conflicts.h: Adjust.
3050 2001-12-27 Akim Demaille <akim@epita.fr>
3052 * src/bison.hairy: Formatting/comment changes.
3054 Remove `register' indications.
3055 Add plenty of `static'.
3057 2001-12-27 Akim Demaille <akim@epita.fr>
3059 * src/output.c (prepare): Drop the muscle `ntbase' which
3061 * src/bison.simple: Formatting/comment changes.
3062 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
3063 is an undocumented synonym.
3065 2001-12-22 Akim Demaille <akim@epita.fr>
3067 * src/output.c (output_table_data): Change the prototype to use
3068 `int' for array ranges: some invocations do pass an int, not a
3070 Reported by Wayne Green.
3072 2001-12-22 Akim Demaille <akim@epita.fr>
3074 Some actions of web2c.y are improperly triggered.
3075 Reported by Mike Castle.
3077 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
3078 * tests/regression.at (Web2c): Rename as...
3079 (Web2c Report): this.
3080 (Web2c Actions): New.
3082 2001-12-22 Akim Demaille <akim@epita.fr>
3084 Reductions in web2c.y are improperly reported.
3085 Reported by Mike Castle.
3087 * src/conflicts.c (print_reductions): Fix.
3088 * tests/regression.at (Web2c): New.
3090 2001-12-18 Akim Demaille <akim@epita.fr>
3092 Some host fail on `assert (!"foo")', which expands to
3093 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
3094 Reported by Nelson Beebee.
3096 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
3097 `#define it_succeeded 0' and `assert (it_succeeded)'.
3099 2001-12-17 Marc Autret <autret_m@epita.fr>
3101 * src/bison.simple: Don't hard code the skeleton line and filename.
3102 * src/output.c (output_parser): Rename 'line' as 'output_line'.
3103 New line counter 'skeleton_line' (skeleton-line muscle).
3105 2001-12-17 Paul Eggert <eggert@twinsun.com>
3107 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
3108 YYDEBUG must be defined to a nonzero value.
3110 * src/bison.simple (yytname): Do not assume that the user defines
3111 YYDEBUG to a properly parenthesized expression.
3113 2001-12-17 Akim Demaille <akim@epita.fr>
3115 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
3116 nlookaheads is a new member.
3118 * src/lalr.h (nlookaheads): Remove this orphan declaration.
3119 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
3122 2001-12-17 Akim Demaille <akim@epita.fr>
3124 * src/files.h, src/files.c (open_files, close_files): Remove.
3125 * src/main.c (main): Don't open/close files, nor invoke lex_free,
3127 * src/reader.c (reader): Do it.
3129 2001-12-17 Akim Demaille <akim@epita.fr>
3131 * src/conflicts.c (print_reductions): Formatting changes.
3133 2001-12-17 Akim Demaille <akim@epita.fr>
3135 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
3136 (flush_reduce): New.
3137 (resolve_sr_conflict): Adjust.
3139 2001-12-17 Akim Demaille <akim@epita.fr>
3141 * src/output.c (output_obstack): Be static and rename as...
3142 (format_obstack): this, to avoid any confusion with files.c's
3144 * src/reader.h (muscle_obstack): Move to...
3145 * src/output.h: here, since it's defined in output.c.
3147 2001-12-17 Akim Demaille <akim@epita.fr>
3149 * src/output.c (action_row, save_column, default_goto)
3150 (sort_actions, matching_state, pack_vector): Better variable
3153 2001-12-17 Akim Demaille <akim@epita.fr>
3155 * src/output.c: Various formatting changes.
3157 2001-12-17 Akim Demaille <akim@epita.fr>
3159 * src/files.c (output_files): Free the output_obstack.
3160 * src/main.c (main): Call print and print_graph conditionally.
3161 * src/print.c (print): Work unconditionally.
3162 * src/print_graph.c (print_graph): Work unconditionally.
3163 * src/conflicts.c (log_resolution): Output only if verbose_flag.
3165 2001-12-16 Marc Autret <autret_m@epita.fr>
3167 * src/output.c (actions_output): Fix. When we use %no-lines,
3168 there is one less line per action.
3170 2001-12-16 Marc Autret <autret_m@epita.fr>
3172 * src/bison.simple: Remove a useless #line directive.
3173 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
3174 * src/output.c (get_lines_number): New.
3175 (output_parser): Adjust, now takes care about the lines of a
3178 (actions_output): Computes the number of lines taken by actions.
3179 (output_master_parser): Insert new skeleton which is the name of
3180 the output parser file name.
3182 2001-12-15 Marc Autret <autret_m@epita.fr>
3184 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
3186 2001-12-15 Marc Autret <autret_m@epita.fr>
3188 * src/output.c (output_gram): Keep track of the hairy one.
3190 2001-12-15 Akim Demaille <akim@epita.fr>
3192 Make `make distcheck' work.
3194 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
3195 system.h which uses libgettext.h.
3197 2001-12-15 Akim Demaille <akim@epita.fr>
3199 * src/nullable.c (set_nullable): Useless rules must be skipped,
3200 otherwise, since we range over their symbols, we might look at a
3201 nonterminal which no longer ``exists'', i.e., it is not counted in
3202 `nvars', hence we overflow our arrays.
3204 2001-12-15 Akim Demaille <akim@epita.fr>
3206 The header can also be produced directly, without any obstack!
3209 * src/files.c, src/files.h (defines_obstack): Remove.
3210 (compute_header_macro): Global.
3211 (defines_obstack_save): Remove.
3212 * src/reader.c (parse_union_decl): No longer output to
3213 defines_obstack: its content can be found in the `stype' muscle
3215 (output_token_translations): Merge into...
3216 (symbols_output): this.
3218 (symbols_save): this.
3220 * src/output.c (header_output): New.
3223 2001-12-15 Akim Demaille <akim@epita.fr>
3225 * src/reader.c (parse_union_decl): Instead of handling two obstack
3226 simultaneously, use one to define the `stype' muscle, and use the
3227 value of the latter to fill defines_obstack.
3228 (copy_comment): Remove.
3229 (copy_comment2): Work for a single obstack.
3231 (copy_comment): this.
3233 2001-12-15 Akim Demaille <akim@epita.fr>
3235 * src/lex.c, src/lex.h (xgetc): No longer static.
3236 * src/reader.c (parse_union_decl): Revamp.
3238 2001-12-15 Akim Demaille <akim@epita.fr>
3240 Still making progress in separating Bison into (i) input, (ii)
3241 process, (iii) output: now we can directly output the parser file
3242 without using table_obstack at all.
3244 * src/files.c, src/files.h (table_obstack): Bye bye.
3245 (parser_file_name): New.
3246 * src/files.c (compute_output_file_names): Compute it.
3247 * src/output.c (actions_output, output_parser)
3248 (output_master_parser): To a file instead of an obstack.
3250 2001-12-15 Akim Demaille <akim@epita.fr>
3252 Attach actions to rules, instead of pre-outputting them to
3255 * src/gram.h (rule_t): action and action_line are new members.
3256 * src/reader.c (symbol_list): Likewise.
3257 (copy_action): Save the actions within the rule.
3258 (packgram): Save them in rule_table.
3259 * src/output.c (actions_output): New.
3260 (output_parser): Use it on `%%actions'.
3261 (output_rule_data): Don't free rule_table.
3263 (prepare): Don't save the `action' muscle.
3264 * src/bison.simple: s/%%action/%%actions/.
3266 2001-12-15 Akim Demaille <akim@epita.fr>
3268 * src/reader.c (copy_action): When --yacc, don't append a `;'
3269 to the user action: let it fail if lacking.
3270 Suggested by Arnold Robbins and Tom Tromey.
3272 2001-12-14 Akim Demaille <akim@epita.fr>
3274 * src/lex.c (literalchar): Simply return the char you decoded, non
3275 longer mess around with obstacks and int pointers.
3278 2001-12-14 Akim Demaille <akim@epita.fr>
3280 * src/lex.c (literalchar): Don't escape the special characters,
3281 just decode them, and keep them as char (before, eol was output as
3282 the 2 char string `\n' etc.).
3283 * src/output.c (output_rule_data): Use quotearg to output the
3286 2001-12-13 Paul Eggert <eggert@twinsun.com>
3288 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
3289 Do not infringe on the global user namespace when using C++.
3290 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
3291 All uses of `fprintf' and `stderr' changed.
3293 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
3295 2001-12-13 Akim Demaille <akim@epita.fr>
3297 The computation of nullable is broken: it doesn't handle empty
3300 * tests/torture.at (GNU AWK Grammar): New.
3301 * tests/sets.at (Nullable): New.
3302 * src/nullable.c (set_nullable): Instead of blindly looping over
3303 `ritems', loop over the rules, and then over their rhs's.
3305 Work around Autotest bugs.
3307 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
3308 frame, because Autotest understand lines starting with a `+' as
3309 traces from the shell. Then, they are not processed properly.
3310 Admittedly an Autotest bug, but we don't have time to wait for
3311 Autotest to catch up.
3312 * tests/regression.at (Broken Closure): Adjust to the new table
3315 * tests/sets.at: here.
3317 2001-12-13 Akim Demaille <akim@epita.fr>
3319 * src/closure.c (closure): Use nrules instead of playing tricks
3322 2001-12-13 Akim Demaille <akim@epita.fr>
3324 * src/print.c (print_actions): Output the handling of `$' as the
3325 traces do: shifting the token EOF. Before EOF was treated as a
3327 * tests/regression.at: Adjust some tests.
3328 * src/print_graph.c (print_core): Complete the set of items via
3329 closure. The next-to-final and final states are still unsatisfying,
3330 but that's to be addressed elsewhere.
3331 No longer output the rule numbers, but do output the state number.
3332 A single loop for the shifts + gotos is enough, but picked a
3333 distinct color for each.
3334 (print_graph): Initialize and finalize closure.
3336 2001-12-13 Akim Demaille <akim@epita.fr>
3338 * src/reader.c (readgram): Remove dead code, an strip useless
3340 (get_type): Remove, unused.
3342 2001-12-12 Akim Demaille <akim@epita.fr>
3344 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
3345 on that of lib/error.c.
3347 2001-12-12 Akim Demaille <akim@epita.fr>
3349 Some hosts don't like `/' in includes.
3351 * src/system.h: Include libgettext.h without qualifying the path.
3352 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
3355 2001-12-11 Marc Autret <autret_m@epita.fr>
3357 * src/output.c (output_parser): Remove useless muscle.
3359 2001-12-11 Marc Autret <autret_m@epita.fr>
3361 * src/bison.simple: Remove #line just before %%epilogue. It
3362 is now handled in ...
3363 * src/reader.c (read_additionnal_code): Add the output of a
3364 #line for the epilogue.
3366 2001-12-10 Marc Autret <autret_m@epita.fr>
3368 * src/reader.c (copy_definition): Re-use CPP-outed code which
3369 replace precedent remove.
3370 * src/bison.simple: Remove #line before %%prologue because
3371 %%input-line is wrong at this time.
3373 2001-12-10 Marc Autret <autret_m@epita.fr>
3375 * src/reader.c (symbols_output): Clean up.
3376 * src/output.c (output_gram, output): Clean up.
3378 2001-12-10 Akim Demaille <akim@epita.fr>
3380 * src/lalr.c (initialize_lookaheads): New. Extracted from...
3381 * src/LR0.c (set_state_table): here.
3382 * src/lalr.c (lalr): Call it.
3384 2001-12-10 Akim Demaille <akim@epita.fr>
3386 * src/state.h (shifts): Remove the `number' member: shifts are
3387 attached to state, hence no longer need to be labelled with a
3390 2001-12-10 Akim Demaille <akim@epita.fr>
3392 Now that states have a complete set of members, the linked list of
3393 shifts is useless: just fill directly the state's shifts member.
3395 * src/state.h (shifts): Remove the `next' member.
3396 * src/LR0.c (first_state, last_state): Remove.
3398 (augment_automaton): Don't look for the shifts that must be added
3399 a shift on EOF: it is those of the state we looked for! But now,
3400 since shifts are attached, it is no longer needed to looking
3401 merely by its id: its number.
3403 2001-12-10 Akim Demaille <akim@epita.fr>
3405 * src/LR0.c (augment_automaton): Better variable locality.
3406 Remove an impossible branch: if there is a state corresponding to
3407 the start symbol being shifted, then there is shift for the start
3408 symbol from the initial state.
3410 2001-12-10 Akim Demaille <akim@epita.fr>
3412 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
3413 only when appropriate: when insert_start_shifting_state' is not
3415 * tests/regression.at (Rule Line Numbers): Adjust.
3417 2001-12-10 Akim Demaille <akim@epita.fr>
3419 * src/LR0.c (augment_automaton): Now that all states have shifts,
3420 merge the two cases addition shifts to the initial state.
3422 2001-12-10 Akim Demaille <akim@epita.fr>
3424 * src/lalr.c (set_state_table): Move to...
3426 * src/lalr.c (lalr): Don't call it...
3427 * src/LR0.c (generate_states): do it.
3428 * src/LR0.h (first_state): Remove, only the table is used.
3430 2001-12-10 Akim Demaille <akim@epita.fr>
3432 * src/LR0.h (first_shift, first_reduction): Remove.
3433 * src/lalr.c: Don't use first_shift: find shifts through the
3436 2001-12-10 Akim Demaille <akim@epita.fr>
3438 * src/LR0.c: Attach shifts to states as soon as they are
3440 * src/lalr.c (set_state_table): Instead of assigning shifts to
3441 state, just assert that the mapping was properly done.
3443 2001-12-10 Akim Demaille <akim@epita.fr>
3445 * src/LR0.c (insert_start_shift): Rename as...
3446 (insert_start_shifting_state): this.
3447 (insert_eof_shifting_state, insert_accepting_state): New.
3448 (augment_automaton): Adjust.
3449 Better locality of the variables.
3450 When looking if the start_symbol is shifted from the initial
3451 state, using `while (... symbol != start_symbol ...)' sounds
3452 better than `while (... symbol < start_symbol ...)': If fail
3453 to see how the order between symbols could be relevant!
3455 2001-12-10 Akim Demaille <akim@epita.fr>
3457 * src/getargs.h: Don't declare `spec_name_prefix' and
3458 `spec_file_prefix', declared by src/files.h.
3459 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
3460 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
3461 * src/output.c (prepare): Adjust.
3462 * src/reader.c (symbols_output): Likewise.
3463 * src/vmsgetargs.c: Vaguely adjust, but who cares?
3465 2001-12-10 Akim Demaille <akim@epita.fr>
3467 * src/muscle_tab.c (muscle_init): NULL is a better default than
3470 2001-12-10 Akim Demaille <akim@epita.fr>
3472 * src/reader.c (reader): Calling symbols_output once is enough.
3474 2001-12-10 Akim Demaille <akim@epita.fr>
3476 Now that states have a complete set of members, the linked list of
3477 reductions is useless: just fill directly the state's reductions
3480 * src/state.h (struct reductions): Remove member `number' and
3482 * src/LR0.c (first_reduction, last_reduction): Remove.
3483 (save_reductions): Don't link the new reductions, store them in
3485 * src/lalr.c (set_state_table): No need to attach reductions to
3486 states, it's already done.
3487 * src/output.c (output_actions): No longer free the shifts, then
3488 the reductions, then the states: free all the states and their
3491 2001-12-10 Akim Demaille <akim@epita.fr>
3493 * src/options.c (OPTN, DRTV, BOTH): New.
3494 (option_table): Use them.
3496 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
3497 the job of system.h.
3498 * src/options.c: Don't include stdio.h and xalloc.h for the same
3501 2001-12-10 Akim Demaille <akim@epita.fr>
3503 * src/output.c (output, prepare): Make sure the values of the
3504 muscles `action' and `prologue' are 0-terminated.
3506 2001-12-10 Akim Demaille <akim@epita.fr>
3508 Clean up GCC warnings.
3510 * src/reader.c (copy_action): `buf' is not used.
3511 (parse_skel_decl): Be static.
3512 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
3513 * src/options.h (create_long_option_table): Have a real prototype.
3514 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
3515 (hash_delete_at): Return const void *.
3516 Adjust casts to preserve the const.
3518 2001-12-10 Akim Demaille <akim@epita.fr>
3520 * configure.in: Require 2.52g.
3521 M4 is not needed, but AUTOM4TE is.
3523 * tests/Makefile.am: Adjust.
3525 2001-12-10 Akim Demaille <akim@epita.fr>
3527 One structure for states is enough, even though theoretically
3528 there are LR(0) states and LALR(1) states.
3530 * src/lalr.h (state_t): Remove.
3531 (state_table): Be state_t **, not state_t *.
3532 * src/state.h (core, CORE_ALLOC): Rename as...
3533 (state_t, STATE_ALLOC): this.
3534 Add the LALR(1) members: shifts, reductions, errs.
3535 * src/LR0.c (state_table): Rename as...
3536 (state_hash): this, to avoid name clashes with the global
3538 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
3539 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
3541 2001-12-10 Akim Demaille <akim@epita.fr>
3543 Bison dumps core on bash.y.
3544 Reported by Pascal Bart.
3546 * src/warshall.c (bitmatrix_print): New.
3548 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
3549 j must be the outer loop.
3550 * tests/regression.at (Broken Closure): New.
3552 2001-12-05 Akim Demaille <akim@epita.fr>
3554 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
3556 Reported by Peter Hámorský.
3558 2001-12-05 Akim Demaille <akim@epita.fr>
3560 * src/conflicts.c (err_table): Remove.
3561 (resolve_sr_conflict): Adjust.
3562 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
3564 (state_t.reductions, state_t.shifts): this.
3566 2001-12-05 Akim Demaille <akim@epita.fr>
3568 * src/reduce.c (reduce_grammar_tables): No longer disable the
3569 removal of useless rules via CPP but via `if (0)', so that the
3570 compiler still check the code is valid.
3571 For instance, it should have noticed `rline' no longer exists: use
3572 the `line' member of rule_t.
3573 * src/gram.c (dummy, rline): Remove, unused.
3575 2001-12-05 Akim Demaille <akim@epita.fr>
3577 * src/output.c (pack_vector): Use assert, not berror.
3578 * src/main.c (berror): Remove, unused.
3580 2001-12-05 Akim Demaille <akim@epita.fr>
3582 New experimental feature: if --verbose --trace output all the
3583 items of a state, not only its kernel.
3585 * src/print.c (print_core): If `trace_flag', then invoke closure
3586 before outputting the items of the state (print_core is no longer
3587 a correct name them).
3588 (print_results): Invoke new_closure/free_closure if needed.
3590 2001-12-05 Akim Demaille <akim@epita.fr>
3592 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
3593 * src/closure.c, src/closure.h (itemsetsize): Rename as...
3594 (nitemset): for consistency with the rest of the project.
3596 2001-12-05 Akim Demaille <akim@epita.fr>
3598 * src/closure.c (print_closure): Improve.
3599 (closure): Use it for printing input and output.
3601 2001-12-05 Akim Demaille <akim@epita.fr>
3603 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
3604 indexed by nonterminals.
3606 2001-12-05 Akim Demaille <akim@epita.fr>
3608 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
3610 * src/warshall.h: Remove accidental duplication of the content.
3612 2001-12-05 Akim Demaille <akim@epita.fr>
3614 * src/closure.c (set_fderives): De-obfuscate.
3616 2001-12-05 Akim Demaille <akim@epita.fr>
3618 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
3620 2001-12-05 Akim Demaille <akim@epita.fr>
3622 * src/closure.c (set_firsts): De-obfuscate.
3624 2001-12-05 Akim Demaille <akim@epita.fr>
3626 * src/output.c (action_row): De-obfuscate
3627 using the good o' techniques: arrays not pointers, variable
3628 locality, BITISSET, RESETBIT etc.
3630 2001-12-05 Akim Demaille <akim@epita.fr>
3632 Pessimize the code to simplify it: from now on, all the states
3633 have a valid SHIFTS, which NSHIFTS is possibly 0.
3635 * src/LR0.c (shifts_new): Be global and move to..
3636 * src/state.c, src/state.h: here.
3637 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
3638 * src/print_graph: Adjust.
3640 2001-12-05 Akim Demaille <akim@epita.fr>
3642 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
3643 * src/conflicts.c: Use it.
3644 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
3645 incorrectly ``simplified''.
3647 2001-12-05 Akim Demaille <akim@epita.fr>
3649 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
3650 using the good o' techniques: arrays not pointers, variable
3651 locality, BITISSET, RESETBIT etc.
3653 2001-12-05 Akim Demaille <akim@epita.fr>
3655 * src/state.h (SHIFT_SYMBOL): New.
3656 * src/conflicts.c: Use it to deobfuscate.
3658 2001-12-05 Akim Demaille <akim@epita.fr>
3660 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
3661 (print_reductions): De-obfuscate using the good o' techniques:
3662 arrays not pointers, variable locality, BITISSET.
3664 2001-12-05 Akim Demaille <akim@epita.fr>
3666 * src/conflicts.c (print_reductions): Arrays, not pointers.
3669 2001-12-05 Akim Demaille <akim@epita.fr>
3671 * src/conflicts.c (print_reductions): Pessimize, but clarify.
3673 2001-12-05 Akim Demaille <akim@epita.fr>
3675 * src/conflicts.c (print_reductions): Improve variable locality.
3677 2001-12-05 Akim Demaille <akim@epita.fr>
3679 * src/conflicts.c (print_reductions): Pessimize, but clarify.
3681 2001-12-05 Akim Demaille <akim@epita.fr>
3683 * src/conflicts.c (print_reductions): Improve variable locality.
3685 2001-12-05 Akim Demaille <akim@epita.fr>
3687 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
3688 * src/lalr.c: Use them.
3690 2001-12-05 Akim Demaille <akim@epita.fr>
3692 * src/LR0.c (augment_automaton): Formatting changes.
3693 Better variable locality.
3695 2001-12-05 Akim Demaille <akim@epita.fr>
3697 * src/lalr.c (matrix_print): New.
3698 (transpose): Use it.
3699 Use arrays instead of pointers.
3701 2001-12-05 Akim Demaille <akim@epita.fr>
3703 * src/lalr.c (maxrhs): Move to...
3704 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
3705 * src/lalr.c (build_relations): Adjust.
3707 2001-12-05 Akim Demaille <akim@epita.fr>
3709 * src/lalr.c (transpose): Free the memory allocated to the
3710 argument, as it is replaced by the results by the unique caller.
3711 (build_relations): Merely invoke transpose: it handles the memory
3713 Improve variable locality.
3714 Avoid variables used as mere abbreviations.
3715 (compute_lookaheads): Use arrays instead of pointers.
3717 2001-12-05 Akim Demaille <akim@epita.fr>
3719 * src/lalr.c (initialize_F): Improve variable locality.
3720 Avoid variables used as mere abbreviations.
3722 2001-12-05 Akim Demaille <akim@epita.fr>
3724 * src/derives.c (print_derives): Display the ruleno.
3725 * src/lalr.c (initialize_F, transpose): Better variable locality
3726 to improve readability.
3727 Avoid variables used as mere abbreviations.
3729 2001-12-05 Akim Demaille <akim@epita.fr>
3731 * src/lalr.c (traverse): Use arrays instead of pointers.
3733 2001-12-05 Akim Demaille <akim@epita.fr>
3735 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
3736 the handling of squeue.
3737 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
3739 2001-12-05 Akim Demaille <akim@epita.fr>
3741 Because useless nonterminals are now kept alive (instead of being
3742 `destroyed'), we now sometimes examine them, and store information
3743 related to them. Hence we need to know their number, and adjust
3746 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
3748 * src/LR0.c (allocate_itemsets): The memory allocated to
3749 `symbol_count' was used for two different purpose: once to count
3750 the number of occurrences of each symbol, and later reassigned to
3751 `shift_symbol', containing the symbol that can be shifted from a
3753 Deobfuscate, i.e., allocate, use and free `symbol_count' here
3755 (new_itemsets): Allocate `shift_symbol' here.
3756 (allocate_itemsets): symbol_count includes useless nonterminals.
3758 (free_storage): Use `free', not `XFREE', for pointers that cannot
3761 2001-12-05 Akim Demaille <akim@epita.fr>
3763 * src/nullable.c (set_nullable): Deobfuscate the handling of
3765 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
3767 2001-12-05 Akim Demaille <akim@epita.fr>
3769 * src/gram.c, src/gram.h (ritem_print): New.
3770 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
3771 (This useless function was defined only to work around VMS linkers
3772 that can't handle compilation units with variables only).
3773 * src/reduce.c (dump_grammar): Use it to trace the construction of
3776 2001-12-04 Paul Eggert <eggert@twinsun.com>
3778 * src/bison.simple (union yyalloc): Change member names
3779 to be the same as the stack names.
3780 (yyparse): yyptr is now union yyalloc *, not char *.
3781 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
3782 and may generate better code on some machines.
3783 (yystpcpy): Use prototype if __STDC__ is defined, not just
3784 if __cplusplus is defined.
3786 2001-11-30 Akim Demaille <akim@epita.fr>
3788 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
3789 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
3790 Gettext doesn't compile cleanly, and dies with -Werror.
3791 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
3792 Include WARNING_CFLAGS here.
3793 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
3794 before being defined.
3796 2001-11-27 Paul Eggert <eggert@twinsun.com>
3798 * lib/quotearg.h (quotearg_n, quotearg_n_style):
3799 First arg is int, not unsigned.
3800 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
3801 (SIZE_MAX, UINT_MAX): New macros.
3802 (quotearg_n_options): Abort if N is negative.
3803 Avoid overflow check on hosts where size_t is 64 bits and int
3804 is 32 bits, as overflow is impossible there.
3805 Fix off-by-one typo that caused unnecessary reallocation.
3807 2001-11-29 Paul Eggert <eggert@twinsun.com>
3809 Name space cleanup in generated parser.
3811 * doc/bison.texinfo (Bison Parser): Discuss system headers
3812 and their effect on the user name space.
3815 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
3816 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
3817 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
3819 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
3820 on user names when possible.
3822 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
3823 Simplify test for whather <alloca.h> exists.
3825 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
3827 (<stdio.h>): Include if YYDEBUG.
3829 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
3830 ! defined (yyoverflow) && ! defined (yymemcpy).
3832 (yymemcpy, yyparse): Rename local variables as needed so that
3833 they all begin with 'yy'.
3835 (yystrlen, yystpcpy): New functions.
3837 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
3840 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
3841 instead of relying on string.h functions. Use YYSTACK_ALLOC
3842 and YYSTACK_FREE instead of malloc and free.
3844 2001-11-30 Akim Demaille <akim@epita.fr>
3846 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
3847 before their first uses.
3848 (YYBISON, YYPURE): Move to the top of the output.
3850 2001-11-30 Akim Demaille <akim@epita.fr>
3852 * tests/reduce.at (Useless Nonterminals): Fix.
3854 2001-11-30 Akim Demaille <akim@epita.fr>
3856 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
3857 if body instead of `;' to pacify GCC's warnings.
3859 2001-11-30 Akim Demaille <akim@epita.fr>
3861 Instead of mapping the LHS of unused rules to -1, keep the LHS
3862 valid, but flag the rules as invalid.
3864 * src/gram.h (rule_t): `useful' is a new member.
3865 * src/print.c (print_grammar): Adjust.
3866 * src/derives.c (set_derives): Likewise.
3867 * src/reader.c (packgram, reduce_output): Likewise.
3868 * src/reduce.c (reduce_grammar_tables): Likewise.
3869 * tests/reduce.at (Underivable Rules, Useless Rules): New.
3871 2001-11-30 Akim Demaille <akim@epita.fr>
3873 * src/reduce.c (reduce_output): Formatting changes.
3874 * src/print.c (print_results, print_grammar): Likewise.
3875 * tests/regression.at (Rule Line Numbers)
3876 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
3878 2001-11-30 Akim Demaille <akim@epita.fr>
3880 * src/reduce.c (nonterminals_reduce): Instead of throwing away
3881 useless nonterminals, move them at the end of the symbol arrays.
3882 (reduce_output): Adjust.
3883 * tests/reduce.at (Useless Nonterminals): Adjust.
3885 2001-11-30 Akim Demaille <akim@epita.fr>
3887 * src/reduce.c: Various comment/formatting changes.
3888 (nonterminals_reduce): New, extracted from...
3889 (reduce_grammar_tables): here.
3890 (reduce_grammar): Call nonterminals_reduce.
3892 2001-11-29 Paul Eggert <eggert@twinsun.com>
3894 * src/bison.simple (YYSTACK_REALLOC): Remove.
3895 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
3896 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
3898 (union yyalloc): New type.
3899 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
3900 an arbitrary restriction on hosts where size_t is wider than int.
3902 (yyparse): Don't dump core if alloca or malloc fails; instead, report
3903 a parser stack overflow. Allocate just one block of memory for all
3904 three stacks, instead of allocating three blocks; this typically is
3905 faster and reduces fragmentation.
3907 Do not limit the number of items in the stack to a value that fits
3908 in 'int', as this is an arbitrary limit on hosts with 64-bit
3909 size_t and 32-bit int.
3911 2001-11-29 Marc Autret <autret_m@epita.fr>
3913 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
3914 of defining YYERROR_VERBOSE.
3915 [AT_DATA]: $4 is now out of C declarations in the prologue.
3917 2001-11-28 Marc Autret <autret_m@epita.fr>
3919 * src/reader.c (parse_dquoted_param): New.
3920 (parse_skel_decl): Use it.
3921 * src/lex.h: Add its prototype.
3922 * src/lex.c (literalchar): Become not static.
3924 2001-11-28 Marc Autret <autret_m@epita.fr>
3926 * src/output.h: And put its extern declaration here.
3927 * src/output.c (error_verbose): Define here.
3928 (prepare): Echo name modification.
3929 * src/getargs.h: Clean its extern declaration.
3930 * src/getargs.c (error_verbose_flag): Remove.
3931 (getargs): Remove case 'e'.
3932 * src/options.c (option_table): 'error-verbose' is now seen as simple
3936 * src/reader.c (read_declarations): Remove case tok_include.
3937 (parse_include_decl): Remove.
3938 * src/lex.h (token_t): Remove tok_include.
3939 * src/options.c (option_table): 'include' is now a simple command line
3942 2001-11-28 Marc Autret <autret_m@epita.fr>
3944 * src/bison.simple: Adjust muscle names.
3945 * src/muscle_tab.c (muscle_init): Also rename the muscles.
3946 * src/output.c (prepare): s/_/-/ for the muscles names.
3947 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
3949 2001-11-28 Marc Autret <autret_m@epita.fr>
3951 * src/bison.simple: Fix debug.
3952 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
3954 2001-11-28 Akim Demaille <akim@epita.fr>
3956 * src/LR0.c (shifts_new): New.
3957 (save_shifts, insert_start_shift, augment_automaton): Use it.
3959 2001-11-28 Akim Demaille <akim@epita.fr>
3961 * src/closure.c (closure): `b' and `ruleno' denote the same value:
3964 2001-11-28 Akim Demaille <akim@epita.fr>
3966 * src/closure.c (closure): Instead of looping over word in array
3967 then bits in words, loop over bits in array.
3969 2001-11-28 Akim Demaille <akim@epita.fr>
3971 * src/closure.c (closure): No longer optimize the special case
3972 where all the bits of `ruleset[r]' are set to 0, to make the code
3975 2001-11-28 Akim Demaille <akim@epita.fr>
3977 * src/closure.c (closure): `r' and `c' are new variables, used to
3978 de-obfuscate accesses to RULESET and CORE.
3980 2001-11-28 Akim Demaille <akim@epita.fr>
3982 * src/reduce.c (reduce_print): Use ngettext.
3983 (dump_grammar): Improve the trace accuracy.
3985 2001-11-28 Akim Demaille <akim@epita.fr>
3987 * src/reduce.c (dump_grammar): Don't translate trace messages.
3989 2001-11-28 Akim Demaille <akim@epita.fr>
3991 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
3992 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
3993 as all tags are free'ed afterwards.
3996 2001-11-27 Paul Eggert <eggert@twinsun.com>
3998 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
3999 use alloca when we didn't want to, and vice versa.
4001 2001-11-27 Marc Autret <autret_m@epita.fr>
4003 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
4005 * src/output.c (prepare): Remove its update.
4007 2001-11-27 Marc Autret <autret_m@epita.fr>
4009 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
4012 2001-11-27 Marc Autret <autret_m@epita.fr>
4014 * src/bison.simple: Remove YYERROR_VERBOSE using.
4015 Use %%error_verbose.
4016 (yyparse): Likewise.
4017 * src/output.c (prepare): Give its final value.
4018 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
4019 * src/getargs.h: Add its extern declaration.
4020 * src/getargs.c (error_verbose_flag): New int.
4021 (getargs): Update to catch new case.
4022 * src/options.c (option_table): 'error-verbose' is a new option.
4023 (shortopts): Update.
4025 2001-11-27 Akim Demaille <akim@epita.fr>
4027 * src/system.h: Use intl/libgettext.h.
4028 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
4030 2001-11-27 Akim Demaille <akim@epita.fr>
4032 * tests/torture.at (Exploding the Stack Size with Malloc):
4033 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
4035 2001-11-27 Akim Demaille <akim@epita.fr>
4037 * src/files.c: Include error.h.
4038 Reported by Hans Aberg.
4040 2001-11-26 Marc Autret <autret_m@epita.fr>
4042 * src/reader.c (parse_include_decl): New, not yet implemented.
4043 (read_declarations): Add case tok_include.
4044 * src/getargs.h (include): Add its extern definition.
4045 * src/getargs.c (include): New const char *.
4046 (getargs): Add case '-I'.
4047 * src/options.c (option_table): Add include as command line and
4049 * src/lex.h (token_t): Add tok_include.
4051 2001-11-26 Akim Demaille <akim@epita.fr>
4053 * src/reader.c (readgram): Make sure rules for mid-rule actions
4054 have a lineno equal to that of their host rule.
4055 Reported by Hans Aberg.
4056 * tests/regression.at (Rule Line Numbers): New.
4058 2001-11-26 Akim Demaille <akim@epita.fr>
4060 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
4063 2001-11-26 Akim Demaille <akim@epita.fr>
4065 * src/complain.c, src/complain.h (error): Remove, provided by
4068 2001-11-26 Akim Demaille <akim@epita.fr>
4070 * src/reader.c (read_declarations): Don't abort on tok_illegal,
4071 issue an error message.
4072 * tests/regression.at (Invalid %directive): New.
4073 Reported by Hans Aberg.
4075 2001-11-26 Akim Demaille <akim@epita.fr>
4077 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
4078 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
4080 2001-11-26 Akim Demaille <akim@epita.fr>
4082 * src/conflicts.c (conflicts_print): Don't complain at all when
4083 there are no reduce/reduce conflicts, and as many shift/reduce
4084 conflicts as expected.
4085 * tests/regression.at (%expect right): Adjust.
4087 2001-11-23 Akim Demaille <akim@epita.fr>
4089 * lib/alloca.c: Update, from fileutils.
4091 2001-11-23 Akim Demaille <akim@epita.fr>
4093 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
4095 2001-11-23 Akim Demaille <akim@epita.fr>
4097 * src/system.h: Include alloca.h.
4098 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
4100 2001-11-23 Akim Demaille <akim@epita.fr>
4102 * src/print_graph.c (print_actions): Remove `rule', unused.
4103 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
4104 pacify GCC's signed < unsigned warnings.
4105 * src/closure.c (itemsetsize): Likewise.
4106 * src/reader.c (symbol_list_new): Static.
4108 2001-11-23 Akim Demaille <akim@epita.fr>
4110 Attaching lineno to buckets is stupid, since only one copy of each
4111 symbol is kept, only the line of the first occurrence is kept too.
4113 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
4114 * src/reader.c (rline_allocated): Remove, unused.
4115 (symbol_list): Have a `line' member.
4116 (symbol_list_new): New.
4118 * src/print.c (print_grammar): Output the rule line numbers.
4119 * tests/regression.at (Solved SR Conflicts)
4120 (Unresolved SR Conflicts): Adjust.
4121 Reported by Hans Aberg.
4123 2001-11-22 Marc Autret <autret_m@epita.fr>
4125 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
4127 2001-11-22 Marc Autret <autret_m@epita.fr>
4129 * src/muscle_tab.c (muscle_init): Remove initialization of
4131 * src/output.c (output_master_parser): Do it here.
4133 2001-11-20 Akim Demaille <akim@epita.fr>
4136 * configure.in (ALL_LINGUAS): Adjust.
4137 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
4138 longer contains strings to translate.
4140 2001-11-19 Akim Demaille <akim@epita.fr>
4142 * src/conflicts.c (conflicts_print): Add a missing \n.
4144 2001-11-19 Akim Demaille <akim@epita.fr>
4146 * src/nullable.c (nullable_print): New.
4147 (set_nullable): Call it when tracing.
4148 Better locality of variables.
4150 2001-11-19 Akim Demaille <akim@epita.fr>
4152 * src/print.c (print_actions): Better locality of variables.
4154 2001-11-19 Akim Demaille <akim@epita.fr>
4156 * src/derives.c (print_derives): Fix and enrich.
4157 * src/closure.c (print_fderives): Likewise.
4159 2001-11-19 Akim Demaille <akim@epita.fr>
4161 * src/closure.c (itemsetend): Remove, replaced with...
4164 2001-11-19 Akim Demaille <akim@epita.fr>
4166 * src/LR0.c (kernel_end): Remove, replaced with...
4169 2001-11-19 Akim Demaille <akim@epita.fr>
4171 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
4174 2001-11-19 Akim Demaille <akim@epita.fr>
4176 * src/closure.c (closure): Use arrays instead of pointers to clarify.
4178 2001-11-19 Akim Demaille <akim@epita.fr>
4180 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
4182 * src/LR0.c: Likewise.
4183 (allocate_itemsets): Use arrays instead of pointers to clarify.
4185 2001-11-19 Akim Demaille <akim@epita.fr>
4187 * src/getargs.c (statistics_flag): Replace with...
4189 (longopts): Accept --trace instead of --statistics.
4190 * src/getargs.h, src/options.c: Adjust.
4191 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
4192 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
4194 2001-11-19 Akim Demaille <akim@epita.fr>
4196 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
4197 pointers to clarify the code.
4198 (save_reductions, save_shifts): Factor common parts of alternatives.
4200 2001-11-19 Akim Demaille <akim@epita.fr>
4202 * src/LR0.c (new_state, get_state): Complete TRACE code.
4203 * src/closure.c: Include `reader.h' to get `tags', needed by the
4205 Rename the conditional DEBUG as TRACE.
4206 Output consistently TRACEs to stderr, not stdout.
4207 * src/derives.c: Likewise.
4208 * src/reduce.c: (inaccessable_symbols): Using if is better style
4210 Use `#if TRACE' instead of `#if 0' for tracing code.
4212 2001-11-19 Akim Demaille <akim@epita.fr>
4214 * src/system.h (LIST_FREE, shortcpy): New.
4215 * src/LR0.c: Use them.
4216 * src/output.c (free_itemsets, free_reductions, free_shifts):
4217 Remove, replaced by LIST_FREE.
4219 2001-11-19 Akim Demaille <akim@epita.fr>
4221 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
4222 (REDUCTIONS_ALLOC): New.
4223 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
4226 2001-11-19 Akim Demaille <akim@epita.fr>
4228 * src/LR0.c (new_state): Complete trace code.
4229 * src/nullable.c (set_nullable): Don't translate traces.
4231 2001-11-19 Akim Demaille <akim@epita.fr>
4233 * src/print_graph.c (print_core): Better locality of variables.
4234 * src/print.c (print_core): Likewise.
4236 2001-11-19 Akim Demaille <akim@epita.fr>
4238 * src/vcg.c: You do the output, so you are responsible of the
4239 handling of VCG syntax, in particular: use quotearg.
4240 * src/print_graph.c: Don't.
4241 (print_actions): Don't output the actions as part of the nodes,
4242 since that's the job of the edges.
4243 (print_state): Don't output by hand: fill the node description,
4244 and ask for its output.
4246 2001-11-19 Akim Demaille <akim@epita.fr>
4248 * src/bison.simple (yyparse): When verbosely reporting an error,
4249 no longer put additional quotes around token names.
4250 * tests/calc.at: Adjust.
4252 2001-11-19 Akim Demaille <akim@epita.fr>
4254 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
4255 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
4256 * src/output.c: Adjust.
4258 2001-11-19 Akim Demaille <akim@epita.fr>
4260 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
4262 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
4264 2001-11-19 Akim Demaille <akim@epita.fr>
4266 * src/gram.h (rule_t): New.
4268 (rrhs, rlhs): Remove, part of state_t.
4269 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
4270 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
4271 * src/reader.c, src/reduce.c: Adjust.
4273 2001-11-19 Akim Demaille <akim@epita.fr>
4275 * src/reader.c (symbols_output): New, extracted from...
4276 (packsymbols): Here.
4279 2001-11-19 Akim Demaille <akim@epita.fr>
4281 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
4282 (maxrhs): this new function.
4284 2001-11-19 Akim Demaille <akim@epita.fr>
4286 * src/lalr.c (F): New macro to access the variable F.
4289 2001-11-19 Akim Demaille <akim@epita.fr>
4291 * src/lalr.h (LA): New macro to access the variable LA.
4292 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
4293 * src/lalr.c: Adjust.
4295 2001-11-19 Akim Demaille <akim@epita.fr>
4297 * src/lalr.c (initialize_LA): Only initialize LA. Let...
4298 (set_state_table): handle the `lookaheads' members.
4300 2001-11-19 Akim Demaille <akim@epita.fr>
4302 * src/lalr.h (lookaheads): Removed array, whose contents is now
4304 (state_t): this structure.
4305 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
4308 2001-11-19 Akim Demaille <akim@epita.fr>
4310 * src/lalr.h (consistent): Removed array, whose contents is now
4312 (state_t): this structure.
4313 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
4316 2001-11-19 Akim Demaille <akim@epita.fr>
4318 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
4319 contents are now members of...
4320 (state_t): this structure.
4321 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
4324 2001-11-19 Akim Demaille <akim@epita.fr>
4326 * src/lalr.h (state_t): New.
4327 (state_table): Be a state_t * instead of a core **.
4328 (accessing_symbol): Remove, part of state_t.
4329 * src/lalr.c: Adjust.
4330 (set_accessing_symbol): Merge into...
4331 (set_state_table): this.
4332 * src/print_graph.c, src/conflicts.c: Adjust.
4334 2001-11-14 Akim Demaille <akim@epita.fr>
4336 * tests/calc.at, tests/output.at, tests/regression.at,
4337 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
4338 now the tests are run in private dirs, therefore AC_CLEANUP and
4339 family can be simplified to 0-ary.
4340 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
4341 use abs. path to find config.h.
4342 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
4343 stderr, there can be way too much random noise.
4344 Instead pass -Werror to GCC and rely on the exit status.
4345 Reported by Wolfram Wagner.
4347 2001-11-14 Akim Demaille <akim@epita.fr>
4349 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
4350 defined only if yyoverflow is defined, to avoid `warning: unused
4352 Reported by The Test Suite.
4354 2001-11-14 Akim Demaille <akim@epita.fr>
4356 * src/print.c: Include reduce.h.
4357 Reported by Hans Aberg.
4359 2001-11-14 Akim Demaille <akim@epita.fr>
4361 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
4362 Revert a previous patch: these are really const.
4363 * src/conflicts.c (conflict_report): Additional useless pair of
4364 braces to pacify GCC's warnings for `if () if () {} else {}'.
4365 * src/lex.c (parse_percent_token): Replace equal_offset with
4368 Be sure to strdup `arg' when used, since there is no reason for
4369 token_buffer not to change.
4371 2001-11-14 Akim Demaille <akim@epita.fr>
4373 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
4375 * src/main.c (main): Use them.
4376 Suggested by Hans Aberg.
4378 2001-11-12 Akim Demaille <akim@epita.fr>
4380 * src/system.h (ngettext): Now that we use ngettext, be sure to
4381 provide a default definition when NLS are not used.
4383 2001-11-12 Akim Demaille <akim@epita.fr>
4385 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
4386 Use @kbd to denote user input.
4387 (Language and Grammar): ANSIfy the example.
4388 Adjust its layout for info/notinfo.
4389 (Location Tracking Calc): Output error messages to stderr.
4390 Output locations in a more GNUtically correct way.
4391 Fix a couple of Englishos.
4392 Adjust @group/@end group pairs.
4394 2001-11-12 Akim Demaille <akim@epita.fr>
4396 %expext was not functioning at all.
4398 * src/conflicts.c (expected_conflicts): Set to -1.
4399 (conflict_report): Use ngettext.
4400 (conflicts_print): Check %expect and make its violation an error.
4401 * doc/bison.texinfo (Expect Decl): Adjust.
4402 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
4403 * tests/regression.at (%expect not enough, %expect right)
4404 (%expect too much): New.
4406 2001-11-12 Akim Demaille <akim@epita.fr>
4408 * tests/regression.at (Conflicts): Rename as...
4409 (Unresolved SR Conflicts): this.
4410 (Solved SR Conflicts): New.
4412 2001-11-12 Akim Demaille <akim@epita.fr>
4414 * src/reduce.c (print_results): Rename as...
4415 (reduce_output): This.
4416 Output to OUT, passed as argument, instead of output_obstack.
4417 (dump_grammar): Likewise.
4420 (reduce_grammar): No longer call reduce_output, since...
4421 * src/print.c (print_results): do it.
4422 * src/main.c (main): Call reduce_free;
4424 2001-11-12 Akim Demaille <akim@epita.fr>
4426 * src/conflicts.c (print_reductions): Accept OUT as argument.
4427 Output to it, not to output_obstack.
4428 * src/print.c (print_actions): Adjust.
4430 2001-11-12 Akim Demaille <akim@epita.fr>
4432 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
4433 the result instead of using...
4434 (src_total, rrc_total, src_count, rrc_count): Remove.
4435 (any_conflicts): Remove.
4436 (print_conflicts): Split into...
4437 (conflicts_print, conflicts_output): New.
4438 * src/conflicts.h: Adjust.
4439 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
4440 * src/print.c (print_grammar): Issue `\n' between two rules.
4441 * tests/regression.at (Conflicts): New.
4442 Reported by Tom Lane.
4444 2001-11-12 Akim Demaille <akim@epita.fr>
4446 * tests/regression.at (Invalid input): Remove, duplicate with
4447 ``Invalid input: 1''.
4449 2001-11-12 Akim Demaille <akim@epita.fr>
4451 * tests/torture.at (AT_DATA_STACK_TORTURE)
4452 (Exploding the Stack Size with Alloca)
4453 (Exploding the Stack Size with Malloc): New.
4455 2001-11-12 Akim Demaille <akim@epita.fr>
4457 * src/bison.simple (YYSTACK_REALLOC): New.
4458 (yyparse) [!yyoverflow]: Use it and free the old stack.
4459 Reported by Per Allansson.
4461 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
4463 * src/bison.simple: Define type yystype instead of YYSTYPE, and
4464 define CPP macro, which substitute YYSTYPE by yystype.
4465 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
4466 with yyltype/YYLTYPE. This allows inclusion of the generated
4467 header within the parser if the compiler, such as GGC, accepts
4468 multiple equivalent #defines.
4471 2001-11-05 Akim Demaille <akim@epita.fr>
4473 * src/reader.c (symbols_output): New, extracted from...
4474 (packsymbols): here.
4477 2001-11-05 Akim Demaille <akim@epita.fr>
4479 * src/lex.c (parse_percent_token): s/quotearg/quote/.
4481 2001-11-05 Akim Demaille <akim@epita.fr>
4483 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
4486 2001-11-05 Akim Demaille <akim@epita.fr>
4488 * src/options.h (struct option_table_struct): set_flags is void*.
4489 * src/options.c (longopts): Support `--output' and `%output'.
4491 * src/lex.h (tok_setopt): Remove, replaced with...
4492 (tok_intopt, tok_stropt): these new guys.
4493 * src/lex.c (getopt.h): Not needed.
4494 (token_buffer, unlexed_token_buffer): Not const.
4495 (percent_table): Promote `-' over `_' in directive names.
4496 Active `%name-prefix', `file-prefix', and `output'.
4497 (parse_percent_token): Accept possible arguments to directives.
4498 Promote `-' over `_' in directive names.
4500 2001-11-04 Akim Demaille <akim@epita.fr>
4502 * doc/bison.texinfo (Decl Summary): Split the list into
4503 `directives for grammars' and `directives for bison'.
4505 Add description of `%name-prefix', `file-prefix', and `output'.
4506 Promote `-' over `_' in directive names.
4507 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
4508 Simplify the description of `--name-prefix'.
4509 Promote `-' over `_' in directive names.
4510 Promote `--output' over `--output-file'.
4511 Fix the description of `--defines'.
4512 * tests/output.at: Exercise %file-prefix and %output.
4514 2001-11-02 Akim Demaille <akim@epita.fr>
4516 * doc/refcard.tex: Update.
4518 2001-11-02 Akim Demaille <akim@epita.fr>
4520 * src/symtab.h (SUNDEF): New.
4521 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
4522 stand for `uninitialized', instead of 0.
4523 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
4524 * src/lex.c (lex): Adjust.
4526 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
4528 Let yylex return it instead of a plain 0.
4529 Reported by Dick Streefland.
4531 2001-11-02 Akim Demaille <akim@epita.fr>
4533 * tests/regression.at (Mixing %token styles): New test.
4535 2001-11-02 Akim Demaille <akim@epita.fr>
4537 * src/reader.c (parse_thong_decl): Formatting changes.
4538 (token_translations_init): New, extracted from...
4539 (packsymbols): Here.
4542 2001-11-01 Akim Demaille <akim@epita.fr>
4544 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
4545 Check that `9foo.y' produces correct cpp guards.
4546 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
4550 2001-11-01 Akim Demaille <akim@epita.fr>
4552 * tests/regression.at (Invalid input: 2): New.
4553 * src/lex.c (unlexed_token_buffer): New.
4554 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
4558 2001-11-01 Akim Demaille <akim@epita.fr>
4560 * tests/calc.at: Catch up with 1.30.
4561 * configure.in: Bump to 1.49a.
4562 Adjust to newer Autotest.
4564 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
4566 * src/conflicts.c: Move global variables rrc_total and src_total ...
4567 (print_conflicts): here.
4568 * src/output.c (output): Free global variable user_toknums.
4569 * src/lex.c (token_obstack): Become static.
4571 2001-10-18 Akim Demaille <akim@epita.fr>
4573 * tests/atlocal.in (GCC): Add.
4574 * tests/calc.at: s/m4_match/m4_bmatch/.
4575 s/m4_patsubst/m4_bpatsubst/.
4576 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
4577 * configure.in: AC_SUBST(GCC).
4579 2001-10-14 Marc Autret <autret_m@epita.fr>
4581 * src/options.c (create_long_option_table): Fix.
4583 2001-10-10 Akim Demaille <akim@epita.fr>
4585 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
4587 2001-10-04 Akim Demaille <akim@epita.fr>
4589 * src/reader.c (parse_union_decl): Push the caracters in
4590 union_obstack, not attrs_obstack.
4592 2001-10-04 Akim Demaille <akim@epita.fr>
4594 Merge in the branch 1.29.
4596 * src/reader.c (packsymbols): Use a temporary obstack for
4597 `%%tokendef', since output_stack is already used elsewhere.
4599 2001-10-02 Akim Demaille <akim@epita.fr>
4603 2001-10-02 Akim Demaille <akim@epita.fr>
4607 2001-10-02 Akim Demaille <akim@epita.fr>
4609 * tests/regression.at (Invalid CPP headers): New.
4610 From Alexander Belopolsky.
4611 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
4613 2001-10-02 Akim Demaille <akim@epita.fr>
4615 * tests/regression.at (Invalid input): New.
4616 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
4619 2001-10-02 Akim Demaille <akim@epita.fr>
4621 * tests/calc.at: Now that --debug works, the tests must be adjusted.
4623 2001-10-02 Akim Demaille <akim@epita.fr>
4625 * src/output.c (output_parser): Assert `skeleton'.
4626 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
4630 2001-10-01 Marc Autret <autret_m@epita.fr>
4632 * src/lex.h: Echo modifications.
4633 * src/lex.c (unlex): Parameter is now token_t.
4636 2001-10-01 Marc Autret <autret_m@epita.fr>
4638 * src/main.c: Include lex.h.
4641 2001-09-29 Akim Demaille <akim@epita.fr>
4643 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
4645 2001-09-28 Akim Demaille <akim@epita.fr>
4647 * tests/testsuite.at: Update to newer Autotest.
4648 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
4650 2001-09-27 Akim Demaille <akim@epita.fr>
4652 Position independent wrapper.
4654 * tests/bison: Remove.
4655 * tests/bison.in: New.
4656 * configure.in: Adjust.
4658 2001-09-27 Paul Eggert <eggert@twinsun.com>
4660 Port quotearg fixes from tar 1.13.24.
4662 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
4664 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
4665 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
4667 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
4668 * m4/mbrtowc.m4: New file.
4669 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
4670 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
4672 2001-09-27 Akim Demaille <akim@epita.fr>
4676 2001-09-27 Akim Demaille <akim@epita.fr>
4680 2001-09-25 Akim Demaille <akim@epita.fr>
4682 * src/system.h: Include `xalloc.h'.
4683 Remove it from the C files.
4684 * src/files.c (output_files): Free the obstacks.
4685 * src/lex.c (init_lex): Rename as...
4688 * src/main.c (main): Use it.
4690 2001-09-24 Marc Autret <autret_m@epita.fr>
4692 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
4693 to output informations in fout (FILE*).
4694 (open_graph, close_graph): Likewise.
4695 (output_graph, output_edge, output_node): Likewise.
4696 * src/vcg.h: Update function prototypes.
4697 * src/print_graph.c (print_graph): Open output graph file.
4698 (print_actions): Adjust.
4699 * src/files.h: Remove extern declaration.
4700 * src/files.c: Remove graph_obstack declaration.
4701 (open_files): Remove graph_obstack initialization.
4702 (output_files): Remove graph_obstack saving.
4704 2001-09-24 Marc Autret <autret_m@epita.fr>
4706 * src/files.c (compute_output_file_names): Fix.
4708 2001-09-24 Marc Autret <autret_m@epita.fr>,
4709 Akim Demaille <akim@epita.fr>
4711 * src/reader.c (reader): Remove call to free_symtab ().
4712 * src/main.c (main): Call it here.
4714 * src/conflicts.c (initialize_conflicts): Rename as...
4715 (solve_conflicts): this.
4716 * src/print.c (print_core, print_actions, print_state)
4717 (print_grammar): Dump to a file instead a `output_obstack'.
4718 (print_results): Dump `output_obstack', and then proceed with the
4720 * src/files.c (compute_output_file_names, close_files): New.
4721 (output_files): Adjust.
4722 * src/main.c (main): Adjust.
4724 2001-09-23 Marc Autret <autret_m@epita.fr>
4726 * src/files.c (compute_header_macro): Computes header macro name
4727 from spec_defines_file when given.
4729 2001-09-23 Marc Autret <autret_m@epita.fr>
4731 * src/files.c (output_files): Add default extensions.
4733 2001-09-22 Akim Demaille <akim@epita.fr>
4735 * src/conflicts.c (finalize_conflicts): Rename as...
4736 (free_conflicts): this.
4738 2001-09-22 Akim Demaille <akim@epita.fr>
4740 * src/gram.c (gram_free): Rename back as...
4742 (output_token_translations): Free `token_translations'.
4743 * src/symtab.c (free_symtab): Free the tag field.
4745 2001-09-22 Akim Demaille <akim@epita.fr>
4747 Remove `translations' as it is always set to true.
4749 * src/gram.h: Adjust.
4750 * src/reader.c (packsymbols, parse_token_decl): Adjust
4751 * src/print.c (print_grammar): Adjust.
4752 * src/output.c (output_token_translations): Adjust.
4753 * src/lex.c (lex): Adjust.
4754 * src/gram.c: Be sure the set pointers to NULL.
4755 (dummy): Rename as...
4758 2001-09-22 Akim Demaille <akim@epita.fr>
4760 * configure.in: Invoke AM_LIB_DMALLOC.
4761 * src/system.h: Use dmalloc.
4762 * src/LR0.c: Be sure to have pointers initialized to NULL.
4763 (allocate_itemsets): Allocate kernel_items only if needed.
4765 2001-09-22 Akim Demaille <akim@epita.fr>
4767 * configure.in: Bump to 1.29b.
4768 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
4769 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
4770 need xmalloc.c in calc.y.
4773 2001-09-21 Akim Demaille <akim@epita.fr>
4776 * Makefile.maint, config/config.guess, config/config.sub,
4777 * config/missing: Update from masters.
4778 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
4780 * configure.in (ALL_LINGUAS): Add `tr'.
4782 2001-09-21 Akim Demaille <akim@epita.fr>
4784 * tests/Makefile.am (package.m4): Move to...
4785 ($(srcdir)/$(TESTSUITE)): here.
4787 2001-09-20 Akim Demaille <akim@epita.fr>
4789 * src/complain.c: No longer try to be standalone: use system.h.
4790 Don't assume __STDC__ is defined to 1. Just test if it is defined.
4791 * src/complain.h: Likewise.
4792 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
4793 Remove the unused variable `n'.
4794 From Albert Chin-A-Young.
4796 2001-09-18 Marc Autret <autret_m@epita.fr>
4798 * doc/bison.1: Update.
4799 * doc/bison.texinfo (Bison Options): Update --defines and --graph
4801 (Option Cross Key): Update.
4804 2001-09-18 Marc Autret <autret_m@epita.fr>
4806 * tests/regression.at: New test (comment in %union).
4808 2001-09-18 Marc Autret <autret_m@epita.fr>
4810 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
4812 Reported by Keith Browne.
4814 2001-09-18 Marc Autret <autret_m@epita.fr>
4816 * tests/output.at: Add tests for --defines and --graph.
4818 2001-09-18 Marc Autret <autret_m@epita.fr>
4820 * tests/output.at: Removes tests of %{header,src}_extension features.
4822 2001-09-18 Akim Demaille <akim@epita.fr>
4824 * tests/Makefile.am (package.m4): New.
4825 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
4826 (_AT_CHECK_CALC_ERROR): Likewise.
4827 Factor the `, ' part of verbose error messages.
4829 2001-09-18 Marc Autret <autret_m@epita.fr>
4831 * src/getargs.c (longopts): Declare --defines and --graph as options
4832 with optional arguments.
4833 * src/files.h: Add extern declarations.
4834 * src/files.c (spec_graph_file, spec_defines_file): New.
4835 (output_files): Update.
4836 Remove CPP-outed code.
4838 2001-09-18 Marc Autret <autret_m@epita.fr>
4840 Turn off %{source,header}_extension feature.
4842 * src/files.c (compute_exts_from_gf): Update.
4843 (compute_exts_from_src): Update.
4844 (output_files): CPP-out useless code.
4845 * src/files.h: Remove {header,source}_extension extern declarations.
4846 * src/reader.c (parse_dquoted_param): CPP-out.
4847 (parse_header_extension_decl): Remove.
4848 (parse_source_extension_decl): Remove.
4849 (read_declarations): Remove cases tok_{hdrext,srcext}.
4850 * src/lex.c (percent_table): Remove {header,source}_extension entries.
4851 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
4853 2001-09-10 Akim Demaille <akim@epita.fr>
4855 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
4856 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
4857 (AT_CHECK_OUTPUT): this.
4858 Merely check ls' exit status, its output is useless.
4860 2001-09-10 Akim Demaille <akim@epita.fr>
4862 * tests/calc.at: Use m4_match.
4863 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
4865 2001-09-10 Marc Autret <autret_m@epita.fr>,
4866 Akim Demaille <akim@epita.fr>
4868 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
4870 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
4872 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
4873 * src/lex.h: Adjust prototype.
4874 (token_t): Add `tok_undef'.
4875 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
4876 (parse_percent_token): Now returns token_t.
4877 Add default statement in switch.
4878 (lex): Separate `c' as an input variable, from the token_t result
4880 (unlexed): Is a token_t.
4882 2001-09-10 Akim Demaille <akim@epita.fr>
4884 * configure.in: Bump to 1.29a.
4886 2001-09-07 Akim Demaille <akim@epita.fr>
4890 2001-08-30 Akim Demaille <akim@epita.fr>
4892 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
4893 * m4/atconfig.m4: Remove.
4894 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
4896 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
4897 m4_if, m4_patsubst, and m4_regexp.
4898 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
4899 `input' file instead of echo.
4901 2001-08-29 Akim Demaille <akim@epita.fr>
4905 2001-08-29 Akim Demaille <akim@epita.fr>
4909 2001-08-29 Paul Eggert <eggert@twinsun.com>
4911 * src/bison.simple (yyparse): Don't take the address of an
4912 item before the start of an array, as that doesn't conform to
4915 2001-08-29 Robert Anisko <anisko_r@epita.fr>
4917 * doc/bison.texinfo (Location Tracking Calc): New node.
4919 2001-08-29 Paul Eggert <eggert@twinsun.com>
4921 * src/output.c (output): Do not define const, as this now
4922 causes more problems than it cures.
4924 2001-08-29 Akim Demaille <akim@epita.fr>
4926 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
4928 Be sure to tag the `detailmenu'.
4930 2001-08-29 Akim Demaille <akim@epita.fr>
4932 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
4933 download in a tmp dir.
4935 2001-08-28 Marc Autret <autret_m@epita.fr>
4937 * config/depcomp: New file.
4939 2001-08-28 Marc Autret <autret_m@epita.fr>
4941 * doc/bison.1 (mandoc): Adjust.
4942 From Juan Manuel Guerrero.
4944 2001-08-28 Marc Autret <autret_m@epita.fr>
4946 * src/print_graph.c (print_state): Fix.
4948 2001-08-27 Marc Autret <autret_m@epita.fr>
4950 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
4952 Echo modifications to the functions prototypes.
4953 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
4955 2001-08-27 Marc Autret <autret_m@epita.fr>
4957 * src/vcg.c: Include `xalloc.h'.
4958 (add_colorentry): New.
4959 (add_classname): New.
4960 (add_infoname): New.
4961 * src/vcg.h: Add new prototypes.
4963 2001-08-27 Akim Demaille <akim@epita.fr>
4965 * Makefile.maint: Sync. again with CVS Autoconf.
4967 2001-08-27 Akim Demaille <akim@epita.fr>
4969 * Makefile.maint: Formatting changes.
4970 (po-update, cvs-update, update): New targets.
4973 2001-08-27 Akim Demaille <akim@epita.fr>
4975 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4976 * Makefile.maint: Sync. with CVS Autoconf.
4978 2001-08-27 Marc Autret <autret_m@epita.fr>
4980 * src/vcg.h (struct infoname_s): New.
4981 (struct colorentry_s): New.
4982 (graph_s): New fields {vertical,horizontal}_order in structure.
4983 Add `infoname' field.
4984 Add `colorentry' field;
4985 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
4986 (G_HORIZONTAL_ORDER): New.
4988 (G_COLORENTRY): New.
4989 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
4990 Add output of `infoname'.
4991 Add output of `colorentry'.
4993 2001-08-27 Marc Autret <autret_m@epita.fr>
4995 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
4996 This one shadowed a global parameter.
4998 2001-08-24 Marc Autret <autret_m@epita.fr>
5000 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
5001 instead of `unsigned'.
5002 (print_state): Do not call obstack_object_size () in obstack_grow ()
5003 to avoid macro variables shadowing.
5005 2001-08-23 Marc Autret <autret_m@epita.fr>
5007 * src/lex.c (percent_table): Typo: s/naem/name/.
5009 Normalize new options declarations.
5011 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
5013 * tests/suite.at: Exercise %header_extension and %source_extension.
5015 2001-08-16 Marc Autret <autret_m@epita.fr>
5017 * src/reader.c (parse_dquoted_param): New.
5018 (parse_header_extension_decl): Use it.
5019 (parse_source_extension_decl): Likewise.
5021 2001-08-16 Marc Autret <autret_m@epita.fr>
5023 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
5024 (get_xxxx_str): Use assert () instead of complain ().
5025 Remove return invokations in default cases.
5026 (get_decision_str): Modify default behaviour. Remove second argument.
5027 Echo modifications on calls.
5028 (output_graph): Fix.
5030 2001-08-16 Marc Autret <autret_m@epita.fr>
5032 * src/getargs.c (usage): Update with ``-g, --graph''.
5034 2001-08-16 Marc Autret <autret_m@epita.fr>
5036 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
5037 (Option Cross Key): Likewise.
5038 * doc/bison.1: Update.
5040 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
5042 * src/output.c (output_master_parser): Don't finish action_obstack.
5043 (output_parser): Don't care about the muscle action, here.
5044 (prepare): Copy the action_obstack in the action muscle.
5045 (output): Free action_obstack.
5047 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
5049 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
5050 will contain `%union' declaration.
5051 (parse_union_decl): Delete #line directive output.
5052 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
5053 informations about %union.
5054 (parse_union_decl): Copy the union_obstack in the muscle stype.
5055 * src/bison.simple: Add new #line directive.
5056 Add typdef %%stype YYSTYPE.
5058 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
5060 * src/bison.simple: Add new `#line' directive.
5062 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
5064 * src/bison.simple: New `#line' directive.
5065 * src/output.c (output_parser): Support new dynamic muscle input_line.
5067 2001-09-22 Marc Autret <autret_m@epita.fr>
5069 * src/output.c (output_master_parser): New.
5070 (output_parser): Be more re-entrant.
5072 2001-09-21 Marc Autret <autret_m@epita.fr>
5074 * src/reader.c (copy_definition, parse_union_decl): Update and use
5076 (copy_action): Likewise.
5077 Use obstack_1grow ().
5078 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
5080 2001-09-21 Marc Autret <autret_m@epita.fr>
5082 * src/options.c (option_table): Adjust.
5083 * src/lex.c (parse_percent_token): Fix.
5085 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
5087 * src/options.c (symtab.h): Include it, need by lex.h.
5089 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
5091 * src/lex.c (parse_percent_token): Change type of variable `tx', which
5092 is now an option_table_struct*.
5093 (option_strcmp): New function option_strcmp.
5094 (parse_percent_token): Call option_strcmp.
5095 * src/getargs.c (xalloc.h, options.h): Include it.
5096 (getargs): Call create_long_option_table.
5097 (getargs): Free longopts at the end of the function.
5098 (shortopts): Move in options.c.
5099 * src/options.c (create_long_option_table): New function. Convert
5100 information from option_table to option structure.
5101 * src/reader.c (options.h): Include it.
5103 * src/Makefile.am: Adjust.
5104 * src/options.c (option_table): Create from longopts and percent_table.
5105 * src/getargs.c (longopts): Delete.
5106 * src/lex.c (struct percent_table_struct): Delete.
5107 (percent_table): Delete.
5108 (options.h): Include it.
5109 * src/options.c: Create.
5110 * src/options.h: Create.
5111 Declare enum opt_access_e.
5112 Define struct option_table_struct.
5114 2001-09-20 Marc Autret <autret_m@epita.fr>
5116 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
5119 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
5121 * src/bison.simple: s/%%filename/%%skeleton.
5122 * src/muscle_tab.c (getargs.h): Include it.
5123 (muscle_init): Insert new muscle skeleton.
5125 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
5127 * src/output.c (output_parser): Delete unused variable actions_dumped.
5129 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
5131 * src/output.c (output): Delete call to reader_output_yylsp.
5132 * src/reader.c (reader): Likewise.
5133 * src/reader.h: Delete declaration of reader_output_yylsp.
5135 2001-09-02 Marc Autret <autret_m@epita.fr>
5137 * src/reader.c: Include muscle_tab.h.
5138 (parse_union_decl): Update.
5139 (parse_macro_decl): Rename parse_muscle_decl.
5140 Update to use renamed functions and variable.
5141 (read_declarations, copy_action, read_additionnal_code, : Updated
5142 with correct variables and functions names.
5143 (packsymbols, reader): Likewise.
5145 * src/reader.h (muscle_obstack): Extern declaration update.
5147 * src/output.c: Include muscle_tab.h
5148 In all functions using macro_insert, change by using muscle_insert ().
5149 (macro_obstack): Rename muscle_obstack.
5150 Echo modifications in the whole file.
5151 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
5152 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
5153 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
5155 * src/muscle_tab.h: Update double inclusion macros.
5156 (macro_entry_s): Rename muscle_entry_s.
5159 * src/muscle_tab.c: Include muscle_tab.h.
5160 Rename macro_tabble to muscle_table.
5161 (mhash1, mhash2, mcmp): Use muscle_entry.
5162 (macro_init): Rename muscle_init. Update.
5163 (macro_insert): Rename muscle_insert. Update.
5164 (macro_find): Rename muscle_find. Update.
5166 * src/main.c: Include muscle_tab.h.
5167 (main): Call muscle_init ().
5168 * src/Makefile.am (bison_SOURCES): Echo modifications.
5170 2001-09-02 Marc Autret <autret_m@epita.fr>
5172 Now the files macro_tab.[ch] are named muscle_tab.[ch].
5174 * src/muscle_tab.c, src/muscle_tab.h: Add files.
5176 2001-09-02 Marc Autret <autret_m@epita.fr>
5178 * src/macrotab.c, src/macrotab.h: Remove.
5180 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
5182 * src/reader.c (copy_guard): Use muscle to specify the `#line'
5185 2001-09-01 Marc Autret <autret_m@epita.fr>
5187 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
5188 to an explicit value to activate the feature. We do it here.
5190 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
5192 * src/output.c (prepare): Delete the `filename' muscule insertion.
5193 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
5194 (parse_union_decl): Likewise.
5195 * src/macrotab.c (macro_init): Initialize filename by infile.
5197 2001-08-31 Marc Autret <autret_m@epita.fr>
5199 * src/bison.simple (YYLSP_NEEDED): New definition.
5200 * src/output.c (prepare): Add macro insertion of `locations_flag'
5202 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
5204 * src/output.c (prepare): Delete insertion of previous muscles,
5205 and insert the `prefix' muscles.
5206 * src/macrotab.c (macro_init): Likewise.
5207 (macro_init): Initialization prefix directive by `yy'.
5208 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
5209 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
5210 yylval, yydebug, yyerror, yynerrs and yyparse.
5211 New directive `#define' to substitute yydebug, ... with option
5214 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
5216 * src/main.c (main): Standardize.
5217 * src/output.c (output_table_data, output_parser): Likewise.
5218 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
5220 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
5222 * src/reader.c (read_additionnal_code): Rename %%user_code to
5224 * src/output.c (output): Rename %%declarations to %%prologue.
5225 * src/bison.simple: Echo modifications.
5227 2001-08-31 Marc Autret <autret_m@epita.fr>
5229 * src/reader.c (readgram): CleanUp.
5230 (output_token_defines): Likewise.
5231 (packsymbols): Likewise.
5233 * src/output.c (output): CPP-out useless code.
5235 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
5237 * src/reader.c (reader): Delete obsolete call to function
5238 output_trailers and output_headers.
5239 * src/output.h: Remove obsolete functions prototypes of output_headers
5240 and output_trailers.
5242 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
5244 * src/main.c: Include macrotab.h.
5245 * src/macrotab.h (macro_entry_s): Constify fields.
5246 Adjust functions prototypes.
5247 * src/macrotab.c (macro_insert): Constify key and value.
5248 (macro_find): Constify key.
5249 (macro_insert): Include 'xalloc.h'
5250 (macro_insert): Use XMALLOC.
5251 (macro_find): Constify return value.
5252 * src/output.c (output_table_data): Rename table to table_data.
5253 (output_parser): Constify macro_key, macro_value.
5255 2001-08-30 Marc Autret <autret_m@epita.fr>
5257 * src/reader.c (parse_skel_decl): New.
5258 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
5259 * src/lex.h (token_t): New token `tok_skel'.
5260 * src/lex.c (percent_table): Add skeleton option entry.
5263 2001-08-29 Marc Autret <autret_m@epita.fr>
5265 * src/bison.simple: Add %%user_code directive at the end.
5266 * src/reader.c (read_additionnal_code): New.
5268 * src/output.c (output_program): Remove.
5271 2001-08-28 Marc Autret <autret_m@epita.fr>
5273 * src/output.c (output_actions): Clean up.
5274 (output_gram): CPP-out useless code.
5275 * src/reader.c (reader): Clean up, CPP-out useless code.
5277 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
5279 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
5281 * src/bison.simple: Add `%%definitions'.
5283 2001-08-28 Marc Autret <autret_m@epita.fr>
5285 * config/depcomp: New file.
5287 2001-08-27 Paul Eggert <eggert@twinsun.com>
5289 * src/bison.simple (yyparse): Don't take the address of an
5290 item before the start of an array, as that doesn't conform to
5293 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
5295 * src/output.c (output): Remove the initialization of the macro
5296 obstack. It was done too late here.
5298 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
5300 (reader): Initialize the macro obstack here, since we need it to grow
5301 '%define' directives.
5303 * src/reader.h: Declare the macro obstack as extern.
5305 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
5307 * src/output.c (output_parser): Fix. Store single '%' characters in
5308 the output obstack instead of throwing them away.
5310 2001-08-27 Akim Demaille <akim@epita.fr>
5312 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
5314 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
5316 * lib/Makefile.am: Adjust.
5318 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
5320 * src/bison.simple: Update and add '%%' directives.
5322 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
5324 * src/reader.c (reader): Remove calls to 'output_headers' and
5325 'output_trailers'. Remove some C output.
5326 (readgram): Disable a piece of code that was writing a default
5327 definition for 'YYSTYPE'.
5328 (reader_output_yylsp): Remove.
5329 (packsymbols): Output token defintions to a macro.
5330 (copy_definition): Disable C output.
5332 * src/reader.c (parse_macro_decl): New function used to parse macro
5334 (copy_string2): Put the body of copy_string into this new function.
5335 Add a parameter to let the caller choose whether he wants to copy the
5336 string delimiters or not.
5337 (copy_string): Be a simple call to copy_string2 with the last argument
5339 (read_declarations): Add case for macro definition.
5340 (copy_identifier): New.
5341 (parse_macro_decl): Read macro identifiers using copy_identifier
5344 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
5346 * src/output.c (prepare): Add prefixed names.
5347 (output_parser): Output semantic actions.
5348 (output_parser): Fix bug on '%%line' directives.
5350 * src/output.c (output_headers): Remove. The C code printed by this
5351 function should now be in the skeletons.
5352 (output_trailers): Remove.
5353 (output): Disable call to 'reader_output_yylsp'.
5354 (output_rule_data): Do not output tables to the table obstack.
5356 * src/output.c: Remove some C dedicated output.
5357 Improve the use of macro and output obstacks.
5358 (output_defines): Remove.
5360 * src/output.c (output_token_translations): Associate 'translate'
5361 table with a macro. No output to the table obstack.
5362 (output_gram): Same for 'rhs' and 'prhs'.
5363 (output_stos): Same for 'stos'.
5364 (output_rule_data): Same for 'r1' and 'r2'.
5365 (token_actions): Same for 'defact'.
5366 (goto_actions): Same for 'defgoto'.
5367 (output_base): Same for 'pact' and 'pgoto'.
5368 (output_table): Same for 'table'.
5369 (output_check): Same for 'check'.
5371 * src/output.c (output_table_data): New function.
5372 (output_short_table): Remove.
5373 (output_short_or_char_table): Remove.
5375 * src/output.c (output_parser): Replace most of the skeleton copy code
5376 with something new. Skeletons are now processed character by character
5377 rather than line by line, and Bison looks for '%%' macros. This is the
5378 first step in making Bison's output process (a lot) more flexible.
5379 (output_parser): Use the macro table.
5381 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
5383 * src/main.c (main): Initialize the macro table.
5385 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
5387 * src/lex.c (percent_table): Add tok_define.
5388 * src/lex.h: Add tok_define.
5390 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
5392 * src/macrotab.c: New file.
5393 * src/macrotab.h: New file.
5394 * src/Makefile.am: Update.
5396 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
5398 * lib/hash.c: New file.
5399 * lib/hash.h: New file.
5400 * lib/Makefile.am: Update.
5402 2001-08-15 Akim Demaille <akim@epita.fr>
5406 2001-08-15 Marc Autret <autret_m@epita.fr>
5408 * src/reader.c (readgram): Indent output macro YYSTYPE.
5409 (packsymbols): Likewise.
5410 (output_token_defines): Likewise.
5411 * src/files.c: Standardize.
5412 (compute_header_macro): New.
5413 (defines_obstack_save): New. Use compute_header_macro.
5414 (output_files): Update. Use defines_obstack_save.
5416 2001-08-15 Akim Demaille <akim@epita.fr>
5418 * doc/bison.texinfo (Table of Symbols): Document
5421 2001-08-15 Akim Demaille <akim@epita.fr>
5423 * missing: Update from CVS Automake.
5424 * config/config.guess, config/config.sub, config/texinfo.tex:
5425 Update from gnu.org.
5427 2001-08-15 Akim Demaille <akim@epita.fr>
5429 * Makefile.maint: Sync with CVS Autoconf.
5431 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
5433 * doc/bison.texinfo: Include GNU Free Documentation License from
5435 * doc/fdl.texi: Add to package.
5437 2001-08-14 Marc Autret <autret_m@epita.fr>
5439 Turn on %{source,header}_extension features.
5441 * src/lex.c (percent_table): Un-CPP out header_extension and
5443 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
5444 (compute_exts_from_src): Remove conditions. It restores priorities
5447 2001-08-14 Marc Autret <autret_m@epita.fr>
5449 * src/files.c (compute_base_names): Add extensions computing when
5450 `--file-prefix' used.
5451 Standardize function calls.
5453 2001-08-13 Marc Autret <autret_m@epita.fr>
5455 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
5456 defining it (defined but null disables alloca).
5458 2001-08-13 Marc Autret <autret_m@epita.fr>
5460 * src/bison.simple (_yy_memcpy): CPP reformat.
5462 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
5464 * tests/atconfig.in (CPPFLAGS): Fix.
5466 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
5468 * doc/bison.texinfo: Include GNU General Public License from
5470 * doc/gpl.texi: Add to package.
5472 2001-08-10 Marc Autret <autret_m@epita.fr>
5474 * src/print_graph.h: Fix.
5475 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
5477 2001-08-10 Akim Demaille <akim@epita.fr>
5479 * src/system.h: Provide default declarations for stpcpy, strndup,
5482 2001-08-10 Robert Anisko <anisko_r@epita.fr>
5484 * doc/bison.texinfo (Locations): Update @$ stuff.
5486 2001-08-09 Robert Anisko <anisko_r@epita.fr>
5488 * src/bison.simple (YYLLOC_DEFAULT): Update.
5491 2001-08-08 Marc Autret <autret_m@epita.fr>
5493 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
5494 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
5495 Reported by Fabrice Bauzac.
5497 2001-08-08 Marc Autret <autret_m@epita.fr>
5499 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
5500 * src/vcg.c (output_node): Fix.
5501 * src/vcg.h: Cleanup.
5502 * src/print_graph.c: Add comments.
5503 (node_output_size): New global variable. Simplify the formatting of
5504 the VCG graph output.
5505 (print_actions): Unused code is now used. It notifies the final state
5506 and no action states in the VCG graph. It also give the reduce actions.
5507 The `shift and goto' edges are red and the `go to state' edges are
5509 Get the current node name and node_obstack by argument.
5510 (node_obstack): New variable.
5511 (print_state): Manage node_obstack.
5512 (print_core): Use node_obstack given by argument.
5513 A node is not only computed here but in print_actions also.
5514 (print_graph): CPP out useless code instead of commenting it.
5516 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
5518 * tests/atconfig.in (CPPFLAGS): Fix.
5520 2001-08-07 Akim Demaille <akim@epita.fr>
5522 * src/print_graph.c (quote): New.
5523 (print_core): Use it.
5525 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
5527 * src/vcg.c (complain.h): Include it.
5528 Unepitaize `return' invocations.
5529 [NDEBUG] (main): Remove.
5530 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
5531 * src/files.c (open_files): Initialize graph_obstack.
5532 * src/print_graph.c (print_actions): CPP out useless code.
5533 (print_core): Don't output the last `\n' in labels.
5535 * src/files.c (output_files): Output the VCG file.
5536 * src/main.c (main): Invoke print_graph ();
5538 2001-08-06 Marc Autret <autret_m@epita.fr>
5540 Automaton VCG graph output.
5541 Using option ``-g'' or long option ``--graph'', you can generate
5542 a gram_filename.vcg file containing a VCG description of the LALR (1)
5543 automaton of your grammar.
5545 * src/main.c: Call to print_graph() function.
5546 * src/getargs.h: Update.
5547 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
5548 (graph_flag): New flag.
5550 (getargs): Add case `g'.
5551 * src/files.c (graph_obstack): New obstack struct.
5552 (open_files): Initialize new obstack.
5553 (output_files): Saves graph_obstack if required.
5554 * src/files.h (graph_obstack): New extern declaration.
5555 * src/Makefile.am: Add new source files.
5557 2001-08-06 Marc Autret <autret_m@epita.fr>
5559 * src/print_graph.c, src/print_graph.h (graph): New.
5560 * src/vcg.h: New file.
5561 * src/vcg.c: New file, VCG graph handling.
5563 2001-08-06 Marc Autret <autret_m@epita.fr>
5565 Add of %source_extension and %header_extension which specify
5566 the source or/and the header output file extension.
5568 * src/files.c (compute_base_names): Remove initialisation of
5569 src_extension and header_extension.
5570 (compute_exts_from_gf): Update.
5571 (compute_exts_from_src): Update.
5572 (output_files): Update.
5573 * src/reader.c (parse_header_extension_decl): New.
5574 (parse_source_extension_decl): New.
5575 (read_declarations): New case statements for the new tokens.
5576 * src/lex.c (percent_table): Add entries for %source_extension
5577 and %header_extension.
5578 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
5580 2001-08-06 Marc Autret <autret_m@epita.fr>
5582 * configure.in: Bump to 1.28c.
5583 * doc/bison.texinfo: Texinfo thingies.
5585 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
5587 * tests/atconfig.in (CPPFLAGS): Add.
5588 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
5590 2001-08-03 Akim Demaille <akim@epita.fr>
5594 2001-08-03 Akim Demaille <akim@epita.fr>
5596 * tests/Makefile.am (check-local): Ship testsuite.
5597 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
5600 2001-08-03 Akim Demaille <akim@epita.fr>
5602 * configure.in: Try using -Wformat when compiling.
5604 2001-08-03 Akim Demaille <akim@epita.fr>
5606 * configure.in: Bump to 1.28b.
5608 2001-08-03 Akim Demaille <akim@epita.fr>
5610 * src/complain.c: Adjust strerror_r portability issues.
5612 2001-08-03 Akim Demaille <akim@epita.fr>
5616 2001-08-03 Akim Demaille <akim@epita.fr>
5618 * src/getargs.c, src/getarg.h (skeleton)): Constify.
5619 * src/lex.c (literalchar): Avoid name clashes on `buf'.
5620 * src/getargs.c: Include complain.h.
5621 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
5622 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
5624 2001-08-03 Akim Demaille <akim@epita.fr>
5626 * src/reader.c (readgram): Display hidden chars in error messages.
5628 2001-08-03 Akim Demaille <akim@epita.fr>
5630 Update to gettext 0.10.39.
5632 2001-08-03 Akim Demaille <akim@epita.fr>
5634 * lib/strspn.c: New.
5636 2001-08-01 Marc Autret <autret_m@epita.fr>
5638 * doc/bison.texinfo: Update.
5639 * doc/bison.1 (mandoc): Update.
5640 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
5641 * src/files.c: Support output files extensions computing.
5642 (src_extension): New static variable.
5643 (header_extension): New static variable.
5645 (get_extension_index): New function, gets the index of an extension
5646 filename in a string.
5647 (compute_exts_from_gf): New function, computes extensions from the
5648 grammar file extension.
5649 (compute_exts_from_src): New functions, computes extensions from the
5650 C source file extension, file given by ``-o'' option.
5651 (compute_base_names): Update.
5652 (output_files): Update.
5654 2001-08-01 Robert Anisko <anisko_r@epita.fr>
5656 * doc/bison.texi: Document @$.
5657 (Locations): New section.
5659 2001-07-18 Akim Demaille <akim@epita.fr>
5661 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
5662 * config/prev-version.txt, config/move-if-change: New.
5663 * Makefile.am: Adjust.
5665 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
5667 * src/bison.simple (yyparse): Suppress warning `comparaison
5668 between signed and unsigned'.
5670 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
5672 * src/getargs.h (raw_flag): Remove.
5673 * src/getargs.c: Die on `-r'/`--raw'.
5674 * src/lex.c (parse_percent_token): Die on `%raw'.
5675 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
5676 * tests/calc.at: Suppress test with option `--raw'.
5678 2001-07-14 Akim Demaille <akim@epita.fr>
5681 * configure.in: Require Autoconf 2.50.
5682 Update to gettext 0.10.38.
5684 2001-03-16 Akim Demaille <akim@epita.fr>
5686 * doc/bison.texinfo: ANSIfy the examples.
5688 2001-03-16 Akim Demaille <akim@epita.fr>
5690 * getargs.c (skeleton): New variable.
5691 (longopts): --skeleton is a new option.
5692 (shortopts, getargs): -S is a new option.
5693 * getargs.h: Declare skeleton.
5694 * output.c (output_parser): Use it.
5696 2001-03-16 Akim Demaille <akim@epita.fr>
5698 * m4/strerror_r.m4: New.
5699 * m4/error.m4: Run AC_FUNC_STRERROR_R.
5700 * lib/error.h, lib/error.c: Update.
5702 2001-03-16 Akim Demaille <akim@epita.fr>
5704 * src/getargs.c (longopts): Clean up.
5706 2001-02-21 Akim Demaille <akim@epita.fr>
5708 * src/reader.c (gensym): `gensym_count' is your own.
5709 Use a static buf to create the symbol name, as token_buffer is no
5712 2001-02-08 Akim Demaille <akim@epita.fr>
5714 * src/conflicts.c (conflict_report): Be sure not to append to res
5715 between two calls, which could happen if both first sprintf were
5716 skipped, but not the first cp += strlen.
5718 2001-02-08 Akim Demaille <akim@epita.fr>
5720 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
5721 New, from fileutils 4.0.37.
5722 * configure.in: Require Autoconf 2.49c. I took some time before
5723 making this decision. This is the only way out for portability
5724 issues in Bison, it would mean way too much duplicate effort to
5725 import in Bison features implemented in 2.49c since 2.13.
5726 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
5728 2001-02-02 Akim Demaille <akim@epita.fr>
5730 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
5731 * lib/xalloc.h, lib/xmalloc.c: Update.
5733 2001-01-19 Akim Demaille <akim@epita.fr>
5735 Get rid of the ad hoc handling of token_buffer in the scanner: use
5738 * src/lex.c (token_obstack): New.
5739 (init_lex): Initialize it. No longer call...
5740 (grow_token_buffer): this. Remove it.
5741 Adjust all the places which used it to use the obstack.
5743 2001-01-19 Akim Demaille <akim@epita.fr>
5745 * src/lex.h: Rename all the tokens:
5746 s/\bENDFILE\b/tok_eof/g;
5747 s/\bIDENTIFIER\b/tok_identifier/g;
5749 Let them be enums, not #define, to ease debugging.
5750 Adjust all the code.
5752 2001-01-18 Akim Demaille <akim@epita.fr>
5754 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
5755 * src/lex.c (maxtoken, grow_token_buffer): Static.
5757 2001-01-18 Akim Demaille <akim@epita.fr>
5759 Since we now use obstacks, more % directives can be enabled.
5761 * src/lex.c (percent_table): Also accept `%yacc',
5762 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
5764 Handle the actions for `%semantic_parser' and `%pure_parser' here,
5765 instead of returning a token.
5766 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
5767 * src/reader.c (read_declarations): Adjust.
5768 * src/files.c (open_files): Don't call `compute_base_names', don't
5769 compute `attrsfile' since they depend upon data which might be
5770 *in* the input file now.
5771 (output_files): Do it here.
5772 * src/output.c (output_headers): Document the fact that this patch
5773 introduces a guaranteed SEGV for semantic parsers.
5774 * doc/bison.texinfo: Document them.
5775 * tests/suite.at: Exercise these %options.
5777 2000-12-20 Akim Demaille <akim@epita.fr>
5779 Also handle the output file (--verbose) with obstacks.
5781 * files.c (foutput): Remove.
5782 (output_obstack): New.
5783 Adjust all dependencies.
5784 * src/conflicts.c: Return a string.
5785 * src/system.h (obstack_grow_string): Rename as...
5786 (obstack_sgrow): this. Be ready to work with non literals.
5787 (obstack_fgrow4): New.
5789 2000-12-20 Akim Demaille <akim@epita.fr>
5791 * src/files.c (open_files): Fix the computation of short_base_name
5792 in the case of `-o foo.tab.c'.
5794 2000-12-20 Akim Demaille <akim@epita.fr>
5796 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
5797 (copy_dollar): Now that everything uses obstacks, get rid of the
5800 2000-12-20 Akim Demaille <akim@epita.fr>
5802 * src/files.c (open_files): Actually the `.output' file is based
5803 on the short_base_name, not base_name.
5804 * tests/suite.at (Checking output file names): Adjust.
5806 2000-12-20 Akim Demaille <akim@epita.fr>
5808 * src/bison.s1: Remove, we now use directly...
5809 * src/bison.simple: this.
5810 * src/Makefile.am: Use pkgdata instead of data.
5812 2000-12-20 Akim Demaille <akim@epita.fr>
5814 * src/files.c (guard_obstack): New.
5815 (open_files): Initialize it.
5816 (output_files): Dump it...
5817 * src/files.h: Export it.
5818 * src/reader.c (copy_guard): Use it.
5820 2000-12-19 Akim Demaille <akim@epita.fr>
5822 * src/files.c (outfile, defsfile, actfile): Removed as global
5824 (open_files): Don't compute them.
5825 (output_files): Adjust.
5826 (base_name, short_base_name): Be global.
5827 Adjust dependencies.
5829 2000-12-19 Akim Demaille <akim@epita.fr>
5831 * src/files.c (strsuffix): New.
5832 (stringappend): Be just like strcat but allocate.
5833 (base_names): Eve out from open_files.
5834 Try to simplify the rather hairy computation of base_name and
5836 (open_files): Use it.
5837 * tests/suite.at (Checking output file names): New test.
5839 2000-12-19 Akim Demaille <akim@epita.fr>
5841 * src/system.h (obstack_grow_literal_string): Rename as...
5842 (obstack_grow_string): this.
5843 * src/output.c (output_parser): Recognize `%% actions' instead of
5845 * src/bison.s1: s/$/%% actions/.
5846 * src/bison.hairy: Likewise.
5848 2000-12-19 Akim Demaille <akim@epita.fr>
5850 * src/output.c (output_parser): Compute the `#line' lines when
5852 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
5853 Suggested by Hans Aberg.
5855 2000-12-19 Akim Demaille <akim@epita.fr>
5857 Let the handling of the skeleton files be local to the procedures
5860 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
5862 (fparser, open_extra_files): Remove.
5863 (open_files, output_files): Don't take care of fparser.
5864 * src/files.h: Adjust.
5865 * src/output.c (output_parser): Open and close the file to the
5867 * src/reader.c (read_declarations): When %semantic_parser, open
5870 2000-12-19 Akim Demaille <akim@epita.fr>
5872 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
5873 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
5875 2000-12-19 Akim Demaille <akim@epita.fr>
5877 * src/files.c (open_files): Yipee! We no longer need all the code
5878 looking for `/tmp' since we have no tmp file.
5880 2000-12-19 Akim Demaille <akim@epita.fr>
5882 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
5884 * src/files.c (open_files): Less dependency on MSDOS etc.
5886 2000-12-14 Akim Demaille <akim@epita.fr>
5888 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
5889 Provide a default definition.
5890 Use it when executing the default @ action.
5891 * src/reader.c (reader_output_yylsp): No longer include
5892 `timestamp' and `text' in the default YYLTYPE.
5894 2000-12-12 Akim Demaille <akim@epita.fr>
5896 * src/reader.c (copy_definition, parse_union_decl, copy_action)
5897 (copy_guard): Quote the file names.
5898 Reported by Laurent Mascherpa.
5900 2000-12-12 Akim Demaille <akim@epita.fr>
5902 * src/output.c (output_headers, output_program, output): Be sure
5903 to escape special characters when outputting filenames.
5904 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
5905 (output_headers): Don't depend on them, Use ACTSTR.
5907 2000-11-17 Akim Demaille <akim@epita.fr>
5909 * lib/obstack.h: Formatting changes.
5910 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
5911 prevents type checking.
5912 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
5913 cast the value to (void *): assigning a `foo *' to a `void *'
5915 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
5916 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
5919 2000-11-17 Akim Demaille <akim@epita.fr>
5921 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
5923 (suite.m4, regression.m4, calc.m4): these.
5924 * tests/atgeneral.m4: Update from CVS Autoconf.
5926 2000-11-17 Akim Demaille <akim@epita.fr>
5928 * tests/regression.m4 (%union and --defines): New test,
5929 demonstrating a current bug in the obstack implementation.
5931 2000-11-17 Akim Demaille <akim@epita.fr>
5933 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
5935 Use them to declare the variables which are global or local to
5938 2000-11-17 Akim Demaille <akim@epita.fr>
5940 * acconfig.h: Remove, no longer used.
5942 2000-11-07 Akim Demaille <akim@epita.fr>
5944 * src: s/Copyright (C)/Copyright/g.
5946 2000-11-07 Akim Demaille <akim@epita.fr>
5948 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
5950 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
5952 2000-11-07 Akim Demaille <akim@epita.fr>
5954 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
5955 Merge in a single CPP if/else.
5957 2000-11-07 Akim Demaille <akim@epita.fr>
5959 * src/output.c (output): Remove useless variables.
5960 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
5961 argument `data' for consistency with the prototypes.
5963 (obstack_copy, obstack_copy0): Rename the second argument as
5964 `address' for consistency. Qualify it `const'.
5965 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
5966 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
5967 `const' their input argument (`data' or `address').
5968 Adjust the corresponding macros to include `const' in casts.
5970 2000-11-03 Akim Demaille <akim@epita.fr>
5972 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
5973 s/PFILE1/BISON_HAIRY/.
5974 Adjust dependencies.
5976 2000-11-03 Akim Demaille <akim@epita.fr>
5978 For some reason, this was not applied.
5980 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
5981 `unlink': it's no longer used.
5983 2000-11-03 Akim Demaille <akim@epita.fr>
5985 * src/files.c (skeleton_find): New function, eved out of...
5986 (open_files, open_extra_files): here.
5988 2000-11-03 Akim Demaille <akim@epita.fr>
5992 * src/files.c (obstack_save): New function.
5993 (done): Rename as...
5994 (output_files): this.
5996 * src/main.c (main): Don't use `atexit' to register `done', since
5997 it no longer has to remove tmp files, just call `output_files'
5998 when there are no errors.
6000 2000-11-02 Akim Demaille <akim@epita.fr>
6002 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
6003 `unlink': it's no longer used.
6004 * src/files.h: Formatting changes.
6006 2000-11-02 Akim Demaille <akim@epita.fr>
6008 Remove the last uses of mktemp and unlink/delete.
6010 * src/files.c (fdefines, ftable): Removed.
6011 (defines_ostack, table_obstack): New.
6012 Adjust dependencies of the former into uses of the latter.
6013 * src/output.c (output_short_or_char_table, output_short_table):
6014 Convert to using obstacks.
6015 * src/reader.c (copy_comment2): Accept one FILE * and two
6017 (output_token_defines, reader_output_yylsp): Use obstacks.
6018 * src/system.h (obstack_fgrow3): New.
6020 2000-11-01 Akim Demaille <akim@epita.fr>
6022 Change each use of `fattrs' into a use of `attrs_obstack'.
6024 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
6025 * src/files.c (fattrs): Remove.
6026 (attrs_obstack): New.
6027 Adjust all dependencies.
6028 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
6030 2000-11-01 Akim Demaille <akim@epita.fr>
6033 Change each use of `faction' into a use of `action_obstack'.
6035 * lib/obstack.h, lib/obstack.c: New files.
6036 * src/files.c (faction): Remove.
6037 (action_obstack): New.
6038 Adjust all dependencies.
6040 2000-10-20 Akim Demaille <akim@epita.fr>
6042 * lib/quote.h (PARAMS): New macro. Use it.
6044 2000-10-16 Akim Demaille <akim@epita.fr>
6046 * src/output.c (output_short_or_char_table): New function.
6047 (output_short_table, output_token_translations): Use it.
6048 (goto_actions): Use output_short_table.
6050 2000-10-16 Akim Demaille <akim@epita.fr>
6052 * src/symtab.c (bucket_new): New function.
6055 * src/output.c (output_short_table): New argument to display the
6056 comment associated with the table.
6057 Adjust dependencies.
6058 (output_gram): Use it.
6059 (output_rule_data): Nicer output layout for YYTNAME.
6061 2000-10-16 Akim Demaille <akim@epita.fr>
6063 * src/lex.c (read_typename): New function.
6065 * src/reader.c (copy_dollar): Likewise.
6067 2000-10-16 Akim Demaille <akim@epita.fr>
6069 * src/reader.c (copy_comment2): Expect the input stream to be on
6070 the `/' which is suspected to open a comment, instead of being
6071 called after `//' or `/*' was read.
6072 (copy_comment, copy_definition, parse_union_decl, copy_action)
6073 (copy_guard): Adjust.
6075 2000-10-16 Akim Demaille <akim@epita.fr>
6077 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
6078 `read_signed_integer'.
6080 2000-10-16 Akim Demaille <akim@epita.fr>
6082 * src/reader.c (copy_dollar): New function.
6083 (copy_guard, copy_action): Use it.
6085 2000-10-16 Akim Demaille <akim@epita.fr>
6087 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
6088 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
6089 New files, from Fileutils 4.0.27.
6090 * src/main.c (printable_version): Remove.
6091 * src/lex.c, src/reader.c: Use `quote'.
6093 2000-10-04 Akim Demaille <akim@epita.fr>
6095 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
6097 2000-10-04 Akim Demaille <akim@epita.fr>
6099 * doc/bison.texinfo: Various typos spotted by Neil Booth.
6101 2000-10-04 Akim Demaille <akim@epita.fr>
6103 When a literal string is used to define two different tokens,
6104 `bison -v' segfaults.
6105 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
6107 * tests/regression.m4: New file.
6108 Include the core of the sample provided by Piotr Gackiewicz.
6109 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
6112 2000-10-04 Akim Demaille <akim@epita.fr>
6114 * src/reader.c (parse_expect_decl): Keep `count' within the size
6118 2000-10-02 Paul Eggert <eggert@twinsun.com>
6120 * bison.s1 (yyparse): Assign the default value
6121 unconditionally, to avoid a GCC warning and make the parser a
6124 2000-10-02 Akim Demaille <akim@epita.fr>
6126 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
6129 2000-10-02 Akim Demaille <akim@epita.fr>
6131 * src/derives.c, src/print.c, src/reduce.c: To ease the
6132 translation, move some `\n' out of the translated strings.
6134 2000-10-02 Akim Demaille <akim@epita.fr>
6136 The location tracking mechanism is precious for parse error
6137 messages. Nevertheless, it is enabled only when `@n' is used in
6138 the grammar, which is a different issue (you can use it in error
6139 message, but not in the grammar per se). Therefore, there should
6140 be another means to enable it.
6142 * src/getargs.c (getargs): Support `--locations'.
6144 * src/getargs.h (locationsflag): Export it.
6145 * src/lex.c (percent_table): Support `%locations'.
6146 * src/reader.c (yylsp_needed): Remove this variable, now replaced
6147 with `locationsflag'.
6148 * doc/bison.texinfo: Document `--locations' and `%locations'.
6150 * tests/calc.m4: Test it.
6152 For regularity of the names, replace each
6153 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
6154 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
6155 In addition replace each `flag' with `_flag'.
6157 2000-10-02 Akim Demaille <akim@epita.fr>
6159 Also test parse error messages, including with YYERROR_VERBOSE.
6161 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
6163 Use it to check the computations.
6164 Use it to check `nonassoc' is honored.
6165 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
6166 `--yyerror-verbose'.
6167 (_AT_CHECK_CALC): Adjust to this option.
6168 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
6170 2000-10-02 Akim Demaille <akim@epita.fr>
6172 Test also `--verbose', `--defines' and `--name-prefix'. Testing
6173 the latter demonstrates a flaw in the handling of non debugging
6174 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
6175 was used in order to simplify:
6191 unfortunately this leads to a CPP conflict when
6192 `--name-prefix=foo' is used since it produces `#define yydebug
6195 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
6196 (YYDPRINTF): New macro.
6198 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
6200 Also test `--verbose', `--defines' and `--name-prefix'.
6202 2000-10-02 Akim Demaille <akim@epita.fr>
6204 Improve the readability of the produced parsers.
6206 * src/bison.s1: Formatting changes.
6207 Improve the comment related to the `$' mark.
6208 (yydefault): Don't fall through to `yyresume': `goto' there.
6209 * src/output.c (output_parser): When the `$' is met, skip the end
6211 New variable, `number_of_dollar_signs', to check there's exactly
6212 one `$' in the parser skeleton.
6214 2000-10-02 Akim Demaille <akim@epita.fr>
6216 * lib/xstrdup.c: New file, from the fileutils.
6217 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
6218 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
6219 instead of strlen + xmalloc + strcpy.
6220 * src/symtab.c (copys): Remove, use xstrdup instead.
6222 2000-10-02 Akim Demaille <akim@epita.fr>
6224 * src/gram.h (associativity): New enum type which replaces the
6225 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
6226 `right_assoc', `left_assoc' and `non_assoc'.
6227 Adjust all dependencies.
6228 * src/reader.c: Formatting changes.
6229 (LTYPESTR): Don't define it, use it as a literal in
6230 `reader_output_yylsp'.
6231 * src/symtab.h (symbol_class): New enum type which replaces the
6232 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
6233 `sunknown', `stoken and `snterm'.
6235 2000-10-02 Akim Demaille <akim@epita.fr>
6237 * src/getargs.c (fixed_outfiles): Rename as...
6238 (yaccflag): for consistency and accuracy.
6239 Adjust dependencies.
6241 2000-10-02 Akim Demaille <akim@epita.fr>
6243 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
6244 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
6245 difficult and introduced a lot of core dump. It turns out that
6246 Bison used an implementation of `xmalloc' based on `calloc', and
6247 at various places it does depend upon the initialization to 0. I
6248 have not tried to isolate the pertinent places, and all the former
6249 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
6250 someone should address this issue.
6252 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
6253 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
6255 Adjust dependencies.
6256 * src/warshall.h: New file.
6259 2000-10-02 Akim Demaille <akim@epita.fr>
6261 Various anti-`extern in *.c' changes.
6263 * src/system.h: Include `assert.h'.
6265 2000-10-02 Akim Demaille <akim@epita.fr>
6267 * src/state.h (nstates, final_state, first_state, first_shift)
6268 (first_reduction): Move their exportation from here...
6269 * src/LR0.h: to here.
6270 Adjust dependencies.
6271 * src/getargs.c (statisticsflag): New variable.
6272 Add support for `--statistics'.
6273 Adjust dependencies.
6275 Remove a lot of now useless `extern' statements in most files.
6277 2000-10-02 Akim Demaille <akim@epita.fr>
6279 * src/LR0.h: New file.
6282 2000-10-02 Akim Demaille <akim@epita.fr>
6284 * src/print.h: New file.
6286 * src/print.c: Formatting and ordering changes.
6287 (verbose, terse): Replace with...
6288 (print_results): this new function.
6289 Adjust dependencies.
6291 2000-10-02 Akim Demaille <akim@epita.fr>
6293 * src/conflicts.c (conflict_report): New function.
6294 (conflict_log, verbose_conflict_log): Replace with...
6295 (print_conflicts): this function.
6296 Adjust dependencies.
6297 * src/conflicts.h: New file.
6298 Propagate its inclusion.
6300 2000-10-02 Akim Demaille <akim@epita.fr>
6302 * src/nullable.h: New file.
6303 Propagate its inclusion.
6304 * src/nullable.c: Formatting changes.
6306 2000-10-02 Akim Demaille <akim@epita.fr>
6308 * src/reduce.h: New file.
6309 Propagate its inclusion.
6310 * src/reduce.c: Topological sort and other formatting changes.
6311 (bool, TRUE, FALSE): Move their definition to...
6312 * src/system.h: here.
6314 2000-10-02 Akim Demaille <akim@epita.fr>
6316 * src/files.c: Formatting changes.
6317 (tryopen, tryclose, openfiles): Rename as...
6318 (xfopen, xfclose, open_files): this.
6319 (stringappend): static.
6320 * src/files.h: Complete the list of exported symbols.
6323 2000-10-02 Akim Demaille <akim@epita.fr>
6325 * src/reader.h: New file.
6326 Propagate its use instead of tedious list of `extern' and
6328 * src/reader.c: Formatting changes, topological sort,
6331 2000-10-02 Akim Demaille <akim@epita.fr>
6333 * src/lex.h: Prototype `lex.c' exported functions.
6334 * src/reader.c: Adjust.
6335 * src/lex.c: Formatting changes.
6336 (safegetc): Rename as...
6339 2000-10-02 Akim Demaille <akim@epita.fr>
6341 * src/lalr.h: New file.
6342 Propagate its inclusion instead of prototypes and `extern'.
6343 * src/lalr.c: Formatting changes, topological sorting etc.
6345 2000-10-02 Akim Demaille <akim@epita.fr>
6347 * src/output.c (token_actions): Introduce a temporary array,
6348 YYDEFACT, that makes it possible for this function to use
6351 2000-10-02 Akim Demaille <akim@epita.fr>
6353 `user_toknums' is output as a `short[]' in `output.c', while it is
6354 defined as a `int[]' in `reader.c'. For consistency with the
6355 other output tables, `user_toknums' is now defined as a table of
6358 * src/reader.c (user_toknums): Be a short table instead of an int
6360 Adjust dependencies.
6362 Factor the short table outputs.
6364 * src/output.c (output_short_table): New function.
6365 * src/output.c (output_gram, output_stos, output_rule_data)
6366 (output_base, output_table, output_check): Use it.
6368 2000-10-02 Akim Demaille <akim@epita.fr>
6370 * src/output.c (output): Topological sort of the functions, in
6371 order to get rid of the `static' prototypes.
6372 No longer use `register'.
6373 * src/output.h: New file.
6374 Propagate its inclusion in files explicitly prototyping functions
6377 2000-09-21 Akim Demaille <akim@epita.fr>
6379 * src/atgeneral.m4: Update from Autoconf.
6381 2000-09-21 Akim Demaille <akim@epita.fr>
6383 * src/closure.h: New file.
6384 * src/closure.c: Formatting changes, topological sort over the
6385 functions, use of closure.h.
6386 (initialize_closure, finalize_closure): Rename as...
6387 (new_closure, free_closure): these. Adjust dependencies.
6388 * src/LR0.c: Formatting changes, topological sort, use of
6390 (initialize_states): Rename as...
6392 * src/Makefile.am (noinst_HEADERS): Adjust.
6394 2000-09-20 Akim Demaille <akim@epita.fr>
6396 * src/acconfig.h: Don't protect config.h against multiple
6398 Don't define PARAMS.
6399 * src/system.h: Define PARAMS.
6400 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
6401 purpose of config.h. system.h must not try to fix wrong
6402 definitions in config.h.
6404 2000-09-20 Akim Demaille <akim@epita.fr>
6406 * src/derives.h: New file.
6407 * src/main.c, src/derives.h: Use it.
6409 * src/Makefile.am (noinst_HEADERS): Adjust.
6411 2000-09-20 Akim Demaille <akim@epita.fr>
6413 * tests/atgeneral.m4: Update from Autoconf.
6414 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
6415 (AT_CHECK_CALC): New macros.
6416 Use these macros to test bison with options `', `--raw',
6417 `--debug', `--yacc', `--yacc --debug'.
6419 2000-09-19 Akim Demaille <akim@epita.fr>
6421 * src/output.c: Formatting changes.
6422 * src/machine.h: Remove, leaving its contents in...
6423 * src/system.h: here.
6425 Adjust all dependencies on stdio.h and machine.h.
6426 * src/getargs.h: New file.
6427 Let all `extern' declarations about getargs.c be replaced with
6428 inclusion of `getargs.h'.
6429 * src/Makefile.am (noinst_HEADERS): Adjust.
6431 * tests/calc.m4 (yyin): Be initialized in main, not on the global
6433 (yyerror): Returns void, not int.
6434 * doc/bison.texinfo: Formatting changes.
6436 2000-09-19 Akim Demaille <akim@epita.fr>
6438 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
6441 2000-09-18 Akim Demaille <akim@epita.fr>
6443 * configure.in: Append WARNING_CFLAGS to CFLAGS.
6444 * src/Makefile.am (INCLUDES): Don't.
6445 Be ready to fetch headers in lib/.
6447 2000-09-18 Akim Demaille <akim@epita.fr>
6449 * doc/bison.texinfo: Update the copyright.
6450 ANSIfy and GNUify the examples.
6451 Remove the old menu.
6453 2000-09-18 Akim Demaille <akim@epita.fr>
6455 First set of tests: use the `calc' example from the documentation.
6457 * src/bison.s1 (yyparse): Condition the code using `yytname' which
6458 is defined only when YYDEBUG is.
6459 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
6460 * src/files.c (tryopen, tryclose): Formatting changes.
6461 Move to the top and be static.
6462 * src/reader.c (read_signed_integer): Likewise.
6463 * tests/calc.m4: New file.
6464 * Makefile.am, suite.m4: Adjust.
6465 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
6467 2000-09-18 Akim Demaille <akim@epita.fr>
6469 Add support for an Autotest test suite for Bison.
6471 * m4/m4.m4, m4/atconfig.m4: New files.
6472 * m4/Makefile.am (EXTRA_DIST): Adjust.
6473 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
6475 * src/getargs.c: Display a more standard --version message.
6476 * src/reader.c (reader): Formatting changes.
6477 No longer depend upon VERSION_STRING.
6478 * configure.in: No longer use `dnl'.
6479 Set up the test suite and the new directory `tests/.
6480 (VERSION_STRING): Remove.
6482 2000-04-14 Akim Demaille <akim@epita.fr>
6484 * src/reader.c (copy_comment2): New function, same as former
6485 `copy_comment', but outputs into two FILE *.
6486 (copy_comment): Use it.
6487 (parse_union_decl): Use it.
6488 (get_type, parse_start_decl): Use the same `invalid' message.
6489 (parse_start_decl, parse_union_decl): Use the same `multiple'
6491 (parse_union_decl, copy_guard, copy_action): Use the same
6492 `unmatched' message.
6493 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
6495 2000-03-31 Akim Demaille <akim@epita.fr>
6497 * src/files.c (tryopen, tryclose): Move to the top.
6500 2000-03-31 Akim Demaille <akim@epita.fr>
6502 * src/main.c (main): Don't call `done', exit does it.
6504 2000-03-31 Akim Demaille <akim@epita.fr>
6506 * allocate.c: s/return (foo)/return foo/.
6509 * output.c: Likewise.
6510 * reader.c: Likewise.
6511 * symtab.c: Likewise.
6512 * vmsgetargs.c: Likewise.
6514 2000-03-31 Akim Demaille <akim@epita.fr>
6516 Clean up the error reporting functions.
6518 * src/report.c: New file.
6519 * src/report.h: Likewise.
6520 * src/Makefile.am: Adjust.
6521 * m4/error.m4: New file.
6522 * m4/Makefile.am: Adjust.
6523 * configure.in (jm_PREREQ_ERROR): Call it.
6524 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
6526 (fatal, fatals): Remove. All callers use complain.c::fatal.
6527 (warn, warni, warns, warnss, warnss): Remove. All callers use
6528 complain.c::complain.
6529 (toomany): Remove, use fatal instead.
6530 * src/files.c (done): No argument, use complain_message_count.
6531 * src/main.c (main): Register `done' to `atexit'.
6533 * src/getargs.c (usage): More `fputs', less `fprintf'.
6535 2000-03-28 Akim Demaille <akim@epita.fr>
6537 * lib/: New directory.
6538 * Makefile.am (SUBDIRS): Adjust.
6539 * configure.in: Adjust.
6540 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
6542 * src/alloca.c: Moved to lib/.
6543 * src/getopt.c: Likewise.
6544 * src/getopt1.c: Likewise.
6545 * src/getopt.h: Likewise.
6546 * src/ansi2knr.c: Likewise.
6547 * src/ansi2knr.1: Likewise.
6548 * src/Makefile.am: Adjust.
6549 * lib/Makefile.am: New file.
6551 2000-03-28 Akim Demaille <akim@epita.fr>
6553 * src/getargs.c (usage): Refresh the help message.
6555 2000-03-17 Akim Demaille <akim@epita.fr>
6557 * src/getopt1.c: Updated from textutils 2.0e
6558 * src/getopt.c: Likewise.
6559 * src/getopt.h: Likewise.
6561 2000-03-17 Akim Demaille <akim@epita.fr>
6563 * src/Makefile.am (bison.simple): Fix the awk program: quote only
6564 the file name, not the whole `#line LINE FILE'.
6566 2000-03-17 Akim Demaille <akim@epita.fr>
6568 On syntax errors, report the token on which we choked.
6570 * src/bison.s1 (yyparse): In the label yyerrlab, when
6571 YYERROR_VERBOSE, add yychar in msg.
6573 2000-03-17 Akim Demaille <akim@epita.fr>
6575 * src/reader.c (copy_at): New function.
6576 (copy_guard): Use it.
6577 (copy_action): Use it.
6579 2000-03-17 Akim Demaille <akim@epita.fr>
6581 Be kind to translators, save some useless translations.
6583 * src/main.c (banner): New function.
6584 (fatal_banner): Use it.
6585 (warn_banner): Use it.
6587 2000-03-17 Akim Demaille <akim@epita.fr>
6589 * src/reader.c (copy_definition): Use copy_string and
6590 copy_comment. Removed now unused `match', `ended',
6592 (copy_comment, copy_string): Moved, to be visible from
6595 2000-03-17 Akim Demaille <akim@epita.fr>
6597 * src/reader.c (copy_string): Declare `static inline'. No
6598 problems with inline, since it is checked by configure.
6599 (copy_comment): Likewise.
6601 2000-03-17 Akim Demaille <akim@epita.fr>
6603 * src/reader.c (packsymbols): Formatting changes.
6605 2000-03-17 Akim Demaille <akim@epita.fr>
6607 * src/reader.c (copy_comment): New function, factored out from:
6608 (copy_action): Use it. Removed now unused `match', `ended',
6610 (copy_guard): Likewise.
6612 2000-03-17 Akim Demaille <akim@epita.fr>
6614 * src/reader.c (copy_string): New function, factored out from:
6615 (copy_action): Use it.
6616 (copy_guard): Likewise.
6618 2000-03-17 Akim Demaille <akim@epita.fr>
6620 Change the handling of @s so that they behave exactly like $s.
6621 There is now a pseudo variable @$ (readble and writable), location
6622 of the lhs of the rule (by default ranging from the location of
6623 the first symbol of the rhs, to the location of the last symbol,
6624 or, if the rhs is empty, YYLLOC).
6626 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
6628 (yyparse): When providing a default semantic action, provide a
6629 default location action.
6630 (after the $): No longer change `*YYLSP', just stack YYLOC the
6631 same way you stack YYVAL.
6632 * src/reader.c (read_declarations): Use warns.
6633 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
6634 (copy_action, case '@'): Likewise.
6635 Use a standard error message, to save useless work from
6638 2000-03-17 Akim Demaille <akim@epita.fr>
6640 * src/bison.s1: Formatting and cosmetics changes.
6641 * src/reader.c: Likewise.
6642 Update the Copyright notice.
6644 2000-03-17 Akim Demaille <akim@epita.fr>
6646 * src/bison.s1 (#line): All set to `#line' only, since the
6647 Makefile now handles them.
6649 2000-03-16 Akim Demaille <akim@epita.fr>
6651 * src/output.c (output_rule_data): Output the documentation of
6653 (Copyright notice): Update.
6656 2000-03-16 Akim Demaille <akim@epita.fr>
6658 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
6659 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
6660 One `#if YYDEBUG' remains, since it uses variables which are
6661 defined only if `YYDEBUG != 0'.
6663 2000-03-16 Akim Demaille <akim@epita.fr>
6665 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
6666 and related variables so that the similarities are highlighted.
6668 2000-03-16 Akim Demaille <akim@epita.fr>
6670 * src/bison.s1: Properly indent CPP directives.
6672 2000-03-16 Akim Demaille <akim@epita.fr>
6674 * src/bison.s1: Properly indent the `alloca' CPP section.
6676 2000-03-16 Akim Demaille <akim@epita.fr>
6678 Do not hard code values of directories in `configure.in'.
6679 Update the `configure' tool chain.
6681 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
6683 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
6684 (AC_OUTPUT): Add m4/Makefile.
6685 Bump to bison 1.28a, 1.29 has never been released.
6686 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
6687 handled via src/Makefile.am.
6688 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
6689 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
6691 * Makefile.am (SUBDIRS): Add m4.
6692 (ACLOCAL_AM_FLAGS): New variable.
6693 (AUTOMAKE_OPTIONS): Add check-news.
6694 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
6695 the proper line number and file name.
6696 (DEFS): Propagate the location of bison library files and of the
6698 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
6700 * acinclude.m4: Remove, replaced by the directory m4.
6701 * m4/Makefile.am (EXTRA_DIST): New variable.
6702 * m4/gettext.m4: New file, from the fileutils.
6703 * m4/lcmessage.m4: Likewise
6704 * m4/progtest.m4: Likewise.
6705 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
6707 2000-03-10 Akim Demaille <akim@epita.fr>
6710 Formatting changes of various comments.
6711 Respect the GNU coding standards at various places.
6712 Don't use `_()' when no translation is needed.
6714 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6717 OS/2 honors TMPDIR environment variable.
6719 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6721 * doc/bison.texinfo: Tweaked spelling and grammar.
6723 Removed reference to price of printed copy.
6724 Mention BISON_SIMPLE and BISON_HAIRY.
6726 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6728 * configure.in, NEWS:
6729 Bison 1.29 released.
6731 1999-10-27 Jesse Thilo <jthilo@gnu.org>
6733 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
6734 Added reference card.
6736 1999-07-26 Jesse Thilo <jthilo@gnu.org>
6738 * po/ru.po: Added Russian translation.
6740 1999-07-26 Jesse Thilo <jthilo@gnu.org>
6742 * configure.in: Added Russian translation.
6744 1999-07-06 Jesse Thilo <jthilo@gnu.org>
6746 * configure.in, NEWS, README:
6747 Released version 1.28.
6749 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6752 Squashed redefinition warning on some systems.
6754 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
6755 Have configure build version string instead of relying on ANSI string
6758 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6760 * po/POTFILES.in: Got rid of version.c.
6762 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6764 * acconfig.h, configure.in:
6765 Have configure build version string instead of relying on ANSI string
6768 1999-06-08 Jesse Thilo <jthilo@gnu.org>
6771 Dropped mention of `+' for long-named options.
6773 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6775 * src/files.c: Added <unistd.h> for unlink().
6777 * src/Makefile.am, src/system.h:
6780 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6782 * README: Added a FAQ list.
6784 * configure.in, acconfig.h:
6787 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6789 * doc/FAQ, doc/Makefile.am:
6792 1999-05-19 Jesse Thilo <jthilo@gnu.org>
6794 * src/alloc.h, src/symtab.h, src/version.c:
6795 Protected inclusion of "config.h" with HAVE_CONFIG_H.
6797 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6799 * src/.cvsignore, src/Makefile.am:
6800 Reorganized: sources in `src', documentation in `doc'.
6802 * src/lex.c (literalchar):
6803 fixed the code for escaping double quotes (thanks
6806 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6808 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
6809 Adjusted paths to reflect directory reorganization.
6811 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6813 * doc/.cvsignore, doc/Makefile.am:
6814 Reorganized: sources in `src', documentation in `doc'.
6816 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6819 Updated AC_INIT file to reflect directory reorganization.
6821 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
6822 Reorganized: sources in `src', documentation in `doc'.
6824 1999-04-13 Jesse Thilo <jthilo@gnu.org>
6827 Don't declare calloc() and realloc() if not necessary.
6829 1999-04-13 Jesse Thilo <jthilo@gnu.org>
6831 * configure.in, acconfig.h, acinclude.m4:
6832 Don't declare calloc() and realloc() if not necessary.
6834 1999-03-23 Jesse Thilo <jthilo@gnu.org>
6836 * po/.cvsignore: Added i18n support.
6838 1999-03-23 Jesse Thilo <jthilo@gnu.org>
6840 * acconfig.h, configure.in, Makefile.am:
6843 1999-03-22 Jesse Thilo <jthilo@gnu.org>
6845 * src/bison.s1: Fixed #line numbers.
6847 1999-03-15 Jesse Thilo <jthilo@gnu.org>
6849 * po/es.po, po/fr.po, po/nl.po, po/de.po:
6850 Added PO files from Translation Project.
6852 1999-03-03 Jesse Thilo <jthilo@gnu.org>
6855 Added support for non-ANSI compilers (ansi2knr).
6857 1999-02-16 Jesse Thilo <jthilo@gnu.org>
6859 * configure.in: Bumped version number to 1.27.
6862 Added `bison.simple' to list of files removed by `make distclean'.
6864 1999-02-12 Jesse Thilo <jthilo@gnu.org>
6866 * src/files.c, src/files.h:
6867 Defined locations of parser files in config.h instead of Makefile.
6869 1999-02-12 Jesse Thilo <jthilo@gnu.org>
6871 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
6872 Defined locations of parser files in config.h instead of Makefile.
6874 1999-02-09 Jesse Thilo <jthilo@gnu.org>
6877 Removed inappropriate use of $< macro.
6879 1999-02-05 Jesse Thilo <jthilo@gnu.org>
6881 * po/Makefile.in.in, po/POTFILES.in:
6882 Add `po' directory skeleton.
6884 1999-01-27 Jesse Thilo <jthilo@gnu.org>
6886 * README: Document help-bison list.
6888 * configure.in: Add check for mkstemp().
6890 1999-01-20 Jesse Thilo <jthilo@gnu.org>
6892 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
6893 Hush a few compiler warnings.
6896 Add tryclose(), which verifies that fclose was successful.
6897 Hush a couple of compiler warnings.
6899 1999-01-20 Jesse Thilo <jthilo@gnu.org>
6901 * Makefile.am, OChangeLog:
6902 ChangeLog is now automatically generated. Include the old version as
6905 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6907 * 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:
6910 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6912 * doc/bison.texinfo: Fix formatting glitch.
6914 * doc/bison.texinfo: Update FSF address.
6916 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6918 * acconfig.h: Update FSF address.
6920 1999-01-08 Jesse Thilo <jthilo@gnu.org>
6923 Don't define PACKAGE here, since config.h defines it.
6925 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6927 * src/reader.c: Update copyright date.
6930 Ditch sprintf to statically-sized buffers in fatal/warn functions in
6931 favor of output directly to stderr (avoids buffer overruns).
6933 * src/reader.c: Some checks for premature EOF.
6935 * 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:
6936 Use prototypes if the compiler understands them.
6938 * src/files.c: Honor TMPDIR on Unix hosts.
6939 Use prototypes if the compiler understands them.
6942 Fix a couple of buffer overrun bugs.
6943 Use prototypes if the compiler understands them.
6945 * src/system.h: Include unistd.h and ctype.h.
6946 Use #ifdef instead of #if for NLS symbols.
6948 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6950 * doc/bison.texinfo:
6951 Delete comment "consider using @set for edition number, etc..." since
6952 we now are doing so.
6954 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6957 Use prototypes if the compiler understands them.
6959 * NEWS: Document 1.26 highlights.
6961 * Makefile.am: Require Automake 1.3 or later.
6964 Use prototypes if the compiler understands them.
6966 1998-12-29 Jesse Thilo <jthilo@gnu.org>
6969 Use VERSION symbol from automake for version number.
6971 1998-12-29 Jesse Thilo <jthilo@gnu.org>
6973 * acconfig.h, configure.in, version.cin:
6974 Use VERSION symbol from automake for version number.
6976 1998-11-28 Jesse Thilo <jthilo@gnu.org>
6979 Distribute original version of simple parser (bison.s1), not built
6980 version (bison.simple).
6982 1998-11-28 Jesse Thilo <jthilo@gnu.org>
6984 * doc/bison.texinfo: Add info dir entry.
6986 * doc/bison.texinfo:
6987 Let automake put version number into documentation.
6989 1998-11-26 Jesse Thilo <jthilo@gnu.org>
6991 * src/bison.cld, src/build.com, src/vmshlp.mar:
6992 Add non-RCS files from /gd/gnu/bison.
6994 1998-11-26 Jesse Thilo <jthilo@gnu.org>
6997 Document the BISON_HAIRY and BISON_SIMPLE variables.
6999 1998-11-25 Jesse Thilo <jthilo@gnu.org>
7001 * src/version.c: Build version.c automatically.
7004 Fix token numbering (used to start at 258, not 257).
7006 * src/system.h: Include config.h.
7008 * src/getargs.c: Update bug report address.
7010 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
7011 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
7013 1998-11-25 Jesse Thilo <jthilo@gnu.org>
7016 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
7018 * configure.in, version.cin:
7019 Build version.c automatically.
7021 * AUTHORS: Add AUTHORS file.
7023 * README: Update bug report address.
7026 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
7028 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
7031 1998-11-25 Jesse Thilo <jthilo@gnu.org>
7033 * doc/bison.texinfo: Clean up some formatting.
7035 1998-05-05 Richard Stallman <rms@gnu.org>
7037 * doc/bison.texinfo:
7038 Explain better why to make a pure parser.
7040 1998-01-05 Richard Stallman <rms@gnu.org>
7042 * src/files.c (openfiles):
7043 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
7044 find a temporary directory, if possible. Do not unlink files while
7047 1997-08-25 Richard Stallman <rms@gnu.org>
7049 * src/reader.c (stack_offset;):
7050 Change some warni to warns.
7052 * src/lex.c (literalchar): Use warns, not warni.
7054 1997-06-28 Richard Stallman <rms@gnu.org>
7056 * src/bison.s1: Add a Bison version comment.
7058 * src/main.c (fatal, warn, berror):
7061 1997-06-28 Richard Stallman <rms@gnu.org>
7063 * Makefile.in (bison_version): New variable.
7064 (dist): Use that variable.
7065 (bison.s1): Substitute the Bison version into bison.simple.
7067 * bison.simple: Add a Bison version comment.
7069 1997-06-18 Richard Stallman <rms@gnu.org>
7071 * src/main.c (fatal, warn, berror):
7072 Make error messages standard.
7073 (toomany): Improve error message text.
7075 * 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:
7076 new.h renamed to alloc.h.
7078 1997-06-18 Richard Stallman <rms@gnu.org>
7080 * Makefile.in: new.h renamed to alloc.h.
7082 1997-05-24 Richard Stallman <rms@gnu.org>
7084 * src/lex.c (literalchar):
7085 Fix the code for escaping \, " and '.
7087 (lex): Avoid trouble when there are many chars
7088 to discard in a char literal with just several chars in it.
7090 1997-05-17 Richard Stallman <rms@gnu.org>
7093 Use malloc, if using alloca is troublesome.
7094 (YYSTACK_USE_ALLOCA): New flag macro.
7095 Define it for some systems and compilers.
7096 (YYSTACK_ALLOC): New macro.
7097 (yyparse): Use YYSTACK_ALLOC to allocate stack.
7098 If it was malloc'd, free it.
7100 1997-05-17 Richard Stallman <rms@gnu.org>
7103 Use malloc, if using alloca is troublesome.
7104 (YYSTACK_USE_ALLOCA): New flag macro.
7105 Define it for some systems and compilers.
7106 (YYSTACK_ALLOC): New macro.
7107 (yyparse): Use YYSTACK_ALLOC to allocate stack.
7108 If it was malloc'd, free it.
7110 1997-04-23 Richard Stallman <rms@gnu.org>
7113 (alloca) [__hpux]: Always define as __builtin_alloca.
7115 1997-04-23 Richard Stallman <rms@gnu.org>
7118 (alloca) [__hpux]: Always define as __builtin_alloca.
7120 1997-04-22 Richard Stallman <rms@gnu.org>
7123 [__hpux]: Include alloca.h (right for HPUX 10)
7124 instead of declaring alloca (right for HPUX 9).
7126 * src/bison.s1 (__yy_memcpy):
7127 Declare arg `count' as unsigned int.
7128 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
7130 1997-04-22 Richard Stallman <rms@gnu.org>
7133 [__hpux]: Include alloca.h (right for HPUX 10)
7134 instead of declaring alloca (right for HPUX 9).
7136 * bison.simple (__yy_memcpy):
7137 Declare arg `count' as unsigned int.
7138 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
7140 1997-01-03 Richard Stallman <rms@gnu.org>
7142 * src/allocate.c: [__STDC__ or _MSC_VER]:
7143 Declare calloc and realloc to return void *.
7145 1997-01-02 Richard Stallman <rms@gnu.org>
7148 [_MSC_VER]: Include stdlib.h and process.h.
7149 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
7151 * src/main.c (main): Return FAILURE as a value.
7152 (printable_version): Declare arg as int, not char.
7154 1997-01-02 Richard Stallman <rms@gnu.org>
7156 * Makefile.in (dist):
7157 Explicitly check for symlinks, and copy them.
7159 1996-12-19 Richard Stallman <rms@gnu.org>
7162 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
7164 1996-12-18 Paul Eggert <eggert@gnu.org>
7166 * src/bison.s1 (yyparse):
7167 If __GNUC__ and YYPARSE_PARAM are both defined,
7168 declare yyparse to have a void * argument.
7170 1996-12-18 Paul Eggert <eggert@gnu.org>
7172 * bison.simple (yyparse):
7173 If __GNUC__ and YYPARSE_PARAM are both defined,
7174 declare yyparse to have a void * argument.
7176 1996-12-17 Richard Stallman <rms@gnu.org>
7178 * src/reduce.c (nbits): Add some casts.
7180 1996-08-12 Richard Stallman <rms@gnu.org>
7182 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
7184 1996-08-12 Richard Stallman <rms@gnu.org>
7186 * bison.simple: Test _MSDOS as well as _MSDOS_.
7188 1996-07-31 Richard Stallman <rms@gnu.org>
7191 [__sun && __i386]: Include alloca.h.
7193 1996-07-31 Richard Stallman <rms@gnu.org>
7196 [__sun && __i386]: Include alloca.h.
7198 1996-07-30 Richard Stallman <rms@gnu.org>
7200 * src/bison.s1: Comment change.
7202 * src/bison.s1: Test _MSDOS_, not MSDOS.
7204 1996-07-30 Richard Stallman <rms@gnu.org>
7206 * bison.simple: Comment change.
7208 * bison.simple: Test _MSDOS_, not MSDOS.
7210 1996-06-01 Richard Stallman <rms@gnu.org>
7212 * 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:
7213 Insert `_' macro around many string constants.
7216 Insert `_' macro around many string constants.
7218 (main): Call setlocale, bindtextdomain and textdomain.
7220 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
7221 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
7222 [ENABLE_NLS]: Include libintl.h.
7223 [ENABLE_NLS] (gettext): Define.
7224 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
7225 (N_, PACKAGE, LOCALEDIR): New macros.
7227 1996-06-01 Richard Stallman <rms@gnu.org>
7229 * POTFILES.in: New file.
7231 * Makefile.in (allocate.o):
7232 Define target explicitly.
7234 * Makefile.in (CFLAGS): Set to @CFLAGS@.
7235 (LDFLAGS): Set to @LDFLAGS@.
7236 (configure): Run autoconf only if preceding `cd' succeeds.
7237 (bison.s1): Redirect output to temporary file then move the
7238 temporary to the target, rather than redirecting directly to bison.s1.
7239 (clean): Remove config.status and config.log.
7240 (distclean): Don't remove config.status here.
7242 1996-05-12 Richard Stallman <rms@gnu.org>
7245 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
7247 1996-05-12 Richard Stallman <rms@gnu.org>
7250 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
7252 1996-05-11 Richard Stallman <rms@gnu.org>
7254 * src/bison.s1 (__yy_memcpy):
7255 Really reorder the args, as was supposedly done on Feb 14 1995.
7256 (yyparse): Calls changed accordingly.
7258 1996-05-11 Richard Stallman <rms@gnu.org>
7260 * Makefile.in (dist): Don't use $(srcdir).
7262 * bison.simple (__yy_memcpy):
7263 Really reorder the args, as was supposedly done on Feb 14 1995.
7264 (yyparse): Calls changed accordingly.
7266 1996-01-27 Richard Stallman <rms@gnu.org>
7268 * src/output.c (output_rule_data):
7269 Test YYERROR_VERBOSE in the conditional
7270 around the definition of ttyname.
7272 1995-12-29 Richard Stallman <rms@gnu.org>
7275 Fix line numbers in #line commands.
7277 1995-12-29 Richard Stallman <rms@gnu.org>
7280 Fix line numbers in #line commands.
7282 1995-12-27 Richard Stallman <rms@gnu.org>
7284 * src/bison.s1 (YYPARSE_PARAM_DECL):
7285 In C++, make it always null.
7286 (YYPARSE_PARAM_ARG): New macro.
7287 (yyparse): Use YYPARSE_PARAM_ARG.
7289 1995-12-27 Richard Stallman <rms@gnu.org>
7291 * bison.simple (YYPARSE_PARAM_DECL):
7292 In C++, make it always null.
7293 (YYPARSE_PARAM_ARG): New macro.
7294 (yyparse): Use YYPARSE_PARAM_ARG.
7296 1995-11-29 Richard Stallman <rms@gnu.org>
7298 * doc/bison.texinfo:
7299 Describe literal string tokens, %raw, %no_lines, %token_table.
7301 1995-11-29 Daniel Hagerty <hag@gnu.org>
7303 * doc/bison.texinfo: Fixed update date
7305 1995-10-16 Richard Stallman <rms@gnu.org>
7307 * src/version.c: Version 1.25.
7309 1995-10-16 Richard Stallman <rms@gnu.org>
7311 * NEWS: *** empty log message ***
7313 1995-10-16 Richard Stallman <rms@gnu.org>
7315 * doc/bison.1, doc/bison.rnh:
7318 1995-10-15 Richard Stallman <rms@gnu.org>
7320 * src/vmsgetargs.c, src/getargs.c:
7321 Added -n, -k, and -raw switches.
7322 (noparserflag, toknumflag, rawtoknumflag): New variables.
7324 * src/symtab.h (SALIAS):
7325 New #define for adding aliases to %token.
7326 (struct bucket): Added `alias' field.
7328 * src/reduce.c (reduce_grammar):
7329 Revise error message.
7330 (print_notices): Remove final `.' from error message.
7332 * src/reader.c (reader_output_yylsp):
7334 (readgram): Use `#if 0' around code that accepted %command
7335 inside grammar rules: The documentation doesn't allow it,
7336 and it will fail since the %command processors scan for the next %.
7337 (parse_token_decl): Extended the %token
7338 declaration to allow a multi-character symbol as an alias.
7339 (parse_thong_decl): New function.
7340 (read_declarations): Added %thong declarations.
7341 (read_declarations): Handle NOOP to deal with allowing
7342 % declarations as another means to specify the flags.
7343 (readgram): Allow %prec prior to semantics embedded in a rule.
7344 (skip_to_char, read_declarations, copy_definition)
7345 (parse_token_decl, parse_start_decl, parse_type_decl)
7346 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
7347 (get_type_name, copy_guard, copy_action, readgram)
7348 (get_type, packsymbols): Revised most error messages.
7349 Changed `fatal' to `warnxxx' to avoid aborting for error.
7350 Revised and use multiple warnxxx functions to avoid using VARARGS1.
7351 (read_declarations): Improve the error message for
7352 an invalid character. Do not abort.
7353 (read_declarations, copy_guard, copy_action): Use
7354 printable_version to avoid unprintable characters in printed output.
7355 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
7356 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
7357 Allow the type of a non-terminal can be given
7358 more than once, as long as all specifications give the same type.
7361 (output_headers, output_trailers, output, output_gram)
7362 (output_rule_data): Implement noparserflag variable.
7363 Implement toknumflag variable.
7364 (output): Call reader_output_yylsp to output LTYPESTR.
7366 * src/main.c (main):
7367 If reader sees an error, don't process the grammar.
7368 (fatals): Updated to not use VARARGS1.
7369 (printable_version, int_to_string, warn, warni, warns, warnss)
7370 (warnsss): New error reporting functions. Avoid abort for error.
7373 Added THONG and NOOP for alias processing.
7374 Added SETOPT for the new code that allows setting options with %flags.
7377 Include getopt.h. Add some extern decls.
7378 (safegetc): New function to deal with EOF gracefully.
7379 (literalchar); new function to deal with reading \ escapes.
7380 (lex): Use literalchar.
7381 (lex): Implemented "..." tokens.
7382 (literalchar, lex, parse_percent_token): Made tokenbuffer
7383 always contain the token. This includes growing the token
7384 buffer while reading an integer.
7385 (parse_percent_token): Replaced if-else statement with percent_table.
7386 (parse_percent_token): Added % declarations as another
7387 way to specify the flags -n, -l, and -r. Also added hooks for
7388 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
7389 major changes to files.c.
7390 (lex) Retain in the incoming stream a character following
7392 (skip_white_space, lex): Revised most error messages
7393 and changed fatal to warn to avoid aborting.
7394 (percent_table): Added %thong declarations.
7396 * src/gram.h: Comment changes.
7398 * src/files.c (openfiles, open_extra_files, done):
7400 and actfile file. Handle noparserflag. Both for -n switch.
7402 * src/conflicts.c (resolve_sr_conflict):
7403 Remove use of alloca.
7405 1995-06-01 Jim Meyering <meyering@gnu.org>
7407 * doc/bison.texinfo: *** empty log message ***
7409 1995-05-06 Richard Stallman <rms@gnu.org>
7411 * src/bison.s1: Comment change.
7413 1995-05-06 Richard Stallman <rms@gnu.org>
7415 * bison.simple: Comment change.
7417 1995-05-03 Richard Stallman <rms@gnu.org>
7419 * src/version.c: Version now 1.24.
7421 * src/bison.s1: Change distribution terms.
7423 * src/version.c: Version now 1.23.
7425 1995-05-03 Richard Stallman <rms@gnu.org>
7427 * doc/bison.texinfo:
7428 Rewrite "Conditions for Using Bison".
7429 Update version to 1.24.
7431 1995-05-03 Richard Stallman <rms@gnu.org>
7433 * bison.simple: Change distribution terms.
7435 1995-02-23 Richard Stallman <rms@gnu.org>
7437 * src/files.c: Test __VMS_POSIX as well as VMS.
7439 1995-02-14 Jim Meyering <meyering@gnu.org>
7441 * src/bison.s1 (__yy_memcpy):
7442 Renamed from __yy_bcopy to avoid
7443 confusion. Reverse FROM and TO arguments to be consistent with
7446 1995-02-14 Jim Meyering <meyering@gnu.org>
7448 * bison.simple (__yy_memcpy):
7449 Renamed from __yy_bcopy to avoid
7450 confusion. Reverse FROM and TO arguments to be consistent with
7453 1994-11-10 David J. MacKenzie <djm@gnu.org>
7459 * Makefile.in (DISTFILES): Include NEWS.
7461 * Makefile.in (DISTFILES):
7462 Include install-sh, not install.sh.
7464 * configure.in: Update to Autoconf v2 macro names.
7466 1994-10-05 David J. MacKenzie <djm@gnu.org>
7468 * Makefile.in: fix typo
7470 * Makefile.in (prefix, exec_prefix):
7471 Let configure set them.
7473 1994-09-28 David J. MacKenzie <djm@gnu.org>
7475 * Makefile.in: Set datadir to $(prefix)/share.
7477 1994-09-15 Richard Stallman <rms@gnu.org>
7480 Update copyright notice and GPL version.
7482 1994-09-15 Richard Stallman <rms@gnu.org>
7485 Update copyright notice and GPL version.
7487 1994-07-12 Richard Stallman <rms@gnu.org>
7489 * src/reduce.c, src/reader.c:
7492 1994-05-05 David J. MacKenzie <djm@gnu.org>
7494 * Makefile.in: entered into RCS
7496 1994-03-26 Richard Stallman <rms@gnu.org>
7498 * src/bison.s1: entered into RCS
7500 1994-03-26 Richard Stallman <rms@gnu.org>
7502 * bison.simple: entered into RCS
7504 1994-03-25 Richard Stallman <rms@gnu.org>
7506 * src/main.c: entered into RCS
7508 1994-03-24 Richard Stallman <rms@gnu.org>
7510 * src/conflicts.c: entered into RCS
7512 1994-01-02 Richard Stallman <rms@gnu.org>
7514 * Makefile.in: *** empty log message ***
7516 1993-11-21 Richard Stallman <rms@gnu.org>
7518 * src/bison.s1: *** empty log message ***
7520 1993-11-21 Richard Stallman <rms@gnu.org>
7522 * doc/bison.texinfo: entered into RCS
7524 * doc/bison.texinfo: *** empty log message ***
7526 1993-11-21 Richard Stallman <rms@gnu.org>
7528 * bison.simple: *** empty log message ***
7530 1993-10-25 David J. MacKenzie <djm@gnu.org>
7532 * doc/bison.texinfo: *** empty log message ***
7534 1993-10-19 Richard Stallman <rms@gnu.org>
7536 * src/bison.s1: *** empty log message ***
7538 1993-10-19 Richard Stallman <rms@gnu.org>
7540 * bison.simple: *** empty log message ***
7542 1993-10-14 Richard Stallman <rms@gnu.org>
7544 * src/bison.s1: *** empty log message ***
7546 1993-10-14 Richard Stallman <rms@gnu.org>
7548 * bison.simple: *** empty log message ***
7550 1993-09-14 David J. MacKenzie <djm@gnu.org>
7552 * doc/bison.texinfo: *** empty log message ***
7554 1993-09-13 Noah Friedman <friedman@gnu.org>
7556 * Makefile.in: *** empty log message ***
7558 1993-09-10 Richard Stallman <rms@gnu.org>
7560 * src/conflicts.c: *** empty log message ***
7562 * src/system.h: entered into RCS
7564 1993-09-10 Richard Stallman <rms@gnu.org>
7566 * doc/bison.1: entered into RCS
7568 1993-09-06 Noah Friedman <friedman@gnu.org>
7570 * src/version.c: entered into RCS
7572 1993-09-06 Noah Friedman <friedman@gnu.org>
7574 * Makefile.in: *** empty log message ***
7576 1993-07-30 David J. MacKenzie <djm@gnu.org>
7578 * Makefile.in: *** empty log message ***
7580 1993-07-24 Richard Stallman <rms@gnu.org>
7582 * src/bison.s1: *** empty log message ***
7584 1993-07-24 Richard Stallman <rms@gnu.org>
7586 * bison.simple: *** empty log message ***
7588 1993-07-08 David J. MacKenzie <djm@gnu.org>
7590 * Makefile.in: *** empty log message ***
7592 1993-07-04 Richard Stallman <rms@gnu.org>
7594 * src/bison.s1: *** empty log message ***
7596 1993-07-04 Richard Stallman <rms@gnu.org>
7598 * bison.simple: *** empty log message ***
7600 1993-06-26 David J. MacKenzie <djm@gnu.org>
7602 * src/getargs.c: entered into RCS
7604 1993-06-26 David J. MacKenzie <djm@gnu.org>
7606 * doc/bison.texinfo: *** empty log message ***
7608 * doc/bison.1: New file.
7610 1993-06-25 Richard Stallman <rms@gnu.org>
7612 * src/getargs.c: New file.
7614 1993-06-16 Richard Stallman <rms@gnu.org>
7616 * src/bison.s1: *** empty log message ***
7618 1993-06-16 Richard Stallman <rms@gnu.org>
7620 * bison.simple: *** empty log message ***
7622 1993-06-03 Richard Stallman <rms@gnu.org>
7624 * src/bison.s1: New file.
7626 1993-06-03 Richard Stallman <rms@gnu.org>
7628 * doc/bison.texinfo: *** empty log message ***
7630 1993-06-03 Richard Stallman <rms@gnu.org>
7632 * bison.simple: New file.
7634 1993-05-19 Richard Stallman <rms@gnu.org>
7636 * doc/bison.texinfo: New file.
7638 1993-05-07 Noah Friedman <friedman@gnu.org>
7640 * Makefile.in: *** empty log message ***
7642 1993-04-28 Noah Friedman <friedman@gnu.org>
7644 * src/reader.c: *** empty log message ***
7646 1993-04-23 Noah Friedman <friedman@gnu.org>
7648 * src/alloc.h: entered into RCS
7650 1993-04-20 David J. MacKenzie <djm@gnu.org>
7652 * src/version.c: *** empty log message ***
7654 * src/files.c, src/allocate.c:
7657 * src/reader.c: *** empty log message ***
7659 * src/lex.c: entered into RCS
7661 * src/conflicts.c: New file.
7663 * src/symtab.c: entered into RCS
7665 * src/alloc.h: New file.
7667 * src/LR0.c: entered into RCS
7669 1993-04-18 Noah Friedman <friedman@gnu.org>
7671 * src/reader.c: New file.
7673 * src/version.c: *** empty log message ***
7675 1993-04-18 Noah Friedman <friedman@gnu.org>
7677 * Makefile.in: *** empty log message ***
7679 1993-04-17 Noah Friedman <friedman@gnu.org>
7681 * Makefile.in: *** empty log message ***
7683 1993-04-15 Richard Stallman <rms@gnu.org>
7685 * src/main.c, src/files.c:
7688 1993-04-15 Noah Friedman <friedman@gnu.org>
7690 * configure.in: entered into RCS
7692 * configure.in: *** empty log message ***
7694 * configure.in: New file.
7696 1993-04-14 Richard Stallman <rms@gnu.org>
7698 * Makefile.in: New file.
7700 1993-04-13 Richard Stallman <rms@gnu.org>
7702 * src/version.c: New file.
7704 1993-03-25 Richard Stallman <rms@gnu.org>
7706 * src/output.c: entered into RCS
7708 1992-09-25 Richard Stallman <rms@gnu.org>
7710 * configure.bat: entered into RCS
7712 1992-06-22 Richard Stallman <rms@gnu.org>
7714 * src/vmsgetargs.c: entered into RCS
7716 1992-06-22 Richard Stallman <rms@gnu.org>
7718 * doc/bison.rnh: entered into RCS
7720 1992-04-20 David J. MacKenzie <djm@gnu.org>
7722 * README: entered into RCS
7724 1992-01-22 Richard Stallman <rms@gnu.org>
7726 * src/machine.h: entered into RCS
7728 1991-12-21 Richard Stallman <rms@gnu.org>
7730 * src/lalr.c, src/closure.c:
7733 1991-12-20 Richard Stallman <rms@gnu.org>
7735 * src/state.h: entered into RCS
7737 1991-12-18 Richard Stallman <rms@gnu.org>
7739 * src/print.c, src/nullable.c, src/derives.c:
7742 1991-11-03 David J. MacKenzie <djm@gnu.org>
7744 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
7747 1988-09-09 Richard Stallman <rms@gnu.org>
7749 * src/bison.hairy: entered into RCS
7751 1987-12-16 Richard Stallman <rms@gnu.org>
7753 * REFERENCES: entered into RCS
7756 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
7758 This file is part of GNU Bison.
7760 GNU Bison is free software; you can redistribute it and/or modify
7761 it under the terms of the GNU General Public License as published by
7762 the Free Software Foundation; either version 2, or (at your option)
7765 GNU Bison is distributed in the hope that it will be useful,
7766 but WITHOUT ANY WARRANTY; without even the implied warranty of
7767 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7768 GNU General Public License for more details.
7770 You should have received a copy of the GNU General Public License
7771 along with GNU Bison; see the file COPYING. If not, write to
7772 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
7773 Boston, MA 02111-1307, USA.