1 2002-06-19 Akim Demaille <akim@epita.fr>
3 * data/bison.simple (b4_pure_if): New.
4 Use it instead of #ifdef YYPURE.
6 2002-06-19 Akim Demaille <akim@epita.fr>
8 * data/bison.simple (b4_location_if): New.
9 Use it instead of #ifdef YYLSP_NEEDED.
11 2002-06-19 Akim Demaille <akim@epita.fr>
13 Prepare @$ in %destructor, but currently don't bind it in the
14 skeleton, as %location use is not cleaned up yet.
16 * src/scan-gram.l (handle_dollar, handle_destructor_at)
17 (handle_action_at): New.
18 (handle_at, handle_action_dollar, handle_destructor_dollar): Take
19 a braced_code_t and a location as additional arguments.
20 (handle_destructor_dollar): Instead of requiring `b4_eval', just
21 unquote one when outputting `b4_dollar_dollar'.
23 * data/bison.simple (b4_eval): Remove.
24 (b4_symbol_destructor): Adjust.
25 * tests/input.at (Invalid @n): Adjust.
27 2002-06-19 Zack Weinberg <zack@codesourcery.com>
29 * doc/bison.texinfo: Document ability to have multiple
32 2002-06-18 Akim Demaille <akim@epita.fr>
34 * src/files.c (compute_base_names): When computing the output file
35 names from the input file name, strip the directory part.
37 2002-06-18 Akim Demaille <akim@epita.fr>
39 * data/bison.simple.new: Comment changes.
40 Reported by Andreas Schwab.
42 2002-06-18 Matt Kraai <kraai@alumni.cmu.edu>
44 * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
45 there are no `label `yyoverflowlab' defined but not used' warnings
46 when yyoverflow is defined.
48 2002-06-18 Akim Demaille <akim@epita.fr>
50 * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a
52 (symbol_destructor_set): Adjust.
53 * src/output.c (symbol_destructors_output): Output the destructor
55 Output the symbol name.
56 * data/bison.simple (b4_symbol_destructor): Adjust.
58 2002-06-18 Cris Bailiff <c.bailiff@awayweb.com>
59 and Akim Demaille <akim@epita.fr>
61 * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy
62 what's left on the stack when the error recovery hits EOF.
63 * tests/actions.at (Destructors): Complete to exercise this case.
65 2002-06-17 Akim Demaille <akim@epita.fr>
67 * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of
68 arguments is really empty, not only equal to `[]'.
69 * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new
71 (symbol_destructor_set): New.
72 * src/output.c (symbol_destructors_output): New.
73 * src/reader.h (brace_code_t, current_braced_code): New.
74 * src/scan-gram.l (BRACED_CODE): Use it to branch on...
75 (handle_dollar): Rename as...
76 (handle_action_dollar): this.
77 (handle_destructor_dollar): New.
78 * src/parse-gram.y (PERCENT_DESTRUCTOR): New.
79 (grammar_declaration): Use it.
80 * data/bison.simple (yystos): Is always defined.
82 * tests/actions.at (Destructors): New.
83 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep.
85 2002-06-17 Akim Demaille <akim@epita.fr>
87 * src/symlist.h, src/symlist.c (symbol_list_length): New.
88 * src/scan-gram.l (handle_dollar, handle_at): Compute the
89 rule_length only when needed.
90 * src/output.c (actions_output, token_definitions_output): Output
92 * src/symtab.c: Don't access directly to the symbol tag, use
94 * src/parse-gram.y: Use symbol_list_free.
96 2002-06-17 Akim Demaille <akim@epita.fr>
98 * src/reader.h, src/reader.c (symbol_list, symbol_list_new)
99 (symbol_list_prepend, get_type_name): Move to...
100 * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new)
101 (symbol_list_prepend, symbol_list_n_type_name_get): here.
103 (symbol_list_free): New.
104 * src/scan-gram.l (handle_dollar): Takes a location.
105 * tests/input.at (Invalid $n): Adjust.
107 2002-06-17 Akim Demaille <akim@epita.fr>
109 * src/reader.h, src/reader.c (symbol_list_new): Export it.
110 (symbol_list_prepend): New.
111 * src/parse-gram.y (%union): `list' is a new member.
112 (symbols.1): New, replaces...
113 (terms_to_prec.1, nterms_to_type.1): these.
114 * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set)
115 Take a location as additional argument.
118 2002-06-15 Akim Demaille <akim@epita.fr>
120 * src/parse-gram.y: Move %token in the declaration section so that
121 we don't depend upon CVS Bison.
123 2002-06-15 Akim Demaille <akim@epita.fr>
125 * src/state.h, src/state.c (state_rule_lookaheads_print): New.
126 * src/print.c (print_core): Use it.
128 2002-06-15 Akim Demaille <akim@epita.fr>
130 * src/conflicts.c (log_resolution): Accept the rule involved in
131 the sr conflicts instead of the lookahead number that points to
133 (flush_reduce): Accept the current lookahead vector as argument,
134 instead of the index in LA.
135 (resolve_sr_conflict): Accept the current number of lookahead
136 bitset to consider for the STATE, instead of the index in LA.
137 (set_conflicts): Adjust.
138 * src/lalr.c, src/lalr.h, src/state.h: Comment changes.
140 2002-06-15 Akim Demaille <akim@epita.fr>
142 * src/state.h (state_t): Replace the `lookaheadsp' member, a
143 short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**).
144 Adjust all dependencies.
145 * src/lalr.c (initialize_lookaheads): Split into...
146 (states_lookaheads_count, states_lookaheads_initialize): these.
149 2002-06-15 Akim Demaille <akim@epita.fr>
151 * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved
153 (grammar_rules_print): here.
154 * src/reduce.c (reduce_output): Use it.
155 * tests/reduce.at (Useless Rules, Reduced Automaton)
156 (Underivable Rules): Adjust.
158 2002-06-15 Akim Demaille <akim@epita.fr>
160 Copy BYacc's nice way to report the grammar.
162 * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print):
164 Don't print the rules' location, it is confusing and useless.
165 (rule_print): Use grammar_rhs_print.
166 * src/print.c (print_grammar): Use grammar_rules_print.
168 2002-06-15 Akim Demaille <akim@epita.fr>
170 Complete and rationalize `useless thing' warnings.
172 * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n)
173 (symbol_tag_print): New.
174 Use them everywhere in place of accessing directly the tag member.
175 * src/gram.h, src/gram.c (rule_print): New.
176 Use it where a rule used to be printed `by hand'.
177 * src/reduce.c (nonterminals_reduce): Report the use nonterminals.
178 (reduce_grammar_tables): Report the useless rules.
179 (reduce_print): Useless things are a warning, not an error.
181 * tests/reduce.at (Useless Nonterminals, Useless Rules):
182 (Reduced Automaton, Underivable Rules): Adjust.
183 * tests/regression.at (Web2c Report, Web2c Report): Adjust.
184 * tests/conflicts.at (Unresolved SR Conflicts)
185 (Solved SR Conflicts): Adjust.
187 2002-06-15 Akim Demaille <akim@epita.fr>
189 Let symbols have a location.
191 * src/symtab.h, src/symtab.c (symbol_t): Location is a new member.
194 * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at):
195 Use location_t, not int.
196 * src/symtab.c (symbol_check_defined): Take advantage of the
198 * tests/regression.at (Invalid inputs): Adjust.
200 2002-06-15 Akim Demaille <akim@epita.fr>
202 * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
203 (input): Don't try to initialize yylloc here, do it in the
205 * src/scan-gram.l (YY_USER_INIT): Initialize yylloc.
206 * src/gram.h (rule_t): Change line and action_line into location
207 and action_location, of location_t type.
208 Adjust all dependencies.
209 * src/location.h, src/location.c (empty_location): New.
210 * src/reader.h, src/reader.c (grammar_start_symbol_set)
211 (grammar_symbol_append, grammar_rule_begin, grammar_rule_end)
212 (grammar_current_rule_symbol_append)
213 (grammar_current_rule_action_append): Expect a location as argument.
214 * src/reader.c (grammar_midrule_action): Adjust to attach an
215 action's location as dummy symbol location.
216 * src/symtab.h, src/symtab.c (startsymbol_location): New.
217 * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust
220 2002-06-14 Akim Demaille <akim@epita.fr>
222 Grammar declarations may be found in the grammar section.
224 * src/parse-gram.y (rules_or_grammar_declaration): New.
225 (declarations): Each declaration may end with a semicolon, not
227 (grammar_declaration): `"%union"'.
228 (grammar): Branch to rules_or_grammar_declaration.
230 2002-06-14 Akim Demaille <akim@epita.fr>
232 * src/main.c (main): Invoke scanner_free.
234 2002-06-14 Akim Demaille <akim@epita.fr>
236 * src/output.c (m4_invoke): Extracted from...
237 (output_skeleton): here.
240 2002-06-14 Akim Demaille <akim@epita.fr>
242 * src/parse-gram.y (directives, directive, gram)
243 (grammar_directives, precedence_directives, precedence_directive):
245 (declarations, declaration, grammar, grammar_declaration)
246 (precedence_declaration, precedence_declarator): these.
247 (symbol_declaration): New.
249 2002-06-14 Akim Demaille <akim@epita.fr>
251 * src/files.c (action_obstack): Remove, unused.
252 (output_obstack): Remove it, and all its dependencies, as it is no
254 * src/reader.c (epilogue_set): Build the epilogue in the
256 * src/output.h, src/output.c (muscle_obstack): Move to...
257 * src/muscle_tab.h, src/muscle_tab.h: here.
258 (muscle_init): Initialize muscle_obstack.
260 * src/main.c (main): Call it.
262 2002-06-14 Akim Demaille <akim@epita.fr>
264 * src/location.h: New, extracted from...
265 * src/reader.h: here.
266 * src/Makefile.am (noinst_HEADERS): Merge into
267 (bison_SOURCES): this.
269 * src/parse-gram.y: Use location_t instead of Bison's.
270 * src/reader.h, src/reader.c (prologue_augment, epilogue_set):
271 Use location_t instead of ints.
273 2002-06-14 Akim Demaille <akim@epita.fr>
275 * data/bison.simple, data/bison.c++: Be sure to restore the
276 current #line when returning to the skeleton contents after having
277 exposed the input file's #line.
279 2002-06-12 Akim Demaille <akim@epita.fr>
281 * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
283 * tests/actions.at (Exotic Dollars): New.
285 2002-06-12 Akim Demaille <akim@epita.fr>
287 * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
289 * tests/input.at (Torturing the Scanner): New.
291 2002-06-11 Akim Demaille <akim@epita.fr>
293 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
294 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
295 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
296 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
297 * src/reader.c (reader): Use it.
299 2002-06-11 Akim Demaille <akim@epita.fr>
301 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
303 (scanner_last_string_free): New.
305 2002-06-11 Akim Demaille <akim@epita.fr>
307 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
308 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
309 (last_string, YY_OBS_FREE): New.
310 Use them when returning an ID.
312 2002-06-11 Akim Demaille <akim@epita.fr>
314 Have Bison grammars parsed by a Bison grammar.
316 * src/reader.c, src/reader.h (prologue_augment): New.
317 * src/reader.c (copy_definition): Remove.
319 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
320 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
321 (grammar_current_rule_prec_set, grammar_current_rule_check)
322 (grammar_current_rule_symbol_append)
323 (grammar_current_rule_action_append): Export.
324 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
325 (symbol_list_action_append): Remove.
326 Hook the routines from reader.
327 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
328 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
330 * src/reader.c (read_declarations): Remove, unused.
332 * src/parse-gram.y: Handle the epilogue.
333 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
334 (grammar_start_symbol_set): this.
335 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
336 * src/reader.c (readgram): Remove, unused.
337 (reader): Adjust to insert eoftoken and axiom where appropriate.
339 * src/reader.c (copy_dollar): Replace with...
340 * src/scan-gram.h (handle_dollar): this.
341 * src/parse-gram.y: Remove `%thong'.
343 * src/reader.c (copy_at): Replace with...
344 * src/scan-gram.h (handle_at): this.
346 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
349 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
352 * src/reader.h, src/reader.c (grammar_rule_end): New.
354 * src/parse.y (current_type, current_class): New.
355 Implement `%nterm', `%token' support.
356 Merge `%term' into `%token'.
358 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
361 * src/parse-gram.y: Be sure to handle properly the beginning of
364 * src/parse-gram.y: Handle %type.
365 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
367 * src/parse-gram.y: More directives support.
368 * src/options.c: No longer handle source directives.
370 * src/parse-gram.y: Fix %output.
372 * src/parse-gram.y: Handle %union.
373 Use the prologue locations.
374 * src/reader.c (parse_union_decl): Remove.
376 * src/reader.h, src/reader.c (epilogue_set): New.
377 * src/parse-gram.y: Use it.
379 * data/bison.simple, data/bison.c++: b4_stype is now either not
380 defined, then default to int, or to the contents of %union,
381 without `union' itself.
383 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
385 * src/output.c (actions_output): Don't output braces, as they are
386 already handled by the scanner.
388 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
389 characters to themselves.
391 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
392 that the epilogue has a proper #line.
394 * src/parse-gram.y: Handle precedence/associativity.
396 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
398 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
399 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
400 at all to define terminals that cannot be emitted.
402 * src/scan-gram.l: Escape M4 characters.
404 * src/scan-gram.l: Working properly with escapes in user
407 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
408 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
410 Use more modest sizes, as for the time being the parser does not
411 release memory, and therefore the process swallows a huge amount
414 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
415 stricter %token grammar.
417 * src/symtab.h (associativity): Add `undef_assoc'.
418 (symbol_precedence_set): Do nothing when passed an undef_assoc.
419 * src/symtab.c (symbol_check_alias_consistence): Adjust.
421 * tests/regression.at (Invalid %directive): Remove, as it is now
423 (Invalid inputs): Adjust to the new error messages.
424 (Token definitions): The new grammar doesn't allow too many
427 * src/lex.h, src/lex.c: Remove.
428 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
429 (copy_character, copy_string2, copy_string, copy_identifier)
430 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
431 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
432 (parse_action): Remove.
433 * po/POTFILES.in: Adjust.
435 2002-06-11 Akim Demaille <akim@epita.fr>
437 * src/reader.c (parse_action): Don't store directly into the
438 rule's action member: return the action as a string.
439 Don't require `rule_length' as an argument: compute it.
440 (grammar_current_rule_symbol_append)
441 (grammar_current_rule_action_append): New, eved out from
443 Remove `action_flag', `rulelength', unused now.
445 2002-06-11 Akim Demaille <akim@epita.fr>
447 * src/reader.c (grammar_current_rule_prec_set).
448 (grammar_current_rule_check): New, eved out from...
450 Remove `xaction', `first_rhs': useless.
451 * tests/input.at (Type clashes): New.
452 * tests/existing.at (GNU Cim Grammar): Adjust.
454 2002-06-11 Akim Demaille <akim@epita.fr>
456 * src/reader.c (grammar_midrule_action): New, Eved out from
459 2002-06-11 Akim Demaille <akim@epita.fr>
461 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
463 (readgram): Use them as replacement of inlined code, crule and
466 2002-06-11 Akim Demaille <akim@epita.fr>
468 * src/reader.c (grammar_end, grammar_symbol_append): New.
469 (readgram): Use them.
470 Make the use of `p' as local as possible.
472 2002-06-10 Akim Demaille <akim@epita.fr>
474 GCJ's parser requires the tokens to be defined before the prologue.
476 * data/bison.simple: Output the token definition before the user's
478 * tests/regression.at (Braces parsing, Duplicate string)
479 (Mixing %token styles): Check the output from bison.
480 (Early token definitions): New.
482 2002-06-10 Akim Demaille <akim@epita.fr>
484 * src/symtab.c (symbol_user_token_number_set): Don't complain when
485 assigning twice the same user number to a token, so that we can
487 * src/lex.c (lex): here.
488 Also use `symbol_class_set' instead of hand written code.
489 * src/reader.c (parse_assoc_decl): Likewise.
491 2002-06-10 Akim Demaille <akim@epita.fr>
493 * src/symtab.c, src/symtab.c (symbol_class_set)
494 (symbol_user_token_number_set): New.
495 * src/reader.c (parse_token_decl): Use them.
496 Use a switch instead of ifs.
497 Use a single argument.
499 2002-06-10 Akim Demaille <akim@epita.fr>
501 Remove `%thong' support as it is undocumented, unused, duplicates
502 `%token's job, and creates useless e-mail traffic with people who
503 want to know what it is, why it is undocumented, unused, and
504 duplicates `%token's job.
506 * src/reader.c (parse_thong_decl): Remove.
507 * src/options.c (option_table): Remove "thong".
508 * src/lex.h (tok_thong): Remove.
510 2002-06-10 Akim Demaille <akim@epita.fr>
512 * src/symtab.c, src/symtab.c (symbol_type_set)
513 (symbol_precedence_set): New.
514 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
515 (value_components_used): Remove, unused.
517 2002-06-09 Akim Demaille <akim@epita.fr>
519 Move symbols handling code out of the reader.
521 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
523 * src/symtab.h, src/symtab.c: here.
525 * src/gram.c (start_symbol): Remove: use startsymbol->number.
526 * src/reader.c (startval): Rename as...
527 * src/symtab.h, src/symtab.c (startsymbol): this.
528 * src/reader.c: Adjust.
530 * src/reader.c (symbol_check_defined, symbol_make_alias)
531 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
532 (token_translations_init)
534 * src/symtab.c: here.
535 * src/reader.c (packsymbols): Move to...
536 * src/symtab.h, src/symtab.c (symbols_pack): here.
537 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
540 2002-06-03 Akim Demaille <akim@epita.fr>
542 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
545 2002-06-03 Akim Demaille <akim@epita.fr>
547 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
548 structs with non literals.
549 * src/scan-skel.l: never-interactive.
550 * src/conflicts.c (enum conflict_resolution_e): No trailing
552 * src/getargs.c (usage): Split long literal strings.
553 Reported by Hans Aberg.
555 2002-05-28 Akim Demaille <akim@epita.fr>
557 * data/bison.c++: Use C++ ostreams.
558 (cdebug_): New member.
560 2002-05-28 Akim Demaille <akim@epita.fr>
562 * src/output.c (output_skeleton): Be sure to allocate enough room
563 for `/' _and_ for `\0' in full_skeleton.
565 2002-05-28 Akim Demaille <akim@epita.fr>
567 * data/bison.c++: Catch up with bison.simple:
568 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
569 and Paul Eggert <eggert@twinsun.com>: `error' handing.
570 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
573 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
575 * src/output.c (output_skeleton): Put an explicit path in front of
576 the skeleton file name, rather than relying on the -I directory,
577 to partially alleviate effects of having a skeleton file lying around
578 in the current directory.
580 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
582 * src/conflicts.c (log_resolution): Correct typo:
583 obstack_printf should be obstack_fgrow1.
585 2002-05-26 Akim Demaille <akim@epita.fr>
587 * src/state.h (state_t): `solved_conflicts' is a new member.
588 * src/LR0.c (new_state): Set it to 0.
589 * src/conflicts.h, src/conflicts.c (print_conflicts)
590 (free_conflicts, solve_conflicts): Rename as...
591 (conflicts_print, conflicts_free, conflicts_solve): these.
593 * src/conflicts.c (enum conflict_resolution_e)
594 (solved_conflicts_obstack): New, used by...
595 (log_resolution): this.
596 Adjust to attach the conflict resolution to each state.
597 Complete the description with the precedence/associativity
599 (resolve_sr_conflict): Adjust.
600 * src/print.c (print_state): Output its solved_conflicts.
601 * tests/conflicts.at (Unresolved SR Conflicts)
602 (Solved SR Conflicts): Exercise --report=all.
604 2002-05-26 Akim Demaille <akim@epita.fr>
606 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
607 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
608 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
609 (token_number_t, item_number_as_token_number)
610 (token_number_as_item_number, muscle_insert_token_number_table):
612 (symbol_number_t, item_number_as_symbol_number)
613 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
614 these, since it is more appropriate.
616 2002-05-26 Akim Demaille <akim@epita.fr>
618 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
620 * data/bison.simple (yystos) [YYDEBUG]: New.
621 (yyparse) [YYDEBUG]: Display the symbols which are popped during
623 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
625 2002-05-25 Akim Demaille <akim@epita.fr>
627 * doc/bison.texinfo (Debugging): Split into...
628 (Tracing): this new section, its former contents, and...
629 (Understanding): this new section.
630 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
633 Adjust all dependencies.
634 (report_args, report_types, report_argmatch): New.
635 (usage, getargs): Report/support -r, --report.
637 (struct option_table_struct): Rename as..,
638 (struct option_table_s): this.
639 Rename the `set_flag' member to `flag' to match with getopt_long's
641 * src/options.c (option_table): Split verbose into an entry for
642 %verbose, and another for --verbose.
643 Support --report/-r, so remove -r from the obsolete --raw.
644 * src/print.c: Attach full item sets and lookaheads reports to
645 report_flag instead of trace_flag.
646 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
648 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
649 and Paul Eggert <eggert@twinsun.com>
651 * data/bison.simple (yyparse): Correct error handling to conform to
652 POSIX and yacc. Specifically, after syntax error is discovered,
653 do not reduce further before shifting the error token.
654 Clean up the code a bit by removing the labels yyerrdefault,
655 yyerrhandle, yyerrpop.
656 * NEWS: Document the above.
658 2002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
660 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
661 type; it isn't always big enough, since it doesn't necessarily
662 include non-terminals.
663 (yytranslate): Expand definition of yy_token_number_type, so that
664 the latter can be removed.
665 (yy_token_number_type): Remove, only one use.
666 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
667 don't use TokenNumberType as element type.
669 * tests/regression.at: Modify expected output to agree with change
670 to yyr1 and yytranslate.
672 2002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
674 * src/reader.c (parse_action): Use copy_character instead of
677 2002-05-13 Akim Demaille <akim@epita.fr>
679 * tests/regression.at (Token definitions): Prototype yylex and
682 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
684 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
685 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
687 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
689 2002-05-07 Akim Demaille <akim@epita.fr>
691 * tests/synclines.at: Be sure to prototype yylex and yyerror to
694 2002-05-07 Akim Demaille <akim@epita.fr>
698 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
699 over the RHS of each rule.
700 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
701 * src/state.h (state_t): Member `nitems' is unsigned short.
702 * src/LR0.c (get_state): Adjust.
703 * src/reader.c (packgram): Likewise.
704 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
706 (muscle_insert_int_table): Remove, unused.
707 (prepare_rules): Remove `max'.
709 2002-05-06 Akim Demaille <akim@epita.fr>
711 * src/closure.c (print_firsts): Display of the symbol tags.
712 (bitmatrix_print): Move to...
713 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
715 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
717 2002-05-06 Akim Demaille <akim@epita.fr>
719 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
722 2002-05-06 Akim Demaille <akim@epita.fr>
724 * src/LR0.c (new_state, get_state): Instead of using the global
725 `kernel_size' and `kernel_base', have two new arguments:
726 `core_size' and `core'.
729 2002-05-06 Akim Demaille <akim@epita.fr>
731 * src/reader.c (packgram): No longer end `ritem' with a 0
732 sentinel: it is not used.
734 2002-05-05 Akim Demaille <akim@epita.fr>
736 New experimental feature: display the lookaheads in the report and
739 * src/print (print_core): When --trace-flag, display the rules
741 * src/print_graph.c (print_core): Likewise.
745 2002-05-05 Akim Demaille <akim@epita.fr>
747 * tests/torture.at (Many lookaheads): New test.
749 2002-05-05 Akim Demaille <akim@epita.fr>
751 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
752 (GENERATE_MUSCLE_INSERT_TABLE): this.
753 (output_int_table, output_unsigned_int_table, output_short_table)
754 (output_token_number_table, output_item_number_table): Replace with...
755 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
756 (muscle_insert_short_table, muscle_insert_token_number_table)
757 (muscle_insert_item_number_table): these.
759 (prepare_tokens): Don't free `translations', since...
760 * src/reader.h, src/reader.c (grammar_free): do it.
762 * src/gram.h, src/gram.c (grammar_free): here.
763 * data/bison.simple, data/bison.c++: b4_token_number_max is now
766 2002-05-05 Akim Demaille <akim@epita.fr>
768 * src/output.c (output_unsigned_int_table): New.
769 (prepare_rules): `i' is unsigned.
770 `prhs', `rline', `r2' are unsigned int.
771 Rename muscle `rhs_number_max' as `rhs_max'.
772 Output muscles `prhs_max', `rline_max', and `r2_max'.
774 * data/bison.simple, data/bison.c++: Adjust to use these muscles
775 to compute types instead of constant types.
776 * tests/regression.at (Web2c Actions): Adjust.
778 2002-05-04 Akim Demaille <akim@epita.fr>
780 * src/symtab.h (SALIAS, SUNDEF): Rename as...
781 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
783 * src/output.c (token_definitions_output): Be sure not to output a
784 `#define 'a'' when fed with `%token 'a' "a"'.
785 * tests/regression.at (Token definitions): New.
787 2002-05-03 Paul Eggert <eggert@twinsun.com>
789 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
792 2002-05-03 gettextize <bug-gnu-gettext@gnu.org>
794 * Makefile.am (SUBDIRS): Remove intl.
795 (EXTRA_DIST): Add config/config.rpath.
797 2002-05-03 Akim Demaille <akim@epita.fr>
799 * data/bison.simple (m4_if): Don't output empty enums.
800 And actually, output valid enum definitions :(.
802 2002-05-03 Akim Demaille <akim@epita.fr>
804 * configure.bat: Remove, completely obsolete.
805 * Makefile.am (EXTRA_DIST): Adjust.
806 Don't distribute config.rpath...
807 * config/Makefile.am (EXTRA_DIST): Do it.
809 2002-05-03 Akim Demaille <akim@epita.fr>
811 * configure.in (GETTEXT_VERSION): New.
812 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
814 2002-05-03 Akim Demaille <akim@epita.fr>
816 * data/bison.simple (b4_token_enum): New.
817 (b4_token_defines): Use it to output tokens both as #define and
819 Suggested by Paul Eggert.
820 * src/output.c (token_definitions_output): Don't output spurious
823 2002-05-03 Akim Demaille <akim@epita.fr>
825 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
827 2002-05-02 Robert Anisko <robert@lrde.epita.fr>
829 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
830 Update the stack class, give a try to deque as the default container.
832 2002-05-02 Akim Demaille <akim@epita.fr>
834 * data/bison.simple (yyparse): Do not implement @$ = @1.
835 (YYLLOC_DEFAULT): Adjust to do it.
836 * doc/bison.texinfo (Location Default Action): Fix.
838 2002-05-02 Akim Demaille <akim@epita.fr>
840 * src/reader.c (parse_braces): Merge into...
841 (parse_action): this.
843 2002-05-02 Akim Demaille <akim@epita.fr>
845 * configure.in (ALL_LINGUAS): Remove.
846 * po/LINGUAS, hr.po: New.
848 2002-05-02 Akim Demaille <akim@epita.fr>
850 Remove the so called hairy (semantic) parsers.
852 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
853 * src/gram.h, src/gram.c (semantic_parser): Remove.
854 (rule_t): Remove the guard and guard_line members.
855 * src/lex.h (token_t): remove tok_guard.
856 * src/options.c (option_table): Remove %guard and %semantic_parser
858 * src/output.c, src/output.h (guards_output): Remove.
860 (token_definitions_output): Don't output the `T'
862 (output_skeleton): Don't output the guards.
863 * src/files.c, src/files.c (attrsfile): Remove.
864 * src/reader.c (symbol_list): Remove the guard and guard_line
867 (parse_guard): Remove.
868 * data/bison.hairy: Remove.
869 * doc/bison.texinfo (Environment Variables): Remove occurrences of
872 2002-05-02 Akim Demaille <akim@epita.fr>
874 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
875 (parse_guard): Rename the formal argument `stack_offset' as
876 `rule_length', which is more readable.
878 (copy_at, copy_dollar): Instead of outputting the hard coded
879 values of $$, $n and so forth, output invocation to b4_lhs_value,
880 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
881 Note: this patch partially drops `semantic-parser' support: it
882 always does `rule_length - n', where semantic parsers ought to
884 * data/bison.simple, data/bison.c++ (b4_lhs_value)
885 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
887 2002-05-02 Akim Demaille <akim@epita.fr>
889 * configure.in (AC_INIT): Bump to 1.49b.
890 (AM_INIT_AUTOMAKE): Short invocation.
892 2002-05-02 Akim Demaille <akim@epita.fr>
896 2002-05-01 Akim Demaille <akim@epita.fr>
898 * src/skeleton.h: Remove.
900 2002-05-01 Akim Demaille <akim@epita.fr>
902 * src/skeleton.h: Fix the #endif.
903 Reported by Magnus Fromreide.
905 2002-04-26 Paul Eggert <eggert@twinsun.com>
907 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
908 Define if we define YYSTYPE and YYLTYPE, respectively.
909 (YYCOPY): Fix [] quoting problem in the non-GCC case.
911 2002-04-25 Robert Anisko <robert@lrde.epita.fr>
913 * src/scan-skel.l: Postprocess quadrigraphs.
915 * src/reader.c (copy_character): New function, used to output
916 single characters while replacing `[' and `]' with quadrigraphs, to
917 avoid troubles with M4 quotes.
918 (copy_comment): Output characters with copy_character.
919 (read_additionnal_code): Likewise.
920 (copy_string2): Likewise.
921 (copy_definition): Likewise.
923 * tests/calc.at: Exercise M4 quoting.
925 2002-04-25 Akim Demaille <akim@epita.fr>
927 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
928 between `!' and the command.
929 Reported by Paul Eggert.
931 2002-04-24 Robert Anisko <robert@lrde.epita.fr>
933 * tests/calc.at: Exercise prologue splitting.
935 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
936 `b4_post_prologue' instead of `b4_prologue'.
938 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
940 (output): Free pre_prologue_obstack and post_prologue_obstack.
941 * src/files.h, src/files.c (attrs_obstack): Remove.
942 (pre_prologue_obstack, post_prologue_obstack): New.
943 * src/reader.c (copy_definition): Add a parameter to specify the
944 obstack to fill, instead of using attrs_obstack unconditionally.
945 (read_declarations): Pass pre_prologue_obstack to copy_definition if
946 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
948 2002-04-23 Paul Eggert <eggert@twinsun.com>
950 * data/bison.simple: Remove unnecessary commentary and white
951 space differences from 1_29-branch.
952 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
954 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
955 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
956 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
957 constructors or destructors.
959 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
961 2002-04-23 Akim Demaille <akim@epita.fr>
963 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
964 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
965 location with columns.
966 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
967 All reported by Paul Eggert.
969 2002-04-22 Akim Demaille <akim@epita.fr>
971 * src/reduce.c (dump_grammar): Move to...
972 * src/gram.h, src/gram.c (grammar_dump): here.
973 Be sure to separate long item numbers.
974 Don't read the members of a rule's prec if its nil.
976 2002-04-22 Akim Demaille <akim@epita.fr>
978 * src/output.c (table_size, table_grow): New.
979 (MAXTABLE): Remove, replace uses with table_size.
980 (pack_vector): Instead of dying when the table is too big, grow it.
982 2002-04-22 Akim Demaille <akim@epita.fr>
984 * data/bison.simple (yyr1): Its type is that of a token number.
985 * data/bison.c++ (r1_): Likewise.
986 * tests/regression.at (Web2c Actions): Adjust.
988 2002-04-22 Akim Demaille <akim@epita.fr>
990 * src/reader.c (token_translations_init): 256 is now the default
991 value for the error token, i.e., it will be assigned another
992 number if the user assigned 256 to one of her tokens.
993 (reader): Don't force 256 to error.
994 * doc/bison.texinfo (Symbols): Adjust.
995 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
996 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
997 etc. instead of 10, 20, 30 (which was used to `jump' over error
998 (256) and undefined (2)).
1000 2002-04-22 Akim Demaille <akim@epita.fr>
1002 Propagate more token_number_t.
1004 * src/gram.h (token_number_as_item_number)
1005 (item_number_as_token_number): New.
1006 * src/output.c (GENERATE_OUTPUT_TABLE): New.
1007 Use it to create output_item_number_table and
1008 output_token_number_table.
1009 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
1010 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
1011 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
1012 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
1014 2002-04-22 Akim Demaille <akim@epita.fr>
1016 * src/output.h, src/output.c (get_lines_number): Remove.
1018 2002-04-19 Akim Demaille <akim@epita.fr>
1020 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
1022 (Debugging): More details about enabling the debugging features.
1023 (Table of Symbols): Describe $$, $n, @$, and @n.
1024 Suggested by Tim Josling.
1026 2002-04-19 Akim Demaille <akim@epita.fr>
1028 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
1030 2002-04-10 Akim Demaille <akim@epita.fr>
1032 * src/system.h: Rely on HAVE_LIMITS_H.
1033 Suggested by Paul Eggert.
1035 2002-04-09 Akim Demaille <akim@epita.fr>
1037 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
1038 full stderr, and strip it according to the bison options, instead
1039 of composing the error message from different bits.
1040 This makes it easier to check for several error messages.
1041 Adjust all the invocations.
1042 Add an invocation exercising the error token.
1043 Add an invocation demonstrating a stupid error message.
1044 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
1046 Error message are for stderr, not stdout.
1048 2002-04-09 Akim Demaille <akim@epita.fr>
1050 * src/gram.h, src/gram.c (error_token_number): Remove, use
1052 * src/reader.c (reader): Don't specify the user token number (2)
1053 for $undefined, as it uselessly prevents using it.
1054 * src/gram.h (token_number_t): Move to...
1055 * src/symtab.h: here.
1056 (state_t.number): Is a token_number_t.
1057 * src/print.c, src/reader.c: Use undeftoken->number instead of
1059 (Even though this 2 is not the same as above: the number of the
1060 undeftoken remains being 2, it is its user token number which
1062 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
1063 `user_token_number_max'.
1064 Output `undef_token_number'.
1065 * data/bison.simple, data/bison.c++: Use them.
1066 Be sure to map invalid yylex return values to
1067 `undef_token_number'. This saves us from gratuitous SEGV.
1069 * tests/conflicts.at (Solved SR Conflicts)
1070 (Unresolved SR Conflicts): Adjust.
1071 * tests/regression.at (Web2c Actions): Adjust.
1073 2002-04-08 Akim Demaille <akim@epita.fr>
1075 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
1077 Remove the duplicate `typedefs'.
1078 (RhsNumberType): Fix the declaration and various other typos.
1080 * data/bison.simple: Use __ofile__.
1081 * src/scan-skel.l: Handle __ofile__.
1083 2002-04-08 Akim Demaille <akim@epita.fr>
1085 * src/gram.h (item_number_t): New, the type of item numbers in
1086 RITEM. Note that it must be able to code symbol numbers as
1087 positive number, and the negation of rule numbers as negative
1089 Adjust all dependencies (pretty many).
1090 * src/reduce.c (rule): Remove this `short *' pointer: use
1092 * src/system.h (MINSHORT, MAXSHORT): Remove.
1094 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
1096 (MAXTABLE): Move to...
1097 * src/output.c (MAXTABLE): here.
1098 (prepare_rules): Use output_int_table to output rhs.
1099 * data/bison.simple, data/bison.c++: Adjust.
1100 * tests/torture.at (Big triangle): Move the limit from 254 to
1102 * tests/regression.at (Web2c Actions): Ajust.
1104 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
1105 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
1106 passes, but produces negative #line number, once fixed, GCC is
1107 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
1109 * src/state.h (state_h): Code input lines on ints, not shorts.
1111 2002-04-08 Akim Demaille <akim@epita.fr>
1113 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
1114 and then the grammar.
1116 2002-04-08 Akim Demaille <akim@epita.fr>
1118 * src/system.h: No longer using strndup.
1120 2002-04-07 Akim Demaille <akim@epita.fr>
1122 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
1123 * src/output.c (output_table_data): Return the longest number.
1124 (prepare_tokens): Output `token_number_max').
1125 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
1127 Use them to define yy_token_number_type/TokenNumberType.
1128 Use this type for yytranslate.
1129 * tests/torture.at (Big triangle): Push the limit from 124 to
1131 * tests/regression.at (Web2c Actions): Adjust.
1133 2002-04-07 Akim Demaille <akim@epita.fr>
1135 * tests/torture.at (Big triangle): New.
1136 (GNU AWK Grammar, GNU Cim Grammar): Move to...
1137 * tests/existing.at: here.
1139 2002-04-07 Akim Demaille <akim@epita.fr>
1141 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
1143 Adjust dependencies.
1145 2002-04-07 Akim Demaille <akim@epita.fr>
1147 * src/reader.c: Normalize increments to prefix form.
1149 2002-04-07 Akim Demaille <akim@epita.fr>
1151 * src/reader.c, symtab.c: Remove debugging code.
1153 2002-04-07 Akim Demaille <akim@epita.fr>
1155 Rename all the `bucket's as `symbol_t'.
1157 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
1158 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
1159 * src/symtab.c, src/symtab.h (bucket): Rename as...
1161 (symbol_list_new, bucket_check_defined, bucket_make_alias)
1162 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
1163 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1164 (buckets_new, buckets_free, buckets_do): Rename as...
1165 (symbol_list_new, symbol_check_defined, symbol_make_alias)
1166 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
1167 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
1168 (symbols_new, symbols_free, symbols_do): these.
1170 2002-04-07 Akim Demaille <akim@epita.fr>
1172 Use lib/hash for the symbol table.
1174 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
1176 * src/lex.c (lex): Set the `number' member of new terminals.
1177 * src/reader.c (bucket_check_defined, bucket_make_alias)
1178 (bucket_check_alias_consistence, bucket_translation): New.
1179 (reader, grammar_free, readgram, token_translations_init)
1180 (packsymbols): Adjust.
1181 (reader): Number the predefined tokens.
1182 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
1183 for predefined tokens.
1184 * src/symtab.h (bucket): Remove all the hash table related
1186 * src/symtab.c (symtab): Replace by...
1187 (bucket_table): this.
1188 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1189 (buckets_new, buckets_do): New.
1191 2002-04-07 Akim Demaille <akim@epita.fr>
1193 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
1194 (start_symbol, max_user_token_number, semantic_parser)
1195 (error_token_number): Initialize.
1196 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
1199 (errtoken, eoftoken, undeftoken, axiom): Extern.
1201 2002-04-07 Akim Demaille <akim@epita.fr>
1203 * src/gram.h (rule_s): prec and precsym are now pointers
1204 to the bucket giving the priority/associativity.
1205 Member `associativity' removed: useless.
1206 * src/reduce.c, src/conflicts.c: Adjust.
1208 2002-04-07 Akim Demaille <akim@epita.fr>
1210 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
1211 Properly escape the symbols' TAG when outputting them.
1213 2002-04-07 Akim Demaille <akim@epita.fr>
1215 * src/lalr.h (LA): Is a bitsetv, not bitset*.
1217 2002-04-07 Akim Demaille <akim@epita.fr>
1219 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
1220 (LArule): this, which is an array to rule_t*.
1221 * src/print.c, src/conflicts.c: Adjust.
1223 2002-04-07 Akim Demaille <akim@epita.fr>
1225 * src/gram.h (rule_t): Rename `number' as `user_number'.
1226 `number' is a new member.
1227 Adjust dependencies.
1228 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
1230 2002-04-07 Akim Demaille <akim@epita.fr>
1232 As a result of the previous patch, it is no longer needed
1233 to reorder ritem itself.
1235 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
1237 2002-04-07 Akim Demaille <akim@epita.fr>
1239 Be sure never to walk through RITEMS, but use only data related to
1240 the rules themselves. RITEMS should be banished.
1242 * src/output.c (output_token_translations): Rename as...
1243 (prepare_tokens): this.
1244 In addition to `translate', prepare the muscles `tname' and
1245 `toknum', which were handled by...
1246 (output_rule_data): this.
1247 Remove, and move the remainder of its outputs into...
1248 (prepare_rules): this new routines, which also merges content from
1249 (output_gram): this.
1250 (prepare_rules): Be sure never to walk through RITEMS.
1251 (output_stos): Rename as...
1252 (prepare_stos): this.
1253 (output): Always invoke prepare_states, after all, just don't use it
1254 in the output if you don't need it.
1256 2002-04-07 Akim Demaille <akim@epita.fr>
1258 * src/LR0.c (new_state): Display `nstates' as the name of the
1259 newly created state.
1260 Adjust to initialize first_state and last_state if needed.
1261 Be sure to distinguish the initial from the final state.
1262 (new_states): Create the itemset of the initial state, and use
1264 * src/closure.c (closure): Now that the initial state has its
1265 items properly set, there is no need for a special case when
1268 As a result, now the rule 0, reducing to $axiom, is visible in the
1269 outputs. Adjust the test suite.
1271 * tests/conflicts.at (Solved SR Conflicts)
1272 (Unresolved SR Conflicts): Adjust.
1273 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
1274 * tests/conflicts.at (S/R in initial): New.
1276 2002-04-07 Akim Demaille <akim@epita.fr>
1278 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
1279 the RHS of the rules.
1280 * src/output.c (output_gram): Likewise.
1282 2002-04-07 Akim Demaille <akim@epita.fr>
1284 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
1286 Adjust all dependencies.
1287 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
1288 `number' of the buckets too.
1289 * src/gram.h: Include `symtab.h'.
1290 (associativity): Move to...
1291 * src/symtab.h: here.
1292 No longer include `gram.h'.
1294 2002-04-07 Akim Demaille <akim@epita.fr>
1296 * src/gram.h, src/gram.c (rules_rhs_length): New.
1297 (ritem_longest_rhs): Use it.
1298 * src/gram.h (rule_t): `number' is a new member.
1299 * src/reader.c (packgram): Set it.
1300 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
1301 the end of `rules', and count them out of `nrules'.
1302 (reduce_output, dump_grammar): Adjust.
1303 * src/print.c (print_grammar): It is no longer needed to check for
1304 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
1305 * tests/reduce.at (Reduced Automaton): New test.
1307 2002-04-07 Akim Demaille <akim@epita.fr>
1309 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
1310 lacking `+ 1' to nrules, Bison reported as useless a token if it
1311 was used solely to set the precedence of the last rule...
1313 2002-04-07 Akim Demaille <akim@epita.fr>
1315 * data/bison.c++, data/bison.simple: Don't output the current file
1316 name in #line, to avoid useless diffs between two identical
1317 outputs under different names.
1319 2002-04-07 Akim Demaille <akim@epita.fr>
1321 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
1322 Normalize loops to using `< nrules + 1', not `<= nrules'.
1324 2002-04-07 Akim Demaille <akim@epita.fr>
1328 2002-04-07 Akim Demaille <akim@epita.fr>
1330 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
1331 bucket.value as bucket.number.
1333 2002-04-07 Akim Demaille <akim@epita.fr>
1335 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
1336 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1337 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
1338 RHS, instead of being an index in RITEMS.
1340 2002-04-04 Paul Eggert <eggert@twinsun.com>
1342 * doc/bison.texinfo: Update copyright date.
1343 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
1344 (Symbols): Warn about running Bison in one character set,
1345 but compiling and/or running in an incompatible one.
1346 Warn about character code 256, too.
1348 2002-04-03 Paul Eggert <eggert@twinsun.com>
1350 * src/bison.data (YYSTACK_ALLOC): Depend on whether
1351 YYERROR_VERBOSE is nonzero, not whether it is defined.
1353 Merge changes from bison-1_29-branch.
1355 2002-03-20 Paul Eggert <eggert@twinsun.com>
1357 Merge fixes from Debian bison_1.34-1.diff.
1359 * configure.in (AC_PREREQ): 2.53.
1361 2002-03-20 Akim Demaille <akim@epita.fr>
1363 * src/conflicts.c (log_resolution): Argument `resolution' is const.
1365 2002-03-19 Paul Eggert <eggert@twinsun.com>
1367 * src/bison.simple (YYCOPY): New macro.
1368 (YYSTACK_RELOCATE): Use it.
1369 Remove Type arg; no longer needed. All callers changed.
1370 (yymemcpy): Remove; no longer needed.
1372 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
1373 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1375 2002-03-19 Akim Demaille <akim@epita.fr>
1377 Test and fix the #line outputs.
1379 * tests/atlocal.at (GCC): New.
1380 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
1381 (Prologue synch line, ,%union synch line, Postprologue synch line)
1382 (Action synch line, Epilogue synch line): New tests.
1383 * src/reader.c (parse_union_decl): Define the muscle stype_line.
1384 * data/bison.simple, data/bison.c++: Use it.
1386 2002-03-19 Akim Demaille <akim@epita.fr>
1388 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
1389 (Solved SR Conflicts, %expect not enough, %expect right)
1390 (%expect too much): Move to...
1391 * tests/conflicts.at: this new file.
1393 2002-03-19 Akim Demaille <akim@epita.fr>
1395 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1396 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
1397 that we can move to enums for instance.
1398 * src/output.c (token_definitions_output): Output a list of
1399 `token-name, token-number' instead of the #define.
1400 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
1402 2002-03-14 Akim Demaille <akim@epita.fr>
1406 2002-03-09 Robert Anisko <robert@lrde.epita.fr>
1408 * data/bison.c++: Make the user able to add members to the generated
1409 parser by subclassing.
1411 2002-03-05 Robert Anisko <robert@lrde.epita.fr>
1413 * src/reader.c (read_additionnal_code): `c' should be an integer, not
1415 Reported by Nicolas Tisserand and Nicolas Burrus.
1417 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1419 * src/reader.c: Warn about lacking semi-colons, do not complain.
1421 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1423 * data/bison.c++: Remove a debug line.
1425 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1427 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
1428 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
1429 provide a default implementation.
1431 2002-03-04 Akim Demaille <akim@epita.fr>
1433 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
1434 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
1435 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
1436 * tests/semantic.at (Parsing Guards): Similarly.
1437 * src/reader.at (readgram): Complain if the last rule is not ended
1440 2002-03-04 Akim Demaille <akim@epita.fr>
1442 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
1443 * src/closure.c: here.
1444 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
1446 * src/warshall.h, src/warshall.c: Remove.
1447 * tests/sets.at (Broken Closure): Adjust.
1449 2002-03-04 Akim Demaille <akim@epita.fr>
1451 * src/output.c (output_skeleton): tempdir is const.
1452 bytes_read is unused.
1454 2002-03-04 Akim Demaille <akim@epita.fr>
1456 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1457 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
1461 2002-03-04 Akim Demaille <akim@epita.fr>
1463 * src/closure.c (closure): `r' is unused.
1465 2002-03-04 Akim Demaille <akim@epita.fr>
1467 * tests/sets.at (Broken Closure): Add the ending `;'.
1468 * src/reader.at (readgram): Complain if a rule is not ended with a
1471 2002-03-04 Akim Demaille <akim@epita.fr>
1473 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
1474 (count_sr_conflicts): Use bitset_count.
1475 * src/reduce.c (inaccessable_symbols): Ditto.
1476 (bits_size): Remove.
1477 * src/warshall.h, src/warshall.c: Convert to bitsetv.
1479 2002-03-04 Akim Demaille <akim@epita.fr>
1481 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
1482 * src/reduce.c: Remove the `bitset_zero's following the
1483 `bitset_create's, as now it is performed by the latter.
1485 2002-03-04 Akim Demaille <akim@epita.fr>
1487 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
1488 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
1489 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
1490 latest sources from Michael.
1492 2002-03-04 Akim Demaille <akim@epita.fr>
1494 * src/output.c (output): Don't free the grammar.
1495 * src/reader.c (grammar_free): New.
1496 * src/main.c (main): Call it and don't free symtab here.
1498 2002-03-04 Akim Demaille <akim@epita.fr>
1500 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
1502 Reported by Benoit Perrot.
1504 2002-03-04 Akim Demaille <akim@epita.fr>
1506 Use bitset operations when possible, not loops over bits.
1508 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
1510 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
1511 * src/reduce.c (useless_nonterminals): Formatting changes.
1512 * src/warshall.c (TC): Use bitset_or.
1514 2002-03-04 Akim Demaille <akim@epita.fr>
1516 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
1517 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
1520 2002-03-04 Akim Demaille <akim@epita.fr>
1522 * src/lalr.c (F): Now a bitset*.
1523 Adjust all dependencies.
1525 2002-03-04 Akim Demaille <akim@epita.fr>
1527 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
1528 Adjust all dependencies.
1530 2002-03-04 Akim Demaille <akim@epita.fr>
1532 * src/L0.c, src/LR0.h (nstates): Be size_t.
1533 Adjust comparisons (signed vs unsigned).
1534 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
1536 Adjust all dependencies.
1538 2002-03-04 Akim Demaille <akim@epita.fr>
1540 * src/closure.c (firsts): Now, also a bitset.
1541 Adjust all dependencies.
1542 (varsetsize): Remove, now unused.
1543 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
1545 2002-03-04 Akim Demaille <akim@epita.fr>
1547 * src/print.c: Convert to use bitset.h, not hand coded iterations
1550 2002-03-04 Akim Demaille <akim@epita.fr>
1552 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
1554 2002-03-04 Akim Demaille <akim@epita.fr>
1556 * src/closure.c (ruleset): Be a bitset.
1557 (rulesetsize): Remove.
1559 2002-03-04 Akim Demaille <akim@epita.fr>
1561 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1562 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
1563 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
1564 * src/closure.c (fderives): Be an array of bitsets.
1566 2002-02-28 Robert Anisko <robert@lrde.epita.fr>
1568 * data/bison.c++: Merge the two generated headers. Insert a copyright
1569 notice in each output file.
1571 2002-02-28 Akim Demaille <akim@epita.fr>
1573 * data/bison.c++: Copy the prologue of bison.simple to fetch
1574 useful M4 definitions, such as b4_header_guard.
1576 2002-02-25 Akim Demaille <akim@epita.fr>
1578 * src/getargs.c (version): Give the name of the authors, and use a
1579 translator friendly scheme for the bgr
1582 2002-02-25 Akim Demaille <akim@epita.fr>
1584 * src/output.c (header_output): Remove, now handled completely via
1587 2002-02-25 Akim Demaille <akim@epita.fr>
1589 * m4/m4.m4: New, from CVS Autoconf.
1590 * configure.in: Invoke it.
1591 * src/output.c (output_skeleton): Use its result instead of the
1594 2002-02-25 Akim Demaille <akim@epita.fr>
1596 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
1598 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
1599 * src/output.c (output_skeleton): Use mkstemp to create a real
1601 Move the filling of `skeleton' and its muscle to...
1603 (output): Move the definition of the prologue muscle to...
1605 * src/system.h (DEFAULT_TMPDIR): New.
1607 2002-02-14 Paul Eggert <eggert@twinsun.com>
1609 Remove the support for C++ namespace cleanliness; it was
1610 causing more problems than it was curing, since it didn't work
1611 properly on some nonstandard C++ compilers. This can wait
1612 for a proper C++ parser.
1614 * NEWS: Document this.
1615 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
1616 of C++, as it's treated like C now.
1617 * src/bison.simple (YYSTD): Remove.
1618 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
1619 Treat C++ just like Standard C instead of trying to support
1620 namespace cleanliness.
1622 2002-02-14 Akim Demaille <akim@epita.fr>
1624 * tests/regression.at (else): Adjust to Andreas' change.
1626 2002-02-14 Akim Demaille <akim@epita.fr>
1628 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
1630 2002-02-13 Andreas Schwab <schwab@suse.de>
1632 * src/output.c (output_rule_data): Don't output NULL, it might
1635 2002-02-11 Robert Anisko <robert@lrde.epita.fr>
1637 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
1638 (Copyright notice): Update.
1640 2002-02-11 Akim Demaille <akim@epita.fr>
1642 * tests/regression.at (%nonassoc and eof): Don't include
1643 nonportable headers.
1645 2002-02-08 Robert Anisko <robert@lrde.epita.fr>
1647 * data/bison.c++: Correct error recovery. Make the user able to
1648 initialize the starting location.
1650 2002-02-07 Akim Demaille <akim@epita.fr>
1652 * tests/input.at: New.
1654 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1656 * data/bison.c++: Replace some direct m4 expansions by constants. Be
1657 more consistent when naming methods and variables. Put preprocessor
1658 directives around tables only needed for debugging.
1660 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1662 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
1664 (yy::b4_name::parse): Use print_.
1666 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1668 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
1670 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1672 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
1674 (yy::b4_name::parse): Build verbose error messages, and use error_.
1676 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1678 * data/bison.c++: Fix m4 quoting in comments.
1680 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1682 * data/bison.c++: Adjust the parser code. Fix some muscles that were
1685 2002-02-05 Akim Demaille <akim@epita.fr>
1687 * data/bison.c++: Adjust to the M4 back end.
1688 More is certainly needed.
1690 2002-02-05 Akim Demaille <akim@epita.fr>
1692 Give a try to M4 as a back end.
1694 * lib/readpipe.c: New, from wdiff.
1695 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
1697 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
1698 specific values. Now it is m4 that performs the lookup.
1699 * src/parse-skel.y: Remove.
1700 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
1701 * src/output.c (actions_output, guards_output)
1702 (token_definitions_output): No longer keeps track of the output
1703 line number, hence remove the second argument.
1704 (guards_output): Check against the guard member of a rule, not the
1707 (output_skeleton): Don't look for the skeleton location, let m4 do
1709 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
1711 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
1712 (prepare): Given that for the time being changesyntax is not
1713 usable in M4, rename the muscles using `-' to `_'.
1714 Define `defines_flag', `output_parser_name' and `output_header_name'.
1715 * src/output.h (actions_output, guards_output)
1716 (token_definitions_output): Adjust prototypes.
1717 * src/scan-skel.l: Instead of scanning the skeletons, it now
1718 processes the output of m4: `__oline__' and `#output'.
1719 * data/bison.simple: Adjust to be used by M4(sugar).
1720 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
1722 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
1723 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
1724 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
1725 shamelessly stolen from CVS Autoconf.
1727 2002-02-05 Akim Demaille <akim@epita.fr>
1729 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
1730 * configure.in: Check for the declarations of free and malloc.
1731 * src/muscle_tab.c: Adjust.
1733 2002-02-05 Akim Demaille <akim@epita.fr>
1735 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
1736 which have no values.
1738 2002-02-05 Akim Demaille <akim@epita.fr>
1740 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
1743 2002-01-29 Paul Eggert <eggert@twinsun.com>
1745 * src/bison.simple (YYSIZE_T): Do not define merely because
1746 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
1747 On some platforms, <alloca.h> does not declare YYSTD (size_t).
1749 2002-01-27 Akim Demaille <akim@epita.fr>
1751 Fix `%nonassoc and eof'.
1753 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
1754 which were not properly copied! Replace
1755 memcpy (res->errs, src->errs, src->nerrs);
1757 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
1759 * tests/regression.at (%nonassoc and eof): Adjust to newest
1760 Autotest: `.' is not in the PATH.
1762 2002-01-27 Akim Demaille <akim@epita.fr>
1764 * tests/sets.at (AT_EXTRACT_SETS): New.
1768 2002-01-26 Akim Demaille <akim@epita.fr>
1770 * tests/actions.at, tests/calc.at, tests/headers.at,
1771 * tests/torture.at: Adjust to the newest Autotest which no longer
1772 forces `.' in the PATH.
1774 2002-01-25 Akim Demaille <akim@epita.fr>
1776 * tests/regression.at (%nonassoc and eof): New.
1777 Suggested by Robert Anisko.
1779 2002-01-24 Akim Demaille <akim@epita.fr>
1781 Bison dumps core when trying to complain about broken input files.
1782 Reported by Cris van Pelt.
1784 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
1785 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
1787 (Invalid inputs): Strengthen: exercise parse_percent_token.
1789 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
1791 * src/Makefile.am: Add bison.c++.
1792 * src/bison.c++: New skeleton.
1794 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
1798 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
1800 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
1802 2002-01-20 Marc Autret <marc@gnu.org>
1804 * src/files.c (compute_output_file_names): Fix
1806 2002-01-20 Marc Autret <marc@gnu.org>
1808 * tests/output.at: New test.
1809 * src/files.c (compute_base_names): Don't map extensions when
1810 the YACC flag is set, use defaults.
1811 Reported by Evgeny Stambulchik.
1813 2002-01-20 Marc Autret <marc@gnu.org>
1815 * src/system.h: Need to define __attribute__ away for non-GCC
1816 compilers as well (i.e. the vendor C compiler).
1817 Suggested by Albert Chin-A-Young.
1819 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
1821 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
1822 canonical definition.
1823 * src/system.h: Use the canonical definition for PARAMS (avoids
1824 a conflict with the macro from lib/hash.h).
1826 2002-01-11 Akim Demaille <akim@epita.fr>
1828 * configure.in: Use AC_FUNC_STRNLEN.
1829 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
1831 2002-01-09 Akim Demaille <akim@epita.fr>
1833 * src/files.c, src/files.h (output_infix): New.
1834 (tab_extension): Remove.
1835 (compute_base_names): Compute the former, drop the latter.
1836 * src/output.c (prepare): Insert the muscles `output-infix', and
1838 * src/parse-skel.y (string, string.1): New.
1839 (section.header): Use it.
1840 (section.yacc): Remove.
1841 (prefix): Remove too.
1842 * src/scan-skel.l: Adjust.
1843 * src/bison.simple, src/bison.hairy: Adjust.
1845 2002-01-09 Akim Demaille <akim@epita.fr>
1847 * configure.in (WERROR_CFLAGS): Compute it.
1848 * src/Makefile.am (CFLAGS): Pass it.
1849 * tests/atlocal.in (CFLAGS): Idem.
1850 * src/files.c: Fix a few warnings.
1851 (get_extension_index): Remove, unused.
1853 2002-01-08 Akim Demaille <akim@epita.fr>
1855 * src/getargs.c (AS_FILE_NAME): New.
1856 (getargs): Use it to convert DOSish file names.
1857 * src/files.c (base_name): Rename as full_base_name to avoid
1858 clashes with `base_name ()'.
1859 (filename_split): New.
1860 (compute_base_names): N-th rewrite, using filename_split.
1862 2002-01-08 Akim Demaille <akim@epita.fr>
1864 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
1865 New, stolen from the Fileutils 4.1.
1866 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1867 * configure.in: Check for the presence of memrchr, and of its
1870 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
1872 * lib/hash.h (__P): Added definition for this macro.
1873 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
1874 BUILT_SOURCES, to ensure they are generated first.
1875 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
1876 %error-verbose to allow bootstrapping with bison 1.30x.
1878 2002-01-06 Akim Demaille <akim@epita.fr>
1880 * src/reader.c (parse_braces): Don't fetch the next char, the
1881 convention is to fetch on entry.
1882 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
1883 'switch' without a following semicolon.
1884 * tests/regression.at (braces parsing): New.
1886 2002-01-06 Akim Demaille <akim@epita.fr>
1888 Bison is dead wrong in its RR conflict reports.
1890 * tests/torture.at (GNU Cim Grammar): New.
1891 * src/conflicts.c (count_rr_conflicts): Fix.
1893 2002-01-06 Akim Demaille <akim@epita.fr>
1895 Creating package.m4 from configure.ac causes too many problems.
1897 * tests/Makefile.am (package.m4): Create it by hand,
1898 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
1900 2002-01-06 Akim Demaille <akim@epita.fr>
1902 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
1905 2002-01-04 Paul Eggert <eggert@twinsun.com>
1907 * doc/bison.texinfo (Debugging):
1908 Remove YYSTDERR; it's no longer defined or used.
1909 Also, s/cstdio.h/cstdio/.
1911 2002-01-03 Akim Demaille <akim@epita.fr>
1913 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
1915 2002-01-03 Akim Demaille <akim@epita.fr>
1917 * src/parse-skel.y (process_skeleton): Don't bind the parser's
1918 tracing code to --trace, wait for a better --trace option, with
1921 2002-01-03 Akim Demaille <akim@epita.fr>
1923 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
1924 The ISO C++ standard is extremely clear about it: stderr is
1925 considered a macro, not a regular symbol (see table 94 `Header
1926 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
1927 Therefore std:: does not apply to it. It still does with fprintf.
1928 Also, s/cstdio.h/cstdio/.
1930 2002-01-03 Akim Demaille <akim@epita.fr>
1932 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
1933 for non system headers.
1935 2002-01-02 Akim Demaille <akim@epita.fr>
1937 Equip the skeleton chain with location tracking, runtime trace,
1938 pure parser and scanner.
1940 * src/parse-skel.y: Request a pure parser, locations, and prefix
1942 (%union): Having several members with the same type does not help
1943 type mismatches, simplify.
1944 (YYPRINT, yyprint): New.
1945 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
1948 * src/scan-skel.l: Adjust to these changes.
1949 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
1950 (LOCATION_PRINT, skel_control_t): New.
1952 2001-12-30 Akim Demaille <akim@epita.fr>
1954 * src/parse-skel.y: Get rid of the shift/reduce conflict:
1955 replace `gb' with BLANKS.
1956 * src/scan-skel.l: Adjust.
1958 2001-12-30 Akim Demaille <akim@epita.fr>
1960 * src/system.h: We don't need nor want bcopy.
1961 Throw away MS-DOS crap: we don't need getpid.
1962 * configure.in: We don't need strndup. It was even causing
1963 problems: because Flex includes the headers *before* us,
1964 _GNU_SOURCE is not defined by config.h, and therefore strndup was
1966 * lib/xstrndup.c: New.
1967 * src/scan-skel.l: Use it.
1968 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
1969 * src/parse-skel.y: Use %directives instead of #defines.
1971 2001-12-30 Akim Demaille <akim@epita.fr>
1973 * src/skeleton.h: New.
1974 * src/output.c (output_parser, output_master_parser): Remove, dead
1976 * src/output.h (get_lines_number, actions_output, guards_output)
1977 (token_definitions_output): Prototype them.
1978 * src/parse-skel.y: Add the license notice.
1979 Include output.h and skeleton.h.
1980 (process_skeleton): Returns void, and takes a single parameter.
1981 * src/scan-skel.l: Add the license notice.
1983 Don't use %option yylineno: it seems that then Flex imagines
1984 REJECT has been used, and therefore it won't reallocate its
1985 buffers (which makes no other sense to me than a bug). It results
1986 in warnings for `unused: yy_flex_realloc'.
1988 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
1990 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1991 (MUSCLE_INSERT_PREFIX): ...to there.
1992 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1993 (MUSCLE_INSERT_PREFIX): Move from here...
1995 * src/bison.hairy: Add a section directive. Put braces around muscle
1996 names. This parser skeleton is still broken, but Bison should not
1997 choke on a bad muscle 'syntax'.
1998 * src/bison.simple: Add a section directive. Put braces around muscle
2001 * src/files.h (strsuffix, stringappend): Add declarations.
2002 (tab_extension): Add declaration.
2003 (short_base_name): Add declaration.
2005 * src/files.c (strsuffix, stringappend): No longer static. These
2006 functions are used in the skeleton parser.
2007 (tab_extension): New.
2008 (compute_base_names): Use the computations done in this function
2009 to guess if the generated parsers should have '.tab' in their
2011 (short_base_name): No longer static.
2013 * src/output.c (output_skeleton): New.
2014 (output): Disable call to output_master_parser, and give a try to
2015 a new skeleton handling system.
2016 (guards_output, actions_output): No longer static.
2017 (token_definitions_output, get_lines_number): No longer static.
2019 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
2021 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
2024 * src/parse-skel.y: New file.
2025 * src/scan-skel.l: New file.
2027 2001-12-29 Akim Demaille <akim@epita.fr>
2029 %name-prefix is broken.
2031 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
2032 Adjust all dependencies.
2033 * tests/headers.at (export YYLTYPE): Strengthen this test: use
2036 Renaming yylval but not yylloc is not consistent. Now we do.
2038 * src/bison.simple: Prefix yylloc if used.
2039 * doc/bison.texinfo (Decl Summary): Document that.
2041 2001-12-29 Akim Demaille <akim@epita.fr>
2043 * doc/bison.texinfo: Promote `%long-directive' over
2045 Remove all references to fixed-output-files, yacc is enough.
2047 2001-12-29 Akim Demaille <akim@epita.fr>
2049 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
2050 user prologue. These are defaults.
2051 * tests/actions.at (Mid-rule actions): Make sure the user can
2052 define YYDEBUG and YYERROR_VERBOSE.
2054 2001-12-29 Akim Demaille <akim@epita.fr>
2056 * src/output.c (header_output): Don't forget to export YYLTYPE and
2058 * tests/headers.at (export YYLTYPE): New, make sure it does.
2059 * tests/regression.at (%union and --defines, Invalid CPP headers):
2061 * tests/headers.at: here.
2063 2001-12-29 Akim Demaille <akim@epita.fr>
2065 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
2067 2001-12-29 Akim Demaille <akim@epita.fr>
2069 * tests/actions.at (Mid-rule actions): Output on a single line
2072 2001-12-29 Akim Demaille <akim@epita.fr>
2074 * doc/bison.texinfo: Formatting changes.
2076 2001-12-29 Akim Demaille <akim@epita.fr>
2078 Don't store the token defs in a muscle, just be ready to output it
2079 on command. Now possible via `symbols'. Fixes a memory leak.
2081 * src/output.c (token_definitions_output): New.
2082 (output_parser, header_output): Use it.
2083 * src/reader.c (symbols_save): Remove.
2085 2001-12-29 Akim Demaille <akim@epita.fr>
2087 * src/bison.simple: Do not provide a default for YYSTYPE and
2088 YYLTYPE before the user's prologue. Otherwise it's hardly... a
2091 2001-12-29 Akim Demaille <akim@epita.fr>
2093 Mid-rule actions are simply... ignored!
2095 * src/reader.c (readgram): Be sure to attach mid-rule actions to
2096 the empty-rule associated to the dummy symbol, not to the host
2098 * tests/actions.at (Mid-rule actions): New.
2100 2001-12-29 Akim Demaille <akim@epita.fr>
2104 * src/reader.c (reader): Free grammar.
2106 2001-12-29 Akim Demaille <akim@epita.fr>
2110 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
2111 since it allocates it for each state, although only one is needed.
2112 (allocate_storage): Do it here.
2114 2001-12-29 Akim Demaille <akim@epita.fr>
2116 * src/options.h, src/options.c (create_long_option_table): Rename
2118 (long_option_table_new): this, with a clearer prototype.
2119 (percent_table): Remove, unused,
2120 * src/getargs.c (getargs): Adjust.
2122 2001-12-29 Akim Demaille <akim@epita.fr>
2124 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
2125 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
2128 2001-12-29 Akim Demaille <akim@epita.fr>
2130 * src/lalr.c (build_relations): Rename `states' as `states1'.
2131 Sorry, I don't understand exactly what it is, no better name...
2133 2001-12-29 Akim Demaille <akim@epita.fr>
2135 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
2136 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
2137 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
2140 2001-12-29 Akim Demaille <akim@epita.fr>
2142 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
2145 2001-12-29 Akim Demaille <akim@epita.fr>
2147 * src/reader.c, src/reader.h (user_toknums): Remove.
2148 Adjust all users to use symbols[i]->user_token_number.
2150 2001-12-29 Akim Demaille <akim@epita.fr>
2152 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
2153 Adjust all users to use symbols[i]->prec or ->assoc.
2155 2001-12-29 Akim Demaille <akim@epita.fr>
2157 * src/reader.c, src/reader.h (tags): Remove.
2158 Adjust all users to use symbols[i]->tag.
2160 2001-12-29 Akim Demaille <akim@epita.fr>
2162 * src/gram.h, src/gram.c (symbols): New, similar to state_table
2164 * src/reader.c (packsymbols): Fill this table.
2166 * src/conflicts.c (resolve_sr_conflict): Adjust.
2167 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
2169 Use symbols[i]->tag instead of tags[i].
2171 2001-12-29 Akim Demaille <akim@epita.fr>
2173 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
2174 In addition, put a comment in there, to replace...
2175 * tests/regression.at (%union and C comments): Remove.
2177 2001-12-29 Akim Demaille <akim@epita.fr>
2179 * tests/regression.at (Web2c Actions): Blindly move the actual
2180 output as expected output. The contents *seem* right to me, but I
2181 can't pretend reading perfectly parser tables... Nonetheless, all
2182 the other tests pass correctly, the table look OK, even though the
2183 presence of `$axiom' is to be noted: AFAICS it is useless (but
2186 2001-12-29 Akim Demaille <akim@epita.fr>
2188 * src/reader.c (readgram): Don't add the rule 0 if there were no
2189 rules read. In other words, add it _after_ having performed
2190 grammar sanity checks.
2191 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
2193 2001-12-29 Akim Demaille <akim@epita.fr>
2195 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
2196 visible, and some states have now a different number.
2198 2001-12-29 Akim Demaille <akim@epita.fr>
2200 * src/reader.c (readgram): Bind the initial rule's lineno to that
2202 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
2203 (Solved SR Conflicts): Adjust rule 0's line number.
2205 2001-12-29 Akim Demaille <akim@epita.fr>
2207 Fix the `GAWK Grammar' failure.
2209 * src/LR0.c (final_state): Initialize to -1 so that we do compute
2210 the reductions of the first state which was mistakenly confused
2211 with the final state because precisely final_state was initialized
2213 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
2214 now noticed by Bison.
2215 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
2216 have a reduction on $default.
2218 2001-12-29 Akim Demaille <akim@epita.fr>
2220 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
2222 * src/closure.c (print_closure): Likewise.
2223 * src/derives.c (print_derives): Likewise.
2224 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
2227 2001-12-29 Akim Demaille <akim@epita.fr>
2229 * src/lalr.c (lookaheads_print): New.
2230 (lalr): Call it when --trace-flag.
2231 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
2234 2001-12-29 Akim Demaille <akim@epita.fr>
2236 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
2237 when walking through ritem, even via rule->rhs.
2238 * src/reduce.c (dump_grammar, useful_production, reduce_output)
2239 (useful_production, useless_nonterminals): Likewise.
2240 (reduce_grammar_tables): Likewise, plus update nritems.
2241 * src/nullable.c (set_nullable): Likewise.
2242 * src/lalr.c (build_relations): Likewise.
2243 * tests/sets.at (Nullable): Adjust.
2244 Fortunately, now, the $axiom is no longer nullable.
2246 2001-12-29 Akim Demaille <akim@epita.fr>
2248 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
2250 * src/gram.c (ritem_longest_rhs): Likewise.
2251 * src/reduce.c (nonterminals_reduce): Likewise.
2252 * src/print_graph.c (print_graph): Likewise.
2253 * src/output.c (output_rule_data): Likewise.
2254 * src/nullable.c (set_nullable): Likewise.
2256 2001-12-29 Akim Demaille <akim@epita.fr>
2258 * src/output.c: Comment changes.
2260 2001-12-27 Paul Eggert <eggert@twinsun.com>
2262 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
2263 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
2264 Sparc, as they were causing more porting problems than the
2265 (minor) performance improvement was worth.
2267 Also, catch up with 1.31's YYSTD.
2269 2001-12-27 Akim Demaille <akim@epita.fr>
2271 * src/output.c (output_gram): Rely on nritems, not the
2272 0-sentinel. See below.
2273 Use -1 as separator, not 0.
2274 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
2275 Rely on -1 as separator in yyrhs, instead of 0.
2276 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
2277 twice `Now at end of input', therefore there are two lines less to
2280 2001-12-27 Akim Demaille <akim@epita.fr>
2282 * tests/regression.at (Unresolved SR Conflicts):
2283 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
2286 2001-12-27 Akim Demaille <akim@epita.fr>
2288 * src/LR0.c (new_state): Recognize the final state by the fact it
2289 is reached by eoftoken.
2290 (insert_start_shifting_state, insert_eof_shifting_state)
2291 (insert_accepting_state, augment_automaton): Remove, since now
2292 these states are automatically computed from the initial state.
2293 (generate_states): Adjust.
2294 * src/print.c: When reporting a rule number to the user, substract
2295 1, so that the axiom rule is rule 0, and the first user rule is 1.
2296 * src/reduce.c: Likewise.
2297 * src/print_graph.c (print_core): For the time being, just as for
2298 the report, depend upon --trace-flags to dump the full set of
2300 * src/reader.c (readgram): Once the grammar read, insert the rule
2301 0: `$axiom: START-SYMBOL $'.
2302 * tests/set.at: Adjust: rule 0 is now displayed, and since the
2303 number of the states has changed (the final state is no longer
2304 necessarily the last), catch up.
2306 2001-12-27 Akim Demaille <akim@epita.fr>
2308 Try to make the use of the eoftoken valid. Given that its value
2309 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
2310 is used instead of > 0 where appropriate, (ii), depend upon nritems
2311 instead of the 0-sentinel.
2313 * src/gram.h, src/gram.c (nritems): New.
2314 Expected to be duplication of nitems, but for the time being...
2315 * src/reader.c (packgram): Assert nritems and nitems are equal.
2316 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
2317 * src/closure.c (print_closure, print_fderives): Likewise.
2318 * src/gram.c (ritem_print): Likewise.
2319 * src/print.c (print_core, print_grammar): Likewise.
2320 * src/print_graph.c: Likewise.
2322 2001-12-27 Akim Demaille <akim@epita.fr>
2324 * src/main.c (main): If there are complains after grammar
2325 reductions, then output the report anyway if requested, then die.
2326 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
2327 * src/reader.c (eoftoken): New.
2328 (parse_token_decl): If the token being defined has value `0', it
2330 (packsymbols): No longer hack `tags' to insert `$' by hand.
2331 Be sure to preserve the value of the eoftoken.
2332 (reader): Make sure eoftoken is defined.
2333 Initialize nsyms to 0: now eoftoken is created just like the others.
2334 * src/print.c (print_grammar): Don't special case the eof token.
2335 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
2336 lie anyway, albeit pleasant.
2337 * tests/calc.at: Exercise error messages with eoftoken.
2338 Change the grammar so that empty input is invalid.
2339 Adjust expectations.
2340 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
2342 2001-12-27 Akim Demaille <akim@epita.fr>
2344 * configure.in: Check the protos of strchr ans strspn.
2345 Replace strchr if needed.
2346 * src/system.h: Provide the protos of strchr, strspn and memchr if
2348 * lib/strchr.c: New.
2349 * src/reader.c (symbols_save): Use strchr.
2351 2001-12-27 Akim Demaille <akim@epita.fr>
2353 * src/print.c, src/print_graph.c (escape): New.
2354 Use it to quote the TAGS outputs.
2355 * src/print_graph.c (print_state): Now errors are in red, and
2356 reductions in green.
2357 Prefer high to wide: output the state number on a line of its own.
2359 2001-12-27 Akim Demaille <akim@epita.fr>
2361 * src/state.h, src/state.c (reductions_new): New.
2362 * src/LR0.c (set_state_table): Let all the states have a
2363 `reductions', even if reduced to 0.
2364 (save_reductions): Adjust.
2365 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
2366 * src/print.c (print_reductions, print_actions): Adjust.
2367 * src/output.c (action_row): Adjust.
2369 2001-12-27 Akim Demaille <akim@epita.fr>
2371 * src/state.h, src/state.c (errs_new, errs_dup): New.
2372 * src/LR0.c (set_state_table): Let all the states have an errs,
2373 even if reduced to 0.
2374 * src/print.c (print_errs, print_reductions): Adjust.
2375 * src/output.c (output_actions, action_row): Adjust.
2376 * src/conflicts.c (resolve_sr_conflict): Adjust.
2378 2001-12-27 Akim Demaille <akim@epita.fr>
2380 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
2382 2001-12-27 Akim Demaille <akim@epita.fr>
2384 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
2385 * src/print.c: here.
2386 (lookaheadset, shiftset): New, used as additional storage by
2388 (print_results): Adjust.
2389 (print_shifts, print_gotos, print_errs): New, extracted from...
2390 (print_actions): here.
2391 * src/print_graph.c (print_actions): Remove dead code.
2393 2001-12-27 Akim Demaille <akim@epita.fr>
2395 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
2398 2001-12-27 Akim Demaille <akim@epita.fr>
2400 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
2401 (build_relations): Adjust.
2403 2001-12-27 Akim Demaille <akim@epita.fr>
2405 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
2408 2001-12-27 Akim Demaille <akim@epita.fr>
2410 * src/reader.c (packgram): Catch nitems overflows.
2412 2001-12-27 Akim Demaille <akim@epita.fr>
2414 * src/files.c, src/files.h (guard_obstack): Remove.
2415 * src/output.c (output): Adjust.
2416 * src/reader.c (parse_braces): New, factoring...
2417 (copy_action, copy_guard): these two which are renamed as...
2418 (parse_action, parse_guard): these.
2419 As a voluntary consequence, using braces around guards is now
2422 2001-12-27 Akim Demaille <akim@epita.fr>
2424 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
2425 * src/reader.c (symbol_list): `guard' and `guard_line' are new
2427 (symbol_list_new): Adjust.
2428 (copy_action): action_line is the first line, not the last.
2429 (copy_guard): Just as for actions, store the `action' only, not
2430 the switch/case/break flesh.
2431 Don't parse the user action that might follow the guard, let...
2432 (readgram): do it, i.e., now, there can be an action after a
2434 In other words the guard is just explicitly optional.
2436 * src/output.c (guards_output): New.
2437 (output_parser): Call it when needed.
2438 (output): Also free the guard and attrs obstacks.
2439 * src/files.c, src/files.h (obstack_save): Remove.
2440 (output_files): Remove.
2441 As a result, if one needs the former `.act' file, using an
2442 appropriate skeleton which requires actions and guards is now
2444 * src/main.c (main): Adjust.
2445 * tests/semantic.at: New.
2446 * tests/regression.at: Use `input.y' as input file name.
2447 Avoid 8+3 problems by requiring input.c when the test needs the
2450 2001-12-27 Akim Demaille <akim@epita.fr>
2452 * src/reader.c (symbol_list_new): Be sure to initialize all the
2455 2001-12-27 Akim Demaille <akim@epita.fr>
2457 All the hacks using a final pseudo state are now useless.
2459 * src/LR0.c (set_state_table): state_table holds exactly nstates.
2460 * src/lalr.c (nLA): New.
2461 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
2462 instead of lookaheadsp from the pseudo state (nstate + 1).
2464 2001-12-27 Akim Demaille <akim@epita.fr>
2466 * src/output.c (action_row, token_actions): Use a state_t instead
2467 of a integer, and nlookaheads instead of the following state's
2470 2001-12-27 Akim Demaille <akim@epita.fr>
2472 * src/conflicts.c (log_resolution, flush_shift)
2473 (resolve_sr_conflict, set_conflicts, solve_conflicts)
2474 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
2475 (conflicts_print, print_reductions): Use a state_t instead of an
2476 integer when referring to a state.
2477 As much as possible, depend upon nlookaheads, instead of the
2478 `lookaheadsp' member of the following state (since lookaheads of
2479 successive states are successive, the difference between state n + 1
2480 and n served as the number of lookaheads for state n).
2481 * src/lalr.c (add_lookback_edge): Likewise.
2482 * src/print.c (print_core, print_actions, print_state)
2483 (print_results): Likewise.
2484 * src/print_graph.c (print_core, print_actions, print_state)
2485 (print_graph): Likewise.
2486 * src/conflicts.h: Adjust.
2488 2001-12-27 Akim Demaille <akim@epita.fr>
2490 * src/bison.hairy: Formatting/comment changes.
2492 Remove `register' indications.
2493 Add plenty of `static'.
2495 2001-12-27 Akim Demaille <akim@epita.fr>
2497 * src/output.c (prepare): Drop the muscle `ntbase' which
2499 * src/bison.simple: Formatting/comment changes.
2500 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
2501 is an undocumented synonym.
2503 2001-12-22 Akim Demaille <akim@epita.fr>
2505 * src/output.c (output_table_data): Change the prototype to use
2506 `int' for array ranges: some invocations do pass an int, not a
2508 Reported by Wayne Green.
2510 2001-12-22 Akim Demaille <akim@epita.fr>
2512 Some actions of web2c.y are improperly triggered.
2513 Reported by Mike Castle.
2515 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
2516 * tests/regression.at (Web2c): Rename as...
2517 (Web2c Report): this.
2518 (Web2c Actions): New.
2520 2001-12-22 Akim Demaille <akim@epita.fr>
2522 Reductions in web2c.y are improperly reported.
2523 Reported by Mike Castle.
2525 * src/conflicts.c (print_reductions): Fix.
2526 * tests/regression.at (Web2c): New.
2528 2001-12-18 Akim Demaille <akim@epita.fr>
2530 Some host fail on `assert (!"foo")', which expands to
2531 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
2532 Reported by Nelson Beebee.
2534 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
2535 `#define it_succeeded 0' and `assert (it_succeeded)'.
2537 2001-12-17 Marc Autret <autret_m@epita.fr>
2539 * src/bison.simple: Don't hard code the skeleton line and filename.
2540 * src/output.c (output_parser): Rename 'line' as 'output_line'.
2541 New line counter 'skeleton_line' (skeleton-line muscle).
2543 2001-12-17 Paul Eggert <eggert@twinsun.com>
2545 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
2546 YYDEBUG must be defined to a nonzero value.
2548 * src/bison.simple (yytname): Do not assume that the user defines
2549 YYDEBUG to a properly parenthesized expression.
2551 2001-12-17 Akim Demaille <akim@epita.fr>
2553 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
2554 nlookaheads is a new member.
2556 * src/lalr.h (nlookaheads): Remove this orphan declaration.
2557 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
2560 2001-12-17 Akim Demaille <akim@epita.fr>
2562 * src/files.h, src/files.c (open_files, close_files): Remove.
2563 * src/main.c (main): Don't open/close files, nor invoke lex_free,
2565 * src/reader.c (reader): Do it.
2567 2001-12-17 Akim Demaille <akim@epita.fr>
2569 * src/conflicts.c (print_reductions): Formatting changes.
2571 2001-12-17 Akim Demaille <akim@epita.fr>
2573 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
2574 (flush_reduce): New.
2575 (resolve_sr_conflict): Adjust.
2577 2001-12-17 Akim Demaille <akim@epita.fr>
2579 * src/output.c (output_obstack): Be static and rename as...
2580 (format_obstack): this, to avoid any confusion with files.c's
2582 * src/reader.h (muscle_obstack): Move to...
2583 * src/output.h: here, since it's defined in output.c.
2585 2001-12-17 Akim Demaille <akim@epita.fr>
2587 * src/output.c (action_row, save_column, default_goto)
2588 (sort_actions, matching_state, pack_vector): Better variable
2591 2001-12-17 Akim Demaille <akim@epita.fr>
2593 * src/output.c: Various formatting changes.
2595 2001-12-17 Akim Demaille <akim@epita.fr>
2597 * src/files.c (output_files): Free the output_obstack.
2598 * src/main.c (main): Call print and print_graph conditionally.
2599 * src/print.c (print): Work unconditionally.
2600 * src/print_graph.c (print_graph): Work unconditionally.
2601 * src/conflicts.c (log_resolution): Output only if verbose_flag.
2603 2001-12-16 Marc Autret <autret_m@epita.fr>
2605 * src/output.c (actions_output): Fix. When we use %no-lines,
2606 there is one less line per action.
2608 2001-12-16 Marc Autret <autret_m@epita.fr>
2610 * src/bison.simple: Remove a useless #line directive.
2611 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
2612 * src/output.c (get_lines_number): New.
2613 (output_parser): Adjust, now takes care about the lines of a
2616 (actions_output): Computes the number of lines taken by actions.
2617 (output_master_parser): Insert new skeleton which is the name of
2618 the output parser file name.
2620 2001-12-15 Marc Autret <autret_m@epita.fr>
2622 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
2624 2001-12-15 Marc Autret <autret_m@epita.fr>
2626 * src/output.c (output_gram): Keep track of the hairy one.
2628 2001-12-15 Akim Demaille <akim@epita.fr>
2630 Make `make distcheck' work.
2632 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
2633 system.h which uses libgettext.h.
2635 2001-12-15 Akim Demaille <akim@epita.fr>
2637 * src/nullable.c (set_nullable): Useless rules must be skipped,
2638 otherwise, since we range over their symbols, we might look at a
2639 nonterminal which no longer ``exists'', i.e., it is not counted in
2640 `nvars', hence we overflow our arrays.
2642 2001-12-15 Akim Demaille <akim@epita.fr>
2644 The header can also be produced directly, without any obstack!
2647 * src/files.c, src/files.h (defines_obstack): Remove.
2648 (compute_header_macro): Global.
2649 (defines_obstack_save): Remove.
2650 * src/reader.c (parse_union_decl): No longer output to
2651 defines_obstack: its content can be found in the `stype' muscle
2653 (output_token_translations): Merge into...
2654 (symbols_output): this.
2656 (symbols_save): this.
2658 * src/output.c (header_output): New.
2661 2001-12-15 Akim Demaille <akim@epita.fr>
2663 * src/reader.c (parse_union_decl): Instead of handling two obstack
2664 simultaneously, use one to define the `stype' muscle, and use the
2665 value of the latter to fill defines_obstack.
2666 (copy_comment): Remove.
2667 (copy_comment2): Work for a single obstack.
2669 (copy_comment): this.
2671 2001-12-15 Akim Demaille <akim@epita.fr>
2673 * src/lex.c, src/lex.h (xgetc): No longer static.
2674 * src/reader.c (parse_union_decl): Revamp.
2676 2001-12-15 Akim Demaille <akim@epita.fr>
2678 Still making progress in separating Bison into (i) input, (ii)
2679 process, (iii) output: now we can directly output the parser file
2680 without using table_obstack at all.
2682 * src/files.c, src/files.h (table_obstack): Bye bye.
2683 (parser_file_name): New.
2684 * src/files.c (compute_output_file_names): Compute it.
2685 * src/output.c (actions_output, output_parser)
2686 (output_master_parser): To a file instead of an obstack.
2688 2001-12-15 Akim Demaille <akim@epita.fr>
2690 Attach actions to rules, instead of pre-outputting them to
2693 * src/gram.h (rule_t): action and action_line are new members.
2694 * src/reader.c (symbol_list): Likewise.
2695 (copy_action): Save the actions within the rule.
2696 (packgram): Save them in rule_table.
2697 * src/output.c (actions_output): New.
2698 (output_parser): Use it on `%%actions'.
2699 (output_rule_data): Don't free rule_table.
2701 (prepare): Don't save the `action' muscle.
2702 * src/bison.simple: s/%%action/%%actions/.
2704 2001-12-15 Akim Demaille <akim@epita.fr>
2706 * src/reader.c (copy_action): When --yacc, don't append a `;'
2707 to the user action: let it fail if lacking.
2708 Suggested by Arnold Robbins and Tom Tromey.
2710 2001-12-14 Akim Demaille <akim@epita.fr>
2712 * src/lex.c (literalchar): Simply return the char you decoded, non
2713 longer mess around with obstacks and int pointers.
2716 2001-12-14 Akim Demaille <akim@epita.fr>
2718 * src/lex.c (literalchar): Don't escape the special characters,
2719 just decode them, and keep them as char (before, eol was output as
2720 the 2 char string `\n' etc.).
2721 * src/output.c (output_rule_data): Use quotearg to output the
2724 2001-12-13 Paul Eggert <eggert@twinsun.com>
2726 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
2727 Do not infringe on the global user namespace when using C++.
2728 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
2729 All uses of `fprintf' and `stderr' changed.
2731 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
2733 2001-12-13 Akim Demaille <akim@epita.fr>
2735 The computation of nullable is broken: it doesn't handle empty
2738 * tests/torture.at (GNU AWK Grammar): New.
2739 * tests/sets.at (Nullable): New.
2740 * src/nullable.c (set_nullable): Instead of blindly looping over
2741 `ritems', loop over the rules, and then over their rhs's.
2743 Work around Autotest bugs.
2745 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
2746 frame, because Autotest understand lines starting with a `+' as
2747 traces from the shell. Then, they are not processed properly.
2748 Admittedly an Autotest bug, but we don't have time to wait for
2749 Autotest to catch up.
2750 * tests/regression.at (Broken Closure): Adjust to the new table
2753 * tests/sets.at: here.
2755 2001-12-13 Akim Demaille <akim@epita.fr>
2757 * src/closure.c (closure): Use nrules instead of playing tricks
2760 2001-12-13 Akim Demaille <akim@epita.fr>
2762 * src/print.c (print_actions): Output the handling of `$' as the
2763 traces do: shifting the token EOF. Before EOF was treated as a
2765 * tests/regression.at: Adjust some tests.
2766 * src/print_graph.c (print_core): Complete the set of items via
2767 closure. The next-to-final and final states are still unsatisfying,
2768 but that's to be addressed elsewhere.
2769 No longer output the rule numbers, but do output the state number.
2770 A single loop for the shifts + gotos is enough, but picked a
2771 distinct color for each.
2772 (print_graph): Initialize and finalize closure.
2774 2001-12-13 Akim Demaille <akim@epita.fr>
2776 * src/reader.c (readgram): Remove dead code, an strip useless
2778 (get_type): Remove, unused.
2780 2001-12-12 Akim Demaille <akim@epita.fr>
2782 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
2783 on that of lib/error.c.
2785 2001-12-12 Akim Demaille <akim@epita.fr>
2787 Some hosts don't like `/' in includes.
2789 * src/system.h: Include libgettext.h without qualifying the path.
2790 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
2793 2001-12-11 Marc Autret <autret_m@epita.fr>
2795 * src/output.c (output_parser): Remove useless muscle.
2797 2001-12-11 Marc Autret <autret_m@epita.fr>
2799 * src/bison.simple: Remove #line just before %%epilogue. It
2800 is now handled in ...
2801 * src/reader.c (read_additionnal_code): Add the output of a
2802 #line for the epilogue.
2804 2001-12-10 Marc Autret <autret_m@epita.fr>
2806 * src/reader.c (copy_definition): Re-use CPP-outed code which
2807 replace precedent remove.
2808 * src/bison.simple: Remove #line before %%prologue because
2809 %%input-line is wrong at this time.
2811 2001-12-10 Marc Autret <autret_m@epita.fr>
2813 * src/reader.c (symbols_output): Clean up.
2814 * src/output.c (output_gram, output): Clean up.
2816 2001-12-10 Akim Demaille <akim@epita.fr>
2818 * src/lalr.c (initialize_lookaheads): New. Extracted from...
2819 * src/LR0.c (set_state_table): here.
2820 * src/lalr.c (lalr): Call it.
2822 2001-12-10 Akim Demaille <akim@epita.fr>
2824 * src/state.h (shifts): Remove the `number' member: shifts are
2825 attached to state, hence no longer need to be labelled with a
2828 2001-12-10 Akim Demaille <akim@epita.fr>
2830 Now that states have a complete set of members, the linked list of
2831 shifts is useless: just fill directly the state's shifts member.
2833 * src/state.h (shifts): Remove the `next' member.
2834 * src/LR0.c (first_state, last_state): Remove.
2836 (augment_automaton): Don't look for the shifts that must be added
2837 a shift on EOF: it is those of the state we looked for! But now,
2838 since shifts are attached, it is no longer needed to looking
2839 merely by its id: its number.
2841 2001-12-10 Akim Demaille <akim@epita.fr>
2843 * src/LR0.c (augment_automaton): Better variable locality.
2844 Remove an impossible branch: if there is a state corresponding to
2845 the start symbol being shifted, then there is shift for the start
2846 symbol from the initial state.
2848 2001-12-10 Akim Demaille <akim@epita.fr>
2850 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
2851 only when appropriate: when insert_start_shifting_state' is not
2853 * tests/regression.at (Rule Line Numbers): Adjust.
2855 2001-12-10 Akim Demaille <akim@epita.fr>
2857 * src/LR0.c (augment_automaton): Now that all states have shifts,
2858 merge the two cases addition shifts to the initial state.
2860 2001-12-10 Akim Demaille <akim@epita.fr>
2862 * src/lalr.c (set_state_table): Move to...
2864 * src/lalr.c (lalr): Don't call it...
2865 * src/LR0.c (generate_states): do it.
2866 * src/LR0.h (first_state): Remove, only the table is used.
2868 2001-12-10 Akim Demaille <akim@epita.fr>
2870 * src/LR0.h (first_shift, first_reduction): Remove.
2871 * src/lalr.c: Don't use first_shift: find shifts through the
2874 2001-12-10 Akim Demaille <akim@epita.fr>
2876 * src/LR0.c: Attach shifts to states as soon as they are
2878 * src/lalr.c (set_state_table): Instead of assigning shifts to
2879 state, just assert that the mapping was properly done.
2881 2001-12-10 Akim Demaille <akim@epita.fr>
2883 * src/LR0.c (insert_start_shift): Rename as...
2884 (insert_start_shifting_state): this.
2885 (insert_eof_shifting_state, insert_accepting_state): New.
2886 (augment_automaton): Adjust.
2887 Better locality of the variables.
2888 When looking if the start_symbol is shifted from the initial
2889 state, using `while (... symbol != start_symbol ...)' sounds
2890 better than `while (... symbol < start_symbol ...)': If fail
2891 to see how the order between symbols could be relevant!
2893 2001-12-10 Akim Demaille <akim@epita.fr>
2895 * src/getargs.h: Don't declare `spec_name_prefix' and
2896 `spec_file_prefix', declared by src/files.h.
2897 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
2898 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
2899 * src/output.c (prepare): Adjust.
2900 * src/reader.c (symbols_output): Likewise.
2901 * src/vmsgetargs.c: Vaguely adjust, but who cares?
2903 2001-12-10 Akim Demaille <akim@epita.fr>
2905 * src/muscle_tab.c (muscle_init): NULL is a better default than
2908 2001-12-10 Akim Demaille <akim@epita.fr>
2910 * src/reader.c (reader): Calling symbols_output once is enough.
2912 2001-12-10 Akim Demaille <akim@epita.fr>
2914 Now that states have a complete set of members, the linked list of
2915 reductions is useless: just fill directly the state's reductions
2918 * src/state.h (struct reductions): Remove member `number' and
2920 * src/LR0.c (first_reduction, last_reduction): Remove.
2921 (save_reductions): Don't link the new reductions, store them in
2923 * src/lalr.c (set_state_table): No need to attach reductions to
2924 states, it's already done.
2925 * src/output.c (output_actions): No longer free the shifts, then
2926 the reductions, then the states: free all the states and their
2929 2001-12-10 Akim Demaille <akim@epita.fr>
2931 * src/options.c (OPTN, DRTV, BOTH): New.
2932 (option_table): Use them.
2934 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
2935 the job of system.h.
2936 * src/options.c: Don't include stdio.h and xalloc.h for the same
2939 2001-12-10 Akim Demaille <akim@epita.fr>
2941 * src/output.c (output, prepare): Make sure the values of the
2942 muscles `action' and `prologue' are 0-terminated.
2944 2001-12-10 Akim Demaille <akim@epita.fr>
2946 Clean up GCC warnings.
2948 * src/reader.c (copy_action): `buf' is not used.
2949 (parse_skel_decl): Be static.
2950 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
2951 * src/options.h (create_long_option_table): Have a real prototype.
2952 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
2953 (hash_delete_at): Return const void *.
2954 Adjust casts to preserve the const.
2956 2001-12-10 Akim Demaille <akim@epita.fr>
2958 * configure.in: Require 2.52g.
2959 M4 is not needed, but AUTOM4TE is.
2961 * tests/Makefile.am: Adjust.
2963 2001-12-10 Akim Demaille <akim@epita.fr>
2965 One structure for states is enough, even though theoretically
2966 there are LR(0) states and LALR(1) states.
2968 * src/lalr.h (state_t): Remove.
2969 (state_table): Be state_t **, not state_t *.
2970 * src/state.h (core, CORE_ALLOC): Rename as...
2971 (state_t, STATE_ALLOC): this.
2972 Add the LALR(1) members: shifts, reductions, errs.
2973 * src/LR0.c (state_table): Rename as...
2974 (state_hash): this, to avoid name clashes with the global
2976 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
2977 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
2979 2001-12-10 Akim Demaille <akim@epita.fr>
2981 Bison dumps core on bash.y.
2982 Reported by Pascal Bart.
2984 * src/warshall.c (bitmatrix_print): New.
2986 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
2987 j must be the outer loop.
2988 * tests/regression.at (Broken Closure): New.
2990 2001-12-05 Akim Demaille <akim@epita.fr>
2992 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
2994 Reported by Peter Hámorský.
2996 2001-12-05 Akim Demaille <akim@epita.fr>
2998 * src/conflicts.c (err_table): Remove.
2999 (resolve_sr_conflict): Adjust.
3000 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
3002 (state_t.reductions, state_t.shifts): this.
3004 2001-12-05 Akim Demaille <akim@epita.fr>
3006 * src/reduce.c (reduce_grammar_tables): No longer disable the
3007 removal of useless rules via CPP but via `if (0)', so that the
3008 compiler still check the code is valid.
3009 For instance, it should have noticed `rline' no longer exists: use
3010 the `line' member of rule_t.
3011 * src/gram.c (dummy, rline): Remove, unused.
3013 2001-12-05 Akim Demaille <akim@epita.fr>
3015 * src/output.c (pack_vector): Use assert, not berror.
3016 * src/main.c (berror): Remove, unused.
3018 2001-12-05 Akim Demaille <akim@epita.fr>
3020 New experimental feature: if --verbose --trace output all the
3021 items of a state, not only its kernel.
3023 * src/print.c (print_core): If `trace_flag', then invoke closure
3024 before outputting the items of the state (print_core is no longer
3025 a correct name them).
3026 (print_results): Invoke new_closure/free_closure if needed.
3028 2001-12-05 Akim Demaille <akim@epita.fr>
3030 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
3031 * src/closure.c, src/closure.h (itemsetsize): Rename as...
3032 (nitemset): for consistency with the rest of the project.
3034 2001-12-05 Akim Demaille <akim@epita.fr>
3036 * src/closure.c (print_closure): Improve.
3037 (closure): Use it for printing input and output.
3039 2001-12-05 Akim Demaille <akim@epita.fr>
3041 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
3042 indexed by nonterminals.
3044 2001-12-05 Akim Demaille <akim@epita.fr>
3046 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
3048 * src/warshall.h: Remove accidental duplication of the content.
3050 2001-12-05 Akim Demaille <akim@epita.fr>
3052 * src/closure.c (set_fderives): De-obfuscate.
3054 2001-12-05 Akim Demaille <akim@epita.fr>
3056 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
3058 2001-12-05 Akim Demaille <akim@epita.fr>
3060 * src/closure.c (set_firsts): De-obfuscate.
3062 2001-12-05 Akim Demaille <akim@epita.fr>
3064 * src/output.c (action_row): De-obfuscate
3065 using the good o' techniques: arrays not pointers, variable
3066 locality, BITISSET, RESETBIT etc.
3068 2001-12-05 Akim Demaille <akim@epita.fr>
3070 Pessimize the code to simplify it: from now on, all the states
3071 have a valid SHIFTS, which NSHIFTS is possibly 0.
3073 * src/LR0.c (shifts_new): Be global and move to..
3074 * src/state.c, src/state.h: here.
3075 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
3076 * src/print_graph: Adjust.
3078 2001-12-05 Akim Demaille <akim@epita.fr>
3080 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
3081 * src/conflicts.c: Use it.
3082 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
3083 incorrectly ``simplified''.
3085 2001-12-05 Akim Demaille <akim@epita.fr>
3087 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
3088 using the good o' techniques: arrays not pointers, variable
3089 locality, BITISSET, RESETBIT etc.
3091 2001-12-05 Akim Demaille <akim@epita.fr>
3093 * src/state.h (SHIFT_SYMBOL): New.
3094 * src/conflicts.c: Use it to deobfuscate.
3096 2001-12-05 Akim Demaille <akim@epita.fr>
3098 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
3099 (print_reductions): De-obfuscate using the good o' techniques:
3100 arrays not pointers, variable locality, BITISSET.
3102 2001-12-05 Akim Demaille <akim@epita.fr>
3104 * src/conflicts.c (print_reductions): Arrays, not pointers.
3107 2001-12-05 Akim Demaille <akim@epita.fr>
3109 * src/conflicts.c (print_reductions): Pessimize, but clarify.
3111 2001-12-05 Akim Demaille <akim@epita.fr>
3113 * src/conflicts.c (print_reductions): Improve variable locality.
3115 2001-12-05 Akim Demaille <akim@epita.fr>
3117 * src/conflicts.c (print_reductions): Pessimize, but clarify.
3119 2001-12-05 Akim Demaille <akim@epita.fr>
3121 * src/conflicts.c (print_reductions): Improve variable locality.
3123 2001-12-05 Akim Demaille <akim@epita.fr>
3125 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
3126 * src/lalr.c: Use them.
3128 2001-12-05 Akim Demaille <akim@epita.fr>
3130 * src/LR0.c (augment_automaton): Formatting changes.
3131 Better variable locality.
3133 2001-12-05 Akim Demaille <akim@epita.fr>
3135 * src/lalr.c (matrix_print): New.
3136 (transpose): Use it.
3137 Use arrays instead of pointers.
3139 2001-12-05 Akim Demaille <akim@epita.fr>
3141 * src/lalr.c (maxrhs): Move to...
3142 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
3143 * src/lalr.c (build_relations): Adjust.
3145 2001-12-05 Akim Demaille <akim@epita.fr>
3147 * src/lalr.c (transpose): Free the memory allocated to the
3148 argument, as it is replaced by the results by the unique caller.
3149 (build_relations): Merely invoke transpose: it handles the memory
3151 Improve variable locality.
3152 Avoid variables used as mere abbreviations.
3153 (compute_lookaheads): Use arrays instead of pointers.
3155 2001-12-05 Akim Demaille <akim@epita.fr>
3157 * src/lalr.c (initialize_F): Improve variable locality.
3158 Avoid variables used as mere abbreviations.
3160 2001-12-05 Akim Demaille <akim@epita.fr>
3162 * src/derives.c (print_derives): Display the ruleno.
3163 * src/lalr.c (initialize_F, transpose): Better variable locality
3164 to improve readability.
3165 Avoid variables used as mere abbreviations.
3167 2001-12-05 Akim Demaille <akim@epita.fr>
3169 * src/lalr.c (traverse): Use arrays instead of pointers.
3171 2001-12-05 Akim Demaille <akim@epita.fr>
3173 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
3174 the handling of squeue.
3175 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
3177 2001-12-05 Akim Demaille <akim@epita.fr>
3179 Because useless nonterminals are now kept alive (instead of being
3180 `destroyed'), we now sometimes examine them, and store information
3181 related to them. Hence we need to know their number, and adjust
3184 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
3186 * src/LR0.c (allocate_itemsets): The memory allocated to
3187 `symbol_count' was used for two different purpose: once to count
3188 the number of occurrences of each symbol, and later reassigned to
3189 `shift_symbol', containing the symbol that can be shifted from a
3191 Deobfuscate, i.e., allocate, use and free `symbol_count' here
3193 (new_itemsets): Allocate `shift_symbol' here.
3194 (allocate_itemsets): symbol_count includes useless nonterminals.
3196 (free_storage): Use `free', not `XFREE', for pointers that cannot
3199 2001-12-05 Akim Demaille <akim@epita.fr>
3201 * src/nullable.c (set_nullable): Deobfuscate the handling of
3203 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
3205 2001-12-05 Akim Demaille <akim@epita.fr>
3207 * src/gram.c, src/gram.h (ritem_print): New.
3208 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
3209 (This useless function was defined only to work around VMS linkers
3210 that can't handle compilation units with variables only).
3211 * src/reduce.c (dump_grammar): Use it to trace the construction of
3214 2001-12-04 Paul Eggert <eggert@twinsun.com>
3216 * src/bison.simple (union yyalloc): Change member names
3217 to be the same as the stack names.
3218 (yyparse): yyptr is now union yyalloc *, not char *.
3219 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
3220 and may generate better code on some machines.
3221 (yystpcpy): Use prototype if __STDC__ is defined, not just
3222 if __cplusplus is defined.
3224 2001-11-30 Akim Demaille <akim@epita.fr>
3226 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
3227 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
3228 Gettext doesn't compile cleanly, and dies with -Werror.
3229 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
3230 Include WARNING_CFLAGS here.
3231 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
3232 before being defined.
3234 2001-11-27 Paul Eggert <eggert@twinsun.com>
3236 * lib/quotearg.h (quotearg_n, quotearg_n_style):
3237 First arg is int, not unsigned.
3238 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
3239 (SIZE_MAX, UINT_MAX): New macros.
3240 (quotearg_n_options): Abort if N is negative.
3241 Avoid overflow check on hosts where size_t is 64 bits and int
3242 is 32 bits, as overflow is impossible there.
3243 Fix off-by-one typo that caused unnecessary reallocation.
3245 2001-11-29 Paul Eggert <eggert@twinsun.com>
3247 Name space cleanup in generated parser.
3249 * doc/bison.texinfo (Bison Parser): Discuss system headers
3250 and their effect on the user name space.
3253 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
3254 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
3255 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
3257 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
3258 on user names when possible.
3260 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
3261 Simplify test for whather <alloca.h> exists.
3263 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
3265 (<stdio.h>): Include if YYDEBUG.
3267 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
3268 ! defined (yyoverflow) && ! defined (yymemcpy).
3270 (yymemcpy, yyparse): Rename local variables as needed so that
3271 they all begin with 'yy'.
3273 (yystrlen, yystpcpy): New functions.
3275 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
3278 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
3279 instead of relying on string.h functions. Use YYSTACK_ALLOC
3280 and YYSTACK_FREE instead of malloc and free.
3282 2001-11-30 Akim Demaille <akim@epita.fr>
3284 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
3285 before their first uses.
3286 (YYBISON, YYPURE): Move to the top of the output.
3288 2001-11-30 Akim Demaille <akim@epita.fr>
3290 * tests/reduce.at (Useless Nonterminals): Fix.
3292 2001-11-30 Akim Demaille <akim@epita.fr>
3294 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
3295 if body instead of `;' to pacify GCC's warnings.
3297 2001-11-30 Akim Demaille <akim@epita.fr>
3299 Instead of mapping the LHS of unused rules to -1, keep the LHS
3300 valid, but flag the rules as invalid.
3302 * src/gram.h (rule_t): `useful' is a new member.
3303 * src/print.c (print_grammar): Adjust.
3304 * src/derives.c (set_derives): Likewise.
3305 * src/reader.c (packgram, reduce_output): Likewise.
3306 * src/reduce.c (reduce_grammar_tables): Likewise.
3307 * tests/reduce.at (Underivable Rules, Useless Rules): New.
3309 2001-11-30 Akim Demaille <akim@epita.fr>
3311 * src/reduce.c (reduce_output): Formatting changes.
3312 * src/print.c (print_results, print_grammar): Likewise.
3313 * tests/regression.at (Rule Line Numbers)
3314 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
3316 2001-11-30 Akim Demaille <akim@epita.fr>
3318 * src/reduce.c (nonterminals_reduce): Instead of throwing away
3319 useless nonterminals, move them at the end of the symbol arrays.
3320 (reduce_output): Adjust.
3321 * tests/reduce.at (Useless Nonterminals): Adjust.
3323 2001-11-30 Akim Demaille <akim@epita.fr>
3325 * src/reduce.c: Various comment/formatting changes.
3326 (nonterminals_reduce): New, extracted from...
3327 (reduce_grammar_tables): here.
3328 (reduce_grammar): Call nonterminals_reduce.
3330 2001-11-29 Paul Eggert <eggert@twinsun.com>
3332 * src/bison.simple (YYSTACK_REALLOC): Remove.
3333 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
3334 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
3336 (union yyalloc): New type.
3337 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
3338 an arbitrary restriction on hosts where size_t is wider than int.
3340 (yyparse): Don't dump core if alloca or malloc fails; instead, report
3341 a parser stack overflow. Allocate just one block of memory for all
3342 three stacks, instead of allocating three blocks; this typically is
3343 faster and reduces fragmentation.
3345 Do not limit the number of items in the stack to a value that fits
3346 in 'int', as this is an arbitrary limit on hosts with 64-bit
3347 size_t and 32-bit int.
3349 2001-11-29 Marc Autret <autret_m@epita.fr>
3351 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
3352 of defining YYERROR_VERBOSE.
3353 [AT_DATA]: $4 is now out of C declarations in the prologue.
3355 2001-11-28 Marc Autret <autret_m@epita.fr>
3357 * src/reader.c (parse_dquoted_param): New.
3358 (parse_skel_decl): Use it.
3359 * src/lex.h: Add its prototype.
3360 * src/lex.c (literalchar): Become not static.
3362 2001-11-28 Marc Autret <autret_m@epita.fr>
3364 * src/output.h: And put its extern declaration here.
3365 * src/output.c (error_verbose): Define here.
3366 (prepare): Echo name modification.
3367 * src/getargs.h: Clean its extern declaration.
3368 * src/getargs.c (error_verbose_flag): Remove.
3369 (getargs): Remove case 'e'.
3370 * src/options.c (option_table): 'error-verbose' is now seen as simple
3374 * src/reader.c (read_declarations): Remove case tok_include.
3375 (parse_include_decl): Remove.
3376 * src/lex.h (token_t): Remove tok_include.
3377 * src/options.c (option_table): 'include' is now a simple command line
3380 2001-11-28 Marc Autret <autret_m@epita.fr>
3382 * src/bison.simple: Adjust muscle names.
3383 * src/muscle_tab.c (muscle_init): Also rename the muscles.
3384 * src/output.c (prepare): s/_/-/ for the muscles names.
3385 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
3387 2001-11-28 Marc Autret <autret_m@epita.fr>
3389 * src/bison.simple: Fix debug.
3390 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
3392 2001-11-28 Akim Demaille <akim@epita.fr>
3394 * src/LR0.c (shifts_new): New.
3395 (save_shifts, insert_start_shift, augment_automaton): Use it.
3397 2001-11-28 Akim Demaille <akim@epita.fr>
3399 * src/closure.c (closure): `b' and `ruleno' denote the same value:
3402 2001-11-28 Akim Demaille <akim@epita.fr>
3404 * src/closure.c (closure): Instead of looping over word in array
3405 then bits in words, loop over bits in array.
3407 2001-11-28 Akim Demaille <akim@epita.fr>
3409 * src/closure.c (closure): No longer optimize the special case
3410 where all the bits of `ruleset[r]' are set to 0, to make the code
3413 2001-11-28 Akim Demaille <akim@epita.fr>
3415 * src/closure.c (closure): `r' and `c' are new variables, used to
3416 de-obfuscate accesses to RULESET and CORE.
3418 2001-11-28 Akim Demaille <akim@epita.fr>
3420 * src/reduce.c (reduce_print): Use ngettext.
3421 (dump_grammar): Improve the trace accuracy.
3423 2001-11-28 Akim Demaille <akim@epita.fr>
3425 * src/reduce.c (dump_grammar): Don't translate trace messages.
3427 2001-11-28 Akim Demaille <akim@epita.fr>
3429 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
3430 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
3431 as all tags are free'ed afterwards.
3434 2001-11-27 Paul Eggert <eggert@twinsun.com>
3436 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
3437 use alloca when we didn't want to, and vice versa.
3439 2001-11-27 Marc Autret <autret_m@epita.fr>
3441 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
3443 * src/output.c (prepare): Remove its update.
3445 2001-11-27 Marc Autret <autret_m@epita.fr>
3447 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
3450 2001-11-27 Marc Autret <autret_m@epita.fr>
3452 * src/bison.simple: Remove YYERROR_VERBOSE using.
3453 Use %%error_verbose.
3454 (yyparse): Likewise.
3455 * src/output.c (prepare): Give its final value.
3456 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
3457 * src/getargs.h: Add its extern declaration.
3458 * src/getargs.c (error_verbose_flag): New int.
3459 (getargs): Update to catch new case.
3460 * src/options.c (option_table): 'error-verbose' is a new option.
3461 (shortopts): Update.
3463 2001-11-27 Akim Demaille <akim@epita.fr>
3465 * src/system.h: Use intl/libgettext.h.
3466 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
3468 2001-11-27 Akim Demaille <akim@epita.fr>
3470 * tests/torture.at (Exploding the Stack Size with Malloc):
3471 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
3473 2001-11-27 Akim Demaille <akim@epita.fr>
3475 * src/files.c: Include error.h.
3476 Reported by Hans Aberg.
3478 2001-11-26 Marc Autret <autret_m@epita.fr>
3480 * src/reader.c (parse_include_decl): New, not yet implemented.
3481 (read_declarations): Add case tok_include.
3482 * src/getargs.h (include): Add its extern definition.
3483 * src/getargs.c (include): New const char *.
3484 (getargs): Add case '-I'.
3485 * src/options.c (option_table): Add include as command line and
3487 * src/lex.h (token_t): Add tok_include.
3489 2001-11-26 Akim Demaille <akim@epita.fr>
3491 * src/reader.c (readgram): Make sure rules for mid-rule actions
3492 have a lineno equal to that of their host rule.
3493 Reported by Hans Aberg.
3494 * tests/regression.at (Rule Line Numbers): New.
3496 2001-11-26 Akim Demaille <akim@epita.fr>
3498 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
3501 2001-11-26 Akim Demaille <akim@epita.fr>
3503 * src/complain.c, src/complain.h (error): Remove, provided by
3506 2001-11-26 Akim Demaille <akim@epita.fr>
3508 * src/reader.c (read_declarations): Don't abort on tok_illegal,
3509 issue an error message.
3510 * tests/regression.at (Invalid %directive): New.
3511 Reported by Hans Aberg.
3513 2001-11-26 Akim Demaille <akim@epita.fr>
3515 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
3516 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
3518 2001-11-26 Akim Demaille <akim@epita.fr>
3520 * src/conflicts.c (conflicts_print): Don't complain at all when
3521 there are no reduce/reduce conflicts, and as many shift/reduce
3522 conflicts as expected.
3523 * tests/regression.at (%expect right): Adjust.
3525 2001-11-23 Akim Demaille <akim@epita.fr>
3527 * lib/alloca.c: Update, from fileutils.
3529 2001-11-23 Akim Demaille <akim@epita.fr>
3531 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
3533 2001-11-23 Akim Demaille <akim@epita.fr>
3535 * src/system.h: Include alloca.h.
3536 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
3538 2001-11-23 Akim Demaille <akim@epita.fr>
3540 * src/print_graph.c (print_actions): Remove `rule', unused.
3541 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
3542 pacify GCC's signed < unsigned warnings.
3543 * src/closure.c (itemsetsize): Likewise.
3544 * src/reader.c (symbol_list_new): Static.
3546 2001-11-23 Akim Demaille <akim@epita.fr>
3548 Attaching lineno to buckets is stupid, since only one copy of each
3549 symbol is kept, only the line of the first occurrence is kept too.
3551 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
3552 * src/reader.c (rline_allocated): Remove, unused.
3553 (symbol_list): Have a `line' member.
3554 (symbol_list_new): New.
3556 * src/print.c (print_grammar): Output the rule line numbers.
3557 * tests/regression.at (Solved SR Conflicts)
3558 (Unresolved SR Conflicts): Adjust.
3559 Reported by Hans Aberg.
3561 2001-11-22 Marc Autret <autret_m@epita.fr>
3563 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
3565 2001-11-22 Marc Autret <autret_m@epita.fr>
3567 * src/muscle_tab.c (muscle_init): Remove initialization of
3569 * src/output.c (output_master_parser): Do it here.
3571 2001-11-20 Akim Demaille <akim@epita.fr>
3574 * configure.in (ALL_LINGUAS): Adjust.
3575 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
3576 longer contains strings to translate.
3578 2001-11-19 Akim Demaille <akim@epita.fr>
3580 * src/conflicts.c (conflicts_print): Add a missing \n.
3582 2001-11-19 Akim Demaille <akim@epita.fr>
3584 * src/nullable.c (nullable_print): New.
3585 (set_nullable): Call it when tracing.
3586 Better locality of variables.
3588 2001-11-19 Akim Demaille <akim@epita.fr>
3590 * src/print.c (print_actions): Better locality of variables.
3592 2001-11-19 Akim Demaille <akim@epita.fr>
3594 * src/derives.c (print_derives): Fix and enrich.
3595 * src/closure.c (print_fderives): Likewise.
3597 2001-11-19 Akim Demaille <akim@epita.fr>
3599 * src/closure.c (itemsetend): Remove, replaced with...
3602 2001-11-19 Akim Demaille <akim@epita.fr>
3604 * src/LR0.c (kernel_end): Remove, replaced with...
3607 2001-11-19 Akim Demaille <akim@epita.fr>
3609 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
3612 2001-11-19 Akim Demaille <akim@epita.fr>
3614 * src/closure.c (closure): Use arrays instead of pointers to clarify.
3616 2001-11-19 Akim Demaille <akim@epita.fr>
3618 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
3620 * src/LR0.c: Likewise.
3621 (allocate_itemsets): Use arrays instead of pointers to clarify.
3623 2001-11-19 Akim Demaille <akim@epita.fr>
3625 * src/getargs.c (statistics_flag): Replace with...
3627 (longopts): Accept --trace instead of --statistics.
3628 * src/getargs.h, src/options.c: Adjust.
3629 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
3630 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
3632 2001-11-19 Akim Demaille <akim@epita.fr>
3634 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
3635 pointers to clarify the code.
3636 (save_reductions, save_shifts): Factor common parts of alternatives.
3638 2001-11-19 Akim Demaille <akim@epita.fr>
3640 * src/LR0.c (new_state, get_state): Complete TRACE code.
3641 * src/closure.c: Include `reader.h' to get `tags', needed by the
3643 Rename the conditional DEBUG as TRACE.
3644 Output consistently TRACEs to stderr, not stdout.
3645 * src/derives.c: Likewise.
3646 * src/reduce.c: (inaccessable_symbols): Using if is better style
3648 Use `#if TRACE' instead of `#if 0' for tracing code.
3650 2001-11-19 Akim Demaille <akim@epita.fr>
3652 * src/system.h (LIST_FREE, shortcpy): New.
3653 * src/LR0.c: Use them.
3654 * src/output.c (free_itemsets, free_reductions, free_shifts):
3655 Remove, replaced by LIST_FREE.
3657 2001-11-19 Akim Demaille <akim@epita.fr>
3659 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
3660 (REDUCTIONS_ALLOC): New.
3661 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
3664 2001-11-19 Akim Demaille <akim@epita.fr>
3666 * src/LR0.c (new_state): Complete trace code.
3667 * src/nullable.c (set_nullable): Don't translate traces.
3669 2001-11-19 Akim Demaille <akim@epita.fr>
3671 * src/print_graph.c (print_core): Better locality of variables.
3672 * src/print.c (print_core): Likewise.
3674 2001-11-19 Akim Demaille <akim@epita.fr>
3676 * src/vcg.c: You do the output, so you are responsible of the
3677 handling of VCG syntax, in particular: use quotearg.
3678 * src/print_graph.c: Don't.
3679 (print_actions): Don't output the actions as part of the nodes,
3680 since that's the job of the edges.
3681 (print_state): Don't output by hand: fill the node description,
3682 and ask for its output.
3684 2001-11-19 Akim Demaille <akim@epita.fr>
3686 * src/bison.simple (yyparse): When verbosely reporting an error,
3687 no longer put additional quotes around token names.
3688 * tests/calc.at: Adjust.
3690 2001-11-19 Akim Demaille <akim@epita.fr>
3692 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
3693 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
3694 * src/output.c: Adjust.
3696 2001-11-19 Akim Demaille <akim@epita.fr>
3698 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
3700 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
3702 2001-11-19 Akim Demaille <akim@epita.fr>
3704 * src/gram.h (rule_t): New.
3706 (rrhs, rlhs): Remove, part of state_t.
3707 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
3708 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
3709 * src/reader.c, src/reduce.c: Adjust.
3711 2001-11-19 Akim Demaille <akim@epita.fr>
3713 * src/reader.c (symbols_output): New, extracted from...
3714 (packsymbols): Here.
3717 2001-11-19 Akim Demaille <akim@epita.fr>
3719 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
3720 (maxrhs): this new function.
3722 2001-11-19 Akim Demaille <akim@epita.fr>
3724 * src/lalr.c (F): New macro to access the variable F.
3727 2001-11-19 Akim Demaille <akim@epita.fr>
3729 * src/lalr.h (LA): New macro to access the variable LA.
3730 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3731 * src/lalr.c: Adjust.
3733 2001-11-19 Akim Demaille <akim@epita.fr>
3735 * src/lalr.c (initialize_LA): Only initialize LA. Let...
3736 (set_state_table): handle the `lookaheads' members.
3738 2001-11-19 Akim Demaille <akim@epita.fr>
3740 * src/lalr.h (lookaheads): Removed array, whose contents is now
3742 (state_t): this structure.
3743 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3746 2001-11-19 Akim Demaille <akim@epita.fr>
3748 * src/lalr.h (consistent): Removed array, whose contents is now
3750 (state_t): this structure.
3751 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3754 2001-11-19 Akim Demaille <akim@epita.fr>
3756 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
3757 contents are now members of...
3758 (state_t): this structure.
3759 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3762 2001-11-19 Akim Demaille <akim@epita.fr>
3764 * src/lalr.h (state_t): New.
3765 (state_table): Be a state_t * instead of a core **.
3766 (accessing_symbol): Remove, part of state_t.
3767 * src/lalr.c: Adjust.
3768 (set_accessing_symbol): Merge into...
3769 (set_state_table): this.
3770 * src/print_graph.c, src/conflicts.c: Adjust.
3772 2001-11-14 Akim Demaille <akim@epita.fr>
3774 * tests/calc.at, tests/output.at, tests/regression.at,
3775 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
3776 now the tests are run in private dirs, therefore AC_CLEANUP and
3777 family can be simplified to 0-ary.
3778 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
3779 use abs. path to find config.h.
3780 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
3781 stderr, there can be way too much random noise.
3782 Instead pass -Werror to GCC and rely on the exit status.
3783 Reported by Wolfram Wagner.
3785 2001-11-14 Akim Demaille <akim@epita.fr>
3787 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
3788 defined only if yyoverflow is defined, to avoid `warning: unused
3790 Reported by The Test Suite.
3792 2001-11-14 Akim Demaille <akim@epita.fr>
3794 * src/print.c: Include reduce.h.
3795 Reported by Hans Aberg.
3797 2001-11-14 Akim Demaille <akim@epita.fr>
3799 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
3800 Revert a previous patch: these are really const.
3801 * src/conflicts.c (conflict_report): Additional useless pair of
3802 braces to pacify GCC's warnings for `if () if () {} else {}'.
3803 * src/lex.c (parse_percent_token): Replace equal_offset with
3806 Be sure to strdup `arg' when used, since there is no reason for
3807 token_buffer not to change.
3809 2001-11-14 Akim Demaille <akim@epita.fr>
3811 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
3813 * src/main.c (main): Use them.
3814 Suggested by Hans Aberg.
3816 2001-11-12 Akim Demaille <akim@epita.fr>
3818 * src/system.h (ngettext): Now that we use ngettext, be sure to
3819 provide a default definition when NLS are not used.
3821 2001-11-12 Akim Demaille <akim@epita.fr>
3823 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
3824 Use @kbd to denote user input.
3825 (Language and Grammar): ANSIfy the example.
3826 Adjust its layout for info/notinfo.
3827 (Location Tracking Calc): Output error messages to stderr.
3828 Output locations in a more GNUtically correct way.
3829 Fix a couple of Englishos.
3830 Adjust @group/@end group pairs.
3832 2001-11-12 Akim Demaille <akim@epita.fr>
3834 %expext was not functioning at all.
3836 * src/conflicts.c (expected_conflicts): Set to -1.
3837 (conflict_report): Use ngettext.
3838 (conflicts_print): Check %expect and make its violation an error.
3839 * doc/bison.texinfo (Expect Decl): Adjust.
3840 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
3841 * tests/regression.at (%expect not enough, %expect right)
3842 (%expect too much): New.
3844 2001-11-12 Akim Demaille <akim@epita.fr>
3846 * tests/regression.at (Conflicts): Rename as...
3847 (Unresolved SR Conflicts): this.
3848 (Solved SR Conflicts): New.
3850 2001-11-12 Akim Demaille <akim@epita.fr>
3852 * src/reduce.c (print_results): Rename as...
3853 (reduce_output): This.
3854 Output to OUT, passed as argument, instead of output_obstack.
3855 (dump_grammar): Likewise.
3858 (reduce_grammar): No longer call reduce_output, since...
3859 * src/print.c (print_results): do it.
3860 * src/main.c (main): Call reduce_free;
3862 2001-11-12 Akim Demaille <akim@epita.fr>
3864 * src/conflicts.c (print_reductions): Accept OUT as argument.
3865 Output to it, not to output_obstack.
3866 * src/print.c (print_actions): Adjust.
3868 2001-11-12 Akim Demaille <akim@epita.fr>
3870 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
3871 the result instead of using...
3872 (src_total, rrc_total, src_count, rrc_count): Remove.
3873 (any_conflicts): Remove.
3874 (print_conflicts): Split into...
3875 (conflicts_print, conflicts_output): New.
3876 * src/conflicts.h: Adjust.
3877 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
3878 * src/print.c (print_grammar): Issue `\n' between two rules.
3879 * tests/regression.at (Conflicts): New.
3880 Reported by Tom Lane.
3882 2001-11-12 Akim Demaille <akim@epita.fr>
3884 * tests/regression.at (Invalid input): Remove, duplicate with
3885 ``Invalid input: 1''.
3887 2001-11-12 Akim Demaille <akim@epita.fr>
3889 * tests/torture.at (AT_DATA_STACK_TORTURE)
3890 (Exploding the Stack Size with Alloca)
3891 (Exploding the Stack Size with Malloc): New.
3893 2001-11-12 Akim Demaille <akim@epita.fr>
3895 * src/bison.simple (YYSTACK_REALLOC): New.
3896 (yyparse) [!yyoverflow]: Use it and free the old stack.
3897 Reported by Per Allansson.
3899 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
3901 * src/bison.simple: Define type yystype instead of YYSTYPE, and
3902 define CPP macro, which substitute YYSTYPE by yystype.
3903 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
3904 with yyltype/YYLTYPE. This allows inclusion of the generated
3905 header within the parser if the compiler, such as GGC, accepts
3906 multiple equivalent #defines.
3909 2001-11-05 Akim Demaille <akim@epita.fr>
3911 * src/reader.c (symbols_output): New, extracted from...
3912 (packsymbols): here.
3915 2001-11-05 Akim Demaille <akim@epita.fr>
3917 * src/lex.c (parse_percent_token): s/quotearg/quote/.
3919 2001-11-05 Akim Demaille <akim@epita.fr>
3921 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
3924 2001-11-05 Akim Demaille <akim@epita.fr>
3926 * src/options.h (struct option_table_struct): set_flags is void*.
3927 * src/options.c (longopts): Support `--output' and `%output'.
3929 * src/lex.h (tok_setopt): Remove, replaced with...
3930 (tok_intopt, tok_stropt): these new guys.
3931 * src/lex.c (getopt.h): Not needed.
3932 (token_buffer, unlexed_token_buffer): Not const.
3933 (percent_table): Promote `-' over `_' in directive names.
3934 Active `%name-prefix', `file-prefix', and `output'.
3935 (parse_percent_token): Accept possible arguments to directives.
3936 Promote `-' over `_' in directive names.
3938 2001-11-04 Akim Demaille <akim@epita.fr>
3940 * doc/bison.texinfo (Decl Summary): Split the list into
3941 `directives for grammars' and `directives for bison'.
3943 Add description of `%name-prefix', `file-prefix', and `output'.
3944 Promote `-' over `_' in directive names.
3945 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
3946 Simplify the description of `--name-prefix'.
3947 Promote `-' over `_' in directive names.
3948 Promote `--output' over `--output-file'.
3949 Fix the description of `--defines'.
3950 * tests/output.at: Exercise %file-prefix and %output.
3952 2001-11-02 Akim Demaille <akim@epita.fr>
3954 * doc/refcard.tex: Update.
3956 2001-11-02 Akim Demaille <akim@epita.fr>
3958 * src/symtab.h (SUNDEF): New.
3959 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
3960 stand for `uninitialized', instead of 0.
3961 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
3962 * src/lex.c (lex): Adjust.
3964 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
3966 Let yylex return it instead of a plain 0.
3967 Reported by Dick Streefland.
3969 2001-11-02 Akim Demaille <akim@epita.fr>
3971 * tests/regression.at (Mixing %token styles): New test.
3973 2001-11-02 Akim Demaille <akim@epita.fr>
3975 * src/reader.c (parse_thong_decl): Formatting changes.
3976 (token_translations_init): New, extracted from...
3977 (packsymbols): Here.
3980 2001-11-01 Akim Demaille <akim@epita.fr>
3982 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
3983 Check that `9foo.y' produces correct cpp guards.
3984 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
3988 2001-11-01 Akim Demaille <akim@epita.fr>
3990 * tests/regression.at (Invalid input: 2): New.
3991 * src/lex.c (unlexed_token_buffer): New.
3992 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
3996 2001-11-01 Akim Demaille <akim@epita.fr>
3998 * tests/calc.at: Catch up with 1.30.
3999 * configure.in: Bump to 1.49a.
4000 Adjust to newer Autotest.
4002 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
4004 * src/conflicts.c: Move global variables rrc_total and src_total ...
4005 (print_conflicts): here.
4006 * src/output.c (output): Free global variable user_toknums.
4007 * src/lex.c (token_obstack): Become static.
4009 2001-10-18 Akim Demaille <akim@epita.fr>
4011 * tests/atlocal.in (GCC): Add.
4012 * tests/calc.at: s/m4_match/m4_bmatch/.
4013 s/m4_patsubst/m4_bpatsubst/.
4014 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
4015 * configure.in: AC_SUBST(GCC).
4017 2001-10-14 Marc Autret <autret_m@epita.fr>
4019 * src/options.c (create_long_option_table): Fix.
4021 2001-10-10 Akim Demaille <akim@epita.fr>
4023 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
4025 2001-10-04 Akim Demaille <akim@epita.fr>
4027 * src/reader.c (parse_union_decl): Push the caracters in
4028 union_obstack, not attrs_obstack.
4030 2001-10-04 Akim Demaille <akim@epita.fr>
4032 Merge in the branch 1.29.
4034 * src/reader.c (packsymbols): Use a temporary obstack for
4035 `%%tokendef', since output_stack is already used elsewhere.
4037 2001-10-02 Akim Demaille <akim@epita.fr>
4041 2001-10-02 Akim Demaille <akim@epita.fr>
4045 2001-10-02 Akim Demaille <akim@epita.fr>
4047 * tests/regression.at (Invalid CPP headers): New.
4048 From Alexander Belopolsky.
4049 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
4051 2001-10-02 Akim Demaille <akim@epita.fr>
4053 * tests/regression.at (Invalid input): New.
4054 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
4057 2001-10-02 Akim Demaille <akim@epita.fr>
4059 * tests/calc.at: Now that --debug works, the tests must be adjusted.
4061 2001-10-02 Akim Demaille <akim@epita.fr>
4063 * src/output.c (output_parser): Assert `skeleton'.
4064 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
4068 2001-10-01 Marc Autret <autret_m@epita.fr>
4070 * src/lex.h: Echo modifications.
4071 * src/lex.c (unlex): Parameter is now token_t.
4074 2001-10-01 Marc Autret <autret_m@epita.fr>
4076 * src/main.c: Include lex.h.
4079 2001-09-29 Akim Demaille <akim@epita.fr>
4081 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
4083 2001-09-28 Akim Demaille <akim@epita.fr>
4085 * tests/testsuite.at: Update to newer Autotest.
4086 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
4088 2001-09-27 Akim Demaille <akim@epita.fr>
4090 Position independent wrapper.
4092 * tests/bison: Remove.
4093 * tests/bison.in: New.
4094 * configure.in: Adjust.
4096 2001-09-27 Paul Eggert <eggert@twinsun.com>
4098 Port quotearg fixes from tar 1.13.24.
4100 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
4102 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
4103 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
4105 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
4106 * m4/mbrtowc.m4: New file.
4107 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
4108 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
4110 2001-09-27 Akim Demaille <akim@epita.fr>
4114 2001-09-27 Akim Demaille <akim@epita.fr>
4118 2001-09-25 Akim Demaille <akim@epita.fr>
4120 * src/system.h: Include `xalloc.h'.
4121 Remove it from the C files.
4122 * src/files.c (output_files): Free the obstacks.
4123 * src/lex.c (init_lex): Rename as...
4126 * src/main.c (main): Use it.
4128 2001-09-24 Marc Autret <autret_m@epita.fr>
4130 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
4131 to output informations in fout (FILE*).
4132 (open_graph, close_graph): Likewise.
4133 (output_graph, output_edge, output_node): Likewise.
4134 * src/vcg.h: Update function prototypes.
4135 * src/print_graph.c (print_graph): Open output graph file.
4136 (print_actions): Adjust.
4137 * src/files.h: Remove extern declaration.
4138 * src/files.c: Remove graph_obstack declaration.
4139 (open_files): Remove graph_obstack initialization.
4140 (output_files): Remove graph_obstack saving.
4142 2001-09-24 Marc Autret <autret_m@epita.fr>
4144 * src/files.c (compute_output_file_names): Fix.
4146 2001-09-24 Marc Autret <autret_m@epita.fr>,
4147 Akim Demaille <akim@epita.fr>
4149 * src/reader.c (reader): Remove call to free_symtab ().
4150 * src/main.c (main): Call it here.
4152 * src/conflicts.c (initialize_conflicts): Rename as...
4153 (solve_conflicts): this.
4154 * src/print.c (print_core, print_actions, print_state)
4155 (print_grammar): Dump to a file instead a `output_obstack'.
4156 (print_results): Dump `output_obstack', and then proceed with the
4158 * src/files.c (compute_output_file_names, close_files): New.
4159 (output_files): Adjust.
4160 * src/main.c (main): Adjust.
4162 2001-09-23 Marc Autret <autret_m@epita.fr>
4164 * src/files.c (compute_header_macro): Computes header macro name
4165 from spec_defines_file when given.
4167 2001-09-23 Marc Autret <autret_m@epita.fr>
4169 * src/files.c (output_files): Add default extensions.
4171 2001-09-22 Akim Demaille <akim@epita.fr>
4173 * src/conflicts.c (finalize_conflicts): Rename as...
4174 (free_conflicts): this.
4176 2001-09-22 Akim Demaille <akim@epita.fr>
4178 * src/gram.c (gram_free): Rename back as...
4180 (output_token_translations): Free `token_translations'.
4181 * src/symtab.c (free_symtab): Free the tag field.
4183 2001-09-22 Akim Demaille <akim@epita.fr>
4185 Remove `translations' as it is always set to true.
4187 * src/gram.h: Adjust.
4188 * src/reader.c (packsymbols, parse_token_decl): Adjust
4189 * src/print.c (print_grammar): Adjust.
4190 * src/output.c (output_token_translations): Adjust.
4191 * src/lex.c (lex): Adjust.
4192 * src/gram.c: Be sure the set pointers to NULL.
4193 (dummy): Rename as...
4196 2001-09-22 Akim Demaille <akim@epita.fr>
4198 * configure.in: Invoke AM_LIB_DMALLOC.
4199 * src/system.h: Use dmalloc.
4200 * src/LR0.c: Be sure to have pointers initialized to NULL.
4201 (allocate_itemsets): Allocate kernel_items only if needed.
4203 2001-09-22 Akim Demaille <akim@epita.fr>
4205 * configure.in: Bump to 1.29b.
4206 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
4207 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
4208 need xmalloc.c in calc.y.
4211 2001-09-21 Akim Demaille <akim@epita.fr>
4214 * Makefile.maint, config/config.guess, config/config.sub,
4215 * config/missing: Update from masters.
4216 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
4218 * configure.in (ALL_LINGUAS): Add `tr'.
4220 2001-09-21 Akim Demaille <akim@epita.fr>
4222 * tests/Makefile.am (package.m4): Move to...
4223 ($(srcdir)/$(TESTSUITE)): here.
4225 2001-09-20 Akim Demaille <akim@epita.fr>
4227 * src/complain.c: No longer try to be standalone: use system.h.
4228 Don't assume __STDC__ is defined to 1. Just test if it is defined.
4229 * src/complain.h: Likewise.
4230 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
4231 Remove the unused variable `n'.
4232 From Albert Chin-A-Young.
4234 2001-09-18 Marc Autret <autret_m@epita.fr>
4236 * doc/bison.1: Update.
4237 * doc/bison.texinfo (Bison Options): Update --defines and --graph
4239 (Option Cross Key): Update.
4242 2001-09-18 Marc Autret <autret_m@epita.fr>
4244 * tests/regression.at: New test (comment in %union).
4246 2001-09-18 Marc Autret <autret_m@epita.fr>
4248 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
4250 Reported by Keith Browne.
4252 2001-09-18 Marc Autret <autret_m@epita.fr>
4254 * tests/output.at: Add tests for --defines and --graph.
4256 2001-09-18 Marc Autret <autret_m@epita.fr>
4258 * tests/output.at: Removes tests of %{header,src}_extension features.
4260 2001-09-18 Akim Demaille <akim@epita.fr>
4262 * tests/Makefile.am (package.m4): New.
4263 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
4264 (_AT_CHECK_CALC_ERROR): Likewise.
4265 Factor the `, ' part of verbose error messages.
4267 2001-09-18 Marc Autret <autret_m@epita.fr>
4269 * src/getargs.c (longopts): Declare --defines and --graph as options
4270 with optional arguments.
4271 * src/files.h: Add extern declarations.
4272 * src/files.c (spec_graph_file, spec_defines_file): New.
4273 (output_files): Update.
4274 Remove CPP-outed code.
4276 2001-09-18 Marc Autret <autret_m@epita.fr>
4278 Turn off %{source,header}_extension feature.
4280 * src/files.c (compute_exts_from_gf): Update.
4281 (compute_exts_from_src): Update.
4282 (output_files): CPP-out useless code.
4283 * src/files.h: Remove {header,source}_extension extern declarations.
4284 * src/reader.c (parse_dquoted_param): CPP-out.
4285 (parse_header_extension_decl): Remove.
4286 (parse_source_extension_decl): Remove.
4287 (read_declarations): Remove cases tok_{hdrext,srcext}.
4288 * src/lex.c (percent_table): Remove {header,source}_extension entries.
4289 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
4291 2001-09-10 Akim Demaille <akim@epita.fr>
4293 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
4294 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
4295 (AT_CHECK_OUTPUT): this.
4296 Merely check ls' exit status, its output is useless.
4298 2001-09-10 Akim Demaille <akim@epita.fr>
4300 * tests/calc.at: Use m4_match.
4301 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
4303 2001-09-10 Marc Autret <autret_m@epita.fr>,
4304 Akim Demaille <akim@epita.fr>
4306 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
4308 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
4310 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
4311 * src/lex.h: Adjust prototype.
4312 (token_t): Add `tok_undef'.
4313 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
4314 (parse_percent_token): Now returns token_t.
4315 Add default statement in switch.
4316 (lex): Separate `c' as an input variable, from the token_t result
4318 (unlexed): Is a token_t.
4320 2001-09-10 Akim Demaille <akim@epita.fr>
4322 * configure.in: Bump to 1.29a.
4324 2001-09-07 Akim Demaille <akim@epita.fr>
4328 2001-08-30 Akim Demaille <akim@epita.fr>
4330 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
4331 * m4/atconfig.m4: Remove.
4332 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
4334 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
4335 m4_if, m4_patsubst, and m4_regexp.
4336 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
4337 `input' file instead of echo.
4339 2001-08-29 Akim Demaille <akim@epita.fr>
4343 2001-08-29 Akim Demaille <akim@epita.fr>
4347 2001-08-29 Paul Eggert <eggert@twinsun.com>
4349 * src/bison.simple (yyparse): Don't take the address of an
4350 item before the start of an array, as that doesn't conform to
4353 2001-08-29 Robert Anisko <anisko_r@epita.fr>
4355 * doc/bison.texinfo (Location Tracking Calc): New node.
4357 2001-08-29 Paul Eggert <eggert@twinsun.com>
4359 * src/output.c (output): Do not define const, as this now
4360 causes more problems than it cures.
4362 2001-08-29 Akim Demaille <akim@epita.fr>
4364 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
4366 Be sure to tag the `detailmenu'.
4368 2001-08-29 Akim Demaille <akim@epita.fr>
4370 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
4371 download in a tmp dir.
4373 2001-08-28 Marc Autret <autret_m@epita.fr>
4375 * config/depcomp: New file.
4377 2001-08-28 Marc Autret <autret_m@epita.fr>
4379 * doc/bison.1 (mandoc): Adjust.
4380 From Juan Manuel Guerrero.
4382 2001-08-28 Marc Autret <autret_m@epita.fr>
4384 * src/print_graph.c (print_state): Fix.
4386 2001-08-27 Marc Autret <autret_m@epita.fr>
4388 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
4390 Echo modifications to the functions prototypes.
4391 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
4393 2001-08-27 Marc Autret <autret_m@epita.fr>
4395 * src/vcg.c: Include `xalloc.h'.
4396 (add_colorentry): New.
4397 (add_classname): New.
4398 (add_infoname): New.
4399 * src/vcg.h: Add new prototypes.
4401 2001-08-27 Akim Demaille <akim@epita.fr>
4403 * Makefile.maint: Sync. again with CVS Autoconf.
4405 2001-08-27 Akim Demaille <akim@epita.fr>
4407 * Makefile.maint: Formatting changes.
4408 (po-update, cvs-update, update): New targets.
4411 2001-08-27 Akim Demaille <akim@epita.fr>
4413 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4414 * Makefile.maint: Sync. with CVS Autoconf.
4416 2001-08-27 Marc Autret <autret_m@epita.fr>
4418 * src/vcg.h (struct infoname_s): New.
4419 (struct colorentry_s): New.
4420 (graph_s): New fields {vertical,horizontal}_order in structure.
4421 Add `infoname' field.
4422 Add `colorentry' field;
4423 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
4424 (G_HORIZONTAL_ORDER): New.
4426 (G_COLORENTRY): New.
4427 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
4428 Add output of `infoname'.
4429 Add output of `colorentry'.
4431 2001-08-27 Marc Autret <autret_m@epita.fr>
4433 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
4434 This one shadowed a global parameter.
4436 2001-08-24 Marc Autret <autret_m@epita.fr>
4438 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
4439 instead of `unsigned'.
4440 (print_state): Do not call obstack_object_size () in obstack_grow ()
4441 to avoid macro variables shadowing.
4443 2001-08-23 Marc Autret <autret_m@epita.fr>
4445 * src/lex.c (percent_table): Typo: s/naem/name/.
4447 Normalize new options declarations.
4449 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
4451 * tests/suite.at: Exercise %header_extension and %source_extension.
4453 2001-08-16 Marc Autret <autret_m@epita.fr>
4455 * src/reader.c (parse_dquoted_param): New.
4456 (parse_header_extension_decl): Use it.
4457 (parse_source_extension_decl): Likewise.
4459 2001-08-16 Marc Autret <autret_m@epita.fr>
4461 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
4462 (get_xxxx_str): Use assert () instead of complain ().
4463 Remove return invokations in default cases.
4464 (get_decision_str): Modify default behaviour. Remove second argument.
4465 Echo modifications on calls.
4466 (output_graph): Fix.
4468 2001-08-16 Marc Autret <autret_m@epita.fr>
4470 * src/getargs.c (usage): Update with ``-g, --graph''.
4472 2001-08-16 Marc Autret <autret_m@epita.fr>
4474 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
4475 (Option Cross Key): Likewise.
4476 * doc/bison.1: Update.
4478 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
4480 * src/output.c (output_master_parser): Don't finish action_obstack.
4481 (output_parser): Don't care about the muscle action, here.
4482 (prepare): Copy the action_obstack in the action muscle.
4483 (output): Free action_obstack.
4485 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
4487 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
4488 will contain `%union' declaration.
4489 (parse_union_decl): Delete #line directive output.
4490 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
4491 informations about %union.
4492 (parse_union_decl): Copy the union_obstack in the muscle stype.
4493 * src/bison.simple: Add new #line directive.
4494 Add typdef %%stype YYSTYPE.
4496 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
4498 * src/bison.simple: Add new `#line' directive.
4500 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
4502 * src/bison.simple: New `#line' directive.
4503 * src/output.c (output_parser): Support new dynamic muscle input_line.
4505 2001-09-22 Marc Autret <autret_m@epita.fr>
4507 * src/output.c (output_master_parser): New.
4508 (output_parser): Be more re-entrant.
4510 2001-09-21 Marc Autret <autret_m@epita.fr>
4512 * src/reader.c (copy_definition, parse_union_decl): Update and use
4514 (copy_action): Likewise.
4515 Use obstack_1grow ().
4516 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
4518 2001-09-21 Marc Autret <autret_m@epita.fr>
4520 * src/options.c (option_table): Adjust.
4521 * src/lex.c (parse_percent_token): Fix.
4523 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
4525 * src/options.c (symtab.h): Include it, need by lex.h.
4527 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
4529 * src/lex.c (parse_percent_token): Change type of variable `tx', which
4530 is now an option_table_struct*.
4531 (option_strcmp): New function option_strcmp.
4532 (parse_percent_token): Call option_strcmp.
4533 * src/getargs.c (xalloc.h, options.h): Include it.
4534 (getargs): Call create_long_option_table.
4535 (getargs): Free longopts at the end of the function.
4536 (shortopts): Move in options.c.
4537 * src/options.c (create_long_option_table): New function. Convert
4538 information from option_table to option structure.
4539 * src/reader.c (options.h): Include it.
4541 * src/Makefile.am: Adjust.
4542 * src/options.c (option_table): Create from longopts and percent_table.
4543 * src/getargs.c (longopts): Delete.
4544 * src/lex.c (struct percent_table_struct): Delete.
4545 (percent_table): Delete.
4546 (options.h): Include it.
4547 * src/options.c: Create.
4548 * src/options.h: Create.
4549 Declare enum opt_access_e.
4550 Define struct option_table_struct.
4552 2001-09-20 Marc Autret <autret_m@epita.fr>
4554 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
4557 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
4559 * src/bison.simple: s/%%filename/%%skeleton.
4560 * src/muscle_tab.c (getargs.h): Include it.
4561 (muscle_init): Insert new muscle skeleton.
4563 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
4565 * src/output.c (output_parser): Delete unused variable actions_dumped.
4567 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
4569 * src/output.c (output): Delete call to reader_output_yylsp.
4570 * src/reader.c (reader): Likewise.
4571 * src/reader.h: Delete declaration of reader_output_yylsp.
4573 2001-09-02 Marc Autret <autret_m@epita.fr>
4575 * src/reader.c: Include muscle_tab.h.
4576 (parse_union_decl): Update.
4577 (parse_macro_decl): Rename parse_muscle_decl.
4578 Update to use renamed functions and variable.
4579 (read_declarations, copy_action, read_additionnal_code, : Updated
4580 with correct variables and functions names.
4581 (packsymbols, reader): Likewise.
4583 * src/reader.h (muscle_obstack): Extern declaration update.
4585 * src/output.c: Include muscle_tab.h
4586 In all functions using macro_insert, change by using muscle_insert ().
4587 (macro_obstack): Rename muscle_obstack.
4588 Echo modifications in the whole file.
4589 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
4590 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
4591 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
4593 * src/muscle_tab.h: Update double inclusion macros.
4594 (macro_entry_s): Rename muscle_entry_s.
4597 * src/muscle_tab.c: Include muscle_tab.h.
4598 Rename macro_tabble to muscle_table.
4599 (mhash1, mhash2, mcmp): Use muscle_entry.
4600 (macro_init): Rename muscle_init. Update.
4601 (macro_insert): Rename muscle_insert. Update.
4602 (macro_find): Rename muscle_find. Update.
4604 * src/main.c: Include muscle_tab.h.
4605 (main): Call muscle_init ().
4606 * src/Makefile.am (bison_SOURCES): Echo modifications.
4608 2001-09-02 Marc Autret <autret_m@epita.fr>
4610 Now the files macro_tab.[ch] are named muscle_tab.[ch].
4612 * src/muscle_tab.c, src/muscle_tab.h: Add files.
4614 2001-09-02 Marc Autret <autret_m@epita.fr>
4616 * src/macrotab.c, src/macrotab.h: Remove.
4618 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
4620 * src/reader.c (copy_guard): Use muscle to specify the `#line'
4623 2001-09-01 Marc Autret <autret_m@epita.fr>
4625 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
4626 to an explicit value to activate the feature. We do it here.
4628 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4630 * src/output.c (prepare): Delete the `filename' muscule insertion.
4631 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
4632 (parse_union_decl): Likewise.
4633 * src/macrotab.c (macro_init): Initialize filename by infile.
4635 2001-08-31 Marc Autret <autret_m@epita.fr>
4637 * src/bison.simple (YYLSP_NEEDED): New definition.
4638 * src/output.c (prepare): Add macro insertion of `locations_flag'
4640 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4642 * src/output.c (prepare): Delete insertion of previous muscles,
4643 and insert the `prefix' muscles.
4644 * src/macrotab.c (macro_init): Likewise.
4645 (macro_init): Initialization prefix directive by `yy'.
4646 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
4647 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
4648 yylval, yydebug, yyerror, yynerrs and yyparse.
4649 New directive `#define' to substitute yydebug, ... with option
4652 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4654 * src/main.c (main): Standardize.
4655 * src/output.c (output_table_data, output_parser): Likewise.
4656 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
4658 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
4660 * src/reader.c (read_additionnal_code): Rename %%user_code to
4662 * src/output.c (output): Rename %%declarations to %%prologue.
4663 * src/bison.simple: Echo modifications.
4665 2001-08-31 Marc Autret <autret_m@epita.fr>
4667 * src/reader.c (readgram): CleanUp.
4668 (output_token_defines): Likewise.
4669 (packsymbols): Likewise.
4671 * src/output.c (output): CPP-out useless code.
4673 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4675 * src/reader.c (reader): Delete obsolete call to function
4676 output_trailers and output_headers.
4677 * src/output.h: Remove obsolete functions prototypes of output_headers
4678 and output_trailers.
4680 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
4682 * src/main.c: Include macrotab.h.
4683 * src/macrotab.h (macro_entry_s): Constify fields.
4684 Adjust functions prototypes.
4685 * src/macrotab.c (macro_insert): Constify key and value.
4686 (macro_find): Constify key.
4687 (macro_insert): Include 'xalloc.h'
4688 (macro_insert): Use XMALLOC.
4689 (macro_find): Constify return value.
4690 * src/output.c (output_table_data): Rename table to table_data.
4691 (output_parser): Constify macro_key, macro_value.
4693 2001-08-30 Marc Autret <autret_m@epita.fr>
4695 * src/reader.c (parse_skel_decl): New.
4696 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
4697 * src/lex.h (token_t): New token `tok_skel'.
4698 * src/lex.c (percent_table): Add skeleton option entry.
4701 2001-08-29 Marc Autret <autret_m@epita.fr>
4703 * src/bison.simple: Add %%user_code directive at the end.
4704 * src/reader.c (read_additionnal_code): New.
4706 * src/output.c (output_program): Remove.
4709 2001-08-28 Marc Autret <autret_m@epita.fr>
4711 * src/output.c (output_actions): Clean up.
4712 (output_gram): CPP-out useless code.
4713 * src/reader.c (reader): Clean up, CPP-out useless code.
4715 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
4717 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
4719 * src/bison.simple: Add `%%definitions'.
4721 2001-08-28 Marc Autret <autret_m@epita.fr>
4723 * config/depcomp: New file.
4725 2001-08-27 Paul Eggert <eggert@twinsun.com>
4727 * src/bison.simple (yyparse): Don't take the address of an
4728 item before the start of an array, as that doesn't conform to
4731 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4733 * src/output.c (output): Remove the initialization of the macro
4734 obstack. It was done too late here.
4736 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
4738 (reader): Initialize the macro obstack here, since we need it to grow
4739 '%define' directives.
4741 * src/reader.h: Declare the macro obstack as extern.
4743 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4745 * src/output.c (output_parser): Fix. Store single '%' characters in
4746 the output obstack instead of throwing them away.
4748 2001-08-27 Akim Demaille <akim@epita.fr>
4750 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4752 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4754 * lib/Makefile.am: Adjust.
4756 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4758 * src/bison.simple: Update and add '%%' directives.
4760 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4762 * src/reader.c (reader): Remove calls to 'output_headers' and
4763 'output_trailers'. Remove some C output.
4764 (readgram): Disable a piece of code that was writing a default
4765 definition for 'YYSTYPE'.
4766 (reader_output_yylsp): Remove.
4767 (packsymbols): Output token defintions to a macro.
4768 (copy_definition): Disable C output.
4770 * src/reader.c (parse_macro_decl): New function used to parse macro
4772 (copy_string2): Put the body of copy_string into this new function.
4773 Add a parameter to let the caller choose whether he wants to copy the
4774 string delimiters or not.
4775 (copy_string): Be a simple call to copy_string2 with the last argument
4777 (read_declarations): Add case for macro definition.
4778 (copy_identifier): New.
4779 (parse_macro_decl): Read macro identifiers using copy_identifier
4782 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4784 * src/output.c (prepare): Add prefixed names.
4785 (output_parser): Output semantic actions.
4786 (output_parser): Fix bug on '%%line' directives.
4788 * src/output.c (output_headers): Remove. The C code printed by this
4789 function should now be in the skeletons.
4790 (output_trailers): Remove.
4791 (output): Disable call to 'reader_output_yylsp'.
4792 (output_rule_data): Do not output tables to the table obstack.
4794 * src/output.c: Remove some C dedicated output.
4795 Improve the use of macro and output obstacks.
4796 (output_defines): Remove.
4798 * src/output.c (output_token_translations): Associate 'translate'
4799 table with a macro. No output to the table obstack.
4800 (output_gram): Same for 'rhs' and 'prhs'.
4801 (output_stos): Same for 'stos'.
4802 (output_rule_data): Same for 'r1' and 'r2'.
4803 (token_actions): Same for 'defact'.
4804 (goto_actions): Same for 'defgoto'.
4805 (output_base): Same for 'pact' and 'pgoto'.
4806 (output_table): Same for 'table'.
4807 (output_check): Same for 'check'.
4809 * src/output.c (output_table_data): New function.
4810 (output_short_table): Remove.
4811 (output_short_or_char_table): Remove.
4813 * src/output.c (output_parser): Replace most of the skeleton copy code
4814 with something new. Skeletons are now processed character by character
4815 rather than line by line, and Bison looks for '%%' macros. This is the
4816 first step in making Bison's output process (a lot) more flexible.
4817 (output_parser): Use the macro table.
4819 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4821 * src/main.c (main): Initialize the macro table.
4823 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4825 * src/lex.c (percent_table): Add tok_define.
4826 * src/lex.h: Add tok_define.
4828 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4830 * src/macrotab.c: New file.
4831 * src/macrotab.h: New file.
4832 * src/Makefile.am: Update.
4834 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4836 * lib/hash.c: New file.
4837 * lib/hash.h: New file.
4838 * lib/Makefile.am: Update.
4840 2001-08-15 Akim Demaille <akim@epita.fr>
4844 2001-08-15 Marc Autret <autret_m@epita.fr>
4846 * src/reader.c (readgram): Indent output macro YYSTYPE.
4847 (packsymbols): Likewise.
4848 (output_token_defines): Likewise.
4849 * src/files.c: Standardize.
4850 (compute_header_macro): New.
4851 (defines_obstack_save): New. Use compute_header_macro.
4852 (output_files): Update. Use defines_obstack_save.
4854 2001-08-15 Akim Demaille <akim@epita.fr>
4856 * doc/bison.texinfo (Table of Symbols): Document
4859 2001-08-15 Akim Demaille <akim@epita.fr>
4861 * missing: Update from CVS Automake.
4862 * config/config.guess, config/config.sub, config/texinfo.tex:
4863 Update from gnu.org.
4865 2001-08-15 Akim Demaille <akim@epita.fr>
4867 * Makefile.maint: Sync with CVS Autoconf.
4869 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
4871 * doc/bison.texinfo: Include GNU Free Documentation License from
4873 * doc/fdl.texi: Add to package.
4875 2001-08-14 Marc Autret <autret_m@epita.fr>
4877 Turn on %{source,header}_extension features.
4879 * src/lex.c (percent_table): Un-CPP out header_extension and
4881 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
4882 (compute_exts_from_src): Remove conditions. It restores priorities
4885 2001-08-14 Marc Autret <autret_m@epita.fr>
4887 * src/files.c (compute_base_names): Add extensions computing when
4888 `--file-prefix' used.
4889 Standardize function calls.
4891 2001-08-13 Marc Autret <autret_m@epita.fr>
4893 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
4894 defining it (defined but null disables alloca).
4896 2001-08-13 Marc Autret <autret_m@epita.fr>
4898 * src/bison.simple (_yy_memcpy): CPP reformat.
4900 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
4902 * tests/atconfig.in (CPPFLAGS): Fix.
4904 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
4906 * doc/bison.texinfo: Include GNU General Public License from
4908 * doc/gpl.texi: Add to package.
4910 2001-08-10 Marc Autret <autret_m@epita.fr>
4912 * src/print_graph.h: Fix.
4913 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
4915 2001-08-10 Akim Demaille <akim@epita.fr>
4917 * src/system.h: Provide default declarations for stpcpy, strndup,
4920 2001-08-10 Robert Anisko <anisko_r@epita.fr>
4922 * doc/bison.texinfo (Locations): Update @$ stuff.
4924 2001-08-09 Robert Anisko <anisko_r@epita.fr>
4926 * src/bison.simple (YYLLOC_DEFAULT): Update.
4929 2001-08-08 Marc Autret <autret_m@epita.fr>
4931 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
4932 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
4933 Reported by Fabrice Bauzac.
4935 2001-08-08 Marc Autret <autret_m@epita.fr>
4937 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
4938 * src/vcg.c (output_node): Fix.
4939 * src/vcg.h: Cleanup.
4940 * src/print_graph.c: Add comments.
4941 (node_output_size): New global variable. Simplify the formatting of
4942 the VCG graph output.
4943 (print_actions): Unused code is now used. It notifies the final state
4944 and no action states in the VCG graph. It also give the reduce actions.
4945 The `shift and goto' edges are red and the `go to state' edges are
4947 Get the current node name and node_obstack by argument.
4948 (node_obstack): New variable.
4949 (print_state): Manage node_obstack.
4950 (print_core): Use node_obstack given by argument.
4951 A node is not only computed here but in print_actions also.
4952 (print_graph): CPP out useless code instead of commenting it.
4954 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
4956 * tests/atconfig.in (CPPFLAGS): Fix.
4958 2001-08-07 Akim Demaille <akim@epita.fr>
4960 * src/print_graph.c (quote): New.
4961 (print_core): Use it.
4963 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
4965 * src/vcg.c (complain.h): Include it.
4966 Unepitaize `return' invocations.
4967 [NDEBUG] (main): Remove.
4968 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
4969 * src/files.c (open_files): Initialize graph_obstack.
4970 * src/print_graph.c (print_actions): CPP out useless code.
4971 (print_core): Don't output the last `\n' in labels.
4973 * src/files.c (output_files): Output the VCG file.
4974 * src/main.c (main): Invoke print_graph ();
4976 2001-08-06 Marc Autret <autret_m@epita.fr>
4978 Automaton VCG graph output.
4979 Using option ``-g'' or long option ``--graph'', you can generate
4980 a gram_filename.vcg file containing a VCG description of the LALR (1)
4981 automaton of your grammar.
4983 * src/main.c: Call to print_graph() function.
4984 * src/getargs.h: Update.
4985 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
4986 (graph_flag): New flag.
4988 (getargs): Add case `g'.
4989 * src/files.c (graph_obstack): New obstack struct.
4990 (open_files): Initialize new obstack.
4991 (output_files): Saves graph_obstack if required.
4992 * src/files.h (graph_obstack): New extern declaration.
4993 * src/Makefile.am: Add new source files.
4995 2001-08-06 Marc Autret <autret_m@epita.fr>
4997 * src/print_graph.c, src/print_graph.h (graph): New.
4998 * src/vcg.h: New file.
4999 * src/vcg.c: New file, VCG graph handling.
5001 2001-08-06 Marc Autret <autret_m@epita.fr>
5003 Add of %source_extension and %header_extension which specify
5004 the source or/and the header output file extension.
5006 * src/files.c (compute_base_names): Remove initialisation of
5007 src_extension and header_extension.
5008 (compute_exts_from_gf): Update.
5009 (compute_exts_from_src): Update.
5010 (output_files): Update.
5011 * src/reader.c (parse_header_extension_decl): New.
5012 (parse_source_extension_decl): New.
5013 (read_declarations): New case statements for the new tokens.
5014 * src/lex.c (percent_table): Add entries for %source_extension
5015 and %header_extension.
5016 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
5018 2001-08-06 Marc Autret <autret_m@epita.fr>
5020 * configure.in: Bump to 1.28c.
5021 * doc/bison.texinfo: Texinfo thingies.
5023 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
5025 * tests/atconfig.in (CPPFLAGS): Add.
5026 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
5028 2001-08-03 Akim Demaille <akim@epita.fr>
5032 2001-08-03 Akim Demaille <akim@epita.fr>
5034 * tests/Makefile.am (check-local): Ship testsuite.
5035 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
5038 2001-08-03 Akim Demaille <akim@epita.fr>
5040 * configure.in: Try using -Wformat when compiling.
5042 2001-08-03 Akim Demaille <akim@epita.fr>
5044 * configure.in: Bump to 1.28b.
5046 2001-08-03 Akim Demaille <akim@epita.fr>
5048 * src/complain.c: Adjust strerror_r portability issues.
5050 2001-08-03 Akim Demaille <akim@epita.fr>
5054 2001-08-03 Akim Demaille <akim@epita.fr>
5056 * src/getargs.c, src/getarg.h (skeleton)): Constify.
5057 * src/lex.c (literalchar): Avoid name clashes on `buf'.
5058 * src/getargs.c: Include complain.h.
5059 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
5060 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
5062 2001-08-03 Akim Demaille <akim@epita.fr>
5064 * src/reader.c (readgram): Display hidden chars in error messages.
5066 2001-08-03 Akim Demaille <akim@epita.fr>
5068 Update to gettext 0.10.39.
5070 2001-08-03 Akim Demaille <akim@epita.fr>
5072 * lib/strspn.c: New.
5074 2001-08-01 Marc Autret <autret_m@epita.fr>
5076 * doc/bison.texinfo: Update.
5077 * doc/bison.1 (mandoc): Update.
5078 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
5079 * src/files.c: Support output files extensions computing.
5080 (src_extension): New static variable.
5081 (header_extension): New static variable.
5083 (get_extension_index): New function, gets the index of an extension
5084 filename in a string.
5085 (compute_exts_from_gf): New function, computes extensions from the
5086 grammar file extension.
5087 (compute_exts_from_src): New functions, computes extensions from the
5088 C source file extension, file given by ``-o'' option.
5089 (compute_base_names): Update.
5090 (output_files): Update.
5092 2001-08-01 Robert Anisko <anisko_r@epita.fr>
5094 * doc/bison.texi: Document @$.
5095 (Locations): New section.
5097 2001-07-18 Akim Demaille <akim@epita.fr>
5099 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
5100 * config/prev-version.txt, config/move-if-change: New.
5101 * Makefile.am: Adjust.
5103 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
5105 * src/bison.simple (yyparse): Suppress warning `comparaison
5106 between signed and unsigned'.
5108 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
5110 * src/getargs.h (raw_flag): Remove.
5111 * src/getargs.c: Die on `-r'/`--raw'.
5112 * src/lex.c (parse_percent_token): Die on `%raw'.
5113 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
5114 * tests/calc.at: Suppress test with option `--raw'.
5116 2001-07-14 Akim Demaille <akim@epita.fr>
5119 * configure.in: Require Autoconf 2.50.
5120 Update to gettext 0.10.38.
5122 2001-03-16 Akim Demaille <akim@epita.fr>
5124 * doc/bison.texinfo: ANSIfy the examples.
5126 2001-03-16 Akim Demaille <akim@epita.fr>
5128 * getargs.c (skeleton): New variable.
5129 (longopts): --skeleton is a new option.
5130 (shortopts, getargs): -S is a new option.
5131 * getargs.h: Declare skeleton.
5132 * output.c (output_parser): Use it.
5134 2001-03-16 Akim Demaille <akim@epita.fr>
5136 * m4/strerror_r.m4: New.
5137 * m4/error.m4: Run AC_FUNC_STRERROR_R.
5138 * lib/error.h, lib/error.c: Update.
5140 2001-03-16 Akim Demaille <akim@epita.fr>
5142 * src/getargs.c (longopts): Clean up.
5144 2001-02-21 Akim Demaille <akim@epita.fr>
5146 * src/reader.c (gensym): `gensym_count' is your own.
5147 Use a static buf to create the symbol name, as token_buffer is no
5150 2001-02-08 Akim Demaille <akim@epita.fr>
5152 * src/conflicts.c (conflict_report): Be sure not to append to res
5153 between two calls, which could happen if both first sprintf were
5154 skipped, but not the first cp += strlen.
5156 2001-02-08 Akim Demaille <akim@epita.fr>
5158 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
5159 New, from fileutils 4.0.37.
5160 * configure.in: Require Autoconf 2.49c. I took some time before
5161 making this decision. This is the only way out for portability
5162 issues in Bison, it would mean way too much duplicate effort to
5163 import in Bison features implemented in 2.49c since 2.13.
5164 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
5166 2001-02-02 Akim Demaille <akim@epita.fr>
5168 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
5169 * lib/xalloc.h, lib/xmalloc.c: Update.
5171 2001-01-19 Akim Demaille <akim@epita.fr>
5173 Get rid of the ad hoc handling of token_buffer in the scanner: use
5176 * src/lex.c (token_obstack): New.
5177 (init_lex): Initialize it. No longer call...
5178 (grow_token_buffer): this. Remove it.
5179 Adjust all the places which used it to use the obstack.
5181 2001-01-19 Akim Demaille <akim@epita.fr>
5183 * src/lex.h: Rename all the tokens:
5184 s/\bENDFILE\b/tok_eof/g;
5185 s/\bIDENTIFIER\b/tok_identifier/g;
5187 Let them be enums, not #define, to ease debugging.
5188 Adjust all the code.
5190 2001-01-18 Akim Demaille <akim@epita.fr>
5192 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
5193 * src/lex.c (maxtoken, grow_token_buffer): Static.
5195 2001-01-18 Akim Demaille <akim@epita.fr>
5197 Since we now use obstacks, more % directives can be enabled.
5199 * src/lex.c (percent_table): Also accept `%yacc',
5200 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
5202 Handle the actions for `%semantic_parser' and `%pure_parser' here,
5203 instead of returning a token.
5204 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
5205 * src/reader.c (read_declarations): Adjust.
5206 * src/files.c (open_files): Don't call `compute_base_names', don't
5207 compute `attrsfile' since they depend upon data which might be
5208 *in* the input file now.
5209 (output_files): Do it here.
5210 * src/output.c (output_headers): Document the fact that this patch
5211 introduces a guaranteed SEGV for semantic parsers.
5212 * doc/bison.texinfo: Document them.
5213 * tests/suite.at: Exercise these %options.
5215 2000-12-20 Akim Demaille <akim@epita.fr>
5217 Also handle the output file (--verbose) with obstacks.
5219 * files.c (foutput): Remove.
5220 (output_obstack): New.
5221 Adjust all dependencies.
5222 * src/conflicts.c: Return a string.
5223 * src/system.h (obstack_grow_string): Rename as...
5224 (obstack_sgrow): this. Be ready to work with non literals.
5225 (obstack_fgrow4): New.
5227 2000-12-20 Akim Demaille <akim@epita.fr>
5229 * src/files.c (open_files): Fix the computation of short_base_name
5230 in the case of `-o foo.tab.c'.
5232 2000-12-20 Akim Demaille <akim@epita.fr>
5234 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
5235 (copy_dollar): Now that everything uses obstacks, get rid of the
5238 2000-12-20 Akim Demaille <akim@epita.fr>
5240 * src/files.c (open_files): Actually the `.output' file is based
5241 on the short_base_name, not base_name.
5242 * tests/suite.at (Checking output file names): Adjust.
5244 2000-12-20 Akim Demaille <akim@epita.fr>
5246 * src/bison.s1: Remove, we now use directly...
5247 * src/bison.simple: this.
5248 * src/Makefile.am: Use pkgdata instead of data.
5250 2000-12-20 Akim Demaille <akim@epita.fr>
5252 * src/files.c (guard_obstack): New.
5253 (open_files): Initialize it.
5254 (output_files): Dump it...
5255 * src/files.h: Export it.
5256 * src/reader.c (copy_guard): Use it.
5258 2000-12-19 Akim Demaille <akim@epita.fr>
5260 * src/files.c (outfile, defsfile, actfile): Removed as global
5262 (open_files): Don't compute them.
5263 (output_files): Adjust.
5264 (base_name, short_base_name): Be global.
5265 Adjust dependencies.
5267 2000-12-19 Akim Demaille <akim@epita.fr>
5269 * src/files.c (strsuffix): New.
5270 (stringappend): Be just like strcat but allocate.
5271 (base_names): Eve out from open_files.
5272 Try to simplify the rather hairy computation of base_name and
5274 (open_files): Use it.
5275 * tests/suite.at (Checking output file names): New test.
5277 2000-12-19 Akim Demaille <akim@epita.fr>
5279 * src/system.h (obstack_grow_literal_string): Rename as...
5280 (obstack_grow_string): this.
5281 * src/output.c (output_parser): Recognize `%% actions' instead of
5283 * src/bison.s1: s/$/%% actions/.
5284 * src/bison.hairy: Likewise.
5286 2000-12-19 Akim Demaille <akim@epita.fr>
5288 * src/output.c (output_parser): Compute the `#line' lines when
5290 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
5291 Suggested by Hans Aberg.
5293 2000-12-19 Akim Demaille <akim@epita.fr>
5295 Let the handling of the skeleton files be local to the procedures
5298 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
5300 (fparser, open_extra_files): Remove.
5301 (open_files, output_files): Don't take care of fparser.
5302 * src/files.h: Adjust.
5303 * src/output.c (output_parser): Open and close the file to the
5305 * src/reader.c (read_declarations): When %semantic_parser, open
5308 2000-12-19 Akim Demaille <akim@epita.fr>
5310 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
5311 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
5313 2000-12-19 Akim Demaille <akim@epita.fr>
5315 * src/files.c (open_files): Yipee! We no longer need all the code
5316 looking for `/tmp' since we have no tmp file.
5318 2000-12-19 Akim Demaille <akim@epita.fr>
5320 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
5322 * src/files.c (open_files): Less dependency on MSDOS etc.
5324 2000-12-14 Akim Demaille <akim@epita.fr>
5326 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
5327 Provide a default definition.
5328 Use it when executing the default @ action.
5329 * src/reader.c (reader_output_yylsp): No longer include
5330 `timestamp' and `text' in the default YYLTYPE.
5332 2000-12-12 Akim Demaille <akim@epita.fr>
5334 * src/reader.c (copy_definition, parse_union_decl, copy_action)
5335 (copy_guard): Quote the file names.
5336 Reported by Laurent Mascherpa.
5338 2000-12-12 Akim Demaille <akim@epita.fr>
5340 * src/output.c (output_headers, output_program, output): Be sure
5341 to escape special characters when outputting filenames.
5342 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
5343 (output_headers): Don't depend on them, Use ACTSTR.
5345 2000-11-17 Akim Demaille <akim@epita.fr>
5347 * lib/obstack.h: Formatting changes.
5348 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
5349 prevents type checking.
5350 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
5351 cast the value to (void *): assigning a `foo *' to a `void *'
5353 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
5354 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
5357 2000-11-17 Akim Demaille <akim@epita.fr>
5359 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
5361 (suite.m4, regression.m4, calc.m4): these.
5362 * tests/atgeneral.m4: Update from CVS Autoconf.
5364 2000-11-17 Akim Demaille <akim@epita.fr>
5366 * tests/regression.m4 (%union and --defines): New test,
5367 demonstrating a current bug in the obstack implementation.
5369 2000-11-17 Akim Demaille <akim@epita.fr>
5371 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
5373 Use them to declare the variables which are global or local to
5376 2000-11-17 Akim Demaille <akim@epita.fr>
5378 * acconfig.h: Remove, no longer used.
5380 2000-11-07 Akim Demaille <akim@epita.fr>
5382 * src: s/Copyright (C)/Copyright/g.
5384 2000-11-07 Akim Demaille <akim@epita.fr>
5386 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
5388 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
5390 2000-11-07 Akim Demaille <akim@epita.fr>
5392 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
5393 Merge in a single CPP if/else.
5395 2000-11-07 Akim Demaille <akim@epita.fr>
5397 * src/output.c (output): Remove useless variables.
5398 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
5399 argument `data' for consistency with the prototypes.
5401 (obstack_copy, obstack_copy0): Rename the second argument as
5402 `address' for consistency. Qualify it `const'.
5403 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
5404 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
5405 `const' their input argument (`data' or `address').
5406 Adjust the corresponding macros to include `const' in casts.
5408 2000-11-03 Akim Demaille <akim@epita.fr>
5410 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
5411 s/PFILE1/BISON_HAIRY/.
5412 Adjust dependencies.
5414 2000-11-03 Akim Demaille <akim@epita.fr>
5416 For some reason, this was not applied.
5418 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
5419 `unlink': it's no longer used.
5421 2000-11-03 Akim Demaille <akim@epita.fr>
5423 * src/files.c (skeleton_find): New function, eved out of...
5424 (open_files, open_extra_files): here.
5426 2000-11-03 Akim Demaille <akim@epita.fr>
5430 * src/files.c (obstack_save): New function.
5431 (done): Rename as...
5432 (output_files): this.
5434 * src/main.c (main): Don't use `atexit' to register `done', since
5435 it no longer has to remove tmp files, just call `output_files'
5436 when there are no errors.
5438 2000-11-02 Akim Demaille <akim@epita.fr>
5440 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
5441 `unlink': it's no longer used.
5442 * src/files.h: Formatting changes.
5444 2000-11-02 Akim Demaille <akim@epita.fr>
5446 Remove the last uses of mktemp and unlink/delete.
5448 * src/files.c (fdefines, ftable): Removed.
5449 (defines_ostack, table_obstack): New.
5450 Adjust dependencies of the former into uses of the latter.
5451 * src/output.c (output_short_or_char_table, output_short_table):
5452 Convert to using obstacks.
5453 * src/reader.c (copy_comment2): Accept one FILE * and two
5455 (output_token_defines, reader_output_yylsp): Use obstacks.
5456 * src/system.h (obstack_fgrow3): New.
5458 2000-11-01 Akim Demaille <akim@epita.fr>
5460 Change each use of `fattrs' into a use of `attrs_obstack'.
5462 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
5463 * src/files.c (fattrs): Remove.
5464 (attrs_obstack): New.
5465 Adjust all dependencies.
5466 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
5468 2000-11-01 Akim Demaille <akim@epita.fr>
5471 Change each use of `faction' into a use of `action_obstack'.
5473 * lib/obstack.h, lib/obstack.c: New files.
5474 * src/files.c (faction): Remove.
5475 (action_obstack): New.
5476 Adjust all dependencies.
5478 2000-10-20 Akim Demaille <akim@epita.fr>
5480 * lib/quote.h (PARAMS): New macro. Use it.
5482 2000-10-16 Akim Demaille <akim@epita.fr>
5484 * src/output.c (output_short_or_char_table): New function.
5485 (output_short_table, output_token_translations): Use it.
5486 (goto_actions): Use output_short_table.
5488 2000-10-16 Akim Demaille <akim@epita.fr>
5490 * src/symtab.c (bucket_new): New function.
5493 * src/output.c (output_short_table): New argument to display the
5494 comment associated with the table.
5495 Adjust dependencies.
5496 (output_gram): Use it.
5497 (output_rule_data): Nicer output layout for YYTNAME.
5499 2000-10-16 Akim Demaille <akim@epita.fr>
5501 * src/lex.c (read_typename): New function.
5503 * src/reader.c (copy_dollar): Likewise.
5505 2000-10-16 Akim Demaille <akim@epita.fr>
5507 * src/reader.c (copy_comment2): Expect the input stream to be on
5508 the `/' which is suspected to open a comment, instead of being
5509 called after `//' or `/*' was read.
5510 (copy_comment, copy_definition, parse_union_decl, copy_action)
5511 (copy_guard): Adjust.
5513 2000-10-16 Akim Demaille <akim@epita.fr>
5515 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
5516 `read_signed_integer'.
5518 2000-10-16 Akim Demaille <akim@epita.fr>
5520 * src/reader.c (copy_dollar): New function.
5521 (copy_guard, copy_action): Use it.
5523 2000-10-16 Akim Demaille <akim@epita.fr>
5525 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
5526 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
5527 New files, from Fileutils 4.0.27.
5528 * src/main.c (printable_version): Remove.
5529 * src/lex.c, src/reader.c: Use `quote'.
5531 2000-10-04 Akim Demaille <akim@epita.fr>
5533 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
5535 2000-10-04 Akim Demaille <akim@epita.fr>
5537 * doc/bison.texinfo: Various typos spotted by Neil Booth.
5539 2000-10-04 Akim Demaille <akim@epita.fr>
5541 When a literal string is used to define two different tokens,
5542 `bison -v' segfaults.
5543 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
5545 * tests/regression.m4: New file.
5546 Include the core of the sample provided by Piotr Gackiewicz.
5547 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
5550 2000-10-04 Akim Demaille <akim@epita.fr>
5552 * src/reader.c (parse_expect_decl): Keep `count' within the size
5556 2000-10-02 Paul Eggert <eggert@twinsun.com>
5558 * bison.s1 (yyparse): Assign the default value
5559 unconditionally, to avoid a GCC warning and make the parser a
5562 2000-10-02 Akim Demaille <akim@epita.fr>
5564 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
5567 2000-10-02 Akim Demaille <akim@epita.fr>
5569 * src/derives.c, src/print.c, src/reduce.c: To ease the
5570 translation, move some `\n' out of the translated strings.
5572 2000-10-02 Akim Demaille <akim@epita.fr>
5574 The location tracking mechanism is precious for parse error
5575 messages. Nevertheless, it is enabled only when `@n' is used in
5576 the grammar, which is a different issue (you can use it in error
5577 message, but not in the grammar per se). Therefore, there should
5578 be another means to enable it.
5580 * src/getargs.c (getargs): Support `--locations'.
5582 * src/getargs.h (locationsflag): Export it.
5583 * src/lex.c (percent_table): Support `%locations'.
5584 * src/reader.c (yylsp_needed): Remove this variable, now replaced
5585 with `locationsflag'.
5586 * doc/bison.texinfo: Document `--locations' and `%locations'.
5588 * tests/calc.m4: Test it.
5590 For regularity of the names, replace each
5591 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
5592 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
5593 In addition replace each `flag' with `_flag'.
5595 2000-10-02 Akim Demaille <akim@epita.fr>
5597 Also test parse error messages, including with YYERROR_VERBOSE.
5599 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
5601 Use it to check the computations.
5602 Use it to check `nonassoc' is honored.
5603 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
5604 `--yyerror-verbose'.
5605 (_AT_CHECK_CALC): Adjust to this option.
5606 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
5608 2000-10-02 Akim Demaille <akim@epita.fr>
5610 Test also `--verbose', `--defines' and `--name-prefix'. Testing
5611 the latter demonstrates a flaw in the handling of non debugging
5612 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
5613 was used in order to simplify:
5629 unfortunately this leads to a CPP conflict when
5630 `--name-prefix=foo' is used since it produces `#define yydebug
5633 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
5634 (YYDPRINTF): New macro.
5636 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
5638 Also test `--verbose', `--defines' and `--name-prefix'.
5640 2000-10-02 Akim Demaille <akim@epita.fr>
5642 Improve the readability of the produced parsers.
5644 * src/bison.s1: Formatting changes.
5645 Improve the comment related to the `$' mark.
5646 (yydefault): Don't fall through to `yyresume': `goto' there.
5647 * src/output.c (output_parser): When the `$' is met, skip the end
5649 New variable, `number_of_dollar_signs', to check there's exactly
5650 one `$' in the parser skeleton.
5652 2000-10-02 Akim Demaille <akim@epita.fr>
5654 * lib/xstrdup.c: New file, from the fileutils.
5655 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
5656 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
5657 instead of strlen + xmalloc + strcpy.
5658 * src/symtab.c (copys): Remove, use xstrdup instead.
5660 2000-10-02 Akim Demaille <akim@epita.fr>
5662 * src/gram.h (associativity): New enum type which replaces the
5663 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
5664 `right_assoc', `left_assoc' and `non_assoc'.
5665 Adjust all dependencies.
5666 * src/reader.c: Formatting changes.
5667 (LTYPESTR): Don't define it, use it as a literal in
5668 `reader_output_yylsp'.
5669 * src/symtab.h (symbol_class): New enum type which replaces the
5670 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
5671 `sunknown', `stoken and `snterm'.
5673 2000-10-02 Akim Demaille <akim@epita.fr>
5675 * src/getargs.c (fixed_outfiles): Rename as...
5676 (yaccflag): for consistency and accuracy.
5677 Adjust dependencies.
5679 2000-10-02 Akim Demaille <akim@epita.fr>
5681 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
5682 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
5683 difficult and introduced a lot of core dump. It turns out that
5684 Bison used an implementation of `xmalloc' based on `calloc', and
5685 at various places it does depend upon the initialization to 0. I
5686 have not tried to isolate the pertinent places, and all the former
5687 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
5688 someone should address this issue.
5690 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
5691 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
5693 Adjust dependencies.
5694 * src/warshall.h: New file.
5697 2000-10-02 Akim Demaille <akim@epita.fr>
5699 Various anti-`extern in *.c' changes.
5701 * src/system.h: Include `assert.h'.
5703 2000-10-02 Akim Demaille <akim@epita.fr>
5705 * src/state.h (nstates, final_state, first_state, first_shift)
5706 (first_reduction): Move their exportation from here...
5707 * src/LR0.h: to here.
5708 Adjust dependencies.
5709 * src/getargs.c (statisticsflag): New variable.
5710 Add support for `--statistics'.
5711 Adjust dependencies.
5713 Remove a lot of now useless `extern' statements in most files.
5715 2000-10-02 Akim Demaille <akim@epita.fr>
5717 * src/LR0.h: New file.
5720 2000-10-02 Akim Demaille <akim@epita.fr>
5722 * src/print.h: New file.
5724 * src/print.c: Formatting and ordering changes.
5725 (verbose, terse): Replace with...
5726 (print_results): this new function.
5727 Adjust dependencies.
5729 2000-10-02 Akim Demaille <akim@epita.fr>
5731 * src/conflicts.c (conflict_report): New function.
5732 (conflict_log, verbose_conflict_log): Replace with...
5733 (print_conflicts): this function.
5734 Adjust dependencies.
5735 * src/conflicts.h: New file.
5736 Propagate its inclusion.
5738 2000-10-02 Akim Demaille <akim@epita.fr>
5740 * src/nullable.h: New file.
5741 Propagate its inclusion.
5742 * src/nullable.c: Formatting changes.
5744 2000-10-02 Akim Demaille <akim@epita.fr>
5746 * src/reduce.h: New file.
5747 Propagate its inclusion.
5748 * src/reduce.c: Topological sort and other formatting changes.
5749 (bool, TRUE, FALSE): Move their definition to...
5750 * src/system.h: here.
5752 2000-10-02 Akim Demaille <akim@epita.fr>
5754 * src/files.c: Formatting changes.
5755 (tryopen, tryclose, openfiles): Rename as...
5756 (xfopen, xfclose, open_files): this.
5757 (stringappend): static.
5758 * src/files.h: Complete the list of exported symbols.
5761 2000-10-02 Akim Demaille <akim@epita.fr>
5763 * src/reader.h: New file.
5764 Propagate its use instead of tedious list of `extern' and
5766 * src/reader.c: Formatting changes, topological sort,
5769 2000-10-02 Akim Demaille <akim@epita.fr>
5771 * src/lex.h: Prototype `lex.c' exported functions.
5772 * src/reader.c: Adjust.
5773 * src/lex.c: Formatting changes.
5774 (safegetc): Rename as...
5777 2000-10-02 Akim Demaille <akim@epita.fr>
5779 * src/lalr.h: New file.
5780 Propagate its inclusion instead of prototypes and `extern'.
5781 * src/lalr.c: Formatting changes, topological sorting etc.
5783 2000-10-02 Akim Demaille <akim@epita.fr>
5785 * src/output.c (token_actions): Introduce a temporary array,
5786 YYDEFACT, that makes it possible for this function to use
5789 2000-10-02 Akim Demaille <akim@epita.fr>
5791 `user_toknums' is output as a `short[]' in `output.c', while it is
5792 defined as a `int[]' in `reader.c'. For consistency with the
5793 other output tables, `user_toknums' is now defined as a table of
5796 * src/reader.c (user_toknums): Be a short table instead of an int
5798 Adjust dependencies.
5800 Factor the short table outputs.
5802 * src/output.c (output_short_table): New function.
5803 * src/output.c (output_gram, output_stos, output_rule_data)
5804 (output_base, output_table, output_check): Use it.
5806 2000-10-02 Akim Demaille <akim@epita.fr>
5808 * src/output.c (output): Topological sort of the functions, in
5809 order to get rid of the `static' prototypes.
5810 No longer use `register'.
5811 * src/output.h: New file.
5812 Propagate its inclusion in files explicitly prototyping functions
5815 2000-09-21 Akim Demaille <akim@epita.fr>
5817 * src/atgeneral.m4: Update from Autoconf.
5819 2000-09-21 Akim Demaille <akim@epita.fr>
5821 * src/closure.h: New file.
5822 * src/closure.c: Formatting changes, topological sort over the
5823 functions, use of closure.h.
5824 (initialize_closure, finalize_closure): Rename as...
5825 (new_closure, free_closure): these. Adjust dependencies.
5826 * src/LR0.c: Formatting changes, topological sort, use of
5828 (initialize_states): Rename as...
5830 * src/Makefile.am (noinst_HEADERS): Adjust.
5832 2000-09-20 Akim Demaille <akim@epita.fr>
5834 * src/acconfig.h: Don't protect config.h against multiple
5836 Don't define PARAMS.
5837 * src/system.h: Define PARAMS.
5838 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
5839 purpose of config.h. system.h must not try to fix wrong
5840 definitions in config.h.
5842 2000-09-20 Akim Demaille <akim@epita.fr>
5844 * src/derives.h: New file.
5845 * src/main.c, src/derives.h: Use it.
5847 * src/Makefile.am (noinst_HEADERS): Adjust.
5849 2000-09-20 Akim Demaille <akim@epita.fr>
5851 * tests/atgeneral.m4: Update from Autoconf.
5852 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
5853 (AT_CHECK_CALC): New macros.
5854 Use these macros to test bison with options `', `--raw',
5855 `--debug', `--yacc', `--yacc --debug'.
5857 2000-09-19 Akim Demaille <akim@epita.fr>
5859 * src/output.c: Formatting changes.
5860 * src/machine.h: Remove, leaving its contents in...
5861 * src/system.h: here.
5863 Adjust all dependencies on stdio.h and machine.h.
5864 * src/getargs.h: New file.
5865 Let all `extern' declarations about getargs.c be replaced with
5866 inclusion of `getargs.h'.
5867 * src/Makefile.am (noinst_HEADERS): Adjust.
5869 * tests/calc.m4 (yyin): Be initialized in main, not on the global
5871 (yyerror): Returns void, not int.
5872 * doc/bison.texinfo: Formatting changes.
5874 2000-09-19 Akim Demaille <akim@epita.fr>
5876 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
5879 2000-09-18 Akim Demaille <akim@epita.fr>
5881 * configure.in: Append WARNING_CFLAGS to CFLAGS.
5882 * src/Makefile.am (INCLUDES): Don't.
5883 Be ready to fetch headers in lib/.
5885 2000-09-18 Akim Demaille <akim@epita.fr>
5887 * doc/bison.texinfo: Update the copyright.
5888 ANSIfy and GNUify the examples.
5889 Remove the old menu.
5891 2000-09-18 Akim Demaille <akim@epita.fr>
5893 First set of tests: use the `calc' example from the documentation.
5895 * src/bison.s1 (yyparse): Condition the code using `yytname' which
5896 is defined only when YYDEBUG is.
5897 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
5898 * src/files.c (tryopen, tryclose): Formatting changes.
5899 Move to the top and be static.
5900 * src/reader.c (read_signed_integer): Likewise.
5901 * tests/calc.m4: New file.
5902 * Makefile.am, suite.m4: Adjust.
5903 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
5905 2000-09-18 Akim Demaille <akim@epita.fr>
5907 Add support for an Autotest test suite for Bison.
5909 * m4/m4.m4, m4/atconfig.m4: New files.
5910 * m4/Makefile.am (EXTRA_DIST): Adjust.
5911 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
5913 * src/getargs.c: Display a more standard --version message.
5914 * src/reader.c (reader): Formatting changes.
5915 No longer depend upon VERSION_STRING.
5916 * configure.in: No longer use `dnl'.
5917 Set up the test suite and the new directory `tests/.
5918 (VERSION_STRING): Remove.
5920 2000-04-14 Akim Demaille <akim@epita.fr>
5922 * src/reader.c (copy_comment2): New function, same as former
5923 `copy_comment', but outputs into two FILE *.
5924 (copy_comment): Use it.
5925 (parse_union_decl): Use it.
5926 (get_type, parse_start_decl): Use the same `invalid' message.
5927 (parse_start_decl, parse_union_decl): Use the same `multiple'
5929 (parse_union_decl, copy_guard, copy_action): Use the same
5930 `unmatched' message.
5931 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
5933 2000-03-31 Akim Demaille <akim@epita.fr>
5935 * src/files.c (tryopen, tryclose): Move to the top.
5938 2000-03-31 Akim Demaille <akim@epita.fr>
5940 * src/main.c (main): Don't call `done', exit does it.
5942 2000-03-31 Akim Demaille <akim@epita.fr>
5944 * allocate.c: s/return (foo)/return foo/.
5947 * output.c: Likewise.
5948 * reader.c: Likewise.
5949 * symtab.c: Likewise.
5950 * vmsgetargs.c: Likewise.
5952 2000-03-31 Akim Demaille <akim@epita.fr>
5954 Clean up the error reporting functions.
5956 * src/report.c: New file.
5957 * src/report.h: Likewise.
5958 * src/Makefile.am: Adjust.
5959 * m4/error.m4: New file.
5960 * m4/Makefile.am: Adjust.
5961 * configure.in (jm_PREREQ_ERROR): Call it.
5962 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
5964 (fatal, fatals): Remove. All callers use complain.c::fatal.
5965 (warn, warni, warns, warnss, warnss): Remove. All callers use
5966 complain.c::complain.
5967 (toomany): Remove, use fatal instead.
5968 * src/files.c (done): No argument, use complain_message_count.
5969 * src/main.c (main): Register `done' to `atexit'.
5971 * src/getargs.c (usage): More `fputs', less `fprintf'.
5973 2000-03-28 Akim Demaille <akim@epita.fr>
5975 * lib/: New directory.
5976 * Makefile.am (SUBDIRS): Adjust.
5977 * configure.in: Adjust.
5978 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
5980 * src/alloca.c: Moved to lib/.
5981 * src/getopt.c: Likewise.
5982 * src/getopt1.c: Likewise.
5983 * src/getopt.h: Likewise.
5984 * src/ansi2knr.c: Likewise.
5985 * src/ansi2knr.1: Likewise.
5986 * src/Makefile.am: Adjust.
5987 * lib/Makefile.am: New file.
5989 2000-03-28 Akim Demaille <akim@epita.fr>
5991 * src/getargs.c (usage): Refresh the help message.
5993 2000-03-17 Akim Demaille <akim@epita.fr>
5995 * src/getopt1.c: Updated from textutils 2.0e
5996 * src/getopt.c: Likewise.
5997 * src/getopt.h: Likewise.
5999 2000-03-17 Akim Demaille <akim@epita.fr>
6001 * src/Makefile.am (bison.simple): Fix the awk program: quote only
6002 the file name, not the whole `#line LINE FILE'.
6004 2000-03-17 Akim Demaille <akim@epita.fr>
6006 On syntax errors, report the token on which we choked.
6008 * src/bison.s1 (yyparse): In the label yyerrlab, when
6009 YYERROR_VERBOSE, add yychar in msg.
6011 2000-03-17 Akim Demaille <akim@epita.fr>
6013 * src/reader.c (copy_at): New function.
6014 (copy_guard): Use it.
6015 (copy_action): Use it.
6017 2000-03-17 Akim Demaille <akim@epita.fr>
6019 Be kind to translators, save some useless translations.
6021 * src/main.c (banner): New function.
6022 (fatal_banner): Use it.
6023 (warn_banner): Use it.
6025 2000-03-17 Akim Demaille <akim@epita.fr>
6027 * src/reader.c (copy_definition): Use copy_string and
6028 copy_comment. Removed now unused `match', `ended',
6030 (copy_comment, copy_string): Moved, to be visible from
6033 2000-03-17 Akim Demaille <akim@epita.fr>
6035 * src/reader.c (copy_string): Declare `static inline'. No
6036 problems with inline, since it is checked by configure.
6037 (copy_comment): Likewise.
6039 2000-03-17 Akim Demaille <akim@epita.fr>
6041 * src/reader.c (packsymbols): Formatting changes.
6043 2000-03-17 Akim Demaille <akim@epita.fr>
6045 * src/reader.c (copy_comment): New function, factored out from:
6046 (copy_action): Use it. Removed now unused `match', `ended',
6048 (copy_guard): Likewise.
6050 2000-03-17 Akim Demaille <akim@epita.fr>
6052 * src/reader.c (copy_string): New function, factored out from:
6053 (copy_action): Use it.
6054 (copy_guard): Likewise.
6056 2000-03-17 Akim Demaille <akim@epita.fr>
6058 Change the handling of @s so that they behave exactly like $s.
6059 There is now a pseudo variable @$ (readble and writable), location
6060 of the lhs of the rule (by default ranging from the location of
6061 the first symbol of the rhs, to the location of the last symbol,
6062 or, if the rhs is empty, YYLLOC).
6064 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
6066 (yyparse): When providing a default semantic action, provide a
6067 default location action.
6068 (after the $): No longer change `*YYLSP', just stack YYLOC the
6069 same way you stack YYVAL.
6070 * src/reader.c (read_declarations): Use warns.
6071 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
6072 (copy_action, case '@'): Likewise.
6073 Use a standard error message, to save useless work from
6076 2000-03-17 Akim Demaille <akim@epita.fr>
6078 * src/bison.s1: Formatting and cosmetics changes.
6079 * src/reader.c: Likewise.
6080 Update the Copyright notice.
6082 2000-03-17 Akim Demaille <akim@epita.fr>
6084 * src/bison.s1 (#line): All set to `#line' only, since the
6085 Makefile now handles them.
6087 2000-03-16 Akim Demaille <akim@epita.fr>
6089 * src/output.c (output_rule_data): Output the documentation of
6091 (Copyright notice): Update.
6094 2000-03-16 Akim Demaille <akim@epita.fr>
6096 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
6097 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
6098 One `#if YYDEBUG' remains, since it uses variables which are
6099 defined only if `YYDEBUG != 0'.
6101 2000-03-16 Akim Demaille <akim@epita.fr>
6103 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
6104 and related variables so that the similarities are highlighted.
6106 2000-03-16 Akim Demaille <akim@epita.fr>
6108 * src/bison.s1: Properly indent CPP directives.
6110 2000-03-16 Akim Demaille <akim@epita.fr>
6112 * src/bison.s1: Properly indent the `alloca' CPP section.
6114 2000-03-16 Akim Demaille <akim@epita.fr>
6116 Do not hard code values of directories in `configure.in'.
6117 Update the `configure' tool chain.
6119 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
6121 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
6122 (AC_OUTPUT): Add m4/Makefile.
6123 Bump to bison 1.28a, 1.29 has never been released.
6124 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
6125 handled via src/Makefile.am.
6126 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
6127 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
6129 * Makefile.am (SUBDIRS): Add m4.
6130 (ACLOCAL_AM_FLAGS): New variable.
6131 (AUTOMAKE_OPTIONS): Add check-news.
6132 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
6133 the proper line number and file name.
6134 (DEFS): Propagate the location of bison library files and of the
6136 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
6138 * acinclude.m4: Remove, replaced by the directory m4.
6139 * m4/Makefile.am (EXTRA_DIST): New variable.
6140 * m4/gettext.m4: New file, from the fileutils.
6141 * m4/lcmessage.m4: Likewise
6142 * m4/progtest.m4: Likewise.
6143 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
6145 2000-03-10 Akim Demaille <akim@epita.fr>
6148 Formatting changes of various comments.
6149 Respect the GNU coding standards at various places.
6150 Don't use `_()' when no translation is needed.
6152 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6155 OS/2 honors TMPDIR environment variable.
6157 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6159 * doc/bison.texinfo: Tweaked spelling and grammar.
6161 Removed reference to price of printed copy.
6162 Mention BISON_SIMPLE and BISON_HAIRY.
6164 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6166 * configure.in, NEWS:
6167 Bison 1.29 released.
6169 1999-10-27 Jesse Thilo <jthilo@gnu.org>
6171 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
6172 Added reference card.
6174 1999-07-26 Jesse Thilo <jthilo@gnu.org>
6176 * po/ru.po: Added Russian translation.
6178 1999-07-26 Jesse Thilo <jthilo@gnu.org>
6180 * configure.in: Added Russian translation.
6182 1999-07-06 Jesse Thilo <jthilo@gnu.org>
6184 * configure.in, NEWS, README:
6185 Released version 1.28.
6187 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6190 Squashed redefinition warning on some systems.
6192 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
6193 Have configure build version string instead of relying on ANSI string
6196 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6198 * po/POTFILES.in: Got rid of version.c.
6200 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6202 * acconfig.h, configure.in:
6203 Have configure build version string instead of relying on ANSI string
6206 1999-06-08 Jesse Thilo <jthilo@gnu.org>
6209 Dropped mention of `+' for long-named options.
6211 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6213 * src/files.c: Added <unistd.h> for unlink().
6215 * src/Makefile.am, src/system.h:
6218 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6220 * README: Added a FAQ list.
6222 * configure.in, acconfig.h:
6225 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6227 * doc/FAQ, doc/Makefile.am:
6230 1999-05-19 Jesse Thilo <jthilo@gnu.org>
6232 * src/alloc.h, src/symtab.h, src/version.c:
6233 Protected inclusion of "config.h" with HAVE_CONFIG_H.
6235 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6237 * src/.cvsignore, src/Makefile.am:
6238 Reorganized: sources in `src', documentation in `doc'.
6240 * src/lex.c (literalchar):
6241 fixed the code for escaping double quotes (thanks
6244 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6246 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
6247 Adjusted paths to reflect directory reorganization.
6249 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6251 * doc/.cvsignore, doc/Makefile.am:
6252 Reorganized: sources in `src', documentation in `doc'.
6254 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6257 Updated AC_INIT file to reflect directory reorganization.
6259 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
6260 Reorganized: sources in `src', documentation in `doc'.
6262 1999-04-13 Jesse Thilo <jthilo@gnu.org>
6265 Don't declare calloc() and realloc() if not necessary.
6267 1999-04-13 Jesse Thilo <jthilo@gnu.org>
6269 * configure.in, acconfig.h, acinclude.m4:
6270 Don't declare calloc() and realloc() if not necessary.
6272 1999-03-23 Jesse Thilo <jthilo@gnu.org>
6274 * po/.cvsignore: Added i18n support.
6276 1999-03-23 Jesse Thilo <jthilo@gnu.org>
6278 * acconfig.h, configure.in, Makefile.am:
6281 1999-03-22 Jesse Thilo <jthilo@gnu.org>
6283 * src/bison.s1: Fixed #line numbers.
6285 1999-03-15 Jesse Thilo <jthilo@gnu.org>
6287 * po/es.po, po/fr.po, po/nl.po, po/de.po:
6288 Added PO files from Translation Project.
6290 1999-03-03 Jesse Thilo <jthilo@gnu.org>
6293 Added support for non-ANSI compilers (ansi2knr).
6295 1999-02-16 Jesse Thilo <jthilo@gnu.org>
6297 * configure.in: Bumped version number to 1.27.
6300 Added `bison.simple' to list of files removed by `make distclean'.
6302 1999-02-12 Jesse Thilo <jthilo@gnu.org>
6304 * src/files.c, src/files.h:
6305 Defined locations of parser files in config.h instead of Makefile.
6307 1999-02-12 Jesse Thilo <jthilo@gnu.org>
6309 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
6310 Defined locations of parser files in config.h instead of Makefile.
6312 1999-02-09 Jesse Thilo <jthilo@gnu.org>
6315 Removed inappropriate use of $< macro.
6317 1999-02-05 Jesse Thilo <jthilo@gnu.org>
6319 * po/Makefile.in.in, po/POTFILES.in:
6320 Add `po' directory skeleton.
6322 1999-01-27 Jesse Thilo <jthilo@gnu.org>
6324 * README: Document help-bison list.
6326 * configure.in: Add check for mkstemp().
6328 1999-01-20 Jesse Thilo <jthilo@gnu.org>
6330 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
6331 Hush a few compiler warnings.
6334 Add tryclose(), which verifies that fclose was successful.
6335 Hush a couple of compiler warnings.
6337 1999-01-20 Jesse Thilo <jthilo@gnu.org>
6339 * Makefile.am, OChangeLog:
6340 ChangeLog is now automatically generated. Include the old version as
6343 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6345 * 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:
6348 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6350 * doc/bison.texinfo: Fix formatting glitch.
6352 * doc/bison.texinfo: Update FSF address.
6354 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6356 * acconfig.h: Update FSF address.
6358 1999-01-08 Jesse Thilo <jthilo@gnu.org>
6361 Don't define PACKAGE here, since config.h defines it.
6363 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6365 * src/reader.c: Update copyright date.
6368 Ditch sprintf to statically-sized buffers in fatal/warn functions in
6369 favor of output directly to stderr (avoids buffer overruns).
6371 * src/reader.c: Some checks for premature EOF.
6373 * 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:
6374 Use prototypes if the compiler understands them.
6376 * src/files.c: Honor TMPDIR on Unix hosts.
6377 Use prototypes if the compiler understands them.
6380 Fix a couple of buffer overrun bugs.
6381 Use prototypes if the compiler understands them.
6383 * src/system.h: Include unistd.h and ctype.h.
6384 Use #ifdef instead of #if for NLS symbols.
6386 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6388 * doc/bison.texinfo:
6389 Delete comment "consider using @set for edition number, etc..." since
6390 we now are doing so.
6392 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6395 Use prototypes if the compiler understands them.
6397 * NEWS: Document 1.26 highlights.
6399 * Makefile.am: Require Automake 1.3 or later.
6402 Use prototypes if the compiler understands them.
6404 1998-12-29 Jesse Thilo <jthilo@gnu.org>
6407 Use VERSION symbol from automake for version number.
6409 1998-12-29 Jesse Thilo <jthilo@gnu.org>
6411 * acconfig.h, configure.in, version.cin:
6412 Use VERSION symbol from automake for version number.
6414 1998-11-28 Jesse Thilo <jthilo@gnu.org>
6417 Distribute original version of simple parser (bison.s1), not built
6418 version (bison.simple).
6420 1998-11-28 Jesse Thilo <jthilo@gnu.org>
6422 * doc/bison.texinfo: Add info dir entry.
6424 * doc/bison.texinfo:
6425 Let automake put version number into documentation.
6427 1998-11-26 Jesse Thilo <jthilo@gnu.org>
6429 * src/bison.cld, src/build.com, src/vmshlp.mar:
6430 Add non-RCS files from /gd/gnu/bison.
6432 1998-11-26 Jesse Thilo <jthilo@gnu.org>
6435 Document the BISON_HAIRY and BISON_SIMPLE variables.
6437 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6439 * src/version.c: Build version.c automatically.
6442 Fix token numbering (used to start at 258, not 257).
6444 * src/system.h: Include config.h.
6446 * src/getargs.c: Update bug report address.
6448 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
6449 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
6451 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6454 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
6456 * configure.in, version.cin:
6457 Build version.c automatically.
6459 * AUTHORS: Add AUTHORS file.
6461 * README: Update bug report address.
6464 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
6466 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
6469 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6471 * doc/bison.texinfo: Clean up some formatting.
6473 1998-05-05 Richard Stallman <rms@gnu.org>
6475 * doc/bison.texinfo:
6476 Explain better why to make a pure parser.
6478 1998-01-05 Richard Stallman <rms@gnu.org>
6480 * src/files.c (openfiles):
6481 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
6482 find a temporary directory, if possible. Do not unlink files while
6485 1997-08-25 Richard Stallman <rms@gnu.org>
6487 * src/reader.c (stack_offset;):
6488 Change some warni to warns.
6490 * src/lex.c (literalchar): Use warns, not warni.
6492 1997-06-28 Richard Stallman <rms@gnu.org>
6494 * src/bison.s1: Add a Bison version comment.
6496 * src/main.c (fatal, warn, berror):
6499 1997-06-28 Richard Stallman <rms@gnu.org>
6501 * Makefile.in (bison_version): New variable.
6502 (dist): Use that variable.
6503 (bison.s1): Substitute the Bison version into bison.simple.
6505 * bison.simple: Add a Bison version comment.
6507 1997-06-18 Richard Stallman <rms@gnu.org>
6509 * src/main.c (fatal, warn, berror):
6510 Make error messages standard.
6511 (toomany): Improve error message text.
6513 * 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:
6514 new.h renamed to alloc.h.
6516 1997-06-18 Richard Stallman <rms@gnu.org>
6518 * Makefile.in: new.h renamed to alloc.h.
6520 1997-05-24 Richard Stallman <rms@gnu.org>
6522 * src/lex.c (literalchar):
6523 Fix the code for escaping \, " and '.
6525 (lex): Avoid trouble when there are many chars
6526 to discard in a char literal with just several chars in it.
6528 1997-05-17 Richard Stallman <rms@gnu.org>
6531 Use malloc, if using alloca is troublesome.
6532 (YYSTACK_USE_ALLOCA): New flag macro.
6533 Define it for some systems and compilers.
6534 (YYSTACK_ALLOC): New macro.
6535 (yyparse): Use YYSTACK_ALLOC to allocate stack.
6536 If it was malloc'd, free it.
6538 1997-05-17 Richard Stallman <rms@gnu.org>
6541 Use malloc, if using alloca is troublesome.
6542 (YYSTACK_USE_ALLOCA): New flag macro.
6543 Define it for some systems and compilers.
6544 (YYSTACK_ALLOC): New macro.
6545 (yyparse): Use YYSTACK_ALLOC to allocate stack.
6546 If it was malloc'd, free it.
6548 1997-04-23 Richard Stallman <rms@gnu.org>
6551 (alloca) [__hpux]: Always define as __builtin_alloca.
6553 1997-04-23 Richard Stallman <rms@gnu.org>
6556 (alloca) [__hpux]: Always define as __builtin_alloca.
6558 1997-04-22 Richard Stallman <rms@gnu.org>
6561 [__hpux]: Include alloca.h (right for HPUX 10)
6562 instead of declaring alloca (right for HPUX 9).
6564 * src/bison.s1 (__yy_memcpy):
6565 Declare arg `count' as unsigned int.
6566 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
6568 1997-04-22 Richard Stallman <rms@gnu.org>
6571 [__hpux]: Include alloca.h (right for HPUX 10)
6572 instead of declaring alloca (right for HPUX 9).
6574 * bison.simple (__yy_memcpy):
6575 Declare arg `count' as unsigned int.
6576 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
6578 1997-01-03 Richard Stallman <rms@gnu.org>
6580 * src/allocate.c: [__STDC__ or _MSC_VER]:
6581 Declare calloc and realloc to return void *.
6583 1997-01-02 Richard Stallman <rms@gnu.org>
6586 [_MSC_VER]: Include stdlib.h and process.h.
6587 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
6589 * src/main.c (main): Return FAILURE as a value.
6590 (printable_version): Declare arg as int, not char.
6592 1997-01-02 Richard Stallman <rms@gnu.org>
6594 * Makefile.in (dist):
6595 Explicitly check for symlinks, and copy them.
6597 1996-12-19 Richard Stallman <rms@gnu.org>
6600 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
6602 1996-12-18 Paul Eggert <eggert@gnu.org>
6604 * src/bison.s1 (yyparse):
6605 If __GNUC__ and YYPARSE_PARAM are both defined,
6606 declare yyparse to have a void * argument.
6608 1996-12-18 Paul Eggert <eggert@gnu.org>
6610 * bison.simple (yyparse):
6611 If __GNUC__ and YYPARSE_PARAM are both defined,
6612 declare yyparse to have a void * argument.
6614 1996-12-17 Richard Stallman <rms@gnu.org>
6616 * src/reduce.c (nbits): Add some casts.
6618 1996-08-12 Richard Stallman <rms@gnu.org>
6620 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
6622 1996-08-12 Richard Stallman <rms@gnu.org>
6624 * bison.simple: Test _MSDOS as well as _MSDOS_.
6626 1996-07-31 Richard Stallman <rms@gnu.org>
6629 [__sun && __i386]: Include alloca.h.
6631 1996-07-31 Richard Stallman <rms@gnu.org>
6634 [__sun && __i386]: Include alloca.h.
6636 1996-07-30 Richard Stallman <rms@gnu.org>
6638 * src/bison.s1: Comment change.
6640 * src/bison.s1: Test _MSDOS_, not MSDOS.
6642 1996-07-30 Richard Stallman <rms@gnu.org>
6644 * bison.simple: Comment change.
6646 * bison.simple: Test _MSDOS_, not MSDOS.
6648 1996-06-01 Richard Stallman <rms@gnu.org>
6650 * 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:
6651 Insert `_' macro around many string constants.
6654 Insert `_' macro around many string constants.
6656 (main): Call setlocale, bindtextdomain and textdomain.
6658 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
6659 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
6660 [ENABLE_NLS]: Include libintl.h.
6661 [ENABLE_NLS] (gettext): Define.
6662 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
6663 (N_, PACKAGE, LOCALEDIR): New macros.
6665 1996-06-01 Richard Stallman <rms@gnu.org>
6667 * POTFILES.in: New file.
6669 * Makefile.in (allocate.o):
6670 Define target explicitly.
6672 * Makefile.in (CFLAGS): Set to @CFLAGS@.
6673 (LDFLAGS): Set to @LDFLAGS@.
6674 (configure): Run autoconf only if preceding `cd' succeeds.
6675 (bison.s1): Redirect output to temporary file then move the
6676 temporary to the target, rather than redirecting directly to bison.s1.
6677 (clean): Remove config.status and config.log.
6678 (distclean): Don't remove config.status here.
6680 1996-05-12 Richard Stallman <rms@gnu.org>
6683 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6685 1996-05-12 Richard Stallman <rms@gnu.org>
6688 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6690 1996-05-11 Richard Stallman <rms@gnu.org>
6692 * src/bison.s1 (__yy_memcpy):
6693 Really reorder the args, as was supposedly done on Feb 14 1995.
6694 (yyparse): Calls changed accordingly.
6696 1996-05-11 Richard Stallman <rms@gnu.org>
6698 * Makefile.in (dist): Don't use $(srcdir).
6700 * bison.simple (__yy_memcpy):
6701 Really reorder the args, as was supposedly done on Feb 14 1995.
6702 (yyparse): Calls changed accordingly.
6704 1996-01-27 Richard Stallman <rms@gnu.org>
6706 * src/output.c (output_rule_data):
6707 Test YYERROR_VERBOSE in the conditional
6708 around the definition of ttyname.
6710 1995-12-29 Richard Stallman <rms@gnu.org>
6713 Fix line numbers in #line commands.
6715 1995-12-29 Richard Stallman <rms@gnu.org>
6718 Fix line numbers in #line commands.
6720 1995-12-27 Richard Stallman <rms@gnu.org>
6722 * src/bison.s1 (YYPARSE_PARAM_DECL):
6723 In C++, make it always null.
6724 (YYPARSE_PARAM_ARG): New macro.
6725 (yyparse): Use YYPARSE_PARAM_ARG.
6727 1995-12-27 Richard Stallman <rms@gnu.org>
6729 * bison.simple (YYPARSE_PARAM_DECL):
6730 In C++, make it always null.
6731 (YYPARSE_PARAM_ARG): New macro.
6732 (yyparse): Use YYPARSE_PARAM_ARG.
6734 1995-11-29 Richard Stallman <rms@gnu.org>
6736 * doc/bison.texinfo:
6737 Describe literal string tokens, %raw, %no_lines, %token_table.
6739 1995-11-29 Daniel Hagerty <hag@gnu.org>
6741 * doc/bison.texinfo: Fixed update date
6743 1995-10-16 Richard Stallman <rms@gnu.org>
6745 * src/version.c: Version 1.25.
6747 1995-10-16 Richard Stallman <rms@gnu.org>
6749 * NEWS: *** empty log message ***
6751 1995-10-16 Richard Stallman <rms@gnu.org>
6753 * doc/bison.1, doc/bison.rnh:
6756 1995-10-15 Richard Stallman <rms@gnu.org>
6758 * src/vmsgetargs.c, src/getargs.c:
6759 Added -n, -k, and -raw switches.
6760 (noparserflag, toknumflag, rawtoknumflag): New variables.
6762 * src/symtab.h (SALIAS):
6763 New #define for adding aliases to %token.
6764 (struct bucket): Added `alias' field.
6766 * src/reduce.c (reduce_grammar):
6767 Revise error message.
6768 (print_notices): Remove final `.' from error message.
6770 * src/reader.c (reader_output_yylsp):
6772 (readgram): Use `#if 0' around code that accepted %command
6773 inside grammar rules: The documentation doesn't allow it,
6774 and it will fail since the %command processors scan for the next %.
6775 (parse_token_decl): Extended the %token
6776 declaration to allow a multi-character symbol as an alias.
6777 (parse_thong_decl): New function.
6778 (read_declarations): Added %thong declarations.
6779 (read_declarations): Handle NOOP to deal with allowing
6780 % declarations as another means to specify the flags.
6781 (readgram): Allow %prec prior to semantics embedded in a rule.
6782 (skip_to_char, read_declarations, copy_definition)
6783 (parse_token_decl, parse_start_decl, parse_type_decl)
6784 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
6785 (get_type_name, copy_guard, copy_action, readgram)
6786 (get_type, packsymbols): Revised most error messages.
6787 Changed `fatal' to `warnxxx' to avoid aborting for error.
6788 Revised and use multiple warnxxx functions to avoid using VARARGS1.
6789 (read_declarations): Improve the error message for
6790 an invalid character. Do not abort.
6791 (read_declarations, copy_guard, copy_action): Use
6792 printable_version to avoid unprintable characters in printed output.
6793 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
6794 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
6795 Allow the type of a non-terminal can be given
6796 more than once, as long as all specifications give the same type.
6799 (output_headers, output_trailers, output, output_gram)
6800 (output_rule_data): Implement noparserflag variable.
6801 Implement toknumflag variable.
6802 (output): Call reader_output_yylsp to output LTYPESTR.
6804 * src/main.c (main):
6805 If reader sees an error, don't process the grammar.
6806 (fatals): Updated to not use VARARGS1.
6807 (printable_version, int_to_string, warn, warni, warns, warnss)
6808 (warnsss): New error reporting functions. Avoid abort for error.
6811 Added THONG and NOOP for alias processing.
6812 Added SETOPT for the new code that allows setting options with %flags.
6815 Include getopt.h. Add some extern decls.
6816 (safegetc): New function to deal with EOF gracefully.
6817 (literalchar); new function to deal with reading \ escapes.
6818 (lex): Use literalchar.
6819 (lex): Implemented "..." tokens.
6820 (literalchar, lex, parse_percent_token): Made tokenbuffer
6821 always contain the token. This includes growing the token
6822 buffer while reading an integer.
6823 (parse_percent_token): Replaced if-else statement with percent_table.
6824 (parse_percent_token): Added % declarations as another
6825 way to specify the flags -n, -l, and -r. Also added hooks for
6826 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
6827 major changes to files.c.
6828 (lex) Retain in the incoming stream a character following
6830 (skip_white_space, lex): Revised most error messages
6831 and changed fatal to warn to avoid aborting.
6832 (percent_table): Added %thong declarations.
6834 * src/gram.h: Comment changes.
6836 * src/files.c (openfiles, open_extra_files, done):
6838 and actfile file. Handle noparserflag. Both for -n switch.
6840 * src/conflicts.c (resolve_sr_conflict):
6841 Remove use of alloca.
6843 1995-06-01 Jim Meyering <meyering@gnu.org>
6845 * doc/bison.texinfo: *** empty log message ***
6847 1995-05-06 Richard Stallman <rms@gnu.org>
6849 * src/bison.s1: Comment change.
6851 1995-05-06 Richard Stallman <rms@gnu.org>
6853 * bison.simple: Comment change.
6855 1995-05-03 Richard Stallman <rms@gnu.org>
6857 * src/version.c: Version now 1.24.
6859 * src/bison.s1: Change distribution terms.
6861 * src/version.c: Version now 1.23.
6863 1995-05-03 Richard Stallman <rms@gnu.org>
6865 * doc/bison.texinfo:
6866 Rewrite "Conditions for Using Bison".
6867 Update version to 1.24.
6869 1995-05-03 Richard Stallman <rms@gnu.org>
6871 * bison.simple: Change distribution terms.
6873 1995-02-23 Richard Stallman <rms@gnu.org>
6875 * src/files.c: Test __VMS_POSIX as well as VMS.
6877 1995-02-14 Jim Meyering <meyering@gnu.org>
6879 * src/bison.s1 (__yy_memcpy):
6880 Renamed from __yy_bcopy to avoid
6881 confusion. Reverse FROM and TO arguments to be consistent with
6884 1995-02-14 Jim Meyering <meyering@gnu.org>
6886 * bison.simple (__yy_memcpy):
6887 Renamed from __yy_bcopy to avoid
6888 confusion. Reverse FROM and TO arguments to be consistent with
6891 1994-11-10 David J. MacKenzie <djm@gnu.org>
6897 * Makefile.in (DISTFILES): Include NEWS.
6899 * Makefile.in (DISTFILES):
6900 Include install-sh, not install.sh.
6902 * configure.in: Update to Autoconf v2 macro names.
6904 1994-10-05 David J. MacKenzie <djm@gnu.org>
6906 * Makefile.in: fix typo
6908 * Makefile.in (prefix, exec_prefix):
6909 Let configure set them.
6911 1994-09-28 David J. MacKenzie <djm@gnu.org>
6913 * Makefile.in: Set datadir to $(prefix)/share.
6915 1994-09-15 Richard Stallman <rms@gnu.org>
6918 Update copyright notice and GPL version.
6920 1994-09-15 Richard Stallman <rms@gnu.org>
6923 Update copyright notice and GPL version.
6925 1994-07-12 Richard Stallman <rms@gnu.org>
6927 * src/reduce.c, src/reader.c:
6930 1994-05-05 David J. MacKenzie <djm@gnu.org>
6932 * Makefile.in: entered into RCS
6934 1994-03-26 Richard Stallman <rms@gnu.org>
6936 * src/bison.s1: entered into RCS
6938 1994-03-26 Richard Stallman <rms@gnu.org>
6940 * bison.simple: entered into RCS
6942 1994-03-25 Richard Stallman <rms@gnu.org>
6944 * src/main.c: entered into RCS
6946 1994-03-24 Richard Stallman <rms@gnu.org>
6948 * src/conflicts.c: entered into RCS
6950 1994-01-02 Richard Stallman <rms@gnu.org>
6952 * Makefile.in: *** empty log message ***
6954 1993-11-21 Richard Stallman <rms@gnu.org>
6956 * src/bison.s1: *** empty log message ***
6958 1993-11-21 Richard Stallman <rms@gnu.org>
6960 * doc/bison.texinfo: entered into RCS
6962 * doc/bison.texinfo: *** empty log message ***
6964 1993-11-21 Richard Stallman <rms@gnu.org>
6966 * bison.simple: *** empty log message ***
6968 1993-10-25 David J. MacKenzie <djm@gnu.org>
6970 * doc/bison.texinfo: *** empty log message ***
6972 1993-10-19 Richard Stallman <rms@gnu.org>
6974 * src/bison.s1: *** empty log message ***
6976 1993-10-19 Richard Stallman <rms@gnu.org>
6978 * bison.simple: *** empty log message ***
6980 1993-10-14 Richard Stallman <rms@gnu.org>
6982 * src/bison.s1: *** empty log message ***
6984 1993-10-14 Richard Stallman <rms@gnu.org>
6986 * bison.simple: *** empty log message ***
6988 1993-09-14 David J. MacKenzie <djm@gnu.org>
6990 * doc/bison.texinfo: *** empty log message ***
6992 1993-09-13 Noah Friedman <friedman@gnu.org>
6994 * Makefile.in: *** empty log message ***
6996 1993-09-10 Richard Stallman <rms@gnu.org>
6998 * src/conflicts.c: *** empty log message ***
7000 * src/system.h: entered into RCS
7002 1993-09-10 Richard Stallman <rms@gnu.org>
7004 * doc/bison.1: entered into RCS
7006 1993-09-06 Noah Friedman <friedman@gnu.org>
7008 * src/version.c: entered into RCS
7010 1993-09-06 Noah Friedman <friedman@gnu.org>
7012 * Makefile.in: *** empty log message ***
7014 1993-07-30 David J. MacKenzie <djm@gnu.org>
7016 * Makefile.in: *** empty log message ***
7018 1993-07-24 Richard Stallman <rms@gnu.org>
7020 * src/bison.s1: *** empty log message ***
7022 1993-07-24 Richard Stallman <rms@gnu.org>
7024 * bison.simple: *** empty log message ***
7026 1993-07-08 David J. MacKenzie <djm@gnu.org>
7028 * Makefile.in: *** empty log message ***
7030 1993-07-04 Richard Stallman <rms@gnu.org>
7032 * src/bison.s1: *** empty log message ***
7034 1993-07-04 Richard Stallman <rms@gnu.org>
7036 * bison.simple: *** empty log message ***
7038 1993-06-26 David J. MacKenzie <djm@gnu.org>
7040 * src/getargs.c: entered into RCS
7042 1993-06-26 David J. MacKenzie <djm@gnu.org>
7044 * doc/bison.texinfo: *** empty log message ***
7046 * doc/bison.1: New file.
7048 1993-06-25 Richard Stallman <rms@gnu.org>
7050 * src/getargs.c: New file.
7052 1993-06-16 Richard Stallman <rms@gnu.org>
7054 * src/bison.s1: *** empty log message ***
7056 1993-06-16 Richard Stallman <rms@gnu.org>
7058 * bison.simple: *** empty log message ***
7060 1993-06-03 Richard Stallman <rms@gnu.org>
7062 * src/bison.s1: New file.
7064 1993-06-03 Richard Stallman <rms@gnu.org>
7066 * doc/bison.texinfo: *** empty log message ***
7068 1993-06-03 Richard Stallman <rms@gnu.org>
7070 * bison.simple: New file.
7072 1993-05-19 Richard Stallman <rms@gnu.org>
7074 * doc/bison.texinfo: New file.
7076 1993-05-07 Noah Friedman <friedman@gnu.org>
7078 * Makefile.in: *** empty log message ***
7080 1993-04-28 Noah Friedman <friedman@gnu.org>
7082 * src/reader.c: *** empty log message ***
7084 1993-04-23 Noah Friedman <friedman@gnu.org>
7086 * src/alloc.h: entered into RCS
7088 1993-04-20 David J. MacKenzie <djm@gnu.org>
7090 * src/version.c: *** empty log message ***
7092 * src/files.c, src/allocate.c:
7095 * src/reader.c: *** empty log message ***
7097 * src/lex.c: entered into RCS
7099 * src/conflicts.c: New file.
7101 * src/symtab.c: entered into RCS
7103 * src/alloc.h: New file.
7105 * src/LR0.c: entered into RCS
7107 1993-04-18 Noah Friedman <friedman@gnu.org>
7109 * src/reader.c: New file.
7111 * src/version.c: *** empty log message ***
7113 1993-04-18 Noah Friedman <friedman@gnu.org>
7115 * Makefile.in: *** empty log message ***
7117 1993-04-17 Noah Friedman <friedman@gnu.org>
7119 * Makefile.in: *** empty log message ***
7121 1993-04-15 Richard Stallman <rms@gnu.org>
7123 * src/main.c, src/files.c:
7126 1993-04-15 Noah Friedman <friedman@gnu.org>
7128 * configure.in: entered into RCS
7130 * configure.in: *** empty log message ***
7132 * configure.in: New file.
7134 1993-04-14 Richard Stallman <rms@gnu.org>
7136 * Makefile.in: New file.
7138 1993-04-13 Richard Stallman <rms@gnu.org>
7140 * src/version.c: New file.
7142 1993-03-25 Richard Stallman <rms@gnu.org>
7144 * src/output.c: entered into RCS
7146 1992-09-25 Richard Stallman <rms@gnu.org>
7148 * configure.bat: entered into RCS
7150 1992-06-22 Richard Stallman <rms@gnu.org>
7152 * src/vmsgetargs.c: entered into RCS
7154 1992-06-22 Richard Stallman <rms@gnu.org>
7156 * doc/bison.rnh: entered into RCS
7158 1992-04-20 David J. MacKenzie <djm@gnu.org>
7160 * README: entered into RCS
7162 1992-01-22 Richard Stallman <rms@gnu.org>
7164 * src/machine.h: entered into RCS
7166 1991-12-21 Richard Stallman <rms@gnu.org>
7168 * src/lalr.c, src/closure.c:
7171 1991-12-20 Richard Stallman <rms@gnu.org>
7173 * src/state.h: entered into RCS
7175 1991-12-18 Richard Stallman <rms@gnu.org>
7177 * src/print.c, src/nullable.c, src/derives.c:
7180 1991-11-03 David J. MacKenzie <djm@gnu.org>
7182 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
7185 1988-09-09 Richard Stallman <rms@gnu.org>
7187 * src/bison.hairy: entered into RCS
7189 1987-12-16 Richard Stallman <rms@gnu.org>
7191 * REFERENCES: entered into RCS
7194 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
7196 This file is part of GNU Autoconf.
7198 GNU Autoconf is free software; you can redistribute it and/or modify
7199 it under the terms of the GNU General Public License as published by
7200 the Free Software Foundation; either version 2, or (at your option)
7203 GNU Autoconf is distributed in the hope that it will be useful,
7204 but WITHOUT ANY WARRANTY; without even the implied warranty of
7205 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7206 GNU General Public License for more details.
7208 You should have received a copy of the GNU General Public License
7209 along with autoconf; see the file COPYING. If not, write to
7210 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
7211 Boston, MA 02111-1307, USA.