]> git.saurik.com Git - bison.git/blame - ChangeLog
* data/c.m4 (b4_copyright, b4_sint_type, b4_uint_type, b4_token_define)
[bison.git] / ChangeLog
CommitLineData
fb8135fa
AD
12002-06-28 Akim Demaille <akim@epita.fr>
2
3 * data/c.m4 (b4_copyright, b4_sint_type, b4_uint_type, b4_token_define)
4 (b4_token_enum, b4_token_defines): New, factored from...
5 * data/lalr1.cc, data/yacc.c, glr.c: here.
6
41442480
AD
72002-06-28 Akim Demaille <akim@epita.fr>
8
9 * data/yacc.c (yydestruct, yysymprint): Pacify GCC warnings for
10 unused variables.
11 * src/output.c (merger_output): static.
12
e0e5bf84
AD
132002-06-28 Akim Demaille <akim@epita.fr>
14
15 * src/reader.h: s/grammer_current_rule_merge_set/grammar_.../.
16 * src/conflicts.c (conflicts_total_count): `i' is unsigned, to
17 pacify GCC.
18 * src/output.c (save_row): Initialize all the variables to pacify GCC.
e0e5bf84 19
676385e2
PH
202002-06-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
21
22 Accumulated changelog for new GLR parsing features.
23
e0e5bf84 24 * src/conflicts.c (count_total_conflicts): Change name to
676385e2
PH
25 conflicts_total_count.
26 * src/conflicts.h: Ditto.
27 * src/output.c (token_actions): Use the new name.
28 (output_conflicts): Change conflp => conflict_list_heads, and
29 confl => conflict_list for better readability.
30 * data/glr.c: Use the new names.
31 * NEWS: Add self to GLR announcement.
e0e5bf84 32
676385e2
PH
33 * src/reader.c (free_merger_functions): Cleanup: XFREE->free.
34
35 * doc/bison.texinfo (GLR Parsers): Make corrections suggested by
36 Akim Demaille.
37
38 * data/bison.glr: Change name to glr.c
39 * data/glr.c: Renamed from bison.glr.
40 * data/Makefile.am: Add glr.c
e0e5bf84
AD
41
42 * src/getargs.c:
43
676385e2
PH
44 * src/symlist.h: Add dprec and merger fields to symbol_list_s.
45 * src/symlist.c (symbol_list_new): Initialize dprec and merger fields.
e0e5bf84 46
676385e2
PH
47 Originally 2002-06-16 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
48
49 * data/bison.glr: Be sure to restore the
50 current #line when returning to the skeleton contents after having
51 exposed the input file's #line.
52
53 Originally 2002-06-13 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
54
55 * data/bison.glr: Bring up to date with changes to bison.simple.
56
57 Originally 2002-06-03 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
58
59 * data/bison.glr: Correct definitions that use b4_prefix.
60 Various reformatting.
61 (GLRStack): Make yychar (in YYPURE case) and yytokenp as part of stack.
62 (yyreportParseError, yyrecoverParseError, yyprocessOneStack): remove
63 yytokenp argument; now part of stack.
64 (yychar): Define to behave as documented.
65 (yyclearin): Ditto.
e0e5bf84 66
676385e2
PH
67 Originally 2002-05-14 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
68
69 * src/reader.h: Add declaration for free_merger_functions.
70
71 * src/reader.c (merge_functions): New variable.
72 (get_merge_function): New function.
73 (free_merger_functions): New function.
74 (readgram): Check for %prec that is not followed by a symbol.
75 Handle %dprec and %merge declarations.
76 (packgram): Initialize dprec and merger fields in rules array.
77
78 * src/output.c (conflict_tos, conflrow, conflict_table, conflict_list,
79 conflict_list_cnt, conflict_list_free): New variables.
80 (table_grow): Also grow conflict_table.
e0e5bf84 81 (prepare_rules): Output dprec and merger tables.
676385e2 82 (conflict_row): New function.
e0e5bf84 83 (action_row): Output conflict lists for GLR parser. Don't use
676385e2
PH
84 default reduction in conflicted states for GLR parser so that there
85 are spaces for the conflict lists.
86 (save_row): Also save conflict information.
87 (token_actions): Allocate conflict list.
88 (merger_output): New function.
89 (pack_vector): Pack conflict table, too.
90 (output_conflicts): New function to output yyconflp and yyconfl.
91 (output_check): Allocate conflict_tos.
92 (output_actions): Output conflict tables, also.
93 (output_skeleton): Output b4_mergers definition.
94 (prepare): Output b4_max_rhs_length definition.
95 Use 'bison.glr' as default skeleton for GLR parsers.
96
97 * src/gram.c (glr_parser): New flag.
98 (grammar_free): Call free_merger_functions.
99
100 * src/conflicts.c (count_rr_conflicts): Augment to optionally count
101 all pairs of conflicting reductions, rather than just all tokens
102 causing conflicts. Needed to size conflict tables.
e0e5bf84 103 (conflicts_output): Modify call to count_rr_conflicts for new
676385e2
PH
104 interface.
105 (conflicts_print): Ditto.
106 (count_total_conflicts): New function.
107
108 * src/reader.h (merger_list): New type.
109 (merge_functions): New variable.
110
111 * src/lex.h (tok_dprec, tok_merge): New token types.
112
113 * src/gram.h (rule_s): Add dprec and merger fields.
114 (glr_parser): New flag.
115
116 * src/conflicts.h (count_total_conflicts): New function.
117
118 * src/options.c (option_table): Add %dprec, %merge, and %glr-parser.
119
120 * doc/bison.texinfo (Generalized LR Parsing): New section.
121 (GLR Parsers): New section.
122 (Language and Grammar): Mention GLR parsing.
123 (Table of Symbols): Add %dprec, %glr-parser, %merge, GLR
124 Correct typo ("tge" -> "the").
125
126 * data/bison.glr: New skeleton for GLR parsing.
127
128 * tests/cxx-gram.at: New tests for GLR parsing.
129
130 * tests/testsuite.at: Include cxx-gram.at.
131
132 * tests/Makefile.am: Add cxx-gram.at.
e0e5bf84 133
676385e2
PH
134 * src/parse-gram.y:
135
136 * src/scan-gram.l: Add %dprec, %glr-parser, %merge.
137
138 * src/parse-gram.y: Grammar for %dprec, %merge, %glr-parser.
e0e5bf84 139
b5480d74 1402002-06-27 Akim Demaille <akim@epita.fr>
e2aaf4c4
AD
141
142 * src/options.h, src/options.c: Remove.
143 * src/getargs.c (short_options, long_options): New.
144
60491a94
AD
1452002-06-27 Akim Demaille <akim@epita.fr>
146
147 * data/bison.simple, data/bison.c++: Rename as...
148 * data/yacc.c, data/lalr1.cc: these.
149 * doc/bison.texinfo (Environment Variables): Remove.
150
9be0c25b
AD
1512002-06-25 Raja R Harinath <harinath@cs.umn.edu>
152
153 * src/getargs.c (report_argmatch): Initialize strtok().
154
1ae72863
AD
1552002-06-20 Akim Demaille <akim@epita.fr>
156
157 * data/bison.simple (b4_symbol_actions): New, replaces...
158 (b4_symbol_destructor, b4_symbol_printer): these.
159 (yysymprint): Be sure to call YYPRINT only for tokens, and using
160 user token numbers.
161
87542d29
AD
1622002-06-20 Akim Demaille <akim@epita.fr>
163
164 * data/bison.simple (yydestructor): Rename as...
165 (yydestruct): this.
166
1a31ed21
AD
1672002-06-20 Akim Demaille <akim@epita.fr>
168
169 * src/symtab.h, src/symtab.c (symbol_type_set)
170 (symbol_destructor_set, symbol_precedence_set): The location is
171 the last argument.
172 Adjust all callers.
173
e776192e
AD
1742002-06-20 Akim Demaille <akim@epita.fr>
175
176 * src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser
177 internals.
178 * src/reader.h, src/reader.c (grammar_current_rule_prec_set):
179 Takes a location.
180 * src/symtab.h, src/symtab.c (symbol_class_set)
181 (symbol_user_token_number_set): Likewise.
182 Adjust all callers.
183 Promote complain_at.
184 * tests/input.at (Type Clashes): Adjust.
185
5c1180b3
AD
1862002-06-20 Akim Demaille <akim@epita.fr>
187
188 * data/bison.simple (YYLEX): Fix the declaration when
189 %pure-parser.
190
e3170060
AD
1912002-06-20 Akim Demaille <akim@epita.fr>
192
193 * data/bison.simple (yysymprint): Don't print the token number,
194 just its name.
195 * tests/actions.at (Destructors): Rename as...
196 (Printers and Destructors): this.
197 Also exercise %printer.
198
253862fd
AD
1992002-06-20 Akim Demaille <akim@epita.fr>
200
201 * data/bison.simple (YYDSYMPRINT): New.
202 Use it to remove many of the #if YYDEBUG/if (yydebug).
203
366eea36
AD
2042002-06-20 Akim Demaille <akim@epita.fr>
205
206 * src/symtab.h, src/symtab.c (symbol_t): printer and
207 printer_location are new members.
208 (symbol_printer_set): New.
209 * src/parse-gram.y (PERCENT_PRINTER): New token.
210 Handle its associated rule.
211 * src/scan-gram.l: Adjust.
212 (handle_destructor_at, handle_destructor_dollar): Rename as...
213 (handle_symbol_code_at, handle_symbol_code_dollar): these.
214 * src/output.c (symbol_printers_output): New.
215 (output_skeleton): Call it.
216 * data/bison.simple (yysymprint): New. Cannot be named yyprint
217 since there are already many grammar files with a user `yyprint'.
218 Replace the calls to YYPRINT to calls to yysymprint.
219 * tests/calc.at: Adjust.
220 * tests/torture.at (AT_DATA_STACK_TORTURE): Remove YYPRINT: it was
221 taking advantage of parser very internal details (stack size!).
222
4f25ebb0
AD
2232002-06-20 Akim Demaille <akim@epita.fr>
224
225 * src/scan-gram.l: Complete the scanner with the missing patterns
226 to pacify Flex.
227 Use `quote' and `symbol_tag_get' where appropriate.
228
93b68a0e
AD
2292002-06-19 Akim Demaille <akim@epita.fr>
230
231 * tests/actions.at (Destructors): Augment to test locations.
232 * data/bison.simple (yydestructor): Pass it the current location
233 if locations are enabled.
234 Prototype only when __STDC__ or C++.
235 Change the argument names to move into the yy name space: there is
236 user code here.
237
58612f1d
AD
2382002-06-19 Akim Demaille <akim@epita.fr>
239
74310291
AD
240 * data/bison.simple (b4_pure_if): New.
241 Use it instead of #ifdef YYPURE.
242
2432002-06-19 Akim Demaille <akim@epita.fr>
244
245 * data/bison.simple (b4_location_if): New.
58612f1d
AD
246 Use it instead of #ifdef YYLSP_NEEDED.
247
f25bfb75
AD
2482002-06-19 Akim Demaille <akim@epita.fr>
249
250 Prepare @$ in %destructor, but currently don't bind it in the
251 skeleton, as %location use is not cleaned up yet.
252
253 * src/scan-gram.l (handle_dollar, handle_destructor_at)
254 (handle_action_at): New.
255 (handle_at, handle_action_dollar, handle_destructor_dollar): Take
256 a braced_code_t and a location as additional arguments.
257 (handle_destructor_dollar): Instead of requiring `b4_eval', just
258 unquote one when outputting `b4_dollar_dollar'.
259 Adjust callers.
260 * data/bison.simple (b4_eval): Remove.
261 (b4_symbol_destructor): Adjust.
262 * tests/input.at (Invalid @n): Adjust.
263
c732d2c6
AD
2642002-06-19 Zack Weinberg <zack@codesourcery.com>
265
266 * doc/bison.texinfo: Document ability to have multiple
267 prologue sections.
268
8c165d89
AD
2692002-06-18 Akim Demaille <akim@epita.fr>
270
271 * src/files.c (compute_base_names): When computing the output file
272 names from the input file name, strip the directory part.
273
ca98bf57
AD
2742002-06-18 Akim Demaille <akim@epita.fr>
275
276 * data/bison.simple.new: Comment changes.
277 Reported by Andreas Schwab.
278
0bfb02ff
AD
2792002-06-18 Matt Kraai <kraai@alumni.cmu.edu>
280
281 * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
282 there are no `label `yyoverflowlab' defined but not used' warnings
283 when yyoverflow is defined.
284
24c0aad7
AD
2852002-06-18 Akim Demaille <akim@epita.fr>
286
287 * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a
288 new member.
289 (symbol_destructor_set): Adjust.
290 * src/output.c (symbol_destructors_output): Output the destructor
291 locations.
292 Output the symbol name.
293 * data/bison.simple (b4_symbol_destructor): Adjust.
294
5719c109
AD
2952002-06-18 Cris Bailiff <c.bailiff@awayweb.com>
296 and Akim Demaille <akim@epita.fr>
297
298 * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy
299 what's left on the stack when the error recovery hits EOF.
300 * tests/actions.at (Destructors): Complete to exercise this case.
301
9280d3ef
AD
3022002-06-17 Akim Demaille <akim@epita.fr>
303
304 * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of
305 arguments is really empty, not only equal to `[]'.
306 * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new
307 member.
308 (symbol_destructor_set): New.
309 * src/output.c (symbol_destructors_output): New.
310 * src/reader.h (brace_code_t, current_braced_code): New.
311 * src/scan-gram.l (BRACED_CODE): Use it to branch on...
312 (handle_dollar): Rename as...
313 (handle_action_dollar): this.
314 (handle_destructor_dollar): New.
315 * src/parse-gram.y (PERCENT_DESTRUCTOR): New.
316 (grammar_declaration): Use it.
317 * data/bison.simple (yystos): Is always defined.
318 (yydestructor): New.
319 * tests/actions.at (Destructors): New.
320 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep.
321
dafdc66f
AD
3222002-06-17 Akim Demaille <akim@epita.fr>
323
324 * src/symlist.h, src/symlist.c (symbol_list_length): New.
325 * src/scan-gram.l (handle_dollar, handle_at): Compute the
326 rule_length only when needed.
327 * src/output.c (actions_output, token_definitions_output): Output
328 the full M4 block.
329 * src/symtab.c: Don't access directly to the symbol tag, use
330 symbol_tag_get.
331 * src/parse-gram.y: Use symbol_list_free.
332
56c47203
AD
3332002-06-17 Akim Demaille <akim@epita.fr>
334
335 * src/reader.h, src/reader.c (symbol_list, symbol_list_new)
336 (symbol_list_prepend, get_type_name): Move to...
337 * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new)
338 (symbol_list_prepend, symbol_list_n_type_name_get): here.
339 Adjust all callers.
340 (symbol_list_free): New.
341 * src/scan-gram.l (handle_dollar): Takes a location.
342 * tests/input.at (Invalid $n): Adjust.
343
1e0bab92
AD
3442002-06-17 Akim Demaille <akim@epita.fr>
345
346 * src/reader.h, src/reader.c (symbol_list_new): Export it.
347 (symbol_list_prepend): New.
348 * src/parse-gram.y (%union): `list' is a new member.
349 (symbols.1): New, replaces...
350 (terms_to_prec.1, nterms_to_type.1): these.
351 * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set)
352 Take a location as additional argument.
353 Adjust all callers.
354
04e60654
AD
3552002-06-15 Akim Demaille <akim@epita.fr>
356
357 * src/parse-gram.y: Move %token in the declaration section so that
358 we don't depend upon CVS Bison.
359
10e5b8bd
AD
3602002-06-15 Akim Demaille <akim@epita.fr>
361
362 * src/state.h, src/state.c (state_rule_lookaheads_print): New.
363 * src/print.c (print_core): Use it.
364
9801d40c
AD
3652002-06-15 Akim Demaille <akim@epita.fr>
366
367 * src/conflicts.c (log_resolution): Accept the rule involved in
368 the sr conflicts instead of the lookahead number that points to
369 that rule.
370 (flush_reduce): Accept the current lookahead vector as argument,
371 instead of the index in LA.
372 (resolve_sr_conflict): Accept the current number of lookahead
373 bitset to consider for the STATE, instead of the index in LA.
374 (set_conflicts): Adjust.
375 * src/lalr.c, src/lalr.h, src/state.h: Comment changes.
376
c0263492
AD
3772002-06-15 Akim Demaille <akim@epita.fr>
378
379 * src/state.h (state_t): Replace the `lookaheadsp' member, a
380 short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**).
381 Adjust all dependencies.
382 * src/lalr.c (initialize_lookaheads): Split into...
383 (states_lookaheads_count, states_lookaheads_initialize): these.
384 (lalr): Adjust.
385
9757c359
AD
3862002-06-15 Akim Demaille <akim@epita.fr>
387
388 * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved
389 out of...
390 (grammar_rules_print): here.
391 * src/reduce.c (reduce_output): Use it.
392 * tests/reduce.at (Useless Rules, Reduced Automaton)
393 (Underivable Rules): Adjust.
394
6b98e4b5
AD
3952002-06-15 Akim Demaille <akim@epita.fr>
396
397 Copy BYacc's nice way to report the grammar.
398
399 * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print):
400 New.
401 Don't print the rules' location, it is confusing and useless.
402 (rule_print): Use grammar_rhs_print.
403 * src/print.c (print_grammar): Use grammar_rules_print.
404
6b98e4b5
AD
4052002-06-15 Akim Demaille <akim@epita.fr>
406
407 Complete and rationalize `useless thing' warnings.
408
409 * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n)
410 (symbol_tag_print): New.
411 Use them everywhere in place of accessing directly the tag member.
412 * src/gram.h, src/gram.c (rule_print): New.
413 Use it where a rule used to be printed `by hand'.
414 * src/reduce.c (nonterminals_reduce): Report the use nonterminals.
415 (reduce_grammar_tables): Report the useless rules.
416 (reduce_print): Useless things are a warning, not an error.
417 Report it as such.
418 * tests/reduce.at (Useless Nonterminals, Useless Rules):
419 (Reduced Automaton, Underivable Rules): Adjust.
420 * tests/regression.at (Web2c Report, Web2c Report): Adjust.
421 * tests/conflicts.at (Unresolved SR Conflicts)
422 (Solved SR Conflicts): Adjust.
423
ee000ba4
AD
4242002-06-15 Akim Demaille <akim@epita.fr>
425
426 Let symbols have a location.
427
428 * src/symtab.h, src/symtab.c (symbol_t): Location is a new member.
429 (getsym): Adjust.
430 Adjust all callers.
431 * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at):
432 Use location_t, not int.
433 * src/symtab.c (symbol_check_defined): Take advantage of the
434 location.
435 * tests/regression.at (Invalid inputs): Adjust.
436
8efe435c
AD
4372002-06-15 Akim Demaille <akim@epita.fr>
438
439 * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
440 (input): Don't try to initialize yylloc here, do it in the
441 scanner.
442 * src/scan-gram.l (YY_USER_INIT): Initialize yylloc.
443 * src/gram.h (rule_t): Change line and action_line into location
444 and action_location, of location_t type.
445 Adjust all dependencies.
446 * src/location.h, src/location.c (empty_location): New.
447 * src/reader.h, src/reader.c (grammar_start_symbol_set)
448 (grammar_symbol_append, grammar_rule_begin, grammar_rule_end)
449 (grammar_current_rule_symbol_append)
450 (grammar_current_rule_action_append): Expect a location as argument.
451 * src/reader.c (grammar_midrule_action): Adjust to attach an
452 action's location as dummy symbol location.
453 * src/symtab.h, src/symtab.c (startsymbol_location): New.
454 * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust
455 the line numbers.
456
1921f1d7
AD
4572002-06-14 Akim Demaille <akim@epita.fr>
458
459 Grammar declarations may be found in the grammar section.
460
461 * src/parse-gram.y (rules_or_grammar_declaration): New.
462 (declarations): Each declaration may end with a semicolon, not
463 just...
464 (grammar_declaration): `"%union"'.
465 (grammar): Branch to rules_or_grammar_declaration.
466
4515534c
AD
4672002-06-14 Akim Demaille <akim@epita.fr>
468
469 * src/main.c (main): Invoke scanner_free.
470
f958596b
AD
4712002-06-14 Akim Demaille <akim@epita.fr>
472
473 * src/output.c (m4_invoke): Extracted from...
474 (output_skeleton): here.
475 Free tempfile.
476
2c569025
AD
4772002-06-14 Akim Demaille <akim@epita.fr>
478
479 * src/parse-gram.y (directives, directive, gram)
480 (grammar_directives, precedence_directives, precedence_directive):
481 Rename as...
482 (declarations, declaration, grammar, grammar_declaration)
483 (precedence_declaration, precedence_declarator): these.
484 (symbol_declaration): New.
485
592e8d4d
AD
4862002-06-14 Akim Demaille <akim@epita.fr>
487
488 * src/files.c (action_obstack): Remove, unused.
489 (output_obstack): Remove it, and all its dependencies, as it is no
490 longer needed.
491 * src/reader.c (epilogue_set): Build the epilogue in the
492 muscle_obstack.
493 * src/output.h, src/output.c (muscle_obstack): Move to...
494 * src/muscle_tab.h, src/muscle_tab.h: here.
495 (muscle_init): Initialize muscle_obstack.
496 (muscle_free): New.
497 * src/main.c (main): Call it.
498
0c15323d
AD
4992002-06-14 Akim Demaille <akim@epita.fr>
500
501 * src/location.h: New, extracted from...
502 * src/reader.h: here.
503 * src/Makefile.am (noinst_HEADERS): Merge into
504 (bison_SOURCES): this.
505 Add location.h.
506 * src/parse-gram.y: Use location_t instead of Bison's.
507 * src/reader.h, src/reader.c (prologue_augment, epilogue_set):
508 Use location_t instead of ints.
509
e96c9728
AD
5102002-06-14 Akim Demaille <akim@epita.fr>
511
512 * data/bison.simple, data/bison.c++: Be sure to restore the
513 current #line when returning to the skeleton contents after having
514 exposed the input file's #line.
515
75d1fe16
AD
5162002-06-12 Akim Demaille <akim@epita.fr>
517
518 * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
519 eager.
520 * tests/actions.at (Exotic Dollars): New.
521
6c35d22c
AD
5222002-06-12 Akim Demaille <akim@epita.fr>
523
524 * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
525 ['"/] too eagerly.
526 * tests/input.at (Torturing the Scanner): New.
527
1d6412ad
AD
5282002-06-11 Akim Demaille <akim@epita.fr>
529
530 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
531 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
532 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
533 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
534 * src/reader.c (reader): Use it.
535
4cdb01db
AD
5362002-06-11 Akim Demaille <akim@epita.fr>
537
538 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
539 Adjust all callers.
540 (scanner_last_string_free): New.
541
44995b2e
AD
5422002-06-11 Akim Demaille <akim@epita.fr>
543
544 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
545 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
546 (last_string, YY_OBS_FREE): New.
547 Use them when returning an ID.
548
e9955c83
AD
5492002-06-11 Akim Demaille <akim@epita.fr>
550
551 Have Bison grammars parsed by a Bison grammar.
552
553 * src/reader.c, src/reader.h (prologue_augment): New.
554 * src/reader.c (copy_definition): Remove.
555
556 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
557 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
558 (grammar_current_rule_prec_set, grammar_current_rule_check)
559 (grammar_current_rule_symbol_append)
560 (grammar_current_rule_action_append): Export.
561 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
562 (symbol_list_action_append): Remove.
563 Hook the routines from reader.
564 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
565 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
566
567 * src/reader.c (read_declarations): Remove, unused.
568
569 * src/parse-gram.y: Handle the epilogue.
570 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
571 (grammar_start_symbol_set): this.
572 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
573 * src/reader.c (readgram): Remove, unused.
574 (reader): Adjust to insert eoftoken and axiom where appropriate.
575
576 * src/reader.c (copy_dollar): Replace with...
577 * src/scan-gram.h (handle_dollar): this.
578 * src/parse-gram.y: Remove `%thong'.
579
580 * src/reader.c (copy_at): Replace with...
581 * src/scan-gram.h (handle_at): this.
582
583 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
584 New.
585
586 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
587 time being.
588
589 * src/reader.h, src/reader.c (grammar_rule_end): New.
590
591 * src/parse.y (current_type, current_class): New.
592 Implement `%nterm', `%token' support.
593 Merge `%term' into `%token'.
594 (string_as_id): New.
595 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
596 type name.
597
598 * src/parse-gram.y: Be sure to handle properly the beginning of
599 rules.
600
601 * src/parse-gram.y: Handle %type.
602 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
603
604 * src/parse-gram.y: More directives support.
605 * src/options.c: No longer handle source directives.
606
607 * src/parse-gram.y: Fix %output.
608
609 * src/parse-gram.y: Handle %union.
610 Use the prologue locations.
611 * src/reader.c (parse_union_decl): Remove.
612
613 * src/reader.h, src/reader.c (epilogue_set): New.
614 * src/parse-gram.y: Use it.
615
616 * data/bison.simple, data/bison.c++: b4_stype is now either not
617 defined, then default to int, or to the contents of %union,
618 without `union' itself.
619 Adjust.
620 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
621
622 * src/output.c (actions_output): Don't output braces, as they are
623 already handled by the scanner.
624
625 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
626 characters to themselves.
627
628 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
629 that the epilogue has a proper #line.
630
631 * src/parse-gram.y: Handle precedence/associativity.
632
633 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
634 a terminal.
635 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
636 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
637 at all to define terminals that cannot be emitted.
638
639 * src/scan-gram.l: Escape M4 characters.
640
641 * src/scan-gram.l: Working properly with escapes in user
642 strings/characters.
643
644 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
645 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
646 grammar.
647 Use more modest sizes, as for the time being the parser does not
648 release memory, and therefore the process swallows a huge amount
649 of memory.
650
651 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
652 stricter %token grammar.
653
654 * src/symtab.h (associativity): Add `undef_assoc'.
655 (symbol_precedence_set): Do nothing when passed an undef_assoc.
656 * src/symtab.c (symbol_check_alias_consistence): Adjust.
657
658 * tests/regression.at (Invalid %directive): Remove, as it is now
659 meaningless.
660 (Invalid inputs): Adjust to the new error messages.
661 (Token definitions): The new grammar doesn't allow too many
662 eccentricities.
663
664 * src/lex.h, src/lex.c: Remove.
665 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
666 (copy_character, copy_string2, copy_string, copy_identifier)
667 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
668 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
669 (parse_action): Remove.
670 * po/POTFILES.in: Adjust.
671
2e047461
AD
6722002-06-11 Akim Demaille <akim@epita.fr>
673
674 * src/reader.c (parse_action): Don't store directly into the
675 rule's action member: return the action as a string.
676 Don't require `rule_length' as an argument: compute it.
677 (grammar_current_rule_symbol_append)
678 (grammar_current_rule_action_append): New, eved out from
679 (readgram): here.
680 Remove `action_flag', `rulelength', unused now.
681
9af3fbce
AD
6822002-06-11 Akim Demaille <akim@epita.fr>
683
684 * src/reader.c (grammar_current_rule_prec_set).
685 (grammar_current_rule_check): New, eved out from...
686 (readgram): here.
687 Remove `xaction', `first_rhs': useless.
688 * tests/input.at (Type clashes): New.
689 * tests/existing.at (GNU Cim Grammar): Adjust.
690
1485e106
AD
6912002-06-11 Akim Demaille <akim@epita.fr>
692
693 * src/reader.c (grammar_midrule_action): New, Eved out from
694 (readgram): here.
695
da4160c3
AD
6962002-06-11 Akim Demaille <akim@epita.fr>
697
698 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
699 New.
700 (readgram): Use them as replacement of inlined code, crule and
701 crule1.
702
f6d0f937
AD
7032002-06-11 Akim Demaille <akim@epita.fr>
704
705 * src/reader.c (grammar_end, grammar_symbol_append): New.
706 (readgram): Use them.
707 Make the use of `p' as local as possible.
708
69078d4b
AD
7092002-06-10 Akim Demaille <akim@epita.fr>
710
711 GCJ's parser requires the tokens to be defined before the prologue.
712
713 * data/bison.simple: Output the token definition before the user's
714 prologue.
715 * tests/regression.at (Braces parsing, Duplicate string)
716 (Mixing %token styles): Check the output from bison.
717 (Early token definitions): New.
718
5e424082
AD
7192002-06-10 Akim Demaille <akim@epita.fr>
720
721 * src/symtab.c (symbol_user_token_number_set): Don't complain when
722 assigning twice the same user number to a token, so that we can
723 use it in...
724 * src/lex.c (lex): here.
725 Also use `symbol_class_set' instead of hand written code.
726 * src/reader.c (parse_assoc_decl): Likewise.
727
44536b35
AD
7282002-06-10 Akim Demaille <akim@epita.fr>
729
730 * src/symtab.c, src/symtab.c (symbol_class_set)
731 (symbol_user_token_number_set): New.
732 * src/reader.c (parse_token_decl): Use them.
733 Use a switch instead of ifs.
734 Use a single argument.
735
8b9f2372
AD
7362002-06-10 Akim Demaille <akim@epita.fr>
737
738 Remove `%thong' support as it is undocumented, unused, duplicates
739 `%token's job, and creates useless e-mail traffic with people who
740 want to know what it is, why it is undocumented, unused, and
741 duplicates `%token's job.
742
743 * src/reader.c (parse_thong_decl): Remove.
744 * src/options.c (option_table): Remove "thong".
745 * src/lex.h (tok_thong): Remove.
746
3ae2b51f
AD
7472002-06-10 Akim Demaille <akim@epita.fr>
748
749 * src/symtab.c, src/symtab.c (symbol_type_set)
750 (symbol_precedence_set): New.
751 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
752 (value_components_used): Remove, unused.
753
2f1afb73
AD
7542002-06-09 Akim Demaille <akim@epita.fr>
755
756 Move symbols handling code out of the reader.
757
758 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
759 (axiom): Move to...
760 * src/symtab.h, src/symtab.c: here.
761
762 * src/gram.c (start_symbol): Remove: use startsymbol->number.
763 * src/reader.c (startval): Rename as...
764 * src/symtab.h, src/symtab.c (startsymbol): this.
765 * src/reader.c: Adjust.
766
767 * src/reader.c (symbol_check_defined, symbol_make_alias)
768 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
769 (token_translations_init)
770 Move to...
771 * src/symtab.c: here.
772 * src/reader.c (packsymbols): Move to...
773 * src/symtab.h, src/symtab.c (symbols_pack): here.
774 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
775 argument.
776
e9bca3ad
AD
7772002-06-03 Akim Demaille <akim@epita.fr>
778
779 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
780 then statements.
781
86eff183
AD
7822002-06-03 Akim Demaille <akim@epita.fr>
783
784 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
785 structs with non literals.
786 * src/scan-skel.l: never-interactive.
787 * src/conflicts.c (enum conflict_resolution_e): No trailing
788 comma.
789 * src/getargs.c (usage): Split long literal strings.
790 Reported by Hans Aberg.
791
717be197
AD
7922002-05-28 Akim Demaille <akim@epita.fr>
793
794 * data/bison.c++: Use C++ ostreams.
795 (cdebug_): New member.
796
670ddffd
AD
7972002-05-28 Akim Demaille <akim@epita.fr>
798
799 * src/output.c (output_skeleton): Be sure to allocate enough room
800 for `/' _and_ for `\0' in full_skeleton.
801
769b430f
AD
8022002-05-28 Akim Demaille <akim@epita.fr>
803
804 * data/bison.c++: Catch up with bison.simple:
805 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
806 and Paul Eggert <eggert@twinsun.com>: `error' handing.
807 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
808 and popping traces.
809
7067cb36
PH
8102002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
811
812 * src/output.c (output_skeleton): Put an explicit path in front of
813 the skeleton file name, rather than relying on the -I directory,
814 to partially alleviate effects of having a skeleton file lying around
815 in the current directory.
769b430f 816
4a713ec2
PH
8172002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
818
769b430f 819 * src/conflicts.c (log_resolution): Correct typo:
4a713ec2
PH
820 obstack_printf should be obstack_fgrow1.
821
b408954b
AD
8222002-05-26 Akim Demaille <akim@epita.fr>
823
824 * src/state.h (state_t): `solved_conflicts' is a new member.
825 * src/LR0.c (new_state): Set it to 0.
826 * src/conflicts.h, src/conflicts.c (print_conflicts)
827 (free_conflicts, solve_conflicts): Rename as...
828 (conflicts_print, conflicts_free, conflicts_solve): these.
829 Adjust callers.
830 * src/conflicts.c (enum conflict_resolution_e)
831 (solved_conflicts_obstack): New, used by...
832 (log_resolution): this.
833 Adjust to attach the conflict resolution to each state.
834 Complete the description with the precedence/associativity
835 information.
836 (resolve_sr_conflict): Adjust.
837 * src/print.c (print_state): Output its solved_conflicts.
838 * tests/conflicts.at (Unresolved SR Conflicts)
839 (Solved SR Conflicts): Exercise --report=all.
840
a49aecd5
AD
8412002-05-26 Akim Demaille <akim@epita.fr>
842
843 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
844 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
845 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
846 (token_number_t, item_number_as_token_number)
847 (token_number_as_item_number, muscle_insert_token_number_table):
848 Rename as...
849 (symbol_number_t, item_number_as_symbol_number)
850 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
851 these, since it is more appropriate.
852
5504898e
AD
8532002-05-26 Akim Demaille <akim@epita.fr>
854
855 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
856 `Error:' lines.
857 * data/bison.simple (yystos) [YYDEBUG]: New.
858 (yyparse) [YYDEBUG]: Display the symbols which are popped during
859 error recovery.
860 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
861
ec3bc396
AD
8622002-05-25 Akim Demaille <akim@epita.fr>
863
864 * doc/bison.texinfo (Debugging): Split into...
865 (Tracing): this new section, its former contents, and...
866 (Understanding): this new section.
867 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
868 by...
869 (report_flag): this.
870 Adjust all dependencies.
871 (report_args, report_types, report_argmatch): New.
872 (usage, getargs): Report/support -r, --report.
873 * src/options.h
874 (struct option_table_struct): Rename as..,
875 (struct option_table_s): this.
876 Rename the `set_flag' member to `flag' to match with getopt_long's
877 struct.
878 * src/options.c (option_table): Split verbose into an entry for
879 %verbose, and another for --verbose.
880 Support --report/-r, so remove -r from the obsolete --raw.
881 * src/print.c: Attach full item sets and lookaheads reports to
882 report_flag instead of trace_flag.
883 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
884
78df8250
PE
8852002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
886 and Paul Eggert <eggert@twinsun.com>
769b430f 887
78df8250
PE
888 * data/bison.simple (yyparse): Correct error handling to conform to
889 POSIX and yacc. Specifically, after syntax error is discovered,
890 do not reduce further before shifting the error token.
891 Clean up the code a bit by removing the labels yyerrdefault,
892 yyerrhandle, yyerrpop.
893 * NEWS: Document the above.
894
c0c9ea05
PH
8952002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
896
897 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
898 type; it isn't always big enough, since it doesn't necessarily
899 include non-terminals.
769b430f 900 (yytranslate): Expand definition of yy_token_number_type, so that
c0c9ea05
PH
901 the latter can be removed.
902 (yy_token_number_type): Remove, only one use.
903 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
904 don't use TokenNumberType as element type.
769b430f 905
c0c9ea05
PH
906 * tests/regression.at: Modify expected output to agree with change
907 to yyr1 and yytranslate.
769b430f 908
6390a83f
FK
9092002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
910
911 * src/reader.c (parse_action): Use copy_character instead of
912 obstack_1grow.
913
db7c8e9a
AD
9142002-05-13 Akim Demaille <akim@epita.fr>
915
916 * tests/regression.at (Token definitions): Prototype yylex and
917 yyerror.
918
fcc61800
PH
9192002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
920
158c687b 921 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
fcc61800
PH
922 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
923 32-bit arithmetic.
924 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
925
5683e9b2
AD
9262002-05-07 Akim Demaille <akim@epita.fr>
927
928 * tests/synclines.at: Be sure to prototype yylex and yyerror to
929 avoid GCC warnings.
930
0c2d3f4c
AD
9312002-05-07 Akim Demaille <akim@epita.fr>
932
933 Kill GCC warnings.
934
935 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
936 over the RHS of each rule.
937 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
938 * src/state.h (state_t): Member `nitems' is unsigned short.
939 * src/LR0.c (get_state): Adjust.
940 * src/reader.c (packgram): Likewise.
941 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
942 `Type'.
943 (muscle_insert_int_table): Remove, unused.
944 (prepare_rules): Remove `max'.
945
1565b720
AD
9462002-05-06 Akim Demaille <akim@epita.fr>
947
948 * src/closure.c (print_firsts): Display of the symbol tags.
949 (bitmatrix_print): Move to...
950 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
951 here.
952 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
953
cfaee611
AD
9542002-05-06 Akim Demaille <akim@epita.fr>
955
956 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
957 hash_do_for_each.
958
458be8e0
AD
9592002-05-06 Akim Demaille <akim@epita.fr>
960
961 * src/LR0.c (new_state, get_state): Instead of using the global
962 `kernel_size' and `kernel_base', have two new arguments:
963 `core_size' and `core'.
964 Adjust callers.
965
a900a624
AD
9662002-05-06 Akim Demaille <akim@epita.fr>
967
968 * src/reader.c (packgram): No longer end `ritem' with a 0
969 sentinel: it is not used.
970
d4e7d3a1
AD
9712002-05-05 Akim Demaille <akim@epita.fr>
972
973 New experimental feature: display the lookaheads in the report and
974 graph.
975
976 * src/print (print_core): When --trace-flag, display the rules
977 lookaheads.
978 * src/print_graph.c (print_core): Likewise.
979 Swap the arguments.
980 Adjust caller.
981
39ceb25b
AD
9822002-05-05 Akim Demaille <akim@epita.fr>
983
984 * tests/torture.at (Many lookaheads): New test.
985
5372019f
AD
9862002-05-05 Akim Demaille <akim@epita.fr>
987
988 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
989 (GENERATE_MUSCLE_INSERT_TABLE): this.
990 (output_int_table, output_unsigned_int_table, output_short_table)
991 (output_token_number_table, output_item_number_table): Replace with...
992 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
993 (muscle_insert_short_table, muscle_insert_token_number_table)
994 (muscle_insert_item_number_table): these.
995 Adjust all callers.
996 (prepare_tokens): Don't free `translations', since...
997 * src/reader.h, src/reader.c (grammar_free): do it.
998 Move to...
999 * src/gram.h, src/gram.c (grammar_free): here.
1000 * data/bison.simple, data/bison.c++: b4_token_number_max is now
1001 b4_translate_max.
1002
5df5f6d5
AD
10032002-05-05 Akim Demaille <akim@epita.fr>
1004
1005 * src/output.c (output_unsigned_int_table): New.
1006 (prepare_rules): `i' is unsigned.
1007 `prhs', `rline', `r2' are unsigned int.
1008 Rename muscle `rhs_number_max' as `rhs_max'.
1009 Output muscles `prhs_max', `rline_max', and `r2_max'.
1010 Free rline and r1.
1011 * data/bison.simple, data/bison.c++: Adjust to use these muscles
1012 to compute types instead of constant types.
1013 * tests/regression.at (Web2c Actions): Adjust.
1014
b87f8b21
AD
10152002-05-04 Akim Demaille <akim@epita.fr>
1016
1017 * src/symtab.h (SALIAS, SUNDEF): Rename as...
1018 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
1019 Adjust dependencies.
1020 * src/output.c (token_definitions_output): Be sure not to output a
1021 `#define 'a'' when fed with `%token 'a' "a"'.
1022 * tests/regression.at (Token definitions): New.
1023
8bb936e4
PE
10242002-05-03 Paul Eggert <eggert@twinsun.com>
1025
1026 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
1027 for K&R C.
1028
10292002-05-03 gettextize <bug-gnu-gettext@gnu.org>
1030
1031 * Makefile.am (SUBDIRS): Remove intl.
1032 (EXTRA_DIST): Add config/config.rpath.
1033
53c71a12
AD
10342002-05-03 Akim Demaille <akim@epita.fr>
1035
1036 * data/bison.simple (m4_if): Don't output empty enums.
1037 And actually, output valid enum definitions :(.
1038
289dd0cf
AD
10392002-05-03 Akim Demaille <akim@epita.fr>
1040
1041 * configure.bat: Remove, completely obsolete.
1042 * Makefile.am (EXTRA_DIST): Adjust.
1043 Don't distribute config.rpath...
1044 * config/Makefile.am (EXTRA_DIST): Do it.
1045
db85e524
AD
10462002-05-03 Akim Demaille <akim@epita.fr>
1047
1048 * configure.in (GETTEXT_VERSION): New.
1049 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
1050
83ccf991
AD
10512002-05-03 Akim Demaille <akim@epita.fr>
1052
1053 * data/bison.simple (b4_token_enum): New.
1054 (b4_token_defines): Use it to output tokens both as #define and
1055 enums.
1056 Suggested by Paul Eggert.
1057 * src/output.c (token_definitions_output): Don't output spurious
1058 white spaces.
1059
1f418995
AD
10602002-05-03 Akim Demaille <akim@epita.fr>
1061
1062 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1063
45119f04
RA
10642002-05-02 Robert Anisko <robert@lrde.epita.fr>
1065
1066 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
1067 Update the stack class, give a try to deque as the default container.
1068
b2d52318
AD
10692002-05-02 Akim Demaille <akim@epita.fr>
1070
1071 * data/bison.simple (yyparse): Do not implement @$ = @1.
1072 (YYLLOC_DEFAULT): Adjust to do it.
1073 * doc/bison.texinfo (Location Default Action): Fix.
1074
3a8b4109
AD
10752002-05-02 Akim Demaille <akim@epita.fr>
1076
1077 * src/reader.c (parse_braces): Merge into...
1078 (parse_action): this.
1079
84614e13
AD
10802002-05-02 Akim Demaille <akim@epita.fr>
1081
1082 * configure.in (ALL_LINGUAS): Remove.
1083 * po/LINGUAS, hr.po: New.
1084
fdbcd8e2
AD
10852002-05-02 Akim Demaille <akim@epita.fr>
1086
1087 Remove the so called hairy (semantic) parsers.
1088
1089 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
1090 * src/gram.h, src/gram.c (semantic_parser): Remove.
1091 (rule_t): Remove the guard and guard_line members.
1092 * src/lex.h (token_t): remove tok_guard.
1093 * src/options.c (option_table): Remove %guard and %semantic_parser
1094 support.
1095 * src/output.c, src/output.h (guards_output): Remove.
1096 (prepare): Adjust.
1097 (token_definitions_output): Don't output the `T'
1098 tokens (???).
1099 (output_skeleton): Don't output the guards.
1100 * src/files.c, src/files.c (attrsfile): Remove.
1101 * src/reader.c (symbol_list): Remove the guard and guard_line
1102 members.
1103 Adjust dependencies.
1104 (parse_guard): Remove.
1105 * data/bison.hairy: Remove.
1106 * doc/bison.texinfo (Environment Variables): Remove occurrences of
1107 BISON_HAIRY.
1108
82b6cb3f
AD
11092002-05-02 Akim Demaille <akim@epita.fr>
1110
1111 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
1112 (parse_guard): Rename the formal argument `stack_offset' as
1113 `rule_length', which is more readable.
1114 Adjust callers.
1115 (copy_at, copy_dollar): Instead of outputting the hard coded
1116 values of $$, $n and so forth, output invocation to b4_lhs_value,
1117 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
900c877b
AD
1118 Note: this patch partially drops `semantic-parser' support: it
1119 always does `rule_length - n', where semantic parsers ought to
1120 always use `-n'.
82b6cb3f
AD
1121 * data/bison.simple, data/bison.c++ (b4_lhs_value)
1122 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
1123
6cbfbcc5
AD
11242002-05-02 Akim Demaille <akim@epita.fr>
1125
1126 * configure.in (AC_INIT): Bump to 1.49b.
1127 (AM_INIT_AUTOMAKE): Short invocation.
1128
b8548114
AD
11292002-05-02 Akim Demaille <akim@epita.fr>
1130
1131 Version 1.49a.
1132
c20cd1fa
AD
11332002-05-01 Akim Demaille <akim@epita.fr>
1134
1135 * src/skeleton.h: Remove.
1136
8a9566d4
AD
11372002-05-01 Akim Demaille <akim@epita.fr>
1138
1139 * src/skeleton.h: Fix the #endif.
1140 Reported by Magnus Fromreide.
1141
8c6d399a
PE
11422002-04-26 Paul Eggert <eggert@twinsun.com>
1143
1144 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
1145 Define if we define YYSTYPE and YYLTYPE, respectively.
b756bb75 1146 (YYCOPY): Fix [] quoting problem in the non-GCC case.
8a9566d4 1147
2b7ed18a
RA
11482002-04-25 Robert Anisko <robert@lrde.epita.fr>
1149
1150 * src/scan-skel.l: Postprocess quadrigraphs.
1151
1152 * src/reader.c (copy_character): New function, used to output
1153 single characters while replacing `[' and `]' with quadrigraphs, to
1154 avoid troubles with M4 quotes.
1155 (copy_comment): Output characters with copy_character.
1156 (read_additionnal_code): Likewise.
1157 (copy_string2): Likewise.
1158 (copy_definition): Likewise.
1159
1160 * tests/calc.at: Exercise M4 quoting.
1161
34a89c50
AD
11622002-04-25 Akim Demaille <akim@epita.fr>
1163
1164 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
1165 between `!' and the command.
1166 Reported by Paul Eggert.
1167
0dd1580a
RA
11682002-04-24 Robert Anisko <robert@lrde.epita.fr>
1169
1170 * tests/calc.at: Exercise prologue splitting.
1171
1172 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
1173 `b4_post_prologue' instead of `b4_prologue'.
1174
1175 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
1176 muscles.
1177 (output): Free pre_prologue_obstack and post_prologue_obstack.
1178 * src/files.h, src/files.c (attrs_obstack): Remove.
1179 (pre_prologue_obstack, post_prologue_obstack): New.
1180 * src/reader.c (copy_definition): Add a parameter to specify the
1181 obstack to fill, instead of using attrs_obstack unconditionally.
1182 (read_declarations): Pass pre_prologue_obstack to copy_definition if
1183 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
1184
83c1796f
PE
11852002-04-23 Paul Eggert <eggert@twinsun.com>
1186
1187 * data/bison.simple: Remove unnecessary commentary and white
1188 space differences from 1_29-branch.
1189 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
1190
1191 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
1192 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
1193 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
1194 constructors or destructors.
1195
1196 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
1197
1207eeac
AD
11982002-04-23 Akim Demaille <akim@epita.fr>
1199
1200 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
1201 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
1202 location with columns.
1203 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
1204 All reported by Paul Eggert.
1205
78ab8f67
AD
12062002-04-22 Akim Demaille <akim@epita.fr>
1207
1208 * src/reduce.c (dump_grammar): Move to...
1209 * src/gram.h, src/gram.c (grammar_dump): here.
1210 Be sure to separate long item numbers.
1211 Don't read the members of a rule's prec if its nil.
1212
133c20e2
AD
12132002-04-22 Akim Demaille <akim@epita.fr>
1214
1215 * src/output.c (table_size, table_grow): New.
1216 (MAXTABLE): Remove, replace uses with table_size.
1217 (pack_vector): Instead of dying when the table is too big, grow it.
1218
9515e8a7
AD
12192002-04-22 Akim Demaille <akim@epita.fr>
1220
1221 * data/bison.simple (yyr1): Its type is that of a token number.
1222 * data/bison.c++ (r1_): Likewise.
1223 * tests/regression.at (Web2c Actions): Adjust.
1224
23c5a174
AD
12252002-04-22 Akim Demaille <akim@epita.fr>
1226
1227 * src/reader.c (token_translations_init): 256 is now the default
1228 value for the error token, i.e., it will be assigned another
1229 number if the user assigned 256 to one of her tokens.
1230 (reader): Don't force 256 to error.
1231 * doc/bison.texinfo (Symbols): Adjust.
1232 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
1233 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
1234 etc. instead of 10, 20, 30 (which was used to `jump' over error
1235 (256) and undefined (2)).
1236
5fbb0954
AD
12372002-04-22 Akim Demaille <akim@epita.fr>
1238
1239 Propagate more token_number_t.
1240
1241 * src/gram.h (token_number_as_item_number)
1242 (item_number_as_token_number): New.
1243 * src/output.c (GENERATE_OUTPUT_TABLE): New.
1244 Use it to create output_item_number_table and
1245 output_token_number_table.
1246 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
1247 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
1248 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
1249 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
1250
4f940944
AD
12512002-04-22 Akim Demaille <akim@epita.fr>
1252
1253 * src/output.h, src/output.c (get_lines_number): Remove.
1254
3ded9a63
AD
12552002-04-19 Akim Demaille <akim@epita.fr>
1256
1257 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
1258 as Lex/Flex'.
1259 (Debugging): More details about enabling the debugging features.
1260 (Table of Symbols): Describe $$, $n, @$, and @n.
1261 Suggested by Tim Josling.
1262
e0c471a9
AD
12632002-04-19 Akim Demaille <akim@epita.fr>
1264
1265 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
1266
fecc10cd
AD
12672002-04-10 Akim Demaille <akim@epita.fr>
1268
1269 * src/system.h: Rely on HAVE_LIMITS_H.
1270 Suggested by Paul Eggert.
1271
51dec47b
AD
12722002-04-09 Akim Demaille <akim@epita.fr>
1273
1274 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
1275 full stderr, and strip it according to the bison options, instead
1276 of composing the error message from different bits.
1277 This makes it easier to check for several error messages.
1278 Adjust all the invocations.
1279 Add an invocation exercising the error token.
1280 Add an invocation demonstrating a stupid error message.
1281 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
1282 Adjust the tests.
1283 Error message are for stderr, not stdout.
1284
007a50a4
AD
12852002-04-09 Akim Demaille <akim@epita.fr>
1286
1287 * src/gram.h, src/gram.c (error_token_number): Remove, use
1288 errtoken->number.
1289 * src/reader.c (reader): Don't specify the user token number (2)
1290 for $undefined, as it uselessly prevents using it.
1291 * src/gram.h (token_number_t): Move to...
1292 * src/symtab.h: here.
1293 (state_t.number): Is a token_number_t.
1294 * src/print.c, src/reader.c: Use undeftoken->number instead of
1295 hard coded 2.
1296 (Even though this 2 is not the same as above: the number of the
1297 undeftoken remains being 2, it is its user token number which
1298 might not be 2).
1299 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
1300 `user_token_number_max'.
1301 Output `undef_token_number'.
1302 * data/bison.simple, data/bison.c++: Use them.
1303 Be sure to map invalid yylex return values to
1304 `undef_token_number'. This saves us from gratuitous SEGV.
1305
1306 * tests/conflicts.at (Solved SR Conflicts)
1307 (Unresolved SR Conflicts): Adjust.
1308 * tests/regression.at (Web2c Actions): Adjust.
1309
06446ccf
AD
13102002-04-08 Akim Demaille <akim@epita.fr>
1311
1312 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
1313 Adding #line.
1314 Remove the duplicate `typedefs'.
1315 (RhsNumberType): Fix the declaration and various other typos.
1316 Use __ofile__.
1317 * data/bison.simple: Use __ofile__.
1318 * src/scan-skel.l: Handle __ofile__.
1319
62a3e4f0
AD
13202002-04-08 Akim Demaille <akim@epita.fr>
1321
1322 * src/gram.h (item_number_t): New, the type of item numbers in
1323 RITEM. Note that it must be able to code symbol numbers as
1324 positive number, and the negation of rule numbers as negative
1325 numbers.
1326 Adjust all dependencies (pretty many).
1327 * src/reduce.c (rule): Remove this `short *' pointer: use
1328 item_number_t.
1329 * src/system.h (MINSHORT, MAXSHORT): Remove.
1330 Include `limits.h'.
1331 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
1332 (shortcpy): Remove.
1333 (MAXTABLE): Move to...
1334 * src/output.c (MAXTABLE): here.
1335 (prepare_rules): Use output_int_table to output rhs.
1336 * data/bison.simple, data/bison.c++: Adjust.
1337 * tests/torture.at (Big triangle): Move the limit from 254 to
1338 500.
1339 * tests/regression.at (Web2c Actions): Ajust.
1340
1341 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
1342 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
1343 passes, but produces negative #line number, once fixed, GCC is
1344 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
1345 C), it passes.
1346 * src/state.h (state_h): Code input lines on ints, not shorts.
1347
bb88b0fc
AD
13482002-04-08 Akim Demaille <akim@epita.fr>
1349
1350 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
1351 and then the grammar.
1352
9a636f47
AD
13532002-04-08 Akim Demaille <akim@epita.fr>
1354
1355 * src/system.h: No longer using strndup.
1356
680e8701
AD
13572002-04-07 Akim Demaille <akim@epita.fr>
1358
1359 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
1360 * src/output.c (output_table_data): Return the longest number.
1361 (prepare_tokens): Output `token_number_max').
1362 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
1363 New.
1364 Use them to define yy_token_number_type/TokenNumberType.
1365 Use this type for yytranslate.
1366 * tests/torture.at (Big triangle): Push the limit from 124 to
1367 253.
1368 * tests/regression.at (Web2c Actions): Adjust.
1369
817e9f41
AD
13702002-04-07 Akim Demaille <akim@epita.fr>
1371
1372 * tests/torture.at (Big triangle): New.
1373 (GNU AWK Grammar, GNU Cim Grammar): Move to...
1374 * tests/existing.at: here.
1375
5123689b
AD
13762002-04-07 Akim Demaille <akim@epita.fr>
1377
1378 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
1379 nritems.
1380 Adjust dependencies.
1381
f3849179
AD
13822002-04-07 Akim Demaille <akim@epita.fr>
1383
1384 * src/reader.c: Normalize increments to prefix form.
1385
bd02036a
AD
13862002-04-07 Akim Demaille <akim@epita.fr>
1387
1388 * src/reader.c, symtab.c: Remove debugging code.
1389
db8837cb
AD
13902002-04-07 Akim Demaille <akim@epita.fr>
1391
1392 Rename all the `bucket's as `symbol_t'.
1393
1394 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
1395 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
1396 * src/symtab.c, src/symtab.h (bucket): Rename as...
1397 (symbol_t): this.
1398 (symbol_list_new, bucket_check_defined, bucket_make_alias)
1399 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
1400 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1401 (buckets_new, buckets_free, buckets_do): Rename as...
1402 (symbol_list_new, symbol_check_defined, symbol_make_alias)
1403 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
1404 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
1405 (symbols_new, symbols_free, symbols_do): these.
1406
72a23c97
AD
14072002-04-07 Akim Demaille <akim@epita.fr>
1408
1409 Use lib/hash for the symbol table.
1410
1411 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
1412 EOF.
1413 * src/lex.c (lex): Set the `number' member of new terminals.
1414 * src/reader.c (bucket_check_defined, bucket_make_alias)
1415 (bucket_check_alias_consistence, bucket_translation): New.
1416 (reader, grammar_free, readgram, token_translations_init)
1417 (packsymbols): Adjust.
1418 (reader): Number the predefined tokens.
1419 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
1420 for predefined tokens.
1421 * src/symtab.h (bucket): Remove all the hash table related
1422 members.
1423 * src/symtab.c (symtab): Replace by...
1424 (bucket_table): this.
1425 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1426 (buckets_new, buckets_do): New.
1427
280a38c3
AD
14282002-04-07 Akim Demaille <akim@epita.fr>
1429
1430 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
1431 (start_symbol, max_user_token_number, semantic_parser)
1432 (error_token_number): Initialize.
1433 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
1434 Initialize.
1435 (reader): Don't.
1436 (errtoken, eoftoken, undeftoken, axiom): Extern.
1437
03b31c0c
AD
14382002-04-07 Akim Demaille <akim@epita.fr>
1439
1440 * src/gram.h (rule_s): prec and precsym are now pointers
1441 to the bucket giving the priority/associativity.
1442 Member `associativity' removed: useless.
1443 * src/reduce.c, src/conflicts.c: Adjust.
1444
8b3df748
AD
14452002-04-07 Akim Demaille <akim@epita.fr>
1446
1447 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
1448 Properly escape the symbols' TAG when outputting them.
1449
e601aa1d
AD
14502002-04-07 Akim Demaille <akim@epita.fr>
1451
1452 * src/lalr.h (LA): Is a bitsetv, not bitset*.
1453
b0299a2e
AD
14542002-04-07 Akim Demaille <akim@epita.fr>
1455
1456 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
1457 (LArule): this, which is an array to rule_t*.
1458 * src/print.c, src/conflicts.c: Adjust.
1459
d7e1f00c
AD
14602002-04-07 Akim Demaille <akim@epita.fr>
1461
1462 * src/gram.h (rule_t): Rename `number' as `user_number'.
1463 `number' is a new member.
1464 Adjust dependencies.
1465 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
1466
cc9305dd
AD
14672002-04-07 Akim Demaille <akim@epita.fr>
1468
1469 As a result of the previous patch, it is no longer needed
1470 to reorder ritem itself.
1471
1472 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
1473
b0940840
AD
14742002-04-07 Akim Demaille <akim@epita.fr>
1475
1476 Be sure never to walk through RITEMS, but use only data related to
1477 the rules themselves. RITEMS should be banished.
1478
1479 * src/output.c (output_token_translations): Rename as...
1480 (prepare_tokens): this.
1481 In addition to `translate', prepare the muscles `tname' and
1482 `toknum', which were handled by...
1483 (output_rule_data): this.
1484 Remove, and move the remainder of its outputs into...
1485 (prepare_rules): this new routines, which also merges content from
1486 (output_gram): this.
1487 (prepare_rules): Be sure never to walk through RITEMS.
1488 (output_stos): Rename as...
1489 (prepare_stos): this.
1490 (output): Always invoke prepare_states, after all, just don't use it
1491 in the output if you don't need it.
1492
643a5994
AD
14932002-04-07 Akim Demaille <akim@epita.fr>
1494
1495 * src/LR0.c (new_state): Display `nstates' as the name of the
1496 newly created state.
1497 Adjust to initialize first_state and last_state if needed.
1498 Be sure to distinguish the initial from the final state.
1499 (new_states): Create the itemset of the initial state, and use
1500 new_state.
1501 * src/closure.c (closure): Now that the initial state has its
1502 items properly set, there is no need for a special case when
1503 creating `ruleset'.
1504
1505 As a result, now the rule 0, reducing to $axiom, is visible in the
1506 outputs. Adjust the test suite.
1507
1508 * tests/conflicts.at (Solved SR Conflicts)
1509 (Unresolved SR Conflicts): Adjust.
1510 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
1511 * tests/conflicts.at (S/R in initial): New.
1512
b4c4ccc2
AD
15132002-04-07 Akim Demaille <akim@epita.fr>
1514
1515 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
1516 the RHS of the rules.
1517 * src/output.c (output_gram): Likewise.
1518
bba97eb2
AD
15192002-04-07 Akim Demaille <akim@epita.fr>
1520
1521 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
1522 bucket.
1523 Adjust all dependencies.
1524 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
1525 `number' of the buckets too.
1526 * src/gram.h: Include `symtab.h'.
1527 (associativity): Move to...
1528 * src/symtab.h: here.
1529 No longer include `gram.h'.
1530
c3b407f4
AD
15312002-04-07 Akim Demaille <akim@epita.fr>
1532
1533 * src/gram.h, src/gram.c (rules_rhs_length): New.
1534 (ritem_longest_rhs): Use it.
1535 * src/gram.h (rule_t): `number' is a new member.
1536 * src/reader.c (packgram): Set it.
1537 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
1538 the end of `rules', and count them out of `nrules'.
1539 (reduce_output, dump_grammar): Adjust.
1540 * src/print.c (print_grammar): It is no longer needed to check for
1541 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
1542 * tests/reduce.at (Reduced Automaton): New test.
1543
11652ab3
AD
15442002-04-07 Akim Demaille <akim@epita.fr>
1545
1546 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
1547 lacking `+ 1' to nrules, Bison reported as useless a token if it
1548 was used solely to set the precedence of the last rule...
1549
26b23c1a
AD
15502002-04-07 Akim Demaille <akim@epita.fr>
1551
1552 * data/bison.c++, data/bison.simple: Don't output the current file
1553 name in #line, to avoid useless diffs between two identical
1554 outputs under different names.
1555
18bcecb0
AD
15562002-04-07 Akim Demaille <akim@epita.fr>
1557
1558 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
1559 Normalize loops to using `< nrules + 1', not `<= nrules'.
1560
fa770c86
AD
15612002-04-07 Akim Demaille <akim@epita.fr>
1562
1563 * TODO: Update.
1564
d9b739c3
AD
15652002-04-07 Akim Demaille <akim@epita.fr>
1566
1567 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
1568 bucket.value as bucket.number.
1569
99013900
AD
15702002-04-07 Akim Demaille <akim@epita.fr>
1571
1572 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
1573 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1574 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
1575 RHS, instead of being an index in RITEMS.
1576
e966383b
PE
15772002-04-04 Paul Eggert <eggert@twinsun.com>
1578
1579 * doc/bison.texinfo: Update copyright date.
1580 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
1581 (Symbols): Warn about running Bison in one character set,
1582 but compiling and/or running in an incompatible one.
1583 Warn about character code 256, too.
1584
15852002-04-03 Paul Eggert <eggert@twinsun.com>
1586
1587 * src/bison.data (YYSTACK_ALLOC): Depend on whether
1588 YYERROR_VERBOSE is nonzero, not whether it is defined.
1589
1590 Merge changes from bison-1_29-branch.
c307773e 1591
8d6c48b9
PE
15922002-03-20 Paul Eggert <eggert@twinsun.com>
1593
1594 Merge fixes from Debian bison_1.34-1.diff.
1595
1596 * configure.in (AC_PREREQ): 2.53.
1597
e53c6322
AD
15982002-03-20 Akim Demaille <akim@epita.fr>
1599
1600 * src/conflicts.c (log_resolution): Argument `resolution' is const.
1601
9ffbeca7
PE
16022002-03-19 Paul Eggert <eggert@twinsun.com>
1603
21db0b2a
PE
1604 * src/bison.simple (YYCOPY): New macro.
1605 (YYSTACK_RELOCATE): Use it.
1606 Remove Type arg; no longer needed. All callers changed.
1607 (yymemcpy): Remove; no longer needed.
1608
9ffbeca7
PE
1609 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
1610 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1611
642cb8f8
AD
16122002-03-19 Akim Demaille <akim@epita.fr>
1613
1614 Test and fix the #line outputs.
1615
1616 * tests/atlocal.at (GCC): New.
1617 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
1618 (Prologue synch line, ,%union synch line, Postprologue synch line)
1619 (Action synch line, Epilogue synch line): New tests.
1620 * src/reader.c (parse_union_decl): Define the muscle stype_line.
1621 * data/bison.simple, data/bison.c++: Use it.
1622
3c31a486
AD
16232002-03-19 Akim Demaille <akim@epita.fr>
1624
1625 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
1626 (Solved SR Conflicts, %expect not enough, %expect right)
1627 (%expect too much): Move to...
1628 * tests/conflicts.at: this new file.
1629
0d8bed56
AD
16302002-03-19 Akim Demaille <akim@epita.fr>
1631
1632 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1633 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
1634 that we can move to enums for instance.
1635 * src/output.c (token_definitions_output): Output a list of
1636 `token-name, token-number' instead of the #define.
1637 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
1638
9208d17f
AD
16392002-03-14 Akim Demaille <akim@epita.fr>
1640
1641 Use Gettext 0.11.1.
1642
af27eacb
RA
16432002-03-09 Robert Anisko <robert@lrde.epita.fr>
1644
1645 * data/bison.c++: Make the user able to add members to the generated
1646 parser by subclassing.
1647
9101a310
RA
16482002-03-05 Robert Anisko <robert@lrde.epita.fr>
1649
1650 * src/reader.c (read_additionnal_code): `c' should be an integer, not
1651 a character.
1652 Reported by Nicolas Tisserand and Nicolas Burrus.
1653
fff9bf0b
RA
16542002-03-04 Robert Anisko <robert@lrde.epita.fr>
1655
1656 * src/reader.c: Warn about lacking semi-colons, do not complain.
1657
64dba31e
RA
16582002-03-04 Robert Anisko <robert@lrde.epita.fr>
1659
1660 * data/bison.c++: Remove a debug line.
1661
374f5a14
RA
16622002-03-04 Robert Anisko <robert@lrde.epita.fr>
1663
1664 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
1665 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
1666 provide a default implementation.
1667
bfcf1f3a
AD
16682002-03-04 Akim Demaille <akim@epita.fr>
1669
1670 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
1671 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
1672 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
1673 * tests/semantic.at (Parsing Guards): Similarly.
1674 * src/reader.at (readgram): Complain if the last rule is not ended
1675 with a semi-colon.
1676
65ccf9fc
AD
16772002-03-04 Akim Demaille <akim@epita.fr>
1678
1679 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
1680 * src/closure.c: here.
1681 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
1682 RTC.
1683 * src/warshall.h, src/warshall.c: Remove.
1684 * tests/sets.at (Broken Closure): Adjust.
1685
d0039cbc
AD
16862002-03-04 Akim Demaille <akim@epita.fr>
1687
1688 * src/output.c (output_skeleton): tempdir is const.
1689 bytes_read is unused.
1690
345cea78
AD
16912002-03-04 Akim Demaille <akim@epita.fr>
1692
1693 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1694 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
1695 Update.
1696 From Michael Hayes.
1697
564801f7
AD
16982002-03-04 Akim Demaille <akim@epita.fr>
1699
1700 * src/closure.c (closure): `r' is unused.
1701
e5352bc7
AD
17022002-03-04 Akim Demaille <akim@epita.fr>
1703
1704 * tests/sets.at (Broken Closure): Add the ending `;'.
1705 * src/reader.at (readgram): Complain if a rule is not ended with a
1706 semi-colon.
1707
914feea9
AD
17082002-03-04 Akim Demaille <akim@epita.fr>
1709
1710 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
1711 (count_sr_conflicts): Use bitset_count.
1712 * src/reduce.c (inaccessable_symbols): Ditto.
1713 (bits_size): Remove.
1714 * src/warshall.h, src/warshall.c: Convert to bitsetv.
1715
f0250de6
AD
17162002-03-04 Akim Demaille <akim@epita.fr>
1717
1718 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
1719 * src/reduce.c: Remove the `bitset_zero's following the
1720 `bitset_create's, as now it is performed by the latter.
1721
ef017502
AD
17222002-03-04 Akim Demaille <akim@epita.fr>
1723
1724 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
1725 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
1726 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
1727 latest sources from Michael.
1728
76514394
AD
17292002-03-04 Akim Demaille <akim@epita.fr>
1730
1731 * src/output.c (output): Don't free the grammar.
1732 * src/reader.c (grammar_free): New.
1733 * src/main.c (main): Call it and don't free symtab here.
1734
55024580
AD
17352002-03-04 Akim Demaille <akim@epita.fr>
1736
1737 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
1738 before returning.
1739 Reported by Benoit Perrot.
1740
f9abaa2c
AD
17412002-03-04 Akim Demaille <akim@epita.fr>
1742
1743 Use bitset operations when possible, not loops over bits.
1744
1745 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
1746 bitset_or.
1747 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
1748 * src/reduce.c (useless_nonterminals): Formatting changes.
1749 * src/warshall.c (TC): Use bitset_or.
1750
0e721e75
AD
17512002-03-04 Akim Demaille <akim@epita.fr>
1752
1753 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
1754 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
1755 Ditto.
1756
0fb1ffb1
AD
17572002-03-04 Akim Demaille <akim@epita.fr>
1758
1759 * src/lalr.c (F): Now a bitset*.
1760 Adjust all dependencies.
1761
b86796bf
AD
17622002-03-04 Akim Demaille <akim@epita.fr>
1763
1764 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
1765 Adjust all dependencies.
1766
602bbf31
AD
17672002-03-04 Akim Demaille <akim@epita.fr>
1768
1769 * src/L0.c, src/LR0.h (nstates): Be size_t.
1770 Adjust comparisons (signed vs unsigned).
1771 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
1772 bitset*.
1773 Adjust all dependencies.
1774
d8a0245c
AD
17752002-03-04 Akim Demaille <akim@epita.fr>
1776
1777 * src/closure.c (firsts): Now, also a bitset.
1778 Adjust all dependencies.
1779 (varsetsize): Remove, now unused.
1780 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
1781
34ba9743
AD
17822002-03-04 Akim Demaille <akim@epita.fr>
1783
1784 * src/print.c: Convert to use bitset.h, not hand coded iterations
1785 over ints.
1786
ed86e78c
AD
17872002-03-04 Akim Demaille <akim@epita.fr>
1788
1789 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
1790
dfdb1797
AD
17912002-03-04 Akim Demaille <akim@epita.fr>
1792
1793 * src/closure.c (ruleset): Be a bitset.
1794 (rulesetsize): Remove.
1795
7086e707
AD
17962002-03-04 Akim Demaille <akim@epita.fr>
1797
1798 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1799 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
1800 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
1801 * src/closure.c (fderives): Be an array of bitsets.
1802
98254360
RA
18032002-02-28 Robert Anisko <robert@lrde.epita.fr>
1804
1805 * data/bison.c++: Merge the two generated headers. Insert a copyright
1806 notice in each output file.
1807
a75c057f
AD
18082002-02-28 Akim Demaille <akim@epita.fr>
1809
1810 * data/bison.c++: Copy the prologue of bison.simple to fetch
1811 useful M4 definitions, such as b4_header_guard.
1812
06b00abc
AD
18132002-02-25 Akim Demaille <akim@epita.fr>
1814
1815 * src/getargs.c (version): Give the name of the authors, and use a
a75c057f
AD
1816 translator friendly scheme for the bgr
1817 copyright notice.
06b00abc 1818
70e7d534
AD
18192002-02-25 Akim Demaille <akim@epita.fr>
1820
1821 * src/output.c (header_output): Remove, now handled completely via
1822 M4.
1823
abe017f6
AD
18242002-02-25 Akim Demaille <akim@epita.fr>
1825
1826 * m4/m4.m4: New, from CVS Autoconf.
1827 * configure.in: Invoke it.
1828 * src/output.c (output_skeleton): Use its result instead of the
1829 hard coded name.
1830
381fb12e
AD
18312002-02-25 Akim Demaille <akim@epita.fr>
1832
1833 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
1834 Fileutils 4.1.5.
1835 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
1836 * src/output.c (output_skeleton): Use mkstemp to create a real
1837 temporary file.
1838 Move the filling of `skeleton' and its muscle to...
1839 (prepare): here.
1840 (output): Move the definition of the prologue muscle to...
1841 (prepare): here.
1842 * src/system.h (DEFAULT_TMPDIR): New.
1843
6f38107f
PE
18442002-02-14 Paul Eggert <eggert@twinsun.com>
1845
1846 Remove the support for C++ namespace cleanliness; it was
1847 causing more problems than it was curing, since it didn't work
1848 properly on some nonstandard C++ compilers. This can wait
1849 for a proper C++ parser.
1850
1851 * NEWS: Document this.
1852 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
1853 of C++, as it's treated like C now.
1854 * src/bison.simple (YYSTD): Remove.
1855 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
1856 Treat C++ just like Standard C instead of trying to support
1857 namespace cleanliness.
1858
80cce3da
AD
18592002-02-14 Akim Demaille <akim@epita.fr>
1860
1861 * tests/regression.at (else): Adjust to Andreas' change.
1862
842e8679
AD
18632002-02-14 Akim Demaille <akim@epita.fr>
1864
1865 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
1866
4bda3f10
AD
18672002-02-13 Andreas Schwab <schwab@suse.de>
1868
1869 * src/output.c (output_rule_data): Don't output NULL, it might
1870 not be defined yet.
1871
4162fa07 18722002-02-11 Robert Anisko <robert@lrde.epita.fr>
b418ecd8 1873
4162fa07
RA
1874 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
1875 (Copyright notice): Update.
b418ecd8 1876
bd16a5dc
AD
18772002-02-11 Akim Demaille <akim@epita.fr>
1878
1879 * tests/regression.at (%nonassoc and eof): Don't include
1880 nonportable headers.
1881
8d69a1a3
RA
18822002-02-08 Robert Anisko <robert@lrde.epita.fr>
1883
1884 * data/bison.c++: Correct error recovery. Make the user able to
1885 initialize the starting location.
1886
9b2d0677
AD
18872002-02-07 Akim Demaille <akim@epita.fr>
1888
1889 * tests/input.at: New.
1890
69e2658b
RA
18912002-02-07 Robert Anisko <robert@lrde.epita.fr>
1892
1893 * data/bison.c++: Replace some direct m4 expansions by constants. Be
9b2d0677 1894 more consistent when naming methods and variables. Put preprocessor
69e2658b
RA
1895 directives around tables only needed for debugging.
1896
4aacc3a7
RA
18972002-02-07 Robert Anisko <robert@lrde.epita.fr>
1898
1899 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
1900 C++ parsers.
1901 (yy::b4_name::parse): Use print_.
1902
762a801e
RA
19032002-02-07 Robert Anisko <robert@lrde.epita.fr>
1904
1905 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
1906
4bb2bc3f
RA
19072002-02-07 Robert Anisko <robert@lrde.epita.fr>
1908
1909 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
1910 C++ parsers.
1911 (yy::b4_name::parse): Build verbose error messages, and use error_.
1912
6b45a3ca
RA
19132002-02-06 Robert Anisko <robert@lrde.epita.fr>
1914
1915 * data/bison.c++: Fix m4 quoting in comments.
1916
50997c6e
RA
19172002-02-06 Robert Anisko <robert@lrde.epita.fr>
1918
1919 * data/bison.c++: Adjust the parser code. Fix some muscles that were
1920 not expanded by m4.
1921
3f3eed27
AD
19222002-02-05 Akim Demaille <akim@epita.fr>
1923
1924 * data/bison.c++: Adjust to the M4 back end.
1925 More is certainly needed.
1926
be2a1a68
AD
19272002-02-05 Akim Demaille <akim@epita.fr>
1928
1929 Give a try to M4 as a back end.
1930
1931 * lib/readpipe.c: New, from wdiff.
1932 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
1933 BISON_HAIRY.
1934 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
1935 specific values. Now it is m4 that performs the lookup.
1936 * src/parse-skel.y: Remove.
1937 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
1938 * src/output.c (actions_output, guards_output)
1939 (token_definitions_output): No longer keeps track of the output
1940 line number, hence remove the second argument.
1941 (guards_output): Check against the guard member of a rule, not the
1942 action member.
1943 Adjust callers.
1944 (output_skeleton): Don't look for the skeleton location, let m4 do
1945 that.
1946 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
1947 file will be used.
1948 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
1949 (prepare): Given that for the time being changesyntax is not
1950 usable in M4, rename the muscles using `-' to `_'.
1951 Define `defines_flag', `output_parser_name' and `output_header_name'.
1952 * src/output.h (actions_output, guards_output)
1953 (token_definitions_output): Adjust prototypes.
1954 * src/scan-skel.l: Instead of scanning the skeletons, it now
1955 processes the output of m4: `__oline__' and `#output'.
1956 * data/bison.simple: Adjust to be used by M4(sugar).
1957 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
1958 to date.
1959 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
1960 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
1961 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
1962 shamelessly stolen from CVS Autoconf.
1963
beda758b
AD
19642002-02-05 Akim Demaille <akim@epita.fr>
1965
1966 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
1967 * configure.in: Check for the declarations of free and malloc.
1968 * src/muscle_tab.c: Adjust.
1969
5ece6d43
AD
19702002-02-05 Akim Demaille <akim@epita.fr>
1971
1972 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
1973 which have no values.
1974
5bb18f9a
AD
19752002-02-05 Akim Demaille <akim@epita.fr>
1976
1977 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
1978 * data/: here.
1979
894dd62e
PE
19802002-01-29 Paul Eggert <eggert@twinsun.com>
1981
1982 * src/bison.simple (YYSIZE_T): Do not define merely because
1983 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
1984 On some platforms, <alloca.h> does not declare YYSTD (size_t).
1985
82841af7
AD
19862002-01-27 Akim Demaille <akim@epita.fr>
1987
1988 Fix `%nonassoc and eof'.
1989
1990 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
1991 which were not properly copied! Replace
1992 memcpy (res->errs, src->errs, src->nerrs);
1993 with
1994 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
1995 !!!
1996 * tests/regression.at (%nonassoc and eof): Adjust to newest
1997 Autotest: `.' is not in the PATH.
1998
318b76e9
AD
19992002-01-27 Akim Demaille <akim@epita.fr>
2000
2001 * tests/sets.at (AT_EXTRACT_SETS): New.
2002 (Nullable): Use it.
2003 (Firsts): New.
2004
30d2f3d5
AD
20052002-01-26 Akim Demaille <akim@epita.fr>
2006
2007 * tests/actions.at, tests/calc.at, tests/headers.at,
2008 * tests/torture.at: Adjust to the newest Autotest which no longer
2009 forces `.' in the PATH.
2010
30f8c395
AD
20112002-01-25 Akim Demaille <akim@epita.fr>
2012
2013 * tests/regression.at (%nonassoc and eof): New.
2014 Suggested by Robert Anisko.
2015
29ae55f1
AD
20162002-01-24 Akim Demaille <akim@epita.fr>
2017
2018 Bison dumps core when trying to complain about broken input files.
2019 Reported by Cris van Pelt.
2020
2021 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
2022 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
2023 into...
2024 (Invalid inputs): Strengthen: exercise parse_percent_token.
2025
2b548aa6
RA
20262002-01-24 Robert Anisko <robert.anisko@epita.fr>
2027
2028 * src/Makefile.am: Add bison.c++.
2029 * src/bison.c++: New skeleton.
2030
bb0146c2
AD
20312002-01-21 Paolo Bonzini <bonzini@gnu.org>
2032
2033 * po/it.po: New.
2034
bec30531
AD
20352002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
2036
2037 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
2038
fc6edc45
MA
20392002-01-20 Marc Autret <marc@gnu.org>
2040
2041 * src/files.c (compute_output_file_names): Fix
2042
5e5d5415
MA
20432002-01-20 Marc Autret <marc@gnu.org>
2044
2045 * tests/output.at: New test.
2046 * src/files.c (compute_base_names): Don't map extensions when
2047 the YACC flag is set, use defaults.
2048 Reported by Evgeny Stambulchik.
2049
44ea3fbd
MA
20502002-01-20 Marc Autret <marc@gnu.org>
2051
bb0146c2 2052 * src/system.h: Need to define __attribute__ away for non-GCC
44ea3fbd
MA
2053 compilers as well (i.e. the vendor C compiler).
2054 Suggested by Albert Chin-A-Young.
2055
338963d1
TVH
20562002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
2057
2058 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
2059 canonical definition.
2060 * src/system.h: Use the canonical definition for PARAMS (avoids
2061 a conflict with the macro from lib/hash.h).
2062
c57b2479
AD
20632002-01-11 Akim Demaille <akim@epita.fr>
2064
2065 * configure.in: Use AC_FUNC_STRNLEN.
d9e9746c 2066 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
c57b2479 2067
b85810ae
AD
20682002-01-09 Akim Demaille <akim@epita.fr>
2069
2070 * src/files.c, src/files.h (output_infix): New.
2071 (tab_extension): Remove.
2072 (compute_base_names): Compute the former, drop the latter.
2073 * src/output.c (prepare): Insert the muscles `output-infix', and
2074 `output-suffix'.
2075 * src/parse-skel.y (string, string.1): New.
2076 (section.header): Use it.
2077 (section.yacc): Remove.
2078 (prefix): Remove too.
2079 * src/scan-skel.l: Adjust.
2080 * src/bison.simple, src/bison.hairy: Adjust.
2081
cae60122
AD
20822002-01-09 Akim Demaille <akim@epita.fr>
2083
2084 * configure.in (WERROR_CFLAGS): Compute it.
2085 * src/Makefile.am (CFLAGS): Pass it.
2086 * tests/atlocal.in (CFLAGS): Idem.
2087 * src/files.c: Fix a few warnings.
2088 (get_extension_index): Remove, unused.
2089
ae404801
AD
20902002-01-08 Akim Demaille <akim@epita.fr>
2091
2092 * src/getargs.c (AS_FILE_NAME): New.
2093 (getargs): Use it to convert DOSish file names.
2094 * src/files.c (base_name): Rename as full_base_name to avoid
2095 clashes with `base_name ()'.
2096 (filename_split): New.
2097 (compute_base_names): N-th rewrite, using filename_split.
2098
22312b71
AD
20992002-01-08 Akim Demaille <akim@epita.fr>
2100
2101 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
2102 New, stolen from the Fileutils 4.1.
2103 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
2104 * configure.in: Check for the presence of memrchr, and of its
2105 prototype.
2106
a67cef01
TVH
21072002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
2108
2109 * lib/hash.h (__P): Added definition for this macro.
2110 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
2111 BUILT_SOURCES, to ensure they are generated first.
2112 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
2113 %error-verbose to allow bootstrapping with bison 1.30x.
2114
2b25d624
AD
21152002-01-06 Akim Demaille <akim@epita.fr>
2116
2117 * src/reader.c (parse_braces): Don't fetch the next char, the
2118 convention is to fetch on entry.
2119 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
2120 'switch' without a following semicolon.
2121 * tests/regression.at (braces parsing): New.
2122
3460813b
AD
21232002-01-06 Akim Demaille <akim@epita.fr>
2124
2125 Bison is dead wrong in its RR conflict reports.
2126
2127 * tests/torture.at (GNU Cim Grammar): New.
2128 * src/conflicts.c (count_rr_conflicts): Fix.
2129
73784c64
AD
21302002-01-06 Akim Demaille <akim@epita.fr>
2131
2132 Creating package.m4 from configure.ac causes too many problems.
2133
2134 * tests/Makefile.am (package.m4): Create it by hand,
2135 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
2136
25d81090
AD
21372002-01-06 Akim Demaille <akim@epita.fr>
2138
2139 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
2140 skeleton.h.
2141
a9b8959e
PE
21422002-01-04 Paul Eggert <eggert@twinsun.com>
2143
2144 * doc/bison.texinfo (Debugging):
2145 Remove YYSTDERR; it's no longer defined or used.
2146 Also, s/cstdio.h/cstdio/.
2147
25d81090
AD
21482002-01-03 Akim Demaille <akim@epita.fr>
2149
2150 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
2151
1109455c
AD
21522002-01-03 Akim Demaille <akim@epita.fr>
2153
2154 * src/parse-skel.y (process_skeleton): Don't bind the parser's
2155 tracing code to --trace, wait for a better --trace option, with
2156 args.
2157
7ea5e977
AD
21582002-01-03 Akim Demaille <akim@epita.fr>
2159
2160 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
2161 The ISO C++ standard is extremely clear about it: stderr is
2162 considered a macro, not a regular symbol (see table 94 `Header
2163 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
2164 Therefore std:: does not apply to it. It still does with fprintf.
2165 Also, s/cstdio.h/cstdio/.
2166
fab5b110
AD
21672002-01-03 Akim Demaille <akim@epita.fr>
2168
2169 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
2170 for non system headers.
2171
aed7fd9b
AD
21722002-01-02 Akim Demaille <akim@epita.fr>
2173
2174 Equip the skeleton chain with location tracking, runtime trace,
2175 pure parser and scanner.
2176
2177 * src/parse-skel.y: Request a pure parser, locations, and prefix
2178 renaming.
2179 (%union): Having several members with the same type does not help
2180 type mismatches, simplify.
2181 (YYPRINT, yyprint): New.
2182 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
2183 (skel_error): this.
2184 Handle locations.
2185 * src/scan-skel.l: Adjust to these changes.
2186 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
2187 (LOCATION_PRINT, skel_control_t): New.
2188
24fad99e
AD
21892001-12-30 Akim Demaille <akim@epita.fr>
2190
2191 * src/parse-skel.y: Get rid of the shift/reduce conflict:
2192 replace `gb' with BLANKS.
2193 * src/scan-skel.l: Adjust.
2194
a4b36db4
AD
21952001-12-30 Akim Demaille <akim@epita.fr>
2196
2197 * src/system.h: We don't need nor want bcopy.
2198 Throw away MS-DOS crap: we don't need getpid.
2199 * configure.in: We don't need strndup. It was even causing
2200 problems: because Flex includes the headers *before* us,
2201 _GNU_SOURCE is not defined by config.h, and therefore strndup was
2202 not visible.
2203 * lib/xstrndup.c: New.
2204 * src/scan-skel.l: Use it.
2205 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
2206 * src/parse-skel.y: Use %directives instead of #defines.
2207
1239777d
AD
22082001-12-30 Akim Demaille <akim@epita.fr>
2209
2210 * src/skeleton.h: New.
2211 * src/output.c (output_parser, output_master_parser): Remove, dead
2212 code.
2213 * src/output.h (get_lines_number, actions_output, guards_output)
2214 (token_definitions_output): Prototype them.
2215 * src/parse-skel.y: Add the license notice.
2216 Include output.h and skeleton.h.
2217 (process_skeleton): Returns void, and takes a single parameter.
2218 * src/scan-skel.l: Add the license notice.
2219 Include skeleton.h.
2220 Don't use %option yylineno: it seems that then Flex imagines
2221 REJECT has been used, and therefore it won't reallocate its
2222 buffers (which makes no other sense to me than a bug). It results
2223 in warnings for `unused: yy_flex_realloc'.
2224
9b3add5b
RA
22252001-12-30 Robert Anisko <robert.anisko@epita.fr>
2226
2227 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
2228 (MUSCLE_INSERT_PREFIX): ...to there.
2229 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
2230 (MUSCLE_INSERT_PREFIX): Move from here...
2231
2232 * src/bison.hairy: Add a section directive. Put braces around muscle
2233 names. This parser skeleton is still broken, but Bison should not
2234 choke on a bad muscle 'syntax'.
2235 * src/bison.simple: Add a section directive. Put braces around muscle
2236 names.
2237
2238 * src/files.h (strsuffix, stringappend): Add declarations.
2239 (tab_extension): Add declaration.
2240 (short_base_name): Add declaration.
2241
2242 * src/files.c (strsuffix, stringappend): No longer static. These
2243 functions are used in the skeleton parser.
2244 (tab_extension): New.
2245 (compute_base_names): Use the computations done in this function
fab5b110 2246 to guess if the generated parsers should have '.tab' in their
9b3add5b
RA
2247 names.
2248 (short_base_name): No longer static.
2249
2250 * src/output.c (output_skeleton): New.
2251 (output): Disable call to output_master_parser, and give a try to
2252 a new skeleton handling system.
2253 (guards_output, actions_output): No longer static.
2254 (token_definitions_output, get_lines_number): No longer static.
2255
2256 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
2257
fab5b110 2258 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
9b3add5b
RA
2259 parse-skel.y.
2260
2261 * src/parse-skel.y: New file.
2262 * src/scan-skel.l: New file.
2263
b5b61c61
AD
22642001-12-29 Akim Demaille <akim@epita.fr>
2265
2266 %name-prefix is broken.
2267
2268 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
2269 Adjust all dependencies.
2270 * tests/headers.at (export YYLTYPE): Strengthen this test: use
2271 %name-prefix.
2272
2273 Renaming yylval but not yylloc is not consistent. Now we do.
2274
2275 * src/bison.simple: Prefix yylloc if used.
2276 * doc/bison.texinfo (Decl Summary): Document that.
2277
8c9a50be
AD
22782001-12-29 Akim Demaille <akim@epita.fr>
2279
2280 * doc/bison.texinfo: Promote `%long-directive' over
2281 `%long_directive'.
2282 Remove all references to fixed-output-files, yacc is enough.
2283
d99361e6
AD
22842001-12-29 Akim Demaille <akim@epita.fr>
2285
2286 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
2287 user prologue. These are defaults.
2288 * tests/actions.at (Mid-rule actions): Make sure the user can
2289 define YYDEBUG and YYERROR_VERBOSE.
2290
b9cecb91
AD
22912001-12-29 Akim Demaille <akim@epita.fr>
2292
2293 * src/output.c (header_output): Don't forget to export YYLTYPE and
2294 yylloc.
2295 * tests/headers.at (export YYLTYPE): New, make sure it does.
2296 * tests/regression.at (%union and --defines, Invalid CPP headers):
2297 Move to...
2298 * tests/headers.at: here.
2299
aea13e97
AD
23002001-12-29 Akim Demaille <akim@epita.fr>
2301
2302 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
2303
931394cb
AD
23042001-12-29 Akim Demaille <akim@epita.fr>
2305
2306 * tests/actions.at (Mid-rule actions): Output on a single line
2307 instead of several.
2308
704a47c4
AD
23092001-12-29 Akim Demaille <akim@epita.fr>
2310
2311 * doc/bison.texinfo: Formatting changes.
2312
091e20bb
AD
23132001-12-29 Akim Demaille <akim@epita.fr>
2314
2315 Don't store the token defs in a muscle, just be ready to output it
2316 on command. Now possible via `symbols'. Fixes a memory leak.
2317
2318 * src/output.c (token_definitions_output): New.
2319 (output_parser, header_output): Use it.
2320 * src/reader.c (symbols_save): Remove.
2321
cce71710
AD
23222001-12-29 Akim Demaille <akim@epita.fr>
2323
2324 * src/bison.simple: Do not provide a default for YYSTYPE and
2325 YYLTYPE before the user's prologue. Otherwise it's hardly... a
2326 default.
2327
82c035a8
AD
23282001-12-29 Akim Demaille <akim@epita.fr>
2329
2330 Mid-rule actions are simply... ignored!
2331
2332 * src/reader.c (readgram): Be sure to attach mid-rule actions to
2333 the empty-rule associated to the dummy symbol, not to the host
2334 rule.
2335 * tests/actions.at (Mid-rule actions): New.
2336
8419d367
AD
23372001-12-29 Akim Demaille <akim@epita.fr>
2338
2339 Memory leak.
2340
2341 * src/reader.c (reader): Free grammar.
2342
375d5806
AD
23432001-12-29 Akim Demaille <akim@epita.fr>
2344
2345 Memory leak.
2346
2347 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
2348 since it allocates it for each state, although only one is needed.
2349 (allocate_storage): Do it here.
2350
f51cb8ff
AD
23512001-12-29 Akim Demaille <akim@epita.fr>
2352
2353 * src/options.h, src/options.c (create_long_option_table): Rename
2354 as...
2355 (long_option_table_new): this, with a clearer prototype.
2356 (percent_table): Remove, unused,
2357 * src/getargs.c (getargs): Adjust.
2358
29e88316
AD
23592001-12-29 Akim Demaille <akim@epita.fr>
2360
2361 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
2362 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
2363 as states.
2364
b9f71f19
AD
23652001-12-29 Akim Demaille <akim@epita.fr>
2366
2367 * src/lalr.c (build_relations): Rename `states' as `states1'.
2368 Sorry, I don't understand exactly what it is, no better name...
2369
1a2b5d37
AD
23702001-12-29 Akim Demaille <akim@epita.fr>
2371
2372 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
2373 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
2374 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
2375 as rules.
2376
1cca533e
AD
23772001-12-29 Akim Demaille <akim@epita.fr>
2378
2379 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
2380 ago.
2381
c03ae966
AD
23822001-12-29 Akim Demaille <akim@epita.fr>
2383
2384 * src/reader.c, src/reader.h (user_toknums): Remove.
2385 Adjust all users to use symbols[i]->user_token_number.
2386
5a670b1e
AD
23872001-12-29 Akim Demaille <akim@epita.fr>
2388
2389 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
2390 Adjust all users to use symbols[i]->prec or ->assoc.
2391
ad949da9
AD
23922001-12-29 Akim Demaille <akim@epita.fr>
2393
2394 * src/reader.c, src/reader.h (tags): Remove.
2395 Adjust all users to use symbols[i]->tag.
2396
0e78e603
AD
23972001-12-29 Akim Demaille <akim@epita.fr>
2398
2399 * src/gram.h, src/gram.c (symbols): New, similar to state_table
2400 and rule_table.
2401 * src/reader.c (packsymbols): Fill this table.
2402 Drop sprec.
2403 * src/conflicts.c (resolve_sr_conflict): Adjust.
2404 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
2405 single table.
2406 Use symbols[i]->tag instead of tags[i].
2407
213e640e
AD
24082001-12-29 Akim Demaille <akim@epita.fr>
2409
2410 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
2411 In addition, put a comment in there, to replace...
2412 * tests/regression.at (%union and C comments): Remove.
2413
e7b8bef1
AD
24142001-12-29 Akim Demaille <akim@epita.fr>
2415
2416 * tests/regression.at (Web2c Actions): Blindly move the actual
2417 output as expected output. The contents *seem* right to me, but I
2418 can't pretend reading perfectly parser tables... Nonetheless, all
2419 the other tests pass correctly, the table look OK, even though the
2420 presence of `$axiom' is to be noted: AFAICS it is useless (but
2421 harmless).
2422
b68e7744
AD
24232001-12-29 Akim Demaille <akim@epita.fr>
2424
2425 * src/reader.c (readgram): Don't add the rule 0 if there were no
2426 rules read. In other words, add it _after_ having performed
2427 grammar sanity checks.
2428 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
2429
78d5bae9
AD
24302001-12-29 Akim Demaille <akim@epita.fr>
2431
2432 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
2433 visible, and some states have now a different number.
2434
ff442794
AD
24352001-12-29 Akim Demaille <akim@epita.fr>
2436
2437 * src/reader.c (readgram): Bind the initial rule's lineno to that
2438 of the first rule.
2439 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
2440 (Solved SR Conflicts): Adjust rule 0's line number.
2441
610ab194
AD
24422001-12-29 Akim Demaille <akim@epita.fr>
2443
2444 Fix the `GAWK Grammar' failure.
2445
2446 * src/LR0.c (final_state): Initialize to -1 so that we do compute
2447 the reductions of the first state which was mistakenly confused
2448 with the final state because precisely final_state was initialized
2449 to 0.
2450 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
2451 now noticed by Bison.
2452 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
2453 have a reduction on $default.
2454
29d29c8f
AD
24552001-12-29 Akim Demaille <akim@epita.fr>
2456
2457 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
2458 rule line numbers.
2459 * src/closure.c (print_closure): Likewise.
2460 * src/derives.c (print_derives): Likewise.
2461 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
2462 now.
2463
7c6b64d0
AD
24642001-12-29 Akim Demaille <akim@epita.fr>
2465
2466 * src/lalr.c (lookaheads_print): New.
2467 (lalr): Call it when --trace-flag.
2468 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
2469 are dumped.
2470
3d4daee3
AD
24712001-12-29 Akim Demaille <akim@epita.fr>
2472
2473 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
2474 when walking through ritem, even via rule->rhs.
2475 * src/reduce.c (dump_grammar, useful_production, reduce_output)
2476 (useful_production, useless_nonterminals): Likewise.
2477 (reduce_grammar_tables): Likewise, plus update nritems.
2478 * src/nullable.c (set_nullable): Likewise.
2479 * src/lalr.c (build_relations): Likewise.
2480 * tests/sets.at (Nullable): Adjust.
2481 Fortunately, now, the $axiom is no longer nullable.
2482
9e7f6bbd
AD
24832001-12-29 Akim Demaille <akim@epita.fr>
2484
2485 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
2486 the 0-sentinel.
2487 * src/gram.c (ritem_longest_rhs): Likewise.
2488 * src/reduce.c (nonterminals_reduce): Likewise.
2489 * src/print_graph.c (print_graph): Likewise.
2490 * src/output.c (output_rule_data): Likewise.
2491 * src/nullable.c (set_nullable): Likewise.
2492
255ef638
AD
24932001-12-29 Akim Demaille <akim@epita.fr>
2494
2495 * src/output.c: Comment changes.
2496
0d8a7363
AD
24972001-12-27 Paul Eggert <eggert@twinsun.com>
2498
2499 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
2500 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
2501 Sparc, as they were causing more porting problems than the
2502 (minor) performance improvement was worth.
2503
2504 Also, catch up with 1.31's YYSTD.
2505
3db472b9
AD
25062001-12-27 Akim Demaille <akim@epita.fr>
2507
2508 * src/output.c (output_gram): Rely on nritems, not the
2509 0-sentinel. See below.
2510 Use -1 as separator, not 0.
2511 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
2512 Rely on -1 as separator in yyrhs, instead of 0.
2513 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
2514 twice `Now at end of input', therefore there are two lines less to
2515 expect.
2516
b365aa05
AD
25172001-12-27 Akim Demaille <akim@epita.fr>
2518
2519 * tests/regression.at (Unresolved SR Conflicts):
2520 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
2521 below.
2522
30171f79
AD
25232001-12-27 Akim Demaille <akim@epita.fr>
2524
2525 * src/LR0.c (new_state): Recognize the final state by the fact it
2526 is reached by eoftoken.
2527 (insert_start_shifting_state, insert_eof_shifting_state)
2528 (insert_accepting_state, augment_automaton): Remove, since now
2529 these states are automatically computed from the initial state.
2530 (generate_states): Adjust.
2531 * src/print.c: When reporting a rule number to the user, substract
2532 1, so that the axiom rule is rule 0, and the first user rule is 1.
2533 * src/reduce.c: Likewise.
2534 * src/print_graph.c (print_core): For the time being, just as for
2535 the report, depend upon --trace-flags to dump the full set of
2536 items.
2537 * src/reader.c (readgram): Once the grammar read, insert the rule
2538 0: `$axiom: START-SYMBOL $'.
2539 * tests/set.at: Adjust: rule 0 is now displayed, and since the
2540 number of the states has changed (the final state is no longer
2541 necessarily the last), catch up.
2542
75142d45
AD
25432001-12-27 Akim Demaille <akim@epita.fr>
2544
2545 Try to make the use of the eoftoken valid. Given that its value
2546 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
2547 is used instead of > 0 where appropriate, (ii), depend upon nritems
2548 instead of the 0-sentinel.
2549
2550 * src/gram.h, src/gram.c (nritems): New.
2551 Expected to be duplication of nitems, but for the time being...
2552 * src/reader.c (packgram): Assert nritems and nitems are equal.
2553 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
2554 * src/closure.c (print_closure, print_fderives): Likewise.
2555 * src/gram.c (ritem_print): Likewise.
2556 * src/print.c (print_core, print_grammar): Likewise.
2557 * src/print_graph.c: Likewise.
2558
b7c49edf
AD
25592001-12-27 Akim Demaille <akim@epita.fr>
2560
2561 * src/main.c (main): If there are complains after grammar
2562 reductions, then output the report anyway if requested, then die.
2563 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
2564 * src/reader.c (eoftoken): New.
2565 (parse_token_decl): If the token being defined has value `0', it
2566 is the eoftoken.
2567 (packsymbols): No longer hack `tags' to insert `$' by hand.
2568 Be sure to preserve the value of the eoftoken.
2569 (reader): Make sure eoftoken is defined.
2570 Initialize nsyms to 0: now eoftoken is created just like the others.
2571 * src/print.c (print_grammar): Don't special case the eof token.
2572 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
2573 lie anyway, albeit pleasant.
2574 * tests/calc.at: Exercise error messages with eoftoken.
2575 Change the grammar so that empty input is invalid.
2576 Adjust expectations.
2577 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
2578
ec2da99f
AD
25792001-12-27 Akim Demaille <akim@epita.fr>
2580
2581 * configure.in: Check the protos of strchr ans strspn.
2582 Replace strchr if needed.
2583 * src/system.h: Provide the protos of strchr, strspn and memchr if
2584 missing.
2585 * lib/strchr.c: New.
2586 * src/reader.c (symbols_save): Use strchr.
2587
8adfa272
AD
25882001-12-27 Akim Demaille <akim@epita.fr>
2589
2590 * src/print.c, src/print_graph.c (escape): New.
2591 Use it to quote the TAGS outputs.
2592 * src/print_graph.c (print_state): Now errors are in red, and
2593 reductions in green.
2594 Prefer high to wide: output the state number on a line of its own.
2595
80dac38c
AD
25962001-12-27 Akim Demaille <akim@epita.fr>
2597
2598 * src/state.h, src/state.c (reductions_new): New.
2599 * src/LR0.c (set_state_table): Let all the states have a
2600 `reductions', even if reduced to 0.
2601 (save_reductions): Adjust.
2602 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
2603 * src/print.c (print_reductions, print_actions): Adjust.
2604 * src/output.c (action_row): Adjust.
2605
2cec70b9
AD
26062001-12-27 Akim Demaille <akim@epita.fr>
2607
2608 * src/state.h, src/state.c (errs_new, errs_dup): New.
2609 * src/LR0.c (set_state_table): Let all the states have an errs,
2610 even if reduced to 0.
2611 * src/print.c (print_errs, print_reductions): Adjust.
2612 * src/output.c (output_actions, action_row): Adjust.
2613 * src/conflicts.c (resolve_sr_conflict): Adjust.
2614
13ca549a
AD
26152001-12-27 Akim Demaille <akim@epita.fr>
2616
2617 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
2618
5092aba5
AD
26192001-12-27 Akim Demaille <akim@epita.fr>
2620
2621 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
2622 * src/print.c: here.
2623 (lookaheadset, shiftset): New, used as additional storage by
2624 print_reductions.
2625 (print_results): Adjust.
2626 (print_shifts, print_gotos, print_errs): New, extracted from...
2627 (print_actions): here.
2628 * src/print_graph.c (print_actions): Remove dead code.
2629
11e2beca
AD
26302001-12-27 Akim Demaille <akim@epita.fr>
2631
2632 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
2633 `$n' and `@n'.
2634
dac3c910
AD
26352001-12-27 Akim Demaille <akim@epita.fr>
2636
2637 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
2638 (build_relations): Adjust.
2639
d0b0fefa
AD
26402001-12-27 Akim Demaille <akim@epita.fr>
2641
2642 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
2643 duplication.
2644
adc8c848
AD
26452001-12-27 Akim Demaille <akim@epita.fr>
2646
2647 * src/reader.c (packgram): Catch nitems overflows.
2648
14d293ac
AD
26492001-12-27 Akim Demaille <akim@epita.fr>
2650
2651 * src/files.c, src/files.h (guard_obstack): Remove.
2652 * src/output.c (output): Adjust.
2653 * src/reader.c (parse_braces): New, factoring...
2654 (copy_action, copy_guard): these two which are renamed as...
2655 (parse_action, parse_guard): these.
2656 As a voluntary consequence, using braces around guards is now
2657 mandatory.
2658
f499b062
AD
26592001-12-27 Akim Demaille <akim@epita.fr>
2660
2661 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
2662 * src/reader.c (symbol_list): `guard' and `guard_line' are new
2663 members.
2664 (symbol_list_new): Adjust.
2665 (copy_action): action_line is the first line, not the last.
2666 (copy_guard): Just as for actions, store the `action' only, not
2667 the switch/case/break flesh.
2668 Don't parse the user action that might follow the guard, let...
2669 (readgram): do it, i.e., now, there can be an action after a
2670 guard.
2671 In other words the guard is just explicitly optional.
2672 (packgram): Adjust.
2673 * src/output.c (guards_output): New.
2674 (output_parser): Call it when needed.
2675 (output): Also free the guard and attrs obstacks.
2676 * src/files.c, src/files.h (obstack_save): Remove.
2677 (output_files): Remove.
2678 As a result, if one needs the former `.act' file, using an
2679 appropriate skeleton which requires actions and guards is now
2680 required.
2681 * src/main.c (main): Adjust.
2682 * tests/semantic.at: New.
2683 * tests/regression.at: Use `input.y' as input file name.
2684 Avoid 8+3 problems by requiring input.c when the test needs the
2685 parser.
2686
d945f5cd
AD
26872001-12-27 Akim Demaille <akim@epita.fr>
2688
2689 * src/reader.c (symbol_list_new): Be sure to initialize all the
2690 fields.
2691
d200e455
AD
26922001-12-27 Akim Demaille <akim@epita.fr>
2693
2694 All the hacks using a final pseudo state are now useless.
2695
2696 * src/LR0.c (set_state_table): state_table holds exactly nstates.
2697 * src/lalr.c (nLA): New.
2698 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
2699 instead of lookaheadsp from the pseudo state (nstate + 1).
2700
f9507c28
AD
27012001-12-27 Akim Demaille <akim@epita.fr>
2702
2703 * src/output.c (action_row, token_actions): Use a state_t instead
2704 of a integer, and nlookaheads instead of the following state's
2705 lookaheadsp.
2706
065fbd27
AD
27072001-12-27 Akim Demaille <akim@epita.fr>
2708
2709 * src/conflicts.c (log_resolution, flush_shift)
2710 (resolve_sr_conflict, set_conflicts, solve_conflicts)
2711 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
2712 (conflicts_print, print_reductions): Use a state_t instead of an
2713 integer when referring to a state.
2714 As much as possible, depend upon nlookaheads, instead of the
2715 `lookaheadsp' member of the following state (since lookaheads of
2716 successive states are successive, the difference between state n + 1
2717 and n served as the number of lookaheads for state n).
2718 * src/lalr.c (add_lookback_edge): Likewise.
2719 * src/print.c (print_core, print_actions, print_state)
2720 (print_results): Likewise.
2721 * src/print_graph.c (print_core, print_actions, print_state)
2722 (print_graph): Likewise.
2723 * src/conflicts.h: Adjust.
2724
1b177bd7
AD
27252001-12-27 Akim Demaille <akim@epita.fr>
2726
2727 * src/bison.hairy: Formatting/comment changes.
2728 ANSIfy.
2729 Remove `register' indications.
2730 Add plenty of `static'.
2731
7742ddeb
AD
27322001-12-27 Akim Demaille <akim@epita.fr>
2733
2734 * src/output.c (prepare): Drop the muscle `ntbase' which
2735 duplicates ntokens.
2736 * src/bison.simple: Formatting/comment changes.
2737 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
2738 is an undocumented synonym.
2739
1fa14068
AD
27402001-12-22 Akim Demaille <akim@epita.fr>
2741
2742 * src/output.c (output_table_data): Change the prototype to use
2743 `int' for array ranges: some invocations do pass an int, not a
2744 short.
2745 Reported by Wayne Green.
2746
b9752825
AD
27472001-12-22 Akim Demaille <akim@epita.fr>
2748
2749 Some actions of web2c.y are improperly triggered.
2750 Reported by Mike Castle.
2751
2752 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
2753 * tests/regression.at (Web2c): Rename as...
2754 (Web2c Report): this.
2755 (Web2c Actions): New.
2756
776209d6
AD
27572001-12-22 Akim Demaille <akim@epita.fr>
2758
2759 Reductions in web2c.y are improperly reported.
2760 Reported by Mike Castle.
2761
2762 * src/conflicts.c (print_reductions): Fix.
2763 * tests/regression.at (Web2c): New.
2764
275fc3ad
AD
27652001-12-18 Akim Demaille <akim@epita.fr>
2766
2767 Some host fail on `assert (!"foo")', which expands to
2768 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
2769 Reported by Nelson Beebee.
2770
2771 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
2772 `#define it_succeeded 0' and `assert (it_succeeded)'.
2773
897668ee
MA
27742001-12-17 Marc Autret <autret_m@epita.fr>
2775
2776 * src/bison.simple: Don't hard code the skeleton line and filename.
2777 * src/output.c (output_parser): Rename 'line' as 'output_line'.
2778 New line counter 'skeleton_line' (skeleton-line muscle).
2779
ab3399e0
PE
27802001-12-17 Paul Eggert <eggert@twinsun.com>
2781
2782 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
2783 YYDEBUG must be defined to a nonzero value.
2784
2785 * src/bison.simple (yytname): Do not assume that the user defines
2786 YYDEBUG to a properly parenthesized expression.
2787
3877f72b
AD
27882001-12-17 Akim Demaille <akim@epita.fr>
2789
2790 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
2791 nlookaheads is a new member.
2792 Adjust all users.
2793 * src/lalr.h (nlookaheads): Remove this orphan declaration.
2794 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
2795 state.
776209d6 2796
331dbc1b
AD
27972001-12-17 Akim Demaille <akim@epita.fr>
2798
2799 * src/files.h, src/files.c (open_files, close_files): Remove.
2800 * src/main.c (main): Don't open/close files, nor invoke lex_free,
2801 let...
2802 * src/reader.c (reader): Do it.
776209d6 2803
be750e4c
AD
28042001-12-17 Akim Demaille <akim@epita.fr>
2805
2806 * src/conflicts.c (print_reductions): Formatting changes.
776209d6 2807
709ae8c6
AD
28082001-12-17 Akim Demaille <akim@epita.fr>
2809
2810 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
2811 (flush_reduce): New.
2812 (resolve_sr_conflict): Adjust.
776209d6 2813
f87685c3
AD
28142001-12-17 Akim Demaille <akim@epita.fr>
2815
2816 * src/output.c (output_obstack): Be static and rename as...
2817 (format_obstack): this, to avoid any confusion with files.c's
2818 output_obstack.
2819 * src/reader.h (muscle_obstack): Move to...
2820 * src/output.h: here, since it's defined in output.c.
2821
837491d8
AD
28222001-12-17 Akim Demaille <akim@epita.fr>
2823
2824 * src/output.c (action_row, save_column, default_goto)
2825 (sort_actions, matching_state, pack_vector): Better variable
2826 locality.
2827
796d61fb
AD
28282001-12-17 Akim Demaille <akim@epita.fr>
2829
2830 * src/output.c: Various formatting changes.
776209d6 2831
64d15509
AD
28322001-12-17 Akim Demaille <akim@epita.fr>
2833
2834 * src/files.c (output_files): Free the output_obstack.
2835 * src/main.c (main): Call print and print_graph conditionally.
2836 * src/print.c (print): Work unconditionally.
2837 * src/print_graph.c (print_graph): Work unconditionally.
2838 * src/conflicts.c (log_resolution): Output only if verbose_flag.
2839
fbc8ecb7
MA
28402001-12-16 Marc Autret <autret_m@epita.fr>
2841
2842 * src/output.c (actions_output): Fix. When we use %no-lines,
2843 there is one less line per action.
2844
f0440388
MA
28452001-12-16 Marc Autret <autret_m@epita.fr>
2846
2847 * src/bison.simple: Remove a useless #line directive.
2848 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
2849 * src/output.c (get_lines_number): New.
776209d6 2850 (output_parser): Adjust, now takes care about the lines of a
f0440388
MA
2851 output muscles.
2852 Fix line numbering.
2853 (actions_output): Computes the number of lines taken by actions.
2854 (output_master_parser): Insert new skeleton which is the name of
2855 the output parser file name.
2856
a79986b8
MA
28572001-12-15 Marc Autret <autret_m@epita.fr>
2858
2859 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
2860
4ec8e00f
MA
28612001-12-15 Marc Autret <autret_m@epita.fr>
2862
2863 * src/output.c (output_gram): Keep track of the hairy one.
2864
1a4648ff
AD
28652001-12-15 Akim Demaille <akim@epita.fr>
2866
2867 Make `make distcheck' work.
2868
2869 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
2870 system.h which uses libgettext.h.
2871
9c2c67e6
AD
28722001-12-15 Akim Demaille <akim@epita.fr>
2873
2874 * src/nullable.c (set_nullable): Useless rules must be skipped,
2875 otherwise, since we range over their symbols, we might look at a
2876 nonterminal which no longer ``exists'', i.e., it is not counted in
2877 `nvars', hence we overflow our arrays.
2878
93ede233
AD
28792001-12-15 Akim Demaille <akim@epita.fr>
2880
2881 The header can also be produced directly, without any obstack!
2882 Yahoo!
2883
2884 * src/files.c, src/files.h (defines_obstack): Remove.
2885 (compute_header_macro): Global.
2886 (defines_obstack_save): Remove.
2887 * src/reader.c (parse_union_decl): No longer output to
2888 defines_obstack: its content can be found in the `stype' muscle
2889 anyway.
2890 (output_token_translations): Merge into...
2891 (symbols_output): this.
2892 Rename as...
2893 (symbols_save): this.
2894 (reader): Adjust.
2895 * src/output.c (header_output): New.
2896 (output): Call it.
2897
2666f928
AD
28982001-12-15 Akim Demaille <akim@epita.fr>
2899
2900 * src/reader.c (parse_union_decl): Instead of handling two obstack
2901 simultaneously, use one to define the `stype' muscle, and use the
2902 value of the latter to fill defines_obstack.
2903 (copy_comment): Remove.
2904 (copy_comment2): Work for a single obstack.
2905 Rename as...
2906 (copy_comment): this.
2907
428046f8
AD
29082001-12-15 Akim Demaille <akim@epita.fr>
2909
2910 * src/lex.c, src/lex.h (xgetc): No longer static.
2911 * src/reader.c (parse_union_decl): Revamp.
2912
ea52d706
AD
29132001-12-15 Akim Demaille <akim@epita.fr>
2914
2915 Still making progress in separating Bison into (i) input, (ii)
2916 process, (iii) output: now we can directly output the parser file
2917 without using table_obstack at all.
2918
2919 * src/files.c, src/files.h (table_obstack): Bye bye.
2920 (parser_file_name): New.
2921 * src/files.c (compute_output_file_names): Compute it.
2922 * src/output.c (actions_output, output_parser)
2923 (output_master_parser): To a file instead of an obstack.
2924
3f96f4dc
AD
29252001-12-15 Akim Demaille <akim@epita.fr>
2926
2927 Attach actions to rules, instead of pre-outputting them to
2928 actions_obstack.
2929
2930 * src/gram.h (rule_t): action and action_line are new members.
2931 * src/reader.c (symbol_list): Likewise.
2932 (copy_action): Save the actions within the rule.
2933 (packgram): Save them in rule_table.
2934 * src/output.c (actions_output): New.
2935 (output_parser): Use it on `%%actions'.
2936 (output_rule_data): Don't free rule_table.
2937 (output): Do it.
2938 (prepare): Don't save the `action' muscle.
2939 * src/bison.simple: s/%%action/%%actions/.
2940
51576fb3
AD
29412001-12-15 Akim Demaille <akim@epita.fr>
2942
2943 * src/reader.c (copy_action): When --yacc, don't append a `;'
2944 to the user action: let it fail if lacking.
dee049eb 2945 Suggested by Arnold Robbins and Tom Tromey.
51576fb3 2946
2648a72d
AD
29472001-12-14 Akim Demaille <akim@epita.fr>
2948
2949 * src/lex.c (literalchar): Simply return the char you decoded, non
2950 longer mess around with obstacks and int pointers.
2951 Adjust all callers.
2952
92790e5b
AD
29532001-12-14 Akim Demaille <akim@epita.fr>
2954
2955 * src/lex.c (literalchar): Don't escape the special characters,
2956 just decode them, and keep them as char (before, eol was output as
2957 the 2 char string `\n' etc.).
2958 * src/output.c (output_rule_data): Use quotearg to output the
2959 token strings.
2960
927c1557
PE
29612001-12-13 Paul Eggert <eggert@twinsun.com>
2962
2963 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
2964 Do not infringe on the global user namespace when using C++.
2965 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
2966 All uses of `fprintf' and `stderr' changed.
2967
2968 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
2969
ed8e1f68
AD
29702001-12-13 Akim Demaille <akim@epita.fr>
2971
2972 The computation of nullable is broken: it doesn't handle empty
2973 RHS's properly.
2974
2975 * tests/torture.at (GNU AWK Grammar): New.
2976 * tests/sets.at (Nullable): New.
2977 * src/nullable.c (set_nullable): Instead of blindly looping over
2978 `ritems', loop over the rules, and then over their rhs's.
2979
2980 Work around Autotest bugs.
2981
2982 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
2983 frame, because Autotest understand lines starting with a `+' as
2984 traces from the shell. Then, they are not processed properly.
2985 Admittedly an Autotest bug, but we don't have time to wait for
2986 Autotest to catch up.
2987 * tests/regression.at (Broken Closure): Adjust to the new table
2988 frames.
2989 Move to...
2990 * tests/sets.at: here.
2991
cb581495
AD
29922001-12-13 Akim Demaille <akim@epita.fr>
2993
2994 * src/closure.c (closure): Use nrules instead of playing tricks
2995 with BITS_PER_WORD.
2996
2e729273
AD
29972001-12-13 Akim Demaille <akim@epita.fr>
2998
2999 * src/print.c (print_actions): Output the handling of `$' as the
3000 traces do: shifting the token EOF. Before EOF was treated as a
3001 nonterminal.
3002 * tests/regression.at: Adjust some tests.
3003 * src/print_graph.c (print_core): Complete the set of items via
3004 closure. The next-to-final and final states are still unsatisfying,
3005 but that's to be addressed elsewhere.
3006 No longer output the rule numbers, but do output the state number.
3007 A single loop for the shifts + gotos is enough, but picked a
3008 distinct color for each.
3009 (print_graph): Initialize and finalize closure.
3010
107f7dfb
AD
30112001-12-13 Akim Demaille <akim@epita.fr>
3012
3013 * src/reader.c (readgram): Remove dead code, an strip useless
3014 braces.
3015 (get_type): Remove, unused.
3016
9b53a24f
AD
30172001-12-12 Akim Demaille <akim@epita.fr>
3018
3019 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
3020 on that of lib/error.c.
3021
dbfb6dcd
AD
30222001-12-12 Akim Demaille <akim@epita.fr>
3023
3024 Some hosts don't like `/' in includes.
3025
3026 * src/system.h: Include libgettext.h without qualifying the path.
3027 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
3028 $(top_srcdir).
3029
c25fb648
MA
30302001-12-11 Marc Autret <autret_m@epita.fr>
3031
3032 * src/output.c (output_parser): Remove useless muscle.
3033
710ddc4f
MA
30342001-12-11 Marc Autret <autret_m@epita.fr>
3035
3036 * src/bison.simple: Remove #line just before %%epilogue. It
3037 is now handled in ...
3038 * src/reader.c (read_additionnal_code): Add the output of a
3039 #line for the epilogue.
3040
e83d80b8
MA
30412001-12-10 Marc Autret <autret_m@epita.fr>
3042
927c1557 3043 * src/reader.c (copy_definition): Re-use CPP-outed code which
e83d80b8
MA
3044 replace precedent remove.
3045 * src/bison.simple: Remove #line before %%prologue because
3046 %%input-line is wrong at this time.
3047
971d5158
MA
30482001-12-10 Marc Autret <autret_m@epita.fr>
3049
3050 * src/reader.c (symbols_output): Clean up.
927c1557 3051 * src/output.c (output_gram, output): Clean up.
971d5158 3052
5edafffd
AD
30532001-12-10 Akim Demaille <akim@epita.fr>
3054
3055 * src/lalr.c (initialize_lookaheads): New. Extracted from...
3056 * src/LR0.c (set_state_table): here.
3057 * src/lalr.c (lalr): Call it.
3058
0279f8e9
AD
30592001-12-10 Akim Demaille <akim@epita.fr>
3060
3061 * src/state.h (shifts): Remove the `number' member: shifts are
3062 attached to state, hence no longer need to be labelled with a
3063 state number.
3064
190c4f5f
AD
30652001-12-10 Akim Demaille <akim@epita.fr>
3066
3067 Now that states have a complete set of members, the linked list of
3068 shifts is useless: just fill directly the state's shifts member.
3069
3070 * src/state.h (shifts): Remove the `next' member.
3071 * src/LR0.c (first_state, last_state): Remove.
3072 Adjust the callers.
3073 (augment_automaton): Don't look for the shifts that must be added
3074 a shift on EOF: it is those of the state we looked for! But now,
3075 since shifts are attached, it is no longer needed to looking
3076 merely by its id: its number.
3077
2a73b93d
AD
30782001-12-10 Akim Demaille <akim@epita.fr>
3079
3080 * src/LR0.c (augment_automaton): Better variable locality.
3081 Remove an impossible branch: if there is a state corresponding to
3082 the start symbol being shifted, then there is shift for the start
3083 symbol from the initial state.
3084
74392f6a
AD
30852001-12-10 Akim Demaille <akim@epita.fr>
3086
3087 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
3088 only when appropriate: when insert_start_shifting_state' is not
3089 invoked.
3090 * tests/regression.at (Rule Line Numbers): Adjust.
3091
37c82725
AD
30922001-12-10 Akim Demaille <akim@epita.fr>
3093
3094 * src/LR0.c (augment_automaton): Now that all states have shifts,
3095 merge the two cases addition shifts to the initial state.
3096
6a164e0c
AD
30972001-12-10 Akim Demaille <akim@epita.fr>
3098
3099 * src/lalr.c (set_state_table): Move to...
3100 * src/LR0.c: here.
3101 * src/lalr.c (lalr): Don't call it...
3102 * src/LR0.c (generate_states): do it.
3103 * src/LR0.h (first_state): Remove, only the table is used.
3104
7215de24
AD
31052001-12-10 Akim Demaille <akim@epita.fr>
3106
3107 * src/LR0.h (first_shift, first_reduction): Remove.
3108 * src/lalr.c: Don't use first_shift: find shifts through the
3109 states.
3110
80e25d4d
AD
31112001-12-10 Akim Demaille <akim@epita.fr>
3112
3113 * src/LR0.c: Attach shifts to states as soon as they are
3114 computed.
3115 * src/lalr.c (set_state_table): Instead of assigning shifts to
3116 state, just assert that the mapping was properly done.
3117
0ab3728b
AD
31182001-12-10 Akim Demaille <akim@epita.fr>
3119
3120 * src/LR0.c (insert_start_shift): Rename as...
3121 (insert_start_shifting_state): this.
3122 (insert_eof_shifting_state, insert_accepting_state): New.
3123 (augment_automaton): Adjust.
3124 Better locality of the variables.
3125 When looking if the start_symbol is shifted from the initial
3126 state, using `while (... symbol != start_symbol ...)' sounds
3127 better than `while (... symbol < start_symbol ...)': If fail
3128 to see how the order between symbols could be relevant!
3129
78af9bbc
AD
31302001-12-10 Akim Demaille <akim@epita.fr>
3131
3132 * src/getargs.h: Don't declare `spec_name_prefix' and
3133 `spec_file_prefix', declared by src/files.h.
3134 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
3135 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
3136 * src/output.c (prepare): Adjust.
3137 * src/reader.c (symbols_output): Likewise.
3138 * src/vmsgetargs.c: Vaguely adjust, but who cares?
3139
bdef2a41
AD
31402001-12-10 Akim Demaille <akim@epita.fr>
3141
3142 * src/muscle_tab.c (muscle_init): NULL is a better default than
3143 `"0"'.
3144
3735969c
AD
31452001-12-10 Akim Demaille <akim@epita.fr>
3146
3147 * src/reader.c (reader): Calling symbols_output once is enough.
3148
49701457
AD
31492001-12-10 Akim Demaille <akim@epita.fr>
3150
3151 Now that states have a complete set of members, the linked list of
3152 reductions is useless: just fill directly the state's reductions
3153 member.
3154
3155 * src/state.h (struct reductions): Remove member `number' and
3156 `next'.
3157 * src/LR0.c (first_reduction, last_reduction): Remove.
3158 (save_reductions): Don't link the new reductions, store them in
3159 this_state.
3160 * src/lalr.c (set_state_table): No need to attach reductions to
3161 states, it's already done.
3162 * src/output.c (output_actions): No longer free the shifts, then
3163 the reductions, then the states: free all the states and their
3164 members.
3165
0edad749
AD
31662001-12-10 Akim Demaille <akim@epita.fr>
3167
3168 * src/options.c (OPTN, DRTV, BOTH): New.
3169 (option_table): Use them.
3170
0edad749
AD
3171 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
3172 the job of system.h.
3173 * src/options.c: Don't include stdio.h and xalloc.h for the same
3174 reasons.
3175
5449dd0f
AD
31762001-12-10 Akim Demaille <akim@epita.fr>
3177
3178 * src/output.c (output, prepare): Make sure the values of the
3179 muscles `action' and `prologue' are 0-terminated.
3180
a870c567
AD
31812001-12-10 Akim Demaille <akim@epita.fr>
3182
3183 Clean up GCC warnings.
3184
3185 * src/reader.c (copy_action): `buf' is not used.
3186 (parse_skel_decl): Be static.
3187 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
3188 * src/options.h (create_long_option_table): Have a real prototype.
3189 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
3190 (hash_delete_at): Return const void *.
3191 Adjust casts to preserve the const.
3192
80df8768
AD
31932001-12-10 Akim Demaille <akim@epita.fr>
3194
3195 * configure.in: Require 2.52g.
3196 M4 is not needed, but AUTOM4TE is.
3197 * m4/m4.m4: Remove.
3198 * tests/Makefile.am: Adjust.
3199
f693ad14
AD
32002001-12-10 Akim Demaille <akim@epita.fr>
3201
3202 One structure for states is enough, even though theoretically
3203 there are LR(0) states and LALR(1) states.
3204
3205 * src/lalr.h (state_t): Remove.
3206 (state_table): Be state_t **, not state_t *.
3207 * src/state.h (core, CORE_ALLOC): Rename as...
3208 (state_t, STATE_ALLOC): this.
3209 Add the LALR(1) members: shifts, reductions, errs.
3210 * src/LR0.c (state_table): Rename as...
3211 (state_hash): this, to avoid name clashes with the global
3212 `state_table'.
3213 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
3214 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
3215
74ffbcb6
AD
32162001-12-10 Akim Demaille <akim@epita.fr>
3217
3218 Bison dumps core on bash.y.
3219 Reported by Pascal Bart.
3220
3221 * src/warshall.c (bitmatrix_print): New.
3222 (TC): Use it.
3223 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
3224 j must be the outer loop.
3225 * tests/regression.at (Broken Closure): New.
3226
07708e19
AD
32272001-12-05 Akim Demaille <akim@epita.fr>
3228
3229 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
3230 its argument.
3231