]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/files.c, src/files.h (output_infix): New.
[bison.git] / ChangeLog
CommitLineData
b85810ae
AD
12002-01-09 Akim Demaille <akim@epita.fr>
2
3 * src/files.c, src/files.h (output_infix): New.
4 (tab_extension): Remove.
5 (compute_base_names): Compute the former, drop the latter.
6 * src/output.c (prepare): Insert the muscles `output-infix', and
7 `output-suffix'.
8 * src/parse-skel.y (string, string.1): New.
9 (section.header): Use it.
10 (section.yacc): Remove.
11 (prefix): Remove too.
12 * src/scan-skel.l: Adjust.
13 * src/bison.simple, src/bison.hairy: Adjust.
14
cae60122
AD
152002-01-09 Akim Demaille <akim@epita.fr>
16
17 * configure.in (WERROR_CFLAGS): Compute it.
18 * src/Makefile.am (CFLAGS): Pass it.
19 * tests/atlocal.in (CFLAGS): Idem.
20 * src/files.c: Fix a few warnings.
21 (get_extension_index): Remove, unused.
22
ae404801
AD
232002-01-08 Akim Demaille <akim@epita.fr>
24
25 * src/getargs.c (AS_FILE_NAME): New.
26 (getargs): Use it to convert DOSish file names.
27 * src/files.c (base_name): Rename as full_base_name to avoid
28 clashes with `base_name ()'.
29 (filename_split): New.
30 (compute_base_names): N-th rewrite, using filename_split.
31
22312b71
AD
322002-01-08 Akim Demaille <akim@epita.fr>
33
34 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
35 New, stolen from the Fileutils 4.1.
36 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
37 * configure.in: Check for the presence of memrchr, and of its
38 prototype.
39
a67cef01
TVH
402002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
41
42 * lib/hash.h (__P): Added definition for this macro.
43 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
44 BUILT_SOURCES, to ensure they are generated first.
45 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
46 %error-verbose to allow bootstrapping with bison 1.30x.
47
2b25d624
AD
482002-01-06 Akim Demaille <akim@epita.fr>
49
50 * src/reader.c (parse_braces): Don't fetch the next char, the
51 convention is to fetch on entry.
52 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
53 'switch' without a following semicolon.
54 * tests/regression.at (braces parsing): New.
55
3460813b
AD
562002-01-06 Akim Demaille <akim@epita.fr>
57
58 Bison is dead wrong in its RR conflict reports.
59
60 * tests/torture.at (GNU Cim Grammar): New.
61 * src/conflicts.c (count_rr_conflicts): Fix.
62
73784c64
AD
632002-01-06 Akim Demaille <akim@epita.fr>
64
65 Creating package.m4 from configure.ac causes too many problems.
66
67 * tests/Makefile.am (package.m4): Create it by hand,
68 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
69
25d81090
AD
702002-01-06 Akim Demaille <akim@epita.fr>
71
72 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
73 skeleton.h.
74
a9b8959e
PE
752002-01-04 Paul Eggert <eggert@twinsun.com>
76
77 * doc/bison.texinfo (Debugging):
78 Remove YYSTDERR; it's no longer defined or used.
79 Also, s/cstdio.h/cstdio/.
80
25d81090
AD
812002-01-03 Akim Demaille <akim@epita.fr>
82
83 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
84
1109455c
AD
852002-01-03 Akim Demaille <akim@epita.fr>
86
87 * src/parse-skel.y (process_skeleton): Don't bind the parser's
88 tracing code to --trace, wait for a better --trace option, with
89 args.
90
7ea5e977
AD
912002-01-03 Akim Demaille <akim@epita.fr>
92
93 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
94 The ISO C++ standard is extremely clear about it: stderr is
95 considered a macro, not a regular symbol (see table 94 `Header
96 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
97 Therefore std:: does not apply to it. It still does with fprintf.
98 Also, s/cstdio.h/cstdio/.
99
fab5b110
AD
1002002-01-03 Akim Demaille <akim@epita.fr>
101
102 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
103 for non system headers.
104
aed7fd9b
AD
1052002-01-02 Akim Demaille <akim@epita.fr>
106
107 Equip the skeleton chain with location tracking, runtime trace,
108 pure parser and scanner.
109
110 * src/parse-skel.y: Request a pure parser, locations, and prefix
111 renaming.
112 (%union): Having several members with the same type does not help
113 type mismatches, simplify.
114 (YYPRINT, yyprint): New.
115 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
116 (skel_error): this.
117 Handle locations.
118 * src/scan-skel.l: Adjust to these changes.
119 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
120 (LOCATION_PRINT, skel_control_t): New.
121
24fad99e
AD
1222001-12-30 Akim Demaille <akim@epita.fr>
123
124 * src/parse-skel.y: Get rid of the shift/reduce conflict:
125 replace `gb' with BLANKS.
126 * src/scan-skel.l: Adjust.
127
a4b36db4
AD
1282001-12-30 Akim Demaille <akim@epita.fr>
129
130 * src/system.h: We don't need nor want bcopy.
131 Throw away MS-DOS crap: we don't need getpid.
132 * configure.in: We don't need strndup. It was even causing
133 problems: because Flex includes the headers *before* us,
134 _GNU_SOURCE is not defined by config.h, and therefore strndup was
135 not visible.
136 * lib/xstrndup.c: New.
137 * src/scan-skel.l: Use it.
138 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
139 * src/parse-skel.y: Use %directives instead of #defines.
140
1239777d
AD
1412001-12-30 Akim Demaille <akim@epita.fr>
142
143 * src/skeleton.h: New.
144 * src/output.c (output_parser, output_master_parser): Remove, dead
145 code.
146 * src/output.h (get_lines_number, actions_output, guards_output)
147 (token_definitions_output): Prototype them.
148 * src/parse-skel.y: Add the license notice.
149 Include output.h and skeleton.h.
150 (process_skeleton): Returns void, and takes a single parameter.
151 * src/scan-skel.l: Add the license notice.
152 Include skeleton.h.
153 Don't use %option yylineno: it seems that then Flex imagines
154 REJECT has been used, and therefore it won't reallocate its
155 buffers (which makes no other sense to me than a bug). It results
156 in warnings for `unused: yy_flex_realloc'.
157
9b3add5b
RA
1582001-12-30 Robert Anisko <robert.anisko@epita.fr>
159
160 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
161 (MUSCLE_INSERT_PREFIX): ...to there.
162 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
163 (MUSCLE_INSERT_PREFIX): Move from here...
164
165 * src/bison.hairy: Add a section directive. Put braces around muscle
166 names. This parser skeleton is still broken, but Bison should not
167 choke on a bad muscle 'syntax'.
168 * src/bison.simple: Add a section directive. Put braces around muscle
169 names.
170
171 * src/files.h (strsuffix, stringappend): Add declarations.
172 (tab_extension): Add declaration.
173 (short_base_name): Add declaration.
174
175 * src/files.c (strsuffix, stringappend): No longer static. These
176 functions are used in the skeleton parser.
177 (tab_extension): New.
178 (compute_base_names): Use the computations done in this function
fab5b110 179 to guess if the generated parsers should have '.tab' in their
9b3add5b
RA
180 names.
181 (short_base_name): No longer static.
182
183 * src/output.c (output_skeleton): New.
184 (output): Disable call to output_master_parser, and give a try to
185 a new skeleton handling system.
186 (guards_output, actions_output): No longer static.
187 (token_definitions_output, get_lines_number): No longer static.
188
189 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
190
fab5b110 191 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
9b3add5b
RA
192 parse-skel.y.
193
194 * src/parse-skel.y: New file.
195 * src/scan-skel.l: New file.
196
b5b61c61
AD
1972001-12-29 Akim Demaille <akim@epita.fr>
198
199 %name-prefix is broken.
200
201 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
202 Adjust all dependencies.
203 * tests/headers.at (export YYLTYPE): Strengthen this test: use
204 %name-prefix.
205
206 Renaming yylval but not yylloc is not consistent. Now we do.
207
208 * src/bison.simple: Prefix yylloc if used.
209 * doc/bison.texinfo (Decl Summary): Document that.
210
8c9a50be
AD
2112001-12-29 Akim Demaille <akim@epita.fr>
212
213 * doc/bison.texinfo: Promote `%long-directive' over
214 `%long_directive'.
215 Remove all references to fixed-output-files, yacc is enough.
216
d99361e6
AD
2172001-12-29 Akim Demaille <akim@epita.fr>
218
219 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
220 user prologue. These are defaults.
221 * tests/actions.at (Mid-rule actions): Make sure the user can
222 define YYDEBUG and YYERROR_VERBOSE.
223
b9cecb91
AD
2242001-12-29 Akim Demaille <akim@epita.fr>
225
226 * src/output.c (header_output): Don't forget to export YYLTYPE and
227 yylloc.
228 * tests/headers.at (export YYLTYPE): New, make sure it does.
229 * tests/regression.at (%union and --defines, Invalid CPP headers):
230 Move to...
231 * tests/headers.at: here.
232
aea13e97
AD
2332001-12-29 Akim Demaille <akim@epita.fr>
234
235 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
236
931394cb
AD
2372001-12-29 Akim Demaille <akim@epita.fr>
238
239 * tests/actions.at (Mid-rule actions): Output on a single line
240 instead of several.
241
704a47c4
AD
2422001-12-29 Akim Demaille <akim@epita.fr>
243
244 * doc/bison.texinfo: Formatting changes.
245
091e20bb
AD
2462001-12-29 Akim Demaille <akim@epita.fr>
247
248 Don't store the token defs in a muscle, just be ready to output it
249 on command. Now possible via `symbols'. Fixes a memory leak.
250
251 * src/output.c (token_definitions_output): New.
252 (output_parser, header_output): Use it.
253 * src/reader.c (symbols_save): Remove.
254
cce71710
AD
2552001-12-29 Akim Demaille <akim@epita.fr>
256
257 * src/bison.simple: Do not provide a default for YYSTYPE and
258 YYLTYPE before the user's prologue. Otherwise it's hardly... a
259 default.
260
82c035a8
AD
2612001-12-29 Akim Demaille <akim@epita.fr>
262
263 Mid-rule actions are simply... ignored!
264
265 * src/reader.c (readgram): Be sure to attach mid-rule actions to
266 the empty-rule associated to the dummy symbol, not to the host
267 rule.
268 * tests/actions.at (Mid-rule actions): New.
269
8419d367
AD
2702001-12-29 Akim Demaille <akim@epita.fr>
271
272 Memory leak.
273
274 * src/reader.c (reader): Free grammar.
275
375d5806
AD
2762001-12-29 Akim Demaille <akim@epita.fr>
277
278 Memory leak.
279
280 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
281 since it allocates it for each state, although only one is needed.
282 (allocate_storage): Do it here.
283
f51cb8ff
AD
2842001-12-29 Akim Demaille <akim@epita.fr>
285
286 * src/options.h, src/options.c (create_long_option_table): Rename
287 as...
288 (long_option_table_new): this, with a clearer prototype.
289 (percent_table): Remove, unused,
290 * src/getargs.c (getargs): Adjust.
291
29e88316
AD
2922001-12-29 Akim Demaille <akim@epita.fr>
293
294 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
295 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
296 as states.
297
b9f71f19
AD
2982001-12-29 Akim Demaille <akim@epita.fr>
299
300 * src/lalr.c (build_relations): Rename `states' as `states1'.
301 Sorry, I don't understand exactly what it is, no better name...
302
1a2b5d37
AD
3032001-12-29 Akim Demaille <akim@epita.fr>
304
305 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
306 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
307 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
308 as rules.
309
1cca533e
AD
3102001-12-29 Akim Demaille <akim@epita.fr>
311
312 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
313 ago.
314
c03ae966
AD
3152001-12-29 Akim Demaille <akim@epita.fr>
316
317 * src/reader.c, src/reader.h (user_toknums): Remove.
318 Adjust all users to use symbols[i]->user_token_number.
319
5a670b1e
AD
3202001-12-29 Akim Demaille <akim@epita.fr>
321
322 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
323 Adjust all users to use symbols[i]->prec or ->assoc.
324
ad949da9
AD
3252001-12-29 Akim Demaille <akim@epita.fr>
326
327 * src/reader.c, src/reader.h (tags): Remove.
328 Adjust all users to use symbols[i]->tag.
329
0e78e603
AD
3302001-12-29 Akim Demaille <akim@epita.fr>
331
332 * src/gram.h, src/gram.c (symbols): New, similar to state_table
333 and rule_table.
334 * src/reader.c (packsymbols): Fill this table.
335 Drop sprec.
336 * src/conflicts.c (resolve_sr_conflict): Adjust.
337 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
338 single table.
339 Use symbols[i]->tag instead of tags[i].
340
213e640e
AD
3412001-12-29 Akim Demaille <akim@epita.fr>
342
343 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
344 In addition, put a comment in there, to replace...
345 * tests/regression.at (%union and C comments): Remove.
346
e7b8bef1
AD
3472001-12-29 Akim Demaille <akim@epita.fr>
348
349 * tests/regression.at (Web2c Actions): Blindly move the actual
350 output as expected output. The contents *seem* right to me, but I
351 can't pretend reading perfectly parser tables... Nonetheless, all
352 the other tests pass correctly, the table look OK, even though the
353 presence of `$axiom' is to be noted: AFAICS it is useless (but
354 harmless).
355
b68e7744
AD
3562001-12-29 Akim Demaille <akim@epita.fr>
357
358 * src/reader.c (readgram): Don't add the rule 0 if there were no
359 rules read. In other words, add it _after_ having performed
360 grammar sanity checks.
361 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
362
78d5bae9
AD
3632001-12-29 Akim Demaille <akim@epita.fr>
364
365 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
366 visible, and some states have now a different number.
367
ff442794
AD
3682001-12-29 Akim Demaille <akim@epita.fr>
369
370 * src/reader.c (readgram): Bind the initial rule's lineno to that
371 of the first rule.
372 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
373 (Solved SR Conflicts): Adjust rule 0's line number.
374
610ab194
AD
3752001-12-29 Akim Demaille <akim@epita.fr>
376
377 Fix the `GAWK Grammar' failure.
378
379 * src/LR0.c (final_state): Initialize to -1 so that we do compute
380 the reductions of the first state which was mistakenly confused
381 with the final state because precisely final_state was initialized
382 to 0.
383 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
384 now noticed by Bison.
385 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
386 have a reduction on $default.
387
29d29c8f
AD
3882001-12-29 Akim Demaille <akim@epita.fr>
389
390 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
391 rule line numbers.
392 * src/closure.c (print_closure): Likewise.
393 * src/derives.c (print_derives): Likewise.
394 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
395 now.
396
7c6b64d0
AD
3972001-12-29 Akim Demaille <akim@epita.fr>
398
399 * src/lalr.c (lookaheads_print): New.
400 (lalr): Call it when --trace-flag.
401 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
402 are dumped.
403
3d4daee3
AD
4042001-12-29 Akim Demaille <akim@epita.fr>
405
406 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
407 when walking through ritem, even via rule->rhs.
408 * src/reduce.c (dump_grammar, useful_production, reduce_output)
409 (useful_production, useless_nonterminals): Likewise.
410 (reduce_grammar_tables): Likewise, plus update nritems.
411 * src/nullable.c (set_nullable): Likewise.
412 * src/lalr.c (build_relations): Likewise.
413 * tests/sets.at (Nullable): Adjust.
414 Fortunately, now, the $axiom is no longer nullable.
415
9e7f6bbd
AD
4162001-12-29 Akim Demaille <akim@epita.fr>
417
418 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
419 the 0-sentinel.
420 * src/gram.c (ritem_longest_rhs): Likewise.
421 * src/reduce.c (nonterminals_reduce): Likewise.
422 * src/print_graph.c (print_graph): Likewise.
423 * src/output.c (output_rule_data): Likewise.
424 * src/nullable.c (set_nullable): Likewise.
425
255ef638
AD
4262001-12-29 Akim Demaille <akim@epita.fr>
427
428 * src/output.c: Comment changes.
429
0d8a7363
AD
4302001-12-27 Paul Eggert <eggert@twinsun.com>
431
432 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
433 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
434 Sparc, as they were causing more porting problems than the
435 (minor) performance improvement was worth.
436
437 Also, catch up with 1.31's YYSTD.
438
3db472b9
AD
4392001-12-27 Akim Demaille <akim@epita.fr>
440
441 * src/output.c (output_gram): Rely on nritems, not the
442 0-sentinel. See below.
443 Use -1 as separator, not 0.
444 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
445 Rely on -1 as separator in yyrhs, instead of 0.
446 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
447 twice `Now at end of input', therefore there are two lines less to
448 expect.
449
b365aa05
AD
4502001-12-27 Akim Demaille <akim@epita.fr>
451
452 * tests/regression.at (Unresolved SR Conflicts):
453 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
454 below.
455
30171f79
AD
4562001-12-27 Akim Demaille <akim@epita.fr>
457
458 * src/LR0.c (new_state): Recognize the final state by the fact it
459 is reached by eoftoken.
460 (insert_start_shifting_state, insert_eof_shifting_state)
461 (insert_accepting_state, augment_automaton): Remove, since now
462 these states are automatically computed from the initial state.
463 (generate_states): Adjust.
464 * src/print.c: When reporting a rule number to the user, substract
465 1, so that the axiom rule is rule 0, and the first user rule is 1.
466 * src/reduce.c: Likewise.
467 * src/print_graph.c (print_core): For the time being, just as for
468 the report, depend upon --trace-flags to dump the full set of
469 items.
470 * src/reader.c (readgram): Once the grammar read, insert the rule
471 0: `$axiom: START-SYMBOL $'.
472 * tests/set.at: Adjust: rule 0 is now displayed, and since the
473 number of the states has changed (the final state is no longer
474 necessarily the last), catch up.
475
75142d45
AD
4762001-12-27 Akim Demaille <akim@epita.fr>
477
478 Try to make the use of the eoftoken valid. Given that its value
479 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
480 is used instead of > 0 where appropriate, (ii), depend upon nritems
481 instead of the 0-sentinel.
482
483 * src/gram.h, src/gram.c (nritems): New.
484 Expected to be duplication of nitems, but for the time being...
485 * src/reader.c (packgram): Assert nritems and nitems are equal.
486 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
487 * src/closure.c (print_closure, print_fderives): Likewise.
488 * src/gram.c (ritem_print): Likewise.
489 * src/print.c (print_core, print_grammar): Likewise.
490 * src/print_graph.c: Likewise.
491
b7c49edf
AD
4922001-12-27 Akim Demaille <akim@epita.fr>
493
494 * src/main.c (main): If there are complains after grammar
495 reductions, then output the report anyway if requested, then die.
496 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
497 * src/reader.c (eoftoken): New.
498 (parse_token_decl): If the token being defined has value `0', it
499 is the eoftoken.
500 (packsymbols): No longer hack `tags' to insert `$' by hand.
501 Be sure to preserve the value of the eoftoken.
502 (reader): Make sure eoftoken is defined.
503 Initialize nsyms to 0: now eoftoken is created just like the others.
504 * src/print.c (print_grammar): Don't special case the eof token.
505 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
506 lie anyway, albeit pleasant.
507 * tests/calc.at: Exercise error messages with eoftoken.
508 Change the grammar so that empty input is invalid.
509 Adjust expectations.
510 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
511
ec2da99f
AD
5122001-12-27 Akim Demaille <akim@epita.fr>
513
514 * configure.in: Check the protos of strchr ans strspn.
515 Replace strchr if needed.
516 * src/system.h: Provide the protos of strchr, strspn and memchr if
517 missing.
518 * lib/strchr.c: New.
519 * src/reader.c (symbols_save): Use strchr.
520
8adfa272
AD
5212001-12-27 Akim Demaille <akim@epita.fr>
522
523 * src/print.c, src/print_graph.c (escape): New.
524 Use it to quote the TAGS outputs.
525 * src/print_graph.c (print_state): Now errors are in red, and
526 reductions in green.
527 Prefer high to wide: output the state number on a line of its own.
528
80dac38c
AD
5292001-12-27 Akim Demaille <akim@epita.fr>
530
531 * src/state.h, src/state.c (reductions_new): New.
532 * src/LR0.c (set_state_table): Let all the states have a
533 `reductions', even if reduced to 0.
534 (save_reductions): Adjust.
535 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
536 * src/print.c (print_reductions, print_actions): Adjust.
537 * src/output.c (action_row): Adjust.
538
2cec70b9
AD
5392001-12-27 Akim Demaille <akim@epita.fr>
540
541 * src/state.h, src/state.c (errs_new, errs_dup): New.
542 * src/LR0.c (set_state_table): Let all the states have an errs,
543 even if reduced to 0.
544 * src/print.c (print_errs, print_reductions): Adjust.
545 * src/output.c (output_actions, action_row): Adjust.
546 * src/conflicts.c (resolve_sr_conflict): Adjust.
547
13ca549a
AD
5482001-12-27 Akim Demaille <akim@epita.fr>
549
550 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
551
5092aba5
AD
5522001-12-27 Akim Demaille <akim@epita.fr>
553
554 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
555 * src/print.c: here.
556 (lookaheadset, shiftset): New, used as additional storage by
557 print_reductions.
558 (print_results): Adjust.
559 (print_shifts, print_gotos, print_errs): New, extracted from...
560 (print_actions): here.
561 * src/print_graph.c (print_actions): Remove dead code.
562
11e2beca
AD
5632001-12-27 Akim Demaille <akim@epita.fr>
564
565 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
566 `$n' and `@n'.
567
dac3c910
AD
5682001-12-27 Akim Demaille <akim@epita.fr>
569
570 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
571 (build_relations): Adjust.
572
d0b0fefa
AD
5732001-12-27 Akim Demaille <akim@epita.fr>
574
575 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
576 duplication.
577
adc8c848
AD
5782001-12-27 Akim Demaille <akim@epita.fr>
579
580 * src/reader.c (packgram): Catch nitems overflows.
581
14d293ac
AD
5822001-12-27 Akim Demaille <akim@epita.fr>
583
584 * src/files.c, src/files.h (guard_obstack): Remove.
585 * src/output.c (output): Adjust.
586 * src/reader.c (parse_braces): New, factoring...
587 (copy_action, copy_guard): these two which are renamed as...
588 (parse_action, parse_guard): these.
589 As a voluntary consequence, using braces around guards is now
590 mandatory.
591
f499b062
AD
5922001-12-27 Akim Demaille <akim@epita.fr>
593
594 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
595 * src/reader.c (symbol_list): `guard' and `guard_line' are new
596 members.
597 (symbol_list_new): Adjust.
598 (copy_action): action_line is the first line, not the last.
599 (copy_guard): Just as for actions, store the `action' only, not
600 the switch/case/break flesh.
601 Don't parse the user action that might follow the guard, let...
602 (readgram): do it, i.e., now, there can be an action after a
603 guard.
604 In other words the guard is just explicitly optional.
605 (packgram): Adjust.
606 * src/output.c (guards_output): New.
607 (output_parser): Call it when needed.
608 (output): Also free the guard and attrs obstacks.
609 * src/files.c, src/files.h (obstack_save): Remove.
610 (output_files): Remove.
611 As a result, if one needs the former `.act' file, using an
612 appropriate skeleton which requires actions and guards is now
613 required.
614 * src/main.c (main): Adjust.
615 * tests/semantic.at: New.
616 * tests/regression.at: Use `input.y' as input file name.
617 Avoid 8+3 problems by requiring input.c when the test needs the
618 parser.
619
d945f5cd
AD
6202001-12-27 Akim Demaille <akim@epita.fr>
621
622 * src/reader.c (symbol_list_new): Be sure to initialize all the
623 fields.
624
d200e455
AD
6252001-12-27 Akim Demaille <akim@epita.fr>
626
627 All the hacks using a final pseudo state are now useless.
628
629 * src/LR0.c (set_state_table): state_table holds exactly nstates.
630 * src/lalr.c (nLA): New.
631 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
632 instead of lookaheadsp from the pseudo state (nstate + 1).
633
f9507c28
AD
6342001-12-27 Akim Demaille <akim@epita.fr>
635
636 * src/output.c (action_row, token_actions): Use a state_t instead
637 of a integer, and nlookaheads instead of the following state's
638 lookaheadsp.
639
065fbd27
AD
6402001-12-27 Akim Demaille <akim@epita.fr>
641
642 * src/conflicts.c (log_resolution, flush_shift)
643 (resolve_sr_conflict, set_conflicts, solve_conflicts)
644 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
645 (conflicts_print, print_reductions): Use a state_t instead of an
646 integer when referring to a state.
647 As much as possible, depend upon nlookaheads, instead of the
648 `lookaheadsp' member of the following state (since lookaheads of
649 successive states are successive, the difference between state n + 1
650 and n served as the number of lookaheads for state n).
651 * src/lalr.c (add_lookback_edge): Likewise.
652 * src/print.c (print_core, print_actions, print_state)
653 (print_results): Likewise.
654 * src/print_graph.c (print_core, print_actions, print_state)
655 (print_graph): Likewise.
656 * src/conflicts.h: Adjust.
657
1b177bd7
AD
6582001-12-27 Akim Demaille <akim@epita.fr>
659
660 * src/bison.hairy: Formatting/comment changes.
661 ANSIfy.
662 Remove `register' indications.
663 Add plenty of `static'.
664
7742ddeb
AD
6652001-12-27 Akim Demaille <akim@epita.fr>
666
667 * src/output.c (prepare): Drop the muscle `ntbase' which
668 duplicates ntokens.
669 * src/bison.simple: Formatting/comment changes.
670 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
671 is an undocumented synonym.
672
1fa14068
AD
6732001-12-22 Akim Demaille <akim@epita.fr>
674
675 * src/output.c (output_table_data): Change the prototype to use
676 `int' for array ranges: some invocations do pass an int, not a
677 short.
678 Reported by Wayne Green.
679
b9752825
AD
6802001-12-22 Akim Demaille <akim@epita.fr>
681
682 Some actions of web2c.y are improperly triggered.
683 Reported by Mike Castle.
684
685 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
686 * tests/regression.at (Web2c): Rename as...
687 (Web2c Report): this.
688 (Web2c Actions): New.
689
776209d6
AD
6902001-12-22 Akim Demaille <akim@epita.fr>
691
692 Reductions in web2c.y are improperly reported.
693 Reported by Mike Castle.
694
695 * src/conflicts.c (print_reductions): Fix.
696 * tests/regression.at (Web2c): New.
697
275fc3ad
AD
6982001-12-18 Akim Demaille <akim@epita.fr>
699
700 Some host fail on `assert (!"foo")', which expands to
701 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
702 Reported by Nelson Beebee.
703
704 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
705 `#define it_succeeded 0' and `assert (it_succeeded)'.
706
897668ee
MA
7072001-12-17 Marc Autret <autret_m@epita.fr>
708
709 * src/bison.simple: Don't hard code the skeleton line and filename.
710 * src/output.c (output_parser): Rename 'line' as 'output_line'.
711 New line counter 'skeleton_line' (skeleton-line muscle).
712
ab3399e0
PE
7132001-12-17 Paul Eggert <eggert@twinsun.com>
714
715 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
716 YYDEBUG must be defined to a nonzero value.
717
718 * src/bison.simple (yytname): Do not assume that the user defines
719 YYDEBUG to a properly parenthesized expression.
720
3877f72b
AD
7212001-12-17 Akim Demaille <akim@epita.fr>
722
723 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
724 nlookaheads is a new member.
725 Adjust all users.
726 * src/lalr.h (nlookaheads): Remove this orphan declaration.
727 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
728 state.
776209d6 729
331dbc1b
AD
7302001-12-17 Akim Demaille <akim@epita.fr>
731
732 * src/files.h, src/files.c (open_files, close_files): Remove.
733 * src/main.c (main): Don't open/close files, nor invoke lex_free,
734 let...
735 * src/reader.c (reader): Do it.
776209d6 736
be750e4c
AD
7372001-12-17 Akim Demaille <akim@epita.fr>
738
739 * src/conflicts.c (print_reductions): Formatting changes.
776209d6 740
709ae8c6
AD
7412001-12-17 Akim Demaille <akim@epita.fr>
742
743 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
744 (flush_reduce): New.
745 (resolve_sr_conflict): Adjust.
776209d6 746
f87685c3
AD
7472001-12-17 Akim Demaille <akim@epita.fr>
748
749 * src/output.c (output_obstack): Be static and rename as...
750 (format_obstack): this, to avoid any confusion with files.c's
751 output_obstack.
752 * src/reader.h (muscle_obstack): Move to...
753 * src/output.h: here, since it's defined in output.c.
754
837491d8
AD
7552001-12-17 Akim Demaille <akim@epita.fr>
756
757 * src/output.c (action_row, save_column, default_goto)
758 (sort_actions, matching_state, pack_vector): Better variable
759 locality.
760
796d61fb
AD
7612001-12-17 Akim Demaille <akim@epita.fr>
762
763 * src/output.c: Various formatting changes.
776209d6 764
64d15509
AD
7652001-12-17 Akim Demaille <akim@epita.fr>
766
767 * src/files.c (output_files): Free the output_obstack.
768 * src/main.c (main): Call print and print_graph conditionally.
769 * src/print.c (print): Work unconditionally.
770 * src/print_graph.c (print_graph): Work unconditionally.
771 * src/conflicts.c (log_resolution): Output only if verbose_flag.
772
fbc8ecb7
MA
7732001-12-16 Marc Autret <autret_m@epita.fr>
774
775 * src/output.c (actions_output): Fix. When we use %no-lines,
776 there is one less line per action.
777
f0440388
MA
7782001-12-16 Marc Autret <autret_m@epita.fr>
779
780 * src/bison.simple: Remove a useless #line directive.
781 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
782 * src/output.c (get_lines_number): New.
776209d6 783 (output_parser): Adjust, now takes care about the lines of a
f0440388
MA
784 output muscles.
785 Fix line numbering.
786 (actions_output): Computes the number of lines taken by actions.
787 (output_master_parser): Insert new skeleton which is the name of
788 the output parser file name.
789
a79986b8
MA
7902001-12-15 Marc Autret <autret_m@epita.fr>
791
792 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
793
4ec8e00f
MA
7942001-12-15 Marc Autret <autret_m@epita.fr>
795
796 * src/output.c (output_gram): Keep track of the hairy one.
797
1a4648ff
AD
7982001-12-15 Akim Demaille <akim@epita.fr>
799
800 Make `make distcheck' work.
801
802 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
803 system.h which uses libgettext.h.
804
9c2c67e6
AD
8052001-12-15 Akim Demaille <akim@epita.fr>
806
807 * src/nullable.c (set_nullable): Useless rules must be skipped,
808 otherwise, since we range over their symbols, we might look at a
809 nonterminal which no longer ``exists'', i.e., it is not counted in
810 `nvars', hence we overflow our arrays.
811
93ede233
AD
8122001-12-15 Akim Demaille <akim@epita.fr>
813
814 The header can also be produced directly, without any obstack!
815 Yahoo!
816
817 * src/files.c, src/files.h (defines_obstack): Remove.
818 (compute_header_macro): Global.
819 (defines_obstack_save): Remove.
820 * src/reader.c (parse_union_decl): No longer output to
821 defines_obstack: its content can be found in the `stype' muscle
822 anyway.
823 (output_token_translations): Merge into...
824 (symbols_output): this.
825 Rename as...
826 (symbols_save): this.
827 (reader): Adjust.
828 * src/output.c (header_output): New.
829 (output): Call it.
830
2666f928
AD
8312001-12-15 Akim Demaille <akim@epita.fr>
832
833 * src/reader.c (parse_union_decl): Instead of handling two obstack
834 simultaneously, use one to define the `stype' muscle, and use the
835 value of the latter to fill defines_obstack.
836 (copy_comment): Remove.
837 (copy_comment2): Work for a single obstack.
838 Rename as...
839 (copy_comment): this.
840
428046f8
AD
8412001-12-15 Akim Demaille <akim@epita.fr>
842
843 * src/lex.c, src/lex.h (xgetc): No longer static.
844 * src/reader.c (parse_union_decl): Revamp.
845
ea52d706
AD
8462001-12-15 Akim Demaille <akim@epita.fr>
847
848 Still making progress in separating Bison into (i) input, (ii)
849 process, (iii) output: now we can directly output the parser file
850 without using table_obstack at all.
851
852 * src/files.c, src/files.h (table_obstack): Bye bye.
853 (parser_file_name): New.
854 * src/files.c (compute_output_file_names): Compute it.
855 * src/output.c (actions_output, output_parser)
856 (output_master_parser): To a file instead of an obstack.
857
3f96f4dc
AD
8582001-12-15 Akim Demaille <akim@epita.fr>
859
860 Attach actions to rules, instead of pre-outputting them to
861 actions_obstack.
862
863 * src/gram.h (rule_t): action and action_line are new members.
864 * src/reader.c (symbol_list): Likewise.
865 (copy_action): Save the actions within the rule.
866 (packgram): Save them in rule_table.
867 * src/output.c (actions_output): New.
868 (output_parser): Use it on `%%actions'.
869 (output_rule_data): Don't free rule_table.
870 (output): Do it.
871 (prepare): Don't save the `action' muscle.
872 * src/bison.simple: s/%%action/%%actions/.
873
51576fb3
AD
8742001-12-15 Akim Demaille <akim@epita.fr>
875
876 * src/reader.c (copy_action): When --yacc, don't append a `;'
877 to the user action: let it fail if lacking.
dee049eb 878 Suggested by Arnold Robbins and Tom Tromey.
51576fb3 879
2648a72d
AD
8802001-12-14 Akim Demaille <akim@epita.fr>
881
882 * src/lex.c (literalchar): Simply return the char you decoded, non
883 longer mess around with obstacks and int pointers.
884 Adjust all callers.
885
92790e5b
AD
8862001-12-14 Akim Demaille <akim@epita.fr>
887
888 * src/lex.c (literalchar): Don't escape the special characters,
889 just decode them, and keep them as char (before, eol was output as
890 the 2 char string `\n' etc.).
891 * src/output.c (output_rule_data): Use quotearg to output the
892 token strings.
893
927c1557
PE
8942001-12-13 Paul Eggert <eggert@twinsun.com>
895
896 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
897 Do not infringe on the global user namespace when using C++.
898 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
899 All uses of `fprintf' and `stderr' changed.
900
901 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
902
ed8e1f68
AD
9032001-12-13 Akim Demaille <akim@epita.fr>
904
905 The computation of nullable is broken: it doesn't handle empty
906 RHS's properly.
907
908 * tests/torture.at (GNU AWK Grammar): New.
909 * tests/sets.at (Nullable): New.
910 * src/nullable.c (set_nullable): Instead of blindly looping over
911 `ritems', loop over the rules, and then over their rhs's.
912
913 Work around Autotest bugs.
914
915 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
916 frame, because Autotest understand lines starting with a `+' as
917 traces from the shell. Then, they are not processed properly.
918 Admittedly an Autotest bug, but we don't have time to wait for
919 Autotest to catch up.
920 * tests/regression.at (Broken Closure): Adjust to the new table
921 frames.
922 Move to...
923 * tests/sets.at: here.
924
cb581495
AD
9252001-12-13 Akim Demaille <akim@epita.fr>
926
927 * src/closure.c (closure): Use nrules instead of playing tricks
928 with BITS_PER_WORD.
929
2e729273
AD
9302001-12-13 Akim Demaille <akim@epita.fr>
931
932 * src/print.c (print_actions): Output the handling of `$' as the
933 traces do: shifting the token EOF. Before EOF was treated as a
934 nonterminal.
935 * tests/regression.at: Adjust some tests.
936 * src/print_graph.c (print_core): Complete the set of items via
937 closure. The next-to-final and final states are still unsatisfying,
938 but that's to be addressed elsewhere.
939 No longer output the rule numbers, but do output the state number.
940 A single loop for the shifts + gotos is enough, but picked a
941 distinct color for each.
942 (print_graph): Initialize and finalize closure.
943
107f7dfb
AD
9442001-12-13 Akim Demaille <akim@epita.fr>
945
946 * src/reader.c (readgram): Remove dead code, an strip useless
947 braces.
948 (get_type): Remove, unused.
949
9b53a24f
AD
9502001-12-12 Akim Demaille <akim@epita.fr>
951
952 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
953 on that of lib/error.c.
954
dbfb6dcd
AD
9552001-12-12 Akim Demaille <akim@epita.fr>
956
957 Some hosts don't like `/' in includes.
958
959 * src/system.h: Include libgettext.h without qualifying the path.
960 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
961 $(top_srcdir).
962
c25fb648
MA
9632001-12-11 Marc Autret <autret_m@epita.fr>
964
965 * src/output.c (output_parser): Remove useless muscle.
966
710ddc4f
MA
9672001-12-11 Marc Autret <autret_m@epita.fr>
968
969 * src/bison.simple: Remove #line just before %%epilogue. It
970 is now handled in ...
971 * src/reader.c (read_additionnal_code): Add the output of a
972 #line for the epilogue.
973
e83d80b8
MA
9742001-12-10 Marc Autret <autret_m@epita.fr>
975
927c1557 976 * src/reader.c (copy_definition): Re-use CPP-outed code which
e83d80b8
MA
977 replace precedent remove.
978 * src/bison.simple: Remove #line before %%prologue because
979 %%input-line is wrong at this time.
980
971d5158
MA
9812001-12-10 Marc Autret <autret_m@epita.fr>
982
983 * src/reader.c (symbols_output): Clean up.
927c1557 984 * src/output.c (output_gram, output): Clean up.
971d5158 985
5edafffd
AD
9862001-12-10 Akim Demaille <akim@epita.fr>
987
988 * src/lalr.c (initialize_lookaheads): New. Extracted from...
989 * src/LR0.c (set_state_table): here.
990 * src/lalr.c (lalr): Call it.
991
0279f8e9
AD
9922001-12-10 Akim Demaille <akim@epita.fr>
993
994 * src/state.h (shifts): Remove the `number' member: shifts are
995 attached to state, hence no longer need to be labelled with a
996 state number.
997
190c4f5f
AD
9982001-12-10 Akim Demaille <akim@epita.fr>
999
1000 Now that states have a complete set of members, the linked list of
1001 shifts is useless: just fill directly the state's shifts member.
1002
1003 * src/state.h (shifts): Remove the `next' member.
1004 * src/LR0.c (first_state, last_state): Remove.
1005 Adjust the callers.
1006 (augment_automaton): Don't look for the shifts that must be added
1007 a shift on EOF: it is those of the state we looked for! But now,
1008 since shifts are attached, it is no longer needed to looking
1009 merely by its id: its number.
1010
2a73b93d
AD
10112001-12-10 Akim Demaille <akim@epita.fr>
1012
1013 * src/LR0.c (augment_automaton): Better variable locality.
1014 Remove an impossible branch: if there is a state corresponding to
1015 the start symbol being shifted, then there is shift for the start
1016 symbol from the initial state.
1017
74392f6a
AD
10182001-12-10 Akim Demaille <akim@epita.fr>
1019
1020 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
1021 only when appropriate: when insert_start_shifting_state' is not
1022 invoked.
1023 * tests/regression.at (Rule Line Numbers): Adjust.
1024
37c82725
AD
10252001-12-10 Akim Demaille <akim@epita.fr>
1026
1027 * src/LR0.c (augment_automaton): Now that all states have shifts,
1028 merge the two cases addition shifts to the initial state.
1029
6a164e0c
AD
10302001-12-10 Akim Demaille <akim@epita.fr>
1031
1032 * src/lalr.c (set_state_table): Move to...
1033 * src/LR0.c: here.
1034 * src/lalr.c (lalr): Don't call it...
1035 * src/LR0.c (generate_states): do it.
1036 * src/LR0.h (first_state): Remove, only the table is used.
1037
7215de24
AD
10382001-12-10 Akim Demaille <akim@epita.fr>
1039
1040 * src/LR0.h (first_shift, first_reduction): Remove.
1041 * src/lalr.c: Don't use first_shift: find shifts through the
1042 states.
1043
80e25d4d
AD
10442001-12-10 Akim Demaille <akim@epita.fr>
1045
1046 * src/LR0.c: Attach shifts to states as soon as they are
1047 computed.
1048 * src/lalr.c (set_state_table): Instead of assigning shifts to
1049 state, just assert that the mapping was properly done.
1050
0ab3728b
AD
10512001-12-10 Akim Demaille <akim@epita.fr>
1052
1053 * src/LR0.c (insert_start_shift): Rename as...
1054 (insert_start_shifting_state): this.
1055 (insert_eof_shifting_state, insert_accepting_state): New.
1056 (augment_automaton): Adjust.
1057 Better locality of the variables.
1058 When looking if the start_symbol is shifted from the initial
1059 state, using `while (... symbol != start_symbol ...)' sounds
1060 better than `while (... symbol < start_symbol ...)': If fail
1061 to see how the order between symbols could be relevant!
1062
78af9bbc
AD
10632001-12-10 Akim Demaille <akim@epita.fr>
1064
1065 * src/getargs.h: Don't declare `spec_name_prefix' and
1066 `spec_file_prefix', declared by src/files.h.
1067 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
1068 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
1069 * src/output.c (prepare): Adjust.
1070 * src/reader.c (symbols_output): Likewise.
1071 * src/vmsgetargs.c: Vaguely adjust, but who cares?
1072
bdef2a41
AD
10732001-12-10 Akim Demaille <akim@epita.fr>
1074
1075 * src/muscle_tab.c (muscle_init): NULL is a better default than
1076 `"0"'.
1077
3735969c
AD
10782001-12-10 Akim Demaille <akim@epita.fr>
1079
1080 * src/reader.c (reader): Calling symbols_output once is enough.
1081
49701457
AD
10822001-12-10 Akim Demaille <akim@epita.fr>
1083
1084 Now that states have a complete set of members, the linked list of
1085 reductions is useless: just fill directly the state's reductions
1086 member.
1087
1088 * src/state.h (struct reductions): Remove member `number' and
1089 `next'.
1090 * src/LR0.c (first_reduction, last_reduction): Remove.
1091 (save_reductions): Don't link the new reductions, store them in
1092 this_state.
1093 * src/lalr.c (set_state_table): No need to attach reductions to
1094 states, it's already done.
1095 * src/output.c (output_actions): No longer free the shifts, then
1096 the reductions, then the states: free all the states and their
1097 members.
1098
0edad749
AD
10992001-12-10 Akim Demaille <akim@epita.fr>
1100
1101 * src/options.c (OPTN, DRTV, BOTH): New.
1102 (option_table): Use them.
1103
0edad749
AD
1104 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
1105 the job of system.h.
1106 * src/options.c: Don't include stdio.h and xalloc.h for the same
1107 reasons.
1108
5449dd0f
AD
11092001-12-10 Akim Demaille <akim@epita.fr>
1110
1111 * src/output.c (output, prepare): Make sure the values of the
1112 muscles `action' and `prologue' are 0-terminated.
1113
a870c567
AD
11142001-12-10 Akim Demaille <akim@epita.fr>
1115
1116 Clean up GCC warnings.
1117
1118 * src/reader.c (copy_action): `buf' is not used.
1119 (parse_skel_decl): Be static.
1120 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
1121 * src/options.h (create_long_option_table): Have a real prototype.
1122 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
1123 (hash_delete_at): Return const void *.
1124 Adjust casts to preserve the const.
1125
80df8768
AD
11262001-12-10 Akim Demaille <akim@epita.fr>
1127
1128 * configure.in: Require 2.52g.
1129 M4 is not needed, but AUTOM4TE is.
1130 * m4/m4.m4: Remove.
1131 * tests/Makefile.am: Adjust.
1132
f693ad14
AD
11332001-12-10 Akim Demaille <akim@epita.fr>
1134
1135 One structure for states is enough, even though theoretically
1136 there are LR(0) states and LALR(1) states.
1137
1138 * src/lalr.h (state_t): Remove.
1139 (state_table): Be state_t **, not state_t *.
1140 * src/state.h (core, CORE_ALLOC): Rename as...
1141 (state_t, STATE_ALLOC): this.
1142 Add the LALR(1) members: shifts, reductions, errs.
1143 * src/LR0.c (state_table): Rename as...
1144 (state_hash): this, to avoid name clashes with the global
1145 `state_table'.
1146 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
1147 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
1148
74ffbcb6
AD
11492001-12-10 Akim Demaille <akim@epita.fr>
1150
1151 Bison dumps core on bash.y.
1152 Reported by Pascal Bart.
1153
1154 * src/warshall.c (bitmatrix_print): New.
1155 (TC): Use it.
1156 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
1157 j must be the outer loop.
1158 * tests/regression.at (Broken Closure): New.
1159
07708e19
AD
11602001-12-05 Akim Demaille <akim@epita.fr>
1161
1162 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
1163 its argument.
1164