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