]> git.saurik.com Git - bison.git/blob - ChangeLog
* doc/bison.texinfo (Debugging): Split into...
[bison.git] / ChangeLog
1 2002-05-25 Akim Demaille <akim@epita.fr>
2
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
7 by...
8 (report_flag): this.
9 Adjust all dependencies.
10 (report_args, report_types, report_argmatch): New.
11 (usage, getargs): Report/support -r, --report.
12 * src/options.h
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
16 struct.
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.
23
24 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
25 and Paul Eggert <eggert@twinsun.com>
26
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.
33
34 2002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
35
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.
44
45 * tests/regression.at: Modify expected output to agree with change
46 to yyr1 and yytranslate.
47
48 2002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
49
50 * src/reader.c (parse_action): Use copy_character instead of
51 obstack_1grow.
52
53 2002-05-13 Akim Demaille <akim@epita.fr>
54
55 * tests/regression.at (Token definitions): Prototype yylex and
56 yyerror.
57
58 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
59
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
62 32-bit arithmetic.
63 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
64
65 2002-05-07 Akim Demaille <akim@epita.fr>
66
67 * tests/synclines.at: Be sure to prototype yylex and yyerror to
68 avoid GCC warnings.
69
70 2002-05-07 Akim Demaille <akim@epita.fr>
71
72 Kill GCC warnings.
73
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
81 `Type'.
82 (muscle_insert_int_table): Remove, unused.
83 (prepare_rules): Remove `max'.
84
85 2002-05-06 Akim Demaille <akim@epita.fr>
86
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):
90 here.
91 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
92
93 2002-05-06 Akim Demaille <akim@epita.fr>
94
95 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
96 hash_do_for_each.
97
98 2002-05-06 Akim Demaille <akim@epita.fr>
99
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'.
103 Adjust callers.
104
105 2002-05-06 Akim Demaille <akim@epita.fr>
106
107 * src/reader.c (packgram): No longer end `ritem' with a 0
108 sentinel: it is not used.
109
110 2002-05-05 Akim Demaille <akim@epita.fr>
111
112 New experimental feature: display the lookaheads in the report and
113 graph.
114
115 * src/print (print_core): When --trace-flag, display the rules
116 lookaheads.
117 * src/print_graph.c (print_core): Likewise.
118 Swap the arguments.
119 Adjust caller.
120
121 2002-05-05 Akim Demaille <akim@epita.fr>
122
123 * tests/torture.at (Many lookaheads): New test.
124
125 2002-05-05 Akim Demaille <akim@epita.fr>
126
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.
134 Adjust all callers.
135 (prepare_tokens): Don't free `translations', since...
136 * src/reader.h, src/reader.c (grammar_free): do it.
137 Move to...
138 * src/gram.h, src/gram.c (grammar_free): here.
139 * data/bison.simple, data/bison.c++: b4_token_number_max is now
140 b4_translate_max.
141
142 2002-05-05 Akim Demaille <akim@epita.fr>
143
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'.
149 Free rline and r1.
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.
153
154 2002-05-04 Akim Demaille <akim@epita.fr>
155
156 * src/symtab.h (SALIAS, SUNDEF): Rename as...
157 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
158 Adjust dependencies.
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.
162
163 2002-05-03 Paul Eggert <eggert@twinsun.com>
164
165 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
166 for K&R C.
167
168 2002-05-03 gettextize <bug-gnu-gettext@gnu.org>
169
170 * Makefile.am (SUBDIRS): Remove intl.
171 (EXTRA_DIST): Add config/config.rpath.
172
173 2002-05-03 Akim Demaille <akim@epita.fr>
174
175 * data/bison.simple (m4_if): Don't output empty enums.
176 And actually, output valid enum definitions :(.
177
178 2002-05-03 Akim Demaille <akim@epita.fr>
179
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.
184
185 2002-05-03 Akim Demaille <akim@epita.fr>
186
187 * configure.in (GETTEXT_VERSION): New.
188 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
189
190 2002-05-03 Akim Demaille <akim@epita.fr>
191
192 * data/bison.simple (b4_token_enum): New.
193 (b4_token_defines): Use it to output tokens both as #define and
194 enums.
195 Suggested by Paul Eggert.
196 * src/output.c (token_definitions_output): Don't output spurious
197 white spaces.
198
199 2002-05-03 Akim Demaille <akim@epita.fr>
200
201 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
202
203 2002-05-02 Robert Anisko <robert@lrde.epita.fr>
204
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.
207
208 2002-05-02 Akim Demaille <akim@epita.fr>
209
210 * data/bison.simple (yyparse): Do not implement @$ = @1.
211 (YYLLOC_DEFAULT): Adjust to do it.
212 * doc/bison.texinfo (Location Default Action): Fix.
213
214 2002-05-02 Akim Demaille <akim@epita.fr>
215
216 * src/reader.c (parse_braces): Merge into...
217 (parse_action): this.
218
219 2002-05-02 Akim Demaille <akim@epita.fr>
220
221 * configure.in (ALL_LINGUAS): Remove.
222 * po/LINGUAS, hr.po: New.
223
224 2002-05-02 Akim Demaille <akim@epita.fr>
225
226 Remove the so called hairy (semantic) parsers.
227
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
233 support.
234 * src/output.c, src/output.h (guards_output): Remove.
235 (prepare): Adjust.
236 (token_definitions_output): Don't output the `T'
237 tokens (???).
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
241 members.
242 Adjust dependencies.
243 (parse_guard): Remove.
244 * data/bison.hairy: Remove.
245 * doc/bison.texinfo (Environment Variables): Remove occurrences of
246 BISON_HAIRY.
247
248 2002-05-02 Akim Demaille <akim@epita.fr>
249
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.
253 Adjust callers.
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
259 always use `-n'.
260 * data/bison.simple, data/bison.c++ (b4_lhs_value)
261 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
262
263 2002-05-02 Akim Demaille <akim@epita.fr>
264
265 * configure.in (AC_INIT): Bump to 1.49b.
266 (AM_INIT_AUTOMAKE): Short invocation.
267
268 2002-05-02 Akim Demaille <akim@epita.fr>
269
270 Version 1.49a.
271
272 2002-05-01 Akim Demaille <akim@epita.fr>
273
274 * src/skeleton.h: Remove.
275
276 2002-05-01 Akim Demaille <akim@epita.fr>
277
278 * src/skeleton.h: Fix the #endif.
279 Reported by Magnus Fromreide.
280
281 2002-04-26 Paul Eggert <eggert@twinsun.com>
282
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.
286
287 2002-04-25 Robert Anisko <robert@lrde.epita.fr>
288
289 * src/scan-skel.l: Postprocess quadrigraphs.
290
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.
298
299 * tests/calc.at: Exercise M4 quoting.
300
301 2002-04-25 Akim Demaille <akim@epita.fr>
302
303 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
304 between `!' and the command.
305 Reported by Paul Eggert.
306
307 2002-04-24 Robert Anisko <robert@lrde.epita.fr>
308
309 * tests/calc.at: Exercise prologue splitting.
310
311 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
312 `b4_post_prologue' instead of `b4_prologue'.
313
314 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
315 muscles.
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.
323
324 2002-04-23 Paul Eggert <eggert@twinsun.com>
325
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).
329
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.
334
335 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
336
337 2002-04-23 Akim Demaille <akim@epita.fr>
338
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.
344
345 2002-04-22 Akim Demaille <akim@epita.fr>
346
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.
351
352 2002-04-22 Akim Demaille <akim@epita.fr>
353
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.
357
358 2002-04-22 Akim Demaille <akim@epita.fr>
359
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.
363
364 2002-04-22 Akim Demaille <akim@epita.fr>
365
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)).
375
376 2002-04-22 Akim Demaille <akim@epita.fr>
377
378 Propagate more token_number_t.
379
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.
389
390 2002-04-22 Akim Demaille <akim@epita.fr>
391
392 * src/output.h, src/output.c (get_lines_number): Remove.
393
394 2002-04-19 Akim Demaille <akim@epita.fr>
395
396 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
397 as Lex/Flex'.
398 (Debugging): More details about enabling the debugging features.
399 (Table of Symbols): Describe $$, $n, @$, and @n.
400 Suggested by Tim Josling.
401
402 2002-04-19 Akim Demaille <akim@epita.fr>
403
404 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
405
406 2002-04-10 Akim Demaille <akim@epita.fr>
407
408 * src/system.h: Rely on HAVE_LIMITS_H.
409 Suggested by Paul Eggert.
410
411 2002-04-09 Akim Demaille <akim@epita.fr>
412
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.
421 Adjust the tests.
422 Error message are for stderr, not stdout.
423
424 2002-04-09 Akim Demaille <akim@epita.fr>
425
426 * src/gram.h, src/gram.c (error_token_number): Remove, use
427 errtoken->number.
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
434 hard coded 2.
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
437 might not be 2).
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.
444
445 * tests/conflicts.at (Solved SR Conflicts)
446 (Unresolved SR Conflicts): Adjust.
447 * tests/regression.at (Web2c Actions): Adjust.
448
449 2002-04-08 Akim Demaille <akim@epita.fr>
450
451 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
452 Adding #line.
453 Remove the duplicate `typedefs'.
454 (RhsNumberType): Fix the declaration and various other typos.
455 Use __ofile__.
456 * data/bison.simple: Use __ofile__.
457 * src/scan-skel.l: Handle __ofile__.
458
459 2002-04-08 Akim Demaille <akim@epita.fr>
460
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
464 numbers.
465 Adjust all dependencies (pretty many).
466 * src/reduce.c (rule): Remove this `short *' pointer: use
467 item_number_t.
468 * src/system.h (MINSHORT, MAXSHORT): Remove.
469 Include `limits.h'.
470 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
471 (shortcpy): Remove.
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
477 500.
478 * tests/regression.at (Web2c Actions): Ajust.
479
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
484 C), it passes.
485 * src/state.h (state_h): Code input lines on ints, not shorts.
486
487 2002-04-08 Akim Demaille <akim@epita.fr>
488
489 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
490 and then the grammar.
491
492 2002-04-08 Akim Demaille <akim@epita.fr>
493
494 * src/system.h: No longer using strndup.
495
496 2002-04-07 Akim Demaille <akim@epita.fr>
497
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):
502 New.
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
506 253.
507 * tests/regression.at (Web2c Actions): Adjust.
508
509 2002-04-07 Akim Demaille <akim@epita.fr>
510
511 * tests/torture.at (Big triangle): New.
512 (GNU AWK Grammar, GNU Cim Grammar): Move to...
513 * tests/existing.at: here.
514
515 2002-04-07 Akim Demaille <akim@epita.fr>
516
517 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
518 nritems.
519 Adjust dependencies.
520
521 2002-04-07 Akim Demaille <akim@epita.fr>
522
523 * src/reader.c: Normalize increments to prefix form.
524
525 2002-04-07 Akim Demaille <akim@epita.fr>
526
527 * src/reader.c, symtab.c: Remove debugging code.
528
529 2002-04-07 Akim Demaille <akim@epita.fr>
530
531 Rename all the `bucket's as `symbol_t'.
532
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...
536 (symbol_t): this.
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.
545
546 2002-04-07 Akim Demaille <akim@epita.fr>
547
548 Use lib/hash for the symbol table.
549
550 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
551 EOF.
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
561 members.
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.
566
567 2002-04-07 Akim Demaille <akim@epita.fr>
568
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):
573 Initialize.
574 (reader): Don't.
575 (errtoken, eoftoken, undeftoken, axiom): Extern.
576
577 2002-04-07 Akim Demaille <akim@epita.fr>
578
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.
583
584 2002-04-07 Akim Demaille <akim@epita.fr>
585
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.
588
589 2002-04-07 Akim Demaille <akim@epita.fr>
590
591 * src/lalr.h (LA): Is a bitsetv, not bitset*.
592
593 2002-04-07 Akim Demaille <akim@epita.fr>
594
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.
598
599 2002-04-07 Akim Demaille <akim@epita.fr>
600
601 * src/gram.h (rule_t): Rename `number' as `user_number'.
602 `number' is a new member.
603 Adjust dependencies.
604 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
605
606 2002-04-07 Akim Demaille <akim@epita.fr>
607
608 As a result of the previous patch, it is no longer needed
609 to reorder ritem itself.
610
611 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
612
613 2002-04-07 Akim Demaille <akim@epita.fr>
614
615 Be sure never to walk through RITEMS, but use only data related to
616 the rules themselves. RITEMS should be banished.
617
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
625 (output_gram): this.
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.
631
632 2002-04-07 Akim Demaille <akim@epita.fr>
633
634 * src/LR0.c (new_state): Display `nstates' as the name of the
635 newly created state.
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
639 new_state.
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
642 creating `ruleset'.
643
644 As a result, now the rule 0, reducing to $axiom, is visible in the
645 outputs. Adjust the test suite.
646
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.
651
652 2002-04-07 Akim Demaille <akim@epita.fr>
653
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.
657
658 2002-04-07 Akim Demaille <akim@epita.fr>
659
660 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
661 bucket.
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'.
669
670 2002-04-07 Akim Demaille <akim@epita.fr>
671
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.
682
683 2002-04-07 Akim Demaille <akim@epita.fr>
684
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...
688
689 2002-04-07 Akim Demaille <akim@epita.fr>
690
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.
694
695 2002-04-07 Akim Demaille <akim@epita.fr>
696
697 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
698 Normalize loops to using `< nrules + 1', not `<= nrules'.
699
700 2002-04-07 Akim Demaille <akim@epita.fr>
701
702 * TODO: Update.
703
704 2002-04-07 Akim Demaille <akim@epita.fr>
705
706 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
707 bucket.value as bucket.number.
708
709 2002-04-07 Akim Demaille <akim@epita.fr>
710
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.
715
716 2002-04-04 Paul Eggert <eggert@twinsun.com>
717
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.
723
724 2002-04-03 Paul Eggert <eggert@twinsun.com>
725
726 * src/bison.data (YYSTACK_ALLOC): Depend on whether
727 YYERROR_VERBOSE is nonzero, not whether it is defined.
728
729 Merge changes from bison-1_29-branch.
730
731 2002-03-20 Paul Eggert <eggert@twinsun.com>
732
733 Merge fixes from Debian bison_1.34-1.diff.
734
735 * configure.in (AC_PREREQ): 2.53.
736
737 2002-03-20 Akim Demaille <akim@epita.fr>
738
739 * src/conflicts.c (log_resolution): Argument `resolution' is const.
740
741 2002-03-19 Paul Eggert <eggert@twinsun.com>
742
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.
747
748 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
749 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
750
751 2002-03-19 Akim Demaille <akim@epita.fr>
752
753 Test and fix the #line outputs.
754
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.
761
762 2002-03-19 Akim Demaille <akim@epita.fr>
763
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.
768
769 2002-03-19 Akim Demaille <akim@epita.fr>
770
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'.
777
778 2002-03-14 Akim Demaille <akim@epita.fr>
779
780 Use Gettext 0.11.1.
781
782 2002-03-09 Robert Anisko <robert@lrde.epita.fr>
783
784 * data/bison.c++: Make the user able to add members to the generated
785 parser by subclassing.
786
787 2002-03-05 Robert Anisko <robert@lrde.epita.fr>
788
789 * src/reader.c (read_additionnal_code): `c' should be an integer, not
790 a character.
791 Reported by Nicolas Tisserand and Nicolas Burrus.
792
793 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
794
795 * src/reader.c: Warn about lacking semi-colons, do not complain.
796
797 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
798
799 * data/bison.c++: Remove a debug line.
800
801 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
802
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.
806
807 2002-03-04 Akim Demaille <akim@epita.fr>
808
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
814 with a semi-colon.
815
816 2002-03-04 Akim Demaille <akim@epita.fr>
817
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
821 RTC.
822 * src/warshall.h, src/warshall.c: Remove.
823 * tests/sets.at (Broken Closure): Adjust.
824
825 2002-03-04 Akim Demaille <akim@epita.fr>
826
827 * src/output.c (output_skeleton): tempdir is const.
828 bytes_read is unused.
829
830 2002-03-04 Akim Demaille <akim@epita.fr>
831
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:
834 Update.
835 From Michael Hayes.
836
837 2002-03-04 Akim Demaille <akim@epita.fr>
838
839 * src/closure.c (closure): `r' is unused.
840
841 2002-03-04 Akim Demaille <akim@epita.fr>
842
843 * tests/sets.at (Broken Closure): Add the ending `;'.
844 * src/reader.at (readgram): Complain if a rule is not ended with a
845 semi-colon.
846
847 2002-03-04 Akim Demaille <akim@epita.fr>
848
849 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
850 (count_sr_conflicts): Use bitset_count.
851 * src/reduce.c (inaccessable_symbols): Ditto.
852 (bits_size): Remove.
853 * src/warshall.h, src/warshall.c: Convert to bitsetv.
854
855 2002-03-04 Akim Demaille <akim@epita.fr>
856
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.
860
861 2002-03-04 Akim Demaille <akim@epita.fr>
862
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.
867
868 2002-03-04 Akim Demaille <akim@epita.fr>
869
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.
873
874 2002-03-04 Akim Demaille <akim@epita.fr>
875
876 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
877 before returning.
878 Reported by Benoit Perrot.
879
880 2002-03-04 Akim Demaille <akim@epita.fr>
881
882 Use bitset operations when possible, not loops over bits.
883
884 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
885 bitset_or.
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.
889
890 2002-03-04 Akim Demaille <akim@epita.fr>
891
892 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
893 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
894 Ditto.
895
896 2002-03-04 Akim Demaille <akim@epita.fr>
897
898 * src/lalr.c (F): Now a bitset*.
899 Adjust all dependencies.
900
901 2002-03-04 Akim Demaille <akim@epita.fr>
902
903 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
904 Adjust all dependencies.
905
906 2002-03-04 Akim Demaille <akim@epita.fr>
907
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
911 bitset*.
912 Adjust all dependencies.
913
914 2002-03-04 Akim Demaille <akim@epita.fr>
915
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.
920
921 2002-03-04 Akim Demaille <akim@epita.fr>
922
923 * src/print.c: Convert to use bitset.h, not hand coded iterations
924 over ints.
925
926 2002-03-04 Akim Demaille <akim@epita.fr>
927
928 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
929
930 2002-03-04 Akim Demaille <akim@epita.fr>
931
932 * src/closure.c (ruleset): Be a bitset.
933 (rulesetsize): Remove.
934
935 2002-03-04 Akim Demaille <akim@epita.fr>
936
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.
941
942 2002-02-28 Robert Anisko <robert@lrde.epita.fr>
943
944 * data/bison.c++: Merge the two generated headers. Insert a copyright
945 notice in each output file.
946
947 2002-02-28 Akim Demaille <akim@epita.fr>
948
949 * data/bison.c++: Copy the prologue of bison.simple to fetch
950 useful M4 definitions, such as b4_header_guard.
951
952 2002-02-25 Akim Demaille <akim@epita.fr>
953
954 * src/getargs.c (version): Give the name of the authors, and use a
955 translator friendly scheme for the bgr
956 copyright notice.
957
958 2002-02-25 Akim Demaille <akim@epita.fr>
959
960 * src/output.c (header_output): Remove, now handled completely via
961 M4.
962
963 2002-02-25 Akim Demaille <akim@epita.fr>
964
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
968 hard coded name.
969
970 2002-02-25 Akim Demaille <akim@epita.fr>
971
972 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
973 Fileutils 4.1.5.
974 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
975 * src/output.c (output_skeleton): Use mkstemp to create a real
976 temporary file.
977 Move the filling of `skeleton' and its muscle to...
978 (prepare): here.
979 (output): Move the definition of the prologue muscle to...
980 (prepare): here.
981 * src/system.h (DEFAULT_TMPDIR): New.
982
983 2002-02-14 Paul Eggert <eggert@twinsun.com>
984
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.
989
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.
997
998 2002-02-14 Akim Demaille <akim@epita.fr>
999
1000 * tests/regression.at (else): Adjust to Andreas' change.
1001
1002 2002-02-14 Akim Demaille <akim@epita.fr>
1003
1004 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
1005
1006 2002-02-13 Andreas Schwab <schwab@suse.de>
1007
1008 * src/output.c (output_rule_data): Don't output NULL, it might
1009 not be defined yet.
1010
1011 2002-02-11 Robert Anisko <robert@lrde.epita.fr>
1012
1013 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
1014 (Copyright notice): Update.
1015
1016 2002-02-11 Akim Demaille <akim@epita.fr>
1017
1018 * tests/regression.at (%nonassoc and eof): Don't include
1019 nonportable headers.
1020
1021 2002-02-08 Robert Anisko <robert@lrde.epita.fr>
1022
1023 * data/bison.c++: Correct error recovery. Make the user able to
1024 initialize the starting location.
1025
1026 2002-02-07 Akim Demaille <akim@epita.fr>
1027
1028 * tests/input.at: New.
1029
1030 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1031
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.
1035
1036 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1037
1038 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
1039 C++ parsers.
1040 (yy::b4_name::parse): Use print_.
1041
1042 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1043
1044 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
1045
1046 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1047
1048 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
1049 C++ parsers.
1050 (yy::b4_name::parse): Build verbose error messages, and use error_.
1051
1052 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1053
1054 * data/bison.c++: Fix m4 quoting in comments.
1055
1056 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1057
1058 * data/bison.c++: Adjust the parser code. Fix some muscles that were
1059 not expanded by m4.
1060
1061 2002-02-05 Akim Demaille <akim@epita.fr>
1062
1063 * data/bison.c++: Adjust to the M4 back end.
1064 More is certainly needed.
1065
1066 2002-02-05 Akim Demaille <akim@epita.fr>
1067
1068 Give a try to M4 as a back end.
1069
1070 * lib/readpipe.c: New, from wdiff.
1071 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
1072 BISON_HAIRY.
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
1081 action member.
1082 Adjust callers.
1083 (output_skeleton): Don't look for the skeleton location, let m4 do
1084 that.
1085 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
1086 file will be used.
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
1097 to date.
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.
1102
1103 2002-02-05 Akim Demaille <akim@epita.fr>
1104
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.
1108
1109 2002-02-05 Akim Demaille <akim@epita.fr>
1110
1111 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
1112 which have no values.
1113
1114 2002-02-05 Akim Demaille <akim@epita.fr>
1115
1116 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
1117 * data/: here.
1118
1119 2002-01-29 Paul Eggert <eggert@twinsun.com>
1120
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).
1124
1125 2002-01-27 Akim Demaille <akim@epita.fr>
1126
1127 Fix `%nonassoc and eof'.
1128
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);
1132 with
1133 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
1134 !!!
1135 * tests/regression.at (%nonassoc and eof): Adjust to newest
1136 Autotest: `.' is not in the PATH.
1137
1138 2002-01-27 Akim Demaille <akim@epita.fr>
1139
1140 * tests/sets.at (AT_EXTRACT_SETS): New.
1141 (Nullable): Use it.
1142 (Firsts): New.
1143
1144 2002-01-26 Akim Demaille <akim@epita.fr>
1145
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.
1149
1150 2002-01-25 Akim Demaille <akim@epita.fr>
1151
1152 * tests/regression.at (%nonassoc and eof): New.
1153 Suggested by Robert Anisko.
1154
1155 2002-01-24 Akim Demaille <akim@epita.fr>
1156
1157 Bison dumps core when trying to complain about broken input files.
1158 Reported by Cris van Pelt.
1159
1160 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
1161 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
1162 into...
1163 (Invalid inputs): Strengthen: exercise parse_percent_token.
1164
1165 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
1166
1167 * src/Makefile.am: Add bison.c++.
1168 * src/bison.c++: New skeleton.
1169
1170 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
1171
1172 * po/it.po: New.
1173
1174 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
1175
1176 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
1177
1178 2002-01-20 Marc Autret <marc@gnu.org>
1179
1180 * src/files.c (compute_output_file_names): Fix
1181
1182 2002-01-20 Marc Autret <marc@gnu.org>
1183
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.
1188
1189 2002-01-20 Marc Autret <marc@gnu.org>
1190
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.
1194
1195 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
1196
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).
1201
1202 2002-01-11 Akim Demaille <akim@epita.fr>
1203
1204 * configure.in: Use AC_FUNC_STRNLEN.
1205 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
1206
1207 2002-01-09 Akim Demaille <akim@epita.fr>
1208
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
1213 `output-suffix'.
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.
1220
1221 2002-01-09 Akim Demaille <akim@epita.fr>
1222
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.
1228
1229 2002-01-08 Akim Demaille <akim@epita.fr>
1230
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.
1237
1238 2002-01-08 Akim Demaille <akim@epita.fr>
1239
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
1244 prototype.
1245
1246 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
1247
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.
1253
1254 2002-01-06 Akim Demaille <akim@epita.fr>
1255
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.
1261
1262 2002-01-06 Akim Demaille <akim@epita.fr>
1263
1264 Bison is dead wrong in its RR conflict reports.
1265
1266 * tests/torture.at (GNU Cim Grammar): New.
1267 * src/conflicts.c (count_rr_conflicts): Fix.
1268
1269 2002-01-06 Akim Demaille <akim@epita.fr>
1270
1271 Creating package.m4 from configure.ac causes too many problems.
1272
1273 * tests/Makefile.am (package.m4): Create it by hand,
1274 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
1275
1276 2002-01-06 Akim Demaille <akim@epita.fr>
1277
1278 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
1279 skeleton.h.
1280
1281 2002-01-04 Paul Eggert <eggert@twinsun.com>
1282
1283 * doc/bison.texinfo (Debugging):
1284 Remove YYSTDERR; it's no longer defined or used.
1285 Also, s/cstdio.h/cstdio/.
1286
1287 2002-01-03 Akim Demaille <akim@epita.fr>
1288
1289 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
1290
1291 2002-01-03 Akim Demaille <akim@epita.fr>
1292
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
1295 args.
1296
1297 2002-01-03 Akim Demaille <akim@epita.fr>
1298
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/.
1305
1306 2002-01-03 Akim Demaille <akim@epita.fr>
1307
1308 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
1309 for non system headers.
1310
1311 2002-01-02 Akim Demaille <akim@epita.fr>
1312
1313 Equip the skeleton chain with location tracking, runtime trace,
1314 pure parser and scanner.
1315
1316 * src/parse-skel.y: Request a pure parser, locations, and prefix
1317 renaming.
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...
1322 (skel_error): this.
1323 Handle locations.
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.
1327
1328 2001-12-30 Akim Demaille <akim@epita.fr>
1329
1330 * src/parse-skel.y: Get rid of the shift/reduce conflict:
1331 replace `gb' with BLANKS.
1332 * src/scan-skel.l: Adjust.
1333
1334 2001-12-30 Akim Demaille <akim@epita.fr>
1335
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
1341 not visible.
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.
1346
1347 2001-12-30 Akim Demaille <akim@epita.fr>
1348
1349 * src/skeleton.h: New.
1350 * src/output.c (output_parser, output_master_parser): Remove, dead
1351 code.
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.
1358 Include skeleton.h.
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'.
1363
1364 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
1365
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...
1370
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
1375 names.
1376
1377 * src/files.h (strsuffix, stringappend): Add declarations.
1378 (tab_extension): Add declaration.
1379 (short_base_name): Add declaration.
1380
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
1386 names.
1387 (short_base_name): No longer static.
1388
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.
1394
1395 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
1396
1397 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
1398 parse-skel.y.
1399
1400 * src/parse-skel.y: New file.
1401 * src/scan-skel.l: New file.
1402
1403 2001-12-29 Akim Demaille <akim@epita.fr>
1404
1405 %name-prefix is broken.
1406
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
1410 %name-prefix.
1411
1412 Renaming yylval but not yylloc is not consistent. Now we do.
1413
1414 * src/bison.simple: Prefix yylloc if used.
1415 * doc/bison.texinfo (Decl Summary): Document that.
1416
1417 2001-12-29 Akim Demaille <akim@epita.fr>
1418
1419 * doc/bison.texinfo: Promote `%long-directive' over
1420 `%long_directive'.
1421 Remove all references to fixed-output-files, yacc is enough.
1422
1423 2001-12-29 Akim Demaille <akim@epita.fr>
1424
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.
1429
1430 2001-12-29 Akim Demaille <akim@epita.fr>
1431
1432 * src/output.c (header_output): Don't forget to export YYLTYPE and
1433 yylloc.
1434 * tests/headers.at (export YYLTYPE): New, make sure it does.
1435 * tests/regression.at (%union and --defines, Invalid CPP headers):
1436 Move to...
1437 * tests/headers.at: here.
1438
1439 2001-12-29 Akim Demaille <akim@epita.fr>
1440
1441 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
1442
1443 2001-12-29 Akim Demaille <akim@epita.fr>
1444
1445 * tests/actions.at (Mid-rule actions): Output on a single line
1446 instead of several.
1447
1448 2001-12-29 Akim Demaille <akim@epita.fr>
1449
1450 * doc/bison.texinfo: Formatting changes.
1451
1452 2001-12-29 Akim Demaille <akim@epita.fr>
1453
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.
1456
1457 * src/output.c (token_definitions_output): New.
1458 (output_parser, header_output): Use it.
1459 * src/reader.c (symbols_save): Remove.
1460
1461 2001-12-29 Akim Demaille <akim@epita.fr>
1462
1463 * src/bison.simple: Do not provide a default for YYSTYPE and
1464 YYLTYPE before the user's prologue. Otherwise it's hardly... a
1465 default.
1466
1467 2001-12-29 Akim Demaille <akim@epita.fr>
1468
1469 Mid-rule actions are simply... ignored!
1470
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
1473 rule.
1474 * tests/actions.at (Mid-rule actions): New.
1475
1476 2001-12-29 Akim Demaille <akim@epita.fr>
1477
1478 Memory leak.
1479
1480 * src/reader.c (reader): Free grammar.
1481
1482 2001-12-29 Akim Demaille <akim@epita.fr>
1483
1484 Memory leak.
1485
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.
1489
1490 2001-12-29 Akim Demaille <akim@epita.fr>
1491
1492 * src/options.h, src/options.c (create_long_option_table): Rename
1493 as...
1494 (long_option_table_new): this, with a clearer prototype.
1495 (percent_table): Remove, unused,
1496 * src/getargs.c (getargs): Adjust.
1497
1498 2001-12-29 Akim Demaille <akim@epita.fr>
1499
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
1502 as states.
1503
1504 2001-12-29 Akim Demaille <akim@epita.fr>
1505
1506 * src/lalr.c (build_relations): Rename `states' as `states1'.
1507 Sorry, I don't understand exactly what it is, no better name...
1508
1509 2001-12-29 Akim Demaille <akim@epita.fr>
1510
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
1514 as rules.
1515
1516 2001-12-29 Akim Demaille <akim@epita.fr>
1517
1518 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
1519 ago.
1520
1521 2001-12-29 Akim Demaille <akim@epita.fr>
1522
1523 * src/reader.c, src/reader.h (user_toknums): Remove.
1524 Adjust all users to use symbols[i]->user_token_number.
1525
1526 2001-12-29 Akim Demaille <akim@epita.fr>
1527
1528 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
1529 Adjust all users to use symbols[i]->prec or ->assoc.
1530
1531 2001-12-29 Akim Demaille <akim@epita.fr>
1532
1533 * src/reader.c, src/reader.h (tags): Remove.
1534 Adjust all users to use symbols[i]->tag.
1535
1536 2001-12-29 Akim Demaille <akim@epita.fr>
1537
1538 * src/gram.h, src/gram.c (symbols): New, similar to state_table
1539 and rule_table.
1540 * src/reader.c (packsymbols): Fill this table.
1541 Drop sprec.
1542 * src/conflicts.c (resolve_sr_conflict): Adjust.
1543 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
1544 single table.
1545 Use symbols[i]->tag instead of tags[i].
1546
1547 2001-12-29 Akim Demaille <akim@epita.fr>
1548
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.
1552
1553 2001-12-29 Akim Demaille <akim@epita.fr>
1554
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
1560 harmless).
1561
1562 2001-12-29 Akim Demaille <akim@epita.fr>
1563
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.
1568
1569 2001-12-29 Akim Demaille <akim@epita.fr>
1570
1571 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
1572 visible, and some states have now a different number.
1573
1574 2001-12-29 Akim Demaille <akim@epita.fr>
1575
1576 * src/reader.c (readgram): Bind the initial rule's lineno to that
1577 of the first rule.
1578 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
1579 (Solved SR Conflicts): Adjust rule 0's line number.
1580
1581 2001-12-29 Akim Demaille <akim@epita.fr>
1582
1583 Fix the `GAWK Grammar' failure.
1584
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
1588 to 0.
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.
1593
1594 2001-12-29 Akim Demaille <akim@epita.fr>
1595
1596 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
1597 rule line numbers.
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
1601 now.
1602
1603 2001-12-29 Akim Demaille <akim@epita.fr>
1604
1605 * src/lalr.c (lookaheads_print): New.
1606 (lalr): Call it when --trace-flag.
1607 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
1608 are dumped.
1609
1610 2001-12-29 Akim Demaille <akim@epita.fr>
1611
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.
1621
1622 2001-12-29 Akim Demaille <akim@epita.fr>
1623
1624 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
1625 the 0-sentinel.
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.
1631
1632 2001-12-29 Akim Demaille <akim@epita.fr>
1633
1634 * src/output.c: Comment changes.
1635
1636 2001-12-27 Paul Eggert <eggert@twinsun.com>
1637
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.
1642
1643 Also, catch up with 1.31's YYSTD.
1644
1645 2001-12-27 Akim Demaille <akim@epita.fr>
1646
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
1654 expect.
1655
1656 2001-12-27 Akim Demaille <akim@epita.fr>
1657
1658 * tests/regression.at (Unresolved SR Conflicts):
1659 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
1660 below.
1661
1662 2001-12-27 Akim Demaille <akim@epita.fr>
1663
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
1675 items.
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.
1681
1682 2001-12-27 Akim Demaille <akim@epita.fr>
1683
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.
1688
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.
1697
1698 2001-12-27 Akim Demaille <akim@epita.fr>
1699
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
1705 is the eoftoken.
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.
1717
1718 2001-12-27 Akim Demaille <akim@epita.fr>
1719
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
1723 missing.
1724 * lib/strchr.c: New.
1725 * src/reader.c (symbols_save): Use strchr.
1726
1727 2001-12-27 Akim Demaille <akim@epita.fr>
1728
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.
1734
1735 2001-12-27 Akim Demaille <akim@epita.fr>
1736
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.
1744
1745 2001-12-27 Akim Demaille <akim@epita.fr>
1746
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.
1753
1754 2001-12-27 Akim Demaille <akim@epita.fr>
1755
1756 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
1757
1758 2001-12-27 Akim Demaille <akim@epita.fr>
1759
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
1763 print_reductions.
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.
1768
1769 2001-12-27 Akim Demaille <akim@epita.fr>
1770
1771 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
1772 `$n' and `@n'.
1773
1774 2001-12-27 Akim Demaille <akim@epita.fr>
1775
1776 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
1777 (build_relations): Adjust.
1778
1779 2001-12-27 Akim Demaille <akim@epita.fr>
1780
1781 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
1782 duplication.
1783
1784 2001-12-27 Akim Demaille <akim@epita.fr>
1785
1786 * src/reader.c (packgram): Catch nitems overflows.
1787
1788 2001-12-27 Akim Demaille <akim@epita.fr>
1789
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
1796 mandatory.
1797
1798 2001-12-27 Akim Demaille <akim@epita.fr>
1799
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
1802 members.
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
1809 guard.
1810 In other words the guard is just explicitly optional.
1811 (packgram): Adjust.
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
1819 required.
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
1824 parser.
1825
1826 2001-12-27 Akim Demaille <akim@epita.fr>
1827
1828 * src/reader.c (symbol_list_new): Be sure to initialize all the
1829 fields.
1830
1831 2001-12-27 Akim Demaille <akim@epita.fr>
1832
1833 All the hacks using a final pseudo state are now useless.
1834
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).
1839
1840 2001-12-27 Akim Demaille <akim@epita.fr>
1841
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
1844 lookaheadsp.
1845
1846 2001-12-27 Akim Demaille <akim@epita.fr>
1847
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.
1863
1864 2001-12-27 Akim Demaille <akim@epita.fr>
1865
1866 * src/bison.hairy: Formatting/comment changes.
1867 ANSIfy.
1868 Remove `register' indications.
1869 Add plenty of `static'.
1870
1871 2001-12-27 Akim Demaille <akim@epita.fr>
1872
1873 * src/output.c (prepare): Drop the muscle `ntbase' which
1874 duplicates ntokens.
1875 * src/bison.simple: Formatting/comment changes.
1876 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
1877 is an undocumented synonym.
1878
1879 2001-12-22 Akim Demaille <akim@epita.fr>
1880
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
1883 short.
1884 Reported by Wayne Green.
1885
1886 2001-12-22 Akim Demaille <akim@epita.fr>
1887
1888 Some actions of web2c.y are improperly triggered.
1889 Reported by Mike Castle.
1890
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.
1895
1896 2001-12-22 Akim Demaille <akim@epita.fr>
1897
1898 Reductions in web2c.y are improperly reported.
1899 Reported by Mike Castle.
1900
1901 * src/conflicts.c (print_reductions): Fix.
1902 * tests/regression.at (Web2c): New.
1903
1904 2001-12-18 Akim Demaille <akim@epita.fr>
1905
1906 Some host fail on `assert (!"foo")', which expands to
1907 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
1908 Reported by Nelson Beebee.
1909
1910 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
1911 `#define it_succeeded 0' and `assert (it_succeeded)'.
1912
1913 2001-12-17 Marc Autret <autret_m@epita.fr>
1914
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).
1918
1919 2001-12-17 Paul Eggert <eggert@twinsun.com>
1920
1921 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
1922 YYDEBUG must be defined to a nonzero value.
1923
1924 * src/bison.simple (yytname): Do not assume that the user defines
1925 YYDEBUG to a properly parenthesized expression.
1926
1927 2001-12-17 Akim Demaille <akim@epita.fr>
1928
1929 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
1930 nlookaheads is a new member.
1931 Adjust all users.
1932 * src/lalr.h (nlookaheads): Remove this orphan declaration.
1933 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
1934 state.
1935
1936 2001-12-17 Akim Demaille <akim@epita.fr>
1937
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,
1940 let...
1941 * src/reader.c (reader): Do it.
1942
1943 2001-12-17 Akim Demaille <akim@epita.fr>
1944
1945 * src/conflicts.c (print_reductions): Formatting changes.
1946
1947 2001-12-17 Akim Demaille <akim@epita.fr>
1948
1949 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
1950 (flush_reduce): New.
1951 (resolve_sr_conflict): Adjust.
1952
1953 2001-12-17 Akim Demaille <akim@epita.fr>
1954
1955 * src/output.c (output_obstack): Be static and rename as...
1956 (format_obstack): this, to avoid any confusion with files.c's
1957 output_obstack.
1958 * src/reader.h (muscle_obstack): Move to...
1959 * src/output.h: here, since it's defined in output.c.
1960
1961 2001-12-17 Akim Demaille <akim@epita.fr>
1962
1963 * src/output.c (action_row, save_column, default_goto)
1964 (sort_actions, matching_state, pack_vector): Better variable
1965 locality.
1966
1967 2001-12-17 Akim Demaille <akim@epita.fr>
1968
1969 * src/output.c: Various formatting changes.
1970
1971 2001-12-17 Akim Demaille <akim@epita.fr>
1972
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.
1978
1979 2001-12-16 Marc Autret <autret_m@epita.fr>
1980
1981 * src/output.c (actions_output): Fix. When we use %no-lines,
1982 there is one less line per action.
1983
1984 2001-12-16 Marc Autret <autret_m@epita.fr>
1985
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
1990 output muscles.
1991 Fix line numbering.
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.
1995
1996 2001-12-15 Marc Autret <autret_m@epita.fr>
1997
1998 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
1999
2000 2001-12-15 Marc Autret <autret_m@epita.fr>
2001
2002 * src/output.c (output_gram): Keep track of the hairy one.
2003
2004 2001-12-15 Akim Demaille <akim@epita.fr>
2005
2006 Make `make distcheck' work.
2007
2008 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
2009 system.h which uses libgettext.h.
2010
2011 2001-12-15 Akim Demaille <akim@epita.fr>
2012
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.
2017
2018 2001-12-15 Akim Demaille <akim@epita.fr>
2019
2020 The header can also be produced directly, without any obstack!
2021 Yahoo!
2022
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
2028 anyway.
2029 (output_token_translations): Merge into...
2030 (symbols_output): this.
2031 Rename as...
2032 (symbols_save): this.
2033 (reader): Adjust.
2034 * src/output.c (header_output): New.
2035 (output): Call it.
2036
2037 2001-12-15 Akim Demaille <akim@epita.fr>
2038
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.
2044 Rename as...
2045 (copy_comment): this.
2046
2047 2001-12-15 Akim Demaille <akim@epita.fr>
2048
2049 * src/lex.c, src/lex.h (xgetc): No longer static.
2050 * src/reader.c (parse_union_decl): Revamp.
2051
2052 2001-12-15 Akim Demaille <akim@epita.fr>
2053
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.
2057
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.
2063
2064 2001-12-15 Akim Demaille <akim@epita.fr>
2065
2066 Attach actions to rules, instead of pre-outputting them to
2067 actions_obstack.
2068
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.
2076 (output): Do it.
2077 (prepare): Don't save the `action' muscle.
2078 * src/bison.simple: s/%%action/%%actions/.
2079
2080 2001-12-15 Akim Demaille <akim@epita.fr>
2081
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.
2085
2086 2001-12-14 Akim Demaille <akim@epita.fr>
2087
2088 * src/lex.c (literalchar): Simply return the char you decoded, non
2089 longer mess around with obstacks and int pointers.
2090 Adjust all callers.
2091
2092 2001-12-14 Akim Demaille <akim@epita.fr>
2093
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
2098 token strings.
2099
2100 2001-12-13 Paul Eggert <eggert@twinsun.com>
2101
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.
2106
2107 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
2108
2109 2001-12-13 Akim Demaille <akim@epita.fr>
2110
2111 The computation of nullable is broken: it doesn't handle empty
2112 RHS's properly.
2113
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.
2118
2119 Work around Autotest bugs.
2120
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
2127 frames.
2128 Move to...
2129 * tests/sets.at: here.
2130
2131 2001-12-13 Akim Demaille <akim@epita.fr>
2132
2133 * src/closure.c (closure): Use nrules instead of playing tricks
2134 with BITS_PER_WORD.
2135
2136 2001-12-13 Akim Demaille <akim@epita.fr>
2137
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
2140 nonterminal.
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.
2149
2150 2001-12-13 Akim Demaille <akim@epita.fr>
2151
2152 * src/reader.c (readgram): Remove dead code, an strip useless
2153 braces.
2154 (get_type): Remove, unused.
2155
2156 2001-12-12 Akim Demaille <akim@epita.fr>
2157
2158 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
2159 on that of lib/error.c.
2160
2161 2001-12-12 Akim Demaille <akim@epita.fr>
2162
2163 Some hosts don't like `/' in includes.
2164
2165 * src/system.h: Include libgettext.h without qualifying the path.
2166 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
2167 $(top_srcdir).
2168
2169 2001-12-11 Marc Autret <autret_m@epita.fr>
2170
2171 * src/output.c (output_parser): Remove useless muscle.
2172
2173 2001-12-11 Marc Autret <autret_m@epita.fr>
2174
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.
2179
2180 2001-12-10 Marc Autret <autret_m@epita.fr>
2181
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.
2186
2187 2001-12-10 Marc Autret <autret_m@epita.fr>
2188
2189 * src/reader.c (symbols_output): Clean up.
2190 * src/output.c (output_gram, output): Clean up.
2191
2192 2001-12-10 Akim Demaille <akim@epita.fr>
2193
2194 * src/lalr.c (initialize_lookaheads): New. Extracted from...
2195 * src/LR0.c (set_state_table): here.
2196 * src/lalr.c (lalr): Call it.
2197
2198 2001-12-10 Akim Demaille <akim@epita.fr>
2199
2200 * src/state.h (shifts): Remove the `number' member: shifts are
2201 attached to state, hence no longer need to be labelled with a
2202 state number.
2203
2204 2001-12-10 Akim Demaille <akim@epita.fr>
2205
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.
2208
2209 * src/state.h (shifts): Remove the `next' member.
2210 * src/LR0.c (first_state, last_state): Remove.
2211 Adjust the callers.
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.
2216
2217 2001-12-10 Akim Demaille <akim@epita.fr>
2218
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.
2223
2224 2001-12-10 Akim Demaille <akim@epita.fr>
2225
2226 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
2227 only when appropriate: when insert_start_shifting_state' is not
2228 invoked.
2229 * tests/regression.at (Rule Line Numbers): Adjust.
2230
2231 2001-12-10 Akim Demaille <akim@epita.fr>
2232
2233 * src/LR0.c (augment_automaton): Now that all states have shifts,
2234 merge the two cases addition shifts to the initial state.
2235
2236 2001-12-10 Akim Demaille <akim@epita.fr>
2237
2238 * src/lalr.c (set_state_table): Move to...
2239 * src/LR0.c: here.
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.
2243
2244 2001-12-10 Akim Demaille <akim@epita.fr>
2245
2246 * src/LR0.h (first_shift, first_reduction): Remove.
2247 * src/lalr.c: Don't use first_shift: find shifts through the
2248 states.
2249
2250 2001-12-10 Akim Demaille <akim@epita.fr>
2251
2252 * src/LR0.c: Attach shifts to states as soon as they are
2253 computed.
2254 * src/lalr.c (set_state_table): Instead of assigning shifts to
2255 state, just assert that the mapping was properly done.
2256
2257 2001-12-10 Akim Demaille <akim@epita.fr>
2258
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!
2268
2269 2001-12-10 Akim Demaille <akim@epita.fr>
2270
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?
2278
2279 2001-12-10 Akim Demaille <akim@epita.fr>
2280
2281 * src/muscle_tab.c (muscle_init): NULL is a better default than
2282 `"0"'.
2283
2284 2001-12-10 Akim Demaille <akim@epita.fr>
2285
2286 * src/reader.c (reader): Calling symbols_output once is enough.
2287
2288 2001-12-10 Akim Demaille <akim@epita.fr>
2289
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
2292 member.
2293
2294 * src/state.h (struct reductions): Remove member `number' and
2295 `next'.
2296 * src/LR0.c (first_reduction, last_reduction): Remove.
2297 (save_reductions): Don't link the new reductions, store them in
2298 this_state.
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
2303 members.
2304
2305 2001-12-10 Akim Demaille <akim@epita.fr>
2306
2307 * src/options.c (OPTN, DRTV, BOTH): New.
2308 (option_table): Use them.
2309
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
2313 reasons.
2314
2315 2001-12-10 Akim Demaille <akim@epita.fr>
2316
2317 * src/output.c (output, prepare): Make sure the values of the
2318 muscles `action' and `prologue' are 0-terminated.
2319
2320 2001-12-10 Akim Demaille <akim@epita.fr>
2321
2322 Clean up GCC warnings.
2323
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.
2331
2332 2001-12-10 Akim Demaille <akim@epita.fr>
2333
2334 * configure.in: Require 2.52g.
2335 M4 is not needed, but AUTOM4TE is.
2336 * m4/m4.m4: Remove.
2337 * tests/Makefile.am: Adjust.
2338
2339 2001-12-10 Akim Demaille <akim@epita.fr>
2340
2341 One structure for states is enough, even though theoretically
2342 there are LR(0) states and LALR(1) states.
2343
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
2351 `state_table'.
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.
2354
2355 2001-12-10 Akim Demaille <akim@epita.fr>
2356
2357 Bison dumps core on bash.y.
2358 Reported by Pascal Bart.
2359
2360 * src/warshall.c (bitmatrix_print): New.
2361 (TC): Use it.
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.
2365
2366 2001-12-05 Akim Demaille <akim@epita.fr>
2367
2368 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
2369 its argument.
2370 Reported by Peter Hámorský.
2371
2372 2001-12-05 Akim Demaille <akim@epita.fr>
2373
2374 * src/conflicts.c (err_table): Remove.
2375 (resolve_sr_conflict): Adjust.
2376 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
2377 Rename as...
2378 (state_t.reductions, state_t.shifts): this.
2379
2380 2001-12-05 Akim Demaille <akim@epita.fr>
2381
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.
2388
2389 2001-12-05 Akim Demaille <akim@epita.fr>
2390
2391 * src/output.c (pack_vector): Use assert, not berror.
2392 * src/main.c (berror): Remove, unused.
2393
2394 2001-12-05 Akim Demaille <akim@epita.fr>
2395
2396 New experimental feature: if --verbose --trace output all the
2397 items of a state, not only its kernel.
2398
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.
2403
2404 2001-12-05 Akim Demaille <akim@epita.fr>
2405
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.
2409
2410 2001-12-05 Akim Demaille <akim@epita.fr>
2411
2412 * src/closure.c (print_closure): Improve.
2413 (closure): Use it for printing input and output.
2414
2415 2001-12-05 Akim Demaille <akim@epita.fr>
2416
2417 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
2418 indexed by nonterminals.
2419
2420 2001-12-05 Akim Demaille <akim@epita.fr>
2421
2422 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
2423 what it was!).
2424 * src/warshall.h: Remove accidental duplication of the content.
2425
2426 2001-12-05 Akim Demaille <akim@epita.fr>
2427
2428 * src/closure.c (set_fderives): De-obfuscate.
2429
2430 2001-12-05 Akim Demaille <akim@epita.fr>
2431
2432 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
2433
2434 2001-12-05 Akim Demaille <akim@epita.fr>
2435
2436 * src/closure.c (set_firsts): De-obfuscate.
2437
2438 2001-12-05 Akim Demaille <akim@epita.fr>
2439
2440 * src/output.c (action_row): De-obfuscate
2441 using the good o' techniques: arrays not pointers, variable
2442 locality, BITISSET, RESETBIT etc.
2443
2444 2001-12-05 Akim Demaille <akim@epita.fr>
2445
2446 Pessimize the code to simplify it: from now on, all the states
2447 have a valid SHIFTS, which NSHIFTS is possibly 0.
2448
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.
2453
2454 2001-12-05 Akim Demaille <akim@epita.fr>
2455
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''.
2460
2461 2001-12-05 Akim Demaille <akim@epita.fr>
2462
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.
2466
2467 2001-12-05 Akim Demaille <akim@epita.fr>
2468
2469 * src/state.h (SHIFT_SYMBOL): New.
2470 * src/conflicts.c: Use it to deobfuscate.
2471
2472 2001-12-05 Akim Demaille <akim@epita.fr>
2473
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.
2477
2478 2001-12-05 Akim Demaille <akim@epita.fr>
2479
2480 * src/conflicts.c (print_reductions): Arrays, not pointers.
2481 Use BITISSET.
2482
2483 2001-12-05 Akim Demaille <akim@epita.fr>
2484
2485 * src/conflicts.c (print_reductions): Pessimize, but clarify.
2486
2487 2001-12-05 Akim Demaille <akim@epita.fr>
2488
2489 * src/conflicts.c (print_reductions): Improve variable locality.
2490
2491 2001-12-05 Akim Demaille <akim@epita.fr>
2492
2493 * src/conflicts.c (print_reductions): Pessimize, but clarify.
2494
2495 2001-12-05 Akim Demaille <akim@epita.fr>
2496
2497 * src/conflicts.c (print_reductions): Improve variable locality.
2498
2499 2001-12-05 Akim Demaille <akim@epita.fr>
2500
2501 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
2502 * src/lalr.c: Use them.
2503
2504 2001-12-05 Akim Demaille <akim@epita.fr>
2505
2506 * src/LR0.c (augment_automaton): Formatting changes.
2507 Better variable locality.
2508
2509 2001-12-05 Akim Demaille <akim@epita.fr>
2510
2511 * src/lalr.c (matrix_print): New.
2512 (transpose): Use it.
2513 Use arrays instead of pointers.
2514
2515 2001-12-05 Akim Demaille <akim@epita.fr>
2516
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.
2520
2521 2001-12-05 Akim Demaille <akim@epita.fr>
2522
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
2526 deallocation.
2527 Improve variable locality.
2528 Avoid variables used as mere abbreviations.
2529 (compute_lookaheads): Use arrays instead of pointers.
2530
2531 2001-12-05 Akim Demaille <akim@epita.fr>
2532
2533 * src/lalr.c (initialize_F): Improve variable locality.
2534 Avoid variables used as mere abbreviations.
2535
2536 2001-12-05 Akim Demaille <akim@epita.fr>
2537
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.
2542
2543 2001-12-05 Akim Demaille <akim@epita.fr>
2544
2545 * src/lalr.c (traverse): Use arrays instead of pointers.
2546
2547 2001-12-05 Akim Demaille <akim@epita.fr>
2548
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'.
2552
2553 2001-12-05 Akim Demaille <akim@epita.fr>
2554
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
2558 memory allocations.
2559
2560 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
2561 static.
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
2566 given state.
2567 Deobfuscate, i.e., allocate, use and free `symbol_count' here
2568 only, and...
2569 (new_itemsets): Allocate `shift_symbol' here.
2570 (allocate_itemsets): symbol_count includes useless nonterminals.
2571 Make room for them.
2572 (free_storage): Use `free', not `XFREE', for pointers that cannot
2573 be null.
2574
2575 2001-12-05 Akim Demaille <akim@epita.fr>
2576
2577 * src/nullable.c (set_nullable): Deobfuscate the handling of
2578 ritem.
2579 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
2580
2581 2001-12-05 Akim Demaille <akim@epita.fr>
2582
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
2588 ritem.
2589
2590 2001-12-04 Paul Eggert <eggert@twinsun.com>
2591
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.
2599
2600 2001-11-30 Akim Demaille <akim@epita.fr>
2601
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.
2609
2610 2001-11-27 Paul Eggert <eggert@twinsun.com>
2611
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.
2620
2621 2001-11-29 Paul Eggert <eggert@twinsun.com>
2622
2623 Name space cleanup in generated parser.
2624
2625 * doc/bison.texinfo (Bison Parser): Discuss system headers
2626 and their effect on the user name space.
2627
2628 * src/bison.simple:
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).
2632
2633 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
2634 on user names when possible.
2635
2636 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
2637 Simplify test for whather <alloca.h> exists.
2638
2639 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
2640
2641 (<stdio.h>): Include if YYDEBUG.
2642
2643 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
2644 ! defined (yyoverflow) && ! defined (yymemcpy).
2645
2646 (yymemcpy, yyparse): Rename local variables as needed so that
2647 they all begin with 'yy'.
2648
2649 (yystrlen, yystpcpy): New functions.
2650
2651 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
2652 All uses changed.
2653
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.
2657
2658 2001-11-30 Akim Demaille <akim@epita.fr>
2659
2660 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
2661 before their first uses.
2662 (YYBISON, YYPURE): Move to the top of the output.
2663
2664 2001-11-30 Akim Demaille <akim@epita.fr>
2665
2666 * tests/reduce.at (Useless Nonterminals): Fix.
2667
2668 2001-11-30 Akim Demaille <akim@epita.fr>
2669
2670 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
2671 if body instead of `;' to pacify GCC's warnings.
2672
2673 2001-11-30 Akim Demaille <akim@epita.fr>
2674
2675 Instead of mapping the LHS of unused rules to -1, keep the LHS
2676 valid, but flag the rules as invalid.
2677
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.
2684
2685 2001-11-30 Akim Demaille <akim@epita.fr>
2686
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.
2691
2692 2001-11-30 Akim Demaille <akim@epita.fr>
2693
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.
2698
2699 2001-11-30 Akim Demaille <akim@epita.fr>
2700
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.
2705
2706 2001-11-29 Paul Eggert <eggert@twinsun.com>
2707
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):
2711 New macros.
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.
2715
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.
2720
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.
2724
2725 2001-11-29 Marc Autret <autret_m@epita.fr>
2726
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.
2730
2731 2001-11-28 Marc Autret <autret_m@epita.fr>
2732
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.
2737
2738 2001-11-28 Marc Autret <autret_m@epita.fr>
2739
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
2747 percent option.
2748 Include output.h.
2749
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
2754 option.
2755
2756 2001-11-28 Marc Autret <autret_m@epita.fr>
2757
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 '_'.
2762
2763 2001-11-28 Marc Autret <autret_m@epita.fr>
2764
2765 * src/bison.simple: Fix debug.
2766 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
2767
2768 2001-11-28 Akim Demaille <akim@epita.fr>
2769
2770 * src/LR0.c (shifts_new): New.
2771 (save_shifts, insert_start_shift, augment_automaton): Use it.
2772
2773 2001-11-28 Akim Demaille <akim@epita.fr>
2774
2775 * src/closure.c (closure): `b' and `ruleno' denote the same value:
2776 keep ruleno only.
2777
2778 2001-11-28 Akim Demaille <akim@epita.fr>
2779
2780 * src/closure.c (closure): Instead of looping over word in array
2781 then bits in words, loop over bits in array.
2782
2783 2001-11-28 Akim Demaille <akim@epita.fr>
2784
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
2787 clearer.
2788
2789 2001-11-28 Akim Demaille <akim@epita.fr>
2790
2791 * src/closure.c (closure): `r' and `c' are new variables, used to
2792 de-obfuscate accesses to RULESET and CORE.
2793
2794 2001-11-28 Akim Demaille <akim@epita.fr>
2795
2796 * src/reduce.c (reduce_print): Use ngettext.
2797 (dump_grammar): Improve the trace accuracy.
2798
2799 2001-11-28 Akim Demaille <akim@epita.fr>
2800
2801 * src/reduce.c (dump_grammar): Don't translate trace messages.
2802
2803 2001-11-28 Akim Demaille <akim@epita.fr>
2804
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.
2808 From Enrico Scholz.
2809
2810 2001-11-27 Paul Eggert <eggert@twinsun.com>
2811
2812 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
2813 use alloca when we didn't want to, and vice versa.
2814
2815 2001-11-27 Marc Autret <autret_m@epita.fr>
2816
2817 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
2818 initialization.
2819 * src/output.c (prepare): Remove its update.
2820
2821 2001-11-27 Marc Autret <autret_m@epita.fr>
2822
2823 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
2824 Use %error-verbose.
2825
2826 2001-11-27 Marc Autret <autret_m@epita.fr>
2827
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.
2838
2839 2001-11-27 Akim Demaille <akim@epita.fr>
2840
2841 * src/system.h: Use intl/libgettext.h.
2842 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
2843
2844 2001-11-27 Akim Demaille <akim@epita.fr>
2845
2846 * tests/torture.at (Exploding the Stack Size with Malloc):
2847 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
2848
2849 2001-11-27 Akim Demaille <akim@epita.fr>
2850
2851 * src/files.c: Include error.h.
2852 Reported by Hans Aberg.
2853
2854 2001-11-26 Marc Autret <autret_m@epita.fr>
2855
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
2862 percent option.
2863 * src/lex.h (token_t): Add tok_include.
2864
2865 2001-11-26 Akim Demaille <akim@epita.fr>
2866
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.
2871
2872 2001-11-26 Akim Demaille <akim@epita.fr>
2873
2874 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
2875 size_ts.
2876
2877 2001-11-26 Akim Demaille <akim@epita.fr>
2878
2879 * src/complain.c, src/complain.h (error): Remove, provided by
2880 lib/error.[ch].
2881
2882 2001-11-26 Akim Demaille <akim@epita.fr>
2883
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.
2888
2889 2001-11-26 Akim Demaille <akim@epita.fr>
2890
2891 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
2892 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
2893
2894 2001-11-26 Akim Demaille <akim@epita.fr>
2895
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.
2900
2901 2001-11-23 Akim Demaille <akim@epita.fr>
2902
2903 * lib/alloca.c: Update, from fileutils.
2904
2905 2001-11-23 Akim Demaille <akim@epita.fr>
2906
2907 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
2908
2909 2001-11-23 Akim Demaille <akim@epita.fr>
2910
2911 * src/system.h: Include alloca.h.
2912 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
2913
2914 2001-11-23 Akim Demaille <akim@epita.fr>
2915
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.
2921
2922 2001-11-23 Akim Demaille <akim@epita.fr>
2923
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.
2926
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.
2931 (readgram): Use it.
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.
2936
2937 2001-11-22 Marc Autret <autret_m@epita.fr>
2938
2939 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
2940
2941 2001-11-22 Marc Autret <autret_m@epita.fr>
2942
2943 * src/muscle_tab.c (muscle_init): Remove initialization of
2944 skeleton muscle.
2945 * src/output.c (output_master_parser): Do it here.
2946
2947 2001-11-20 Akim Demaille <akim@epita.fr>
2948
2949 * po/sv.po: New.
2950 * configure.in (ALL_LINGUAS): Adjust.
2951 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
2952 longer contains strings to translate.
2953
2954 2001-11-19 Akim Demaille <akim@epita.fr>
2955
2956 * src/conflicts.c (conflicts_print): Add a missing \n.
2957
2958 2001-11-19 Akim Demaille <akim@epita.fr>
2959
2960 * src/nullable.c (nullable_print): New.
2961 (set_nullable): Call it when tracing.
2962 Better locality of variables.
2963
2964 2001-11-19 Akim Demaille <akim@epita.fr>
2965
2966 * src/print.c (print_actions): Better locality of variables.
2967
2968 2001-11-19 Akim Demaille <akim@epita.fr>
2969
2970 * src/derives.c (print_derives): Fix and enrich.
2971 * src/closure.c (print_fderives): Likewise.
2972
2973 2001-11-19 Akim Demaille <akim@epita.fr>
2974
2975 * src/closure.c (itemsetend): Remove, replaced with...
2976 (itemsetsize): new.
2977
2978 2001-11-19 Akim Demaille <akim@epita.fr>
2979
2980 * src/LR0.c (kernel_end): Remove, replaced with...
2981 (kernel_size): new.
2982
2983 2001-11-19 Akim Demaille <akim@epita.fr>
2984
2985 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
2986 to clarify.
2987
2988 2001-11-19 Akim Demaille <akim@epita.fr>
2989
2990 * src/closure.c (closure): Use arrays instead of pointers to clarify.
2991
2992 2001-11-19 Akim Demaille <akim@epita.fr>
2993
2994 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
2995 trace messages.
2996 * src/LR0.c: Likewise.
2997 (allocate_itemsets): Use arrays instead of pointers to clarify.
2998
2999 2001-11-19 Akim Demaille <akim@epita.fr>
3000
3001 * src/getargs.c (statistics_flag): Replace with...
3002 (trace_flag): New.
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.
3007
3008 2001-11-19 Akim Demaille <akim@epita.fr>
3009
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.
3013
3014 2001-11-19 Akim Demaille <akim@epita.fr>
3015
3016 * src/LR0.c (new_state, get_state): Complete TRACE code.
3017 * src/closure.c: Include `reader.h' to get `tags', needed by the
3018 trace code.
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
3023 than goto.
3024 Use `#if TRACE' instead of `#if 0' for tracing code.
3025
3026 2001-11-19 Akim Demaille <akim@epita.fr>
3027
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.
3032
3033 2001-11-19 Akim Demaille <akim@epita.fr>
3034
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
3038 allocation.
3039
3040 2001-11-19 Akim Demaille <akim@epita.fr>
3041
3042 * src/LR0.c (new_state): Complete trace code.
3043 * src/nullable.c (set_nullable): Don't translate traces.
3044
3045 2001-11-19 Akim Demaille <akim@epita.fr>
3046
3047 * src/print_graph.c (print_core): Better locality of variables.
3048 * src/print.c (print_core): Likewise.
3049
3050 2001-11-19 Akim Demaille <akim@epita.fr>
3051
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.
3059
3060 2001-11-19 Akim Demaille <akim@epita.fr>
3061
3062 * src/bison.simple (yyparse): When verbosely reporting an error,
3063 no longer put additional quotes around token names.
3064 * tests/calc.at: Adjust.
3065
3066 2001-11-19 Akim Demaille <akim@epita.fr>
3067
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.
3071
3072 2001-11-19 Akim Demaille <akim@epita.fr>
3073
3074 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
3075 (rule_t): this.
3076 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
3077
3078 2001-11-19 Akim Demaille <akim@epita.fr>
3079
3080 * src/gram.h (rule_t): New.
3081 (rule_table): 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.
3086
3087 2001-11-19 Akim Demaille <akim@epita.fr>
3088
3089 * src/reader.c (symbols_output): New, extracted from...
3090 (packsymbols): Here.
3091 (reader): Call it.
3092
3093 2001-11-19 Akim Demaille <akim@epita.fr>
3094
3095 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
3096 (maxrhs): this new function.
3097
3098 2001-11-19 Akim Demaille <akim@epita.fr>
3099
3100 * src/lalr.c (F): New macro to access the variable F.
3101 Adjust.
3102
3103 2001-11-19 Akim Demaille <akim@epita.fr>
3104
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.
3108
3109 2001-11-19 Akim Demaille <akim@epita.fr>
3110
3111 * src/lalr.c (initialize_LA): Only initialize LA. Let...
3112 (set_state_table): handle the `lookaheads' members.
3113
3114 2001-11-19 Akim Demaille <akim@epita.fr>
3115
3116 * src/lalr.h (lookaheads): Removed array, whose contents is now
3117 a member of...
3118 (state_t): this structure.
3119 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3120 Adjust.
3121
3122 2001-11-19 Akim Demaille <akim@epita.fr>
3123
3124 * src/lalr.h (consistent): Removed array, whose contents is now
3125 a member of...
3126 (state_t): this structure.
3127 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3128 Adjust.
3129
3130 2001-11-19 Akim Demaille <akim@epita.fr>
3131
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:
3136 Adjust.
3137
3138 2001-11-19 Akim Demaille <akim@epita.fr>
3139
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.
3147
3148 2001-11-14 Akim Demaille <akim@epita.fr>
3149
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.
3160
3161 2001-11-14 Akim Demaille <akim@epita.fr>
3162
3163 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
3164 defined only if yyoverflow is defined, to avoid `warning: unused
3165 variable `yyvs1''.
3166 Reported by The Test Suite.
3167
3168 2001-11-14 Akim Demaille <akim@epita.fr>
3169
3170 * src/print.c: Include reduce.h.
3171 Reported by Hans Aberg.
3172
3173 2001-11-14 Akim Demaille <akim@epita.fr>
3174
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
3180 arg_offset.
3181 arg is const.
3182 Be sure to strdup `arg' when used, since there is no reason for
3183 token_buffer not to change.
3184
3185 2001-11-14 Akim Demaille <akim@epita.fr>
3186
3187 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
3188 definition.
3189 * src/main.c (main): Use them.
3190 Suggested by Hans Aberg.
3191
3192 2001-11-12 Akim Demaille <akim@epita.fr>
3193
3194 * src/system.h (ngettext): Now that we use ngettext, be sure to
3195 provide a default definition when NLS are not used.
3196
3197 2001-11-12 Akim Demaille <akim@epita.fr>
3198
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.
3207
3208 2001-11-12 Akim Demaille <akim@epita.fr>
3209
3210 %expext was not functioning at all.
3211
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.
3219
3220 2001-11-12 Akim Demaille <akim@epita.fr>
3221
3222 * tests/regression.at (Conflicts): Rename as...
3223 (Unresolved SR Conflicts): this.
3224 (Solved SR Conflicts): New.
3225
3226 2001-11-12 Akim Demaille <akim@epita.fr>
3227
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.
3232 (reduce_free): New.
3233 Also free V1.
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;
3237
3238 2001-11-12 Akim Demaille <akim@epita.fr>
3239
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.
3243
3244 2001-11-12 Akim Demaille <akim@epita.fr>
3245
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.
3257
3258 2001-11-12 Akim Demaille <akim@epita.fr>
3259
3260 * tests/regression.at (Invalid input): Remove, duplicate with
3261 ``Invalid input: 1''.
3262
3263 2001-11-12 Akim Demaille <akim@epita.fr>
3264
3265 * tests/torture.at (AT_DATA_STACK_TORTURE)
3266 (Exploding the Stack Size with Alloca)
3267 (Exploding the Stack Size with Malloc): New.
3268
3269 2001-11-12 Akim Demaille <akim@epita.fr>
3270
3271 * src/bison.simple (YYSTACK_REALLOC): New.
3272 (yyparse) [!yyoverflow]: Use it and free the old stack.
3273 Reported by Per Allansson.
3274
3275 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
3276
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.
3283 From Akim.
3284
3285 2001-11-05 Akim Demaille <akim@epita.fr>
3286
3287 * src/reader.c (symbols_output): New, extracted from...
3288 (packsymbols): here.
3289 (reader): Adjust.
3290
3291 2001-11-05 Akim Demaille <akim@epita.fr>
3292
3293 * src/lex.c (parse_percent_token): s/quotearg/quote/.
3294
3295 2001-11-05 Akim Demaille <akim@epita.fr>
3296
3297 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
3298 pattern.
3299
3300 2001-11-05 Akim Demaille <akim@epita.fr>
3301
3302 * src/options.h (struct option_table_struct): set_flags is void*.
3303 * src/options.c (longopts): Support `--output' and `%output'.
3304 (usage): Adjust.
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.
3313
3314 2001-11-04 Akim Demaille <akim@epita.fr>
3315
3316 * doc/bison.texinfo (Decl Summary): Split the list into
3317 `directives for grammars' and `directives for bison'.
3318 Sort'em.
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.
3327
3328 2001-11-02 Akim Demaille <akim@epita.fr>
3329
3330 * doc/refcard.tex: Update.
3331
3332 2001-11-02 Akim Demaille <akim@epita.fr>
3333
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.
3339
3340 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
3341 Number it 0.
3342 Let yylex return it instead of a plain 0.
3343 Reported by Dick Streefland.
3344
3345 2001-11-02 Akim Demaille <akim@epita.fr>
3346
3347 * tests/regression.at (Mixing %token styles): New test.
3348
3349 2001-11-02 Akim Demaille <akim@epita.fr>
3350
3351 * src/reader.c (parse_thong_decl): Formatting changes.
3352 (token_translations_init): New, extracted from...
3353 (packsymbols): Here.
3354 Adjust.
3355
3356 2001-11-01 Akim Demaille <akim@epita.fr>
3357
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
3361 guards.
3362 Reported by Wwp.
3363
3364 2001-11-01 Akim Demaille <akim@epita.fr>
3365
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
3369 too.
3370 Reported by Wwp.
3371
3372 2001-11-01 Akim Demaille <akim@epita.fr>
3373
3374 * tests/calc.at: Catch up with 1.30.
3375 * configure.in: Bump to 1.49a.
3376 Adjust to newer Autotest.
3377
3378 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
3379
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.
3384
3385 2001-10-18 Akim Demaille <akim@epita.fr>
3386
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).
3392
3393 2001-10-14 Marc Autret <autret_m@epita.fr>
3394
3395 * src/options.c (create_long_option_table): Fix.
3396
3397 2001-10-10 Akim Demaille <akim@epita.fr>
3398
3399 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
3400
3401 2001-10-04 Akim Demaille <akim@epita.fr>
3402
3403 * src/reader.c (parse_union_decl): Push the caracters in
3404 union_obstack, not attrs_obstack.
3405
3406 2001-10-04 Akim Demaille <akim@epita.fr>
3407
3408 Merge in the branch 1.29.
3409
3410 * src/reader.c (packsymbols): Use a temporary obstack for
3411 `%%tokendef', since output_stack is already used elsewhere.
3412
3413 2001-10-02 Akim Demaille <akim@epita.fr>
3414
3415 Bump 1.29d.
3416
3417 2001-10-02 Akim Demaille <akim@epita.fr>
3418
3419 Version 1.29c.
3420
3421 2001-10-02 Akim Demaille <akim@epita.fr>
3422
3423 * tests/regression.at (Invalid CPP headers): New.
3424 From Alexander Belopolsky.
3425 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
3426
3427 2001-10-02 Akim Demaille <akim@epita.fr>
3428
3429 * tests/regression.at (Invalid input): New.
3430 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
3431 Reported by Shura.
3432
3433 2001-10-02 Akim Demaille <akim@epita.fr>
3434
3435 * tests/calc.at: Now that --debug works, the tests must be adjusted.
3436
3437 2001-10-02 Akim Demaille <akim@epita.fr>
3438
3439 * src/output.c (output_parser): Assert `skeleton'.
3440 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
3441 systems.
3442 From Shura.
3443
3444 2001-10-01 Marc Autret <autret_m@epita.fr>
3445
3446 * src/lex.h: Echo modifications.
3447 * src/lex.c (unlex): Parameter is now token_t.
3448 From Hans Aberg.
3449
3450 2001-10-01 Marc Autret <autret_m@epita.fr>
3451
3452 * src/main.c: Include lex.h.
3453 From Hans Aberg.
3454
3455 2001-09-29 Akim Demaille <akim@epita.fr>
3456
3457 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
3458
3459 2001-09-28 Akim Demaille <akim@epita.fr>
3460
3461 * tests/testsuite.at: Update to newer Autotest.
3462 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
3463
3464 2001-09-27 Akim Demaille <akim@epita.fr>
3465
3466 Position independent wrapper.
3467
3468 * tests/bison: Remove.
3469 * tests/bison.in: New.
3470 * configure.in: Adjust.
3471
3472 2001-09-27 Paul Eggert <eggert@twinsun.com>
3473
3474 Port quotearg fixes from tar 1.13.24.
3475
3476 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
3477 tm to be declared.
3478 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
3479 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
3480
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).
3485
3486 2001-09-27 Akim Demaille <akim@epita.fr>
3487
3488 Bump to 1.29c.
3489
3490 2001-09-27 Akim Demaille <akim@epita.fr>
3491
3492 Version 1.29b.
3493
3494 2001-09-25 Akim Demaille <akim@epita.fr>
3495
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...
3500 (lex_init): this.
3501 (lex_free): New.
3502 * src/main.c (main): Use it.
3503
3504 2001-09-24 Marc Autret <autret_m@epita.fr>
3505
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.
3517
3518 2001-09-24 Marc Autret <autret_m@epita.fr>
3519
3520 * src/files.c (compute_output_file_names): Fix.
3521
3522 2001-09-24 Marc Autret <autret_m@epita.fr>,
3523 Akim Demaille <akim@epita.fr>
3524
3525 * src/reader.c (reader): Remove call to free_symtab ().
3526 * src/main.c (main): Call it here.
3527 Include symtab.h.
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
3533 FILE *.
3534 * src/files.c (compute_output_file_names, close_files): New.
3535 (output_files): Adjust.
3536 * src/main.c (main): Adjust.
3537
3538 2001-09-23 Marc Autret <autret_m@epita.fr>
3539
3540 * src/files.c (compute_header_macro): Computes header macro name
3541 from spec_defines_file when given.
3542
3543 2001-09-23 Marc Autret <autret_m@epita.fr>
3544
3545 * src/files.c (output_files): Add default extensions.
3546
3547 2001-09-22 Akim Demaille <akim@epita.fr>
3548
3549 * src/conflicts.c (finalize_conflicts): Rename as...
3550 (free_conflicts): this.
3551
3552 2001-09-22 Akim Demaille <akim@epita.fr>
3553
3554 * src/gram.c (gram_free): Rename back as...
3555 (dummy): this.
3556 (output_token_translations): Free `token_translations'.
3557 * src/symtab.c (free_symtab): Free the tag field.
3558
3559 2001-09-22 Akim Demaille <akim@epita.fr>
3560
3561 Remove `translations' as it is always set to true.
3562
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...
3570 (gram_free): this.
3571
3572 2001-09-22 Akim Demaille <akim@epita.fr>
3573
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.
3578
3579 2001-09-22 Akim Demaille <akim@epita.fr>
3580
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.
3585 From Pascal Bart.
3586
3587 2001-09-21 Akim Demaille <akim@epita.fr>
3588
3589 Version 1.29a.
3590 * Makefile.maint, config/config.guess, config/config.sub,
3591 * config/missing: Update from masters.
3592 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
3593 upon package.m4.
3594 * configure.in (ALL_LINGUAS): Add `tr'.
3595
3596 2001-09-21 Akim Demaille <akim@epita.fr>
3597
3598 * tests/Makefile.am (package.m4): Move to...
3599 ($(srcdir)/$(TESTSUITE)): here.
3600
3601 2001-09-20 Akim Demaille <akim@epita.fr>
3602
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.
3609
3610 2001-09-18 Marc Autret <autret_m@epita.fr>
3611
3612 * doc/bison.1: Update.
3613 * doc/bison.texinfo (Bison Options): Update --defines and --graph
3614 descriptions.
3615 (Option Cross Key): Update.
3616 Add --graph.
3617
3618 2001-09-18 Marc Autret <autret_m@epita.fr>
3619
3620 * tests/regression.at: New test (comment in %union).
3621
3622 2001-09-18 Marc Autret <autret_m@epita.fr>
3623
3624 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
3625 do that.
3626 Reported by Keith Browne.
3627
3628 2001-09-18 Marc Autret <autret_m@epita.fr>
3629
3630 * tests/output.at: Add tests for --defines and --graph.
3631
3632 2001-09-18 Marc Autret <autret_m@epita.fr>
3633
3634 * tests/output.at: Removes tests of %{header,src}_extension features.
3635
3636 2001-09-18 Akim Demaille <akim@epita.fr>
3637
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.
3642
3643 2001-09-18 Marc Autret <autret_m@epita.fr>
3644
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.
3651
3652 2001-09-18 Marc Autret <autret_m@epita.fr>
3653
3654 Turn off %{source,header}_extension feature.
3655
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.
3666
3667 2001-09-10 Akim Demaille <akim@epita.fr>
3668
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.
3673
3674 2001-09-10 Akim Demaille <akim@epita.fr>
3675
3676 * tests/calc.at: Use m4_match.
3677 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
3678
3679 2001-09-10 Marc Autret <autret_m@epita.fr>,
3680 Akim Demaille <akim@epita.fr>
3681
3682 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
3683 enum color_e.
3684 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
3685 to `normal'.
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
3693 part.
3694 (unlexed): Is a token_t.
3695
3696 2001-09-10 Akim Demaille <akim@epita.fr>
3697
3698 * configure.in: Bump to 1.29a.
3699
3700 2001-09-07 Akim Demaille <akim@epita.fr>
3701
3702 Version 1.29.
3703
3704 2001-08-30 Akim Demaille <akim@epita.fr>
3705
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,
3709 * tests/bison: New.
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.
3714
3715 2001-08-29 Akim Demaille <akim@epita.fr>
3716
3717 Bump to 1.28e.
3718
3719 2001-08-29 Akim Demaille <akim@epita.fr>
3720
3721 Version 1.28d.
3722
3723 2001-08-29 Paul Eggert <eggert@twinsun.com>
3724
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
3727 the C Standard.
3728
3729 2001-08-29 Robert Anisko <anisko_r@epita.fr>
3730
3731 * doc/bison.texinfo (Location Tracking Calc): New node.
3732
3733 2001-08-29 Paul Eggert <eggert@twinsun.com>
3734
3735 * src/output.c (output): Do not define const, as this now
3736 causes more problems than it cures.
3737
3738 2001-08-29 Akim Demaille <akim@epita.fr>
3739
3740 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
3741 the nodes.
3742 Be sure to tag the `detailmenu'.
3743
3744 2001-08-29 Akim Demaille <akim@epita.fr>
3745
3746 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
3747 download in a tmp dir.
3748
3749 2001-08-28 Marc Autret <autret_m@epita.fr>
3750
3751 * config/depcomp: New file.
3752
3753 2001-08-28 Marc Autret <autret_m@epita.fr>
3754
3755 * doc/bison.1 (mandoc): Adjust.
3756 From Juan Manuel Guerrero.
3757
3758 2001-08-28 Marc Autret <autret_m@epita.fr>
3759
3760 * src/print_graph.c (print_state): Fix.
3761
3762 2001-08-27 Marc Autret <autret_m@epita.fr>
3763
3764 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
3765 char * members.
3766 Echo modifications to the functions prototypes.
3767 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
3768
3769 2001-08-27 Marc Autret <autret_m@epita.fr>
3770
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.
3776
3777 2001-08-27 Akim Demaille <akim@epita.fr>
3778
3779 * Makefile.maint: Sync. again with CVS Autoconf.
3780
3781 2001-08-27 Akim Demaille <akim@epita.fr>
3782
3783 * Makefile.maint: Formatting changes.
3784 (po-update, cvs-update, update): New targets.
3785 (AMTAR): Remove.
3786
3787 2001-08-27 Akim Demaille <akim@epita.fr>
3788
3789 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
3790 * Makefile.maint: Sync. with CVS Autoconf.
3791
3792 2001-08-27 Marc Autret <autret_m@epita.fr>
3793
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.
3801 (G_INFONAME): 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'.
3806
3807 2001-08-27 Marc Autret <autret_m@epita.fr>
3808
3809 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
3810 This one shadowed a global parameter.
3811
3812 2001-08-24 Marc Autret <autret_m@epita.fr>
3813
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.
3818
3819 2001-08-23 Marc Autret <autret_m@epita.fr>
3820
3821 * src/lex.c (percent_table): Typo: s/naem/name/.
3822 Add graph option.
3823 Normalize new options declarations.
3824
3825 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
3826
3827 * tests/suite.at: Exercise %header_extension and %source_extension.
3828
3829 2001-08-16 Marc Autret <autret_m@epita.fr>
3830
3831 * src/reader.c (parse_dquoted_param): New.
3832 (parse_header_extension_decl): Use it.
3833 (parse_source_extension_decl): Likewise.
3834
3835 2001-08-16 Marc Autret <autret_m@epita.fr>
3836
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.
3843
3844 2001-08-16 Marc Autret <autret_m@epita.fr>
3845
3846 * src/getargs.c (usage): Update with ``-g, --graph''.
3847
3848 2001-08-16 Marc Autret <autret_m@epita.fr>
3849
3850 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
3851 (Option Cross Key): Likewise.
3852 * doc/bison.1: Update.
3853
3854 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
3855
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.
3860
3861 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
3862
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.
3871
3872 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
3873
3874 * src/bison.simple: Add new `#line' directive.
3875
3876 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
3877
3878 * src/bison.simple: New `#line' directive.
3879 * src/output.c (output_parser): Support new dynamic muscle input_line.
3880
3881 2001-09-22 Marc Autret <autret_m@epita.fr>
3882
3883 * src/output.c (output_master_parser): New.
3884 (output_parser): Be more re-entrant.
3885
3886 2001-09-21 Marc Autret <autret_m@epita.fr>
3887
3888 * src/reader.c (copy_definition, parse_union_decl): Update and use
3889 `linef' muscle.
3890 (copy_action): Likewise.
3891 Use obstack_1grow ().
3892 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
3893
3894 2001-09-21 Marc Autret <autret_m@epita.fr>
3895
3896 * src/options.c (option_table): Adjust.
3897 * src/lex.c (parse_percent_token): Fix.
3898
3899 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
3900
3901 * src/options.c (symtab.h): Include it, need by lex.h.
3902
3903 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
3904
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.
3916
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.
3927
3928 2001-09-20 Marc Autret <autret_m@epita.fr>
3929
3930 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
3931 sections of Bison.
3932
3933 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
3934
3935 * src/bison.simple: s/%%filename/%%skeleton.
3936 * src/muscle_tab.c (getargs.h): Include it.
3937 (muscle_init): Insert new muscle skeleton.
3938
3939 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
3940
3941 * src/output.c (output_parser): Delete unused variable actions_dumped.
3942
3943 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
3944
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.
3948
3949 2001-09-02 Marc Autret <autret_m@epita.fr>
3950
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.
3958
3959 * src/reader.h (muscle_obstack): Extern declaration update.
3960
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.
3968
3969 * src/muscle_tab.h: Update double inclusion macros.
3970 (macro_entry_s): Rename muscle_entry_s.
3971 Update prototypes.
3972
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.
3979
3980 * src/main.c: Include muscle_tab.h.
3981 (main): Call muscle_init ().
3982 * src/Makefile.am (bison_SOURCES): Echo modifications.
3983
3984 2001-09-02 Marc Autret <autret_m@epita.fr>
3985
3986 Now the files macro_tab.[ch] are named muscle_tab.[ch].
3987
3988 * src/muscle_tab.c, src/muscle_tab.h: Add files.
3989
3990 2001-09-02 Marc Autret <autret_m@epita.fr>
3991
3992 * src/macrotab.c, src/macrotab.h: Remove.
3993
3994 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
3995
3996 * src/reader.c (copy_guard): Use muscle to specify the `#line'
3997 filename.
3998
3999 2001-09-01 Marc Autret <autret_m@epita.fr>
4000
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.
4003
4004 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4005
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.
4010
4011 2001-08-31 Marc Autret <autret_m@epita.fr>
4012
4013 * src/bison.simple (YYLSP_NEEDED): New definition.
4014 * src/output.c (prepare): Add macro insertion of `locations_flag'
4015
4016 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4017
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
4026 name_prefix.
4027
4028 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4029
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.
4033
4034 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
4035
4036 * src/reader.c (read_additionnal_code): Rename %%user_code to
4037 %%epilogue.
4038 * src/output.c (output): Rename %%declarations to %%prologue.
4039 * src/bison.simple: Echo modifications.
4040
4041 2001-08-31 Marc Autret <autret_m@epita.fr>
4042
4043 * src/reader.c (readgram): CleanUp.
4044 (output_token_defines): Likewise.
4045 (packsymbols): Likewise.
4046 (reader): Likewise.
4047 * src/output.c (output): CPP-out useless code.
4048
4049 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4050
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.
4055
4056 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
4057
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.
4068
4069 2001-08-30 Marc Autret <autret_m@epita.fr>
4070
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.
4075 Standardize.
4076
4077 2001-08-29 Marc Autret <autret_m@epita.fr>
4078
4079 * src/bison.simple: Add %%user_code directive at the end.
4080 * src/reader.c (read_additionnal_code): New.
4081 (reader): Use it.
4082 * src/output.c (output_program): Remove.
4083 (output): Update.
4084
4085 2001-08-28 Marc Autret <autret_m@epita.fr>
4086
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.
4090
4091 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
4092
4093 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
4094 directive.
4095 * src/bison.simple: Add `%%definitions'.
4096
4097 2001-08-28 Marc Autret <autret_m@epita.fr>
4098
4099 * config/depcomp: New file.
4100
4101 2001-08-27 Paul Eggert <eggert@twinsun.com>
4102
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
4105 the C Standard.
4106
4107 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4108
4109 * src/output.c (output): Remove the initialization of the macro
4110 obstack. It was done too late here.
4111
4112 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
4113 completely wrong.
4114 (reader): Initialize the macro obstack here, since we need it to grow
4115 '%define' directives.
4116
4117 * src/reader.h: Declare the macro obstack as extern.
4118
4119 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4120
4121 * src/output.c (output_parser): Fix. Store single '%' characters in
4122 the output obstack instead of throwing them away.
4123
4124 2001-08-27 Akim Demaille <akim@epita.fr>
4125
4126 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4127
4128 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4129
4130 * lib/Makefile.am: Adjust.
4131
4132 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4133
4134 * src/bison.simple: Update and add '%%' directives.
4135
4136 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4137
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.
4145
4146 * src/reader.c (parse_macro_decl): New function used to parse macro
4147 declarations.
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
4152 bound to true.
4153 (read_declarations): Add case for macro definition.
4154 (copy_identifier): New.
4155 (parse_macro_decl): Read macro identifiers using copy_identifier
4156 rather than lex.
4157
4158 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4159
4160 * src/output.c (prepare): Add prefixed names.
4161 (output_parser): Output semantic actions.
4162 (output_parser): Fix bug on '%%line' directives.
4163
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.
4169
4170 * src/output.c: Remove some C dedicated output.
4171 Improve the use of macro and output obstacks.
4172 (output_defines): Remove.
4173
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'.
4184
4185 * src/output.c (output_table_data): New function.
4186 (output_short_table): Remove.
4187 (output_short_or_char_table): Remove.
4188
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.
4194
4195 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4196
4197 * src/main.c (main): Initialize the macro table.
4198
4199 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4200
4201 * src/lex.c (percent_table): Add tok_define.
4202 * src/lex.h: Add tok_define.
4203
4204 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4205
4206 * src/macrotab.c: New file.
4207 * src/macrotab.h: New file.
4208 * src/Makefile.am: Update.
4209
4210 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4211
4212 * lib/hash.c: New file.
4213 * lib/hash.h: New file.
4214 * lib/Makefile.am: Update.
4215
4216 2001-08-15 Akim Demaille <akim@epita.fr>
4217
4218 Version 1.28c.
4219
4220 2001-08-15 Marc Autret <autret_m@epita.fr>
4221
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.
4229
4230 2001-08-15 Akim Demaille <akim@epita.fr>
4231
4232 * doc/bison.texinfo (Table of Symbols): Document
4233 YYSTACK_USE_ALLOCA.
4234
4235 2001-08-15 Akim Demaille <akim@epita.fr>
4236
4237 * missing: Update from CVS Automake.
4238 * config/config.guess, config/config.sub, config/texinfo.tex:
4239 Update from gnu.org.
4240
4241 2001-08-15 Akim Demaille <akim@epita.fr>
4242
4243 * Makefile.maint: Sync with CVS Autoconf.
4244
4245 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
4246
4247 * doc/bison.texinfo: Include GNU Free Documentation License from
4248 `fdl.texi'.
4249 * doc/fdl.texi: Add to package.
4250
4251 2001-08-14 Marc Autret <autret_m@epita.fr>
4252
4253 Turn on %{source,header}_extension features.
4254
4255 * src/lex.c (percent_table): Un-CPP out header_extension and
4256 source_extension.
4257 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
4258 (compute_exts_from_src): Remove conditions. It restores priorities
4259 between options.
4260
4261 2001-08-14 Marc Autret <autret_m@epita.fr>
4262
4263 * src/files.c (compute_base_names): Add extensions computing when
4264 `--file-prefix' used.
4265 Standardize function calls.
4266
4267 2001-08-13 Marc Autret <autret_m@epita.fr>
4268
4269 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
4270 defining it (defined but null disables alloca).
4271
4272 2001-08-13 Marc Autret <autret_m@epita.fr>
4273
4274 * src/bison.simple (_yy_memcpy): CPP reformat.
4275
4276 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
4277
4278 * tests/atconfig.in (CPPFLAGS): Fix.
4279
4280 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
4281
4282 * doc/bison.texinfo: Include GNU General Public License from
4283 `gpl.texi'.
4284 * doc/gpl.texi: Add to package.
4285
4286 2001-08-10 Marc Autret <autret_m@epita.fr>
4287
4288 * src/print_graph.h: Fix.
4289 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
4290
4291 2001-08-10 Akim Demaille <akim@epita.fr>
4292
4293 * src/system.h: Provide default declarations for stpcpy, strndup,
4294 and strnlen.
4295
4296 2001-08-10 Robert Anisko <anisko_r@epita.fr>
4297
4298 * doc/bison.texinfo (Locations): Update @$ stuff.
4299
4300 2001-08-09 Robert Anisko <anisko_r@epita.fr>
4301
4302 * src/bison.simple (YYLLOC_DEFAULT): Update.
4303 (yyparse): Adjust.
4304
4305 2001-08-08 Marc Autret <autret_m@epita.fr>
4306
4307 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
4308 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
4309 Reported by Fabrice Bauzac.
4310
4311 2001-08-08 Marc Autret <autret_m@epita.fr>
4312
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
4322 blue.
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.
4329
4330 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
4331
4332 * tests/atconfig.in (CPPFLAGS): Fix.
4333
4334 2001-08-07 Akim Demaille <akim@epita.fr>
4335
4336 * src/print_graph.c (quote): New.
4337 (print_core): Use it.
4338
4339 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
4340
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.
4348 Use `quote'.
4349 * src/files.c (output_files): Output the VCG file.
4350 * src/main.c (main): Invoke print_graph ();
4351
4352 2001-08-06 Marc Autret <autret_m@epita.fr>
4353
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.
4358
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.
4363 (longopts): Update.
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.
4370
4371 2001-08-06 Marc Autret <autret_m@epita.fr>
4372
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.
4376
4377 2001-08-06 Marc Autret <autret_m@epita.fr>
4378
4379 Add of %source_extension and %header_extension which specify
4380 the source or/and the header output file extension.
4381
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.
4393
4394 2001-08-06 Marc Autret <autret_m@epita.fr>
4395
4396 * configure.in: Bump to 1.28c.
4397 * doc/bison.texinfo: Texinfo thingies.
4398
4399 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
4400
4401 * tests/atconfig.in (CPPFLAGS): Add.
4402 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
4403
4404 2001-08-03 Akim Demaille <akim@epita.fr>
4405
4406 Version 1.28b.
4407
4408 2001-08-03 Akim Demaille <akim@epita.fr>
4409
4410 * tests/Makefile.am (check-local): Ship testsuite.
4411 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
4412 Include `string.h'.
4413
4414 2001-08-03 Akim Demaille <akim@epita.fr>
4415
4416 * configure.in: Try using -Wformat when compiling.
4417
4418 2001-08-03 Akim Demaille <akim@epita.fr>
4419
4420 * configure.in: Bump to 1.28b.
4421
4422 2001-08-03 Akim Demaille <akim@epita.fr>
4423
4424 * src/complain.c: Adjust strerror_r portability issues.
4425
4426 2001-08-03 Akim Demaille <akim@epita.fr>
4427
4428 Version 1.28a.
4429
4430 2001-08-03 Akim Demaille <akim@epita.fr>
4431
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.
4437
4438 2001-08-03 Akim Demaille <akim@epita.fr>
4439
4440 * src/reader.c (readgram): Display hidden chars in error messages.
4441
4442 2001-08-03 Akim Demaille <akim@epita.fr>
4443
4444 Update to gettext 0.10.39.
4445
4446 2001-08-03 Akim Demaille <akim@epita.fr>
4447
4448 * lib/strspn.c: New.
4449
4450 2001-08-01 Marc Autret <autret_m@epita.fr>
4451
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.
4458 (tr): New function.
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.
4467
4468 2001-08-01 Robert Anisko <anisko_r@epita.fr>
4469
4470 * doc/bison.texi: Document @$.
4471 (Locations): New section.
4472
4473 2001-07-18 Akim Demaille <akim@epita.fr>
4474
4475 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
4476 * config/prev-version.txt, config/move-if-change: New.
4477 * Makefile.am: Adjust.
4478
4479 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
4480
4481 * src/bison.simple (yyparse): Suppress warning `comparaison
4482 between signed and unsigned'.
4483
4484 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
4485
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'.
4491
4492 2001-07-14 Akim Demaille <akim@epita.fr>
4493
4494 * config/: New.
4495 * configure.in: Require Autoconf 2.50.
4496 Update to gettext 0.10.38.
4497
4498 2001-03-16 Akim Demaille <akim@epita.fr>
4499
4500 * doc/bison.texinfo: ANSIfy the examples.
4501
4502 2001-03-16 Akim Demaille <akim@epita.fr>
4503
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.
4509
4510 2001-03-16 Akim Demaille <akim@epita.fr>
4511
4512 * m4/strerror_r.m4: New.
4513 * m4/error.m4: Run AC_FUNC_STRERROR_R.
4514 * lib/error.h, lib/error.c: Update.
4515
4516 2001-03-16 Akim Demaille <akim@epita.fr>
4517
4518 * src/getargs.c (longopts): Clean up.
4519
4520 2001-02-21 Akim Demaille <akim@epita.fr>
4521
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
4524 longer a buffer.
4525
4526 2001-02-08 Akim Demaille <akim@epita.fr>
4527
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.
4531
4532 2001-02-08 Akim Demaille <akim@epita.fr>
4533
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.
4541
4542 2001-02-02 Akim Demaille <akim@epita.fr>
4543
4544 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
4545 * lib/xalloc.h, lib/xmalloc.c: Update.
4546
4547 2001-01-19 Akim Demaille <akim@epita.fr>
4548
4549 Get rid of the ad hoc handling of token_buffer in the scanner: use
4550 the obstacks.
4551
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.
4556
4557 2001-01-19 Akim Demaille <akim@epita.fr>
4558
4559 * src/lex.h: Rename all the tokens:
4560 s/\bENDFILE\b/tok_eof/g;
4561 s/\bIDENTIFIER\b/tok_identifier/g;
4562 etc.
4563 Let them be enums, not #define, to ease debugging.
4564 Adjust all the code.
4565
4566 2001-01-18 Akim Demaille <akim@epita.fr>
4567
4568 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
4569 * src/lex.c (maxtoken, grow_token_buffer): Static.
4570
4571 2001-01-18 Akim Demaille <akim@epita.fr>
4572
4573 Since we now use obstacks, more % directives can be enabled.
4574
4575 * src/lex.c (percent_table): Also accept `%yacc',
4576 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
4577 `%debug'.
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.
4590
4591 2000-12-20 Akim Demaille <akim@epita.fr>
4592
4593 Also handle the output file (--verbose) with obstacks.
4594
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.
4602
4603 2000-12-20 Akim Demaille <akim@epita.fr>
4604
4605 * src/files.c (open_files): Fix the computation of short_base_name
4606 in the case of `-o foo.tab.c'.
4607
4608 2000-12-20 Akim Demaille <akim@epita.fr>
4609
4610 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
4611 (copy_dollar): Now that everything uses obstacks, get rid of the
4612 FILE * parameters.
4613
4614 2000-12-20 Akim Demaille <akim@epita.fr>
4615
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.
4619
4620 2000-12-20 Akim Demaille <akim@epita.fr>
4621
4622 * src/bison.s1: Remove, we now use directly...
4623 * src/bison.simple: this.
4624 * src/Makefile.am: Use pkgdata instead of data.
4625
4626 2000-12-20 Akim Demaille <akim@epita.fr>
4627
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.
4633
4634 2000-12-19 Akim Demaille <akim@epita.fr>
4635
4636 * src/files.c (outfile, defsfile, actfile): Removed as global
4637 vars.
4638 (open_files): Don't compute them.
4639 (output_files): Adjust.
4640 (base_name, short_base_name): Be global.
4641 Adjust dependencies.
4642
4643 2000-12-19 Akim Demaille <akim@epita.fr>
4644
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
4649 short_base_name.
4650 (open_files): Use it.
4651 * tests/suite.at (Checking output file names): New test.
4652
4653 2000-12-19 Akim Demaille <akim@epita.fr>
4654
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
4658 `$'.
4659 * src/bison.s1: s/$/%% actions/.
4660 * src/bison.hairy: Likewise.
4661
4662 2000-12-19 Akim Demaille <akim@epita.fr>
4663
4664 * src/output.c (output_parser): Compute the `#line' lines when
4665 there are.
4666 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
4667 Suggested by Hans Aberg.
4668
4669 2000-12-19 Akim Demaille <akim@epita.fr>
4670
4671 Let the handling of the skeleton files be local to the procedures
4672 that use it.
4673
4674 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
4675 longer static.
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
4680 skeleton.
4681 * src/reader.c (read_declarations): When %semantic_parser, open
4682 fguard.
4683
4684 2000-12-19 Akim Demaille <akim@epita.fr>
4685
4686 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
4687 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
4688
4689 2000-12-19 Akim Demaille <akim@epita.fr>
4690
4691 * src/files.c (open_files): Yipee! We no longer need all the code
4692 looking for `/tmp' since we have no tmp file.
4693
4694 2000-12-19 Akim Demaille <akim@epita.fr>
4695
4696 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
4697 New macros.
4698 * src/files.c (open_files): Less dependency on MSDOS etc.
4699
4700 2000-12-14 Akim Demaille <akim@epita.fr>
4701
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.
4707
4708 2000-12-12 Akim Demaille <akim@epita.fr>
4709
4710 * src/reader.c (copy_definition, parse_union_decl, copy_action)
4711 (copy_guard): Quote the file names.
4712 Reported by Laurent Mascherpa.
4713
4714 2000-12-12 Akim Demaille <akim@epita.fr>
4715
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.
4720
4721 2000-11-17 Akim Demaille <akim@epita.fr>
4722
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 *'
4728 variable is valid.
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
4731 append characters.
4732
4733 2000-11-17 Akim Demaille <akim@epita.fr>
4734
4735 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
4736 as...
4737 (suite.m4, regression.m4, calc.m4): these.
4738 * tests/atgeneral.m4: Update from CVS Autoconf.
4739
4740 2000-11-17 Akim Demaille <akim@epita.fr>
4741
4742 * tests/regression.m4 (%union and --defines): New test,
4743 demonstrating a current bug in the obstack implementation.
4744
4745 2000-11-17 Akim Demaille <akim@epita.fr>
4746
4747 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
4748 macros.
4749 Use them to declare the variables which are global or local to
4750 `yyparse'.
4751
4752 2000-11-17 Akim Demaille <akim@epita.fr>
4753
4754 * acconfig.h: Remove, no longer used.
4755
4756 2000-11-07 Akim Demaille <akim@epita.fr>
4757
4758 * src: s/Copyright (C)/Copyright/g.
4759
4760 2000-11-07 Akim Demaille <akim@epita.fr>
4761
4762 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
4763 defining.
4764 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
4765
4766 2000-11-07 Akim Demaille <akim@epita.fr>
4767
4768 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
4769 Merge in a single CPP if/else.
4770
4771 2000-11-07 Akim Demaille <akim@epita.fr>
4772
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.
4776 Qualify it `const'.
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.
4783
4784 2000-11-03 Akim Demaille <akim@epita.fr>
4785
4786 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
4787 s/PFILE1/BISON_HAIRY/.
4788 Adjust dependencies.
4789
4790 2000-11-03 Akim Demaille <akim@epita.fr>
4791
4792 For some reason, this was not applied.
4793
4794 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
4795 `unlink': it's no longer used.
4796
4797 2000-11-03 Akim Demaille <akim@epita.fr>
4798
4799 * src/files.c (skeleton_find): New function, eved out of...
4800 (open_files, open_extra_files): here.
4801
4802 2000-11-03 Akim Demaille <akim@epita.fr>
4803
4804 Don't use `atexit'.
4805
4806 * src/files.c (obstack_save): New function.
4807 (done): Rename as...
4808 (output_files): this.
4809 Use `obstack_save'.
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.
4813
4814 2000-11-02 Akim Demaille <akim@epita.fr>
4815
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.
4819
4820 2000-11-02 Akim Demaille <akim@epita.fr>
4821
4822 Remove the last uses of mktemp and unlink/delete.
4823
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
4830 obstacks.
4831 (output_token_defines, reader_output_yylsp): Use obstacks.
4832 * src/system.h (obstack_fgrow3): New.
4833
4834 2000-11-01 Akim Demaille <akim@epita.fr>
4835
4836 Change each use of `fattrs' into a use of `attrs_obstack'.
4837
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.
4843
4844 2000-11-01 Akim Demaille <akim@epita.fr>
4845
4846 Introduce obstacks.
4847 Change each use of `faction' into a use of `action_obstack'.
4848
4849 * lib/obstack.h, lib/obstack.c: New files.
4850 * src/files.c (faction): Remove.
4851 (action_obstack): New.
4852 Adjust all dependencies.
4853
4854 2000-10-20 Akim Demaille <akim@epita.fr>
4855
4856 * lib/quote.h (PARAMS): New macro. Use it.
4857
4858 2000-10-16 Akim Demaille <akim@epita.fr>
4859
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.
4863
4864 2000-10-16 Akim Demaille <akim@epita.fr>
4865
4866 * src/symtab.c (bucket_new): New function.
4867 (getsym): Use it.
4868
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.
4874
4875 2000-10-16 Akim Demaille <akim@epita.fr>
4876
4877 * src/lex.c (read_typename): New function.
4878 (lex): Use it.
4879 * src/reader.c (copy_dollar): Likewise.
4880
4881 2000-10-16 Akim Demaille <akim@epita.fr>
4882
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.
4888
4889 2000-10-16 Akim Demaille <akim@epita.fr>
4890
4891 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
4892 `read_signed_integer'.
4893
4894 2000-10-16 Akim Demaille <akim@epita.fr>
4895
4896 * src/reader.c (copy_dollar): New function.
4897 (copy_guard, copy_action): Use it.
4898
4899 2000-10-16 Akim Demaille <akim@epita.fr>
4900
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'.
4906
4907 2000-10-04 Akim Demaille <akim@epita.fr>
4908
4909 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
4910
4911 2000-10-04 Akim Demaille <akim@epita.fr>
4912
4913 * doc/bison.texinfo: Various typos spotted by Neil Booth.
4914
4915 2000-10-04 Akim Demaille <akim@epita.fr>
4916
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.
4920
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
4924 properly.
4925
4926 2000-10-04 Akim Demaille <akim@epita.fr>
4927
4928 * src/reader.c (parse_expect_decl): Keep `count' within the size
4929 of `buffer'.
4930 From Neil Booth.
4931
4932 2000-10-02 Paul Eggert <eggert@twinsun.com>
4933
4934 * bison.s1 (yyparse): Assign the default value
4935 unconditionally, to avoid a GCC warning and make the parser a
4936 tad smaller.
4937
4938 2000-10-02 Akim Demaille <akim@epita.fr>
4939
4940 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
4941 options.
4942
4943 2000-10-02 Akim Demaille <akim@epita.fr>
4944
4945 * src/derives.c, src/print.c, src/reduce.c: To ease the
4946 translation, move some `\n' out of the translated strings.
4947
4948 2000-10-02 Akim Demaille <akim@epita.fr>
4949
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.
4955
4956 * src/getargs.c (getargs): Support `--locations'.
4957 (usage): Report it.
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'.
4963 Sort the options.
4964 * tests/calc.m4: Test it.
4965
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'.
4970
4971 2000-10-02 Akim Demaille <akim@epita.fr>
4972
4973 Also test parse error messages, including with YYERROR_VERBOSE.
4974
4975 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
4976 associative).
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.
4983
4984 2000-10-02 Akim Demaille <akim@epita.fr>
4985
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:
4990
4991 #if YYDEBUG
4992 if (yydebug)
4993 {
4994 ...
4995 }
4996 #endif
4997
4998 into
4999
5000 if (yydebug)
5001 {
5002 ...
5003 }
5004
5005 unfortunately this leads to a CPP conflict when
5006 `--name-prefix=foo' is used since it produces `#define yydebug
5007 foodebug'.
5008
5009 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
5010 (YYDPRINTF): New macro.
5011 Spread its use.
5012 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
5013 the bison options.
5014 Also test `--verbose', `--defines' and `--name-prefix'.
5015
5016 2000-10-02 Akim Demaille <akim@epita.fr>
5017
5018 Improve the readability of the produced parsers.
5019
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
5024 of its line.
5025 New variable, `number_of_dollar_signs', to check there's exactly
5026 one `$' in the parser skeleton.
5027
5028 2000-10-02 Akim Demaille <akim@epita.fr>
5029
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.
5035
5036 2000-10-02 Akim Demaille <akim@epita.fr>
5037
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'.
5048
5049 2000-10-02 Akim Demaille <akim@epita.fr>
5050
5051 * src/getargs.c (fixed_outfiles): Rename as...
5052 (yaccflag): for consistency and accuracy.
5053 Adjust dependencies.
5054
5055 2000-10-02 Akim Demaille <akim@epita.fr>
5056
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.
5065
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
5068 files.
5069 Adjust dependencies.
5070 * src/warshall.h: New file.
5071 Propagate.
5072
5073 2000-10-02 Akim Demaille <akim@epita.fr>
5074
5075 Various anti-`extern in *.c' changes.
5076
5077 * src/system.h: Include `assert.h'.
5078
5079 2000-10-02 Akim Demaille <akim@epita.fr>
5080
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.
5088
5089 Remove a lot of now useless `extern' statements in most files.
5090
5091 2000-10-02 Akim Demaille <akim@epita.fr>
5092
5093 * src/LR0.h: New file.
5094 Propagate its use.
5095
5096 2000-10-02 Akim Demaille <akim@epita.fr>
5097
5098 * src/print.h: New file.
5099 Propagate its use.
5100 * src/print.c: Formatting and ordering changes.
5101 (verbose, terse): Replace with...
5102 (print_results): this new function.
5103 Adjust dependencies.
5104
5105 2000-10-02 Akim Demaille <akim@epita.fr>
5106
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.
5113
5114 2000-10-02 Akim Demaille <akim@epita.fr>
5115
5116 * src/nullable.h: New file.
5117 Propagate its inclusion.
5118 * src/nullable.c: Formatting changes.
5119
5120 2000-10-02 Akim Demaille <akim@epita.fr>
5121
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.
5127
5128 2000-10-02 Akim Demaille <akim@epita.fr>
5129
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.
5135 Propagate its use.
5136
5137 2000-10-02 Akim Demaille <akim@epita.fr>
5138
5139 * src/reader.h: New file.
5140 Propagate its use instead of tedious list of `extern' and
5141 prototypes.
5142 * src/reader.c: Formatting changes, topological sort,
5143 s/register//.
5144
5145 2000-10-02 Akim Demaille <akim@epita.fr>
5146
5147 * src/lex.h: Prototype `lex.c' exported functions.
5148 * src/reader.c: Adjust.
5149 * src/lex.c: Formatting changes.
5150 (safegetc): Rename as...
5151 (xgetc): this.
5152
5153 2000-10-02 Akim Demaille <akim@epita.fr>
5154
5155 * src/lalr.h: New file.
5156 Propagate its inclusion instead of prototypes and `extern'.
5157 * src/lalr.c: Formatting changes, topological sorting etc.
5158
5159 2000-10-02 Akim Demaille <akim@epita.fr>
5160
5161 * src/output.c (token_actions): Introduce a temporary array,
5162 YYDEFACT, that makes it possible for this function to use
5163 output_short_table.
5164
5165 2000-10-02 Akim Demaille <akim@epita.fr>
5166
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
5170 shorts.
5171
5172 * src/reader.c (user_toknums): Be a short table instead of an int
5173 table.
5174 Adjust dependencies.
5175
5176 Factor the short table outputs.
5177
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.
5181
5182 2000-10-02 Akim Demaille <akim@epita.fr>
5183
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
5189 from output.c.
5190
5191 2000-09-21 Akim Demaille <akim@epita.fr>
5192
5193 * src/atgeneral.m4: Update from Autoconf.
5194
5195 2000-09-21 Akim Demaille <akim@epita.fr>
5196
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
5203 cloture.h.
5204 (initialize_states): Rename as...
5205 (new_states): this.
5206 * src/Makefile.am (noinst_HEADERS): Adjust.
5207
5208 2000-09-20 Akim Demaille <akim@epita.fr>
5209
5210 * src/acconfig.h: Don't protect config.h against multiple
5211 inclusion.
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.
5217
5218 2000-09-20 Akim Demaille <akim@epita.fr>
5219
5220 * src/derives.h: New file.
5221 * src/main.c, src/derives.h: Use it.
5222 Formatting changes.
5223 * src/Makefile.am (noinst_HEADERS): Adjust.
5224
5225 2000-09-20 Akim Demaille <akim@epita.fr>
5226
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'.
5232
5233 2000-09-19 Akim Demaille <akim@epita.fr>
5234
5235 * src/output.c: Formatting changes.
5236 * src/machine.h: Remove, leaving its contents in...
5237 * src/system.h: here.
5238 Include stdio.h.
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.
5244
5245 * tests/calc.m4 (yyin): Be initialized in main, not on the global
5246 scope.
5247 (yyerror): Returns void, not int.
5248 * doc/bison.texinfo: Formatting changes.
5249
5250 2000-09-19 Akim Demaille <akim@epita.fr>
5251
5252 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
5253 portable.
5254
5255 2000-09-18 Akim Demaille <akim@epita.fr>
5256
5257 * configure.in: Append WARNING_CFLAGS to CFLAGS.
5258 * src/Makefile.am (INCLUDES): Don't.
5259 Be ready to fetch headers in lib/.
5260
5261 2000-09-18 Akim Demaille <akim@epita.fr>
5262
5263 * doc/bison.texinfo: Update the copyright.
5264 ANSIfy and GNUify the examples.
5265 Remove the old menu.
5266
5267 2000-09-18 Akim Demaille <akim@epita.fr>
5268
5269 First set of tests: use the `calc' example from the documentation.
5270
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.
5280
5281 2000-09-18 Akim Demaille <akim@epita.fr>
5282
5283 Add support for an Autotest test suite for Bison.
5284
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
5288 files.
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.
5295
5296 2000-04-14 Akim Demaille <akim@epita.fr>
5297
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'
5304 message.
5305 (parse_union_decl, copy_guard, copy_action): Use the same
5306 `unmatched' message.
5307 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
5308
5309 2000-03-31 Akim Demaille <akim@epita.fr>
5310
5311 * src/files.c (tryopen, tryclose): Move to the top.
5312 Be static.
5313
5314 2000-03-31 Akim Demaille <akim@epita.fr>
5315
5316 * src/main.c (main): Don't call `done', exit does it.
5317
5318 2000-03-31 Akim Demaille <akim@epita.fr>
5319
5320 * allocate.c: s/return (foo)/return foo/.
5321 * lalr.c: Likewise.
5322 * LR0.c: Likewise.
5323 * output.c: Likewise.
5324 * reader.c: Likewise.
5325 * symtab.c: Likewise.
5326 * vmsgetargs.c: Likewise.
5327
5328 2000-03-31 Akim Demaille <akim@epita.fr>
5329
5330 Clean up the error reporting functions.
5331
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):
5339 Remove.
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'.
5346
5347 * src/getargs.c (usage): More `fputs', less `fprintf'.
5348
5349 2000-03-28 Akim Demaille <akim@epita.fr>
5350
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
5355 useless.
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.
5364
5365 2000-03-28 Akim Demaille <akim@epita.fr>
5366
5367 * src/getargs.c (usage): Refresh the help message.
5368
5369 2000-03-17 Akim Demaille <akim@epita.fr>
5370
5371 * src/getopt1.c: Updated from textutils 2.0e
5372 * src/getopt.c: Likewise.
5373 * src/getopt.h: Likewise.
5374
5375 2000-03-17 Akim Demaille <akim@epita.fr>
5376
5377 * src/Makefile.am (bison.simple): Fix the awk program: quote only
5378 the file name, not the whole `#line LINE FILE'.
5379
5380 2000-03-17 Akim Demaille <akim@epita.fr>
5381
5382 On syntax errors, report the token on which we choked.
5383
5384 * src/bison.s1 (yyparse): In the label yyerrlab, when
5385 YYERROR_VERBOSE, add yychar in msg.
5386
5387 2000-03-17 Akim Demaille <akim@epita.fr>
5388
5389 * src/reader.c (copy_at): New function.
5390 (copy_guard): Use it.
5391 (copy_action): Use it.
5392
5393 2000-03-17 Akim Demaille <akim@epita.fr>
5394
5395 Be kind to translators, save some useless translations.
5396
5397 * src/main.c (banner): New function.
5398 (fatal_banner): Use it.
5399 (warn_banner): Use it.
5400
5401 2000-03-17 Akim Demaille <akim@epita.fr>
5402
5403 * src/reader.c (copy_definition): Use copy_string and
5404 copy_comment. Removed now unused `match', `ended',
5405 `cplus_comment'.
5406 (copy_comment, copy_string): Moved, to be visible from
5407 copy_definition.
5408
5409 2000-03-17 Akim Demaille <akim@epita.fr>
5410
5411 * src/reader.c (copy_string): Declare `static inline'. No
5412 problems with inline, since it is checked by configure.
5413 (copy_comment): Likewise.
5414
5415 2000-03-17 Akim Demaille <akim@epita.fr>
5416
5417 * src/reader.c (packsymbols): Formatting changes.
5418
5419 2000-03-17 Akim Demaille <akim@epita.fr>
5420
5421 * src/reader.c (copy_comment): New function, factored out from:
5422 (copy_action): Use it. Removed now unused `match', `ended',
5423 `cplus_comment'.
5424 (copy_guard): Likewise.
5425
5426 2000-03-17 Akim Demaille <akim@epita.fr>
5427
5428 * src/reader.c (copy_string): New function, factored out from:
5429 (copy_action): Use it.
5430 (copy_guard): Likewise.
5431
5432 2000-03-17 Akim Demaille <akim@epita.fr>
5433
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).
5439
5440 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
5441 yyval.
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
5450 translators.
5451
5452 2000-03-17 Akim Demaille <akim@epita.fr>
5453
5454 * src/bison.s1: Formatting and cosmetics changes.
5455 * src/reader.c: Likewise.
5456 Update the Copyright notice.
5457
5458 2000-03-17 Akim Demaille <akim@epita.fr>
5459
5460 * src/bison.s1 (#line): All set to `#line' only, since the
5461 Makefile now handles them.
5462
5463 2000-03-16 Akim Demaille <akim@epita.fr>
5464
5465 * src/output.c (output_rule_data): Output the documentation of
5466 some of the tables.
5467 (Copyright notice): Update.
5468 Formatting changes.
5469
5470 2000-03-16 Akim Demaille <akim@epita.fr>
5471
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'.
5476
5477 2000-03-16 Akim Demaille <akim@epita.fr>
5478
5479 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
5480 and related variables so that the similarities are highlighted.
5481
5482 2000-03-16 Akim Demaille <akim@epita.fr>
5483
5484 * src/bison.s1: Properly indent CPP directives.
5485
5486 2000-03-16 Akim Demaille <akim@epita.fr>
5487
5488 * src/bison.s1: Properly indent the `alloca' CPP section.
5489
5490 2000-03-16 Akim Demaille <akim@epita.fr>
5491
5492 Do not hard code values of directories in `configure.in'.
5493 Update the `configure' tool chain.
5494
5495 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
5496 src/makefile.am.
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
5504 autoheader.
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
5511 locale files.
5512 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
5513 builddir.
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.
5520
5521 2000-03-10 Akim Demaille <akim@epita.fr>
5522
5523 * src/closure.c:
5524 Formatting changes of various comments.
5525 Respect the GNU coding standards at various places.
5526 Don't use `_()' when no translation is needed.
5527
5528 1999-12-13 Jesse Thilo <jthilo@gnu.org>
5529
5530 * src/files.c:
5531 OS/2 honors TMPDIR environment variable.
5532
5533 1999-12-13 Jesse Thilo <jthilo@gnu.org>
5534
5535 * doc/bison.texinfo: Tweaked spelling and grammar.
5536 Updated ISBN.
5537 Removed reference to price of printed copy.
5538 Mention BISON_SIMPLE and BISON_HAIRY.
5539
5540 1999-12-13 Jesse Thilo <jthilo@gnu.org>
5541
5542 * configure.in, NEWS:
5543 Bison 1.29 released.
5544
5545 1999-10-27 Jesse Thilo <jthilo@gnu.org>
5546
5547 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
5548 Added reference card.
5549
5550 1999-07-26 Jesse Thilo <jthilo@gnu.org>
5551
5552 * po/ru.po: Added Russian translation.
5553
5554 1999-07-26 Jesse Thilo <jthilo@gnu.org>
5555
5556 * configure.in: Added Russian translation.
5557
5558 1999-07-06 Jesse Thilo <jthilo@gnu.org>
5559
5560 * configure.in, NEWS, README:
5561 Released version 1.28.
5562
5563 1999-06-14 Jesse Thilo <jthilo@gnu.org>
5564
5565 * src/system.h:
5566 Squashed redefinition warning on some systems.
5567
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
5570 concatentation.
5571
5572 1999-06-14 Jesse Thilo <jthilo@gnu.org>
5573
5574 * po/POTFILES.in: Got rid of version.c.
5575
5576 1999-06-14 Jesse Thilo <jthilo@gnu.org>
5577
5578 * acconfig.h, configure.in:
5579 Have configure build version string instead of relying on ANSI string
5580 concatentation.
5581
5582 1999-06-08 Jesse Thilo <jthilo@gnu.org>
5583
5584 * doc/bison.1:
5585 Dropped mention of `+' for long-named options.
5586
5587 1999-05-30 Jesse Thilo <jthilo@gnu.org>
5588
5589 * src/files.c: Added <unistd.h> for unlink().
5590
5591 * src/Makefile.am, src/system.h:
5592 I18n fixes.
5593
5594 1999-05-30 Jesse Thilo <jthilo@gnu.org>
5595
5596 * README: Added a FAQ list.
5597
5598 * configure.in, acconfig.h:
5599 I18n fixes.
5600
5601 1999-05-30 Jesse Thilo <jthilo@gnu.org>
5602
5603 * doc/FAQ, doc/Makefile.am:
5604 Added a FAQ list.
5605
5606 1999-05-19 Jesse Thilo <jthilo@gnu.org>
5607
5608 * src/alloc.h, src/symtab.h, src/version.c:
5609 Protected inclusion of "config.h" with HAVE_CONFIG_H.
5610
5611 1999-04-18 Jesse Thilo <jthilo@gnu.org>
5612
5613 * src/.cvsignore, src/Makefile.am:
5614 Reorganized: sources in `src', documentation in `doc'.
5615
5616 * src/lex.c (literalchar):
5617 fixed the code for escaping double quotes (thanks
5618 Jonathan Czisny.)
5619
5620 1999-04-18 Jesse Thilo <jthilo@gnu.org>
5621
5622 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
5623 Adjusted paths to reflect directory reorganization.
5624
5625 1999-04-18 Jesse Thilo <jthilo@gnu.org>
5626
5627 * doc/.cvsignore, doc/Makefile.am:
5628 Reorganized: sources in `src', documentation in `doc'.
5629
5630 1999-04-18 Jesse Thilo <jthilo@gnu.org>
5631
5632 * configure.in:
5633 Updated AC_INIT file to reflect directory reorganization.
5634
5635 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
5636 Reorganized: sources in `src', documentation in `doc'.
5637
5638 1999-04-13 Jesse Thilo <jthilo@gnu.org>
5639
5640 * src/allocate.c:
5641 Don't declare calloc() and realloc() if not necessary.
5642
5643 1999-04-13 Jesse Thilo <jthilo@gnu.org>
5644
5645 * configure.in, acconfig.h, acinclude.m4:
5646 Don't declare calloc() and realloc() if not necessary.
5647
5648 1999-03-23 Jesse Thilo <jthilo@gnu.org>
5649
5650 * po/.cvsignore: Added i18n support.
5651
5652 1999-03-23 Jesse Thilo <jthilo@gnu.org>
5653
5654 * acconfig.h, configure.in, Makefile.am:
5655 Added i18n support.
5656
5657 1999-03-22 Jesse Thilo <jthilo@gnu.org>
5658
5659 * src/bison.s1: Fixed #line numbers.
5660
5661 1999-03-15 Jesse Thilo <jthilo@gnu.org>
5662
5663 * po/es.po, po/fr.po, po/nl.po, po/de.po:
5664 Added PO files from Translation Project.
5665
5666 1999-03-03 Jesse Thilo <jthilo@gnu.org>
5667
5668 * Makefile.am:
5669 Added support for non-ANSI compilers (ansi2knr).
5670
5671 1999-02-16 Jesse Thilo <jthilo@gnu.org>
5672
5673 * configure.in: Bumped version number to 1.27.
5674
5675 * Makefile.am:
5676 Added `bison.simple' to list of files removed by `make distclean'.
5677
5678 1999-02-12 Jesse Thilo <jthilo@gnu.org>
5679
5680 * src/files.c, src/files.h:
5681 Defined locations of parser files in config.h instead of Makefile.
5682
5683 1999-02-12 Jesse Thilo <jthilo@gnu.org>
5684
5685 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
5686 Defined locations of parser files in config.h instead of Makefile.
5687
5688 1999-02-09 Jesse Thilo <jthilo@gnu.org>
5689
5690 * Makefile.am:
5691 Removed inappropriate use of $< macro.
5692
5693 1999-02-05 Jesse Thilo <jthilo@gnu.org>
5694
5695 * po/Makefile.in.in, po/POTFILES.in:
5696 Add `po' directory skeleton.
5697
5698 1999-01-27 Jesse Thilo <jthilo@gnu.org>
5699
5700 * README: Document help-bison list.
5701
5702 * configure.in: Add check for mkstemp().
5703
5704 1999-01-20 Jesse Thilo <jthilo@gnu.org>
5705
5706 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
5707 Hush a few compiler warnings.
5708
5709 * src/files.c:
5710 Add tryclose(), which verifies that fclose was successful.
5711 Hush a couple of compiler warnings.
5712
5713 1999-01-20 Jesse Thilo <jthilo@gnu.org>
5714
5715 * Makefile.am, OChangeLog:
5716 ChangeLog is now automatically generated. Include the old version as
5717 OChangeLog.
5718
5719 1999-01-14 Jesse Thilo <jthilo@gnu.org>
5720
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:
5722 Update FSF address.
5723
5724 1999-01-14 Jesse Thilo <jthilo@gnu.org>
5725
5726 * doc/bison.texinfo: Fix formatting glitch.
5727
5728 * doc/bison.texinfo: Update FSF address.
5729
5730 1999-01-14 Jesse Thilo <jthilo@gnu.org>
5731
5732 * acconfig.h: Update FSF address.
5733
5734 1999-01-08 Jesse Thilo <jthilo@gnu.org>
5735
5736 * src/system.h:
5737 Don't define PACKAGE here, since config.h defines it.
5738
5739 1998-12-30 Jesse Thilo <jthilo@gnu.org>
5740
5741 * src/reader.c: Update copyright date.
5742
5743 * src/main.c:
5744 Ditch sprintf to statically-sized buffers in fatal/warn functions in
5745 favor of output directly to stderr (avoids buffer overruns).
5746
5747 * src/reader.c: Some checks for premature EOF.
5748
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.
5751
5752 * src/files.c: Honor TMPDIR on Unix hosts.
5753 Use prototypes if the compiler understands them.
5754
5755 * src/reader.c:
5756 Fix a couple of buffer overrun bugs.
5757 Use prototypes if the compiler understands them.
5758
5759 * src/system.h: Include unistd.h and ctype.h.
5760 Use #ifdef instead of #if for NLS symbols.
5761
5762 1998-12-30 Jesse Thilo <jthilo@gnu.org>
5763
5764 * doc/bison.texinfo:
5765 Delete comment "consider using @set for edition number, etc..." since
5766 we now are doing so.
5767
5768 1998-12-30 Jesse Thilo <jthilo@gnu.org>
5769
5770 * configure.in:
5771 Use prototypes if the compiler understands them.
5772
5773 * NEWS: Document 1.26 highlights.
5774
5775 * Makefile.am: Require Automake 1.3 or later.
5776
5777 * acconfig.h:
5778 Use prototypes if the compiler understands them.
5779
5780 1998-12-29 Jesse Thilo <jthilo@gnu.org>
5781
5782 * src/version.c:
5783 Use VERSION symbol from automake for version number.
5784
5785 1998-12-29 Jesse Thilo <jthilo@gnu.org>
5786
5787 * acconfig.h, configure.in, version.cin:
5788 Use VERSION symbol from automake for version number.
5789
5790 1998-11-28 Jesse Thilo <jthilo@gnu.org>
5791
5792 * Makefile.am:
5793 Distribute original version of simple parser (bison.s1), not built
5794 version (bison.simple).
5795
5796 1998-11-28 Jesse Thilo <jthilo@gnu.org>
5797
5798 * doc/bison.texinfo: Add info dir entry.
5799
5800 * doc/bison.texinfo:
5801 Let automake put version number into documentation.
5802
5803 1998-11-26 Jesse Thilo <jthilo@gnu.org>
5804
5805 * src/bison.cld, src/build.com, src/vmshlp.mar:
5806 Add non-RCS files from /gd/gnu/bison.
5807
5808 1998-11-26 Jesse Thilo <jthilo@gnu.org>
5809
5810 * doc/bison.1:
5811 Document the BISON_HAIRY and BISON_SIMPLE variables.
5812
5813 1998-11-25 Jesse Thilo <jthilo@gnu.org>
5814
5815 * src/version.c: Build version.c automatically.
5816
5817 * src/reader.c:
5818 Fix token numbering (used to start at 258, not 257).
5819
5820 * src/system.h: Include config.h.
5821
5822 * src/getargs.c: Update bug report address.
5823
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.
5826
5827 1998-11-25 Jesse Thilo <jthilo@gnu.org>
5828
5829 * Makefile.am:
5830 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
5831
5832 * configure.in, version.cin:
5833 Build version.c automatically.
5834
5835 * AUTHORS: Add AUTHORS file.
5836
5837 * README: Update bug report address.
5838
5839 * bison.simple:
5840 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
5841
5842 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
5843 Add automake stuff.
5844
5845 1998-11-25 Jesse Thilo <jthilo@gnu.org>
5846
5847 * doc/bison.texinfo: Clean up some formatting.
5848
5849 1998-05-05 Richard Stallman <rms@gnu.org>
5850
5851 * doc/bison.texinfo:
5852 Explain better why to make a pure parser.
5853
5854 1998-01-05 Richard Stallman <rms@gnu.org>
5855
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
5859 they are open.
5860
5861 1997-08-25 Richard Stallman <rms@gnu.org>
5862
5863 * src/reader.c (stack_offset;):
5864 Change some warni to warns.
5865
5866 * src/lex.c (literalchar): Use warns, not warni.
5867
5868 1997-06-28 Richard Stallman <rms@gnu.org>
5869
5870 * src/bison.s1: Add a Bison version comment.
5871
5872 * src/main.c (fatal, warn, berror):
5873 Use program_name.
5874
5875 1997-06-28 Richard Stallman <rms@gnu.org>
5876
5877 * Makefile.in (bison_version): New variable.
5878 (dist): Use that variable.
5879 (bison.s1): Substitute the Bison version into bison.simple.
5880
5881 * bison.simple: Add a Bison version comment.
5882
5883 1997-06-18 Richard Stallman <rms@gnu.org>
5884
5885 * src/main.c (fatal, warn, berror):
5886 Make error messages standard.
5887 (toomany): Improve error message text.
5888
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.
5891
5892 1997-06-18 Richard Stallman <rms@gnu.org>
5893
5894 * Makefile.in: new.h renamed to alloc.h.
5895
5896 1997-05-24 Richard Stallman <rms@gnu.org>
5897
5898 * src/lex.c (literalchar):
5899 Fix the code for escaping \, " and '.
5900
5901 (lex): Avoid trouble when there are many chars
5902 to discard in a char literal with just several chars in it.
5903
5904 1997-05-17 Richard Stallman <rms@gnu.org>
5905
5906 * src/bison.s1:
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.
5913
5914 1997-05-17 Richard Stallman <rms@gnu.org>
5915
5916 * bison.simple:
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.
5923
5924 1997-04-23 Richard Stallman <rms@gnu.org>
5925
5926 * src/bison.s1:
5927 (alloca) [__hpux]: Always define as __builtin_alloca.
5928
5929 1997-04-23 Richard Stallman <rms@gnu.org>
5930
5931 * bison.simple:
5932 (alloca) [__hpux]: Always define as __builtin_alloca.
5933
5934 1997-04-22 Richard Stallman <rms@gnu.org>
5935
5936 * src/bison.s1:
5937 [__hpux]: Include alloca.h (right for HPUX 10)
5938 instead of declaring alloca (right for HPUX 9).
5939
5940 * src/bison.s1 (__yy_memcpy):
5941 Declare arg `count' as unsigned int.
5942 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
5943
5944 1997-04-22 Richard Stallman <rms@gnu.org>
5945
5946 * bison.simple:
5947 [__hpux]: Include alloca.h (right for HPUX 10)
5948 instead of declaring alloca (right for HPUX 9).
5949
5950 * bison.simple (__yy_memcpy):
5951 Declare arg `count' as unsigned int.
5952 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
5953
5954 1997-01-03 Richard Stallman <rms@gnu.org>
5955
5956 * src/allocate.c: [__STDC__ or _MSC_VER]:
5957 Declare calloc and realloc to return void *.
5958
5959 1997-01-02 Richard Stallman <rms@gnu.org>
5960
5961 * src/system.h:
5962 [_MSC_VER]: Include stdlib.h and process.h.
5963 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
5964
5965 * src/main.c (main): Return FAILURE as a value.
5966 (printable_version): Declare arg as int, not char.
5967
5968 1997-01-02 Richard Stallman <rms@gnu.org>
5969
5970 * Makefile.in (dist):
5971 Explicitly check for symlinks, and copy them.
5972
5973 1996-12-19 Richard Stallman <rms@gnu.org>
5974
5975 * src/files.c:
5976 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
5977
5978 1996-12-18 Paul Eggert <eggert@gnu.org>
5979
5980 * src/bison.s1 (yyparse):
5981 If __GNUC__ and YYPARSE_PARAM are both defined,
5982 declare yyparse to have a void * argument.
5983
5984 1996-12-18 Paul Eggert <eggert@gnu.org>
5985
5986 * bison.simple (yyparse):
5987 If __GNUC__ and YYPARSE_PARAM are both defined,
5988 declare yyparse to have a void * argument.
5989
5990 1996-12-17 Richard Stallman <rms@gnu.org>
5991
5992 * src/reduce.c (nbits): Add some casts.
5993
5994 1996-08-12 Richard Stallman <rms@gnu.org>
5995
5996 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
5997
5998 1996-08-12 Richard Stallman <rms@gnu.org>
5999
6000 * bison.simple: Test _MSDOS as well as _MSDOS_.
6001
6002 1996-07-31 Richard Stallman <rms@gnu.org>
6003
6004 * src/bison.s1:
6005 [__sun && __i386]: Include alloca.h.
6006
6007 1996-07-31 Richard Stallman <rms@gnu.org>
6008
6009 * bison.simple:
6010 [__sun && __i386]: Include alloca.h.
6011
6012 1996-07-30 Richard Stallman <rms@gnu.org>
6013
6014 * src/bison.s1: Comment change.
6015
6016 * src/bison.s1: Test _MSDOS_, not MSDOS.
6017
6018 1996-07-30 Richard Stallman <rms@gnu.org>
6019
6020 * bison.simple: Comment change.
6021
6022 * bison.simple: Test _MSDOS_, not MSDOS.
6023
6024 1996-06-01 Richard Stallman <rms@gnu.org>
6025
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.
6028
6029 * src/main.c:
6030 Insert `_' macro around many string constants.
6031
6032 (main): Call setlocale, bindtextdomain and textdomain.
6033
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.
6040
6041 1996-06-01 Richard Stallman <rms@gnu.org>
6042
6043 * POTFILES.in: New file.
6044
6045 * Makefile.in (allocate.o):
6046 Define target explicitly.
6047
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.
6055
6056 1996-05-12 Richard Stallman <rms@gnu.org>
6057
6058 * src/bison.s1:
6059 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6060
6061 1996-05-12 Richard Stallman <rms@gnu.org>
6062
6063 * bison.simple:
6064 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6065
6066 1996-05-11 Richard Stallman <rms@gnu.org>
6067
6068 * src/bison.s1 (__yy_memcpy):
6069 Really reorder the args, as was supposedly done on Feb 14 1995.
6070 (yyparse): Calls changed accordingly.
6071
6072 1996-05-11 Richard Stallman <rms@gnu.org>
6073
6074 * Makefile.in (dist): Don't use $(srcdir).
6075
6076 * bison.simple (__yy_memcpy):
6077 Really reorder the args, as was supposedly done on Feb 14 1995.
6078 (yyparse): Calls changed accordingly.
6079
6080 1996-01-27 Richard Stallman <rms@gnu.org>
6081
6082 * src/output.c (output_rule_data):
6083 Test YYERROR_VERBOSE in the conditional
6084 around the definition of ttyname.
6085
6086 1995-12-29 Richard Stallman <rms@gnu.org>
6087
6088 * src/bison.s1:
6089 Fix line numbers in #line commands.
6090
6091 1995-12-29 Richard Stallman <rms@gnu.org>
6092
6093 * bison.simple:
6094 Fix line numbers in #line commands.
6095
6096 1995-12-27 Richard Stallman <rms@gnu.org>
6097
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.
6102
6103 1995-12-27 Richard Stallman <rms@gnu.org>
6104
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.
6109
6110 1995-11-29 Richard Stallman <rms@gnu.org>
6111
6112 * doc/bison.texinfo:
6113 Describe literal string tokens, %raw, %no_lines, %token_table.
6114
6115 1995-11-29 Daniel Hagerty <hag@gnu.org>
6116
6117 * doc/bison.texinfo: Fixed update date
6118
6119 1995-10-16 Richard Stallman <rms@gnu.org>
6120
6121 * src/version.c: Version 1.25.
6122
6123 1995-10-16 Richard Stallman <rms@gnu.org>
6124
6125 * NEWS: *** empty log message ***
6126
6127 1995-10-16 Richard Stallman <rms@gnu.org>
6128
6129 * doc/bison.1, doc/bison.rnh:
6130 Add new options.
6131
6132 1995-10-15 Richard Stallman <rms@gnu.org>
6133
6134 * src/vmsgetargs.c, src/getargs.c:
6135 Added -n, -k, and -raw switches.
6136 (noparserflag, toknumflag, rawtoknumflag): New variables.
6137
6138 * src/symtab.h (SALIAS):
6139 New #define for adding aliases to %token.
6140 (struct bucket): Added `alias' field.
6141
6142 * src/reduce.c (reduce_grammar):
6143 Revise error message.
6144 (print_notices): Remove final `.' from error message.
6145
6146 * src/reader.c (reader_output_yylsp):
6147 New function.
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.
6173
6174 * src/output.c:
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.
6179
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.
6185
6186 * src/lex.h:
6187 Added THONG and NOOP for alias processing.
6188 Added SETOPT for the new code that allows setting options with %flags.
6189
6190 * src/lex.c:
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
6205 an incorrect '/'.
6206 (skip_white_space, lex): Revised most error messages
6207 and changed fatal to warn to avoid aborting.
6208 (percent_table): Added %thong declarations.
6209
6210 * src/gram.h: Comment changes.
6211
6212 * src/files.c (openfiles, open_extra_files, done):
6213 Add faction flag
6214 and actfile file. Handle noparserflag. Both for -n switch.
6215
6216 * src/conflicts.c (resolve_sr_conflict):
6217 Remove use of alloca.
6218
6219 1995-06-01 Jim Meyering <meyering@gnu.org>
6220
6221 * doc/bison.texinfo: *** empty log message ***
6222
6223 1995-05-06 Richard Stallman <rms@gnu.org>
6224
6225 * src/bison.s1: Comment change.
6226
6227 1995-05-06 Richard Stallman <rms@gnu.org>
6228
6229 * bison.simple: Comment change.
6230
6231 1995-05-03 Richard Stallman <rms@gnu.org>
6232
6233 * src/version.c: Version now 1.24.
6234
6235 * src/bison.s1: Change distribution terms.
6236
6237 * src/version.c: Version now 1.23.
6238
6239 1995-05-03 Richard Stallman <rms@gnu.org>
6240
6241 * doc/bison.texinfo:
6242 Rewrite "Conditions for Using Bison".
6243 Update version to 1.24.
6244
6245 1995-05-03 Richard Stallman <rms@gnu.org>
6246
6247 * bison.simple: Change distribution terms.
6248
6249 1995-02-23 Richard Stallman <rms@gnu.org>
6250
6251 * src/files.c: Test __VMS_POSIX as well as VMS.
6252
6253 1995-02-14 Jim Meyering <meyering@gnu.org>
6254
6255 * src/bison.s1 (__yy_memcpy):
6256 Renamed from __yy_bcopy to avoid
6257 confusion. Reverse FROM and TO arguments to be consistent with
6258 those of memcpy.
6259
6260 1995-02-14 Jim Meyering <meyering@gnu.org>
6261
6262 * bison.simple (__yy_memcpy):
6263 Renamed from __yy_bcopy to avoid
6264 confusion. Reverse FROM and TO arguments to be consistent with
6265 those of memcpy.
6266
6267 1994-11-10 David J. MacKenzie <djm@gnu.org>
6268
6269 * NEWS: reformat
6270
6271 * NEWS: New file.
6272
6273 * Makefile.in (DISTFILES): Include NEWS.
6274
6275 * Makefile.in (DISTFILES):
6276 Include install-sh, not install.sh.
6277
6278 * configure.in: Update to Autoconf v2 macro names.
6279
6280 1994-10-05 David J. MacKenzie <djm@gnu.org>
6281
6282 * Makefile.in: fix typo
6283
6284 * Makefile.in (prefix, exec_prefix):
6285 Let configure set them.
6286
6287 1994-09-28 David J. MacKenzie <djm@gnu.org>
6288
6289 * Makefile.in: Set datadir to $(prefix)/share.
6290
6291 1994-09-15 Richard Stallman <rms@gnu.org>
6292
6293 * src/bison.s1:
6294 Update copyright notice and GPL version.
6295
6296 1994-09-15 Richard Stallman <rms@gnu.org>
6297
6298 * bison.simple:
6299 Update copyright notice and GPL version.
6300
6301 1994-07-12 Richard Stallman <rms@gnu.org>
6302
6303 * src/reduce.c, src/reader.c:
6304 entered into RCS
6305
6306 1994-05-05 David J. MacKenzie <djm@gnu.org>
6307
6308 * Makefile.in: entered into RCS
6309
6310 1994-03-26 Richard Stallman <rms@gnu.org>
6311
6312 * src/bison.s1: entered into RCS
6313
6314 1994-03-26 Richard Stallman <rms@gnu.org>
6315
6316 * bison.simple: entered into RCS
6317
6318 1994-03-25 Richard Stallman <rms@gnu.org>
6319
6320 * src/main.c: entered into RCS
6321
6322 1994-03-24 Richard Stallman <rms@gnu.org>
6323
6324 * src/conflicts.c: entered into RCS
6325
6326 1994-01-02 Richard Stallman <rms@gnu.org>
6327
6328 * Makefile.in: *** empty log message ***
6329
6330 1993-11-21 Richard Stallman <rms@gnu.org>
6331
6332 * src/bison.s1: *** empty log message ***
6333
6334 1993-11-21 Richard Stallman <rms@gnu.org>
6335
6336 * doc/bison.texinfo: entered into RCS
6337
6338 * doc/bison.texinfo: *** empty log message ***
6339
6340 1993-11-21 Richard Stallman <rms@gnu.org>
6341
6342 * bison.simple: *** empty log message ***
6343
6344 1993-10-25 David J. MacKenzie <djm@gnu.org>
6345
6346 * doc/bison.texinfo: *** empty log message ***
6347
6348 1993-10-19 Richard Stallman <rms@gnu.org>
6349
6350 * src/bison.s1: *** empty log message ***
6351
6352 1993-10-19 Richard Stallman <rms@gnu.org>
6353
6354 * bison.simple: *** empty log message ***
6355
6356 1993-10-14 Richard Stallman <rms@gnu.org>
6357
6358 * src/bison.s1: *** empty log message ***
6359
6360 1993-10-14 Richard Stallman <rms@gnu.org>
6361
6362 * bison.simple: *** empty log message ***
6363
6364 1993-09-14 David J. MacKenzie <djm@gnu.org>
6365
6366 * doc/bison.texinfo: *** empty log message ***
6367
6368 1993-09-13 Noah Friedman <friedman@gnu.org>
6369
6370 * Makefile.in: *** empty log message ***
6371
6372 1993-09-10 Richard Stallman <rms@gnu.org>
6373
6374 * src/conflicts.c: *** empty log message ***
6375
6376 * src/system.h: entered into RCS
6377
6378 1993-09-10 Richard Stallman <rms@gnu.org>
6379
6380 * doc/bison.1: entered into RCS
6381
6382 1993-09-06 Noah Friedman <friedman@gnu.org>
6383
6384 * src/version.c: entered into RCS
6385
6386 1993-09-06 Noah Friedman <friedman@gnu.org>
6387
6388 * Makefile.in: *** empty log message ***
6389
6390 1993-07-30 David J. MacKenzie <djm@gnu.org>
6391
6392 * Makefile.in: *** empty log message ***
6393
6394 1993-07-24 Richard Stallman <rms@gnu.org>
6395
6396 * src/bison.s1: *** empty log message ***
6397
6398 1993-07-24 Richard Stallman <rms@gnu.org>
6399
6400 * bison.simple: *** empty log message ***
6401
6402 1993-07-08 David J. MacKenzie <djm@gnu.org>
6403
6404 * Makefile.in: *** empty log message ***
6405
6406 1993-07-04 Richard Stallman <rms@gnu.org>
6407
6408 * src/bison.s1: *** empty log message ***
6409
6410 1993-07-04 Richard Stallman <rms@gnu.org>
6411
6412 * bison.simple: *** empty log message ***
6413
6414 1993-06-26 David J. MacKenzie <djm@gnu.org>
6415
6416 * src/getargs.c: entered into RCS
6417
6418 1993-06-26 David J. MacKenzie <djm@gnu.org>
6419
6420 * doc/bison.texinfo: *** empty log message ***
6421
6422 * doc/bison.1: New file.
6423
6424 1993-06-25 Richard Stallman <rms@gnu.org>
6425
6426 * src/getargs.c: New file.
6427
6428 1993-06-16 Richard Stallman <rms@gnu.org>
6429
6430 * src/bison.s1: *** empty log message ***
6431
6432 1993-06-16 Richard Stallman <rms@gnu.org>
6433
6434 * bison.simple: *** empty log message ***
6435
6436 1993-06-03 Richard Stallman <rms@gnu.org>
6437
6438 * src/bison.s1: New file.
6439
6440 1993-06-03 Richard Stallman <rms@gnu.org>
6441
6442 * doc/bison.texinfo: *** empty log message ***
6443
6444 1993-06-03 Richard Stallman <rms@gnu.org>
6445
6446 * bison.simple: New file.
6447
6448 1993-05-19 Richard Stallman <rms@gnu.org>
6449
6450 * doc/bison.texinfo: New file.
6451
6452 1993-05-07 Noah Friedman <friedman@gnu.org>
6453
6454 * Makefile.in: *** empty log message ***
6455
6456 1993-04-28 Noah Friedman <friedman@gnu.org>
6457
6458 * src/reader.c: *** empty log message ***
6459
6460 1993-04-23 Noah Friedman <friedman@gnu.org>
6461
6462 * src/alloc.h: entered into RCS
6463
6464 1993-04-20 David J. MacKenzie <djm@gnu.org>
6465
6466 * src/version.c: *** empty log message ***
6467
6468 * src/files.c, src/allocate.c:
6469 entered into RCS
6470
6471 * src/reader.c: *** empty log message ***
6472
6473 * src/lex.c: entered into RCS
6474
6475 * src/conflicts.c: New file.
6476
6477 * src/symtab.c: entered into RCS
6478
6479 * src/alloc.h: New file.
6480
6481 * src/LR0.c: entered into RCS
6482
6483 1993-04-18 Noah Friedman <friedman@gnu.org>
6484
6485 * src/reader.c: New file.
6486
6487 * src/version.c: *** empty log message ***
6488
6489 1993-04-18 Noah Friedman <friedman@gnu.org>
6490
6491 * Makefile.in: *** empty log message ***
6492
6493 1993-04-17 Noah Friedman <friedman@gnu.org>
6494
6495 * Makefile.in: *** empty log message ***
6496
6497 1993-04-15 Richard Stallman <rms@gnu.org>
6498
6499 * src/main.c, src/files.c:
6500 New file.
6501
6502 1993-04-15 Noah Friedman <friedman@gnu.org>
6503
6504 * configure.in: entered into RCS
6505
6506 * configure.in: *** empty log message ***
6507
6508 * configure.in: New file.
6509
6510 1993-04-14 Richard Stallman <rms@gnu.org>
6511
6512 * Makefile.in: New file.
6513
6514 1993-04-13 Richard Stallman <rms@gnu.org>
6515
6516 * src/version.c: New file.
6517
6518 1993-03-25 Richard Stallman <rms@gnu.org>
6519
6520 * src/output.c: entered into RCS
6521
6522 1992-09-25 Richard Stallman <rms@gnu.org>
6523
6524 * configure.bat: entered into RCS
6525
6526 1992-06-22 Richard Stallman <rms@gnu.org>
6527
6528 * src/vmsgetargs.c: entered into RCS
6529
6530 1992-06-22 Richard Stallman <rms@gnu.org>
6531
6532 * doc/bison.rnh: entered into RCS
6533
6534 1992-04-20 David J. MacKenzie <djm@gnu.org>
6535
6536 * README: entered into RCS
6537
6538 1992-01-22 Richard Stallman <rms@gnu.org>
6539
6540 * src/machine.h: entered into RCS
6541
6542 1991-12-21 Richard Stallman <rms@gnu.org>
6543
6544 * src/lalr.c, src/closure.c:
6545 entered into RCS
6546
6547 1991-12-20 Richard Stallman <rms@gnu.org>
6548
6549 * src/state.h: entered into RCS
6550
6551 1991-12-18 Richard Stallman <rms@gnu.org>
6552
6553 * src/print.c, src/nullable.c, src/derives.c:
6554 entered into RCS
6555
6556 1991-11-03 David J. MacKenzie <djm@gnu.org>
6557
6558 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
6559 entered into RCS
6560
6561 1988-09-09 Richard Stallman <rms@gnu.org>
6562
6563 * src/bison.hairy: entered into RCS
6564
6565 1987-12-16 Richard Stallman <rms@gnu.org>
6566
6567 * REFERENCES: entered into RCS
6568 -----
6569
6570 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
6571
6572 This file is part of GNU Autoconf.
6573
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)
6577 any later version.
6578
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.
6583
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.