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