]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
[bison.git] / ChangeLog
CommitLineData
1d6412ad
AD
12002-06-11 Akim Demaille <akim@epita.fr>
2
3 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
4 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
5 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
6 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
7 * src/reader.c (reader): Use it.
8
9
4cdb01db
AD
102002-06-11 Akim Demaille <akim@epita.fr>
11
12 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
13 Adjust all callers.
14 (scanner_last_string_free): New.
15
16
44995b2e
AD
172002-06-11 Akim Demaille <akim@epita.fr>
18
19 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
20 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
21 (last_string, YY_OBS_FREE): New.
22 Use them when returning an ID.
23
e9955c83
AD
242002-06-11 Akim Demaille <akim@epita.fr>
25
26 Have Bison grammars parsed by a Bison grammar.
27
28 * src/reader.c, src/reader.h (prologue_augment): New.
29 * src/reader.c (copy_definition): Remove.
30
31 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
32 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
33 (grammar_current_rule_prec_set, grammar_current_rule_check)
34 (grammar_current_rule_symbol_append)
35 (grammar_current_rule_action_append): Export.
36 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
37 (symbol_list_action_append): Remove.
38 Hook the routines from reader.
39 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
40 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
41
42 * src/reader.c (read_declarations): Remove, unused.
43
44 * src/parse-gram.y: Handle the epilogue.
45 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
46 (grammar_start_symbol_set): this.
47 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
48 * src/reader.c (readgram): Remove, unused.
49 (reader): Adjust to insert eoftoken and axiom where appropriate.
50
51 * src/reader.c (copy_dollar): Replace with...
52 * src/scan-gram.h (handle_dollar): this.
53 * src/parse-gram.y: Remove `%thong'.
54
55 * src/reader.c (copy_at): Replace with...
56 * src/scan-gram.h (handle_at): this.
57
58 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
59 New.
60
61 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
62 time being.
63
64 * src/reader.h, src/reader.c (grammar_rule_end): New.
65
66 * src/parse.y (current_type, current_class): New.
67 Implement `%nterm', `%token' support.
68 Merge `%term' into `%token'.
69 (string_as_id): New.
70 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
71 type name.
72
73 * src/parse-gram.y: Be sure to handle properly the beginning of
74 rules.
75
76 * src/parse-gram.y: Handle %type.
77 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
78
79 * src/parse-gram.y: More directives support.
80 * src/options.c: No longer handle source directives.
81
82 * src/parse-gram.y: Fix %output.
83
84 * src/parse-gram.y: Handle %union.
85 Use the prologue locations.
86 * src/reader.c (parse_union_decl): Remove.
87
88 * src/reader.h, src/reader.c (epilogue_set): New.
89 * src/parse-gram.y: Use it.
90
91 * data/bison.simple, data/bison.c++: b4_stype is now either not
92 defined, then default to int, or to the contents of %union,
93 without `union' itself.
94 Adjust.
95 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
96
97 * src/output.c (actions_output): Don't output braces, as they are
98 already handled by the scanner.
99
100 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
101 characters to themselves.
102
103 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
104 that the epilogue has a proper #line.
105
106 * src/parse-gram.y: Handle precedence/associativity.
107
108 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
109 a terminal.
110 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
111 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
112 at all to define terminals that cannot be emitted.
113
114 * src/scan-gram.l: Escape M4 characters.
115
116 * src/scan-gram.l: Working properly with escapes in user
117 strings/characters.
118
119 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
120 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
121 grammar.
122 Use more modest sizes, as for the time being the parser does not
123 release memory, and therefore the process swallows a huge amount
124 of memory.
125
126 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
127 stricter %token grammar.
128
129 * src/symtab.h (associativity): Add `undef_assoc'.
130 (symbol_precedence_set): Do nothing when passed an undef_assoc.
131 * src/symtab.c (symbol_check_alias_consistence): Adjust.
132
133 * tests/regression.at (Invalid %directive): Remove, as it is now
134 meaningless.
135 (Invalid inputs): Adjust to the new error messages.
136 (Token definitions): The new grammar doesn't allow too many
137 eccentricities.
138
139 * src/lex.h, src/lex.c: Remove.
140 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
141 (copy_character, copy_string2, copy_string, copy_identifier)
142 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
143 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
144 (parse_action): Remove.
145 * po/POTFILES.in: Adjust.
146
2e047461
AD
1472002-06-11 Akim Demaille <akim@epita.fr>
148
149 * src/reader.c (parse_action): Don't store directly into the
150 rule's action member: return the action as a string.
151 Don't require `rule_length' as an argument: compute it.
152 (grammar_current_rule_symbol_append)
153 (grammar_current_rule_action_append): New, eved out from
154 (readgram): here.
155 Remove `action_flag', `rulelength', unused now.
156
9af3fbce
AD
1572002-06-11 Akim Demaille <akim@epita.fr>
158
159 * src/reader.c (grammar_current_rule_prec_set).
160 (grammar_current_rule_check): New, eved out from...
161 (readgram): here.
162 Remove `xaction', `first_rhs': useless.
163 * tests/input.at (Type clashes): New.
164 * tests/existing.at (GNU Cim Grammar): Adjust.
165
1485e106
AD
1662002-06-11 Akim Demaille <akim@epita.fr>
167
168 * src/reader.c (grammar_midrule_action): New, Eved out from
169 (readgram): here.
170
da4160c3
AD
1712002-06-11 Akim Demaille <akim@epita.fr>
172
173 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
174 New.
175 (readgram): Use them as replacement of inlined code, crule and
176 crule1.
177
f6d0f937
AD
1782002-06-11 Akim Demaille <akim@epita.fr>
179
180 * src/reader.c (grammar_end, grammar_symbol_append): New.
181 (readgram): Use them.
182 Make the use of `p' as local as possible.
183
69078d4b
AD
1842002-06-10 Akim Demaille <akim@epita.fr>
185
186 GCJ's parser requires the tokens to be defined before the prologue.
187
188 * data/bison.simple: Output the token definition before the user's
189 prologue.
190 * tests/regression.at (Braces parsing, Duplicate string)
191 (Mixing %token styles): Check the output from bison.
192 (Early token definitions): New.
193
5e424082
AD
1942002-06-10 Akim Demaille <akim@epita.fr>
195
196 * src/symtab.c (symbol_user_token_number_set): Don't complain when
197 assigning twice the same user number to a token, so that we can
198 use it in...
199 * src/lex.c (lex): here.
200 Also use `symbol_class_set' instead of hand written code.
201 * src/reader.c (parse_assoc_decl): Likewise.
202
44536b35
AD
2032002-06-10 Akim Demaille <akim@epita.fr>
204
205 * src/symtab.c, src/symtab.c (symbol_class_set)
206 (symbol_user_token_number_set): New.
207 * src/reader.c (parse_token_decl): Use them.
208 Use a switch instead of ifs.
209 Use a single argument.
210
8b9f2372
AD
2112002-06-10 Akim Demaille <akim@epita.fr>
212
213 Remove `%thong' support as it is undocumented, unused, duplicates
214 `%token's job, and creates useless e-mail traffic with people who
215 want to know what it is, why it is undocumented, unused, and
216 duplicates `%token's job.
217
218 * src/reader.c (parse_thong_decl): Remove.
219 * src/options.c (option_table): Remove "thong".
220 * src/lex.h (tok_thong): Remove.
221
3ae2b51f
AD
2222002-06-10 Akim Demaille <akim@epita.fr>
223
224 * src/symtab.c, src/symtab.c (symbol_type_set)
225 (symbol_precedence_set): New.
226 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
227 (value_components_used): Remove, unused.
228
2f1afb73
AD
2292002-06-09 Akim Demaille <akim@epita.fr>
230
231 Move symbols handling code out of the reader.
232
233 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
234 (axiom): Move to...
235 * src/symtab.h, src/symtab.c: here.
236
237 * src/gram.c (start_symbol): Remove: use startsymbol->number.
238 * src/reader.c (startval): Rename as...
239 * src/symtab.h, src/symtab.c (startsymbol): this.
240 * src/reader.c: Adjust.
241
242 * src/reader.c (symbol_check_defined, symbol_make_alias)
243 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
244 (token_translations_init)
245 Move to...
246 * src/symtab.c: here.
247 * src/reader.c (packsymbols): Move to...
248 * src/symtab.h, src/symtab.c (symbols_pack): here.
249 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
250 argument.
251
e9bca3ad
AD
2522002-06-03 Akim Demaille <akim@epita.fr>
253
254 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
255 then statements.
256
86eff183
AD
2572002-06-03 Akim Demaille <akim@epita.fr>
258
259 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
260 structs with non literals.
261 * src/scan-skel.l: never-interactive.
262 * src/conflicts.c (enum conflict_resolution_e): No trailing
263 comma.
264 * src/getargs.c (usage): Split long literal strings.
265 Reported by Hans Aberg.
266
717be197
AD
2672002-05-28 Akim Demaille <akim@epita.fr>
268
269 * data/bison.c++: Use C++ ostreams.
270 (cdebug_): New member.
271
670ddffd
AD
2722002-05-28 Akim Demaille <akim@epita.fr>
273
274 * src/output.c (output_skeleton): Be sure to allocate enough room
275 for `/' _and_ for `\0' in full_skeleton.
276
769b430f
AD
2772002-05-28 Akim Demaille <akim@epita.fr>
278
279 * data/bison.c++: Catch up with bison.simple:
280 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
281 and Paul Eggert <eggert@twinsun.com>: `error' handing.
282 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
283 and popping traces.
284
7067cb36
PH
2852002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
286
287 * src/output.c (output_skeleton): Put an explicit path in front of
288 the skeleton file name, rather than relying on the -I directory,
289 to partially alleviate effects of having a skeleton file lying around
290 in the current directory.
769b430f 291
4a713ec2
PH
2922002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
293
769b430f 294 * src/conflicts.c (log_resolution): Correct typo:
4a713ec2
PH
295 obstack_printf should be obstack_fgrow1.
296
b408954b
AD
2972002-05-26 Akim Demaille <akim@epita.fr>
298
299 * src/state.h (state_t): `solved_conflicts' is a new member.
300 * src/LR0.c (new_state): Set it to 0.
301 * src/conflicts.h, src/conflicts.c (print_conflicts)
302 (free_conflicts, solve_conflicts): Rename as...
303 (conflicts_print, conflicts_free, conflicts_solve): these.
304 Adjust callers.
305 * src/conflicts.c (enum conflict_resolution_e)
306 (solved_conflicts_obstack): New, used by...
307 (log_resolution): this.
308 Adjust to attach the conflict resolution to each state.
309 Complete the description with the precedence/associativity
310 information.
311 (resolve_sr_conflict): Adjust.
312 * src/print.c (print_state): Output its solved_conflicts.
313 * tests/conflicts.at (Unresolved SR Conflicts)
314 (Solved SR Conflicts): Exercise --report=all.
315
a49aecd5
AD
3162002-05-26 Akim Demaille <akim@epita.fr>
317
318 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
319 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
320 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
321 (token_number_t, item_number_as_token_number)
322 (token_number_as_item_number, muscle_insert_token_number_table):
323 Rename as...
324 (symbol_number_t, item_number_as_symbol_number)
325 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
326 these, since it is more appropriate.
327
5504898e
AD
3282002-05-26 Akim Demaille <akim@epita.fr>
329
330 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
331 `Error:' lines.
332 * data/bison.simple (yystos) [YYDEBUG]: New.
333 (yyparse) [YYDEBUG]: Display the symbols which are popped during
334 error recovery.
335 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
336
ec3bc396
AD
3372002-05-25 Akim Demaille <akim@epita.fr>
338
339 * doc/bison.texinfo (Debugging): Split into...
340 (Tracing): this new section, its former contents, and...
341 (Understanding): this new section.
342 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
343 by...
344 (report_flag): this.
345 Adjust all dependencies.
346 (report_args, report_types, report_argmatch): New.
347 (usage, getargs): Report/support -r, --report.
348 * src/options.h
349 (struct option_table_struct): Rename as..,
350 (struct option_table_s): this.
351 Rename the `set_flag' member to `flag' to match with getopt_long's
352 struct.
353 * src/options.c (option_table): Split verbose into an entry for
354 %verbose, and another for --verbose.
355 Support --report/-r, so remove -r from the obsolete --raw.
356 * src/print.c: Attach full item sets and lookaheads reports to
357 report_flag instead of trace_flag.
358 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
359
78df8250
PE
3602002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
361 and Paul Eggert <eggert@twinsun.com>
769b430f 362
78df8250
PE
363 * data/bison.simple (yyparse): Correct error handling to conform to
364 POSIX and yacc. Specifically, after syntax error is discovered,
365 do not reduce further before shifting the error token.
366 Clean up the code a bit by removing the labels yyerrdefault,
367 yyerrhandle, yyerrpop.
368 * NEWS: Document the above.
369
c0c9ea05
PH
3702002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
371
372 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
373 type; it isn't always big enough, since it doesn't necessarily
374 include non-terminals.
769b430f 375 (yytranslate): Expand definition of yy_token_number_type, so that
c0c9ea05
PH
376 the latter can be removed.
377 (yy_token_number_type): Remove, only one use.
378 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
379 don't use TokenNumberType as element type.
769b430f 380
c0c9ea05
PH
381 * tests/regression.at: Modify expected output to agree with change
382 to yyr1 and yytranslate.
769b430f 383
6390a83f
FK
3842002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
385
386 * src/reader.c (parse_action): Use copy_character instead of
387 obstack_1grow.
388
db7c8e9a
AD
3892002-05-13 Akim Demaille <akim@epita.fr>
390
391 * tests/regression.at (Token definitions): Prototype yylex and
392 yyerror.
393
fcc61800
PH
3942002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
395
158c687b 396 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
fcc61800
PH
397 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
398 32-bit arithmetic.
399 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
400
5683e9b2
AD
4012002-05-07 Akim Demaille <akim@epita.fr>
402
403 * tests/synclines.at: Be sure to prototype yylex and yyerror to
404 avoid GCC warnings.
405
0c2d3f4c
AD
4062002-05-07 Akim Demaille <akim@epita.fr>
407
408 Kill GCC warnings.
409
410 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
411 over the RHS of each rule.
412 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
413 * src/state.h (state_t): Member `nitems' is unsigned short.
414 * src/LR0.c (get_state): Adjust.
415 * src/reader.c (packgram): Likewise.
416 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
417 `Type'.
418 (muscle_insert_int_table): Remove, unused.
419 (prepare_rules): Remove `max'.
420
1565b720
AD
4212002-05-06 Akim Demaille <akim@epita.fr>
422
423 * src/closure.c (print_firsts): Display of the symbol tags.
424 (bitmatrix_print): Move to...
425 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
426 here.
427 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
428
cfaee611
AD
4292002-05-06 Akim Demaille <akim@epita.fr>
430
431 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
432 hash_do_for_each.
433
458be8e0
AD
4342002-05-06 Akim Demaille <akim@epita.fr>
435
436 * src/LR0.c (new_state, get_state): Instead of using the global
437 `kernel_size' and `kernel_base', have two new arguments:
438 `core_size' and `core'.
439 Adjust callers.
440
a900a624
AD
4412002-05-06 Akim Demaille <akim@epita.fr>
442
443 * src/reader.c (packgram): No longer end `ritem' with a 0
444 sentinel: it is not used.
445
d4e7d3a1
AD
4462002-05-05 Akim Demaille <akim@epita.fr>
447
448 New experimental feature: display the lookaheads in the report and
449 graph.
450
451 * src/print (print_core): When --trace-flag, display the rules
452 lookaheads.
453 * src/print_graph.c (print_core): Likewise.
454 Swap the arguments.
455 Adjust caller.
456
39ceb25b
AD
4572002-05-05 Akim Demaille <akim@epita.fr>
458
459 * tests/torture.at (Many lookaheads): New test.
460
5372019f
AD
4612002-05-05 Akim Demaille <akim@epita.fr>
462
463 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
464 (GENERATE_MUSCLE_INSERT_TABLE): this.
465 (output_int_table, output_unsigned_int_table, output_short_table)
466 (output_token_number_table, output_item_number_table): Replace with...
467 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
468 (muscle_insert_short_table, muscle_insert_token_number_table)
469 (muscle_insert_item_number_table): these.
470 Adjust all callers.
471 (prepare_tokens): Don't free `translations', since...
472 * src/reader.h, src/reader.c (grammar_free): do it.
473 Move to...
474 * src/gram.h, src/gram.c (grammar_free): here.
475 * data/bison.simple, data/bison.c++: b4_token_number_max is now
476 b4_translate_max.
477
5df5f6d5
AD
4782002-05-05 Akim Demaille <akim@epita.fr>
479
480 * src/output.c (output_unsigned_int_table): New.
481 (prepare_rules): `i' is unsigned.
482 `prhs', `rline', `r2' are unsigned int.
483 Rename muscle `rhs_number_max' as `rhs_max'.
484 Output muscles `prhs_max', `rline_max', and `r2_max'.
485 Free rline and r1.
486 * data/bison.simple, data/bison.c++: Adjust to use these muscles
487 to compute types instead of constant types.
488 * tests/regression.at (Web2c Actions): Adjust.
489
b87f8b21
AD
4902002-05-04 Akim Demaille <akim@epita.fr>
491
492 * src/symtab.h (SALIAS, SUNDEF): Rename as...
493 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
494 Adjust dependencies.
495 * src/output.c (token_definitions_output): Be sure not to output a
496 `#define 'a'' when fed with `%token 'a' "a"'.
497 * tests/regression.at (Token definitions): New.
498
8bb936e4
PE
4992002-05-03 Paul Eggert <eggert@twinsun.com>
500
501 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
502 for K&R C.
503
5042002-05-03 gettextize <bug-gnu-gettext@gnu.org>
505
506 * Makefile.am (SUBDIRS): Remove intl.
507 (EXTRA_DIST): Add config/config.rpath.
508
53c71a12
AD
5092002-05-03 Akim Demaille <akim@epita.fr>
510
511 * data/bison.simple (m4_if): Don't output empty enums.
512 And actually, output valid enum definitions :(.
513
289dd0cf
AD
5142002-05-03 Akim Demaille <akim@epita.fr>
515
516 * configure.bat: Remove, completely obsolete.
517 * Makefile.am (EXTRA_DIST): Adjust.
518 Don't distribute config.rpath...
519 * config/Makefile.am (EXTRA_DIST): Do it.
520
db85e524
AD
5212002-05-03 Akim Demaille <akim@epita.fr>
522
523 * configure.in (GETTEXT_VERSION): New.
524 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
525
83ccf991
AD
5262002-05-03 Akim Demaille <akim@epita.fr>
527
528 * data/bison.simple (b4_token_enum): New.
529 (b4_token_defines): Use it to output tokens both as #define and
530 enums.
531 Suggested by Paul Eggert.
532 * src/output.c (token_definitions_output): Don't output spurious
533 white spaces.
534
1f418995
AD
5352002-05-03 Akim Demaille <akim@epita.fr>
536
537 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
538
45119f04
RA
5392002-05-02 Robert Anisko <robert@lrde.epita.fr>
540
541 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
542 Update the stack class, give a try to deque as the default container.
543
b2d52318
AD
5442002-05-02 Akim Demaille <akim@epita.fr>
545
546 * data/bison.simple (yyparse): Do not implement @$ = @1.
547 (YYLLOC_DEFAULT): Adjust to do it.
548 * doc/bison.texinfo (Location Default Action): Fix.
549
3a8b4109
AD
5502002-05-02 Akim Demaille <akim@epita.fr>
551
552 * src/reader.c (parse_braces): Merge into...
553 (parse_action): this.
554
84614e13
AD
5552002-05-02 Akim Demaille <akim@epita.fr>
556
557 * configure.in (ALL_LINGUAS): Remove.
558 * po/LINGUAS, hr.po: New.
559
fdbcd8e2
AD
5602002-05-02 Akim Demaille <akim@epita.fr>
561
562 Remove the so called hairy (semantic) parsers.
563
564 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
565 * src/gram.h, src/gram.c (semantic_parser): Remove.
566 (rule_t): Remove the guard and guard_line members.
567 * src/lex.h (token_t): remove tok_guard.
568 * src/options.c (option_table): Remove %guard and %semantic_parser
569 support.
570 * src/output.c, src/output.h (guards_output): Remove.
571 (prepare): Adjust.
572 (token_definitions_output): Don't output the `T'
573 tokens (???).
574 (output_skeleton): Don't output the guards.
575 * src/files.c, src/files.c (attrsfile): Remove.
576 * src/reader.c (symbol_list): Remove the guard and guard_line
577 members.
578 Adjust dependencies.
579 (parse_guard): Remove.
580 * data/bison.hairy: Remove.
581 * doc/bison.texinfo (Environment Variables): Remove occurrences of
582 BISON_HAIRY.
583
82b6cb3f
AD
5842002-05-02 Akim Demaille <akim@epita.fr>
585
586 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
587 (parse_guard): Rename the formal argument `stack_offset' as
588 `rule_length', which is more readable.
589 Adjust callers.
590 (copy_at, copy_dollar): Instead of outputting the hard coded
591 values of $$, $n and so forth, output invocation to b4_lhs_value,
592 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
900c877b
AD
593 Note: this patch partially drops `semantic-parser' support: it
594 always does `rule_length - n', where semantic parsers ought to
595 always use `-n'.
82b6cb3f
AD
596 * data/bison.simple, data/bison.c++ (b4_lhs_value)
597 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
598
6cbfbcc5
AD
5992002-05-02 Akim Demaille <akim@epita.fr>
600
601 * configure.in (AC_INIT): Bump to 1.49b.
602 (AM_INIT_AUTOMAKE): Short invocation.
603
b8548114
AD
6042002-05-02 Akim Demaille <akim@epita.fr>
605
606 Version 1.49a.
607
c20cd1fa
AD
6082002-05-01 Akim Demaille <akim@epita.fr>
609
610 * src/skeleton.h: Remove.
611
8a9566d4
AD
6122002-05-01 Akim Demaille <akim@epita.fr>
613
614 * src/skeleton.h: Fix the #endif.
615 Reported by Magnus Fromreide.
616
8c6d399a
PE
6172002-04-26 Paul Eggert <eggert@twinsun.com>
618
619 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
620 Define if we define YYSTYPE and YYLTYPE, respectively.
b756bb75 621 (YYCOPY): Fix [] quoting problem in the non-GCC case.
8a9566d4 622
2b7ed18a
RA
6232002-04-25 Robert Anisko <robert@lrde.epita.fr>
624
625 * src/scan-skel.l: Postprocess quadrigraphs.
626
627 * src/reader.c (copy_character): New function, used to output
628 single characters while replacing `[' and `]' with quadrigraphs, to
629 avoid troubles with M4 quotes.
630 (copy_comment): Output characters with copy_character.
631 (read_additionnal_code): Likewise.
632 (copy_string2): Likewise.
633 (copy_definition): Likewise.
634
635 * tests/calc.at: Exercise M4 quoting.
636
34a89c50
AD
6372002-04-25 Akim Demaille <akim@epita.fr>
638
639 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
640 between `!' and the command.
641 Reported by Paul Eggert.
642
0dd1580a
RA
6432002-04-24 Robert Anisko <robert@lrde.epita.fr>
644
645 * tests/calc.at: Exercise prologue splitting.
646
647 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
648 `b4_post_prologue' instead of `b4_prologue'.
649
650 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
651 muscles.
652 (output): Free pre_prologue_obstack and post_prologue_obstack.
653 * src/files.h, src/files.c (attrs_obstack): Remove.
654 (pre_prologue_obstack, post_prologue_obstack): New.
655 * src/reader.c (copy_definition): Add a parameter to specify the
656 obstack to fill, instead of using attrs_obstack unconditionally.
657 (read_declarations): Pass pre_prologue_obstack to copy_definition if
658 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
659
83c1796f
PE
6602002-04-23 Paul Eggert <eggert@twinsun.com>
661
662 * data/bison.simple: Remove unnecessary commentary and white
663 space differences from 1_29-branch.
664 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
665
666 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
667 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
668 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
669 constructors or destructors.
670
671 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
672
1207eeac
AD
6732002-04-23 Akim Demaille <akim@epita.fr>
674
675 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
676 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
677 location with columns.
678 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
679 All reported by Paul Eggert.
680
78ab8f67
AD
6812002-04-22 Akim Demaille <akim@epita.fr>
682
683 * src/reduce.c (dump_grammar): Move to...
684 * src/gram.h, src/gram.c (grammar_dump): here.
685 Be sure to separate long item numbers.
686 Don't read the members of a rule's prec if its nil.
687
133c20e2
AD
6882002-04-22 Akim Demaille <akim@epita.fr>
689
690 * src/output.c (table_size, table_grow): New.
691 (MAXTABLE): Remove, replace uses with table_size.
692 (pack_vector): Instead of dying when the table is too big, grow it.
693
9515e8a7
AD
6942002-04-22 Akim Demaille <akim@epita.fr>
695
696 * data/bison.simple (yyr1): Its type is that of a token number.
697 * data/bison.c++ (r1_): Likewise.
698 * tests/regression.at (Web2c Actions): Adjust.
699
23c5a174
AD
7002002-04-22 Akim Demaille <akim@epita.fr>
701
702 * src/reader.c (token_translations_init): 256 is now the default
703 value for the error token, i.e., it will be assigned another
704 number if the user assigned 256 to one of her tokens.
705 (reader): Don't force 256 to error.
706 * doc/bison.texinfo (Symbols): Adjust.
707 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
708 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
709 etc. instead of 10, 20, 30 (which was used to `jump' over error
710 (256) and undefined (2)).
711
5fbb0954
AD
7122002-04-22 Akim Demaille <akim@epita.fr>
713
714 Propagate more token_number_t.
715
716 * src/gram.h (token_number_as_item_number)
717 (item_number_as_token_number): New.
718 * src/output.c (GENERATE_OUTPUT_TABLE): New.
719 Use it to create output_item_number_table and
720 output_token_number_table.
721 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
722 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
723 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
724 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
725
4f940944
AD
7262002-04-22 Akim Demaille <akim@epita.fr>
727
728 * src/output.h, src/output.c (get_lines_number): Remove.
729
3ded9a63
AD
7302002-04-19 Akim Demaille <akim@epita.fr>
731
732 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
733 as Lex/Flex'.
734 (Debugging): More details about enabling the debugging features.
735 (Table of Symbols): Describe $$, $n, @$, and @n.
736 Suggested by Tim Josling.
737
e0c471a9
AD
7382002-04-19 Akim Demaille <akim@epita.fr>
739
740 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
741
fecc10cd
AD
7422002-04-10 Akim Demaille <akim@epita.fr>
743
744 * src/system.h: Rely on HAVE_LIMITS_H.
745 Suggested by Paul Eggert.
746
51dec47b
AD
7472002-04-09 Akim Demaille <akim@epita.fr>
748
749 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
750 full stderr, and strip it according to the bison options, instead
751 of composing the error message from different bits.
752 This makes it easier to check for several error messages.
753 Adjust all the invocations.
754 Add an invocation exercising the error token.
755 Add an invocation demonstrating a stupid error message.
756 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
757 Adjust the tests.
758 Error message are for stderr, not stdout.
759
007a50a4
AD
7602002-04-09 Akim Demaille <akim@epita.fr>
761
762 * src/gram.h, src/gram.c (error_token_number): Remove, use
763 errtoken->number.
764 * src/reader.c (reader): Don't specify the user token number (2)
765 for $undefined, as it uselessly prevents using it.
766 * src/gram.h (token_number_t): Move to...
767 * src/symtab.h: here.
768 (state_t.number): Is a token_number_t.
769 * src/print.c, src/reader.c: Use undeftoken->number instead of
770 hard coded 2.
771 (Even though this 2 is not the same as above: the number of the
772 undeftoken remains being 2, it is its user token number which
773 might not be 2).
774 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
775 `user_token_number_max'.
776 Output `undef_token_number'.
777 * data/bison.simple, data/bison.c++: Use them.
778 Be sure to map invalid yylex return values to
779 `undef_token_number'. This saves us from gratuitous SEGV.
780
781 * tests/conflicts.at (Solved SR Conflicts)
782 (Unresolved SR Conflicts): Adjust.
783 * tests/regression.at (Web2c Actions): Adjust.
784
06446ccf
AD
7852002-04-08 Akim Demaille <akim@epita.fr>
786
787 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
788 Adding #line.
789 Remove the duplicate `typedefs'.
790 (RhsNumberType): Fix the declaration and various other typos.
791 Use __ofile__.
792 * data/bison.simple: Use __ofile__.
793 * src/scan-skel.l: Handle __ofile__.
794
62a3e4f0
AD
7952002-04-08 Akim Demaille <akim@epita.fr>
796
797 * src/gram.h (item_number_t): New, the type of item numbers in
798 RITEM. Note that it must be able to code symbol numbers as
799 positive number, and the negation of rule numbers as negative
800 numbers.
801 Adjust all dependencies (pretty many).
802 * src/reduce.c (rule): Remove this `short *' pointer: use
803 item_number_t.
804 * src/system.h (MINSHORT, MAXSHORT): Remove.
805 Include `limits.h'.
806 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
807 (shortcpy): Remove.
808 (MAXTABLE): Move to...
809 * src/output.c (MAXTABLE): here.
810 (prepare_rules): Use output_int_table to output rhs.
811 * data/bison.simple, data/bison.c++: Adjust.
812 * tests/torture.at (Big triangle): Move the limit from 254 to
813 500.
814 * tests/regression.at (Web2c Actions): Ajust.
815
816 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
817 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
818 passes, but produces negative #line number, once fixed, GCC is
819 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
820 C), it passes.
821 * src/state.h (state_h): Code input lines on ints, not shorts.
822
bb88b0fc
AD
8232002-04-08 Akim Demaille <akim@epita.fr>
824
825 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
826 and then the grammar.
827
9a636f47
AD
8282002-04-08 Akim Demaille <akim@epita.fr>
829
830 * src/system.h: No longer using strndup.
831
680e8701
AD
8322002-04-07 Akim Demaille <akim@epita.fr>
833
834 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
835 * src/output.c (output_table_data): Return the longest number.
836 (prepare_tokens): Output `token_number_max').
837 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
838 New.
839 Use them to define yy_token_number_type/TokenNumberType.
840 Use this type for yytranslate.
841 * tests/torture.at (Big triangle): Push the limit from 124 to
842 253.
843 * tests/regression.at (Web2c Actions): Adjust.
844
817e9f41
AD
8452002-04-07 Akim Demaille <akim@epita.fr>
846
847 * tests/torture.at (Big triangle): New.
848 (GNU AWK Grammar, GNU Cim Grammar): Move to...
849 * tests/existing.at: here.
850
5123689b
AD
8512002-04-07 Akim Demaille <akim@epita.fr>
852
853 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
854 nritems.
855 Adjust dependencies.
856
f3849179
AD
8572002-04-07 Akim Demaille <akim@epita.fr>
858
859 * src/reader.c: Normalize increments to prefix form.
860
bd02036a
AD
8612002-04-07 Akim Demaille <akim@epita.fr>
862
863 * src/reader.c, symtab.c: Remove debugging code.
864
db8837cb
AD
8652002-04-07 Akim Demaille <akim@epita.fr>
866
867 Rename all the `bucket's as `symbol_t'.
868
869 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
870 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
871 * src/symtab.c, src/symtab.h (bucket): Rename as...
872 (symbol_t): this.
873 (symbol_list_new, bucket_check_defined, bucket_make_alias)
874 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
875 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
876 (buckets_new, buckets_free, buckets_do): Rename as...
877 (symbol_list_new, symbol_check_defined, symbol_make_alias)
878 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
879 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
880 (symbols_new, symbols_free, symbols_do): these.
881
72a23c97
AD
8822002-04-07 Akim Demaille <akim@epita.fr>
883
884 Use lib/hash for the symbol table.
885
886 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
887 EOF.
888 * src/lex.c (lex): Set the `number' member of new terminals.
889 * src/reader.c (bucket_check_defined, bucket_make_alias)
890 (bucket_check_alias_consistence, bucket_translation): New.
891 (reader, grammar_free, readgram, token_translations_init)
892 (packsymbols): Adjust.
893 (reader): Number the predefined tokens.
894 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
895 for predefined tokens.
896 * src/symtab.h (bucket): Remove all the hash table related
897 members.
898 * src/symtab.c (symtab): Replace by...
899 (bucket_table): this.
900 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
901 (buckets_new, buckets_do): New.
902
280a38c3
AD
9032002-04-07 Akim Demaille <akim@epita.fr>
904
905 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
906 (start_symbol, max_user_token_number, semantic_parser)
907 (error_token_number): Initialize.
908 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
909 Initialize.
910 (reader): Don't.
911 (errtoken, eoftoken, undeftoken, axiom): Extern.
912
03b31c0c
AD
9132002-04-07 Akim Demaille <akim@epita.fr>
914
915 * src/gram.h (rule_s): prec and precsym are now pointers
916 to the bucket giving the priority/associativity.
917 Member `associativity' removed: useless.
918 * src/reduce.c, src/conflicts.c: Adjust.
919
8b3df748
AD
9202002-04-07 Akim Demaille <akim@epita.fr>
921
922 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
923 Properly escape the symbols' TAG when outputting them.
924
e601aa1d
AD
9252002-04-07 Akim Demaille <akim@epita.fr>
926
927 * src/lalr.h (LA): Is a bitsetv, not bitset*.
928
b0299a2e
AD
9292002-04-07 Akim Demaille <akim@epita.fr>
930
931 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
932 (LArule): this, which is an array to rule_t*.
933 * src/print.c, src/conflicts.c: Adjust.
934
d7e1f00c
AD
9352002-04-07 Akim Demaille <akim@epita.fr>
936
937 * src/gram.h (rule_t): Rename `number' as `user_number'.
938 `number' is a new member.
939 Adjust dependencies.
940 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
941
cc9305dd
AD
9422002-04-07 Akim Demaille <akim@epita.fr>
943
944 As a result of the previous patch, it is no longer needed
945 to reorder ritem itself.
946
947 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
948
b0940840
AD
9492002-04-07 Akim Demaille <akim@epita.fr>
950
951 Be sure never to walk through RITEMS, but use only data related to
952 the rules themselves. RITEMS should be banished.
953
954 * src/output.c (output_token_translations): Rename as...
955 (prepare_tokens): this.
956 In addition to `translate', prepare the muscles `tname' and
957 `toknum', which were handled by...
958 (output_rule_data): this.
959 Remove, and move the remainder of its outputs into...
960 (prepare_rules): this new routines, which also merges content from
961 (output_gram): this.
962 (prepare_rules): Be sure never to walk through RITEMS.
963 (output_stos): Rename as...
964 (prepare_stos): this.
965 (output): Always invoke prepare_states, after all, just don't use it
966 in the output if you don't need it.
967
643a5994
AD
9682002-04-07 Akim Demaille <akim@epita.fr>
969
970 * src/LR0.c (new_state): Display `nstates' as the name of the
971 newly created state.
972 Adjust to initialize first_state and last_state if needed.
973 Be sure to distinguish the initial from the final state.
974 (new_states): Create the itemset of the initial state, and use
975 new_state.
976 * src/closure.c (closure): Now that the initial state has its
977 items properly set, there is no need for a special case when
978 creating `ruleset'.
979
980 As a result, now the rule 0, reducing to $axiom, is visible in the
981 outputs. Adjust the test suite.
982
983 * tests/conflicts.at (Solved SR Conflicts)
984 (Unresolved SR Conflicts): Adjust.
985 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
986 * tests/conflicts.at (S/R in initial): New.
987
b4c4ccc2
AD
9882002-04-07 Akim Demaille <akim@epita.fr>
989
990 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
991 the RHS of the rules.
992 * src/output.c (output_gram): Likewise.
993
bba97eb2
AD
9942002-04-07 Akim Demaille <akim@epita.fr>
995
996 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
997 bucket.
998 Adjust all dependencies.
999 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
1000 `number' of the buckets too.
1001 * src/gram.h: Include `symtab.h'.
1002 (associativity): Move to...
1003 * src/symtab.h: here.
1004 No longer include `gram.h'.
1005
c3b407f4
AD
10062002-04-07 Akim Demaille <akim@epita.fr>
1007
1008 * src/gram.h, src/gram.c (rules_rhs_length): New.
1009 (ritem_longest_rhs): Use it.
1010 * src/gram.h (rule_t): `number' is a new member.
1011 * src/reader.c (packgram): Set it.
1012 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
1013 the end of `rules', and count them out of `nrules'.
1014 (reduce_output, dump_grammar): Adjust.
1015 * src/print.c (print_grammar): It is no longer needed to check for
1016 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
1017 * tests/reduce.at (Reduced Automaton): New test.
1018
11652ab3
AD
10192002-04-07 Akim Demaille <akim@epita.fr>
1020
1021 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
1022 lacking `+ 1' to nrules, Bison reported as useless a token if it
1023 was used solely to set the precedence of the last rule...
1024
26b23c1a
AD
10252002-04-07 Akim Demaille <akim@epita.fr>
1026
1027 * data/bison.c++, data/bison.simple: Don't output the current file
1028 name in #line, to avoid useless diffs between two identical
1029 outputs under different names.
1030
18bcecb0
AD
10312002-04-07 Akim Demaille <akim@epita.fr>
1032
1033 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
1034 Normalize loops to using `< nrules + 1', not `<= nrules'.
1035
fa770c86
AD
10362002-04-07 Akim Demaille <akim@epita.fr>
1037
1038 * TODO: Update.
1039
d9b739c3
AD
10402002-04-07 Akim Demaille <akim@epita.fr>
1041
1042 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
1043 bucket.value as bucket.number.
1044
99013900
AD
10452002-04-07 Akim Demaille <akim@epita.fr>
1046
1047 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
1048 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1049 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
1050 RHS, instead of being an index in RITEMS.
1051
e966383b
PE
10522002-04-04 Paul Eggert <eggert@twinsun.com>
1053
1054 * doc/bison.texinfo: Update copyright date.
1055 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
1056 (Symbols): Warn about running Bison in one character set,
1057 but compiling and/or running in an incompatible one.
1058 Warn about character code 256, too.
1059
10602002-04-03 Paul Eggert <eggert@twinsun.com>
1061
1062 * src/bison.data (YYSTACK_ALLOC): Depend on whether
1063 YYERROR_VERBOSE is nonzero, not whether it is defined.
1064
1065 Merge changes from bison-1_29-branch.
c307773e 1066
8d6c48b9
PE
10672002-03-20 Paul Eggert <eggert@twinsun.com>
1068
1069 Merge fixes from Debian bison_1.34-1.diff.
1070
1071 * configure.in (AC_PREREQ): 2.53.
1072
e53c6322
AD
10732002-03-20 Akim Demaille <akim@epita.fr>
1074
1075 * src/conflicts.c (log_resolution): Argument `resolution' is const.
1076
9ffbeca7
PE
10772002-03-19 Paul Eggert <eggert@twinsun.com>
1078
21db0b2a
PE
1079 * src/bison.simple (YYCOPY): New macro.
1080 (YYSTACK_RELOCATE): Use it.
1081 Remove Type arg; no longer needed. All callers changed.
1082 (yymemcpy): Remove; no longer needed.
1083
9ffbeca7
PE
1084 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
1085 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1086
642cb8f8
AD
10872002-03-19 Akim Demaille <akim@epita.fr>
1088
1089 Test and fix the #line outputs.
1090
1091 * tests/atlocal.at (GCC): New.
1092 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
1093 (Prologue synch line, ,%union synch line, Postprologue synch line)
1094 (Action synch line, Epilogue synch line): New tests.
1095 * src/reader.c (parse_union_decl): Define the muscle stype_line.
1096 * data/bison.simple, data/bison.c++: Use it.
1097
3c31a486
AD
10982002-03-19 Akim Demaille <akim@epita.fr>
1099
1100 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
1101 (Solved SR Conflicts, %expect not enough, %expect right)
1102 (%expect too much): Move to...
1103 * tests/conflicts.at: this new file.
1104
0d8bed56
AD
11052002-03-19 Akim Demaille <akim@epita.fr>
1106
1107 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1108 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
1109 that we can move to enums for instance.
1110 * src/output.c (token_definitions_output): Output a list of
1111 `token-name, token-number' instead of the #define.
1112 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
1113
9208d17f
AD
11142002-03-14 Akim Demaille <akim@epita.fr>
1115
1116 Use Gettext 0.11.1.
1117
af27eacb
RA
11182002-03-09 Robert Anisko <robert@lrde.epita.fr>
1119
1120 * data/bison.c++: Make the user able to add members to the generated
1121 parser by subclassing.
1122
9101a310
RA
11232002-03-05 Robert Anisko <robert@lrde.epita.fr>
1124
1125 * src/reader.c (read_additionnal_code): `c' should be an integer, not
1126 a character.
1127 Reported by Nicolas Tisserand and Nicolas Burrus.
1128
fff9bf0b
RA
11292002-03-04 Robert Anisko <robert@lrde.epita.fr>
1130
1131 * src/reader.c: Warn about lacking semi-colons, do not complain.
1132
64dba31e
RA
11332002-03-04 Robert Anisko <robert@lrde.epita.fr>
1134
1135 * data/bison.c++: Remove a debug line.
1136
374f5a14
RA
11372002-03-04 Robert Anisko <robert@lrde.epita.fr>
1138
1139 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
1140 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
1141 provide a default implementation.
1142
bfcf1f3a
AD
11432002-03-04 Akim Demaille <akim@epita.fr>
1144
1145 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
1146 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
1147 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
1148 * tests/semantic.at (Parsing Guards): Similarly.
1149 * src/reader.at (readgram): Complain if the last rule is not ended
1150 with a semi-colon.
1151
65ccf9fc
AD
11522002-03-04 Akim Demaille <akim@epita.fr>
1153
1154 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
1155 * src/closure.c: here.
1156 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
1157 RTC.
1158 * src/warshall.h, src/warshall.c: Remove.
1159 * tests/sets.at (Broken Closure): Adjust.
1160
d0039cbc
AD
11612002-03-04 Akim Demaille <akim@epita.fr>
1162
1163 * src/output.c (output_skeleton): tempdir is const.
1164 bytes_read is unused.
1165
345cea78
AD
11662002-03-04 Akim Demaille <akim@epita.fr>
1167
1168 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1169 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
1170 Update.
1171 From Michael Hayes.
1172
564801f7
AD
11732002-03-04 Akim Demaille <akim@epita.fr>
1174
1175 * src/closure.c (closure): `r' is unused.
1176
e5352bc7
AD
11772002-03-04 Akim Demaille <akim@epita.fr>
1178
1179 * tests/sets.at (Broken Closure): Add the ending `;'.
1180 * src/reader.at (readgram): Complain if a rule is not ended with a
1181 semi-colon.
1182
914feea9
AD
11832002-03-04 Akim Demaille <akim@epita.fr>
1184
1185 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
1186 (count_sr_conflicts): Use bitset_count.
1187 * src/reduce.c (inaccessable_symbols): Ditto.
1188 (bits_size): Remove.
1189 * src/warshall.h, src/warshall.c: Convert to bitsetv.
1190
f0250de6
AD
11912002-03-04 Akim Demaille <akim@epita.fr>
1192
1193 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
1194 * src/reduce.c: Remove the `bitset_zero's following the
1195 `bitset_create's, as now it is performed by the latter.
1196
ef017502
AD
11972002-03-04 Akim Demaille <akim@epita.fr>
1198
1199 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
1200 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
1201 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
1202 latest sources from Michael.
1203
76514394
AD
12042002-03-04 Akim Demaille <akim@epita.fr>
1205
1206 * src/output.c (output): Don't free the grammar.
1207 * src/reader.c (grammar_free): New.
1208 * src/main.c (main): Call it and don't free symtab here.
1209
55024580
AD
12102002-03-04 Akim Demaille <akim@epita.fr>
1211
1212 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
1213 before returning.
1214 Reported by Benoit Perrot.
1215
f9abaa2c
AD
12162002-03-04 Akim Demaille <akim@epita.fr>
1217
1218 Use bitset operations when possible, not loops over bits.
1219
1220 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
1221 bitset_or.
1222 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
1223 * src/reduce.c (useless_nonterminals): Formatting changes.
1224 * src/warshall.c (TC): Use bitset_or.
1225
0e721e75
AD
12262002-03-04 Akim Demaille <akim@epita.fr>
1227
1228 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
1229 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
1230 Ditto.
1231
0fb1ffb1
AD
12322002-03-04 Akim Demaille <akim@epita.fr>
1233
1234 * src/lalr.c (F): Now a bitset*.
1235 Adjust all dependencies.
1236
b86796bf
AD
12372002-03-04 Akim Demaille <akim@epita.fr>
1238
1239 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
1240 Adjust all dependencies.
1241
602bbf31
AD
12422002-03-04 Akim Demaille <akim@epita.fr>
1243
1244 * src/L0.c, src/LR0.h (nstates): Be size_t.
1245 Adjust comparisons (signed vs unsigned).
1246 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
1247 bitset*.
1248 Adjust all dependencies.
1249
d8a0245c
AD
12502002-03-04 Akim Demaille <akim@epita.fr>
1251
1252 * src/closure.c (firsts): Now, also a bitset.
1253 Adjust all dependencies.
1254 (varsetsize): Remove, now unused.
1255 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
1256
34ba9743
AD
12572002-03-04 Akim Demaille <akim@epita.fr>
1258
1259 * src/print.c: Convert to use bitset.h, not hand coded iterations
1260 over ints.
1261
ed86e78c
AD
12622002-03-04 Akim Demaille <akim@epita.fr>
1263
1264 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
1265
dfdb1797
AD
12662002-03-04 Akim Demaille <akim@epita.fr>
1267
1268 * src/closure.c (ruleset): Be a bitset.
1269 (rulesetsize): Remove.
1270
7086e707
AD
12712002-03-04 Akim Demaille <akim@epita.fr>
1272
1273 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1274 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
1275 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
1276 * src/closure.c (fderives): Be an array of bitsets.
1277
98254360
RA
12782002-02-28 Robert Anisko <robert@lrde.epita.fr>
1279
1280 * data/bison.c++: Merge the two generated headers. Insert a copyright
1281 notice in each output file.
1282
a75c057f
AD
12832002-02-28 Akim Demaille <akim@epita.fr>
1284
1285 * data/bison.c++: Copy the prologue of bison.simple to fetch
1286 useful M4 definitions, such as b4_header_guard.
1287
06b00abc
AD
12882002-02-25 Akim Demaille <akim@epita.fr>
1289
1290 * src/getargs.c (version): Give the name of the authors, and use a
a75c057f
AD
1291 translator friendly scheme for the bgr
1292 copyright notice.
06b00abc 1293
70e7d534
AD
12942002-02-25 Akim Demaille <akim@epita.fr>
1295
1296 * src/output.c (header_output): Remove, now handled completely via
1297 M4.
1298
abe017f6
AD
12992002-02-25 Akim Demaille <akim@epita.fr>
1300
1301 * m4/m4.m4: New, from CVS Autoconf.
1302 * configure.in: Invoke it.
1303 * src/output.c (output_skeleton): Use its result instead of the
1304 hard coded name.
1305
381fb12e
AD
13062002-02-25 Akim Demaille <akim@epita.fr>
1307
1308 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
1309 Fileutils 4.1.5.
1310 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
1311 * src/output.c (output_skeleton): Use mkstemp to create a real
1312 temporary file.
1313 Move the filling of `skeleton' and its muscle to...
1314 (prepare): here.
1315 (output): Move the definition of the prologue muscle to...
1316 (prepare): here.
1317 * src/system.h (DEFAULT_TMPDIR): New.
1318
6f38107f
PE
13192002-02-14 Paul Eggert <eggert@twinsun.com>
1320
1321 Remove the support for C++ namespace cleanliness; it was
1322 causing more problems than it was curing, since it didn't work
1323 properly on some nonstandard C++ compilers. This can wait
1324 for a proper C++ parser.
1325
1326 * NEWS: Document this.
1327 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
1328 of C++, as it's treated like C now.
1329 * src/bison.simple (YYSTD): Remove.
1330 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
1331 Treat C++ just like Standard C instead of trying to support
1332 namespace cleanliness.
1333
80cce3da
AD
13342002-02-14 Akim Demaille <akim@epita.fr>
1335
1336 * tests/regression.at (else): Adjust to Andreas' change.
1337
842e8679
AD
13382002-02-14 Akim Demaille <akim@epita.fr>
1339
1340 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
1341
4bda3f10
AD
13422002-02-13 Andreas Schwab <schwab@suse.de>
1343
1344 * src/output.c (output_rule_data): Don't output NULL, it might
1345 not be defined yet.
1346
4162fa07 13472002-02-11 Robert Anisko <robert@lrde.epita.fr>
b418ecd8 1348
4162fa07
RA
1349 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
1350 (Copyright notice): Update.
b418ecd8 1351
bd16a5dc
AD
13522002-02-11 Akim Demaille <akim@epita.fr>
1353
1354 * tests/regression.at (%nonassoc and eof): Don't include
1355 nonportable headers.
1356
8d69a1a3
RA
13572002-02-08 Robert Anisko <robert@lrde.epita.fr>
1358
1359 * data/bison.c++: Correct error recovery. Make the user able to
1360 initialize the starting location.
1361
9b2d0677
AD
13622002-02-07 Akim Demaille <akim@epita.fr>
1363
1364 * tests/input.at: New.
1365
69e2658b
RA
13662002-02-07 Robert Anisko <robert@lrde.epita.fr>
1367
1368 * data/bison.c++: Replace some direct m4 expansions by constants. Be
9b2d0677 1369 more consistent when naming methods and variables. Put preprocessor
69e2658b
RA
1370 directives around tables only needed for debugging.
1371
4aacc3a7
RA
13722002-02-07 Robert Anisko <robert@lrde.epita.fr>
1373
1374 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
1375 C++ parsers.
1376 (yy::b4_name::parse): Use print_.
1377
762a801e
RA
13782002-02-07 Robert Anisko <robert@lrde.epita.fr>
1379
1380 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
1381
4bb2bc3f
RA
13822002-02-07 Robert Anisko <robert@lrde.epita.fr>
1383
1384 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
1385 C++ parsers.
1386 (yy::b4_name::parse): Build verbose error messages, and use error_.
1387
6b45a3ca
RA
13882002-02-06 Robert Anisko <robert@lrde.epita.fr>
1389
1390 * data/bison.c++: Fix m4 quoting in comments.
1391
50997c6e
RA
13922002-02-06 Robert Anisko <robert@lrde.epita.fr>
1393
1394 * data/bison.c++: Adjust the parser code. Fix some muscles that were
1395 not expanded by m4.
1396
3f3eed27
AD
13972002-02-05 Akim Demaille <akim@epita.fr>
1398
1399 * data/bison.c++: Adjust to the M4 back end.
1400 More is certainly needed.
1401
be2a1a68
AD
14022002-02-05 Akim Demaille <akim@epita.fr>
1403
1404 Give a try to M4 as a back end.
1405
1406 * lib/readpipe.c: New, from wdiff.
1407 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
1408 BISON_HAIRY.
1409 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
1410 specific values. Now it is m4 that performs the lookup.
1411 * src/parse-skel.y: Remove.
1412 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
1413 * src/output.c (actions_output, guards_output)
1414 (token_definitions_output): No longer keeps track of the output
1415 line number, hence remove the second argument.
1416 (guards_output): Check against the guard member of a rule, not the
1417 action member.
1418 Adjust callers.
1419 (output_skeleton): Don't look for the skeleton location, let m4 do
1420 that.
1421 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
1422 file will be used.
1423 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
1424 (prepare): Given that for the time being changesyntax is not
1425 usable in M4, rename the muscles using `-' to `_'.
1426 Define `defines_flag', `output_parser_name' and `output_header_name'.
1427 * src/output.h (actions_output, guards_output)
1428 (token_definitions_output): Adjust prototypes.
1429 * src/scan-skel.l: Instead of scanning the skeletons, it now
1430 processes the output of m4: `__oline__' and `#output'.
1431 * data/bison.simple: Adjust to be used by M4(sugar).
1432 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
1433 to date.
1434 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
1435 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
1436 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
1437 shamelessly stolen from CVS Autoconf.
1438
beda758b
AD
14392002-02-05 Akim Demaille <akim@epita.fr>
1440
1441 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
1442 * configure.in: Check for the declarations of free and malloc.
1443 * src/muscle_tab.c: Adjust.
1444
5ece6d43
AD
14452002-02-05 Akim Demaille <akim@epita.fr>
1446
1447 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
1448 which have no values.
1449
5bb18f9a
AD
14502002-02-05 Akim Demaille <akim@epita.fr>
1451
1452 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
1453 * data/: here.
1454
894dd62e
PE
14552002-01-29 Paul Eggert <eggert@twinsun.com>
1456
1457 * src/bison.simple (YYSIZE_T): Do not define merely because
1458 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
1459 On some platforms, <alloca.h> does not declare YYSTD (size_t).
1460
82841af7
AD
14612002-01-27 Akim Demaille <akim@epita.fr>
1462
1463 Fix `%nonassoc and eof'.
1464
1465 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
1466 which were not properly copied! Replace
1467 memcpy (res->errs, src->errs, src->nerrs);
1468 with
1469 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
1470 !!!
1471 * tests/regression.at (%nonassoc and eof): Adjust to newest
1472 Autotest: `.' is not in the PATH.
1473
318b76e9
AD
14742002-01-27 Akim Demaille <akim@epita.fr>
1475
1476 * tests/sets.at (AT_EXTRACT_SETS): New.
1477 (Nullable): Use it.
1478 (Firsts): New.
1479
30d2f3d5
AD
14802002-01-26 Akim Demaille <akim@epita.fr>
1481
1482 * tests/actions.at, tests/calc.at, tests/headers.at,
1483 * tests/torture.at: Adjust to the newest Autotest which no longer
1484 forces `.' in the PATH.
1485
30f8c395
AD
14862002-01-25 Akim Demaille <akim@epita.fr>
1487
1488 * tests/regression.at (%nonassoc and eof): New.
1489 Suggested by Robert Anisko.
1490
29ae55f1
AD
14912002-01-24 Akim Demaille <akim@epita.fr>
1492
1493 Bison dumps core when trying to complain about broken input files.
1494 Reported by Cris van Pelt.
1495
1496 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
1497 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
1498 into...
1499 (Invalid inputs): Strengthen: exercise parse_percent_token.
1500
2b548aa6
RA
15012002-01-24 Robert Anisko <robert.anisko@epita.fr>
1502
1503 * src/Makefile.am: Add bison.c++.
1504 * src/bison.c++: New skeleton.
1505
bb0146c2
AD
15062002-01-21 Paolo Bonzini <bonzini@gnu.org>
1507
1508 * po/it.po: New.
1509
bec30531
AD
15102002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
1511
1512 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
1513
fc6edc45
MA
15142002-01-20 Marc Autret <marc@gnu.org>
1515
1516 * src/files.c (compute_output_file_names): Fix
1517
5e5d5415
MA
15182002-01-20 Marc Autret <marc@gnu.org>
1519
1520 * tests/output.at: New test.
1521 * src/files.c (compute_base_names): Don't map extensions when
1522 the YACC flag is set, use defaults.
1523 Reported by Evgeny Stambulchik.
1524
44ea3fbd
MA
15252002-01-20 Marc Autret <marc@gnu.org>
1526
bb0146c2 1527 * src/system.h: Need to define __attribute__ away for non-GCC
44ea3fbd
MA
1528 compilers as well (i.e. the vendor C compiler).
1529 Suggested by Albert Chin-A-Young.
1530
338963d1
TVH
15312002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
1532
1533 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
1534 canonical definition.
1535 * src/system.h: Use the canonical definition for PARAMS (avoids
1536 a conflict with the macro from lib/hash.h).
1537
c57b2479
AD
15382002-01-11 Akim Demaille <akim@epita.fr>
1539
1540 * configure.in: Use AC_FUNC_STRNLEN.
d9e9746c 1541 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
c57b2479 1542
b85810ae
AD
15432002-01-09 Akim Demaille <akim@epita.fr>
1544
1545 * src/files.c, src/files.h (output_infix): New.
1546 (tab_extension): Remove.
1547 (compute_base_names): Compute the former, drop the latter.
1548 * src/output.c (prepare): Insert the muscles `output-infix', and
1549 `output-suffix'.
1550 * src/parse-skel.y (string, string.1): New.
1551 (section.header): Use it.
1552 (section.yacc): Remove.
1553 (prefix): Remove too.
1554 * src/scan-skel.l: Adjust.
1555 * src/bison.simple, src/bison.hairy: Adjust.
1556
cae60122
AD
15572002-01-09 Akim Demaille <akim@epita.fr>
1558
1559 * configure.in (WERROR_CFLAGS): Compute it.
1560 * src/Makefile.am (CFLAGS): Pass it.
1561 * tests/atlocal.in (CFLAGS): Idem.
1562 * src/files.c: Fix a few warnings.
1563 (get_extension_index): Remove, unused.
1564
ae404801
AD
15652002-01-08 Akim Demaille <akim@epita.fr>
1566
1567 * src/getargs.c (AS_FILE_NAME): New.
1568 (getargs): Use it to convert DOSish file names.
1569 * src/files.c (base_name): Rename as full_base_name to avoid
1570 clashes with `base_name ()'.
1571 (filename_split): New.
1572 (compute_base_names): N-th rewrite, using filename_split.
1573
22312b71
AD
15742002-01-08 Akim Demaille <akim@epita.fr>
1575
1576 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
1577 New, stolen from the Fileutils 4.1.
1578 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1579 * configure.in: Check for the presence of memrchr, and of its
1580 prototype.
1581
a67cef01
TVH
15822002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
1583
1584 * lib/hash.h (__P): Added definition for this macro.
1585 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
1586 BUILT_SOURCES, to ensure they are generated first.
1587 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
1588 %error-verbose to allow bootstrapping with bison 1.30x.
1589
2b25d624
AD
15902002-01-06 Akim Demaille <akim@epita.fr>
1591
1592 * src/reader.c (parse_braces): Don't fetch the next char, the
1593 convention is to fetch on entry.
1594 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
1595 'switch' without a following semicolon.
1596 * tests/regression.at (braces parsing): New.
1597
3460813b
AD
15982002-01-06 Akim Demaille <akim@epita.fr>
1599
1600 Bison is dead wrong in its RR conflict reports.
1601
1602 * tests/torture.at (GNU Cim Grammar): New.
1603 * src/conflicts.c (count_rr_conflicts): Fix.
1604
73784c64
AD
16052002-01-06 Akim Demaille <akim@epita.fr>
1606
1607 Creating package.m4 from configure.ac causes too many problems.
1608
1609 * tests/Makefile.am (package.m4): Create it by hand,
1610 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
1611
25d81090
AD
16122002-01-06 Akim Demaille <akim@epita.fr>
1613
1614 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
1615 skeleton.h.
1616
a9b8959e
PE
16172002-01-04 Paul Eggert <eggert@twinsun.com>
1618
1619 * doc/bison.texinfo (Debugging):
1620 Remove YYSTDERR; it's no longer defined or used.
1621 Also, s/cstdio.h/cstdio/.
1622
25d81090
AD
16232002-01-03 Akim Demaille <akim@epita.fr>
1624
1625 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
1626
1109455c
AD
16272002-01-03 Akim Demaille <akim@epita.fr>
1628
1629 * src/parse-skel.y (process_skeleton): Don't bind the parser's
1630 tracing code to --trace, wait for a better --trace option, with
1631 args.
1632
7ea5e977
AD
16332002-01-03 Akim Demaille <akim@epita.fr>
1634
1635 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
1636 The ISO C++ standard is extremely clear about it: stderr is
1637 considered a macro, not a regular symbol (see table 94 `Header
1638 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
1639 Therefore std:: does not apply to it. It still does with fprintf.
1640 Also, s/cstdio.h/cstdio/.
1641
fab5b110
AD
16422002-01-03 Akim Demaille <akim@epita.fr>
1643
1644 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
1645 for non system headers.
1646
aed7fd9b
AD
16472002-01-02 Akim Demaille <akim@epita.fr>
1648
1649 Equip the skeleton chain with location tracking, runtime trace,
1650 pure parser and scanner.
1651
1652 * src/parse-skel.y: Request a pure parser, locations, and prefix
1653 renaming.
1654 (%union): Having several members with the same type does not help
1655 type mismatches, simplify.
1656 (YYPRINT, yyprint): New.
1657 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
1658 (skel_error): this.
1659 Handle locations.
1660 * src/scan-skel.l: Adjust to these changes.
1661 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
1662 (LOCATION_PRINT, skel_control_t): New.
1663
24fad99e
AD
16642001-12-30 Akim Demaille <akim@epita.fr>
1665
1666 * src/parse-skel.y: Get rid of the shift/reduce conflict:
1667 replace `gb' with BLANKS.
1668 * src/scan-skel.l: Adjust.
1669
a4b36db4
AD
16702001-12-30 Akim Demaille <akim@epita.fr>
1671
1672 * src/system.h: We don't need nor want bcopy.
1673 Throw away MS-DOS crap: we don't need getpid.
1674 * configure.in: We don't need strndup. It was even causing
1675 problems: because Flex includes the headers *before* us,
1676 _GNU_SOURCE is not defined by config.h, and therefore strndup was
1677 not visible.
1678 * lib/xstrndup.c: New.
1679 * src/scan-skel.l: Use it.
1680 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
1681 * src/parse-skel.y: Use %directives instead of #defines.
1682
1239777d
AD
16832001-12-30 Akim Demaille <akim@epita.fr>
1684
1685 * src/skeleton.h: New.
1686 * src/output.c (output_parser, output_master_parser): Remove, dead
1687 code.
1688 * src/output.h (get_lines_number, actions_output, guards_output)
1689 (token_definitions_output): Prototype them.
1690 * src/parse-skel.y: Add the license notice.
1691 Include output.h and skeleton.h.
1692 (process_skeleton): Returns void, and takes a single parameter.
1693 * src/scan-skel.l: Add the license notice.
1694 Include skeleton.h.
1695 Don't use %option yylineno: it seems that then Flex imagines
1696 REJECT has been used, and therefore it won't reallocate its
1697 buffers (which makes no other sense to me than a bug). It results
1698 in warnings for `unused: yy_flex_realloc'.
1699
9b3add5b
RA
17002001-12-30 Robert Anisko <robert.anisko@epita.fr>
1701
1702 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1703 (MUSCLE_INSERT_PREFIX): ...to there.
1704 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1705 (MUSCLE_INSERT_PREFIX): Move from here...
1706
1707 * src/bison.hairy: Add a section directive. Put braces around muscle
1708 names. This parser skeleton is still broken, but Bison should not
1709 choke on a bad muscle 'syntax'.
1710 * src/bison.simple: Add a section directive. Put braces around muscle
1711 names.
1712
1713 * src/files.h (strsuffix, stringappend): Add declarations.
1714 (tab_extension): Add declaration.
1715 (short_base_name): Add declaration.
1716
1717 * src/files.c (strsuffix, stringappend): No longer static. These
1718 functions are used in the skeleton parser.
1719 (tab_extension): New.
1720 (compute_base_names): Use the computations done in this function
fab5b110 1721 to guess if the generated parsers should have '.tab' in their
9b3add5b
RA
1722 names.
1723 (short_base_name): No longer static.
1724
1725 * src/output.c (output_skeleton): New.
1726 (output): Disable call to output_master_parser, and give a try to
1727 a new skeleton handling system.
1728 (guards_output, actions_output): No longer static.
1729 (token_definitions_output, get_lines_number): No longer static.
1730
1731 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
1732
fab5b110 1733 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
9b3add5b
RA
1734 parse-skel.y.
1735
1736 * src/parse-skel.y: New file.
1737 * src/scan-skel.l: New file.
1738
b5b61c61
AD
17392001-12-29 Akim Demaille <akim@epita.fr>
1740
1741 %name-prefix is broken.
1742
1743 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
1744 Adjust all dependencies.
1745 * tests/headers.at (export YYLTYPE): Strengthen this test: use
1746 %name-prefix.
1747
1748 Renaming yylval but not yylloc is not consistent. Now we do.
1749
1750 * src/bison.simple: Prefix yylloc if used.
1751 * doc/bison.texinfo (Decl Summary): Document that.
1752
8c9a50be
AD
17532001-12-29 Akim Demaille <akim@epita.fr>
1754
1755 * doc/bison.texinfo: Promote `%long-directive' over
1756 `%long_directive'.
1757 Remove all references to fixed-output-files, yacc is enough.
1758
d99361e6
AD
17592001-12-29 Akim Demaille <akim@epita.fr>
1760
1761 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
1762 user prologue. These are defaults.
1763 * tests/actions.at (Mid-rule actions): Make sure the user can
1764 define YYDEBUG and YYERROR_VERBOSE.
1765
b9cecb91
AD
17662001-12-29 Akim Demaille <akim@epita.fr>
1767
1768 * src/output.c (header_output): Don't forget to export YYLTYPE and
1769 yylloc.
1770 * tests/headers.at (export YYLTYPE): New, make sure it does.
1771 * tests/regression.at (%union and --defines, Invalid CPP headers):
1772 Move to...
1773 * tests/headers.at: here.
1774
aea13e97
AD
17752001-12-29 Akim Demaille <akim@epita.fr>
1776
1777 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
1778
931394cb
AD
17792001-12-29 Akim Demaille <akim@epita.fr>
1780
1781 * tests/actions.at (Mid-rule actions): Output on a single line
1782 instead of several.
1783
704a47c4
AD
17842001-12-29 Akim Demaille <akim@epita.fr>
1785
1786 * doc/bison.texinfo: Formatting changes.
1787
091e20bb
AD
17882001-12-29 Akim Demaille <akim@epita.fr>
1789
1790 Don't store the token defs in a muscle, just be ready to output it
1791 on command. Now possible via `symbols'. Fixes a memory leak.
1792
1793 * src/output.c (token_definitions_output): New.
1794 (output_parser, header_output): Use it.
1795 * src/reader.c (symbols_save): Remove.
1796
cce71710
AD
17972001-12-29 Akim Demaille <akim@epita.fr>
1798
1799 * src/bison.simple: Do not provide a default for YYSTYPE and
1800 YYLTYPE before the user's prologue. Otherwise it's hardly... a
1801 default.
1802
82c035a8
AD
18032001-12-29 Akim Demaille <akim@epita.fr>
1804
1805 Mid-rule actions are simply... ignored!
1806
1807 * src/reader.c (readgram): Be sure to attach mid-rule actions to
1808 the empty-rule associated to the dummy symbol, not to the host
1809 rule.
1810 * tests/actions.at (Mid-rule actions): New.
1811
8419d367
AD
18122001-12-29 Akim Demaille <akim@epita.fr>
1813
1814 Memory leak.
1815
1816 * src/reader.c (reader): Free grammar.
1817
375d5806
AD
18182001-12-29 Akim Demaille <akim@epita.fr>
1819
1820 Memory leak.
1821
1822 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
1823 since it allocates it for each state, although only one is needed.
1824 (allocate_storage): Do it here.
1825
f51cb8ff
AD
18262001-12-29 Akim Demaille <akim@epita.fr>
1827
1828 * src/options.h, src/options.c (create_long_option_table): Rename
1829 as...
1830 (long_option_table_new): this, with a clearer prototype.
1831 (percent_table): Remove, unused,
1832 * src/getargs.c (getargs): Adjust.
1833
29e88316
AD
18342001-12-29 Akim Demaille <akim@epita.fr>
1835
1836 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
1837 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
1838 as states.
1839
b9f71f19
AD
18402001-12-29 Akim Demaille <akim@epita.fr>
1841
1842 * src/lalr.c (build_relations): Rename `states' as `states1'.
1843 Sorry, I don't understand exactly what it is, no better name...
1844
1a2b5d37
AD
18452001-12-29 Akim Demaille <akim@epita.fr>
1846
1847 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
1848 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
1849 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
1850 as rules.
1851
1cca533e
AD
18522001-12-29 Akim Demaille <akim@epita.fr>
1853
1854 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
1855 ago.
1856
c03ae966
AD
18572001-12-29 Akim Demaille <akim@epita.fr>
1858
1859 * src/reader.c, src/reader.h (user_toknums): Remove.
1860 Adjust all users to use symbols[i]->user_token_number.
1861
5a670b1e
AD
18622001-12-29 Akim Demaille <akim@epita.fr>
1863
1864 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
1865 Adjust all users to use symbols[i]->prec or ->assoc.
1866
ad949da9
AD
18672001-12-29 Akim Demaille <akim@epita.fr>
1868
1869 * src/reader.c, src/reader.h (tags): Remove.
1870 Adjust all users to use symbols[i]->tag.
1871
0e78e603
AD
18722001-12-29 Akim Demaille <akim@epita.fr>
1873
1874 * src/gram.h, src/gram.c (symbols): New, similar to state_table
1875 and rule_table.
1876 * src/reader.c (packsymbols): Fill this table.
1877 Drop sprec.
1878 * src/conflicts.c (resolve_sr_conflict): Adjust.
1879 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
1880 single table.
1881 Use symbols[i]->tag instead of tags[i].
1882
213e640e
AD
18832001-12-29 Akim Demaille <akim@epita.fr>
1884
1885 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
1886 In addition, put a comment in there, to replace...
1887 * tests/regression.at (%union and C comments): Remove.
1888
e7b8bef1
AD
18892001-12-29 Akim Demaille <akim@epita.fr>
1890
1891 * tests/regression.at (Web2c Actions): Blindly move the actual
1892 output as expected output. The contents *seem* right to me, but I
1893 can't pretend reading perfectly parser tables... Nonetheless, all
1894 the other tests pass correctly, the table look OK, even though the
1895 presence of `$axiom' is to be noted: AFAICS it is useless (but
1896 harmless).
1897
b68e7744
AD
18982001-12-29 Akim Demaille <akim@epita.fr>
1899
1900 * src/reader.c (readgram): Don't add the rule 0 if there were no
1901 rules read. In other words, add it _after_ having performed
1902 grammar sanity checks.
1903 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
1904
78d5bae9
AD
19052001-12-29 Akim Demaille <akim@epita.fr>
1906
1907 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
1908 visible, and some states have now a different number.
1909
ff442794
AD
19102001-12-29 Akim Demaille <akim@epita.fr>
1911
1912 * src/reader.c (readgram): Bind the initial rule's lineno to that
1913 of the first rule.
1914 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
1915 (Solved SR Conflicts): Adjust rule 0's line number.
1916
610ab194
AD
19172001-12-29 Akim Demaille <akim@epita.fr>
1918
1919 Fix the `GAWK Grammar' failure.
1920
1921 * src/LR0.c (final_state): Initialize to -1 so that we do compute
1922 the reductions of the first state which was mistakenly confused
1923 with the final state because precisely final_state was initialized
1924 to 0.
1925 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
1926 now noticed by Bison.
1927 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
1928 have a reduction on $default.
1929
29d29c8f
AD
19302001-12-29 Akim Demaille <akim@epita.fr>
1931
1932 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
1933 rule line numbers.
1934 * src/closure.c (print_closure): Likewise.
1935 * src/derives.c (print_derives): Likewise.
1936 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
1937 now.
1938
7c6b64d0
AD
19392001-12-29 Akim Demaille <akim@epita.fr>
1940
1941 * src/lalr.c (lookaheads_print): New.
1942 (lalr): Call it when --trace-flag.
1943 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
1944 are dumped.
1945
3d4daee3
AD
19462001-12-29 Akim Demaille <akim@epita.fr>
1947
1948 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
1949 when walking through ritem, even via rule->rhs.
1950 * src/reduce.c (dump_grammar, useful_production, reduce_output)
1951 (useful_production, useless_nonterminals): Likewise.
1952 (reduce_grammar_tables): Likewise, plus update nritems.
1953 * src/nullable.c (set_nullable): Likewise.
1954 * src/lalr.c (build_relations): Likewise.
1955 * tests/sets.at (Nullable): Adjust.
1956 Fortunately, now, the $axiom is no longer nullable.
1957
9e7f6bbd
AD
19582001-12-29 Akim Demaille <akim@epita.fr>
1959
1960 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
1961 the 0-sentinel.
1962 * src/gram.c (ritem_longest_rhs): Likewise.
1963 * src/reduce.c (nonterminals_reduce): Likewise.
1964 * src/print_graph.c (print_graph): Likewise.
1965 * src/output.c (output_rule_data): Likewise.
1966 * src/nullable.c (set_nullable): Likewise.
1967
255ef638
AD
19682001-12-29 Akim Demaille <akim@epita.fr>
1969
1970 * src/output.c: Comment changes.
1971
0d8a7363
AD
19722001-12-27 Paul Eggert <eggert@twinsun.com>
1973
1974 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
1975 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
1976 Sparc, as they were causing more porting problems than the
1977 (minor) performance improvement was worth.
1978
1979 Also, catch up with 1.31's YYSTD.
1980
3db472b9
AD
19812001-12-27 Akim Demaille <akim@epita.fr>
1982
1983 * src/output.c (output_gram): Rely on nritems, not the
1984 0-sentinel. See below.
1985 Use -1 as separator, not 0.
1986 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
1987 Rely on -1 as separator in yyrhs, instead of 0.
1988 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
1989 twice `Now at end of input', therefore there are two lines less to
1990 expect.
1991
b365aa05
AD
19922001-12-27 Akim Demaille <akim@epita.fr>
1993
1994 * tests/regression.at (Unresolved SR Conflicts):
1995 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
1996 below.
1997
30171f79
AD
19982001-12-27 Akim Demaille <akim@epita.fr>
1999
2000 * src/LR0.c (new_state): Recognize the final state by the fact it
2001 is reached by eoftoken.
2002 (insert_start_shifting_state, insert_eof_shifting_state)
2003 (insert_accepting_state, augment_automaton): Remove, since now
2004 these states are automatically computed from the initial state.
2005 (generate_states): Adjust.
2006 * src/print.c: When reporting a rule number to the user, substract
2007 1, so that the axiom rule is rule 0, and the first user rule is 1.
2008 * src/reduce.c: Likewise.
2009 * src/print_graph.c (print_core): For the time being, just as for
2010 the report, depend upon --trace-flags to dump the full set of
2011 items.
2012 * src/reader.c (readgram): Once the grammar read, insert the rule
2013 0: `$axiom: START-SYMBOL $'.
2014 * tests/set.at: Adjust: rule 0 is now displayed, and since the
2015 number of the states has changed (the final state is no longer
2016 necessarily the last), catch up.
2017
75142d45
AD
20182001-12-27 Akim Demaille <akim@epita.fr>
2019
2020 Try to make the use of the eoftoken valid. Given that its value
2021 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
2022 is used instead of > 0 where appropriate, (ii), depend upon nritems
2023 instead of the 0-sentinel.
2024
2025 * src/gram.h, src/gram.c (nritems): New.
2026 Expected to be duplication of nitems, but for the time being...
2027 * src/reader.c (packgram): Assert nritems and nitems are equal.
2028 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
2029 * src/closure.c (print_closure, print_fderives): Likewise.
2030 * src/gram.c (ritem_print): Likewise.
2031 * src/print.c (print_core, print_grammar): Likewise.
2032 * src/print_graph.c: Likewise.
2033
b7c49edf
AD
20342001-12-27 Akim Demaille <akim@epita.fr>
2035
2036 * src/main.c (main): If there are complains after grammar
2037 reductions, then output the report anyway if requested, then die.
2038 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
2039 * src/reader.c (eoftoken): New.
2040 (parse_token_decl): If the token being defined has value `0', it
2041 is the eoftoken.
2042 (packsymbols): No longer hack `tags' to insert `$' by hand.
2043 Be sure to preserve the value of the eoftoken.
2044 (reader): Make sure eoftoken is defined.
2045 Initialize nsyms to 0: now eoftoken is created just like the others.
2046 * src/print.c (print_grammar): Don't special case the eof token.
2047 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
2048 lie anyway, albeit pleasant.
2049 * tests/calc.at: Exercise error messages with eoftoken.
2050 Change the grammar so that empty input is invalid.
2051 Adjust expectations.
2052 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
2053
ec2da99f
AD
20542001-12-27 Akim Demaille <akim@epita.fr>
2055
2056 * configure.in: Check the protos of strchr ans strspn.
2057 Replace strchr if needed.
2058 * src/system.h: Provide the protos of strchr, strspn and memchr if
2059 missing.
2060 * lib/strchr.c: New.
2061 * src/reader.c (symbols_save): Use strchr.
2062
8adfa272
AD
20632001-12-27 Akim Demaille <akim@epita.fr>
2064
2065 * src/print.c, src/print_graph.c (escape): New.
2066 Use it to quote the TAGS outputs.
2067 * src/print_graph.c (print_state): Now errors are in red, and
2068 reductions in green.
2069 Prefer high to wide: output the state number on a line of its own.
2070
80dac38c
AD
20712001-12-27 Akim Demaille <akim@epita.fr>
2072
2073 * src/state.h, src/state.c (reductions_new): New.
2074 * src/LR0.c (set_state_table): Let all the states have a
2075 `reductions', even if reduced to 0.
2076 (save_reductions): Adjust.
2077 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
2078 * src/print.c (print_reductions, print_actions): Adjust.
2079 * src/output.c (action_row): Adjust.
2080
2cec70b9
AD
20812001-12-27 Akim Demaille <akim@epita.fr>
2082
2083 * src/state.h, src/state.c (errs_new, errs_dup): New.
2084 * src/LR0.c (set_state_table): Let all the states have an errs,
2085 even if reduced to 0.
2086 * src/print.c (print_errs, print_reductions): Adjust.
2087 * src/output.c (output_actions, action_row): Adjust.
2088 * src/conflicts.c (resolve_sr_conflict): Adjust.
2089
13ca549a
AD
20902001-12-27 Akim Demaille <akim@epita.fr>
2091
2092 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
2093
5092aba5
AD
20942001-12-27 Akim Demaille <akim@epita.fr>
2095
2096 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
2097 * src/print.c: here.
2098 (lookaheadset, shiftset): New, used as additional storage by
2099 print_reductions.
2100 (print_results): Adjust.
2101 (print_shifts, print_gotos, print_errs): New, extracted from...
2102 (print_actions): here.
2103 * src/print_graph.c (print_actions): Remove dead code.
2104
11e2beca
AD
21052001-12-27 Akim Demaille <akim@epita.fr>
2106
2107 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
2108 `$n' and `@n'.
2109
dac3c910
AD
21102001-12-27 Akim Demaille <akim@epita.fr>
2111
2112 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
2113 (build_relations): Adjust.
2114
d0b0fefa
AD
21152001-12-27 Akim Demaille <akim@epita.fr>
2116
2117 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
2118 duplication.
2119
adc8c848
AD
21202001-12-27 Akim Demaille <akim@epita.fr>
2121
2122 * src/reader.c (packgram): Catch nitems overflows.
2123
14d293ac
AD
21242001-12-27 Akim Demaille <akim@epita.fr>
2125
2126 * src/files.c, src/files.h (guard_obstack): Remove.
2127 * src/output.c (output): Adjust.
2128 * src/reader.c (parse_braces): New, factoring...
2129 (copy_action, copy_guard): these two which are renamed as...
2130 (parse_action, parse_guard): these.
2131 As a voluntary consequence, using braces around guards is now
2132 mandatory.
2133
f499b062
AD
21342001-12-27 Akim Demaille <akim@epita.fr>
2135
2136 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
2137 * src/reader.c (symbol_list): `guard' and `guard_line' are new
2138 members.
2139 (symbol_list_new): Adjust.
2140 (copy_action): action_line is the first line, not the last.
2141 (copy_guard): Just as for actions, store the `action' only, not
2142 the switch/case/break flesh.
2143 Don't parse the user action that might follow the guard, let...
2144 (readgram): do it, i.e., now, there can be an action after a
2145 guard.
2146 In other words the guard is just explicitly optional.
2147 (packgram): Adjust.
2148 * src/output.c (guards_output): New.
2149 (output_parser): Call it when needed.
2150 (output): Also free the guard and attrs obstacks.
2151 * src/files.c, src/files.h (obstack_save): Remove.
2152 (output_files): Remove.
2153 As a result, if one needs the former `.act' file, using an
2154 appropriate skeleton which requires actions and guards is now
2155 required.
2156 * src/main.c (main): Adjust.
2157 * tests/semantic.at: New.
2158 * tests/regression.at: Use `input.y' as input file name.
2159 Avoid 8+3 problems by requiring input.c when the test needs the
2160 parser.
2161
d945f5cd
AD
21622001-12-27 Akim Demaille <akim@epita.fr>
2163
2164 * src/reader.c (symbol_list_new): Be sure to initialize all the
2165 fields.
2166
d200e455
AD
21672001-12-27 Akim Demaille <akim@epita.fr>
2168
2169 All the hacks using a final pseudo state are now useless.
2170
2171 * src/LR0.c (set_state_table): state_table holds exactly nstates.
2172 * src/lalr.c (nLA): New.
2173 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
2174 instead of lookaheadsp from the pseudo state (nstate + 1).
2175
f9507c28
AD
21762001-12-27 Akim Demaille <akim@epita.fr>
2177
2178 * src/output.c (action_row, token_actions): Use a state_t instead
2179 of a integer, and nlookaheads instead of the following state's
2180 lookaheadsp.
2181
065fbd27
AD
21822001-12-27 Akim Demaille <akim@epita.fr>
2183
2184 * src/conflicts.c (log_resolution, flush_shift)
2185 (resolve_sr_conflict, set_conflicts, solve_conflicts)
2186 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
2187 (conflicts_print, print_reductions): Use a state_t instead of an
2188 integer when referring to a state.
2189 As much as possible, depend upon nlookaheads, instead of the
2190 `lookaheadsp' member of the following state (since lookaheads of
2191 successive states are successive, the difference between state n + 1
2192 and n served as the number of lookaheads for state n).
2193 * src/lalr.c (add_lookback_edge): Likewise.
2194 * src/print.c (print_core, print_actions, print_state)
2195 (print_results): Likewise.
2196 * src/print_graph.c (print_core, print_actions, print_state)
2197 (print_graph): Likewise.
2198 * src/conflicts.h: Adjust.
2199
1b177bd7
AD
22002001-12-27 Akim Demaille <akim@epita.fr>
2201
2202 * src/bison.hairy: Formatting/comment changes.
2203 ANSIfy.
2204 Remove `register' indications.
2205 Add plenty of `static'.
2206
7742ddeb
AD
22072001-12-27 Akim Demaille <akim@epita.fr>
2208
2209 * src/output.c (prepare): Drop the muscle `ntbase' which
2210 duplicates ntokens.
2211 * src/bison.simple: Formatting/comment changes.
2212 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
2213 is an undocumented synonym.
2214
1fa14068
AD
22152001-12-22 Akim Demaille <akim@epita.fr>
2216
2217 * src/output.c (output_table_data): Change the prototype to use
2218 `int' for array ranges: some invocations do pass an int, not a
2219 short.
2220 Reported by Wayne Green.
2221
b9752825
AD
22222001-12-22 Akim Demaille <akim@epita.fr>
2223
2224 Some actions of web2c.y are improperly triggered.
2225 Reported by Mike Castle.
2226
2227 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
2228 * tests/regression.at (Web2c): Rename as...
2229 (Web2c Report): this.
2230 (Web2c Actions): New.
2231
776209d6
AD
22322001-12-22 Akim Demaille <akim@epita.fr>
2233
2234 Reductions in web2c.y are improperly reported.
2235 Reported by Mike Castle.
2236
2237 * src/conflicts.c (print_reductions): Fix.
2238 * tests/regression.at (Web2c): New.
2239
275fc3ad
AD
22402001-12-18 Akim Demaille <akim@epita.fr>
2241
2242 Some host fail on `assert (!"foo")', which expands to
2243 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
2244 Reported by Nelson Beebee.
2245
2246 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
2247 `#define it_succeeded 0' and `assert (it_succeeded)'.
2248
897668ee
MA
22492001-12-17 Marc Autret <autret_m@epita.fr>
2250
2251 * src/bison.simple: Don't hard code the skeleton line and filename.
2252 * src/output.c (output_parser): Rename 'line' as 'output_line'.
2253 New line counter 'skeleton_line' (skeleton-line muscle).
2254
ab3399e0
PE
22552001-12-17 Paul Eggert <eggert@twinsun.com>
2256
2257 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
2258 YYDEBUG must be defined to a nonzero value.
2259
2260 * src/bison.simple (yytname): Do not assume that the user defines
2261 YYDEBUG to a properly parenthesized expression.
2262
3877f72b
AD
22632001-12-17 Akim Demaille <akim@epita.fr>
2264
2265 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
2266 nlookaheads is a new member.
2267 Adjust all users.
2268 * src/lalr.h (nlookaheads): Remove this orphan declaration.
2269 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
2270 state.
776209d6 2271
331dbc1b
AD
22722001-12-17 Akim Demaille <akim@epita.fr>
2273
2274 * src/files.h, src/files.c (open_files, close_files): Remove.
2275 * src/main.c (main): Don't open/close files, nor invoke lex_free,
2276 let...
2277 * src/reader.c (reader): Do it.
776209d6 2278
be750e4c
AD
22792001-12-17 Akim Demaille <akim@epita.fr>
2280
2281 * src/conflicts.c (print_reductions): Formatting changes.
776209d6 2282
709ae8c6
AD
22832001-12-17 Akim Demaille <akim@epita.fr>
2284
2285 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
2286 (flush_reduce): New.
2287 (resolve_sr_conflict): Adjust.
776209d6 2288
f87685c3
AD
22892001-12-17 Akim Demaille <akim@epita.fr>
2290
2291 * src/output.c (output_obstack): Be static and rename as...
2292 (format_obstack): this, to avoid any confusion with files.c's
2293 output_obstack.
2294 * src/reader.h (muscle_obstack): Move to...
2295 * src/output.h: here, since it's defined in output.c.
2296
837491d8
AD
22972001-12-17 Akim Demaille <akim@epita.fr>
2298
2299 * src/output.c (action_row, save_column, default_goto)
2300 (sort_actions, matching_state, pack_vector): Better variable
2301 locality.
2302
796d61fb
AD
23032001-12-17 Akim Demaille <akim@epita.fr>
2304
2305 * src/output.c: Various formatting changes.
776209d6 2306
64d15509
AD
23072001-12-17 Akim Demaille <akim@epita.fr>
2308
2309 * src/files.c (output_files): Free the output_obstack.
2310 * src/main.c (main): Call print and print_graph conditionally.
2311 * src/print.c (print): Work unconditionally.
2312 * src/print_graph.c (print_graph): Work unconditionally.
2313 * src/conflicts.c (log_resolution): Output only if verbose_flag.
2314
fbc8ecb7
MA
23152001-12-16 Marc Autret <autret_m@epita.fr>
2316
2317 * src/output.c (actions_output): Fix. When we use %no-lines,
2318 there is one less line per action.
2319
f0440388
MA
23202001-12-16 Marc Autret <autret_m@epita.fr>
2321
2322 * src/bison.simple: Remove a useless #line directive.
2323 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
2324 * src/output.c (get_lines_number): New.
776209d6 2325 (output_parser): Adjust, now takes care about the lines of a
f0440388
MA
2326 output muscles.
2327 Fix line numbering.
2328 (actions_output): Computes the number of lines taken by actions.
2329 (output_master_parser): Insert new skeleton which is the name of
2330 the output parser file name.
2331
a79986b8
MA
23322001-12-15 Marc Autret <autret_m@epita.fr>
2333
2334 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
2335
4ec8e00f
MA
23362001-12-15 Marc Autret <autret_m@epita.fr>
2337
2338 * src/output.c (output_gram): Keep track of the hairy one.
2339
1a4648ff
AD
23402001-12-15 Akim Demaille <akim@epita.fr>
2341
2342 Make `make distcheck' work.
2343
2344 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
2345 system.h which uses libgettext.h.
2346
9c2c67e6
AD
23472001-12-15 Akim Demaille <akim@epita.fr>
2348
2349 * src/nullable.c (set_nullable): Useless rules must be skipped,
2350 otherwise, since we range over their symbols, we might look at a
2351 nonterminal which no longer ``exists'', i.e., it is not counted in
2352 `nvars', hence we overflow our arrays.
2353
93ede233
AD
23542001-12-15 Akim Demaille <akim@epita.fr>
2355
2356 The header can also be produced directly, without any obstack!
2357 Yahoo!
2358
2359 * src/files.c, src/files.h (defines_obstack): Remove.
2360 (compute_header_macro): Global.
2361 (defines_obstack_save): Remove.
2362 * src/reader.c (parse_union_decl): No longer output to
2363 defines_obstack: its content can be found in the `stype' muscle
2364 anyway.
2365 (output_token_translations): Merge into...
2366 (symbols_output): this.
2367 Rename as...
2368 (symbols_save): this.
2369 (reader): Adjust.
2370 * src/output.c (header_output): New.
2371 (output): Call it.
2372
2666f928
AD
23732001-12-15 Akim Demaille <akim@epita.fr>
2374
2375 * src/reader.c (parse_union_decl): Instead of handling two obstack
2376 simultaneously, use one to define the `stype' muscle, and use the
2377 value of the latter to fill defines_obstack.
2378 (copy_comment): Remove.
2379 (copy_comment2): Work for a single obstack.
2380 Rename as...
2381 (copy_comment): this.
2382
428046f8
AD
23832001-12-15 Akim Demaille <akim@epita.fr>
2384
2385 * src/lex.c, src/lex.h (xgetc): No longer static.
2386 * src/reader.c (parse_union_decl): Revamp.
2387
ea52d706
AD
23882001-12-15 Akim Demaille <akim@epita.fr>
2389
2390 Still making progress in separating Bison into (i) input, (ii)
2391 process, (iii) output: now we can directly output the parser file
2392 without using table_obstack at all.
2393
2394 * src/files.c, src/files.h (table_obstack): Bye bye.
2395 (parser_file_name): New.
2396 * src/files.c (compute_output_file_names): Compute it.
2397 * src/output.c (actions_output, output_parser)
2398 (output_master_parser): To a file instead of an obstack.
2399
3f96f4dc
AD
24002001-12-15 Akim Demaille <akim@epita.fr>
2401
2402 Attach actions to rules, instead of pre-outputting them to
2403 actions_obstack.
2404
2405 * src/gram.h (rule_t): action and action_line are new members.
2406 * src/reader.c (symbol_list): Likewise.
2407 (copy_action): Save the actions within the rule.
2408 (packgram): Save them in rule_table.
2409 * src/output.c (actions_output): New.
2410 (output_parser): Use it on `%%actions'.
2411 (output_rule_data): Don't free rule_table.
2412 (output): Do it.
2413 (prepare): Don't save the `action' muscle.
2414 * src/bison.simple: s/%%action/%%actions/.
2415
51576fb3
AD
24162001-12-15 Akim Demaille <akim@epita.fr>
2417
2418 * src/reader.c (copy_action): When --yacc, don't append a `;'
2419 to the user action: let it fail if lacking.
dee049eb 2420 Suggested by Arnold Robbins and Tom Tromey.
51576fb3 2421
2648a72d
AD
24222001-12-14 Akim Demaille <akim@epita.fr>
2423
2424 * src/lex.c (literalchar): Simply return the char you decoded, non
2425 longer mess around with obstacks and int pointers.
2426 Adjust all callers.
2427
92790e5b
AD
24282001-12-14 Akim Demaille <akim@epita.fr>
2429
2430 * src/lex.c (literalchar): Don't escape the special characters,
2431 just decode them, and keep them as char (before, eol was output as
2432 the 2 char string `\n' etc.).
2433 * src/output.c (output_rule_data): Use quotearg to output the
2434 token strings.
2435
927c1557
PE
24362001-12-13 Paul Eggert <eggert@twinsun.com>
2437
2438 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
2439 Do not infringe on the global user namespace when using C++.
2440 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
2441 All uses of `fprintf' and `stderr' changed.
2442
2443 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
2444
ed8e1f68
AD
24452001-12-13 Akim Demaille <akim@epita.fr>
2446
2447 The computation of nullable is broken: it doesn't handle empty
2448 RHS's properly.
2449
2450 * tests/torture.at (GNU AWK Grammar): New.
2451 * tests/sets.at (Nullable): New.
2452 * src/nullable.c (set_nullable): Instead of blindly looping over
2453 `ritems', loop over the rules, and then over their rhs's.
2454
2455 Work around Autotest bugs.
2456
2457 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
2458 frame, because Autotest understand lines starting with a `+' as
2459 traces from the shell. Then, they are not processed properly.
2460 Admittedly an Autotest bug, but we don't have time to wait for
2461 Autotest to catch up.
2462 * tests/regression.at (Broken Closure): Adjust to the new table
2463 frames.
2464 Move to...
2465 * tests/sets.at: here.
2466
cb581495
AD
24672001-12-13 Akim Demaille <akim@epita.fr>
2468
2469 * src/closure.c (closure): Use nrules instead of playing tricks
2470 with BITS_PER_WORD.
2471
2e729273
AD
24722001-12-13 Akim Demaille <akim@epita.fr>
2473
2474 * src/print.c (print_actions): Output the handling of `$' as the
2475 traces do: shifting the token EOF. Before EOF was treated as a
2476 nonterminal.
2477 * tests/regression.at: Adjust some tests.
2478 * src/print_graph.c (print_core): Complete the set of items via
2479 closure. The next-to-final and final states are still unsatisfying,
2480 but that's to be addressed elsewhere.
2481 No longer output the rule numbers, but do output the state number.
2482 A single loop for the shifts + gotos is enough, but picked a
2483 distinct color for each.
2484 (print_graph): Initialize and finalize closure.
2485
107f7dfb
AD
24862001-12-13 Akim Demaille <akim@epita.fr>
2487
2488 * src/reader.c (readgram): Remove dead code, an strip useless
2489 braces.
2490 (get_type): Remove, unused.
2491
9b53a24f
AD
24922001-12-12 Akim Demaille <akim@epita.fr>
2493
2494 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
2495 on that of lib/error.c.
2496
dbfb6dcd
AD
24972001-12-12 Akim Demaille <akim@epita.fr>
2498
2499 Some hosts don't like `/' in includes.
2500
2501 * src/system.h: Include libgettext.h without qualifying the path.
2502 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
2503 $(top_srcdir).
2504
c25fb648
MA
25052001-12-11 Marc Autret <autret_m@epita.fr>
2506
2507 * src/output.c (output_parser): Remove useless muscle.
2508
710ddc4f
MA
25092001-12-11 Marc Autret <autret_m@epita.fr>
2510
2511 * src/bison.simple: Remove #line just before %%epilogue. It
2512 is now handled in ...
2513 * src/reader.c (read_additionnal_code): Add the output of a
2514 #line for the epilogue.
2515
e83d80b8
MA
25162001-12-10 Marc Autret <autret_m@epita.fr>
2517
927c1557 2518 * src/reader.c (copy_definition): Re-use CPP-outed code which
e83d80b8
MA
2519 replace precedent remove.
2520 * src/bison.simple: Remove #line before %%prologue because
2521 %%input-line is wrong at this time.
2522
971d5158
MA
25232001-12-10 Marc Autret <autret_m@epita.fr>
2524
2525 * src/reader.c (symbols_output): Clean up.
927c1557 2526 * src/output.c (output_gram, output): Clean up.
971d5158 2527
5edafffd
AD
25282001-12-10 Akim Demaille <akim@epita.fr>
2529
2530 * src/lalr.c (initialize_lookaheads): New. Extracted from...
2531 * src/LR0.c (set_state_table): here.
2532 * src/lalr.c (lalr): Call it.
2533
0279f8e9
AD
25342001-12-10 Akim Demaille <akim@epita.fr>
2535
2536 * src/state.h (shifts): Remove the `number' member: shifts are
2537 attached to state, hence no longer need to be labelled with a
2538 state number.
2539
190c4f5f
AD
25402001-12-10 Akim Demaille <akim@epita.fr>
2541
2542 Now that states have a complete set of members, the linked list of
2543 shifts is useless: just fill directly the state's shifts member.
2544
2545 * src/state.h (shifts): Remove the `next' member.
2546 * src/LR0.c (first_state, last_state): Remove.
2547 Adjust the callers.
2548 (augment_automaton): Don't look for the shifts that must be added
2549 a shift on EOF: it is those of the state we looked for! But now,
2550 since shifts are attached, it is no longer needed to looking
2551 merely by its id: its number.
2552
2a73b93d
AD
25532001-12-10 Akim Demaille <akim@epita.fr>
2554
2555 * src/LR0.c (augment_automaton): Better variable locality.
2556 Remove an impossible branch: if there is a state corresponding to
2557 the start symbol being shifted, then there is shift for the start
2558 symbol from the initial state.
2559
74392f6a
AD
25602001-12-10 Akim Demaille <akim@epita.fr>
2561
2562 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
2563 only when appropriate: when insert_start_shifting_state' is not
2564 invoked.
2565 * tests/regression.at (Rule Line Numbers): Adjust.
2566
37c82725
AD
25672001-12-10 Akim Demaille <akim@epita.fr>
2568
2569 * src/LR0.c (augment_automaton): Now that all states have shifts,
2570 merge the two cases addition shifts to the initial state.
2571
6a164e0c
AD
25722001-12-10 Akim Demaille <akim@epita.fr>
2573
2574 * src/lalr.c (set_state_table): Move to...
2575 * src/LR0.c: here.
2576 * src/lalr.c (lalr): Don't call it...
2577 * src/LR0.c (generate_states): do it.
2578 * src/LR0.h (first_state): Remove, only the table is used.
2579
7215de24
AD
25802001-12-10 Akim Demaille <akim@epita.fr>
2581
2582 * src/LR0.h (first_shift, first_reduction): Remove.
2583 * src/lalr.c: Don't use first_shift: find shifts through the
2584 states.
2585
80e25d4d
AD
25862001-12-10 Akim Demaille <akim@epita.fr>
2587
2588 * src/LR0.c: Attach shifts to states as soon as they are
2589 computed.
2590 * src/lalr.c (set_state_table): Instead of assigning shifts to
2591 state, just assert that the mapping was properly done.
2592
0ab3728b
AD
25932001-12-10 Akim Demaille <akim@epita.fr>
2594
2595 * src/LR0.c (insert_start_shift): Rename as...
2596 (insert_start_shifting_state): this.
2597 (insert_eof_shifting_state, insert_accepting_state): New.
2598 (augment_automaton): Adjust.
2599 Better locality of the variables.
2600 When looking if the start_symbol is shifted from the initial
2601 state, using `while (... symbol != start_symbol ...)' sounds
2602 better than `while (... symbol < start_symbol ...)': If fail
2603 to see how the order between symbols could be relevant!
2604
78af9bbc
AD
26052001-12-10 Akim Demaille <akim@epita.fr>
2606
2607 * src/getargs.h: Don't declare `spec_name_prefix' and
2608 `spec_file_prefix', declared by src/files.h.
2609 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
2610 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
2611 * src/output.c (prepare): Adjust.
2612 * src/reader.c (symbols_output): Likewise.
2613 * src/vmsgetargs.c: Vaguely adjust, but who cares?
2614
bdef2a41
AD
26152001-12-10 Akim Demaille <akim@epita.fr>
2616
2617 * src/muscle_tab.c (muscle_init): NULL is a better default than
2618 `"0"'.
2619
3735969c
AD
26202001-12-10 Akim Demaille <akim@epita.fr>
2621
2622 * src/reader.c (reader): Calling symbols_output once is enough.
2623
49701457
AD
26242001-12-10 Akim Demaille <akim@epita.fr>
2625
2626 Now that states have a complete set of members, the linked list of
2627 reductions is useless: just fill directly the state's reductions
2628 member.
2629
2630 * src/state.h (struct reductions): Remove member `number' and
2631 `next'.
2632 * src/LR0.c (first_reduction, last_reduction): Remove.
2633 (save_reductions): Don't link the new reductions, store them in
2634 this_state.
2635 * src/lalr.c (set_state_table): No need to attach reductions to
2636 states, it's already done.
2637 * src/output.c (output_actions): No longer free the shifts, then
2638 the reductions, then the states: free all the states and their
2639 members.
2640
0edad749
AD
26412001-12-10 Akim Demaille <akim@epita.fr>
2642
2643 * src/options.c (OPTN, DRTV, BOTH): New.
2644 (option_table): Use them.
2645
0edad749
AD
2646 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
2647 the job of system.h.
2648 * src/options.c: Don't include stdio.h and xalloc.h for the same
2649 reasons.
2650
5449dd0f
AD
26512001-12-10 Akim Demaille <akim@epita.fr>
2652
2653 * src/output.c (output, prepare): Make sure the values of the
2654 muscles `action' and `prologue' are 0-terminated.
2655
a870c567
AD
26562001-12-10 Akim Demaille <akim@epita.fr>
2657
2658 Clean up GCC warnings.
2659
2660 * src/reader.c (copy_action): `buf' is not used.
2661 (parse_skel_decl): Be static.
2662 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
2663 * src/options.h (create_long_option_table): Have a real prototype.
2664 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
2665 (hash_delete_at): Return const void *.
2666 Adjust casts to preserve the const.
2667
80df8768
AD
26682001-12-10 Akim Demaille <akim@epita.fr>
2669
2670 * configure.in: Require 2.52g.
2671 M4 is not needed, but AUTOM4TE is.
2672 * m4/m4.m4: Remove.
2673 * tests/Makefile.am: Adjust.
2674
f693ad14
AD
26752001-12-10 Akim Demaille <akim@epita.fr>
2676
2677 One structure for states is enough, even though theoretically
2678 there are LR(0) states and LALR(1) states.
2679
2680 * src/lalr.h (state_t): Remove.
2681 (state_table): Be state_t **, not state_t *.
2682 * src/state.h (core, CORE_ALLOC): Rename as...
2683 (state_t, STATE_ALLOC): this.
2684 Add the LALR(1) members: shifts, reductions, errs.
2685 * src/LR0.c (state_table): Rename as...
2686 (state_hash): this, to avoid name clashes with the global
2687 `state_table'.
2688 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
2689 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
2690
74ffbcb6
AD
26912001-12-10 Akim Demaille <akim@epita.fr>
2692
2693 Bison dumps core on bash.y.
2694 Reported by Pascal Bart.
2695
2696 * src/warshall.c (bitmatrix_print): New.
2697 (TC): Use it.
2698 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
2699 j must be the outer loop.
2700 * tests/regression.at (Broken Closure): New.
2701
07708e19
AD
27022001-12-05 Akim Demaille <akim@epita.fr>
2703
2704 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
2705 its argument.
2706