]> git.saurik.com Git - bison.git/blame_incremental - ChangeLog
* tests/sets.at (AT_EXTRACT_SETS): New.
[bison.git] / ChangeLog
... / ...
CommitLineData
12002-01-27 Akim Demaille <akim@epita.fr>
2
3 * tests/sets.at (AT_EXTRACT_SETS): New.
4 (Nullable): Use it.
5 (Firsts): New.
6
72002-01-26 Akim Demaille <akim@epita.fr>
8
9 * tests/actions.at, tests/calc.at, tests/headers.at,
10 * tests/torture.at: Adjust to the newest Autotest which no longer
11 forces `.' in the PATH.
12
132002-01-25 Akim Demaille <akim@epita.fr>
14
15 * tests/regression.at (%nonassoc and eof): New.
16 Suggested by Robert Anisko.
17
182002-01-24 Akim Demaille <akim@epita.fr>
19
20 Bison dumps core when trying to complain about broken input files.
21 Reported by Cris van Pelt.
22
23 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
24 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
25 into...
26 (Invalid inputs): Strengthen: exercise parse_percent_token.
27
282002-01-24 Robert Anisko <robert.anisko@epita.fr>
29
30 * src/Makefile.am: Add bison.c++.
31 * src/bison.c++: New skeleton.
32
332002-01-21 Paolo Bonzini <bonzini@gnu.org>
34
35 * po/it.po: New.
36
372002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
38
39 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
40
412002-01-20 Marc Autret <marc@gnu.org>
42
43 * src/files.c (compute_output_file_names): Fix
44
452002-01-20 Marc Autret <marc@gnu.org>
46
47 * tests/output.at: New test.
48 * src/files.c (compute_base_names): Don't map extensions when
49 the YACC flag is set, use defaults.
50 Reported by Evgeny Stambulchik.
51
522002-01-20 Marc Autret <marc@gnu.org>
53
54 * src/system.h: Need to define __attribute__ away for non-GCC
55 compilers as well (i.e. the vendor C compiler).
56 Suggested by Albert Chin-A-Young.
57
582002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
59
60 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
61 canonical definition.
62 * src/system.h: Use the canonical definition for PARAMS (avoids
63 a conflict with the macro from lib/hash.h).
64
652002-01-11 Akim Demaille <akim@epita.fr>
66
67 * configure.in: Use AC_FUNC_STRNLEN.
68 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
69
702002-01-09 Akim Demaille <akim@epita.fr>
71
72 * src/files.c, src/files.h (output_infix): New.
73 (tab_extension): Remove.
74 (compute_base_names): Compute the former, drop the latter.
75 * src/output.c (prepare): Insert the muscles `output-infix', and
76 `output-suffix'.
77 * src/parse-skel.y (string, string.1): New.
78 (section.header): Use it.
79 (section.yacc): Remove.
80 (prefix): Remove too.
81 * src/scan-skel.l: Adjust.
82 * src/bison.simple, src/bison.hairy: Adjust.
83
842002-01-09 Akim Demaille <akim@epita.fr>
85
86 * configure.in (WERROR_CFLAGS): Compute it.
87 * src/Makefile.am (CFLAGS): Pass it.
88 * tests/atlocal.in (CFLAGS): Idem.
89 * src/files.c: Fix a few warnings.
90 (get_extension_index): Remove, unused.
91
922002-01-08 Akim Demaille <akim@epita.fr>
93
94 * src/getargs.c (AS_FILE_NAME): New.
95 (getargs): Use it to convert DOSish file names.
96 * src/files.c (base_name): Rename as full_base_name to avoid
97 clashes with `base_name ()'.
98 (filename_split): New.
99 (compute_base_names): N-th rewrite, using filename_split.
100
1012002-01-08 Akim Demaille <akim@epita.fr>
102
103 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
104 New, stolen from the Fileutils 4.1.
105 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
106 * configure.in: Check for the presence of memrchr, and of its
107 prototype.
108
1092002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
110
111 * lib/hash.h (__P): Added definition for this macro.
112 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
113 BUILT_SOURCES, to ensure they are generated first.
114 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
115 %error-verbose to allow bootstrapping with bison 1.30x.
116
1172002-01-06 Akim Demaille <akim@epita.fr>
118
119 * src/reader.c (parse_braces): Don't fetch the next char, the
120 convention is to fetch on entry.
121 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
122 'switch' without a following semicolon.
123 * tests/regression.at (braces parsing): New.
124
1252002-01-06 Akim Demaille <akim@epita.fr>
126
127 Bison is dead wrong in its RR conflict reports.
128
129 * tests/torture.at (GNU Cim Grammar): New.
130 * src/conflicts.c (count_rr_conflicts): Fix.
131
1322002-01-06 Akim Demaille <akim@epita.fr>
133
134 Creating package.m4 from configure.ac causes too many problems.
135
136 * tests/Makefile.am (package.m4): Create it by hand,
137 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
138
1392002-01-06 Akim Demaille <akim@epita.fr>
140
141 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
142 skeleton.h.
143
1442002-01-04 Paul Eggert <eggert@twinsun.com>
145
146 * doc/bison.texinfo (Debugging):
147 Remove YYSTDERR; it's no longer defined or used.
148 Also, s/cstdio.h/cstdio/.
149
1502002-01-03 Akim Demaille <akim@epita.fr>
151
152 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
153
1542002-01-03 Akim Demaille <akim@epita.fr>
155
156 * src/parse-skel.y (process_skeleton): Don't bind the parser's
157 tracing code to --trace, wait for a better --trace option, with
158 args.
159
1602002-01-03 Akim Demaille <akim@epita.fr>
161
162 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
163 The ISO C++ standard is extremely clear about it: stderr is
164 considered a macro, not a regular symbol (see table 94 `Header
165 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
166 Therefore std:: does not apply to it. It still does with fprintf.
167 Also, s/cstdio.h/cstdio/.
168
1692002-01-03 Akim Demaille <akim@epita.fr>
170
171 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
172 for non system headers.
173
1742002-01-02 Akim Demaille <akim@epita.fr>
175
176 Equip the skeleton chain with location tracking, runtime trace,
177 pure parser and scanner.
178
179 * src/parse-skel.y: Request a pure parser, locations, and prefix
180 renaming.
181 (%union): Having several members with the same type does not help
182 type mismatches, simplify.
183 (YYPRINT, yyprint): New.
184 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
185 (skel_error): this.
186 Handle locations.
187 * src/scan-skel.l: Adjust to these changes.
188 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
189 (LOCATION_PRINT, skel_control_t): New.
190
1912001-12-30 Akim Demaille <akim@epita.fr>
192
193 * src/parse-skel.y: Get rid of the shift/reduce conflict:
194 replace `gb' with BLANKS.
195 * src/scan-skel.l: Adjust.
196
1972001-12-30 Akim Demaille <akim@epita.fr>
198
199 * src/system.h: We don't need nor want bcopy.
200 Throw away MS-DOS crap: we don't need getpid.
201 * configure.in: We don't need strndup. It was even causing
202 problems: because Flex includes the headers *before* us,
203 _GNU_SOURCE is not defined by config.h, and therefore strndup was
204 not visible.
205 * lib/xstrndup.c: New.
206 * src/scan-skel.l: Use it.
207 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
208 * src/parse-skel.y: Use %directives instead of #defines.
209
2102001-12-30 Akim Demaille <akim@epita.fr>
211
212 * src/skeleton.h: New.
213 * src/output.c (output_parser, output_master_parser): Remove, dead
214 code.
215 * src/output.h (get_lines_number, actions_output, guards_output)
216 (token_definitions_output): Prototype them.
217 * src/parse-skel.y: Add the license notice.
218 Include output.h and skeleton.h.
219 (process_skeleton): Returns void, and takes a single parameter.
220 * src/scan-skel.l: Add the license notice.
221 Include skeleton.h.
222 Don't use %option yylineno: it seems that then Flex imagines
223 REJECT has been used, and therefore it won't reallocate its
224 buffers (which makes no other sense to me than a bug). It results
225 in warnings for `unused: yy_flex_realloc'.
226
2272001-12-30 Robert Anisko <robert.anisko@epita.fr>
228
229 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
230 (MUSCLE_INSERT_PREFIX): ...to there.
231 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
232 (MUSCLE_INSERT_PREFIX): Move from here...
233
234 * src/bison.hairy: Add a section directive. Put braces around muscle
235 names. This parser skeleton is still broken, but Bison should not
236 choke on a bad muscle 'syntax'.
237 * src/bison.simple: Add a section directive. Put braces around muscle
238 names.
239
240 * src/files.h (strsuffix, stringappend): Add declarations.
241 (tab_extension): Add declaration.
242 (short_base_name): Add declaration.
243
244 * src/files.c (strsuffix, stringappend): No longer static. These
245 functions are used in the skeleton parser.
246 (tab_extension): New.
247 (compute_base_names): Use the computations done in this function
248 to guess if the generated parsers should have '.tab' in their
249 names.
250 (short_base_name): No longer static.
251
252 * src/output.c (output_skeleton): New.
253 (output): Disable call to output_master_parser, and give a try to
254 a new skeleton handling system.
255 (guards_output, actions_output): No longer static.
256 (token_definitions_output, get_lines_number): No longer static.
257
258 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
259
260 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
261 parse-skel.y.
262
263 * src/parse-skel.y: New file.
264 * src/scan-skel.l: New file.
265
2662001-12-29 Akim Demaille <akim@epita.fr>
267
268 %name-prefix is broken.
269
270 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
271 Adjust all dependencies.
272 * tests/headers.at (export YYLTYPE): Strengthen this test: use
273 %name-prefix.
274
275 Renaming yylval but not yylloc is not consistent. Now we do.
276
277 * src/bison.simple: Prefix yylloc if used.
278 * doc/bison.texinfo (Decl Summary): Document that.
279
2802001-12-29 Akim Demaille <akim@epita.fr>
281
282 * doc/bison.texinfo: Promote `%long-directive' over
283 `%long_directive'.
284 Remove all references to fixed-output-files, yacc is enough.
285
2862001-12-29 Akim Demaille <akim@epita.fr>
287
288 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
289 user prologue. These are defaults.
290 * tests/actions.at (Mid-rule actions): Make sure the user can
291 define YYDEBUG and YYERROR_VERBOSE.
292
2932001-12-29 Akim Demaille <akim@epita.fr>
294
295 * src/output.c (header_output): Don't forget to export YYLTYPE and
296 yylloc.
297 * tests/headers.at (export YYLTYPE): New, make sure it does.
298 * tests/regression.at (%union and --defines, Invalid CPP headers):
299 Move to...
300 * tests/headers.at: here.
301
3022001-12-29 Akim Demaille <akim@epita.fr>
303
304 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
305
3062001-12-29 Akim Demaille <akim@epita.fr>
307
308 * tests/actions.at (Mid-rule actions): Output on a single line
309 instead of several.
310
3112001-12-29 Akim Demaille <akim@epita.fr>
312
313 * doc/bison.texinfo: Formatting changes.
314
3152001-12-29 Akim Demaille <akim@epita.fr>
316
317 Don't store the token defs in a muscle, just be ready to output it
318 on command. Now possible via `symbols'. Fixes a memory leak.
319
320 * src/output.c (token_definitions_output): New.
321 (output_parser, header_output): Use it.
322 * src/reader.c (symbols_save): Remove.
323
3242001-12-29 Akim Demaille <akim@epita.fr>
325
326 * src/bison.simple: Do not provide a default for YYSTYPE and
327 YYLTYPE before the user's prologue. Otherwise it's hardly... a
328 default.
329
3302001-12-29 Akim Demaille <akim@epita.fr>
331
332 Mid-rule actions are simply... ignored!
333
334 * src/reader.c (readgram): Be sure to attach mid-rule actions to
335 the empty-rule associated to the dummy symbol, not to the host
336 rule.
337 * tests/actions.at (Mid-rule actions): New.
338
3392001-12-29 Akim Demaille <akim@epita.fr>
340
341 Memory leak.
342
343 * src/reader.c (reader): Free grammar.
344
3452001-12-29 Akim Demaille <akim@epita.fr>
346
347 Memory leak.
348
349 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
350 since it allocates it for each state, although only one is needed.
351 (allocate_storage): Do it here.
352
3532001-12-29 Akim Demaille <akim@epita.fr>
354
355 * src/options.h, src/options.c (create_long_option_table): Rename
356 as...
357 (long_option_table_new): this, with a clearer prototype.
358 (percent_table): Remove, unused,
359 * src/getargs.c (getargs): Adjust.
360
3612001-12-29 Akim Demaille <akim@epita.fr>
362
363 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
364 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
365 as states.
366
3672001-12-29 Akim Demaille <akim@epita.fr>
368
369 * src/lalr.c (build_relations): Rename `states' as `states1'.
370 Sorry, I don't understand exactly what it is, no better name...
371
3722001-12-29 Akim Demaille <akim@epita.fr>
373
374 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
375 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
376 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
377 as rules.
378
3792001-12-29 Akim Demaille <akim@epita.fr>
380
381 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
382 ago.
383
3842001-12-29 Akim Demaille <akim@epita.fr>
385
386 * src/reader.c, src/reader.h (user_toknums): Remove.
387 Adjust all users to use symbols[i]->user_token_number.
388
3892001-12-29 Akim Demaille <akim@epita.fr>
390
391 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
392 Adjust all users to use symbols[i]->prec or ->assoc.
393
3942001-12-29 Akim Demaille <akim@epita.fr>
395
396 * src/reader.c, src/reader.h (tags): Remove.
397 Adjust all users to use symbols[i]->tag.
398
3992001-12-29 Akim Demaille <akim@epita.fr>
400
401 * src/gram.h, src/gram.c (symbols): New, similar to state_table
402 and rule_table.
403 * src/reader.c (packsymbols): Fill this table.
404 Drop sprec.
405 * src/conflicts.c (resolve_sr_conflict): Adjust.
406 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
407 single table.
408 Use symbols[i]->tag instead of tags[i].
409
4102001-12-29 Akim Demaille <akim@epita.fr>
411
412 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
413 In addition, put a comment in there, to replace...
414 * tests/regression.at (%union and C comments): Remove.
415
4162001-12-29 Akim Demaille <akim@epita.fr>
417
418 * tests/regression.at (Web2c Actions): Blindly move the actual
419 output as expected output. The contents *seem* right to me, but I
420 can't pretend reading perfectly parser tables... Nonetheless, all
421 the other tests pass correctly, the table look OK, even though the
422 presence of `$axiom' is to be noted: AFAICS it is useless (but
423 harmless).
424
4252001-12-29 Akim Demaille <akim@epita.fr>
426
427 * src/reader.c (readgram): Don't add the rule 0 if there were no
428 rules read. In other words, add it _after_ having performed
429 grammar sanity checks.
430 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
431
4322001-12-29 Akim Demaille <akim@epita.fr>
433
434 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
435 visible, and some states have now a different number.
436
4372001-12-29 Akim Demaille <akim@epita.fr>
438
439 * src/reader.c (readgram): Bind the initial rule's lineno to that
440 of the first rule.
441 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
442 (Solved SR Conflicts): Adjust rule 0's line number.
443
4442001-12-29 Akim Demaille <akim@epita.fr>
445
446 Fix the `GAWK Grammar' failure.
447
448 * src/LR0.c (final_state): Initialize to -1 so that we do compute
449 the reductions of the first state which was mistakenly confused
450 with the final state because precisely final_state was initialized
451 to 0.
452 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
453 now noticed by Bison.
454 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
455 have a reduction on $default.
456
4572001-12-29 Akim Demaille <akim@epita.fr>
458
459 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
460 rule line numbers.
461 * src/closure.c (print_closure): Likewise.
462 * src/derives.c (print_derives): Likewise.
463 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
464 now.
465
4662001-12-29 Akim Demaille <akim@epita.fr>
467
468 * src/lalr.c (lookaheads_print): New.
469 (lalr): Call it when --trace-flag.
470 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
471 are dumped.
472
4732001-12-29 Akim Demaille <akim@epita.fr>
474
475 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
476 when walking through ritem, even via rule->rhs.
477 * src/reduce.c (dump_grammar, useful_production, reduce_output)
478 (useful_production, useless_nonterminals): Likewise.
479 (reduce_grammar_tables): Likewise, plus update nritems.
480 * src/nullable.c (set_nullable): Likewise.
481 * src/lalr.c (build_relations): Likewise.
482 * tests/sets.at (Nullable): Adjust.
483 Fortunately, now, the $axiom is no longer nullable.
484
4852001-12-29 Akim Demaille <akim@epita.fr>
486
487 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
488 the 0-sentinel.
489 * src/gram.c (ritem_longest_rhs): Likewise.
490 * src/reduce.c (nonterminals_reduce): Likewise.
491 * src/print_graph.c (print_graph): Likewise.
492 * src/output.c (output_rule_data): Likewise.
493 * src/nullable.c (set_nullable): Likewise.
494
4952001-12-29 Akim Demaille <akim@epita.fr>
496
497 * src/output.c: Comment changes.
498
4992001-12-27 Paul Eggert <eggert@twinsun.com>
500
501 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
502 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
503 Sparc, as they were causing more porting problems than the
504 (minor) performance improvement was worth.
505
506 Also, catch up with 1.31's YYSTD.
507
5082001-12-27 Akim Demaille <akim@epita.fr>
509
510 * src/output.c (output_gram): Rely on nritems, not the
511 0-sentinel. See below.
512 Use -1 as separator, not 0.
513 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
514 Rely on -1 as separator in yyrhs, instead of 0.
515 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
516 twice `Now at end of input', therefore there are two lines less to
517 expect.
518
5192001-12-27 Akim Demaille <akim@epita.fr>
520
521 * tests/regression.at (Unresolved SR Conflicts):
522 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
523 below.
524
5252001-12-27 Akim Demaille <akim@epita.fr>
526
527 * src/LR0.c (new_state): Recognize the final state by the fact it
528 is reached by eoftoken.
529 (insert_start_shifting_state, insert_eof_shifting_state)
530 (insert_accepting_state, augment_automaton): Remove, since now
531 these states are automatically computed from the initial state.
532 (generate_states): Adjust.
533 * src/print.c: When reporting a rule number to the user, substract
534 1, so that the axiom rule is rule 0, and the first user rule is 1.
535 * src/reduce.c: Likewise.
536 * src/print_graph.c (print_core): For the time being, just as for
537 the report, depend upon --trace-flags to dump the full set of
538 items.
539 * src/reader.c (readgram): Once the grammar read, insert the rule
540 0: `$axiom: START-SYMBOL $'.
541 * tests/set.at: Adjust: rule 0 is now displayed, and since the
542 number of the states has changed (the final state is no longer
543 necessarily the last), catch up.
544
5452001-12-27 Akim Demaille <akim@epita.fr>
546
547 Try to make the use of the eoftoken valid. Given that its value
548 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
549 is used instead of > 0 where appropriate, (ii), depend upon nritems
550 instead of the 0-sentinel.
551
552 * src/gram.h, src/gram.c (nritems): New.
553 Expected to be duplication of nitems, but for the time being...
554 * src/reader.c (packgram): Assert nritems and nitems are equal.
555 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
556 * src/closure.c (print_closure, print_fderives): Likewise.
557 * src/gram.c (ritem_print): Likewise.
558 * src/print.c (print_core, print_grammar): Likewise.
559 * src/print_graph.c: Likewise.
560
5612001-12-27 Akim Demaille <akim@epita.fr>
562
563 * src/main.c (main): If there are complains after grammar
564 reductions, then output the report anyway if requested, then die.
565 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
566 * src/reader.c (eoftoken): New.
567 (parse_token_decl): If the token being defined has value `0', it
568 is the eoftoken.
569 (packsymbols): No longer hack `tags' to insert `$' by hand.
570 Be sure to preserve the value of the eoftoken.
571 (reader): Make sure eoftoken is defined.
572 Initialize nsyms to 0: now eoftoken is created just like the others.
573 * src/print.c (print_grammar): Don't special case the eof token.
574 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
575 lie anyway, albeit pleasant.
576 * tests/calc.at: Exercise error messages with eoftoken.
577 Change the grammar so that empty input is invalid.
578 Adjust expectations.
579 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
580
5812001-12-27 Akim Demaille <akim@epita.fr>
582
583 * configure.in: Check the protos of strchr ans strspn.
584 Replace strchr if needed.
585 * src/system.h: Provide the protos of strchr, strspn and memchr if
586 missing.
587 * lib/strchr.c: New.
588 * src/reader.c (symbols_save): Use strchr.
589
5902001-12-27 Akim Demaille <akim@epita.fr>
591
592 * src/print.c, src/print_graph.c (escape): New.
593 Use it to quote the TAGS outputs.
594 * src/print_graph.c (print_state): Now errors are in red, and
595 reductions in green.
596 Prefer high to wide: output the state number on a line of its own.
597
5982001-12-27 Akim Demaille <akim@epita.fr>
599
600 * src/state.h, src/state.c (reductions_new): New.
601 * src/LR0.c (set_state_table): Let all the states have a
602 `reductions', even if reduced to 0.
603 (save_reductions): Adjust.
604 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
605 * src/print.c (print_reductions, print_actions): Adjust.
606 * src/output.c (action_row): Adjust.
607
6082001-12-27 Akim Demaille <akim@epita.fr>
609
610 * src/state.h, src/state.c (errs_new, errs_dup): New.
611 * src/LR0.c (set_state_table): Let all the states have an errs,
612 even if reduced to 0.
613 * src/print.c (print_errs, print_reductions): Adjust.
614 * src/output.c (output_actions, action_row): Adjust.
615 * src/conflicts.c (resolve_sr_conflict): Adjust.
616
6172001-12-27 Akim Demaille <akim@epita.fr>
618
619 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
620
6212001-12-27 Akim Demaille <akim@epita.fr>
622
623 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
624 * src/print.c: here.
625 (lookaheadset, shiftset): New, used as additional storage by
626 print_reductions.
627 (print_results): Adjust.
628 (print_shifts, print_gotos, print_errs): New, extracted from...
629 (print_actions): here.
630 * src/print_graph.c (print_actions): Remove dead code.
631
6322001-12-27 Akim Demaille <akim@epita.fr>
633
634 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
635 `$n' and `@n'.
636
6372001-12-27 Akim Demaille <akim@epita.fr>
638
639 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
640 (build_relations): Adjust.
641
6422001-12-27 Akim Demaille <akim@epita.fr>
643
644 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
645 duplication.
646
6472001-12-27 Akim Demaille <akim@epita.fr>
648
649 * src/reader.c (packgram): Catch nitems overflows.
650
6512001-12-27 Akim Demaille <akim@epita.fr>
652
653 * src/files.c, src/files.h (guard_obstack): Remove.
654 * src/output.c (output): Adjust.
655 * src/reader.c (parse_braces): New, factoring...
656 (copy_action, copy_guard): these two which are renamed as...
657 (parse_action, parse_guard): these.
658 As a voluntary consequence, using braces around guards is now
659 mandatory.
660
6612001-12-27 Akim Demaille <akim@epita.fr>
662
663 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
664 * src/reader.c (symbol_list): `guard' and `guard_line' are new
665 members.
666 (symbol_list_new): Adjust.
667 (copy_action): action_line is the first line, not the last.
668 (copy_guard): Just as for actions, store the `action' only, not
669 the switch/case/break flesh.
670 Don't parse the user action that might follow the guard, let...
671 (readgram): do it, i.e., now, there can be an action after a
672 guard.
673 In other words the guard is just explicitly optional.
674 (packgram): Adjust.
675 * src/output.c (guards_output): New.
676 (output_parser): Call it when needed.
677 (output): Also free the guard and attrs obstacks.
678 * src/files.c, src/files.h (obstack_save): Remove.
679 (output_files): Remove.
680 As a result, if one needs the former `.act' file, using an
681 appropriate skeleton which requires actions and guards is now
682 required.
683 * src/main.c (main): Adjust.
684 * tests/semantic.at: New.
685 * tests/regression.at: Use `input.y' as input file name.
686 Avoid 8+3 problems by requiring input.c when the test needs the
687 parser.
688
6892001-12-27 Akim Demaille <akim@epita.fr>
690
691 * src/reader.c (symbol_list_new): Be sure to initialize all the
692 fields.
693
6942001-12-27 Akim Demaille <akim@epita.fr>
695
696 All the hacks using a final pseudo state are now useless.
697
698 * src/LR0.c (set_state_table): state_table holds exactly nstates.
699 * src/lalr.c (nLA): New.
700 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
701 instead of lookaheadsp from the pseudo state (nstate + 1).
702
7032001-12-27 Akim Demaille <akim@epita.fr>
704
705 * src/output.c (action_row, token_actions): Use a state_t instead
706 of a integer, and nlookaheads instead of the following state's
707 lookaheadsp.
708
7092001-12-27 Akim Demaille <akim@epita.fr>
710
711 * src/conflicts.c (log_resolution, flush_shift)
712 (resolve_sr_conflict, set_conflicts, solve_conflicts)
713 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
714 (conflicts_print, print_reductions): Use a state_t instead of an
715 integer when referring to a state.
716 As much as possible, depend upon nlookaheads, instead of the
717 `lookaheadsp' member of the following state (since lookaheads of
718 successive states are successive, the difference between state n + 1
719 and n served as the number of lookaheads for state n).
720 * src/lalr.c (add_lookback_edge): Likewise.
721 * src/print.c (print_core, print_actions, print_state)
722 (print_results): Likewise.
723 * src/print_graph.c (print_core, print_actions, print_state)
724 (print_graph): Likewise.
725 * src/conflicts.h: Adjust.
726
7272001-12-27 Akim Demaille <akim@epita.fr>
728
729 * src/bison.hairy: Formatting/comment changes.
730 ANSIfy.
731 Remove `register' indications.
732 Add plenty of `static'.
733
7342001-12-27 Akim Demaille <akim@epita.fr>
735
736 * src/output.c (prepare): Drop the muscle `ntbase' which
737 duplicates ntokens.
738 * src/bison.simple: Formatting/comment changes.
739 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
740 is an undocumented synonym.
741
7422001-12-22 Akim Demaille <akim@epita.fr>
743
744 * src/output.c (output_table_data): Change the prototype to use
745 `int' for array ranges: some invocations do pass an int, not a
746 short.
747 Reported by Wayne Green.
748
7492001-12-22 Akim Demaille <akim@epita.fr>
750
751 Some actions of web2c.y are improperly triggered.
752 Reported by Mike Castle.
753
754 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
755 * tests/regression.at (Web2c): Rename as...
756 (Web2c Report): this.
757 (Web2c Actions): New.
758
7592001-12-22 Akim Demaille <akim@epita.fr>
760
761 Reductions in web2c.y are improperly reported.
762 Reported by Mike Castle.
763
764 * src/conflicts.c (print_reductions): Fix.
765 * tests/regression.at (Web2c): New.
766
7672001-12-18 Akim Demaille <akim@epita.fr>
768
769 Some host fail on `assert (!"foo")', which expands to
770 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
771 Reported by Nelson Beebee.
772
773 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
774 `#define it_succeeded 0' and `assert (it_succeeded)'.
775
7762001-12-17 Marc Autret <autret_m@epita.fr>
777
778 * src/bison.simple: Don't hard code the skeleton line and filename.
779 * src/output.c (output_parser): Rename 'line' as 'output_line'.
780 New line counter 'skeleton_line' (skeleton-line muscle).
781
7822001-12-17 Paul Eggert <eggert@twinsun.com>
783
784 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
785 YYDEBUG must be defined to a nonzero value.
786
787 * src/bison.simple (yytname): Do not assume that the user defines
788 YYDEBUG to a properly parenthesized expression.
789
7902001-12-17 Akim Demaille <akim@epita.fr>
791
792 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
793 nlookaheads is a new member.
794 Adjust all users.
795 * src/lalr.h (nlookaheads): Remove this orphan declaration.
796 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
797 state.
798
7992001-12-17 Akim Demaille <akim@epita.fr>
800
801 * src/files.h, src/files.c (open_files, close_files): Remove.
802 * src/main.c (main): Don't open/close files, nor invoke lex_free,
803 let...
804 * src/reader.c (reader): Do it.
805
8062001-12-17 Akim Demaille <akim@epita.fr>
807
808 * src/conflicts.c (print_reductions): Formatting changes.
809
8102001-12-17 Akim Demaille <akim@epita.fr>
811
812 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
813 (flush_reduce): New.
814 (resolve_sr_conflict): Adjust.
815
8162001-12-17 Akim Demaille <akim@epita.fr>
817
818 * src/output.c (output_obstack): Be static and rename as...
819 (format_obstack): this, to avoid any confusion with files.c's
820 output_obstack.
821 * src/reader.h (muscle_obstack): Move to...
822 * src/output.h: here, since it's defined in output.c.
823
8242001-12-17 Akim Demaille <akim@epita.fr>
825
826 * src/output.c (action_row, save_column, default_goto)
827 (sort_actions, matching_state, pack_vector): Better variable
828 locality.
829
8302001-12-17 Akim Demaille <akim@epita.fr>
831
832 * src/output.c: Various formatting changes.
833
8342001-12-17 Akim Demaille <akim@epita.fr>
835
836 * src/files.c (output_files): Free the output_obstack.
837 * src/main.c (main): Call print and print_graph conditionally.
838 * src/print.c (print): Work unconditionally.
839 * src/print_graph.c (print_graph): Work unconditionally.
840 * src/conflicts.c (log_resolution): Output only if verbose_flag.
841
8422001-12-16 Marc Autret <autret_m@epita.fr>
843
844 * src/output.c (actions_output): Fix. When we use %no-lines,
845 there is one less line per action.
846
8472001-12-16 Marc Autret <autret_m@epita.fr>
848
849 * src/bison.simple: Remove a useless #line directive.
850 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
851 * src/output.c (get_lines_number): New.
852 (output_parser): Adjust, now takes care about the lines of a
853 output muscles.
854 Fix line numbering.
855 (actions_output): Computes the number of lines taken by actions.
856 (output_master_parser): Insert new skeleton which is the name of
857 the output parser file name.
858
8592001-12-15 Marc Autret <autret_m@epita.fr>
860
861 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
862
8632001-12-15 Marc Autret <autret_m@epita.fr>
864
865 * src/output.c (output_gram): Keep track of the hairy one.
866
8672001-12-15 Akim Demaille <akim@epita.fr>
868
869 Make `make distcheck' work.
870
871 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
872 system.h which uses libgettext.h.
873
8742001-12-15 Akim Demaille <akim@epita.fr>
875
876 * src/nullable.c (set_nullable): Useless rules must be skipped,
877 otherwise, since we range over their symbols, we might look at a
878 nonterminal which no longer ``exists'', i.e., it is not counted in
879 `nvars', hence we overflow our arrays.
880
8812001-12-15 Akim Demaille <akim@epita.fr>
882
883 The header can also be produced directly, without any obstack!
884 Yahoo!
885
886 * src/files.c, src/files.h (defines_obstack): Remove.
887 (compute_header_macro): Global.
888 (defines_obstack_save): Remove.
889 * src/reader.c (parse_union_decl): No longer output to
890 defines_obstack: its content can be found in the `stype' muscle
891 anyway.
892 (output_token_translations): Merge into...
893 (symbols_output): this.
894 Rename as...
895 (symbols_save): this.
896 (reader): Adjust.
897 * src/output.c (header_output): New.
898 (output): Call it.
899
9002001-12-15 Akim Demaille <akim@epita.fr>
901
902 * src/reader.c (parse_union_decl): Instead of handling two obstack
903 simultaneously, use one to define the `stype' muscle, and use the
904 value of the latter to fill defines_obstack.
905 (copy_comment): Remove.
906 (copy_comment2): Work for a single obstack.
907 Rename as...
908 (copy_comment): this.
909
9102001-12-15 Akim Demaille <akim@epita.fr>
911
912 * src/lex.c, src/lex.h (xgetc): No longer static.
913 * src/reader.c (parse_union_decl): Revamp.
914
9152001-12-15 Akim Demaille <akim@epita.fr>
916
917 Still making progress in separating Bison into (i) input, (ii)
918 process, (iii) output: now we can directly output the parser file
919 without using table_obstack at all.
920
921 * src/files.c, src/files.h (table_obstack): Bye bye.
922 (parser_file_name): New.
923 * src/files.c (compute_output_file_names): Compute it.
924 * src/output.c (actions_output, output_parser)
925 (output_master_parser): To a file instead of an obstack.
926
9272001-12-15 Akim Demaille <akim@epita.fr>
928
929 Attach actions to rules, instead of pre-outputting them to
930 actions_obstack.
931
932 * src/gram.h (rule_t): action and action_line are new members.
933 * src/reader.c (symbol_list): Likewise.
934 (copy_action): Save the actions within the rule.
935 (packgram): Save them in rule_table.
936 * src/output.c (actions_output): New.
937 (output_parser): Use it on `%%actions'.
938 (output_rule_data): Don't free rule_table.
939 (output): Do it.
940 (prepare): Don't save the `action' muscle.
941 * src/bison.simple: s/%%action/%%actions/.
942
9432001-12-15 Akim Demaille <akim@epita.fr>
944
945 * src/reader.c (copy_action): When --yacc, don't append a `;'
946 to the user action: let it fail if lacking.
947 Suggested by Arnold Robbins and Tom Tromey.
948
9492001-12-14 Akim Demaille <akim@epita.fr>
950
951 * src/lex.c (literalchar): Simply return the char you decoded, non
952 longer mess around with obstacks and int pointers.
953 Adjust all callers.
954
9552001-12-14 Akim Demaille <akim@epita.fr>
956
957 * src/lex.c (literalchar): Don't escape the special characters,
958 just decode them, and keep them as char (before, eol was output as
959 the 2 char string `\n' etc.).
960 * src/output.c (output_rule_data): Use quotearg to output the
961 token strings.
962
9632001-12-13 Paul Eggert <eggert@twinsun.com>
964
965 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
966 Do not infringe on the global user namespace when using C++.
967 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
968 All uses of `fprintf' and `stderr' changed.
969
970 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
971
9722001-12-13 Akim Demaille <akim@epita.fr>
973
974 The computation of nullable is broken: it doesn't handle empty
975 RHS's properly.
976
977 * tests/torture.at (GNU AWK Grammar): New.
978 * tests/sets.at (Nullable): New.
979 * src/nullable.c (set_nullable): Instead of blindly looping over
980 `ritems', loop over the rules, and then over their rhs's.
981
982 Work around Autotest bugs.
983
984 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
985 frame, because Autotest understand lines starting with a `+' as
986 traces from the shell. Then, they are not processed properly.
987 Admittedly an Autotest bug, but we don't have time to wait for
988 Autotest to catch up.
989 * tests/regression.at (Broken Closure): Adjust to the new table
990 frames.
991 Move to...
992 * tests/sets.at: here.
993
9942001-12-13 Akim Demaille <akim@epita.fr>
995
996 * src/closure.c (closure): Use nrules instead of playing tricks
997 with BITS_PER_WORD.
998
9992001-12-13 Akim Demaille <akim@epita.fr>
1000
1001 * src/print.c (print_actions): Output the handling of `$' as the
1002 traces do: shifting the token EOF. Before EOF was treated as a
1003 nonterminal.
1004 * tests/regression.at: Adjust some tests.
1005 * src/print_graph.c (print_core): Complete the set of items via
1006 closure. The next-to-final and final states are still unsatisfying,
1007 but that's to be addressed elsewhere.
1008 No longer output the rule numbers, but do output the state number.
1009 A single loop for the shifts + gotos is enough, but picked a
1010 distinct color for each.
1011 (print_graph): Initialize and finalize closure.
1012
10132001-12-13 Akim Demaille <akim@epita.fr>
1014
1015 * src/reader.c (readgram): Remove dead code, an strip useless
1016 braces.
1017 (get_type): Remove, unused.
1018
10192001-12-12 Akim Demaille <akim@epita.fr>
1020
1021 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
1022 on that of lib/error.c.
1023
10242001-12-12 Akim Demaille <akim@epita.fr>
1025
1026 Some hosts don't like `/' in includes.
1027
1028 * src/system.h: Include libgettext.h without qualifying the path.
1029 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
1030 $(top_srcdir).
1031
10322001-12-11 Marc Autret <autret_m@epita.fr>
1033
1034 * src/output.c (output_parser): Remove useless muscle.
1035
10362001-12-11 Marc Autret <autret_m@epita.fr>
1037
1038 * src/bison.simple: Remove #line just before %%epilogue. It
1039 is now handled in ...
1040 * src/reader.c (read_additionnal_code): Add the output of a
1041 #line for the epilogue.
1042
10432001-12-10 Marc Autret <autret_m@epita.fr>
1044
1045 * src/reader.c (copy_definition): Re-use CPP-outed code which
1046 replace precedent remove.
1047 * src/bison.simple: Remove #line before %%prologue because
1048 %%input-line is wrong at this time.
1049
10502001-12-10 Marc Autret <autret_m@epita.fr>
1051
1052 * src/reader.c (symbols_output): Clean up.
1053 * src/output.c (output_gram, output): Clean up.
1054
10552001-12-10 Akim Demaille <akim@epita.fr>
1056
1057 * src/lalr.c (initialize_lookaheads): New. Extracted from...
1058 * src/LR0.c (set_state_table): here.
1059 * src/lalr.c (lalr): Call it.
1060
10612001-12-10 Akim Demaille <akim@epita.fr>
1062
1063 * src/state.h (shifts): Remove the `number' member: shifts are
1064 attached to state, hence no longer need to be labelled with a
1065 state number.
1066
10672001-12-10 Akim Demaille <akim@epita.fr>
1068
1069 Now that states have a complete set of members, the linked list of
1070 shifts is useless: just fill directly the state's shifts member.
1071
1072 * src/state.h (shifts): Remove the `next' member.
1073 * src/LR0.c (first_state, last_state): Remove.
1074 Adjust the callers.
1075 (augment_automaton): Don't look for the shifts that must be added
1076 a shift on EOF: it is those of the state we looked for! But now,
1077 since shifts are attached, it is no longer needed to looking
1078 merely by its id: its number.
1079
10802001-12-10 Akim Demaille <akim@epita.fr>
1081
1082 * src/LR0.c (augment_automaton): Better variable locality.
1083 Remove an impossible branch: if there is a state corresponding to
1084 the start symbol being shifted, then there is shift for the start
1085 symbol from the initial state.
1086
10872001-12-10 Akim Demaille <akim@epita.fr>
1088
1089 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
1090 only when appropriate: when insert_start_shifting_state' is not
1091 invoked.
1092 * tests/regression.at (Rule Line Numbers): Adjust.
1093
10942001-12-10 Akim Demaille <akim@epita.fr>
1095
1096 * src/LR0.c (augment_automaton): Now that all states have shifts,
1097 merge the two cases addition shifts to the initial state.
1098
10992001-12-10 Akim Demaille <akim@epita.fr>
1100
1101 * src/lalr.c (set_state_table): Move to...
1102 * src/LR0.c: here.
1103 * src/lalr.c (lalr): Don't call it...
1104 * src/LR0.c (generate_states): do it.
1105 * src/LR0.h (first_state): Remove, only the table is used.
1106
11072001-12-10 Akim Demaille <akim@epita.fr>
1108
1109 * src/LR0.h (first_shift, first_reduction): Remove.
1110 * src/lalr.c: Don't use first_shift: find shifts through the
1111 states.
1112
11132001-12-10 Akim Demaille <akim@epita.fr>
1114
1115 * src/LR0.c: Attach shifts to states as soon as they are
1116 computed.
1117 * src/lalr.c (set_state_table): Instead of assigning shifts to
1118 state, just assert that the mapping was properly done.
1119
11202001-12-10 Akim Demaille <akim@epita.fr>
1121
1122 * src/LR0.c (insert_start_shift): Rename as...
1123 (insert_start_shifting_state): this.
1124 (insert_eof_shifting_state, insert_accepting_state): New.
1125 (augment_automaton): Adjust.
1126 Better locality of the variables.
1127 When looking if the start_symbol is shifted from the initial
1128 state, using `while (... symbol != start_symbol ...)' sounds
1129 better than `while (... symbol < start_symbol ...)': If fail
1130 to see how the order between symbols could be relevant!
1131
11322001-12-10 Akim Demaille <akim@epita.fr>
1133
1134 * src/getargs.h: Don't declare `spec_name_prefix' and
1135 `spec_file_prefix', declared by src/files.h.
1136 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
1137 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
1138 * src/output.c (prepare): Adjust.
1139 * src/reader.c (symbols_output): Likewise.
1140 * src/vmsgetargs.c: Vaguely adjust, but who cares?
1141
11422001-12-10 Akim Demaille <akim@epita.fr>
1143
1144 * src/muscle_tab.c (muscle_init): NULL is a better default than
1145 `"0"'.
1146
11472001-12-10 Akim Demaille <akim@epita.fr>
1148
1149 * src/reader.c (reader): Calling symbols_output once is enough.
1150
11512001-12-10 Akim Demaille <akim@epita.fr>
1152
1153 Now that states have a complete set of members, the linked list of
1154 reductions is useless: just fill directly the state's reductions
1155 member.
1156
1157 * src/state.h (struct reductions): Remove member `number' and
1158 `next'.
1159 * src/LR0.c (first_reduction, last_reduction): Remove.
1160 (save_reductions): Don't link the new reductions, store them in
1161 this_state.
1162 * src/lalr.c (set_state_table): No need to attach reductions to
1163 states, it's already done.
1164 * src/output.c (output_actions): No longer free the shifts, then
1165 the reductions, then the states: free all the states and their
1166 members.
1167
11682001-12-10 Akim Demaille <akim@epita.fr>
1169
1170 * src/options.c (OPTN, DRTV, BOTH): New.
1171 (option_table): Use them.
1172
1173 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
1174 the job of system.h.
1175 * src/options.c: Don't include stdio.h and xalloc.h for the same
1176 reasons.
1177
11782001-12-10 Akim Demaille <akim@epita.fr>
1179
1180 * src/output.c (output, prepare): Make sure the values of the
1181 muscles `action' and `prologue' are 0-terminated.
1182
11832001-12-10 Akim Demaille <akim@epita.fr>
1184
1185 Clean up GCC warnings.
1186
1187 * src/reader.c (copy_action): `buf' is not used.
1188 (parse_skel_decl): Be static.
1189 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
1190 * src/options.h (create_long_option_table): Have a real prototype.
1191 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
1192 (hash_delete_at): Return const void *.
1193 Adjust casts to preserve the const.
1194
11952001-12-10 Akim Demaille <akim@epita.fr>
1196
1197 * configure.in: Require 2.52g.
1198 M4 is not needed, but AUTOM4TE is.
1199 * m4/m4.m4: Remove.
1200 * tests/Makefile.am: Adjust.
1201
12022001-12-10 Akim Demaille <akim@epita.fr>
1203
1204 One structure for states is enough, even though theoretically
1205 there are LR(0) states and LALR(1) states.
1206
1207 * src/lalr.h (state_t): Remove.
1208 (state_table): Be state_t **, not state_t *.
1209 * src/state.h (core, CORE_ALLOC): Rename as...
1210 (state_t, STATE_ALLOC): this.
1211 Add the LALR(1) members: shifts, reductions, errs.
1212 * src/LR0.c (state_table): Rename as...
1213 (state_hash): this, to avoid name clashes with the global
1214 `state_table'.
1215 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
1216 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
1217
12182001-12-10 Akim Demaille <akim@epita.fr>
1219
1220 Bison dumps core on bash.y.
1221 Reported by Pascal Bart.
1222
1223 * src/warshall.c (bitmatrix_print): New.
1224 (TC): Use it.
1225 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
1226 j must be the outer loop.
1227 * tests/regression.at (Broken Closure): New.
1228
12292001-12-05 Akim Demaille <akim@epita.fr>
1230
1231 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
1232 its argument.
1233