]> git.saurik.com Git - bison.git/blame - ChangeLog
Report rules which are never reduced by the parser: those hidden
[bison.git] / ChangeLog
CommitLineData
e8832397
AD
12002-07-30 Akim Demaille <akim@epita.fr>
2
3 Report rules which are never reduced by the parser: those hidden
4 by conflicts.
5
6 * src/LR0.c (save_reductions): Don't make the final state too
7 different: save its reduction (accept) instead of having a state
8 without any action (no shift or goto, no reduce).
9 Note: the final state is now a ``regular'' state, i.e., the
10 parsers now contain `reduce 0' as default reduction.
11 Nevertheless, since they decide to `accept' when yystate =
12 final_state, they still will not reduce rule 0.
13 * src/print.c (print_actions, print_reduction): Adjust.
14 * src/output.c (action_row): Track reduced rules.
15 (token_actions): Report rules never reduced.
16 * tests/conflicts.at, tests/regression.at: Adjust.
17
caf23d24
AD
182002-07-30 Akim Demaille <akim@epita.fr>
19
20 `stage' was accidently included in a previous patch.
21 Initiate its autoconfiscation.
22
23 * configure.in: Look for malloc.h and sys/times.h.
24 * src/main.c (stage): Adjust.
25 Report only when trace_flag.
26
640748ee
AD
272002-07-29 Akim Demaille <akim@epita.fr>
28
29 * src/state.h, src/state.c (transitions_t): Holds state_t*'s, not
30 state_number_t.
31 (errs_t): symbol_t*, not symbol_number_t.
32 (reductions_t): rule_t*, not rule_number_t.
33 (FOR_EACH_SHIFT): New.
34 * src/LR0.c, src/conflicts.c, src/lalr.c, src/output.c
35 * src/print.c, src/print_graph.c: Adjust.
36
88bce5a2
AD
372002-07-29 Akim Demaille <akim@epita.fr>
38
39 Use $accept and $end, as BYacc and BTYacc do, instead of $axiom and $.
40
41 * src/symtab.h, src/symtab.c (eoftoken, axiom): Rename as...
42 (endtoken, accept): these.
43 * src/reader.c (reader): Set endtoken's default tag to "$end".
44 Set undeftoken's tag to "$undefined" instead of "$undefined.".
45 * doc/bison.texinfo (Table of Symbols): Mention $accept and $end.
46 Adjust.
47
1bfb97db
AD
482002-07-29 Akim Demaille <akim@epita.fr>
49
50 * src/reduce.c (reduce_grammar): When the language is empty,
51 complain about the start symbol, not the axiom.
52 Use its location.
53 * tests/reduce.at (Empty Language): New.
54
fc5734fe
AD
552002-07-26 Akim Demaille <akim@epita.fr>
56
57 * src/reader.h, src/reader.c (gram_error): ... can't get
58 yycontrol without making too strong assumptions on the parser
59 itself.
60 * src/output.c (prepare_tokens): Use the real 0th value of
61 token_translations instead of `0'.
62 * src/parse-gram.y (yyerror): Don't rely on yycontrol being
63 visible here.
64 * data/yacc.c (yyreport_parse_error): Rename yylocation as yylloc
65 for the time being: %locations ought to provide it to yyerror.
66
3650b4b8
AD
672002-07-25 Akim Demaille <akim@epita.fr>
68
69 * src/output.c (prepare_tokens): Go up to ntokens, not ntokens + 1.
70 * doc/bison.texinfo (Decl Summary): s/$illegal/$undefined./.
71 * tests/regression.at (Web2c Actions): Adjust.
72
4b3d3a8e
AD
732002-07-25 Akim Demaille <akim@epita.fr>
74
75 Stop storing rules from 1 to nrules + 1.
76
77 * src/LR0.c, src/closure.c, src/derives.c, src/gram.c, src/lalr.c
78 * src/nullable.c, src/output.c, src/print.c, src/reader.c
79 * src/reduce.c: Allocate and free from &rules[0], not &rules[1].
80 Iterate from 0 to nrules.
81 Use rule_number_as_item_number and item_number_as_rule_number.
82 Adjust to `derive' now containing possibly 0.
83 * src/gram.h (rule_number_as_item_number, item_number_as_rule_number):
84 Handle the `- 1' part in rule numbers from/to item numbers.
85 * src/conflicts.c (log_resolution): Fix the message which reversed
86 shift and reduce.
87 * src/output.c (action_row): Initialize default_rule to -1.
88 (token_actions): Adjust.
89 * tests/sets.at (Nullable, Firsts): Fix the previously bogus
90 expected output.
91 * tests/conflicts.at (Resolved SR Conflicts): Likewise.
92
4a2a22f4
AD
932002-07-25 Akim Demaille <akim@epita.fr>
94
95 * data/c.m4 (b4_c_function, b4_c_ansi_args, b4_c_ansi_arg)
96 (b4_c_knr_arg_names, b4_c_knr_arg_name, b4_c_knr_arg_decls)
97 (b4_c_knr_arg_decl): New.
98 * data/yacc.c: Use it to define yysymprint, yydestruct, and
99 yyreport_parse_error.
100
b8df3223
AD
1012002-07-25 Akim Demaille <akim@epita.fr>
102
103 * data/yacc.c (yyreport_parse_error): New, extracted from...
104 (yyparse): here.
105 (yydestruct, yysymprint): Move above yyparse.
106 Be K&R compliant.
107
a762e609
AD
1082002-07-25 Akim Demaille <akim@epita.fr>
109
110 * data/c.m4 (b4_ints_in, b4_int_type, b4_int_type_for): New,
111 replace...
112 (b4_sint_type, b4_uint_type): these.
113 * data/yacc.c, data/glr.c, data/lalr1.cc: Use b4_int_type_for.
114 * tests/regression.at (Web2c Actions): Adjust.
115
12b0043a
AD
1162002-07-25 Akim Demaille <akim@epita.fr>
117
118 * src/gram.h (TIEM_NUMBER_MAX): New.
119 (item_number_of_rule_number, rule_number_of_item_number): Rename
120 as...
121 (rule_number_as_item_number, item_number_as_rule_number): these.
122 Adjust dependencies.
123 * src/output.c (vector_number_t, VECTOR_NUMBER_MAX)
124 (VECTOR_NUMBER_MIN, state_number_to_vector_number)
125 (symbol_number_to_vector_number): New.
126 (order): Of vector_number_t* type.
127 (base_t, BASE_MAX, BASE_MIN): New.
128 (froms, tos, width, pos, check): Of base_t type.
129 (action_number_t, ACTION_MIN, ACTION_MAX): New.
130 (actrow): Of action_number_t type.
131 (conflrow): Of unsigned int type.
132 (table_ninf, base_ninf): New.
133 (GENERATE_MUSCLE_INSERT_TABLE): Also output the `*_min' value.
134 (muscle_insert_int_table, muscle_insert_base_table)
135 (muscle_insert_rule_number_table): New.
136 (prepare_tokens): Output `toknum' as int_table.
137 (action_row): Returns a rule_number_t.
138 Use ACTION_MIN, not SHRT_MIN.
139 (token_actions): yydefact is rule_number_t*.
140 (table_ninf_remap): New.
141 (pack_table): Use it for `base' and `table'.
142 * data/yacc.c, data/glr.c, data/lalr1.cc (YYFLAG): Remove,
143 replaced with...
144 (YYPACT_NINF, YYTABLE_NINF): these.
145 (yypact, yytable): Compute their types instead of hard-coded
146 `short'.
147 * tests/regression.at (Web2c Actions): Adjust.
148
5dde258a
AD
1492002-07-19 Akim Demaille <akim@epita.fr>
150
151 * src/scan-gram.l (id): Can start with an underscore.
152
a945ec39
AD
1532002-07-16 Akim Demaille <akim@epita.fr>
154
155 * src/assoc.c, src/asssoc.h (assoc_t, assoc_to_string): New.
156 Adjust all former `associativity' dependencies.
157 * src/symtab.c (symbol_new): Default associativity is `undef', not
158 `right'.
159 (symbol_check_alias_consistence): Adjust.
160
fae437e8
AD
1612002-07-09 Akim Demaille <akim@epita.fr>
162
163 * doc/bison.texinfo: Properly set the ``header'' part.
164 Use @dircategory ``GNU programming tools'' as per Texinfo's
165 documentation.
166 Use @copying.
167
1a715ef2
AD
1682002-07-09 Akim Demaille <akim@epita.fr>
169
170 * lib/quotearg.h: Protect against multiple inclusions.
171 * src/location.h (location_t): Add a `file' member.
172 (LOCATION_RESET, LOCATION_PRINT): Adjust.
173 * src/complain.c (warn_at, complain_at, fatal_at): Drop
174 `error_one_per_line' support.
175
a5d50994
AD
1762002-07-09 Akim Demaille <akim@epita.fr>
177
178 * src/complain.h, src/complain.c (warn, complain): Remove, unused.
179 * src/reader.c (lineno): Remove.
180 Adjust all dependencies.
181 (get_merge_function): Take a location and use complain_at.
182 * src/symtab.h, src/symtab.c (symbol_make_alias): Likewise.
183 * tests/regression.at (Invalid inputs, Mixing %token styles):
184 Adjust.
185
b275314e
AD
1862002-07-09 Akim Demaille <akim@epita.fr>
187
188 * src/parse-gram.y (rules_or_grammar_declaration): Add an error
189 recovery rule, and forbid extensions when --yacc.
190 (gram_error): Use complain_at.
191 * src/reader.c (reader): Exit if there were parse errors.
192
865b9df1
AD
1932002-07-09 Akim Demaille <akim@epita.fr>
194
195 * tests/synclines.at (AT_SYNCLINES_COMPILE): New.
196 (AT_TEST_SYNCLINE): Adjust to unusual GCC outputs.
197 Reported by R Blake <blakers@mac.com>.
198
c76e14da
AD
1992002-07-09 Akim Demaille <akim@epita.fr>
200
201 * data/yacc.c: Output the copyright notive in the header.
202
7db2ed2d
AD
2032002-07-03 Akim Demaille <akim@epita.fr>
204
205 * src/output.c (froms, tos): Are state_number_t.
206 (save_column): sp, sp1, and sp2 are state_number_t.
207 (prepare): Rename `final' as `final_state_number', `nnts' as
208 `nterms_number', `nrules' as `rules_number', `nstates' as
209 `states_number', and `ntokens' as `tokens_number'. Remove `nsym',
210 unused.
211 * data/yacc.c, data/glr.c, data/lalr1.cc: Adjust.
212 * data/lalr1.cc (nsym_): Remove, unused.
213
e68e0410
AD
2142002-07-03 Akim Demaille <akim@epita.fr>
215
216 * src/lalr.h, src/lalr.c (goto_number_t): New.
217 * src/lalr.c (goto_list_t): New.
218 Propagate them.
219 * src/nullable.c (rule_list_t): New.
220 Propagate.
221 * src/types.h: Remove.
222
e1a4f3a4
AD
2232002-07-03 Akim Demaille <akim@epita.fr>
224
225 * src/closure.c (print_fderives): Use rule_rhs_print.
226 * src/derives.c (print_derives): Use rule_rhs_print.
227 (rule_list_t): New, replaces `shorts'.
228 (set_derives): Add comments.
229 * tests/sets.at (Nullable, Firsts): Adjust.
230
536545f3
AD
2312002-07-03 Akim Demaille <akim@epita.fr>
232
233 * src/output.c (prepare_actions): Free `tally' and `width'.
234 (prepare_actions): Allocate and free `order'.
235 * src/symtab.c (symbols_free): Free `symbols'.
236 * src/scan-gram.l (scanner_free): Clear Flex's scanners memory.
237 * src/output.c (m4_invoke): Move to...
238 * src/scan-skel.l: here.
239 (<<EOF>>): Close yyout, and free its name.
240
8b752b00
AD
2412002-07-03 Akim Demaille <akim@epita.fr>
242
243 Fix some memory leaks, and fix a bug: state 0 was examined twice.
244
245 * src/LR0.c (new_state): Merge into...
246 (state_list_append): this.
247 (new_states): Merge into...
248 (generate_states): here.
249 (set_states): Don't ensure a proper `errs' state member here, do it...
250 * src/conflicts.c (conflicts_solve): here.
251 * src/state.h, src/state.c: Comment changes.
252 (state_t): Rename member `shifts' as `transitions'.
253 Adjust all dependencies.
254 (errs_new): For consistency, also take the values as argument.
255 (errs_dup): Remove.
256 (state_errs_set): New.
257 (state_reductions_set, state_transitions_set): Assert that no
258 previous value was assigned.
259 (state_free): New.
260 (states_free): Use it.
261 * src/conflicts.c (resolve_sr_conflict): Don't use an `errs_t' as
262 temporary storage: use `errs' and `nerrs' as elsewhere.
263 (set_conflicts): Allocate and free this `errs'.
264
613f5e1a
AD
2652002-07-02 Akim Demaille <akim@epita.fr>
266
267 * lib/libiberty.h: New.
268 * lib: Update the bitset implementation from upstream.
269 * src/closure.c, src/lalr.c, src/output.c, src/print_graph.c,
270 * src/state.c: Use BITSET_FOR_EACH, not BITSET_EXECUTE.
271 * src/main.c: Adjust bitset stats calls.
272
26e0cadc
PE
2732002-07-01 Paul Eggert <eggert@twinsun.com>
274
275 * src/scan-gram.l (<SC_ESCAPED_CHARACTER>): Convert to unsigned
276 char, so that negative chars don't collide with $.
277
1154cced
AD
2782002-06-30 Akim Demaille <akim@epita.fr>
279
280 Have the GLR tests be `warning' checked, and fix the warnings.
281
282 * data/glr.c (YYFPRINTF): Always define it, not only when YYDEBUG
283 (yyuserAction, yyreportAmbiguity): `Use' all the arguments.
284 (yyremoveDeletes): `yyi' and `yyj' are size_t.
285 Use YYFPRINTF when under if (YYDEBUG) to avoid empty `if' bodies.
286 (yyaddDeferredAction): static.
287 (yyglrReduce): yyi, yyk, amd yyposn are size_t.
288 (yyreportParseError): yyprefix is const.
289 yytokenp is used only when verbose.
290 (yy__GNUC__): Replace with __GNUC__.
291 (yypdumpstack): yyi is size_t.
292 (yypreference): Un-yy local variables and arguments, to avoid
293 clashes with `yyr1'. Anyway, we are not in the user name space.
294 (yytname_size): be an int, as is compared with ints.
295 * tests/testsuite.at (AT_COMPILE, AT_PARSER_CHECK): New.
296 Use them.
297 * tests/cxx-gram.at: Use quotation to protect $1.
298 Use AT_COMPILE to enable warnings hunts.
299 Prototype yylex and yyerror.
300 `Use' argc.
301 Include `string.h', not `strings.h'.
302 Produce and prototype stmtMerge only when used.
303 yylex takes a location.
304
97650f4e
AD
3052002-06-30 Akim Demaille <akim@epita.fr>
306
307 We spend a lot of time in quotearg, in particular when --verbose.
308
309 * src/symtab.c (symbol_get): Store a quoted version of the key.
310 (symbol_tag_get, symbol_tag_get_n, symbol_tag_print): Remove.
311 Adjust all callers.
312
d2576365
AD
3132002-06-30 Akim Demaille <akim@epita.fr>
314
315 * src/state.h (reductions_t): Rename member `nreds' as num.
316 (errs_t): Rename members `nerrs' and `errs' as `num' and `symbols'.
317 * src/state.c (ERRS_ALLOC, REDUCTIONS_ALLOC): Use the correct types.
318
ccaf65bc
AD
3192002-06-30 Akim Demaille <akim@epita.fr>
320
321 * src/state.h, src/state.c (shift_t, SHIFT_SYMBOL, SHIFT_IS_SHIFT)
322 (SHIFT_IS_GOTO, SHIFT_IS_ERROR, SHIFT_DISABLE, SHIFT_IS_DISABLED)
323 (shifts_to): Rename as...
324 (transition_t, TRANSITION_SYMBOL, TRANSITION_IS_TRANSITION)
325 (TRANSITION_IS_GOTO, TRANSITION_IS_ERROR, TRANSITION_DISABLE)
326 (TRANSITION_IS_DISABLED, transitions_to): these.
327
87675353
AD
3282002-06-30 Akim Demaille <akim@epita.fr>
329
330 * src/print.c (print_shifts, print_gotos): Merge into...
331 (print_transitions): this.
332 (print_transitions, print_errs, print_reductions): Align the
333 lookaheads columns.
334 (print_core, print_transitions, print_errs, print_state,
335 print_grammar): Output empty lines separator before, not after.
336 (state_default_rule_compute): Rename as...
337 (state_default_rule): this.
338 * tests/conflicts.at (Defaulted Conflicted Reduction),
339 (Unresolved SR Conflicts, Resolved SR Conflicts): Adjust.
340 * tests/regression.at (Rule Line Numbers, Web2c Report): Adjust.
341
ce4ccb4b
AD
3422002-06-30 Akim Demaille <akim@epita.fr>
343
344 Display items as we display rules.
345
346 * src/gram.h, src/gram.c (rule_lhs_print): New.
347 * src/gram.c (grammar_rules_partial_print): Use it.
348 * src/print.c (print_core): Likewise.
349 * tests/conflicts.at (Defaulted Conflicted Reduction),
350 (Unresolved SR Conflicts): Adjust.
351 (Unresolved SR Conflicts): Adjust and rename as...
352 (Resolved SR Conflicts): this, as was meant.
353 * tests/regression.at (Web2c Report): Adjust.
354
bc933ef1
AD
3552002-06-30 Akim Demaille <akim@epita.fr>
356
357 * src/print.c (state_default_rule_compute): New, extracted from...
358 (print_reductions): here.
359 Pessimize, but clarify the code.
360 * tests/conflicts.at (Defaulted Conflicted Reduction): New.
361
53d4308d
AD
3622002-06-30 Akim Demaille <akim@epita.fr>
363
364 * src/output.c (action_row): Let default_rule be always a rule
365 number.
366
574fb2d5
AD
3672002-06-30 Akim Demaille <akim@epita.fr>
368
369 * src/closure.c (print_firsts, print_fderives, closure):
370 Use BITSET_EXECUTE.
371 * src/lalr.c (lookaheads_print): Likewise.
372 * src/state.c (state_rule_lookaheads_print): Likewise.
373 * src/print_graph.c (print_core): Likewise.
374 * src/print.c (print_reductions): Likewise.
375 * src/output.c (action_row): Likewise.
376 Use SHIFT_IS_DISABLED, SHIFT_IS_SHIFT and SHIFT_SYMBOL.
377
05811fd7
AD
3782002-06-30 Akim Demaille <akim@epita.fr>
379
380 * src/print_graph.c: Use report_flag.
381
0e4d5753
AD
3822002-06-30 Akim Demaille <akim@epita.fr>
383
384 * src/lalr.c (traverse, digraph, matrix_print, transpose): Move
385 to...
386 * src/relation.h, src/relation.c (traverse, relation_digraph)
387 (relation_print, relation_transpose): New.
388
24c7d800
AD
3892002-06-30 Akim Demaille <akim@epita.fr>
390
391 * src/state.h, src/state.c (shifts_to): New.
392 * src/lalr.c (build_relations): Use it.
393
9222837b
AD
3942002-06-30 Akim Demaille <akim@epita.fr>
395
396 * src/gram.h (rule_number_t, RULE_NUMBER_MAX, int_of_rule_number)
397 (item_number_of_rule_number, rule_number_of_item_number): New.
398 * src/LR0.c, src/closure.c, src/derives.c, src/derives.h,
399 * src/gram.c, src/lalr.c, src/nullable.c, src/output.c, src/print.c,
400 * src/print_graph.c, src/reader.c, src/reduce.c, src/reduce.h:
401 Propagate their use.
402 Much remains to be done, in particular wrt `shorts' from types.h.
403
260008e5
AD
4042002-06-30 Akim Demaille <akim@epita.fr>
405
406 * src/symtab.c (symbol_new): Initialize the `printer' member.
407
8a731ca8
AD
4082002-06-30 Akim Demaille <akim@epita.fr>
409
410 * src/LR0.c (save_reductions): Remove, replaced by...
411 * src/state.h, src/state.c (state_reductions_set): New.
412 (reductions, errs): Rename as...
413 (reductions_t, errs_t): these.
414 Adjust all dependencies.
415
32e1e0a4
AD
4162002-06-30 Akim Demaille <akim@epita.fr>
417
418 * src/LR0.c (state_list_t, state_list_append): New.
419 (first_state, last_state): Now symbol_list_t.
420 (this_state): Remove.
421 (new_itemsets, append_states, save_reductions): Take a state_t as
422 argument.
423 (set_states, generate_states): Adjust.
424 (save_shifts): Remove, replaced by...
425 * src/state.h, src/state.c (state_shifts_set): New.
426 (shifts): Rename as...
427 (shifts_t): this.
428 Adjust all dependencies.
429 * src/state.h (state_t): Remove the `next' member.
430
e5fb6710
AD
4312002-06-30 Akim Demaille <akim@epita.fr>
432
433 * src/vcg.c (quote): Use slot 2, since we often pass symbol tag
434 escaped in slot 0.
435
c7ca99d4
AD
4362002-06-30 Akim Demaille <akim@epita.fr>
437
438 Use hash.h for the state hash table.
439
440 * src/LR0.c (STATE_HASH_SIZE, state_hash): Remove.
441 (allocate_storage): Use state_hash_new.
442 (free_storage): Use state_hash_free.
443 (new_state, get_state): Adjust.
444 * src/lalr.h, src/lalr.c (states): Move to...
445 * src/states.h (state_t): Remove the `link' member, no longer
446 used.
447 * src/states.h, src/states.c: here.
448 (state_hash_new, state_hash_free, state_hash_lookup)
449 (state_hash_insert, states_free): New.
450 * src/states.c (state_table, state_compare, state_hash): New.
451 * src/output.c (output_actions): Do not free states now, since we
452 still need to know the final_state number in `prepare', called
453 afterwards. Do it...
454 * src/main.c (main): here: call states_free after `output'.
455
df0e7316
AD
4562002-06-30 Akim Demaille <akim@epita.fr>
457
458 * src/state.h, src/state.c (state_new): New, extracted from...
459 * src/LR0.c (new_state): here.
460 * src/state.h (STATE_ALLOC): Move to...
461 * src/state.c: here.
462 * src/LR0.h, src/LR0.c (nstates, final_state): Move to...
463 * src/state.h, src/state.c: here.
464
39f41916
AD
4652002-06-30 Akim Demaille <akim@epita.fr>
466
467 * src/reader.c (gensym): Rename as...
468 * src/symtab.h, src/symtab.c (dummy_symbol_get): this.
469 (getsym): Rename as...
470 (symbol_get): this.
471
d57650a5
AD
4722002-06-30 Akim Demaille <akim@epita.fr>
473
474 * src/state.h (state_number_t, STATE_NUMBER_MAX): New.
475 * src/LR0.c, src/LR0.h, src/conflicts.c, src/lalr.c, src/lalr.h,
476 * src/output.c, src/print.c, src/print_graph.c: Propagate.
477 * src/LR0.h, src/LR0.h (final_state): Is a state_t*.
478
5a08f1ce
AD
4792002-06-30 Akim Demaille <akim@epita.fr>
480
481 Make the test suite pass with warnings checked.
482
483 * tests/actions.at (Printers and Destructors): Improve.
484 Avoid unsigned vs. signed issues.
485 * tests/calc.at: Don't exercise the scanner here, do it...
486 * tests/input.at (Torturing the Scanner): here.
487
720623af
PH
4882002-06-28 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
489
88e7e941 490 * data/glr.c: Correct typo in Emacs-mode directive. Slightly
720623af
PH
491 reorganize first lines parallel to yacc.c.
492
fb8135fa
AD
4932002-06-28 Akim Demaille <akim@epita.fr>
494
495 * data/c.m4 (b4_copyright, b4_sint_type, b4_uint_type, b4_token_define)
496 (b4_token_enum, b4_token_defines): New, factored from...
497 * data/lalr1.cc, data/yacc.c, glr.c: here.
498
41442480
AD
4992002-06-28 Akim Demaille <akim@epita.fr>
500
501 * data/yacc.c (yydestruct, yysymprint): Pacify GCC warnings for
502 unused variables.
503 * src/output.c (merger_output): static.
504
e0e5bf84
AD
5052002-06-28 Akim Demaille <akim@epita.fr>
506
507 * src/reader.h: s/grammer_current_rule_merge_set/grammar_.../.
508 * src/conflicts.c (conflicts_total_count): `i' is unsigned, to
509 pacify GCC.
510 * src/output.c (save_row): Initialize all the variables to pacify GCC.
e0e5bf84 511
676385e2
PH
5122002-06-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
513
514 Accumulated changelog for new GLR parsing features.
515
e0e5bf84 516 * src/conflicts.c (count_total_conflicts): Change name to
676385e2
PH
517 conflicts_total_count.
518 * src/conflicts.h: Ditto.
519 * src/output.c (token_actions): Use the new name.
520 (output_conflicts): Change conflp => conflict_list_heads, and
521 confl => conflict_list for better readability.
522 * data/glr.c: Use the new names.
523 * NEWS: Add self to GLR announcement.
e0e5bf84 524
676385e2
PH
525 * src/reader.c (free_merger_functions): Cleanup: XFREE->free.
526
527 * doc/bison.texinfo (GLR Parsers): Make corrections suggested by
528 Akim Demaille.
529
530 * data/bison.glr: Change name to glr.c
531 * data/glr.c: Renamed from bison.glr.
532 * data/Makefile.am: Add glr.c
e0e5bf84
AD
533
534 * src/getargs.c:
535
676385e2
PH
536 * src/symlist.h: Add dprec and merger fields to symbol_list_s.
537 * src/symlist.c (symbol_list_new): Initialize dprec and merger fields.
e0e5bf84 538
676385e2
PH
539 Originally 2002-06-16 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
540
541 * data/bison.glr: Be sure to restore the
542 current #line when returning to the skeleton contents after having
543 exposed the input file's #line.
544
545 Originally 2002-06-13 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
546
547 * data/bison.glr: Bring up to date with changes to bison.simple.
548
549 Originally 2002-06-03 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
550
551 * data/bison.glr: Correct definitions that use b4_prefix.
552 Various reformatting.
553 (GLRStack): Make yychar (in YYPURE case) and yytokenp as part of stack.
554 (yyreportParseError, yyrecoverParseError, yyprocessOneStack): remove
555 yytokenp argument; now part of stack.
556 (yychar): Define to behave as documented.
557 (yyclearin): Ditto.
e0e5bf84 558
676385e2
PH
559 Originally 2002-05-14 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
560
561 * src/reader.h: Add declaration for free_merger_functions.
562
563 * src/reader.c (merge_functions): New variable.
564 (get_merge_function): New function.
565 (free_merger_functions): New function.
566 (readgram): Check for %prec that is not followed by a symbol.
567 Handle %dprec and %merge declarations.
568 (packgram): Initialize dprec and merger fields in rules array.
569
570 * src/output.c (conflict_tos, conflrow, conflict_table, conflict_list,
571 conflict_list_cnt, conflict_list_free): New variables.
572 (table_grow): Also grow conflict_table.
e0e5bf84 573 (prepare_rules): Output dprec and merger tables.
676385e2 574 (conflict_row): New function.
e0e5bf84 575 (action_row): Output conflict lists for GLR parser. Don't use
676385e2
PH
576 default reduction in conflicted states for GLR parser so that there
577 are spaces for the conflict lists.
578 (save_row): Also save conflict information.
579 (token_actions): Allocate conflict list.
580 (merger_output): New function.
581 (pack_vector): Pack conflict table, too.
582 (output_conflicts): New function to output yyconflp and yyconfl.
583 (output_check): Allocate conflict_tos.
584 (output_actions): Output conflict tables, also.
585 (output_skeleton): Output b4_mergers definition.
586 (prepare): Output b4_max_rhs_length definition.
587 Use 'bison.glr' as default skeleton for GLR parsers.
588
589 * src/gram.c (glr_parser): New flag.
590 (grammar_free): Call free_merger_functions.
591
592 * src/conflicts.c (count_rr_conflicts): Augment to optionally count
593 all pairs of conflicting reductions, rather than just all tokens
594 causing conflicts. Needed to size conflict tables.
e0e5bf84 595 (conflicts_output): Modify call to count_rr_conflicts for new
676385e2
PH
596 interface.
597 (conflicts_print): Ditto.
598 (count_total_conflicts): New function.
599
600 * src/reader.h (merger_list): New type.
601 (merge_functions): New variable.
602
603 * src/lex.h (tok_dprec, tok_merge): New token types.
604
605 * src/gram.h (rule_s): Add dprec and merger fields.
606 (glr_parser): New flag.
607
608 * src/conflicts.h (count_total_conflicts): New function.
609
610 * src/options.c (option_table): Add %dprec, %merge, and %glr-parser.
611
612 * doc/bison.texinfo (Generalized LR Parsing): New section.
613 (GLR Parsers): New section.
614 (Language and Grammar): Mention GLR parsing.
615 (Table of Symbols): Add %dprec, %glr-parser, %merge, GLR
616 Correct typo ("tge" -> "the").
617
618 * data/bison.glr: New skeleton for GLR parsing.
619
620 * tests/cxx-gram.at: New tests for GLR parsing.
621
622 * tests/testsuite.at: Include cxx-gram.at.
623
624 * tests/Makefile.am: Add cxx-gram.at.
e0e5bf84 625
676385e2
PH
626 * src/parse-gram.y:
627
628 * src/scan-gram.l: Add %dprec, %glr-parser, %merge.
629
630 * src/parse-gram.y: Grammar for %dprec, %merge, %glr-parser.
e0e5bf84 631
b5480d74 6322002-06-27 Akim Demaille <akim@epita.fr>
e2aaf4c4
AD
633
634 * src/options.h, src/options.c: Remove.
635 * src/getargs.c (short_options, long_options): New.
636
60491a94
AD
6372002-06-27 Akim Demaille <akim@epita.fr>
638
639 * data/bison.simple, data/bison.c++: Rename as...
640 * data/yacc.c, data/lalr1.cc: these.
641 * doc/bison.texinfo (Environment Variables): Remove.
642
9be0c25b
AD
6432002-06-25 Raja R Harinath <harinath@cs.umn.edu>
644
645 * src/getargs.c (report_argmatch): Initialize strtok().
646
1ae72863
AD
6472002-06-20 Akim Demaille <akim@epita.fr>
648
649 * data/bison.simple (b4_symbol_actions): New, replaces...
650 (b4_symbol_destructor, b4_symbol_printer): these.
651 (yysymprint): Be sure to call YYPRINT only for tokens, and using
652 user token numbers.
653
87542d29
AD
6542002-06-20 Akim Demaille <akim@epita.fr>
655
656 * data/bison.simple (yydestructor): Rename as...
657 (yydestruct): this.
658
1a31ed21
AD
6592002-06-20 Akim Demaille <akim@epita.fr>
660
661 * src/symtab.h, src/symtab.c (symbol_type_set)
662 (symbol_destructor_set, symbol_precedence_set): The location is
663 the last argument.
664 Adjust all callers.
665
e776192e
AD
6662002-06-20 Akim Demaille <akim@epita.fr>
667
668 * src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser
669 internals.
670 * src/reader.h, src/reader.c (grammar_current_rule_prec_set):
671 Takes a location.
672 * src/symtab.h, src/symtab.c (symbol_class_set)
673 (symbol_user_token_number_set): Likewise.
674 Adjust all callers.
675 Promote complain_at.
676 * tests/input.at (Type Clashes): Adjust.
677
5c1180b3
AD
6782002-06-20 Akim Demaille <akim@epita.fr>
679
680 * data/bison.simple (YYLEX): Fix the declaration when
681 %pure-parser.
682
e3170060
AD
6832002-06-20 Akim Demaille <akim@epita.fr>
684
685 * data/bison.simple (yysymprint): Don't print the token number,
686 just its name.
687 * tests/actions.at (Destructors): Rename as...
688 (Printers and Destructors): this.
689 Also exercise %printer.
690
253862fd
AD
6912002-06-20 Akim Demaille <akim@epita.fr>
692
693 * data/bison.simple (YYDSYMPRINT): New.
694 Use it to remove many of the #if YYDEBUG/if (yydebug).
695
366eea36
AD
6962002-06-20 Akim Demaille <akim@epita.fr>
697
698 * src/symtab.h, src/symtab.c (symbol_t): printer and
699 printer_location are new members.
700 (symbol_printer_set): New.
701 * src/parse-gram.y (PERCENT_PRINTER): New token.
702 Handle its associated rule.
703 * src/scan-gram.l: Adjust.
704 (handle_destructor_at, handle_destructor_dollar): Rename as...
705 (handle_symbol_code_at, handle_symbol_code_dollar): these.
706 * src/output.c (symbol_printers_output): New.
707 (output_skeleton): Call it.
708 * data/bison.simple (yysymprint): New. Cannot be named yyprint
709 since there are already many grammar files with a user `yyprint'.
710 Replace the calls to YYPRINT to calls to yysymprint.
711 * tests/calc.at: Adjust.
712 * tests/torture.at (AT_DATA_STACK_TORTURE): Remove YYPRINT: it was
713 taking advantage of parser very internal details (stack size!).
714
4f25ebb0
AD
7152002-06-20 Akim Demaille <akim@epita.fr>
716
717 * src/scan-gram.l: Complete the scanner with the missing patterns
718 to pacify Flex.
719 Use `quote' and `symbol_tag_get' where appropriate.
720
93b68a0e
AD
7212002-06-19 Akim Demaille <akim@epita.fr>
722
723 * tests/actions.at (Destructors): Augment to test locations.
724 * data/bison.simple (yydestructor): Pass it the current location
725 if locations are enabled.
726 Prototype only when __STDC__ or C++.
727 Change the argument names to move into the yy name space: there is
728 user code here.
729
58612f1d
AD
7302002-06-19 Akim Demaille <akim@epita.fr>
731
74310291
AD
732 * data/bison.simple (b4_pure_if): New.
733 Use it instead of #ifdef YYPURE.
734
7352002-06-19 Akim Demaille <akim@epita.fr>
736
737 * data/bison.simple (b4_location_if): New.
58612f1d
AD
738 Use it instead of #ifdef YYLSP_NEEDED.
739
f25bfb75
AD
7402002-06-19 Akim Demaille <akim@epita.fr>
741
742 Prepare @$ in %destructor, but currently don't bind it in the
743 skeleton, as %location use is not cleaned up yet.
744
745 * src/scan-gram.l (handle_dollar, handle_destructor_at)
746 (handle_action_at): New.
747 (handle_at, handle_action_dollar, handle_destructor_dollar): Take
748 a braced_code_t and a location as additional arguments.
749 (handle_destructor_dollar): Instead of requiring `b4_eval', just
750 unquote one when outputting `b4_dollar_dollar'.
751 Adjust callers.
752 * data/bison.simple (b4_eval): Remove.
753 (b4_symbol_destructor): Adjust.
754 * tests/input.at (Invalid @n): Adjust.
755
c732d2c6
AD
7562002-06-19 Zack Weinberg <zack@codesourcery.com>
757
758 * doc/bison.texinfo: Document ability to have multiple
759 prologue sections.
760
8c165d89
AD
7612002-06-18 Akim Demaille <akim@epita.fr>
762
763 * src/files.c (compute_base_names): When computing the output file
764 names from the input file name, strip the directory part.
765
ca98bf57
AD
7662002-06-18 Akim Demaille <akim@epita.fr>
767
768 * data/bison.simple.new: Comment changes.
769 Reported by Andreas Schwab.
770
0bfb02ff
AD
7712002-06-18 Matt Kraai <kraai@alumni.cmu.edu>
772
773 * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
774 there are no `label `yyoverflowlab' defined but not used' warnings
775 when yyoverflow is defined.
776
24c0aad7
AD
7772002-06-18 Akim Demaille <akim@epita.fr>
778
779 * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a
780 new member.
781 (symbol_destructor_set): Adjust.
782 * src/output.c (symbol_destructors_output): Output the destructor
783 locations.
784 Output the symbol name.
785 * data/bison.simple (b4_symbol_destructor): Adjust.
786
5719c109
AD
7872002-06-18 Cris Bailiff <c.bailiff@awayweb.com>
788 and Akim Demaille <akim@epita.fr>
789
790 * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy
791 what's left on the stack when the error recovery hits EOF.
792 * tests/actions.at (Destructors): Complete to exercise this case.
793
9280d3ef
AD
7942002-06-17 Akim Demaille <akim@epita.fr>
795
796 * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of
797 arguments is really empty, not only equal to `[]'.
798 * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new
799 member.
800 (symbol_destructor_set): New.
801 * src/output.c (symbol_destructors_output): New.
802 * src/reader.h (brace_code_t, current_braced_code): New.
803 * src/scan-gram.l (BRACED_CODE): Use it to branch on...
804 (handle_dollar): Rename as...
805 (handle_action_dollar): this.
806 (handle_destructor_dollar): New.
807 * src/parse-gram.y (PERCENT_DESTRUCTOR): New.
808 (grammar_declaration): Use it.
809 * data/bison.simple (yystos): Is always defined.
810 (yydestructor): New.
811 * tests/actions.at (Destructors): New.
812 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep.
813
dafdc66f
AD
8142002-06-17 Akim Demaille <akim@epita.fr>
815
816 * src/symlist.h, src/symlist.c (symbol_list_length): New.
817 * src/scan-gram.l (handle_dollar, handle_at): Compute the
818 rule_length only when needed.
819 * src/output.c (actions_output, token_definitions_output): Output
820 the full M4 block.
821 * src/symtab.c: Don't access directly to the symbol tag, use
822 symbol_tag_get.
823 * src/parse-gram.y: Use symbol_list_free.
824
56c47203
AD
8252002-06-17 Akim Demaille <akim@epita.fr>
826
827 * src/reader.h, src/reader.c (symbol_list, symbol_list_new)
828 (symbol_list_prepend, get_type_name): Move to...
829 * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new)
830 (symbol_list_prepend, symbol_list_n_type_name_get): here.
831 Adjust all callers.
832 (symbol_list_free): New.
833 * src/scan-gram.l (handle_dollar): Takes a location.
834 * tests/input.at (Invalid $n): Adjust.
835
1e0bab92
AD
8362002-06-17 Akim Demaille <akim@epita.fr>
837
838 * src/reader.h, src/reader.c (symbol_list_new): Export it.
839 (symbol_list_prepend): New.
840 * src/parse-gram.y (%union): `list' is a new member.
841 (symbols.1): New, replaces...
842 (terms_to_prec.1, nterms_to_type.1): these.
843 * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set)
844 Take a location as additional argument.
845 Adjust all callers.
846
04e60654
AD
8472002-06-15 Akim Demaille <akim@epita.fr>
848
849 * src/parse-gram.y: Move %token in the declaration section so that
850 we don't depend upon CVS Bison.
851
10e5b8bd
AD
8522002-06-15 Akim Demaille <akim@epita.fr>
853
854 * src/state.h, src/state.c (state_rule_lookaheads_print): New.
855 * src/print.c (print_core): Use it.
856
9801d40c
AD
8572002-06-15 Akim Demaille <akim@epita.fr>
858
859 * src/conflicts.c (log_resolution): Accept the rule involved in
860 the sr conflicts instead of the lookahead number that points to
861 that rule.
862 (flush_reduce): Accept the current lookahead vector as argument,
863 instead of the index in LA.
864 (resolve_sr_conflict): Accept the current number of lookahead
865 bitset to consider for the STATE, instead of the index in LA.
866 (set_conflicts): Adjust.
867 * src/lalr.c, src/lalr.h, src/state.h: Comment changes.
868
c0263492
AD
8692002-06-15 Akim Demaille <akim@epita.fr>
870
871 * src/state.h (state_t): Replace the `lookaheadsp' member, a
872 short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**).
873 Adjust all dependencies.
874 * src/lalr.c (initialize_lookaheads): Split into...
875 (states_lookaheads_count, states_lookaheads_initialize): these.
876 (lalr): Adjust.
877
9757c359
AD
8782002-06-15 Akim Demaille <akim@epita.fr>
879
880 * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved
881 out of...
882 (grammar_rules_print): here.
883 * src/reduce.c (reduce_output): Use it.
884 * tests/reduce.at (Useless Rules, Reduced Automaton)
885 (Underivable Rules): Adjust.
886
6b98e4b5
AD
8872002-06-15 Akim Demaille <akim@epita.fr>
888
889 Copy BYacc's nice way to report the grammar.
890
891 * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print):
892 New.
893 Don't print the rules' location, it is confusing and useless.
894 (rule_print): Use grammar_rhs_print.
895 * src/print.c (print_grammar): Use grammar_rules_print.
896
6b98e4b5
AD
8972002-06-15 Akim Demaille <akim@epita.fr>
898
899 Complete and rationalize `useless thing' warnings.
900
901 * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n)
902 (symbol_tag_print): New.
903 Use them everywhere in place of accessing directly the tag member.
904 * src/gram.h, src/gram.c (rule_print): New.
905 Use it where a rule used to be printed `by hand'.
906 * src/reduce.c (nonterminals_reduce): Report the use nonterminals.
907 (reduce_grammar_tables): Report the useless rules.
908 (reduce_print): Useless things are a warning, not an error.
909 Report it as such.
910 * tests/reduce.at (Useless Nonterminals, Useless Rules):
911 (Reduced Automaton, Underivable Rules): Adjust.
912 * tests/regression.at (Web2c Report, Web2c Report): Adjust.
913 * tests/conflicts.at (Unresolved SR Conflicts)
914 (Solved SR Conflicts): Adjust.
915
ee000ba4
AD
9162002-06-15 Akim Demaille <akim@epita.fr>
917
918 Let symbols have a location.
919
920 * src/symtab.h, src/symtab.c (symbol_t): Location is a new member.
921 (getsym): Adjust.
922 Adjust all callers.
923 * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at):
924 Use location_t, not int.
925 * src/symtab.c (symbol_check_defined): Take advantage of the
926 location.
927 * tests/regression.at (Invalid inputs): Adjust.
928
8efe435c
AD
9292002-06-15 Akim Demaille <akim@epita.fr>
930
931 * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
932 (input): Don't try to initialize yylloc here, do it in the
933 scanner.
934 * src/scan-gram.l (YY_USER_INIT): Initialize yylloc.
935 * src/gram.h (rule_t): Change line and action_line into location
936 and action_location, of location_t type.
937 Adjust all dependencies.
938 * src/location.h, src/location.c (empty_location): New.
939 * src/reader.h, src/reader.c (grammar_start_symbol_set)
940 (grammar_symbol_append, grammar_rule_begin, grammar_rule_end)
941 (grammar_current_rule_symbol_append)
942 (grammar_current_rule_action_append): Expect a location as argument.
943 * src/reader.c (grammar_midrule_action): Adjust to attach an
944 action's location as dummy symbol location.
945 * src/symtab.h, src/symtab.c (startsymbol_location): New.
946 * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust
947 the line numbers.
948
1921f1d7
AD
9492002-06-14 Akim Demaille <akim@epita.fr>
950
951 Grammar declarations may be found in the grammar section.
952
953 * src/parse-gram.y (rules_or_grammar_declaration): New.
954 (declarations): Each declaration may end with a semicolon, not
955 just...
956 (grammar_declaration): `"%union"'.
957 (grammar): Branch to rules_or_grammar_declaration.
958
4515534c
AD
9592002-06-14 Akim Demaille <akim@epita.fr>
960
961 * src/main.c (main): Invoke scanner_free.
962
f958596b
AD
9632002-06-14 Akim Demaille <akim@epita.fr>
964
965 * src/output.c (m4_invoke): Extracted from...
966 (output_skeleton): here.
967 Free tempfile.
968
2c569025
AD
9692002-06-14 Akim Demaille <akim@epita.fr>
970
971 * src/parse-gram.y (directives, directive, gram)
972 (grammar_directives, precedence_directives, precedence_directive):
973 Rename as...
974 (declarations, declaration, grammar, grammar_declaration)
975 (precedence_declaration, precedence_declarator): these.
976 (symbol_declaration): New.
977
592e8d4d
AD
9782002-06-14 Akim Demaille <akim@epita.fr>
979
980 * src/files.c (action_obstack): Remove, unused.
981 (output_obstack): Remove it, and all its dependencies, as it is no
982 longer needed.
983 * src/reader.c (epilogue_set): Build the epilogue in the
984 muscle_obstack.
985 * src/output.h, src/output.c (muscle_obstack): Move to...
986 * src/muscle_tab.h, src/muscle_tab.h: here.
987 (muscle_init): Initialize muscle_obstack.
988 (muscle_free): New.
989 * src/main.c (main): Call it.
990
0c15323d
AD
9912002-06-14 Akim Demaille <akim@epita.fr>
992
993 * src/location.h: New, extracted from...
994 * src/reader.h: here.
995 * src/Makefile.am (noinst_HEADERS): Merge into
996 (bison_SOURCES): this.
997 Add location.h.
998 * src/parse-gram.y: Use location_t instead of Bison's.
999 * src/reader.h, src/reader.c (prologue_augment, epilogue_set):
1000 Use location_t instead of ints.
1001
e96c9728
AD
10022002-06-14 Akim Demaille <akim@epita.fr>
1003
1004 * data/bison.simple, data/bison.c++: Be sure to restore the
1005 current #line when returning to the skeleton contents after having
1006 exposed the input file's #line.
1007
75d1fe16
AD
10082002-06-12 Akim Demaille <akim@epita.fr>
1009
1010 * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
1011 eager.
1012 * tests/actions.at (Exotic Dollars): New.
1013
6c35d22c
AD
10142002-06-12 Akim Demaille <akim@epita.fr>
1015
1016 * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
1017 ['"/] too eagerly.
1018 * tests/input.at (Torturing the Scanner): New.
1019
1d6412ad
AD
10202002-06-11 Akim Demaille <akim@epita.fr>
1021
1022 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
1023 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
1024 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
1025 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
1026 * src/reader.c (reader): Use it.
1027
4cdb01db
AD
10282002-06-11 Akim Demaille <akim@epita.fr>
1029
1030 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
1031 Adjust all callers.
1032 (scanner_last_string_free): New.
1033
44995b2e
AD
10342002-06-11 Akim Demaille <akim@epita.fr>
1035
1036 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
1037 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
1038 (last_string, YY_OBS_FREE): New.
1039 Use them when returning an ID.
1040
e9955c83
AD
10412002-06-11 Akim Demaille <akim@epita.fr>
1042
1043 Have Bison grammars parsed by a Bison grammar.
1044
1045 * src/reader.c, src/reader.h (prologue_augment): New.
1046 * src/reader.c (copy_definition): Remove.
1047
1048 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
1049 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
1050 (grammar_current_rule_prec_set, grammar_current_rule_check)
1051 (grammar_current_rule_symbol_append)
1052 (grammar_current_rule_action_append): Export.
1053 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
1054 (symbol_list_action_append): Remove.
1055 Hook the routines from reader.
1056 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
1057 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
1058
1059 * src/reader.c (read_declarations): Remove, unused.
1060
1061 * src/parse-gram.y: Handle the epilogue.
1062 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
1063 (grammar_start_symbol_set): this.
1064 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
1065 * src/reader.c (readgram): Remove, unused.
1066 (reader): Adjust to insert eoftoken and axiom where appropriate.
1067
1068 * src/reader.c (copy_dollar): Replace with...
1069 * src/scan-gram.h (handle_dollar): this.
1070 * src/parse-gram.y: Remove `%thong'.
1071
1072 * src/reader.c (copy_at): Replace with...
1073 * src/scan-gram.h (handle_at): this.
1074
1075 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
1076 New.
1077
1078 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
1079 time being.
1080
1081 * src/reader.h, src/reader.c (grammar_rule_end): New.
1082
1083 * src/parse.y (current_type, current_class): New.
1084 Implement `%nterm', `%token' support.
1085 Merge `%term' into `%token'.
1086 (string_as_id): New.
1087 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
1088 type name.
1089
1090 * src/parse-gram.y: Be sure to handle properly the beginning of
1091 rules.
1092
1093 * src/parse-gram.y: Handle %type.
1094 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
1095
1096 * src/parse-gram.y: More directives support.
1097 * src/options.c: No longer handle source directives.
1098
1099 * src/parse-gram.y: Fix %output.
1100
1101 * src/parse-gram.y: Handle %union.
1102 Use the prologue locations.
1103 * src/reader.c (parse_union_decl): Remove.
1104
1105 * src/reader.h, src/reader.c (epilogue_set): New.
1106 * src/parse-gram.y: Use it.
1107
1108 * data/bison.simple, data/bison.c++: b4_stype is now either not
1109 defined, then default to int, or to the contents of %union,
1110 without `union' itself.
1111 Adjust.
1112 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
1113
1114 * src/output.c (actions_output): Don't output braces, as they are
1115 already handled by the scanner.
1116
1117 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
1118 characters to themselves.
1119
1120 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
1121 that the epilogue has a proper #line.
1122
1123 * src/parse-gram.y: Handle precedence/associativity.
1124
1125 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
1126 a terminal.
1127 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
1128 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
1129 at all to define terminals that cannot be emitted.
1130
1131 * src/scan-gram.l: Escape M4 characters.
1132
1133 * src/scan-gram.l: Working properly with escapes in user
1134 strings/characters.
1135
1136 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
1137 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
1138 grammar.
1139 Use more modest sizes, as for the time being the parser does not
1140 release memory, and therefore the process swallows a huge amount
1141 of memory.
1142
1143 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
1144 stricter %token grammar.
1145
1146 * src/symtab.h (associativity): Add `undef_assoc'.
1147 (symbol_precedence_set): Do nothing when passed an undef_assoc.
1148 * src/symtab.c (symbol_check_alias_consistence): Adjust.
1149
1150 * tests/regression.at (Invalid %directive): Remove, as it is now
1151 meaningless.
1152 (Invalid inputs): Adjust to the new error messages.
1153 (Token definitions): The new grammar doesn't allow too many
1154 eccentricities.
1155
1156 * src/lex.h, src/lex.c: Remove.
1157 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
1158 (copy_character, copy_string2, copy_string, copy_identifier)
1159 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
1160 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
1161 (parse_action): Remove.
1162 * po/POTFILES.in: Adjust.
1163
2e047461
AD
11642002-06-11 Akim Demaille <akim@epita.fr>
1165
1166 * src/reader.c (parse_action): Don't store directly into the
1167 rule's action member: return the action as a string.
1168 Don't require `rule_length' as an argument: compute it.
1169 (grammar_current_rule_symbol_append)
1170 (grammar_current_rule_action_append): New, eved out from
1171 (readgram): here.
1172 Remove `action_flag', `rulelength', unused now.
1173
9af3fbce
AD
11742002-06-11 Akim Demaille <akim@epita.fr>
1175
1176 * src/reader.c (grammar_current_rule_prec_set).
1177 (grammar_current_rule_check): New, eved out from...
1178 (readgram): here.
1179 Remove `xaction', `first_rhs': useless.
1180 * tests/input.at (Type clashes): New.
1181 * tests/existing.at (GNU Cim Grammar): Adjust.
1182
1485e106
AD
11832002-06-11 Akim Demaille <akim@epita.fr>
1184
1185 * src/reader.c (grammar_midrule_action): New, Eved out from
1186 (readgram): here.
1187
da4160c3
AD
11882002-06-11 Akim Demaille <akim@epita.fr>
1189
1190 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
1191 New.
1192 (readgram): Use them as replacement of inlined code, crule and
1193 crule1.
1194
f6d0f937
AD
11952002-06-11 Akim Demaille <akim@epita.fr>
1196
1197 * src/reader.c (grammar_end, grammar_symbol_append): New.
1198 (readgram): Use them.
1199 Make the use of `p' as local as possible.
1200
69078d4b
AD
12012002-06-10 Akim Demaille <akim@epita.fr>
1202
1203 GCJ's parser requires the tokens to be defined before the prologue.
1204
1205 * data/bison.simple: Output the token definition before the user's
1206 prologue.
1207 * tests/regression.at (Braces parsing, Duplicate string)
1208 (Mixing %token styles): Check the output from bison.
1209 (Early token definitions): New.
1210
5e424082
AD
12112002-06-10 Akim Demaille <akim@epita.fr>
1212
1213 * src/symtab.c (symbol_user_token_number_set): Don't complain when
1214 assigning twice the same user number to a token, so that we can
1215 use it in...
1216 * src/lex.c (lex): here.
1217 Also use `symbol_class_set' instead of hand written code.
1218 * src/reader.c (parse_assoc_decl): Likewise.
1219
44536b35
AD
12202002-06-10 Akim Demaille <akim@epita.fr>
1221
1222 * src/symtab.c, src/symtab.c (symbol_class_set)
1223 (symbol_user_token_number_set): New.
1224 * src/reader.c (parse_token_decl): Use them.
1225 Use a switch instead of ifs.
1226 Use a single argument.
1227
8b9f2372
AD
12282002-06-10 Akim Demaille <akim@epita.fr>
1229
1230 Remove `%thong' support as it is undocumented, unused, duplicates
1231 `%token's job, and creates useless e-mail traffic with people who
1232 want to know what it is, why it is undocumented, unused, and
1233 duplicates `%token's job.
1234
1235 * src/reader.c (parse_thong_decl): Remove.
1236 * src/options.c (option_table): Remove "thong".
1237 * src/lex.h (tok_thong): Remove.
1238
3ae2b51f
AD
12392002-06-10 Akim Demaille <akim@epita.fr>
1240
1241 * src/symtab.c, src/symtab.c (symbol_type_set)
1242 (symbol_precedence_set): New.
1243 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
1244 (value_components_used): Remove, unused.
1245
2f1afb73
AD
12462002-06-09 Akim Demaille <akim@epita.fr>
1247
1248 Move symbols handling code out of the reader.
1249
1250 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
1251 (axiom): Move to...
1252 * src/symtab.h, src/symtab.c: here.
1253
1254 * src/gram.c (start_symbol): Remove: use startsymbol->number.
1255 * src/reader.c (startval): Rename as...
1256 * src/symtab.h, src/symtab.c (startsymbol): this.
1257 * src/reader.c: Adjust.
1258
1259 * src/reader.c (symbol_check_defined, symbol_make_alias)
1260 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
1261 (token_translations_init)
1262 Move to...
1263 * src/symtab.c: here.
1264 * src/reader.c (packsymbols): Move to...
1265 * src/symtab.h, src/symtab.c (symbols_pack): here.
1266 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
1267 argument.
1268
e9bca3ad
AD
12692002-06-03 Akim Demaille <akim@epita.fr>
1270
1271 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
1272 then statements.
1273
86eff183
AD
12742002-06-03 Akim Demaille <akim@epita.fr>
1275
1276 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
1277 structs with non literals.
1278 * src/scan-skel.l: never-interactive.
1279 * src/conflicts.c (enum conflict_resolution_e): No trailing
1280 comma.
1281 * src/getargs.c (usage): Split long literal strings.
1282 Reported by Hans Aberg.
1283
717be197
AD
12842002-05-28 Akim Demaille <akim@epita.fr>
1285
1286 * data/bison.c++: Use C++ ostreams.
1287 (cdebug_): New member.
1288
670ddffd
AD
12892002-05-28 Akim Demaille <akim@epita.fr>
1290
1291 * src/output.c (output_skeleton): Be sure to allocate enough room
1292 for `/' _and_ for `\0' in full_skeleton.
1293
769b430f
AD
12942002-05-28 Akim Demaille <akim@epita.fr>
1295
1296 * data/bison.c++: Catch up with bison.simple:
1297 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1298 and Paul Eggert <eggert@twinsun.com>: `error' handing.
1299 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
1300 and popping traces.
1301
7067cb36
PH
13022002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1303
1304 * src/output.c (output_skeleton): Put an explicit path in front of
1305 the skeleton file name, rather than relying on the -I directory,
1306 to partially alleviate effects of having a skeleton file lying around
1307 in the current directory.
769b430f 1308
4a713ec2
PH
13092002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1310
769b430f 1311 * src/conflicts.c (log_resolution): Correct typo:
4a713ec2
PH
1312 obstack_printf should be obstack_fgrow1.
1313
b408954b
AD
13142002-05-26 Akim Demaille <akim@epita.fr>
1315
1316 * src/state.h (state_t): `solved_conflicts' is a new member.
1317 * src/LR0.c (new_state): Set it to 0.
1318 * src/conflicts.h, src/conflicts.c (print_conflicts)
1319 (free_conflicts, solve_conflicts): Rename as...
1320 (conflicts_print, conflicts_free, conflicts_solve): these.
1321 Adjust callers.
1322 * src/conflicts.c (enum conflict_resolution_e)
1323 (solved_conflicts_obstack): New, used by...
1324 (log_resolution): this.
1325 Adjust to attach the conflict resolution to each state.
1326 Complete the description with the precedence/associativity
1327 information.
1328 (resolve_sr_conflict): Adjust.
1329 * src/print.c (print_state): Output its solved_conflicts.
1330 * tests/conflicts.at (Unresolved SR Conflicts)
1331 (Solved SR Conflicts): Exercise --report=all.
1332
a49aecd5
AD
13332002-05-26 Akim Demaille <akim@epita.fr>
1334
1335 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
1336 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1337 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
1338 (token_number_t, item_number_as_token_number)
1339 (token_number_as_item_number, muscle_insert_token_number_table):
1340 Rename as...
1341 (symbol_number_t, item_number_as_symbol_number)
1342 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
1343 these, since it is more appropriate.
1344
5504898e
AD
13452002-05-26 Akim Demaille <akim@epita.fr>
1346
1347 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
1348 `Error:' lines.
1349 * data/bison.simple (yystos) [YYDEBUG]: New.
1350 (yyparse) [YYDEBUG]: Display the symbols which are popped during
1351 error recovery.
1352 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
1353
ec3bc396
AD
13542002-05-25 Akim Demaille <akim@epita.fr>
1355
1356 * doc/bison.texinfo (Debugging): Split into...
1357 (Tracing): this new section, its former contents, and...
1358 (Understanding): this new section.
1359 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
1360 by...
1361 (report_flag): this.
1362 Adjust all dependencies.
1363 (report_args, report_types, report_argmatch): New.
1364 (usage, getargs): Report/support -r, --report.
1365 * src/options.h
1366 (struct option_table_struct): Rename as..,
1367 (struct option_table_s): this.
1368 Rename the `set_flag' member to `flag' to match with getopt_long's
1369 struct.
1370 * src/options.c (option_table): Split verbose into an entry for
1371 %verbose, and another for --verbose.
1372 Support --report/-r, so remove -r from the obsolete --raw.
1373 * src/print.c: Attach full item sets and lookaheads reports to
1374 report_flag instead of trace_flag.
1375 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
1376
78df8250
PE
13772002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1378 and Paul Eggert <eggert@twinsun.com>
769b430f 1379
78df8250
PE
1380 * data/bison.simple (yyparse): Correct error handling to conform to
1381 POSIX and yacc. Specifically, after syntax error is discovered,
1382 do not reduce further before shifting the error token.
1383 Clean up the code a bit by removing the labels yyerrdefault,
1384 yyerrhandle, yyerrpop.
1385 * NEWS: Document the above.
1386
c0c9ea05
PH
13872002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1388
1389 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
1390 type; it isn't always big enough, since it doesn't necessarily
1391 include non-terminals.
769b430f 1392 (yytranslate): Expand definition of yy_token_number_type, so that
c0c9ea05
PH
1393 the latter can be removed.
1394 (yy_token_number_type): Remove, only one use.
1395 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
1396 don't use TokenNumberType as element type.
769b430f 1397
c0c9ea05
PH
1398 * tests/regression.at: Modify expected output to agree with change
1399 to yyr1 and yytranslate.
769b430f 1400
6390a83f
FK
14012002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
1402
1403 * src/reader.c (parse_action): Use copy_character instead of
1404 obstack_1grow.
1405
db7c8e9a
AD
14062002-05-13 Akim Demaille <akim@epita.fr>
1407
1408 * tests/regression.at (Token definitions): Prototype yylex and
1409 yyerror.
1410
fcc61800
PH
14112002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1412
158c687b 1413 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
fcc61800
PH
1414 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
1415 32-bit arithmetic.
1416 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
1417
5683e9b2
AD
14182002-05-07 Akim Demaille <akim@epita.fr>
1419
1420 * tests/synclines.at: Be sure to prototype yylex and yyerror to
1421 avoid GCC warnings.
1422
0c2d3f4c
AD
14232002-05-07 Akim Demaille <akim@epita.fr>
1424
1425 Kill GCC warnings.
1426
1427 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
1428 over the RHS of each rule.
1429 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
1430 * src/state.h (state_t): Member `nitems' is unsigned short.
1431 * src/LR0.c (get_state): Adjust.
1432 * src/reader.c (packgram): Likewise.
1433 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
1434 `Type'.
1435 (muscle_insert_int_table): Remove, unused.
1436 (prepare_rules): Remove `max'.
1437
1565b720
AD
14382002-05-06 Akim Demaille <akim@epita.fr>
1439
1440 * src/closure.c (print_firsts): Display of the symbol tags.
1441 (bitmatrix_print): Move to...
1442 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
1443 here.
1444 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
1445
cfaee611
AD
14462002-05-06 Akim Demaille <akim@epita.fr>
1447
1448 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
1449 hash_do_for_each.
1450
458be8e0
AD
14512002-05-06 Akim Demaille <akim@epita.fr>
1452
1453 * src/LR0.c (new_state, get_state): Instead of using the global
1454 `kernel_size' and `kernel_base', have two new arguments:
1455 `core_size' and `core'.
1456 Adjust callers.
1457
a900a624
AD
14582002-05-06 Akim Demaille <akim@epita.fr>
1459
1460 * src/reader.c (packgram): No longer end `ritem' with a 0
1461 sentinel: it is not used.
1462
d4e7d3a1
AD
14632002-05-05 Akim Demaille <akim@epita.fr>
1464
1465 New experimental feature: display the lookaheads in the report and
1466 graph.
1467
1468 * src/print (print_core): When --trace-flag, display the rules
1469 lookaheads.
1470 * src/print_graph.c (print_core): Likewise.
1471 Swap the arguments.
1472 Adjust caller.
1473
39ceb25b
AD
14742002-05-05 Akim Demaille <akim@epita.fr>
1475
1476 * tests/torture.at (Many lookaheads): New test.
1477
5372019f
AD
14782002-05-05 Akim Demaille <akim@epita.fr>
1479
1480 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
1481 (GENERATE_MUSCLE_INSERT_TABLE): this.
1482 (output_int_table, output_unsigned_int_table, output_short_table)
1483 (output_token_number_table, output_item_number_table): Replace with...
1484 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
1485 (muscle_insert_short_table, muscle_insert_token_number_table)
1486 (muscle_insert_item_number_table): these.
1487 Adjust all callers.
1488 (prepare_tokens): Don't free `translations', since...
1489 * src/reader.h, src/reader.c (grammar_free): do it.
1490 Move to...
1491 * src/gram.h, src/gram.c (grammar_free): here.
1492 * data/bison.simple, data/bison.c++: b4_token_number_max is now
1493 b4_translate_max.
1494
5df5f6d5
AD
14952002-05-05 Akim Demaille <akim@epita.fr>
1496
1497 * src/output.c (output_unsigned_int_table): New.
1498 (prepare_rules): `i' is unsigned.
1499 `prhs', `rline', `r2' are unsigned int.
1500 Rename muscle `rhs_number_max' as `rhs_max'.
1501 Output muscles `prhs_max', `rline_max', and `r2_max'.
1502 Free rline and r1.
1503 * data/bison.simple, data/bison.c++: Adjust to use these muscles
1504 to compute types instead of constant types.
1505 * tests/regression.at (Web2c Actions): Adjust.
1506
b87f8b21
AD
15072002-05-04 Akim Demaille <akim@epita.fr>
1508
1509 * src/symtab.h (SALIAS, SUNDEF): Rename as...
1510 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
1511 Adjust dependencies.
1512 * src/output.c (token_definitions_output): Be sure not to output a
1513 `#define 'a'' when fed with `%token 'a' "a"'.
1514 * tests/regression.at (Token definitions): New.
1515
8bb936e4
PE
15162002-05-03 Paul Eggert <eggert@twinsun.com>
1517
1518 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
1519 for K&R C.
1520
15212002-05-03 gettextize <bug-gnu-gettext@gnu.org>
1522
1523 * Makefile.am (SUBDIRS): Remove intl.
1524 (EXTRA_DIST): Add config/config.rpath.
1525
53c71a12
AD
15262002-05-03 Akim Demaille <akim@epita.fr>
1527
1528 * data/bison.simple (m4_if): Don't output empty enums.
1529 And actually, output valid enum definitions :(.
1530
289dd0cf
AD
15312002-05-03 Akim Demaille <akim@epita.fr>
1532
1533 * configure.bat: Remove, completely obsolete.
1534 * Makefile.am (EXTRA_DIST): Adjust.
1535 Don't distribute config.rpath...
1536 * config/Makefile.am (EXTRA_DIST): Do it.
1537
db85e524
AD
15382002-05-03 Akim Demaille <akim@epita.fr>
1539
1540 * configure.in (GETTEXT_VERSION): New.
1541 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
1542
83ccf991
AD
15432002-05-03 Akim Demaille <akim@epita.fr>
1544
1545 * data/bison.simple (b4_token_enum): New.
1546 (b4_token_defines): Use it to output tokens both as #define and
1547 enums.
1548 Suggested by Paul Eggert.
1549 * src/output.c (token_definitions_output): Don't output spurious
1550 white spaces.
1551
1f418995
AD
15522002-05-03 Akim Demaille <akim@epita.fr>
1553
1554 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1555
45119f04
RA
15562002-05-02 Robert Anisko <robert@lrde.epita.fr>
1557
1558 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
1559 Update the stack class, give a try to deque as the default container.
1560
b2d52318
AD
15612002-05-02 Akim Demaille <akim@epita.fr>
1562
1563 * data/bison.simple (yyparse): Do not implement @$ = @1.
1564 (YYLLOC_DEFAULT): Adjust to do it.
1565 * doc/bison.texinfo (Location Default Action): Fix.
1566
3a8b4109
AD
15672002-05-02 Akim Demaille <akim@epita.fr>
1568
1569 * src/reader.c (parse_braces): Merge into...
1570 (parse_action): this.
1571
84614e13
AD
15722002-05-02 Akim Demaille <akim@epita.fr>
1573
1574 * configure.in (ALL_LINGUAS): Remove.
1575 * po/LINGUAS, hr.po: New.
1576
fdbcd8e2
AD
15772002-05-02 Akim Demaille <akim@epita.fr>
1578
1579 Remove the so called hairy (semantic) parsers.
1580
1581 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
1582 * src/gram.h, src/gram.c (semantic_parser): Remove.
1583 (rule_t): Remove the guard and guard_line members.
1584 * src/lex.h (token_t): remove tok_guard.
1585 * src/options.c (option_table): Remove %guard and %semantic_parser
1586 support.
1587 * src/output.c, src/output.h (guards_output): Remove.
1588 (prepare): Adjust.
1589 (token_definitions_output): Don't output the `T'
1590 tokens (???).
1591 (output_skeleton): Don't output the guards.
1592 * src/files.c, src/files.c (attrsfile): Remove.
1593 * src/reader.c (symbol_list): Remove the guard and guard_line
1594 members.
1595 Adjust dependencies.
1596 (parse_guard): Remove.
1597 * data/bison.hairy: Remove.
1598 * doc/bison.texinfo (Environment Variables): Remove occurrences of
1599 BISON_HAIRY.
1600
82b6cb3f
AD
16012002-05-02 Akim Demaille <akim@epita.fr>
1602
1603 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
1604 (parse_guard): Rename the formal argument `stack_offset' as
1605 `rule_length', which is more readable.
1606 Adjust callers.
1607 (copy_at, copy_dollar): Instead of outputting the hard coded
1608 values of $$, $n and so forth, output invocation to b4_lhs_value,
1609 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
900c877b
AD
1610 Note: this patch partially drops `semantic-parser' support: it
1611 always does `rule_length - n', where semantic parsers ought to
1612 always use `-n'.
82b6cb3f
AD
1613 * data/bison.simple, data/bison.c++ (b4_lhs_value)
1614 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
1615
6cbfbcc5
AD
16162002-05-02 Akim Demaille <akim@epita.fr>
1617
1618 * configure.in (AC_INIT): Bump to 1.49b.
1619 (AM_INIT_AUTOMAKE): Short invocation.
1620
b8548114
AD
16212002-05-02 Akim Demaille <akim@epita.fr>
1622
1623 Version 1.49a.
1624
c20cd1fa
AD
16252002-05-01 Akim Demaille <akim@epita.fr>
1626
1627 * src/skeleton.h: Remove.
1628
8a9566d4
AD
16292002-05-01 Akim Demaille <akim@epita.fr>
1630
1631 * src/skeleton.h: Fix the #endif.
1632 Reported by Magnus Fromreide.
1633
8c6d399a
PE
16342002-04-26 Paul Eggert <eggert@twinsun.com>
1635
1636 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
1637 Define if we define YYSTYPE and YYLTYPE, respectively.
b756bb75 1638 (YYCOPY): Fix [] quoting problem in the non-GCC case.
8a9566d4 1639
2b7ed18a
RA
16402002-04-25 Robert Anisko <robert@lrde.epita.fr>
1641
1642 * src/scan-skel.l: Postprocess quadrigraphs.
1643
1644 * src/reader.c (copy_character): New function, used to output
1645 single characters while replacing `[' and `]' with quadrigraphs, to
1646 avoid troubles with M4 quotes.
1647 (copy_comment): Output characters with copy_character.
1648 (read_additionnal_code): Likewise.
1649 (copy_string2): Likewise.
1650 (copy_definition): Likewise.
1651
1652 * tests/calc.at: Exercise M4 quoting.
1653
34a89c50
AD
16542002-04-25 Akim Demaille <akim@epita.fr>
1655
1656 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
1657 between `!' and the command.
1658 Reported by Paul Eggert.
1659
0dd1580a
RA
16602002-04-24 Robert Anisko <robert@lrde.epita.fr>
1661
1662 * tests/calc.at: Exercise prologue splitting.
1663
1664 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
1665 `b4_post_prologue' instead of `b4_prologue'.
1666
1667 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
1668 muscles.
1669 (output): Free pre_prologue_obstack and post_prologue_obstack.
1670 * src/files.h, src/files.c (attrs_obstack): Remove.
1671 (pre_prologue_obstack, post_prologue_obstack): New.
1672 * src/reader.c (copy_definition): Add a parameter to specify the
1673 obstack to fill, instead of using attrs_obstack unconditionally.
1674 (read_declarations): Pass pre_prologue_obstack to copy_definition if
1675 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
1676
83c1796f
PE
16772002-04-23 Paul Eggert <eggert@twinsun.com>
1678
1679 * data/bison.simple: Remove unnecessary commentary and white
1680 space differences from 1_29-branch.
1681 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
1682
1683 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
1684 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
1685 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
1686 constructors or destructors.
1687
1688 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
1689
1207eeac
AD
16902002-04-23 Akim Demaille <akim@epita.fr>
1691
1692 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
1693 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
1694 location with columns.
1695 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
1696 All reported by Paul Eggert.
1697
78ab8f67
AD
16982002-04-22 Akim Demaille <akim@epita.fr>
1699
1700 * src/reduce.c (dump_grammar): Move to...
1701 * src/gram.h, src/gram.c (grammar_dump): here.
1702 Be sure to separate long item numbers.
1703 Don't read the members of a rule's prec if its nil.
1704
133c20e2
AD
17052002-04-22 Akim Demaille <akim@epita.fr>
1706
1707 * src/output.c (table_size, table_grow): New.
1708 (MAXTABLE): Remove, replace uses with table_size.
1709 (pack_vector): Instead of dying when the table is too big, grow it.
1710
9515e8a7
AD
17112002-04-22 Akim Demaille <akim@epita.fr>
1712
1713 * data/bison.simple (yyr1): Its type is that of a token number.
1714 * data/bison.c++ (r1_): Likewise.
1715 * tests/regression.at (Web2c Actions): Adjust.
1716
23c5a174
AD
17172002-04-22 Akim Demaille <akim@epita.fr>
1718
1719 * src/reader.c (token_translations_init): 256 is now the default
1720 value for the error token, i.e., it will be assigned another
1721 number if the user assigned 256 to one of her tokens.
1722 (reader): Don't force 256 to error.
1723 * doc/bison.texinfo (Symbols): Adjust.
1724 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
1725 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
1726 etc. instead of 10, 20, 30 (which was used to `jump' over error
1727 (256) and undefined (2)).
1728
5fbb0954
AD
17292002-04-22 Akim Demaille <akim@epita.fr>
1730
1731 Propagate more token_number_t.
1732
1733 * src/gram.h (token_number_as_item_number)
1734 (item_number_as_token_number): New.
1735 * src/output.c (GENERATE_OUTPUT_TABLE): New.
1736 Use it to create output_item_number_table and
1737 output_token_number_table.
1738 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
1739 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
1740 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
1741 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
1742
4f940944
AD
17432002-04-22 Akim Demaille <akim@epita.fr>
1744
1745 * src/output.h, src/output.c (get_lines_number): Remove.
1746
3ded9a63
AD
17472002-04-19 Akim Demaille <akim@epita.fr>
1748
1749 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
1750 as Lex/Flex'.
1751 (Debugging): More details about enabling the debugging features.
1752 (Table of Symbols): Describe $$, $n, @$, and @n.
1753 Suggested by Tim Josling.
1754
e0c471a9
AD
17552002-04-19 Akim Demaille <akim@epita.fr>
1756
1757 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
1758
fecc10cd
AD
17592002-04-10 Akim Demaille <akim@epita.fr>
1760
1761 * src/system.h: Rely on HAVE_LIMITS_H.
1762 Suggested by Paul Eggert.
1763
51dec47b
AD
17642002-04-09 Akim Demaille <akim@epita.fr>
1765
1766 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
1767 full stderr, and strip it according to the bison options, instead
1768 of composing the error message from different bits.
1769 This makes it easier to check for several error messages.
1770 Adjust all the invocations.
1771 Add an invocation exercising the error token.
1772 Add an invocation demonstrating a stupid error message.
1773 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
1774 Adjust the tests.
1775 Error message are for stderr, not stdout.
1776
007a50a4
AD
17772002-04-09 Akim Demaille <akim@epita.fr>
1778
1779 * src/gram.h, src/gram.c (error_token_number): Remove, use
1780 errtoken->number.
1781 * src/reader.c (reader): Don't specify the user token number (2)
1782 for $undefined, as it uselessly prevents using it.
1783 * src/gram.h (token_number_t): Move to...
1784 * src/symtab.h: here.
1785 (state_t.number): Is a token_number_t.
1786 * src/print.c, src/reader.c: Use undeftoken->number instead of
1787 hard coded 2.
1788 (Even though this 2 is not the same as above: the number of the
1789 undeftoken remains being 2, it is its user token number which
1790 might not be 2).
1791 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
1792 `user_token_number_max'.
1793 Output `undef_token_number'.
1794 * data/bison.simple, data/bison.c++: Use them.
1795 Be sure to map invalid yylex return values to
1796 `undef_token_number'. This saves us from gratuitous SEGV.
1797
1798 * tests/conflicts.at (Solved SR Conflicts)
1799 (Unresolved SR Conflicts): Adjust.
1800 * tests/regression.at (Web2c Actions): Adjust.
1801
06446ccf
AD
18022002-04-08 Akim Demaille <akim@epita.fr>
1803
1804 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
1805 Adding #line.
1806 Remove the duplicate `typedefs'.
1807 (RhsNumberType): Fix the declaration and various other typos.
1808 Use __ofile__.
1809 * data/bison.simple: Use __ofile__.
1810 * src/scan-skel.l: Handle __ofile__.
1811
62a3e4f0
AD
18122002-04-08 Akim Demaille <akim@epita.fr>
1813
1814 * src/gram.h (item_number_t): New, the type of item numbers in
1815 RITEM. Note that it must be able to code symbol numbers as
1816 positive number, and the negation of rule numbers as negative
1817 numbers.
1818 Adjust all dependencies (pretty many).
1819 * src/reduce.c (rule): Remove this `short *' pointer: use
1820 item_number_t.
1821 * src/system.h (MINSHORT, MAXSHORT): Remove.
1822 Include `limits.h'.
1823 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
1824 (shortcpy): Remove.
1825 (MAXTABLE): Move to...
1826 * src/output.c (MAXTABLE): here.
1827 (prepare_rules): Use output_int_table to output rhs.
1828 * data/bison.simple, data/bison.c++: Adjust.
1829 * tests/torture.at (Big triangle): Move the limit from 254 to
1830 500.
1831 * tests/regression.at (Web2c Actions): Ajust.
1832
1833 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
1834 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
1835 passes, but produces negative #line number, once fixed, GCC is
1836 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
1837 C), it passes.
1838 * src/state.h (state_h): Code input lines on ints, not shorts.
1839
bb88b0fc
AD
18402002-04-08 Akim Demaille <akim@epita.fr>
1841
1842 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
1843 and then the grammar.
1844
9a636f47
AD
18452002-04-08 Akim Demaille <akim@epita.fr>
1846
1847 * src/system.h: No longer using strndup.
1848
680e8701
AD
18492002-04-07 Akim Demaille <akim@epita.fr>
1850
1851 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
1852 * src/output.c (output_table_data): Return the longest number.
1853 (prepare_tokens): Output `token_number_max').
1854 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
1855 New.
1856 Use them to define yy_token_number_type/TokenNumberType.
1857 Use this type for yytranslate.
1858 * tests/torture.at (Big triangle): Push the limit from 124 to
1859 253.
1860 * tests/regression.at (Web2c Actions): Adjust.
1861
817e9f41
AD
18622002-04-07 Akim Demaille <akim@epita.fr>
1863
1864 * tests/torture.at (Big triangle): New.
1865 (GNU AWK Grammar, GNU Cim Grammar): Move to...
1866 * tests/existing.at: here.
1867
5123689b
AD
18682002-04-07 Akim Demaille <akim@epita.fr>
1869
1870 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
1871 nritems.
1872 Adjust dependencies.
1873
f3849179
AD
18742002-04-07 Akim Demaille <akim@epita.fr>
1875
1876 * src/reader.c: Normalize increments to prefix form.
1877
bd02036a
AD
18782002-04-07 Akim Demaille <akim@epita.fr>
1879
1880 * src/reader.c, symtab.c: Remove debugging code.
1881
db8837cb
AD
18822002-04-07 Akim Demaille <akim@epita.fr>
1883
1884 Rename all the `bucket's as `symbol_t'.
1885
1886 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
1887 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
1888 * src/symtab.c, src/symtab.h (bucket): Rename as...
1889 (symbol_t): this.
1890 (symbol_list_new, bucket_check_defined, bucket_make_alias)
1891 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
1892 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1893 (buckets_new, buckets_free, buckets_do): Rename as...
1894 (symbol_list_new, symbol_check_defined, symbol_make_alias)
1895 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
1896 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
1897 (symbols_new, symbols_free, symbols_do): these.
1898
72a23c97
AD
18992002-04-07 Akim Demaille <akim@epita.fr>
1900
1901 Use lib/hash for the symbol table.
1902
1903 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
1904 EOF.
1905 * src/lex.c (lex): Set the `number' member of new terminals.
1906 * src/reader.c (bucket_check_defined, bucket_make_alias)
1907 (bucket_check_alias_consistence, bucket_translation): New.
1908 (reader, grammar_free, readgram, token_translations_init)
1909 (packsymbols): Adjust.
1910 (reader): Number the predefined tokens.
1911 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
1912 for predefined tokens.
1913 * src/symtab.h (bucket): Remove all the hash table related
1914 members.
1915 * src/symtab.c (symtab): Replace by...
1916 (bucket_table): this.
1917 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1918 (buckets_new, buckets_do): New.
1919
280a38c3
AD
19202002-04-07 Akim Demaille <akim@epita.fr>
1921
1922 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
1923 (start_symbol, max_user_token_number, semantic_parser)
1924 (error_token_number): Initialize.
1925 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
1926 Initialize.
1927 (reader): Don't.
1928 (errtoken, eoftoken, undeftoken, axiom): Extern.
1929
03b31c0c
AD
19302002-04-07 Akim Demaille <akim@epita.fr>
1931
1932 * src/gram.h (rule_s): prec and precsym are now pointers
1933 to the bucket giving the priority/associativity.
1934 Member `associativity' removed: useless.
1935 * src/reduce.c, src/conflicts.c: Adjust.
1936
8b3df748
AD
19372002-04-07 Akim Demaille <akim@epita.fr>
1938
1939 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
1940 Properly escape the symbols' TAG when outputting them.
1941
e601aa1d
AD
19422002-04-07 Akim Demaille <akim@epita.fr>
1943
1944 * src/lalr.h (LA): Is a bitsetv, not bitset*.
1945
b0299a2e
AD
19462002-04-07 Akim Demaille <akim@epita.fr>
1947
1948 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
1949 (LArule): this, which is an array to rule_t*.
1950 * src/print.c, src/conflicts.c: Adjust.
1951
d7e1f00c
AD
19522002-04-07 Akim Demaille <akim@epita.fr>
1953
1954 * src/gram.h (rule_t): Rename `number' as `user_number'.
1955 `number' is a new member.
1956 Adjust dependencies.
1957 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
1958
cc9305dd
AD
19592002-04-07 Akim Demaille <akim@epita.fr>
1960
1961 As a result of the previous patch, it is no longer needed
1962 to reorder ritem itself.
1963
1964 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
1965
b0940840
AD
19662002-04-07 Akim Demaille <akim@epita.fr>
1967
1968 Be sure never to walk through RITEMS, but use only data related to
1969 the rules themselves. RITEMS should be banished.
1970
1971 * src/output.c (output_token_translations): Rename as...
1972 (prepare_tokens): this.
1973 In addition to `translate', prepare the muscles `tname' and
1974 `toknum', which were handled by...
1975 (output_rule_data): this.
1976 Remove, and move the remainder of its outputs into...
1977 (prepare_rules): this new routines, which also merges content from
1978 (output_gram): this.
1979 (prepare_rules): Be sure never to walk through RITEMS.
1980 (output_stos): Rename as...
1981 (prepare_stos): this.
1982 (output): Always invoke prepare_states, after all, just don't use it
1983 in the output if you don't need it.
1984
643a5994
AD
19852002-04-07 Akim Demaille <akim@epita.fr>
1986
1987 * src/LR0.c (new_state): Display `nstates' as the name of the
1988 newly created state.
1989 Adjust to initialize first_state and last_state if needed.
1990 Be sure to distinguish the initial from the final state.
1991 (new_states): Create the itemset of the initial state, and use
1992 new_state.
1993 * src/closure.c (closure): Now that the initial state has its
1994 items properly set, there is no need for a special case when
1995 creating `ruleset'.
1996
1997 As a result, now the rule 0, reducing to $axiom, is visible in the
1998 outputs. Adjust the test suite.
1999
2000 * tests/conflicts.at (Solved SR Conflicts)
2001 (Unresolved SR Conflicts): Adjust.
2002 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
2003 * tests/conflicts.at (S/R in initial): New.
2004
b4c4ccc2
AD
20052002-04-07 Akim Demaille <akim@epita.fr>
2006
2007 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
2008 the RHS of the rules.
2009 * src/output.c (output_gram): Likewise.
2010
bba97eb2
AD
20112002-04-07 Akim Demaille <akim@epita.fr>
2012
2013 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
2014 bucket.
2015 Adjust all dependencies.
2016 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
2017 `number' of the buckets too.
2018 * src/gram.h: Include `symtab.h'.
2019 (associativity): Move to...
2020 * src/symtab.h: here.
2021 No longer include `gram.h'.
2022
c3b407f4
AD
20232002-04-07 Akim Demaille <akim@epita.fr>
2024
2025 * src/gram.h, src/gram.c (rules_rhs_length): New.
2026 (ritem_longest_rhs): Use it.
2027 * src/gram.h (rule_t): `number' is a new member.
2028 * src/reader.c (packgram): Set it.
2029 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
2030 the end of `rules', and count them out of `nrules'.
2031 (reduce_output, dump_grammar): Adjust.
2032 * src/print.c (print_grammar): It is no longer needed to check for
2033 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
2034 * tests/reduce.at (Reduced Automaton): New test.
2035
11652ab3
AD
20362002-04-07 Akim Demaille <akim@epita.fr>
2037
2038 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
2039 lacking `+ 1' to nrules, Bison reported as useless a token if it
2040 was used solely to set the precedence of the last rule...
2041
26b23c1a
AD
20422002-04-07 Akim Demaille <akim@epita.fr>
2043
2044 * data/bison.c++, data/bison.simple: Don't output the current file
2045 name in #line, to avoid useless diffs between two identical
2046 outputs under different names.
2047
18bcecb0
AD
20482002-04-07 Akim Demaille <akim@epita.fr>
2049
2050 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
2051 Normalize loops to using `< nrules + 1', not `<= nrules'.
2052
fa770c86
AD
20532002-04-07 Akim Demaille <akim@epita.fr>
2054
2055 * TODO: Update.
2056
d9b739c3
AD
20572002-04-07 Akim Demaille <akim@epita.fr>
2058
2059 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
2060 bucket.value as bucket.number.
2061
99013900
AD
20622002-04-07 Akim Demaille <akim@epita.fr>
2063
2064 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
2065 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
2066 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
2067 RHS, instead of being an index in RITEMS.
2068
e966383b
PE
20692002-04-04 Paul Eggert <eggert@twinsun.com>
2070
2071 * doc/bison.texinfo: Update copyright date.
2072 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
2073 (Symbols): Warn about running Bison in one character set,
2074 but compiling and/or running in an incompatible one.
2075 Warn about character code 256, too.
2076
20772002-04-03 Paul Eggert <eggert@twinsun.com>
2078
2079 * src/bison.data (YYSTACK_ALLOC): Depend on whether
2080 YYERROR_VERBOSE is nonzero, not whether it is defined.
2081
2082 Merge changes from bison-1_29-branch.
c307773e 2083
8d6c48b9
PE
20842002-03-20 Paul Eggert <eggert@twinsun.com>
2085
2086 Merge fixes from Debian bison_1.34-1.diff.
2087
2088 * configure.in (AC_PREREQ): 2.53.
2089
e53c6322
AD
20902002-03-20 Akim Demaille <akim@epita.fr>
2091
2092 * src/conflicts.c (log_resolution): Argument `resolution' is const.
2093
9ffbeca7
PE
20942002-03-19 Paul Eggert <eggert@twinsun.com>
2095
21db0b2a
PE
2096 * src/bison.simple (YYCOPY): New macro.
2097 (YYSTACK_RELOCATE): Use it.
2098 Remove Type arg; no longer needed. All callers changed.
2099 (yymemcpy): Remove; no longer needed.
2100
9ffbeca7
PE
2101 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
2102 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
2103
642cb8f8
AD
21042002-03-19 Akim Demaille <akim@epita.fr>
2105
2106 Test and fix the #line outputs.
2107
2108 * tests/atlocal.at (GCC): New.
2109 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
2110 (Prologue synch line, ,%union synch line, Postprologue synch line)
2111 (Action synch line, Epilogue synch line): New tests.
2112 * src/reader.c (parse_union_decl): Define the muscle stype_line.
2113 * data/bison.simple, data/bison.c++: Use it.
2114
3c31a486
AD
21152002-03-19 Akim Demaille <akim@epita.fr>
2116
2117 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
2118 (Solved SR Conflicts, %expect not enough, %expect right)
2119 (%expect too much): Move to...
2120 * tests/conflicts.at: this new file.
2121
0d8bed56
AD
21222002-03-19 Akim Demaille <akim@epita.fr>
2123
2124 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
2125 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
2126 that we can move to enums for instance.
2127 * src/output.c (token_definitions_output): Output a list of
2128 `token-name, token-number' instead of the #define.
2129 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
2130
9208d17f
AD
21312002-03-14 Akim Demaille <akim@epita.fr>
2132
2133 Use Gettext 0.11.1.
2134
af27eacb
RA
21352002-03-09 Robert Anisko <robert@lrde.epita.fr>
2136
2137 * data/bison.c++: Make the user able to add members to the generated
2138 parser by subclassing.
2139
9101a310
RA
21402002-03-05 Robert Anisko <robert@lrde.epita.fr>
2141
2142 * src/reader.c (read_additionnal_code): `c' should be an integer, not
2143 a character.
2144 Reported by Nicolas Tisserand and Nicolas Burrus.
2145
fff9bf0b
RA
21462002-03-04 Robert Anisko <robert@lrde.epita.fr>
2147
2148 * src/reader.c: Warn about lacking semi-colons, do not complain.
2149
64dba31e
RA
21502002-03-04 Robert Anisko <robert@lrde.epita.fr>
2151
2152 * data/bison.c++: Remove a debug line.
2153
374f5a14
RA
21542002-03-04 Robert Anisko <robert@lrde.epita.fr>
2155
2156 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
2157 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
2158 provide a default implementation.
2159
bfcf1f3a
AD
21602002-03-04 Akim Demaille <akim@epita.fr>
2161
2162 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
2163 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
2164 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
2165 * tests/semantic.at (Parsing Guards): Similarly.
2166 * src/reader.at (readgram): Complain if the last rule is not ended
2167 with a semi-colon.
2168
65ccf9fc
AD
21692002-03-04 Akim Demaille <akim@epita.fr>
2170
2171 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
2172 * src/closure.c: here.
2173 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
2174 RTC.
2175 * src/warshall.h, src/warshall.c: Remove.
2176 * tests/sets.at (Broken Closure): Adjust.
2177
d0039cbc
AD
21782002-03-04 Akim Demaille <akim@epita.fr>
2179
2180 * src/output.c (output_skeleton): tempdir is const.
2181 bytes_read is unused.
2182
345cea78
AD
21832002-03-04 Akim Demaille <akim@epita.fr>
2184
2185 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
2186 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
2187 Update.
2188 From Michael Hayes.
2189
564801f7
AD
21902002-03-04 Akim Demaille <akim@epita.fr>
2191
2192 * src/closure.c (closure): `r' is unused.
2193
e5352bc7
AD
21942002-03-04 Akim Demaille <akim@epita.fr>
2195
2196 * tests/sets.at (Broken Closure): Add the ending `;'.
2197 * src/reader.at (readgram): Complain if a rule is not ended with a
2198 semi-colon.
2199
914feea9
AD
22002002-03-04 Akim Demaille <akim@epita.fr>
2201
2202 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
2203 (count_sr_conflicts): Use bitset_count.
2204 * src/reduce.c (inaccessable_symbols): Ditto.
2205 (bits_size): Remove.
2206 * src/warshall.h, src/warshall.c: Convert to bitsetv.
2207
f0250de6
AD
22082002-03-04 Akim Demaille <akim@epita.fr>
2209
2210 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
2211 * src/reduce.c: Remove the `bitset_zero's following the
2212 `bitset_create's, as now it is performed by the latter.
2213
ef017502
AD
22142002-03-04 Akim Demaille <akim@epita.fr>
2215
2216 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
2217 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
2218 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
2219 latest sources from Michael.
2220
76514394
AD
22212002-03-04 Akim Demaille <akim@epita.fr>
2222
2223 * src/output.c (output): Don't free the grammar.
2224 * src/reader.c (grammar_free): New.
2225 * src/main.c (main): Call it and don't free symtab here.
2226
55024580
AD
22272002-03-04 Akim Demaille <akim@epita.fr>
2228
2229 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
2230 before returning.
2231 Reported by Benoit Perrot.
2232
f9abaa2c
AD
22332002-03-04 Akim Demaille <akim@epita.fr>
2234
2235 Use bitset operations when possible, not loops over bits.
2236
2237 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
2238 bitset_or.
2239 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
2240 * src/reduce.c (useless_nonterminals): Formatting changes.
2241 * src/warshall.c (TC): Use bitset_or.
2242
0e721e75
AD
22432002-03-04 Akim Demaille <akim@epita.fr>
2244
2245 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
2246 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
2247 Ditto.
2248
0fb1ffb1
AD
22492002-03-04 Akim Demaille <akim@epita.fr>
2250
2251 * src/lalr.c (F): Now a bitset*.
2252 Adjust all dependencies.
2253
b86796bf
AD
22542002-03-04 Akim Demaille <akim@epita.fr>
2255
2256 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
2257 Adjust all dependencies.
2258
602bbf31
AD
22592002-03-04 Akim Demaille <akim@epita.fr>
2260
2261 * src/L0.c, src/LR0.h (nstates): Be size_t.
2262 Adjust comparisons (signed vs unsigned).
2263 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
2264 bitset*.
2265 Adjust all dependencies.
2266
d8a0245c
AD
22672002-03-04 Akim Demaille <akim@epita.fr>
2268
2269 * src/closure.c (firsts): Now, also a bitset.
2270 Adjust all dependencies.
2271 (varsetsize): Remove, now unused.
2272 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
2273
34ba9743
AD
22742002-03-04 Akim Demaille <akim@epita.fr>
2275
2276 * src/print.c: Convert to use bitset.h, not hand coded iterations
2277 over ints.
2278
ed86e78c
AD
22792002-03-04 Akim Demaille <akim@epita.fr>
2280
2281 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
2282
dfdb1797
AD
22832002-03-04 Akim Demaille <akim@epita.fr>
2284
2285 * src/closure.c (ruleset): Be a bitset.
2286 (rulesetsize): Remove.
2287
7086e707
AD
22882002-03-04 Akim Demaille <akim@epita.fr>
2289
2290 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
2291 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
2292 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
2293 * src/closure.c (fderives): Be an array of bitsets.
2294
98254360
RA
22952002-02-28 Robert Anisko <robert@lrde.epita.fr>
2296
2297 * data/bison.c++: Merge the two generated headers. Insert a copyright
2298 notice in each output file.
2299
a75c057f
AD
23002002-02-28 Akim Demaille <akim@epita.fr>
2301
2302 * data/bison.c++: Copy the prologue of bison.simple to fetch
2303 useful M4 definitions, such as b4_header_guard.
2304
06b00abc
AD
23052002-02-25 Akim Demaille <akim@epita.fr>
2306
2307 * src/getargs.c (version): Give the name of the authors, and use a
a75c057f
AD
2308 translator friendly scheme for the bgr
2309 copyright notice.
06b00abc 2310
70e7d534
AD
23112002-02-25 Akim Demaille <akim@epita.fr>
2312
2313 * src/output.c (header_output): Remove, now handled completely via
2314 M4.
2315
abe017f6
AD
23162002-02-25 Akim Demaille <akim@epita.fr>
2317
2318 * m4/m4.m4: New, from CVS Autoconf.
2319 * configure.in: Invoke it.
2320 * src/output.c (output_skeleton): Use its result instead of the
2321 hard coded name.
2322
381fb12e
AD
23232002-02-25 Akim Demaille <akim@epita.fr>
2324
2325 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
2326 Fileutils 4.1.5.
2327 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
2328 * src/output.c (output_skeleton): Use mkstemp to create a real
2329 temporary file.
2330 Move the filling of `skeleton' and its muscle to...
2331 (prepare): here.
2332 (output): Move the definition of the prologue muscle to...
2333 (prepare): here.
2334 * src/system.h (DEFAULT_TMPDIR): New.
2335
6f38107f
PE
23362002-02-14 Paul Eggert <eggert@twinsun.com>
2337
2338 Remove the support for C++ namespace cleanliness; it was
2339 causing more problems than it was curing, since it didn't work
2340 properly on some nonstandard C++ compilers. This can wait
2341 for a proper C++ parser.
2342
2343 * NEWS: Document this.
2344 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
2345 of C++, as it's treated like C now.
2346 * src/bison.simple (YYSTD): Remove.
2347 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
2348 Treat C++ just like Standard C instead of trying to support
2349 namespace cleanliness.
2350
80cce3da
AD
23512002-02-14 Akim Demaille <akim@epita.fr>
2352
2353 * tests/regression.at (else): Adjust to Andreas' change.
2354
842e8679
AD
23552002-02-14 Akim Demaille <akim@epita.fr>
2356
2357 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
2358
4bda3f10
AD
23592002-02-13 Andreas Schwab <schwab@suse.de>
2360
2361 * src/output.c (output_rule_data): Don't output NULL, it might
2362 not be defined yet.
2363
4162fa07 23642002-02-11 Robert Anisko <robert@lrde.epita.fr>
b418ecd8 2365
4162fa07
RA
2366 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
2367 (Copyright notice): Update.
b418ecd8 2368
bd16a5dc
AD
23692002-02-11 Akim Demaille <akim@epita.fr>
2370
2371 * tests/regression.at (%nonassoc and eof): Don't include
2372 nonportable headers.
2373
8d69a1a3
RA
23742002-02-08 Robert Anisko <robert@lrde.epita.fr>
2375
2376 * data/bison.c++: Correct error recovery. Make the user able to
2377 initialize the starting location.
2378
9b2d0677
AD
23792002-02-07 Akim Demaille <akim@epita.fr>
2380
2381 * tests/input.at: New.
2382
69e2658b
RA
23832002-02-07 Robert Anisko <robert@lrde.epita.fr>
2384
2385 * data/bison.c++: Replace some direct m4 expansions by constants. Be
9b2d0677 2386 more consistent when naming methods and variables. Put preprocessor
69e2658b
RA
2387 directives around tables only needed for debugging.
2388
4aacc3a7
RA
23892002-02-07 Robert Anisko <robert@lrde.epita.fr>
2390
2391 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
2392 C++ parsers.
2393 (yy::b4_name::parse): Use print_.
2394
762a801e
RA
23952002-02-07 Robert Anisko <robert@lrde.epita.fr>
2396
2397 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
2398
4bb2bc3f
RA
23992002-02-07 Robert Anisko <robert@lrde.epita.fr>
2400
2401 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
2402 C++ parsers.
2403 (yy::b4_name::parse): Build verbose error messages, and use error_.
2404
6b45a3ca
RA
24052002-02-06 Robert Anisko <robert@lrde.epita.fr>
2406
2407 * data/bison.c++: Fix m4 quoting in comments.
2408
50997c6e
RA
24092002-02-06 Robert Anisko <robert@lrde.epita.fr>
2410
2411 * data/bison.c++: Adjust the parser code. Fix some muscles that were
2412 not expanded by m4.
2413
3f3eed27
AD
24142002-02-05 Akim Demaille <akim@epita.fr>
2415
2416 * data/bison.c++: Adjust to the M4 back end.
2417 More is certainly needed.
2418
be2a1a68
AD
24192002-02-05 Akim Demaille <akim@epita.fr>
2420
2421 Give a try to M4 as a back end.
2422
2423 * lib/readpipe.c: New, from wdiff.
2424 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
2425 BISON_HAIRY.
2426 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
2427 specific values. Now it is m4 that performs the lookup.
2428 * src/parse-skel.y: Remove.
2429 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
2430 * src/output.c (actions_output, guards_output)
2431 (token_definitions_output): No longer keeps track of the output
2432 line number, hence remove the second argument.
2433 (guards_output): Check against the guard member of a rule, not the
2434 action member.
2435 Adjust callers.
2436 (output_skeleton): Don't look for the skeleton location, let m4 do
2437 that.
2438 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
2439 file will be used.
2440 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
2441 (prepare): Given that for the time being changesyntax is not
2442 usable in M4, rename the muscles using `-' to `_'.
2443 Define `defines_flag', `output_parser_name' and `output_header_name'.
2444 * src/output.h (actions_output, guards_output)
2445 (token_definitions_output): Adjust prototypes.
2446 * src/scan-skel.l: Instead of scanning the skeletons, it now
2447 processes the output of m4: `__oline__' and `#output'.
2448 * data/bison.simple: Adjust to be used by M4(sugar).
2449 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
2450 to date.
2451 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
2452 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
2453 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
2454 shamelessly stolen from CVS Autoconf.
2455
beda758b
AD
24562002-02-05 Akim Demaille <akim@epita.fr>
2457
2458 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
2459 * configure.in: Check for the declarations of free and malloc.
2460 * src/muscle_tab.c: Adjust.
2461
5ece6d43
AD
24622002-02-05 Akim Demaille <akim@epita.fr>
2463
2464 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
2465 which have no values.
2466
5bb18f9a
AD
24672002-02-05 Akim Demaille <akim@epita.fr>
2468
2469 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
2470 * data/: here.
2471
894dd62e
PE
24722002-01-29 Paul Eggert <eggert@twinsun.com>
2473
2474 * src/bison.simple (YYSIZE_T): Do not define merely because
2475 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
2476 On some platforms, <alloca.h> does not declare YYSTD (size_t).
2477
82841af7
AD
24782002-01-27 Akim Demaille <akim@epita.fr>
2479
2480 Fix `%nonassoc and eof'.
2481
2482 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
2483 which were not properly copied! Replace
2484 memcpy (res->errs, src->errs, src->nerrs);
2485 with
2486 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
2487 !!!
2488 * tests/regression.at (%nonassoc and eof): Adjust to newest
2489 Autotest: `.' is not in the PATH.
2490
318b76e9
AD
24912002-01-27 Akim Demaille <akim@epita.fr>
2492
2493 * tests/sets.at (AT_EXTRACT_SETS): New.
2494 (Nullable): Use it.
2495 (Firsts): New.
2496
30d2f3d5
AD
24972002-01-26 Akim Demaille <akim@epita.fr>
2498
2499 * tests/actions.at, tests/calc.at, tests/headers.at,
2500 * tests/torture.at: Adjust to the newest Autotest which no longer
2501 forces `.' in the PATH.
2502
30f8c395
AD
25032002-01-25 Akim Demaille <akim@epita.fr>
2504
2505 * tests/regression.at (%nonassoc and eof): New.
2506 Suggested by Robert Anisko.
2507
29ae55f1
AD
25082002-01-24 Akim Demaille <akim@epita.fr>
2509
2510 Bison dumps core when trying to complain about broken input files.
2511 Reported by Cris van Pelt.
2512
2513 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
2514 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
2515 into...
2516 (Invalid inputs): Strengthen: exercise parse_percent_token.
2517
2b548aa6
RA
25182002-01-24 Robert Anisko <robert.anisko@epita.fr>
2519
2520 * src/Makefile.am: Add bison.c++.
2521 * src/bison.c++: New skeleton.
2522
bb0146c2
AD
25232002-01-21 Paolo Bonzini <bonzini@gnu.org>
2524
2525 * po/it.po: New.
2526
bec30531
AD
25272002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
2528
2529 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
2530
fc6edc45
MA
25312002-01-20 Marc Autret <marc@gnu.org>
2532
2533 * src/files.c (compute_output_file_names): Fix
2534
5e5d5415
MA
25352002-01-20 Marc Autret <marc@gnu.org>
2536
2537 * tests/output.at: New test.
2538 * src/files.c (compute_base_names): Don't map extensions when
2539 the YACC flag is set, use defaults.
2540 Reported by Evgeny Stambulchik.
2541
44ea3fbd
MA
25422002-01-20 Marc Autret <marc@gnu.org>
2543
bb0146c2 2544 * src/system.h: Need to define __attribute__ away for non-GCC
44ea3fbd
MA
2545 compilers as well (i.e. the vendor C compiler).
2546 Suggested by Albert Chin-A-Young.
2547
338963d1
TVH
25482002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
2549
2550 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
2551 canonical definition.
2552 * src/system.h: Use the canonical definition for PARAMS (avoids
2553 a conflict with the macro from lib/hash.h).
2554
c57b2479
AD
25552002-01-11 Akim Demaille <akim@epita.fr>
2556
2557 * configure.in: Use AC_FUNC_STRNLEN.
d9e9746c 2558 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
c57b2479 2559
b85810ae
AD
25602002-01-09 Akim Demaille <akim@epita.fr>
2561
2562 * src/files.c, src/files.h (output_infix): New.
2563 (tab_extension): Remove.
2564 (compute_base_names): Compute the former, drop the latter.
2565 * src/output.c (prepare): Insert the muscles `output-infix', and
2566 `output-suffix'.
2567 * src/parse-skel.y (string, string.1): New.
2568 (section.header): Use it.
2569 (section.yacc): Remove.
2570 (prefix): Remove too.
2571 * src/scan-skel.l: Adjust.
2572 * src/bison.simple, src/bison.hairy: Adjust.
2573
cae60122
AD
25742002-01-09 Akim Demaille <akim@epita.fr>
2575
2576 * configure.in (WERROR_CFLAGS): Compute it.
2577 * src/Makefile.am (CFLAGS): Pass it.
2578 * tests/atlocal.in (CFLAGS): Idem.
2579 * src/files.c: Fix a few warnings.
2580 (get_extension_index): Remove, unused.
2581
ae404801
AD
25822002-01-08 Akim Demaille <akim@epita.fr>
2583
2584 * src/getargs.c (AS_FILE_NAME): New.
2585 (getargs): Use it to convert DOSish file names.
2586 * src/files.c (base_name): Rename as full_base_name to avoid
2587 clashes with `base_name ()'.
2588 (filename_split): New.
2589 (compute_base_names): N-th rewrite, using filename_split.
2590
22312b71
AD
25912002-01-08 Akim Demaille <akim@epita.fr>
2592
2593 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
2594 New, stolen from the Fileutils 4.1.
2595 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
2596 * configure.in: Check for the presence of memrchr, and of its
2597 prototype.
2598
a67cef01
TVH
25992002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
2600
2601 * lib/hash.h (__P): Added definition for this macro.
2602 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
2603 BUILT_SOURCES, to ensure they are generated first.
2604 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
2605 %error-verbose to allow bootstrapping with bison 1.30x.
2606
2b25d624
AD
26072002-01-06 Akim Demaille <akim@epita.fr>
2608
2609 * src/reader.c (parse_braces): Don't fetch the next char, the
2610 convention is to fetch on entry.
2611 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
2612 'switch' without a following semicolon.
2613 * tests/regression.at (braces parsing): New.
2614
3460813b
AD
26152002-01-06 Akim Demaille <akim@epita.fr>
2616
2617 Bison is dead wrong in its RR conflict reports.
2618
2619 * tests/torture.at (GNU Cim Grammar): New.
2620 * src/conflicts.c (count_rr_conflicts): Fix.
2621
73784c64
AD
26222002-01-06 Akim Demaille <akim@epita.fr>
2623
2624 Creating package.m4 from configure.ac causes too many problems.
2625
2626 * tests/Makefile.am (package.m4): Create it by hand,
2627 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
2628
25d81090
AD
26292002-01-06 Akim Demaille <akim@epita.fr>
2630
2631 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
2632 skeleton.h.
2633
a9b8959e
PE
26342002-01-04 Paul Eggert <eggert@twinsun.com>
2635
2636 * doc/bison.texinfo (Debugging):
2637 Remove YYSTDERR; it's no longer defined or used.
2638 Also, s/cstdio.h/cstdio/.
2639
25d81090
AD
26402002-01-03 Akim Demaille <akim@epita.fr>
2641
2642 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
2643
1109455c
AD
26442002-01-03 Akim Demaille <akim@epita.fr>
2645
2646 * src/parse-skel.y (process_skeleton): Don't bind the parser's
2647 tracing code to --trace, wait for a better --trace option, with
2648 args.
2649
7ea5e977
AD
26502002-01-03 Akim Demaille <akim@epita.fr>
2651
2652 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
2653 The ISO C++ standard is extremely clear about it: stderr is
2654 considered a macro, not a regular symbol (see table 94 `Header
2655 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
2656 Therefore std:: does not apply to it. It still does with fprintf.
2657 Also, s/cstdio.h/cstdio/.
2658
fab5b110
AD
26592002-01-03 Akim Demaille <akim@epita.fr>
2660
2661 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
2662 for non system headers.
2663
aed7fd9b
AD
26642002-01-02 Akim Demaille <akim@epita.fr>
2665
2666 Equip the skeleton chain with location tracking, runtime trace,
2667 pure parser and scanner.
2668
2669 * src/parse-skel.y: Request a pure parser, locations, and prefix
2670 renaming.
2671 (%union): Having several members with the same type does not help
2672 type mismatches, simplify.
2673 (YYPRINT, yyprint): New.
2674 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
2675 (skel_error): this.
2676 Handle locations.
2677 * src/scan-skel.l: Adjust to these changes.
2678 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
2679 (LOCATION_PRINT, skel_control_t): New.
2680
24fad99e
AD
26812001-12-30 Akim Demaille <akim@epita.fr>
2682
2683 * src/parse-skel.y: Get rid of the shift/reduce conflict:
2684 replace `gb' with BLANKS.
2685 * src/scan-skel.l: Adjust.
2686
a4b36db4
AD
26872001-12-30 Akim Demaille <akim@epita.fr>
2688
2689 * src/system.h: We don't need nor want bcopy.
2690 Throw away MS-DOS crap: we don't need getpid.
2691 * configure.in: We don't need strndup. It was even causing
2692 problems: because Flex includes the headers *before* us,
2693 _GNU_SOURCE is not defined by config.h, and therefore strndup was
2694 not visible.
2695 * lib/xstrndup.c: New.
2696 * src/scan-skel.l: Use it.
2697 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
2698 * src/parse-skel.y: Use %directives instead of #defines.
2699
1239777d
AD
27002001-12-30 Akim Demaille <akim@epita.fr>
2701
2702 * src/skeleton.h: New.
2703 * src/output.c (output_parser, output_master_parser): Remove, dead
2704 code.
2705 * src/output.h (get_lines_number, actions_output, guards_output)
2706 (token_definitions_output): Prototype them.
2707 * src/parse-skel.y: Add the license notice.
2708 Include output.h and skeleton.h.
2709 (process_skeleton): Returns void, and takes a single parameter.
2710 * src/scan-skel.l: Add the license notice.
2711 Include skeleton.h.
2712 Don't use %option yylineno: it seems that then Flex imagines
2713 REJECT has been used, and therefore it won't reallocate its
2714 buffers (which makes no other sense to me than a bug). It results
2715 in warnings for `unused: yy_flex_realloc'.
2716
9b3add5b
RA
27172001-12-30 Robert Anisko <robert.anisko@epita.fr>
2718
2719 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
2720 (MUSCLE_INSERT_PREFIX): ...to there.
2721 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
2722 (MUSCLE_INSERT_PREFIX): Move from here...
2723
2724 * src/bison.hairy: Add a section directive. Put braces around muscle
2725 names. This parser skeleton is still broken, but Bison should not
2726 choke on a bad muscle 'syntax'.
2727 * src/bison.simple: Add a section directive. Put braces around muscle
2728 names.
2729
2730 * src/files.h (strsuffix, stringappend): Add declarations.
2731 (tab_extension): Add declaration.
2732 (short_base_name): Add declaration.
2733
2734 * src/files.c (strsuffix, stringappend): No longer static. These
2735 functions are used in the skeleton parser.
2736 (tab_extension): New.
2737 (compute_base_names): Use the computations done in this function
fab5b110 2738 to guess if the generated parsers should have '.tab' in their
9b3add5b
RA
2739 names.
2740 (short_base_name): No longer static.
2741
2742 * src/output.c (output_skeleton): New.
2743 (output): Disable call to output_master_parser, and give a try to
2744 a new skeleton handling system.
2745 (guards_output, actions_output): No longer static.
2746 (token_definitions_output, get_lines_number): No longer static.
2747
2748 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
2749
fab5b110 2750 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
9b3add5b
RA
2751 parse-skel.y.
2752
2753 * src/parse-skel.y: New file.
2754 * src/scan-skel.l: New file.
2755
b5b61c61
AD
27562001-12-29 Akim Demaille <akim@epita.fr>
2757
2758 %name-prefix is broken.
2759
2760 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
2761 Adjust all dependencies.
2762 * tests/headers.at (export YYLTYPE): Strengthen this test: use
2763 %name-prefix.
2764
2765 Renaming yylval but not yylloc is not consistent. Now we do.
2766
2767 * src/bison.simple: Prefix yylloc if used.
2768 * doc/bison.texinfo (Decl Summary): Document that.
2769
8c9a50be
AD
27702001-12-29 Akim Demaille <akim@epita.fr>
2771
2772 * doc/bison.texinfo: Promote `%long-directive' over
2773 `%long_directive'.
2774 Remove all references to fixed-output-files, yacc is enough.
2775
d99361e6
AD
27762001-12-29 Akim Demaille <akim@epita.fr>
2777
2778 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
2779 user prologue. These are defaults.
2780 * tests/actions.at (Mid-rule actions): Make sure the user can
2781 define YYDEBUG and YYERROR_VERBOSE.
2782
b9cecb91
AD
27832001-12-29 Akim Demaille <akim@epita.fr>
2784
2785 * src/output.c (header_output): Don't forget to export YYLTYPE and
2786 yylloc.
2787 * tests/headers.at (export YYLTYPE): New, make sure it does.
2788 * tests/regression.at (%union and --defines, Invalid CPP headers):
2789 Move to...
2790 * tests/headers.at: here.
2791
aea13e97
AD
27922001-12-29 Akim Demaille <akim@epita.fr>
2793
2794 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
2795
931394cb
AD
27962001-12-29 Akim Demaille <akim@epita.fr>
2797
2798 * tests/actions.at (Mid-rule actions): Output on a single line
2799 instead of several.
2800
704a47c4
AD
28012001-12-29 Akim Demaille <akim@epita.fr>
2802
2803 * doc/bison.texinfo: Formatting changes.
2804
091e20bb
AD
28052001-12-29 Akim Demaille <akim@epita.fr>
2806
2807 Don't store the token defs in a muscle, just be ready to output it
2808 on command. Now possible via `symbols'. Fixes a memory leak.
2809
2810 * src/output.c (token_definitions_output): New.
2811 (output_parser, header_output): Use it.
2812 * src/reader.c (symbols_save): Remove.
2813
cce71710
AD
28142001-12-29 Akim Demaille <akim@epita.fr>
2815
2816 * src/bison.simple: Do not provide a default for YYSTYPE and
2817 YYLTYPE before the user's prologue. Otherwise it's hardly... a
2818 default.
2819
82c035a8
AD
28202001-12-29 Akim Demaille <akim@epita.fr>
2821
2822 Mid-rule actions are simply... ignored!
2823
2824 * src/reader.c (readgram): Be sure to attach mid-rule actions to
2825 the empty-rule associated to the dummy symbol, not to the host
2826 rule.
2827 * tests/actions.at (Mid-rule actions): New.
2828
8419d367
AD
28292001-12-29 Akim Demaille <akim@epita.fr>
2830
2831 Memory leak.
2832
2833 * src/reader.c (reader): Free grammar.
2834
375d5806
AD
28352001-12-29 Akim Demaille <akim@epita.fr>
2836
2837 Memory leak.
2838
2839 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
2840 since it allocates it for each state, although only one is needed.
2841 (allocate_storage): Do it here.
2842
f51cb8ff
AD
28432001-12-29 Akim Demaille <akim@epita.fr>
2844
2845 * src/options.h, src/options.c (create_long_option_table): Rename
2846 as...
2847 (long_option_table_new): this, with a clearer prototype.
2848 (percent_table): Remove, unused,
2849 * src/getargs.c (getargs): Adjust.
2850
29e88316
AD
28512001-12-29 Akim Demaille <akim@epita.fr>
2852
2853 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
2854 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
2855 as states.
2856
b9f71f19
AD
28572001-12-29 Akim Demaille <akim@epita.fr>
2858
2859 * src/lalr.c (build_relations): Rename `states' as `states1'.
2860 Sorry, I don't understand exactly what it is, no better name...
2861
1a2b5d37
AD
28622001-12-29 Akim Demaille <akim@epita.fr>
2863
2864 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
2865 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
2866 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
2867 as rules.
2868
1cca533e
AD
28692001-12-29 Akim Demaille <akim@epita.fr>
2870
2871 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
2872 ago.
2873
c03ae966
AD
28742001-12-29 Akim Demaille <akim@epita.fr>
2875
2876 * src/reader.c, src/reader.h (user_toknums): Remove.
2877 Adjust all users to use symbols[i]->user_token_number.
2878
5a670b1e
AD
28792001-12-29 Akim Demaille <akim@epita.fr>
2880
2881 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
2882 Adjust all users to use symbols[i]->prec or ->assoc.
2883
ad949da9
AD
28842001-12-29 Akim Demaille <akim@epita.fr>
2885
2886 * src/reader.c, src/reader.h (tags): Remove.
2887 Adjust all users to use symbols[i]->tag.
2888
0e78e603
AD
28892001-12-29 Akim Demaille <akim@epita.fr>
2890
2891 * src/gram.h, src/gram.c (symbols): New, similar to state_table
2892 and rule_table.
2893 * src/reader.c (packsymbols): Fill this table.
2894 Drop sprec.
2895 * src/conflicts.c (resolve_sr_conflict): Adjust.
2896 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
2897 single table.
2898 Use symbols[i]->tag instead of tags[i].
2899
213e640e
AD
29002001-12-29 Akim Demaille <akim@epita.fr>
2901
2902 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
2903 In addition, put a comment in there, to replace...
2904 * tests/regression.at (%union and C comments): Remove.
2905
e7b8bef1
AD
29062001-12-29 Akim Demaille <akim@epita.fr>
2907
2908 * tests/regression.at (Web2c Actions): Blindly move the actual
2909 output as expected output. The contents *seem* right to me, but I
2910 can't pretend reading perfectly parser tables... Nonetheless, all
2911 the other tests pass correctly, the table look OK, even though the
2912 presence of `$axiom' is to be noted: AFAICS it is useless (but
2913 harmless).
2914
b68e7744
AD
29152001-12-29 Akim Demaille <akim@epita.fr>
2916
2917 * src/reader.c (readgram): Don't add the rule 0 if there were no
2918 rules read. In other words, add it _after_ having performed
2919 grammar sanity checks.
2920 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
2921
78d5bae9
AD
29222001-12-29 Akim Demaille <akim@epita.fr>
2923
2924 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
2925 visible, and some states have now a different number.
2926
ff442794
AD
29272001-12-29 Akim Demaille <akim@epita.fr>
2928
2929 * src/reader.c (readgram): Bind the initial rule's lineno to that
2930 of the first rule.
2931 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
2932 (Solved SR Conflicts): Adjust rule 0's line number.
2933
610ab194
AD
29342001-12-29 Akim Demaille <akim@epita.fr>
2935
2936 Fix the `GAWK Grammar' failure.
2937
2938 * src/LR0.c (final_state): Initialize to -1 so that we do compute
2939 the reductions of the first state which was mistakenly confused
2940 with the final state because precisely final_state was initialized
2941 to 0.
2942 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
2943 now noticed by Bison.
2944 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
2945 have a reduction on $default.
2946
29d29c8f
AD
29472001-12-29 Akim Demaille <akim@epita.fr>
2948
2949 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
2950 rule line numbers.
2951 * src/closure.c (print_closure): Likewise.
2952 * src/derives.c (print_derives): Likewise.
2953 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
2954 now.
2955
7c6b64d0
AD
29562001-12-29 Akim Demaille <akim@epita.fr>
2957
2958 * src/lalr.c (lookaheads_print): New.
2959 (lalr): Call it when --trace-flag.
2960 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
2961 are dumped.
2962
3d4daee3
AD
29632001-12-29 Akim Demaille <akim@epita.fr>
2964
2965 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
2966 when walking through ritem, even via rule->rhs.
2967 * src/reduce.c (dump_grammar, useful_production, reduce_output)
2968 (useful_production, useless_nonterminals): Likewise.
2969 (reduce_grammar_tables): Likewise, plus update nritems.
2970 * src/nullable.c (set_nullable): Likewise.
2971 * src/lalr.c (build_relations): Likewise.
2972 * tests/sets.at (Nullable): Adjust.
2973 Fortunately, now, the $axiom is no longer nullable.
2974
9e7f6bbd
AD
29752001-12-29 Akim Demaille <akim@epita.fr>
2976
2977 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
2978 the 0-sentinel.
2979 * src/gram.c (ritem_longest_rhs): Likewise.
2980 * src/reduce.c (nonterminals_reduce): Likewise.
2981 * src/print_graph.c (print_graph): Likewise.
2982 * src/output.c (output_rule_data): Likewise.
2983 * src/nullable.c (set_nullable): Likewise.
2984
255ef638
AD
29852001-12-29 Akim Demaille <akim@epita.fr>
2986
2987 * src/output.c: Comment changes.
2988
0d8a7363
AD
29892001-12-27 Paul Eggert <eggert@twinsun.com>
2990
2991 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
2992 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
2993 Sparc, as they were causing more porting problems than the
2994 (minor) performance improvement was worth.
2995
2996 Also, catch up with 1.31's YYSTD.
2997
3db472b9
AD
29982001-12-27 Akim Demaille <akim@epita.fr>
2999
3000 * src/output.c (output_gram): Rely on nritems, not the
3001 0-sentinel. See below.
3002 Use -1 as separator, not 0.
3003 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
3004 Rely on -1 as separator in yyrhs, instead of 0.
3005 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
3006 twice `Now at end of input', therefore there are two lines less to
3007 expect.
3008
b365aa05
AD
30092001-12-27 Akim Demaille <akim@epita.fr>
3010
3011 * tests/regression.at (Unresolved SR Conflicts):
3012 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
3013 below.
3014
30171f79
AD
30152001-12-27 Akim Demaille <akim@epita.fr>
3016
3017 * src/LR0.c (new_state): Recognize the final state by the fact it
3018 is reached by eoftoken.
3019 (insert_start_shifting_state, insert_eof_shifting_state)
3020 (insert_accepting_state, augment_automaton): Remove, since now
3021 these states are automatically computed from the initial state.
3022 (generate_states): Adjust.
3023 * src/print.c: When reporting a rule number to the user, substract
3024 1, so that the axiom rule is rule 0, and the first user rule is 1.
3025 * src/reduce.c: Likewise.
3026 * src/print_graph.c (print_core): For the time being, just as for
3027 the report, depend upon --trace-flags to dump the full set of
3028 items.
3029 * src/reader.c (readgram): Once the grammar read, insert the rule
3030 0: `$axiom: START-SYMBOL $'.
3031 * tests/set.at: Adjust: rule 0 is now displayed, and since the
3032 number of the states has changed (the final state is no longer
3033 necessarily the last), catch up.
3034
75142d45
AD
30352001-12-27 Akim Demaille <akim@epita.fr>
3036
3037 Try to make the use of the eoftoken valid. Given that its value
3038 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
3039 is used instead of > 0 where appropriate, (ii), depend upon nritems
3040 instead of the 0-sentinel.
3041
3042 * src/gram.h, src/gram.c (nritems): New.
3043 Expected to be duplication of nitems, but for the time being...
3044 * src/reader.c (packgram): Assert nritems and nitems are equal.
3045 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
3046 * src/closure.c (print_closure, print_fderives): Likewise.
3047 * src/gram.c (ritem_print): Likewise.
3048 * src/print.c (print_core, print_grammar): Likewise.
3049 * src/print_graph.c: Likewise.
3050
b7c49edf
AD
30512001-12-27 Akim Demaille <akim@epita.fr>
3052
3053 * src/main.c (main): If there are complains after grammar
3054 reductions, then output the report anyway if requested, then die.
3055 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
3056 * src/reader.c (eoftoken): New.
3057 (parse_token_decl): If the token being defined has value `0', it
3058 is the eoftoken.
3059 (packsymbols): No longer hack `tags' to insert `$' by hand.
3060 Be sure to preserve the value of the eoftoken.
3061 (reader): Make sure eoftoken is defined.
3062 Initialize nsyms to 0: now eoftoken is created just like the others.
3063 * src/print.c (print_grammar): Don't special case the eof token.
3064 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
3065 lie anyway, albeit pleasant.
3066 * tests/calc.at: Exercise error messages with eoftoken.
3067 Change the grammar so that empty input is invalid.
3068 Adjust expectations.
3069 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
3070
ec2da99f
AD
30712001-12-27 Akim Demaille <akim@epita.fr>
3072
3073 * configure.in: Check the protos of strchr ans strspn.
3074 Replace strchr if needed.
3075 * src/system.h: Provide the protos of strchr, strspn and memchr if
3076 missing.
3077 * lib/strchr.c: New.
3078 * src/reader.c (symbols_save): Use strchr.
3079
8adfa272
AD
30802001-12-27 Akim Demaille <akim@epita.fr>
3081
3082 * src/print.c, src/print_graph.c (escape): New.
3083 Use it to quote the TAGS outputs.
3084 * src/print_graph.c (print_state): Now errors are in red, and
3085 reductions in green.
3086 Prefer high to wide: output the state number on a line of its own.
3087
80dac38c
AD
30882001-12-27 Akim Demaille <akim@epita.fr>
3089
3090 * src/state.h, src/state.c (reductions_new): New.
3091 * src/LR0.c (set_state_table): Let all the states have a
3092 `reductions', even if reduced to 0.
3093 (save_reductions): Adjust.
3094 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
3095 * src/print.c (print_reductions, print_actions): Adjust.
3096 * src/output.c (action_row): Adjust.
3097
2cec70b9
AD
30982001-12-27 Akim Demaille <akim@epita.fr>
3099
3100 * src/state.h, src/state.c (errs_new, errs_dup): New.
3101 * src/LR0.c (set_state_table): Let all the states have an errs,
3102 even if reduced to 0.
3103 * src/print.c (print_errs, print_reductions): Adjust.
3104 * src/output.c (output_actions, action_row): Adjust.
3105 * src/conflicts.c (resolve_sr_conflict): Adjust.
3106
13ca549a
AD
31072001-12-27 Akim Demaille <akim@epita.fr>
3108
3109 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
3110
5092aba5
AD
31112001-12-27 Akim Demaille <akim@epita.fr>
3112
3113 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
3114 * src/print.c: here.
3115 (lookaheadset, shiftset): New, used as additional storage by
3116 print_reductions.
3117 (print_results): Adjust.
3118 (print_shifts, print_gotos, print_errs): New, extracted from...
3119 (print_actions): here.
3120 * src/print_graph.c (print_actions): Remove dead code.
3121
11e2beca
AD
31222001-12-27 Akim Demaille <akim@epita.fr>
3123
3124 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
3125 `$n' and `@n'.
3126
dac3c910
AD
31272001-12-27 Akim Demaille <akim@epita.fr>
3128
3129 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
3130 (build_relations): Adjust.
3131
d0b0fefa
AD
31322001-12-27 Akim Demaille <akim@epita.fr>
3133
3134 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
3135 duplication.
3136
adc8c848
AD
31372001-12-27 Akim Demaille <akim@epita.fr>
3138
3139 * src/reader.c (packgram): Catch nitems overflows.
3140
14d293ac
AD
31412001-12-27 Akim Demaille <akim@epita.fr>
3142
3143 * src/files.c, src/files.h (guard_obstack): Remove.
3144 * src/output.c (output): Adjust.
3145 * src/reader.c (parse_braces): New, factoring...
3146 (copy_action, copy_guard): these two which are renamed as...
3147 (parse_action, parse_guard): these.
3148 As a voluntary consequence, using braces around guards is now
3149 mandatory.
3150
f499b062
AD
31512001-12-27 Akim Demaille <akim@epita.fr>
3152
3153 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
3154 * src/reader.c (symbol_list): `guard' and `guard_line' are new
3155 members.
3156 (symbol_list_new): Adjust.
3157 (copy_action): action_line is the first line, not the last.
3158 (copy_guard): Just as for actions, store the `action' only, not
3159 the switch/case/break flesh.
3160 Don't parse the user action that might follow the guard, let...
3161 (readgram): do it, i.e., now, there can be an action after a
3162 guard.
3163 In other words the guard is just explicitly optional.
3164 (packgram): Adjust.
3165 * src/output.c (guards_output): New.
3166 (output_parser): Call it when needed.
3167 (output): Also free the guard and attrs obstacks.
3168 * src/files.c, src/files.h (obstack_save): Remove.
3169 (output_files): Remove.
3170 As a result, if one needs the former `.act' file, using an
3171 appropriate skeleton which requires actions and guards is now
3172 required.
3173 * src/main.c (main): Adjust.
3174 * tests/semantic.at: New.
3175 * tests/regression.at: Use `input.y' as input file name.
3176 Avoid 8+3 problems by requiring input.c when the test needs the
3177 parser.
3178
d945f5cd
AD
31792001-12-27 Akim Demaille <akim@epita.fr>
3180
3181 * src/reader.c (symbol_list_new): Be sure to initialize all the
3182 fields.
3183
d200e455
AD
31842001-12-27 Akim Demaille <akim@epita.fr>
3185
3186 All the hacks using a final pseudo state are now useless.
3187
3188 * src/LR0.c (set_state_table): state_table holds exactly nstates.
3189 * src/lalr.c (nLA): New.
3190 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
3191 instead of lookaheadsp from the pseudo state (nstate + 1).
3192
f9507c28
AD
31932001-12-27 Akim Demaille <akim@epita.fr>
3194
3195 * src/output.c (action_row, token_actions): Use a state_t instead
3196 of a integer, and nlookaheads instead of the following state's
3197 lookaheadsp.
3198
065fbd27
AD
31992001-12-27 Akim Demaille <akim@epita.fr>
3200
3201 * src/conflicts.c (log_resolution, flush_shift)
3202 (resolve_sr_conflict, set_conflicts, solve_conflicts)
3203 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
3204 (conflicts_print, print_reductions): Use a state_t instead of an
3205 integer when referring to a state.
3206 As much as possible, depend upon nlookaheads, instead of the
3207 `lookaheadsp' member of the following state (since lookaheads of
3208 successive states are successive, the difference between state n + 1
3209 and n served as the number of lookaheads for state n).
3210 * src/lalr.c (add_lookback_edge): Likewise.
3211 * src/print.c (print_core, print_actions, print_state)
3212 (print_results): Likewise.
3213 * src/print_graph.c (print_core, print_actions, print_state)
3214 (print_graph): Likewise.
3215 * src/conflicts.h: Adjust.
3216
1b177bd7
AD
32172001-12-27 Akim Demaille <akim@epita.fr>
3218
3219 * src/bison.hairy: Formatting/comment changes.
3220 ANSIfy.
3221 Remove `register' indications.
3222 Add plenty of `static'.
3223
7742ddeb
AD
32242001-12-27 Akim Demaille <akim@epita.fr>
3225
3226 * src/output.c (prepare): Drop the muscle `ntbase' which
3227 duplicates ntokens.
3228 * src/bison.simple: Formatting/comment changes.
3229 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
3230 is an undocumented synonym.
3231
1fa14068
AD
32322001-12-22 Akim Demaille <akim@epita.fr>
3233
3234 * src/output.c (output_table_data): Change the prototype to use
3235 `int' for array ranges: some invocations do pass an int, not a
3236 short.
3237 Reported by Wayne Green.
3238
b9752825
AD
32392001-12-22 Akim Demaille <akim@epita.fr>
3240
3241 Some actions of web2c.y are improperly triggered.
3242 Reported by Mike Castle.
3243
3244 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
3245 * tests/regression.at (Web2c): Rename as...
3246 (Web2c Report): this.
3247 (Web2c Actions): New.
3248
776209d6
AD
32492001-12-22 Akim Demaille <akim@epita.fr>
3250
3251 Reductions in web2c.y are improperly reported.
3252 Reported by Mike Castle.
3253
3254 * src/conflicts.c (print_reductions): Fix.
3255 * tests/regression.at (Web2c): New.
3256
275fc3ad
AD
32572001-12-18 Akim Demaille <akim@epita.fr>
3258
3259 Some host fail on `assert (!"foo")', which expands to
3260 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
3261 Reported by Nelson Beebee.
3262
3263 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
3264 `#define it_succeeded 0' and `assert (it_succeeded)'.
3265
897668ee
MA
32662001-12-17 Marc Autret <autret_m@epita.fr>
3267
3268 * src/bison.simple: Don't hard code the skeleton line and filename.
3269 * src/output.c (output_parser): Rename 'line' as 'output_line'.
3270 New line counter 'skeleton_line' (skeleton-line muscle).
3271
ab3399e0
PE
32722001-12-17 Paul Eggert <eggert@twinsun.com>
3273
3274 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
3275 YYDEBUG must be defined to a nonzero value.
3276
3277 * src/bison.simple (yytname): Do not assume that the user defines
3278 YYDEBUG to a properly parenthesized expression.
3279
3877f72b
AD
32802001-12-17 Akim Demaille <akim@epita.fr>
3281
3282 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
3283 nlookaheads is a new member.
3284 Adjust all users.
3285 * src/lalr.h (nlookaheads): Remove this orphan declaration.
3286 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
3287 state.
776209d6 3288
331dbc1b
AD
32892001-12-17 Akim Demaille <akim@epita.fr>
3290
3291 * src/files.h, src/files.c (open_files, close_files): Remove.
3292 * src/main.c (main): Don't open/close files, nor invoke lex_free,
3293 let...
3294 * src/reader.c (reader): Do it.
776209d6 3295
be750e4c
AD
32962001-12-17 Akim Demaille <akim@epita.fr>
3297
3298 * src/conflicts.c (print_reductions): Formatting changes.
776209d6 3299
709ae8c6
AD
33002001-12-17 Akim Demaille <akim@epita.fr>
3301
3302 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
3303 (flush_reduce): New.
3304 (resolve_sr_conflict): Adjust.
776209d6 3305
f87685c3
AD
33062001-12-17 Akim Demaille <akim@epita.fr>
3307
3308 * src/output.c (output_obstack): Be static and rename as...
3309 (format_obstack): this, to avoid any confusion with files.c's
3310 output_obstack.
3311 * src/reader.h (muscle_obstack): Move to...
3312 * src/output.h: here, since it's defined in output.c.
3313
837491d8
AD
33142001-12-17 Akim Demaille <akim@epita.fr>
3315
3316 * src/output.c (action_row, save_column, default_goto)
3317 (sort_actions, matching_state, pack_vector): Better variable
3318 locality.
3319
796d61fb
AD
33202001-12-17 Akim Demaille <akim@epita.fr>
3321
3322 * src/output.c: Various formatting changes.
776209d6 3323
64d15509
AD
33242001-12-17 Akim Demaille <akim@epita.fr>
3325
3326 * src/files.c (output_files): Free the output_obstack.
3327 * src/main.c (main): Call print and print_graph conditionally.
3328 * src/print.c (print): Work unconditionally.
3329 * src/print_graph.c (print_graph): Work unconditionally.
3330 * src/conflicts.c (log_resolution): Output only if verbose_flag.
3331
fbc8ecb7
MA
33322001-12-16 Marc Autret <autret_m@epita.fr>
3333
3334 * src/output.c (actions_output): Fix. When we use %no-lines,
3335 there is one less line per action.
3336
f0440388
MA
33372001-12-16 Marc Autret <autret_m@epita.fr>
3338
3339 * src/bison.simple: Remove a useless #line directive.
3340 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
3341 * src/output.c (get_lines_number): New.
776209d6 3342 (output_parser): Adjust, now takes care about the lines of a
f0440388
MA
3343 output muscles.
3344 Fix line numbering.
3345 (actions_output): Computes the number of lines taken by actions.
3346 (output_master_parser): Insert new skeleton which is the name of
3347 the output parser file name.
3348
a79986b8
MA
33492001-12-15 Marc Autret <autret_m@epita.fr>
3350
3351 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
3352
4ec8e00f
MA
33532001-12-15 Marc Autret <autret_m@epita.fr>
3354
3355 * src/output.c (output_gram): Keep track of the hairy one.
3356
1a4648ff
AD
33572001-12-15 Akim Demaille <akim@epita.fr>
3358
3359 Make `make distcheck' work.
3360
3361 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
3362 system.h which uses libgettext.h.
3363
9c2c67e6
AD
33642001-12-15 Akim Demaille <akim@epita.fr>
3365
3366 * src/nullable.c (set_nullable): Useless rules must be skipped,
3367 otherwise, since we range over their symbols, we might look at a
3368 nonterminal which no longer ``exists'', i.e., it is not counted in
3369 `nvars', hence we overflow our arrays.
3370
93ede233
AD
33712001-12-15 Akim Demaille <akim@epita.fr>
3372
3373 The header can also be produced directly, without any obstack!
3374 Yahoo!
3375
3376 * src/files.c, src/files.h (defines_obstack): Remove.
3377 (compute_header_macro): Global.
3378 (defines_obstack_save): Remove.
3379 * src/reader.c (parse_union_decl): No longer output to
3380 defines_obstack: its content can be found in the `stype' muscle
3381 anyway.
3382 (output_token_translations): Merge into...
3383 (symbols_output): this.
3384 Rename as...
3385 (symbols_save): this.
3386 (reader): Adjust.
3387 * src/output.c (header_output): New.
3388 (output): Call it.
3389
2666f928
AD
33902001-12-15 Akim Demaille <akim@epita.fr>
3391
3392 * src/reader.c (parse_union_decl): Instead of handling two obstack
3393 simultaneously, use one to define the `stype' muscle, and use the
3394 value of the latter to fill defines_obstack.
3395 (copy_comment): Remove.
3396 (copy_comment2): Work for a single obstack.
3397 Rename as...
3398 (copy_comment): this.
3399
428046f8
AD
34002001-12-15 Akim Demaille <akim@epita.fr>
3401
3402 * src/lex.c, src/lex.h (xgetc): No longer static.
3403 * src/reader.c (parse_union_decl): Revamp.
3404
ea52d706
AD
34052001-12-15 Akim Demaille <akim@epita.fr>
3406
3407 Still making progress in separating Bison into (i) input, (ii)
3408 process, (iii) output: now we can directly output the parser file
3409 without using table_obstack at all.
3410
3411 * src/files.c, src/files.h (table_obstack): Bye bye.
3412 (parser_file_name): New.
3413 * src/files.c (compute_output_file_names): Compute it.
3414 * src/output.c (actions_output, output_parser)
3415 (output_master_parser): To a file instead of an obstack.
3416
3f96f4dc
AD
34172001-12-15 Akim Demaille <akim@epita.fr>
3418
3419 Attach actions to rules, instead of pre-outputting them to
3420 actions_obstack.
3421
3422 * src/gram.h (rule_t): action and action_line are new members.
3423 * src/reader.c (symbol_list): Likewise.
3424 (copy_action): Save the actions within the rule.
3425 (packgram): Save them in rule_table.
3426 * src/output.c (actions_output): New.
3427 (output_parser): Use it on `%%actions'.
3428 (output_rule_data): Don't free rule_table.
3429 (output): Do it.
3430 (prepare): Don't save the `action' muscle.
3431 * src/bison.simple: s/%%action/%%actions/.
3432
51576fb3
AD
34332001-12-15 Akim Demaille <akim@epita.fr>
3434
3435 * src/reader.c (copy_action): When --yacc, don't append a `;'
3436 to the user action: let it fail if lacking.
dee049eb 3437 Suggested by Arnold Robbins and Tom Tromey.
51576fb3 3438
2648a72d
AD
34392001-12-14 Akim Demaille <akim@epita.fr>
3440
3441 * src/lex.c (literalchar): Simply return the char you decoded, non
3442 longer mess around with obstacks and int pointers.
3443 Adjust all callers.
3444
92790e5b
AD
34452001-12-14 Akim Demaille <akim@epita.fr>
3446
3447 * src/lex.c (literalchar): Don't escape the special characters,
3448 just decode them, and keep them as char (before, eol was output as
3449 the 2 char string `\n' etc.).
3450 * src/output.c (output_rule_data): Use quotearg to output the
3451 token strings.
3452
927c1557
PE
34532001-12-13 Paul Eggert <eggert@twinsun.com>
3454
3455 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
3456 Do not infringe on the global user namespace when using C++.
3457 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
3458 All uses of `fprintf' and `stderr' changed.
3459
3460 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
3461
ed8e1f68
AD
34622001-12-13 Akim Demaille <akim@epita.fr>
3463
3464 The computation of nullable is broken: it doesn't handle empty
3465 RHS's properly.
3466
3467 * tests/torture.at (GNU AWK Grammar): New.
3468 * tests/sets.at (Nullable): New.
3469 * src/nullable.c (set_nullable): Instead of blindly looping over
3470 `ritems', loop over the rules, and then over their rhs's.
3471
3472 Work around Autotest bugs.
3473
3474 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
3475 frame, because Autotest understand lines starting with a `+' as
3476 traces from the shell. Then, they are not processed properly.
3477 Admittedly an Autotest bug, but we don't have time to wait for
3478 Autotest to catch up.
3479 * tests/regression.at (Broken Closure): Adjust to the new table
3480 frames.
3481 Move to...
3482 * tests/sets.at: here.
3483
cb581495
AD
34842001-12-13 Akim Demaille <akim@epita.fr>
3485
3486 * src/closure.c (closure): Use nrules instead of playing tricks
3487 with BITS_PER_WORD.
3488
2e729273
AD
34892001-12-13 Akim Demaille <akim@epita.fr>
3490
3491 * src/print.c (print_actions): Output the handling of `$' as the
3492 traces do: shifting the token EOF. Before EOF was treated as a
3493 nonterminal.
3494 * tests/regression.at: Adjust some tests.
3495 * src/print_graph.c (print_core): Complete the set of items via
3496 closure. The next-to-final and final states are still unsatisfying,
3497 but that's to be addressed elsewhere.
3498 No longer output the rule numbers, but do output the state number.
3499 A single loop for the shifts + gotos is enough, but picked a
3500 distinct color for each.
3501 (print_graph): Initialize and finalize closure.
3502
107f7dfb
AD
35032001-12-13 Akim Demaille <akim@epita.fr>
3504
3505 * src/reader.c (readgram): Remove dead code, an strip useless
3506 braces.
3507 (get_type): Remove, unused.
3508
9b53a24f
AD
35092001-12-12 Akim Demaille <akim@epita.fr>
3510
3511 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
3512 on that of lib/error.c.
3513
dbfb6dcd
AD
35142001-12-12 Akim Demaille <akim@epita.fr>
3515
3516 Some hosts don't like `/' in includes.
3517
3518 * src/system.h: Include libgettext.h without qualifying the path.
3519 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
3520 $(top_srcdir).
3521
c25fb648
MA
35222001-12-11 Marc Autret <autret_m@epita.fr>
3523
3524 * src/output.c (output_parser): Remove useless muscle.
3525
710ddc4f
MA
35262001-12-11 Marc Autret <autret_m@epita.fr>
3527
3528 * src/bison.simple: Remove #line just before %%epilogue. It
3529 is now handled in ...
3530 * src/reader.c (read_additionnal_code): Add the output of a
3531 #line for the epilogue.
3532
e83d80b8
MA
35332001-12-10 Marc Autret <autret_m@epita.fr>
3534
927c1557 3535 * src/reader.c (copy_definition): Re-use CPP-outed code which
e83d80b8
MA
3536 replace precedent remove.
3537 * src/bison.simple: Remove #line before %%prologue because
3538 %%input-line is wrong at this time.
3539
971d5158
MA
35402001-12-10 Marc Autret <autret_m@epita.fr>
3541
3542 * src/reader.c (symbols_output): Clean up.
927c1557 3543 * src/output.c (output_gram, output): Clean up.
971d5158 3544
5edafffd
AD
35452001-12-10 Akim Demaille <akim@epita.fr>
3546
3547 * src/lalr.c (initialize_lookaheads): New. Extracted from...
3548 * src/LR0.c (set_state_table): here.
3549 * src/lalr.c (lalr): Call it.
3550
0279f8e9
AD
35512001-12-10 Akim Demaille <akim@epita.fr>
3552
3553 * src/state.h (shifts): Remove the `number' member: shifts are
3554 attached to state, hence no longer need to be labelled with a
3555 state number.
3556
190c4f5f
AD
35572001-12-10 Akim Demaille <akim@epita.fr>
3558
3559 Now that states have a complete set of members, the linked list of
3560 shifts is useless: just fill directly the state's shifts member.
3561
3562 * src/state.h (shifts): Remove the `next' member.
3563 * src/LR0.c (first_state, last_state): Remove.
3564 Adjust the callers.
3565 (augment_automaton): Don't look for the shifts that must be added
3566 a shift on EOF: it is those of the state we looked for! But now,
3567 since shifts are attached, it is no longer needed to looking
3568 merely by its id: its number.
3569
2a73b93d
AD
35702001-12-10 Akim Demaille <akim@epita.fr>
3571
3572 * src/LR0.c (augment_automaton): Better variable locality.
3573 Remove an impossible branch: if there is a state corresponding to
3574 the start symbol being shifted, then there is shift for the start
3575 symbol from the initial state.
3576
74392f6a
AD
35772001-12-10 Akim Demaille <akim@epita.fr>
3578
3579 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
3580 only when appropriate: when insert_start_shifting_state' is not
3581 invoked.
3582 * tests/regression.at (Rule Line Numbers): Adjust.
3583
37c82725
AD
35842001-12-10 Akim Demaille <akim@epita.fr>
3585
3586 * src/LR0.c (augment_automaton): Now that all states have shifts,
3587 merge the two cases addition shifts to the initial state.
3588
6a164e0c
AD
35892001-12-10 Akim Demaille <akim@epita.fr>
3590
3591 * src/lalr.c (set_state_table): Move to...
3592 * src/LR0.c: here.
3593 * src/lalr.c (lalr): Don't call it...
3594 * src/LR0.c (generate_states): do it.
3595 * src/LR0.h (first_state): Remove, only the table is used.
3596
7215de24
AD
35972001-12-10 Akim Demaille <akim@epita.fr>
3598
3599 * src/LR0.h (first_shift, first_reduction): Remove.
3600 * src/lalr.c: Don't use first_shift: find shifts through the
3601 states.
3602
80e25d4d
AD
36032001-12-10 Akim Demaille <akim@epita.fr>
3604
3605 * src/LR0.c: Attach shifts to states as soon as they are
3606 computed.
3607 * src/lalr.c (set_state_table): Instead of assigning shifts to
3608 state, just assert that the mapping was properly done.
3609
0ab3728b
AD
36102001-12-10 Akim Demaille <akim@epita.fr>
3611
3612 * src/LR0.c (insert_start_shift): Rename as...
3613 (insert_start_shifting_state): this.
3614 (insert_eof_shifting_state, insert_accepting_state): New.
3615 (augment_automaton): Adjust.
3616 Better locality of the variables.
3617 When looking if the start_symbol is shifted from the initial
3618 state, using `while (... symbol != start_symbol ...)' sounds
3619 better than `while (... symbol < start_symbol ...)': If fail
3620 to see how the order between symbols could be relevant!
3621
78af9bbc
AD
36222001-12-10 Akim Demaille <akim@epita.fr>
3623
3624 * src/getargs.h: Don't declare `spec_name_prefix' and
3625 `spec_file_prefix', declared by src/files.h.
3626 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
3627 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
3628 * src/output.c (prepare): Adjust.
3629 * src/reader.c (symbols_output): Likewise.
3630 * src/vmsgetargs.c: Vaguely adjust, but who cares?
3631
bdef2a41
AD
36322001-12-10 Akim Demaille <akim@epita.fr>
3633
3634 * src/muscle_tab.c (muscle_init): NULL is a better default than
3635 `"0"'.
3636
3735969c
AD
36372001-12-10 Akim Demaille <akim@epita.fr>
3638
3639 * src/reader.c (reader): Calling symbols_output once is enough.
3640
49701457
AD
36412001-12-10 Akim Demaille <akim@epita.fr>
3642
3643 Now that states have a complete set of members, the linked list of
3644 reductions is useless: just fill directly the state's reductions
3645 member.
3646
3647 * src/state.h (struct reductions): Remove member `number' and
3648 `next'.
3649 * src/LR0.c (first_reduction, last_reduction): Remove.
3650 (save_reductions): Don't link the new reductions, store them in
3651 this_state.
3652 * src/lalr.c (set_state_table): No need to attach reductions to
3653 states, it's already done.
3654 * src/output.c (output_actions): No longer free the shifts, then
3655 the reductions, then the states: free all the states and their
3656 members.
3657
0edad749
AD
36582001-12-10 Akim Demaille <akim@epita.fr>
3659
3660 * src/options.c (OPTN, DRTV, BOTH): New.
3661 (option_table): Use them.
3662
0edad749
AD
3663 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
3664 the job of system.h.
3665 * src/options.c: Don't include stdio.h and xalloc.h for the same
3666 reasons.
3667
5449dd0f
AD
36682001-12-10 Akim Demaille <akim@epita.fr>
3669
3670 * src/output.c (output, prepare): Make sure the values of the
3671 muscles `action' and `prologue' are 0-terminated.
3672
a870c567
AD
36732001-12-10 Akim Demaille <akim@epita.fr>
3674
3675 Clean up GCC warnings.
3676
3677 * src/reader.c (copy_action): `buf' is not used.
3678 (parse_skel_decl): Be static.
3679 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
3680 * src/options.h (create_long_option_table): Have a real prototype.
3681 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
3682 (hash_delete_at): Return const void *.
3683 Adjust casts to preserve the const.
3684
80df8768
AD
36852001-12-10 Akim Demaille <akim@epita.fr>
3686
3687 * configure.in: Require 2.52g.
3688 M4 is not needed, but AUTOM4TE is.
3689 * m4/m4.m4: Remove.
3690 * tests/Makefile.am: Adjust.
3691
f693ad14
AD
36922001-12-10 Akim Demaille <akim@epita.fr>
3693
3694 One structure for states is enough, even though theoretically
3695 there are LR(0) states and LALR(1) states.
3696
3697 * src/lalr.h (state_t): Remove.
3698 (state_table): Be state_t **, not state_t *.
3699 * src/state.h (core, CORE_ALLOC): Rename as...
3700 (state_t, STATE_ALLOC): this.
3701 Add the LALR(1) members: shifts, reductions, errs.
3702 * src/LR0.c (state_table): Rename as...
3703 (state_hash): this, to avoid name clashes with the global
3704 `state_table'.
3705 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
3706 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
3707
74ffbcb6
AD
37082001-12-10 Akim Demaille <akim@epita.fr>
3709
3710 Bison dumps core on bash.y.
3711 Reported by Pascal Bart.
3712
3713 * src/warshall.c (bitmatrix_print): New.
3714 (TC): Use it.
3715 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
3716 j must be the outer loop.
3717 * tests/regression.at (Broken Closure): New.
3718
07708e19
AD
37192001-12-05 Akim Demaille <akim@epita.fr>
3720
3721 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
3722 its argument.
3723