1 2002-06-19 Zack Weinberg <zack@codesourcery.com>
3 * doc/bison.texinfo: Document ability to have multiple
6 2002-06-18 Akim Demaille <akim@epita.fr>
8 * src/files.c (compute_base_names): When computing the output file
9 names from the input file name, strip the directory part.
11 2002-06-18 Akim Demaille <akim@epita.fr>
13 * data/bison.simple.new: Comment changes.
14 Reported by Andreas Schwab.
16 2002-06-18 Matt Kraai <kraai@alumni.cmu.edu>
18 * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
19 there are no `label `yyoverflowlab' defined but not used' warnings
20 when yyoverflow is defined.
22 2002-06-18 Akim Demaille <akim@epita.fr>
24 * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a
26 (symbol_destructor_set): Adjust.
27 * src/output.c (symbol_destructors_output): Output the destructor
29 Output the symbol name.
30 * data/bison.simple (b4_symbol_destructor): Adjust.
32 2002-06-18 Cris Bailiff <c.bailiff@awayweb.com>
33 and Akim Demaille <akim@epita.fr>
35 * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy
36 what's left on the stack when the error recovery hits EOF.
37 * tests/actions.at (Destructors): Complete to exercise this case.
39 2002-06-17 Akim Demaille <akim@epita.fr>
41 * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of
42 arguments is really empty, not only equal to `[]'.
43 * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new
45 (symbol_destructor_set): New.
46 * src/output.c (symbol_destructors_output): New.
47 * src/reader.h (brace_code_t, current_braced_code): New.
48 * src/scan-gram.l (BRACED_CODE): Use it to branch on...
49 (handle_dollar): Rename as...
50 (handle_action_dollar): this.
51 (handle_destructor_dollar): New.
52 * src/parse-gram.y (PERCENT_DESTRUCTOR): New.
53 (grammar_declaration): Use it.
54 * data/bison.simple (yystos): Is always defined.
56 * tests/actions.at (Destructors): New.
57 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep.
59 2002-06-17 Akim Demaille <akim@epita.fr>
61 * src/symlist.h, src/symlist.c (symbol_list_length): New.
62 * src/scan-gram.l (handle_dollar, handle_at): Compute the
63 rule_length only when needed.
64 * src/output.c (actions_output, token_definitions_output): Output
66 * src/symtab.c: Don't access directly to the symbol tag, use
68 * src/parse-gram.y: Use symbol_list_free.
70 2002-06-17 Akim Demaille <akim@epita.fr>
72 * src/reader.h, src/reader.c (symbol_list, symbol_list_new)
73 (symbol_list_prepend, get_type_name): Move to...
74 * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new)
75 (symbol_list_prepend, symbol_list_n_type_name_get): here.
77 (symbol_list_free): New.
78 * src/scan-gram.l (handle_dollar): Takes a location.
79 * tests/input.at (Invalid $n): Adjust.
81 2002-06-17 Akim Demaille <akim@epita.fr>
83 * src/reader.h, src/reader.c (symbol_list_new): Export it.
84 (symbol_list_prepend): New.
85 * src/parse-gram.y (%union): `list' is a new member.
86 (symbols.1): New, replaces...
87 (terms_to_prec.1, nterms_to_type.1): these.
88 * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set)
89 Take a location as additional argument.
92 2002-06-15 Akim Demaille <akim@epita.fr>
94 * src/parse-gram.y: Move %token in the declaration section so that
95 we don't depend upon CVS Bison.
97 2002-06-15 Akim Demaille <akim@epita.fr>
99 * src/state.h, src/state.c (state_rule_lookaheads_print): New.
100 * src/print.c (print_core): Use it.
102 2002-06-15 Akim Demaille <akim@epita.fr>
104 * src/conflicts.c (log_resolution): Accept the rule involved in
105 the sr conflicts instead of the lookahead number that points to
107 (flush_reduce): Accept the current lookahead vector as argument,
108 instead of the index in LA.
109 (resolve_sr_conflict): Accept the current number of lookahead
110 bitset to consider for the STATE, instead of the index in LA.
111 (set_conflicts): Adjust.
112 * src/lalr.c, src/lalr.h, src/state.h: Comment changes.
114 2002-06-15 Akim Demaille <akim@epita.fr>
116 * src/state.h (state_t): Replace the `lookaheadsp' member, a
117 short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**).
118 Adjust all dependencies.
119 * src/lalr.c (initialize_lookaheads): Split into...
120 (states_lookaheads_count, states_lookaheads_initialize): these.
123 2002-06-15 Akim Demaille <akim@epita.fr>
125 * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved
127 (grammar_rules_print): here.
128 * src/reduce.c (reduce_output): Use it.
129 * tests/reduce.at (Useless Rules, Reduced Automaton)
130 (Underivable Rules): Adjust.
132 2002-06-15 Akim Demaille <akim@epita.fr>
134 Copy BYacc's nice way to report the grammar.
136 * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print):
138 Don't print the rules' location, it is confusing and useless.
139 (rule_print): Use grammar_rhs_print.
140 * src/print.c (print_grammar): Use grammar_rules_print.
142 2002-06-15 Akim Demaille <akim@epita.fr>
144 Complete and rationalize `useless thing' warnings.
146 * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n)
147 (symbol_tag_print): New.
148 Use them everywhere in place of accessing directly the tag member.
149 * src/gram.h, src/gram.c (rule_print): New.
150 Use it where a rule used to be printed `by hand'.
151 * src/reduce.c (nonterminals_reduce): Report the use nonterminals.
152 (reduce_grammar_tables): Report the useless rules.
153 (reduce_print): Useless things are a warning, not an error.
155 * tests/reduce.at (Useless Nonterminals, Useless Rules):
156 (Reduced Automaton, Underivable Rules): Adjust.
157 * tests/regression.at (Web2c Report, Web2c Report): Adjust.
158 * tests/conflicts.at (Unresolved SR Conflicts)
159 (Solved SR Conflicts): Adjust.
161 2002-06-15 Akim Demaille <akim@epita.fr>
163 Let symbols have a location.
165 * src/symtab.h, src/symtab.c (symbol_t): Location is a new member.
168 * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at):
169 Use location_t, not int.
170 * src/symtab.c (symbol_check_defined): Take advantage of the
172 * tests/regression.at (Invalid inputs): Adjust.
174 2002-06-15 Akim Demaille <akim@epita.fr>
176 * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
177 (input): Don't try to initialize yylloc here, do it in the
179 * src/scan-gram.l (YY_USER_INIT): Initialize yylloc.
180 * src/gram.h (rule_t): Change line and action_line into location
181 and action_location, of location_t type.
182 Adjust all dependencies.
183 * src/location.h, src/location.c (empty_location): New.
184 * src/reader.h, src/reader.c (grammar_start_symbol_set)
185 (grammar_symbol_append, grammar_rule_begin, grammar_rule_end)
186 (grammar_current_rule_symbol_append)
187 (grammar_current_rule_action_append): Expect a location as argument.
188 * src/reader.c (grammar_midrule_action): Adjust to attach an
189 action's location as dummy symbol location.
190 * src/symtab.h, src/symtab.c (startsymbol_location): New.
191 * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust
194 2002-06-14 Akim Demaille <akim@epita.fr>
196 Grammar declarations may be found in the grammar section.
198 * src/parse-gram.y (rules_or_grammar_declaration): New.
199 (declarations): Each declaration may end with a semicolon, not
201 (grammar_declaration): `"%union"'.
202 (grammar): Branch to rules_or_grammar_declaration.
204 2002-06-14 Akim Demaille <akim@epita.fr>
206 * src/main.c (main): Invoke scanner_free.
208 2002-06-14 Akim Demaille <akim@epita.fr>
210 * src/output.c (m4_invoke): Extracted from...
211 (output_skeleton): here.
214 2002-06-14 Akim Demaille <akim@epita.fr>
216 * src/parse-gram.y (directives, directive, gram)
217 (grammar_directives, precedence_directives, precedence_directive):
219 (declarations, declaration, grammar, grammar_declaration)
220 (precedence_declaration, precedence_declarator): these.
221 (symbol_declaration): New.
223 2002-06-14 Akim Demaille <akim@epita.fr>
225 * src/files.c (action_obstack): Remove, unused.
226 (output_obstack): Remove it, and all its dependencies, as it is no
228 * src/reader.c (epilogue_set): Build the epilogue in the
230 * src/output.h, src/output.c (muscle_obstack): Move to...
231 * src/muscle_tab.h, src/muscle_tab.h: here.
232 (muscle_init): Initialize muscle_obstack.
234 * src/main.c (main): Call it.
236 2002-06-14 Akim Demaille <akim@epita.fr>
238 * src/location.h: New, extracted from...
239 * src/reader.h: here.
240 * src/Makefile.am (noinst_HEADERS): Merge into
241 (bison_SOURCES): this.
243 * src/parse-gram.y: Use location_t instead of Bison's.
244 * src/reader.h, src/reader.c (prologue_augment, epilogue_set):
245 Use location_t instead of ints.
247 2002-06-14 Akim Demaille <akim@epita.fr>
249 * data/bison.simple, data/bison.c++: Be sure to restore the
250 current #line when returning to the skeleton contents after having
251 exposed the input file's #line.
253 2002-06-12 Akim Demaille <akim@epita.fr>
255 * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
257 * tests/actions.at (Exotic Dollars): New.
259 2002-06-12 Akim Demaille <akim@epita.fr>
261 * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
263 * tests/input.at (Torturing the Scanner): New.
265 2002-06-11 Akim Demaille <akim@epita.fr>
267 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
268 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
269 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
270 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
271 * src/reader.c (reader): Use it.
273 2002-06-11 Akim Demaille <akim@epita.fr>
275 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
277 (scanner_last_string_free): New.
279 2002-06-11 Akim Demaille <akim@epita.fr>
281 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
282 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
283 (last_string, YY_OBS_FREE): New.
284 Use them when returning an ID.
286 2002-06-11 Akim Demaille <akim@epita.fr>
288 Have Bison grammars parsed by a Bison grammar.
290 * src/reader.c, src/reader.h (prologue_augment): New.
291 * src/reader.c (copy_definition): Remove.
293 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
294 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
295 (grammar_current_rule_prec_set, grammar_current_rule_check)
296 (grammar_current_rule_symbol_append)
297 (grammar_current_rule_action_append): Export.
298 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
299 (symbol_list_action_append): Remove.
300 Hook the routines from reader.
301 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
302 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
304 * src/reader.c (read_declarations): Remove, unused.
306 * src/parse-gram.y: Handle the epilogue.
307 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
308 (grammar_start_symbol_set): this.
309 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
310 * src/reader.c (readgram): Remove, unused.
311 (reader): Adjust to insert eoftoken and axiom where appropriate.
313 * src/reader.c (copy_dollar): Replace with...
314 * src/scan-gram.h (handle_dollar): this.
315 * src/parse-gram.y: Remove `%thong'.
317 * src/reader.c (copy_at): Replace with...
318 * src/scan-gram.h (handle_at): this.
320 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
323 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
326 * src/reader.h, src/reader.c (grammar_rule_end): New.
328 * src/parse.y (current_type, current_class): New.
329 Implement `%nterm', `%token' support.
330 Merge `%term' into `%token'.
332 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
335 * src/parse-gram.y: Be sure to handle properly the beginning of
338 * src/parse-gram.y: Handle %type.
339 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
341 * src/parse-gram.y: More directives support.
342 * src/options.c: No longer handle source directives.
344 * src/parse-gram.y: Fix %output.
346 * src/parse-gram.y: Handle %union.
347 Use the prologue locations.
348 * src/reader.c (parse_union_decl): Remove.
350 * src/reader.h, src/reader.c (epilogue_set): New.
351 * src/parse-gram.y: Use it.
353 * data/bison.simple, data/bison.c++: b4_stype is now either not
354 defined, then default to int, or to the contents of %union,
355 without `union' itself.
357 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
359 * src/output.c (actions_output): Don't output braces, as they are
360 already handled by the scanner.
362 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
363 characters to themselves.
365 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
366 that the epilogue has a proper #line.
368 * src/parse-gram.y: Handle precedence/associativity.
370 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
372 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
373 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
374 at all to define terminals that cannot be emitted.
376 * src/scan-gram.l: Escape M4 characters.
378 * src/scan-gram.l: Working properly with escapes in user
381 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
382 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
384 Use more modest sizes, as for the time being the parser does not
385 release memory, and therefore the process swallows a huge amount
388 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
389 stricter %token grammar.
391 * src/symtab.h (associativity): Add `undef_assoc'.
392 (symbol_precedence_set): Do nothing when passed an undef_assoc.
393 * src/symtab.c (symbol_check_alias_consistence): Adjust.
395 * tests/regression.at (Invalid %directive): Remove, as it is now
397 (Invalid inputs): Adjust to the new error messages.
398 (Token definitions): The new grammar doesn't allow too many
401 * src/lex.h, src/lex.c: Remove.
402 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
403 (copy_character, copy_string2, copy_string, copy_identifier)
404 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
405 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
406 (parse_action): Remove.
407 * po/POTFILES.in: Adjust.
409 2002-06-11 Akim Demaille <akim@epita.fr>
411 * src/reader.c (parse_action): Don't store directly into the
412 rule's action member: return the action as a string.
413 Don't require `rule_length' as an argument: compute it.
414 (grammar_current_rule_symbol_append)
415 (grammar_current_rule_action_append): New, eved out from
417 Remove `action_flag', `rulelength', unused now.
419 2002-06-11 Akim Demaille <akim@epita.fr>
421 * src/reader.c (grammar_current_rule_prec_set).
422 (grammar_current_rule_check): New, eved out from...
424 Remove `xaction', `first_rhs': useless.
425 * tests/input.at (Type clashes): New.
426 * tests/existing.at (GNU Cim Grammar): Adjust.
428 2002-06-11 Akim Demaille <akim@epita.fr>
430 * src/reader.c (grammar_midrule_action): New, Eved out from
433 2002-06-11 Akim Demaille <akim@epita.fr>
435 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
437 (readgram): Use them as replacement of inlined code, crule and
440 2002-06-11 Akim Demaille <akim@epita.fr>
442 * src/reader.c (grammar_end, grammar_symbol_append): New.
443 (readgram): Use them.
444 Make the use of `p' as local as possible.
446 2002-06-10 Akim Demaille <akim@epita.fr>
448 GCJ's parser requires the tokens to be defined before the prologue.
450 * data/bison.simple: Output the token definition before the user's
452 * tests/regression.at (Braces parsing, Duplicate string)
453 (Mixing %token styles): Check the output from bison.
454 (Early token definitions): New.
456 2002-06-10 Akim Demaille <akim@epita.fr>
458 * src/symtab.c (symbol_user_token_number_set): Don't complain when
459 assigning twice the same user number to a token, so that we can
461 * src/lex.c (lex): here.
462 Also use `symbol_class_set' instead of hand written code.
463 * src/reader.c (parse_assoc_decl): Likewise.
465 2002-06-10 Akim Demaille <akim@epita.fr>
467 * src/symtab.c, src/symtab.c (symbol_class_set)
468 (symbol_user_token_number_set): New.
469 * src/reader.c (parse_token_decl): Use them.
470 Use a switch instead of ifs.
471 Use a single argument.
473 2002-06-10 Akim Demaille <akim@epita.fr>
475 Remove `%thong' support as it is undocumented, unused, duplicates
476 `%token's job, and creates useless e-mail traffic with people who
477 want to know what it is, why it is undocumented, unused, and
478 duplicates `%token's job.
480 * src/reader.c (parse_thong_decl): Remove.
481 * src/options.c (option_table): Remove "thong".
482 * src/lex.h (tok_thong): Remove.
484 2002-06-10 Akim Demaille <akim@epita.fr>
486 * src/symtab.c, src/symtab.c (symbol_type_set)
487 (symbol_precedence_set): New.
488 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
489 (value_components_used): Remove, unused.
491 2002-06-09 Akim Demaille <akim@epita.fr>
493 Move symbols handling code out of the reader.
495 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
497 * src/symtab.h, src/symtab.c: here.
499 * src/gram.c (start_symbol): Remove: use startsymbol->number.
500 * src/reader.c (startval): Rename as...
501 * src/symtab.h, src/symtab.c (startsymbol): this.
502 * src/reader.c: Adjust.
504 * src/reader.c (symbol_check_defined, symbol_make_alias)
505 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
506 (token_translations_init)
508 * src/symtab.c: here.
509 * src/reader.c (packsymbols): Move to...
510 * src/symtab.h, src/symtab.c (symbols_pack): here.
511 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
514 2002-06-03 Akim Demaille <akim@epita.fr>
516 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
519 2002-06-03 Akim Demaille <akim@epita.fr>
521 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
522 structs with non literals.
523 * src/scan-skel.l: never-interactive.
524 * src/conflicts.c (enum conflict_resolution_e): No trailing
526 * src/getargs.c (usage): Split long literal strings.
527 Reported by Hans Aberg.
529 2002-05-28 Akim Demaille <akim@epita.fr>
531 * data/bison.c++: Use C++ ostreams.
532 (cdebug_): New member.
534 2002-05-28 Akim Demaille <akim@epita.fr>
536 * src/output.c (output_skeleton): Be sure to allocate enough room
537 for `/' _and_ for `\0' in full_skeleton.
539 2002-05-28 Akim Demaille <akim@epita.fr>
541 * data/bison.c++: Catch up with bison.simple:
542 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
543 and Paul Eggert <eggert@twinsun.com>: `error' handing.
544 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
547 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
549 * src/output.c (output_skeleton): Put an explicit path in front of
550 the skeleton file name, rather than relying on the -I directory,
551 to partially alleviate effects of having a skeleton file lying around
552 in the current directory.
554 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
556 * src/conflicts.c (log_resolution): Correct typo:
557 obstack_printf should be obstack_fgrow1.
559 2002-05-26 Akim Demaille <akim@epita.fr>
561 * src/state.h (state_t): `solved_conflicts' is a new member.
562 * src/LR0.c (new_state): Set it to 0.
563 * src/conflicts.h, src/conflicts.c (print_conflicts)
564 (free_conflicts, solve_conflicts): Rename as...
565 (conflicts_print, conflicts_free, conflicts_solve): these.
567 * src/conflicts.c (enum conflict_resolution_e)
568 (solved_conflicts_obstack): New, used by...
569 (log_resolution): this.
570 Adjust to attach the conflict resolution to each state.
571 Complete the description with the precedence/associativity
573 (resolve_sr_conflict): Adjust.
574 * src/print.c (print_state): Output its solved_conflicts.
575 * tests/conflicts.at (Unresolved SR Conflicts)
576 (Solved SR Conflicts): Exercise --report=all.
578 2002-05-26 Akim Demaille <akim@epita.fr>
580 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
581 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
582 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
583 (token_number_t, item_number_as_token_number)
584 (token_number_as_item_number, muscle_insert_token_number_table):
586 (symbol_number_t, item_number_as_symbol_number)
587 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
588 these, since it is more appropriate.
590 2002-05-26 Akim Demaille <akim@epita.fr>
592 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
594 * data/bison.simple (yystos) [YYDEBUG]: New.
595 (yyparse) [YYDEBUG]: Display the symbols which are popped during
597 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
599 2002-05-25 Akim Demaille <akim@epita.fr>
601 * doc/bison.texinfo (Debugging): Split into...
602 (Tracing): this new section, its former contents, and...
603 (Understanding): this new section.
604 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
607 Adjust all dependencies.
608 (report_args, report_types, report_argmatch): New.
609 (usage, getargs): Report/support -r, --report.
611 (struct option_table_struct): Rename as..,
612 (struct option_table_s): this.
613 Rename the `set_flag' member to `flag' to match with getopt_long's
615 * src/options.c (option_table): Split verbose into an entry for
616 %verbose, and another for --verbose.
617 Support --report/-r, so remove -r from the obsolete --raw.
618 * src/print.c: Attach full item sets and lookaheads reports to
619 report_flag instead of trace_flag.
620 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
622 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
623 and Paul Eggert <eggert@twinsun.com>
625 * data/bison.simple (yyparse): Correct error handling to conform to
626 POSIX and yacc. Specifically, after syntax error is discovered,
627 do not reduce further before shifting the error token.
628 Clean up the code a bit by removing the labels yyerrdefault,
629 yyerrhandle, yyerrpop.
630 * NEWS: Document the above.
632 2002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
634 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
635 type; it isn't always big enough, since it doesn't necessarily
636 include non-terminals.
637 (yytranslate): Expand definition of yy_token_number_type, so that
638 the latter can be removed.
639 (yy_token_number_type): Remove, only one use.
640 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
641 don't use TokenNumberType as element type.
643 * tests/regression.at: Modify expected output to agree with change
644 to yyr1 and yytranslate.
646 2002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
648 * src/reader.c (parse_action): Use copy_character instead of
651 2002-05-13 Akim Demaille <akim@epita.fr>
653 * tests/regression.at (Token definitions): Prototype yylex and
656 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
658 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
659 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
661 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
663 2002-05-07 Akim Demaille <akim@epita.fr>
665 * tests/synclines.at: Be sure to prototype yylex and yyerror to
668 2002-05-07 Akim Demaille <akim@epita.fr>
672 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
673 over the RHS of each rule.
674 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
675 * src/state.h (state_t): Member `nitems' is unsigned short.
676 * src/LR0.c (get_state): Adjust.
677 * src/reader.c (packgram): Likewise.
678 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
680 (muscle_insert_int_table): Remove, unused.
681 (prepare_rules): Remove `max'.
683 2002-05-06 Akim Demaille <akim@epita.fr>
685 * src/closure.c (print_firsts): Display of the symbol tags.
686 (bitmatrix_print): Move to...
687 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
689 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
691 2002-05-06 Akim Demaille <akim@epita.fr>
693 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
696 2002-05-06 Akim Demaille <akim@epita.fr>
698 * src/LR0.c (new_state, get_state): Instead of using the global
699 `kernel_size' and `kernel_base', have two new arguments:
700 `core_size' and `core'.
703 2002-05-06 Akim Demaille <akim@epita.fr>
705 * src/reader.c (packgram): No longer end `ritem' with a 0
706 sentinel: it is not used.
708 2002-05-05 Akim Demaille <akim@epita.fr>
710 New experimental feature: display the lookaheads in the report and
713 * src/print (print_core): When --trace-flag, display the rules
715 * src/print_graph.c (print_core): Likewise.
719 2002-05-05 Akim Demaille <akim@epita.fr>
721 * tests/torture.at (Many lookaheads): New test.
723 2002-05-05 Akim Demaille <akim@epita.fr>
725 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
726 (GENERATE_MUSCLE_INSERT_TABLE): this.
727 (output_int_table, output_unsigned_int_table, output_short_table)
728 (output_token_number_table, output_item_number_table): Replace with...
729 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
730 (muscle_insert_short_table, muscle_insert_token_number_table)
731 (muscle_insert_item_number_table): these.
733 (prepare_tokens): Don't free `translations', since...
734 * src/reader.h, src/reader.c (grammar_free): do it.
736 * src/gram.h, src/gram.c (grammar_free): here.
737 * data/bison.simple, data/bison.c++: b4_token_number_max is now
740 2002-05-05 Akim Demaille <akim@epita.fr>
742 * src/output.c (output_unsigned_int_table): New.
743 (prepare_rules): `i' is unsigned.
744 `prhs', `rline', `r2' are unsigned int.
745 Rename muscle `rhs_number_max' as `rhs_max'.
746 Output muscles `prhs_max', `rline_max', and `r2_max'.
748 * data/bison.simple, data/bison.c++: Adjust to use these muscles
749 to compute types instead of constant types.
750 * tests/regression.at (Web2c Actions): Adjust.
752 2002-05-04 Akim Demaille <akim@epita.fr>
754 * src/symtab.h (SALIAS, SUNDEF): Rename as...
755 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
757 * src/output.c (token_definitions_output): Be sure not to output a
758 `#define 'a'' when fed with `%token 'a' "a"'.
759 * tests/regression.at (Token definitions): New.
761 2002-05-03 Paul Eggert <eggert@twinsun.com>
763 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
766 2002-05-03 gettextize <bug-gnu-gettext@gnu.org>
768 * Makefile.am (SUBDIRS): Remove intl.
769 (EXTRA_DIST): Add config/config.rpath.
771 2002-05-03 Akim Demaille <akim@epita.fr>
773 * data/bison.simple (m4_if): Don't output empty enums.
774 And actually, output valid enum definitions :(.
776 2002-05-03 Akim Demaille <akim@epita.fr>
778 * configure.bat: Remove, completely obsolete.
779 * Makefile.am (EXTRA_DIST): Adjust.
780 Don't distribute config.rpath...
781 * config/Makefile.am (EXTRA_DIST): Do it.
783 2002-05-03 Akim Demaille <akim@epita.fr>
785 * configure.in (GETTEXT_VERSION): New.
786 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
788 2002-05-03 Akim Demaille <akim@epita.fr>
790 * data/bison.simple (b4_token_enum): New.
791 (b4_token_defines): Use it to output tokens both as #define and
793 Suggested by Paul Eggert.
794 * src/output.c (token_definitions_output): Don't output spurious
797 2002-05-03 Akim Demaille <akim@epita.fr>
799 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
801 2002-05-02 Robert Anisko <robert@lrde.epita.fr>
803 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
804 Update the stack class, give a try to deque as the default container.
806 2002-05-02 Akim Demaille <akim@epita.fr>
808 * data/bison.simple (yyparse): Do not implement @$ = @1.
809 (YYLLOC_DEFAULT): Adjust to do it.
810 * doc/bison.texinfo (Location Default Action): Fix.
812 2002-05-02 Akim Demaille <akim@epita.fr>
814 * src/reader.c (parse_braces): Merge into...
815 (parse_action): this.
817 2002-05-02 Akim Demaille <akim@epita.fr>
819 * configure.in (ALL_LINGUAS): Remove.
820 * po/LINGUAS, hr.po: New.
822 2002-05-02 Akim Demaille <akim@epita.fr>
824 Remove the so called hairy (semantic) parsers.
826 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
827 * src/gram.h, src/gram.c (semantic_parser): Remove.
828 (rule_t): Remove the guard and guard_line members.
829 * src/lex.h (token_t): remove tok_guard.
830 * src/options.c (option_table): Remove %guard and %semantic_parser
832 * src/output.c, src/output.h (guards_output): Remove.
834 (token_definitions_output): Don't output the `T'
836 (output_skeleton): Don't output the guards.
837 * src/files.c, src/files.c (attrsfile): Remove.
838 * src/reader.c (symbol_list): Remove the guard and guard_line
841 (parse_guard): Remove.
842 * data/bison.hairy: Remove.
843 * doc/bison.texinfo (Environment Variables): Remove occurrences of
846 2002-05-02 Akim Demaille <akim@epita.fr>
848 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
849 (parse_guard): Rename the formal argument `stack_offset' as
850 `rule_length', which is more readable.
852 (copy_at, copy_dollar): Instead of outputting the hard coded
853 values of $$, $n and so forth, output invocation to b4_lhs_value,
854 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
855 Note: this patch partially drops `semantic-parser' support: it
856 always does `rule_length - n', where semantic parsers ought to
858 * data/bison.simple, data/bison.c++ (b4_lhs_value)
859 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
861 2002-05-02 Akim Demaille <akim@epita.fr>
863 * configure.in (AC_INIT): Bump to 1.49b.
864 (AM_INIT_AUTOMAKE): Short invocation.
866 2002-05-02 Akim Demaille <akim@epita.fr>
870 2002-05-01 Akim Demaille <akim@epita.fr>
872 * src/skeleton.h: Remove.
874 2002-05-01 Akim Demaille <akim@epita.fr>
876 * src/skeleton.h: Fix the #endif.
877 Reported by Magnus Fromreide.
879 2002-04-26 Paul Eggert <eggert@twinsun.com>
881 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
882 Define if we define YYSTYPE and YYLTYPE, respectively.
883 (YYCOPY): Fix [] quoting problem in the non-GCC case.
885 2002-04-25 Robert Anisko <robert@lrde.epita.fr>
887 * src/scan-skel.l: Postprocess quadrigraphs.
889 * src/reader.c (copy_character): New function, used to output
890 single characters while replacing `[' and `]' with quadrigraphs, to
891 avoid troubles with M4 quotes.
892 (copy_comment): Output characters with copy_character.
893 (read_additionnal_code): Likewise.
894 (copy_string2): Likewise.
895 (copy_definition): Likewise.
897 * tests/calc.at: Exercise M4 quoting.
899 2002-04-25 Akim Demaille <akim@epita.fr>
901 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
902 between `!' and the command.
903 Reported by Paul Eggert.
905 2002-04-24 Robert Anisko <robert@lrde.epita.fr>
907 * tests/calc.at: Exercise prologue splitting.
909 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
910 `b4_post_prologue' instead of `b4_prologue'.
912 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
914 (output): Free pre_prologue_obstack and post_prologue_obstack.
915 * src/files.h, src/files.c (attrs_obstack): Remove.
916 (pre_prologue_obstack, post_prologue_obstack): New.
917 * src/reader.c (copy_definition): Add a parameter to specify the
918 obstack to fill, instead of using attrs_obstack unconditionally.
919 (read_declarations): Pass pre_prologue_obstack to copy_definition if
920 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
922 2002-04-23 Paul Eggert <eggert@twinsun.com>
924 * data/bison.simple: Remove unnecessary commentary and white
925 space differences from 1_29-branch.
926 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
928 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
929 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
930 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
931 constructors or destructors.
933 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
935 2002-04-23 Akim Demaille <akim@epita.fr>
937 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
938 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
939 location with columns.
940 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
941 All reported by Paul Eggert.
943 2002-04-22 Akim Demaille <akim@epita.fr>
945 * src/reduce.c (dump_grammar): Move to...
946 * src/gram.h, src/gram.c (grammar_dump): here.
947 Be sure to separate long item numbers.
948 Don't read the members of a rule's prec if its nil.
950 2002-04-22 Akim Demaille <akim@epita.fr>
952 * src/output.c (table_size, table_grow): New.
953 (MAXTABLE): Remove, replace uses with table_size.
954 (pack_vector): Instead of dying when the table is too big, grow it.
956 2002-04-22 Akim Demaille <akim@epita.fr>
958 * data/bison.simple (yyr1): Its type is that of a token number.
959 * data/bison.c++ (r1_): Likewise.
960 * tests/regression.at (Web2c Actions): Adjust.
962 2002-04-22 Akim Demaille <akim@epita.fr>
964 * src/reader.c (token_translations_init): 256 is now the default
965 value for the error token, i.e., it will be assigned another
966 number if the user assigned 256 to one of her tokens.
967 (reader): Don't force 256 to error.
968 * doc/bison.texinfo (Symbols): Adjust.
969 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
970 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
971 etc. instead of 10, 20, 30 (which was used to `jump' over error
972 (256) and undefined (2)).
974 2002-04-22 Akim Demaille <akim@epita.fr>
976 Propagate more token_number_t.
978 * src/gram.h (token_number_as_item_number)
979 (item_number_as_token_number): New.
980 * src/output.c (GENERATE_OUTPUT_TABLE): New.
981 Use it to create output_item_number_table and
982 output_token_number_table.
983 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
984 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
985 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
986 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
988 2002-04-22 Akim Demaille <akim@epita.fr>
990 * src/output.h, src/output.c (get_lines_number): Remove.
992 2002-04-19 Akim Demaille <akim@epita.fr>
994 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
996 (Debugging): More details about enabling the debugging features.
997 (Table of Symbols): Describe $$, $n, @$, and @n.
998 Suggested by Tim Josling.
1000 2002-04-19 Akim Demaille <akim@epita.fr>
1002 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
1004 2002-04-10 Akim Demaille <akim@epita.fr>
1006 * src/system.h: Rely on HAVE_LIMITS_H.
1007 Suggested by Paul Eggert.
1009 2002-04-09 Akim Demaille <akim@epita.fr>
1011 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
1012 full stderr, and strip it according to the bison options, instead
1013 of composing the error message from different bits.
1014 This makes it easier to check for several error messages.
1015 Adjust all the invocations.
1016 Add an invocation exercising the error token.
1017 Add an invocation demonstrating a stupid error message.
1018 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
1020 Error message are for stderr, not stdout.
1022 2002-04-09 Akim Demaille <akim@epita.fr>
1024 * src/gram.h, src/gram.c (error_token_number): Remove, use
1026 * src/reader.c (reader): Don't specify the user token number (2)
1027 for $undefined, as it uselessly prevents using it.
1028 * src/gram.h (token_number_t): Move to...
1029 * src/symtab.h: here.
1030 (state_t.number): Is a token_number_t.
1031 * src/print.c, src/reader.c: Use undeftoken->number instead of
1033 (Even though this 2 is not the same as above: the number of the
1034 undeftoken remains being 2, it is its user token number which
1036 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
1037 `user_token_number_max'.
1038 Output `undef_token_number'.
1039 * data/bison.simple, data/bison.c++: Use them.
1040 Be sure to map invalid yylex return values to
1041 `undef_token_number'. This saves us from gratuitous SEGV.
1043 * tests/conflicts.at (Solved SR Conflicts)
1044 (Unresolved SR Conflicts): Adjust.
1045 * tests/regression.at (Web2c Actions): Adjust.
1047 2002-04-08 Akim Demaille <akim@epita.fr>
1049 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
1051 Remove the duplicate `typedefs'.
1052 (RhsNumberType): Fix the declaration and various other typos.
1054 * data/bison.simple: Use __ofile__.
1055 * src/scan-skel.l: Handle __ofile__.
1057 2002-04-08 Akim Demaille <akim@epita.fr>
1059 * src/gram.h (item_number_t): New, the type of item numbers in
1060 RITEM. Note that it must be able to code symbol numbers as
1061 positive number, and the negation of rule numbers as negative
1063 Adjust all dependencies (pretty many).
1064 * src/reduce.c (rule): Remove this `short *' pointer: use
1066 * src/system.h (MINSHORT, MAXSHORT): Remove.
1068 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
1070 (MAXTABLE): Move to...
1071 * src/output.c (MAXTABLE): here.
1072 (prepare_rules): Use output_int_table to output rhs.
1073 * data/bison.simple, data/bison.c++: Adjust.
1074 * tests/torture.at (Big triangle): Move the limit from 254 to
1076 * tests/regression.at (Web2c Actions): Ajust.
1078 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
1079 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
1080 passes, but produces negative #line number, once fixed, GCC is
1081 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
1083 * src/state.h (state_h): Code input lines on ints, not shorts.
1085 2002-04-08 Akim Demaille <akim@epita.fr>
1087 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
1088 and then the grammar.
1090 2002-04-08 Akim Demaille <akim@epita.fr>
1092 * src/system.h: No longer using strndup.
1094 2002-04-07 Akim Demaille <akim@epita.fr>
1096 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
1097 * src/output.c (output_table_data): Return the longest number.
1098 (prepare_tokens): Output `token_number_max').
1099 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
1101 Use them to define yy_token_number_type/TokenNumberType.
1102 Use this type for yytranslate.
1103 * tests/torture.at (Big triangle): Push the limit from 124 to
1105 * tests/regression.at (Web2c Actions): Adjust.
1107 2002-04-07 Akim Demaille <akim@epita.fr>
1109 * tests/torture.at (Big triangle): New.
1110 (GNU AWK Grammar, GNU Cim Grammar): Move to...
1111 * tests/existing.at: here.
1113 2002-04-07 Akim Demaille <akim@epita.fr>
1115 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
1117 Adjust dependencies.
1119 2002-04-07 Akim Demaille <akim@epita.fr>
1121 * src/reader.c: Normalize increments to prefix form.
1123 2002-04-07 Akim Demaille <akim@epita.fr>
1125 * src/reader.c, symtab.c: Remove debugging code.
1127 2002-04-07 Akim Demaille <akim@epita.fr>
1129 Rename all the `bucket's as `symbol_t'.
1131 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
1132 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
1133 * src/symtab.c, src/symtab.h (bucket): Rename as...
1135 (symbol_list_new, bucket_check_defined, bucket_make_alias)
1136 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
1137 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1138 (buckets_new, buckets_free, buckets_do): Rename as...
1139 (symbol_list_new, symbol_check_defined, symbol_make_alias)
1140 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
1141 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
1142 (symbols_new, symbols_free, symbols_do): these.
1144 2002-04-07 Akim Demaille <akim@epita.fr>
1146 Use lib/hash for the symbol table.
1148 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
1150 * src/lex.c (lex): Set the `number' member of new terminals.
1151 * src/reader.c (bucket_check_defined, bucket_make_alias)
1152 (bucket_check_alias_consistence, bucket_translation): New.
1153 (reader, grammar_free, readgram, token_translations_init)
1154 (packsymbols): Adjust.
1155 (reader): Number the predefined tokens.
1156 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
1157 for predefined tokens.
1158 * src/symtab.h (bucket): Remove all the hash table related
1160 * src/symtab.c (symtab): Replace by...
1161 (bucket_table): this.
1162 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1163 (buckets_new, buckets_do): New.
1165 2002-04-07 Akim Demaille <akim@epita.fr>
1167 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
1168 (start_symbol, max_user_token_number, semantic_parser)
1169 (error_token_number): Initialize.
1170 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
1173 (errtoken, eoftoken, undeftoken, axiom): Extern.
1175 2002-04-07 Akim Demaille <akim@epita.fr>
1177 * src/gram.h (rule_s): prec and precsym are now pointers
1178 to the bucket giving the priority/associativity.
1179 Member `associativity' removed: useless.
1180 * src/reduce.c, src/conflicts.c: Adjust.
1182 2002-04-07 Akim Demaille <akim@epita.fr>
1184 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
1185 Properly escape the symbols' TAG when outputting them.
1187 2002-04-07 Akim Demaille <akim@epita.fr>
1189 * src/lalr.h (LA): Is a bitsetv, not bitset*.
1191 2002-04-07 Akim Demaille <akim@epita.fr>
1193 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
1194 (LArule): this, which is an array to rule_t*.
1195 * src/print.c, src/conflicts.c: Adjust.
1197 2002-04-07 Akim Demaille <akim@epita.fr>
1199 * src/gram.h (rule_t): Rename `number' as `user_number'.
1200 `number' is a new member.
1201 Adjust dependencies.
1202 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
1204 2002-04-07 Akim Demaille <akim@epita.fr>
1206 As a result of the previous patch, it is no longer needed
1207 to reorder ritem itself.
1209 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
1211 2002-04-07 Akim Demaille <akim@epita.fr>
1213 Be sure never to walk through RITEMS, but use only data related to
1214 the rules themselves. RITEMS should be banished.
1216 * src/output.c (output_token_translations): Rename as...
1217 (prepare_tokens): this.
1218 In addition to `translate', prepare the muscles `tname' and
1219 `toknum', which were handled by...
1220 (output_rule_data): this.
1221 Remove, and move the remainder of its outputs into...
1222 (prepare_rules): this new routines, which also merges content from
1223 (output_gram): this.
1224 (prepare_rules): Be sure never to walk through RITEMS.
1225 (output_stos): Rename as...
1226 (prepare_stos): this.
1227 (output): Always invoke prepare_states, after all, just don't use it
1228 in the output if you don't need it.
1230 2002-04-07 Akim Demaille <akim@epita.fr>
1232 * src/LR0.c (new_state): Display `nstates' as the name of the
1233 newly created state.
1234 Adjust to initialize first_state and last_state if needed.
1235 Be sure to distinguish the initial from the final state.
1236 (new_states): Create the itemset of the initial state, and use
1238 * src/closure.c (closure): Now that the initial state has its
1239 items properly set, there is no need for a special case when
1242 As a result, now the rule 0, reducing to $axiom, is visible in the
1243 outputs. Adjust the test suite.
1245 * tests/conflicts.at (Solved SR Conflicts)
1246 (Unresolved SR Conflicts): Adjust.
1247 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
1248 * tests/conflicts.at (S/R in initial): New.
1250 2002-04-07 Akim Demaille <akim@epita.fr>
1252 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
1253 the RHS of the rules.
1254 * src/output.c (output_gram): Likewise.
1256 2002-04-07 Akim Demaille <akim@epita.fr>
1258 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
1260 Adjust all dependencies.
1261 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
1262 `number' of the buckets too.
1263 * src/gram.h: Include `symtab.h'.
1264 (associativity): Move to...
1265 * src/symtab.h: here.
1266 No longer include `gram.h'.
1268 2002-04-07 Akim Demaille <akim@epita.fr>
1270 * src/gram.h, src/gram.c (rules_rhs_length): New.
1271 (ritem_longest_rhs): Use it.
1272 * src/gram.h (rule_t): `number' is a new member.
1273 * src/reader.c (packgram): Set it.
1274 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
1275 the end of `rules', and count them out of `nrules'.
1276 (reduce_output, dump_grammar): Adjust.
1277 * src/print.c (print_grammar): It is no longer needed to check for
1278 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
1279 * tests/reduce.at (Reduced Automaton): New test.
1281 2002-04-07 Akim Demaille <akim@epita.fr>
1283 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
1284 lacking `+ 1' to nrules, Bison reported as useless a token if it
1285 was used solely to set the precedence of the last rule...
1287 2002-04-07 Akim Demaille <akim@epita.fr>
1289 * data/bison.c++, data/bison.simple: Don't output the current file
1290 name in #line, to avoid useless diffs between two identical
1291 outputs under different names.
1293 2002-04-07 Akim Demaille <akim@epita.fr>
1295 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
1296 Normalize loops to using `< nrules + 1', not `<= nrules'.
1298 2002-04-07 Akim Demaille <akim@epita.fr>
1302 2002-04-07 Akim Demaille <akim@epita.fr>
1304 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
1305 bucket.value as bucket.number.
1307 2002-04-07 Akim Demaille <akim@epita.fr>
1309 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
1310 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1311 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
1312 RHS, instead of being an index in RITEMS.
1314 2002-04-04 Paul Eggert <eggert@twinsun.com>
1316 * doc/bison.texinfo: Update copyright date.
1317 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
1318 (Symbols): Warn about running Bison in one character set,
1319 but compiling and/or running in an incompatible one.
1320 Warn about character code 256, too.
1322 2002-04-03 Paul Eggert <eggert@twinsun.com>
1324 * src/bison.data (YYSTACK_ALLOC): Depend on whether
1325 YYERROR_VERBOSE is nonzero, not whether it is defined.
1327 Merge changes from bison-1_29-branch.
1329 2002-03-20 Paul Eggert <eggert@twinsun.com>
1331 Merge fixes from Debian bison_1.34-1.diff.
1333 * configure.in (AC_PREREQ): 2.53.
1335 2002-03-20 Akim Demaille <akim@epita.fr>
1337 * src/conflicts.c (log_resolution): Argument `resolution' is const.
1339 2002-03-19 Paul Eggert <eggert@twinsun.com>
1341 * src/bison.simple (YYCOPY): New macro.
1342 (YYSTACK_RELOCATE): Use it.
1343 Remove Type arg; no longer needed. All callers changed.
1344 (yymemcpy): Remove; no longer needed.
1346 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
1347 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1349 2002-03-19 Akim Demaille <akim@epita.fr>
1351 Test and fix the #line outputs.
1353 * tests/atlocal.at (GCC): New.
1354 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
1355 (Prologue synch line, ,%union synch line, Postprologue synch line)
1356 (Action synch line, Epilogue synch line): New tests.
1357 * src/reader.c (parse_union_decl): Define the muscle stype_line.
1358 * data/bison.simple, data/bison.c++: Use it.
1360 2002-03-19 Akim Demaille <akim@epita.fr>
1362 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
1363 (Solved SR Conflicts, %expect not enough, %expect right)
1364 (%expect too much): Move to...
1365 * tests/conflicts.at: this new file.
1367 2002-03-19 Akim Demaille <akim@epita.fr>
1369 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1370 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
1371 that we can move to enums for instance.
1372 * src/output.c (token_definitions_output): Output a list of
1373 `token-name, token-number' instead of the #define.
1374 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
1376 2002-03-14 Akim Demaille <akim@epita.fr>
1380 2002-03-09 Robert Anisko <robert@lrde.epita.fr>
1382 * data/bison.c++: Make the user able to add members to the generated
1383 parser by subclassing.
1385 2002-03-05 Robert Anisko <robert@lrde.epita.fr>
1387 * src/reader.c (read_additionnal_code): `c' should be an integer, not
1389 Reported by Nicolas Tisserand and Nicolas Burrus.
1391 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1393 * src/reader.c: Warn about lacking semi-colons, do not complain.
1395 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1397 * data/bison.c++: Remove a debug line.
1399 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1401 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
1402 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
1403 provide a default implementation.
1405 2002-03-04 Akim Demaille <akim@epita.fr>
1407 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
1408 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
1409 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
1410 * tests/semantic.at (Parsing Guards): Similarly.
1411 * src/reader.at (readgram): Complain if the last rule is not ended
1414 2002-03-04 Akim Demaille <akim@epita.fr>
1416 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
1417 * src/closure.c: here.
1418 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
1420 * src/warshall.h, src/warshall.c: Remove.
1421 * tests/sets.at (Broken Closure): Adjust.
1423 2002-03-04 Akim Demaille <akim@epita.fr>
1425 * src/output.c (output_skeleton): tempdir is const.
1426 bytes_read is unused.
1428 2002-03-04 Akim Demaille <akim@epita.fr>
1430 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1431 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
1435 2002-03-04 Akim Demaille <akim@epita.fr>
1437 * src/closure.c (closure): `r' is unused.
1439 2002-03-04 Akim Demaille <akim@epita.fr>
1441 * tests/sets.at (Broken Closure): Add the ending `;'.
1442 * src/reader.at (readgram): Complain if a rule is not ended with a
1445 2002-03-04 Akim Demaille <akim@epita.fr>
1447 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
1448 (count_sr_conflicts): Use bitset_count.
1449 * src/reduce.c (inaccessable_symbols): Ditto.
1450 (bits_size): Remove.
1451 * src/warshall.h, src/warshall.c: Convert to bitsetv.
1453 2002-03-04 Akim Demaille <akim@epita.fr>
1455 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
1456 * src/reduce.c: Remove the `bitset_zero's following the
1457 `bitset_create's, as now it is performed by the latter.
1459 2002-03-04 Akim Demaille <akim@epita.fr>
1461 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
1462 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
1463 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
1464 latest sources from Michael.
1466 2002-03-04 Akim Demaille <akim@epita.fr>
1468 * src/output.c (output): Don't free the grammar.
1469 * src/reader.c (grammar_free): New.
1470 * src/main.c (main): Call it and don't free symtab here.
1472 2002-03-04 Akim Demaille <akim@epita.fr>
1474 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
1476 Reported by Benoit Perrot.
1478 2002-03-04 Akim Demaille <akim@epita.fr>
1480 Use bitset operations when possible, not loops over bits.
1482 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
1484 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
1485 * src/reduce.c (useless_nonterminals): Formatting changes.
1486 * src/warshall.c (TC): Use bitset_or.
1488 2002-03-04 Akim Demaille <akim@epita.fr>
1490 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
1491 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
1494 2002-03-04 Akim Demaille <akim@epita.fr>
1496 * src/lalr.c (F): Now a bitset*.
1497 Adjust all dependencies.
1499 2002-03-04 Akim Demaille <akim@epita.fr>
1501 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
1502 Adjust all dependencies.
1504 2002-03-04 Akim Demaille <akim@epita.fr>
1506 * src/L0.c, src/LR0.h (nstates): Be size_t.
1507 Adjust comparisons (signed vs unsigned).
1508 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
1510 Adjust all dependencies.
1512 2002-03-04 Akim Demaille <akim@epita.fr>
1514 * src/closure.c (firsts): Now, also a bitset.
1515 Adjust all dependencies.
1516 (varsetsize): Remove, now unused.
1517 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
1519 2002-03-04 Akim Demaille <akim@epita.fr>
1521 * src/print.c: Convert to use bitset.h, not hand coded iterations
1524 2002-03-04 Akim Demaille <akim@epita.fr>
1526 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
1528 2002-03-04 Akim Demaille <akim@epita.fr>
1530 * src/closure.c (ruleset): Be a bitset.
1531 (rulesetsize): Remove.
1533 2002-03-04 Akim Demaille <akim@epita.fr>
1535 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1536 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
1537 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
1538 * src/closure.c (fderives): Be an array of bitsets.
1540 2002-02-28 Robert Anisko <robert@lrde.epita.fr>
1542 * data/bison.c++: Merge the two generated headers. Insert a copyright
1543 notice in each output file.
1545 2002-02-28 Akim Demaille <akim@epita.fr>
1547 * data/bison.c++: Copy the prologue of bison.simple to fetch
1548 useful M4 definitions, such as b4_header_guard.
1550 2002-02-25 Akim Demaille <akim@epita.fr>
1552 * src/getargs.c (version): Give the name of the authors, and use a
1553 translator friendly scheme for the bgr
1556 2002-02-25 Akim Demaille <akim@epita.fr>
1558 * src/output.c (header_output): Remove, now handled completely via
1561 2002-02-25 Akim Demaille <akim@epita.fr>
1563 * m4/m4.m4: New, from CVS Autoconf.
1564 * configure.in: Invoke it.
1565 * src/output.c (output_skeleton): Use its result instead of the
1568 2002-02-25 Akim Demaille <akim@epita.fr>
1570 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
1572 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
1573 * src/output.c (output_skeleton): Use mkstemp to create a real
1575 Move the filling of `skeleton' and its muscle to...
1577 (output): Move the definition of the prologue muscle to...
1579 * src/system.h (DEFAULT_TMPDIR): New.
1581 2002-02-14 Paul Eggert <eggert@twinsun.com>
1583 Remove the support for C++ namespace cleanliness; it was
1584 causing more problems than it was curing, since it didn't work
1585 properly on some nonstandard C++ compilers. This can wait
1586 for a proper C++ parser.
1588 * NEWS: Document this.
1589 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
1590 of C++, as it's treated like C now.
1591 * src/bison.simple (YYSTD): Remove.
1592 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
1593 Treat C++ just like Standard C instead of trying to support
1594 namespace cleanliness.
1596 2002-02-14 Akim Demaille <akim@epita.fr>
1598 * tests/regression.at (else): Adjust to Andreas' change.
1600 2002-02-14 Akim Demaille <akim@epita.fr>
1602 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
1604 2002-02-13 Andreas Schwab <schwab@suse.de>
1606 * src/output.c (output_rule_data): Don't output NULL, it might
1609 2002-02-11 Robert Anisko <robert@lrde.epita.fr>
1611 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
1612 (Copyright notice): Update.
1614 2002-02-11 Akim Demaille <akim@epita.fr>
1616 * tests/regression.at (%nonassoc and eof): Don't include
1617 nonportable headers.
1619 2002-02-08 Robert Anisko <robert@lrde.epita.fr>
1621 * data/bison.c++: Correct error recovery. Make the user able to
1622 initialize the starting location.
1624 2002-02-07 Akim Demaille <akim@epita.fr>
1626 * tests/input.at: New.
1628 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1630 * data/bison.c++: Replace some direct m4 expansions by constants. Be
1631 more consistent when naming methods and variables. Put preprocessor
1632 directives around tables only needed for debugging.
1634 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1636 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
1638 (yy::b4_name::parse): Use print_.
1640 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1642 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
1644 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1646 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
1648 (yy::b4_name::parse): Build verbose error messages, and use error_.
1650 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1652 * data/bison.c++: Fix m4 quoting in comments.
1654 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1656 * data/bison.c++: Adjust the parser code. Fix some muscles that were
1659 2002-02-05 Akim Demaille <akim@epita.fr>
1661 * data/bison.c++: Adjust to the M4 back end.
1662 More is certainly needed.
1664 2002-02-05 Akim Demaille <akim@epita.fr>
1666 Give a try to M4 as a back end.
1668 * lib/readpipe.c: New, from wdiff.
1669 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
1671 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
1672 specific values. Now it is m4 that performs the lookup.
1673 * src/parse-skel.y: Remove.
1674 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
1675 * src/output.c (actions_output, guards_output)
1676 (token_definitions_output): No longer keeps track of the output
1677 line number, hence remove the second argument.
1678 (guards_output): Check against the guard member of a rule, not the
1681 (output_skeleton): Don't look for the skeleton location, let m4 do
1683 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
1685 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
1686 (prepare): Given that for the time being changesyntax is not
1687 usable in M4, rename the muscles using `-' to `_'.
1688 Define `defines_flag', `output_parser_name' and `output_header_name'.
1689 * src/output.h (actions_output, guards_output)
1690 (token_definitions_output): Adjust prototypes.
1691 * src/scan-skel.l: Instead of scanning the skeletons, it now
1692 processes the output of m4: `__oline__' and `#output'.
1693 * data/bison.simple: Adjust to be used by M4(sugar).
1694 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
1696 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
1697 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
1698 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
1699 shamelessly stolen from CVS Autoconf.
1701 2002-02-05 Akim Demaille <akim@epita.fr>
1703 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
1704 * configure.in: Check for the declarations of free and malloc.
1705 * src/muscle_tab.c: Adjust.
1707 2002-02-05 Akim Demaille <akim@epita.fr>
1709 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
1710 which have no values.
1712 2002-02-05 Akim Demaille <akim@epita.fr>
1714 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
1717 2002-01-29 Paul Eggert <eggert@twinsun.com>
1719 * src/bison.simple (YYSIZE_T): Do not define merely because
1720 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
1721 On some platforms, <alloca.h> does not declare YYSTD (size_t).
1723 2002-01-27 Akim Demaille <akim@epita.fr>
1725 Fix `%nonassoc and eof'.
1727 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
1728 which were not properly copied! Replace
1729 memcpy (res->errs, src->errs, src->nerrs);
1731 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
1733 * tests/regression.at (%nonassoc and eof): Adjust to newest
1734 Autotest: `.' is not in the PATH.
1736 2002-01-27 Akim Demaille <akim@epita.fr>
1738 * tests/sets.at (AT_EXTRACT_SETS): New.
1742 2002-01-26 Akim Demaille <akim@epita.fr>
1744 * tests/actions.at, tests/calc.at, tests/headers.at,
1745 * tests/torture.at: Adjust to the newest Autotest which no longer
1746 forces `.' in the PATH.
1748 2002-01-25 Akim Demaille <akim@epita.fr>
1750 * tests/regression.at (%nonassoc and eof): New.
1751 Suggested by Robert Anisko.
1753 2002-01-24 Akim Demaille <akim@epita.fr>
1755 Bison dumps core when trying to complain about broken input files.
1756 Reported by Cris van Pelt.
1758 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
1759 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
1761 (Invalid inputs): Strengthen: exercise parse_percent_token.
1763 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
1765 * src/Makefile.am: Add bison.c++.
1766 * src/bison.c++: New skeleton.
1768 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
1772 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
1774 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
1776 2002-01-20 Marc Autret <marc@gnu.org>
1778 * src/files.c (compute_output_file_names): Fix
1780 2002-01-20 Marc Autret <marc@gnu.org>
1782 * tests/output.at: New test.
1783 * src/files.c (compute_base_names): Don't map extensions when
1784 the YACC flag is set, use defaults.
1785 Reported by Evgeny Stambulchik.
1787 2002-01-20 Marc Autret <marc@gnu.org>
1789 * src/system.h: Need to define __attribute__ away for non-GCC
1790 compilers as well (i.e. the vendor C compiler).
1791 Suggested by Albert Chin-A-Young.
1793 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
1795 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
1796 canonical definition.
1797 * src/system.h: Use the canonical definition for PARAMS (avoids
1798 a conflict with the macro from lib/hash.h).
1800 2002-01-11 Akim Demaille <akim@epita.fr>
1802 * configure.in: Use AC_FUNC_STRNLEN.
1803 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
1805 2002-01-09 Akim Demaille <akim@epita.fr>
1807 * src/files.c, src/files.h (output_infix): New.
1808 (tab_extension): Remove.
1809 (compute_base_names): Compute the former, drop the latter.
1810 * src/output.c (prepare): Insert the muscles `output-infix', and
1812 * src/parse-skel.y (string, string.1): New.
1813 (section.header): Use it.
1814 (section.yacc): Remove.
1815 (prefix): Remove too.
1816 * src/scan-skel.l: Adjust.
1817 * src/bison.simple, src/bison.hairy: Adjust.
1819 2002-01-09 Akim Demaille <akim@epita.fr>
1821 * configure.in (WERROR_CFLAGS): Compute it.
1822 * src/Makefile.am (CFLAGS): Pass it.
1823 * tests/atlocal.in (CFLAGS): Idem.
1824 * src/files.c: Fix a few warnings.
1825 (get_extension_index): Remove, unused.
1827 2002-01-08 Akim Demaille <akim@epita.fr>
1829 * src/getargs.c (AS_FILE_NAME): New.
1830 (getargs): Use it to convert DOSish file names.
1831 * src/files.c (base_name): Rename as full_base_name to avoid
1832 clashes with `base_name ()'.
1833 (filename_split): New.
1834 (compute_base_names): N-th rewrite, using filename_split.
1836 2002-01-08 Akim Demaille <akim@epita.fr>
1838 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
1839 New, stolen from the Fileutils 4.1.
1840 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1841 * configure.in: Check for the presence of memrchr, and of its
1844 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
1846 * lib/hash.h (__P): Added definition for this macro.
1847 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
1848 BUILT_SOURCES, to ensure they are generated first.
1849 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
1850 %error-verbose to allow bootstrapping with bison 1.30x.
1852 2002-01-06 Akim Demaille <akim@epita.fr>
1854 * src/reader.c (parse_braces): Don't fetch the next char, the
1855 convention is to fetch on entry.
1856 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
1857 'switch' without a following semicolon.
1858 * tests/regression.at (braces parsing): New.
1860 2002-01-06 Akim Demaille <akim@epita.fr>
1862 Bison is dead wrong in its RR conflict reports.
1864 * tests/torture.at (GNU Cim Grammar): New.
1865 * src/conflicts.c (count_rr_conflicts): Fix.
1867 2002-01-06 Akim Demaille <akim@epita.fr>
1869 Creating package.m4 from configure.ac causes too many problems.
1871 * tests/Makefile.am (package.m4): Create it by hand,
1872 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
1874 2002-01-06 Akim Demaille <akim@epita.fr>
1876 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
1879 2002-01-04 Paul Eggert <eggert@twinsun.com>
1881 * doc/bison.texinfo (Debugging):
1882 Remove YYSTDERR; it's no longer defined or used.
1883 Also, s/cstdio.h/cstdio/.
1885 2002-01-03 Akim Demaille <akim@epita.fr>
1887 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
1889 2002-01-03 Akim Demaille <akim@epita.fr>
1891 * src/parse-skel.y (process_skeleton): Don't bind the parser's
1892 tracing code to --trace, wait for a better --trace option, with
1895 2002-01-03 Akim Demaille <akim@epita.fr>
1897 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
1898 The ISO C++ standard is extremely clear about it: stderr is
1899 considered a macro, not a regular symbol (see table 94 `Header
1900 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
1901 Therefore std:: does not apply to it. It still does with fprintf.
1902 Also, s/cstdio.h/cstdio/.
1904 2002-01-03 Akim Demaille <akim@epita.fr>
1906 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
1907 for non system headers.
1909 2002-01-02 Akim Demaille <akim@epita.fr>
1911 Equip the skeleton chain with location tracking, runtime trace,
1912 pure parser and scanner.
1914 * src/parse-skel.y: Request a pure parser, locations, and prefix
1916 (%union): Having several members with the same type does not help
1917 type mismatches, simplify.
1918 (YYPRINT, yyprint): New.
1919 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
1922 * src/scan-skel.l: Adjust to these changes.
1923 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
1924 (LOCATION_PRINT, skel_control_t): New.
1926 2001-12-30 Akim Demaille <akim@epita.fr>
1928 * src/parse-skel.y: Get rid of the shift/reduce conflict:
1929 replace `gb' with BLANKS.
1930 * src/scan-skel.l: Adjust.
1932 2001-12-30 Akim Demaille <akim@epita.fr>
1934 * src/system.h: We don't need nor want bcopy.
1935 Throw away MS-DOS crap: we don't need getpid.
1936 * configure.in: We don't need strndup. It was even causing
1937 problems: because Flex includes the headers *before* us,
1938 _GNU_SOURCE is not defined by config.h, and therefore strndup was
1940 * lib/xstrndup.c: New.
1941 * src/scan-skel.l: Use it.
1942 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
1943 * src/parse-skel.y: Use %directives instead of #defines.
1945 2001-12-30 Akim Demaille <akim@epita.fr>
1947 * src/skeleton.h: New.
1948 * src/output.c (output_parser, output_master_parser): Remove, dead
1950 * src/output.h (get_lines_number, actions_output, guards_output)
1951 (token_definitions_output): Prototype them.
1952 * src/parse-skel.y: Add the license notice.
1953 Include output.h and skeleton.h.
1954 (process_skeleton): Returns void, and takes a single parameter.
1955 * src/scan-skel.l: Add the license notice.
1957 Don't use %option yylineno: it seems that then Flex imagines
1958 REJECT has been used, and therefore it won't reallocate its
1959 buffers (which makes no other sense to me than a bug). It results
1960 in warnings for `unused: yy_flex_realloc'.
1962 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
1964 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1965 (MUSCLE_INSERT_PREFIX): ...to there.
1966 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1967 (MUSCLE_INSERT_PREFIX): Move from here...
1969 * src/bison.hairy: Add a section directive. Put braces around muscle
1970 names. This parser skeleton is still broken, but Bison should not
1971 choke on a bad muscle 'syntax'.
1972 * src/bison.simple: Add a section directive. Put braces around muscle
1975 * src/files.h (strsuffix, stringappend): Add declarations.
1976 (tab_extension): Add declaration.
1977 (short_base_name): Add declaration.
1979 * src/files.c (strsuffix, stringappend): No longer static. These
1980 functions are used in the skeleton parser.
1981 (tab_extension): New.
1982 (compute_base_names): Use the computations done in this function
1983 to guess if the generated parsers should have '.tab' in their
1985 (short_base_name): No longer static.
1987 * src/output.c (output_skeleton): New.
1988 (output): Disable call to output_master_parser, and give a try to
1989 a new skeleton handling system.
1990 (guards_output, actions_output): No longer static.
1991 (token_definitions_output, get_lines_number): No longer static.
1993 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
1995 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
1998 * src/parse-skel.y: New file.
1999 * src/scan-skel.l: New file.
2001 2001-12-29 Akim Demaille <akim@epita.fr>
2003 %name-prefix is broken.
2005 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
2006 Adjust all dependencies.
2007 * tests/headers.at (export YYLTYPE): Strengthen this test: use
2010 Renaming yylval but not yylloc is not consistent. Now we do.
2012 * src/bison.simple: Prefix yylloc if used.
2013 * doc/bison.texinfo (Decl Summary): Document that.
2015 2001-12-29 Akim Demaille <akim@epita.fr>
2017 * doc/bison.texinfo: Promote `%long-directive' over
2019 Remove all references to fixed-output-files, yacc is enough.
2021 2001-12-29 Akim Demaille <akim@epita.fr>
2023 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
2024 user prologue. These are defaults.
2025 * tests/actions.at (Mid-rule actions): Make sure the user can
2026 define YYDEBUG and YYERROR_VERBOSE.
2028 2001-12-29 Akim Demaille <akim@epita.fr>
2030 * src/output.c (header_output): Don't forget to export YYLTYPE and
2032 * tests/headers.at (export YYLTYPE): New, make sure it does.
2033 * tests/regression.at (%union and --defines, Invalid CPP headers):
2035 * tests/headers.at: here.
2037 2001-12-29 Akim Demaille <akim@epita.fr>
2039 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
2041 2001-12-29 Akim Demaille <akim@epita.fr>
2043 * tests/actions.at (Mid-rule actions): Output on a single line
2046 2001-12-29 Akim Demaille <akim@epita.fr>
2048 * doc/bison.texinfo: Formatting changes.
2050 2001-12-29 Akim Demaille <akim@epita.fr>
2052 Don't store the token defs in a muscle, just be ready to output it
2053 on command. Now possible via `symbols'. Fixes a memory leak.
2055 * src/output.c (token_definitions_output): New.
2056 (output_parser, header_output): Use it.
2057 * src/reader.c (symbols_save): Remove.
2059 2001-12-29 Akim Demaille <akim@epita.fr>
2061 * src/bison.simple: Do not provide a default for YYSTYPE and
2062 YYLTYPE before the user's prologue. Otherwise it's hardly... a
2065 2001-12-29 Akim Demaille <akim@epita.fr>
2067 Mid-rule actions are simply... ignored!
2069 * src/reader.c (readgram): Be sure to attach mid-rule actions to
2070 the empty-rule associated to the dummy symbol, not to the host
2072 * tests/actions.at (Mid-rule actions): New.
2074 2001-12-29 Akim Demaille <akim@epita.fr>
2078 * src/reader.c (reader): Free grammar.
2080 2001-12-29 Akim Demaille <akim@epita.fr>
2084 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
2085 since it allocates it for each state, although only one is needed.
2086 (allocate_storage): Do it here.
2088 2001-12-29 Akim Demaille <akim@epita.fr>
2090 * src/options.h, src/options.c (create_long_option_table): Rename
2092 (long_option_table_new): this, with a clearer prototype.
2093 (percent_table): Remove, unused,
2094 * src/getargs.c (getargs): Adjust.
2096 2001-12-29 Akim Demaille <akim@epita.fr>
2098 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
2099 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
2102 2001-12-29 Akim Demaille <akim@epita.fr>
2104 * src/lalr.c (build_relations): Rename `states' as `states1'.
2105 Sorry, I don't understand exactly what it is, no better name...
2107 2001-12-29 Akim Demaille <akim@epita.fr>
2109 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
2110 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
2111 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
2114 2001-12-29 Akim Demaille <akim@epita.fr>
2116 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
2119 2001-12-29 Akim Demaille <akim@epita.fr>
2121 * src/reader.c, src/reader.h (user_toknums): Remove.
2122 Adjust all users to use symbols[i]->user_token_number.
2124 2001-12-29 Akim Demaille <akim@epita.fr>
2126 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
2127 Adjust all users to use symbols[i]->prec or ->assoc.
2129 2001-12-29 Akim Demaille <akim@epita.fr>
2131 * src/reader.c, src/reader.h (tags): Remove.
2132 Adjust all users to use symbols[i]->tag.
2134 2001-12-29 Akim Demaille <akim@epita.fr>
2136 * src/gram.h, src/gram.c (symbols): New, similar to state_table
2138 * src/reader.c (packsymbols): Fill this table.
2140 * src/conflicts.c (resolve_sr_conflict): Adjust.
2141 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
2143 Use symbols[i]->tag instead of tags[i].
2145 2001-12-29 Akim Demaille <akim@epita.fr>
2147 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
2148 In addition, put a comment in there, to replace...
2149 * tests/regression.at (%union and C comments): Remove.
2151 2001-12-29 Akim Demaille <akim@epita.fr>
2153 * tests/regression.at (Web2c Actions): Blindly move the actual
2154 output as expected output. The contents *seem* right to me, but I
2155 can't pretend reading perfectly parser tables... Nonetheless, all
2156 the other tests pass correctly, the table look OK, even though the
2157 presence of `$axiom' is to be noted: AFAICS it is useless (but
2160 2001-12-29 Akim Demaille <akim@epita.fr>
2162 * src/reader.c (readgram): Don't add the rule 0 if there were no
2163 rules read. In other words, add it _after_ having performed
2164 grammar sanity checks.
2165 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
2167 2001-12-29 Akim Demaille <akim@epita.fr>
2169 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
2170 visible, and some states have now a different number.
2172 2001-12-29 Akim Demaille <akim@epita.fr>
2174 * src/reader.c (readgram): Bind the initial rule's lineno to that
2176 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
2177 (Solved SR Conflicts): Adjust rule 0's line number.
2179 2001-12-29 Akim Demaille <akim@epita.fr>
2181 Fix the `GAWK Grammar' failure.
2183 * src/LR0.c (final_state): Initialize to -1 so that we do compute
2184 the reductions of the first state which was mistakenly confused
2185 with the final state because precisely final_state was initialized
2187 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
2188 now noticed by Bison.
2189 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
2190 have a reduction on $default.
2192 2001-12-29 Akim Demaille <akim@epita.fr>
2194 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
2196 * src/closure.c (print_closure): Likewise.
2197 * src/derives.c (print_derives): Likewise.
2198 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
2201 2001-12-29 Akim Demaille <akim@epita.fr>
2203 * src/lalr.c (lookaheads_print): New.
2204 (lalr): Call it when --trace-flag.
2205 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
2208 2001-12-29 Akim Demaille <akim@epita.fr>
2210 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
2211 when walking through ritem, even via rule->rhs.
2212 * src/reduce.c (dump_grammar, useful_production, reduce_output)
2213 (useful_production, useless_nonterminals): Likewise.
2214 (reduce_grammar_tables): Likewise, plus update nritems.
2215 * src/nullable.c (set_nullable): Likewise.
2216 * src/lalr.c (build_relations): Likewise.
2217 * tests/sets.at (Nullable): Adjust.
2218 Fortunately, now, the $axiom is no longer nullable.
2220 2001-12-29 Akim Demaille <akim@epita.fr>
2222 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
2224 * src/gram.c (ritem_longest_rhs): Likewise.
2225 * src/reduce.c (nonterminals_reduce): Likewise.
2226 * src/print_graph.c (print_graph): Likewise.
2227 * src/output.c (output_rule_data): Likewise.
2228 * src/nullable.c (set_nullable): Likewise.
2230 2001-12-29 Akim Demaille <akim@epita.fr>
2232 * src/output.c: Comment changes.
2234 2001-12-27 Paul Eggert <eggert@twinsun.com>
2236 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
2237 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
2238 Sparc, as they were causing more porting problems than the
2239 (minor) performance improvement was worth.
2241 Also, catch up with 1.31's YYSTD.
2243 2001-12-27 Akim Demaille <akim@epita.fr>
2245 * src/output.c (output_gram): Rely on nritems, not the
2246 0-sentinel. See below.
2247 Use -1 as separator, not 0.
2248 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
2249 Rely on -1 as separator in yyrhs, instead of 0.
2250 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
2251 twice `Now at end of input', therefore there are two lines less to
2254 2001-12-27 Akim Demaille <akim@epita.fr>
2256 * tests/regression.at (Unresolved SR Conflicts):
2257 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
2260 2001-12-27 Akim Demaille <akim@epita.fr>
2262 * src/LR0.c (new_state): Recognize the final state by the fact it
2263 is reached by eoftoken.
2264 (insert_start_shifting_state, insert_eof_shifting_state)
2265 (insert_accepting_state, augment_automaton): Remove, since now
2266 these states are automatically computed from the initial state.
2267 (generate_states): Adjust.
2268 * src/print.c: When reporting a rule number to the user, substract
2269 1, so that the axiom rule is rule 0, and the first user rule is 1.
2270 * src/reduce.c: Likewise.
2271 * src/print_graph.c (print_core): For the time being, just as for
2272 the report, depend upon --trace-flags to dump the full set of
2274 * src/reader.c (readgram): Once the grammar read, insert the rule
2275 0: `$axiom: START-SYMBOL $'.
2276 * tests/set.at: Adjust: rule 0 is now displayed, and since the
2277 number of the states has changed (the final state is no longer
2278 necessarily the last), catch up.
2280 2001-12-27 Akim Demaille <akim@epita.fr>
2282 Try to make the use of the eoftoken valid. Given that its value
2283 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
2284 is used instead of > 0 where appropriate, (ii), depend upon nritems
2285 instead of the 0-sentinel.
2287 * src/gram.h, src/gram.c (nritems): New.
2288 Expected to be duplication of nitems, but for the time being...
2289 * src/reader.c (packgram): Assert nritems and nitems are equal.
2290 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
2291 * src/closure.c (print_closure, print_fderives): Likewise.
2292 * src/gram.c (ritem_print): Likewise.
2293 * src/print.c (print_core, print_grammar): Likewise.
2294 * src/print_graph.c: Likewise.
2296 2001-12-27 Akim Demaille <akim@epita.fr>
2298 * src/main.c (main): If there are complains after grammar
2299 reductions, then output the report anyway if requested, then die.
2300 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
2301 * src/reader.c (eoftoken): New.
2302 (parse_token_decl): If the token being defined has value `0', it
2304 (packsymbols): No longer hack `tags' to insert `$' by hand.
2305 Be sure to preserve the value of the eoftoken.
2306 (reader): Make sure eoftoken is defined.
2307 Initialize nsyms to 0: now eoftoken is created just like the others.
2308 * src/print.c (print_grammar): Don't special case the eof token.
2309 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
2310 lie anyway, albeit pleasant.
2311 * tests/calc.at: Exercise error messages with eoftoken.
2312 Change the grammar so that empty input is invalid.
2313 Adjust expectations.
2314 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
2316 2001-12-27 Akim Demaille <akim@epita.fr>
2318 * configure.in: Check the protos of strchr ans strspn.
2319 Replace strchr if needed.
2320 * src/system.h: Provide the protos of strchr, strspn and memchr if
2322 * lib/strchr.c: New.
2323 * src/reader.c (symbols_save): Use strchr.
2325 2001-12-27 Akim Demaille <akim@epita.fr>
2327 * src/print.c, src/print_graph.c (escape): New.
2328 Use it to quote the TAGS outputs.
2329 * src/print_graph.c (print_state): Now errors are in red, and
2330 reductions in green.
2331 Prefer high to wide: output the state number on a line of its own.
2333 2001-12-27 Akim Demaille <akim@epita.fr>
2335 * src/state.h, src/state.c (reductions_new): New.
2336 * src/LR0.c (set_state_table): Let all the states have a
2337 `reductions', even if reduced to 0.
2338 (save_reductions): Adjust.
2339 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
2340 * src/print.c (print_reductions, print_actions): Adjust.
2341 * src/output.c (action_row): Adjust.
2343 2001-12-27 Akim Demaille <akim@epita.fr>
2345 * src/state.h, src/state.c (errs_new, errs_dup): New.
2346 * src/LR0.c (set_state_table): Let all the states have an errs,
2347 even if reduced to 0.
2348 * src/print.c (print_errs, print_reductions): Adjust.
2349 * src/output.c (output_actions, action_row): Adjust.
2350 * src/conflicts.c (resolve_sr_conflict): Adjust.
2352 2001-12-27 Akim Demaille <akim@epita.fr>
2354 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
2356 2001-12-27 Akim Demaille <akim@epita.fr>
2358 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
2359 * src/print.c: here.
2360 (lookaheadset, shiftset): New, used as additional storage by
2362 (print_results): Adjust.
2363 (print_shifts, print_gotos, print_errs): New, extracted from...
2364 (print_actions): here.
2365 * src/print_graph.c (print_actions): Remove dead code.
2367 2001-12-27 Akim Demaille <akim@epita.fr>
2369 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
2372 2001-12-27 Akim Demaille <akim@epita.fr>
2374 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
2375 (build_relations): Adjust.
2377 2001-12-27 Akim Demaille <akim@epita.fr>
2379 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
2382 2001-12-27 Akim Demaille <akim@epita.fr>
2384 * src/reader.c (packgram): Catch nitems overflows.
2386 2001-12-27 Akim Demaille <akim@epita.fr>
2388 * src/files.c, src/files.h (guard_obstack): Remove.
2389 * src/output.c (output): Adjust.
2390 * src/reader.c (parse_braces): New, factoring...
2391 (copy_action, copy_guard): these two which are renamed as...
2392 (parse_action, parse_guard): these.
2393 As a voluntary consequence, using braces around guards is now
2396 2001-12-27 Akim Demaille <akim@epita.fr>
2398 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
2399 * src/reader.c (symbol_list): `guard' and `guard_line' are new
2401 (symbol_list_new): Adjust.
2402 (copy_action): action_line is the first line, not the last.
2403 (copy_guard): Just as for actions, store the `action' only, not
2404 the switch/case/break flesh.
2405 Don't parse the user action that might follow the guard, let...
2406 (readgram): do it, i.e., now, there can be an action after a
2408 In other words the guard is just explicitly optional.
2410 * src/output.c (guards_output): New.
2411 (output_parser): Call it when needed.
2412 (output): Also free the guard and attrs obstacks.
2413 * src/files.c, src/files.h (obstack_save): Remove.
2414 (output_files): Remove.
2415 As a result, if one needs the former `.act' file, using an
2416 appropriate skeleton which requires actions and guards is now
2418 * src/main.c (main): Adjust.
2419 * tests/semantic.at: New.
2420 * tests/regression.at: Use `input.y' as input file name.
2421 Avoid 8+3 problems by requiring input.c when the test needs the
2424 2001-12-27 Akim Demaille <akim@epita.fr>
2426 * src/reader.c (symbol_list_new): Be sure to initialize all the
2429 2001-12-27 Akim Demaille <akim@epita.fr>
2431 All the hacks using a final pseudo state are now useless.
2433 * src/LR0.c (set_state_table): state_table holds exactly nstates.
2434 * src/lalr.c (nLA): New.
2435 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
2436 instead of lookaheadsp from the pseudo state (nstate + 1).
2438 2001-12-27 Akim Demaille <akim@epita.fr>
2440 * src/output.c (action_row, token_actions): Use a state_t instead
2441 of a integer, and nlookaheads instead of the following state's
2444 2001-12-27 Akim Demaille <akim@epita.fr>
2446 * src/conflicts.c (log_resolution, flush_shift)
2447 (resolve_sr_conflict, set_conflicts, solve_conflicts)
2448 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
2449 (conflicts_print, print_reductions): Use a state_t instead of an
2450 integer when referring to a state.
2451 As much as possible, depend upon nlookaheads, instead of the
2452 `lookaheadsp' member of the following state (since lookaheads of
2453 successive states are successive, the difference between state n + 1
2454 and n served as the number of lookaheads for state n).
2455 * src/lalr.c (add_lookback_edge): Likewise.
2456 * src/print.c (print_core, print_actions, print_state)
2457 (print_results): Likewise.
2458 * src/print_graph.c (print_core, print_actions, print_state)
2459 (print_graph): Likewise.
2460 * src/conflicts.h: Adjust.
2462 2001-12-27 Akim Demaille <akim@epita.fr>
2464 * src/bison.hairy: Formatting/comment changes.
2466 Remove `register' indications.
2467 Add plenty of `static'.
2469 2001-12-27 Akim Demaille <akim@epita.fr>
2471 * src/output.c (prepare): Drop the muscle `ntbase' which
2473 * src/bison.simple: Formatting/comment changes.
2474 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
2475 is an undocumented synonym.
2477 2001-12-22 Akim Demaille <akim@epita.fr>
2479 * src/output.c (output_table_data): Change the prototype to use
2480 `int' for array ranges: some invocations do pass an int, not a
2482 Reported by Wayne Green.
2484 2001-12-22 Akim Demaille <akim@epita.fr>
2486 Some actions of web2c.y are improperly triggered.
2487 Reported by Mike Castle.
2489 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
2490 * tests/regression.at (Web2c): Rename as...
2491 (Web2c Report): this.
2492 (Web2c Actions): New.
2494 2001-12-22 Akim Demaille <akim@epita.fr>
2496 Reductions in web2c.y are improperly reported.
2497 Reported by Mike Castle.
2499 * src/conflicts.c (print_reductions): Fix.
2500 * tests/regression.at (Web2c): New.
2502 2001-12-18 Akim Demaille <akim@epita.fr>
2504 Some host fail on `assert (!"foo")', which expands to
2505 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
2506 Reported by Nelson Beebee.
2508 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
2509 `#define it_succeeded 0' and `assert (it_succeeded)'.
2511 2001-12-17 Marc Autret <autret_m@epita.fr>
2513 * src/bison.simple: Don't hard code the skeleton line and filename.
2514 * src/output.c (output_parser): Rename 'line' as 'output_line'.
2515 New line counter 'skeleton_line' (skeleton-line muscle).
2517 2001-12-17 Paul Eggert <eggert@twinsun.com>
2519 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
2520 YYDEBUG must be defined to a nonzero value.
2522 * src/bison.simple (yytname): Do not assume that the user defines
2523 YYDEBUG to a properly parenthesized expression.
2525 2001-12-17 Akim Demaille <akim@epita.fr>
2527 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
2528 nlookaheads is a new member.
2530 * src/lalr.h (nlookaheads): Remove this orphan declaration.
2531 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
2534 2001-12-17 Akim Demaille <akim@epita.fr>
2536 * src/files.h, src/files.c (open_files, close_files): Remove.
2537 * src/main.c (main): Don't open/close files, nor invoke lex_free,
2539 * src/reader.c (reader): Do it.
2541 2001-12-17 Akim Demaille <akim@epita.fr>
2543 * src/conflicts.c (print_reductions): Formatting changes.
2545 2001-12-17 Akim Demaille <akim@epita.fr>
2547 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
2548 (flush_reduce): New.
2549 (resolve_sr_conflict): Adjust.
2551 2001-12-17 Akim Demaille <akim@epita.fr>
2553 * src/output.c (output_obstack): Be static and rename as...
2554 (format_obstack): this, to avoid any confusion with files.c's
2556 * src/reader.h (muscle_obstack): Move to...
2557 * src/output.h: here, since it's defined in output.c.
2559 2001-12-17 Akim Demaille <akim@epita.fr>
2561 * src/output.c (action_row, save_column, default_goto)
2562 (sort_actions, matching_state, pack_vector): Better variable
2565 2001-12-17 Akim Demaille <akim@epita.fr>
2567 * src/output.c: Various formatting changes.
2569 2001-12-17 Akim Demaille <akim@epita.fr>
2571 * src/files.c (output_files): Free the output_obstack.
2572 * src/main.c (main): Call print and print_graph conditionally.
2573 * src/print.c (print): Work unconditionally.
2574 * src/print_graph.c (print_graph): Work unconditionally.
2575 * src/conflicts.c (log_resolution): Output only if verbose_flag.
2577 2001-12-16 Marc Autret <autret_m@epita.fr>
2579 * src/output.c (actions_output): Fix. When we use %no-lines,
2580 there is one less line per action.
2582 2001-12-16 Marc Autret <autret_m@epita.fr>
2584 * src/bison.simple: Remove a useless #line directive.
2585 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
2586 * src/output.c (get_lines_number): New.
2587 (output_parser): Adjust, now takes care about the lines of a
2590 (actions_output): Computes the number of lines taken by actions.
2591 (output_master_parser): Insert new skeleton which is the name of
2592 the output parser file name.
2594 2001-12-15 Marc Autret <autret_m@epita.fr>
2596 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
2598 2001-12-15 Marc Autret <autret_m@epita.fr>
2600 * src/output.c (output_gram): Keep track of the hairy one.
2602 2001-12-15 Akim Demaille <akim@epita.fr>
2604 Make `make distcheck' work.
2606 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
2607 system.h which uses libgettext.h.
2609 2001-12-15 Akim Demaille <akim@epita.fr>
2611 * src/nullable.c (set_nullable): Useless rules must be skipped,
2612 otherwise, since we range over their symbols, we might look at a
2613 nonterminal which no longer ``exists'', i.e., it is not counted in
2614 `nvars', hence we overflow our arrays.
2616 2001-12-15 Akim Demaille <akim@epita.fr>
2618 The header can also be produced directly, without any obstack!
2621 * src/files.c, src/files.h (defines_obstack): Remove.
2622 (compute_header_macro): Global.
2623 (defines_obstack_save): Remove.
2624 * src/reader.c (parse_union_decl): No longer output to
2625 defines_obstack: its content can be found in the `stype' muscle
2627 (output_token_translations): Merge into...
2628 (symbols_output): this.
2630 (symbols_save): this.
2632 * src/output.c (header_output): New.
2635 2001-12-15 Akim Demaille <akim@epita.fr>
2637 * src/reader.c (parse_union_decl): Instead of handling two obstack
2638 simultaneously, use one to define the `stype' muscle, and use the
2639 value of the latter to fill defines_obstack.
2640 (copy_comment): Remove.
2641 (copy_comment2): Work for a single obstack.
2643 (copy_comment): this.
2645 2001-12-15 Akim Demaille <akim@epita.fr>
2647 * src/lex.c, src/lex.h (xgetc): No longer static.
2648 * src/reader.c (parse_union_decl): Revamp.
2650 2001-12-15 Akim Demaille <akim@epita.fr>
2652 Still making progress in separating Bison into (i) input, (ii)
2653 process, (iii) output: now we can directly output the parser file
2654 without using table_obstack at all.
2656 * src/files.c, src/files.h (table_obstack): Bye bye.
2657 (parser_file_name): New.
2658 * src/files.c (compute_output_file_names): Compute it.
2659 * src/output.c (actions_output, output_parser)
2660 (output_master_parser): To a file instead of an obstack.
2662 2001-12-15 Akim Demaille <akim@epita.fr>
2664 Attach actions to rules, instead of pre-outputting them to
2667 * src/gram.h (rule_t): action and action_line are new members.
2668 * src/reader.c (symbol_list): Likewise.
2669 (copy_action): Save the actions within the rule.
2670 (packgram): Save them in rule_table.
2671 * src/output.c (actions_output): New.
2672 (output_parser): Use it on `%%actions'.
2673 (output_rule_data): Don't free rule_table.
2675 (prepare): Don't save the `action' muscle.
2676 * src/bison.simple: s/%%action/%%actions/.
2678 2001-12-15 Akim Demaille <akim@epita.fr>
2680 * src/reader.c (copy_action): When --yacc, don't append a `;'
2681 to the user action: let it fail if lacking.
2682 Suggested by Arnold Robbins and Tom Tromey.
2684 2001-12-14 Akim Demaille <akim@epita.fr>
2686 * src/lex.c (literalchar): Simply return the char you decoded, non
2687 longer mess around with obstacks and int pointers.
2690 2001-12-14 Akim Demaille <akim@epita.fr>
2692 * src/lex.c (literalchar): Don't escape the special characters,
2693 just decode them, and keep them as char (before, eol was output as
2694 the 2 char string `\n' etc.).
2695 * src/output.c (output_rule_data): Use quotearg to output the
2698 2001-12-13 Paul Eggert <eggert@twinsun.com>
2700 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
2701 Do not infringe on the global user namespace when using C++.
2702 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
2703 All uses of `fprintf' and `stderr' changed.
2705 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
2707 2001-12-13 Akim Demaille <akim@epita.fr>
2709 The computation of nullable is broken: it doesn't handle empty
2712 * tests/torture.at (GNU AWK Grammar): New.
2713 * tests/sets.at (Nullable): New.
2714 * src/nullable.c (set_nullable): Instead of blindly looping over
2715 `ritems', loop over the rules, and then over their rhs's.
2717 Work around Autotest bugs.
2719 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
2720 frame, because Autotest understand lines starting with a `+' as
2721 traces from the shell. Then, they are not processed properly.
2722 Admittedly an Autotest bug, but we don't have time to wait for
2723 Autotest to catch up.
2724 * tests/regression.at (Broken Closure): Adjust to the new table
2727 * tests/sets.at: here.
2729 2001-12-13 Akim Demaille <akim@epita.fr>
2731 * src/closure.c (closure): Use nrules instead of playing tricks
2734 2001-12-13 Akim Demaille <akim@epita.fr>
2736 * src/print.c (print_actions): Output the handling of `$' as the
2737 traces do: shifting the token EOF. Before EOF was treated as a
2739 * tests/regression.at: Adjust some tests.
2740 * src/print_graph.c (print_core): Complete the set of items via
2741 closure. The next-to-final and final states are still unsatisfying,
2742 but that's to be addressed elsewhere.
2743 No longer output the rule numbers, but do output the state number.
2744 A single loop for the shifts + gotos is enough, but picked a
2745 distinct color for each.
2746 (print_graph): Initialize and finalize closure.
2748 2001-12-13 Akim Demaille <akim@epita.fr>
2750 * src/reader.c (readgram): Remove dead code, an strip useless
2752 (get_type): Remove, unused.
2754 2001-12-12 Akim Demaille <akim@epita.fr>
2756 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
2757 on that of lib/error.c.
2759 2001-12-12 Akim Demaille <akim@epita.fr>
2761 Some hosts don't like `/' in includes.
2763 * src/system.h: Include libgettext.h without qualifying the path.
2764 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
2767 2001-12-11 Marc Autret <autret_m@epita.fr>
2769 * src/output.c (output_parser): Remove useless muscle.
2771 2001-12-11 Marc Autret <autret_m@epita.fr>
2773 * src/bison.simple: Remove #line just before %%epilogue. It
2774 is now handled in ...
2775 * src/reader.c (read_additionnal_code): Add the output of a
2776 #line for the epilogue.
2778 2001-12-10 Marc Autret <autret_m@epita.fr>
2780 * src/reader.c (copy_definition): Re-use CPP-outed code which
2781 replace precedent remove.
2782 * src/bison.simple: Remove #line before %%prologue because
2783 %%input-line is wrong at this time.
2785 2001-12-10 Marc Autret <autret_m@epita.fr>
2787 * src/reader.c (symbols_output): Clean up.
2788 * src/output.c (output_gram, output): Clean up.
2790 2001-12-10 Akim Demaille <akim@epita.fr>
2792 * src/lalr.c (initialize_lookaheads): New. Extracted from...
2793 * src/LR0.c (set_state_table): here.
2794 * src/lalr.c (lalr): Call it.
2796 2001-12-10 Akim Demaille <akim@epita.fr>
2798 * src/state.h (shifts): Remove the `number' member: shifts are
2799 attached to state, hence no longer need to be labelled with a
2802 2001-12-10 Akim Demaille <akim@epita.fr>
2804 Now that states have a complete set of members, the linked list of
2805 shifts is useless: just fill directly the state's shifts member.
2807 * src/state.h (shifts): Remove the `next' member.
2808 * src/LR0.c (first_state, last_state): Remove.
2810 (augment_automaton): Don't look for the shifts that must be added
2811 a shift on EOF: it is those of the state we looked for! But now,
2812 since shifts are attached, it is no longer needed to looking
2813 merely by its id: its number.
2815 2001-12-10 Akim Demaille <akim@epita.fr>
2817 * src/LR0.c (augment_automaton): Better variable locality.
2818 Remove an impossible branch: if there is a state corresponding to
2819 the start symbol being shifted, then there is shift for the start
2820 symbol from the initial state.
2822 2001-12-10 Akim Demaille <akim@epita.fr>
2824 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
2825 only when appropriate: when insert_start_shifting_state' is not
2827 * tests/regression.at (Rule Line Numbers): Adjust.
2829 2001-12-10 Akim Demaille <akim@epita.fr>
2831 * src/LR0.c (augment_automaton): Now that all states have shifts,
2832 merge the two cases addition shifts to the initial state.
2834 2001-12-10 Akim Demaille <akim@epita.fr>
2836 * src/lalr.c (set_state_table): Move to...
2838 * src/lalr.c (lalr): Don't call it...
2839 * src/LR0.c (generate_states): do it.
2840 * src/LR0.h (first_state): Remove, only the table is used.
2842 2001-12-10 Akim Demaille <akim@epita.fr>
2844 * src/LR0.h (first_shift, first_reduction): Remove.
2845 * src/lalr.c: Don't use first_shift: find shifts through the
2848 2001-12-10 Akim Demaille <akim@epita.fr>
2850 * src/LR0.c: Attach shifts to states as soon as they are
2852 * src/lalr.c (set_state_table): Instead of assigning shifts to
2853 state, just assert that the mapping was properly done.
2855 2001-12-10 Akim Demaille <akim@epita.fr>
2857 * src/LR0.c (insert_start_shift): Rename as...
2858 (insert_start_shifting_state): this.
2859 (insert_eof_shifting_state, insert_accepting_state): New.
2860 (augment_automaton): Adjust.
2861 Better locality of the variables.
2862 When looking if the start_symbol is shifted from the initial
2863 state, using `while (... symbol != start_symbol ...)' sounds
2864 better than `while (... symbol < start_symbol ...)': If fail
2865 to see how the order between symbols could be relevant!
2867 2001-12-10 Akim Demaille <akim@epita.fr>
2869 * src/getargs.h: Don't declare `spec_name_prefix' and
2870 `spec_file_prefix', declared by src/files.h.
2871 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
2872 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
2873 * src/output.c (prepare): Adjust.
2874 * src/reader.c (symbols_output): Likewise.
2875 * src/vmsgetargs.c: Vaguely adjust, but who cares?
2877 2001-12-10 Akim Demaille <akim@epita.fr>
2879 * src/muscle_tab.c (muscle_init): NULL is a better default than
2882 2001-12-10 Akim Demaille <akim@epita.fr>
2884 * src/reader.c (reader): Calling symbols_output once is enough.
2886 2001-12-10 Akim Demaille <akim@epita.fr>
2888 Now that states have a complete set of members, the linked list of
2889 reductions is useless: just fill directly the state's reductions
2892 * src/state.h (struct reductions): Remove member `number' and
2894 * src/LR0.c (first_reduction, last_reduction): Remove.
2895 (save_reductions): Don't link the new reductions, store them in
2897 * src/lalr.c (set_state_table): No need to attach reductions to
2898 states, it's already done.
2899 * src/output.c (output_actions): No longer free the shifts, then
2900 the reductions, then the states: free all the states and their
2903 2001-12-10 Akim Demaille <akim@epita.fr>
2905 * src/options.c (OPTN, DRTV, BOTH): New.
2906 (option_table): Use them.
2908 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
2909 the job of system.h.
2910 * src/options.c: Don't include stdio.h and xalloc.h for the same
2913 2001-12-10 Akim Demaille <akim@epita.fr>
2915 * src/output.c (output, prepare): Make sure the values of the
2916 muscles `action' and `prologue' are 0-terminated.
2918 2001-12-10 Akim Demaille <akim@epita.fr>
2920 Clean up GCC warnings.
2922 * src/reader.c (copy_action): `buf' is not used.
2923 (parse_skel_decl): Be static.
2924 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
2925 * src/options.h (create_long_option_table): Have a real prototype.
2926 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
2927 (hash_delete_at): Return const void *.
2928 Adjust casts to preserve the const.
2930 2001-12-10 Akim Demaille <akim@epita.fr>
2932 * configure.in: Require 2.52g.
2933 M4 is not needed, but AUTOM4TE is.
2935 * tests/Makefile.am: Adjust.
2937 2001-12-10 Akim Demaille <akim@epita.fr>
2939 One structure for states is enough, even though theoretically
2940 there are LR(0) states and LALR(1) states.
2942 * src/lalr.h (state_t): Remove.
2943 (state_table): Be state_t **, not state_t *.
2944 * src/state.h (core, CORE_ALLOC): Rename as...
2945 (state_t, STATE_ALLOC): this.
2946 Add the LALR(1) members: shifts, reductions, errs.
2947 * src/LR0.c (state_table): Rename as...
2948 (state_hash): this, to avoid name clashes with the global
2950 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
2951 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
2953 2001-12-10 Akim Demaille <akim@epita.fr>
2955 Bison dumps core on bash.y.
2956 Reported by Pascal Bart.
2958 * src/warshall.c (bitmatrix_print): New.
2960 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
2961 j must be the outer loop.
2962 * tests/regression.at (Broken Closure): New.
2964 2001-12-05 Akim Demaille <akim@epita.fr>
2966 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
2968 Reported by Peter Hámorský.
2970 2001-12-05 Akim Demaille <akim@epita.fr>
2972 * src/conflicts.c (err_table): Remove.
2973 (resolve_sr_conflict): Adjust.
2974 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
2976 (state_t.reductions, state_t.shifts): this.
2978 2001-12-05 Akim Demaille <akim@epita.fr>
2980 * src/reduce.c (reduce_grammar_tables): No longer disable the
2981 removal of useless rules via CPP but via `if (0)', so that the
2982 compiler still check the code is valid.
2983 For instance, it should have noticed `rline' no longer exists: use
2984 the `line' member of rule_t.
2985 * src/gram.c (dummy, rline): Remove, unused.
2987 2001-12-05 Akim Demaille <akim@epita.fr>
2989 * src/output.c (pack_vector): Use assert, not berror.
2990 * src/main.c (berror): Remove, unused.
2992 2001-12-05 Akim Demaille <akim@epita.fr>
2994 New experimental feature: if --verbose --trace output all the
2995 items of a state, not only its kernel.
2997 * src/print.c (print_core): If `trace_flag', then invoke closure
2998 before outputting the items of the state (print_core is no longer
2999 a correct name them).
3000 (print_results): Invoke new_closure/free_closure if needed.
3002 2001-12-05 Akim Demaille <akim@epita.fr>
3004 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
3005 * src/closure.c, src/closure.h (itemsetsize): Rename as...
3006 (nitemset): for consistency with the rest of the project.
3008 2001-12-05 Akim Demaille <akim@epita.fr>
3010 * src/closure.c (print_closure): Improve.
3011 (closure): Use it for printing input and output.
3013 2001-12-05 Akim Demaille <akim@epita.fr>
3015 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
3016 indexed by nonterminals.
3018 2001-12-05 Akim Demaille <akim@epita.fr>
3020 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
3022 * src/warshall.h: Remove accidental duplication of the content.
3024 2001-12-05 Akim Demaille <akim@epita.fr>
3026 * src/closure.c (set_fderives): De-obfuscate.
3028 2001-12-05 Akim Demaille <akim@epita.fr>
3030 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
3032 2001-12-05 Akim Demaille <akim@epita.fr>
3034 * src/closure.c (set_firsts): De-obfuscate.
3036 2001-12-05 Akim Demaille <akim@epita.fr>
3038 * src/output.c (action_row): De-obfuscate
3039 using the good o' techniques: arrays not pointers, variable
3040 locality, BITISSET, RESETBIT etc.
3042 2001-12-05 Akim Demaille <akim@epita.fr>
3044 Pessimize the code to simplify it: from now on, all the states
3045 have a valid SHIFTS, which NSHIFTS is possibly 0.
3047 * src/LR0.c (shifts_new): Be global and move to..
3048 * src/state.c, src/state.h: here.
3049 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
3050 * src/print_graph: Adjust.
3052 2001-12-05 Akim Demaille <akim@epita.fr>
3054 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
3055 * src/conflicts.c: Use it.
3056 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
3057 incorrectly ``simplified''.
3059 2001-12-05 Akim Demaille <akim@epita.fr>
3061 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
3062 using the good o' techniques: arrays not pointers, variable
3063 locality, BITISSET, RESETBIT etc.
3065 2001-12-05 Akim Demaille <akim@epita.fr>
3067 * src/state.h (SHIFT_SYMBOL): New.
3068 * src/conflicts.c: Use it to deobfuscate.
3070 2001-12-05 Akim Demaille <akim@epita.fr>
3072 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
3073 (print_reductions): De-obfuscate using the good o' techniques:
3074 arrays not pointers, variable locality, BITISSET.
3076 2001-12-05 Akim Demaille <akim@epita.fr>
3078 * src/conflicts.c (print_reductions): Arrays, not pointers.
3081 2001-12-05 Akim Demaille <akim@epita.fr>
3083 * src/conflicts.c (print_reductions): Pessimize, but clarify.
3085 2001-12-05 Akim Demaille <akim@epita.fr>
3087 * src/conflicts.c (print_reductions): Improve variable locality.
3089 2001-12-05 Akim Demaille <akim@epita.fr>
3091 * src/conflicts.c (print_reductions): Pessimize, but clarify.
3093 2001-12-05 Akim Demaille <akim@epita.fr>
3095 * src/conflicts.c (print_reductions): Improve variable locality.
3097 2001-12-05 Akim Demaille <akim@epita.fr>
3099 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
3100 * src/lalr.c: Use them.
3102 2001-12-05 Akim Demaille <akim@epita.fr>
3104 * src/LR0.c (augment_automaton): Formatting changes.
3105 Better variable locality.
3107 2001-12-05 Akim Demaille <akim@epita.fr>
3109 * src/lalr.c (matrix_print): New.
3110 (transpose): Use it.
3111 Use arrays instead of pointers.
3113 2001-12-05 Akim Demaille <akim@epita.fr>
3115 * src/lalr.c (maxrhs): Move to...
3116 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
3117 * src/lalr.c (build_relations): Adjust.
3119 2001-12-05 Akim Demaille <akim@epita.fr>
3121 * src/lalr.c (transpose): Free the memory allocated to the
3122 argument, as it is replaced by the results by the unique caller.
3123 (build_relations): Merely invoke transpose: it handles the memory
3125 Improve variable locality.
3126 Avoid variables used as mere abbreviations.
3127 (compute_lookaheads): Use arrays instead of pointers.
3129 2001-12-05 Akim Demaille <akim@epita.fr>
3131 * src/lalr.c (initialize_F): Improve variable locality.
3132 Avoid variables used as mere abbreviations.
3134 2001-12-05 Akim Demaille <akim@epita.fr>
3136 * src/derives.c (print_derives): Display the ruleno.
3137 * src/lalr.c (initialize_F, transpose): Better variable locality
3138 to improve readability.
3139 Avoid variables used as mere abbreviations.
3141 2001-12-05 Akim Demaille <akim@epita.fr>
3143 * src/lalr.c (traverse): Use arrays instead of pointers.
3145 2001-12-05 Akim Demaille <akim@epita.fr>
3147 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
3148 the handling of squeue.
3149 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
3151 2001-12-05 Akim Demaille <akim@epita.fr>
3153 Because useless nonterminals are now kept alive (instead of being
3154 `destroyed'), we now sometimes examine them, and store information
3155 related to them. Hence we need to know their number, and adjust
3158 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
3160 * src/LR0.c (allocate_itemsets): The memory allocated to
3161 `symbol_count' was used for two different purpose: once to count
3162 the number of occurrences of each symbol, and later reassigned to
3163 `shift_symbol', containing the symbol that can be shifted from a
3165 Deobfuscate, i.e., allocate, use and free `symbol_count' here
3167 (new_itemsets): Allocate `shift_symbol' here.
3168 (allocate_itemsets): symbol_count includes useless nonterminals.
3170 (free_storage): Use `free', not `XFREE', for pointers that cannot
3173 2001-12-05 Akim Demaille <akim@epita.fr>
3175 * src/nullable.c (set_nullable): Deobfuscate the handling of
3177 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
3179 2001-12-05 Akim Demaille <akim@epita.fr>
3181 * src/gram.c, src/gram.h (ritem_print): New.
3182 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
3183 (This useless function was defined only to work around VMS linkers
3184 that can't handle compilation units with variables only).
3185 * src/reduce.c (dump_grammar): Use it to trace the construction of
3188 2001-12-04 Paul Eggert <eggert@twinsun.com>
3190 * src/bison.simple (union yyalloc): Change member names
3191 to be the same as the stack names.
3192 (yyparse): yyptr is now union yyalloc *, not char *.
3193 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
3194 and may generate better code on some machines.
3195 (yystpcpy): Use prototype if __STDC__ is defined, not just
3196 if __cplusplus is defined.
3198 2001-11-30 Akim Demaille <akim@epita.fr>
3200 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
3201 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
3202 Gettext doesn't compile cleanly, and dies with -Werror.
3203 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
3204 Include WARNING_CFLAGS here.
3205 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
3206 before being defined.
3208 2001-11-27 Paul Eggert <eggert@twinsun.com>
3210 * lib/quotearg.h (quotearg_n, quotearg_n_style):
3211 First arg is int, not unsigned.
3212 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
3213 (SIZE_MAX, UINT_MAX): New macros.
3214 (quotearg_n_options): Abort if N is negative.
3215 Avoid overflow check on hosts where size_t is 64 bits and int
3216 is 32 bits, as overflow is impossible there.
3217 Fix off-by-one typo that caused unnecessary reallocation.
3219 2001-11-29 Paul Eggert <eggert@twinsun.com>
3221 Name space cleanup in generated parser.
3223 * doc/bison.texinfo (Bison Parser): Discuss system headers
3224 and their effect on the user name space.
3227 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
3228 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
3229 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
3231 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
3232 on user names when possible.
3234 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
3235 Simplify test for whather <alloca.h> exists.
3237 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
3239 (<stdio.h>): Include if YYDEBUG.
3241 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
3242 ! defined (yyoverflow) && ! defined (yymemcpy).
3244 (yymemcpy, yyparse): Rename local variables as needed so that
3245 they all begin with 'yy'.
3247 (yystrlen, yystpcpy): New functions.
3249 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
3252 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
3253 instead of relying on string.h functions. Use YYSTACK_ALLOC
3254 and YYSTACK_FREE instead of malloc and free.
3256 2001-11-30 Akim Demaille <akim@epita.fr>
3258 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
3259 before their first uses.
3260 (YYBISON, YYPURE): Move to the top of the output.
3262 2001-11-30 Akim Demaille <akim@epita.fr>
3264 * tests/reduce.at (Useless Nonterminals): Fix.
3266 2001-11-30 Akim Demaille <akim@epita.fr>
3268 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
3269 if body instead of `;' to pacify GCC's warnings.
3271 2001-11-30 Akim Demaille <akim@epita.fr>
3273 Instead of mapping the LHS of unused rules to -1, keep the LHS
3274 valid, but flag the rules as invalid.
3276 * src/gram.h (rule_t): `useful' is a new member.
3277 * src/print.c (print_grammar): Adjust.
3278 * src/derives.c (set_derives): Likewise.
3279 * src/reader.c (packgram, reduce_output): Likewise.
3280 * src/reduce.c (reduce_grammar_tables): Likewise.
3281 * tests/reduce.at (Underivable Rules, Useless Rules): New.
3283 2001-11-30 Akim Demaille <akim@epita.fr>
3285 * src/reduce.c (reduce_output): Formatting changes.
3286 * src/print.c (print_results, print_grammar): Likewise.
3287 * tests/regression.at (Rule Line Numbers)
3288 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
3290 2001-11-30 Akim Demaille <akim@epita.fr>
3292 * src/reduce.c (nonterminals_reduce): Instead of throwing away
3293 useless nonterminals, move them at the end of the symbol arrays.
3294 (reduce_output): Adjust.
3295 * tests/reduce.at (Useless Nonterminals): Adjust.
3297 2001-11-30 Akim Demaille <akim@epita.fr>
3299 * src/reduce.c: Various comment/formatting changes.
3300 (nonterminals_reduce): New, extracted from...
3301 (reduce_grammar_tables): here.
3302 (reduce_grammar): Call nonterminals_reduce.
3304 2001-11-29 Paul Eggert <eggert@twinsun.com>
3306 * src/bison.simple (YYSTACK_REALLOC): Remove.
3307 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
3308 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
3310 (union yyalloc): New type.
3311 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
3312 an arbitrary restriction on hosts where size_t is wider than int.
3314 (yyparse): Don't dump core if alloca or malloc fails; instead, report
3315 a parser stack overflow. Allocate just one block of memory for all
3316 three stacks, instead of allocating three blocks; this typically is
3317 faster and reduces fragmentation.
3319 Do not limit the number of items in the stack to a value that fits
3320 in 'int', as this is an arbitrary limit on hosts with 64-bit
3321 size_t and 32-bit int.
3323 2001-11-29 Marc Autret <autret_m@epita.fr>
3325 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
3326 of defining YYERROR_VERBOSE.
3327 [AT_DATA]: $4 is now out of C declarations in the prologue.
3329 2001-11-28 Marc Autret <autret_m@epita.fr>
3331 * src/reader.c (parse_dquoted_param): New.
3332 (parse_skel_decl): Use it.
3333 * src/lex.h: Add its prototype.
3334 * src/lex.c (literalchar): Become not static.
3336 2001-11-28 Marc Autret <autret_m@epita.fr>
3338 * src/output.h: And put its extern declaration here.
3339 * src/output.c (error_verbose): Define here.
3340 (prepare): Echo name modification.
3341 * src/getargs.h: Clean its extern declaration.
3342 * src/getargs.c (error_verbose_flag): Remove.
3343 (getargs): Remove case 'e'.
3344 * src/options.c (option_table): 'error-verbose' is now seen as simple
3348 * src/reader.c (read_declarations): Remove case tok_include.
3349 (parse_include_decl): Remove.
3350 * src/lex.h (token_t): Remove tok_include.
3351 * src/options.c (option_table): 'include' is now a simple command line
3354 2001-11-28 Marc Autret <autret_m@epita.fr>
3356 * src/bison.simple: Adjust muscle names.
3357 * src/muscle_tab.c (muscle_init): Also rename the muscles.
3358 * src/output.c (prepare): s/_/-/ for the muscles names.
3359 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
3361 2001-11-28 Marc Autret <autret_m@epita.fr>
3363 * src/bison.simple: Fix debug.
3364 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
3366 2001-11-28 Akim Demaille <akim@epita.fr>
3368 * src/LR0.c (shifts_new): New.
3369 (save_shifts, insert_start_shift, augment_automaton): Use it.
3371 2001-11-28 Akim Demaille <akim@epita.fr>
3373 * src/closure.c (closure): `b' and `ruleno' denote the same value:
3376 2001-11-28 Akim Demaille <akim@epita.fr>
3378 * src/closure.c (closure): Instead of looping over word in array
3379 then bits in words, loop over bits in array.
3381 2001-11-28 Akim Demaille <akim@epita.fr>
3383 * src/closure.c (closure): No longer optimize the special case
3384 where all the bits of `ruleset[r]' are set to 0, to make the code
3387 2001-11-28 Akim Demaille <akim@epita.fr>
3389 * src/closure.c (closure): `r' and `c' are new variables, used to
3390 de-obfuscate accesses to RULESET and CORE.
3392 2001-11-28 Akim Demaille <akim@epita.fr>
3394 * src/reduce.c (reduce_print): Use ngettext.
3395 (dump_grammar): Improve the trace accuracy.
3397 2001-11-28 Akim Demaille <akim@epita.fr>
3399 * src/reduce.c (dump_grammar): Don't translate trace messages.
3401 2001-11-28 Akim Demaille <akim@epita.fr>
3403 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
3404 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
3405 as all tags are free'ed afterwards.
3408 2001-11-27 Paul Eggert <eggert@twinsun.com>
3410 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
3411 use alloca when we didn't want to, and vice versa.
3413 2001-11-27 Marc Autret <autret_m@epita.fr>
3415 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
3417 * src/output.c (prepare): Remove its update.
3419 2001-11-27 Marc Autret <autret_m@epita.fr>
3421 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
3424 2001-11-27 Marc Autret <autret_m@epita.fr>
3426 * src/bison.simple: Remove YYERROR_VERBOSE using.
3427 Use %%error_verbose.
3428 (yyparse): Likewise.
3429 * src/output.c (prepare): Give its final value.
3430 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
3431 * src/getargs.h: Add its extern declaration.
3432 * src/getargs.c (error_verbose_flag): New int.
3433 (getargs): Update to catch new case.
3434 * src/options.c (option_table): 'error-verbose' is a new option.
3435 (shortopts): Update.
3437 2001-11-27 Akim Demaille <akim@epita.fr>
3439 * src/system.h: Use intl/libgettext.h.
3440 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
3442 2001-11-27 Akim Demaille <akim@epita.fr>
3444 * tests/torture.at (Exploding the Stack Size with Malloc):
3445 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
3447 2001-11-27 Akim Demaille <akim@epita.fr>
3449 * src/files.c: Include error.h.
3450 Reported by Hans Aberg.
3452 2001-11-26 Marc Autret <autret_m@epita.fr>
3454 * src/reader.c (parse_include_decl): New, not yet implemented.
3455 (read_declarations): Add case tok_include.
3456 * src/getargs.h (include): Add its extern definition.
3457 * src/getargs.c (include): New const char *.
3458 (getargs): Add case '-I'.
3459 * src/options.c (option_table): Add include as command line and
3461 * src/lex.h (token_t): Add tok_include.
3463 2001-11-26 Akim Demaille <akim@epita.fr>
3465 * src/reader.c (readgram): Make sure rules for mid-rule actions
3466 have a lineno equal to that of their host rule.
3467 Reported by Hans Aberg.
3468 * tests/regression.at (Rule Line Numbers): New.
3470 2001-11-26 Akim Demaille <akim@epita.fr>
3472 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
3475 2001-11-26 Akim Demaille <akim@epita.fr>
3477 * src/complain.c, src/complain.h (error): Remove, provided by
3480 2001-11-26 Akim Demaille <akim@epita.fr>
3482 * src/reader.c (read_declarations): Don't abort on tok_illegal,
3483 issue an error message.
3484 * tests/regression.at (Invalid %directive): New.
3485 Reported by Hans Aberg.
3487 2001-11-26 Akim Demaille <akim@epita.fr>
3489 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
3490 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
3492 2001-11-26 Akim Demaille <akim@epita.fr>
3494 * src/conflicts.c (conflicts_print): Don't complain at all when
3495 there are no reduce/reduce conflicts, and as many shift/reduce
3496 conflicts as expected.
3497 * tests/regression.at (%expect right): Adjust.
3499 2001-11-23 Akim Demaille <akim@epita.fr>
3501 * lib/alloca.c: Update, from fileutils.
3503 2001-11-23 Akim Demaille <akim@epita.fr>
3505 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
3507 2001-11-23 Akim Demaille <akim@epita.fr>
3509 * src/system.h: Include alloca.h.
3510 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
3512 2001-11-23 Akim Demaille <akim@epita.fr>
3514 * src/print_graph.c (print_actions): Remove `rule', unused.
3515 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
3516 pacify GCC's signed < unsigned warnings.
3517 * src/closure.c (itemsetsize): Likewise.
3518 * src/reader.c (symbol_list_new): Static.
3520 2001-11-23 Akim Demaille <akim@epita.fr>
3522 Attaching lineno to buckets is stupid, since only one copy of each
3523 symbol is kept, only the line of the first occurrence is kept too.
3525 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
3526 * src/reader.c (rline_allocated): Remove, unused.
3527 (symbol_list): Have a `line' member.
3528 (symbol_list_new): New.
3530 * src/print.c (print_grammar): Output the rule line numbers.
3531 * tests/regression.at (Solved SR Conflicts)
3532 (Unresolved SR Conflicts): Adjust.
3533 Reported by Hans Aberg.
3535 2001-11-22 Marc Autret <autret_m@epita.fr>
3537 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
3539 2001-11-22 Marc Autret <autret_m@epita.fr>
3541 * src/muscle_tab.c (muscle_init): Remove initialization of
3543 * src/output.c (output_master_parser): Do it here.
3545 2001-11-20 Akim Demaille <akim@epita.fr>
3548 * configure.in (ALL_LINGUAS): Adjust.
3549 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
3550 longer contains strings to translate.
3552 2001-11-19 Akim Demaille <akim@epita.fr>
3554 * src/conflicts.c (conflicts_print): Add a missing \n.
3556 2001-11-19 Akim Demaille <akim@epita.fr>
3558 * src/nullable.c (nullable_print): New.
3559 (set_nullable): Call it when tracing.
3560 Better locality of variables.
3562 2001-11-19 Akim Demaille <akim@epita.fr>
3564 * src/print.c (print_actions): Better locality of variables.
3566 2001-11-19 Akim Demaille <akim@epita.fr>
3568 * src/derives.c (print_derives): Fix and enrich.
3569 * src/closure.c (print_fderives): Likewise.
3571 2001-11-19 Akim Demaille <akim@epita.fr>
3573 * src/closure.c (itemsetend): Remove, replaced with...
3576 2001-11-19 Akim Demaille <akim@epita.fr>
3578 * src/LR0.c (kernel_end): Remove, replaced with...
3581 2001-11-19 Akim Demaille <akim@epita.fr>
3583 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
3586 2001-11-19 Akim Demaille <akim@epita.fr>
3588 * src/closure.c (closure): Use arrays instead of pointers to clarify.
3590 2001-11-19 Akim Demaille <akim@epita.fr>
3592 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
3594 * src/LR0.c: Likewise.
3595 (allocate_itemsets): Use arrays instead of pointers to clarify.
3597 2001-11-19 Akim Demaille <akim@epita.fr>
3599 * src/getargs.c (statistics_flag): Replace with...
3601 (longopts): Accept --trace instead of --statistics.
3602 * src/getargs.h, src/options.c: Adjust.
3603 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
3604 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
3606 2001-11-19 Akim Demaille <akim@epita.fr>
3608 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
3609 pointers to clarify the code.
3610 (save_reductions, save_shifts): Factor common parts of alternatives.
3612 2001-11-19 Akim Demaille <akim@epita.fr>
3614 * src/LR0.c (new_state, get_state): Complete TRACE code.
3615 * src/closure.c: Include `reader.h' to get `tags', needed by the
3617 Rename the conditional DEBUG as TRACE.
3618 Output consistently TRACEs to stderr, not stdout.
3619 * src/derives.c: Likewise.
3620 * src/reduce.c: (inaccessable_symbols): Using if is better style
3622 Use `#if TRACE' instead of `#if 0' for tracing code.
3624 2001-11-19 Akim Demaille <akim@epita.fr>
3626 * src/system.h (LIST_FREE, shortcpy): New.
3627 * src/LR0.c: Use them.
3628 * src/output.c (free_itemsets, free_reductions, free_shifts):
3629 Remove, replaced by LIST_FREE.
3631 2001-11-19 Akim Demaille <akim@epita.fr>
3633 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
3634 (REDUCTIONS_ALLOC): New.
3635 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
3638 2001-11-19 Akim Demaille <akim@epita.fr>
3640 * src/LR0.c (new_state): Complete trace code.
3641 * src/nullable.c (set_nullable): Don't translate traces.
3643 2001-11-19 Akim Demaille <akim@epita.fr>
3645 * src/print_graph.c (print_core): Better locality of variables.
3646 * src/print.c (print_core): Likewise.
3648 2001-11-19 Akim Demaille <akim@epita.fr>
3650 * src/vcg.c: You do the output, so you are responsible of the
3651 handling of VCG syntax, in particular: use quotearg.
3652 * src/print_graph.c: Don't.
3653 (print_actions): Don't output the actions as part of the nodes,
3654 since that's the job of the edges.
3655 (print_state): Don't output by hand: fill the node description,
3656 and ask for its output.
3658 2001-11-19 Akim Demaille <akim@epita.fr>
3660 * src/bison.simple (yyparse): When verbosely reporting an error,
3661 no longer put additional quotes around token names.
3662 * tests/calc.at: Adjust.
3664 2001-11-19 Akim Demaille <akim@epita.fr>
3666 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
3667 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
3668 * src/output.c: Adjust.
3670 2001-11-19 Akim Demaille <akim@epita.fr>
3672 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
3674 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
3676 2001-11-19 Akim Demaille <akim@epita.fr>
3678 * src/gram.h (rule_t): New.
3680 (rrhs, rlhs): Remove, part of state_t.
3681 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
3682 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
3683 * src/reader.c, src/reduce.c: Adjust.
3685 2001-11-19 Akim Demaille <akim@epita.fr>
3687 * src/reader.c (symbols_output): New, extracted from...
3688 (packsymbols): Here.
3691 2001-11-19 Akim Demaille <akim@epita.fr>
3693 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
3694 (maxrhs): this new function.
3696 2001-11-19 Akim Demaille <akim@epita.fr>
3698 * src/lalr.c (F): New macro to access the variable F.
3701 2001-11-19 Akim Demaille <akim@epita.fr>
3703 * src/lalr.h (LA): New macro to access the variable LA.
3704 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3705 * src/lalr.c: Adjust.
3707 2001-11-19 Akim Demaille <akim@epita.fr>
3709 * src/lalr.c (initialize_LA): Only initialize LA. Let...
3710 (set_state_table): handle the `lookaheads' members.
3712 2001-11-19 Akim Demaille <akim@epita.fr>
3714 * src/lalr.h (lookaheads): Removed array, whose contents is now
3716 (state_t): this structure.
3717 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3720 2001-11-19 Akim Demaille <akim@epita.fr>
3722 * src/lalr.h (consistent): Removed array, whose contents is now
3724 (state_t): this structure.
3725 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3728 2001-11-19 Akim Demaille <akim@epita.fr>
3730 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
3731 contents are now members of...
3732 (state_t): this structure.
3733 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3736 2001-11-19 Akim Demaille <akim@epita.fr>
3738 * src/lalr.h (state_t): New.
3739 (state_table): Be a state_t * instead of a core **.
3740 (accessing_symbol): Remove, part of state_t.
3741 * src/lalr.c: Adjust.
3742 (set_accessing_symbol): Merge into...
3743 (set_state_table): this.
3744 * src/print_graph.c, src/conflicts.c: Adjust.
3746 2001-11-14 Akim Demaille <akim@epita.fr>
3748 * tests/calc.at, tests/output.at, tests/regression.at,
3749 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
3750 now the tests are run in private dirs, therefore AC_CLEANUP and
3751 family can be simplified to 0-ary.
3752 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
3753 use abs. path to find config.h.
3754 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
3755 stderr, there can be way too much random noise.
3756 Instead pass -Werror to GCC and rely on the exit status.
3757 Reported by Wolfram Wagner.
3759 2001-11-14 Akim Demaille <akim@epita.fr>
3761 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
3762 defined only if yyoverflow is defined, to avoid `warning: unused
3764 Reported by The Test Suite.
3766 2001-11-14 Akim Demaille <akim@epita.fr>
3768 * src/print.c: Include reduce.h.
3769 Reported by Hans Aberg.
3771 2001-11-14 Akim Demaille <akim@epita.fr>
3773 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
3774 Revert a previous patch: these are really const.
3775 * src/conflicts.c (conflict_report): Additional useless pair of
3776 braces to pacify GCC's warnings for `if () if () {} else {}'.
3777 * src/lex.c (parse_percent_token): Replace equal_offset with
3780 Be sure to strdup `arg' when used, since there is no reason for
3781 token_buffer not to change.
3783 2001-11-14 Akim Demaille <akim@epita.fr>
3785 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
3787 * src/main.c (main): Use them.
3788 Suggested by Hans Aberg.
3790 2001-11-12 Akim Demaille <akim@epita.fr>
3792 * src/system.h (ngettext): Now that we use ngettext, be sure to
3793 provide a default definition when NLS are not used.
3795 2001-11-12 Akim Demaille <akim@epita.fr>
3797 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
3798 Use @kbd to denote user input.
3799 (Language and Grammar): ANSIfy the example.
3800 Adjust its layout for info/notinfo.
3801 (Location Tracking Calc): Output error messages to stderr.
3802 Output locations in a more GNUtically correct way.
3803 Fix a couple of Englishos.
3804 Adjust @group/@end group pairs.
3806 2001-11-12 Akim Demaille <akim@epita.fr>
3808 %expext was not functioning at all.
3810 * src/conflicts.c (expected_conflicts): Set to -1.
3811 (conflict_report): Use ngettext.
3812 (conflicts_print): Check %expect and make its violation an error.
3813 * doc/bison.texinfo (Expect Decl): Adjust.
3814 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
3815 * tests/regression.at (%expect not enough, %expect right)
3816 (%expect too much): New.
3818 2001-11-12 Akim Demaille <akim@epita.fr>
3820 * tests/regression.at (Conflicts): Rename as...
3821 (Unresolved SR Conflicts): this.
3822 (Solved SR Conflicts): New.
3824 2001-11-12 Akim Demaille <akim@epita.fr>
3826 * src/reduce.c (print_results): Rename as...
3827 (reduce_output): This.
3828 Output to OUT, passed as argument, instead of output_obstack.
3829 (dump_grammar): Likewise.
3832 (reduce_grammar): No longer call reduce_output, since...
3833 * src/print.c (print_results): do it.
3834 * src/main.c (main): Call reduce_free;
3836 2001-11-12 Akim Demaille <akim@epita.fr>
3838 * src/conflicts.c (print_reductions): Accept OUT as argument.
3839 Output to it, not to output_obstack.
3840 * src/print.c (print_actions): Adjust.
3842 2001-11-12 Akim Demaille <akim@epita.fr>
3844 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
3845 the result instead of using...
3846 (src_total, rrc_total, src_count, rrc_count): Remove.
3847 (any_conflicts): Remove.
3848 (print_conflicts): Split into...
3849 (conflicts_print, conflicts_output): New.
3850 * src/conflicts.h: Adjust.
3851 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
3852 * src/print.c (print_grammar): Issue `\n' between two rules.
3853 * tests/regression.at (Conflicts): New.
3854 Reported by Tom Lane.
3856 2001-11-12 Akim Demaille <akim@epita.fr>
3858 * tests/regression.at (Invalid input): Remove, duplicate with
3859 ``Invalid input: 1''.
3861 2001-11-12 Akim Demaille <akim@epita.fr>
3863 * tests/torture.at (AT_DATA_STACK_TORTURE)
3864 (Exploding the Stack Size with Alloca)
3865 (Exploding the Stack Size with Malloc): New.
3867 2001-11-12 Akim Demaille <akim@epita.fr>
3869 * src/bison.simple (YYSTACK_REALLOC): New.
3870 (yyparse) [!yyoverflow]: Use it and free the old stack.
3871 Reported by Per Allansson.
3873 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
3875 * src/bison.simple: Define type yystype instead of YYSTYPE, and
3876 define CPP macro, which substitute YYSTYPE by yystype.
3877 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
3878 with yyltype/YYLTYPE. This allows inclusion of the generated
3879 header within the parser if the compiler, such as GGC, accepts
3880 multiple equivalent #defines.
3883 2001-11-05 Akim Demaille <akim@epita.fr>
3885 * src/reader.c (symbols_output): New, extracted from...
3886 (packsymbols): here.
3889 2001-11-05 Akim Demaille <akim@epita.fr>
3891 * src/lex.c (parse_percent_token): s/quotearg/quote/.
3893 2001-11-05 Akim Demaille <akim@epita.fr>
3895 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
3898 2001-11-05 Akim Demaille <akim@epita.fr>
3900 * src/options.h (struct option_table_struct): set_flags is void*.
3901 * src/options.c (longopts): Support `--output' and `%output'.
3903 * src/lex.h (tok_setopt): Remove, replaced with...
3904 (tok_intopt, tok_stropt): these new guys.
3905 * src/lex.c (getopt.h): Not needed.
3906 (token_buffer, unlexed_token_buffer): Not const.
3907 (percent_table): Promote `-' over `_' in directive names.
3908 Active `%name-prefix', `file-prefix', and `output'.
3909 (parse_percent_token): Accept possible arguments to directives.
3910 Promote `-' over `_' in directive names.
3912 2001-11-04 Akim Demaille <akim@epita.fr>
3914 * doc/bison.texinfo (Decl Summary): Split the list into
3915 `directives for grammars' and `directives for bison'.
3917 Add description of `%name-prefix', `file-prefix', and `output'.
3918 Promote `-' over `_' in directive names.
3919 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
3920 Simplify the description of `--name-prefix'.
3921 Promote `-' over `_' in directive names.
3922 Promote `--output' over `--output-file'.
3923 Fix the description of `--defines'.
3924 * tests/output.at: Exercise %file-prefix and %output.
3926 2001-11-02 Akim Demaille <akim@epita.fr>
3928 * doc/refcard.tex: Update.
3930 2001-11-02 Akim Demaille <akim@epita.fr>
3932 * src/symtab.h (SUNDEF): New.
3933 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
3934 stand for `uninitialized', instead of 0.
3935 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
3936 * src/lex.c (lex): Adjust.
3938 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
3940 Let yylex return it instead of a plain 0.
3941 Reported by Dick Streefland.
3943 2001-11-02 Akim Demaille <akim@epita.fr>
3945 * tests/regression.at (Mixing %token styles): New test.
3947 2001-11-02 Akim Demaille <akim@epita.fr>
3949 * src/reader.c (parse_thong_decl): Formatting changes.
3950 (token_translations_init): New, extracted from...
3951 (packsymbols): Here.
3954 2001-11-01 Akim Demaille <akim@epita.fr>
3956 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
3957 Check that `9foo.y' produces correct cpp guards.
3958 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
3962 2001-11-01 Akim Demaille <akim@epita.fr>
3964 * tests/regression.at (Invalid input: 2): New.
3965 * src/lex.c (unlexed_token_buffer): New.
3966 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
3970 2001-11-01 Akim Demaille <akim@epita.fr>
3972 * tests/calc.at: Catch up with 1.30.
3973 * configure.in: Bump to 1.49a.
3974 Adjust to newer Autotest.
3976 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
3978 * src/conflicts.c: Move global variables rrc_total and src_total ...
3979 (print_conflicts): here.
3980 * src/output.c (output): Free global variable user_toknums.
3981 * src/lex.c (token_obstack): Become static.
3983 2001-10-18 Akim Demaille <akim@epita.fr>
3985 * tests/atlocal.in (GCC): Add.
3986 * tests/calc.at: s/m4_match/m4_bmatch/.
3987 s/m4_patsubst/m4_bpatsubst/.
3988 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
3989 * configure.in: AC_SUBST(GCC).
3991 2001-10-14 Marc Autret <autret_m@epita.fr>
3993 * src/options.c (create_long_option_table): Fix.
3995 2001-10-10 Akim Demaille <akim@epita.fr>
3997 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
3999 2001-10-04 Akim Demaille <akim@epita.fr>
4001 * src/reader.c (parse_union_decl): Push the caracters in
4002 union_obstack, not attrs_obstack.
4004 2001-10-04 Akim Demaille <akim@epita.fr>
4006 Merge in the branch 1.29.
4008 * src/reader.c (packsymbols): Use a temporary obstack for
4009 `%%tokendef', since output_stack is already used elsewhere.
4011 2001-10-02 Akim Demaille <akim@epita.fr>
4015 2001-10-02 Akim Demaille <akim@epita.fr>
4019 2001-10-02 Akim Demaille <akim@epita.fr>
4021 * tests/regression.at (Invalid CPP headers): New.
4022 From Alexander Belopolsky.
4023 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
4025 2001-10-02 Akim Demaille <akim@epita.fr>
4027 * tests/regression.at (Invalid input): New.
4028 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
4031 2001-10-02 Akim Demaille <akim@epita.fr>
4033 * tests/calc.at: Now that --debug works, the tests must be adjusted.
4035 2001-10-02 Akim Demaille <akim@epita.fr>
4037 * src/output.c (output_parser): Assert `skeleton'.
4038 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
4042 2001-10-01 Marc Autret <autret_m@epita.fr>
4044 * src/lex.h: Echo modifications.
4045 * src/lex.c (unlex): Parameter is now token_t.
4048 2001-10-01 Marc Autret <autret_m@epita.fr>
4050 * src/main.c: Include lex.h.
4053 2001-09-29 Akim Demaille <akim@epita.fr>
4055 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
4057 2001-09-28 Akim Demaille <akim@epita.fr>
4059 * tests/testsuite.at: Update to newer Autotest.
4060 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
4062 2001-09-27 Akim Demaille <akim@epita.fr>
4064 Position independent wrapper.
4066 * tests/bison: Remove.
4067 * tests/bison.in: New.
4068 * configure.in: Adjust.
4070 2001-09-27 Paul Eggert <eggert@twinsun.com>
4072 Port quotearg fixes from tar 1.13.24.
4074 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
4076 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
4077 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
4079 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
4080 * m4/mbrtowc.m4: New file.
4081 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
4082 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
4084 2001-09-27 Akim Demaille <akim@epita.fr>
4088 2001-09-27 Akim Demaille <akim@epita.fr>
4092 2001-09-25 Akim Demaille <akim@epita.fr>
4094 * src/system.h: Include `xalloc.h'.
4095 Remove it from the C files.
4096 * src/files.c (output_files): Free the obstacks.
4097 * src/lex.c (init_lex): Rename as...
4100 * src/main.c (main): Use it.
4102 2001-09-24 Marc Autret <autret_m@epita.fr>
4104 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
4105 to output informations in fout (FILE*).
4106 (open_graph, close_graph): Likewise.
4107 (output_graph, output_edge, output_node): Likewise.
4108 * src/vcg.h: Update function prototypes.
4109 * src/print_graph.c (print_graph): Open output graph file.
4110 (print_actions): Adjust.
4111 * src/files.h: Remove extern declaration.
4112 * src/files.c: Remove graph_obstack declaration.
4113 (open_files): Remove graph_obstack initialization.
4114 (output_files): Remove graph_obstack saving.
4116 2001-09-24 Marc Autret <autret_m@epita.fr>
4118 * src/files.c (compute_output_file_names): Fix.
4120 2001-09-24 Marc Autret <autret_m@epita.fr>,
4121 Akim Demaille <akim@epita.fr>
4123 * src/reader.c (reader): Remove call to free_symtab ().
4124 * src/main.c (main): Call it here.
4126 * src/conflicts.c (initialize_conflicts): Rename as...
4127 (solve_conflicts): this.
4128 * src/print.c (print_core, print_actions, print_state)
4129 (print_grammar): Dump to a file instead a `output_obstack'.
4130 (print_results): Dump `output_obstack', and then proceed with the
4132 * src/files.c (compute_output_file_names, close_files): New.
4133 (output_files): Adjust.
4134 * src/main.c (main): Adjust.
4136 2001-09-23 Marc Autret <autret_m@epita.fr>
4138 * src/files.c (compute_header_macro): Computes header macro name
4139 from spec_defines_file when given.
4141 2001-09-23 Marc Autret <autret_m@epita.fr>
4143 * src/files.c (output_files): Add default extensions.
4145 2001-09-22 Akim Demaille <akim@epita.fr>
4147 * src/conflicts.c (finalize_conflicts): Rename as...
4148 (free_conflicts): this.
4150 2001-09-22 Akim Demaille <akim@epita.fr>
4152 * src/gram.c (gram_free): Rename back as...
4154 (output_token_translations): Free `token_translations'.
4155 * src/symtab.c (free_symtab): Free the tag field.
4157 2001-09-22 Akim Demaille <akim@epita.fr>
4159 Remove `translations' as it is always set to true.
4161 * src/gram.h: Adjust.
4162 * src/reader.c (packsymbols, parse_token_decl): Adjust
4163 * src/print.c (print_grammar): Adjust.
4164 * src/output.c (output_token_translations): Adjust.
4165 * src/lex.c (lex): Adjust.
4166 * src/gram.c: Be sure the set pointers to NULL.
4167 (dummy): Rename as...
4170 2001-09-22 Akim Demaille <akim@epita.fr>
4172 * configure.in: Invoke AM_LIB_DMALLOC.
4173 * src/system.h: Use dmalloc.
4174 * src/LR0.c: Be sure to have pointers initialized to NULL.
4175 (allocate_itemsets): Allocate kernel_items only if needed.
4177 2001-09-22 Akim Demaille <akim@epita.fr>
4179 * configure.in: Bump to 1.29b.
4180 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
4181 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
4182 need xmalloc.c in calc.y.
4185 2001-09-21 Akim Demaille <akim@epita.fr>
4188 * Makefile.maint, config/config.guess, config/config.sub,
4189 * config/missing: Update from masters.
4190 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
4192 * configure.in (ALL_LINGUAS): Add `tr'.
4194 2001-09-21 Akim Demaille <akim@epita.fr>
4196 * tests/Makefile.am (package.m4): Move to...
4197 ($(srcdir)/$(TESTSUITE)): here.
4199 2001-09-20 Akim Demaille <akim@epita.fr>
4201 * src/complain.c: No longer try to be standalone: use system.h.
4202 Don't assume __STDC__ is defined to 1. Just test if it is defined.
4203 * src/complain.h: Likewise.
4204 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
4205 Remove the unused variable `n'.
4206 From Albert Chin-A-Young.
4208 2001-09-18 Marc Autret <autret_m@epita.fr>
4210 * doc/bison.1: Update.
4211 * doc/bison.texinfo (Bison Options): Update --defines and --graph
4213 (Option Cross Key): Update.
4216 2001-09-18 Marc Autret <autret_m@epita.fr>
4218 * tests/regression.at: New test (comment in %union).
4220 2001-09-18 Marc Autret <autret_m@epita.fr>
4222 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
4224 Reported by Keith Browne.
4226 2001-09-18 Marc Autret <autret_m@epita.fr>
4228 * tests/output.at: Add tests for --defines and --graph.
4230 2001-09-18 Marc Autret <autret_m@epita.fr>
4232 * tests/output.at: Removes tests of %{header,src}_extension features.
4234 2001-09-18 Akim Demaille <akim@epita.fr>
4236 * tests/Makefile.am (package.m4): New.
4237 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
4238 (_AT_CHECK_CALC_ERROR): Likewise.
4239 Factor the `, ' part of verbose error messages.
4241 2001-09-18 Marc Autret <autret_m@epita.fr>
4243 * src/getargs.c (longopts): Declare --defines and --graph as options
4244 with optional arguments.
4245 * src/files.h: Add extern declarations.
4246 * src/files.c (spec_graph_file, spec_defines_file): New.
4247 (output_files): Update.
4248 Remove CPP-outed code.
4250 2001-09-18 Marc Autret <autret_m@epita.fr>
4252 Turn off %{source,header}_extension feature.
4254 * src/files.c (compute_exts_from_gf): Update.
4255 (compute_exts_from_src): Update.
4256 (output_files): CPP-out useless code.
4257 * src/files.h: Remove {header,source}_extension extern declarations.
4258 * src/reader.c (parse_dquoted_param): CPP-out.
4259 (parse_header_extension_decl): Remove.
4260 (parse_source_extension_decl): Remove.
4261 (read_declarations): Remove cases tok_{hdrext,srcext}.
4262 * src/lex.c (percent_table): Remove {header,source}_extension entries.
4263 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
4265 2001-09-10 Akim Demaille <akim@epita.fr>
4267 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
4268 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
4269 (AT_CHECK_OUTPUT): this.
4270 Merely check ls' exit status, its output is useless.
4272 2001-09-10 Akim Demaille <akim@epita.fr>
4274 * tests/calc.at: Use m4_match.
4275 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
4277 2001-09-10 Marc Autret <autret_m@epita.fr>,
4278 Akim Demaille <akim@epita.fr>
4280 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
4282 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
4284 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
4285 * src/lex.h: Adjust prototype.
4286 (token_t): Add `tok_undef'.
4287 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
4288 (parse_percent_token): Now returns token_t.
4289 Add default statement in switch.
4290 (lex): Separate `c' as an input variable, from the token_t result
4292 (unlexed): Is a token_t.
4294 2001-09-10 Akim Demaille <akim@epita.fr>
4296 * configure.in: Bump to 1.29a.
4298 2001-09-07 Akim Demaille <akim@epita.fr>
4302 2001-08-30 Akim Demaille <akim@epita.fr>
4304 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
4305 * m4/atconfig.m4: Remove.
4306 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
4308 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
4309 m4_if, m4_patsubst, and m4_regexp.
4310 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
4311 `input' file instead of echo.
4313 2001-08-29 Akim Demaille <akim@epita.fr>
4317 2001-08-29 Akim Demaille <akim@epita.fr>
4321 2001-08-29 Paul Eggert <eggert@twinsun.com>
4323 * src/bison.simple (yyparse): Don't take the address of an
4324 item before the start of an array, as that doesn't conform to
4327 2001-08-29 Robert Anisko <anisko_r@epita.fr>
4329 * doc/bison.texinfo (Location Tracking Calc): New node.
4331 2001-08-29 Paul Eggert <eggert@twinsun.com>
4333 * src/output.c (output): Do not define const, as this now
4334 causes more problems than it cures.
4336 2001-08-29 Akim Demaille <akim@epita.fr>
4338 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
4340 Be sure to tag the `detailmenu'.
4342 2001-08-29 Akim Demaille <akim@epita.fr>
4344 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
4345 download in a tmp dir.
4347 2001-08-28 Marc Autret <autret_m@epita.fr>
4349 * config/depcomp: New file.
4351 2001-08-28 Marc Autret <autret_m@epita.fr>
4353 * doc/bison.1 (mandoc): Adjust.
4354 From Juan Manuel Guerrero.
4356 2001-08-28 Marc Autret <autret_m@epita.fr>
4358 * src/print_graph.c (print_state): Fix.
4360 2001-08-27 Marc Autret <autret_m@epita.fr>
4362 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
4364 Echo modifications to the functions prototypes.
4365 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
4367 2001-08-27 Marc Autret <autret_m@epita.fr>
4369 * src/vcg.c: Include `xalloc.h'.
4370 (add_colorentry): New.
4371 (add_classname): New.
4372 (add_infoname): New.
4373 * src/vcg.h: Add new prototypes.
4375 2001-08-27 Akim Demaille <akim@epita.fr>
4377 * Makefile.maint: Sync. again with CVS Autoconf.
4379 2001-08-27 Akim Demaille <akim@epita.fr>
4381 * Makefile.maint: Formatting changes.
4382 (po-update, cvs-update, update): New targets.
4385 2001-08-27 Akim Demaille <akim@epita.fr>
4387 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4388 * Makefile.maint: Sync. with CVS Autoconf.
4390 2001-08-27 Marc Autret <autret_m@epita.fr>
4392 * src/vcg.h (struct infoname_s): New.
4393 (struct colorentry_s): New.
4394 (graph_s): New fields {vertical,horizontal}_order in structure.
4395 Add `infoname' field.
4396 Add `colorentry' field;
4397 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
4398 (G_HORIZONTAL_ORDER): New.
4400 (G_COLORENTRY): New.
4401 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
4402 Add output of `infoname'.
4403 Add output of `colorentry'.
4405 2001-08-27 Marc Autret <autret_m@epita.fr>
4407 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
4408 This one shadowed a global parameter.
4410 2001-08-24 Marc Autret <autret_m@epita.fr>
4412 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
4413 instead of `unsigned'.
4414 (print_state): Do not call obstack_object_size () in obstack_grow ()
4415 to avoid macro variables shadowing.
4417 2001-08-23 Marc Autret <autret_m@epita.fr>
4419 * src/lex.c (percent_table): Typo: s/naem/name/.
4421 Normalize new options declarations.
4423 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
4425 * tests/suite.at: Exercise %header_extension and %source_extension.
4427 2001-08-16 Marc Autret <autret_m@epita.fr>
4429 * src/reader.c (parse_dquoted_param): New.
4430 (parse_header_extension_decl): Use it.
4431 (parse_source_extension_decl): Likewise.
4433 2001-08-16 Marc Autret <autret_m@epita.fr>
4435 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
4436 (get_xxxx_str): Use assert () instead of complain ().
4437 Remove return invokations in default cases.
4438 (get_decision_str): Modify default behaviour. Remove second argument.
4439 Echo modifications on calls.
4440 (output_graph): Fix.
4442 2001-08-16 Marc Autret <autret_m@epita.fr>
4444 * src/getargs.c (usage): Update with ``-g, --graph''.
4446 2001-08-16 Marc Autret <autret_m@epita.fr>
4448 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
4449 (Option Cross Key): Likewise.
4450 * doc/bison.1: Update.
4452 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
4454 * src/output.c (output_master_parser): Don't finish action_obstack.
4455 (output_parser): Don't care about the muscle action, here.
4456 (prepare): Copy the action_obstack in the action muscle.
4457 (output): Free action_obstack.
4459 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
4461 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
4462 will contain `%union' declaration.
4463 (parse_union_decl): Delete #line directive output.
4464 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
4465 informations about %union.
4466 (parse_union_decl): Copy the union_obstack in the muscle stype.
4467 * src/bison.simple: Add new #line directive.
4468 Add typdef %%stype YYSTYPE.
4470 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
4472 * src/bison.simple: Add new `#line' directive.
4474 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
4476 * src/bison.simple: New `#line' directive.
4477 * src/output.c (output_parser): Support new dynamic muscle input_line.
4479 2001-09-22 Marc Autret <autret_m@epita.fr>
4481 * src/output.c (output_master_parser): New.
4482 (output_parser): Be more re-entrant.
4484 2001-09-21 Marc Autret <autret_m@epita.fr>
4486 * src/reader.c (copy_definition, parse_union_decl): Update and use
4488 (copy_action): Likewise.
4489 Use obstack_1grow ().
4490 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
4492 2001-09-21 Marc Autret <autret_m@epita.fr>
4494 * src/options.c (option_table): Adjust.
4495 * src/lex.c (parse_percent_token): Fix.
4497 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
4499 * src/options.c (symtab.h): Include it, need by lex.h.
4501 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
4503 * src/lex.c (parse_percent_token): Change type of variable `tx', which
4504 is now an option_table_struct*.
4505 (option_strcmp): New function option_strcmp.
4506 (parse_percent_token): Call option_strcmp.
4507 * src/getargs.c (xalloc.h, options.h): Include it.
4508 (getargs): Call create_long_option_table.
4509 (getargs): Free longopts at the end of the function.
4510 (shortopts): Move in options.c.
4511 * src/options.c (create_long_option_table): New function. Convert
4512 information from option_table to option structure.
4513 * src/reader.c (options.h): Include it.
4515 * src/Makefile.am: Adjust.
4516 * src/options.c (option_table): Create from longopts and percent_table.
4517 * src/getargs.c (longopts): Delete.
4518 * src/lex.c (struct percent_table_struct): Delete.
4519 (percent_table): Delete.
4520 (options.h): Include it.
4521 * src/options.c: Create.
4522 * src/options.h: Create.
4523 Declare enum opt_access_e.
4524 Define struct option_table_struct.
4526 2001-09-20 Marc Autret <autret_m@epita.fr>
4528 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
4531 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
4533 * src/bison.simple: s/%%filename/%%skeleton.
4534 * src/muscle_tab.c (getargs.h): Include it.
4535 (muscle_init): Insert new muscle skeleton.
4537 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
4539 * src/output.c (output_parser): Delete unused variable actions_dumped.
4541 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
4543 * src/output.c (output): Delete call to reader_output_yylsp.
4544 * src/reader.c (reader): Likewise.
4545 * src/reader.h: Delete declaration of reader_output_yylsp.
4547 2001-09-02 Marc Autret <autret_m@epita.fr>
4549 * src/reader.c: Include muscle_tab.h.
4550 (parse_union_decl): Update.
4551 (parse_macro_decl): Rename parse_muscle_decl.
4552 Update to use renamed functions and variable.
4553 (read_declarations, copy_action, read_additionnal_code, : Updated
4554 with correct variables and functions names.
4555 (packsymbols, reader): Likewise.
4557 * src/reader.h (muscle_obstack): Extern declaration update.
4559 * src/output.c: Include muscle_tab.h
4560 In all functions using macro_insert, change by using muscle_insert ().
4561 (macro_obstack): Rename muscle_obstack.
4562 Echo modifications in the whole file.
4563 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
4564 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
4565 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
4567 * src/muscle_tab.h: Update double inclusion macros.
4568 (macro_entry_s): Rename muscle_entry_s.
4571 * src/muscle_tab.c: Include muscle_tab.h.
4572 Rename macro_tabble to muscle_table.
4573 (mhash1, mhash2, mcmp): Use muscle_entry.
4574 (macro_init): Rename muscle_init. Update.
4575 (macro_insert): Rename muscle_insert. Update.
4576 (macro_find): Rename muscle_find. Update.
4578 * src/main.c: Include muscle_tab.h.
4579 (main): Call muscle_init ().
4580 * src/Makefile.am (bison_SOURCES): Echo modifications.
4582 2001-09-02 Marc Autret <autret_m@epita.fr>
4584 Now the files macro_tab.[ch] are named muscle_tab.[ch].
4586 * src/muscle_tab.c, src/muscle_tab.h: Add files.
4588 2001-09-02 Marc Autret <autret_m@epita.fr>
4590 * src/macrotab.c, src/macrotab.h: Remove.
4592 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
4594 * src/reader.c (copy_guard): Use muscle to specify the `#line'
4597 2001-09-01 Marc Autret <autret_m@epita.fr>
4599 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
4600 to an explicit value to activate the feature. We do it here.
4602 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4604 * src/output.c (prepare): Delete the `filename' muscule insertion.
4605 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
4606 (parse_union_decl): Likewise.
4607 * src/macrotab.c (macro_init): Initialize filename by infile.
4609 2001-08-31 Marc Autret <autret_m@epita.fr>
4611 * src/bison.simple (YYLSP_NEEDED): New definition.
4612 * src/output.c (prepare): Add macro insertion of `locations_flag'
4614 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4616 * src/output.c (prepare): Delete insertion of previous muscles,
4617 and insert the `prefix' muscles.
4618 * src/macrotab.c (macro_init): Likewise.
4619 (macro_init): Initialization prefix directive by `yy'.
4620 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
4621 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
4622 yylval, yydebug, yyerror, yynerrs and yyparse.
4623 New directive `#define' to substitute yydebug, ... with option
4626 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4628 * src/main.c (main): Standardize.
4629 * src/output.c (output_table_data, output_parser): Likewise.
4630 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
4632 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
4634 * src/reader.c (read_additionnal_code): Rename %%user_code to
4636 * src/output.c (output): Rename %%declarations to %%prologue.
4637 * src/bison.simple: Echo modifications.
4639 2001-08-31 Marc Autret <autret_m@epita.fr>
4641 * src/reader.c (readgram): CleanUp.
4642 (output_token_defines): Likewise.
4643 (packsymbols): Likewise.
4645 * src/output.c (output): CPP-out useless code.
4647 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4649 * src/reader.c (reader): Delete obsolete call to function
4650 output_trailers and output_headers.
4651 * src/output.h: Remove obsolete functions prototypes of output_headers
4652 and output_trailers.
4654 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
4656 * src/main.c: Include macrotab.h.
4657 * src/macrotab.h (macro_entry_s): Constify fields.
4658 Adjust functions prototypes.
4659 * src/macrotab.c (macro_insert): Constify key and value.
4660 (macro_find): Constify key.
4661 (macro_insert): Include 'xalloc.h'
4662 (macro_insert): Use XMALLOC.
4663 (macro_find): Constify return value.
4664 * src/output.c (output_table_data): Rename table to table_data.
4665 (output_parser): Constify macro_key, macro_value.
4667 2001-08-30 Marc Autret <autret_m@epita.fr>
4669 * src/reader.c (parse_skel_decl): New.
4670 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
4671 * src/lex.h (token_t): New token `tok_skel'.
4672 * src/lex.c (percent_table): Add skeleton option entry.
4675 2001-08-29 Marc Autret <autret_m@epita.fr>
4677 * src/bison.simple: Add %%user_code directive at the end.
4678 * src/reader.c (read_additionnal_code): New.
4680 * src/output.c (output_program): Remove.
4683 2001-08-28 Marc Autret <autret_m@epita.fr>
4685 * src/output.c (output_actions): Clean up.
4686 (output_gram): CPP-out useless code.
4687 * src/reader.c (reader): Clean up, CPP-out useless code.
4689 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
4691 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
4693 * src/bison.simple: Add `%%definitions'.
4695 2001-08-28 Marc Autret <autret_m@epita.fr>
4697 * config/depcomp: New file.
4699 2001-08-27 Paul Eggert <eggert@twinsun.com>
4701 * src/bison.simple (yyparse): Don't take the address of an
4702 item before the start of an array, as that doesn't conform to
4705 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4707 * src/output.c (output): Remove the initialization of the macro
4708 obstack. It was done too late here.
4710 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
4712 (reader): Initialize the macro obstack here, since we need it to grow
4713 '%define' directives.
4715 * src/reader.h: Declare the macro obstack as extern.
4717 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4719 * src/output.c (output_parser): Fix. Store single '%' characters in
4720 the output obstack instead of throwing them away.
4722 2001-08-27 Akim Demaille <akim@epita.fr>
4724 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4726 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4728 * lib/Makefile.am: Adjust.
4730 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4732 * src/bison.simple: Update and add '%%' directives.
4734 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4736 * src/reader.c (reader): Remove calls to 'output_headers' and
4737 'output_trailers'. Remove some C output.
4738 (readgram): Disable a piece of code that was writing a default
4739 definition for 'YYSTYPE'.
4740 (reader_output_yylsp): Remove.
4741 (packsymbols): Output token defintions to a macro.
4742 (copy_definition): Disable C output.
4744 * src/reader.c (parse_macro_decl): New function used to parse macro
4746 (copy_string2): Put the body of copy_string into this new function.
4747 Add a parameter to let the caller choose whether he wants to copy the
4748 string delimiters or not.
4749 (copy_string): Be a simple call to copy_string2 with the last argument
4751 (read_declarations): Add case for macro definition.
4752 (copy_identifier): New.
4753 (parse_macro_decl): Read macro identifiers using copy_identifier
4756 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4758 * src/output.c (prepare): Add prefixed names.
4759 (output_parser): Output semantic actions.
4760 (output_parser): Fix bug on '%%line' directives.
4762 * src/output.c (output_headers): Remove. The C code printed by this
4763 function should now be in the skeletons.
4764 (output_trailers): Remove.
4765 (output): Disable call to 'reader_output_yylsp'.
4766 (output_rule_data): Do not output tables to the table obstack.
4768 * src/output.c: Remove some C dedicated output.
4769 Improve the use of macro and output obstacks.
4770 (output_defines): Remove.
4772 * src/output.c (output_token_translations): Associate 'translate'
4773 table with a macro. No output to the table obstack.
4774 (output_gram): Same for 'rhs' and 'prhs'.
4775 (output_stos): Same for 'stos'.
4776 (output_rule_data): Same for 'r1' and 'r2'.
4777 (token_actions): Same for 'defact'.
4778 (goto_actions): Same for 'defgoto'.
4779 (output_base): Same for 'pact' and 'pgoto'.
4780 (output_table): Same for 'table'.
4781 (output_check): Same for 'check'.
4783 * src/output.c (output_table_data): New function.
4784 (output_short_table): Remove.
4785 (output_short_or_char_table): Remove.
4787 * src/output.c (output_parser): Replace most of the skeleton copy code
4788 with something new. Skeletons are now processed character by character
4789 rather than line by line, and Bison looks for '%%' macros. This is the
4790 first step in making Bison's output process (a lot) more flexible.
4791 (output_parser): Use the macro table.
4793 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4795 * src/main.c (main): Initialize the macro table.
4797 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4799 * src/lex.c (percent_table): Add tok_define.
4800 * src/lex.h: Add tok_define.
4802 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4804 * src/macrotab.c: New file.
4805 * src/macrotab.h: New file.
4806 * src/Makefile.am: Update.
4808 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4810 * lib/hash.c: New file.
4811 * lib/hash.h: New file.
4812 * lib/Makefile.am: Update.
4814 2001-08-15 Akim Demaille <akim@epita.fr>
4818 2001-08-15 Marc Autret <autret_m@epita.fr>
4820 * src/reader.c (readgram): Indent output macro YYSTYPE.
4821 (packsymbols): Likewise.
4822 (output_token_defines): Likewise.
4823 * src/files.c: Standardize.
4824 (compute_header_macro): New.
4825 (defines_obstack_save): New. Use compute_header_macro.
4826 (output_files): Update. Use defines_obstack_save.
4828 2001-08-15 Akim Demaille <akim@epita.fr>
4830 * doc/bison.texinfo (Table of Symbols): Document
4833 2001-08-15 Akim Demaille <akim@epita.fr>
4835 * missing: Update from CVS Automake.
4836 * config/config.guess, config/config.sub, config/texinfo.tex:
4837 Update from gnu.org.
4839 2001-08-15 Akim Demaille <akim@epita.fr>
4841 * Makefile.maint: Sync with CVS Autoconf.
4843 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
4845 * doc/bison.texinfo: Include GNU Free Documentation License from
4847 * doc/fdl.texi: Add to package.
4849 2001-08-14 Marc Autret <autret_m@epita.fr>
4851 Turn on %{source,header}_extension features.
4853 * src/lex.c (percent_table): Un-CPP out header_extension and
4855 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
4856 (compute_exts_from_src): Remove conditions. It restores priorities
4859 2001-08-14 Marc Autret <autret_m@epita.fr>
4861 * src/files.c (compute_base_names): Add extensions computing when
4862 `--file-prefix' used.
4863 Standardize function calls.
4865 2001-08-13 Marc Autret <autret_m@epita.fr>
4867 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
4868 defining it (defined but null disables alloca).
4870 2001-08-13 Marc Autret <autret_m@epita.fr>
4872 * src/bison.simple (_yy_memcpy): CPP reformat.
4874 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
4876 * tests/atconfig.in (CPPFLAGS): Fix.
4878 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
4880 * doc/bison.texinfo: Include GNU General Public License from
4882 * doc/gpl.texi: Add to package.
4884 2001-08-10 Marc Autret <autret_m@epita.fr>
4886 * src/print_graph.h: Fix.
4887 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
4889 2001-08-10 Akim Demaille <akim@epita.fr>
4891 * src/system.h: Provide default declarations for stpcpy, strndup,
4894 2001-08-10 Robert Anisko <anisko_r@epita.fr>
4896 * doc/bison.texinfo (Locations): Update @$ stuff.
4898 2001-08-09 Robert Anisko <anisko_r@epita.fr>
4900 * src/bison.simple (YYLLOC_DEFAULT): Update.
4903 2001-08-08 Marc Autret <autret_m@epita.fr>
4905 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
4906 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
4907 Reported by Fabrice Bauzac.
4909 2001-08-08 Marc Autret <autret_m@epita.fr>
4911 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
4912 * src/vcg.c (output_node): Fix.
4913 * src/vcg.h: Cleanup.
4914 * src/print_graph.c: Add comments.
4915 (node_output_size): New global variable. Simplify the formatting of
4916 the VCG graph output.
4917 (print_actions): Unused code is now used. It notifies the final state
4918 and no action states in the VCG graph. It also give the reduce actions.
4919 The `shift and goto' edges are red and the `go to state' edges are
4921 Get the current node name and node_obstack by argument.
4922 (node_obstack): New variable.
4923 (print_state): Manage node_obstack.
4924 (print_core): Use node_obstack given by argument.
4925 A node is not only computed here but in print_actions also.
4926 (print_graph): CPP out useless code instead of commenting it.
4928 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
4930 * tests/atconfig.in (CPPFLAGS): Fix.
4932 2001-08-07 Akim Demaille <akim@epita.fr>
4934 * src/print_graph.c (quote): New.
4935 (print_core): Use it.
4937 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
4939 * src/vcg.c (complain.h): Include it.
4940 Unepitaize `return' invocations.
4941 [NDEBUG] (main): Remove.
4942 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
4943 * src/files.c (open_files): Initialize graph_obstack.
4944 * src/print_graph.c (print_actions): CPP out useless code.
4945 (print_core): Don't output the last `\n' in labels.
4947 * src/files.c (output_files): Output the VCG file.
4948 * src/main.c (main): Invoke print_graph ();
4950 2001-08-06 Marc Autret <autret_m@epita.fr>
4952 Automaton VCG graph output.
4953 Using option ``-g'' or long option ``--graph'', you can generate
4954 a gram_filename.vcg file containing a VCG description of the LALR (1)
4955 automaton of your grammar.
4957 * src/main.c: Call to print_graph() function.
4958 * src/getargs.h: Update.
4959 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
4960 (graph_flag): New flag.
4962 (getargs): Add case `g'.
4963 * src/files.c (graph_obstack): New obstack struct.
4964 (open_files): Initialize new obstack.
4965 (output_files): Saves graph_obstack if required.
4966 * src/files.h (graph_obstack): New extern declaration.
4967 * src/Makefile.am: Add new source files.
4969 2001-08-06 Marc Autret <autret_m@epita.fr>
4971 * src/print_graph.c, src/print_graph.h (graph): New.
4972 * src/vcg.h: New file.
4973 * src/vcg.c: New file, VCG graph handling.
4975 2001-08-06 Marc Autret <autret_m@epita.fr>
4977 Add of %source_extension and %header_extension which specify
4978 the source or/and the header output file extension.
4980 * src/files.c (compute_base_names): Remove initialisation of
4981 src_extension and header_extension.
4982 (compute_exts_from_gf): Update.
4983 (compute_exts_from_src): Update.
4984 (output_files): Update.
4985 * src/reader.c (parse_header_extension_decl): New.
4986 (parse_source_extension_decl): New.
4987 (read_declarations): New case statements for the new tokens.
4988 * src/lex.c (percent_table): Add entries for %source_extension
4989 and %header_extension.
4990 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
4992 2001-08-06 Marc Autret <autret_m@epita.fr>
4994 * configure.in: Bump to 1.28c.
4995 * doc/bison.texinfo: Texinfo thingies.
4997 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
4999 * tests/atconfig.in (CPPFLAGS): Add.
5000 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
5002 2001-08-03 Akim Demaille <akim@epita.fr>
5006 2001-08-03 Akim Demaille <akim@epita.fr>
5008 * tests/Makefile.am (check-local): Ship testsuite.
5009 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
5012 2001-08-03 Akim Demaille <akim@epita.fr>
5014 * configure.in: Try using -Wformat when compiling.
5016 2001-08-03 Akim Demaille <akim@epita.fr>
5018 * configure.in: Bump to 1.28b.
5020 2001-08-03 Akim Demaille <akim@epita.fr>
5022 * src/complain.c: Adjust strerror_r portability issues.
5024 2001-08-03 Akim Demaille <akim@epita.fr>
5028 2001-08-03 Akim Demaille <akim@epita.fr>
5030 * src/getargs.c, src/getarg.h (skeleton)): Constify.
5031 * src/lex.c (literalchar): Avoid name clashes on `buf'.
5032 * src/getargs.c: Include complain.h.
5033 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
5034 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
5036 2001-08-03 Akim Demaille <akim@epita.fr>
5038 * src/reader.c (readgram): Display hidden chars in error messages.
5040 2001-08-03 Akim Demaille <akim@epita.fr>
5042 Update to gettext 0.10.39.
5044 2001-08-03 Akim Demaille <akim@epita.fr>
5046 * lib/strspn.c: New.
5048 2001-08-01 Marc Autret <autret_m@epita.fr>
5050 * doc/bison.texinfo: Update.
5051 * doc/bison.1 (mandoc): Update.
5052 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
5053 * src/files.c: Support output files extensions computing.
5054 (src_extension): New static variable.
5055 (header_extension): New static variable.
5057 (get_extension_index): New function, gets the index of an extension
5058 filename in a string.
5059 (compute_exts_from_gf): New function, computes extensions from the
5060 grammar file extension.
5061 (compute_exts_from_src): New functions, computes extensions from the
5062 C source file extension, file given by ``-o'' option.
5063 (compute_base_names): Update.
5064 (output_files): Update.
5066 2001-08-01 Robert Anisko <anisko_r@epita.fr>
5068 * doc/bison.texi: Document @$.
5069 (Locations): New section.
5071 2001-07-18 Akim Demaille <akim@epita.fr>
5073 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
5074 * config/prev-version.txt, config/move-if-change: New.
5075 * Makefile.am: Adjust.
5077 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
5079 * src/bison.simple (yyparse): Suppress warning `comparaison
5080 between signed and unsigned'.
5082 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
5084 * src/getargs.h (raw_flag): Remove.
5085 * src/getargs.c: Die on `-r'/`--raw'.
5086 * src/lex.c (parse_percent_token): Die on `%raw'.
5087 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
5088 * tests/calc.at: Suppress test with option `--raw'.
5090 2001-07-14 Akim Demaille <akim@epita.fr>
5093 * configure.in: Require Autoconf 2.50.
5094 Update to gettext 0.10.38.
5096 2001-03-16 Akim Demaille <akim@epita.fr>
5098 * doc/bison.texinfo: ANSIfy the examples.
5100 2001-03-16 Akim Demaille <akim@epita.fr>
5102 * getargs.c (skeleton): New variable.
5103 (longopts): --skeleton is a new option.
5104 (shortopts, getargs): -S is a new option.
5105 * getargs.h: Declare skeleton.
5106 * output.c (output_parser): Use it.
5108 2001-03-16 Akim Demaille <akim@epita.fr>
5110 * m4/strerror_r.m4: New.
5111 * m4/error.m4: Run AC_FUNC_STRERROR_R.
5112 * lib/error.h, lib/error.c: Update.
5114 2001-03-16 Akim Demaille <akim@epita.fr>
5116 * src/getargs.c (longopts): Clean up.
5118 2001-02-21 Akim Demaille <akim@epita.fr>
5120 * src/reader.c (gensym): `gensym_count' is your own.
5121 Use a static buf to create the symbol name, as token_buffer is no
5124 2001-02-08 Akim Demaille <akim@epita.fr>
5126 * src/conflicts.c (conflict_report): Be sure not to append to res
5127 between two calls, which could happen if both first sprintf were
5128 skipped, but not the first cp += strlen.
5130 2001-02-08 Akim Demaille <akim@epita.fr>
5132 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
5133 New, from fileutils 4.0.37.
5134 * configure.in: Require Autoconf 2.49c. I took some time before
5135 making this decision. This is the only way out for portability
5136 issues in Bison, it would mean way too much duplicate effort to
5137 import in Bison features implemented in 2.49c since 2.13.
5138 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
5140 2001-02-02 Akim Demaille <akim@epita.fr>
5142 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
5143 * lib/xalloc.h, lib/xmalloc.c: Update.
5145 2001-01-19 Akim Demaille <akim@epita.fr>
5147 Get rid of the ad hoc handling of token_buffer in the scanner: use
5150 * src/lex.c (token_obstack): New.
5151 (init_lex): Initialize it. No longer call...
5152 (grow_token_buffer): this. Remove it.
5153 Adjust all the places which used it to use the obstack.
5155 2001-01-19 Akim Demaille <akim@epita.fr>
5157 * src/lex.h: Rename all the tokens:
5158 s/\bENDFILE\b/tok_eof/g;
5159 s/\bIDENTIFIER\b/tok_identifier/g;
5161 Let them be enums, not #define, to ease debugging.
5162 Adjust all the code.
5164 2001-01-18 Akim Demaille <akim@epita.fr>
5166 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
5167 * src/lex.c (maxtoken, grow_token_buffer): Static.
5169 2001-01-18 Akim Demaille <akim@epita.fr>
5171 Since we now use obstacks, more % directives can be enabled.
5173 * src/lex.c (percent_table): Also accept `%yacc',
5174 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
5176 Handle the actions for `%semantic_parser' and `%pure_parser' here,
5177 instead of returning a token.
5178 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
5179 * src/reader.c (read_declarations): Adjust.
5180 * src/files.c (open_files): Don't call `compute_base_names', don't
5181 compute `attrsfile' since they depend upon data which might be
5182 *in* the input file now.
5183 (output_files): Do it here.
5184 * src/output.c (output_headers): Document the fact that this patch
5185 introduces a guaranteed SEGV for semantic parsers.
5186 * doc/bison.texinfo: Document them.
5187 * tests/suite.at: Exercise these %options.
5189 2000-12-20 Akim Demaille <akim@epita.fr>
5191 Also handle the output file (--verbose) with obstacks.
5193 * files.c (foutput): Remove.
5194 (output_obstack): New.
5195 Adjust all dependencies.
5196 * src/conflicts.c: Return a string.
5197 * src/system.h (obstack_grow_string): Rename as...
5198 (obstack_sgrow): this. Be ready to work with non literals.
5199 (obstack_fgrow4): New.
5201 2000-12-20 Akim Demaille <akim@epita.fr>
5203 * src/files.c (open_files): Fix the computation of short_base_name
5204 in the case of `-o foo.tab.c'.
5206 2000-12-20 Akim Demaille <akim@epita.fr>
5208 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
5209 (copy_dollar): Now that everything uses obstacks, get rid of the
5212 2000-12-20 Akim Demaille <akim@epita.fr>
5214 * src/files.c (open_files): Actually the `.output' file is based
5215 on the short_base_name, not base_name.
5216 * tests/suite.at (Checking output file names): Adjust.
5218 2000-12-20 Akim Demaille <akim@epita.fr>
5220 * src/bison.s1: Remove, we now use directly...
5221 * src/bison.simple: this.
5222 * src/Makefile.am: Use pkgdata instead of data.
5224 2000-12-20 Akim Demaille <akim@epita.fr>
5226 * src/files.c (guard_obstack): New.
5227 (open_files): Initialize it.
5228 (output_files): Dump it...
5229 * src/files.h: Export it.
5230 * src/reader.c (copy_guard): Use it.
5232 2000-12-19 Akim Demaille <akim@epita.fr>
5234 * src/files.c (outfile, defsfile, actfile): Removed as global
5236 (open_files): Don't compute them.
5237 (output_files): Adjust.
5238 (base_name, short_base_name): Be global.
5239 Adjust dependencies.
5241 2000-12-19 Akim Demaille <akim@epita.fr>
5243 * src/files.c (strsuffix): New.
5244 (stringappend): Be just like strcat but allocate.
5245 (base_names): Eve out from open_files.
5246 Try to simplify the rather hairy computation of base_name and
5248 (open_files): Use it.
5249 * tests/suite.at (Checking output file names): New test.
5251 2000-12-19 Akim Demaille <akim@epita.fr>
5253 * src/system.h (obstack_grow_literal_string): Rename as...
5254 (obstack_grow_string): this.
5255 * src/output.c (output_parser): Recognize `%% actions' instead of
5257 * src/bison.s1: s/$/%% actions/.
5258 * src/bison.hairy: Likewise.
5260 2000-12-19 Akim Demaille <akim@epita.fr>
5262 * src/output.c (output_parser): Compute the `#line' lines when
5264 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
5265 Suggested by Hans Aberg.
5267 2000-12-19 Akim Demaille <akim@epita.fr>
5269 Let the handling of the skeleton files be local to the procedures
5272 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
5274 (fparser, open_extra_files): Remove.
5275 (open_files, output_files): Don't take care of fparser.
5276 * src/files.h: Adjust.
5277 * src/output.c (output_parser): Open and close the file to the
5279 * src/reader.c (read_declarations): When %semantic_parser, open
5282 2000-12-19 Akim Demaille <akim@epita.fr>
5284 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
5285 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
5287 2000-12-19 Akim Demaille <akim@epita.fr>
5289 * src/files.c (open_files): Yipee! We no longer need all the code
5290 looking for `/tmp' since we have no tmp file.
5292 2000-12-19 Akim Demaille <akim@epita.fr>
5294 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
5296 * src/files.c (open_files): Less dependency on MSDOS etc.
5298 2000-12-14 Akim Demaille <akim@epita.fr>
5300 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
5301 Provide a default definition.
5302 Use it when executing the default @ action.
5303 * src/reader.c (reader_output_yylsp): No longer include
5304 `timestamp' and `text' in the default YYLTYPE.
5306 2000-12-12 Akim Demaille <akim@epita.fr>
5308 * src/reader.c (copy_definition, parse_union_decl, copy_action)
5309 (copy_guard): Quote the file names.
5310 Reported by Laurent Mascherpa.
5312 2000-12-12 Akim Demaille <akim@epita.fr>
5314 * src/output.c (output_headers, output_program, output): Be sure
5315 to escape special characters when outputting filenames.
5316 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
5317 (output_headers): Don't depend on them, Use ACTSTR.
5319 2000-11-17 Akim Demaille <akim@epita.fr>
5321 * lib/obstack.h: Formatting changes.
5322 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
5323 prevents type checking.
5324 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
5325 cast the value to (void *): assigning a `foo *' to a `void *'
5327 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
5328 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
5331 2000-11-17 Akim Demaille <akim@epita.fr>
5333 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
5335 (suite.m4, regression.m4, calc.m4): these.
5336 * tests/atgeneral.m4: Update from CVS Autoconf.
5338 2000-11-17 Akim Demaille <akim@epita.fr>
5340 * tests/regression.m4 (%union and --defines): New test,
5341 demonstrating a current bug in the obstack implementation.
5343 2000-11-17 Akim Demaille <akim@epita.fr>
5345 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
5347 Use them to declare the variables which are global or local to
5350 2000-11-17 Akim Demaille <akim@epita.fr>
5352 * acconfig.h: Remove, no longer used.
5354 2000-11-07 Akim Demaille <akim@epita.fr>
5356 * src: s/Copyright (C)/Copyright/g.
5358 2000-11-07 Akim Demaille <akim@epita.fr>
5360 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
5362 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
5364 2000-11-07 Akim Demaille <akim@epita.fr>
5366 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
5367 Merge in a single CPP if/else.
5369 2000-11-07 Akim Demaille <akim@epita.fr>
5371 * src/output.c (output): Remove useless variables.
5372 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
5373 argument `data' for consistency with the prototypes.
5375 (obstack_copy, obstack_copy0): Rename the second argument as
5376 `address' for consistency. Qualify it `const'.
5377 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
5378 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
5379 `const' their input argument (`data' or `address').
5380 Adjust the corresponding macros to include `const' in casts.
5382 2000-11-03 Akim Demaille <akim@epita.fr>
5384 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
5385 s/PFILE1/BISON_HAIRY/.
5386 Adjust dependencies.
5388 2000-11-03 Akim Demaille <akim@epita.fr>
5390 For some reason, this was not applied.
5392 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
5393 `unlink': it's no longer used.
5395 2000-11-03 Akim Demaille <akim@epita.fr>
5397 * src/files.c (skeleton_find): New function, eved out of...
5398 (open_files, open_extra_files): here.
5400 2000-11-03 Akim Demaille <akim@epita.fr>
5404 * src/files.c (obstack_save): New function.
5405 (done): Rename as...
5406 (output_files): this.
5408 * src/main.c (main): Don't use `atexit' to register `done', since
5409 it no longer has to remove tmp files, just call `output_files'
5410 when there are no errors.
5412 2000-11-02 Akim Demaille <akim@epita.fr>
5414 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
5415 `unlink': it's no longer used.
5416 * src/files.h: Formatting changes.
5418 2000-11-02 Akim Demaille <akim@epita.fr>
5420 Remove the last uses of mktemp and unlink/delete.
5422 * src/files.c (fdefines, ftable): Removed.
5423 (defines_ostack, table_obstack): New.
5424 Adjust dependencies of the former into uses of the latter.
5425 * src/output.c (output_short_or_char_table, output_short_table):
5426 Convert to using obstacks.
5427 * src/reader.c (copy_comment2): Accept one FILE * and two
5429 (output_token_defines, reader_output_yylsp): Use obstacks.
5430 * src/system.h (obstack_fgrow3): New.
5432 2000-11-01 Akim Demaille <akim@epita.fr>
5434 Change each use of `fattrs' into a use of `attrs_obstack'.
5436 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
5437 * src/files.c (fattrs): Remove.
5438 (attrs_obstack): New.
5439 Adjust all dependencies.
5440 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
5442 2000-11-01 Akim Demaille <akim@epita.fr>
5445 Change each use of `faction' into a use of `action_obstack'.
5447 * lib/obstack.h, lib/obstack.c: New files.
5448 * src/files.c (faction): Remove.
5449 (action_obstack): New.
5450 Adjust all dependencies.
5452 2000-10-20 Akim Demaille <akim@epita.fr>
5454 * lib/quote.h (PARAMS): New macro. Use it.
5456 2000-10-16 Akim Demaille <akim@epita.fr>
5458 * src/output.c (output_short_or_char_table): New function.
5459 (output_short_table, output_token_translations): Use it.
5460 (goto_actions): Use output_short_table.
5462 2000-10-16 Akim Demaille <akim@epita.fr>
5464 * src/symtab.c (bucket_new): New function.
5467 * src/output.c (output_short_table): New argument to display the
5468 comment associated with the table.
5469 Adjust dependencies.
5470 (output_gram): Use it.
5471 (output_rule_data): Nicer output layout for YYTNAME.
5473 2000-10-16 Akim Demaille <akim@epita.fr>
5475 * src/lex.c (read_typename): New function.
5477 * src/reader.c (copy_dollar): Likewise.
5479 2000-10-16 Akim Demaille <akim@epita.fr>
5481 * src/reader.c (copy_comment2): Expect the input stream to be on
5482 the `/' which is suspected to open a comment, instead of being
5483 called after `//' or `/*' was read.
5484 (copy_comment, copy_definition, parse_union_decl, copy_action)
5485 (copy_guard): Adjust.
5487 2000-10-16 Akim Demaille <akim@epita.fr>
5489 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
5490 `read_signed_integer'.
5492 2000-10-16 Akim Demaille <akim@epita.fr>
5494 * src/reader.c (copy_dollar): New function.
5495 (copy_guard, copy_action): Use it.
5497 2000-10-16 Akim Demaille <akim@epita.fr>
5499 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
5500 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
5501 New files, from Fileutils 4.0.27.
5502 * src/main.c (printable_version): Remove.
5503 * src/lex.c, src/reader.c: Use `quote'.
5505 2000-10-04 Akim Demaille <akim@epita.fr>
5507 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
5509 2000-10-04 Akim Demaille <akim@epita.fr>
5511 * doc/bison.texinfo: Various typos spotted by Neil Booth.
5513 2000-10-04 Akim Demaille <akim@epita.fr>
5515 When a literal string is used to define two different tokens,
5516 `bison -v' segfaults.
5517 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
5519 * tests/regression.m4: New file.
5520 Include the core of the sample provided by Piotr Gackiewicz.
5521 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
5524 2000-10-04 Akim Demaille <akim@epita.fr>
5526 * src/reader.c (parse_expect_decl): Keep `count' within the size
5530 2000-10-02 Paul Eggert <eggert@twinsun.com>
5532 * bison.s1 (yyparse): Assign the default value
5533 unconditionally, to avoid a GCC warning and make the parser a
5536 2000-10-02 Akim Demaille <akim@epita.fr>
5538 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
5541 2000-10-02 Akim Demaille <akim@epita.fr>
5543 * src/derives.c, src/print.c, src/reduce.c: To ease the
5544 translation, move some `\n' out of the translated strings.
5546 2000-10-02 Akim Demaille <akim@epita.fr>
5548 The location tracking mechanism is precious for parse error
5549 messages. Nevertheless, it is enabled only when `@n' is used in
5550 the grammar, which is a different issue (you can use it in error
5551 message, but not in the grammar per se). Therefore, there should
5552 be another means to enable it.
5554 * src/getargs.c (getargs): Support `--locations'.
5556 * src/getargs.h (locationsflag): Export it.
5557 * src/lex.c (percent_table): Support `%locations'.
5558 * src/reader.c (yylsp_needed): Remove this variable, now replaced
5559 with `locationsflag'.
5560 * doc/bison.texinfo: Document `--locations' and `%locations'.
5562 * tests/calc.m4: Test it.
5564 For regularity of the names, replace each
5565 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
5566 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
5567 In addition replace each `flag' with `_flag'.
5569 2000-10-02 Akim Demaille <akim@epita.fr>
5571 Also test parse error messages, including with YYERROR_VERBOSE.
5573 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
5575 Use it to check the computations.
5576 Use it to check `nonassoc' is honored.
5577 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
5578 `--yyerror-verbose'.
5579 (_AT_CHECK_CALC): Adjust to this option.
5580 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
5582 2000-10-02 Akim Demaille <akim@epita.fr>
5584 Test also `--verbose', `--defines' and `--name-prefix'. Testing
5585 the latter demonstrates a flaw in the handling of non debugging
5586 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
5587 was used in order to simplify:
5603 unfortunately this leads to a CPP conflict when
5604 `--name-prefix=foo' is used since it produces `#define yydebug
5607 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
5608 (YYDPRINTF): New macro.
5610 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
5612 Also test `--verbose', `--defines' and `--name-prefix'.
5614 2000-10-02 Akim Demaille <akim@epita.fr>
5616 Improve the readability of the produced parsers.
5618 * src/bison.s1: Formatting changes.
5619 Improve the comment related to the `$' mark.
5620 (yydefault): Don't fall through to `yyresume': `goto' there.
5621 * src/output.c (output_parser): When the `$' is met, skip the end
5623 New variable, `number_of_dollar_signs', to check there's exactly
5624 one `$' in the parser skeleton.
5626 2000-10-02 Akim Demaille <akim@epita.fr>
5628 * lib/xstrdup.c: New file, from the fileutils.
5629 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
5630 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
5631 instead of strlen + xmalloc + strcpy.
5632 * src/symtab.c (copys): Remove, use xstrdup instead.
5634 2000-10-02 Akim Demaille <akim@epita.fr>
5636 * src/gram.h (associativity): New enum type which replaces the
5637 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
5638 `right_assoc', `left_assoc' and `non_assoc'.
5639 Adjust all dependencies.
5640 * src/reader.c: Formatting changes.
5641 (LTYPESTR): Don't define it, use it as a literal in
5642 `reader_output_yylsp'.
5643 * src/symtab.h (symbol_class): New enum type which replaces the
5644 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
5645 `sunknown', `stoken and `snterm'.
5647 2000-10-02 Akim Demaille <akim@epita.fr>
5649 * src/getargs.c (fixed_outfiles): Rename as...
5650 (yaccflag): for consistency and accuracy.
5651 Adjust dependencies.
5653 2000-10-02 Akim Demaille <akim@epita.fr>
5655 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
5656 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
5657 difficult and introduced a lot of core dump. It turns out that
5658 Bison used an implementation of `xmalloc' based on `calloc', and
5659 at various places it does depend upon the initialization to 0. I
5660 have not tried to isolate the pertinent places, and all the former
5661 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
5662 someone should address this issue.
5664 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
5665 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
5667 Adjust dependencies.
5668 * src/warshall.h: New file.
5671 2000-10-02 Akim Demaille <akim@epita.fr>
5673 Various anti-`extern in *.c' changes.
5675 * src/system.h: Include `assert.h'.
5677 2000-10-02 Akim Demaille <akim@epita.fr>
5679 * src/state.h (nstates, final_state, first_state, first_shift)
5680 (first_reduction): Move their exportation from here...
5681 * src/LR0.h: to here.
5682 Adjust dependencies.
5683 * src/getargs.c (statisticsflag): New variable.
5684 Add support for `--statistics'.
5685 Adjust dependencies.
5687 Remove a lot of now useless `extern' statements in most files.
5689 2000-10-02 Akim Demaille <akim@epita.fr>
5691 * src/LR0.h: New file.
5694 2000-10-02 Akim Demaille <akim@epita.fr>
5696 * src/print.h: New file.
5698 * src/print.c: Formatting and ordering changes.
5699 (verbose, terse): Replace with...
5700 (print_results): this new function.
5701 Adjust dependencies.
5703 2000-10-02 Akim Demaille <akim@epita.fr>
5705 * src/conflicts.c (conflict_report): New function.
5706 (conflict_log, verbose_conflict_log): Replace with...
5707 (print_conflicts): this function.
5708 Adjust dependencies.
5709 * src/conflicts.h: New file.
5710 Propagate its inclusion.
5712 2000-10-02 Akim Demaille <akim@epita.fr>
5714 * src/nullable.h: New file.
5715 Propagate its inclusion.
5716 * src/nullable.c: Formatting changes.
5718 2000-10-02 Akim Demaille <akim@epita.fr>
5720 * src/reduce.h: New file.
5721 Propagate its inclusion.
5722 * src/reduce.c: Topological sort and other formatting changes.
5723 (bool, TRUE, FALSE): Move their definition to...
5724 * src/system.h: here.
5726 2000-10-02 Akim Demaille <akim@epita.fr>
5728 * src/files.c: Formatting changes.
5729 (tryopen, tryclose, openfiles): Rename as...
5730 (xfopen, xfclose, open_files): this.
5731 (stringappend): static.
5732 * src/files.h: Complete the list of exported symbols.
5735 2000-10-02 Akim Demaille <akim@epita.fr>
5737 * src/reader.h: New file.
5738 Propagate its use instead of tedious list of `extern' and
5740 * src/reader.c: Formatting changes, topological sort,
5743 2000-10-02 Akim Demaille <akim@epita.fr>
5745 * src/lex.h: Prototype `lex.c' exported functions.
5746 * src/reader.c: Adjust.
5747 * src/lex.c: Formatting changes.
5748 (safegetc): Rename as...
5751 2000-10-02 Akim Demaille <akim@epita.fr>
5753 * src/lalr.h: New file.
5754 Propagate its inclusion instead of prototypes and `extern'.
5755 * src/lalr.c: Formatting changes, topological sorting etc.
5757 2000-10-02 Akim Demaille <akim@epita.fr>
5759 * src/output.c (token_actions): Introduce a temporary array,
5760 YYDEFACT, that makes it possible for this function to use
5763 2000-10-02 Akim Demaille <akim@epita.fr>
5765 `user_toknums' is output as a `short[]' in `output.c', while it is
5766 defined as a `int[]' in `reader.c'. For consistency with the
5767 other output tables, `user_toknums' is now defined as a table of
5770 * src/reader.c (user_toknums): Be a short table instead of an int
5772 Adjust dependencies.
5774 Factor the short table outputs.
5776 * src/output.c (output_short_table): New function.
5777 * src/output.c (output_gram, output_stos, output_rule_data)
5778 (output_base, output_table, output_check): Use it.
5780 2000-10-02 Akim Demaille <akim@epita.fr>
5782 * src/output.c (output): Topological sort of the functions, in
5783 order to get rid of the `static' prototypes.
5784 No longer use `register'.
5785 * src/output.h: New file.
5786 Propagate its inclusion in files explicitly prototyping functions
5789 2000-09-21 Akim Demaille <akim@epita.fr>
5791 * src/atgeneral.m4: Update from Autoconf.
5793 2000-09-21 Akim Demaille <akim@epita.fr>
5795 * src/closure.h: New file.
5796 * src/closure.c: Formatting changes, topological sort over the
5797 functions, use of closure.h.
5798 (initialize_closure, finalize_closure): Rename as...
5799 (new_closure, free_closure): these. Adjust dependencies.
5800 * src/LR0.c: Formatting changes, topological sort, use of
5802 (initialize_states): Rename as...
5804 * src/Makefile.am (noinst_HEADERS): Adjust.
5806 2000-09-20 Akim Demaille <akim@epita.fr>
5808 * src/acconfig.h: Don't protect config.h against multiple
5810 Don't define PARAMS.
5811 * src/system.h: Define PARAMS.
5812 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
5813 purpose of config.h. system.h must not try to fix wrong
5814 definitions in config.h.
5816 2000-09-20 Akim Demaille <akim@epita.fr>
5818 * src/derives.h: New file.
5819 * src/main.c, src/derives.h: Use it.
5821 * src/Makefile.am (noinst_HEADERS): Adjust.
5823 2000-09-20 Akim Demaille <akim@epita.fr>
5825 * tests/atgeneral.m4: Update from Autoconf.
5826 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
5827 (AT_CHECK_CALC): New macros.
5828 Use these macros to test bison with options `', `--raw',
5829 `--debug', `--yacc', `--yacc --debug'.
5831 2000-09-19 Akim Demaille <akim@epita.fr>
5833 * src/output.c: Formatting changes.
5834 * src/machine.h: Remove, leaving its contents in...
5835 * src/system.h: here.
5837 Adjust all dependencies on stdio.h and machine.h.
5838 * src/getargs.h: New file.
5839 Let all `extern' declarations about getargs.c be replaced with
5840 inclusion of `getargs.h'.
5841 * src/Makefile.am (noinst_HEADERS): Adjust.
5843 * tests/calc.m4 (yyin): Be initialized in main, not on the global
5845 (yyerror): Returns void, not int.
5846 * doc/bison.texinfo: Formatting changes.
5848 2000-09-19 Akim Demaille <akim@epita.fr>
5850 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
5853 2000-09-18 Akim Demaille <akim@epita.fr>
5855 * configure.in: Append WARNING_CFLAGS to CFLAGS.
5856 * src/Makefile.am (INCLUDES): Don't.
5857 Be ready to fetch headers in lib/.
5859 2000-09-18 Akim Demaille <akim@epita.fr>
5861 * doc/bison.texinfo: Update the copyright.
5862 ANSIfy and GNUify the examples.
5863 Remove the old menu.
5865 2000-09-18 Akim Demaille <akim@epita.fr>
5867 First set of tests: use the `calc' example from the documentation.
5869 * src/bison.s1 (yyparse): Condition the code using `yytname' which
5870 is defined only when YYDEBUG is.
5871 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
5872 * src/files.c (tryopen, tryclose): Formatting changes.
5873 Move to the top and be static.
5874 * src/reader.c (read_signed_integer): Likewise.
5875 * tests/calc.m4: New file.
5876 * Makefile.am, suite.m4: Adjust.
5877 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
5879 2000-09-18 Akim Demaille <akim@epita.fr>
5881 Add support for an Autotest test suite for Bison.
5883 * m4/m4.m4, m4/atconfig.m4: New files.
5884 * m4/Makefile.am (EXTRA_DIST): Adjust.
5885 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
5887 * src/getargs.c: Display a more standard --version message.
5888 * src/reader.c (reader): Formatting changes.
5889 No longer depend upon VERSION_STRING.
5890 * configure.in: No longer use `dnl'.
5891 Set up the test suite and the new directory `tests/.
5892 (VERSION_STRING): Remove.
5894 2000-04-14 Akim Demaille <akim@epita.fr>
5896 * src/reader.c (copy_comment2): New function, same as former
5897 `copy_comment', but outputs into two FILE *.
5898 (copy_comment): Use it.
5899 (parse_union_decl): Use it.
5900 (get_type, parse_start_decl): Use the same `invalid' message.
5901 (parse_start_decl, parse_union_decl): Use the same `multiple'
5903 (parse_union_decl, copy_guard, copy_action): Use the same
5904 `unmatched' message.
5905 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
5907 2000-03-31 Akim Demaille <akim@epita.fr>
5909 * src/files.c (tryopen, tryclose): Move to the top.
5912 2000-03-31 Akim Demaille <akim@epita.fr>
5914 * src/main.c (main): Don't call `done', exit does it.
5916 2000-03-31 Akim Demaille <akim@epita.fr>
5918 * allocate.c: s/return (foo)/return foo/.
5921 * output.c: Likewise.
5922 * reader.c: Likewise.
5923 * symtab.c: Likewise.
5924 * vmsgetargs.c: Likewise.
5926 2000-03-31 Akim Demaille <akim@epita.fr>
5928 Clean up the error reporting functions.
5930 * src/report.c: New file.
5931 * src/report.h: Likewise.
5932 * src/Makefile.am: Adjust.
5933 * m4/error.m4: New file.
5934 * m4/Makefile.am: Adjust.
5935 * configure.in (jm_PREREQ_ERROR): Call it.
5936 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
5938 (fatal, fatals): Remove. All callers use complain.c::fatal.
5939 (warn, warni, warns, warnss, warnss): Remove. All callers use
5940 complain.c::complain.
5941 (toomany): Remove, use fatal instead.
5942 * src/files.c (done): No argument, use complain_message_count.
5943 * src/main.c (main): Register `done' to `atexit'.
5945 * src/getargs.c (usage): More `fputs', less `fprintf'.
5947 2000-03-28 Akim Demaille <akim@epita.fr>
5949 * lib/: New directory.
5950 * Makefile.am (SUBDIRS): Adjust.
5951 * configure.in: Adjust.
5952 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
5954 * src/alloca.c: Moved to lib/.
5955 * src/getopt.c: Likewise.
5956 * src/getopt1.c: Likewise.
5957 * src/getopt.h: Likewise.
5958 * src/ansi2knr.c: Likewise.
5959 * src/ansi2knr.1: Likewise.
5960 * src/Makefile.am: Adjust.
5961 * lib/Makefile.am: New file.
5963 2000-03-28 Akim Demaille <akim@epita.fr>
5965 * src/getargs.c (usage): Refresh the help message.
5967 2000-03-17 Akim Demaille <akim@epita.fr>
5969 * src/getopt1.c: Updated from textutils 2.0e
5970 * src/getopt.c: Likewise.
5971 * src/getopt.h: Likewise.
5973 2000-03-17 Akim Demaille <akim@epita.fr>
5975 * src/Makefile.am (bison.simple): Fix the awk program: quote only
5976 the file name, not the whole `#line LINE FILE'.
5978 2000-03-17 Akim Demaille <akim@epita.fr>
5980 On syntax errors, report the token on which we choked.
5982 * src/bison.s1 (yyparse): In the label yyerrlab, when
5983 YYERROR_VERBOSE, add yychar in msg.
5985 2000-03-17 Akim Demaille <akim@epita.fr>
5987 * src/reader.c (copy_at): New function.
5988 (copy_guard): Use it.
5989 (copy_action): Use it.
5991 2000-03-17 Akim Demaille <akim@epita.fr>
5993 Be kind to translators, save some useless translations.
5995 * src/main.c (banner): New function.
5996 (fatal_banner): Use it.
5997 (warn_banner): Use it.
5999 2000-03-17 Akim Demaille <akim@epita.fr>
6001 * src/reader.c (copy_definition): Use copy_string and
6002 copy_comment. Removed now unused `match', `ended',
6004 (copy_comment, copy_string): Moved, to be visible from
6007 2000-03-17 Akim Demaille <akim@epita.fr>
6009 * src/reader.c (copy_string): Declare `static inline'. No
6010 problems with inline, since it is checked by configure.
6011 (copy_comment): Likewise.
6013 2000-03-17 Akim Demaille <akim@epita.fr>
6015 * src/reader.c (packsymbols): Formatting changes.
6017 2000-03-17 Akim Demaille <akim@epita.fr>
6019 * src/reader.c (copy_comment): New function, factored out from:
6020 (copy_action): Use it. Removed now unused `match', `ended',
6022 (copy_guard): Likewise.
6024 2000-03-17 Akim Demaille <akim@epita.fr>
6026 * src/reader.c (copy_string): New function, factored out from:
6027 (copy_action): Use it.
6028 (copy_guard): Likewise.
6030 2000-03-17 Akim Demaille <akim@epita.fr>
6032 Change the handling of @s so that they behave exactly like $s.
6033 There is now a pseudo variable @$ (readble and writable), location
6034 of the lhs of the rule (by default ranging from the location of
6035 the first symbol of the rhs, to the location of the last symbol,
6036 or, if the rhs is empty, YYLLOC).
6038 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
6040 (yyparse): When providing a default semantic action, provide a
6041 default location action.
6042 (after the $): No longer change `*YYLSP', just stack YYLOC the
6043 same way you stack YYVAL.
6044 * src/reader.c (read_declarations): Use warns.
6045 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
6046 (copy_action, case '@'): Likewise.
6047 Use a standard error message, to save useless work from
6050 2000-03-17 Akim Demaille <akim@epita.fr>
6052 * src/bison.s1: Formatting and cosmetics changes.
6053 * src/reader.c: Likewise.
6054 Update the Copyright notice.
6056 2000-03-17 Akim Demaille <akim@epita.fr>
6058 * src/bison.s1 (#line): All set to `#line' only, since the
6059 Makefile now handles them.
6061 2000-03-16 Akim Demaille <akim@epita.fr>
6063 * src/output.c (output_rule_data): Output the documentation of
6065 (Copyright notice): Update.
6068 2000-03-16 Akim Demaille <akim@epita.fr>
6070 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
6071 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
6072 One `#if YYDEBUG' remains, since it uses variables which are
6073 defined only if `YYDEBUG != 0'.
6075 2000-03-16 Akim Demaille <akim@epita.fr>
6077 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
6078 and related variables so that the similarities are highlighted.
6080 2000-03-16 Akim Demaille <akim@epita.fr>
6082 * src/bison.s1: Properly indent CPP directives.
6084 2000-03-16 Akim Demaille <akim@epita.fr>
6086 * src/bison.s1: Properly indent the `alloca' CPP section.
6088 2000-03-16 Akim Demaille <akim@epita.fr>
6090 Do not hard code values of directories in `configure.in'.
6091 Update the `configure' tool chain.
6093 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
6095 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
6096 (AC_OUTPUT): Add m4/Makefile.
6097 Bump to bison 1.28a, 1.29 has never been released.
6098 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
6099 handled via src/Makefile.am.
6100 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
6101 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
6103 * Makefile.am (SUBDIRS): Add m4.
6104 (ACLOCAL_AM_FLAGS): New variable.
6105 (AUTOMAKE_OPTIONS): Add check-news.
6106 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
6107 the proper line number and file name.
6108 (DEFS): Propagate the location of bison library files and of the
6110 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
6112 * acinclude.m4: Remove, replaced by the directory m4.
6113 * m4/Makefile.am (EXTRA_DIST): New variable.
6114 * m4/gettext.m4: New file, from the fileutils.
6115 * m4/lcmessage.m4: Likewise
6116 * m4/progtest.m4: Likewise.
6117 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
6119 2000-03-10 Akim Demaille <akim@epita.fr>
6122 Formatting changes of various comments.
6123 Respect the GNU coding standards at various places.
6124 Don't use `_()' when no translation is needed.
6126 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6129 OS/2 honors TMPDIR environment variable.
6131 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6133 * doc/bison.texinfo: Tweaked spelling and grammar.
6135 Removed reference to price of printed copy.
6136 Mention BISON_SIMPLE and BISON_HAIRY.
6138 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6140 * configure.in, NEWS:
6141 Bison 1.29 released.
6143 1999-10-27 Jesse Thilo <jthilo@gnu.org>
6145 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
6146 Added reference card.
6148 1999-07-26 Jesse Thilo <jthilo@gnu.org>
6150 * po/ru.po: Added Russian translation.
6152 1999-07-26 Jesse Thilo <jthilo@gnu.org>
6154 * configure.in: Added Russian translation.
6156 1999-07-06 Jesse Thilo <jthilo@gnu.org>
6158 * configure.in, NEWS, README:
6159 Released version 1.28.
6161 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6164 Squashed redefinition warning on some systems.
6166 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
6167 Have configure build version string instead of relying on ANSI string
6170 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6172 * po/POTFILES.in: Got rid of version.c.
6174 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6176 * acconfig.h, configure.in:
6177 Have configure build version string instead of relying on ANSI string
6180 1999-06-08 Jesse Thilo <jthilo@gnu.org>
6183 Dropped mention of `+' for long-named options.
6185 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6187 * src/files.c: Added <unistd.h> for unlink().
6189 * src/Makefile.am, src/system.h:
6192 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6194 * README: Added a FAQ list.
6196 * configure.in, acconfig.h:
6199 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6201 * doc/FAQ, doc/Makefile.am:
6204 1999-05-19 Jesse Thilo <jthilo@gnu.org>
6206 * src/alloc.h, src/symtab.h, src/version.c:
6207 Protected inclusion of "config.h" with HAVE_CONFIG_H.
6209 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6211 * src/.cvsignore, src/Makefile.am:
6212 Reorganized: sources in `src', documentation in `doc'.
6214 * src/lex.c (literalchar):
6215 fixed the code for escaping double quotes (thanks
6218 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6220 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
6221 Adjusted paths to reflect directory reorganization.
6223 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6225 * doc/.cvsignore, doc/Makefile.am:
6226 Reorganized: sources in `src', documentation in `doc'.
6228 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6231 Updated AC_INIT file to reflect directory reorganization.
6233 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
6234 Reorganized: sources in `src', documentation in `doc'.
6236 1999-04-13 Jesse Thilo <jthilo@gnu.org>
6239 Don't declare calloc() and realloc() if not necessary.
6241 1999-04-13 Jesse Thilo <jthilo@gnu.org>
6243 * configure.in, acconfig.h, acinclude.m4:
6244 Don't declare calloc() and realloc() if not necessary.
6246 1999-03-23 Jesse Thilo <jthilo@gnu.org>
6248 * po/.cvsignore: Added i18n support.
6250 1999-03-23 Jesse Thilo <jthilo@gnu.org>
6252 * acconfig.h, configure.in, Makefile.am:
6255 1999-03-22 Jesse Thilo <jthilo@gnu.org>
6257 * src/bison.s1: Fixed #line numbers.
6259 1999-03-15 Jesse Thilo <jthilo@gnu.org>
6261 * po/es.po, po/fr.po, po/nl.po, po/de.po:
6262 Added PO files from Translation Project.
6264 1999-03-03 Jesse Thilo <jthilo@gnu.org>
6267 Added support for non-ANSI compilers (ansi2knr).
6269 1999-02-16 Jesse Thilo <jthilo@gnu.org>
6271 * configure.in: Bumped version number to 1.27.
6274 Added `bison.simple' to list of files removed by `make distclean'.
6276 1999-02-12 Jesse Thilo <jthilo@gnu.org>
6278 * src/files.c, src/files.h:
6279 Defined locations of parser files in config.h instead of Makefile.
6281 1999-02-12 Jesse Thilo <jthilo@gnu.org>
6283 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
6284 Defined locations of parser files in config.h instead of Makefile.
6286 1999-02-09 Jesse Thilo <jthilo@gnu.org>
6289 Removed inappropriate use of $< macro.
6291 1999-02-05 Jesse Thilo <jthilo@gnu.org>
6293 * po/Makefile.in.in, po/POTFILES.in:
6294 Add `po' directory skeleton.
6296 1999-01-27 Jesse Thilo <jthilo@gnu.org>
6298 * README: Document help-bison list.
6300 * configure.in: Add check for mkstemp().
6302 1999-01-20 Jesse Thilo <jthilo@gnu.org>
6304 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
6305 Hush a few compiler warnings.
6308 Add tryclose(), which verifies that fclose was successful.
6309 Hush a couple of compiler warnings.
6311 1999-01-20 Jesse Thilo <jthilo@gnu.org>
6313 * Makefile.am, OChangeLog:
6314 ChangeLog is now automatically generated. Include the old version as
6317 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6319 * 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:
6322 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6324 * doc/bison.texinfo: Fix formatting glitch.
6326 * doc/bison.texinfo: Update FSF address.
6328 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6330 * acconfig.h: Update FSF address.
6332 1999-01-08 Jesse Thilo <jthilo@gnu.org>
6335 Don't define PACKAGE here, since config.h defines it.
6337 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6339 * src/reader.c: Update copyright date.
6342 Ditch sprintf to statically-sized buffers in fatal/warn functions in
6343 favor of output directly to stderr (avoids buffer overruns).
6345 * src/reader.c: Some checks for premature EOF.
6347 * 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:
6348 Use prototypes if the compiler understands them.
6350 * src/files.c: Honor TMPDIR on Unix hosts.
6351 Use prototypes if the compiler understands them.
6354 Fix a couple of buffer overrun bugs.
6355 Use prototypes if the compiler understands them.
6357 * src/system.h: Include unistd.h and ctype.h.
6358 Use #ifdef instead of #if for NLS symbols.
6360 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6362 * doc/bison.texinfo:
6363 Delete comment "consider using @set for edition number, etc..." since
6364 we now are doing so.
6366 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6369 Use prototypes if the compiler understands them.
6371 * NEWS: Document 1.26 highlights.
6373 * Makefile.am: Require Automake 1.3 or later.
6376 Use prototypes if the compiler understands them.
6378 1998-12-29 Jesse Thilo <jthilo@gnu.org>
6381 Use VERSION symbol from automake for version number.
6383 1998-12-29 Jesse Thilo <jthilo@gnu.org>
6385 * acconfig.h, configure.in, version.cin:
6386 Use VERSION symbol from automake for version number.
6388 1998-11-28 Jesse Thilo <jthilo@gnu.org>
6391 Distribute original version of simple parser (bison.s1), not built
6392 version (bison.simple).
6394 1998-11-28 Jesse Thilo <jthilo@gnu.org>
6396 * doc/bison.texinfo: Add info dir entry.
6398 * doc/bison.texinfo:
6399 Let automake put version number into documentation.
6401 1998-11-26 Jesse Thilo <jthilo@gnu.org>
6403 * src/bison.cld, src/build.com, src/vmshlp.mar:
6404 Add non-RCS files from /gd/gnu/bison.
6406 1998-11-26 Jesse Thilo <jthilo@gnu.org>
6409 Document the BISON_HAIRY and BISON_SIMPLE variables.
6411 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6413 * src/version.c: Build version.c automatically.
6416 Fix token numbering (used to start at 258, not 257).
6418 * src/system.h: Include config.h.
6420 * src/getargs.c: Update bug report address.
6422 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
6423 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
6425 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6428 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
6430 * configure.in, version.cin:
6431 Build version.c automatically.
6433 * AUTHORS: Add AUTHORS file.
6435 * README: Update bug report address.
6438 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
6440 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
6443 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6445 * doc/bison.texinfo: Clean up some formatting.
6447 1998-05-05 Richard Stallman <rms@gnu.org>
6449 * doc/bison.texinfo:
6450 Explain better why to make a pure parser.
6452 1998-01-05 Richard Stallman <rms@gnu.org>
6454 * src/files.c (openfiles):
6455 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
6456 find a temporary directory, if possible. Do not unlink files while
6459 1997-08-25 Richard Stallman <rms@gnu.org>
6461 * src/reader.c (stack_offset;):
6462 Change some warni to warns.
6464 * src/lex.c (literalchar): Use warns, not warni.
6466 1997-06-28 Richard Stallman <rms@gnu.org>
6468 * src/bison.s1: Add a Bison version comment.
6470 * src/main.c (fatal, warn, berror):
6473 1997-06-28 Richard Stallman <rms@gnu.org>
6475 * Makefile.in (bison_version): New variable.
6476 (dist): Use that variable.
6477 (bison.s1): Substitute the Bison version into bison.simple.
6479 * bison.simple: Add a Bison version comment.
6481 1997-06-18 Richard Stallman <rms@gnu.org>
6483 * src/main.c (fatal, warn, berror):
6484 Make error messages standard.
6485 (toomany): Improve error message text.
6487 * 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:
6488 new.h renamed to alloc.h.
6490 1997-06-18 Richard Stallman <rms@gnu.org>
6492 * Makefile.in: new.h renamed to alloc.h.
6494 1997-05-24 Richard Stallman <rms@gnu.org>
6496 * src/lex.c (literalchar):
6497 Fix the code for escaping \, " and '.
6499 (lex): Avoid trouble when there are many chars
6500 to discard in a char literal with just several chars in it.
6502 1997-05-17 Richard Stallman <rms@gnu.org>
6505 Use malloc, if using alloca is troublesome.
6506 (YYSTACK_USE_ALLOCA): New flag macro.
6507 Define it for some systems and compilers.
6508 (YYSTACK_ALLOC): New macro.
6509 (yyparse): Use YYSTACK_ALLOC to allocate stack.
6510 If it was malloc'd, free it.
6512 1997-05-17 Richard Stallman <rms@gnu.org>
6515 Use malloc, if using alloca is troublesome.
6516 (YYSTACK_USE_ALLOCA): New flag macro.
6517 Define it for some systems and compilers.
6518 (YYSTACK_ALLOC): New macro.
6519 (yyparse): Use YYSTACK_ALLOC to allocate stack.
6520 If it was malloc'd, free it.
6522 1997-04-23 Richard Stallman <rms@gnu.org>
6525 (alloca) [__hpux]: Always define as __builtin_alloca.
6527 1997-04-23 Richard Stallman <rms@gnu.org>
6530 (alloca) [__hpux]: Always define as __builtin_alloca.
6532 1997-04-22 Richard Stallman <rms@gnu.org>
6535 [__hpux]: Include alloca.h (right for HPUX 10)
6536 instead of declaring alloca (right for HPUX 9).
6538 * src/bison.s1 (__yy_memcpy):
6539 Declare arg `count' as unsigned int.
6540 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
6542 1997-04-22 Richard Stallman <rms@gnu.org>
6545 [__hpux]: Include alloca.h (right for HPUX 10)
6546 instead of declaring alloca (right for HPUX 9).
6548 * bison.simple (__yy_memcpy):
6549 Declare arg `count' as unsigned int.
6550 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
6552 1997-01-03 Richard Stallman <rms@gnu.org>
6554 * src/allocate.c: [__STDC__ or _MSC_VER]:
6555 Declare calloc and realloc to return void *.
6557 1997-01-02 Richard Stallman <rms@gnu.org>
6560 [_MSC_VER]: Include stdlib.h and process.h.
6561 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
6563 * src/main.c (main): Return FAILURE as a value.
6564 (printable_version): Declare arg as int, not char.
6566 1997-01-02 Richard Stallman <rms@gnu.org>
6568 * Makefile.in (dist):
6569 Explicitly check for symlinks, and copy them.
6571 1996-12-19 Richard Stallman <rms@gnu.org>
6574 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
6576 1996-12-18 Paul Eggert <eggert@gnu.org>
6578 * src/bison.s1 (yyparse):
6579 If __GNUC__ and YYPARSE_PARAM are both defined,
6580 declare yyparse to have a void * argument.
6582 1996-12-18 Paul Eggert <eggert@gnu.org>
6584 * bison.simple (yyparse):
6585 If __GNUC__ and YYPARSE_PARAM are both defined,
6586 declare yyparse to have a void * argument.
6588 1996-12-17 Richard Stallman <rms@gnu.org>
6590 * src/reduce.c (nbits): Add some casts.
6592 1996-08-12 Richard Stallman <rms@gnu.org>
6594 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
6596 1996-08-12 Richard Stallman <rms@gnu.org>
6598 * bison.simple: Test _MSDOS as well as _MSDOS_.
6600 1996-07-31 Richard Stallman <rms@gnu.org>
6603 [__sun && __i386]: Include alloca.h.
6605 1996-07-31 Richard Stallman <rms@gnu.org>
6608 [__sun && __i386]: Include alloca.h.
6610 1996-07-30 Richard Stallman <rms@gnu.org>
6612 * src/bison.s1: Comment change.
6614 * src/bison.s1: Test _MSDOS_, not MSDOS.
6616 1996-07-30 Richard Stallman <rms@gnu.org>
6618 * bison.simple: Comment change.
6620 * bison.simple: Test _MSDOS_, not MSDOS.
6622 1996-06-01 Richard Stallman <rms@gnu.org>
6624 * 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:
6625 Insert `_' macro around many string constants.
6628 Insert `_' macro around many string constants.
6630 (main): Call setlocale, bindtextdomain and textdomain.
6632 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
6633 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
6634 [ENABLE_NLS]: Include libintl.h.
6635 [ENABLE_NLS] (gettext): Define.
6636 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
6637 (N_, PACKAGE, LOCALEDIR): New macros.
6639 1996-06-01 Richard Stallman <rms@gnu.org>
6641 * POTFILES.in: New file.
6643 * Makefile.in (allocate.o):
6644 Define target explicitly.
6646 * Makefile.in (CFLAGS): Set to @CFLAGS@.
6647 (LDFLAGS): Set to @LDFLAGS@.
6648 (configure): Run autoconf only if preceding `cd' succeeds.
6649 (bison.s1): Redirect output to temporary file then move the
6650 temporary to the target, rather than redirecting directly to bison.s1.
6651 (clean): Remove config.status and config.log.
6652 (distclean): Don't remove config.status here.
6654 1996-05-12 Richard Stallman <rms@gnu.org>
6657 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6659 1996-05-12 Richard Stallman <rms@gnu.org>
6662 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6664 1996-05-11 Richard Stallman <rms@gnu.org>
6666 * src/bison.s1 (__yy_memcpy):
6667 Really reorder the args, as was supposedly done on Feb 14 1995.
6668 (yyparse): Calls changed accordingly.
6670 1996-05-11 Richard Stallman <rms@gnu.org>
6672 * Makefile.in (dist): Don't use $(srcdir).
6674 * bison.simple (__yy_memcpy):
6675 Really reorder the args, as was supposedly done on Feb 14 1995.
6676 (yyparse): Calls changed accordingly.
6678 1996-01-27 Richard Stallman <rms@gnu.org>
6680 * src/output.c (output_rule_data):
6681 Test YYERROR_VERBOSE in the conditional
6682 around the definition of ttyname.
6684 1995-12-29 Richard Stallman <rms@gnu.org>
6687 Fix line numbers in #line commands.
6689 1995-12-29 Richard Stallman <rms@gnu.org>
6692 Fix line numbers in #line commands.
6694 1995-12-27 Richard Stallman <rms@gnu.org>
6696 * src/bison.s1 (YYPARSE_PARAM_DECL):
6697 In C++, make it always null.
6698 (YYPARSE_PARAM_ARG): New macro.
6699 (yyparse): Use YYPARSE_PARAM_ARG.
6701 1995-12-27 Richard Stallman <rms@gnu.org>
6703 * bison.simple (YYPARSE_PARAM_DECL):
6704 In C++, make it always null.
6705 (YYPARSE_PARAM_ARG): New macro.
6706 (yyparse): Use YYPARSE_PARAM_ARG.
6708 1995-11-29 Richard Stallman <rms@gnu.org>
6710 * doc/bison.texinfo:
6711 Describe literal string tokens, %raw, %no_lines, %token_table.
6713 1995-11-29 Daniel Hagerty <hag@gnu.org>
6715 * doc/bison.texinfo: Fixed update date
6717 1995-10-16 Richard Stallman <rms@gnu.org>
6719 * src/version.c: Version 1.25.
6721 1995-10-16 Richard Stallman <rms@gnu.org>
6723 * NEWS: *** empty log message ***
6725 1995-10-16 Richard Stallman <rms@gnu.org>
6727 * doc/bison.1, doc/bison.rnh:
6730 1995-10-15 Richard Stallman <rms@gnu.org>
6732 * src/vmsgetargs.c, src/getargs.c:
6733 Added -n, -k, and -raw switches.
6734 (noparserflag, toknumflag, rawtoknumflag): New variables.
6736 * src/symtab.h (SALIAS):
6737 New #define for adding aliases to %token.
6738 (struct bucket): Added `alias' field.
6740 * src/reduce.c (reduce_grammar):
6741 Revise error message.
6742 (print_notices): Remove final `.' from error message.
6744 * src/reader.c (reader_output_yylsp):
6746 (readgram): Use `#if 0' around code that accepted %command
6747 inside grammar rules: The documentation doesn't allow it,
6748 and it will fail since the %command processors scan for the next %.
6749 (parse_token_decl): Extended the %token
6750 declaration to allow a multi-character symbol as an alias.
6751 (parse_thong_decl): New function.
6752 (read_declarations): Added %thong declarations.
6753 (read_declarations): Handle NOOP to deal with allowing
6754 % declarations as another means to specify the flags.
6755 (readgram): Allow %prec prior to semantics embedded in a rule.
6756 (skip_to_char, read_declarations, copy_definition)
6757 (parse_token_decl, parse_start_decl, parse_type_decl)
6758 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
6759 (get_type_name, copy_guard, copy_action, readgram)
6760 (get_type, packsymbols): Revised most error messages.
6761 Changed `fatal' to `warnxxx' to avoid aborting for error.
6762 Revised and use multiple warnxxx functions to avoid using VARARGS1.
6763 (read_declarations): Improve the error message for
6764 an invalid character. Do not abort.
6765 (read_declarations, copy_guard, copy_action): Use
6766 printable_version to avoid unprintable characters in printed output.
6767 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
6768 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
6769 Allow the type of a non-terminal can be given
6770 more than once, as long as all specifications give the same type.
6773 (output_headers, output_trailers, output, output_gram)
6774 (output_rule_data): Implement noparserflag variable.
6775 Implement toknumflag variable.
6776 (output): Call reader_output_yylsp to output LTYPESTR.
6778 * src/main.c (main):
6779 If reader sees an error, don't process the grammar.
6780 (fatals): Updated to not use VARARGS1.
6781 (printable_version, int_to_string, warn, warni, warns, warnss)
6782 (warnsss): New error reporting functions. Avoid abort for error.
6785 Added THONG and NOOP for alias processing.
6786 Added SETOPT for the new code that allows setting options with %flags.
6789 Include getopt.h. Add some extern decls.
6790 (safegetc): New function to deal with EOF gracefully.
6791 (literalchar); new function to deal with reading \ escapes.
6792 (lex): Use literalchar.
6793 (lex): Implemented "..." tokens.
6794 (literalchar, lex, parse_percent_token): Made tokenbuffer
6795 always contain the token. This includes growing the token
6796 buffer while reading an integer.
6797 (parse_percent_token): Replaced if-else statement with percent_table.
6798 (parse_percent_token): Added % declarations as another
6799 way to specify the flags -n, -l, and -r. Also added hooks for
6800 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
6801 major changes to files.c.
6802 (lex) Retain in the incoming stream a character following
6804 (skip_white_space, lex): Revised most error messages
6805 and changed fatal to warn to avoid aborting.
6806 (percent_table): Added %thong declarations.
6808 * src/gram.h: Comment changes.
6810 * src/files.c (openfiles, open_extra_files, done):
6812 and actfile file. Handle noparserflag. Both for -n switch.
6814 * src/conflicts.c (resolve_sr_conflict):
6815 Remove use of alloca.
6817 1995-06-01 Jim Meyering <meyering@gnu.org>
6819 * doc/bison.texinfo: *** empty log message ***
6821 1995-05-06 Richard Stallman <rms@gnu.org>
6823 * src/bison.s1: Comment change.
6825 1995-05-06 Richard Stallman <rms@gnu.org>
6827 * bison.simple: Comment change.
6829 1995-05-03 Richard Stallman <rms@gnu.org>
6831 * src/version.c: Version now 1.24.
6833 * src/bison.s1: Change distribution terms.
6835 * src/version.c: Version now 1.23.
6837 1995-05-03 Richard Stallman <rms@gnu.org>
6839 * doc/bison.texinfo:
6840 Rewrite "Conditions for Using Bison".
6841 Update version to 1.24.
6843 1995-05-03 Richard Stallman <rms@gnu.org>
6845 * bison.simple: Change distribution terms.
6847 1995-02-23 Richard Stallman <rms@gnu.org>
6849 * src/files.c: Test __VMS_POSIX as well as VMS.
6851 1995-02-14 Jim Meyering <meyering@gnu.org>
6853 * src/bison.s1 (__yy_memcpy):
6854 Renamed from __yy_bcopy to avoid
6855 confusion. Reverse FROM and TO arguments to be consistent with
6858 1995-02-14 Jim Meyering <meyering@gnu.org>
6860 * bison.simple (__yy_memcpy):
6861 Renamed from __yy_bcopy to avoid
6862 confusion. Reverse FROM and TO arguments to be consistent with
6865 1994-11-10 David J. MacKenzie <djm@gnu.org>
6871 * Makefile.in (DISTFILES): Include NEWS.
6873 * Makefile.in (DISTFILES):
6874 Include install-sh, not install.sh.
6876 * configure.in: Update to Autoconf v2 macro names.
6878 1994-10-05 David J. MacKenzie <djm@gnu.org>
6880 * Makefile.in: fix typo
6882 * Makefile.in (prefix, exec_prefix):
6883 Let configure set them.
6885 1994-09-28 David J. MacKenzie <djm@gnu.org>
6887 * Makefile.in: Set datadir to $(prefix)/share.
6889 1994-09-15 Richard Stallman <rms@gnu.org>
6892 Update copyright notice and GPL version.
6894 1994-09-15 Richard Stallman <rms@gnu.org>
6897 Update copyright notice and GPL version.
6899 1994-07-12 Richard Stallman <rms@gnu.org>
6901 * src/reduce.c, src/reader.c:
6904 1994-05-05 David J. MacKenzie <djm@gnu.org>
6906 * Makefile.in: entered into RCS
6908 1994-03-26 Richard Stallman <rms@gnu.org>
6910 * src/bison.s1: entered into RCS
6912 1994-03-26 Richard Stallman <rms@gnu.org>
6914 * bison.simple: entered into RCS
6916 1994-03-25 Richard Stallman <rms@gnu.org>
6918 * src/main.c: entered into RCS
6920 1994-03-24 Richard Stallman <rms@gnu.org>
6922 * src/conflicts.c: entered into RCS
6924 1994-01-02 Richard Stallman <rms@gnu.org>
6926 * Makefile.in: *** empty log message ***
6928 1993-11-21 Richard Stallman <rms@gnu.org>
6930 * src/bison.s1: *** empty log message ***
6932 1993-11-21 Richard Stallman <rms@gnu.org>
6934 * doc/bison.texinfo: entered into RCS
6936 * doc/bison.texinfo: *** empty log message ***
6938 1993-11-21 Richard Stallman <rms@gnu.org>
6940 * bison.simple: *** empty log message ***
6942 1993-10-25 David J. MacKenzie <djm@gnu.org>
6944 * doc/bison.texinfo: *** empty log message ***
6946 1993-10-19 Richard Stallman <rms@gnu.org>
6948 * src/bison.s1: *** empty log message ***
6950 1993-10-19 Richard Stallman <rms@gnu.org>
6952 * bison.simple: *** empty log message ***
6954 1993-10-14 Richard Stallman <rms@gnu.org>
6956 * src/bison.s1: *** empty log message ***
6958 1993-10-14 Richard Stallman <rms@gnu.org>
6960 * bison.simple: *** empty log message ***
6962 1993-09-14 David J. MacKenzie <djm@gnu.org>
6964 * doc/bison.texinfo: *** empty log message ***
6966 1993-09-13 Noah Friedman <friedman@gnu.org>
6968 * Makefile.in: *** empty log message ***
6970 1993-09-10 Richard Stallman <rms@gnu.org>
6972 * src/conflicts.c: *** empty log message ***
6974 * src/system.h: entered into RCS
6976 1993-09-10 Richard Stallman <rms@gnu.org>
6978 * doc/bison.1: entered into RCS
6980 1993-09-06 Noah Friedman <friedman@gnu.org>
6982 * src/version.c: entered into RCS
6984 1993-09-06 Noah Friedman <friedman@gnu.org>
6986 * Makefile.in: *** empty log message ***
6988 1993-07-30 David J. MacKenzie <djm@gnu.org>
6990 * Makefile.in: *** empty log message ***
6992 1993-07-24 Richard Stallman <rms@gnu.org>
6994 * src/bison.s1: *** empty log message ***
6996 1993-07-24 Richard Stallman <rms@gnu.org>
6998 * bison.simple: *** empty log message ***
7000 1993-07-08 David J. MacKenzie <djm@gnu.org>
7002 * Makefile.in: *** empty log message ***
7004 1993-07-04 Richard Stallman <rms@gnu.org>
7006 * src/bison.s1: *** empty log message ***
7008 1993-07-04 Richard Stallman <rms@gnu.org>
7010 * bison.simple: *** empty log message ***
7012 1993-06-26 David J. MacKenzie <djm@gnu.org>
7014 * src/getargs.c: entered into RCS
7016 1993-06-26 David J. MacKenzie <djm@gnu.org>
7018 * doc/bison.texinfo: *** empty log message ***
7020 * doc/bison.1: New file.
7022 1993-06-25 Richard Stallman <rms@gnu.org>
7024 * src/getargs.c: New file.
7026 1993-06-16 Richard Stallman <rms@gnu.org>
7028 * src/bison.s1: *** empty log message ***
7030 1993-06-16 Richard Stallman <rms@gnu.org>
7032 * bison.simple: *** empty log message ***
7034 1993-06-03 Richard Stallman <rms@gnu.org>
7036 * src/bison.s1: New file.
7038 1993-06-03 Richard Stallman <rms@gnu.org>
7040 * doc/bison.texinfo: *** empty log message ***
7042 1993-06-03 Richard Stallman <rms@gnu.org>
7044 * bison.simple: New file.
7046 1993-05-19 Richard Stallman <rms@gnu.org>
7048 * doc/bison.texinfo: New file.
7050 1993-05-07 Noah Friedman <friedman@gnu.org>
7052 * Makefile.in: *** empty log message ***
7054 1993-04-28 Noah Friedman <friedman@gnu.org>
7056 * src/reader.c: *** empty log message ***
7058 1993-04-23 Noah Friedman <friedman@gnu.org>
7060 * src/alloc.h: entered into RCS
7062 1993-04-20 David J. MacKenzie <djm@gnu.org>
7064 * src/version.c: *** empty log message ***
7066 * src/files.c, src/allocate.c:
7069 * src/reader.c: *** empty log message ***
7071 * src/lex.c: entered into RCS
7073 * src/conflicts.c: New file.
7075 * src/symtab.c: entered into RCS
7077 * src/alloc.h: New file.
7079 * src/LR0.c: entered into RCS
7081 1993-04-18 Noah Friedman <friedman@gnu.org>
7083 * src/reader.c: New file.
7085 * src/version.c: *** empty log message ***
7087 1993-04-18 Noah Friedman <friedman@gnu.org>
7089 * Makefile.in: *** empty log message ***
7091 1993-04-17 Noah Friedman <friedman@gnu.org>
7093 * Makefile.in: *** empty log message ***
7095 1993-04-15 Richard Stallman <rms@gnu.org>
7097 * src/main.c, src/files.c:
7100 1993-04-15 Noah Friedman <friedman@gnu.org>
7102 * configure.in: entered into RCS
7104 * configure.in: *** empty log message ***
7106 * configure.in: New file.
7108 1993-04-14 Richard Stallman <rms@gnu.org>
7110 * Makefile.in: New file.
7112 1993-04-13 Richard Stallman <rms@gnu.org>
7114 * src/version.c: New file.
7116 1993-03-25 Richard Stallman <rms@gnu.org>
7118 * src/output.c: entered into RCS
7120 1992-09-25 Richard Stallman <rms@gnu.org>
7122 * configure.bat: entered into RCS
7124 1992-06-22 Richard Stallman <rms@gnu.org>
7126 * src/vmsgetargs.c: entered into RCS
7128 1992-06-22 Richard Stallman <rms@gnu.org>
7130 * doc/bison.rnh: entered into RCS
7132 1992-04-20 David J. MacKenzie <djm@gnu.org>
7134 * README: entered into RCS
7136 1992-01-22 Richard Stallman <rms@gnu.org>
7138 * src/machine.h: entered into RCS
7140 1991-12-21 Richard Stallman <rms@gnu.org>
7142 * src/lalr.c, src/closure.c:
7145 1991-12-20 Richard Stallman <rms@gnu.org>
7147 * src/state.h: entered into RCS
7149 1991-12-18 Richard Stallman <rms@gnu.org>
7151 * src/print.c, src/nullable.c, src/derives.c:
7154 1991-11-03 David J. MacKenzie <djm@gnu.org>
7156 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
7159 1988-09-09 Richard Stallman <rms@gnu.org>
7161 * src/bison.hairy: entered into RCS
7163 1987-12-16 Richard Stallman <rms@gnu.org>
7165 * REFERENCES: entered into RCS
7168 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
7170 This file is part of GNU Autoconf.
7172 GNU Autoconf is free software; you can redistribute it and/or modify
7173 it under the terms of the GNU General Public License as published by
7174 the Free Software Foundation; either version 2, or (at your option)
7177 GNU Autoconf is distributed in the hope that it will be useful,
7178 but WITHOUT ANY WARRANTY; without even the implied warranty of
7179 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7180 GNU General Public License for more details.
7182 You should have received a copy of the GNU General Public License
7183 along with autoconf; see the file COPYING. If not, write to
7184 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
7185 Boston, MA 02111-1307, USA.