1 2002-06-27 Akim Demaille <akim@epita.fr>
3 * data/bison.simple, data/bison.c++: Rename as...
4 * data/yacc.c, data/lalr1.cc: these.
5 * doc/bison.texinfo (Environment Variables): Remove.
7 2002-06-25 Raja R Harinath <harinath@cs.umn.edu>
9 * src/getargs.c (report_argmatch): Initialize strtok().
11 2002-06-20 Akim Demaille <akim@epita.fr>
13 * data/bison.simple (b4_symbol_actions): New, replaces...
14 (b4_symbol_destructor, b4_symbol_printer): these.
15 (yysymprint): Be sure to call YYPRINT only for tokens, and using
18 2002-06-20 Akim Demaille <akim@epita.fr>
20 * data/bison.simple (yydestructor): Rename as...
23 2002-06-20 Akim Demaille <akim@epita.fr>
25 * src/symtab.h, src/symtab.c (symbol_type_set)
26 (symbol_destructor_set, symbol_precedence_set): The location is
30 2002-06-20 Akim Demaille <akim@epita.fr>
32 * src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser
34 * src/reader.h, src/reader.c (grammar_current_rule_prec_set):
36 * src/symtab.h, src/symtab.c (symbol_class_set)
37 (symbol_user_token_number_set): Likewise.
40 * tests/input.at (Type Clashes): Adjust.
42 2002-06-20 Akim Demaille <akim@epita.fr>
44 * data/bison.simple (YYLEX): Fix the declaration when
47 2002-06-20 Akim Demaille <akim@epita.fr>
49 * data/bison.simple (yysymprint): Don't print the token number,
51 * tests/actions.at (Destructors): Rename as...
52 (Printers and Destructors): this.
53 Also exercise %printer.
55 2002-06-20 Akim Demaille <akim@epita.fr>
57 * data/bison.simple (YYDSYMPRINT): New.
58 Use it to remove many of the #if YYDEBUG/if (yydebug).
60 2002-06-20 Akim Demaille <akim@epita.fr>
62 * src/symtab.h, src/symtab.c (symbol_t): printer and
63 printer_location are new members.
64 (symbol_printer_set): New.
65 * src/parse-gram.y (PERCENT_PRINTER): New token.
66 Handle its associated rule.
67 * src/scan-gram.l: Adjust.
68 (handle_destructor_at, handle_destructor_dollar): Rename as...
69 (handle_symbol_code_at, handle_symbol_code_dollar): these.
70 * src/output.c (symbol_printers_output): New.
71 (output_skeleton): Call it.
72 * data/bison.simple (yysymprint): New. Cannot be named yyprint
73 since there are already many grammar files with a user `yyprint'.
74 Replace the calls to YYPRINT to calls to yysymprint.
75 * tests/calc.at: Adjust.
76 * tests/torture.at (AT_DATA_STACK_TORTURE): Remove YYPRINT: it was
77 taking advantage of parser very internal details (stack size!).
79 2002-06-20 Akim Demaille <akim@epita.fr>
81 * src/scan-gram.l: Complete the scanner with the missing patterns
83 Use `quote' and `symbol_tag_get' where appropriate.
85 2002-06-19 Akim Demaille <akim@epita.fr>
87 * tests/actions.at (Destructors): Augment to test locations.
88 * data/bison.simple (yydestructor): Pass it the current location
89 if locations are enabled.
90 Prototype only when __STDC__ or C++.
91 Change the argument names to move into the yy name space: there is
94 2002-06-19 Akim Demaille <akim@epita.fr>
96 * data/bison.simple (b4_pure_if): New.
97 Use it instead of #ifdef YYPURE.
99 2002-06-19 Akim Demaille <akim@epita.fr>
101 * data/bison.simple (b4_location_if): New.
102 Use it instead of #ifdef YYLSP_NEEDED.
104 2002-06-19 Akim Demaille <akim@epita.fr>
106 Prepare @$ in %destructor, but currently don't bind it in the
107 skeleton, as %location use is not cleaned up yet.
109 * src/scan-gram.l (handle_dollar, handle_destructor_at)
110 (handle_action_at): New.
111 (handle_at, handle_action_dollar, handle_destructor_dollar): Take
112 a braced_code_t and a location as additional arguments.
113 (handle_destructor_dollar): Instead of requiring `b4_eval', just
114 unquote one when outputting `b4_dollar_dollar'.
116 * data/bison.simple (b4_eval): Remove.
117 (b4_symbol_destructor): Adjust.
118 * tests/input.at (Invalid @n): Adjust.
120 2002-06-19 Zack Weinberg <zack@codesourcery.com>
122 * doc/bison.texinfo: Document ability to have multiple
125 2002-06-18 Akim Demaille <akim@epita.fr>
127 * src/files.c (compute_base_names): When computing the output file
128 names from the input file name, strip the directory part.
130 2002-06-18 Akim Demaille <akim@epita.fr>
132 * data/bison.simple.new: Comment changes.
133 Reported by Andreas Schwab.
135 2002-06-18 Matt Kraai <kraai@alumni.cmu.edu>
137 * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
138 there are no `label `yyoverflowlab' defined but not used' warnings
139 when yyoverflow is defined.
141 2002-06-18 Akim Demaille <akim@epita.fr>
143 * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a
145 (symbol_destructor_set): Adjust.
146 * src/output.c (symbol_destructors_output): Output the destructor
148 Output the symbol name.
149 * data/bison.simple (b4_symbol_destructor): Adjust.
151 2002-06-18 Cris Bailiff <c.bailiff@awayweb.com>
152 and Akim Demaille <akim@epita.fr>
154 * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy
155 what's left on the stack when the error recovery hits EOF.
156 * tests/actions.at (Destructors): Complete to exercise this case.
158 2002-06-17 Akim Demaille <akim@epita.fr>
160 * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of
161 arguments is really empty, not only equal to `[]'.
162 * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new
164 (symbol_destructor_set): New.
165 * src/output.c (symbol_destructors_output): New.
166 * src/reader.h (brace_code_t, current_braced_code): New.
167 * src/scan-gram.l (BRACED_CODE): Use it to branch on...
168 (handle_dollar): Rename as...
169 (handle_action_dollar): this.
170 (handle_destructor_dollar): New.
171 * src/parse-gram.y (PERCENT_DESTRUCTOR): New.
172 (grammar_declaration): Use it.
173 * data/bison.simple (yystos): Is always defined.
175 * tests/actions.at (Destructors): New.
176 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep.
178 2002-06-17 Akim Demaille <akim@epita.fr>
180 * src/symlist.h, src/symlist.c (symbol_list_length): New.
181 * src/scan-gram.l (handle_dollar, handle_at): Compute the
182 rule_length only when needed.
183 * src/output.c (actions_output, token_definitions_output): Output
185 * src/symtab.c: Don't access directly to the symbol tag, use
187 * src/parse-gram.y: Use symbol_list_free.
189 2002-06-17 Akim Demaille <akim@epita.fr>
191 * src/reader.h, src/reader.c (symbol_list, symbol_list_new)
192 (symbol_list_prepend, get_type_name): Move to...
193 * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new)
194 (symbol_list_prepend, symbol_list_n_type_name_get): here.
196 (symbol_list_free): New.
197 * src/scan-gram.l (handle_dollar): Takes a location.
198 * tests/input.at (Invalid $n): Adjust.
200 2002-06-17 Akim Demaille <akim@epita.fr>
202 * src/reader.h, src/reader.c (symbol_list_new): Export it.
203 (symbol_list_prepend): New.
204 * src/parse-gram.y (%union): `list' is a new member.
205 (symbols.1): New, replaces...
206 (terms_to_prec.1, nterms_to_type.1): these.
207 * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set)
208 Take a location as additional argument.
211 2002-06-15 Akim Demaille <akim@epita.fr>
213 * src/parse-gram.y: Move %token in the declaration section so that
214 we don't depend upon CVS Bison.
216 2002-06-15 Akim Demaille <akim@epita.fr>
218 * src/state.h, src/state.c (state_rule_lookaheads_print): New.
219 * src/print.c (print_core): Use it.
221 2002-06-15 Akim Demaille <akim@epita.fr>
223 * src/conflicts.c (log_resolution): Accept the rule involved in
224 the sr conflicts instead of the lookahead number that points to
226 (flush_reduce): Accept the current lookahead vector as argument,
227 instead of the index in LA.
228 (resolve_sr_conflict): Accept the current number of lookahead
229 bitset to consider for the STATE, instead of the index in LA.
230 (set_conflicts): Adjust.
231 * src/lalr.c, src/lalr.h, src/state.h: Comment changes.
233 2002-06-15 Akim Demaille <akim@epita.fr>
235 * src/state.h (state_t): Replace the `lookaheadsp' member, a
236 short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**).
237 Adjust all dependencies.
238 * src/lalr.c (initialize_lookaheads): Split into...
239 (states_lookaheads_count, states_lookaheads_initialize): these.
242 2002-06-15 Akim Demaille <akim@epita.fr>
244 * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved
246 (grammar_rules_print): here.
247 * src/reduce.c (reduce_output): Use it.
248 * tests/reduce.at (Useless Rules, Reduced Automaton)
249 (Underivable Rules): Adjust.
251 2002-06-15 Akim Demaille <akim@epita.fr>
253 Copy BYacc's nice way to report the grammar.
255 * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print):
257 Don't print the rules' location, it is confusing and useless.
258 (rule_print): Use grammar_rhs_print.
259 * src/print.c (print_grammar): Use grammar_rules_print.
261 2002-06-15 Akim Demaille <akim@epita.fr>
263 Complete and rationalize `useless thing' warnings.
265 * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n)
266 (symbol_tag_print): New.
267 Use them everywhere in place of accessing directly the tag member.
268 * src/gram.h, src/gram.c (rule_print): New.
269 Use it where a rule used to be printed `by hand'.
270 * src/reduce.c (nonterminals_reduce): Report the use nonterminals.
271 (reduce_grammar_tables): Report the useless rules.
272 (reduce_print): Useless things are a warning, not an error.
274 * tests/reduce.at (Useless Nonterminals, Useless Rules):
275 (Reduced Automaton, Underivable Rules): Adjust.
276 * tests/regression.at (Web2c Report, Web2c Report): Adjust.
277 * tests/conflicts.at (Unresolved SR Conflicts)
278 (Solved SR Conflicts): Adjust.
280 2002-06-15 Akim Demaille <akim@epita.fr>
282 Let symbols have a location.
284 * src/symtab.h, src/symtab.c (symbol_t): Location is a new member.
287 * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at):
288 Use location_t, not int.
289 * src/symtab.c (symbol_check_defined): Take advantage of the
291 * tests/regression.at (Invalid inputs): Adjust.
293 2002-06-15 Akim Demaille <akim@epita.fr>
295 * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
296 (input): Don't try to initialize yylloc here, do it in the
298 * src/scan-gram.l (YY_USER_INIT): Initialize yylloc.
299 * src/gram.h (rule_t): Change line and action_line into location
300 and action_location, of location_t type.
301 Adjust all dependencies.
302 * src/location.h, src/location.c (empty_location): New.
303 * src/reader.h, src/reader.c (grammar_start_symbol_set)
304 (grammar_symbol_append, grammar_rule_begin, grammar_rule_end)
305 (grammar_current_rule_symbol_append)
306 (grammar_current_rule_action_append): Expect a location as argument.
307 * src/reader.c (grammar_midrule_action): Adjust to attach an
308 action's location as dummy symbol location.
309 * src/symtab.h, src/symtab.c (startsymbol_location): New.
310 * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust
313 2002-06-14 Akim Demaille <akim@epita.fr>
315 Grammar declarations may be found in the grammar section.
317 * src/parse-gram.y (rules_or_grammar_declaration): New.
318 (declarations): Each declaration may end with a semicolon, not
320 (grammar_declaration): `"%union"'.
321 (grammar): Branch to rules_or_grammar_declaration.
323 2002-06-14 Akim Demaille <akim@epita.fr>
325 * src/main.c (main): Invoke scanner_free.
327 2002-06-14 Akim Demaille <akim@epita.fr>
329 * src/output.c (m4_invoke): Extracted from...
330 (output_skeleton): here.
333 2002-06-14 Akim Demaille <akim@epita.fr>
335 * src/parse-gram.y (directives, directive, gram)
336 (grammar_directives, precedence_directives, precedence_directive):
338 (declarations, declaration, grammar, grammar_declaration)
339 (precedence_declaration, precedence_declarator): these.
340 (symbol_declaration): New.
342 2002-06-14 Akim Demaille <akim@epita.fr>
344 * src/files.c (action_obstack): Remove, unused.
345 (output_obstack): Remove it, and all its dependencies, as it is no
347 * src/reader.c (epilogue_set): Build the epilogue in the
349 * src/output.h, src/output.c (muscle_obstack): Move to...
350 * src/muscle_tab.h, src/muscle_tab.h: here.
351 (muscle_init): Initialize muscle_obstack.
353 * src/main.c (main): Call it.
355 2002-06-14 Akim Demaille <akim@epita.fr>
357 * src/location.h: New, extracted from...
358 * src/reader.h: here.
359 * src/Makefile.am (noinst_HEADERS): Merge into
360 (bison_SOURCES): this.
362 * src/parse-gram.y: Use location_t instead of Bison's.
363 * src/reader.h, src/reader.c (prologue_augment, epilogue_set):
364 Use location_t instead of ints.
366 2002-06-14 Akim Demaille <akim@epita.fr>
368 * data/bison.simple, data/bison.c++: Be sure to restore the
369 current #line when returning to the skeleton contents after having
370 exposed the input file's #line.
372 2002-06-12 Akim Demaille <akim@epita.fr>
374 * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
376 * tests/actions.at (Exotic Dollars): New.
378 2002-06-12 Akim Demaille <akim@epita.fr>
380 * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
382 * tests/input.at (Torturing the Scanner): New.
384 2002-06-11 Akim Demaille <akim@epita.fr>
386 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
387 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
388 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
389 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
390 * src/reader.c (reader): Use it.
392 2002-06-11 Akim Demaille <akim@epita.fr>
394 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
396 (scanner_last_string_free): New.
398 2002-06-11 Akim Demaille <akim@epita.fr>
400 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
401 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
402 (last_string, YY_OBS_FREE): New.
403 Use them when returning an ID.
405 2002-06-11 Akim Demaille <akim@epita.fr>
407 Have Bison grammars parsed by a Bison grammar.
409 * src/reader.c, src/reader.h (prologue_augment): New.
410 * src/reader.c (copy_definition): Remove.
412 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
413 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
414 (grammar_current_rule_prec_set, grammar_current_rule_check)
415 (grammar_current_rule_symbol_append)
416 (grammar_current_rule_action_append): Export.
417 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
418 (symbol_list_action_append): Remove.
419 Hook the routines from reader.
420 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
421 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
423 * src/reader.c (read_declarations): Remove, unused.
425 * src/parse-gram.y: Handle the epilogue.
426 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
427 (grammar_start_symbol_set): this.
428 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
429 * src/reader.c (readgram): Remove, unused.
430 (reader): Adjust to insert eoftoken and axiom where appropriate.
432 * src/reader.c (copy_dollar): Replace with...
433 * src/scan-gram.h (handle_dollar): this.
434 * src/parse-gram.y: Remove `%thong'.
436 * src/reader.c (copy_at): Replace with...
437 * src/scan-gram.h (handle_at): this.
439 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
442 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
445 * src/reader.h, src/reader.c (grammar_rule_end): New.
447 * src/parse.y (current_type, current_class): New.
448 Implement `%nterm', `%token' support.
449 Merge `%term' into `%token'.
451 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
454 * src/parse-gram.y: Be sure to handle properly the beginning of
457 * src/parse-gram.y: Handle %type.
458 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
460 * src/parse-gram.y: More directives support.
461 * src/options.c: No longer handle source directives.
463 * src/parse-gram.y: Fix %output.
465 * src/parse-gram.y: Handle %union.
466 Use the prologue locations.
467 * src/reader.c (parse_union_decl): Remove.
469 * src/reader.h, src/reader.c (epilogue_set): New.
470 * src/parse-gram.y: Use it.
472 * data/bison.simple, data/bison.c++: b4_stype is now either not
473 defined, then default to int, or to the contents of %union,
474 without `union' itself.
476 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
478 * src/output.c (actions_output): Don't output braces, as they are
479 already handled by the scanner.
481 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
482 characters to themselves.
484 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
485 that the epilogue has a proper #line.
487 * src/parse-gram.y: Handle precedence/associativity.
489 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
491 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
492 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
493 at all to define terminals that cannot be emitted.
495 * src/scan-gram.l: Escape M4 characters.
497 * src/scan-gram.l: Working properly with escapes in user
500 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
501 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
503 Use more modest sizes, as for the time being the parser does not
504 release memory, and therefore the process swallows a huge amount
507 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
508 stricter %token grammar.
510 * src/symtab.h (associativity): Add `undef_assoc'.
511 (symbol_precedence_set): Do nothing when passed an undef_assoc.
512 * src/symtab.c (symbol_check_alias_consistence): Adjust.
514 * tests/regression.at (Invalid %directive): Remove, as it is now
516 (Invalid inputs): Adjust to the new error messages.
517 (Token definitions): The new grammar doesn't allow too many
520 * src/lex.h, src/lex.c: Remove.
521 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
522 (copy_character, copy_string2, copy_string, copy_identifier)
523 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
524 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
525 (parse_action): Remove.
526 * po/POTFILES.in: Adjust.
528 2002-06-11 Akim Demaille <akim@epita.fr>
530 * src/reader.c (parse_action): Don't store directly into the
531 rule's action member: return the action as a string.
532 Don't require `rule_length' as an argument: compute it.
533 (grammar_current_rule_symbol_append)
534 (grammar_current_rule_action_append): New, eved out from
536 Remove `action_flag', `rulelength', unused now.
538 2002-06-11 Akim Demaille <akim@epita.fr>
540 * src/reader.c (grammar_current_rule_prec_set).
541 (grammar_current_rule_check): New, eved out from...
543 Remove `xaction', `first_rhs': useless.
544 * tests/input.at (Type clashes): New.
545 * tests/existing.at (GNU Cim Grammar): Adjust.
547 2002-06-11 Akim Demaille <akim@epita.fr>
549 * src/reader.c (grammar_midrule_action): New, Eved out from
552 2002-06-11 Akim Demaille <akim@epita.fr>
554 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
556 (readgram): Use them as replacement of inlined code, crule and
559 2002-06-11 Akim Demaille <akim@epita.fr>
561 * src/reader.c (grammar_end, grammar_symbol_append): New.
562 (readgram): Use them.
563 Make the use of `p' as local as possible.
565 2002-06-10 Akim Demaille <akim@epita.fr>
567 GCJ's parser requires the tokens to be defined before the prologue.
569 * data/bison.simple: Output the token definition before the user's
571 * tests/regression.at (Braces parsing, Duplicate string)
572 (Mixing %token styles): Check the output from bison.
573 (Early token definitions): New.
575 2002-06-10 Akim Demaille <akim@epita.fr>
577 * src/symtab.c (symbol_user_token_number_set): Don't complain when
578 assigning twice the same user number to a token, so that we can
580 * src/lex.c (lex): here.
581 Also use `symbol_class_set' instead of hand written code.
582 * src/reader.c (parse_assoc_decl): Likewise.
584 2002-06-10 Akim Demaille <akim@epita.fr>
586 * src/symtab.c, src/symtab.c (symbol_class_set)
587 (symbol_user_token_number_set): New.
588 * src/reader.c (parse_token_decl): Use them.
589 Use a switch instead of ifs.
590 Use a single argument.
592 2002-06-10 Akim Demaille <akim@epita.fr>
594 Remove `%thong' support as it is undocumented, unused, duplicates
595 `%token's job, and creates useless e-mail traffic with people who
596 want to know what it is, why it is undocumented, unused, and
597 duplicates `%token's job.
599 * src/reader.c (parse_thong_decl): Remove.
600 * src/options.c (option_table): Remove "thong".
601 * src/lex.h (tok_thong): Remove.
603 2002-06-10 Akim Demaille <akim@epita.fr>
605 * src/symtab.c, src/symtab.c (symbol_type_set)
606 (symbol_precedence_set): New.
607 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
608 (value_components_used): Remove, unused.
610 2002-06-09 Akim Demaille <akim@epita.fr>
612 Move symbols handling code out of the reader.
614 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
616 * src/symtab.h, src/symtab.c: here.
618 * src/gram.c (start_symbol): Remove: use startsymbol->number.
619 * src/reader.c (startval): Rename as...
620 * src/symtab.h, src/symtab.c (startsymbol): this.
621 * src/reader.c: Adjust.
623 * src/reader.c (symbol_check_defined, symbol_make_alias)
624 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
625 (token_translations_init)
627 * src/symtab.c: here.
628 * src/reader.c (packsymbols): Move to...
629 * src/symtab.h, src/symtab.c (symbols_pack): here.
630 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
633 2002-06-03 Akim Demaille <akim@epita.fr>
635 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
638 2002-06-03 Akim Demaille <akim@epita.fr>
640 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
641 structs with non literals.
642 * src/scan-skel.l: never-interactive.
643 * src/conflicts.c (enum conflict_resolution_e): No trailing
645 * src/getargs.c (usage): Split long literal strings.
646 Reported by Hans Aberg.
648 2002-05-28 Akim Demaille <akim@epita.fr>
650 * data/bison.c++: Use C++ ostreams.
651 (cdebug_): New member.
653 2002-05-28 Akim Demaille <akim@epita.fr>
655 * src/output.c (output_skeleton): Be sure to allocate enough room
656 for `/' _and_ for `\0' in full_skeleton.
658 2002-05-28 Akim Demaille <akim@epita.fr>
660 * data/bison.c++: Catch up with bison.simple:
661 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
662 and Paul Eggert <eggert@twinsun.com>: `error' handing.
663 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
666 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
668 * src/output.c (output_skeleton): Put an explicit path in front of
669 the skeleton file name, rather than relying on the -I directory,
670 to partially alleviate effects of having a skeleton file lying around
671 in the current directory.
673 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
675 * src/conflicts.c (log_resolution): Correct typo:
676 obstack_printf should be obstack_fgrow1.
678 2002-05-26 Akim Demaille <akim@epita.fr>
680 * src/state.h (state_t): `solved_conflicts' is a new member.
681 * src/LR0.c (new_state): Set it to 0.
682 * src/conflicts.h, src/conflicts.c (print_conflicts)
683 (free_conflicts, solve_conflicts): Rename as...
684 (conflicts_print, conflicts_free, conflicts_solve): these.
686 * src/conflicts.c (enum conflict_resolution_e)
687 (solved_conflicts_obstack): New, used by...
688 (log_resolution): this.
689 Adjust to attach the conflict resolution to each state.
690 Complete the description with the precedence/associativity
692 (resolve_sr_conflict): Adjust.
693 * src/print.c (print_state): Output its solved_conflicts.
694 * tests/conflicts.at (Unresolved SR Conflicts)
695 (Solved SR Conflicts): Exercise --report=all.
697 2002-05-26 Akim Demaille <akim@epita.fr>
699 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
700 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
701 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
702 (token_number_t, item_number_as_token_number)
703 (token_number_as_item_number, muscle_insert_token_number_table):
705 (symbol_number_t, item_number_as_symbol_number)
706 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
707 these, since it is more appropriate.
709 2002-05-26 Akim Demaille <akim@epita.fr>
711 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
713 * data/bison.simple (yystos) [YYDEBUG]: New.
714 (yyparse) [YYDEBUG]: Display the symbols which are popped during
716 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
718 2002-05-25 Akim Demaille <akim@epita.fr>
720 * doc/bison.texinfo (Debugging): Split into...
721 (Tracing): this new section, its former contents, and...
722 (Understanding): this new section.
723 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
726 Adjust all dependencies.
727 (report_args, report_types, report_argmatch): New.
728 (usage, getargs): Report/support -r, --report.
730 (struct option_table_struct): Rename as..,
731 (struct option_table_s): this.
732 Rename the `set_flag' member to `flag' to match with getopt_long's
734 * src/options.c (option_table): Split verbose into an entry for
735 %verbose, and another for --verbose.
736 Support --report/-r, so remove -r from the obsolete --raw.
737 * src/print.c: Attach full item sets and lookaheads reports to
738 report_flag instead of trace_flag.
739 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
741 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
742 and Paul Eggert <eggert@twinsun.com>
744 * data/bison.simple (yyparse): Correct error handling to conform to
745 POSIX and yacc. Specifically, after syntax error is discovered,
746 do not reduce further before shifting the error token.
747 Clean up the code a bit by removing the labels yyerrdefault,
748 yyerrhandle, yyerrpop.
749 * NEWS: Document the above.
751 2002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
753 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
754 type; it isn't always big enough, since it doesn't necessarily
755 include non-terminals.
756 (yytranslate): Expand definition of yy_token_number_type, so that
757 the latter can be removed.
758 (yy_token_number_type): Remove, only one use.
759 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
760 don't use TokenNumberType as element type.
762 * tests/regression.at: Modify expected output to agree with change
763 to yyr1 and yytranslate.
765 2002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
767 * src/reader.c (parse_action): Use copy_character instead of
770 2002-05-13 Akim Demaille <akim@epita.fr>
772 * tests/regression.at (Token definitions): Prototype yylex and
775 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
777 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
778 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
780 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
782 2002-05-07 Akim Demaille <akim@epita.fr>
784 * tests/synclines.at: Be sure to prototype yylex and yyerror to
787 2002-05-07 Akim Demaille <akim@epita.fr>
791 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
792 over the RHS of each rule.
793 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
794 * src/state.h (state_t): Member `nitems' is unsigned short.
795 * src/LR0.c (get_state): Adjust.
796 * src/reader.c (packgram): Likewise.
797 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
799 (muscle_insert_int_table): Remove, unused.
800 (prepare_rules): Remove `max'.
802 2002-05-06 Akim Demaille <akim@epita.fr>
804 * src/closure.c (print_firsts): Display of the symbol tags.
805 (bitmatrix_print): Move to...
806 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
808 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
810 2002-05-06 Akim Demaille <akim@epita.fr>
812 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
815 2002-05-06 Akim Demaille <akim@epita.fr>
817 * src/LR0.c (new_state, get_state): Instead of using the global
818 `kernel_size' and `kernel_base', have two new arguments:
819 `core_size' and `core'.
822 2002-05-06 Akim Demaille <akim@epita.fr>
824 * src/reader.c (packgram): No longer end `ritem' with a 0
825 sentinel: it is not used.
827 2002-05-05 Akim Demaille <akim@epita.fr>
829 New experimental feature: display the lookaheads in the report and
832 * src/print (print_core): When --trace-flag, display the rules
834 * src/print_graph.c (print_core): Likewise.
838 2002-05-05 Akim Demaille <akim@epita.fr>
840 * tests/torture.at (Many lookaheads): New test.
842 2002-05-05 Akim Demaille <akim@epita.fr>
844 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
845 (GENERATE_MUSCLE_INSERT_TABLE): this.
846 (output_int_table, output_unsigned_int_table, output_short_table)
847 (output_token_number_table, output_item_number_table): Replace with...
848 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
849 (muscle_insert_short_table, muscle_insert_token_number_table)
850 (muscle_insert_item_number_table): these.
852 (prepare_tokens): Don't free `translations', since...
853 * src/reader.h, src/reader.c (grammar_free): do it.
855 * src/gram.h, src/gram.c (grammar_free): here.
856 * data/bison.simple, data/bison.c++: b4_token_number_max is now
859 2002-05-05 Akim Demaille <akim@epita.fr>
861 * src/output.c (output_unsigned_int_table): New.
862 (prepare_rules): `i' is unsigned.
863 `prhs', `rline', `r2' are unsigned int.
864 Rename muscle `rhs_number_max' as `rhs_max'.
865 Output muscles `prhs_max', `rline_max', and `r2_max'.
867 * data/bison.simple, data/bison.c++: Adjust to use these muscles
868 to compute types instead of constant types.
869 * tests/regression.at (Web2c Actions): Adjust.
871 2002-05-04 Akim Demaille <akim@epita.fr>
873 * src/symtab.h (SALIAS, SUNDEF): Rename as...
874 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
876 * src/output.c (token_definitions_output): Be sure not to output a
877 `#define 'a'' when fed with `%token 'a' "a"'.
878 * tests/regression.at (Token definitions): New.
880 2002-05-03 Paul Eggert <eggert@twinsun.com>
882 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
885 2002-05-03 gettextize <bug-gnu-gettext@gnu.org>
887 * Makefile.am (SUBDIRS): Remove intl.
888 (EXTRA_DIST): Add config/config.rpath.
890 2002-05-03 Akim Demaille <akim@epita.fr>
892 * data/bison.simple (m4_if): Don't output empty enums.
893 And actually, output valid enum definitions :(.
895 2002-05-03 Akim Demaille <akim@epita.fr>
897 * configure.bat: Remove, completely obsolete.
898 * Makefile.am (EXTRA_DIST): Adjust.
899 Don't distribute config.rpath...
900 * config/Makefile.am (EXTRA_DIST): Do it.
902 2002-05-03 Akim Demaille <akim@epita.fr>
904 * configure.in (GETTEXT_VERSION): New.
905 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
907 2002-05-03 Akim Demaille <akim@epita.fr>
909 * data/bison.simple (b4_token_enum): New.
910 (b4_token_defines): Use it to output tokens both as #define and
912 Suggested by Paul Eggert.
913 * src/output.c (token_definitions_output): Don't output spurious
916 2002-05-03 Akim Demaille <akim@epita.fr>
918 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
920 2002-05-02 Robert Anisko <robert@lrde.epita.fr>
922 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
923 Update the stack class, give a try to deque as the default container.
925 2002-05-02 Akim Demaille <akim@epita.fr>
927 * data/bison.simple (yyparse): Do not implement @$ = @1.
928 (YYLLOC_DEFAULT): Adjust to do it.
929 * doc/bison.texinfo (Location Default Action): Fix.
931 2002-05-02 Akim Demaille <akim@epita.fr>
933 * src/reader.c (parse_braces): Merge into...
934 (parse_action): this.
936 2002-05-02 Akim Demaille <akim@epita.fr>
938 * configure.in (ALL_LINGUAS): Remove.
939 * po/LINGUAS, hr.po: New.
941 2002-05-02 Akim Demaille <akim@epita.fr>
943 Remove the so called hairy (semantic) parsers.
945 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
946 * src/gram.h, src/gram.c (semantic_parser): Remove.
947 (rule_t): Remove the guard and guard_line members.
948 * src/lex.h (token_t): remove tok_guard.
949 * src/options.c (option_table): Remove %guard and %semantic_parser
951 * src/output.c, src/output.h (guards_output): Remove.
953 (token_definitions_output): Don't output the `T'
955 (output_skeleton): Don't output the guards.
956 * src/files.c, src/files.c (attrsfile): Remove.
957 * src/reader.c (symbol_list): Remove the guard and guard_line
960 (parse_guard): Remove.
961 * data/bison.hairy: Remove.
962 * doc/bison.texinfo (Environment Variables): Remove occurrences of
965 2002-05-02 Akim Demaille <akim@epita.fr>
967 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
968 (parse_guard): Rename the formal argument `stack_offset' as
969 `rule_length', which is more readable.
971 (copy_at, copy_dollar): Instead of outputting the hard coded
972 values of $$, $n and so forth, output invocation to b4_lhs_value,
973 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
974 Note: this patch partially drops `semantic-parser' support: it
975 always does `rule_length - n', where semantic parsers ought to
977 * data/bison.simple, data/bison.c++ (b4_lhs_value)
978 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
980 2002-05-02 Akim Demaille <akim@epita.fr>
982 * configure.in (AC_INIT): Bump to 1.49b.
983 (AM_INIT_AUTOMAKE): Short invocation.
985 2002-05-02 Akim Demaille <akim@epita.fr>
989 2002-05-01 Akim Demaille <akim@epita.fr>
991 * src/skeleton.h: Remove.
993 2002-05-01 Akim Demaille <akim@epita.fr>
995 * src/skeleton.h: Fix the #endif.
996 Reported by Magnus Fromreide.
998 2002-04-26 Paul Eggert <eggert@twinsun.com>
1000 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
1001 Define if we define YYSTYPE and YYLTYPE, respectively.
1002 (YYCOPY): Fix [] quoting problem in the non-GCC case.
1004 2002-04-25 Robert Anisko <robert@lrde.epita.fr>
1006 * src/scan-skel.l: Postprocess quadrigraphs.
1008 * src/reader.c (copy_character): New function, used to output
1009 single characters while replacing `[' and `]' with quadrigraphs, to
1010 avoid troubles with M4 quotes.
1011 (copy_comment): Output characters with copy_character.
1012 (read_additionnal_code): Likewise.
1013 (copy_string2): Likewise.
1014 (copy_definition): Likewise.
1016 * tests/calc.at: Exercise M4 quoting.
1018 2002-04-25 Akim Demaille <akim@epita.fr>
1020 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
1021 between `!' and the command.
1022 Reported by Paul Eggert.
1024 2002-04-24 Robert Anisko <robert@lrde.epita.fr>
1026 * tests/calc.at: Exercise prologue splitting.
1028 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
1029 `b4_post_prologue' instead of `b4_prologue'.
1031 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
1033 (output): Free pre_prologue_obstack and post_prologue_obstack.
1034 * src/files.h, src/files.c (attrs_obstack): Remove.
1035 (pre_prologue_obstack, post_prologue_obstack): New.
1036 * src/reader.c (copy_definition): Add a parameter to specify the
1037 obstack to fill, instead of using attrs_obstack unconditionally.
1038 (read_declarations): Pass pre_prologue_obstack to copy_definition if
1039 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
1041 2002-04-23 Paul Eggert <eggert@twinsun.com>
1043 * data/bison.simple: Remove unnecessary commentary and white
1044 space differences from 1_29-branch.
1045 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
1047 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
1048 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
1049 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
1050 constructors or destructors.
1052 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
1054 2002-04-23 Akim Demaille <akim@epita.fr>
1056 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
1057 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
1058 location with columns.
1059 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
1060 All reported by Paul Eggert.
1062 2002-04-22 Akim Demaille <akim@epita.fr>
1064 * src/reduce.c (dump_grammar): Move to...
1065 * src/gram.h, src/gram.c (grammar_dump): here.
1066 Be sure to separate long item numbers.
1067 Don't read the members of a rule's prec if its nil.
1069 2002-04-22 Akim Demaille <akim@epita.fr>
1071 * src/output.c (table_size, table_grow): New.
1072 (MAXTABLE): Remove, replace uses with table_size.
1073 (pack_vector): Instead of dying when the table is too big, grow it.
1075 2002-04-22 Akim Demaille <akim@epita.fr>
1077 * data/bison.simple (yyr1): Its type is that of a token number.
1078 * data/bison.c++ (r1_): Likewise.
1079 * tests/regression.at (Web2c Actions): Adjust.
1081 2002-04-22 Akim Demaille <akim@epita.fr>
1083 * src/reader.c (token_translations_init): 256 is now the default
1084 value for the error token, i.e., it will be assigned another
1085 number if the user assigned 256 to one of her tokens.
1086 (reader): Don't force 256 to error.
1087 * doc/bison.texinfo (Symbols): Adjust.
1088 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
1089 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
1090 etc. instead of 10, 20, 30 (which was used to `jump' over error
1091 (256) and undefined (2)).
1093 2002-04-22 Akim Demaille <akim@epita.fr>
1095 Propagate more token_number_t.
1097 * src/gram.h (token_number_as_item_number)
1098 (item_number_as_token_number): New.
1099 * src/output.c (GENERATE_OUTPUT_TABLE): New.
1100 Use it to create output_item_number_table and
1101 output_token_number_table.
1102 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
1103 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
1104 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
1105 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
1107 2002-04-22 Akim Demaille <akim@epita.fr>
1109 * src/output.h, src/output.c (get_lines_number): Remove.
1111 2002-04-19 Akim Demaille <akim@epita.fr>
1113 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
1115 (Debugging): More details about enabling the debugging features.
1116 (Table of Symbols): Describe $$, $n, @$, and @n.
1117 Suggested by Tim Josling.
1119 2002-04-19 Akim Demaille <akim@epita.fr>
1121 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
1123 2002-04-10 Akim Demaille <akim@epita.fr>
1125 * src/system.h: Rely on HAVE_LIMITS_H.
1126 Suggested by Paul Eggert.
1128 2002-04-09 Akim Demaille <akim@epita.fr>
1130 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
1131 full stderr, and strip it according to the bison options, instead
1132 of composing the error message from different bits.
1133 This makes it easier to check for several error messages.
1134 Adjust all the invocations.
1135 Add an invocation exercising the error token.
1136 Add an invocation demonstrating a stupid error message.
1137 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
1139 Error message are for stderr, not stdout.
1141 2002-04-09 Akim Demaille <akim@epita.fr>
1143 * src/gram.h, src/gram.c (error_token_number): Remove, use
1145 * src/reader.c (reader): Don't specify the user token number (2)
1146 for $undefined, as it uselessly prevents using it.
1147 * src/gram.h (token_number_t): Move to...
1148 * src/symtab.h: here.
1149 (state_t.number): Is a token_number_t.
1150 * src/print.c, src/reader.c: Use undeftoken->number instead of
1152 (Even though this 2 is not the same as above: the number of the
1153 undeftoken remains being 2, it is its user token number which
1155 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
1156 `user_token_number_max'.
1157 Output `undef_token_number'.
1158 * data/bison.simple, data/bison.c++: Use them.
1159 Be sure to map invalid yylex return values to
1160 `undef_token_number'. This saves us from gratuitous SEGV.
1162 * tests/conflicts.at (Solved SR Conflicts)
1163 (Unresolved SR Conflicts): Adjust.
1164 * tests/regression.at (Web2c Actions): Adjust.
1166 2002-04-08 Akim Demaille <akim@epita.fr>
1168 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
1170 Remove the duplicate `typedefs'.
1171 (RhsNumberType): Fix the declaration and various other typos.
1173 * data/bison.simple: Use __ofile__.
1174 * src/scan-skel.l: Handle __ofile__.
1176 2002-04-08 Akim Demaille <akim@epita.fr>
1178 * src/gram.h (item_number_t): New, the type of item numbers in
1179 RITEM. Note that it must be able to code symbol numbers as
1180 positive number, and the negation of rule numbers as negative
1182 Adjust all dependencies (pretty many).
1183 * src/reduce.c (rule): Remove this `short *' pointer: use
1185 * src/system.h (MINSHORT, MAXSHORT): Remove.
1187 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
1189 (MAXTABLE): Move to...
1190 * src/output.c (MAXTABLE): here.
1191 (prepare_rules): Use output_int_table to output rhs.
1192 * data/bison.simple, data/bison.c++: Adjust.
1193 * tests/torture.at (Big triangle): Move the limit from 254 to
1195 * tests/regression.at (Web2c Actions): Ajust.
1197 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
1198 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
1199 passes, but produces negative #line number, once fixed, GCC is
1200 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
1202 * src/state.h (state_h): Code input lines on ints, not shorts.
1204 2002-04-08 Akim Demaille <akim@epita.fr>
1206 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
1207 and then the grammar.
1209 2002-04-08 Akim Demaille <akim@epita.fr>
1211 * src/system.h: No longer using strndup.
1213 2002-04-07 Akim Demaille <akim@epita.fr>
1215 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
1216 * src/output.c (output_table_data): Return the longest number.
1217 (prepare_tokens): Output `token_number_max').
1218 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
1220 Use them to define yy_token_number_type/TokenNumberType.
1221 Use this type for yytranslate.
1222 * tests/torture.at (Big triangle): Push the limit from 124 to
1224 * tests/regression.at (Web2c Actions): Adjust.
1226 2002-04-07 Akim Demaille <akim@epita.fr>
1228 * tests/torture.at (Big triangle): New.
1229 (GNU AWK Grammar, GNU Cim Grammar): Move to...
1230 * tests/existing.at: here.
1232 2002-04-07 Akim Demaille <akim@epita.fr>
1234 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
1236 Adjust dependencies.
1238 2002-04-07 Akim Demaille <akim@epita.fr>
1240 * src/reader.c: Normalize increments to prefix form.
1242 2002-04-07 Akim Demaille <akim@epita.fr>
1244 * src/reader.c, symtab.c: Remove debugging code.
1246 2002-04-07 Akim Demaille <akim@epita.fr>
1248 Rename all the `bucket's as `symbol_t'.
1250 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
1251 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
1252 * src/symtab.c, src/symtab.h (bucket): Rename as...
1254 (symbol_list_new, bucket_check_defined, bucket_make_alias)
1255 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
1256 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1257 (buckets_new, buckets_free, buckets_do): Rename as...
1258 (symbol_list_new, symbol_check_defined, symbol_make_alias)
1259 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
1260 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
1261 (symbols_new, symbols_free, symbols_do): these.
1263 2002-04-07 Akim Demaille <akim@epita.fr>
1265 Use lib/hash for the symbol table.
1267 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
1269 * src/lex.c (lex): Set the `number' member of new terminals.
1270 * src/reader.c (bucket_check_defined, bucket_make_alias)
1271 (bucket_check_alias_consistence, bucket_translation): New.
1272 (reader, grammar_free, readgram, token_translations_init)
1273 (packsymbols): Adjust.
1274 (reader): Number the predefined tokens.
1275 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
1276 for predefined tokens.
1277 * src/symtab.h (bucket): Remove all the hash table related
1279 * src/symtab.c (symtab): Replace by...
1280 (bucket_table): this.
1281 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1282 (buckets_new, buckets_do): New.
1284 2002-04-07 Akim Demaille <akim@epita.fr>
1286 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
1287 (start_symbol, max_user_token_number, semantic_parser)
1288 (error_token_number): Initialize.
1289 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
1292 (errtoken, eoftoken, undeftoken, axiom): Extern.
1294 2002-04-07 Akim Demaille <akim@epita.fr>
1296 * src/gram.h (rule_s): prec and precsym are now pointers
1297 to the bucket giving the priority/associativity.
1298 Member `associativity' removed: useless.
1299 * src/reduce.c, src/conflicts.c: Adjust.
1301 2002-04-07 Akim Demaille <akim@epita.fr>
1303 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
1304 Properly escape the symbols' TAG when outputting them.
1306 2002-04-07 Akim Demaille <akim@epita.fr>
1308 * src/lalr.h (LA): Is a bitsetv, not bitset*.
1310 2002-04-07 Akim Demaille <akim@epita.fr>
1312 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
1313 (LArule): this, which is an array to rule_t*.
1314 * src/print.c, src/conflicts.c: Adjust.
1316 2002-04-07 Akim Demaille <akim@epita.fr>
1318 * src/gram.h (rule_t): Rename `number' as `user_number'.
1319 `number' is a new member.
1320 Adjust dependencies.
1321 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
1323 2002-04-07 Akim Demaille <akim@epita.fr>
1325 As a result of the previous patch, it is no longer needed
1326 to reorder ritem itself.
1328 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
1330 2002-04-07 Akim Demaille <akim@epita.fr>
1332 Be sure never to walk through RITEMS, but use only data related to
1333 the rules themselves. RITEMS should be banished.
1335 * src/output.c (output_token_translations): Rename as...
1336 (prepare_tokens): this.
1337 In addition to `translate', prepare the muscles `tname' and
1338 `toknum', which were handled by...
1339 (output_rule_data): this.
1340 Remove, and move the remainder of its outputs into...
1341 (prepare_rules): this new routines, which also merges content from
1342 (output_gram): this.
1343 (prepare_rules): Be sure never to walk through RITEMS.
1344 (output_stos): Rename as...
1345 (prepare_stos): this.
1346 (output): Always invoke prepare_states, after all, just don't use it
1347 in the output if you don't need it.
1349 2002-04-07 Akim Demaille <akim@epita.fr>
1351 * src/LR0.c (new_state): Display `nstates' as the name of the
1352 newly created state.
1353 Adjust to initialize first_state and last_state if needed.
1354 Be sure to distinguish the initial from the final state.
1355 (new_states): Create the itemset of the initial state, and use
1357 * src/closure.c (closure): Now that the initial state has its
1358 items properly set, there is no need for a special case when
1361 As a result, now the rule 0, reducing to $axiom, is visible in the
1362 outputs. Adjust the test suite.
1364 * tests/conflicts.at (Solved SR Conflicts)
1365 (Unresolved SR Conflicts): Adjust.
1366 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
1367 * tests/conflicts.at (S/R in initial): New.
1369 2002-04-07 Akim Demaille <akim@epita.fr>
1371 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
1372 the RHS of the rules.
1373 * src/output.c (output_gram): Likewise.
1375 2002-04-07 Akim Demaille <akim@epita.fr>
1377 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
1379 Adjust all dependencies.
1380 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
1381 `number' of the buckets too.
1382 * src/gram.h: Include `symtab.h'.
1383 (associativity): Move to...
1384 * src/symtab.h: here.
1385 No longer include `gram.h'.
1387 2002-04-07 Akim Demaille <akim@epita.fr>
1389 * src/gram.h, src/gram.c (rules_rhs_length): New.
1390 (ritem_longest_rhs): Use it.
1391 * src/gram.h (rule_t): `number' is a new member.
1392 * src/reader.c (packgram): Set it.
1393 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
1394 the end of `rules', and count them out of `nrules'.
1395 (reduce_output, dump_grammar): Adjust.
1396 * src/print.c (print_grammar): It is no longer needed to check for
1397 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
1398 * tests/reduce.at (Reduced Automaton): New test.
1400 2002-04-07 Akim Demaille <akim@epita.fr>
1402 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
1403 lacking `+ 1' to nrules, Bison reported as useless a token if it
1404 was used solely to set the precedence of the last rule...
1406 2002-04-07 Akim Demaille <akim@epita.fr>
1408 * data/bison.c++, data/bison.simple: Don't output the current file
1409 name in #line, to avoid useless diffs between two identical
1410 outputs under different names.
1412 2002-04-07 Akim Demaille <akim@epita.fr>
1414 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
1415 Normalize loops to using `< nrules + 1', not `<= nrules'.
1417 2002-04-07 Akim Demaille <akim@epita.fr>
1421 2002-04-07 Akim Demaille <akim@epita.fr>
1423 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
1424 bucket.value as bucket.number.
1426 2002-04-07 Akim Demaille <akim@epita.fr>
1428 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
1429 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1430 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
1431 RHS, instead of being an index in RITEMS.
1433 2002-04-04 Paul Eggert <eggert@twinsun.com>
1435 * doc/bison.texinfo: Update copyright date.
1436 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
1437 (Symbols): Warn about running Bison in one character set,
1438 but compiling and/or running in an incompatible one.
1439 Warn about character code 256, too.
1441 2002-04-03 Paul Eggert <eggert@twinsun.com>
1443 * src/bison.data (YYSTACK_ALLOC): Depend on whether
1444 YYERROR_VERBOSE is nonzero, not whether it is defined.
1446 Merge changes from bison-1_29-branch.
1448 2002-03-20 Paul Eggert <eggert@twinsun.com>
1450 Merge fixes from Debian bison_1.34-1.diff.
1452 * configure.in (AC_PREREQ): 2.53.
1454 2002-03-20 Akim Demaille <akim@epita.fr>
1456 * src/conflicts.c (log_resolution): Argument `resolution' is const.
1458 2002-03-19 Paul Eggert <eggert@twinsun.com>
1460 * src/bison.simple (YYCOPY): New macro.
1461 (YYSTACK_RELOCATE): Use it.
1462 Remove Type arg; no longer needed. All callers changed.
1463 (yymemcpy): Remove; no longer needed.
1465 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
1466 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1468 2002-03-19 Akim Demaille <akim@epita.fr>
1470 Test and fix the #line outputs.
1472 * tests/atlocal.at (GCC): New.
1473 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
1474 (Prologue synch line, ,%union synch line, Postprologue synch line)
1475 (Action synch line, Epilogue synch line): New tests.
1476 * src/reader.c (parse_union_decl): Define the muscle stype_line.
1477 * data/bison.simple, data/bison.c++: Use it.
1479 2002-03-19 Akim Demaille <akim@epita.fr>
1481 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
1482 (Solved SR Conflicts, %expect not enough, %expect right)
1483 (%expect too much): Move to...
1484 * tests/conflicts.at: this new file.
1486 2002-03-19 Akim Demaille <akim@epita.fr>
1488 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1489 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
1490 that we can move to enums for instance.
1491 * src/output.c (token_definitions_output): Output a list of
1492 `token-name, token-number' instead of the #define.
1493 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
1495 2002-03-14 Akim Demaille <akim@epita.fr>
1499 2002-03-09 Robert Anisko <robert@lrde.epita.fr>
1501 * data/bison.c++: Make the user able to add members to the generated
1502 parser by subclassing.
1504 2002-03-05 Robert Anisko <robert@lrde.epita.fr>
1506 * src/reader.c (read_additionnal_code): `c' should be an integer, not
1508 Reported by Nicolas Tisserand and Nicolas Burrus.
1510 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1512 * src/reader.c: Warn about lacking semi-colons, do not complain.
1514 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1516 * data/bison.c++: Remove a debug line.
1518 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1520 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
1521 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
1522 provide a default implementation.
1524 2002-03-04 Akim Demaille <akim@epita.fr>
1526 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
1527 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
1528 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
1529 * tests/semantic.at (Parsing Guards): Similarly.
1530 * src/reader.at (readgram): Complain if the last rule is not ended
1533 2002-03-04 Akim Demaille <akim@epita.fr>
1535 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
1536 * src/closure.c: here.
1537 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
1539 * src/warshall.h, src/warshall.c: Remove.
1540 * tests/sets.at (Broken Closure): Adjust.
1542 2002-03-04 Akim Demaille <akim@epita.fr>
1544 * src/output.c (output_skeleton): tempdir is const.
1545 bytes_read is unused.
1547 2002-03-04 Akim Demaille <akim@epita.fr>
1549 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1550 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
1554 2002-03-04 Akim Demaille <akim@epita.fr>
1556 * src/closure.c (closure): `r' is unused.
1558 2002-03-04 Akim Demaille <akim@epita.fr>
1560 * tests/sets.at (Broken Closure): Add the ending `;'.
1561 * src/reader.at (readgram): Complain if a rule is not ended with a
1564 2002-03-04 Akim Demaille <akim@epita.fr>
1566 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
1567 (count_sr_conflicts): Use bitset_count.
1568 * src/reduce.c (inaccessable_symbols): Ditto.
1569 (bits_size): Remove.
1570 * src/warshall.h, src/warshall.c: Convert to bitsetv.
1572 2002-03-04 Akim Demaille <akim@epita.fr>
1574 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
1575 * src/reduce.c: Remove the `bitset_zero's following the
1576 `bitset_create's, as now it is performed by the latter.
1578 2002-03-04 Akim Demaille <akim@epita.fr>
1580 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
1581 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
1582 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
1583 latest sources from Michael.
1585 2002-03-04 Akim Demaille <akim@epita.fr>
1587 * src/output.c (output): Don't free the grammar.
1588 * src/reader.c (grammar_free): New.
1589 * src/main.c (main): Call it and don't free symtab here.
1591 2002-03-04 Akim Demaille <akim@epita.fr>
1593 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
1595 Reported by Benoit Perrot.
1597 2002-03-04 Akim Demaille <akim@epita.fr>
1599 Use bitset operations when possible, not loops over bits.
1601 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
1603 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
1604 * src/reduce.c (useless_nonterminals): Formatting changes.
1605 * src/warshall.c (TC): Use bitset_or.
1607 2002-03-04 Akim Demaille <akim@epita.fr>
1609 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
1610 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
1613 2002-03-04 Akim Demaille <akim@epita.fr>
1615 * src/lalr.c (F): Now a bitset*.
1616 Adjust all dependencies.
1618 2002-03-04 Akim Demaille <akim@epita.fr>
1620 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
1621 Adjust all dependencies.
1623 2002-03-04 Akim Demaille <akim@epita.fr>
1625 * src/L0.c, src/LR0.h (nstates): Be size_t.
1626 Adjust comparisons (signed vs unsigned).
1627 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
1629 Adjust all dependencies.
1631 2002-03-04 Akim Demaille <akim@epita.fr>
1633 * src/closure.c (firsts): Now, also a bitset.
1634 Adjust all dependencies.
1635 (varsetsize): Remove, now unused.
1636 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
1638 2002-03-04 Akim Demaille <akim@epita.fr>
1640 * src/print.c: Convert to use bitset.h, not hand coded iterations
1643 2002-03-04 Akim Demaille <akim@epita.fr>
1645 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
1647 2002-03-04 Akim Demaille <akim@epita.fr>
1649 * src/closure.c (ruleset): Be a bitset.
1650 (rulesetsize): Remove.
1652 2002-03-04 Akim Demaille <akim@epita.fr>
1654 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1655 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
1656 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
1657 * src/closure.c (fderives): Be an array of bitsets.
1659 2002-02-28 Robert Anisko <robert@lrde.epita.fr>
1661 * data/bison.c++: Merge the two generated headers. Insert a copyright
1662 notice in each output file.
1664 2002-02-28 Akim Demaille <akim@epita.fr>
1666 * data/bison.c++: Copy the prologue of bison.simple to fetch
1667 useful M4 definitions, such as b4_header_guard.
1669 2002-02-25 Akim Demaille <akim@epita.fr>
1671 * src/getargs.c (version): Give the name of the authors, and use a
1672 translator friendly scheme for the bgr
1675 2002-02-25 Akim Demaille <akim@epita.fr>
1677 * src/output.c (header_output): Remove, now handled completely via
1680 2002-02-25 Akim Demaille <akim@epita.fr>
1682 * m4/m4.m4: New, from CVS Autoconf.
1683 * configure.in: Invoke it.
1684 * src/output.c (output_skeleton): Use its result instead of the
1687 2002-02-25 Akim Demaille <akim@epita.fr>
1689 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
1691 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
1692 * src/output.c (output_skeleton): Use mkstemp to create a real
1694 Move the filling of `skeleton' and its muscle to...
1696 (output): Move the definition of the prologue muscle to...
1698 * src/system.h (DEFAULT_TMPDIR): New.
1700 2002-02-14 Paul Eggert <eggert@twinsun.com>
1702 Remove the support for C++ namespace cleanliness; it was
1703 causing more problems than it was curing, since it didn't work
1704 properly on some nonstandard C++ compilers. This can wait
1705 for a proper C++ parser.
1707 * NEWS: Document this.
1708 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
1709 of C++, as it's treated like C now.
1710 * src/bison.simple (YYSTD): Remove.
1711 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
1712 Treat C++ just like Standard C instead of trying to support
1713 namespace cleanliness.
1715 2002-02-14 Akim Demaille <akim@epita.fr>
1717 * tests/regression.at (else): Adjust to Andreas' change.
1719 2002-02-14 Akim Demaille <akim@epita.fr>
1721 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
1723 2002-02-13 Andreas Schwab <schwab@suse.de>
1725 * src/output.c (output_rule_data): Don't output NULL, it might
1728 2002-02-11 Robert Anisko <robert@lrde.epita.fr>
1730 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
1731 (Copyright notice): Update.
1733 2002-02-11 Akim Demaille <akim@epita.fr>
1735 * tests/regression.at (%nonassoc and eof): Don't include
1736 nonportable headers.
1738 2002-02-08 Robert Anisko <robert@lrde.epita.fr>
1740 * data/bison.c++: Correct error recovery. Make the user able to
1741 initialize the starting location.
1743 2002-02-07 Akim Demaille <akim@epita.fr>
1745 * tests/input.at: New.
1747 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1749 * data/bison.c++: Replace some direct m4 expansions by constants. Be
1750 more consistent when naming methods and variables. Put preprocessor
1751 directives around tables only needed for debugging.
1753 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1755 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
1757 (yy::b4_name::parse): Use print_.
1759 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1761 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
1763 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1765 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
1767 (yy::b4_name::parse): Build verbose error messages, and use error_.
1769 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1771 * data/bison.c++: Fix m4 quoting in comments.
1773 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1775 * data/bison.c++: Adjust the parser code. Fix some muscles that were
1778 2002-02-05 Akim Demaille <akim@epita.fr>
1780 * data/bison.c++: Adjust to the M4 back end.
1781 More is certainly needed.
1783 2002-02-05 Akim Demaille <akim@epita.fr>
1785 Give a try to M4 as a back end.
1787 * lib/readpipe.c: New, from wdiff.
1788 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
1790 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
1791 specific values. Now it is m4 that performs the lookup.
1792 * src/parse-skel.y: Remove.
1793 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
1794 * src/output.c (actions_output, guards_output)
1795 (token_definitions_output): No longer keeps track of the output
1796 line number, hence remove the second argument.
1797 (guards_output): Check against the guard member of a rule, not the
1800 (output_skeleton): Don't look for the skeleton location, let m4 do
1802 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
1804 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
1805 (prepare): Given that for the time being changesyntax is not
1806 usable in M4, rename the muscles using `-' to `_'.
1807 Define `defines_flag', `output_parser_name' and `output_header_name'.
1808 * src/output.h (actions_output, guards_output)
1809 (token_definitions_output): Adjust prototypes.
1810 * src/scan-skel.l: Instead of scanning the skeletons, it now
1811 processes the output of m4: `__oline__' and `#output'.
1812 * data/bison.simple: Adjust to be used by M4(sugar).
1813 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
1815 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
1816 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
1817 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
1818 shamelessly stolen from CVS Autoconf.
1820 2002-02-05 Akim Demaille <akim@epita.fr>
1822 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
1823 * configure.in: Check for the declarations of free and malloc.
1824 * src/muscle_tab.c: Adjust.
1826 2002-02-05 Akim Demaille <akim@epita.fr>
1828 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
1829 which have no values.
1831 2002-02-05 Akim Demaille <akim@epita.fr>
1833 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
1836 2002-01-29 Paul Eggert <eggert@twinsun.com>
1838 * src/bison.simple (YYSIZE_T): Do not define merely because
1839 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
1840 On some platforms, <alloca.h> does not declare YYSTD (size_t).
1842 2002-01-27 Akim Demaille <akim@epita.fr>
1844 Fix `%nonassoc and eof'.
1846 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
1847 which were not properly copied! Replace
1848 memcpy (res->errs, src->errs, src->nerrs);
1850 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
1852 * tests/regression.at (%nonassoc and eof): Adjust to newest
1853 Autotest: `.' is not in the PATH.
1855 2002-01-27 Akim Demaille <akim@epita.fr>
1857 * tests/sets.at (AT_EXTRACT_SETS): New.
1861 2002-01-26 Akim Demaille <akim@epita.fr>
1863 * tests/actions.at, tests/calc.at, tests/headers.at,
1864 * tests/torture.at: Adjust to the newest Autotest which no longer
1865 forces `.' in the PATH.
1867 2002-01-25 Akim Demaille <akim@epita.fr>
1869 * tests/regression.at (%nonassoc and eof): New.
1870 Suggested by Robert Anisko.
1872 2002-01-24 Akim Demaille <akim@epita.fr>
1874 Bison dumps core when trying to complain about broken input files.
1875 Reported by Cris van Pelt.
1877 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
1878 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
1880 (Invalid inputs): Strengthen: exercise parse_percent_token.
1882 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
1884 * src/Makefile.am: Add bison.c++.
1885 * src/bison.c++: New skeleton.
1887 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
1891 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
1893 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
1895 2002-01-20 Marc Autret <marc@gnu.org>
1897 * src/files.c (compute_output_file_names): Fix
1899 2002-01-20 Marc Autret <marc@gnu.org>
1901 * tests/output.at: New test.
1902 * src/files.c (compute_base_names): Don't map extensions when
1903 the YACC flag is set, use defaults.
1904 Reported by Evgeny Stambulchik.
1906 2002-01-20 Marc Autret <marc@gnu.org>
1908 * src/system.h: Need to define __attribute__ away for non-GCC
1909 compilers as well (i.e. the vendor C compiler).
1910 Suggested by Albert Chin-A-Young.
1912 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
1914 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
1915 canonical definition.
1916 * src/system.h: Use the canonical definition for PARAMS (avoids
1917 a conflict with the macro from lib/hash.h).
1919 2002-01-11 Akim Demaille <akim@epita.fr>
1921 * configure.in: Use AC_FUNC_STRNLEN.
1922 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
1924 2002-01-09 Akim Demaille <akim@epita.fr>
1926 * src/files.c, src/files.h (output_infix): New.
1927 (tab_extension): Remove.
1928 (compute_base_names): Compute the former, drop the latter.
1929 * src/output.c (prepare): Insert the muscles `output-infix', and
1931 * src/parse-skel.y (string, string.1): New.
1932 (section.header): Use it.
1933 (section.yacc): Remove.
1934 (prefix): Remove too.
1935 * src/scan-skel.l: Adjust.
1936 * src/bison.simple, src/bison.hairy: Adjust.
1938 2002-01-09 Akim Demaille <akim@epita.fr>
1940 * configure.in (WERROR_CFLAGS): Compute it.
1941 * src/Makefile.am (CFLAGS): Pass it.
1942 * tests/atlocal.in (CFLAGS): Idem.
1943 * src/files.c: Fix a few warnings.
1944 (get_extension_index): Remove, unused.
1946 2002-01-08 Akim Demaille <akim@epita.fr>
1948 * src/getargs.c (AS_FILE_NAME): New.
1949 (getargs): Use it to convert DOSish file names.
1950 * src/files.c (base_name): Rename as full_base_name to avoid
1951 clashes with `base_name ()'.
1952 (filename_split): New.
1953 (compute_base_names): N-th rewrite, using filename_split.
1955 2002-01-08 Akim Demaille <akim@epita.fr>
1957 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
1958 New, stolen from the Fileutils 4.1.
1959 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1960 * configure.in: Check for the presence of memrchr, and of its
1963 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
1965 * lib/hash.h (__P): Added definition for this macro.
1966 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
1967 BUILT_SOURCES, to ensure they are generated first.
1968 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
1969 %error-verbose to allow bootstrapping with bison 1.30x.
1971 2002-01-06 Akim Demaille <akim@epita.fr>
1973 * src/reader.c (parse_braces): Don't fetch the next char, the
1974 convention is to fetch on entry.
1975 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
1976 'switch' without a following semicolon.
1977 * tests/regression.at (braces parsing): New.
1979 2002-01-06 Akim Demaille <akim@epita.fr>
1981 Bison is dead wrong in its RR conflict reports.
1983 * tests/torture.at (GNU Cim Grammar): New.
1984 * src/conflicts.c (count_rr_conflicts): Fix.
1986 2002-01-06 Akim Demaille <akim@epita.fr>
1988 Creating package.m4 from configure.ac causes too many problems.
1990 * tests/Makefile.am (package.m4): Create it by hand,
1991 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
1993 2002-01-06 Akim Demaille <akim@epita.fr>
1995 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
1998 2002-01-04 Paul Eggert <eggert@twinsun.com>
2000 * doc/bison.texinfo (Debugging):
2001 Remove YYSTDERR; it's no longer defined or used.
2002 Also, s/cstdio.h/cstdio/.
2004 2002-01-03 Akim Demaille <akim@epita.fr>
2006 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
2008 2002-01-03 Akim Demaille <akim@epita.fr>
2010 * src/parse-skel.y (process_skeleton): Don't bind the parser's
2011 tracing code to --trace, wait for a better --trace option, with
2014 2002-01-03 Akim Demaille <akim@epita.fr>
2016 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
2017 The ISO C++ standard is extremely clear about it: stderr is
2018 considered a macro, not a regular symbol (see table 94 `Header
2019 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
2020 Therefore std:: does not apply to it. It still does with fprintf.
2021 Also, s/cstdio.h/cstdio/.
2023 2002-01-03 Akim Demaille <akim@epita.fr>
2025 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
2026 for non system headers.
2028 2002-01-02 Akim Demaille <akim@epita.fr>
2030 Equip the skeleton chain with location tracking, runtime trace,
2031 pure parser and scanner.
2033 * src/parse-skel.y: Request a pure parser, locations, and prefix
2035 (%union): Having several members with the same type does not help
2036 type mismatches, simplify.
2037 (YYPRINT, yyprint): New.
2038 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
2041 * src/scan-skel.l: Adjust to these changes.
2042 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
2043 (LOCATION_PRINT, skel_control_t): New.
2045 2001-12-30 Akim Demaille <akim@epita.fr>
2047 * src/parse-skel.y: Get rid of the shift/reduce conflict:
2048 replace `gb' with BLANKS.
2049 * src/scan-skel.l: Adjust.
2051 2001-12-30 Akim Demaille <akim@epita.fr>
2053 * src/system.h: We don't need nor want bcopy.
2054 Throw away MS-DOS crap: we don't need getpid.
2055 * configure.in: We don't need strndup. It was even causing
2056 problems: because Flex includes the headers *before* us,
2057 _GNU_SOURCE is not defined by config.h, and therefore strndup was
2059 * lib/xstrndup.c: New.
2060 * src/scan-skel.l: Use it.
2061 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
2062 * src/parse-skel.y: Use %directives instead of #defines.
2064 2001-12-30 Akim Demaille <akim@epita.fr>
2066 * src/skeleton.h: New.
2067 * src/output.c (output_parser, output_master_parser): Remove, dead
2069 * src/output.h (get_lines_number, actions_output, guards_output)
2070 (token_definitions_output): Prototype them.
2071 * src/parse-skel.y: Add the license notice.
2072 Include output.h and skeleton.h.
2073 (process_skeleton): Returns void, and takes a single parameter.
2074 * src/scan-skel.l: Add the license notice.
2076 Don't use %option yylineno: it seems that then Flex imagines
2077 REJECT has been used, and therefore it won't reallocate its
2078 buffers (which makes no other sense to me than a bug). It results
2079 in warnings for `unused: yy_flex_realloc'.
2081 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
2083 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
2084 (MUSCLE_INSERT_PREFIX): ...to there.
2085 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
2086 (MUSCLE_INSERT_PREFIX): Move from here...
2088 * src/bison.hairy: Add a section directive. Put braces around muscle
2089 names. This parser skeleton is still broken, but Bison should not
2090 choke on a bad muscle 'syntax'.
2091 * src/bison.simple: Add a section directive. Put braces around muscle
2094 * src/files.h (strsuffix, stringappend): Add declarations.
2095 (tab_extension): Add declaration.
2096 (short_base_name): Add declaration.
2098 * src/files.c (strsuffix, stringappend): No longer static. These
2099 functions are used in the skeleton parser.
2100 (tab_extension): New.
2101 (compute_base_names): Use the computations done in this function
2102 to guess if the generated parsers should have '.tab' in their
2104 (short_base_name): No longer static.
2106 * src/output.c (output_skeleton): New.
2107 (output): Disable call to output_master_parser, and give a try to
2108 a new skeleton handling system.
2109 (guards_output, actions_output): No longer static.
2110 (token_definitions_output, get_lines_number): No longer static.
2112 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
2114 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
2117 * src/parse-skel.y: New file.
2118 * src/scan-skel.l: New file.
2120 2001-12-29 Akim Demaille <akim@epita.fr>
2122 %name-prefix is broken.
2124 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
2125 Adjust all dependencies.
2126 * tests/headers.at (export YYLTYPE): Strengthen this test: use
2129 Renaming yylval but not yylloc is not consistent. Now we do.
2131 * src/bison.simple: Prefix yylloc if used.
2132 * doc/bison.texinfo (Decl Summary): Document that.
2134 2001-12-29 Akim Demaille <akim@epita.fr>
2136 * doc/bison.texinfo: Promote `%long-directive' over
2138 Remove all references to fixed-output-files, yacc is enough.
2140 2001-12-29 Akim Demaille <akim@epita.fr>
2142 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
2143 user prologue. These are defaults.
2144 * tests/actions.at (Mid-rule actions): Make sure the user can
2145 define YYDEBUG and YYERROR_VERBOSE.
2147 2001-12-29 Akim Demaille <akim@epita.fr>
2149 * src/output.c (header_output): Don't forget to export YYLTYPE and
2151 * tests/headers.at (export YYLTYPE): New, make sure it does.
2152 * tests/regression.at (%union and --defines, Invalid CPP headers):
2154 * tests/headers.at: here.
2156 2001-12-29 Akim Demaille <akim@epita.fr>
2158 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
2160 2001-12-29 Akim Demaille <akim@epita.fr>
2162 * tests/actions.at (Mid-rule actions): Output on a single line
2165 2001-12-29 Akim Demaille <akim@epita.fr>
2167 * doc/bison.texinfo: Formatting changes.
2169 2001-12-29 Akim Demaille <akim@epita.fr>
2171 Don't store the token defs in a muscle, just be ready to output it
2172 on command. Now possible via `symbols'. Fixes a memory leak.
2174 * src/output.c (token_definitions_output): New.
2175 (output_parser, header_output): Use it.
2176 * src/reader.c (symbols_save): Remove.
2178 2001-12-29 Akim Demaille <akim@epita.fr>
2180 * src/bison.simple: Do not provide a default for YYSTYPE and
2181 YYLTYPE before the user's prologue. Otherwise it's hardly... a
2184 2001-12-29 Akim Demaille <akim@epita.fr>
2186 Mid-rule actions are simply... ignored!
2188 * src/reader.c (readgram): Be sure to attach mid-rule actions to
2189 the empty-rule associated to the dummy symbol, not to the host
2191 * tests/actions.at (Mid-rule actions): New.
2193 2001-12-29 Akim Demaille <akim@epita.fr>
2197 * src/reader.c (reader): Free grammar.
2199 2001-12-29 Akim Demaille <akim@epita.fr>
2203 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
2204 since it allocates it for each state, although only one is needed.
2205 (allocate_storage): Do it here.
2207 2001-12-29 Akim Demaille <akim@epita.fr>
2209 * src/options.h, src/options.c (create_long_option_table): Rename
2211 (long_option_table_new): this, with a clearer prototype.
2212 (percent_table): Remove, unused,
2213 * src/getargs.c (getargs): Adjust.
2215 2001-12-29 Akim Demaille <akim@epita.fr>
2217 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
2218 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
2221 2001-12-29 Akim Demaille <akim@epita.fr>
2223 * src/lalr.c (build_relations): Rename `states' as `states1'.
2224 Sorry, I don't understand exactly what it is, no better name...
2226 2001-12-29 Akim Demaille <akim@epita.fr>
2228 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
2229 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
2230 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
2233 2001-12-29 Akim Demaille <akim@epita.fr>
2235 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
2238 2001-12-29 Akim Demaille <akim@epita.fr>
2240 * src/reader.c, src/reader.h (user_toknums): Remove.
2241 Adjust all users to use symbols[i]->user_token_number.
2243 2001-12-29 Akim Demaille <akim@epita.fr>
2245 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
2246 Adjust all users to use symbols[i]->prec or ->assoc.
2248 2001-12-29 Akim Demaille <akim@epita.fr>
2250 * src/reader.c, src/reader.h (tags): Remove.
2251 Adjust all users to use symbols[i]->tag.
2253 2001-12-29 Akim Demaille <akim@epita.fr>
2255 * src/gram.h, src/gram.c (symbols): New, similar to state_table
2257 * src/reader.c (packsymbols): Fill this table.
2259 * src/conflicts.c (resolve_sr_conflict): Adjust.
2260 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
2262 Use symbols[i]->tag instead of tags[i].
2264 2001-12-29 Akim Demaille <akim@epita.fr>
2266 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
2267 In addition, put a comment in there, to replace...
2268 * tests/regression.at (%union and C comments): Remove.
2270 2001-12-29 Akim Demaille <akim@epita.fr>
2272 * tests/regression.at (Web2c Actions): Blindly move the actual
2273 output as expected output. The contents *seem* right to me, but I
2274 can't pretend reading perfectly parser tables... Nonetheless, all
2275 the other tests pass correctly, the table look OK, even though the
2276 presence of `$axiom' is to be noted: AFAICS it is useless (but
2279 2001-12-29 Akim Demaille <akim@epita.fr>
2281 * src/reader.c (readgram): Don't add the rule 0 if there were no
2282 rules read. In other words, add it _after_ having performed
2283 grammar sanity checks.
2284 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
2286 2001-12-29 Akim Demaille <akim@epita.fr>
2288 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
2289 visible, and some states have now a different number.
2291 2001-12-29 Akim Demaille <akim@epita.fr>
2293 * src/reader.c (readgram): Bind the initial rule's lineno to that
2295 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
2296 (Solved SR Conflicts): Adjust rule 0's line number.
2298 2001-12-29 Akim Demaille <akim@epita.fr>
2300 Fix the `GAWK Grammar' failure.
2302 * src/LR0.c (final_state): Initialize to -1 so that we do compute
2303 the reductions of the first state which was mistakenly confused
2304 with the final state because precisely final_state was initialized
2306 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
2307 now noticed by Bison.
2308 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
2309 have a reduction on $default.
2311 2001-12-29 Akim Demaille <akim@epita.fr>
2313 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
2315 * src/closure.c (print_closure): Likewise.
2316 * src/derives.c (print_derives): Likewise.
2317 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
2320 2001-12-29 Akim Demaille <akim@epita.fr>
2322 * src/lalr.c (lookaheads_print): New.
2323 (lalr): Call it when --trace-flag.
2324 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
2327 2001-12-29 Akim Demaille <akim@epita.fr>
2329 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
2330 when walking through ritem, even via rule->rhs.
2331 * src/reduce.c (dump_grammar, useful_production, reduce_output)
2332 (useful_production, useless_nonterminals): Likewise.
2333 (reduce_grammar_tables): Likewise, plus update nritems.
2334 * src/nullable.c (set_nullable): Likewise.
2335 * src/lalr.c (build_relations): Likewise.
2336 * tests/sets.at (Nullable): Adjust.
2337 Fortunately, now, the $axiom is no longer nullable.
2339 2001-12-29 Akim Demaille <akim@epita.fr>
2341 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
2343 * src/gram.c (ritem_longest_rhs): Likewise.
2344 * src/reduce.c (nonterminals_reduce): Likewise.
2345 * src/print_graph.c (print_graph): Likewise.
2346 * src/output.c (output_rule_data): Likewise.
2347 * src/nullable.c (set_nullable): Likewise.
2349 2001-12-29 Akim Demaille <akim@epita.fr>
2351 * src/output.c: Comment changes.
2353 2001-12-27 Paul Eggert <eggert@twinsun.com>
2355 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
2356 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
2357 Sparc, as they were causing more porting problems than the
2358 (minor) performance improvement was worth.
2360 Also, catch up with 1.31's YYSTD.
2362 2001-12-27 Akim Demaille <akim@epita.fr>
2364 * src/output.c (output_gram): Rely on nritems, not the
2365 0-sentinel. See below.
2366 Use -1 as separator, not 0.
2367 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
2368 Rely on -1 as separator in yyrhs, instead of 0.
2369 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
2370 twice `Now at end of input', therefore there are two lines less to
2373 2001-12-27 Akim Demaille <akim@epita.fr>
2375 * tests/regression.at (Unresolved SR Conflicts):
2376 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
2379 2001-12-27 Akim Demaille <akim@epita.fr>
2381 * src/LR0.c (new_state): Recognize the final state by the fact it
2382 is reached by eoftoken.
2383 (insert_start_shifting_state, insert_eof_shifting_state)
2384 (insert_accepting_state, augment_automaton): Remove, since now
2385 these states are automatically computed from the initial state.
2386 (generate_states): Adjust.
2387 * src/print.c: When reporting a rule number to the user, substract
2388 1, so that the axiom rule is rule 0, and the first user rule is 1.
2389 * src/reduce.c: Likewise.
2390 * src/print_graph.c (print_core): For the time being, just as for
2391 the report, depend upon --trace-flags to dump the full set of
2393 * src/reader.c (readgram): Once the grammar read, insert the rule
2394 0: `$axiom: START-SYMBOL $'.
2395 * tests/set.at: Adjust: rule 0 is now displayed, and since the
2396 number of the states has changed (the final state is no longer
2397 necessarily the last), catch up.
2399 2001-12-27 Akim Demaille <akim@epita.fr>
2401 Try to make the use of the eoftoken valid. Given that its value
2402 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
2403 is used instead of > 0 where appropriate, (ii), depend upon nritems
2404 instead of the 0-sentinel.
2406 * src/gram.h, src/gram.c (nritems): New.
2407 Expected to be duplication of nitems, but for the time being...
2408 * src/reader.c (packgram): Assert nritems and nitems are equal.
2409 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
2410 * src/closure.c (print_closure, print_fderives): Likewise.
2411 * src/gram.c (ritem_print): Likewise.
2412 * src/print.c (print_core, print_grammar): Likewise.
2413 * src/print_graph.c: Likewise.
2415 2001-12-27 Akim Demaille <akim@epita.fr>
2417 * src/main.c (main): If there are complains after grammar
2418 reductions, then output the report anyway if requested, then die.
2419 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
2420 * src/reader.c (eoftoken): New.
2421 (parse_token_decl): If the token being defined has value `0', it
2423 (packsymbols): No longer hack `tags' to insert `$' by hand.
2424 Be sure to preserve the value of the eoftoken.
2425 (reader): Make sure eoftoken is defined.
2426 Initialize nsyms to 0: now eoftoken is created just like the others.
2427 * src/print.c (print_grammar): Don't special case the eof token.
2428 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
2429 lie anyway, albeit pleasant.
2430 * tests/calc.at: Exercise error messages with eoftoken.
2431 Change the grammar so that empty input is invalid.
2432 Adjust expectations.
2433 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
2435 2001-12-27 Akim Demaille <akim@epita.fr>
2437 * configure.in: Check the protos of strchr ans strspn.
2438 Replace strchr if needed.
2439 * src/system.h: Provide the protos of strchr, strspn and memchr if
2441 * lib/strchr.c: New.
2442 * src/reader.c (symbols_save): Use strchr.
2444 2001-12-27 Akim Demaille <akim@epita.fr>
2446 * src/print.c, src/print_graph.c (escape): New.
2447 Use it to quote the TAGS outputs.
2448 * src/print_graph.c (print_state): Now errors are in red, and
2449 reductions in green.
2450 Prefer high to wide: output the state number on a line of its own.
2452 2001-12-27 Akim Demaille <akim@epita.fr>
2454 * src/state.h, src/state.c (reductions_new): New.
2455 * src/LR0.c (set_state_table): Let all the states have a
2456 `reductions', even if reduced to 0.
2457 (save_reductions): Adjust.
2458 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
2459 * src/print.c (print_reductions, print_actions): Adjust.
2460 * src/output.c (action_row): Adjust.
2462 2001-12-27 Akim Demaille <akim@epita.fr>
2464 * src/state.h, src/state.c (errs_new, errs_dup): New.
2465 * src/LR0.c (set_state_table): Let all the states have an errs,
2466 even if reduced to 0.
2467 * src/print.c (print_errs, print_reductions): Adjust.
2468 * src/output.c (output_actions, action_row): Adjust.
2469 * src/conflicts.c (resolve_sr_conflict): Adjust.
2471 2001-12-27 Akim Demaille <akim@epita.fr>
2473 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
2475 2001-12-27 Akim Demaille <akim@epita.fr>
2477 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
2478 * src/print.c: here.
2479 (lookaheadset, shiftset): New, used as additional storage by
2481 (print_results): Adjust.
2482 (print_shifts, print_gotos, print_errs): New, extracted from...
2483 (print_actions): here.
2484 * src/print_graph.c (print_actions): Remove dead code.
2486 2001-12-27 Akim Demaille <akim@epita.fr>
2488 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
2491 2001-12-27 Akim Demaille <akim@epita.fr>
2493 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
2494 (build_relations): Adjust.
2496 2001-12-27 Akim Demaille <akim@epita.fr>
2498 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
2501 2001-12-27 Akim Demaille <akim@epita.fr>
2503 * src/reader.c (packgram): Catch nitems overflows.
2505 2001-12-27 Akim Demaille <akim@epita.fr>
2507 * src/files.c, src/files.h (guard_obstack): Remove.
2508 * src/output.c (output): Adjust.
2509 * src/reader.c (parse_braces): New, factoring...
2510 (copy_action, copy_guard): these two which are renamed as...
2511 (parse_action, parse_guard): these.
2512 As a voluntary consequence, using braces around guards is now
2515 2001-12-27 Akim Demaille <akim@epita.fr>
2517 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
2518 * src/reader.c (symbol_list): `guard' and `guard_line' are new
2520 (symbol_list_new): Adjust.
2521 (copy_action): action_line is the first line, not the last.
2522 (copy_guard): Just as for actions, store the `action' only, not
2523 the switch/case/break flesh.
2524 Don't parse the user action that might follow the guard, let...
2525 (readgram): do it, i.e., now, there can be an action after a
2527 In other words the guard is just explicitly optional.
2529 * src/output.c (guards_output): New.
2530 (output_parser): Call it when needed.
2531 (output): Also free the guard and attrs obstacks.
2532 * src/files.c, src/files.h (obstack_save): Remove.
2533 (output_files): Remove.
2534 As a result, if one needs the former `.act' file, using an
2535 appropriate skeleton which requires actions and guards is now
2537 * src/main.c (main): Adjust.
2538 * tests/semantic.at: New.
2539 * tests/regression.at: Use `input.y' as input file name.
2540 Avoid 8+3 problems by requiring input.c when the test needs the
2543 2001-12-27 Akim Demaille <akim@epita.fr>
2545 * src/reader.c (symbol_list_new): Be sure to initialize all the
2548 2001-12-27 Akim Demaille <akim@epita.fr>
2550 All the hacks using a final pseudo state are now useless.
2552 * src/LR0.c (set_state_table): state_table holds exactly nstates.
2553 * src/lalr.c (nLA): New.
2554 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
2555 instead of lookaheadsp from the pseudo state (nstate + 1).
2557 2001-12-27 Akim Demaille <akim@epita.fr>
2559 * src/output.c (action_row, token_actions): Use a state_t instead
2560 of a integer, and nlookaheads instead of the following state's
2563 2001-12-27 Akim Demaille <akim@epita.fr>
2565 * src/conflicts.c (log_resolution, flush_shift)
2566 (resolve_sr_conflict, set_conflicts, solve_conflicts)
2567 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
2568 (conflicts_print, print_reductions): Use a state_t instead of an
2569 integer when referring to a state.
2570 As much as possible, depend upon nlookaheads, instead of the
2571 `lookaheadsp' member of the following state (since lookaheads of
2572 successive states are successive, the difference between state n + 1
2573 and n served as the number of lookaheads for state n).
2574 * src/lalr.c (add_lookback_edge): Likewise.
2575 * src/print.c (print_core, print_actions, print_state)
2576 (print_results): Likewise.
2577 * src/print_graph.c (print_core, print_actions, print_state)
2578 (print_graph): Likewise.
2579 * src/conflicts.h: Adjust.
2581 2001-12-27 Akim Demaille <akim@epita.fr>
2583 * src/bison.hairy: Formatting/comment changes.
2585 Remove `register' indications.
2586 Add plenty of `static'.
2588 2001-12-27 Akim Demaille <akim@epita.fr>
2590 * src/output.c (prepare): Drop the muscle `ntbase' which
2592 * src/bison.simple: Formatting/comment changes.
2593 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
2594 is an undocumented synonym.
2596 2001-12-22 Akim Demaille <akim@epita.fr>
2598 * src/output.c (output_table_data): Change the prototype to use
2599 `int' for array ranges: some invocations do pass an int, not a
2601 Reported by Wayne Green.
2603 2001-12-22 Akim Demaille <akim@epita.fr>
2605 Some actions of web2c.y are improperly triggered.
2606 Reported by Mike Castle.
2608 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
2609 * tests/regression.at (Web2c): Rename as...
2610 (Web2c Report): this.
2611 (Web2c Actions): New.
2613 2001-12-22 Akim Demaille <akim@epita.fr>
2615 Reductions in web2c.y are improperly reported.
2616 Reported by Mike Castle.
2618 * src/conflicts.c (print_reductions): Fix.
2619 * tests/regression.at (Web2c): New.
2621 2001-12-18 Akim Demaille <akim@epita.fr>
2623 Some host fail on `assert (!"foo")', which expands to
2624 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
2625 Reported by Nelson Beebee.
2627 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
2628 `#define it_succeeded 0' and `assert (it_succeeded)'.
2630 2001-12-17 Marc Autret <autret_m@epita.fr>
2632 * src/bison.simple: Don't hard code the skeleton line and filename.
2633 * src/output.c (output_parser): Rename 'line' as 'output_line'.
2634 New line counter 'skeleton_line' (skeleton-line muscle).
2636 2001-12-17 Paul Eggert <eggert@twinsun.com>
2638 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
2639 YYDEBUG must be defined to a nonzero value.
2641 * src/bison.simple (yytname): Do not assume that the user defines
2642 YYDEBUG to a properly parenthesized expression.
2644 2001-12-17 Akim Demaille <akim@epita.fr>
2646 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
2647 nlookaheads is a new member.
2649 * src/lalr.h (nlookaheads): Remove this orphan declaration.
2650 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
2653 2001-12-17 Akim Demaille <akim@epita.fr>
2655 * src/files.h, src/files.c (open_files, close_files): Remove.
2656 * src/main.c (main): Don't open/close files, nor invoke lex_free,
2658 * src/reader.c (reader): Do it.
2660 2001-12-17 Akim Demaille <akim@epita.fr>
2662 * src/conflicts.c (print_reductions): Formatting changes.
2664 2001-12-17 Akim Demaille <akim@epita.fr>
2666 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
2667 (flush_reduce): New.
2668 (resolve_sr_conflict): Adjust.
2670 2001-12-17 Akim Demaille <akim@epita.fr>
2672 * src/output.c (output_obstack): Be static and rename as...
2673 (format_obstack): this, to avoid any confusion with files.c's
2675 * src/reader.h (muscle_obstack): Move to...
2676 * src/output.h: here, since it's defined in output.c.
2678 2001-12-17 Akim Demaille <akim@epita.fr>
2680 * src/output.c (action_row, save_column, default_goto)
2681 (sort_actions, matching_state, pack_vector): Better variable
2684 2001-12-17 Akim Demaille <akim@epita.fr>
2686 * src/output.c: Various formatting changes.
2688 2001-12-17 Akim Demaille <akim@epita.fr>
2690 * src/files.c (output_files): Free the output_obstack.
2691 * src/main.c (main): Call print and print_graph conditionally.
2692 * src/print.c (print): Work unconditionally.
2693 * src/print_graph.c (print_graph): Work unconditionally.
2694 * src/conflicts.c (log_resolution): Output only if verbose_flag.
2696 2001-12-16 Marc Autret <autret_m@epita.fr>
2698 * src/output.c (actions_output): Fix. When we use %no-lines,
2699 there is one less line per action.
2701 2001-12-16 Marc Autret <autret_m@epita.fr>
2703 * src/bison.simple: Remove a useless #line directive.
2704 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
2705 * src/output.c (get_lines_number): New.
2706 (output_parser): Adjust, now takes care about the lines of a
2709 (actions_output): Computes the number of lines taken by actions.
2710 (output_master_parser): Insert new skeleton which is the name of
2711 the output parser file name.
2713 2001-12-15 Marc Autret <autret_m@epita.fr>
2715 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
2717 2001-12-15 Marc Autret <autret_m@epita.fr>
2719 * src/output.c (output_gram): Keep track of the hairy one.
2721 2001-12-15 Akim Demaille <akim@epita.fr>
2723 Make `make distcheck' work.
2725 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
2726 system.h which uses libgettext.h.
2728 2001-12-15 Akim Demaille <akim@epita.fr>
2730 * src/nullable.c (set_nullable): Useless rules must be skipped,
2731 otherwise, since we range over their symbols, we might look at a
2732 nonterminal which no longer ``exists'', i.e., it is not counted in
2733 `nvars', hence we overflow our arrays.
2735 2001-12-15 Akim Demaille <akim@epita.fr>
2737 The header can also be produced directly, without any obstack!
2740 * src/files.c, src/files.h (defines_obstack): Remove.
2741 (compute_header_macro): Global.
2742 (defines_obstack_save): Remove.
2743 * src/reader.c (parse_union_decl): No longer output to
2744 defines_obstack: its content can be found in the `stype' muscle
2746 (output_token_translations): Merge into...
2747 (symbols_output): this.
2749 (symbols_save): this.
2751 * src/output.c (header_output): New.
2754 2001-12-15 Akim Demaille <akim@epita.fr>
2756 * src/reader.c (parse_union_decl): Instead of handling two obstack
2757 simultaneously, use one to define the `stype' muscle, and use the
2758 value of the latter to fill defines_obstack.
2759 (copy_comment): Remove.
2760 (copy_comment2): Work for a single obstack.
2762 (copy_comment): this.
2764 2001-12-15 Akim Demaille <akim@epita.fr>
2766 * src/lex.c, src/lex.h (xgetc): No longer static.
2767 * src/reader.c (parse_union_decl): Revamp.
2769 2001-12-15 Akim Demaille <akim@epita.fr>
2771 Still making progress in separating Bison into (i) input, (ii)
2772 process, (iii) output: now we can directly output the parser file
2773 without using table_obstack at all.
2775 * src/files.c, src/files.h (table_obstack): Bye bye.
2776 (parser_file_name): New.
2777 * src/files.c (compute_output_file_names): Compute it.
2778 * src/output.c (actions_output, output_parser)
2779 (output_master_parser): To a file instead of an obstack.
2781 2001-12-15 Akim Demaille <akim@epita.fr>
2783 Attach actions to rules, instead of pre-outputting them to
2786 * src/gram.h (rule_t): action and action_line are new members.
2787 * src/reader.c (symbol_list): Likewise.
2788 (copy_action): Save the actions within the rule.
2789 (packgram): Save them in rule_table.
2790 * src/output.c (actions_output): New.
2791 (output_parser): Use it on `%%actions'.
2792 (output_rule_data): Don't free rule_table.
2794 (prepare): Don't save the `action' muscle.
2795 * src/bison.simple: s/%%action/%%actions/.
2797 2001-12-15 Akim Demaille <akim@epita.fr>
2799 * src/reader.c (copy_action): When --yacc, don't append a `;'
2800 to the user action: let it fail if lacking.
2801 Suggested by Arnold Robbins and Tom Tromey.
2803 2001-12-14 Akim Demaille <akim@epita.fr>
2805 * src/lex.c (literalchar): Simply return the char you decoded, non
2806 longer mess around with obstacks and int pointers.
2809 2001-12-14 Akim Demaille <akim@epita.fr>
2811 * src/lex.c (literalchar): Don't escape the special characters,
2812 just decode them, and keep them as char (before, eol was output as
2813 the 2 char string `\n' etc.).
2814 * src/output.c (output_rule_data): Use quotearg to output the
2817 2001-12-13 Paul Eggert <eggert@twinsun.com>
2819 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
2820 Do not infringe on the global user namespace when using C++.
2821 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
2822 All uses of `fprintf' and `stderr' changed.
2824 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
2826 2001-12-13 Akim Demaille <akim@epita.fr>
2828 The computation of nullable is broken: it doesn't handle empty
2831 * tests/torture.at (GNU AWK Grammar): New.
2832 * tests/sets.at (Nullable): New.
2833 * src/nullable.c (set_nullable): Instead of blindly looping over
2834 `ritems', loop over the rules, and then over their rhs's.
2836 Work around Autotest bugs.
2838 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
2839 frame, because Autotest understand lines starting with a `+' as
2840 traces from the shell. Then, they are not processed properly.
2841 Admittedly an Autotest bug, but we don't have time to wait for
2842 Autotest to catch up.
2843 * tests/regression.at (Broken Closure): Adjust to the new table
2846 * tests/sets.at: here.
2848 2001-12-13 Akim Demaille <akim@epita.fr>
2850 * src/closure.c (closure): Use nrules instead of playing tricks
2853 2001-12-13 Akim Demaille <akim@epita.fr>
2855 * src/print.c (print_actions): Output the handling of `$' as the
2856 traces do: shifting the token EOF. Before EOF was treated as a
2858 * tests/regression.at: Adjust some tests.
2859 * src/print_graph.c (print_core): Complete the set of items via
2860 closure. The next-to-final and final states are still unsatisfying,
2861 but that's to be addressed elsewhere.
2862 No longer output the rule numbers, but do output the state number.
2863 A single loop for the shifts + gotos is enough, but picked a
2864 distinct color for each.
2865 (print_graph): Initialize and finalize closure.
2867 2001-12-13 Akim Demaille <akim@epita.fr>
2869 * src/reader.c (readgram): Remove dead code, an strip useless
2871 (get_type): Remove, unused.
2873 2001-12-12 Akim Demaille <akim@epita.fr>
2875 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
2876 on that of lib/error.c.
2878 2001-12-12 Akim Demaille <akim@epita.fr>
2880 Some hosts don't like `/' in includes.
2882 * src/system.h: Include libgettext.h without qualifying the path.
2883 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
2886 2001-12-11 Marc Autret <autret_m@epita.fr>
2888 * src/output.c (output_parser): Remove useless muscle.
2890 2001-12-11 Marc Autret <autret_m@epita.fr>
2892 * src/bison.simple: Remove #line just before %%epilogue. It
2893 is now handled in ...
2894 * src/reader.c (read_additionnal_code): Add the output of a
2895 #line for the epilogue.
2897 2001-12-10 Marc Autret <autret_m@epita.fr>
2899 * src/reader.c (copy_definition): Re-use CPP-outed code which
2900 replace precedent remove.
2901 * src/bison.simple: Remove #line before %%prologue because
2902 %%input-line is wrong at this time.
2904 2001-12-10 Marc Autret <autret_m@epita.fr>
2906 * src/reader.c (symbols_output): Clean up.
2907 * src/output.c (output_gram, output): Clean up.
2909 2001-12-10 Akim Demaille <akim@epita.fr>
2911 * src/lalr.c (initialize_lookaheads): New. Extracted from...
2912 * src/LR0.c (set_state_table): here.
2913 * src/lalr.c (lalr): Call it.
2915 2001-12-10 Akim Demaille <akim@epita.fr>
2917 * src/state.h (shifts): Remove the `number' member: shifts are
2918 attached to state, hence no longer need to be labelled with a
2921 2001-12-10 Akim Demaille <akim@epita.fr>
2923 Now that states have a complete set of members, the linked list of
2924 shifts is useless: just fill directly the state's shifts member.
2926 * src/state.h (shifts): Remove the `next' member.
2927 * src/LR0.c (first_state, last_state): Remove.
2929 (augment_automaton): Don't look for the shifts that must be added
2930 a shift on EOF: it is those of the state we looked for! But now,
2931 since shifts are attached, it is no longer needed to looking
2932 merely by its id: its number.
2934 2001-12-10 Akim Demaille <akim@epita.fr>
2936 * src/LR0.c (augment_automaton): Better variable locality.
2937 Remove an impossible branch: if there is a state corresponding to
2938 the start symbol being shifted, then there is shift for the start
2939 symbol from the initial state.
2941 2001-12-10 Akim Demaille <akim@epita.fr>
2943 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
2944 only when appropriate: when insert_start_shifting_state' is not
2946 * tests/regression.at (Rule Line Numbers): Adjust.
2948 2001-12-10 Akim Demaille <akim@epita.fr>
2950 * src/LR0.c (augment_automaton): Now that all states have shifts,
2951 merge the two cases addition shifts to the initial state.
2953 2001-12-10 Akim Demaille <akim@epita.fr>
2955 * src/lalr.c (set_state_table): Move to...
2957 * src/lalr.c (lalr): Don't call it...
2958 * src/LR0.c (generate_states): do it.
2959 * src/LR0.h (first_state): Remove, only the table is used.
2961 2001-12-10 Akim Demaille <akim@epita.fr>
2963 * src/LR0.h (first_shift, first_reduction): Remove.
2964 * src/lalr.c: Don't use first_shift: find shifts through the
2967 2001-12-10 Akim Demaille <akim@epita.fr>
2969 * src/LR0.c: Attach shifts to states as soon as they are
2971 * src/lalr.c (set_state_table): Instead of assigning shifts to
2972 state, just assert that the mapping was properly done.
2974 2001-12-10 Akim Demaille <akim@epita.fr>
2976 * src/LR0.c (insert_start_shift): Rename as...
2977 (insert_start_shifting_state): this.
2978 (insert_eof_shifting_state, insert_accepting_state): New.
2979 (augment_automaton): Adjust.
2980 Better locality of the variables.
2981 When looking if the start_symbol is shifted from the initial
2982 state, using `while (... symbol != start_symbol ...)' sounds
2983 better than `while (... symbol < start_symbol ...)': If fail
2984 to see how the order between symbols could be relevant!
2986 2001-12-10 Akim Demaille <akim@epita.fr>
2988 * src/getargs.h: Don't declare `spec_name_prefix' and
2989 `spec_file_prefix', declared by src/files.h.
2990 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
2991 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
2992 * src/output.c (prepare): Adjust.
2993 * src/reader.c (symbols_output): Likewise.
2994 * src/vmsgetargs.c: Vaguely adjust, but who cares?
2996 2001-12-10 Akim Demaille <akim@epita.fr>
2998 * src/muscle_tab.c (muscle_init): NULL is a better default than
3001 2001-12-10 Akim Demaille <akim@epita.fr>
3003 * src/reader.c (reader): Calling symbols_output once is enough.
3005 2001-12-10 Akim Demaille <akim@epita.fr>
3007 Now that states have a complete set of members, the linked list of
3008 reductions is useless: just fill directly the state's reductions
3011 * src/state.h (struct reductions): Remove member `number' and
3013 * src/LR0.c (first_reduction, last_reduction): Remove.
3014 (save_reductions): Don't link the new reductions, store them in
3016 * src/lalr.c (set_state_table): No need to attach reductions to
3017 states, it's already done.
3018 * src/output.c (output_actions): No longer free the shifts, then
3019 the reductions, then the states: free all the states and their
3022 2001-12-10 Akim Demaille <akim@epita.fr>
3024 * src/options.c (OPTN, DRTV, BOTH): New.
3025 (option_table): Use them.
3027 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
3028 the job of system.h.
3029 * src/options.c: Don't include stdio.h and xalloc.h for the same
3032 2001-12-10 Akim Demaille <akim@epita.fr>
3034 * src/output.c (output, prepare): Make sure the values of the
3035 muscles `action' and `prologue' are 0-terminated.
3037 2001-12-10 Akim Demaille <akim@epita.fr>
3039 Clean up GCC warnings.
3041 * src/reader.c (copy_action): `buf' is not used.
3042 (parse_skel_decl): Be static.
3043 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
3044 * src/options.h (create_long_option_table): Have a real prototype.
3045 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
3046 (hash_delete_at): Return const void *.
3047 Adjust casts to preserve the const.
3049 2001-12-10 Akim Demaille <akim@epita.fr>
3051 * configure.in: Require 2.52g.
3052 M4 is not needed, but AUTOM4TE is.
3054 * tests/Makefile.am: Adjust.
3056 2001-12-10 Akim Demaille <akim@epita.fr>
3058 One structure for states is enough, even though theoretically
3059 there are LR(0) states and LALR(1) states.
3061 * src/lalr.h (state_t): Remove.
3062 (state_table): Be state_t **, not state_t *.
3063 * src/state.h (core, CORE_ALLOC): Rename as...
3064 (state_t, STATE_ALLOC): this.
3065 Add the LALR(1) members: shifts, reductions, errs.
3066 * src/LR0.c (state_table): Rename as...
3067 (state_hash): this, to avoid name clashes with the global
3069 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
3070 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
3072 2001-12-10 Akim Demaille <akim@epita.fr>
3074 Bison dumps core on bash.y.
3075 Reported by Pascal Bart.
3077 * src/warshall.c (bitmatrix_print): New.
3079 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
3080 j must be the outer loop.
3081 * tests/regression.at (Broken Closure): New.
3083 2001-12-05 Akim Demaille <akim@epita.fr>
3085 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
3087 Reported by Peter Hámorský.
3089 2001-12-05 Akim Demaille <akim@epita.fr>
3091 * src/conflicts.c (err_table): Remove.
3092 (resolve_sr_conflict): Adjust.
3093 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
3095 (state_t.reductions, state_t.shifts): this.
3097 2001-12-05 Akim Demaille <akim@epita.fr>
3099 * src/reduce.c (reduce_grammar_tables): No longer disable the
3100 removal of useless rules via CPP but via `if (0)', so that the
3101 compiler still check the code is valid.
3102 For instance, it should have noticed `rline' no longer exists: use
3103 the `line' member of rule_t.
3104 * src/gram.c (dummy, rline): Remove, unused.
3106 2001-12-05 Akim Demaille <akim@epita.fr>
3108 * src/output.c (pack_vector): Use assert, not berror.
3109 * src/main.c (berror): Remove, unused.
3111 2001-12-05 Akim Demaille <akim@epita.fr>
3113 New experimental feature: if --verbose --trace output all the
3114 items of a state, not only its kernel.
3116 * src/print.c (print_core): If `trace_flag', then invoke closure
3117 before outputting the items of the state (print_core is no longer
3118 a correct name them).
3119 (print_results): Invoke new_closure/free_closure if needed.
3121 2001-12-05 Akim Demaille <akim@epita.fr>
3123 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
3124 * src/closure.c, src/closure.h (itemsetsize): Rename as...
3125 (nitemset): for consistency with the rest of the project.
3127 2001-12-05 Akim Demaille <akim@epita.fr>
3129 * src/closure.c (print_closure): Improve.
3130 (closure): Use it for printing input and output.
3132 2001-12-05 Akim Demaille <akim@epita.fr>
3134 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
3135 indexed by nonterminals.
3137 2001-12-05 Akim Demaille <akim@epita.fr>
3139 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
3141 * src/warshall.h: Remove accidental duplication of the content.
3143 2001-12-05 Akim Demaille <akim@epita.fr>
3145 * src/closure.c (set_fderives): De-obfuscate.
3147 2001-12-05 Akim Demaille <akim@epita.fr>
3149 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
3151 2001-12-05 Akim Demaille <akim@epita.fr>
3153 * src/closure.c (set_firsts): De-obfuscate.
3155 2001-12-05 Akim Demaille <akim@epita.fr>
3157 * src/output.c (action_row): De-obfuscate
3158 using the good o' techniques: arrays not pointers, variable
3159 locality, BITISSET, RESETBIT etc.
3161 2001-12-05 Akim Demaille <akim@epita.fr>
3163 Pessimize the code to simplify it: from now on, all the states
3164 have a valid SHIFTS, which NSHIFTS is possibly 0.
3166 * src/LR0.c (shifts_new): Be global and move to..
3167 * src/state.c, src/state.h: here.
3168 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
3169 * src/print_graph: Adjust.
3171 2001-12-05 Akim Demaille <akim@epita.fr>
3173 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
3174 * src/conflicts.c: Use it.
3175 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
3176 incorrectly ``simplified''.
3178 2001-12-05 Akim Demaille <akim@epita.fr>
3180 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
3181 using the good o' techniques: arrays not pointers, variable
3182 locality, BITISSET, RESETBIT etc.
3184 2001-12-05 Akim Demaille <akim@epita.fr>
3186 * src/state.h (SHIFT_SYMBOL): New.
3187 * src/conflicts.c: Use it to deobfuscate.
3189 2001-12-05 Akim Demaille <akim@epita.fr>
3191 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
3192 (print_reductions): De-obfuscate using the good o' techniques:
3193 arrays not pointers, variable locality, BITISSET.
3195 2001-12-05 Akim Demaille <akim@epita.fr>
3197 * src/conflicts.c (print_reductions): Arrays, not pointers.
3200 2001-12-05 Akim Demaille <akim@epita.fr>
3202 * src/conflicts.c (print_reductions): Pessimize, but clarify.
3204 2001-12-05 Akim Demaille <akim@epita.fr>
3206 * src/conflicts.c (print_reductions): Improve variable locality.
3208 2001-12-05 Akim Demaille <akim@epita.fr>
3210 * src/conflicts.c (print_reductions): Pessimize, but clarify.
3212 2001-12-05 Akim Demaille <akim@epita.fr>
3214 * src/conflicts.c (print_reductions): Improve variable locality.
3216 2001-12-05 Akim Demaille <akim@epita.fr>
3218 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
3219 * src/lalr.c: Use them.
3221 2001-12-05 Akim Demaille <akim@epita.fr>
3223 * src/LR0.c (augment_automaton): Formatting changes.
3224 Better variable locality.
3226 2001-12-05 Akim Demaille <akim@epita.fr>
3228 * src/lalr.c (matrix_print): New.
3229 (transpose): Use it.
3230 Use arrays instead of pointers.
3232 2001-12-05 Akim Demaille <akim@epita.fr>
3234 * src/lalr.c (maxrhs): Move to...
3235 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
3236 * src/lalr.c (build_relations): Adjust.
3238 2001-12-05 Akim Demaille <akim@epita.fr>
3240 * src/lalr.c (transpose): Free the memory allocated to the
3241 argument, as it is replaced by the results by the unique caller.
3242 (build_relations): Merely invoke transpose: it handles the memory
3244 Improve variable locality.
3245 Avoid variables used as mere abbreviations.
3246 (compute_lookaheads): Use arrays instead of pointers.
3248 2001-12-05 Akim Demaille <akim@epita.fr>
3250 * src/lalr.c (initialize_F): Improve variable locality.
3251 Avoid variables used as mere abbreviations.
3253 2001-12-05 Akim Demaille <akim@epita.fr>
3255 * src/derives.c (print_derives): Display the ruleno.
3256 * src/lalr.c (initialize_F, transpose): Better variable locality
3257 to improve readability.
3258 Avoid variables used as mere abbreviations.
3260 2001-12-05 Akim Demaille <akim@epita.fr>
3262 * src/lalr.c (traverse): Use arrays instead of pointers.
3264 2001-12-05 Akim Demaille <akim@epita.fr>
3266 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
3267 the handling of squeue.
3268 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
3270 2001-12-05 Akim Demaille <akim@epita.fr>
3272 Because useless nonterminals are now kept alive (instead of being
3273 `destroyed'), we now sometimes examine them, and store information
3274 related to them. Hence we need to know their number, and adjust
3277 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
3279 * src/LR0.c (allocate_itemsets): The memory allocated to
3280 `symbol_count' was used for two different purpose: once to count
3281 the number of occurrences of each symbol, and later reassigned to
3282 `shift_symbol', containing the symbol that can be shifted from a
3284 Deobfuscate, i.e., allocate, use and free `symbol_count' here
3286 (new_itemsets): Allocate `shift_symbol' here.
3287 (allocate_itemsets): symbol_count includes useless nonterminals.
3289 (free_storage): Use `free', not `XFREE', for pointers that cannot
3292 2001-12-05 Akim Demaille <akim@epita.fr>
3294 * src/nullable.c (set_nullable): Deobfuscate the handling of
3296 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
3298 2001-12-05 Akim Demaille <akim@epita.fr>
3300 * src/gram.c, src/gram.h (ritem_print): New.
3301 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
3302 (This useless function was defined only to work around VMS linkers
3303 that can't handle compilation units with variables only).
3304 * src/reduce.c (dump_grammar): Use it to trace the construction of
3307 2001-12-04 Paul Eggert <eggert@twinsun.com>
3309 * src/bison.simple (union yyalloc): Change member names
3310 to be the same as the stack names.
3311 (yyparse): yyptr is now union yyalloc *, not char *.
3312 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
3313 and may generate better code on some machines.
3314 (yystpcpy): Use prototype if __STDC__ is defined, not just
3315 if __cplusplus is defined.
3317 2001-11-30 Akim Demaille <akim@epita.fr>
3319 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
3320 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
3321 Gettext doesn't compile cleanly, and dies with -Werror.
3322 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
3323 Include WARNING_CFLAGS here.
3324 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
3325 before being defined.
3327 2001-11-27 Paul Eggert <eggert@twinsun.com>
3329 * lib/quotearg.h (quotearg_n, quotearg_n_style):
3330 First arg is int, not unsigned.
3331 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
3332 (SIZE_MAX, UINT_MAX): New macros.
3333 (quotearg_n_options): Abort if N is negative.
3334 Avoid overflow check on hosts where size_t is 64 bits and int
3335 is 32 bits, as overflow is impossible there.
3336 Fix off-by-one typo that caused unnecessary reallocation.
3338 2001-11-29 Paul Eggert <eggert@twinsun.com>
3340 Name space cleanup in generated parser.
3342 * doc/bison.texinfo (Bison Parser): Discuss system headers
3343 and their effect on the user name space.
3346 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
3347 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
3348 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
3350 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
3351 on user names when possible.
3353 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
3354 Simplify test for whather <alloca.h> exists.
3356 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
3358 (<stdio.h>): Include if YYDEBUG.
3360 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
3361 ! defined (yyoverflow) && ! defined (yymemcpy).
3363 (yymemcpy, yyparse): Rename local variables as needed so that
3364 they all begin with 'yy'.
3366 (yystrlen, yystpcpy): New functions.
3368 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
3371 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
3372 instead of relying on string.h functions. Use YYSTACK_ALLOC
3373 and YYSTACK_FREE instead of malloc and free.
3375 2001-11-30 Akim Demaille <akim@epita.fr>
3377 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
3378 before their first uses.
3379 (YYBISON, YYPURE): Move to the top of the output.
3381 2001-11-30 Akim Demaille <akim@epita.fr>
3383 * tests/reduce.at (Useless Nonterminals): Fix.
3385 2001-11-30 Akim Demaille <akim@epita.fr>
3387 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
3388 if body instead of `;' to pacify GCC's warnings.
3390 2001-11-30 Akim Demaille <akim@epita.fr>
3392 Instead of mapping the LHS of unused rules to -1, keep the LHS
3393 valid, but flag the rules as invalid.
3395 * src/gram.h (rule_t): `useful' is a new member.
3396 * src/print.c (print_grammar): Adjust.
3397 * src/derives.c (set_derives): Likewise.
3398 * src/reader.c (packgram, reduce_output): Likewise.
3399 * src/reduce.c (reduce_grammar_tables): Likewise.
3400 * tests/reduce.at (Underivable Rules, Useless Rules): New.
3402 2001-11-30 Akim Demaille <akim@epita.fr>
3404 * src/reduce.c (reduce_output): Formatting changes.
3405 * src/print.c (print_results, print_grammar): Likewise.
3406 * tests/regression.at (Rule Line Numbers)
3407 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
3409 2001-11-30 Akim Demaille <akim@epita.fr>
3411 * src/reduce.c (nonterminals_reduce): Instead of throwing away
3412 useless nonterminals, move them at the end of the symbol arrays.
3413 (reduce_output): Adjust.
3414 * tests/reduce.at (Useless Nonterminals): Adjust.
3416 2001-11-30 Akim Demaille <akim@epita.fr>
3418 * src/reduce.c: Various comment/formatting changes.
3419 (nonterminals_reduce): New, extracted from...
3420 (reduce_grammar_tables): here.
3421 (reduce_grammar): Call nonterminals_reduce.
3423 2001-11-29 Paul Eggert <eggert@twinsun.com>
3425 * src/bison.simple (YYSTACK_REALLOC): Remove.
3426 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
3427 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
3429 (union yyalloc): New type.
3430 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
3431 an arbitrary restriction on hosts where size_t is wider than int.
3433 (yyparse): Don't dump core if alloca or malloc fails; instead, report
3434 a parser stack overflow. Allocate just one block of memory for all
3435 three stacks, instead of allocating three blocks; this typically is
3436 faster and reduces fragmentation.
3438 Do not limit the number of items in the stack to a value that fits
3439 in 'int', as this is an arbitrary limit on hosts with 64-bit
3440 size_t and 32-bit int.
3442 2001-11-29 Marc Autret <autret_m@epita.fr>
3444 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
3445 of defining YYERROR_VERBOSE.
3446 [AT_DATA]: $4 is now out of C declarations in the prologue.
3448 2001-11-28 Marc Autret <autret_m@epita.fr>
3450 * src/reader.c (parse_dquoted_param): New.
3451 (parse_skel_decl): Use it.
3452 * src/lex.h: Add its prototype.
3453 * src/lex.c (literalchar): Become not static.
3455 2001-11-28 Marc Autret <autret_m@epita.fr>
3457 * src/output.h: And put its extern declaration here.
3458 * src/output.c (error_verbose): Define here.
3459 (prepare): Echo name modification.
3460 * src/getargs.h: Clean its extern declaration.
3461 * src/getargs.c (error_verbose_flag): Remove.
3462 (getargs): Remove case 'e'.
3463 * src/options.c (option_table): 'error-verbose' is now seen as simple
3467 * src/reader.c (read_declarations): Remove case tok_include.
3468 (parse_include_decl): Remove.
3469 * src/lex.h (token_t): Remove tok_include.
3470 * src/options.c (option_table): 'include' is now a simple command line
3473 2001-11-28 Marc Autret <autret_m@epita.fr>
3475 * src/bison.simple: Adjust muscle names.
3476 * src/muscle_tab.c (muscle_init): Also rename the muscles.
3477 * src/output.c (prepare): s/_/-/ for the muscles names.
3478 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
3480 2001-11-28 Marc Autret <autret_m@epita.fr>
3482 * src/bison.simple: Fix debug.
3483 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
3485 2001-11-28 Akim Demaille <akim@epita.fr>
3487 * src/LR0.c (shifts_new): New.
3488 (save_shifts, insert_start_shift, augment_automaton): Use it.
3490 2001-11-28 Akim Demaille <akim@epita.fr>
3492 * src/closure.c (closure): `b' and `ruleno' denote the same value:
3495 2001-11-28 Akim Demaille <akim@epita.fr>
3497 * src/closure.c (closure): Instead of looping over word in array
3498 then bits in words, loop over bits in array.
3500 2001-11-28 Akim Demaille <akim@epita.fr>
3502 * src/closure.c (closure): No longer optimize the special case
3503 where all the bits of `ruleset[r]' are set to 0, to make the code
3506 2001-11-28 Akim Demaille <akim@epita.fr>
3508 * src/closure.c (closure): `r' and `c' are new variables, used to
3509 de-obfuscate accesses to RULESET and CORE.
3511 2001-11-28 Akim Demaille <akim@epita.fr>
3513 * src/reduce.c (reduce_print): Use ngettext.
3514 (dump_grammar): Improve the trace accuracy.
3516 2001-11-28 Akim Demaille <akim@epita.fr>
3518 * src/reduce.c (dump_grammar): Don't translate trace messages.
3520 2001-11-28 Akim Demaille <akim@epita.fr>
3522 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
3523 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
3524 as all tags are free'ed afterwards.
3527 2001-11-27 Paul Eggert <eggert@twinsun.com>
3529 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
3530 use alloca when we didn't want to, and vice versa.
3532 2001-11-27 Marc Autret <autret_m@epita.fr>
3534 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
3536 * src/output.c (prepare): Remove its update.
3538 2001-11-27 Marc Autret <autret_m@epita.fr>
3540 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
3543 2001-11-27 Marc Autret <autret_m@epita.fr>
3545 * src/bison.simple: Remove YYERROR_VERBOSE using.
3546 Use %%error_verbose.
3547 (yyparse): Likewise.
3548 * src/output.c (prepare): Give its final value.
3549 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
3550 * src/getargs.h: Add its extern declaration.
3551 * src/getargs.c (error_verbose_flag): New int.
3552 (getargs): Update to catch new case.
3553 * src/options.c (option_table): 'error-verbose' is a new option.
3554 (shortopts): Update.
3556 2001-11-27 Akim Demaille <akim@epita.fr>
3558 * src/system.h: Use intl/libgettext.h.
3559 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
3561 2001-11-27 Akim Demaille <akim@epita.fr>
3563 * tests/torture.at (Exploding the Stack Size with Malloc):
3564 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
3566 2001-11-27 Akim Demaille <akim@epita.fr>
3568 * src/files.c: Include error.h.
3569 Reported by Hans Aberg.
3571 2001-11-26 Marc Autret <autret_m@epita.fr>
3573 * src/reader.c (parse_include_decl): New, not yet implemented.
3574 (read_declarations): Add case tok_include.
3575 * src/getargs.h (include): Add its extern definition.
3576 * src/getargs.c (include): New const char *.
3577 (getargs): Add case '-I'.
3578 * src/options.c (option_table): Add include as command line and
3580 * src/lex.h (token_t): Add tok_include.
3582 2001-11-26 Akim Demaille <akim@epita.fr>
3584 * src/reader.c (readgram): Make sure rules for mid-rule actions
3585 have a lineno equal to that of their host rule.
3586 Reported by Hans Aberg.
3587 * tests/regression.at (Rule Line Numbers): New.
3589 2001-11-26 Akim Demaille <akim@epita.fr>
3591 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
3594 2001-11-26 Akim Demaille <akim@epita.fr>
3596 * src/complain.c, src/complain.h (error): Remove, provided by
3599 2001-11-26 Akim Demaille <akim@epita.fr>
3601 * src/reader.c (read_declarations): Don't abort on tok_illegal,
3602 issue an error message.
3603 * tests/regression.at (Invalid %directive): New.
3604 Reported by Hans Aberg.
3606 2001-11-26 Akim Demaille <akim@epita.fr>
3608 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
3609 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
3611 2001-11-26 Akim Demaille <akim@epita.fr>
3613 * src/conflicts.c (conflicts_print): Don't complain at all when
3614 there are no reduce/reduce conflicts, and as many shift/reduce
3615 conflicts as expected.
3616 * tests/regression.at (%expect right): Adjust.
3618 2001-11-23 Akim Demaille <akim@epita.fr>
3620 * lib/alloca.c: Update, from fileutils.
3622 2001-11-23 Akim Demaille <akim@epita.fr>
3624 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
3626 2001-11-23 Akim Demaille <akim@epita.fr>
3628 * src/system.h: Include alloca.h.
3629 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
3631 2001-11-23 Akim Demaille <akim@epita.fr>
3633 * src/print_graph.c (print_actions): Remove `rule', unused.
3634 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
3635 pacify GCC's signed < unsigned warnings.
3636 * src/closure.c (itemsetsize): Likewise.
3637 * src/reader.c (symbol_list_new): Static.
3639 2001-11-23 Akim Demaille <akim@epita.fr>
3641 Attaching lineno to buckets is stupid, since only one copy of each
3642 symbol is kept, only the line of the first occurrence is kept too.
3644 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
3645 * src/reader.c (rline_allocated): Remove, unused.
3646 (symbol_list): Have a `line' member.
3647 (symbol_list_new): New.
3649 * src/print.c (print_grammar): Output the rule line numbers.
3650 * tests/regression.at (Solved SR Conflicts)
3651 (Unresolved SR Conflicts): Adjust.
3652 Reported by Hans Aberg.
3654 2001-11-22 Marc Autret <autret_m@epita.fr>
3656 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
3658 2001-11-22 Marc Autret <autret_m@epita.fr>
3660 * src/muscle_tab.c (muscle_init): Remove initialization of
3662 * src/output.c (output_master_parser): Do it here.
3664 2001-11-20 Akim Demaille <akim@epita.fr>
3667 * configure.in (ALL_LINGUAS): Adjust.
3668 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
3669 longer contains strings to translate.
3671 2001-11-19 Akim Demaille <akim@epita.fr>
3673 * src/conflicts.c (conflicts_print): Add a missing \n.
3675 2001-11-19 Akim Demaille <akim@epita.fr>
3677 * src/nullable.c (nullable_print): New.
3678 (set_nullable): Call it when tracing.
3679 Better locality of variables.
3681 2001-11-19 Akim Demaille <akim@epita.fr>
3683 * src/print.c (print_actions): Better locality of variables.
3685 2001-11-19 Akim Demaille <akim@epita.fr>
3687 * src/derives.c (print_derives): Fix and enrich.
3688 * src/closure.c (print_fderives): Likewise.
3690 2001-11-19 Akim Demaille <akim@epita.fr>
3692 * src/closure.c (itemsetend): Remove, replaced with...
3695 2001-11-19 Akim Demaille <akim@epita.fr>
3697 * src/LR0.c (kernel_end): Remove, replaced with...
3700 2001-11-19 Akim Demaille <akim@epita.fr>
3702 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
3705 2001-11-19 Akim Demaille <akim@epita.fr>
3707 * src/closure.c (closure): Use arrays instead of pointers to clarify.
3709 2001-11-19 Akim Demaille <akim@epita.fr>
3711 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
3713 * src/LR0.c: Likewise.
3714 (allocate_itemsets): Use arrays instead of pointers to clarify.
3716 2001-11-19 Akim Demaille <akim@epita.fr>
3718 * src/getargs.c (statistics_flag): Replace with...
3720 (longopts): Accept --trace instead of --statistics.
3721 * src/getargs.h, src/options.c: Adjust.
3722 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
3723 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
3725 2001-11-19 Akim Demaille <akim@epita.fr>
3727 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
3728 pointers to clarify the code.
3729 (save_reductions, save_shifts): Factor common parts of alternatives.
3731 2001-11-19 Akim Demaille <akim@epita.fr>
3733 * src/LR0.c (new_state, get_state): Complete TRACE code.
3734 * src/closure.c: Include `reader.h' to get `tags', needed by the
3736 Rename the conditional DEBUG as TRACE.
3737 Output consistently TRACEs to stderr, not stdout.
3738 * src/derives.c: Likewise.
3739 * src/reduce.c: (inaccessable_symbols): Using if is better style
3741 Use `#if TRACE' instead of `#if 0' for tracing code.
3743 2001-11-19 Akim Demaille <akim@epita.fr>
3745 * src/system.h (LIST_FREE, shortcpy): New.
3746 * src/LR0.c: Use them.
3747 * src/output.c (free_itemsets, free_reductions, free_shifts):
3748 Remove, replaced by LIST_FREE.
3750 2001-11-19 Akim Demaille <akim@epita.fr>
3752 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
3753 (REDUCTIONS_ALLOC): New.
3754 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
3757 2001-11-19 Akim Demaille <akim@epita.fr>
3759 * src/LR0.c (new_state): Complete trace code.
3760 * src/nullable.c (set_nullable): Don't translate traces.
3762 2001-11-19 Akim Demaille <akim@epita.fr>
3764 * src/print_graph.c (print_core): Better locality of variables.
3765 * src/print.c (print_core): Likewise.
3767 2001-11-19 Akim Demaille <akim@epita.fr>
3769 * src/vcg.c: You do the output, so you are responsible of the
3770 handling of VCG syntax, in particular: use quotearg.
3771 * src/print_graph.c: Don't.
3772 (print_actions): Don't output the actions as part of the nodes,
3773 since that's the job of the edges.
3774 (print_state): Don't output by hand: fill the node description,
3775 and ask for its output.
3777 2001-11-19 Akim Demaille <akim@epita.fr>
3779 * src/bison.simple (yyparse): When verbosely reporting an error,
3780 no longer put additional quotes around token names.
3781 * tests/calc.at: Adjust.
3783 2001-11-19 Akim Demaille <akim@epita.fr>
3785 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
3786 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
3787 * src/output.c: Adjust.
3789 2001-11-19 Akim Demaille <akim@epita.fr>
3791 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
3793 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
3795 2001-11-19 Akim Demaille <akim@epita.fr>
3797 * src/gram.h (rule_t): New.
3799 (rrhs, rlhs): Remove, part of state_t.
3800 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
3801 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
3802 * src/reader.c, src/reduce.c: Adjust.
3804 2001-11-19 Akim Demaille <akim@epita.fr>
3806 * src/reader.c (symbols_output): New, extracted from...
3807 (packsymbols): Here.
3810 2001-11-19 Akim Demaille <akim@epita.fr>
3812 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
3813 (maxrhs): this new function.
3815 2001-11-19 Akim Demaille <akim@epita.fr>
3817 * src/lalr.c (F): New macro to access the variable F.
3820 2001-11-19 Akim Demaille <akim@epita.fr>
3822 * src/lalr.h (LA): New macro to access the variable LA.
3823 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3824 * src/lalr.c: Adjust.
3826 2001-11-19 Akim Demaille <akim@epita.fr>
3828 * src/lalr.c (initialize_LA): Only initialize LA. Let...
3829 (set_state_table): handle the `lookaheads' members.
3831 2001-11-19 Akim Demaille <akim@epita.fr>
3833 * src/lalr.h (lookaheads): Removed array, whose contents is now
3835 (state_t): this structure.
3836 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3839 2001-11-19 Akim Demaille <akim@epita.fr>
3841 * src/lalr.h (consistent): Removed array, whose contents is now
3843 (state_t): this structure.
3844 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3847 2001-11-19 Akim Demaille <akim@epita.fr>
3849 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
3850 contents are now members of...
3851 (state_t): this structure.
3852 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3855 2001-11-19 Akim Demaille <akim@epita.fr>
3857 * src/lalr.h (state_t): New.
3858 (state_table): Be a state_t * instead of a core **.
3859 (accessing_symbol): Remove, part of state_t.
3860 * src/lalr.c: Adjust.
3861 (set_accessing_symbol): Merge into...
3862 (set_state_table): this.
3863 * src/print_graph.c, src/conflicts.c: Adjust.
3865 2001-11-14 Akim Demaille <akim@epita.fr>
3867 * tests/calc.at, tests/output.at, tests/regression.at,
3868 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
3869 now the tests are run in private dirs, therefore AC_CLEANUP and
3870 family can be simplified to 0-ary.
3871 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
3872 use abs. path to find config.h.
3873 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
3874 stderr, there can be way too much random noise.
3875 Instead pass -Werror to GCC and rely on the exit status.
3876 Reported by Wolfram Wagner.
3878 2001-11-14 Akim Demaille <akim@epita.fr>
3880 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
3881 defined only if yyoverflow is defined, to avoid `warning: unused
3883 Reported by The Test Suite.
3885 2001-11-14 Akim Demaille <akim@epita.fr>
3887 * src/print.c: Include reduce.h.
3888 Reported by Hans Aberg.
3890 2001-11-14 Akim Demaille <akim@epita.fr>
3892 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
3893 Revert a previous patch: these are really const.
3894 * src/conflicts.c (conflict_report): Additional useless pair of
3895 braces to pacify GCC's warnings for `if () if () {} else {}'.
3896 * src/lex.c (parse_percent_token): Replace equal_offset with
3899 Be sure to strdup `arg' when used, since there is no reason for
3900 token_buffer not to change.
3902 2001-11-14 Akim Demaille <akim@epita.fr>
3904 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
3906 * src/main.c (main): Use them.
3907 Suggested by Hans Aberg.
3909 2001-11-12 Akim Demaille <akim@epita.fr>
3911 * src/system.h (ngettext): Now that we use ngettext, be sure to
3912 provide a default definition when NLS are not used.
3914 2001-11-12 Akim Demaille <akim@epita.fr>
3916 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
3917 Use @kbd to denote user input.
3918 (Language and Grammar): ANSIfy the example.
3919 Adjust its layout for info/notinfo.
3920 (Location Tracking Calc): Output error messages to stderr.
3921 Output locations in a more GNUtically correct way.
3922 Fix a couple of Englishos.
3923 Adjust @group/@end group pairs.
3925 2001-11-12 Akim Demaille <akim@epita.fr>
3927 %expext was not functioning at all.
3929 * src/conflicts.c (expected_conflicts): Set to -1.
3930 (conflict_report): Use ngettext.
3931 (conflicts_print): Check %expect and make its violation an error.
3932 * doc/bison.texinfo (Expect Decl): Adjust.
3933 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
3934 * tests/regression.at (%expect not enough, %expect right)
3935 (%expect too much): New.
3937 2001-11-12 Akim Demaille <akim@epita.fr>
3939 * tests/regression.at (Conflicts): Rename as...
3940 (Unresolved SR Conflicts): this.
3941 (Solved SR Conflicts): New.
3943 2001-11-12 Akim Demaille <akim@epita.fr>
3945 * src/reduce.c (print_results): Rename as...
3946 (reduce_output): This.
3947 Output to OUT, passed as argument, instead of output_obstack.
3948 (dump_grammar): Likewise.
3951 (reduce_grammar): No longer call reduce_output, since...
3952 * src/print.c (print_results): do it.
3953 * src/main.c (main): Call reduce_free;
3955 2001-11-12 Akim Demaille <akim@epita.fr>
3957 * src/conflicts.c (print_reductions): Accept OUT as argument.
3958 Output to it, not to output_obstack.
3959 * src/print.c (print_actions): Adjust.
3961 2001-11-12 Akim Demaille <akim@epita.fr>
3963 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
3964 the result instead of using...
3965 (src_total, rrc_total, src_count, rrc_count): Remove.
3966 (any_conflicts): Remove.
3967 (print_conflicts): Split into...
3968 (conflicts_print, conflicts_output): New.
3969 * src/conflicts.h: Adjust.
3970 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
3971 * src/print.c (print_grammar): Issue `\n' between two rules.
3972 * tests/regression.at (Conflicts): New.
3973 Reported by Tom Lane.
3975 2001-11-12 Akim Demaille <akim@epita.fr>
3977 * tests/regression.at (Invalid input): Remove, duplicate with
3978 ``Invalid input: 1''.
3980 2001-11-12 Akim Demaille <akim@epita.fr>
3982 * tests/torture.at (AT_DATA_STACK_TORTURE)
3983 (Exploding the Stack Size with Alloca)
3984 (Exploding the Stack Size with Malloc): New.
3986 2001-11-12 Akim Demaille <akim@epita.fr>
3988 * src/bison.simple (YYSTACK_REALLOC): New.
3989 (yyparse) [!yyoverflow]: Use it and free the old stack.
3990 Reported by Per Allansson.
3992 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
3994 * src/bison.simple: Define type yystype instead of YYSTYPE, and
3995 define CPP macro, which substitute YYSTYPE by yystype.
3996 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
3997 with yyltype/YYLTYPE. This allows inclusion of the generated
3998 header within the parser if the compiler, such as GGC, accepts
3999 multiple equivalent #defines.
4002 2001-11-05 Akim Demaille <akim@epita.fr>
4004 * src/reader.c (symbols_output): New, extracted from...
4005 (packsymbols): here.
4008 2001-11-05 Akim Demaille <akim@epita.fr>
4010 * src/lex.c (parse_percent_token): s/quotearg/quote/.
4012 2001-11-05 Akim Demaille <akim@epita.fr>
4014 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
4017 2001-11-05 Akim Demaille <akim@epita.fr>
4019 * src/options.h (struct option_table_struct): set_flags is void*.
4020 * src/options.c (longopts): Support `--output' and `%output'.
4022 * src/lex.h (tok_setopt): Remove, replaced with...
4023 (tok_intopt, tok_stropt): these new guys.
4024 * src/lex.c (getopt.h): Not needed.
4025 (token_buffer, unlexed_token_buffer): Not const.
4026 (percent_table): Promote `-' over `_' in directive names.
4027 Active `%name-prefix', `file-prefix', and `output'.
4028 (parse_percent_token): Accept possible arguments to directives.
4029 Promote `-' over `_' in directive names.
4031 2001-11-04 Akim Demaille <akim@epita.fr>
4033 * doc/bison.texinfo (Decl Summary): Split the list into
4034 `directives for grammars' and `directives for bison'.
4036 Add description of `%name-prefix', `file-prefix', and `output'.
4037 Promote `-' over `_' in directive names.
4038 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
4039 Simplify the description of `--name-prefix'.
4040 Promote `-' over `_' in directive names.
4041 Promote `--output' over `--output-file'.
4042 Fix the description of `--defines'.
4043 * tests/output.at: Exercise %file-prefix and %output.
4045 2001-11-02 Akim Demaille <akim@epita.fr>
4047 * doc/refcard.tex: Update.
4049 2001-11-02 Akim Demaille <akim@epita.fr>
4051 * src/symtab.h (SUNDEF): New.
4052 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
4053 stand for `uninitialized', instead of 0.
4054 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
4055 * src/lex.c (lex): Adjust.
4057 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
4059 Let yylex return it instead of a plain 0.
4060 Reported by Dick Streefland.
4062 2001-11-02 Akim Demaille <akim@epita.fr>
4064 * tests/regression.at (Mixing %token styles): New test.
4066 2001-11-02 Akim Demaille <akim@epita.fr>
4068 * src/reader.c (parse_thong_decl): Formatting changes.
4069 (token_translations_init): New, extracted from...
4070 (packsymbols): Here.
4073 2001-11-01 Akim Demaille <akim@epita.fr>
4075 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
4076 Check that `9foo.y' produces correct cpp guards.
4077 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
4081 2001-11-01 Akim Demaille <akim@epita.fr>
4083 * tests/regression.at (Invalid input: 2): New.
4084 * src/lex.c (unlexed_token_buffer): New.
4085 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
4089 2001-11-01 Akim Demaille <akim@epita.fr>
4091 * tests/calc.at: Catch up with 1.30.
4092 * configure.in: Bump to 1.49a.
4093 Adjust to newer Autotest.
4095 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
4097 * src/conflicts.c: Move global variables rrc_total and src_total ...
4098 (print_conflicts): here.
4099 * src/output.c (output): Free global variable user_toknums.
4100 * src/lex.c (token_obstack): Become static.
4102 2001-10-18 Akim Demaille <akim@epita.fr>
4104 * tests/atlocal.in (GCC): Add.
4105 * tests/calc.at: s/m4_match/m4_bmatch/.
4106 s/m4_patsubst/m4_bpatsubst/.
4107 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
4108 * configure.in: AC_SUBST(GCC).
4110 2001-10-14 Marc Autret <autret_m@epita.fr>
4112 * src/options.c (create_long_option_table): Fix.
4114 2001-10-10 Akim Demaille <akim@epita.fr>
4116 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
4118 2001-10-04 Akim Demaille <akim@epita.fr>
4120 * src/reader.c (parse_union_decl): Push the caracters in
4121 union_obstack, not attrs_obstack.
4123 2001-10-04 Akim Demaille <akim@epita.fr>
4125 Merge in the branch 1.29.
4127 * src/reader.c (packsymbols): Use a temporary obstack for
4128 `%%tokendef', since output_stack is already used elsewhere.
4130 2001-10-02 Akim Demaille <akim@epita.fr>
4134 2001-10-02 Akim Demaille <akim@epita.fr>
4138 2001-10-02 Akim Demaille <akim@epita.fr>
4140 * tests/regression.at (Invalid CPP headers): New.
4141 From Alexander Belopolsky.
4142 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
4144 2001-10-02 Akim Demaille <akim@epita.fr>
4146 * tests/regression.at (Invalid input): New.
4147 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
4150 2001-10-02 Akim Demaille <akim@epita.fr>
4152 * tests/calc.at: Now that --debug works, the tests must be adjusted.
4154 2001-10-02 Akim Demaille <akim@epita.fr>
4156 * src/output.c (output_parser): Assert `skeleton'.
4157 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
4161 2001-10-01 Marc Autret <autret_m@epita.fr>
4163 * src/lex.h: Echo modifications.
4164 * src/lex.c (unlex): Parameter is now token_t.
4167 2001-10-01 Marc Autret <autret_m@epita.fr>
4169 * src/main.c: Include lex.h.
4172 2001-09-29 Akim Demaille <akim@epita.fr>
4174 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
4176 2001-09-28 Akim Demaille <akim@epita.fr>
4178 * tests/testsuite.at: Update to newer Autotest.
4179 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
4181 2001-09-27 Akim Demaille <akim@epita.fr>
4183 Position independent wrapper.
4185 * tests/bison: Remove.
4186 * tests/bison.in: New.
4187 * configure.in: Adjust.
4189 2001-09-27 Paul Eggert <eggert@twinsun.com>
4191 Port quotearg fixes from tar 1.13.24.
4193 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
4195 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
4196 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
4198 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
4199 * m4/mbrtowc.m4: New file.
4200 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
4201 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
4203 2001-09-27 Akim Demaille <akim@epita.fr>
4207 2001-09-27 Akim Demaille <akim@epita.fr>
4211 2001-09-25 Akim Demaille <akim@epita.fr>
4213 * src/system.h: Include `xalloc.h'.
4214 Remove it from the C files.
4215 * src/files.c (output_files): Free the obstacks.
4216 * src/lex.c (init_lex): Rename as...
4219 * src/main.c (main): Use it.
4221 2001-09-24 Marc Autret <autret_m@epita.fr>
4223 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
4224 to output informations in fout (FILE*).
4225 (open_graph, close_graph): Likewise.
4226 (output_graph, output_edge, output_node): Likewise.
4227 * src/vcg.h: Update function prototypes.
4228 * src/print_graph.c (print_graph): Open output graph file.
4229 (print_actions): Adjust.
4230 * src/files.h: Remove extern declaration.
4231 * src/files.c: Remove graph_obstack declaration.
4232 (open_files): Remove graph_obstack initialization.
4233 (output_files): Remove graph_obstack saving.
4235 2001-09-24 Marc Autret <autret_m@epita.fr>
4237 * src/files.c (compute_output_file_names): Fix.
4239 2001-09-24 Marc Autret <autret_m@epita.fr>,
4240 Akim Demaille <akim@epita.fr>
4242 * src/reader.c (reader): Remove call to free_symtab ().
4243 * src/main.c (main): Call it here.
4245 * src/conflicts.c (initialize_conflicts): Rename as...
4246 (solve_conflicts): this.
4247 * src/print.c (print_core, print_actions, print_state)
4248 (print_grammar): Dump to a file instead a `output_obstack'.
4249 (print_results): Dump `output_obstack', and then proceed with the
4251 * src/files.c (compute_output_file_names, close_files): New.
4252 (output_files): Adjust.
4253 * src/main.c (main): Adjust.
4255 2001-09-23 Marc Autret <autret_m@epita.fr>
4257 * src/files.c (compute_header_macro): Computes header macro name
4258 from spec_defines_file when given.
4260 2001-09-23 Marc Autret <autret_m@epita.fr>
4262 * src/files.c (output_files): Add default extensions.
4264 2001-09-22 Akim Demaille <akim@epita.fr>
4266 * src/conflicts.c (finalize_conflicts): Rename as...
4267 (free_conflicts): this.
4269 2001-09-22 Akim Demaille <akim@epita.fr>
4271 * src/gram.c (gram_free): Rename back as...
4273 (output_token_translations): Free `token_translations'.
4274 * src/symtab.c (free_symtab): Free the tag field.
4276 2001-09-22 Akim Demaille <akim@epita.fr>
4278 Remove `translations' as it is always set to true.
4280 * src/gram.h: Adjust.
4281 * src/reader.c (packsymbols, parse_token_decl): Adjust
4282 * src/print.c (print_grammar): Adjust.
4283 * src/output.c (output_token_translations): Adjust.
4284 * src/lex.c (lex): Adjust.
4285 * src/gram.c: Be sure the set pointers to NULL.
4286 (dummy): Rename as...
4289 2001-09-22 Akim Demaille <akim@epita.fr>
4291 * configure.in: Invoke AM_LIB_DMALLOC.
4292 * src/system.h: Use dmalloc.
4293 * src/LR0.c: Be sure to have pointers initialized to NULL.
4294 (allocate_itemsets): Allocate kernel_items only if needed.
4296 2001-09-22 Akim Demaille <akim@epita.fr>
4298 * configure.in: Bump to 1.29b.
4299 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
4300 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
4301 need xmalloc.c in calc.y.
4304 2001-09-21 Akim Demaille <akim@epita.fr>
4307 * Makefile.maint, config/config.guess, config/config.sub,
4308 * config/missing: Update from masters.
4309 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
4311 * configure.in (ALL_LINGUAS): Add `tr'.
4313 2001-09-21 Akim Demaille <akim@epita.fr>
4315 * tests/Makefile.am (package.m4): Move to...
4316 ($(srcdir)/$(TESTSUITE)): here.
4318 2001-09-20 Akim Demaille <akim@epita.fr>
4320 * src/complain.c: No longer try to be standalone: use system.h.
4321 Don't assume __STDC__ is defined to 1. Just test if it is defined.
4322 * src/complain.h: Likewise.
4323 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
4324 Remove the unused variable `n'.
4325 From Albert Chin-A-Young.
4327 2001-09-18 Marc Autret <autret_m@epita.fr>
4329 * doc/bison.1: Update.
4330 * doc/bison.texinfo (Bison Options): Update --defines and --graph
4332 (Option Cross Key): Update.
4335 2001-09-18 Marc Autret <autret_m@epita.fr>
4337 * tests/regression.at: New test (comment in %union).
4339 2001-09-18 Marc Autret <autret_m@epita.fr>
4341 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
4343 Reported by Keith Browne.
4345 2001-09-18 Marc Autret <autret_m@epita.fr>
4347 * tests/output.at: Add tests for --defines and --graph.
4349 2001-09-18 Marc Autret <autret_m@epita.fr>
4351 * tests/output.at: Removes tests of %{header,src}_extension features.
4353 2001-09-18 Akim Demaille <akim@epita.fr>
4355 * tests/Makefile.am (package.m4): New.
4356 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
4357 (_AT_CHECK_CALC_ERROR): Likewise.
4358 Factor the `, ' part of verbose error messages.
4360 2001-09-18 Marc Autret <autret_m@epita.fr>
4362 * src/getargs.c (longopts): Declare --defines and --graph as options
4363 with optional arguments.
4364 * src/files.h: Add extern declarations.
4365 * src/files.c (spec_graph_file, spec_defines_file): New.
4366 (output_files): Update.
4367 Remove CPP-outed code.
4369 2001-09-18 Marc Autret <autret_m@epita.fr>
4371 Turn off %{source,header}_extension feature.
4373 * src/files.c (compute_exts_from_gf): Update.
4374 (compute_exts_from_src): Update.
4375 (output_files): CPP-out useless code.
4376 * src/files.h: Remove {header,source}_extension extern declarations.
4377 * src/reader.c (parse_dquoted_param): CPP-out.
4378 (parse_header_extension_decl): Remove.
4379 (parse_source_extension_decl): Remove.
4380 (read_declarations): Remove cases tok_{hdrext,srcext}.
4381 * src/lex.c (percent_table): Remove {header,source}_extension entries.
4382 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
4384 2001-09-10 Akim Demaille <akim@epita.fr>
4386 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
4387 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
4388 (AT_CHECK_OUTPUT): this.
4389 Merely check ls' exit status, its output is useless.
4391 2001-09-10 Akim Demaille <akim@epita.fr>
4393 * tests/calc.at: Use m4_match.
4394 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
4396 2001-09-10 Marc Autret <autret_m@epita.fr>,
4397 Akim Demaille <akim@epita.fr>
4399 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
4401 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
4403 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
4404 * src/lex.h: Adjust prototype.
4405 (token_t): Add `tok_undef'.
4406 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
4407 (parse_percent_token): Now returns token_t.
4408 Add default statement in switch.
4409 (lex): Separate `c' as an input variable, from the token_t result
4411 (unlexed): Is a token_t.
4413 2001-09-10 Akim Demaille <akim@epita.fr>
4415 * configure.in: Bump to 1.29a.
4417 2001-09-07 Akim Demaille <akim@epita.fr>
4421 2001-08-30 Akim Demaille <akim@epita.fr>
4423 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
4424 * m4/atconfig.m4: Remove.
4425 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
4427 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
4428 m4_if, m4_patsubst, and m4_regexp.
4429 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
4430 `input' file instead of echo.
4432 2001-08-29 Akim Demaille <akim@epita.fr>
4436 2001-08-29 Akim Demaille <akim@epita.fr>
4440 2001-08-29 Paul Eggert <eggert@twinsun.com>
4442 * src/bison.simple (yyparse): Don't take the address of an
4443 item before the start of an array, as that doesn't conform to
4446 2001-08-29 Robert Anisko <anisko_r@epita.fr>
4448 * doc/bison.texinfo (Location Tracking Calc): New node.
4450 2001-08-29 Paul Eggert <eggert@twinsun.com>
4452 * src/output.c (output): Do not define const, as this now
4453 causes more problems than it cures.
4455 2001-08-29 Akim Demaille <akim@epita.fr>
4457 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
4459 Be sure to tag the `detailmenu'.
4461 2001-08-29 Akim Demaille <akim@epita.fr>
4463 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
4464 download in a tmp dir.
4466 2001-08-28 Marc Autret <autret_m@epita.fr>
4468 * config/depcomp: New file.
4470 2001-08-28 Marc Autret <autret_m@epita.fr>
4472 * doc/bison.1 (mandoc): Adjust.
4473 From Juan Manuel Guerrero.
4475 2001-08-28 Marc Autret <autret_m@epita.fr>
4477 * src/print_graph.c (print_state): Fix.
4479 2001-08-27 Marc Autret <autret_m@epita.fr>
4481 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
4483 Echo modifications to the functions prototypes.
4484 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
4486 2001-08-27 Marc Autret <autret_m@epita.fr>
4488 * src/vcg.c: Include `xalloc.h'.
4489 (add_colorentry): New.
4490 (add_classname): New.
4491 (add_infoname): New.
4492 * src/vcg.h: Add new prototypes.
4494 2001-08-27 Akim Demaille <akim@epita.fr>
4496 * Makefile.maint: Sync. again with CVS Autoconf.
4498 2001-08-27 Akim Demaille <akim@epita.fr>
4500 * Makefile.maint: Formatting changes.
4501 (po-update, cvs-update, update): New targets.
4504 2001-08-27 Akim Demaille <akim@epita.fr>
4506 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4507 * Makefile.maint: Sync. with CVS Autoconf.
4509 2001-08-27 Marc Autret <autret_m@epita.fr>
4511 * src/vcg.h (struct infoname_s): New.
4512 (struct colorentry_s): New.
4513 (graph_s): New fields {vertical,horizontal}_order in structure.
4514 Add `infoname' field.
4515 Add `colorentry' field;
4516 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
4517 (G_HORIZONTAL_ORDER): New.
4519 (G_COLORENTRY): New.
4520 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
4521 Add output of `infoname'.
4522 Add output of `colorentry'.
4524 2001-08-27 Marc Autret <autret_m@epita.fr>
4526 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
4527 This one shadowed a global parameter.
4529 2001-08-24 Marc Autret <autret_m@epita.fr>
4531 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
4532 instead of `unsigned'.
4533 (print_state): Do not call obstack_object_size () in obstack_grow ()
4534 to avoid macro variables shadowing.
4536 2001-08-23 Marc Autret <autret_m@epita.fr>
4538 * src/lex.c (percent_table): Typo: s/naem/name/.
4540 Normalize new options declarations.
4542 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
4544 * tests/suite.at: Exercise %header_extension and %source_extension.
4546 2001-08-16 Marc Autret <autret_m@epita.fr>
4548 * src/reader.c (parse_dquoted_param): New.
4549 (parse_header_extension_decl): Use it.
4550 (parse_source_extension_decl): Likewise.
4552 2001-08-16 Marc Autret <autret_m@epita.fr>
4554 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
4555 (get_xxxx_str): Use assert () instead of complain ().
4556 Remove return invokations in default cases.
4557 (get_decision_str): Modify default behaviour. Remove second argument.
4558 Echo modifications on calls.
4559 (output_graph): Fix.
4561 2001-08-16 Marc Autret <autret_m@epita.fr>
4563 * src/getargs.c (usage): Update with ``-g, --graph''.
4565 2001-08-16 Marc Autret <autret_m@epita.fr>
4567 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
4568 (Option Cross Key): Likewise.
4569 * doc/bison.1: Update.
4571 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
4573 * src/output.c (output_master_parser): Don't finish action_obstack.
4574 (output_parser): Don't care about the muscle action, here.
4575 (prepare): Copy the action_obstack in the action muscle.
4576 (output): Free action_obstack.
4578 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
4580 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
4581 will contain `%union' declaration.
4582 (parse_union_decl): Delete #line directive output.
4583 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
4584 informations about %union.
4585 (parse_union_decl): Copy the union_obstack in the muscle stype.
4586 * src/bison.simple: Add new #line directive.
4587 Add typdef %%stype YYSTYPE.
4589 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
4591 * src/bison.simple: Add new `#line' directive.
4593 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
4595 * src/bison.simple: New `#line' directive.
4596 * src/output.c (output_parser): Support new dynamic muscle input_line.
4598 2001-09-22 Marc Autret <autret_m@epita.fr>
4600 * src/output.c (output_master_parser): New.
4601 (output_parser): Be more re-entrant.
4603 2001-09-21 Marc Autret <autret_m@epita.fr>
4605 * src/reader.c (copy_definition, parse_union_decl): Update and use
4607 (copy_action): Likewise.
4608 Use obstack_1grow ().
4609 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
4611 2001-09-21 Marc Autret <autret_m@epita.fr>
4613 * src/options.c (option_table): Adjust.
4614 * src/lex.c (parse_percent_token): Fix.
4616 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
4618 * src/options.c (symtab.h): Include it, need by lex.h.
4620 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
4622 * src/lex.c (parse_percent_token): Change type of variable `tx', which
4623 is now an option_table_struct*.
4624 (option_strcmp): New function option_strcmp.
4625 (parse_percent_token): Call option_strcmp.
4626 * src/getargs.c (xalloc.h, options.h): Include it.
4627 (getargs): Call create_long_option_table.
4628 (getargs): Free longopts at the end of the function.
4629 (shortopts): Move in options.c.
4630 * src/options.c (create_long_option_table): New function. Convert
4631 information from option_table to option structure.
4632 * src/reader.c (options.h): Include it.
4634 * src/Makefile.am: Adjust.
4635 * src/options.c (option_table): Create from longopts and percent_table.
4636 * src/getargs.c (longopts): Delete.
4637 * src/lex.c (struct percent_table_struct): Delete.
4638 (percent_table): Delete.
4639 (options.h): Include it.
4640 * src/options.c: Create.
4641 * src/options.h: Create.
4642 Declare enum opt_access_e.
4643 Define struct option_table_struct.
4645 2001-09-20 Marc Autret <autret_m@epita.fr>
4647 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
4650 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
4652 * src/bison.simple: s/%%filename/%%skeleton.
4653 * src/muscle_tab.c (getargs.h): Include it.
4654 (muscle_init): Insert new muscle skeleton.
4656 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
4658 * src/output.c (output_parser): Delete unused variable actions_dumped.
4660 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
4662 * src/output.c (output): Delete call to reader_output_yylsp.
4663 * src/reader.c (reader): Likewise.
4664 * src/reader.h: Delete declaration of reader_output_yylsp.
4666 2001-09-02 Marc Autret <autret_m@epita.fr>
4668 * src/reader.c: Include muscle_tab.h.
4669 (parse_union_decl): Update.
4670 (parse_macro_decl): Rename parse_muscle_decl.
4671 Update to use renamed functions and variable.
4672 (read_declarations, copy_action, read_additionnal_code, : Updated
4673 with correct variables and functions names.
4674 (packsymbols, reader): Likewise.
4676 * src/reader.h (muscle_obstack): Extern declaration update.
4678 * src/output.c: Include muscle_tab.h
4679 In all functions using macro_insert, change by using muscle_insert ().
4680 (macro_obstack): Rename muscle_obstack.
4681 Echo modifications in the whole file.
4682 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
4683 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
4684 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
4686 * src/muscle_tab.h: Update double inclusion macros.
4687 (macro_entry_s): Rename muscle_entry_s.
4690 * src/muscle_tab.c: Include muscle_tab.h.
4691 Rename macro_tabble to muscle_table.
4692 (mhash1, mhash2, mcmp): Use muscle_entry.
4693 (macro_init): Rename muscle_init. Update.
4694 (macro_insert): Rename muscle_insert. Update.
4695 (macro_find): Rename muscle_find. Update.
4697 * src/main.c: Include muscle_tab.h.
4698 (main): Call muscle_init ().
4699 * src/Makefile.am (bison_SOURCES): Echo modifications.
4701 2001-09-02 Marc Autret <autret_m@epita.fr>
4703 Now the files macro_tab.[ch] are named muscle_tab.[ch].
4705 * src/muscle_tab.c, src/muscle_tab.h: Add files.
4707 2001-09-02 Marc Autret <autret_m@epita.fr>
4709 * src/macrotab.c, src/macrotab.h: Remove.
4711 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
4713 * src/reader.c (copy_guard): Use muscle to specify the `#line'
4716 2001-09-01 Marc Autret <autret_m@epita.fr>
4718 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
4719 to an explicit value to activate the feature. We do it here.
4721 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4723 * src/output.c (prepare): Delete the `filename' muscule insertion.
4724 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
4725 (parse_union_decl): Likewise.
4726 * src/macrotab.c (macro_init): Initialize filename by infile.
4728 2001-08-31 Marc Autret <autret_m@epita.fr>
4730 * src/bison.simple (YYLSP_NEEDED): New definition.
4731 * src/output.c (prepare): Add macro insertion of `locations_flag'
4733 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4735 * src/output.c (prepare): Delete insertion of previous muscles,
4736 and insert the `prefix' muscles.
4737 * src/macrotab.c (macro_init): Likewise.
4738 (macro_init): Initialization prefix directive by `yy'.
4739 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
4740 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
4741 yylval, yydebug, yyerror, yynerrs and yyparse.
4742 New directive `#define' to substitute yydebug, ... with option
4745 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4747 * src/main.c (main): Standardize.
4748 * src/output.c (output_table_data, output_parser): Likewise.
4749 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
4751 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
4753 * src/reader.c (read_additionnal_code): Rename %%user_code to
4755 * src/output.c (output): Rename %%declarations to %%prologue.
4756 * src/bison.simple: Echo modifications.
4758 2001-08-31 Marc Autret <autret_m@epita.fr>
4760 * src/reader.c (readgram): CleanUp.
4761 (output_token_defines): Likewise.
4762 (packsymbols): Likewise.
4764 * src/output.c (output): CPP-out useless code.
4766 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4768 * src/reader.c (reader): Delete obsolete call to function
4769 output_trailers and output_headers.
4770 * src/output.h: Remove obsolete functions prototypes of output_headers
4771 and output_trailers.
4773 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
4775 * src/main.c: Include macrotab.h.
4776 * src/macrotab.h (macro_entry_s): Constify fields.
4777 Adjust functions prototypes.
4778 * src/macrotab.c (macro_insert): Constify key and value.
4779 (macro_find): Constify key.
4780 (macro_insert): Include 'xalloc.h'
4781 (macro_insert): Use XMALLOC.
4782 (macro_find): Constify return value.
4783 * src/output.c (output_table_data): Rename table to table_data.
4784 (output_parser): Constify macro_key, macro_value.
4786 2001-08-30 Marc Autret <autret_m@epita.fr>
4788 * src/reader.c (parse_skel_decl): New.
4789 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
4790 * src/lex.h (token_t): New token `tok_skel'.
4791 * src/lex.c (percent_table): Add skeleton option entry.
4794 2001-08-29 Marc Autret <autret_m@epita.fr>
4796 * src/bison.simple: Add %%user_code directive at the end.
4797 * src/reader.c (read_additionnal_code): New.
4799 * src/output.c (output_program): Remove.
4802 2001-08-28 Marc Autret <autret_m@epita.fr>
4804 * src/output.c (output_actions): Clean up.
4805 (output_gram): CPP-out useless code.
4806 * src/reader.c (reader): Clean up, CPP-out useless code.
4808 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
4810 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
4812 * src/bison.simple: Add `%%definitions'.
4814 2001-08-28 Marc Autret <autret_m@epita.fr>
4816 * config/depcomp: New file.
4818 2001-08-27 Paul Eggert <eggert@twinsun.com>
4820 * src/bison.simple (yyparse): Don't take the address of an
4821 item before the start of an array, as that doesn't conform to
4824 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4826 * src/output.c (output): Remove the initialization of the macro
4827 obstack. It was done too late here.
4829 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
4831 (reader): Initialize the macro obstack here, since we need it to grow
4832 '%define' directives.
4834 * src/reader.h: Declare the macro obstack as extern.
4836 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4838 * src/output.c (output_parser): Fix. Store single '%' characters in
4839 the output obstack instead of throwing them away.
4841 2001-08-27 Akim Demaille <akim@epita.fr>
4843 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4845 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4847 * lib/Makefile.am: Adjust.
4849 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4851 * src/bison.simple: Update and add '%%' directives.
4853 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4855 * src/reader.c (reader): Remove calls to 'output_headers' and
4856 'output_trailers'. Remove some C output.
4857 (readgram): Disable a piece of code that was writing a default
4858 definition for 'YYSTYPE'.
4859 (reader_output_yylsp): Remove.
4860 (packsymbols): Output token defintions to a macro.
4861 (copy_definition): Disable C output.
4863 * src/reader.c (parse_macro_decl): New function used to parse macro
4865 (copy_string2): Put the body of copy_string into this new function.
4866 Add a parameter to let the caller choose whether he wants to copy the
4867 string delimiters or not.
4868 (copy_string): Be a simple call to copy_string2 with the last argument
4870 (read_declarations): Add case for macro definition.
4871 (copy_identifier): New.
4872 (parse_macro_decl): Read macro identifiers using copy_identifier
4875 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4877 * src/output.c (prepare): Add prefixed names.
4878 (output_parser): Output semantic actions.
4879 (output_parser): Fix bug on '%%line' directives.
4881 * src/output.c (output_headers): Remove. The C code printed by this
4882 function should now be in the skeletons.
4883 (output_trailers): Remove.
4884 (output): Disable call to 'reader_output_yylsp'.
4885 (output_rule_data): Do not output tables to the table obstack.
4887 * src/output.c: Remove some C dedicated output.
4888 Improve the use of macro and output obstacks.
4889 (output_defines): Remove.
4891 * src/output.c (output_token_translations): Associate 'translate'
4892 table with a macro. No output to the table obstack.
4893 (output_gram): Same for 'rhs' and 'prhs'.
4894 (output_stos): Same for 'stos'.
4895 (output_rule_data): Same for 'r1' and 'r2'.
4896 (token_actions): Same for 'defact'.
4897 (goto_actions): Same for 'defgoto'.
4898 (output_base): Same for 'pact' and 'pgoto'.
4899 (output_table): Same for 'table'.
4900 (output_check): Same for 'check'.
4902 * src/output.c (output_table_data): New function.
4903 (output_short_table): Remove.
4904 (output_short_or_char_table): Remove.
4906 * src/output.c (output_parser): Replace most of the skeleton copy code
4907 with something new. Skeletons are now processed character by character
4908 rather than line by line, and Bison looks for '%%' macros. This is the
4909 first step in making Bison's output process (a lot) more flexible.
4910 (output_parser): Use the macro table.
4912 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4914 * src/main.c (main): Initialize the macro table.
4916 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4918 * src/lex.c (percent_table): Add tok_define.
4919 * src/lex.h: Add tok_define.
4921 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4923 * src/macrotab.c: New file.
4924 * src/macrotab.h: New file.
4925 * src/Makefile.am: Update.
4927 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4929 * lib/hash.c: New file.
4930 * lib/hash.h: New file.
4931 * lib/Makefile.am: Update.
4933 2001-08-15 Akim Demaille <akim@epita.fr>
4937 2001-08-15 Marc Autret <autret_m@epita.fr>
4939 * src/reader.c (readgram): Indent output macro YYSTYPE.
4940 (packsymbols): Likewise.
4941 (output_token_defines): Likewise.
4942 * src/files.c: Standardize.
4943 (compute_header_macro): New.
4944 (defines_obstack_save): New. Use compute_header_macro.
4945 (output_files): Update. Use defines_obstack_save.
4947 2001-08-15 Akim Demaille <akim@epita.fr>
4949 * doc/bison.texinfo (Table of Symbols): Document
4952 2001-08-15 Akim Demaille <akim@epita.fr>
4954 * missing: Update from CVS Automake.
4955 * config/config.guess, config/config.sub, config/texinfo.tex:
4956 Update from gnu.org.
4958 2001-08-15 Akim Demaille <akim@epita.fr>
4960 * Makefile.maint: Sync with CVS Autoconf.
4962 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
4964 * doc/bison.texinfo: Include GNU Free Documentation License from
4966 * doc/fdl.texi: Add to package.
4968 2001-08-14 Marc Autret <autret_m@epita.fr>
4970 Turn on %{source,header}_extension features.
4972 * src/lex.c (percent_table): Un-CPP out header_extension and
4974 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
4975 (compute_exts_from_src): Remove conditions. It restores priorities
4978 2001-08-14 Marc Autret <autret_m@epita.fr>
4980 * src/files.c (compute_base_names): Add extensions computing when
4981 `--file-prefix' used.
4982 Standardize function calls.
4984 2001-08-13 Marc Autret <autret_m@epita.fr>
4986 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
4987 defining it (defined but null disables alloca).
4989 2001-08-13 Marc Autret <autret_m@epita.fr>
4991 * src/bison.simple (_yy_memcpy): CPP reformat.
4993 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
4995 * tests/atconfig.in (CPPFLAGS): Fix.
4997 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
4999 * doc/bison.texinfo: Include GNU General Public License from
5001 * doc/gpl.texi: Add to package.
5003 2001-08-10 Marc Autret <autret_m@epita.fr>
5005 * src/print_graph.h: Fix.
5006 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
5008 2001-08-10 Akim Demaille <akim@epita.fr>
5010 * src/system.h: Provide default declarations for stpcpy, strndup,
5013 2001-08-10 Robert Anisko <anisko_r@epita.fr>
5015 * doc/bison.texinfo (Locations): Update @$ stuff.
5017 2001-08-09 Robert Anisko <anisko_r@epita.fr>
5019 * src/bison.simple (YYLLOC_DEFAULT): Update.
5022 2001-08-08 Marc Autret <autret_m@epita.fr>
5024 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
5025 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
5026 Reported by Fabrice Bauzac.
5028 2001-08-08 Marc Autret <autret_m@epita.fr>
5030 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
5031 * src/vcg.c (output_node): Fix.
5032 * src/vcg.h: Cleanup.
5033 * src/print_graph.c: Add comments.
5034 (node_output_size): New global variable. Simplify the formatting of
5035 the VCG graph output.
5036 (print_actions): Unused code is now used. It notifies the final state
5037 and no action states in the VCG graph. It also give the reduce actions.
5038 The `shift and goto' edges are red and the `go to state' edges are
5040 Get the current node name and node_obstack by argument.
5041 (node_obstack): New variable.
5042 (print_state): Manage node_obstack.
5043 (print_core): Use node_obstack given by argument.
5044 A node is not only computed here but in print_actions also.
5045 (print_graph): CPP out useless code instead of commenting it.
5047 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
5049 * tests/atconfig.in (CPPFLAGS): Fix.
5051 2001-08-07 Akim Demaille <akim@epita.fr>
5053 * src/print_graph.c (quote): New.
5054 (print_core): Use it.
5056 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
5058 * src/vcg.c (complain.h): Include it.
5059 Unepitaize `return' invocations.
5060 [NDEBUG] (main): Remove.
5061 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
5062 * src/files.c (open_files): Initialize graph_obstack.
5063 * src/print_graph.c (print_actions): CPP out useless code.
5064 (print_core): Don't output the last `\n' in labels.
5066 * src/files.c (output_files): Output the VCG file.
5067 * src/main.c (main): Invoke print_graph ();
5069 2001-08-06 Marc Autret <autret_m@epita.fr>
5071 Automaton VCG graph output.
5072 Using option ``-g'' or long option ``--graph'', you can generate
5073 a gram_filename.vcg file containing a VCG description of the LALR (1)
5074 automaton of your grammar.
5076 * src/main.c: Call to print_graph() function.
5077 * src/getargs.h: Update.
5078 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
5079 (graph_flag): New flag.
5081 (getargs): Add case `g'.
5082 * src/files.c (graph_obstack): New obstack struct.
5083 (open_files): Initialize new obstack.
5084 (output_files): Saves graph_obstack if required.
5085 * src/files.h (graph_obstack): New extern declaration.
5086 * src/Makefile.am: Add new source files.
5088 2001-08-06 Marc Autret <autret_m@epita.fr>
5090 * src/print_graph.c, src/print_graph.h (graph): New.
5091 * src/vcg.h: New file.
5092 * src/vcg.c: New file, VCG graph handling.
5094 2001-08-06 Marc Autret <autret_m@epita.fr>
5096 Add of %source_extension and %header_extension which specify
5097 the source or/and the header output file extension.
5099 * src/files.c (compute_base_names): Remove initialisation of
5100 src_extension and header_extension.
5101 (compute_exts_from_gf): Update.
5102 (compute_exts_from_src): Update.
5103 (output_files): Update.
5104 * src/reader.c (parse_header_extension_decl): New.
5105 (parse_source_extension_decl): New.
5106 (read_declarations): New case statements for the new tokens.
5107 * src/lex.c (percent_table): Add entries for %source_extension
5108 and %header_extension.
5109 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
5111 2001-08-06 Marc Autret <autret_m@epita.fr>
5113 * configure.in: Bump to 1.28c.
5114 * doc/bison.texinfo: Texinfo thingies.
5116 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
5118 * tests/atconfig.in (CPPFLAGS): Add.
5119 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
5121 2001-08-03 Akim Demaille <akim@epita.fr>
5125 2001-08-03 Akim Demaille <akim@epita.fr>
5127 * tests/Makefile.am (check-local): Ship testsuite.
5128 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
5131 2001-08-03 Akim Demaille <akim@epita.fr>
5133 * configure.in: Try using -Wformat when compiling.
5135 2001-08-03 Akim Demaille <akim@epita.fr>
5137 * configure.in: Bump to 1.28b.
5139 2001-08-03 Akim Demaille <akim@epita.fr>
5141 * src/complain.c: Adjust strerror_r portability issues.
5143 2001-08-03 Akim Demaille <akim@epita.fr>
5147 2001-08-03 Akim Demaille <akim@epita.fr>
5149 * src/getargs.c, src/getarg.h (skeleton)): Constify.
5150 * src/lex.c (literalchar): Avoid name clashes on `buf'.
5151 * src/getargs.c: Include complain.h.
5152 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
5153 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
5155 2001-08-03 Akim Demaille <akim@epita.fr>
5157 * src/reader.c (readgram): Display hidden chars in error messages.
5159 2001-08-03 Akim Demaille <akim@epita.fr>
5161 Update to gettext 0.10.39.
5163 2001-08-03 Akim Demaille <akim@epita.fr>
5165 * lib/strspn.c: New.
5167 2001-08-01 Marc Autret <autret_m@epita.fr>
5169 * doc/bison.texinfo: Update.
5170 * doc/bison.1 (mandoc): Update.
5171 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
5172 * src/files.c: Support output files extensions computing.
5173 (src_extension): New static variable.
5174 (header_extension): New static variable.
5176 (get_extension_index): New function, gets the index of an extension
5177 filename in a string.
5178 (compute_exts_from_gf): New function, computes extensions from the
5179 grammar file extension.
5180 (compute_exts_from_src): New functions, computes extensions from the
5181 C source file extension, file given by ``-o'' option.
5182 (compute_base_names): Update.
5183 (output_files): Update.
5185 2001-08-01 Robert Anisko <anisko_r@epita.fr>
5187 * doc/bison.texi: Document @$.
5188 (Locations): New section.
5190 2001-07-18 Akim Demaille <akim@epita.fr>
5192 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
5193 * config/prev-version.txt, config/move-if-change: New.
5194 * Makefile.am: Adjust.
5196 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
5198 * src/bison.simple (yyparse): Suppress warning `comparaison
5199 between signed and unsigned'.
5201 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
5203 * src/getargs.h (raw_flag): Remove.
5204 * src/getargs.c: Die on `-r'/`--raw'.
5205 * src/lex.c (parse_percent_token): Die on `%raw'.
5206 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
5207 * tests/calc.at: Suppress test with option `--raw'.
5209 2001-07-14 Akim Demaille <akim@epita.fr>
5212 * configure.in: Require Autoconf 2.50.
5213 Update to gettext 0.10.38.
5215 2001-03-16 Akim Demaille <akim@epita.fr>
5217 * doc/bison.texinfo: ANSIfy the examples.
5219 2001-03-16 Akim Demaille <akim@epita.fr>
5221 * getargs.c (skeleton): New variable.
5222 (longopts): --skeleton is a new option.
5223 (shortopts, getargs): -S is a new option.
5224 * getargs.h: Declare skeleton.
5225 * output.c (output_parser): Use it.
5227 2001-03-16 Akim Demaille <akim@epita.fr>
5229 * m4/strerror_r.m4: New.
5230 * m4/error.m4: Run AC_FUNC_STRERROR_R.
5231 * lib/error.h, lib/error.c: Update.
5233 2001-03-16 Akim Demaille <akim@epita.fr>
5235 * src/getargs.c (longopts): Clean up.
5237 2001-02-21 Akim Demaille <akim@epita.fr>
5239 * src/reader.c (gensym): `gensym_count' is your own.
5240 Use a static buf to create the symbol name, as token_buffer is no
5243 2001-02-08 Akim Demaille <akim@epita.fr>
5245 * src/conflicts.c (conflict_report): Be sure not to append to res
5246 between two calls, which could happen if both first sprintf were
5247 skipped, but not the first cp += strlen.
5249 2001-02-08 Akim Demaille <akim@epita.fr>
5251 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
5252 New, from fileutils 4.0.37.
5253 * configure.in: Require Autoconf 2.49c. I took some time before
5254 making this decision. This is the only way out for portability
5255 issues in Bison, it would mean way too much duplicate effort to
5256 import in Bison features implemented in 2.49c since 2.13.
5257 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
5259 2001-02-02 Akim Demaille <akim@epita.fr>
5261 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
5262 * lib/xalloc.h, lib/xmalloc.c: Update.
5264 2001-01-19 Akim Demaille <akim@epita.fr>
5266 Get rid of the ad hoc handling of token_buffer in the scanner: use
5269 * src/lex.c (token_obstack): New.
5270 (init_lex): Initialize it. No longer call...
5271 (grow_token_buffer): this. Remove it.
5272 Adjust all the places which used it to use the obstack.
5274 2001-01-19 Akim Demaille <akim@epita.fr>
5276 * src/lex.h: Rename all the tokens:
5277 s/\bENDFILE\b/tok_eof/g;
5278 s/\bIDENTIFIER\b/tok_identifier/g;
5280 Let them be enums, not #define, to ease debugging.
5281 Adjust all the code.
5283 2001-01-18 Akim Demaille <akim@epita.fr>
5285 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
5286 * src/lex.c (maxtoken, grow_token_buffer): Static.
5288 2001-01-18 Akim Demaille <akim@epita.fr>
5290 Since we now use obstacks, more % directives can be enabled.
5292 * src/lex.c (percent_table): Also accept `%yacc',
5293 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
5295 Handle the actions for `%semantic_parser' and `%pure_parser' here,
5296 instead of returning a token.
5297 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
5298 * src/reader.c (read_declarations): Adjust.
5299 * src/files.c (open_files): Don't call `compute_base_names', don't
5300 compute `attrsfile' since they depend upon data which might be
5301 *in* the input file now.
5302 (output_files): Do it here.
5303 * src/output.c (output_headers): Document the fact that this patch
5304 introduces a guaranteed SEGV for semantic parsers.
5305 * doc/bison.texinfo: Document them.
5306 * tests/suite.at: Exercise these %options.
5308 2000-12-20 Akim Demaille <akim@epita.fr>
5310 Also handle the output file (--verbose) with obstacks.
5312 * files.c (foutput): Remove.
5313 (output_obstack): New.
5314 Adjust all dependencies.
5315 * src/conflicts.c: Return a string.
5316 * src/system.h (obstack_grow_string): Rename as...
5317 (obstack_sgrow): this. Be ready to work with non literals.
5318 (obstack_fgrow4): New.
5320 2000-12-20 Akim Demaille <akim@epita.fr>
5322 * src/files.c (open_files): Fix the computation of short_base_name
5323 in the case of `-o foo.tab.c'.
5325 2000-12-20 Akim Demaille <akim@epita.fr>
5327 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
5328 (copy_dollar): Now that everything uses obstacks, get rid of the
5331 2000-12-20 Akim Demaille <akim@epita.fr>
5333 * src/files.c (open_files): Actually the `.output' file is based
5334 on the short_base_name, not base_name.
5335 * tests/suite.at (Checking output file names): Adjust.
5337 2000-12-20 Akim Demaille <akim@epita.fr>
5339 * src/bison.s1: Remove, we now use directly...
5340 * src/bison.simple: this.
5341 * src/Makefile.am: Use pkgdata instead of data.
5343 2000-12-20 Akim Demaille <akim@epita.fr>
5345 * src/files.c (guard_obstack): New.
5346 (open_files): Initialize it.
5347 (output_files): Dump it...
5348 * src/files.h: Export it.
5349 * src/reader.c (copy_guard): Use it.
5351 2000-12-19 Akim Demaille <akim@epita.fr>
5353 * src/files.c (outfile, defsfile, actfile): Removed as global
5355 (open_files): Don't compute them.
5356 (output_files): Adjust.
5357 (base_name, short_base_name): Be global.
5358 Adjust dependencies.
5360 2000-12-19 Akim Demaille <akim@epita.fr>
5362 * src/files.c (strsuffix): New.
5363 (stringappend): Be just like strcat but allocate.
5364 (base_names): Eve out from open_files.
5365 Try to simplify the rather hairy computation of base_name and
5367 (open_files): Use it.
5368 * tests/suite.at (Checking output file names): New test.
5370 2000-12-19 Akim Demaille <akim@epita.fr>
5372 * src/system.h (obstack_grow_literal_string): Rename as...
5373 (obstack_grow_string): this.
5374 * src/output.c (output_parser): Recognize `%% actions' instead of
5376 * src/bison.s1: s/$/%% actions/.
5377 * src/bison.hairy: Likewise.
5379 2000-12-19 Akim Demaille <akim@epita.fr>
5381 * src/output.c (output_parser): Compute the `#line' lines when
5383 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
5384 Suggested by Hans Aberg.
5386 2000-12-19 Akim Demaille <akim@epita.fr>
5388 Let the handling of the skeleton files be local to the procedures
5391 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
5393 (fparser, open_extra_files): Remove.
5394 (open_files, output_files): Don't take care of fparser.
5395 * src/files.h: Adjust.
5396 * src/output.c (output_parser): Open and close the file to the
5398 * src/reader.c (read_declarations): When %semantic_parser, open
5401 2000-12-19 Akim Demaille <akim@epita.fr>
5403 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
5404 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
5406 2000-12-19 Akim Demaille <akim@epita.fr>
5408 * src/files.c (open_files): Yipee! We no longer need all the code
5409 looking for `/tmp' since we have no tmp file.
5411 2000-12-19 Akim Demaille <akim@epita.fr>
5413 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
5415 * src/files.c (open_files): Less dependency on MSDOS etc.
5417 2000-12-14 Akim Demaille <akim@epita.fr>
5419 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
5420 Provide a default definition.
5421 Use it when executing the default @ action.
5422 * src/reader.c (reader_output_yylsp): No longer include
5423 `timestamp' and `text' in the default YYLTYPE.
5425 2000-12-12 Akim Demaille <akim@epita.fr>
5427 * src/reader.c (copy_definition, parse_union_decl, copy_action)
5428 (copy_guard): Quote the file names.
5429 Reported by Laurent Mascherpa.
5431 2000-12-12 Akim Demaille <akim@epita.fr>
5433 * src/output.c (output_headers, output_program, output): Be sure
5434 to escape special characters when outputting filenames.
5435 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
5436 (output_headers): Don't depend on them, Use ACTSTR.
5438 2000-11-17 Akim Demaille <akim@epita.fr>
5440 * lib/obstack.h: Formatting changes.
5441 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
5442 prevents type checking.
5443 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
5444 cast the value to (void *): assigning a `foo *' to a `void *'
5446 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
5447 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
5450 2000-11-17 Akim Demaille <akim@epita.fr>
5452 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
5454 (suite.m4, regression.m4, calc.m4): these.
5455 * tests/atgeneral.m4: Update from CVS Autoconf.
5457 2000-11-17 Akim Demaille <akim@epita.fr>
5459 * tests/regression.m4 (%union and --defines): New test,
5460 demonstrating a current bug in the obstack implementation.
5462 2000-11-17 Akim Demaille <akim@epita.fr>
5464 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
5466 Use them to declare the variables which are global or local to
5469 2000-11-17 Akim Demaille <akim@epita.fr>
5471 * acconfig.h: Remove, no longer used.
5473 2000-11-07 Akim Demaille <akim@epita.fr>
5475 * src: s/Copyright (C)/Copyright/g.
5477 2000-11-07 Akim Demaille <akim@epita.fr>
5479 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
5481 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
5483 2000-11-07 Akim Demaille <akim@epita.fr>
5485 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
5486 Merge in a single CPP if/else.
5488 2000-11-07 Akim Demaille <akim@epita.fr>
5490 * src/output.c (output): Remove useless variables.
5491 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
5492 argument `data' for consistency with the prototypes.
5494 (obstack_copy, obstack_copy0): Rename the second argument as
5495 `address' for consistency. Qualify it `const'.
5496 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
5497 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
5498 `const' their input argument (`data' or `address').
5499 Adjust the corresponding macros to include `const' in casts.
5501 2000-11-03 Akim Demaille <akim@epita.fr>
5503 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
5504 s/PFILE1/BISON_HAIRY/.
5505 Adjust dependencies.
5507 2000-11-03 Akim Demaille <akim@epita.fr>
5509 For some reason, this was not applied.
5511 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
5512 `unlink': it's no longer used.
5514 2000-11-03 Akim Demaille <akim@epita.fr>
5516 * src/files.c (skeleton_find): New function, eved out of...
5517 (open_files, open_extra_files): here.
5519 2000-11-03 Akim Demaille <akim@epita.fr>
5523 * src/files.c (obstack_save): New function.
5524 (done): Rename as...
5525 (output_files): this.
5527 * src/main.c (main): Don't use `atexit' to register `done', since
5528 it no longer has to remove tmp files, just call `output_files'
5529 when there are no errors.
5531 2000-11-02 Akim Demaille <akim@epita.fr>
5533 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
5534 `unlink': it's no longer used.
5535 * src/files.h: Formatting changes.
5537 2000-11-02 Akim Demaille <akim@epita.fr>
5539 Remove the last uses of mktemp and unlink/delete.
5541 * src/files.c (fdefines, ftable): Removed.
5542 (defines_ostack, table_obstack): New.
5543 Adjust dependencies of the former into uses of the latter.
5544 * src/output.c (output_short_or_char_table, output_short_table):
5545 Convert to using obstacks.
5546 * src/reader.c (copy_comment2): Accept one FILE * and two
5548 (output_token_defines, reader_output_yylsp): Use obstacks.
5549 * src/system.h (obstack_fgrow3): New.
5551 2000-11-01 Akim Demaille <akim@epita.fr>
5553 Change each use of `fattrs' into a use of `attrs_obstack'.
5555 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
5556 * src/files.c (fattrs): Remove.
5557 (attrs_obstack): New.
5558 Adjust all dependencies.
5559 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
5561 2000-11-01 Akim Demaille <akim@epita.fr>
5564 Change each use of `faction' into a use of `action_obstack'.
5566 * lib/obstack.h, lib/obstack.c: New files.
5567 * src/files.c (faction): Remove.
5568 (action_obstack): New.
5569 Adjust all dependencies.
5571 2000-10-20 Akim Demaille <akim@epita.fr>
5573 * lib/quote.h (PARAMS): New macro. Use it.
5575 2000-10-16 Akim Demaille <akim@epita.fr>
5577 * src/output.c (output_short_or_char_table): New function.
5578 (output_short_table, output_token_translations): Use it.
5579 (goto_actions): Use output_short_table.
5581 2000-10-16 Akim Demaille <akim@epita.fr>
5583 * src/symtab.c (bucket_new): New function.
5586 * src/output.c (output_short_table): New argument to display the
5587 comment associated with the table.
5588 Adjust dependencies.
5589 (output_gram): Use it.
5590 (output_rule_data): Nicer output layout for YYTNAME.
5592 2000-10-16 Akim Demaille <akim@epita.fr>
5594 * src/lex.c (read_typename): New function.
5596 * src/reader.c (copy_dollar): Likewise.
5598 2000-10-16 Akim Demaille <akim@epita.fr>
5600 * src/reader.c (copy_comment2): Expect the input stream to be on
5601 the `/' which is suspected to open a comment, instead of being
5602 called after `//' or `/*' was read.
5603 (copy_comment, copy_definition, parse_union_decl, copy_action)
5604 (copy_guard): Adjust.
5606 2000-10-16 Akim Demaille <akim@epita.fr>
5608 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
5609 `read_signed_integer'.
5611 2000-10-16 Akim Demaille <akim@epita.fr>
5613 * src/reader.c (copy_dollar): New function.
5614 (copy_guard, copy_action): Use it.
5616 2000-10-16 Akim Demaille <akim@epita.fr>
5618 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
5619 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
5620 New files, from Fileutils 4.0.27.
5621 * src/main.c (printable_version): Remove.
5622 * src/lex.c, src/reader.c: Use `quote'.
5624 2000-10-04 Akim Demaille <akim@epita.fr>
5626 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
5628 2000-10-04 Akim Demaille <akim@epita.fr>
5630 * doc/bison.texinfo: Various typos spotted by Neil Booth.
5632 2000-10-04 Akim Demaille <akim@epita.fr>
5634 When a literal string is used to define two different tokens,
5635 `bison -v' segfaults.
5636 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
5638 * tests/regression.m4: New file.
5639 Include the core of the sample provided by Piotr Gackiewicz.
5640 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
5643 2000-10-04 Akim Demaille <akim@epita.fr>
5645 * src/reader.c (parse_expect_decl): Keep `count' within the size
5649 2000-10-02 Paul Eggert <eggert@twinsun.com>
5651 * bison.s1 (yyparse): Assign the default value
5652 unconditionally, to avoid a GCC warning and make the parser a
5655 2000-10-02 Akim Demaille <akim@epita.fr>
5657 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
5660 2000-10-02 Akim Demaille <akim@epita.fr>
5662 * src/derives.c, src/print.c, src/reduce.c: To ease the
5663 translation, move some `\n' out of the translated strings.
5665 2000-10-02 Akim Demaille <akim@epita.fr>
5667 The location tracking mechanism is precious for parse error
5668 messages. Nevertheless, it is enabled only when `@n' is used in
5669 the grammar, which is a different issue (you can use it in error
5670 message, but not in the grammar per se). Therefore, there should
5671 be another means to enable it.
5673 * src/getargs.c (getargs): Support `--locations'.
5675 * src/getargs.h (locationsflag): Export it.
5676 * src/lex.c (percent_table): Support `%locations'.
5677 * src/reader.c (yylsp_needed): Remove this variable, now replaced
5678 with `locationsflag'.
5679 * doc/bison.texinfo: Document `--locations' and `%locations'.
5681 * tests/calc.m4: Test it.
5683 For regularity of the names, replace each
5684 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
5685 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
5686 In addition replace each `flag' with `_flag'.
5688 2000-10-02 Akim Demaille <akim@epita.fr>
5690 Also test parse error messages, including with YYERROR_VERBOSE.
5692 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
5694 Use it to check the computations.
5695 Use it to check `nonassoc' is honored.
5696 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
5697 `--yyerror-verbose'.
5698 (_AT_CHECK_CALC): Adjust to this option.
5699 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
5701 2000-10-02 Akim Demaille <akim@epita.fr>
5703 Test also `--verbose', `--defines' and `--name-prefix'. Testing
5704 the latter demonstrates a flaw in the handling of non debugging
5705 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
5706 was used in order to simplify:
5722 unfortunately this leads to a CPP conflict when
5723 `--name-prefix=foo' is used since it produces `#define yydebug
5726 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
5727 (YYDPRINTF): New macro.
5729 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
5731 Also test `--verbose', `--defines' and `--name-prefix'.
5733 2000-10-02 Akim Demaille <akim@epita.fr>
5735 Improve the readability of the produced parsers.
5737 * src/bison.s1: Formatting changes.
5738 Improve the comment related to the `$' mark.
5739 (yydefault): Don't fall through to `yyresume': `goto' there.
5740 * src/output.c (output_parser): When the `$' is met, skip the end
5742 New variable, `number_of_dollar_signs', to check there's exactly
5743 one `$' in the parser skeleton.
5745 2000-10-02 Akim Demaille <akim@epita.fr>
5747 * lib/xstrdup.c: New file, from the fileutils.
5748 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
5749 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
5750 instead of strlen + xmalloc + strcpy.
5751 * src/symtab.c (copys): Remove, use xstrdup instead.
5753 2000-10-02 Akim Demaille <akim@epita.fr>
5755 * src/gram.h (associativity): New enum type which replaces the
5756 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
5757 `right_assoc', `left_assoc' and `non_assoc'.
5758 Adjust all dependencies.
5759 * src/reader.c: Formatting changes.
5760 (LTYPESTR): Don't define it, use it as a literal in
5761 `reader_output_yylsp'.
5762 * src/symtab.h (symbol_class): New enum type which replaces the
5763 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
5764 `sunknown', `stoken and `snterm'.
5766 2000-10-02 Akim Demaille <akim@epita.fr>
5768 * src/getargs.c (fixed_outfiles): Rename as...
5769 (yaccflag): for consistency and accuracy.
5770 Adjust dependencies.
5772 2000-10-02 Akim Demaille <akim@epita.fr>
5774 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
5775 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
5776 difficult and introduced a lot of core dump. It turns out that
5777 Bison used an implementation of `xmalloc' based on `calloc', and
5778 at various places it does depend upon the initialization to 0. I
5779 have not tried to isolate the pertinent places, and all the former
5780 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
5781 someone should address this issue.
5783 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
5784 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
5786 Adjust dependencies.
5787 * src/warshall.h: New file.
5790 2000-10-02 Akim Demaille <akim@epita.fr>
5792 Various anti-`extern in *.c' changes.
5794 * src/system.h: Include `assert.h'.
5796 2000-10-02 Akim Demaille <akim@epita.fr>
5798 * src/state.h (nstates, final_state, first_state, first_shift)
5799 (first_reduction): Move their exportation from here...
5800 * src/LR0.h: to here.
5801 Adjust dependencies.
5802 * src/getargs.c (statisticsflag): New variable.
5803 Add support for `--statistics'.
5804 Adjust dependencies.
5806 Remove a lot of now useless `extern' statements in most files.
5808 2000-10-02 Akim Demaille <akim@epita.fr>
5810 * src/LR0.h: New file.
5813 2000-10-02 Akim Demaille <akim@epita.fr>
5815 * src/print.h: New file.
5817 * src/print.c: Formatting and ordering changes.
5818 (verbose, terse): Replace with...
5819 (print_results): this new function.
5820 Adjust dependencies.
5822 2000-10-02 Akim Demaille <akim@epita.fr>
5824 * src/conflicts.c (conflict_report): New function.
5825 (conflict_log, verbose_conflict_log): Replace with...
5826 (print_conflicts): this function.
5827 Adjust dependencies.
5828 * src/conflicts.h: New file.
5829 Propagate its inclusion.
5831 2000-10-02 Akim Demaille <akim@epita.fr>
5833 * src/nullable.h: New file.
5834 Propagate its inclusion.
5835 * src/nullable.c: Formatting changes.
5837 2000-10-02 Akim Demaille <akim@epita.fr>
5839 * src/reduce.h: New file.
5840 Propagate its inclusion.
5841 * src/reduce.c: Topological sort and other formatting changes.
5842 (bool, TRUE, FALSE): Move their definition to...
5843 * src/system.h: here.
5845 2000-10-02 Akim Demaille <akim@epita.fr>
5847 * src/files.c: Formatting changes.
5848 (tryopen, tryclose, openfiles): Rename as...
5849 (xfopen, xfclose, open_files): this.
5850 (stringappend): static.
5851 * src/files.h: Complete the list of exported symbols.
5854 2000-10-02 Akim Demaille <akim@epita.fr>
5856 * src/reader.h: New file.
5857 Propagate its use instead of tedious list of `extern' and
5859 * src/reader.c: Formatting changes, topological sort,
5862 2000-10-02 Akim Demaille <akim@epita.fr>
5864 * src/lex.h: Prototype `lex.c' exported functions.
5865 * src/reader.c: Adjust.
5866 * src/lex.c: Formatting changes.
5867 (safegetc): Rename as...
5870 2000-10-02 Akim Demaille <akim@epita.fr>
5872 * src/lalr.h: New file.
5873 Propagate its inclusion instead of prototypes and `extern'.
5874 * src/lalr.c: Formatting changes, topological sorting etc.
5876 2000-10-02 Akim Demaille <akim@epita.fr>
5878 * src/output.c (token_actions): Introduce a temporary array,
5879 YYDEFACT, that makes it possible for this function to use
5882 2000-10-02 Akim Demaille <akim@epita.fr>
5884 `user_toknums' is output as a `short[]' in `output.c', while it is
5885 defined as a `int[]' in `reader.c'. For consistency with the
5886 other output tables, `user_toknums' is now defined as a table of
5889 * src/reader.c (user_toknums): Be a short table instead of an int
5891 Adjust dependencies.
5893 Factor the short table outputs.
5895 * src/output.c (output_short_table): New function.
5896 * src/output.c (output_gram, output_stos, output_rule_data)
5897 (output_base, output_table, output_check): Use it.
5899 2000-10-02 Akim Demaille <akim@epita.fr>
5901 * src/output.c (output): Topological sort of the functions, in
5902 order to get rid of the `static' prototypes.
5903 No longer use `register'.
5904 * src/output.h: New file.
5905 Propagate its inclusion in files explicitly prototyping functions
5908 2000-09-21 Akim Demaille <akim@epita.fr>
5910 * src/atgeneral.m4: Update from Autoconf.
5912 2000-09-21 Akim Demaille <akim@epita.fr>
5914 * src/closure.h: New file.
5915 * src/closure.c: Formatting changes, topological sort over the
5916 functions, use of closure.h.
5917 (initialize_closure, finalize_closure): Rename as...
5918 (new_closure, free_closure): these. Adjust dependencies.
5919 * src/LR0.c: Formatting changes, topological sort, use of
5921 (initialize_states): Rename as...
5923 * src/Makefile.am (noinst_HEADERS): Adjust.
5925 2000-09-20 Akim Demaille <akim@epita.fr>
5927 * src/acconfig.h: Don't protect config.h against multiple
5929 Don't define PARAMS.
5930 * src/system.h: Define PARAMS.
5931 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
5932 purpose of config.h. system.h must not try to fix wrong
5933 definitions in config.h.
5935 2000-09-20 Akim Demaille <akim@epita.fr>
5937 * src/derives.h: New file.
5938 * src/main.c, src/derives.h: Use it.
5940 * src/Makefile.am (noinst_HEADERS): Adjust.
5942 2000-09-20 Akim Demaille <akim@epita.fr>
5944 * tests/atgeneral.m4: Update from Autoconf.
5945 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
5946 (AT_CHECK_CALC): New macros.
5947 Use these macros to test bison with options `', `--raw',
5948 `--debug', `--yacc', `--yacc --debug'.
5950 2000-09-19 Akim Demaille <akim@epita.fr>
5952 * src/output.c: Formatting changes.
5953 * src/machine.h: Remove, leaving its contents in...
5954 * src/system.h: here.
5956 Adjust all dependencies on stdio.h and machine.h.
5957 * src/getargs.h: New file.
5958 Let all `extern' declarations about getargs.c be replaced with
5959 inclusion of `getargs.h'.
5960 * src/Makefile.am (noinst_HEADERS): Adjust.
5962 * tests/calc.m4 (yyin): Be initialized in main, not on the global
5964 (yyerror): Returns void, not int.
5965 * doc/bison.texinfo: Formatting changes.
5967 2000-09-19 Akim Demaille <akim@epita.fr>
5969 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
5972 2000-09-18 Akim Demaille <akim@epita.fr>
5974 * configure.in: Append WARNING_CFLAGS to CFLAGS.
5975 * src/Makefile.am (INCLUDES): Don't.
5976 Be ready to fetch headers in lib/.
5978 2000-09-18 Akim Demaille <akim@epita.fr>
5980 * doc/bison.texinfo: Update the copyright.
5981 ANSIfy and GNUify the examples.
5982 Remove the old menu.
5984 2000-09-18 Akim Demaille <akim@epita.fr>
5986 First set of tests: use the `calc' example from the documentation.
5988 * src/bison.s1 (yyparse): Condition the code using `yytname' which
5989 is defined only when YYDEBUG is.
5990 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
5991 * src/files.c (tryopen, tryclose): Formatting changes.
5992 Move to the top and be static.
5993 * src/reader.c (read_signed_integer): Likewise.
5994 * tests/calc.m4: New file.
5995 * Makefile.am, suite.m4: Adjust.
5996 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
5998 2000-09-18 Akim Demaille <akim@epita.fr>
6000 Add support for an Autotest test suite for Bison.
6002 * m4/m4.m4, m4/atconfig.m4: New files.
6003 * m4/Makefile.am (EXTRA_DIST): Adjust.
6004 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
6006 * src/getargs.c: Display a more standard --version message.
6007 * src/reader.c (reader): Formatting changes.
6008 No longer depend upon VERSION_STRING.
6009 * configure.in: No longer use `dnl'.
6010 Set up the test suite and the new directory `tests/.
6011 (VERSION_STRING): Remove.
6013 2000-04-14 Akim Demaille <akim@epita.fr>
6015 * src/reader.c (copy_comment2): New function, same as former
6016 `copy_comment', but outputs into two FILE *.
6017 (copy_comment): Use it.
6018 (parse_union_decl): Use it.
6019 (get_type, parse_start_decl): Use the same `invalid' message.
6020 (parse_start_decl, parse_union_decl): Use the same `multiple'
6022 (parse_union_decl, copy_guard, copy_action): Use the same
6023 `unmatched' message.
6024 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
6026 2000-03-31 Akim Demaille <akim@epita.fr>
6028 * src/files.c (tryopen, tryclose): Move to the top.
6031 2000-03-31 Akim Demaille <akim@epita.fr>
6033 * src/main.c (main): Don't call `done', exit does it.
6035 2000-03-31 Akim Demaille <akim@epita.fr>
6037 * allocate.c: s/return (foo)/return foo/.
6040 * output.c: Likewise.
6041 * reader.c: Likewise.
6042 * symtab.c: Likewise.
6043 * vmsgetargs.c: Likewise.
6045 2000-03-31 Akim Demaille <akim@epita.fr>
6047 Clean up the error reporting functions.
6049 * src/report.c: New file.
6050 * src/report.h: Likewise.
6051 * src/Makefile.am: Adjust.
6052 * m4/error.m4: New file.
6053 * m4/Makefile.am: Adjust.
6054 * configure.in (jm_PREREQ_ERROR): Call it.
6055 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
6057 (fatal, fatals): Remove. All callers use complain.c::fatal.
6058 (warn, warni, warns, warnss, warnss): Remove. All callers use
6059 complain.c::complain.
6060 (toomany): Remove, use fatal instead.
6061 * src/files.c (done): No argument, use complain_message_count.
6062 * src/main.c (main): Register `done' to `atexit'.
6064 * src/getargs.c (usage): More `fputs', less `fprintf'.
6066 2000-03-28 Akim Demaille <akim@epita.fr>
6068 * lib/: New directory.
6069 * Makefile.am (SUBDIRS): Adjust.
6070 * configure.in: Adjust.
6071 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
6073 * src/alloca.c: Moved to lib/.
6074 * src/getopt.c: Likewise.
6075 * src/getopt1.c: Likewise.
6076 * src/getopt.h: Likewise.
6077 * src/ansi2knr.c: Likewise.
6078 * src/ansi2knr.1: Likewise.
6079 * src/Makefile.am: Adjust.
6080 * lib/Makefile.am: New file.
6082 2000-03-28 Akim Demaille <akim@epita.fr>
6084 * src/getargs.c (usage): Refresh the help message.
6086 2000-03-17 Akim Demaille <akim@epita.fr>
6088 * src/getopt1.c: Updated from textutils 2.0e
6089 * src/getopt.c: Likewise.
6090 * src/getopt.h: Likewise.
6092 2000-03-17 Akim Demaille <akim@epita.fr>
6094 * src/Makefile.am (bison.simple): Fix the awk program: quote only
6095 the file name, not the whole `#line LINE FILE'.
6097 2000-03-17 Akim Demaille <akim@epita.fr>
6099 On syntax errors, report the token on which we choked.
6101 * src/bison.s1 (yyparse): In the label yyerrlab, when
6102 YYERROR_VERBOSE, add yychar in msg.
6104 2000-03-17 Akim Demaille <akim@epita.fr>
6106 * src/reader.c (copy_at): New function.
6107 (copy_guard): Use it.
6108 (copy_action): Use it.
6110 2000-03-17 Akim Demaille <akim@epita.fr>
6112 Be kind to translators, save some useless translations.
6114 * src/main.c (banner): New function.
6115 (fatal_banner): Use it.
6116 (warn_banner): Use it.
6118 2000-03-17 Akim Demaille <akim@epita.fr>
6120 * src/reader.c (copy_definition): Use copy_string and
6121 copy_comment. Removed now unused `match', `ended',
6123 (copy_comment, copy_string): Moved, to be visible from
6126 2000-03-17 Akim Demaille <akim@epita.fr>
6128 * src/reader.c (copy_string): Declare `static inline'. No
6129 problems with inline, since it is checked by configure.
6130 (copy_comment): Likewise.
6132 2000-03-17 Akim Demaille <akim@epita.fr>
6134 * src/reader.c (packsymbols): Formatting changes.
6136 2000-03-17 Akim Demaille <akim@epita.fr>
6138 * src/reader.c (copy_comment): New function, factored out from:
6139 (copy_action): Use it. Removed now unused `match', `ended',
6141 (copy_guard): Likewise.
6143 2000-03-17 Akim Demaille <akim@epita.fr>
6145 * src/reader.c (copy_string): New function, factored out from:
6146 (copy_action): Use it.
6147 (copy_guard): Likewise.
6149 2000-03-17 Akim Demaille <akim@epita.fr>
6151 Change the handling of @s so that they behave exactly like $s.
6152 There is now a pseudo variable @$ (readble and writable), location
6153 of the lhs of the rule (by default ranging from the location of
6154 the first symbol of the rhs, to the location of the last symbol,
6155 or, if the rhs is empty, YYLLOC).
6157 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
6159 (yyparse): When providing a default semantic action, provide a
6160 default location action.
6161 (after the $): No longer change `*YYLSP', just stack YYLOC the
6162 same way you stack YYVAL.
6163 * src/reader.c (read_declarations): Use warns.
6164 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
6165 (copy_action, case '@'): Likewise.
6166 Use a standard error message, to save useless work from
6169 2000-03-17 Akim Demaille <akim@epita.fr>
6171 * src/bison.s1: Formatting and cosmetics changes.
6172 * src/reader.c: Likewise.
6173 Update the Copyright notice.
6175 2000-03-17 Akim Demaille <akim@epita.fr>
6177 * src/bison.s1 (#line): All set to `#line' only, since the
6178 Makefile now handles them.
6180 2000-03-16 Akim Demaille <akim@epita.fr>
6182 * src/output.c (output_rule_data): Output the documentation of
6184 (Copyright notice): Update.
6187 2000-03-16 Akim Demaille <akim@epita.fr>
6189 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
6190 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
6191 One `#if YYDEBUG' remains, since it uses variables which are
6192 defined only if `YYDEBUG != 0'.
6194 2000-03-16 Akim Demaille <akim@epita.fr>
6196 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
6197 and related variables so that the similarities are highlighted.
6199 2000-03-16 Akim Demaille <akim@epita.fr>
6201 * src/bison.s1: Properly indent CPP directives.
6203 2000-03-16 Akim Demaille <akim@epita.fr>
6205 * src/bison.s1: Properly indent the `alloca' CPP section.
6207 2000-03-16 Akim Demaille <akim@epita.fr>
6209 Do not hard code values of directories in `configure.in'.
6210 Update the `configure' tool chain.
6212 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
6214 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
6215 (AC_OUTPUT): Add m4/Makefile.
6216 Bump to bison 1.28a, 1.29 has never been released.
6217 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
6218 handled via src/Makefile.am.
6219 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
6220 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
6222 * Makefile.am (SUBDIRS): Add m4.
6223 (ACLOCAL_AM_FLAGS): New variable.
6224 (AUTOMAKE_OPTIONS): Add check-news.
6225 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
6226 the proper line number and file name.
6227 (DEFS): Propagate the location of bison library files and of the
6229 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
6231 * acinclude.m4: Remove, replaced by the directory m4.
6232 * m4/Makefile.am (EXTRA_DIST): New variable.
6233 * m4/gettext.m4: New file, from the fileutils.
6234 * m4/lcmessage.m4: Likewise
6235 * m4/progtest.m4: Likewise.
6236 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
6238 2000-03-10 Akim Demaille <akim@epita.fr>
6241 Formatting changes of various comments.
6242 Respect the GNU coding standards at various places.
6243 Don't use `_()' when no translation is needed.
6245 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6248 OS/2 honors TMPDIR environment variable.
6250 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6252 * doc/bison.texinfo: Tweaked spelling and grammar.
6254 Removed reference to price of printed copy.
6255 Mention BISON_SIMPLE and BISON_HAIRY.
6257 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6259 * configure.in, NEWS:
6260 Bison 1.29 released.
6262 1999-10-27 Jesse Thilo <jthilo@gnu.org>
6264 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
6265 Added reference card.
6267 1999-07-26 Jesse Thilo <jthilo@gnu.org>
6269 * po/ru.po: Added Russian translation.
6271 1999-07-26 Jesse Thilo <jthilo@gnu.org>
6273 * configure.in: Added Russian translation.
6275 1999-07-06 Jesse Thilo <jthilo@gnu.org>
6277 * configure.in, NEWS, README:
6278 Released version 1.28.
6280 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6283 Squashed redefinition warning on some systems.
6285 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
6286 Have configure build version string instead of relying on ANSI string
6289 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6291 * po/POTFILES.in: Got rid of version.c.
6293 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6295 * acconfig.h, configure.in:
6296 Have configure build version string instead of relying on ANSI string
6299 1999-06-08 Jesse Thilo <jthilo@gnu.org>
6302 Dropped mention of `+' for long-named options.
6304 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6306 * src/files.c: Added <unistd.h> for unlink().
6308 * src/Makefile.am, src/system.h:
6311 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6313 * README: Added a FAQ list.
6315 * configure.in, acconfig.h:
6318 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6320 * doc/FAQ, doc/Makefile.am:
6323 1999-05-19 Jesse Thilo <jthilo@gnu.org>
6325 * src/alloc.h, src/symtab.h, src/version.c:
6326 Protected inclusion of "config.h" with HAVE_CONFIG_H.
6328 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6330 * src/.cvsignore, src/Makefile.am:
6331 Reorganized: sources in `src', documentation in `doc'.
6333 * src/lex.c (literalchar):
6334 fixed the code for escaping double quotes (thanks
6337 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6339 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
6340 Adjusted paths to reflect directory reorganization.
6342 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6344 * doc/.cvsignore, doc/Makefile.am:
6345 Reorganized: sources in `src', documentation in `doc'.
6347 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6350 Updated AC_INIT file to reflect directory reorganization.
6352 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
6353 Reorganized: sources in `src', documentation in `doc'.
6355 1999-04-13 Jesse Thilo <jthilo@gnu.org>
6358 Don't declare calloc() and realloc() if not necessary.
6360 1999-04-13 Jesse Thilo <jthilo@gnu.org>
6362 * configure.in, acconfig.h, acinclude.m4:
6363 Don't declare calloc() and realloc() if not necessary.
6365 1999-03-23 Jesse Thilo <jthilo@gnu.org>
6367 * po/.cvsignore: Added i18n support.
6369 1999-03-23 Jesse Thilo <jthilo@gnu.org>
6371 * acconfig.h, configure.in, Makefile.am:
6374 1999-03-22 Jesse Thilo <jthilo@gnu.org>
6376 * src/bison.s1: Fixed #line numbers.
6378 1999-03-15 Jesse Thilo <jthilo@gnu.org>
6380 * po/es.po, po/fr.po, po/nl.po, po/de.po:
6381 Added PO files from Translation Project.
6383 1999-03-03 Jesse Thilo <jthilo@gnu.org>
6386 Added support for non-ANSI compilers (ansi2knr).
6388 1999-02-16 Jesse Thilo <jthilo@gnu.org>
6390 * configure.in: Bumped version number to 1.27.
6393 Added `bison.simple' to list of files removed by `make distclean'.
6395 1999-02-12 Jesse Thilo <jthilo@gnu.org>
6397 * src/files.c, src/files.h:
6398 Defined locations of parser files in config.h instead of Makefile.
6400 1999-02-12 Jesse Thilo <jthilo@gnu.org>
6402 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
6403 Defined locations of parser files in config.h instead of Makefile.
6405 1999-02-09 Jesse Thilo <jthilo@gnu.org>
6408 Removed inappropriate use of $< macro.
6410 1999-02-05 Jesse Thilo <jthilo@gnu.org>
6412 * po/Makefile.in.in, po/POTFILES.in:
6413 Add `po' directory skeleton.
6415 1999-01-27 Jesse Thilo <jthilo@gnu.org>
6417 * README: Document help-bison list.
6419 * configure.in: Add check for mkstemp().
6421 1999-01-20 Jesse Thilo <jthilo@gnu.org>
6423 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
6424 Hush a few compiler warnings.
6427 Add tryclose(), which verifies that fclose was successful.
6428 Hush a couple of compiler warnings.
6430 1999-01-20 Jesse Thilo <jthilo@gnu.org>
6432 * Makefile.am, OChangeLog:
6433 ChangeLog is now automatically generated. Include the old version as
6436 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6438 * 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:
6441 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6443 * doc/bison.texinfo: Fix formatting glitch.
6445 * doc/bison.texinfo: Update FSF address.
6447 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6449 * acconfig.h: Update FSF address.
6451 1999-01-08 Jesse Thilo <jthilo@gnu.org>
6454 Don't define PACKAGE here, since config.h defines it.
6456 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6458 * src/reader.c: Update copyright date.
6461 Ditch sprintf to statically-sized buffers in fatal/warn functions in
6462 favor of output directly to stderr (avoids buffer overruns).
6464 * src/reader.c: Some checks for premature EOF.
6466 * 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:
6467 Use prototypes if the compiler understands them.
6469 * src/files.c: Honor TMPDIR on Unix hosts.
6470 Use prototypes if the compiler understands them.
6473 Fix a couple of buffer overrun bugs.
6474 Use prototypes if the compiler understands them.
6476 * src/system.h: Include unistd.h and ctype.h.
6477 Use #ifdef instead of #if for NLS symbols.
6479 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6481 * doc/bison.texinfo:
6482 Delete comment "consider using @set for edition number, etc..." since
6483 we now are doing so.
6485 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6488 Use prototypes if the compiler understands them.
6490 * NEWS: Document 1.26 highlights.
6492 * Makefile.am: Require Automake 1.3 or later.
6495 Use prototypes if the compiler understands them.
6497 1998-12-29 Jesse Thilo <jthilo@gnu.org>
6500 Use VERSION symbol from automake for version number.
6502 1998-12-29 Jesse Thilo <jthilo@gnu.org>
6504 * acconfig.h, configure.in, version.cin:
6505 Use VERSION symbol from automake for version number.
6507 1998-11-28 Jesse Thilo <jthilo@gnu.org>
6510 Distribute original version of simple parser (bison.s1), not built
6511 version (bison.simple).
6513 1998-11-28 Jesse Thilo <jthilo@gnu.org>
6515 * doc/bison.texinfo: Add info dir entry.
6517 * doc/bison.texinfo:
6518 Let automake put version number into documentation.
6520 1998-11-26 Jesse Thilo <jthilo@gnu.org>
6522 * src/bison.cld, src/build.com, src/vmshlp.mar:
6523 Add non-RCS files from /gd/gnu/bison.
6525 1998-11-26 Jesse Thilo <jthilo@gnu.org>
6528 Document the BISON_HAIRY and BISON_SIMPLE variables.
6530 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6532 * src/version.c: Build version.c automatically.
6535 Fix token numbering (used to start at 258, not 257).
6537 * src/system.h: Include config.h.
6539 * src/getargs.c: Update bug report address.
6541 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
6542 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
6544 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6547 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
6549 * configure.in, version.cin:
6550 Build version.c automatically.
6552 * AUTHORS: Add AUTHORS file.
6554 * README: Update bug report address.
6557 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
6559 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
6562 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6564 * doc/bison.texinfo: Clean up some formatting.
6566 1998-05-05 Richard Stallman <rms@gnu.org>
6568 * doc/bison.texinfo:
6569 Explain better why to make a pure parser.
6571 1998-01-05 Richard Stallman <rms@gnu.org>
6573 * src/files.c (openfiles):
6574 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
6575 find a temporary directory, if possible. Do not unlink files while
6578 1997-08-25 Richard Stallman <rms@gnu.org>
6580 * src/reader.c (stack_offset;):
6581 Change some warni to warns.
6583 * src/lex.c (literalchar): Use warns, not warni.
6585 1997-06-28 Richard Stallman <rms@gnu.org>
6587 * src/bison.s1: Add a Bison version comment.
6589 * src/main.c (fatal, warn, berror):
6592 1997-06-28 Richard Stallman <rms@gnu.org>
6594 * Makefile.in (bison_version): New variable.
6595 (dist): Use that variable.
6596 (bison.s1): Substitute the Bison version into bison.simple.
6598 * bison.simple: Add a Bison version comment.
6600 1997-06-18 Richard Stallman <rms@gnu.org>
6602 * src/main.c (fatal, warn, berror):
6603 Make error messages standard.
6604 (toomany): Improve error message text.
6606 * 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:
6607 new.h renamed to alloc.h.
6609 1997-06-18 Richard Stallman <rms@gnu.org>
6611 * Makefile.in: new.h renamed to alloc.h.
6613 1997-05-24 Richard Stallman <rms@gnu.org>
6615 * src/lex.c (literalchar):
6616 Fix the code for escaping \, " and '.
6618 (lex): Avoid trouble when there are many chars
6619 to discard in a char literal with just several chars in it.
6621 1997-05-17 Richard Stallman <rms@gnu.org>
6624 Use malloc, if using alloca is troublesome.
6625 (YYSTACK_USE_ALLOCA): New flag macro.
6626 Define it for some systems and compilers.
6627 (YYSTACK_ALLOC): New macro.
6628 (yyparse): Use YYSTACK_ALLOC to allocate stack.
6629 If it was malloc'd, free it.
6631 1997-05-17 Richard Stallman <rms@gnu.org>
6634 Use malloc, if using alloca is troublesome.
6635 (YYSTACK_USE_ALLOCA): New flag macro.
6636 Define it for some systems and compilers.
6637 (YYSTACK_ALLOC): New macro.
6638 (yyparse): Use YYSTACK_ALLOC to allocate stack.
6639 If it was malloc'd, free it.
6641 1997-04-23 Richard Stallman <rms@gnu.org>
6644 (alloca) [__hpux]: Always define as __builtin_alloca.
6646 1997-04-23 Richard Stallman <rms@gnu.org>
6649 (alloca) [__hpux]: Always define as __builtin_alloca.
6651 1997-04-22 Richard Stallman <rms@gnu.org>
6654 [__hpux]: Include alloca.h (right for HPUX 10)
6655 instead of declaring alloca (right for HPUX 9).
6657 * src/bison.s1 (__yy_memcpy):
6658 Declare arg `count' as unsigned int.
6659 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
6661 1997-04-22 Richard Stallman <rms@gnu.org>
6664 [__hpux]: Include alloca.h (right for HPUX 10)
6665 instead of declaring alloca (right for HPUX 9).
6667 * bison.simple (__yy_memcpy):
6668 Declare arg `count' as unsigned int.
6669 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
6671 1997-01-03 Richard Stallman <rms@gnu.org>
6673 * src/allocate.c: [__STDC__ or _MSC_VER]:
6674 Declare calloc and realloc to return void *.
6676 1997-01-02 Richard Stallman <rms@gnu.org>
6679 [_MSC_VER]: Include stdlib.h and process.h.
6680 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
6682 * src/main.c (main): Return FAILURE as a value.
6683 (printable_version): Declare arg as int, not char.
6685 1997-01-02 Richard Stallman <rms@gnu.org>
6687 * Makefile.in (dist):
6688 Explicitly check for symlinks, and copy them.
6690 1996-12-19 Richard Stallman <rms@gnu.org>
6693 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
6695 1996-12-18 Paul Eggert <eggert@gnu.org>
6697 * src/bison.s1 (yyparse):
6698 If __GNUC__ and YYPARSE_PARAM are both defined,
6699 declare yyparse to have a void * argument.
6701 1996-12-18 Paul Eggert <eggert@gnu.org>
6703 * bison.simple (yyparse):
6704 If __GNUC__ and YYPARSE_PARAM are both defined,
6705 declare yyparse to have a void * argument.
6707 1996-12-17 Richard Stallman <rms@gnu.org>
6709 * src/reduce.c (nbits): Add some casts.
6711 1996-08-12 Richard Stallman <rms@gnu.org>
6713 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
6715 1996-08-12 Richard Stallman <rms@gnu.org>
6717 * bison.simple: Test _MSDOS as well as _MSDOS_.
6719 1996-07-31 Richard Stallman <rms@gnu.org>
6722 [__sun && __i386]: Include alloca.h.
6724 1996-07-31 Richard Stallman <rms@gnu.org>
6727 [__sun && __i386]: Include alloca.h.
6729 1996-07-30 Richard Stallman <rms@gnu.org>
6731 * src/bison.s1: Comment change.
6733 * src/bison.s1: Test _MSDOS_, not MSDOS.
6735 1996-07-30 Richard Stallman <rms@gnu.org>
6737 * bison.simple: Comment change.
6739 * bison.simple: Test _MSDOS_, not MSDOS.
6741 1996-06-01 Richard Stallman <rms@gnu.org>
6743 * 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:
6744 Insert `_' macro around many string constants.
6747 Insert `_' macro around many string constants.
6749 (main): Call setlocale, bindtextdomain and textdomain.
6751 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
6752 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
6753 [ENABLE_NLS]: Include libintl.h.
6754 [ENABLE_NLS] (gettext): Define.
6755 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
6756 (N_, PACKAGE, LOCALEDIR): New macros.
6758 1996-06-01 Richard Stallman <rms@gnu.org>
6760 * POTFILES.in: New file.
6762 * Makefile.in (allocate.o):
6763 Define target explicitly.
6765 * Makefile.in (CFLAGS): Set to @CFLAGS@.
6766 (LDFLAGS): Set to @LDFLAGS@.
6767 (configure): Run autoconf only if preceding `cd' succeeds.
6768 (bison.s1): Redirect output to temporary file then move the
6769 temporary to the target, rather than redirecting directly to bison.s1.
6770 (clean): Remove config.status and config.log.
6771 (distclean): Don't remove config.status here.
6773 1996-05-12 Richard Stallman <rms@gnu.org>
6776 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6778 1996-05-12 Richard Stallman <rms@gnu.org>
6781 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6783 1996-05-11 Richard Stallman <rms@gnu.org>
6785 * src/bison.s1 (__yy_memcpy):
6786 Really reorder the args, as was supposedly done on Feb 14 1995.
6787 (yyparse): Calls changed accordingly.
6789 1996-05-11 Richard Stallman <rms@gnu.org>
6791 * Makefile.in (dist): Don't use $(srcdir).
6793 * bison.simple (__yy_memcpy):
6794 Really reorder the args, as was supposedly done on Feb 14 1995.
6795 (yyparse): Calls changed accordingly.
6797 1996-01-27 Richard Stallman <rms@gnu.org>
6799 * src/output.c (output_rule_data):
6800 Test YYERROR_VERBOSE in the conditional
6801 around the definition of ttyname.
6803 1995-12-29 Richard Stallman <rms@gnu.org>
6806 Fix line numbers in #line commands.
6808 1995-12-29 Richard Stallman <rms@gnu.org>
6811 Fix line numbers in #line commands.
6813 1995-12-27 Richard Stallman <rms@gnu.org>
6815 * src/bison.s1 (YYPARSE_PARAM_DECL):
6816 In C++, make it always null.
6817 (YYPARSE_PARAM_ARG): New macro.
6818 (yyparse): Use YYPARSE_PARAM_ARG.
6820 1995-12-27 Richard Stallman <rms@gnu.org>
6822 * bison.simple (YYPARSE_PARAM_DECL):
6823 In C++, make it always null.
6824 (YYPARSE_PARAM_ARG): New macro.
6825 (yyparse): Use YYPARSE_PARAM_ARG.
6827 1995-11-29 Richard Stallman <rms@gnu.org>
6829 * doc/bison.texinfo:
6830 Describe literal string tokens, %raw, %no_lines, %token_table.
6832 1995-11-29 Daniel Hagerty <hag@gnu.org>
6834 * doc/bison.texinfo: Fixed update date
6836 1995-10-16 Richard Stallman <rms@gnu.org>
6838 * src/version.c: Version 1.25.
6840 1995-10-16 Richard Stallman <rms@gnu.org>
6842 * NEWS: *** empty log message ***
6844 1995-10-16 Richard Stallman <rms@gnu.org>
6846 * doc/bison.1, doc/bison.rnh:
6849 1995-10-15 Richard Stallman <rms@gnu.org>
6851 * src/vmsgetargs.c, src/getargs.c:
6852 Added -n, -k, and -raw switches.
6853 (noparserflag, toknumflag, rawtoknumflag): New variables.
6855 * src/symtab.h (SALIAS):
6856 New #define for adding aliases to %token.
6857 (struct bucket): Added `alias' field.
6859 * src/reduce.c (reduce_grammar):
6860 Revise error message.
6861 (print_notices): Remove final `.' from error message.
6863 * src/reader.c (reader_output_yylsp):
6865 (readgram): Use `#if 0' around code that accepted %command
6866 inside grammar rules: The documentation doesn't allow it,
6867 and it will fail since the %command processors scan for the next %.
6868 (parse_token_decl): Extended the %token
6869 declaration to allow a multi-character symbol as an alias.
6870 (parse_thong_decl): New function.
6871 (read_declarations): Added %thong declarations.
6872 (read_declarations): Handle NOOP to deal with allowing
6873 % declarations as another means to specify the flags.
6874 (readgram): Allow %prec prior to semantics embedded in a rule.
6875 (skip_to_char, read_declarations, copy_definition)
6876 (parse_token_decl, parse_start_decl, parse_type_decl)
6877 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
6878 (get_type_name, copy_guard, copy_action, readgram)
6879 (get_type, packsymbols): Revised most error messages.
6880 Changed `fatal' to `warnxxx' to avoid aborting for error.
6881 Revised and use multiple warnxxx functions to avoid using VARARGS1.
6882 (read_declarations): Improve the error message for
6883 an invalid character. Do not abort.
6884 (read_declarations, copy_guard, copy_action): Use
6885 printable_version to avoid unprintable characters in printed output.
6886 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
6887 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
6888 Allow the type of a non-terminal can be given
6889 more than once, as long as all specifications give the same type.
6892 (output_headers, output_trailers, output, output_gram)
6893 (output_rule_data): Implement noparserflag variable.
6894 Implement toknumflag variable.
6895 (output): Call reader_output_yylsp to output LTYPESTR.
6897 * src/main.c (main):
6898 If reader sees an error, don't process the grammar.
6899 (fatals): Updated to not use VARARGS1.
6900 (printable_version, int_to_string, warn, warni, warns, warnss)
6901 (warnsss): New error reporting functions. Avoid abort for error.
6904 Added THONG and NOOP for alias processing.
6905 Added SETOPT for the new code that allows setting options with %flags.
6908 Include getopt.h. Add some extern decls.
6909 (safegetc): New function to deal with EOF gracefully.
6910 (literalchar); new function to deal with reading \ escapes.
6911 (lex): Use literalchar.
6912 (lex): Implemented "..." tokens.
6913 (literalchar, lex, parse_percent_token): Made tokenbuffer
6914 always contain the token. This includes growing the token
6915 buffer while reading an integer.
6916 (parse_percent_token): Replaced if-else statement with percent_table.
6917 (parse_percent_token): Added % declarations as another
6918 way to specify the flags -n, -l, and -r. Also added hooks for
6919 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
6920 major changes to files.c.
6921 (lex) Retain in the incoming stream a character following
6923 (skip_white_space, lex): Revised most error messages
6924 and changed fatal to warn to avoid aborting.
6925 (percent_table): Added %thong declarations.
6927 * src/gram.h: Comment changes.
6929 * src/files.c (openfiles, open_extra_files, done):
6931 and actfile file. Handle noparserflag. Both for -n switch.
6933 * src/conflicts.c (resolve_sr_conflict):
6934 Remove use of alloca.
6936 1995-06-01 Jim Meyering <meyering@gnu.org>
6938 * doc/bison.texinfo: *** empty log message ***
6940 1995-05-06 Richard Stallman <rms@gnu.org>
6942 * src/bison.s1: Comment change.
6944 1995-05-06 Richard Stallman <rms@gnu.org>
6946 * bison.simple: Comment change.
6948 1995-05-03 Richard Stallman <rms@gnu.org>
6950 * src/version.c: Version now 1.24.
6952 * src/bison.s1: Change distribution terms.
6954 * src/version.c: Version now 1.23.
6956 1995-05-03 Richard Stallman <rms@gnu.org>
6958 * doc/bison.texinfo:
6959 Rewrite "Conditions for Using Bison".
6960 Update version to 1.24.
6962 1995-05-03 Richard Stallman <rms@gnu.org>
6964 * bison.simple: Change distribution terms.
6966 1995-02-23 Richard Stallman <rms@gnu.org>
6968 * src/files.c: Test __VMS_POSIX as well as VMS.
6970 1995-02-14 Jim Meyering <meyering@gnu.org>
6972 * src/bison.s1 (__yy_memcpy):
6973 Renamed from __yy_bcopy to avoid
6974 confusion. Reverse FROM and TO arguments to be consistent with
6977 1995-02-14 Jim Meyering <meyering@gnu.org>
6979 * bison.simple (__yy_memcpy):
6980 Renamed from __yy_bcopy to avoid
6981 confusion. Reverse FROM and TO arguments to be consistent with
6984 1994-11-10 David J. MacKenzie <djm@gnu.org>
6990 * Makefile.in (DISTFILES): Include NEWS.
6992 * Makefile.in (DISTFILES):
6993 Include install-sh, not install.sh.
6995 * configure.in: Update to Autoconf v2 macro names.
6997 1994-10-05 David J. MacKenzie <djm@gnu.org>
6999 * Makefile.in: fix typo
7001 * Makefile.in (prefix, exec_prefix):
7002 Let configure set them.
7004 1994-09-28 David J. MacKenzie <djm@gnu.org>
7006 * Makefile.in: Set datadir to $(prefix)/share.
7008 1994-09-15 Richard Stallman <rms@gnu.org>
7011 Update copyright notice and GPL version.
7013 1994-09-15 Richard Stallman <rms@gnu.org>
7016 Update copyright notice and GPL version.
7018 1994-07-12 Richard Stallman <rms@gnu.org>
7020 * src/reduce.c, src/reader.c:
7023 1994-05-05 David J. MacKenzie <djm@gnu.org>
7025 * Makefile.in: entered into RCS
7027 1994-03-26 Richard Stallman <rms@gnu.org>
7029 * src/bison.s1: entered into RCS
7031 1994-03-26 Richard Stallman <rms@gnu.org>
7033 * bison.simple: entered into RCS
7035 1994-03-25 Richard Stallman <rms@gnu.org>
7037 * src/main.c: entered into RCS
7039 1994-03-24 Richard Stallman <rms@gnu.org>
7041 * src/conflicts.c: entered into RCS
7043 1994-01-02 Richard Stallman <rms@gnu.org>
7045 * Makefile.in: *** empty log message ***
7047 1993-11-21 Richard Stallman <rms@gnu.org>
7049 * src/bison.s1: *** empty log message ***
7051 1993-11-21 Richard Stallman <rms@gnu.org>
7053 * doc/bison.texinfo: entered into RCS
7055 * doc/bison.texinfo: *** empty log message ***
7057 1993-11-21 Richard Stallman <rms@gnu.org>
7059 * bison.simple: *** empty log message ***
7061 1993-10-25 David J. MacKenzie <djm@gnu.org>
7063 * doc/bison.texinfo: *** empty log message ***
7065 1993-10-19 Richard Stallman <rms@gnu.org>
7067 * src/bison.s1: *** empty log message ***
7069 1993-10-19 Richard Stallman <rms@gnu.org>
7071 * bison.simple: *** empty log message ***
7073 1993-10-14 Richard Stallman <rms@gnu.org>
7075 * src/bison.s1: *** empty log message ***
7077 1993-10-14 Richard Stallman <rms@gnu.org>
7079 * bison.simple: *** empty log message ***
7081 1993-09-14 David J. MacKenzie <djm@gnu.org>
7083 * doc/bison.texinfo: *** empty log message ***
7085 1993-09-13 Noah Friedman <friedman@gnu.org>
7087 * Makefile.in: *** empty log message ***
7089 1993-09-10 Richard Stallman <rms@gnu.org>
7091 * src/conflicts.c: *** empty log message ***
7093 * src/system.h: entered into RCS
7095 1993-09-10 Richard Stallman <rms@gnu.org>
7097 * doc/bison.1: entered into RCS
7099 1993-09-06 Noah Friedman <friedman@gnu.org>
7101 * src/version.c: entered into RCS
7103 1993-09-06 Noah Friedman <friedman@gnu.org>
7105 * Makefile.in: *** empty log message ***
7107 1993-07-30 David J. MacKenzie <djm@gnu.org>
7109 * Makefile.in: *** empty log message ***
7111 1993-07-24 Richard Stallman <rms@gnu.org>
7113 * src/bison.s1: *** empty log message ***
7115 1993-07-24 Richard Stallman <rms@gnu.org>
7117 * bison.simple: *** empty log message ***
7119 1993-07-08 David J. MacKenzie <djm@gnu.org>
7121 * Makefile.in: *** empty log message ***
7123 1993-07-04 Richard Stallman <rms@gnu.org>
7125 * src/bison.s1: *** empty log message ***
7127 1993-07-04 Richard Stallman <rms@gnu.org>
7129 * bison.simple: *** empty log message ***
7131 1993-06-26 David J. MacKenzie <djm@gnu.org>
7133 * src/getargs.c: entered into RCS
7135 1993-06-26 David J. MacKenzie <djm@gnu.org>
7137 * doc/bison.texinfo: *** empty log message ***
7139 * doc/bison.1: New file.
7141 1993-06-25 Richard Stallman <rms@gnu.org>
7143 * src/getargs.c: New file.
7145 1993-06-16 Richard Stallman <rms@gnu.org>
7147 * src/bison.s1: *** empty log message ***
7149 1993-06-16 Richard Stallman <rms@gnu.org>
7151 * bison.simple: *** empty log message ***
7153 1993-06-03 Richard Stallman <rms@gnu.org>
7155 * src/bison.s1: New file.
7157 1993-06-03 Richard Stallman <rms@gnu.org>
7159 * doc/bison.texinfo: *** empty log message ***
7161 1993-06-03 Richard Stallman <rms@gnu.org>
7163 * bison.simple: New file.
7165 1993-05-19 Richard Stallman <rms@gnu.org>
7167 * doc/bison.texinfo: New file.
7169 1993-05-07 Noah Friedman <friedman@gnu.org>
7171 * Makefile.in: *** empty log message ***
7173 1993-04-28 Noah Friedman <friedman@gnu.org>
7175 * src/reader.c: *** empty log message ***
7177 1993-04-23 Noah Friedman <friedman@gnu.org>
7179 * src/alloc.h: entered into RCS
7181 1993-04-20 David J. MacKenzie <djm@gnu.org>
7183 * src/version.c: *** empty log message ***
7185 * src/files.c, src/allocate.c:
7188 * src/reader.c: *** empty log message ***
7190 * src/lex.c: entered into RCS
7192 * src/conflicts.c: New file.
7194 * src/symtab.c: entered into RCS
7196 * src/alloc.h: New file.
7198 * src/LR0.c: entered into RCS
7200 1993-04-18 Noah Friedman <friedman@gnu.org>
7202 * src/reader.c: New file.
7204 * src/version.c: *** empty log message ***
7206 1993-04-18 Noah Friedman <friedman@gnu.org>
7208 * Makefile.in: *** empty log message ***
7210 1993-04-17 Noah Friedman <friedman@gnu.org>
7212 * Makefile.in: *** empty log message ***
7214 1993-04-15 Richard Stallman <rms@gnu.org>
7216 * src/main.c, src/files.c:
7219 1993-04-15 Noah Friedman <friedman@gnu.org>
7221 * configure.in: entered into RCS
7223 * configure.in: *** empty log message ***
7225 * configure.in: New file.
7227 1993-04-14 Richard Stallman <rms@gnu.org>
7229 * Makefile.in: New file.
7231 1993-04-13 Richard Stallman <rms@gnu.org>
7233 * src/version.c: New file.
7235 1993-03-25 Richard Stallman <rms@gnu.org>
7237 * src/output.c: entered into RCS
7239 1992-09-25 Richard Stallman <rms@gnu.org>
7241 * configure.bat: entered into RCS
7243 1992-06-22 Richard Stallman <rms@gnu.org>
7245 * src/vmsgetargs.c: entered into RCS
7247 1992-06-22 Richard Stallman <rms@gnu.org>
7249 * doc/bison.rnh: entered into RCS
7251 1992-04-20 David J. MacKenzie <djm@gnu.org>
7253 * README: entered into RCS
7255 1992-01-22 Richard Stallman <rms@gnu.org>
7257 * src/machine.h: entered into RCS
7259 1991-12-21 Richard Stallman <rms@gnu.org>
7261 * src/lalr.c, src/closure.c:
7264 1991-12-20 Richard Stallman <rms@gnu.org>
7266 * src/state.h: entered into RCS
7268 1991-12-18 Richard Stallman <rms@gnu.org>
7270 * src/print.c, src/nullable.c, src/derives.c:
7273 1991-11-03 David J. MacKenzie <djm@gnu.org>
7275 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
7278 1988-09-09 Richard Stallman <rms@gnu.org>
7280 * src/bison.hairy: entered into RCS
7282 1987-12-16 Richard Stallman <rms@gnu.org>
7284 * REFERENCES: entered into RCS
7287 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
7289 This file is part of GNU Autoconf.
7291 GNU Autoconf is free software; you can redistribute it and/or modify
7292 it under the terms of the GNU General Public License as published by
7293 the Free Software Foundation; either version 2, or (at your option)
7296 GNU Autoconf is distributed in the hope that it will be useful,
7297 but WITHOUT ANY WARRANTY; without even the implied warranty of
7298 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7299 GNU General Public License for more details.
7301 You should have received a copy of the GNU General Public License
7302 along with autoconf; see the file COPYING. If not, write to
7303 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
7304 Boston, MA 02111-1307, USA.