1 2002-05-25 Akim Demaille <akim@epita.fr>
3 * doc/bison.texinfo (Debugging): Split into...
4 (Tracing): this new section, its former contents, and...
5 (Understanding): this new section.
6 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
9 Adjust all dependencies.
10 (report_args, report_types, report_argmatch): New.
11 (usage, getargs): Report/support -r, --report.
13 (struct option_table_struct): Rename as..,
14 (struct option_table_s): this.
15 Rename the `set_flag' member to `flag' to match with getopt_long's
17 * src/options.c (option_table): Split verbose into an entry for
18 %verbose, and another for --verbose.
19 Support --report/-r, so remove -r from the obsolete --raw.
20 * src/print.c: Attach full item sets and lookaheads reports to
21 report_flag instead of trace_flag.
22 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
24 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
25 and Paul Eggert <eggert@twinsun.com>
27 * data/bison.simple (yyparse): Correct error handling to conform to
28 POSIX and yacc. Specifically, after syntax error is discovered,
29 do not reduce further before shifting the error token.
30 Clean up the code a bit by removing the labels yyerrdefault,
31 yyerrhandle, yyerrpop.
32 * NEWS: Document the above.
34 2002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
36 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
37 type; it isn't always big enough, since it doesn't necessarily
38 include non-terminals.
39 (yytranslate): Expand definition of yy_token_number_type, so that
40 the latter can be removed.
41 (yy_token_number_type): Remove, only one use.
42 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
43 don't use TokenNumberType as element type.
45 * tests/regression.at: Modify expected output to agree with change
46 to yyr1 and yytranslate.
48 2002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
50 * src/reader.c (parse_action): Use copy_character instead of
53 2002-05-13 Akim Demaille <akim@epita.fr>
55 * tests/regression.at (Token definitions): Prototype yylex and
58 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
60 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
61 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
63 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
65 2002-05-07 Akim Demaille <akim@epita.fr>
67 * tests/synclines.at: Be sure to prototype yylex and yyerror to
70 2002-05-07 Akim Demaille <akim@epita.fr>
74 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
75 over the RHS of each rule.
76 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
77 * src/state.h (state_t): Member `nitems' is unsigned short.
78 * src/LR0.c (get_state): Adjust.
79 * src/reader.c (packgram): Likewise.
80 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
82 (muscle_insert_int_table): Remove, unused.
83 (prepare_rules): Remove `max'.
85 2002-05-06 Akim Demaille <akim@epita.fr>
87 * src/closure.c (print_firsts): Display of the symbol tags.
88 (bitmatrix_print): Move to...
89 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
91 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
93 2002-05-06 Akim Demaille <akim@epita.fr>
95 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
98 2002-05-06 Akim Demaille <akim@epita.fr>
100 * src/LR0.c (new_state, get_state): Instead of using the global
101 `kernel_size' and `kernel_base', have two new arguments:
102 `core_size' and `core'.
105 2002-05-06 Akim Demaille <akim@epita.fr>
107 * src/reader.c (packgram): No longer end `ritem' with a 0
108 sentinel: it is not used.
110 2002-05-05 Akim Demaille <akim@epita.fr>
112 New experimental feature: display the lookaheads in the report and
115 * src/print (print_core): When --trace-flag, display the rules
117 * src/print_graph.c (print_core): Likewise.
121 2002-05-05 Akim Demaille <akim@epita.fr>
123 * tests/torture.at (Many lookaheads): New test.
125 2002-05-05 Akim Demaille <akim@epita.fr>
127 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
128 (GENERATE_MUSCLE_INSERT_TABLE): this.
129 (output_int_table, output_unsigned_int_table, output_short_table)
130 (output_token_number_table, output_item_number_table): Replace with...
131 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
132 (muscle_insert_short_table, muscle_insert_token_number_table)
133 (muscle_insert_item_number_table): these.
135 (prepare_tokens): Don't free `translations', since...
136 * src/reader.h, src/reader.c (grammar_free): do it.
138 * src/gram.h, src/gram.c (grammar_free): here.
139 * data/bison.simple, data/bison.c++: b4_token_number_max is now
142 2002-05-05 Akim Demaille <akim@epita.fr>
144 * src/output.c (output_unsigned_int_table): New.
145 (prepare_rules): `i' is unsigned.
146 `prhs', `rline', `r2' are unsigned int.
147 Rename muscle `rhs_number_max' as `rhs_max'.
148 Output muscles `prhs_max', `rline_max', and `r2_max'.
150 * data/bison.simple, data/bison.c++: Adjust to use these muscles
151 to compute types instead of constant types.
152 * tests/regression.at (Web2c Actions): Adjust.
154 2002-05-04 Akim Demaille <akim@epita.fr>
156 * src/symtab.h (SALIAS, SUNDEF): Rename as...
157 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
159 * src/output.c (token_definitions_output): Be sure not to output a
160 `#define 'a'' when fed with `%token 'a' "a"'.
161 * tests/regression.at (Token definitions): New.
163 2002-05-03 Paul Eggert <eggert@twinsun.com>
165 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
168 2002-05-03 gettextize <bug-gnu-gettext@gnu.org>
170 * Makefile.am (SUBDIRS): Remove intl.
171 (EXTRA_DIST): Add config/config.rpath.
173 2002-05-03 Akim Demaille <akim@epita.fr>
175 * data/bison.simple (m4_if): Don't output empty enums.
176 And actually, output valid enum definitions :(.
178 2002-05-03 Akim Demaille <akim@epita.fr>
180 * configure.bat: Remove, completely obsolete.
181 * Makefile.am (EXTRA_DIST): Adjust.
182 Don't distribute config.rpath...
183 * config/Makefile.am (EXTRA_DIST): Do it.
185 2002-05-03 Akim Demaille <akim@epita.fr>
187 * configure.in (GETTEXT_VERSION): New.
188 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
190 2002-05-03 Akim Demaille <akim@epita.fr>
192 * data/bison.simple (b4_token_enum): New.
193 (b4_token_defines): Use it to output tokens both as #define and
195 Suggested by Paul Eggert.
196 * src/output.c (token_definitions_output): Don't output spurious
199 2002-05-03 Akim Demaille <akim@epita.fr>
201 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
203 2002-05-02 Robert Anisko <robert@lrde.epita.fr>
205 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
206 Update the stack class, give a try to deque as the default container.
208 2002-05-02 Akim Demaille <akim@epita.fr>
210 * data/bison.simple (yyparse): Do not implement @$ = @1.
211 (YYLLOC_DEFAULT): Adjust to do it.
212 * doc/bison.texinfo (Location Default Action): Fix.
214 2002-05-02 Akim Demaille <akim@epita.fr>
216 * src/reader.c (parse_braces): Merge into...
217 (parse_action): this.
219 2002-05-02 Akim Demaille <akim@epita.fr>
221 * configure.in (ALL_LINGUAS): Remove.
222 * po/LINGUAS, hr.po: New.
224 2002-05-02 Akim Demaille <akim@epita.fr>
226 Remove the so called hairy (semantic) parsers.
228 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
229 * src/gram.h, src/gram.c (semantic_parser): Remove.
230 (rule_t): Remove the guard and guard_line members.
231 * src/lex.h (token_t): remove tok_guard.
232 * src/options.c (option_table): Remove %guard and %semantic_parser
234 * src/output.c, src/output.h (guards_output): Remove.
236 (token_definitions_output): Don't output the `T'
238 (output_skeleton): Don't output the guards.
239 * src/files.c, src/files.c (attrsfile): Remove.
240 * src/reader.c (symbol_list): Remove the guard and guard_line
243 (parse_guard): Remove.
244 * data/bison.hairy: Remove.
245 * doc/bison.texinfo (Environment Variables): Remove occurrences of
248 2002-05-02 Akim Demaille <akim@epita.fr>
250 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
251 (parse_guard): Rename the formal argument `stack_offset' as
252 `rule_length', which is more readable.
254 (copy_at, copy_dollar): Instead of outputting the hard coded
255 values of $$, $n and so forth, output invocation to b4_lhs_value,
256 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
257 Note: this patch partially drops `semantic-parser' support: it
258 always does `rule_length - n', where semantic parsers ought to
260 * data/bison.simple, data/bison.c++ (b4_lhs_value)
261 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
263 2002-05-02 Akim Demaille <akim@epita.fr>
265 * configure.in (AC_INIT): Bump to 1.49b.
266 (AM_INIT_AUTOMAKE): Short invocation.
268 2002-05-02 Akim Demaille <akim@epita.fr>
272 2002-05-01 Akim Demaille <akim@epita.fr>
274 * src/skeleton.h: Remove.
276 2002-05-01 Akim Demaille <akim@epita.fr>
278 * src/skeleton.h: Fix the #endif.
279 Reported by Magnus Fromreide.
281 2002-04-26 Paul Eggert <eggert@twinsun.com>
283 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
284 Define if we define YYSTYPE and YYLTYPE, respectively.
285 (YYCOPY): Fix [] quoting problem in the non-GCC case.
287 2002-04-25 Robert Anisko <robert@lrde.epita.fr>
289 * src/scan-skel.l: Postprocess quadrigraphs.
291 * src/reader.c (copy_character): New function, used to output
292 single characters while replacing `[' and `]' with quadrigraphs, to
293 avoid troubles with M4 quotes.
294 (copy_comment): Output characters with copy_character.
295 (read_additionnal_code): Likewise.
296 (copy_string2): Likewise.
297 (copy_definition): Likewise.
299 * tests/calc.at: Exercise M4 quoting.
301 2002-04-25 Akim Demaille <akim@epita.fr>
303 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
304 between `!' and the command.
305 Reported by Paul Eggert.
307 2002-04-24 Robert Anisko <robert@lrde.epita.fr>
309 * tests/calc.at: Exercise prologue splitting.
311 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
312 `b4_post_prologue' instead of `b4_prologue'.
314 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
316 (output): Free pre_prologue_obstack and post_prologue_obstack.
317 * src/files.h, src/files.c (attrs_obstack): Remove.
318 (pre_prologue_obstack, post_prologue_obstack): New.
319 * src/reader.c (copy_definition): Add a parameter to specify the
320 obstack to fill, instead of using attrs_obstack unconditionally.
321 (read_declarations): Pass pre_prologue_obstack to copy_definition if
322 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
324 2002-04-23 Paul Eggert <eggert@twinsun.com>
326 * data/bison.simple: Remove unnecessary commentary and white
327 space differences from 1_29-branch.
328 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
330 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
331 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
332 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
333 constructors or destructors.
335 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
337 2002-04-23 Akim Demaille <akim@epita.fr>
339 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
340 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
341 location with columns.
342 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
343 All reported by Paul Eggert.
345 2002-04-22 Akim Demaille <akim@epita.fr>
347 * src/reduce.c (dump_grammar): Move to...
348 * src/gram.h, src/gram.c (grammar_dump): here.
349 Be sure to separate long item numbers.
350 Don't read the members of a rule's prec if its nil.
352 2002-04-22 Akim Demaille <akim@epita.fr>
354 * src/output.c (table_size, table_grow): New.
355 (MAXTABLE): Remove, replace uses with table_size.
356 (pack_vector): Instead of dying when the table is too big, grow it.
358 2002-04-22 Akim Demaille <akim@epita.fr>
360 * data/bison.simple (yyr1): Its type is that of a token number.
361 * data/bison.c++ (r1_): Likewise.
362 * tests/regression.at (Web2c Actions): Adjust.
364 2002-04-22 Akim Demaille <akim@epita.fr>
366 * src/reader.c (token_translations_init): 256 is now the default
367 value for the error token, i.e., it will be assigned another
368 number if the user assigned 256 to one of her tokens.
369 (reader): Don't force 256 to error.
370 * doc/bison.texinfo (Symbols): Adjust.
371 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
372 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
373 etc. instead of 10, 20, 30 (which was used to `jump' over error
374 (256) and undefined (2)).
376 2002-04-22 Akim Demaille <akim@epita.fr>
378 Propagate more token_number_t.
380 * src/gram.h (token_number_as_item_number)
381 (item_number_as_token_number): New.
382 * src/output.c (GENERATE_OUTPUT_TABLE): New.
383 Use it to create output_item_number_table and
384 output_token_number_table.
385 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
386 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
387 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
388 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
390 2002-04-22 Akim Demaille <akim@epita.fr>
392 * src/output.h, src/output.c (get_lines_number): Remove.
394 2002-04-19 Akim Demaille <akim@epita.fr>
396 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
398 (Debugging): More details about enabling the debugging features.
399 (Table of Symbols): Describe $$, $n, @$, and @n.
400 Suggested by Tim Josling.
402 2002-04-19 Akim Demaille <akim@epita.fr>
404 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
406 2002-04-10 Akim Demaille <akim@epita.fr>
408 * src/system.h: Rely on HAVE_LIMITS_H.
409 Suggested by Paul Eggert.
411 2002-04-09 Akim Demaille <akim@epita.fr>
413 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
414 full stderr, and strip it according to the bison options, instead
415 of composing the error message from different bits.
416 This makes it easier to check for several error messages.
417 Adjust all the invocations.
418 Add an invocation exercising the error token.
419 Add an invocation demonstrating a stupid error message.
420 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
422 Error message are for stderr, not stdout.
424 2002-04-09 Akim Demaille <akim@epita.fr>
426 * src/gram.h, src/gram.c (error_token_number): Remove, use
428 * src/reader.c (reader): Don't specify the user token number (2)
429 for $undefined, as it uselessly prevents using it.
430 * src/gram.h (token_number_t): Move to...
431 * src/symtab.h: here.
432 (state_t.number): Is a token_number_t.
433 * src/print.c, src/reader.c: Use undeftoken->number instead of
435 (Even though this 2 is not the same as above: the number of the
436 undeftoken remains being 2, it is its user token number which
438 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
439 `user_token_number_max'.
440 Output `undef_token_number'.
441 * data/bison.simple, data/bison.c++: Use them.
442 Be sure to map invalid yylex return values to
443 `undef_token_number'. This saves us from gratuitous SEGV.
445 * tests/conflicts.at (Solved SR Conflicts)
446 (Unresolved SR Conflicts): Adjust.
447 * tests/regression.at (Web2c Actions): Adjust.
449 2002-04-08 Akim Demaille <akim@epita.fr>
451 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
453 Remove the duplicate `typedefs'.
454 (RhsNumberType): Fix the declaration and various other typos.
456 * data/bison.simple: Use __ofile__.
457 * src/scan-skel.l: Handle __ofile__.
459 2002-04-08 Akim Demaille <akim@epita.fr>
461 * src/gram.h (item_number_t): New, the type of item numbers in
462 RITEM. Note that it must be able to code symbol numbers as
463 positive number, and the negation of rule numbers as negative
465 Adjust all dependencies (pretty many).
466 * src/reduce.c (rule): Remove this `short *' pointer: use
468 * src/system.h (MINSHORT, MAXSHORT): Remove.
470 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
472 (MAXTABLE): Move to...
473 * src/output.c (MAXTABLE): here.
474 (prepare_rules): Use output_int_table to output rhs.
475 * data/bison.simple, data/bison.c++: Adjust.
476 * tests/torture.at (Big triangle): Move the limit from 254 to
478 * tests/regression.at (Web2c Actions): Ajust.
480 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
481 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
482 passes, but produces negative #line number, once fixed, GCC is
483 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
485 * src/state.h (state_h): Code input lines on ints, not shorts.
487 2002-04-08 Akim Demaille <akim@epita.fr>
489 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
490 and then the grammar.
492 2002-04-08 Akim Demaille <akim@epita.fr>
494 * src/system.h: No longer using strndup.
496 2002-04-07 Akim Demaille <akim@epita.fr>
498 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
499 * src/output.c (output_table_data): Return the longest number.
500 (prepare_tokens): Output `token_number_max').
501 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
503 Use them to define yy_token_number_type/TokenNumberType.
504 Use this type for yytranslate.
505 * tests/torture.at (Big triangle): Push the limit from 124 to
507 * tests/regression.at (Web2c Actions): Adjust.
509 2002-04-07 Akim Demaille <akim@epita.fr>
511 * tests/torture.at (Big triangle): New.
512 (GNU AWK Grammar, GNU Cim Grammar): Move to...
513 * tests/existing.at: here.
515 2002-04-07 Akim Demaille <akim@epita.fr>
517 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
521 2002-04-07 Akim Demaille <akim@epita.fr>
523 * src/reader.c: Normalize increments to prefix form.
525 2002-04-07 Akim Demaille <akim@epita.fr>
527 * src/reader.c, symtab.c: Remove debugging code.
529 2002-04-07 Akim Demaille <akim@epita.fr>
531 Rename all the `bucket's as `symbol_t'.
533 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
534 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
535 * src/symtab.c, src/symtab.h (bucket): Rename as...
537 (symbol_list_new, bucket_check_defined, bucket_make_alias)
538 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
539 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
540 (buckets_new, buckets_free, buckets_do): Rename as...
541 (symbol_list_new, symbol_check_defined, symbol_make_alias)
542 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
543 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
544 (symbols_new, symbols_free, symbols_do): these.
546 2002-04-07 Akim Demaille <akim@epita.fr>
548 Use lib/hash for the symbol table.
550 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
552 * src/lex.c (lex): Set the `number' member of new terminals.
553 * src/reader.c (bucket_check_defined, bucket_make_alias)
554 (bucket_check_alias_consistence, bucket_translation): New.
555 (reader, grammar_free, readgram, token_translations_init)
556 (packsymbols): Adjust.
557 (reader): Number the predefined tokens.
558 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
559 for predefined tokens.
560 * src/symtab.h (bucket): Remove all the hash table related
562 * src/symtab.c (symtab): Replace by...
563 (bucket_table): this.
564 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
565 (buckets_new, buckets_do): New.
567 2002-04-07 Akim Demaille <akim@epita.fr>
569 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
570 (start_symbol, max_user_token_number, semantic_parser)
571 (error_token_number): Initialize.
572 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
575 (errtoken, eoftoken, undeftoken, axiom): Extern.
577 2002-04-07 Akim Demaille <akim@epita.fr>
579 * src/gram.h (rule_s): prec and precsym are now pointers
580 to the bucket giving the priority/associativity.
581 Member `associativity' removed: useless.
582 * src/reduce.c, src/conflicts.c: Adjust.
584 2002-04-07 Akim Demaille <akim@epita.fr>
586 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
587 Properly escape the symbols' TAG when outputting them.
589 2002-04-07 Akim Demaille <akim@epita.fr>
591 * src/lalr.h (LA): Is a bitsetv, not bitset*.
593 2002-04-07 Akim Demaille <akim@epita.fr>
595 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
596 (LArule): this, which is an array to rule_t*.
597 * src/print.c, src/conflicts.c: Adjust.
599 2002-04-07 Akim Demaille <akim@epita.fr>
601 * src/gram.h (rule_t): Rename `number' as `user_number'.
602 `number' is a new member.
604 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
606 2002-04-07 Akim Demaille <akim@epita.fr>
608 As a result of the previous patch, it is no longer needed
609 to reorder ritem itself.
611 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
613 2002-04-07 Akim Demaille <akim@epita.fr>
615 Be sure never to walk through RITEMS, but use only data related to
616 the rules themselves. RITEMS should be banished.
618 * src/output.c (output_token_translations): Rename as...
619 (prepare_tokens): this.
620 In addition to `translate', prepare the muscles `tname' and
621 `toknum', which were handled by...
622 (output_rule_data): this.
623 Remove, and move the remainder of its outputs into...
624 (prepare_rules): this new routines, which also merges content from
626 (prepare_rules): Be sure never to walk through RITEMS.
627 (output_stos): Rename as...
628 (prepare_stos): this.
629 (output): Always invoke prepare_states, after all, just don't use it
630 in the output if you don't need it.
632 2002-04-07 Akim Demaille <akim@epita.fr>
634 * src/LR0.c (new_state): Display `nstates' as the name of the
636 Adjust to initialize first_state and last_state if needed.
637 Be sure to distinguish the initial from the final state.
638 (new_states): Create the itemset of the initial state, and use
640 * src/closure.c (closure): Now that the initial state has its
641 items properly set, there is no need for a special case when
644 As a result, now the rule 0, reducing to $axiom, is visible in the
645 outputs. Adjust the test suite.
647 * tests/conflicts.at (Solved SR Conflicts)
648 (Unresolved SR Conflicts): Adjust.
649 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
650 * tests/conflicts.at (S/R in initial): New.
652 2002-04-07 Akim Demaille <akim@epita.fr>
654 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
655 the RHS of the rules.
656 * src/output.c (output_gram): Likewise.
658 2002-04-07 Akim Demaille <akim@epita.fr>
660 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
662 Adjust all dependencies.
663 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
664 `number' of the buckets too.
665 * src/gram.h: Include `symtab.h'.
666 (associativity): Move to...
667 * src/symtab.h: here.
668 No longer include `gram.h'.
670 2002-04-07 Akim Demaille <akim@epita.fr>
672 * src/gram.h, src/gram.c (rules_rhs_length): New.
673 (ritem_longest_rhs): Use it.
674 * src/gram.h (rule_t): `number' is a new member.
675 * src/reader.c (packgram): Set it.
676 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
677 the end of `rules', and count them out of `nrules'.
678 (reduce_output, dump_grammar): Adjust.
679 * src/print.c (print_grammar): It is no longer needed to check for
680 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
681 * tests/reduce.at (Reduced Automaton): New test.
683 2002-04-07 Akim Demaille <akim@epita.fr>
685 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
686 lacking `+ 1' to nrules, Bison reported as useless a token if it
687 was used solely to set the precedence of the last rule...
689 2002-04-07 Akim Demaille <akim@epita.fr>
691 * data/bison.c++, data/bison.simple: Don't output the current file
692 name in #line, to avoid useless diffs between two identical
693 outputs under different names.
695 2002-04-07 Akim Demaille <akim@epita.fr>
697 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
698 Normalize loops to using `< nrules + 1', not `<= nrules'.
700 2002-04-07 Akim Demaille <akim@epita.fr>
704 2002-04-07 Akim Demaille <akim@epita.fr>
706 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
707 bucket.value as bucket.number.
709 2002-04-07 Akim Demaille <akim@epita.fr>
711 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
712 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
713 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
714 RHS, instead of being an index in RITEMS.
716 2002-04-04 Paul Eggert <eggert@twinsun.com>
718 * doc/bison.texinfo: Update copyright date.
719 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
720 (Symbols): Warn about running Bison in one character set,
721 but compiling and/or running in an incompatible one.
722 Warn about character code 256, too.
724 2002-04-03 Paul Eggert <eggert@twinsun.com>
726 * src/bison.data (YYSTACK_ALLOC): Depend on whether
727 YYERROR_VERBOSE is nonzero, not whether it is defined.
729 Merge changes from bison-1_29-branch.
731 2002-03-20 Paul Eggert <eggert@twinsun.com>
733 Merge fixes from Debian bison_1.34-1.diff.
735 * configure.in (AC_PREREQ): 2.53.
737 2002-03-20 Akim Demaille <akim@epita.fr>
739 * src/conflicts.c (log_resolution): Argument `resolution' is const.
741 2002-03-19 Paul Eggert <eggert@twinsun.com>
743 * src/bison.simple (YYCOPY): New macro.
744 (YYSTACK_RELOCATE): Use it.
745 Remove Type arg; no longer needed. All callers changed.
746 (yymemcpy): Remove; no longer needed.
748 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
749 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
751 2002-03-19 Akim Demaille <akim@epita.fr>
753 Test and fix the #line outputs.
755 * tests/atlocal.at (GCC): New.
756 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
757 (Prologue synch line, ,%union synch line, Postprologue synch line)
758 (Action synch line, Epilogue synch line): New tests.
759 * src/reader.c (parse_union_decl): Define the muscle stype_line.
760 * data/bison.simple, data/bison.c++: Use it.
762 2002-03-19 Akim Demaille <akim@epita.fr>
764 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
765 (Solved SR Conflicts, %expect not enough, %expect right)
766 (%expect too much): Move to...
767 * tests/conflicts.at: this new file.
769 2002-03-19 Akim Demaille <akim@epita.fr>
771 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
772 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
773 that we can move to enums for instance.
774 * src/output.c (token_definitions_output): Output a list of
775 `token-name, token-number' instead of the #define.
776 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
778 2002-03-14 Akim Demaille <akim@epita.fr>
782 2002-03-09 Robert Anisko <robert@lrde.epita.fr>
784 * data/bison.c++: Make the user able to add members to the generated
785 parser by subclassing.
787 2002-03-05 Robert Anisko <robert@lrde.epita.fr>
789 * src/reader.c (read_additionnal_code): `c' should be an integer, not
791 Reported by Nicolas Tisserand and Nicolas Burrus.
793 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
795 * src/reader.c: Warn about lacking semi-colons, do not complain.
797 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
799 * data/bison.c++: Remove a debug line.
801 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
803 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
804 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
805 provide a default implementation.
807 2002-03-04 Akim Demaille <akim@epita.fr>
809 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
810 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
811 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
812 * tests/semantic.at (Parsing Guards): Similarly.
813 * src/reader.at (readgram): Complain if the last rule is not ended
816 2002-03-04 Akim Demaille <akim@epita.fr>
818 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
819 * src/closure.c: here.
820 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
822 * src/warshall.h, src/warshall.c: Remove.
823 * tests/sets.at (Broken Closure): Adjust.
825 2002-03-04 Akim Demaille <akim@epita.fr>
827 * src/output.c (output_skeleton): tempdir is const.
828 bytes_read is unused.
830 2002-03-04 Akim Demaille <akim@epita.fr>
832 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
833 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
837 2002-03-04 Akim Demaille <akim@epita.fr>
839 * src/closure.c (closure): `r' is unused.
841 2002-03-04 Akim Demaille <akim@epita.fr>
843 * tests/sets.at (Broken Closure): Add the ending `;'.
844 * src/reader.at (readgram): Complain if a rule is not ended with a
847 2002-03-04 Akim Demaille <akim@epita.fr>
849 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
850 (count_sr_conflicts): Use bitset_count.
851 * src/reduce.c (inaccessable_symbols): Ditto.
853 * src/warshall.h, src/warshall.c: Convert to bitsetv.
855 2002-03-04 Akim Demaille <akim@epita.fr>
857 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
858 * src/reduce.c: Remove the `bitset_zero's following the
859 `bitset_create's, as now it is performed by the latter.
861 2002-03-04 Akim Demaille <akim@epita.fr>
863 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
864 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
865 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
866 latest sources from Michael.
868 2002-03-04 Akim Demaille <akim@epita.fr>
870 * src/output.c (output): Don't free the grammar.
871 * src/reader.c (grammar_free): New.
872 * src/main.c (main): Call it and don't free symtab here.
874 2002-03-04 Akim Demaille <akim@epita.fr>
876 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
878 Reported by Benoit Perrot.
880 2002-03-04 Akim Demaille <akim@epita.fr>
882 Use bitset operations when possible, not loops over bits.
884 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
886 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
887 * src/reduce.c (useless_nonterminals): Formatting changes.
888 * src/warshall.c (TC): Use bitset_or.
890 2002-03-04 Akim Demaille <akim@epita.fr>
892 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
893 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
896 2002-03-04 Akim Demaille <akim@epita.fr>
898 * src/lalr.c (F): Now a bitset*.
899 Adjust all dependencies.
901 2002-03-04 Akim Demaille <akim@epita.fr>
903 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
904 Adjust all dependencies.
906 2002-03-04 Akim Demaille <akim@epita.fr>
908 * src/L0.c, src/LR0.h (nstates): Be size_t.
909 Adjust comparisons (signed vs unsigned).
910 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
912 Adjust all dependencies.
914 2002-03-04 Akim Demaille <akim@epita.fr>
916 * src/closure.c (firsts): Now, also a bitset.
917 Adjust all dependencies.
918 (varsetsize): Remove, now unused.
919 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
921 2002-03-04 Akim Demaille <akim@epita.fr>
923 * src/print.c: Convert to use bitset.h, not hand coded iterations
926 2002-03-04 Akim Demaille <akim@epita.fr>
928 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
930 2002-03-04 Akim Demaille <akim@epita.fr>
932 * src/closure.c (ruleset): Be a bitset.
933 (rulesetsize): Remove.
935 2002-03-04 Akim Demaille <akim@epita.fr>
937 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
938 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
939 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
940 * src/closure.c (fderives): Be an array of bitsets.
942 2002-02-28 Robert Anisko <robert@lrde.epita.fr>
944 * data/bison.c++: Merge the two generated headers. Insert a copyright
945 notice in each output file.
947 2002-02-28 Akim Demaille <akim@epita.fr>
949 * data/bison.c++: Copy the prologue of bison.simple to fetch
950 useful M4 definitions, such as b4_header_guard.
952 2002-02-25 Akim Demaille <akim@epita.fr>
954 * src/getargs.c (version): Give the name of the authors, and use a
955 translator friendly scheme for the bgr
958 2002-02-25 Akim Demaille <akim@epita.fr>
960 * src/output.c (header_output): Remove, now handled completely via
963 2002-02-25 Akim Demaille <akim@epita.fr>
965 * m4/m4.m4: New, from CVS Autoconf.
966 * configure.in: Invoke it.
967 * src/output.c (output_skeleton): Use its result instead of the
970 2002-02-25 Akim Demaille <akim@epita.fr>
972 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
974 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
975 * src/output.c (output_skeleton): Use mkstemp to create a real
977 Move the filling of `skeleton' and its muscle to...
979 (output): Move the definition of the prologue muscle to...
981 * src/system.h (DEFAULT_TMPDIR): New.
983 2002-02-14 Paul Eggert <eggert@twinsun.com>
985 Remove the support for C++ namespace cleanliness; it was
986 causing more problems than it was curing, since it didn't work
987 properly on some nonstandard C++ compilers. This can wait
988 for a proper C++ parser.
990 * NEWS: Document this.
991 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
992 of C++, as it's treated like C now.
993 * src/bison.simple (YYSTD): Remove.
994 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
995 Treat C++ just like Standard C instead of trying to support
996 namespace cleanliness.
998 2002-02-14 Akim Demaille <akim@epita.fr>
1000 * tests/regression.at (else): Adjust to Andreas' change.
1002 2002-02-14 Akim Demaille <akim@epita.fr>
1004 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
1006 2002-02-13 Andreas Schwab <schwab@suse.de>
1008 * src/output.c (output_rule_data): Don't output NULL, it might
1011 2002-02-11 Robert Anisko <robert@lrde.epita.fr>
1013 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
1014 (Copyright notice): Update.
1016 2002-02-11 Akim Demaille <akim@epita.fr>
1018 * tests/regression.at (%nonassoc and eof): Don't include
1019 nonportable headers.
1021 2002-02-08 Robert Anisko <robert@lrde.epita.fr>
1023 * data/bison.c++: Correct error recovery. Make the user able to
1024 initialize the starting location.
1026 2002-02-07 Akim Demaille <akim@epita.fr>
1028 * tests/input.at: New.
1030 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1032 * data/bison.c++: Replace some direct m4 expansions by constants. Be
1033 more consistent when naming methods and variables. Put preprocessor
1034 directives around tables only needed for debugging.
1036 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1038 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
1040 (yy::b4_name::parse): Use print_.
1042 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1044 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
1046 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1048 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
1050 (yy::b4_name::parse): Build verbose error messages, and use error_.
1052 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1054 * data/bison.c++: Fix m4 quoting in comments.
1056 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1058 * data/bison.c++: Adjust the parser code. Fix some muscles that were
1061 2002-02-05 Akim Demaille <akim@epita.fr>
1063 * data/bison.c++: Adjust to the M4 back end.
1064 More is certainly needed.
1066 2002-02-05 Akim Demaille <akim@epita.fr>
1068 Give a try to M4 as a back end.
1070 * lib/readpipe.c: New, from wdiff.
1071 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
1073 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
1074 specific values. Now it is m4 that performs the lookup.
1075 * src/parse-skel.y: Remove.
1076 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
1077 * src/output.c (actions_output, guards_output)
1078 (token_definitions_output): No longer keeps track of the output
1079 line number, hence remove the second argument.
1080 (guards_output): Check against the guard member of a rule, not the
1083 (output_skeleton): Don't look for the skeleton location, let m4 do
1085 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
1087 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
1088 (prepare): Given that for the time being changesyntax is not
1089 usable in M4, rename the muscles using `-' to `_'.
1090 Define `defines_flag', `output_parser_name' and `output_header_name'.
1091 * src/output.h (actions_output, guards_output)
1092 (token_definitions_output): Adjust prototypes.
1093 * src/scan-skel.l: Instead of scanning the skeletons, it now
1094 processes the output of m4: `__oline__' and `#output'.
1095 * data/bison.simple: Adjust to be used by M4(sugar).
1096 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
1098 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
1099 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
1100 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
1101 shamelessly stolen from CVS Autoconf.
1103 2002-02-05 Akim Demaille <akim@epita.fr>
1105 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
1106 * configure.in: Check for the declarations of free and malloc.
1107 * src/muscle_tab.c: Adjust.
1109 2002-02-05 Akim Demaille <akim@epita.fr>
1111 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
1112 which have no values.
1114 2002-02-05 Akim Demaille <akim@epita.fr>
1116 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
1119 2002-01-29 Paul Eggert <eggert@twinsun.com>
1121 * src/bison.simple (YYSIZE_T): Do not define merely because
1122 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
1123 On some platforms, <alloca.h> does not declare YYSTD (size_t).
1125 2002-01-27 Akim Demaille <akim@epita.fr>
1127 Fix `%nonassoc and eof'.
1129 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
1130 which were not properly copied! Replace
1131 memcpy (res->errs, src->errs, src->nerrs);
1133 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
1135 * tests/regression.at (%nonassoc and eof): Adjust to newest
1136 Autotest: `.' is not in the PATH.
1138 2002-01-27 Akim Demaille <akim@epita.fr>
1140 * tests/sets.at (AT_EXTRACT_SETS): New.
1144 2002-01-26 Akim Demaille <akim@epita.fr>
1146 * tests/actions.at, tests/calc.at, tests/headers.at,
1147 * tests/torture.at: Adjust to the newest Autotest which no longer
1148 forces `.' in the PATH.
1150 2002-01-25 Akim Demaille <akim@epita.fr>
1152 * tests/regression.at (%nonassoc and eof): New.
1153 Suggested by Robert Anisko.
1155 2002-01-24 Akim Demaille <akim@epita.fr>
1157 Bison dumps core when trying to complain about broken input files.
1158 Reported by Cris van Pelt.
1160 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
1161 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
1163 (Invalid inputs): Strengthen: exercise parse_percent_token.
1165 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
1167 * src/Makefile.am: Add bison.c++.
1168 * src/bison.c++: New skeleton.
1170 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
1174 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
1176 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
1178 2002-01-20 Marc Autret <marc@gnu.org>
1180 * src/files.c (compute_output_file_names): Fix
1182 2002-01-20 Marc Autret <marc@gnu.org>
1184 * tests/output.at: New test.
1185 * src/files.c (compute_base_names): Don't map extensions when
1186 the YACC flag is set, use defaults.
1187 Reported by Evgeny Stambulchik.
1189 2002-01-20 Marc Autret <marc@gnu.org>
1191 * src/system.h: Need to define __attribute__ away for non-GCC
1192 compilers as well (i.e. the vendor C compiler).
1193 Suggested by Albert Chin-A-Young.
1195 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
1197 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
1198 canonical definition.
1199 * src/system.h: Use the canonical definition for PARAMS (avoids
1200 a conflict with the macro from lib/hash.h).
1202 2002-01-11 Akim Demaille <akim@epita.fr>
1204 * configure.in: Use AC_FUNC_STRNLEN.
1205 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
1207 2002-01-09 Akim Demaille <akim@epita.fr>
1209 * src/files.c, src/files.h (output_infix): New.
1210 (tab_extension): Remove.
1211 (compute_base_names): Compute the former, drop the latter.
1212 * src/output.c (prepare): Insert the muscles `output-infix', and
1214 * src/parse-skel.y (string, string.1): New.
1215 (section.header): Use it.
1216 (section.yacc): Remove.
1217 (prefix): Remove too.
1218 * src/scan-skel.l: Adjust.
1219 * src/bison.simple, src/bison.hairy: Adjust.
1221 2002-01-09 Akim Demaille <akim@epita.fr>
1223 * configure.in (WERROR_CFLAGS): Compute it.
1224 * src/Makefile.am (CFLAGS): Pass it.
1225 * tests/atlocal.in (CFLAGS): Idem.
1226 * src/files.c: Fix a few warnings.
1227 (get_extension_index): Remove, unused.
1229 2002-01-08 Akim Demaille <akim@epita.fr>
1231 * src/getargs.c (AS_FILE_NAME): New.
1232 (getargs): Use it to convert DOSish file names.
1233 * src/files.c (base_name): Rename as full_base_name to avoid
1234 clashes with `base_name ()'.
1235 (filename_split): New.
1236 (compute_base_names): N-th rewrite, using filename_split.
1238 2002-01-08 Akim Demaille <akim@epita.fr>
1240 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
1241 New, stolen from the Fileutils 4.1.
1242 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1243 * configure.in: Check for the presence of memrchr, and of its
1246 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
1248 * lib/hash.h (__P): Added definition for this macro.
1249 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
1250 BUILT_SOURCES, to ensure they are generated first.
1251 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
1252 %error-verbose to allow bootstrapping with bison 1.30x.
1254 2002-01-06 Akim Demaille <akim@epita.fr>
1256 * src/reader.c (parse_braces): Don't fetch the next char, the
1257 convention is to fetch on entry.
1258 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
1259 'switch' without a following semicolon.
1260 * tests/regression.at (braces parsing): New.
1262 2002-01-06 Akim Demaille <akim@epita.fr>
1264 Bison is dead wrong in its RR conflict reports.
1266 * tests/torture.at (GNU Cim Grammar): New.
1267 * src/conflicts.c (count_rr_conflicts): Fix.
1269 2002-01-06 Akim Demaille <akim@epita.fr>
1271 Creating package.m4 from configure.ac causes too many problems.
1273 * tests/Makefile.am (package.m4): Create it by hand,
1274 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
1276 2002-01-06 Akim Demaille <akim@epita.fr>
1278 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
1281 2002-01-04 Paul Eggert <eggert@twinsun.com>
1283 * doc/bison.texinfo (Debugging):
1284 Remove YYSTDERR; it's no longer defined or used.
1285 Also, s/cstdio.h/cstdio/.
1287 2002-01-03 Akim Demaille <akim@epita.fr>
1289 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
1291 2002-01-03 Akim Demaille <akim@epita.fr>
1293 * src/parse-skel.y (process_skeleton): Don't bind the parser's
1294 tracing code to --trace, wait for a better --trace option, with
1297 2002-01-03 Akim Demaille <akim@epita.fr>
1299 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
1300 The ISO C++ standard is extremely clear about it: stderr is
1301 considered a macro, not a regular symbol (see table 94 `Header
1302 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
1303 Therefore std:: does not apply to it. It still does with fprintf.
1304 Also, s/cstdio.h/cstdio/.
1306 2002-01-03 Akim Demaille <akim@epita.fr>
1308 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
1309 for non system headers.
1311 2002-01-02 Akim Demaille <akim@epita.fr>
1313 Equip the skeleton chain with location tracking, runtime trace,
1314 pure parser and scanner.
1316 * src/parse-skel.y: Request a pure parser, locations, and prefix
1318 (%union): Having several members with the same type does not help
1319 type mismatches, simplify.
1320 (YYPRINT, yyprint): New.
1321 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
1324 * src/scan-skel.l: Adjust to these changes.
1325 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
1326 (LOCATION_PRINT, skel_control_t): New.
1328 2001-12-30 Akim Demaille <akim@epita.fr>
1330 * src/parse-skel.y: Get rid of the shift/reduce conflict:
1331 replace `gb' with BLANKS.
1332 * src/scan-skel.l: Adjust.
1334 2001-12-30 Akim Demaille <akim@epita.fr>
1336 * src/system.h: We don't need nor want bcopy.
1337 Throw away MS-DOS crap: we don't need getpid.
1338 * configure.in: We don't need strndup. It was even causing
1339 problems: because Flex includes the headers *before* us,
1340 _GNU_SOURCE is not defined by config.h, and therefore strndup was
1342 * lib/xstrndup.c: New.
1343 * src/scan-skel.l: Use it.
1344 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
1345 * src/parse-skel.y: Use %directives instead of #defines.
1347 2001-12-30 Akim Demaille <akim@epita.fr>
1349 * src/skeleton.h: New.
1350 * src/output.c (output_parser, output_master_parser): Remove, dead
1352 * src/output.h (get_lines_number, actions_output, guards_output)
1353 (token_definitions_output): Prototype them.
1354 * src/parse-skel.y: Add the license notice.
1355 Include output.h and skeleton.h.
1356 (process_skeleton): Returns void, and takes a single parameter.
1357 * src/scan-skel.l: Add the license notice.
1359 Don't use %option yylineno: it seems that then Flex imagines
1360 REJECT has been used, and therefore it won't reallocate its
1361 buffers (which makes no other sense to me than a bug). It results
1362 in warnings for `unused: yy_flex_realloc'.
1364 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
1366 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1367 (MUSCLE_INSERT_PREFIX): ...to there.
1368 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1369 (MUSCLE_INSERT_PREFIX): Move from here...
1371 * src/bison.hairy: Add a section directive. Put braces around muscle
1372 names. This parser skeleton is still broken, but Bison should not
1373 choke on a bad muscle 'syntax'.
1374 * src/bison.simple: Add a section directive. Put braces around muscle
1377 * src/files.h (strsuffix, stringappend): Add declarations.
1378 (tab_extension): Add declaration.
1379 (short_base_name): Add declaration.
1381 * src/files.c (strsuffix, stringappend): No longer static. These
1382 functions are used in the skeleton parser.
1383 (tab_extension): New.
1384 (compute_base_names): Use the computations done in this function
1385 to guess if the generated parsers should have '.tab' in their
1387 (short_base_name): No longer static.
1389 * src/output.c (output_skeleton): New.
1390 (output): Disable call to output_master_parser, and give a try to
1391 a new skeleton handling system.
1392 (guards_output, actions_output): No longer static.
1393 (token_definitions_output, get_lines_number): No longer static.
1395 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
1397 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
1400 * src/parse-skel.y: New file.
1401 * src/scan-skel.l: New file.
1403 2001-12-29 Akim Demaille <akim@epita.fr>
1405 %name-prefix is broken.
1407 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
1408 Adjust all dependencies.
1409 * tests/headers.at (export YYLTYPE): Strengthen this test: use
1412 Renaming yylval but not yylloc is not consistent. Now we do.
1414 * src/bison.simple: Prefix yylloc if used.
1415 * doc/bison.texinfo (Decl Summary): Document that.
1417 2001-12-29 Akim Demaille <akim@epita.fr>
1419 * doc/bison.texinfo: Promote `%long-directive' over
1421 Remove all references to fixed-output-files, yacc is enough.
1423 2001-12-29 Akim Demaille <akim@epita.fr>
1425 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
1426 user prologue. These are defaults.
1427 * tests/actions.at (Mid-rule actions): Make sure the user can
1428 define YYDEBUG and YYERROR_VERBOSE.
1430 2001-12-29 Akim Demaille <akim@epita.fr>
1432 * src/output.c (header_output): Don't forget to export YYLTYPE and
1434 * tests/headers.at (export YYLTYPE): New, make sure it does.
1435 * tests/regression.at (%union and --defines, Invalid CPP headers):
1437 * tests/headers.at: here.
1439 2001-12-29 Akim Demaille <akim@epita.fr>
1441 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
1443 2001-12-29 Akim Demaille <akim@epita.fr>
1445 * tests/actions.at (Mid-rule actions): Output on a single line
1448 2001-12-29 Akim Demaille <akim@epita.fr>
1450 * doc/bison.texinfo: Formatting changes.
1452 2001-12-29 Akim Demaille <akim@epita.fr>
1454 Don't store the token defs in a muscle, just be ready to output it
1455 on command. Now possible via `symbols'. Fixes a memory leak.
1457 * src/output.c (token_definitions_output): New.
1458 (output_parser, header_output): Use it.
1459 * src/reader.c (symbols_save): Remove.
1461 2001-12-29 Akim Demaille <akim@epita.fr>
1463 * src/bison.simple: Do not provide a default for YYSTYPE and
1464 YYLTYPE before the user's prologue. Otherwise it's hardly... a
1467 2001-12-29 Akim Demaille <akim@epita.fr>
1469 Mid-rule actions are simply... ignored!
1471 * src/reader.c (readgram): Be sure to attach mid-rule actions to
1472 the empty-rule associated to the dummy symbol, not to the host
1474 * tests/actions.at (Mid-rule actions): New.
1476 2001-12-29 Akim Demaille <akim@epita.fr>
1480 * src/reader.c (reader): Free grammar.
1482 2001-12-29 Akim Demaille <akim@epita.fr>
1486 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
1487 since it allocates it for each state, although only one is needed.
1488 (allocate_storage): Do it here.
1490 2001-12-29 Akim Demaille <akim@epita.fr>
1492 * src/options.h, src/options.c (create_long_option_table): Rename
1494 (long_option_table_new): this, with a clearer prototype.
1495 (percent_table): Remove, unused,
1496 * src/getargs.c (getargs): Adjust.
1498 2001-12-29 Akim Demaille <akim@epita.fr>
1500 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
1501 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
1504 2001-12-29 Akim Demaille <akim@epita.fr>
1506 * src/lalr.c (build_relations): Rename `states' as `states1'.
1507 Sorry, I don't understand exactly what it is, no better name...
1509 2001-12-29 Akim Demaille <akim@epita.fr>
1511 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
1512 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
1513 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
1516 2001-12-29 Akim Demaille <akim@epita.fr>
1518 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
1521 2001-12-29 Akim Demaille <akim@epita.fr>
1523 * src/reader.c, src/reader.h (user_toknums): Remove.
1524 Adjust all users to use symbols[i]->user_token_number.
1526 2001-12-29 Akim Demaille <akim@epita.fr>
1528 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
1529 Adjust all users to use symbols[i]->prec or ->assoc.
1531 2001-12-29 Akim Demaille <akim@epita.fr>
1533 * src/reader.c, src/reader.h (tags): Remove.
1534 Adjust all users to use symbols[i]->tag.
1536 2001-12-29 Akim Demaille <akim@epita.fr>
1538 * src/gram.h, src/gram.c (symbols): New, similar to state_table
1540 * src/reader.c (packsymbols): Fill this table.
1542 * src/conflicts.c (resolve_sr_conflict): Adjust.
1543 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
1545 Use symbols[i]->tag instead of tags[i].
1547 2001-12-29 Akim Demaille <akim@epita.fr>
1549 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
1550 In addition, put a comment in there, to replace...
1551 * tests/regression.at (%union and C comments): Remove.
1553 2001-12-29 Akim Demaille <akim@epita.fr>
1555 * tests/regression.at (Web2c Actions): Blindly move the actual
1556 output as expected output. The contents *seem* right to me, but I
1557 can't pretend reading perfectly parser tables... Nonetheless, all
1558 the other tests pass correctly, the table look OK, even though the
1559 presence of `$axiom' is to be noted: AFAICS it is useless (but
1562 2001-12-29 Akim Demaille <akim@epita.fr>
1564 * src/reader.c (readgram): Don't add the rule 0 if there were no
1565 rules read. In other words, add it _after_ having performed
1566 grammar sanity checks.
1567 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
1569 2001-12-29 Akim Demaille <akim@epita.fr>
1571 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
1572 visible, and some states have now a different number.
1574 2001-12-29 Akim Demaille <akim@epita.fr>
1576 * src/reader.c (readgram): Bind the initial rule's lineno to that
1578 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
1579 (Solved SR Conflicts): Adjust rule 0's line number.
1581 2001-12-29 Akim Demaille <akim@epita.fr>
1583 Fix the `GAWK Grammar' failure.
1585 * src/LR0.c (final_state): Initialize to -1 so that we do compute
1586 the reductions of the first state which was mistakenly confused
1587 with the final state because precisely final_state was initialized
1589 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
1590 now noticed by Bison.
1591 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
1592 have a reduction on $default.
1594 2001-12-29 Akim Demaille <akim@epita.fr>
1596 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
1598 * src/closure.c (print_closure): Likewise.
1599 * src/derives.c (print_derives): Likewise.
1600 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
1603 2001-12-29 Akim Demaille <akim@epita.fr>
1605 * src/lalr.c (lookaheads_print): New.
1606 (lalr): Call it when --trace-flag.
1607 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
1610 2001-12-29 Akim Demaille <akim@epita.fr>
1612 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
1613 when walking through ritem, even via rule->rhs.
1614 * src/reduce.c (dump_grammar, useful_production, reduce_output)
1615 (useful_production, useless_nonterminals): Likewise.
1616 (reduce_grammar_tables): Likewise, plus update nritems.
1617 * src/nullable.c (set_nullable): Likewise.
1618 * src/lalr.c (build_relations): Likewise.
1619 * tests/sets.at (Nullable): Adjust.
1620 Fortunately, now, the $axiom is no longer nullable.
1622 2001-12-29 Akim Demaille <akim@epita.fr>
1624 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
1626 * src/gram.c (ritem_longest_rhs): Likewise.
1627 * src/reduce.c (nonterminals_reduce): Likewise.
1628 * src/print_graph.c (print_graph): Likewise.
1629 * src/output.c (output_rule_data): Likewise.
1630 * src/nullable.c (set_nullable): Likewise.
1632 2001-12-29 Akim Demaille <akim@epita.fr>
1634 * src/output.c: Comment changes.
1636 2001-12-27 Paul Eggert <eggert@twinsun.com>
1638 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
1639 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
1640 Sparc, as they were causing more porting problems than the
1641 (minor) performance improvement was worth.
1643 Also, catch up with 1.31's YYSTD.
1645 2001-12-27 Akim Demaille <akim@epita.fr>
1647 * src/output.c (output_gram): Rely on nritems, not the
1648 0-sentinel. See below.
1649 Use -1 as separator, not 0.
1650 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
1651 Rely on -1 as separator in yyrhs, instead of 0.
1652 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
1653 twice `Now at end of input', therefore there are two lines less to
1656 2001-12-27 Akim Demaille <akim@epita.fr>
1658 * tests/regression.at (Unresolved SR Conflicts):
1659 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
1662 2001-12-27 Akim Demaille <akim@epita.fr>
1664 * src/LR0.c (new_state): Recognize the final state by the fact it
1665 is reached by eoftoken.
1666 (insert_start_shifting_state, insert_eof_shifting_state)
1667 (insert_accepting_state, augment_automaton): Remove, since now
1668 these states are automatically computed from the initial state.
1669 (generate_states): Adjust.
1670 * src/print.c: When reporting a rule number to the user, substract
1671 1, so that the axiom rule is rule 0, and the first user rule is 1.
1672 * src/reduce.c: Likewise.
1673 * src/print_graph.c (print_core): For the time being, just as for
1674 the report, depend upon --trace-flags to dump the full set of
1676 * src/reader.c (readgram): Once the grammar read, insert the rule
1677 0: `$axiom: START-SYMBOL $'.
1678 * tests/set.at: Adjust: rule 0 is now displayed, and since the
1679 number of the states has changed (the final state is no longer
1680 necessarily the last), catch up.
1682 2001-12-27 Akim Demaille <akim@epita.fr>
1684 Try to make the use of the eoftoken valid. Given that its value
1685 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
1686 is used instead of > 0 where appropriate, (ii), depend upon nritems
1687 instead of the 0-sentinel.
1689 * src/gram.h, src/gram.c (nritems): New.
1690 Expected to be duplication of nitems, but for the time being...
1691 * src/reader.c (packgram): Assert nritems and nitems are equal.
1692 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
1693 * src/closure.c (print_closure, print_fderives): Likewise.
1694 * src/gram.c (ritem_print): Likewise.
1695 * src/print.c (print_core, print_grammar): Likewise.
1696 * src/print_graph.c: Likewise.
1698 2001-12-27 Akim Demaille <akim@epita.fr>
1700 * src/main.c (main): If there are complains after grammar
1701 reductions, then output the report anyway if requested, then die.
1702 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
1703 * src/reader.c (eoftoken): New.
1704 (parse_token_decl): If the token being defined has value `0', it
1706 (packsymbols): No longer hack `tags' to insert `$' by hand.
1707 Be sure to preserve the value of the eoftoken.
1708 (reader): Make sure eoftoken is defined.
1709 Initialize nsyms to 0: now eoftoken is created just like the others.
1710 * src/print.c (print_grammar): Don't special case the eof token.
1711 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
1712 lie anyway, albeit pleasant.
1713 * tests/calc.at: Exercise error messages with eoftoken.
1714 Change the grammar so that empty input is invalid.
1715 Adjust expectations.
1716 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
1718 2001-12-27 Akim Demaille <akim@epita.fr>
1720 * configure.in: Check the protos of strchr ans strspn.
1721 Replace strchr if needed.
1722 * src/system.h: Provide the protos of strchr, strspn and memchr if
1724 * lib/strchr.c: New.
1725 * src/reader.c (symbols_save): Use strchr.
1727 2001-12-27 Akim Demaille <akim@epita.fr>
1729 * src/print.c, src/print_graph.c (escape): New.
1730 Use it to quote the TAGS outputs.
1731 * src/print_graph.c (print_state): Now errors are in red, and
1732 reductions in green.
1733 Prefer high to wide: output the state number on a line of its own.
1735 2001-12-27 Akim Demaille <akim@epita.fr>
1737 * src/state.h, src/state.c (reductions_new): New.
1738 * src/LR0.c (set_state_table): Let all the states have a
1739 `reductions', even if reduced to 0.
1740 (save_reductions): Adjust.
1741 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
1742 * src/print.c (print_reductions, print_actions): Adjust.
1743 * src/output.c (action_row): Adjust.
1745 2001-12-27 Akim Demaille <akim@epita.fr>
1747 * src/state.h, src/state.c (errs_new, errs_dup): New.
1748 * src/LR0.c (set_state_table): Let all the states have an errs,
1749 even if reduced to 0.
1750 * src/print.c (print_errs, print_reductions): Adjust.
1751 * src/output.c (output_actions, action_row): Adjust.
1752 * src/conflicts.c (resolve_sr_conflict): Adjust.
1754 2001-12-27 Akim Demaille <akim@epita.fr>
1756 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
1758 2001-12-27 Akim Demaille <akim@epita.fr>
1760 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
1761 * src/print.c: here.
1762 (lookaheadset, shiftset): New, used as additional storage by
1764 (print_results): Adjust.
1765 (print_shifts, print_gotos, print_errs): New, extracted from...
1766 (print_actions): here.
1767 * src/print_graph.c (print_actions): Remove dead code.
1769 2001-12-27 Akim Demaille <akim@epita.fr>
1771 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
1774 2001-12-27 Akim Demaille <akim@epita.fr>
1776 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
1777 (build_relations): Adjust.
1779 2001-12-27 Akim Demaille <akim@epita.fr>
1781 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
1784 2001-12-27 Akim Demaille <akim@epita.fr>
1786 * src/reader.c (packgram): Catch nitems overflows.
1788 2001-12-27 Akim Demaille <akim@epita.fr>
1790 * src/files.c, src/files.h (guard_obstack): Remove.
1791 * src/output.c (output): Adjust.
1792 * src/reader.c (parse_braces): New, factoring...
1793 (copy_action, copy_guard): these two which are renamed as...
1794 (parse_action, parse_guard): these.
1795 As a voluntary consequence, using braces around guards is now
1798 2001-12-27 Akim Demaille <akim@epita.fr>
1800 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
1801 * src/reader.c (symbol_list): `guard' and `guard_line' are new
1803 (symbol_list_new): Adjust.
1804 (copy_action): action_line is the first line, not the last.
1805 (copy_guard): Just as for actions, store the `action' only, not
1806 the switch/case/break flesh.
1807 Don't parse the user action that might follow the guard, let...
1808 (readgram): do it, i.e., now, there can be an action after a
1810 In other words the guard is just explicitly optional.
1812 * src/output.c (guards_output): New.
1813 (output_parser): Call it when needed.
1814 (output): Also free the guard and attrs obstacks.
1815 * src/files.c, src/files.h (obstack_save): Remove.
1816 (output_files): Remove.
1817 As a result, if one needs the former `.act' file, using an
1818 appropriate skeleton which requires actions and guards is now
1820 * src/main.c (main): Adjust.
1821 * tests/semantic.at: New.
1822 * tests/regression.at: Use `input.y' as input file name.
1823 Avoid 8+3 problems by requiring input.c when the test needs the
1826 2001-12-27 Akim Demaille <akim@epita.fr>
1828 * src/reader.c (symbol_list_new): Be sure to initialize all the
1831 2001-12-27 Akim Demaille <akim@epita.fr>
1833 All the hacks using a final pseudo state are now useless.
1835 * src/LR0.c (set_state_table): state_table holds exactly nstates.
1836 * src/lalr.c (nLA): New.
1837 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
1838 instead of lookaheadsp from the pseudo state (nstate + 1).
1840 2001-12-27 Akim Demaille <akim@epita.fr>
1842 * src/output.c (action_row, token_actions): Use a state_t instead
1843 of a integer, and nlookaheads instead of the following state's
1846 2001-12-27 Akim Demaille <akim@epita.fr>
1848 * src/conflicts.c (log_resolution, flush_shift)
1849 (resolve_sr_conflict, set_conflicts, solve_conflicts)
1850 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
1851 (conflicts_print, print_reductions): Use a state_t instead of an
1852 integer when referring to a state.
1853 As much as possible, depend upon nlookaheads, instead of the
1854 `lookaheadsp' member of the following state (since lookaheads of
1855 successive states are successive, the difference between state n + 1
1856 and n served as the number of lookaheads for state n).
1857 * src/lalr.c (add_lookback_edge): Likewise.
1858 * src/print.c (print_core, print_actions, print_state)
1859 (print_results): Likewise.
1860 * src/print_graph.c (print_core, print_actions, print_state)
1861 (print_graph): Likewise.
1862 * src/conflicts.h: Adjust.
1864 2001-12-27 Akim Demaille <akim@epita.fr>
1866 * src/bison.hairy: Formatting/comment changes.
1868 Remove `register' indications.
1869 Add plenty of `static'.
1871 2001-12-27 Akim Demaille <akim@epita.fr>
1873 * src/output.c (prepare): Drop the muscle `ntbase' which
1875 * src/bison.simple: Formatting/comment changes.
1876 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
1877 is an undocumented synonym.
1879 2001-12-22 Akim Demaille <akim@epita.fr>
1881 * src/output.c (output_table_data): Change the prototype to use
1882 `int' for array ranges: some invocations do pass an int, not a
1884 Reported by Wayne Green.
1886 2001-12-22 Akim Demaille <akim@epita.fr>
1888 Some actions of web2c.y are improperly triggered.
1889 Reported by Mike Castle.
1891 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
1892 * tests/regression.at (Web2c): Rename as...
1893 (Web2c Report): this.
1894 (Web2c Actions): New.
1896 2001-12-22 Akim Demaille <akim@epita.fr>
1898 Reductions in web2c.y are improperly reported.
1899 Reported by Mike Castle.
1901 * src/conflicts.c (print_reductions): Fix.
1902 * tests/regression.at (Web2c): New.
1904 2001-12-18 Akim Demaille <akim@epita.fr>
1906 Some host fail on `assert (!"foo")', which expands to
1907 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
1908 Reported by Nelson Beebee.
1910 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
1911 `#define it_succeeded 0' and `assert (it_succeeded)'.
1913 2001-12-17 Marc Autret <autret_m@epita.fr>
1915 * src/bison.simple: Don't hard code the skeleton line and filename.
1916 * src/output.c (output_parser): Rename 'line' as 'output_line'.
1917 New line counter 'skeleton_line' (skeleton-line muscle).
1919 2001-12-17 Paul Eggert <eggert@twinsun.com>
1921 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
1922 YYDEBUG must be defined to a nonzero value.
1924 * src/bison.simple (yytname): Do not assume that the user defines
1925 YYDEBUG to a properly parenthesized expression.
1927 2001-12-17 Akim Demaille <akim@epita.fr>
1929 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
1930 nlookaheads is a new member.
1932 * src/lalr.h (nlookaheads): Remove this orphan declaration.
1933 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
1936 2001-12-17 Akim Demaille <akim@epita.fr>
1938 * src/files.h, src/files.c (open_files, close_files): Remove.
1939 * src/main.c (main): Don't open/close files, nor invoke lex_free,
1941 * src/reader.c (reader): Do it.
1943 2001-12-17 Akim Demaille <akim@epita.fr>
1945 * src/conflicts.c (print_reductions): Formatting changes.
1947 2001-12-17 Akim Demaille <akim@epita.fr>
1949 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
1950 (flush_reduce): New.
1951 (resolve_sr_conflict): Adjust.
1953 2001-12-17 Akim Demaille <akim@epita.fr>
1955 * src/output.c (output_obstack): Be static and rename as...
1956 (format_obstack): this, to avoid any confusion with files.c's
1958 * src/reader.h (muscle_obstack): Move to...
1959 * src/output.h: here, since it's defined in output.c.
1961 2001-12-17 Akim Demaille <akim@epita.fr>
1963 * src/output.c (action_row, save_column, default_goto)
1964 (sort_actions, matching_state, pack_vector): Better variable
1967 2001-12-17 Akim Demaille <akim@epita.fr>
1969 * src/output.c: Various formatting changes.
1971 2001-12-17 Akim Demaille <akim@epita.fr>
1973 * src/files.c (output_files): Free the output_obstack.
1974 * src/main.c (main): Call print and print_graph conditionally.
1975 * src/print.c (print): Work unconditionally.
1976 * src/print_graph.c (print_graph): Work unconditionally.
1977 * src/conflicts.c (log_resolution): Output only if verbose_flag.
1979 2001-12-16 Marc Autret <autret_m@epita.fr>
1981 * src/output.c (actions_output): Fix. When we use %no-lines,
1982 there is one less line per action.
1984 2001-12-16 Marc Autret <autret_m@epita.fr>
1986 * src/bison.simple: Remove a useless #line directive.
1987 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
1988 * src/output.c (get_lines_number): New.
1989 (output_parser): Adjust, now takes care about the lines of a
1992 (actions_output): Computes the number of lines taken by actions.
1993 (output_master_parser): Insert new skeleton which is the name of
1994 the output parser file name.
1996 2001-12-15 Marc Autret <autret_m@epita.fr>
1998 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
2000 2001-12-15 Marc Autret <autret_m@epita.fr>
2002 * src/output.c (output_gram): Keep track of the hairy one.
2004 2001-12-15 Akim Demaille <akim@epita.fr>
2006 Make `make distcheck' work.
2008 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
2009 system.h which uses libgettext.h.
2011 2001-12-15 Akim Demaille <akim@epita.fr>
2013 * src/nullable.c (set_nullable): Useless rules must be skipped,
2014 otherwise, since we range over their symbols, we might look at a
2015 nonterminal which no longer ``exists'', i.e., it is not counted in
2016 `nvars', hence we overflow our arrays.
2018 2001-12-15 Akim Demaille <akim@epita.fr>
2020 The header can also be produced directly, without any obstack!
2023 * src/files.c, src/files.h (defines_obstack): Remove.
2024 (compute_header_macro): Global.
2025 (defines_obstack_save): Remove.
2026 * src/reader.c (parse_union_decl): No longer output to
2027 defines_obstack: its content can be found in the `stype' muscle
2029 (output_token_translations): Merge into...
2030 (symbols_output): this.
2032 (symbols_save): this.
2034 * src/output.c (header_output): New.
2037 2001-12-15 Akim Demaille <akim@epita.fr>
2039 * src/reader.c (parse_union_decl): Instead of handling two obstack
2040 simultaneously, use one to define the `stype' muscle, and use the
2041 value of the latter to fill defines_obstack.
2042 (copy_comment): Remove.
2043 (copy_comment2): Work for a single obstack.
2045 (copy_comment): this.
2047 2001-12-15 Akim Demaille <akim@epita.fr>
2049 * src/lex.c, src/lex.h (xgetc): No longer static.
2050 * src/reader.c (parse_union_decl): Revamp.
2052 2001-12-15 Akim Demaille <akim@epita.fr>
2054 Still making progress in separating Bison into (i) input, (ii)
2055 process, (iii) output: now we can directly output the parser file
2056 without using table_obstack at all.
2058 * src/files.c, src/files.h (table_obstack): Bye bye.
2059 (parser_file_name): New.
2060 * src/files.c (compute_output_file_names): Compute it.
2061 * src/output.c (actions_output, output_parser)
2062 (output_master_parser): To a file instead of an obstack.
2064 2001-12-15 Akim Demaille <akim@epita.fr>
2066 Attach actions to rules, instead of pre-outputting them to
2069 * src/gram.h (rule_t): action and action_line are new members.
2070 * src/reader.c (symbol_list): Likewise.
2071 (copy_action): Save the actions within the rule.
2072 (packgram): Save them in rule_table.
2073 * src/output.c (actions_output): New.
2074 (output_parser): Use it on `%%actions'.
2075 (output_rule_data): Don't free rule_table.
2077 (prepare): Don't save the `action' muscle.
2078 * src/bison.simple: s/%%action/%%actions/.
2080 2001-12-15 Akim Demaille <akim@epita.fr>
2082 * src/reader.c (copy_action): When --yacc, don't append a `;'
2083 to the user action: let it fail if lacking.
2084 Suggested by Arnold Robbins and Tom Tromey.
2086 2001-12-14 Akim Demaille <akim@epita.fr>
2088 * src/lex.c (literalchar): Simply return the char you decoded, non
2089 longer mess around with obstacks and int pointers.
2092 2001-12-14 Akim Demaille <akim@epita.fr>
2094 * src/lex.c (literalchar): Don't escape the special characters,
2095 just decode them, and keep them as char (before, eol was output as
2096 the 2 char string `\n' etc.).
2097 * src/output.c (output_rule_data): Use quotearg to output the
2100 2001-12-13 Paul Eggert <eggert@twinsun.com>
2102 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
2103 Do not infringe on the global user namespace when using C++.
2104 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
2105 All uses of `fprintf' and `stderr' changed.
2107 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
2109 2001-12-13 Akim Demaille <akim@epita.fr>
2111 The computation of nullable is broken: it doesn't handle empty
2114 * tests/torture.at (GNU AWK Grammar): New.
2115 * tests/sets.at (Nullable): New.
2116 * src/nullable.c (set_nullable): Instead of blindly looping over
2117 `ritems', loop over the rules, and then over their rhs's.
2119 Work around Autotest bugs.
2121 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
2122 frame, because Autotest understand lines starting with a `+' as
2123 traces from the shell. Then, they are not processed properly.
2124 Admittedly an Autotest bug, but we don't have time to wait for
2125 Autotest to catch up.
2126 * tests/regression.at (Broken Closure): Adjust to the new table
2129 * tests/sets.at: here.
2131 2001-12-13 Akim Demaille <akim@epita.fr>
2133 * src/closure.c (closure): Use nrules instead of playing tricks
2136 2001-12-13 Akim Demaille <akim@epita.fr>
2138 * src/print.c (print_actions): Output the handling of `$' as the
2139 traces do: shifting the token EOF. Before EOF was treated as a
2141 * tests/regression.at: Adjust some tests.
2142 * src/print_graph.c (print_core): Complete the set of items via
2143 closure. The next-to-final and final states are still unsatisfying,
2144 but that's to be addressed elsewhere.
2145 No longer output the rule numbers, but do output the state number.
2146 A single loop for the shifts + gotos is enough, but picked a
2147 distinct color for each.
2148 (print_graph): Initialize and finalize closure.
2150 2001-12-13 Akim Demaille <akim@epita.fr>
2152 * src/reader.c (readgram): Remove dead code, an strip useless
2154 (get_type): Remove, unused.
2156 2001-12-12 Akim Demaille <akim@epita.fr>
2158 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
2159 on that of lib/error.c.
2161 2001-12-12 Akim Demaille <akim@epita.fr>
2163 Some hosts don't like `/' in includes.
2165 * src/system.h: Include libgettext.h without qualifying the path.
2166 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
2169 2001-12-11 Marc Autret <autret_m@epita.fr>
2171 * src/output.c (output_parser): Remove useless muscle.
2173 2001-12-11 Marc Autret <autret_m@epita.fr>
2175 * src/bison.simple: Remove #line just before %%epilogue. It
2176 is now handled in ...
2177 * src/reader.c (read_additionnal_code): Add the output of a
2178 #line for the epilogue.
2180 2001-12-10 Marc Autret <autret_m@epita.fr>
2182 * src/reader.c (copy_definition): Re-use CPP-outed code which
2183 replace precedent remove.
2184 * src/bison.simple: Remove #line before %%prologue because
2185 %%input-line is wrong at this time.
2187 2001-12-10 Marc Autret <autret_m@epita.fr>
2189 * src/reader.c (symbols_output): Clean up.
2190 * src/output.c (output_gram, output): Clean up.
2192 2001-12-10 Akim Demaille <akim@epita.fr>
2194 * src/lalr.c (initialize_lookaheads): New. Extracted from...
2195 * src/LR0.c (set_state_table): here.
2196 * src/lalr.c (lalr): Call it.
2198 2001-12-10 Akim Demaille <akim@epita.fr>
2200 * src/state.h (shifts): Remove the `number' member: shifts are
2201 attached to state, hence no longer need to be labelled with a
2204 2001-12-10 Akim Demaille <akim@epita.fr>
2206 Now that states have a complete set of members, the linked list of
2207 shifts is useless: just fill directly the state's shifts member.
2209 * src/state.h (shifts): Remove the `next' member.
2210 * src/LR0.c (first_state, last_state): Remove.
2212 (augment_automaton): Don't look for the shifts that must be added
2213 a shift on EOF: it is those of the state we looked for! But now,
2214 since shifts are attached, it is no longer needed to looking
2215 merely by its id: its number.
2217 2001-12-10 Akim Demaille <akim@epita.fr>
2219 * src/LR0.c (augment_automaton): Better variable locality.
2220 Remove an impossible branch: if there is a state corresponding to
2221 the start symbol being shifted, then there is shift for the start
2222 symbol from the initial state.
2224 2001-12-10 Akim Demaille <akim@epita.fr>
2226 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
2227 only when appropriate: when insert_start_shifting_state' is not
2229 * tests/regression.at (Rule Line Numbers): Adjust.
2231 2001-12-10 Akim Demaille <akim@epita.fr>
2233 * src/LR0.c (augment_automaton): Now that all states have shifts,
2234 merge the two cases addition shifts to the initial state.
2236 2001-12-10 Akim Demaille <akim@epita.fr>
2238 * src/lalr.c (set_state_table): Move to...
2240 * src/lalr.c (lalr): Don't call it...
2241 * src/LR0.c (generate_states): do it.
2242 * src/LR0.h (first_state): Remove, only the table is used.
2244 2001-12-10 Akim Demaille <akim@epita.fr>
2246 * src/LR0.h (first_shift, first_reduction): Remove.
2247 * src/lalr.c: Don't use first_shift: find shifts through the
2250 2001-12-10 Akim Demaille <akim@epita.fr>
2252 * src/LR0.c: Attach shifts to states as soon as they are
2254 * src/lalr.c (set_state_table): Instead of assigning shifts to
2255 state, just assert that the mapping was properly done.
2257 2001-12-10 Akim Demaille <akim@epita.fr>
2259 * src/LR0.c (insert_start_shift): Rename as...
2260 (insert_start_shifting_state): this.
2261 (insert_eof_shifting_state, insert_accepting_state): New.
2262 (augment_automaton): Adjust.
2263 Better locality of the variables.
2264 When looking if the start_symbol is shifted from the initial
2265 state, using `while (... symbol != start_symbol ...)' sounds
2266 better than `while (... symbol < start_symbol ...)': If fail
2267 to see how the order between symbols could be relevant!
2269 2001-12-10 Akim Demaille <akim@epita.fr>
2271 * src/getargs.h: Don't declare `spec_name_prefix' and
2272 `spec_file_prefix', declared by src/files.h.
2273 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
2274 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
2275 * src/output.c (prepare): Adjust.
2276 * src/reader.c (symbols_output): Likewise.
2277 * src/vmsgetargs.c: Vaguely adjust, but who cares?
2279 2001-12-10 Akim Demaille <akim@epita.fr>
2281 * src/muscle_tab.c (muscle_init): NULL is a better default than
2284 2001-12-10 Akim Demaille <akim@epita.fr>
2286 * src/reader.c (reader): Calling symbols_output once is enough.
2288 2001-12-10 Akim Demaille <akim@epita.fr>
2290 Now that states have a complete set of members, the linked list of
2291 reductions is useless: just fill directly the state's reductions
2294 * src/state.h (struct reductions): Remove member `number' and
2296 * src/LR0.c (first_reduction, last_reduction): Remove.
2297 (save_reductions): Don't link the new reductions, store them in
2299 * src/lalr.c (set_state_table): No need to attach reductions to
2300 states, it's already done.
2301 * src/output.c (output_actions): No longer free the shifts, then
2302 the reductions, then the states: free all the states and their
2305 2001-12-10 Akim Demaille <akim@epita.fr>
2307 * src/options.c (OPTN, DRTV, BOTH): New.
2308 (option_table): Use them.
2310 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
2311 the job of system.h.
2312 * src/options.c: Don't include stdio.h and xalloc.h for the same
2315 2001-12-10 Akim Demaille <akim@epita.fr>
2317 * src/output.c (output, prepare): Make sure the values of the
2318 muscles `action' and `prologue' are 0-terminated.
2320 2001-12-10 Akim Demaille <akim@epita.fr>
2322 Clean up GCC warnings.
2324 * src/reader.c (copy_action): `buf' is not used.
2325 (parse_skel_decl): Be static.
2326 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
2327 * src/options.h (create_long_option_table): Have a real prototype.
2328 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
2329 (hash_delete_at): Return const void *.
2330 Adjust casts to preserve the const.
2332 2001-12-10 Akim Demaille <akim@epita.fr>
2334 * configure.in: Require 2.52g.
2335 M4 is not needed, but AUTOM4TE is.
2337 * tests/Makefile.am: Adjust.
2339 2001-12-10 Akim Demaille <akim@epita.fr>
2341 One structure for states is enough, even though theoretically
2342 there are LR(0) states and LALR(1) states.
2344 * src/lalr.h (state_t): Remove.
2345 (state_table): Be state_t **, not state_t *.
2346 * src/state.h (core, CORE_ALLOC): Rename as...
2347 (state_t, STATE_ALLOC): this.
2348 Add the LALR(1) members: shifts, reductions, errs.
2349 * src/LR0.c (state_table): Rename as...
2350 (state_hash): this, to avoid name clashes with the global
2352 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
2353 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
2355 2001-12-10 Akim Demaille <akim@epita.fr>
2357 Bison dumps core on bash.y.
2358 Reported by Pascal Bart.
2360 * src/warshall.c (bitmatrix_print): New.
2362 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
2363 j must be the outer loop.
2364 * tests/regression.at (Broken Closure): New.
2366 2001-12-05 Akim Demaille <akim@epita.fr>
2368 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
2370 Reported by Peter Hámorský.
2372 2001-12-05 Akim Demaille <akim@epita.fr>
2374 * src/conflicts.c (err_table): Remove.
2375 (resolve_sr_conflict): Adjust.
2376 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
2378 (state_t.reductions, state_t.shifts): this.
2380 2001-12-05 Akim Demaille <akim@epita.fr>
2382 * src/reduce.c (reduce_grammar_tables): No longer disable the
2383 removal of useless rules via CPP but via `if (0)', so that the
2384 compiler still check the code is valid.
2385 For instance, it should have noticed `rline' no longer exists: use
2386 the `line' member of rule_t.
2387 * src/gram.c (dummy, rline): Remove, unused.
2389 2001-12-05 Akim Demaille <akim@epita.fr>
2391 * src/output.c (pack_vector): Use assert, not berror.
2392 * src/main.c (berror): Remove, unused.
2394 2001-12-05 Akim Demaille <akim@epita.fr>
2396 New experimental feature: if --verbose --trace output all the
2397 items of a state, not only its kernel.
2399 * src/print.c (print_core): If `trace_flag', then invoke closure
2400 before outputting the items of the state (print_core is no longer
2401 a correct name them).
2402 (print_results): Invoke new_closure/free_closure if needed.
2404 2001-12-05 Akim Demaille <akim@epita.fr>
2406 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
2407 * src/closure.c, src/closure.h (itemsetsize): Rename as...
2408 (nitemset): for consistency with the rest of the project.
2410 2001-12-05 Akim Demaille <akim@epita.fr>
2412 * src/closure.c (print_closure): Improve.
2413 (closure): Use it for printing input and output.
2415 2001-12-05 Akim Demaille <akim@epita.fr>
2417 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
2418 indexed by nonterminals.
2420 2001-12-05 Akim Demaille <akim@epita.fr>
2422 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
2424 * src/warshall.h: Remove accidental duplication of the content.
2426 2001-12-05 Akim Demaille <akim@epita.fr>
2428 * src/closure.c (set_fderives): De-obfuscate.
2430 2001-12-05 Akim Demaille <akim@epita.fr>
2432 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
2434 2001-12-05 Akim Demaille <akim@epita.fr>
2436 * src/closure.c (set_firsts): De-obfuscate.
2438 2001-12-05 Akim Demaille <akim@epita.fr>
2440 * src/output.c (action_row): De-obfuscate
2441 using the good o' techniques: arrays not pointers, variable
2442 locality, BITISSET, RESETBIT etc.
2444 2001-12-05 Akim Demaille <akim@epita.fr>
2446 Pessimize the code to simplify it: from now on, all the states
2447 have a valid SHIFTS, which NSHIFTS is possibly 0.
2449 * src/LR0.c (shifts_new): Be global and move to..
2450 * src/state.c, src/state.h: here.
2451 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
2452 * src/print_graph: Adjust.
2454 2001-12-05 Akim Demaille <akim@epita.fr>
2456 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
2457 * src/conflicts.c: Use it.
2458 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
2459 incorrectly ``simplified''.
2461 2001-12-05 Akim Demaille <akim@epita.fr>
2463 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
2464 using the good o' techniques: arrays not pointers, variable
2465 locality, BITISSET, RESETBIT etc.
2467 2001-12-05 Akim Demaille <akim@epita.fr>
2469 * src/state.h (SHIFT_SYMBOL): New.
2470 * src/conflicts.c: Use it to deobfuscate.
2472 2001-12-05 Akim Demaille <akim@epita.fr>
2474 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
2475 (print_reductions): De-obfuscate using the good o' techniques:
2476 arrays not pointers, variable locality, BITISSET.
2478 2001-12-05 Akim Demaille <akim@epita.fr>
2480 * src/conflicts.c (print_reductions): Arrays, not pointers.
2483 2001-12-05 Akim Demaille <akim@epita.fr>
2485 * src/conflicts.c (print_reductions): Pessimize, but clarify.
2487 2001-12-05 Akim Demaille <akim@epita.fr>
2489 * src/conflicts.c (print_reductions): Improve variable locality.
2491 2001-12-05 Akim Demaille <akim@epita.fr>
2493 * src/conflicts.c (print_reductions): Pessimize, but clarify.
2495 2001-12-05 Akim Demaille <akim@epita.fr>
2497 * src/conflicts.c (print_reductions): Improve variable locality.
2499 2001-12-05 Akim Demaille <akim@epita.fr>
2501 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
2502 * src/lalr.c: Use them.
2504 2001-12-05 Akim Demaille <akim@epita.fr>
2506 * src/LR0.c (augment_automaton): Formatting changes.
2507 Better variable locality.
2509 2001-12-05 Akim Demaille <akim@epita.fr>
2511 * src/lalr.c (matrix_print): New.
2512 (transpose): Use it.
2513 Use arrays instead of pointers.
2515 2001-12-05 Akim Demaille <akim@epita.fr>
2517 * src/lalr.c (maxrhs): Move to...
2518 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
2519 * src/lalr.c (build_relations): Adjust.
2521 2001-12-05 Akim Demaille <akim@epita.fr>
2523 * src/lalr.c (transpose): Free the memory allocated to the
2524 argument, as it is replaced by the results by the unique caller.
2525 (build_relations): Merely invoke transpose: it handles the memory
2527 Improve variable locality.
2528 Avoid variables used as mere abbreviations.
2529 (compute_lookaheads): Use arrays instead of pointers.
2531 2001-12-05 Akim Demaille <akim@epita.fr>
2533 * src/lalr.c (initialize_F): Improve variable locality.
2534 Avoid variables used as mere abbreviations.
2536 2001-12-05 Akim Demaille <akim@epita.fr>
2538 * src/derives.c (print_derives): Display the ruleno.
2539 * src/lalr.c (initialize_F, transpose): Better variable locality
2540 to improve readability.
2541 Avoid variables used as mere abbreviations.
2543 2001-12-05 Akim Demaille <akim@epita.fr>
2545 * src/lalr.c (traverse): Use arrays instead of pointers.
2547 2001-12-05 Akim Demaille <akim@epita.fr>
2549 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
2550 the handling of squeue.
2551 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
2553 2001-12-05 Akim Demaille <akim@epita.fr>
2555 Because useless nonterminals are now kept alive (instead of being
2556 `destroyed'), we now sometimes examine them, and store information
2557 related to them. Hence we need to know their number, and adjust
2560 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
2562 * src/LR0.c (allocate_itemsets): The memory allocated to
2563 `symbol_count' was used for two different purpose: once to count
2564 the number of occurrences of each symbol, and later reassigned to
2565 `shift_symbol', containing the symbol that can be shifted from a
2567 Deobfuscate, i.e., allocate, use and free `symbol_count' here
2569 (new_itemsets): Allocate `shift_symbol' here.
2570 (allocate_itemsets): symbol_count includes useless nonterminals.
2572 (free_storage): Use `free', not `XFREE', for pointers that cannot
2575 2001-12-05 Akim Demaille <akim@epita.fr>
2577 * src/nullable.c (set_nullable): Deobfuscate the handling of
2579 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
2581 2001-12-05 Akim Demaille <akim@epita.fr>
2583 * src/gram.c, src/gram.h (ritem_print): New.
2584 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
2585 (This useless function was defined only to work around VMS linkers
2586 that can't handle compilation units with variables only).
2587 * src/reduce.c (dump_grammar): Use it to trace the construction of
2590 2001-12-04 Paul Eggert <eggert@twinsun.com>
2592 * src/bison.simple (union yyalloc): Change member names
2593 to be the same as the stack names.
2594 (yyparse): yyptr is now union yyalloc *, not char *.
2595 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
2596 and may generate better code on some machines.
2597 (yystpcpy): Use prototype if __STDC__ is defined, not just
2598 if __cplusplus is defined.
2600 2001-11-30 Akim Demaille <akim@epita.fr>
2602 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
2603 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
2604 Gettext doesn't compile cleanly, and dies with -Werror.
2605 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
2606 Include WARNING_CFLAGS here.
2607 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
2608 before being defined.
2610 2001-11-27 Paul Eggert <eggert@twinsun.com>
2612 * lib/quotearg.h (quotearg_n, quotearg_n_style):
2613 First arg is int, not unsigned.
2614 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
2615 (SIZE_MAX, UINT_MAX): New macros.
2616 (quotearg_n_options): Abort if N is negative.
2617 Avoid overflow check on hosts where size_t is 64 bits and int
2618 is 32 bits, as overflow is impossible there.
2619 Fix off-by-one typo that caused unnecessary reallocation.
2621 2001-11-29 Paul Eggert <eggert@twinsun.com>
2623 Name space cleanup in generated parser.
2625 * doc/bison.texinfo (Bison Parser): Discuss system headers
2626 and their effect on the user name space.
2629 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
2630 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
2631 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
2633 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
2634 on user names when possible.
2636 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
2637 Simplify test for whather <alloca.h> exists.
2639 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
2641 (<stdio.h>): Include if YYDEBUG.
2643 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
2644 ! defined (yyoverflow) && ! defined (yymemcpy).
2646 (yymemcpy, yyparse): Rename local variables as needed so that
2647 they all begin with 'yy'.
2649 (yystrlen, yystpcpy): New functions.
2651 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
2654 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
2655 instead of relying on string.h functions. Use YYSTACK_ALLOC
2656 and YYSTACK_FREE instead of malloc and free.
2658 2001-11-30 Akim Demaille <akim@epita.fr>
2660 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
2661 before their first uses.
2662 (YYBISON, YYPURE): Move to the top of the output.
2664 2001-11-30 Akim Demaille <akim@epita.fr>
2666 * tests/reduce.at (Useless Nonterminals): Fix.
2668 2001-11-30 Akim Demaille <akim@epita.fr>
2670 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
2671 if body instead of `;' to pacify GCC's warnings.
2673 2001-11-30 Akim Demaille <akim@epita.fr>
2675 Instead of mapping the LHS of unused rules to -1, keep the LHS
2676 valid, but flag the rules as invalid.
2678 * src/gram.h (rule_t): `useful' is a new member.
2679 * src/print.c (print_grammar): Adjust.
2680 * src/derives.c (set_derives): Likewise.
2681 * src/reader.c (packgram, reduce_output): Likewise.
2682 * src/reduce.c (reduce_grammar_tables): Likewise.
2683 * tests/reduce.at (Underivable Rules, Useless Rules): New.
2685 2001-11-30 Akim Demaille <akim@epita.fr>
2687 * src/reduce.c (reduce_output): Formatting changes.
2688 * src/print.c (print_results, print_grammar): Likewise.
2689 * tests/regression.at (Rule Line Numbers)
2690 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
2692 2001-11-30 Akim Demaille <akim@epita.fr>
2694 * src/reduce.c (nonterminals_reduce): Instead of throwing away
2695 useless nonterminals, move them at the end of the symbol arrays.
2696 (reduce_output): Adjust.
2697 * tests/reduce.at (Useless Nonterminals): Adjust.
2699 2001-11-30 Akim Demaille <akim@epita.fr>
2701 * src/reduce.c: Various comment/formatting changes.
2702 (nonterminals_reduce): New, extracted from...
2703 (reduce_grammar_tables): here.
2704 (reduce_grammar): Call nonterminals_reduce.
2706 2001-11-29 Paul Eggert <eggert@twinsun.com>
2708 * src/bison.simple (YYSTACK_REALLOC): Remove.
2709 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
2710 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
2712 (union yyalloc): New type.
2713 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
2714 an arbitrary restriction on hosts where size_t is wider than int.
2716 (yyparse): Don't dump core if alloca or malloc fails; instead, report
2717 a parser stack overflow. Allocate just one block of memory for all
2718 three stacks, instead of allocating three blocks; this typically is
2719 faster and reduces fragmentation.
2721 Do not limit the number of items in the stack to a value that fits
2722 in 'int', as this is an arbitrary limit on hosts with 64-bit
2723 size_t and 32-bit int.
2725 2001-11-29 Marc Autret <autret_m@epita.fr>
2727 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
2728 of defining YYERROR_VERBOSE.
2729 [AT_DATA]: $4 is now out of C declarations in the prologue.
2731 2001-11-28 Marc Autret <autret_m@epita.fr>
2733 * src/reader.c (parse_dquoted_param): New.
2734 (parse_skel_decl): Use it.
2735 * src/lex.h: Add its prototype.
2736 * src/lex.c (literalchar): Become not static.
2738 2001-11-28 Marc Autret <autret_m@epita.fr>
2740 * src/output.h: And put its extern declaration here.
2741 * src/output.c (error_verbose): Define here.
2742 (prepare): Echo name modification.
2743 * src/getargs.h: Clean its extern declaration.
2744 * src/getargs.c (error_verbose_flag): Remove.
2745 (getargs): Remove case 'e'.
2746 * src/options.c (option_table): 'error-verbose' is now seen as simple
2750 * src/reader.c (read_declarations): Remove case tok_include.
2751 (parse_include_decl): Remove.
2752 * src/lex.h (token_t): Remove tok_include.
2753 * src/options.c (option_table): 'include' is now a simple command line
2756 2001-11-28 Marc Autret <autret_m@epita.fr>
2758 * src/bison.simple: Adjust muscle names.
2759 * src/muscle_tab.c (muscle_init): Also rename the muscles.
2760 * src/output.c (prepare): s/_/-/ for the muscles names.
2761 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
2763 2001-11-28 Marc Autret <autret_m@epita.fr>
2765 * src/bison.simple: Fix debug.
2766 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
2768 2001-11-28 Akim Demaille <akim@epita.fr>
2770 * src/LR0.c (shifts_new): New.
2771 (save_shifts, insert_start_shift, augment_automaton): Use it.
2773 2001-11-28 Akim Demaille <akim@epita.fr>
2775 * src/closure.c (closure): `b' and `ruleno' denote the same value:
2778 2001-11-28 Akim Demaille <akim@epita.fr>
2780 * src/closure.c (closure): Instead of looping over word in array
2781 then bits in words, loop over bits in array.
2783 2001-11-28 Akim Demaille <akim@epita.fr>
2785 * src/closure.c (closure): No longer optimize the special case
2786 where all the bits of `ruleset[r]' are set to 0, to make the code
2789 2001-11-28 Akim Demaille <akim@epita.fr>
2791 * src/closure.c (closure): `r' and `c' are new variables, used to
2792 de-obfuscate accesses to RULESET and CORE.
2794 2001-11-28 Akim Demaille <akim@epita.fr>
2796 * src/reduce.c (reduce_print): Use ngettext.
2797 (dump_grammar): Improve the trace accuracy.
2799 2001-11-28 Akim Demaille <akim@epita.fr>
2801 * src/reduce.c (dump_grammar): Don't translate trace messages.
2803 2001-11-28 Akim Demaille <akim@epita.fr>
2805 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
2806 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
2807 as all tags are free'ed afterwards.
2810 2001-11-27 Paul Eggert <eggert@twinsun.com>
2812 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
2813 use alloca when we didn't want to, and vice versa.
2815 2001-11-27 Marc Autret <autret_m@epita.fr>
2817 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
2819 * src/output.c (prepare): Remove its update.
2821 2001-11-27 Marc Autret <autret_m@epita.fr>
2823 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
2826 2001-11-27 Marc Autret <autret_m@epita.fr>
2828 * src/bison.simple: Remove YYERROR_VERBOSE using.
2829 Use %%error_verbose.
2830 (yyparse): Likewise.
2831 * src/output.c (prepare): Give its final value.
2832 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
2833 * src/getargs.h: Add its extern declaration.
2834 * src/getargs.c (error_verbose_flag): New int.
2835 (getargs): Update to catch new case.
2836 * src/options.c (option_table): 'error-verbose' is a new option.
2837 (shortopts): Update.
2839 2001-11-27 Akim Demaille <akim@epita.fr>
2841 * src/system.h: Use intl/libgettext.h.
2842 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
2844 2001-11-27 Akim Demaille <akim@epita.fr>
2846 * tests/torture.at (Exploding the Stack Size with Malloc):
2847 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
2849 2001-11-27 Akim Demaille <akim@epita.fr>
2851 * src/files.c: Include error.h.
2852 Reported by Hans Aberg.
2854 2001-11-26 Marc Autret <autret_m@epita.fr>
2856 * src/reader.c (parse_include_decl): New, not yet implemented.
2857 (read_declarations): Add case tok_include.
2858 * src/getargs.h (include): Add its extern definition.
2859 * src/getargs.c (include): New const char *.
2860 (getargs): Add case '-I'.
2861 * src/options.c (option_table): Add include as command line and
2863 * src/lex.h (token_t): Add tok_include.
2865 2001-11-26 Akim Demaille <akim@epita.fr>
2867 * src/reader.c (readgram): Make sure rules for mid-rule actions
2868 have a lineno equal to that of their host rule.
2869 Reported by Hans Aberg.
2870 * tests/regression.at (Rule Line Numbers): New.
2872 2001-11-26 Akim Demaille <akim@epita.fr>
2874 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
2877 2001-11-26 Akim Demaille <akim@epita.fr>
2879 * src/complain.c, src/complain.h (error): Remove, provided by
2882 2001-11-26 Akim Demaille <akim@epita.fr>
2884 * src/reader.c (read_declarations): Don't abort on tok_illegal,
2885 issue an error message.
2886 * tests/regression.at (Invalid %directive): New.
2887 Reported by Hans Aberg.
2889 2001-11-26 Akim Demaille <akim@epita.fr>
2891 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
2892 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
2894 2001-11-26 Akim Demaille <akim@epita.fr>
2896 * src/conflicts.c (conflicts_print): Don't complain at all when
2897 there are no reduce/reduce conflicts, and as many shift/reduce
2898 conflicts as expected.
2899 * tests/regression.at (%expect right): Adjust.
2901 2001-11-23 Akim Demaille <akim@epita.fr>
2903 * lib/alloca.c: Update, from fileutils.
2905 2001-11-23 Akim Demaille <akim@epita.fr>
2907 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
2909 2001-11-23 Akim Demaille <akim@epita.fr>
2911 * src/system.h: Include alloca.h.
2912 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
2914 2001-11-23 Akim Demaille <akim@epita.fr>
2916 * src/print_graph.c (print_actions): Remove `rule', unused.
2917 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
2918 pacify GCC's signed < unsigned warnings.
2919 * src/closure.c (itemsetsize): Likewise.
2920 * src/reader.c (symbol_list_new): Static.
2922 2001-11-23 Akim Demaille <akim@epita.fr>
2924 Attaching lineno to buckets is stupid, since only one copy of each
2925 symbol is kept, only the line of the first occurrence is kept too.
2927 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
2928 * src/reader.c (rline_allocated): Remove, unused.
2929 (symbol_list): Have a `line' member.
2930 (symbol_list_new): New.
2932 * src/print.c (print_grammar): Output the rule line numbers.
2933 * tests/regression.at (Solved SR Conflicts)
2934 (Unresolved SR Conflicts): Adjust.
2935 Reported by Hans Aberg.
2937 2001-11-22 Marc Autret <autret_m@epita.fr>
2939 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
2941 2001-11-22 Marc Autret <autret_m@epita.fr>
2943 * src/muscle_tab.c (muscle_init): Remove initialization of
2945 * src/output.c (output_master_parser): Do it here.
2947 2001-11-20 Akim Demaille <akim@epita.fr>
2950 * configure.in (ALL_LINGUAS): Adjust.
2951 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
2952 longer contains strings to translate.
2954 2001-11-19 Akim Demaille <akim@epita.fr>
2956 * src/conflicts.c (conflicts_print): Add a missing \n.
2958 2001-11-19 Akim Demaille <akim@epita.fr>
2960 * src/nullable.c (nullable_print): New.
2961 (set_nullable): Call it when tracing.
2962 Better locality of variables.
2964 2001-11-19 Akim Demaille <akim@epita.fr>
2966 * src/print.c (print_actions): Better locality of variables.
2968 2001-11-19 Akim Demaille <akim@epita.fr>
2970 * src/derives.c (print_derives): Fix and enrich.
2971 * src/closure.c (print_fderives): Likewise.
2973 2001-11-19 Akim Demaille <akim@epita.fr>
2975 * src/closure.c (itemsetend): Remove, replaced with...
2978 2001-11-19 Akim Demaille <akim@epita.fr>
2980 * src/LR0.c (kernel_end): Remove, replaced with...
2983 2001-11-19 Akim Demaille <akim@epita.fr>
2985 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
2988 2001-11-19 Akim Demaille <akim@epita.fr>
2990 * src/closure.c (closure): Use arrays instead of pointers to clarify.
2992 2001-11-19 Akim Demaille <akim@epita.fr>
2994 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
2996 * src/LR0.c: Likewise.
2997 (allocate_itemsets): Use arrays instead of pointers to clarify.
2999 2001-11-19 Akim Demaille <akim@epita.fr>
3001 * src/getargs.c (statistics_flag): Replace with...
3003 (longopts): Accept --trace instead of --statistics.
3004 * src/getargs.h, src/options.c: Adjust.
3005 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
3006 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
3008 2001-11-19 Akim Demaille <akim@epita.fr>
3010 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
3011 pointers to clarify the code.
3012 (save_reductions, save_shifts): Factor common parts of alternatives.
3014 2001-11-19 Akim Demaille <akim@epita.fr>
3016 * src/LR0.c (new_state, get_state): Complete TRACE code.
3017 * src/closure.c: Include `reader.h' to get `tags', needed by the
3019 Rename the conditional DEBUG as TRACE.
3020 Output consistently TRACEs to stderr, not stdout.
3021 * src/derives.c: Likewise.
3022 * src/reduce.c: (inaccessable_symbols): Using if is better style
3024 Use `#if TRACE' instead of `#if 0' for tracing code.
3026 2001-11-19 Akim Demaille <akim@epita.fr>
3028 * src/system.h (LIST_FREE, shortcpy): New.
3029 * src/LR0.c: Use them.
3030 * src/output.c (free_itemsets, free_reductions, free_shifts):
3031 Remove, replaced by LIST_FREE.
3033 2001-11-19 Akim Demaille <akim@epita.fr>
3035 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
3036 (REDUCTIONS_ALLOC): New.
3037 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
3040 2001-11-19 Akim Demaille <akim@epita.fr>
3042 * src/LR0.c (new_state): Complete trace code.
3043 * src/nullable.c (set_nullable): Don't translate traces.
3045 2001-11-19 Akim Demaille <akim@epita.fr>
3047 * src/print_graph.c (print_core): Better locality of variables.
3048 * src/print.c (print_core): Likewise.
3050 2001-11-19 Akim Demaille <akim@epita.fr>
3052 * src/vcg.c: You do the output, so you are responsible of the
3053 handling of VCG syntax, in particular: use quotearg.
3054 * src/print_graph.c: Don't.
3055 (print_actions): Don't output the actions as part of the nodes,
3056 since that's the job of the edges.
3057 (print_state): Don't output by hand: fill the node description,
3058 and ask for its output.
3060 2001-11-19 Akim Demaille <akim@epita.fr>
3062 * src/bison.simple (yyparse): When verbosely reporting an error,
3063 no longer put additional quotes around token names.
3064 * tests/calc.at: Adjust.
3066 2001-11-19 Akim Demaille <akim@epita.fr>
3068 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
3069 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
3070 * src/output.c: Adjust.
3072 2001-11-19 Akim Demaille <akim@epita.fr>
3074 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
3076 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
3078 2001-11-19 Akim Demaille <akim@epita.fr>
3080 * src/gram.h (rule_t): New.
3082 (rrhs, rlhs): Remove, part of state_t.
3083 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
3084 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
3085 * src/reader.c, src/reduce.c: Adjust.
3087 2001-11-19 Akim Demaille <akim@epita.fr>
3089 * src/reader.c (symbols_output): New, extracted from...
3090 (packsymbols): Here.
3093 2001-11-19 Akim Demaille <akim@epita.fr>
3095 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
3096 (maxrhs): this new function.
3098 2001-11-19 Akim Demaille <akim@epita.fr>
3100 * src/lalr.c (F): New macro to access the variable F.
3103 2001-11-19 Akim Demaille <akim@epita.fr>
3105 * src/lalr.h (LA): New macro to access the variable LA.
3106 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3107 * src/lalr.c: Adjust.
3109 2001-11-19 Akim Demaille <akim@epita.fr>
3111 * src/lalr.c (initialize_LA): Only initialize LA. Let...
3112 (set_state_table): handle the `lookaheads' members.
3114 2001-11-19 Akim Demaille <akim@epita.fr>
3116 * src/lalr.h (lookaheads): Removed array, whose contents is now
3118 (state_t): this structure.
3119 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3122 2001-11-19 Akim Demaille <akim@epita.fr>
3124 * src/lalr.h (consistent): Removed array, whose contents is now
3126 (state_t): this structure.
3127 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3130 2001-11-19 Akim Demaille <akim@epita.fr>
3132 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
3133 contents are now members of...
3134 (state_t): this structure.
3135 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3138 2001-11-19 Akim Demaille <akim@epita.fr>
3140 * src/lalr.h (state_t): New.
3141 (state_table): Be a state_t * instead of a core **.
3142 (accessing_symbol): Remove, part of state_t.
3143 * src/lalr.c: Adjust.
3144 (set_accessing_symbol): Merge into...
3145 (set_state_table): this.
3146 * src/print_graph.c, src/conflicts.c: Adjust.
3148 2001-11-14 Akim Demaille <akim@epita.fr>
3150 * tests/calc.at, tests/output.at, tests/regression.at,
3151 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
3152 now the tests are run in private dirs, therefore AC_CLEANUP and
3153 family can be simplified to 0-ary.
3154 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
3155 use abs. path to find config.h.
3156 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
3157 stderr, there can be way too much random noise.
3158 Instead pass -Werror to GCC and rely on the exit status.
3159 Reported by Wolfram Wagner.
3161 2001-11-14 Akim Demaille <akim@epita.fr>
3163 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
3164 defined only if yyoverflow is defined, to avoid `warning: unused
3166 Reported by The Test Suite.
3168 2001-11-14 Akim Demaille <akim@epita.fr>
3170 * src/print.c: Include reduce.h.
3171 Reported by Hans Aberg.
3173 2001-11-14 Akim Demaille <akim@epita.fr>
3175 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
3176 Revert a previous patch: these are really const.
3177 * src/conflicts.c (conflict_report): Additional useless pair of
3178 braces to pacify GCC's warnings for `if () if () {} else {}'.
3179 * src/lex.c (parse_percent_token): Replace equal_offset with
3182 Be sure to strdup `arg' when used, since there is no reason for
3183 token_buffer not to change.
3185 2001-11-14 Akim Demaille <akim@epita.fr>
3187 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
3189 * src/main.c (main): Use them.
3190 Suggested by Hans Aberg.
3192 2001-11-12 Akim Demaille <akim@epita.fr>
3194 * src/system.h (ngettext): Now that we use ngettext, be sure to
3195 provide a default definition when NLS are not used.
3197 2001-11-12 Akim Demaille <akim@epita.fr>
3199 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
3200 Use @kbd to denote user input.
3201 (Language and Grammar): ANSIfy the example.
3202 Adjust its layout for info/notinfo.
3203 (Location Tracking Calc): Output error messages to stderr.
3204 Output locations in a more GNUtically correct way.
3205 Fix a couple of Englishos.
3206 Adjust @group/@end group pairs.
3208 2001-11-12 Akim Demaille <akim@epita.fr>
3210 %expext was not functioning at all.
3212 * src/conflicts.c (expected_conflicts): Set to -1.
3213 (conflict_report): Use ngettext.
3214 (conflicts_print): Check %expect and make its violation an error.
3215 * doc/bison.texinfo (Expect Decl): Adjust.
3216 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
3217 * tests/regression.at (%expect not enough, %expect right)
3218 (%expect too much): New.
3220 2001-11-12 Akim Demaille <akim@epita.fr>
3222 * tests/regression.at (Conflicts): Rename as...
3223 (Unresolved SR Conflicts): this.
3224 (Solved SR Conflicts): New.
3226 2001-11-12 Akim Demaille <akim@epita.fr>
3228 * src/reduce.c (print_results): Rename as...
3229 (reduce_output): This.
3230 Output to OUT, passed as argument, instead of output_obstack.
3231 (dump_grammar): Likewise.
3234 (reduce_grammar): No longer call reduce_output, since...
3235 * src/print.c (print_results): do it.
3236 * src/main.c (main): Call reduce_free;
3238 2001-11-12 Akim Demaille <akim@epita.fr>
3240 * src/conflicts.c (print_reductions): Accept OUT as argument.
3241 Output to it, not to output_obstack.
3242 * src/print.c (print_actions): Adjust.
3244 2001-11-12 Akim Demaille <akim@epita.fr>
3246 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
3247 the result instead of using...
3248 (src_total, rrc_total, src_count, rrc_count): Remove.
3249 (any_conflicts): Remove.
3250 (print_conflicts): Split into...
3251 (conflicts_print, conflicts_output): New.
3252 * src/conflicts.h: Adjust.
3253 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
3254 * src/print.c (print_grammar): Issue `\n' between two rules.
3255 * tests/regression.at (Conflicts): New.
3256 Reported by Tom Lane.
3258 2001-11-12 Akim Demaille <akim@epita.fr>
3260 * tests/regression.at (Invalid input): Remove, duplicate with
3261 ``Invalid input: 1''.
3263 2001-11-12 Akim Demaille <akim@epita.fr>
3265 * tests/torture.at (AT_DATA_STACK_TORTURE)
3266 (Exploding the Stack Size with Alloca)
3267 (Exploding the Stack Size with Malloc): New.
3269 2001-11-12 Akim Demaille <akim@epita.fr>
3271 * src/bison.simple (YYSTACK_REALLOC): New.
3272 (yyparse) [!yyoverflow]: Use it and free the old stack.
3273 Reported by Per Allansson.
3275 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
3277 * src/bison.simple: Define type yystype instead of YYSTYPE, and
3278 define CPP macro, which substitute YYSTYPE by yystype.
3279 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
3280 with yyltype/YYLTYPE. This allows inclusion of the generated
3281 header within the parser if the compiler, such as GGC, accepts
3282 multiple equivalent #defines.
3285 2001-11-05 Akim Demaille <akim@epita.fr>
3287 * src/reader.c (symbols_output): New, extracted from...
3288 (packsymbols): here.
3291 2001-11-05 Akim Demaille <akim@epita.fr>
3293 * src/lex.c (parse_percent_token): s/quotearg/quote/.
3295 2001-11-05 Akim Demaille <akim@epita.fr>
3297 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
3300 2001-11-05 Akim Demaille <akim@epita.fr>
3302 * src/options.h (struct option_table_struct): set_flags is void*.
3303 * src/options.c (longopts): Support `--output' and `%output'.
3305 * src/lex.h (tok_setopt): Remove, replaced with...
3306 (tok_intopt, tok_stropt): these new guys.
3307 * src/lex.c (getopt.h): Not needed.
3308 (token_buffer, unlexed_token_buffer): Not const.
3309 (percent_table): Promote `-' over `_' in directive names.
3310 Active `%name-prefix', `file-prefix', and `output'.
3311 (parse_percent_token): Accept possible arguments to directives.
3312 Promote `-' over `_' in directive names.
3314 2001-11-04 Akim Demaille <akim@epita.fr>
3316 * doc/bison.texinfo (Decl Summary): Split the list into
3317 `directives for grammars' and `directives for bison'.
3319 Add description of `%name-prefix', `file-prefix', and `output'.
3320 Promote `-' over `_' in directive names.
3321 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
3322 Simplify the description of `--name-prefix'.
3323 Promote `-' over `_' in directive names.
3324 Promote `--output' over `--output-file'.
3325 Fix the description of `--defines'.
3326 * tests/output.at: Exercise %file-prefix and %output.
3328 2001-11-02 Akim Demaille <akim@epita.fr>
3330 * doc/refcard.tex: Update.
3332 2001-11-02 Akim Demaille <akim@epita.fr>
3334 * src/symtab.h (SUNDEF): New.
3335 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
3336 stand for `uninitialized', instead of 0.
3337 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
3338 * src/lex.c (lex): Adjust.
3340 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
3342 Let yylex return it instead of a plain 0.
3343 Reported by Dick Streefland.
3345 2001-11-02 Akim Demaille <akim@epita.fr>
3347 * tests/regression.at (Mixing %token styles): New test.
3349 2001-11-02 Akim Demaille <akim@epita.fr>
3351 * src/reader.c (parse_thong_decl): Formatting changes.
3352 (token_translations_init): New, extracted from...
3353 (packsymbols): Here.
3356 2001-11-01 Akim Demaille <akim@epita.fr>
3358 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
3359 Check that `9foo.y' produces correct cpp guards.
3360 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
3364 2001-11-01 Akim Demaille <akim@epita.fr>
3366 * tests/regression.at (Invalid input: 2): New.
3367 * src/lex.c (unlexed_token_buffer): New.
3368 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
3372 2001-11-01 Akim Demaille <akim@epita.fr>
3374 * tests/calc.at: Catch up with 1.30.
3375 * configure.in: Bump to 1.49a.
3376 Adjust to newer Autotest.
3378 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
3380 * src/conflicts.c: Move global variables rrc_total and src_total ...
3381 (print_conflicts): here.
3382 * src/output.c (output): Free global variable user_toknums.
3383 * src/lex.c (token_obstack): Become static.
3385 2001-10-18 Akim Demaille <akim@epita.fr>
3387 * tests/atlocal.in (GCC): Add.
3388 * tests/calc.at: s/m4_match/m4_bmatch/.
3389 s/m4_patsubst/m4_bpatsubst/.
3390 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
3391 * configure.in: AC_SUBST(GCC).
3393 2001-10-14 Marc Autret <autret_m@epita.fr>
3395 * src/options.c (create_long_option_table): Fix.
3397 2001-10-10 Akim Demaille <akim@epita.fr>
3399 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
3401 2001-10-04 Akim Demaille <akim@epita.fr>
3403 * src/reader.c (parse_union_decl): Push the caracters in
3404 union_obstack, not attrs_obstack.
3406 2001-10-04 Akim Demaille <akim@epita.fr>
3408 Merge in the branch 1.29.
3410 * src/reader.c (packsymbols): Use a temporary obstack for
3411 `%%tokendef', since output_stack is already used elsewhere.
3413 2001-10-02 Akim Demaille <akim@epita.fr>
3417 2001-10-02 Akim Demaille <akim@epita.fr>
3421 2001-10-02 Akim Demaille <akim@epita.fr>
3423 * tests/regression.at (Invalid CPP headers): New.
3424 From Alexander Belopolsky.
3425 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
3427 2001-10-02 Akim Demaille <akim@epita.fr>
3429 * tests/regression.at (Invalid input): New.
3430 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
3433 2001-10-02 Akim Demaille <akim@epita.fr>
3435 * tests/calc.at: Now that --debug works, the tests must be adjusted.
3437 2001-10-02 Akim Demaille <akim@epita.fr>
3439 * src/output.c (output_parser): Assert `skeleton'.
3440 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
3444 2001-10-01 Marc Autret <autret_m@epita.fr>
3446 * src/lex.h: Echo modifications.
3447 * src/lex.c (unlex): Parameter is now token_t.
3450 2001-10-01 Marc Autret <autret_m@epita.fr>
3452 * src/main.c: Include lex.h.
3455 2001-09-29 Akim Demaille <akim@epita.fr>
3457 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
3459 2001-09-28 Akim Demaille <akim@epita.fr>
3461 * tests/testsuite.at: Update to newer Autotest.
3462 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
3464 2001-09-27 Akim Demaille <akim@epita.fr>
3466 Position independent wrapper.
3468 * tests/bison: Remove.
3469 * tests/bison.in: New.
3470 * configure.in: Adjust.
3472 2001-09-27 Paul Eggert <eggert@twinsun.com>
3474 Port quotearg fixes from tar 1.13.24.
3476 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
3478 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
3479 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
3481 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
3482 * m4/mbrtowc.m4: New file.
3483 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
3484 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
3486 2001-09-27 Akim Demaille <akim@epita.fr>
3490 2001-09-27 Akim Demaille <akim@epita.fr>
3494 2001-09-25 Akim Demaille <akim@epita.fr>
3496 * src/system.h: Include `xalloc.h'.
3497 Remove it from the C files.
3498 * src/files.c (output_files): Free the obstacks.
3499 * src/lex.c (init_lex): Rename as...
3502 * src/main.c (main): Use it.
3504 2001-09-24 Marc Autret <autret_m@epita.fr>
3506 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
3507 to output informations in fout (FILE*).
3508 (open_graph, close_graph): Likewise.
3509 (output_graph, output_edge, output_node): Likewise.
3510 * src/vcg.h: Update function prototypes.
3511 * src/print_graph.c (print_graph): Open output graph file.
3512 (print_actions): Adjust.
3513 * src/files.h: Remove extern declaration.
3514 * src/files.c: Remove graph_obstack declaration.
3515 (open_files): Remove graph_obstack initialization.
3516 (output_files): Remove graph_obstack saving.
3518 2001-09-24 Marc Autret <autret_m@epita.fr>
3520 * src/files.c (compute_output_file_names): Fix.
3522 2001-09-24 Marc Autret <autret_m@epita.fr>,
3523 Akim Demaille <akim@epita.fr>
3525 * src/reader.c (reader): Remove call to free_symtab ().
3526 * src/main.c (main): Call it here.
3528 * src/conflicts.c (initialize_conflicts): Rename as...
3529 (solve_conflicts): this.
3530 * src/print.c (print_core, print_actions, print_state)
3531 (print_grammar): Dump to a file instead a `output_obstack'.
3532 (print_results): Dump `output_obstack', and then proceed with the
3534 * src/files.c (compute_output_file_names, close_files): New.
3535 (output_files): Adjust.
3536 * src/main.c (main): Adjust.
3538 2001-09-23 Marc Autret <autret_m@epita.fr>
3540 * src/files.c (compute_header_macro): Computes header macro name
3541 from spec_defines_file when given.
3543 2001-09-23 Marc Autret <autret_m@epita.fr>
3545 * src/files.c (output_files): Add default extensions.
3547 2001-09-22 Akim Demaille <akim@epita.fr>
3549 * src/conflicts.c (finalize_conflicts): Rename as...
3550 (free_conflicts): this.
3552 2001-09-22 Akim Demaille <akim@epita.fr>
3554 * src/gram.c (gram_free): Rename back as...
3556 (output_token_translations): Free `token_translations'.
3557 * src/symtab.c (free_symtab): Free the tag field.
3559 2001-09-22 Akim Demaille <akim@epita.fr>
3561 Remove `translations' as it is always set to true.
3563 * src/gram.h: Adjust.
3564 * src/reader.c (packsymbols, parse_token_decl): Adjust
3565 * src/print.c (print_grammar): Adjust.
3566 * src/output.c (output_token_translations): Adjust.
3567 * src/lex.c (lex): Adjust.
3568 * src/gram.c: Be sure the set pointers to NULL.
3569 (dummy): Rename as...
3572 2001-09-22 Akim Demaille <akim@epita.fr>
3574 * configure.in: Invoke AM_LIB_DMALLOC.
3575 * src/system.h: Use dmalloc.
3576 * src/LR0.c: Be sure to have pointers initialized to NULL.
3577 (allocate_itemsets): Allocate kernel_items only if needed.
3579 2001-09-22 Akim Demaille <akim@epita.fr>
3581 * configure.in: Bump to 1.29b.
3582 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
3583 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
3584 need xmalloc.c in calc.y.
3587 2001-09-21 Akim Demaille <akim@epita.fr>
3590 * Makefile.maint, config/config.guess, config/config.sub,
3591 * config/missing: Update from masters.
3592 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
3594 * configure.in (ALL_LINGUAS): Add `tr'.
3596 2001-09-21 Akim Demaille <akim@epita.fr>
3598 * tests/Makefile.am (package.m4): Move to...
3599 ($(srcdir)/$(TESTSUITE)): here.
3601 2001-09-20 Akim Demaille <akim@epita.fr>
3603 * src/complain.c: No longer try to be standalone: use system.h.
3604 Don't assume __STDC__ is defined to 1. Just test if it is defined.
3605 * src/complain.h: Likewise.
3606 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
3607 Remove the unused variable `n'.
3608 From Albert Chin-A-Young.
3610 2001-09-18 Marc Autret <autret_m@epita.fr>
3612 * doc/bison.1: Update.
3613 * doc/bison.texinfo (Bison Options): Update --defines and --graph
3615 (Option Cross Key): Update.
3618 2001-09-18 Marc Autret <autret_m@epita.fr>
3620 * tests/regression.at: New test (comment in %union).
3622 2001-09-18 Marc Autret <autret_m@epita.fr>
3624 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
3626 Reported by Keith Browne.
3628 2001-09-18 Marc Autret <autret_m@epita.fr>
3630 * tests/output.at: Add tests for --defines and --graph.
3632 2001-09-18 Marc Autret <autret_m@epita.fr>
3634 * tests/output.at: Removes tests of %{header,src}_extension features.
3636 2001-09-18 Akim Demaille <akim@epita.fr>
3638 * tests/Makefile.am (package.m4): New.
3639 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
3640 (_AT_CHECK_CALC_ERROR): Likewise.
3641 Factor the `, ' part of verbose error messages.
3643 2001-09-18 Marc Autret <autret_m@epita.fr>
3645 * src/getargs.c (longopts): Declare --defines and --graph as options
3646 with optional arguments.
3647 * src/files.h: Add extern declarations.
3648 * src/files.c (spec_graph_file, spec_defines_file): New.
3649 (output_files): Update.
3650 Remove CPP-outed code.
3652 2001-09-18 Marc Autret <autret_m@epita.fr>
3654 Turn off %{source,header}_extension feature.
3656 * src/files.c (compute_exts_from_gf): Update.
3657 (compute_exts_from_src): Update.
3658 (output_files): CPP-out useless code.
3659 * src/files.h: Remove {header,source}_extension extern declarations.
3660 * src/reader.c (parse_dquoted_param): CPP-out.
3661 (parse_header_extension_decl): Remove.
3662 (parse_source_extension_decl): Remove.
3663 (read_declarations): Remove cases tok_{hdrext,srcext}.
3664 * src/lex.c (percent_table): Remove {header,source}_extension entries.
3665 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
3667 2001-09-10 Akim Demaille <akim@epita.fr>
3669 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
3670 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
3671 (AT_CHECK_OUTPUT): this.
3672 Merely check ls' exit status, its output is useless.
3674 2001-09-10 Akim Demaille <akim@epita.fr>
3676 * tests/calc.at: Use m4_match.
3677 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
3679 2001-09-10 Marc Autret <autret_m@epita.fr>,
3680 Akim Demaille <akim@epita.fr>
3682 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
3684 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
3686 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
3687 * src/lex.h: Adjust prototype.
3688 (token_t): Add `tok_undef'.
3689 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
3690 (parse_percent_token): Now returns token_t.
3691 Add default statement in switch.
3692 (lex): Separate `c' as an input variable, from the token_t result
3694 (unlexed): Is a token_t.
3696 2001-09-10 Akim Demaille <akim@epita.fr>
3698 * configure.in: Bump to 1.29a.
3700 2001-09-07 Akim Demaille <akim@epita.fr>
3704 2001-08-30 Akim Demaille <akim@epita.fr>
3706 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
3707 * m4/atconfig.m4: Remove.
3708 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
3710 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
3711 m4_if, m4_patsubst, and m4_regexp.
3712 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
3713 `input' file instead of echo.
3715 2001-08-29 Akim Demaille <akim@epita.fr>
3719 2001-08-29 Akim Demaille <akim@epita.fr>
3723 2001-08-29 Paul Eggert <eggert@twinsun.com>
3725 * src/bison.simple (yyparse): Don't take the address of an
3726 item before the start of an array, as that doesn't conform to
3729 2001-08-29 Robert Anisko <anisko_r@epita.fr>
3731 * doc/bison.texinfo (Location Tracking Calc): New node.
3733 2001-08-29 Paul Eggert <eggert@twinsun.com>
3735 * src/output.c (output): Do not define const, as this now
3736 causes more problems than it cures.
3738 2001-08-29 Akim Demaille <akim@epita.fr>
3740 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
3742 Be sure to tag the `detailmenu'.
3744 2001-08-29 Akim Demaille <akim@epita.fr>
3746 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
3747 download in a tmp dir.
3749 2001-08-28 Marc Autret <autret_m@epita.fr>
3751 * config/depcomp: New file.
3753 2001-08-28 Marc Autret <autret_m@epita.fr>
3755 * doc/bison.1 (mandoc): Adjust.
3756 From Juan Manuel Guerrero.
3758 2001-08-28 Marc Autret <autret_m@epita.fr>
3760 * src/print_graph.c (print_state): Fix.
3762 2001-08-27 Marc Autret <autret_m@epita.fr>
3764 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
3766 Echo modifications to the functions prototypes.
3767 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
3769 2001-08-27 Marc Autret <autret_m@epita.fr>
3771 * src/vcg.c: Include `xalloc.h'.
3772 (add_colorentry): New.
3773 (add_classname): New.
3774 (add_infoname): New.
3775 * src/vcg.h: Add new prototypes.
3777 2001-08-27 Akim Demaille <akim@epita.fr>
3779 * Makefile.maint: Sync. again with CVS Autoconf.
3781 2001-08-27 Akim Demaille <akim@epita.fr>
3783 * Makefile.maint: Formatting changes.
3784 (po-update, cvs-update, update): New targets.
3787 2001-08-27 Akim Demaille <akim@epita.fr>
3789 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
3790 * Makefile.maint: Sync. with CVS Autoconf.
3792 2001-08-27 Marc Autret <autret_m@epita.fr>
3794 * src/vcg.h (struct infoname_s): New.
3795 (struct colorentry_s): New.
3796 (graph_s): New fields {vertical,horizontal}_order in structure.
3797 Add `infoname' field.
3798 Add `colorentry' field;
3799 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
3800 (G_HORIZONTAL_ORDER): New.
3802 (G_COLORENTRY): New.
3803 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
3804 Add output of `infoname'.
3805 Add output of `colorentry'.
3807 2001-08-27 Marc Autret <autret_m@epita.fr>
3809 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
3810 This one shadowed a global parameter.
3812 2001-08-24 Marc Autret <autret_m@epita.fr>
3814 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
3815 instead of `unsigned'.
3816 (print_state): Do not call obstack_object_size () in obstack_grow ()
3817 to avoid macro variables shadowing.
3819 2001-08-23 Marc Autret <autret_m@epita.fr>
3821 * src/lex.c (percent_table): Typo: s/naem/name/.
3823 Normalize new options declarations.
3825 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
3827 * tests/suite.at: Exercise %header_extension and %source_extension.
3829 2001-08-16 Marc Autret <autret_m@epita.fr>
3831 * src/reader.c (parse_dquoted_param): New.
3832 (parse_header_extension_decl): Use it.
3833 (parse_source_extension_decl): Likewise.
3835 2001-08-16 Marc Autret <autret_m@epita.fr>
3837 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
3838 (get_xxxx_str): Use assert () instead of complain ().
3839 Remove return invokations in default cases.
3840 (get_decision_str): Modify default behaviour. Remove second argument.
3841 Echo modifications on calls.
3842 (output_graph): Fix.
3844 2001-08-16 Marc Autret <autret_m@epita.fr>
3846 * src/getargs.c (usage): Update with ``-g, --graph''.
3848 2001-08-16 Marc Autret <autret_m@epita.fr>
3850 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
3851 (Option Cross Key): Likewise.
3852 * doc/bison.1: Update.
3854 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
3856 * src/output.c (output_master_parser): Don't finish action_obstack.
3857 (output_parser): Don't care about the muscle action, here.
3858 (prepare): Copy the action_obstack in the action muscle.
3859 (output): Free action_obstack.
3861 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
3863 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
3864 will contain `%union' declaration.
3865 (parse_union_decl): Delete #line directive output.
3866 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
3867 informations about %union.
3868 (parse_union_decl): Copy the union_obstack in the muscle stype.
3869 * src/bison.simple: Add new #line directive.
3870 Add typdef %%stype YYSTYPE.
3872 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
3874 * src/bison.simple: Add new `#line' directive.
3876 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
3878 * src/bison.simple: New `#line' directive.
3879 * src/output.c (output_parser): Support new dynamic muscle input_line.
3881 2001-09-22 Marc Autret <autret_m@epita.fr>
3883 * src/output.c (output_master_parser): New.
3884 (output_parser): Be more re-entrant.
3886 2001-09-21 Marc Autret <autret_m@epita.fr>
3888 * src/reader.c (copy_definition, parse_union_decl): Update and use
3890 (copy_action): Likewise.
3891 Use obstack_1grow ().
3892 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
3894 2001-09-21 Marc Autret <autret_m@epita.fr>
3896 * src/options.c (option_table): Adjust.
3897 * src/lex.c (parse_percent_token): Fix.
3899 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
3901 * src/options.c (symtab.h): Include it, need by lex.h.
3903 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
3905 * src/lex.c (parse_percent_token): Change type of variable `tx', which
3906 is now an option_table_struct*.
3907 (option_strcmp): New function option_strcmp.
3908 (parse_percent_token): Call option_strcmp.
3909 * src/getargs.c (xalloc.h, options.h): Include it.
3910 (getargs): Call create_long_option_table.
3911 (getargs): Free longopts at the end of the function.
3912 (shortopts): Move in options.c.
3913 * src/options.c (create_long_option_table): New function. Convert
3914 information from option_table to option structure.
3915 * src/reader.c (options.h): Include it.
3917 * src/Makefile.am: Adjust.
3918 * src/options.c (option_table): Create from longopts and percent_table.
3919 * src/getargs.c (longopts): Delete.
3920 * src/lex.c (struct percent_table_struct): Delete.
3921 (percent_table): Delete.
3922 (options.h): Include it.
3923 * src/options.c: Create.
3924 * src/options.h: Create.
3925 Declare enum opt_access_e.
3926 Define struct option_table_struct.
3928 2001-09-20 Marc Autret <autret_m@epita.fr>
3930 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
3933 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
3935 * src/bison.simple: s/%%filename/%%skeleton.
3936 * src/muscle_tab.c (getargs.h): Include it.
3937 (muscle_init): Insert new muscle skeleton.
3939 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
3941 * src/output.c (output_parser): Delete unused variable actions_dumped.
3943 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
3945 * src/output.c (output): Delete call to reader_output_yylsp.
3946 * src/reader.c (reader): Likewise.
3947 * src/reader.h: Delete declaration of reader_output_yylsp.
3949 2001-09-02 Marc Autret <autret_m@epita.fr>
3951 * src/reader.c: Include muscle_tab.h.
3952 (parse_union_decl): Update.
3953 (parse_macro_decl): Rename parse_muscle_decl.
3954 Update to use renamed functions and variable.
3955 (read_declarations, copy_action, read_additionnal_code, : Updated
3956 with correct variables and functions names.
3957 (packsymbols, reader): Likewise.
3959 * src/reader.h (muscle_obstack): Extern declaration update.
3961 * src/output.c: Include muscle_tab.h
3962 In all functions using macro_insert, change by using muscle_insert ().
3963 (macro_obstack): Rename muscle_obstack.
3964 Echo modifications in the whole file.
3965 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
3966 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
3967 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
3969 * src/muscle_tab.h: Update double inclusion macros.
3970 (macro_entry_s): Rename muscle_entry_s.
3973 * src/muscle_tab.c: Include muscle_tab.h.
3974 Rename macro_tabble to muscle_table.
3975 (mhash1, mhash2, mcmp): Use muscle_entry.
3976 (macro_init): Rename muscle_init. Update.
3977 (macro_insert): Rename muscle_insert. Update.
3978 (macro_find): Rename muscle_find. Update.
3980 * src/main.c: Include muscle_tab.h.
3981 (main): Call muscle_init ().
3982 * src/Makefile.am (bison_SOURCES): Echo modifications.
3984 2001-09-02 Marc Autret <autret_m@epita.fr>
3986 Now the files macro_tab.[ch] are named muscle_tab.[ch].
3988 * src/muscle_tab.c, src/muscle_tab.h: Add files.
3990 2001-09-02 Marc Autret <autret_m@epita.fr>
3992 * src/macrotab.c, src/macrotab.h: Remove.
3994 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
3996 * src/reader.c (copy_guard): Use muscle to specify the `#line'
3999 2001-09-01 Marc Autret <autret_m@epita.fr>
4001 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
4002 to an explicit value to activate the feature. We do it here.
4004 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4006 * src/output.c (prepare): Delete the `filename' muscule insertion.
4007 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
4008 (parse_union_decl): Likewise.
4009 * src/macrotab.c (macro_init): Initialize filename by infile.
4011 2001-08-31 Marc Autret <autret_m@epita.fr>
4013 * src/bison.simple (YYLSP_NEEDED): New definition.
4014 * src/output.c (prepare): Add macro insertion of `locations_flag'
4016 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4018 * src/output.c (prepare): Delete insertion of previous muscles,
4019 and insert the `prefix' muscles.
4020 * src/macrotab.c (macro_init): Likewise.
4021 (macro_init): Initialization prefix directive by `yy'.
4022 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
4023 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
4024 yylval, yydebug, yyerror, yynerrs and yyparse.
4025 New directive `#define' to substitute yydebug, ... with option
4028 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4030 * src/main.c (main): Standardize.
4031 * src/output.c (output_table_data, output_parser): Likewise.
4032 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
4034 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
4036 * src/reader.c (read_additionnal_code): Rename %%user_code to
4038 * src/output.c (output): Rename %%declarations to %%prologue.
4039 * src/bison.simple: Echo modifications.
4041 2001-08-31 Marc Autret <autret_m@epita.fr>
4043 * src/reader.c (readgram): CleanUp.
4044 (output_token_defines): Likewise.
4045 (packsymbols): Likewise.
4047 * src/output.c (output): CPP-out useless code.
4049 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4051 * src/reader.c (reader): Delete obsolete call to function
4052 output_trailers and output_headers.
4053 * src/output.h: Remove obsolete functions prototypes of output_headers
4054 and output_trailers.
4056 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
4058 * src/main.c: Include macrotab.h.
4059 * src/macrotab.h (macro_entry_s): Constify fields.
4060 Adjust functions prototypes.
4061 * src/macrotab.c (macro_insert): Constify key and value.
4062 (macro_find): Constify key.
4063 (macro_insert): Include 'xalloc.h'
4064 (macro_insert): Use XMALLOC.
4065 (macro_find): Constify return value.
4066 * src/output.c (output_table_data): Rename table to table_data.
4067 (output_parser): Constify macro_key, macro_value.
4069 2001-08-30 Marc Autret <autret_m@epita.fr>
4071 * src/reader.c (parse_skel_decl): New.
4072 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
4073 * src/lex.h (token_t): New token `tok_skel'.
4074 * src/lex.c (percent_table): Add skeleton option entry.
4077 2001-08-29 Marc Autret <autret_m@epita.fr>
4079 * src/bison.simple: Add %%user_code directive at the end.
4080 * src/reader.c (read_additionnal_code): New.
4082 * src/output.c (output_program): Remove.
4085 2001-08-28 Marc Autret <autret_m@epita.fr>
4087 * src/output.c (output_actions): Clean up.
4088 (output_gram): CPP-out useless code.
4089 * src/reader.c (reader): Clean up, CPP-out useless code.
4091 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
4093 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
4095 * src/bison.simple: Add `%%definitions'.
4097 2001-08-28 Marc Autret <autret_m@epita.fr>
4099 * config/depcomp: New file.
4101 2001-08-27 Paul Eggert <eggert@twinsun.com>
4103 * src/bison.simple (yyparse): Don't take the address of an
4104 item before the start of an array, as that doesn't conform to
4107 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4109 * src/output.c (output): Remove the initialization of the macro
4110 obstack. It was done too late here.
4112 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
4114 (reader): Initialize the macro obstack here, since we need it to grow
4115 '%define' directives.
4117 * src/reader.h: Declare the macro obstack as extern.
4119 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4121 * src/output.c (output_parser): Fix. Store single '%' characters in
4122 the output obstack instead of throwing them away.
4124 2001-08-27 Akim Demaille <akim@epita.fr>
4126 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4128 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4130 * lib/Makefile.am: Adjust.
4132 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4134 * src/bison.simple: Update and add '%%' directives.
4136 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4138 * src/reader.c (reader): Remove calls to 'output_headers' and
4139 'output_trailers'. Remove some C output.
4140 (readgram): Disable a piece of code that was writing a default
4141 definition for 'YYSTYPE'.
4142 (reader_output_yylsp): Remove.
4143 (packsymbols): Output token defintions to a macro.
4144 (copy_definition): Disable C output.
4146 * src/reader.c (parse_macro_decl): New function used to parse macro
4148 (copy_string2): Put the body of copy_string into this new function.
4149 Add a parameter to let the caller choose whether he wants to copy the
4150 string delimiters or not.
4151 (copy_string): Be a simple call to copy_string2 with the last argument
4153 (read_declarations): Add case for macro definition.
4154 (copy_identifier): New.
4155 (parse_macro_decl): Read macro identifiers using copy_identifier
4158 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4160 * src/output.c (prepare): Add prefixed names.
4161 (output_parser): Output semantic actions.
4162 (output_parser): Fix bug on '%%line' directives.
4164 * src/output.c (output_headers): Remove. The C code printed by this
4165 function should now be in the skeletons.
4166 (output_trailers): Remove.
4167 (output): Disable call to 'reader_output_yylsp'.
4168 (output_rule_data): Do not output tables to the table obstack.
4170 * src/output.c: Remove some C dedicated output.
4171 Improve the use of macro and output obstacks.
4172 (output_defines): Remove.
4174 * src/output.c (output_token_translations): Associate 'translate'
4175 table with a macro. No output to the table obstack.
4176 (output_gram): Same for 'rhs' and 'prhs'.
4177 (output_stos): Same for 'stos'.
4178 (output_rule_data): Same for 'r1' and 'r2'.
4179 (token_actions): Same for 'defact'.
4180 (goto_actions): Same for 'defgoto'.
4181 (output_base): Same for 'pact' and 'pgoto'.
4182 (output_table): Same for 'table'.
4183 (output_check): Same for 'check'.
4185 * src/output.c (output_table_data): New function.
4186 (output_short_table): Remove.
4187 (output_short_or_char_table): Remove.
4189 * src/output.c (output_parser): Replace most of the skeleton copy code
4190 with something new. Skeletons are now processed character by character
4191 rather than line by line, and Bison looks for '%%' macros. This is the
4192 first step in making Bison's output process (a lot) more flexible.
4193 (output_parser): Use the macro table.
4195 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4197 * src/main.c (main): Initialize the macro table.
4199 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4201 * src/lex.c (percent_table): Add tok_define.
4202 * src/lex.h: Add tok_define.
4204 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4206 * src/macrotab.c: New file.
4207 * src/macrotab.h: New file.
4208 * src/Makefile.am: Update.
4210 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4212 * lib/hash.c: New file.
4213 * lib/hash.h: New file.
4214 * lib/Makefile.am: Update.
4216 2001-08-15 Akim Demaille <akim@epita.fr>
4220 2001-08-15 Marc Autret <autret_m@epita.fr>
4222 * src/reader.c (readgram): Indent output macro YYSTYPE.
4223 (packsymbols): Likewise.
4224 (output_token_defines): Likewise.
4225 * src/files.c: Standardize.
4226 (compute_header_macro): New.
4227 (defines_obstack_save): New. Use compute_header_macro.
4228 (output_files): Update. Use defines_obstack_save.
4230 2001-08-15 Akim Demaille <akim@epita.fr>
4232 * doc/bison.texinfo (Table of Symbols): Document
4235 2001-08-15 Akim Demaille <akim@epita.fr>
4237 * missing: Update from CVS Automake.
4238 * config/config.guess, config/config.sub, config/texinfo.tex:
4239 Update from gnu.org.
4241 2001-08-15 Akim Demaille <akim@epita.fr>
4243 * Makefile.maint: Sync with CVS Autoconf.
4245 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
4247 * doc/bison.texinfo: Include GNU Free Documentation License from
4249 * doc/fdl.texi: Add to package.
4251 2001-08-14 Marc Autret <autret_m@epita.fr>
4253 Turn on %{source,header}_extension features.
4255 * src/lex.c (percent_table): Un-CPP out header_extension and
4257 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
4258 (compute_exts_from_src): Remove conditions. It restores priorities
4261 2001-08-14 Marc Autret <autret_m@epita.fr>
4263 * src/files.c (compute_base_names): Add extensions computing when
4264 `--file-prefix' used.
4265 Standardize function calls.
4267 2001-08-13 Marc Autret <autret_m@epita.fr>
4269 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
4270 defining it (defined but null disables alloca).
4272 2001-08-13 Marc Autret <autret_m@epita.fr>
4274 * src/bison.simple (_yy_memcpy): CPP reformat.
4276 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
4278 * tests/atconfig.in (CPPFLAGS): Fix.
4280 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
4282 * doc/bison.texinfo: Include GNU General Public License from
4284 * doc/gpl.texi: Add to package.
4286 2001-08-10 Marc Autret <autret_m@epita.fr>
4288 * src/print_graph.h: Fix.
4289 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
4291 2001-08-10 Akim Demaille <akim@epita.fr>
4293 * src/system.h: Provide default declarations for stpcpy, strndup,
4296 2001-08-10 Robert Anisko <anisko_r@epita.fr>
4298 * doc/bison.texinfo (Locations): Update @$ stuff.
4300 2001-08-09 Robert Anisko <anisko_r@epita.fr>
4302 * src/bison.simple (YYLLOC_DEFAULT): Update.
4305 2001-08-08 Marc Autret <autret_m@epita.fr>
4307 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
4308 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
4309 Reported by Fabrice Bauzac.
4311 2001-08-08 Marc Autret <autret_m@epita.fr>
4313 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
4314 * src/vcg.c (output_node): Fix.
4315 * src/vcg.h: Cleanup.
4316 * src/print_graph.c: Add comments.
4317 (node_output_size): New global variable. Simplify the formatting of
4318 the VCG graph output.
4319 (print_actions): Unused code is now used. It notifies the final state
4320 and no action states in the VCG graph. It also give the reduce actions.
4321 The `shift and goto' edges are red and the `go to state' edges are
4323 Get the current node name and node_obstack by argument.
4324 (node_obstack): New variable.
4325 (print_state): Manage node_obstack.
4326 (print_core): Use node_obstack given by argument.
4327 A node is not only computed here but in print_actions also.
4328 (print_graph): CPP out useless code instead of commenting it.
4330 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
4332 * tests/atconfig.in (CPPFLAGS): Fix.
4334 2001-08-07 Akim Demaille <akim@epita.fr>
4336 * src/print_graph.c (quote): New.
4337 (print_core): Use it.
4339 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
4341 * src/vcg.c (complain.h): Include it.
4342 Unepitaize `return' invocations.
4343 [NDEBUG] (main): Remove.
4344 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
4345 * src/files.c (open_files): Initialize graph_obstack.
4346 * src/print_graph.c (print_actions): CPP out useless code.
4347 (print_core): Don't output the last `\n' in labels.
4349 * src/files.c (output_files): Output the VCG file.
4350 * src/main.c (main): Invoke print_graph ();
4352 2001-08-06 Marc Autret <autret_m@epita.fr>
4354 Automaton VCG graph output.
4355 Using option ``-g'' or long option ``--graph'', you can generate
4356 a gram_filename.vcg file containing a VCG description of the LALR (1)
4357 automaton of your grammar.
4359 * src/main.c: Call to print_graph() function.
4360 * src/getargs.h: Update.
4361 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
4362 (graph_flag): New flag.
4364 (getargs): Add case `g'.
4365 * src/files.c (graph_obstack): New obstack struct.
4366 (open_files): Initialize new obstack.
4367 (output_files): Saves graph_obstack if required.
4368 * src/files.h (graph_obstack): New extern declaration.
4369 * src/Makefile.am: Add new source files.
4371 2001-08-06 Marc Autret <autret_m@epita.fr>
4373 * src/print_graph.c, src/print_graph.h (graph): New.
4374 * src/vcg.h: New file.
4375 * src/vcg.c: New file, VCG graph handling.
4377 2001-08-06 Marc Autret <autret_m@epita.fr>
4379 Add of %source_extension and %header_extension which specify
4380 the source or/and the header output file extension.
4382 * src/files.c (compute_base_names): Remove initialisation of
4383 src_extension and header_extension.
4384 (compute_exts_from_gf): Update.
4385 (compute_exts_from_src): Update.
4386 (output_files): Update.
4387 * src/reader.c (parse_header_extension_decl): New.
4388 (parse_source_extension_decl): New.
4389 (read_declarations): New case statements for the new tokens.
4390 * src/lex.c (percent_table): Add entries for %source_extension
4391 and %header_extension.
4392 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
4394 2001-08-06 Marc Autret <autret_m@epita.fr>
4396 * configure.in: Bump to 1.28c.
4397 * doc/bison.texinfo: Texinfo thingies.
4399 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
4401 * tests/atconfig.in (CPPFLAGS): Add.
4402 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
4404 2001-08-03 Akim Demaille <akim@epita.fr>
4408 2001-08-03 Akim Demaille <akim@epita.fr>
4410 * tests/Makefile.am (check-local): Ship testsuite.
4411 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
4414 2001-08-03 Akim Demaille <akim@epita.fr>
4416 * configure.in: Try using -Wformat when compiling.
4418 2001-08-03 Akim Demaille <akim@epita.fr>
4420 * configure.in: Bump to 1.28b.
4422 2001-08-03 Akim Demaille <akim@epita.fr>
4424 * src/complain.c: Adjust strerror_r portability issues.
4426 2001-08-03 Akim Demaille <akim@epita.fr>
4430 2001-08-03 Akim Demaille <akim@epita.fr>
4432 * src/getargs.c, src/getarg.h (skeleton)): Constify.
4433 * src/lex.c (literalchar): Avoid name clashes on `buf'.
4434 * src/getargs.c: Include complain.h.
4435 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
4436 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
4438 2001-08-03 Akim Demaille <akim@epita.fr>
4440 * src/reader.c (readgram): Display hidden chars in error messages.
4442 2001-08-03 Akim Demaille <akim@epita.fr>
4444 Update to gettext 0.10.39.
4446 2001-08-03 Akim Demaille <akim@epita.fr>
4448 * lib/strspn.c: New.
4450 2001-08-01 Marc Autret <autret_m@epita.fr>
4452 * doc/bison.texinfo: Update.
4453 * doc/bison.1 (mandoc): Update.
4454 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
4455 * src/files.c: Support output files extensions computing.
4456 (src_extension): New static variable.
4457 (header_extension): New static variable.
4459 (get_extension_index): New function, gets the index of an extension
4460 filename in a string.
4461 (compute_exts_from_gf): New function, computes extensions from the
4462 grammar file extension.
4463 (compute_exts_from_src): New functions, computes extensions from the
4464 C source file extension, file given by ``-o'' option.
4465 (compute_base_names): Update.
4466 (output_files): Update.
4468 2001-08-01 Robert Anisko <anisko_r@epita.fr>
4470 * doc/bison.texi: Document @$.
4471 (Locations): New section.
4473 2001-07-18 Akim Demaille <akim@epita.fr>
4475 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
4476 * config/prev-version.txt, config/move-if-change: New.
4477 * Makefile.am: Adjust.
4479 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
4481 * src/bison.simple (yyparse): Suppress warning `comparaison
4482 between signed and unsigned'.
4484 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
4486 * src/getargs.h (raw_flag): Remove.
4487 * src/getargs.c: Die on `-r'/`--raw'.
4488 * src/lex.c (parse_percent_token): Die on `%raw'.
4489 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
4490 * tests/calc.at: Suppress test with option `--raw'.
4492 2001-07-14 Akim Demaille <akim@epita.fr>
4495 * configure.in: Require Autoconf 2.50.
4496 Update to gettext 0.10.38.
4498 2001-03-16 Akim Demaille <akim@epita.fr>
4500 * doc/bison.texinfo: ANSIfy the examples.
4502 2001-03-16 Akim Demaille <akim@epita.fr>
4504 * getargs.c (skeleton): New variable.
4505 (longopts): --skeleton is a new option.
4506 (shortopts, getargs): -S is a new option.
4507 * getargs.h: Declare skeleton.
4508 * output.c (output_parser): Use it.
4510 2001-03-16 Akim Demaille <akim@epita.fr>
4512 * m4/strerror_r.m4: New.
4513 * m4/error.m4: Run AC_FUNC_STRERROR_R.
4514 * lib/error.h, lib/error.c: Update.
4516 2001-03-16 Akim Demaille <akim@epita.fr>
4518 * src/getargs.c (longopts): Clean up.
4520 2001-02-21 Akim Demaille <akim@epita.fr>
4522 * src/reader.c (gensym): `gensym_count' is your own.
4523 Use a static buf to create the symbol name, as token_buffer is no
4526 2001-02-08 Akim Demaille <akim@epita.fr>
4528 * src/conflicts.c (conflict_report): Be sure not to append to res
4529 between two calls, which could happen if both first sprintf were
4530 skipped, but not the first cp += strlen.
4532 2001-02-08 Akim Demaille <akim@epita.fr>
4534 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
4535 New, from fileutils 4.0.37.
4536 * configure.in: Require Autoconf 2.49c. I took some time before
4537 making this decision. This is the only way out for portability
4538 issues in Bison, it would mean way too much duplicate effort to
4539 import in Bison features implemented in 2.49c since 2.13.
4540 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
4542 2001-02-02 Akim Demaille <akim@epita.fr>
4544 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
4545 * lib/xalloc.h, lib/xmalloc.c: Update.
4547 2001-01-19 Akim Demaille <akim@epita.fr>
4549 Get rid of the ad hoc handling of token_buffer in the scanner: use
4552 * src/lex.c (token_obstack): New.
4553 (init_lex): Initialize it. No longer call...
4554 (grow_token_buffer): this. Remove it.
4555 Adjust all the places which used it to use the obstack.
4557 2001-01-19 Akim Demaille <akim@epita.fr>
4559 * src/lex.h: Rename all the tokens:
4560 s/\bENDFILE\b/tok_eof/g;
4561 s/\bIDENTIFIER\b/tok_identifier/g;
4563 Let them be enums, not #define, to ease debugging.
4564 Adjust all the code.
4566 2001-01-18 Akim Demaille <akim@epita.fr>
4568 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
4569 * src/lex.c (maxtoken, grow_token_buffer): Static.
4571 2001-01-18 Akim Demaille <akim@epita.fr>
4573 Since we now use obstacks, more % directives can be enabled.
4575 * src/lex.c (percent_table): Also accept `%yacc',
4576 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
4578 Handle the actions for `%semantic_parser' and `%pure_parser' here,
4579 instead of returning a token.
4580 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
4581 * src/reader.c (read_declarations): Adjust.
4582 * src/files.c (open_files): Don't call `compute_base_names', don't
4583 compute `attrsfile' since they depend upon data which might be
4584 *in* the input file now.
4585 (output_files): Do it here.
4586 * src/output.c (output_headers): Document the fact that this patch
4587 introduces a guaranteed SEGV for semantic parsers.
4588 * doc/bison.texinfo: Document them.
4589 * tests/suite.at: Exercise these %options.
4591 2000-12-20 Akim Demaille <akim@epita.fr>
4593 Also handle the output file (--verbose) with obstacks.
4595 * files.c (foutput): Remove.
4596 (output_obstack): New.
4597 Adjust all dependencies.
4598 * src/conflicts.c: Return a string.
4599 * src/system.h (obstack_grow_string): Rename as...
4600 (obstack_sgrow): this. Be ready to work with non literals.
4601 (obstack_fgrow4): New.
4603 2000-12-20 Akim Demaille <akim@epita.fr>
4605 * src/files.c (open_files): Fix the computation of short_base_name
4606 in the case of `-o foo.tab.c'.
4608 2000-12-20 Akim Demaille <akim@epita.fr>
4610 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
4611 (copy_dollar): Now that everything uses obstacks, get rid of the
4614 2000-12-20 Akim Demaille <akim@epita.fr>
4616 * src/files.c (open_files): Actually the `.output' file is based
4617 on the short_base_name, not base_name.
4618 * tests/suite.at (Checking output file names): Adjust.
4620 2000-12-20 Akim Demaille <akim@epita.fr>
4622 * src/bison.s1: Remove, we now use directly...
4623 * src/bison.simple: this.
4624 * src/Makefile.am: Use pkgdata instead of data.
4626 2000-12-20 Akim Demaille <akim@epita.fr>
4628 * src/files.c (guard_obstack): New.
4629 (open_files): Initialize it.
4630 (output_files): Dump it...
4631 * src/files.h: Export it.
4632 * src/reader.c (copy_guard): Use it.
4634 2000-12-19 Akim Demaille <akim@epita.fr>
4636 * src/files.c (outfile, defsfile, actfile): Removed as global
4638 (open_files): Don't compute them.
4639 (output_files): Adjust.
4640 (base_name, short_base_name): Be global.
4641 Adjust dependencies.
4643 2000-12-19 Akim Demaille <akim@epita.fr>
4645 * src/files.c (strsuffix): New.
4646 (stringappend): Be just like strcat but allocate.
4647 (base_names): Eve out from open_files.
4648 Try to simplify the rather hairy computation of base_name and
4650 (open_files): Use it.
4651 * tests/suite.at (Checking output file names): New test.
4653 2000-12-19 Akim Demaille <akim@epita.fr>
4655 * src/system.h (obstack_grow_literal_string): Rename as...
4656 (obstack_grow_string): this.
4657 * src/output.c (output_parser): Recognize `%% actions' instead of
4659 * src/bison.s1: s/$/%% actions/.
4660 * src/bison.hairy: Likewise.
4662 2000-12-19 Akim Demaille <akim@epita.fr>
4664 * src/output.c (output_parser): Compute the `#line' lines when
4666 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
4667 Suggested by Hans Aberg.
4669 2000-12-19 Akim Demaille <akim@epita.fr>
4671 Let the handling of the skeleton files be local to the procedures
4674 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
4676 (fparser, open_extra_files): Remove.
4677 (open_files, output_files): Don't take care of fparser.
4678 * src/files.h: Adjust.
4679 * src/output.c (output_parser): Open and close the file to the
4681 * src/reader.c (read_declarations): When %semantic_parser, open
4684 2000-12-19 Akim Demaille <akim@epita.fr>
4686 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
4687 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
4689 2000-12-19 Akim Demaille <akim@epita.fr>
4691 * src/files.c (open_files): Yipee! We no longer need all the code
4692 looking for `/tmp' since we have no tmp file.
4694 2000-12-19 Akim Demaille <akim@epita.fr>
4696 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
4698 * src/files.c (open_files): Less dependency on MSDOS etc.
4700 2000-12-14 Akim Demaille <akim@epita.fr>
4702 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
4703 Provide a default definition.
4704 Use it when executing the default @ action.
4705 * src/reader.c (reader_output_yylsp): No longer include
4706 `timestamp' and `text' in the default YYLTYPE.
4708 2000-12-12 Akim Demaille <akim@epita.fr>
4710 * src/reader.c (copy_definition, parse_union_decl, copy_action)
4711 (copy_guard): Quote the file names.
4712 Reported by Laurent Mascherpa.
4714 2000-12-12 Akim Demaille <akim@epita.fr>
4716 * src/output.c (output_headers, output_program, output): Be sure
4717 to escape special characters when outputting filenames.
4718 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
4719 (output_headers): Don't depend on them, Use ACTSTR.
4721 2000-11-17 Akim Demaille <akim@epita.fr>
4723 * lib/obstack.h: Formatting changes.
4724 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
4725 prevents type checking.
4726 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
4727 cast the value to (void *): assigning a `foo *' to a `void *'
4729 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
4730 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
4733 2000-11-17 Akim Demaille <akim@epita.fr>
4735 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
4737 (suite.m4, regression.m4, calc.m4): these.
4738 * tests/atgeneral.m4: Update from CVS Autoconf.
4740 2000-11-17 Akim Demaille <akim@epita.fr>
4742 * tests/regression.m4 (%union and --defines): New test,
4743 demonstrating a current bug in the obstack implementation.
4745 2000-11-17 Akim Demaille <akim@epita.fr>
4747 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
4749 Use them to declare the variables which are global or local to
4752 2000-11-17 Akim Demaille <akim@epita.fr>
4754 * acconfig.h: Remove, no longer used.
4756 2000-11-07 Akim Demaille <akim@epita.fr>
4758 * src: s/Copyright (C)/Copyright/g.
4760 2000-11-07 Akim Demaille <akim@epita.fr>
4762 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
4764 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
4766 2000-11-07 Akim Demaille <akim@epita.fr>
4768 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
4769 Merge in a single CPP if/else.
4771 2000-11-07 Akim Demaille <akim@epita.fr>
4773 * src/output.c (output): Remove useless variables.
4774 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
4775 argument `data' for consistency with the prototypes.
4777 (obstack_copy, obstack_copy0): Rename the second argument as
4778 `address' for consistency. Qualify it `const'.
4779 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
4780 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
4781 `const' their input argument (`data' or `address').
4782 Adjust the corresponding macros to include `const' in casts.
4784 2000-11-03 Akim Demaille <akim@epita.fr>
4786 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
4787 s/PFILE1/BISON_HAIRY/.
4788 Adjust dependencies.
4790 2000-11-03 Akim Demaille <akim@epita.fr>
4792 For some reason, this was not applied.
4794 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
4795 `unlink': it's no longer used.
4797 2000-11-03 Akim Demaille <akim@epita.fr>
4799 * src/files.c (skeleton_find): New function, eved out of...
4800 (open_files, open_extra_files): here.
4802 2000-11-03 Akim Demaille <akim@epita.fr>
4806 * src/files.c (obstack_save): New function.
4807 (done): Rename as...
4808 (output_files): this.
4810 * src/main.c (main): Don't use `atexit' to register `done', since
4811 it no longer has to remove tmp files, just call `output_files'
4812 when there are no errors.
4814 2000-11-02 Akim Demaille <akim@epita.fr>
4816 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
4817 `unlink': it's no longer used.
4818 * src/files.h: Formatting changes.
4820 2000-11-02 Akim Demaille <akim@epita.fr>
4822 Remove the last uses of mktemp and unlink/delete.
4824 * src/files.c (fdefines, ftable): Removed.
4825 (defines_ostack, table_obstack): New.
4826 Adjust dependencies of the former into uses of the latter.
4827 * src/output.c (output_short_or_char_table, output_short_table):
4828 Convert to using obstacks.
4829 * src/reader.c (copy_comment2): Accept one FILE * and two
4831 (output_token_defines, reader_output_yylsp): Use obstacks.
4832 * src/system.h (obstack_fgrow3): New.
4834 2000-11-01 Akim Demaille <akim@epita.fr>
4836 Change each use of `fattrs' into a use of `attrs_obstack'.
4838 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
4839 * src/files.c (fattrs): Remove.
4840 (attrs_obstack): New.
4841 Adjust all dependencies.
4842 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
4844 2000-11-01 Akim Demaille <akim@epita.fr>
4847 Change each use of `faction' into a use of `action_obstack'.
4849 * lib/obstack.h, lib/obstack.c: New files.
4850 * src/files.c (faction): Remove.
4851 (action_obstack): New.
4852 Adjust all dependencies.
4854 2000-10-20 Akim Demaille <akim@epita.fr>
4856 * lib/quote.h (PARAMS): New macro. Use it.
4858 2000-10-16 Akim Demaille <akim@epita.fr>
4860 * src/output.c (output_short_or_char_table): New function.
4861 (output_short_table, output_token_translations): Use it.
4862 (goto_actions): Use output_short_table.
4864 2000-10-16 Akim Demaille <akim@epita.fr>
4866 * src/symtab.c (bucket_new): New function.
4869 * src/output.c (output_short_table): New argument to display the
4870 comment associated with the table.
4871 Adjust dependencies.
4872 (output_gram): Use it.
4873 (output_rule_data): Nicer output layout for YYTNAME.
4875 2000-10-16 Akim Demaille <akim@epita.fr>
4877 * src/lex.c (read_typename): New function.
4879 * src/reader.c (copy_dollar): Likewise.
4881 2000-10-16 Akim Demaille <akim@epita.fr>
4883 * src/reader.c (copy_comment2): Expect the input stream to be on
4884 the `/' which is suspected to open a comment, instead of being
4885 called after `//' or `/*' was read.
4886 (copy_comment, copy_definition, parse_union_decl, copy_action)
4887 (copy_guard): Adjust.
4889 2000-10-16 Akim Demaille <akim@epita.fr>
4891 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
4892 `read_signed_integer'.
4894 2000-10-16 Akim Demaille <akim@epita.fr>
4896 * src/reader.c (copy_dollar): New function.
4897 (copy_guard, copy_action): Use it.
4899 2000-10-16 Akim Demaille <akim@epita.fr>
4901 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
4902 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
4903 New files, from Fileutils 4.0.27.
4904 * src/main.c (printable_version): Remove.
4905 * src/lex.c, src/reader.c: Use `quote'.
4907 2000-10-04 Akim Demaille <akim@epita.fr>
4909 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
4911 2000-10-04 Akim Demaille <akim@epita.fr>
4913 * doc/bison.texinfo: Various typos spotted by Neil Booth.
4915 2000-10-04 Akim Demaille <akim@epita.fr>
4917 When a literal string is used to define two different tokens,
4918 `bison -v' segfaults.
4919 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
4921 * tests/regression.m4: New file.
4922 Include the core of the sample provided by Piotr Gackiewicz.
4923 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
4926 2000-10-04 Akim Demaille <akim@epita.fr>
4928 * src/reader.c (parse_expect_decl): Keep `count' within the size
4932 2000-10-02 Paul Eggert <eggert@twinsun.com>
4934 * bison.s1 (yyparse): Assign the default value
4935 unconditionally, to avoid a GCC warning and make the parser a
4938 2000-10-02 Akim Demaille <akim@epita.fr>
4940 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
4943 2000-10-02 Akim Demaille <akim@epita.fr>
4945 * src/derives.c, src/print.c, src/reduce.c: To ease the
4946 translation, move some `\n' out of the translated strings.
4948 2000-10-02 Akim Demaille <akim@epita.fr>
4950 The location tracking mechanism is precious for parse error
4951 messages. Nevertheless, it is enabled only when `@n' is used in
4952 the grammar, which is a different issue (you can use it in error
4953 message, but not in the grammar per se). Therefore, there should
4954 be another means to enable it.
4956 * src/getargs.c (getargs): Support `--locations'.
4958 * src/getargs.h (locationsflag): Export it.
4959 * src/lex.c (percent_table): Support `%locations'.
4960 * src/reader.c (yylsp_needed): Remove this variable, now replaced
4961 with `locationsflag'.
4962 * doc/bison.texinfo: Document `--locations' and `%locations'.
4964 * tests/calc.m4: Test it.
4966 For regularity of the names, replace each
4967 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
4968 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
4969 In addition replace each `flag' with `_flag'.
4971 2000-10-02 Akim Demaille <akim@epita.fr>
4973 Also test parse error messages, including with YYERROR_VERBOSE.
4975 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
4977 Use it to check the computations.
4978 Use it to check `nonassoc' is honored.
4979 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
4980 `--yyerror-verbose'.
4981 (_AT_CHECK_CALC): Adjust to this option.
4982 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
4984 2000-10-02 Akim Demaille <akim@epita.fr>
4986 Test also `--verbose', `--defines' and `--name-prefix'. Testing
4987 the latter demonstrates a flaw in the handling of non debugging
4988 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
4989 was used in order to simplify:
5005 unfortunately this leads to a CPP conflict when
5006 `--name-prefix=foo' is used since it produces `#define yydebug
5009 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
5010 (YYDPRINTF): New macro.
5012 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
5014 Also test `--verbose', `--defines' and `--name-prefix'.
5016 2000-10-02 Akim Demaille <akim@epita.fr>
5018 Improve the readability of the produced parsers.
5020 * src/bison.s1: Formatting changes.
5021 Improve the comment related to the `$' mark.
5022 (yydefault): Don't fall through to `yyresume': `goto' there.
5023 * src/output.c (output_parser): When the `$' is met, skip the end
5025 New variable, `number_of_dollar_signs', to check there's exactly
5026 one `$' in the parser skeleton.
5028 2000-10-02 Akim Demaille <akim@epita.fr>
5030 * lib/xstrdup.c: New file, from the fileutils.
5031 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
5032 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
5033 instead of strlen + xmalloc + strcpy.
5034 * src/symtab.c (copys): Remove, use xstrdup instead.
5036 2000-10-02 Akim Demaille <akim@epita.fr>
5038 * src/gram.h (associativity): New enum type which replaces the
5039 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
5040 `right_assoc', `left_assoc' and `non_assoc'.
5041 Adjust all dependencies.
5042 * src/reader.c: Formatting changes.
5043 (LTYPESTR): Don't define it, use it as a literal in
5044 `reader_output_yylsp'.
5045 * src/symtab.h (symbol_class): New enum type which replaces the
5046 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
5047 `sunknown', `stoken and `snterm'.
5049 2000-10-02 Akim Demaille <akim@epita.fr>
5051 * src/getargs.c (fixed_outfiles): Rename as...
5052 (yaccflag): for consistency and accuracy.
5053 Adjust dependencies.
5055 2000-10-02 Akim Demaille <akim@epita.fr>
5057 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
5058 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
5059 difficult and introduced a lot of core dump. It turns out that
5060 Bison used an implementation of `xmalloc' based on `calloc', and
5061 at various places it does depend upon the initialization to 0. I
5062 have not tried to isolate the pertinent places, and all the former
5063 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
5064 someone should address this issue.
5066 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
5067 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
5069 Adjust dependencies.
5070 * src/warshall.h: New file.
5073 2000-10-02 Akim Demaille <akim@epita.fr>
5075 Various anti-`extern in *.c' changes.
5077 * src/system.h: Include `assert.h'.
5079 2000-10-02 Akim Demaille <akim@epita.fr>
5081 * src/state.h (nstates, final_state, first_state, first_shift)
5082 (first_reduction): Move their exportation from here...
5083 * src/LR0.h: to here.
5084 Adjust dependencies.
5085 * src/getargs.c (statisticsflag): New variable.
5086 Add support for `--statistics'.
5087 Adjust dependencies.
5089 Remove a lot of now useless `extern' statements in most files.
5091 2000-10-02 Akim Demaille <akim@epita.fr>
5093 * src/LR0.h: New file.
5096 2000-10-02 Akim Demaille <akim@epita.fr>
5098 * src/print.h: New file.
5100 * src/print.c: Formatting and ordering changes.
5101 (verbose, terse): Replace with...
5102 (print_results): this new function.
5103 Adjust dependencies.
5105 2000-10-02 Akim Demaille <akim@epita.fr>
5107 * src/conflicts.c (conflict_report): New function.
5108 (conflict_log, verbose_conflict_log): Replace with...
5109 (print_conflicts): this function.
5110 Adjust dependencies.
5111 * src/conflicts.h: New file.
5112 Propagate its inclusion.
5114 2000-10-02 Akim Demaille <akim@epita.fr>
5116 * src/nullable.h: New file.
5117 Propagate its inclusion.
5118 * src/nullable.c: Formatting changes.
5120 2000-10-02 Akim Demaille <akim@epita.fr>
5122 * src/reduce.h: New file.
5123 Propagate its inclusion.
5124 * src/reduce.c: Topological sort and other formatting changes.
5125 (bool, TRUE, FALSE): Move their definition to...
5126 * src/system.h: here.
5128 2000-10-02 Akim Demaille <akim@epita.fr>
5130 * src/files.c: Formatting changes.
5131 (tryopen, tryclose, openfiles): Rename as...
5132 (xfopen, xfclose, open_files): this.
5133 (stringappend): static.
5134 * src/files.h: Complete the list of exported symbols.
5137 2000-10-02 Akim Demaille <akim@epita.fr>
5139 * src/reader.h: New file.
5140 Propagate its use instead of tedious list of `extern' and
5142 * src/reader.c: Formatting changes, topological sort,
5145 2000-10-02 Akim Demaille <akim@epita.fr>
5147 * src/lex.h: Prototype `lex.c' exported functions.
5148 * src/reader.c: Adjust.
5149 * src/lex.c: Formatting changes.
5150 (safegetc): Rename as...
5153 2000-10-02 Akim Demaille <akim@epita.fr>
5155 * src/lalr.h: New file.
5156 Propagate its inclusion instead of prototypes and `extern'.
5157 * src/lalr.c: Formatting changes, topological sorting etc.
5159 2000-10-02 Akim Demaille <akim@epita.fr>
5161 * src/output.c (token_actions): Introduce a temporary array,
5162 YYDEFACT, that makes it possible for this function to use
5165 2000-10-02 Akim Demaille <akim@epita.fr>
5167 `user_toknums' is output as a `short[]' in `output.c', while it is
5168 defined as a `int[]' in `reader.c'. For consistency with the
5169 other output tables, `user_toknums' is now defined as a table of
5172 * src/reader.c (user_toknums): Be a short table instead of an int
5174 Adjust dependencies.
5176 Factor the short table outputs.
5178 * src/output.c (output_short_table): New function.
5179 * src/output.c (output_gram, output_stos, output_rule_data)
5180 (output_base, output_table, output_check): Use it.
5182 2000-10-02 Akim Demaille <akim@epita.fr>
5184 * src/output.c (output): Topological sort of the functions, in
5185 order to get rid of the `static' prototypes.
5186 No longer use `register'.
5187 * src/output.h: New file.
5188 Propagate its inclusion in files explicitly prototyping functions
5191 2000-09-21 Akim Demaille <akim@epita.fr>
5193 * src/atgeneral.m4: Update from Autoconf.
5195 2000-09-21 Akim Demaille <akim@epita.fr>
5197 * src/closure.h: New file.
5198 * src/closure.c: Formatting changes, topological sort over the
5199 functions, use of closure.h.
5200 (initialize_closure, finalize_closure): Rename as...
5201 (new_closure, free_closure): these. Adjust dependencies.
5202 * src/LR0.c: Formatting changes, topological sort, use of
5204 (initialize_states): Rename as...
5206 * src/Makefile.am (noinst_HEADERS): Adjust.
5208 2000-09-20 Akim Demaille <akim@epita.fr>
5210 * src/acconfig.h: Don't protect config.h against multiple
5212 Don't define PARAMS.
5213 * src/system.h: Define PARAMS.
5214 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
5215 purpose of config.h. system.h must not try to fix wrong
5216 definitions in config.h.
5218 2000-09-20 Akim Demaille <akim@epita.fr>
5220 * src/derives.h: New file.
5221 * src/main.c, src/derives.h: Use it.
5223 * src/Makefile.am (noinst_HEADERS): Adjust.
5225 2000-09-20 Akim Demaille <akim@epita.fr>
5227 * tests/atgeneral.m4: Update from Autoconf.
5228 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
5229 (AT_CHECK_CALC): New macros.
5230 Use these macros to test bison with options `', `--raw',
5231 `--debug', `--yacc', `--yacc --debug'.
5233 2000-09-19 Akim Demaille <akim@epita.fr>
5235 * src/output.c: Formatting changes.
5236 * src/machine.h: Remove, leaving its contents in...
5237 * src/system.h: here.
5239 Adjust all dependencies on stdio.h and machine.h.
5240 * src/getargs.h: New file.
5241 Let all `extern' declarations about getargs.c be replaced with
5242 inclusion of `getargs.h'.
5243 * src/Makefile.am (noinst_HEADERS): Adjust.
5245 * tests/calc.m4 (yyin): Be initialized in main, not on the global
5247 (yyerror): Returns void, not int.
5248 * doc/bison.texinfo: Formatting changes.
5250 2000-09-19 Akim Demaille <akim@epita.fr>
5252 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
5255 2000-09-18 Akim Demaille <akim@epita.fr>
5257 * configure.in: Append WARNING_CFLAGS to CFLAGS.
5258 * src/Makefile.am (INCLUDES): Don't.
5259 Be ready to fetch headers in lib/.
5261 2000-09-18 Akim Demaille <akim@epita.fr>
5263 * doc/bison.texinfo: Update the copyright.
5264 ANSIfy and GNUify the examples.
5265 Remove the old menu.
5267 2000-09-18 Akim Demaille <akim@epita.fr>
5269 First set of tests: use the `calc' example from the documentation.
5271 * src/bison.s1 (yyparse): Condition the code using `yytname' which
5272 is defined only when YYDEBUG is.
5273 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
5274 * src/files.c (tryopen, tryclose): Formatting changes.
5275 Move to the top and be static.
5276 * src/reader.c (read_signed_integer): Likewise.
5277 * tests/calc.m4: New file.
5278 * Makefile.am, suite.m4: Adjust.
5279 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
5281 2000-09-18 Akim Demaille <akim@epita.fr>
5283 Add support for an Autotest test suite for Bison.
5285 * m4/m4.m4, m4/atconfig.m4: New files.
5286 * m4/Makefile.am (EXTRA_DIST): Adjust.
5287 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
5289 * src/getargs.c: Display a more standard --version message.
5290 * src/reader.c (reader): Formatting changes.
5291 No longer depend upon VERSION_STRING.
5292 * configure.in: No longer use `dnl'.
5293 Set up the test suite and the new directory `tests/.
5294 (VERSION_STRING): Remove.
5296 2000-04-14 Akim Demaille <akim@epita.fr>
5298 * src/reader.c (copy_comment2): New function, same as former
5299 `copy_comment', but outputs into two FILE *.
5300 (copy_comment): Use it.
5301 (parse_union_decl): Use it.
5302 (get_type, parse_start_decl): Use the same `invalid' message.
5303 (parse_start_decl, parse_union_decl): Use the same `multiple'
5305 (parse_union_decl, copy_guard, copy_action): Use the same
5306 `unmatched' message.
5307 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
5309 2000-03-31 Akim Demaille <akim@epita.fr>
5311 * src/files.c (tryopen, tryclose): Move to the top.
5314 2000-03-31 Akim Demaille <akim@epita.fr>
5316 * src/main.c (main): Don't call `done', exit does it.
5318 2000-03-31 Akim Demaille <akim@epita.fr>
5320 * allocate.c: s/return (foo)/return foo/.
5323 * output.c: Likewise.
5324 * reader.c: Likewise.
5325 * symtab.c: Likewise.
5326 * vmsgetargs.c: Likewise.
5328 2000-03-31 Akim Demaille <akim@epita.fr>
5330 Clean up the error reporting functions.
5332 * src/report.c: New file.
5333 * src/report.h: Likewise.
5334 * src/Makefile.am: Adjust.
5335 * m4/error.m4: New file.
5336 * m4/Makefile.am: Adjust.
5337 * configure.in (jm_PREREQ_ERROR): Call it.
5338 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
5340 (fatal, fatals): Remove. All callers use complain.c::fatal.
5341 (warn, warni, warns, warnss, warnss): Remove. All callers use
5342 complain.c::complain.
5343 (toomany): Remove, use fatal instead.
5344 * src/files.c (done): No argument, use complain_message_count.
5345 * src/main.c (main): Register `done' to `atexit'.
5347 * src/getargs.c (usage): More `fputs', less `fprintf'.
5349 2000-03-28 Akim Demaille <akim@epita.fr>
5351 * lib/: New directory.
5352 * Makefile.am (SUBDIRS): Adjust.
5353 * configure.in: Adjust.
5354 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
5356 * src/alloca.c: Moved to lib/.
5357 * src/getopt.c: Likewise.
5358 * src/getopt1.c: Likewise.
5359 * src/getopt.h: Likewise.
5360 * src/ansi2knr.c: Likewise.
5361 * src/ansi2knr.1: Likewise.
5362 * src/Makefile.am: Adjust.
5363 * lib/Makefile.am: New file.
5365 2000-03-28 Akim Demaille <akim@epita.fr>
5367 * src/getargs.c (usage): Refresh the help message.
5369 2000-03-17 Akim Demaille <akim@epita.fr>
5371 * src/getopt1.c: Updated from textutils 2.0e
5372 * src/getopt.c: Likewise.
5373 * src/getopt.h: Likewise.
5375 2000-03-17 Akim Demaille <akim@epita.fr>
5377 * src/Makefile.am (bison.simple): Fix the awk program: quote only
5378 the file name, not the whole `#line LINE FILE'.
5380 2000-03-17 Akim Demaille <akim@epita.fr>
5382 On syntax errors, report the token on which we choked.
5384 * src/bison.s1 (yyparse): In the label yyerrlab, when
5385 YYERROR_VERBOSE, add yychar in msg.
5387 2000-03-17 Akim Demaille <akim@epita.fr>
5389 * src/reader.c (copy_at): New function.
5390 (copy_guard): Use it.
5391 (copy_action): Use it.
5393 2000-03-17 Akim Demaille <akim@epita.fr>
5395 Be kind to translators, save some useless translations.
5397 * src/main.c (banner): New function.
5398 (fatal_banner): Use it.
5399 (warn_banner): Use it.
5401 2000-03-17 Akim Demaille <akim@epita.fr>
5403 * src/reader.c (copy_definition): Use copy_string and
5404 copy_comment. Removed now unused `match', `ended',
5406 (copy_comment, copy_string): Moved, to be visible from
5409 2000-03-17 Akim Demaille <akim@epita.fr>
5411 * src/reader.c (copy_string): Declare `static inline'. No
5412 problems with inline, since it is checked by configure.
5413 (copy_comment): Likewise.
5415 2000-03-17 Akim Demaille <akim@epita.fr>
5417 * src/reader.c (packsymbols): Formatting changes.
5419 2000-03-17 Akim Demaille <akim@epita.fr>
5421 * src/reader.c (copy_comment): New function, factored out from:
5422 (copy_action): Use it. Removed now unused `match', `ended',
5424 (copy_guard): Likewise.
5426 2000-03-17 Akim Demaille <akim@epita.fr>
5428 * src/reader.c (copy_string): New function, factored out from:
5429 (copy_action): Use it.
5430 (copy_guard): Likewise.
5432 2000-03-17 Akim Demaille <akim@epita.fr>
5434 Change the handling of @s so that they behave exactly like $s.
5435 There is now a pseudo variable @$ (readble and writable), location
5436 of the lhs of the rule (by default ranging from the location of
5437 the first symbol of the rhs, to the location of the last symbol,
5438 or, if the rhs is empty, YYLLOC).
5440 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
5442 (yyparse): When providing a default semantic action, provide a
5443 default location action.
5444 (after the $): No longer change `*YYLSP', just stack YYLOC the
5445 same way you stack YYVAL.
5446 * src/reader.c (read_declarations): Use warns.
5447 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
5448 (copy_action, case '@'): Likewise.
5449 Use a standard error message, to save useless work from
5452 2000-03-17 Akim Demaille <akim@epita.fr>
5454 * src/bison.s1: Formatting and cosmetics changes.
5455 * src/reader.c: Likewise.
5456 Update the Copyright notice.
5458 2000-03-17 Akim Demaille <akim@epita.fr>
5460 * src/bison.s1 (#line): All set to `#line' only, since the
5461 Makefile now handles them.
5463 2000-03-16 Akim Demaille <akim@epita.fr>
5465 * src/output.c (output_rule_data): Output the documentation of
5467 (Copyright notice): Update.
5470 2000-03-16 Akim Demaille <akim@epita.fr>
5472 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
5473 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
5474 One `#if YYDEBUG' remains, since it uses variables which are
5475 defined only if `YYDEBUG != 0'.
5477 2000-03-16 Akim Demaille <akim@epita.fr>
5479 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
5480 and related variables so that the similarities are highlighted.
5482 2000-03-16 Akim Demaille <akim@epita.fr>
5484 * src/bison.s1: Properly indent CPP directives.
5486 2000-03-16 Akim Demaille <akim@epita.fr>
5488 * src/bison.s1: Properly indent the `alloca' CPP section.
5490 2000-03-16 Akim Demaille <akim@epita.fr>
5492 Do not hard code values of directories in `configure.in'.
5493 Update the `configure' tool chain.
5495 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
5497 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
5498 (AC_OUTPUT): Add m4/Makefile.
5499 Bump to bison 1.28a, 1.29 has never been released.
5500 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
5501 handled via src/Makefile.am.
5502 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
5503 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
5505 * Makefile.am (SUBDIRS): Add m4.
5506 (ACLOCAL_AM_FLAGS): New variable.
5507 (AUTOMAKE_OPTIONS): Add check-news.
5508 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
5509 the proper line number and file name.
5510 (DEFS): Propagate the location of bison library files and of the
5512 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
5514 * acinclude.m4: Remove, replaced by the directory m4.
5515 * m4/Makefile.am (EXTRA_DIST): New variable.
5516 * m4/gettext.m4: New file, from the fileutils.
5517 * m4/lcmessage.m4: Likewise
5518 * m4/progtest.m4: Likewise.
5519 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
5521 2000-03-10 Akim Demaille <akim@epita.fr>
5524 Formatting changes of various comments.
5525 Respect the GNU coding standards at various places.
5526 Don't use `_()' when no translation is needed.
5528 1999-12-13 Jesse Thilo <jthilo@gnu.org>
5531 OS/2 honors TMPDIR environment variable.
5533 1999-12-13 Jesse Thilo <jthilo@gnu.org>
5535 * doc/bison.texinfo: Tweaked spelling and grammar.
5537 Removed reference to price of printed copy.
5538 Mention BISON_SIMPLE and BISON_HAIRY.
5540 1999-12-13 Jesse Thilo <jthilo@gnu.org>
5542 * configure.in, NEWS:
5543 Bison 1.29 released.
5545 1999-10-27 Jesse Thilo <jthilo@gnu.org>
5547 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
5548 Added reference card.
5550 1999-07-26 Jesse Thilo <jthilo@gnu.org>
5552 * po/ru.po: Added Russian translation.
5554 1999-07-26 Jesse Thilo <jthilo@gnu.org>
5556 * configure.in: Added Russian translation.
5558 1999-07-06 Jesse Thilo <jthilo@gnu.org>
5560 * configure.in, NEWS, README:
5561 Released version 1.28.
5563 1999-06-14 Jesse Thilo <jthilo@gnu.org>
5566 Squashed redefinition warning on some systems.
5568 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
5569 Have configure build version string instead of relying on ANSI string
5572 1999-06-14 Jesse Thilo <jthilo@gnu.org>
5574 * po/POTFILES.in: Got rid of version.c.
5576 1999-06-14 Jesse Thilo <jthilo@gnu.org>
5578 * acconfig.h, configure.in:
5579 Have configure build version string instead of relying on ANSI string
5582 1999-06-08 Jesse Thilo <jthilo@gnu.org>
5585 Dropped mention of `+' for long-named options.
5587 1999-05-30 Jesse Thilo <jthilo@gnu.org>
5589 * src/files.c: Added <unistd.h> for unlink().
5591 * src/Makefile.am, src/system.h:
5594 1999-05-30 Jesse Thilo <jthilo@gnu.org>
5596 * README: Added a FAQ list.
5598 * configure.in, acconfig.h:
5601 1999-05-30 Jesse Thilo <jthilo@gnu.org>
5603 * doc/FAQ, doc/Makefile.am:
5606 1999-05-19 Jesse Thilo <jthilo@gnu.org>
5608 * src/alloc.h, src/symtab.h, src/version.c:
5609 Protected inclusion of "config.h" with HAVE_CONFIG_H.
5611 1999-04-18 Jesse Thilo <jthilo@gnu.org>
5613 * src/.cvsignore, src/Makefile.am:
5614 Reorganized: sources in `src', documentation in `doc'.
5616 * src/lex.c (literalchar):
5617 fixed the code for escaping double quotes (thanks
5620 1999-04-18 Jesse Thilo <jthilo@gnu.org>
5622 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
5623 Adjusted paths to reflect directory reorganization.
5625 1999-04-18 Jesse Thilo <jthilo@gnu.org>
5627 * doc/.cvsignore, doc/Makefile.am:
5628 Reorganized: sources in `src', documentation in `doc'.
5630 1999-04-18 Jesse Thilo <jthilo@gnu.org>
5633 Updated AC_INIT file to reflect directory reorganization.
5635 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
5636 Reorganized: sources in `src', documentation in `doc'.
5638 1999-04-13 Jesse Thilo <jthilo@gnu.org>
5641 Don't declare calloc() and realloc() if not necessary.
5643 1999-04-13 Jesse Thilo <jthilo@gnu.org>
5645 * configure.in, acconfig.h, acinclude.m4:
5646 Don't declare calloc() and realloc() if not necessary.
5648 1999-03-23 Jesse Thilo <jthilo@gnu.org>
5650 * po/.cvsignore: Added i18n support.
5652 1999-03-23 Jesse Thilo <jthilo@gnu.org>
5654 * acconfig.h, configure.in, Makefile.am:
5657 1999-03-22 Jesse Thilo <jthilo@gnu.org>
5659 * src/bison.s1: Fixed #line numbers.
5661 1999-03-15 Jesse Thilo <jthilo@gnu.org>
5663 * po/es.po, po/fr.po, po/nl.po, po/de.po:
5664 Added PO files from Translation Project.
5666 1999-03-03 Jesse Thilo <jthilo@gnu.org>
5669 Added support for non-ANSI compilers (ansi2knr).
5671 1999-02-16 Jesse Thilo <jthilo@gnu.org>
5673 * configure.in: Bumped version number to 1.27.
5676 Added `bison.simple' to list of files removed by `make distclean'.
5678 1999-02-12 Jesse Thilo <jthilo@gnu.org>
5680 * src/files.c, src/files.h:
5681 Defined locations of parser files in config.h instead of Makefile.
5683 1999-02-12 Jesse Thilo <jthilo@gnu.org>
5685 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
5686 Defined locations of parser files in config.h instead of Makefile.
5688 1999-02-09 Jesse Thilo <jthilo@gnu.org>
5691 Removed inappropriate use of $< macro.
5693 1999-02-05 Jesse Thilo <jthilo@gnu.org>
5695 * po/Makefile.in.in, po/POTFILES.in:
5696 Add `po' directory skeleton.
5698 1999-01-27 Jesse Thilo <jthilo@gnu.org>
5700 * README: Document help-bison list.
5702 * configure.in: Add check for mkstemp().
5704 1999-01-20 Jesse Thilo <jthilo@gnu.org>
5706 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
5707 Hush a few compiler warnings.
5710 Add tryclose(), which verifies that fclose was successful.
5711 Hush a couple of compiler warnings.
5713 1999-01-20 Jesse Thilo <jthilo@gnu.org>
5715 * Makefile.am, OChangeLog:
5716 ChangeLog is now automatically generated. Include the old version as
5719 1999-01-14 Jesse Thilo <jthilo@gnu.org>
5721 * 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:
5724 1999-01-14 Jesse Thilo <jthilo@gnu.org>
5726 * doc/bison.texinfo: Fix formatting glitch.
5728 * doc/bison.texinfo: Update FSF address.
5730 1999-01-14 Jesse Thilo <jthilo@gnu.org>
5732 * acconfig.h: Update FSF address.
5734 1999-01-08 Jesse Thilo <jthilo@gnu.org>
5737 Don't define PACKAGE here, since config.h defines it.
5739 1998-12-30 Jesse Thilo <jthilo@gnu.org>
5741 * src/reader.c: Update copyright date.
5744 Ditch sprintf to statically-sized buffers in fatal/warn functions in
5745 favor of output directly to stderr (avoids buffer overruns).
5747 * src/reader.c: Some checks for premature EOF.
5749 * 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:
5750 Use prototypes if the compiler understands them.
5752 * src/files.c: Honor TMPDIR on Unix hosts.
5753 Use prototypes if the compiler understands them.
5756 Fix a couple of buffer overrun bugs.
5757 Use prototypes if the compiler understands them.
5759 * src/system.h: Include unistd.h and ctype.h.
5760 Use #ifdef instead of #if for NLS symbols.
5762 1998-12-30 Jesse Thilo <jthilo@gnu.org>
5764 * doc/bison.texinfo:
5765 Delete comment "consider using @set for edition number, etc..." since
5766 we now are doing so.
5768 1998-12-30 Jesse Thilo <jthilo@gnu.org>
5771 Use prototypes if the compiler understands them.
5773 * NEWS: Document 1.26 highlights.
5775 * Makefile.am: Require Automake 1.3 or later.
5778 Use prototypes if the compiler understands them.
5780 1998-12-29 Jesse Thilo <jthilo@gnu.org>
5783 Use VERSION symbol from automake for version number.
5785 1998-12-29 Jesse Thilo <jthilo@gnu.org>
5787 * acconfig.h, configure.in, version.cin:
5788 Use VERSION symbol from automake for version number.
5790 1998-11-28 Jesse Thilo <jthilo@gnu.org>
5793 Distribute original version of simple parser (bison.s1), not built
5794 version (bison.simple).
5796 1998-11-28 Jesse Thilo <jthilo@gnu.org>
5798 * doc/bison.texinfo: Add info dir entry.
5800 * doc/bison.texinfo:
5801 Let automake put version number into documentation.
5803 1998-11-26 Jesse Thilo <jthilo@gnu.org>
5805 * src/bison.cld, src/build.com, src/vmshlp.mar:
5806 Add non-RCS files from /gd/gnu/bison.
5808 1998-11-26 Jesse Thilo <jthilo@gnu.org>
5811 Document the BISON_HAIRY and BISON_SIMPLE variables.
5813 1998-11-25 Jesse Thilo <jthilo@gnu.org>
5815 * src/version.c: Build version.c automatically.
5818 Fix token numbering (used to start at 258, not 257).
5820 * src/system.h: Include config.h.
5822 * src/getargs.c: Update bug report address.
5824 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
5825 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
5827 1998-11-25 Jesse Thilo <jthilo@gnu.org>
5830 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
5832 * configure.in, version.cin:
5833 Build version.c automatically.
5835 * AUTHORS: Add AUTHORS file.
5837 * README: Update bug report address.
5840 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
5842 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
5845 1998-11-25 Jesse Thilo <jthilo@gnu.org>
5847 * doc/bison.texinfo: Clean up some formatting.
5849 1998-05-05 Richard Stallman <rms@gnu.org>
5851 * doc/bison.texinfo:
5852 Explain better why to make a pure parser.
5854 1998-01-05 Richard Stallman <rms@gnu.org>
5856 * src/files.c (openfiles):
5857 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
5858 find a temporary directory, if possible. Do not unlink files while
5861 1997-08-25 Richard Stallman <rms@gnu.org>
5863 * src/reader.c (stack_offset;):
5864 Change some warni to warns.
5866 * src/lex.c (literalchar): Use warns, not warni.
5868 1997-06-28 Richard Stallman <rms@gnu.org>
5870 * src/bison.s1: Add a Bison version comment.
5872 * src/main.c (fatal, warn, berror):
5875 1997-06-28 Richard Stallman <rms@gnu.org>
5877 * Makefile.in (bison_version): New variable.
5878 (dist): Use that variable.
5879 (bison.s1): Substitute the Bison version into bison.simple.
5881 * bison.simple: Add a Bison version comment.
5883 1997-06-18 Richard Stallman <rms@gnu.org>
5885 * src/main.c (fatal, warn, berror):
5886 Make error messages standard.
5887 (toomany): Improve error message text.
5889 * 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:
5890 new.h renamed to alloc.h.
5892 1997-06-18 Richard Stallman <rms@gnu.org>
5894 * Makefile.in: new.h renamed to alloc.h.
5896 1997-05-24 Richard Stallman <rms@gnu.org>
5898 * src/lex.c (literalchar):
5899 Fix the code for escaping \, " and '.
5901 (lex): Avoid trouble when there are many chars
5902 to discard in a char literal with just several chars in it.
5904 1997-05-17 Richard Stallman <rms@gnu.org>
5907 Use malloc, if using alloca is troublesome.
5908 (YYSTACK_USE_ALLOCA): New flag macro.
5909 Define it for some systems and compilers.
5910 (YYSTACK_ALLOC): New macro.
5911 (yyparse): Use YYSTACK_ALLOC to allocate stack.
5912 If it was malloc'd, free it.
5914 1997-05-17 Richard Stallman <rms@gnu.org>
5917 Use malloc, if using alloca is troublesome.
5918 (YYSTACK_USE_ALLOCA): New flag macro.
5919 Define it for some systems and compilers.
5920 (YYSTACK_ALLOC): New macro.
5921 (yyparse): Use YYSTACK_ALLOC to allocate stack.
5922 If it was malloc'd, free it.
5924 1997-04-23 Richard Stallman <rms@gnu.org>
5927 (alloca) [__hpux]: Always define as __builtin_alloca.
5929 1997-04-23 Richard Stallman <rms@gnu.org>
5932 (alloca) [__hpux]: Always define as __builtin_alloca.
5934 1997-04-22 Richard Stallman <rms@gnu.org>
5937 [__hpux]: Include alloca.h (right for HPUX 10)
5938 instead of declaring alloca (right for HPUX 9).
5940 * src/bison.s1 (__yy_memcpy):
5941 Declare arg `count' as unsigned int.
5942 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
5944 1997-04-22 Richard Stallman <rms@gnu.org>
5947 [__hpux]: Include alloca.h (right for HPUX 10)
5948 instead of declaring alloca (right for HPUX 9).
5950 * bison.simple (__yy_memcpy):
5951 Declare arg `count' as unsigned int.
5952 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
5954 1997-01-03 Richard Stallman <rms@gnu.org>
5956 * src/allocate.c: [__STDC__ or _MSC_VER]:
5957 Declare calloc and realloc to return void *.
5959 1997-01-02 Richard Stallman <rms@gnu.org>
5962 [_MSC_VER]: Include stdlib.h and process.h.
5963 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
5965 * src/main.c (main): Return FAILURE as a value.
5966 (printable_version): Declare arg as int, not char.
5968 1997-01-02 Richard Stallman <rms@gnu.org>
5970 * Makefile.in (dist):
5971 Explicitly check for symlinks, and copy them.
5973 1996-12-19 Richard Stallman <rms@gnu.org>
5976 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
5978 1996-12-18 Paul Eggert <eggert@gnu.org>
5980 * src/bison.s1 (yyparse):
5981 If __GNUC__ and YYPARSE_PARAM are both defined,
5982 declare yyparse to have a void * argument.
5984 1996-12-18 Paul Eggert <eggert@gnu.org>
5986 * bison.simple (yyparse):
5987 If __GNUC__ and YYPARSE_PARAM are both defined,
5988 declare yyparse to have a void * argument.
5990 1996-12-17 Richard Stallman <rms@gnu.org>
5992 * src/reduce.c (nbits): Add some casts.
5994 1996-08-12 Richard Stallman <rms@gnu.org>
5996 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
5998 1996-08-12 Richard Stallman <rms@gnu.org>
6000 * bison.simple: Test _MSDOS as well as _MSDOS_.
6002 1996-07-31 Richard Stallman <rms@gnu.org>
6005 [__sun && __i386]: Include alloca.h.
6007 1996-07-31 Richard Stallman <rms@gnu.org>
6010 [__sun && __i386]: Include alloca.h.
6012 1996-07-30 Richard Stallman <rms@gnu.org>
6014 * src/bison.s1: Comment change.
6016 * src/bison.s1: Test _MSDOS_, not MSDOS.
6018 1996-07-30 Richard Stallman <rms@gnu.org>
6020 * bison.simple: Comment change.
6022 * bison.simple: Test _MSDOS_, not MSDOS.
6024 1996-06-01 Richard Stallman <rms@gnu.org>
6026 * 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:
6027 Insert `_' macro around many string constants.
6030 Insert `_' macro around many string constants.
6032 (main): Call setlocale, bindtextdomain and textdomain.
6034 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
6035 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
6036 [ENABLE_NLS]: Include libintl.h.
6037 [ENABLE_NLS] (gettext): Define.
6038 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
6039 (N_, PACKAGE, LOCALEDIR): New macros.
6041 1996-06-01 Richard Stallman <rms@gnu.org>
6043 * POTFILES.in: New file.
6045 * Makefile.in (allocate.o):
6046 Define target explicitly.
6048 * Makefile.in (CFLAGS): Set to @CFLAGS@.
6049 (LDFLAGS): Set to @LDFLAGS@.
6050 (configure): Run autoconf only if preceding `cd' succeeds.
6051 (bison.s1): Redirect output to temporary file then move the
6052 temporary to the target, rather than redirecting directly to bison.s1.
6053 (clean): Remove config.status and config.log.
6054 (distclean): Don't remove config.status here.
6056 1996-05-12 Richard Stallman <rms@gnu.org>
6059 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6061 1996-05-12 Richard Stallman <rms@gnu.org>
6064 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6066 1996-05-11 Richard Stallman <rms@gnu.org>
6068 * src/bison.s1 (__yy_memcpy):
6069 Really reorder the args, as was supposedly done on Feb 14 1995.
6070 (yyparse): Calls changed accordingly.
6072 1996-05-11 Richard Stallman <rms@gnu.org>
6074 * Makefile.in (dist): Don't use $(srcdir).
6076 * bison.simple (__yy_memcpy):
6077 Really reorder the args, as was supposedly done on Feb 14 1995.
6078 (yyparse): Calls changed accordingly.
6080 1996-01-27 Richard Stallman <rms@gnu.org>
6082 * src/output.c (output_rule_data):
6083 Test YYERROR_VERBOSE in the conditional
6084 around the definition of ttyname.
6086 1995-12-29 Richard Stallman <rms@gnu.org>
6089 Fix line numbers in #line commands.
6091 1995-12-29 Richard Stallman <rms@gnu.org>
6094 Fix line numbers in #line commands.
6096 1995-12-27 Richard Stallman <rms@gnu.org>
6098 * src/bison.s1 (YYPARSE_PARAM_DECL):
6099 In C++, make it always null.
6100 (YYPARSE_PARAM_ARG): New macro.
6101 (yyparse): Use YYPARSE_PARAM_ARG.
6103 1995-12-27 Richard Stallman <rms@gnu.org>
6105 * bison.simple (YYPARSE_PARAM_DECL):
6106 In C++, make it always null.
6107 (YYPARSE_PARAM_ARG): New macro.
6108 (yyparse): Use YYPARSE_PARAM_ARG.
6110 1995-11-29 Richard Stallman <rms@gnu.org>
6112 * doc/bison.texinfo:
6113 Describe literal string tokens, %raw, %no_lines, %token_table.
6115 1995-11-29 Daniel Hagerty <hag@gnu.org>
6117 * doc/bison.texinfo: Fixed update date
6119 1995-10-16 Richard Stallman <rms@gnu.org>
6121 * src/version.c: Version 1.25.
6123 1995-10-16 Richard Stallman <rms@gnu.org>
6125 * NEWS: *** empty log message ***
6127 1995-10-16 Richard Stallman <rms@gnu.org>
6129 * doc/bison.1, doc/bison.rnh:
6132 1995-10-15 Richard Stallman <rms@gnu.org>
6134 * src/vmsgetargs.c, src/getargs.c:
6135 Added -n, -k, and -raw switches.
6136 (noparserflag, toknumflag, rawtoknumflag): New variables.
6138 * src/symtab.h (SALIAS):
6139 New #define for adding aliases to %token.
6140 (struct bucket): Added `alias' field.
6142 * src/reduce.c (reduce_grammar):
6143 Revise error message.
6144 (print_notices): Remove final `.' from error message.
6146 * src/reader.c (reader_output_yylsp):
6148 (readgram): Use `#if 0' around code that accepted %command
6149 inside grammar rules: The documentation doesn't allow it,
6150 and it will fail since the %command processors scan for the next %.
6151 (parse_token_decl): Extended the %token
6152 declaration to allow a multi-character symbol as an alias.
6153 (parse_thong_decl): New function.
6154 (read_declarations): Added %thong declarations.
6155 (read_declarations): Handle NOOP to deal with allowing
6156 % declarations as another means to specify the flags.
6157 (readgram): Allow %prec prior to semantics embedded in a rule.
6158 (skip_to_char, read_declarations, copy_definition)
6159 (parse_token_decl, parse_start_decl, parse_type_decl)
6160 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
6161 (get_type_name, copy_guard, copy_action, readgram)
6162 (get_type, packsymbols): Revised most error messages.
6163 Changed `fatal' to `warnxxx' to avoid aborting for error.
6164 Revised and use multiple warnxxx functions to avoid using VARARGS1.
6165 (read_declarations): Improve the error message for
6166 an invalid character. Do not abort.
6167 (read_declarations, copy_guard, copy_action): Use
6168 printable_version to avoid unprintable characters in printed output.
6169 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
6170 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
6171 Allow the type of a non-terminal can be given
6172 more than once, as long as all specifications give the same type.
6175 (output_headers, output_trailers, output, output_gram)
6176 (output_rule_data): Implement noparserflag variable.
6177 Implement toknumflag variable.
6178 (output): Call reader_output_yylsp to output LTYPESTR.
6180 * src/main.c (main):
6181 If reader sees an error, don't process the grammar.
6182 (fatals): Updated to not use VARARGS1.
6183 (printable_version, int_to_string, warn, warni, warns, warnss)
6184 (warnsss): New error reporting functions. Avoid abort for error.
6187 Added THONG and NOOP for alias processing.
6188 Added SETOPT for the new code that allows setting options with %flags.
6191 Include getopt.h. Add some extern decls.
6192 (safegetc): New function to deal with EOF gracefully.
6193 (literalchar); new function to deal with reading \ escapes.
6194 (lex): Use literalchar.
6195 (lex): Implemented "..." tokens.
6196 (literalchar, lex, parse_percent_token): Made tokenbuffer
6197 always contain the token. This includes growing the token
6198 buffer while reading an integer.
6199 (parse_percent_token): Replaced if-else statement with percent_table.
6200 (parse_percent_token): Added % declarations as another
6201 way to specify the flags -n, -l, and -r. Also added hooks for
6202 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
6203 major changes to files.c.
6204 (lex) Retain in the incoming stream a character following
6206 (skip_white_space, lex): Revised most error messages
6207 and changed fatal to warn to avoid aborting.
6208 (percent_table): Added %thong declarations.
6210 * src/gram.h: Comment changes.
6212 * src/files.c (openfiles, open_extra_files, done):
6214 and actfile file. Handle noparserflag. Both for -n switch.
6216 * src/conflicts.c (resolve_sr_conflict):
6217 Remove use of alloca.
6219 1995-06-01 Jim Meyering <meyering@gnu.org>
6221 * doc/bison.texinfo: *** empty log message ***
6223 1995-05-06 Richard Stallman <rms@gnu.org>
6225 * src/bison.s1: Comment change.
6227 1995-05-06 Richard Stallman <rms@gnu.org>
6229 * bison.simple: Comment change.
6231 1995-05-03 Richard Stallman <rms@gnu.org>
6233 * src/version.c: Version now 1.24.
6235 * src/bison.s1: Change distribution terms.
6237 * src/version.c: Version now 1.23.
6239 1995-05-03 Richard Stallman <rms@gnu.org>
6241 * doc/bison.texinfo:
6242 Rewrite "Conditions for Using Bison".
6243 Update version to 1.24.
6245 1995-05-03 Richard Stallman <rms@gnu.org>
6247 * bison.simple: Change distribution terms.
6249 1995-02-23 Richard Stallman <rms@gnu.org>
6251 * src/files.c: Test __VMS_POSIX as well as VMS.
6253 1995-02-14 Jim Meyering <meyering@gnu.org>
6255 * src/bison.s1 (__yy_memcpy):
6256 Renamed from __yy_bcopy to avoid
6257 confusion. Reverse FROM and TO arguments to be consistent with
6260 1995-02-14 Jim Meyering <meyering@gnu.org>
6262 * bison.simple (__yy_memcpy):
6263 Renamed from __yy_bcopy to avoid
6264 confusion. Reverse FROM and TO arguments to be consistent with
6267 1994-11-10 David J. MacKenzie <djm@gnu.org>
6273 * Makefile.in (DISTFILES): Include NEWS.
6275 * Makefile.in (DISTFILES):
6276 Include install-sh, not install.sh.
6278 * configure.in: Update to Autoconf v2 macro names.
6280 1994-10-05 David J. MacKenzie <djm@gnu.org>
6282 * Makefile.in: fix typo
6284 * Makefile.in (prefix, exec_prefix):
6285 Let configure set them.
6287 1994-09-28 David J. MacKenzie <djm@gnu.org>
6289 * Makefile.in: Set datadir to $(prefix)/share.
6291 1994-09-15 Richard Stallman <rms@gnu.org>
6294 Update copyright notice and GPL version.
6296 1994-09-15 Richard Stallman <rms@gnu.org>
6299 Update copyright notice and GPL version.
6301 1994-07-12 Richard Stallman <rms@gnu.org>
6303 * src/reduce.c, src/reader.c:
6306 1994-05-05 David J. MacKenzie <djm@gnu.org>
6308 * Makefile.in: entered into RCS
6310 1994-03-26 Richard Stallman <rms@gnu.org>
6312 * src/bison.s1: entered into RCS
6314 1994-03-26 Richard Stallman <rms@gnu.org>
6316 * bison.simple: entered into RCS
6318 1994-03-25 Richard Stallman <rms@gnu.org>
6320 * src/main.c: entered into RCS
6322 1994-03-24 Richard Stallman <rms@gnu.org>
6324 * src/conflicts.c: entered into RCS
6326 1994-01-02 Richard Stallman <rms@gnu.org>
6328 * Makefile.in: *** empty log message ***
6330 1993-11-21 Richard Stallman <rms@gnu.org>
6332 * src/bison.s1: *** empty log message ***
6334 1993-11-21 Richard Stallman <rms@gnu.org>
6336 * doc/bison.texinfo: entered into RCS
6338 * doc/bison.texinfo: *** empty log message ***
6340 1993-11-21 Richard Stallman <rms@gnu.org>
6342 * bison.simple: *** empty log message ***
6344 1993-10-25 David J. MacKenzie <djm@gnu.org>
6346 * doc/bison.texinfo: *** empty log message ***
6348 1993-10-19 Richard Stallman <rms@gnu.org>
6350 * src/bison.s1: *** empty log message ***
6352 1993-10-19 Richard Stallman <rms@gnu.org>
6354 * bison.simple: *** empty log message ***
6356 1993-10-14 Richard Stallman <rms@gnu.org>
6358 * src/bison.s1: *** empty log message ***
6360 1993-10-14 Richard Stallman <rms@gnu.org>
6362 * bison.simple: *** empty log message ***
6364 1993-09-14 David J. MacKenzie <djm@gnu.org>
6366 * doc/bison.texinfo: *** empty log message ***
6368 1993-09-13 Noah Friedman <friedman@gnu.org>
6370 * Makefile.in: *** empty log message ***
6372 1993-09-10 Richard Stallman <rms@gnu.org>
6374 * src/conflicts.c: *** empty log message ***
6376 * src/system.h: entered into RCS
6378 1993-09-10 Richard Stallman <rms@gnu.org>
6380 * doc/bison.1: entered into RCS
6382 1993-09-06 Noah Friedman <friedman@gnu.org>
6384 * src/version.c: entered into RCS
6386 1993-09-06 Noah Friedman <friedman@gnu.org>
6388 * Makefile.in: *** empty log message ***
6390 1993-07-30 David J. MacKenzie <djm@gnu.org>
6392 * Makefile.in: *** empty log message ***
6394 1993-07-24 Richard Stallman <rms@gnu.org>
6396 * src/bison.s1: *** empty log message ***
6398 1993-07-24 Richard Stallman <rms@gnu.org>
6400 * bison.simple: *** empty log message ***
6402 1993-07-08 David J. MacKenzie <djm@gnu.org>
6404 * Makefile.in: *** empty log message ***
6406 1993-07-04 Richard Stallman <rms@gnu.org>
6408 * src/bison.s1: *** empty log message ***
6410 1993-07-04 Richard Stallman <rms@gnu.org>
6412 * bison.simple: *** empty log message ***
6414 1993-06-26 David J. MacKenzie <djm@gnu.org>
6416 * src/getargs.c: entered into RCS
6418 1993-06-26 David J. MacKenzie <djm@gnu.org>
6420 * doc/bison.texinfo: *** empty log message ***
6422 * doc/bison.1: New file.
6424 1993-06-25 Richard Stallman <rms@gnu.org>
6426 * src/getargs.c: New file.
6428 1993-06-16 Richard Stallman <rms@gnu.org>
6430 * src/bison.s1: *** empty log message ***
6432 1993-06-16 Richard Stallman <rms@gnu.org>
6434 * bison.simple: *** empty log message ***
6436 1993-06-03 Richard Stallman <rms@gnu.org>
6438 * src/bison.s1: New file.
6440 1993-06-03 Richard Stallman <rms@gnu.org>
6442 * doc/bison.texinfo: *** empty log message ***
6444 1993-06-03 Richard Stallman <rms@gnu.org>
6446 * bison.simple: New file.
6448 1993-05-19 Richard Stallman <rms@gnu.org>
6450 * doc/bison.texinfo: New file.
6452 1993-05-07 Noah Friedman <friedman@gnu.org>
6454 * Makefile.in: *** empty log message ***
6456 1993-04-28 Noah Friedman <friedman@gnu.org>
6458 * src/reader.c: *** empty log message ***
6460 1993-04-23 Noah Friedman <friedman@gnu.org>
6462 * src/alloc.h: entered into RCS
6464 1993-04-20 David J. MacKenzie <djm@gnu.org>
6466 * src/version.c: *** empty log message ***
6468 * src/files.c, src/allocate.c:
6471 * src/reader.c: *** empty log message ***
6473 * src/lex.c: entered into RCS
6475 * src/conflicts.c: New file.
6477 * src/symtab.c: entered into RCS
6479 * src/alloc.h: New file.
6481 * src/LR0.c: entered into RCS
6483 1993-04-18 Noah Friedman <friedman@gnu.org>
6485 * src/reader.c: New file.
6487 * src/version.c: *** empty log message ***
6489 1993-04-18 Noah Friedman <friedman@gnu.org>
6491 * Makefile.in: *** empty log message ***
6493 1993-04-17 Noah Friedman <friedman@gnu.org>
6495 * Makefile.in: *** empty log message ***
6497 1993-04-15 Richard Stallman <rms@gnu.org>
6499 * src/main.c, src/files.c:
6502 1993-04-15 Noah Friedman <friedman@gnu.org>
6504 * configure.in: entered into RCS
6506 * configure.in: *** empty log message ***
6508 * configure.in: New file.
6510 1993-04-14 Richard Stallman <rms@gnu.org>
6512 * Makefile.in: New file.
6514 1993-04-13 Richard Stallman <rms@gnu.org>
6516 * src/version.c: New file.
6518 1993-03-25 Richard Stallman <rms@gnu.org>
6520 * src/output.c: entered into RCS
6522 1992-09-25 Richard Stallman <rms@gnu.org>
6524 * configure.bat: entered into RCS
6526 1992-06-22 Richard Stallman <rms@gnu.org>
6528 * src/vmsgetargs.c: entered into RCS
6530 1992-06-22 Richard Stallman <rms@gnu.org>
6532 * doc/bison.rnh: entered into RCS
6534 1992-04-20 David J. MacKenzie <djm@gnu.org>
6536 * README: entered into RCS
6538 1992-01-22 Richard Stallman <rms@gnu.org>
6540 * src/machine.h: entered into RCS
6542 1991-12-21 Richard Stallman <rms@gnu.org>
6544 * src/lalr.c, src/closure.c:
6547 1991-12-20 Richard Stallman <rms@gnu.org>
6549 * src/state.h: entered into RCS
6551 1991-12-18 Richard Stallman <rms@gnu.org>
6553 * src/print.c, src/nullable.c, src/derives.c:
6556 1991-11-03 David J. MacKenzie <djm@gnu.org>
6558 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
6561 1988-09-09 Richard Stallman <rms@gnu.org>
6563 * src/bison.hairy: entered into RCS
6565 1987-12-16 Richard Stallman <rms@gnu.org>
6567 * REFERENCES: entered into RCS
6570 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
6572 This file is part of GNU Autoconf.
6574 GNU Autoconf is free software; you can redistribute it and/or modify
6575 it under the terms of the GNU General Public License as published by
6576 the Free Software Foundation; either version 2, or (at your option)
6579 GNU Autoconf is distributed in the hope that it will be useful,
6580 but WITHOUT ANY WARRANTY; without even the implied warranty of
6581 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6582 GNU General Public License for more details.
6584 You should have received a copy of the GNU General Public License
6585 along with autoconf; see the file COPYING. If not, write to
6586 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
6587 Boston, MA 02111-1307, USA.