]>
Commit | Line | Data |
---|---|---|
9b3add5b RA |
1 | 2001-12-30 Robert Anisko <robert.anisko@epita.fr> |
2 | ||
3 | * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING) | |
4 | (MUSCLE_INSERT_PREFIX): ...to there. | |
5 | * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING) | |
6 | (MUSCLE_INSERT_PREFIX): Move from here... | |
7 | ||
8 | * src/bison.hairy: Add a section directive. Put braces around muscle | |
9 | names. This parser skeleton is still broken, but Bison should not | |
10 | choke on a bad muscle 'syntax'. | |
11 | * src/bison.simple: Add a section directive. Put braces around muscle | |
12 | names. | |
13 | ||
14 | * src/files.h (strsuffix, stringappend): Add declarations. | |
15 | (tab_extension): Add declaration. | |
16 | (short_base_name): Add declaration. | |
17 | ||
18 | * src/files.c (strsuffix, stringappend): No longer static. These | |
19 | functions are used in the skeleton parser. | |
20 | (tab_extension): New. | |
21 | (compute_base_names): Use the computations done in this function | |
22 | to guess if the generated parsers should have '.tab' in their | |
23 | names. | |
24 | (short_base_name): No longer static. | |
25 | ||
26 | * src/output.c (output_skeleton): New. | |
27 | (output): Disable call to output_master_parser, and give a try to | |
28 | a new skeleton handling system. | |
29 | (guards_output, actions_output): No longer static. | |
30 | (token_definitions_output, get_lines_number): No longer static. | |
31 | ||
32 | * configure.in: Use AM_PROG_LEX and AC_PROG_YACC. | |
33 | ||
34 | * src/Makefile.am (bison_SOURCES): Add scan-skel.l and | |
35 | parse-skel.y. | |
36 | ||
37 | * src/parse-skel.y: New file. | |
38 | * src/scan-skel.l: New file. | |
39 | ||
b5b61c61 AD |
40 | 2001-12-29 Akim Demaille <akim@epita.fr> |
41 | ||
42 | %name-prefix is broken. | |
43 | ||
44 | * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy". | |
45 | Adjust all dependencies. | |
46 | * tests/headers.at (export YYLTYPE): Strengthen this test: use | |
47 | %name-prefix. | |
48 | ||
49 | Renaming yylval but not yylloc is not consistent. Now we do. | |
50 | ||
51 | * src/bison.simple: Prefix yylloc if used. | |
52 | * doc/bison.texinfo (Decl Summary): Document that. | |
53 | ||
8c9a50be AD |
54 | 2001-12-29 Akim Demaille <akim@epita.fr> |
55 | ||
56 | * doc/bison.texinfo: Promote `%long-directive' over | |
57 | `%long_directive'. | |
58 | Remove all references to fixed-output-files, yacc is enough. | |
59 | ||
d99361e6 AD |
60 | 2001-12-29 Akim Demaille <akim@epita.fr> |
61 | ||
62 | * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the | |
63 | user prologue. These are defaults. | |
64 | * tests/actions.at (Mid-rule actions): Make sure the user can | |
65 | define YYDEBUG and YYERROR_VERBOSE. | |
66 | ||
b9cecb91 AD |
67 | 2001-12-29 Akim Demaille <akim@epita.fr> |
68 | ||
69 | * src/output.c (header_output): Don't forget to export YYLTYPE and | |
70 | yylloc. | |
71 | * tests/headers.at (export YYLTYPE): New, make sure it does. | |
72 | * tests/regression.at (%union and --defines, Invalid CPP headers): | |
73 | Move to... | |
74 | * tests/headers.at: here. | |
75 | ||
aea13e97 AD |
76 | 2001-12-29 Akim Demaille <akim@epita.fr> |
77 | ||
78 | * src/gram.h (rule_s): Member `assoc' is of type `associativity'. | |
79 | ||
931394cb AD |
80 | 2001-12-29 Akim Demaille <akim@epita.fr> |
81 | ||
82 | * tests/actions.at (Mid-rule actions): Output on a single line | |
83 | instead of several. | |
84 | ||
704a47c4 AD |
85 | 2001-12-29 Akim Demaille <akim@epita.fr> |
86 | ||
87 | * doc/bison.texinfo: Formatting changes. | |
88 | ||
091e20bb AD |
89 | 2001-12-29 Akim Demaille <akim@epita.fr> |
90 | ||
91 | Don't store the token defs in a muscle, just be ready to output it | |
92 | on command. Now possible via `symbols'. Fixes a memory leak. | |
93 | ||
94 | * src/output.c (token_definitions_output): New. | |
95 | (output_parser, header_output): Use it. | |
96 | * src/reader.c (symbols_save): Remove. | |
97 | ||
cce71710 AD |
98 | 2001-12-29 Akim Demaille <akim@epita.fr> |
99 | ||
100 | * src/bison.simple: Do not provide a default for YYSTYPE and | |
101 | YYLTYPE before the user's prologue. Otherwise it's hardly... a | |
102 | default. | |
103 | ||
82c035a8 AD |
104 | 2001-12-29 Akim Demaille <akim@epita.fr> |
105 | ||
106 | Mid-rule actions are simply... ignored! | |
107 | ||
108 | * src/reader.c (readgram): Be sure to attach mid-rule actions to | |
109 | the empty-rule associated to the dummy symbol, not to the host | |
110 | rule. | |
111 | * tests/actions.at (Mid-rule actions): New. | |
112 | ||
8419d367 AD |
113 | 2001-12-29 Akim Demaille <akim@epita.fr> |
114 | ||
115 | Memory leak. | |
116 | ||
117 | * src/reader.c (reader): Free grammar. | |
118 | ||
375d5806 AD |
119 | 2001-12-29 Akim Demaille <akim@epita.fr> |
120 | ||
121 | Memory leak. | |
122 | ||
123 | * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here, | |
124 | since it allocates it for each state, although only one is needed. | |
125 | (allocate_storage): Do it here. | |
126 | ||
f51cb8ff AD |
127 | 2001-12-29 Akim Demaille <akim@epita.fr> |
128 | ||
129 | * src/options.h, src/options.c (create_long_option_table): Rename | |
130 | as... | |
131 | (long_option_table_new): this, with a clearer prototype. | |
132 | (percent_table): Remove, unused, | |
133 | * src/getargs.c (getargs): Adjust. | |
134 | ||
29e88316 AD |
135 | 2001-12-29 Akim Demaille <akim@epita.fr> |
136 | ||
137 | * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c | |
138 | * src/print.c, src/print_graph.c, src/state.h: Rename state_table | |
139 | as states. | |
140 | ||
b9f71f19 AD |
141 | 2001-12-29 Akim Demaille <akim@epita.fr> |
142 | ||
143 | * src/lalr.c (build_relations): Rename `states' as `states1'. | |
144 | Sorry, I don't understand exactly what it is, no better name... | |
145 | ||
1a2b5d37 AD |
146 | 2001-12-29 Akim Demaille <akim@epita.fr> |
147 | ||
148 | * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c | |
149 | * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c | |
150 | * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table | |
151 | as rules. | |
152 | ||
1cca533e AD |
153 | 2001-12-29 Akim Demaille <akim@epita.fr> |
154 | ||
155 | * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long | |
156 | ago. | |
157 | ||
c03ae966 AD |
158 | 2001-12-29 Akim Demaille <akim@epita.fr> |
159 | ||
160 | * src/reader.c, src/reader.h (user_toknums): Remove. | |
161 | Adjust all users to use symbols[i]->user_token_number. | |
162 | ||
5a670b1e AD |
163 | 2001-12-29 Akim Demaille <akim@epita.fr> |
164 | ||
165 | * src/gram.c, src/gram.h (sprec, sassoc): Remove. | |
166 | Adjust all users to use symbols[i]->prec or ->assoc. | |
167 | ||
ad949da9 AD |
168 | 2001-12-29 Akim Demaille <akim@epita.fr> |
169 | ||
170 | * src/reader.c, src/reader.h (tags): Remove. | |
171 | Adjust all users to use symbols[i]->tag. | |
172 | ||
0e78e603 AD |
173 | 2001-12-29 Akim Demaille <akim@epita.fr> |
174 | ||
175 | * src/gram.h, src/gram.c (symbols): New, similar to state_table | |
176 | and rule_table. | |
177 | * src/reader.c (packsymbols): Fill this table. | |
178 | Drop sprec. | |
179 | * src/conflicts.c (resolve_sr_conflict): Adjust. | |
180 | * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a | |
181 | single table. | |
182 | Use symbols[i]->tag instead of tags[i]. | |
183 | ||
213e640e AD |
184 | 2001-12-29 Akim Demaille <akim@epita.fr> |
185 | ||
186 | * tests/calc.at (_AT_DATA_CALC_Y): Also use %union. | |
187 | In addition, put a comment in there, to replace... | |
188 | * tests/regression.at (%union and C comments): Remove. | |
189 | ||
e7b8bef1 AD |
190 | 2001-12-29 Akim Demaille <akim@epita.fr> |
191 | ||
192 | * tests/regression.at (Web2c Actions): Blindly move the actual | |
193 | output as expected output. The contents *seem* right to me, but I | |
194 | can't pretend reading perfectly parser tables... Nonetheless, all | |
195 | the other tests pass correctly, the table look OK, even though the | |
196 | presence of `$axiom' is to be noted: AFAICS it is useless (but | |
197 | harmless). | |
198 | ||
b68e7744 AD |
199 | 2001-12-29 Akim Demaille <akim@epita.fr> |
200 | ||
201 | * src/reader.c (readgram): Don't add the rule 0 if there were no | |
202 | rules read. In other words, add it _after_ having performed | |
203 | grammar sanity checks. | |
204 | Fixes the `tests/regression.at (Invalid input: 1)' Failure. | |
205 | ||
78d5bae9 AD |
206 | 2001-12-29 Akim Demaille <akim@epita.fr> |
207 | ||
208 | * tests/regression.at (Web2c Report): Catch up: the rule 0 is now | |
209 | visible, and some states have now a different number. | |
210 | ||
ff442794 AD |
211 | 2001-12-29 Akim Demaille <akim@epita.fr> |
212 | ||
213 | * src/reader.c (readgram): Bind the initial rule's lineno to that | |
214 | of the first rule. | |
215 | * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts): | |
216 | (Solved SR Conflicts): Adjust rule 0's line number. | |
217 | ||
610ab194 AD |
218 | 2001-12-29 Akim Demaille <akim@epita.fr> |
219 | ||
220 | Fix the `GAWK Grammar' failure. | |
221 | ||
222 | * src/LR0.c (final_state): Initialize to -1 so that we do compute | |
223 | the reductions of the first state which was mistakenly confused | |
224 | with the final state because precisely final_state was initialized | |
225 | to 0. | |
226 | * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads, | |
227 | now noticed by Bison. | |
228 | * tests/regression.at (Rule Line Numbers): Adjust: state 0 does | |
229 | have a reduction on $default. | |
230 | ||
29d29c8f AD |
231 | 2001-12-29 Akim Demaille <akim@epita.fr> |
232 | ||
233 | * src/gram.c (ritem_print): Be sure to subtract 1 when displaying | |
234 | rule line numbers. | |
235 | * src/closure.c (print_closure): Likewise. | |
236 | * src/derives.c (print_derives): Likewise. | |
237 | * tests/sets.at (Nullable): Adjust: the rule numbers are correct | |
238 | now. | |
239 | ||
7c6b64d0 AD |
240 | 2001-12-29 Akim Demaille <akim@epita.fr> |
241 | ||
242 | * src/lalr.c (lookaheads_print): New. | |
243 | (lalr): Call it when --trace-flag. | |
244 | * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads | |
245 | are dumped. | |
246 | ||
3d4daee3 AD |
247 | 2001-12-29 Akim Demaille <akim@epita.fr> |
248 | ||
249 | * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0', | |
250 | when walking through ritem, even via rule->rhs. | |
251 | * src/reduce.c (dump_grammar, useful_production, reduce_output) | |
252 | (useful_production, useless_nonterminals): Likewise. | |
253 | (reduce_grammar_tables): Likewise, plus update nritems. | |
254 | * src/nullable.c (set_nullable): Likewise. | |
255 | * src/lalr.c (build_relations): Likewise. | |
256 | * tests/sets.at (Nullable): Adjust. | |
257 | Fortunately, now, the $axiom is no longer nullable. | |
258 | ||
9e7f6bbd AD |
259 | 2001-12-29 Akim Demaille <akim@epita.fr> |
260 | ||
261 | * src/LR0.c (generate_states): Use nritems, not nitems, nor using | |
262 | the 0-sentinel. | |
263 | * src/gram.c (ritem_longest_rhs): Likewise. | |
264 | * src/reduce.c (nonterminals_reduce): Likewise. | |
265 | * src/print_graph.c (print_graph): Likewise. | |
266 | * src/output.c (output_rule_data): Likewise. | |
267 | * src/nullable.c (set_nullable): Likewise. | |
268 | ||
255ef638 AD |
269 | 2001-12-29 Akim Demaille <akim@epita.fr> |
270 | ||
271 | * src/output.c: Comment changes. | |
272 | ||
0d8a7363 AD |
273 | 2001-12-27 Paul Eggert <eggert@twinsun.com> |
274 | ||
275 | * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special | |
276 | cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and | |
277 | Sparc, as they were causing more porting problems than the | |
278 | (minor) performance improvement was worth. | |
279 | ||
280 | Also, catch up with 1.31's YYSTD. | |
281 | ||
3db472b9 AD |
282 | 2001-12-27 Akim Demaille <akim@epita.fr> |
283 | ||
284 | * src/output.c (output_gram): Rely on nritems, not the | |
285 | 0-sentinel. See below. | |
286 | Use -1 as separator, not 0. | |
287 | * src/bison.simple (yyparse): Subtract 1 to the rule numbers. | |
288 | Rely on -1 as separator in yyrhs, instead of 0. | |
289 | * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue | |
290 | twice `Now at end of input', therefore there are two lines less to | |
291 | expect. | |
292 | ||
b365aa05 AD |
293 | 2001-12-27 Akim Demaille <akim@epita.fr> |
294 | ||
295 | * tests/regression.at (Unresolved SR Conflicts): | |
296 | (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes | |
297 | below. | |
298 | ||
30171f79 AD |
299 | 2001-12-27 Akim Demaille <akim@epita.fr> |
300 | ||
301 | * src/LR0.c (new_state): Recognize the final state by the fact it | |
302 | is reached by eoftoken. | |
303 | (insert_start_shifting_state, insert_eof_shifting_state) | |
304 | (insert_accepting_state, augment_automaton): Remove, since now | |
305 | these states are automatically computed from the initial state. | |
306 | (generate_states): Adjust. | |
307 | * src/print.c: When reporting a rule number to the user, substract | |
308 | 1, so that the axiom rule is rule 0, and the first user rule is 1. | |
309 | * src/reduce.c: Likewise. | |
310 | * src/print_graph.c (print_core): For the time being, just as for | |
311 | the report, depend upon --trace-flags to dump the full set of | |
312 | items. | |
313 | * src/reader.c (readgram): Once the grammar read, insert the rule | |
314 | 0: `$axiom: START-SYMBOL $'. | |
315 | * tests/set.at: Adjust: rule 0 is now displayed, and since the | |
316 | number of the states has changed (the final state is no longer | |
317 | necessarily the last), catch up. | |
318 | ||
75142d45 AD |
319 | 2001-12-27 Akim Demaille <akim@epita.fr> |
320 | ||
321 | Try to make the use of the eoftoken valid. Given that its value | |
322 | is 0 which was also used as a sentinel in ritem, (i) make sure >= 0 | |
323 | is used instead of > 0 where appropriate, (ii), depend upon nritems | |
324 | instead of the 0-sentinel. | |
325 | ||
326 | * src/gram.h, src/gram.c (nritems): New. | |
327 | Expected to be duplication of nitems, but for the time being... | |
328 | * src/reader.c (packgram): Assert nritems and nitems are equal. | |
329 | * src/LR0.c (allocate_itemsets, new_itemsets): Adjust. | |
330 | * src/closure.c (print_closure, print_fderives): Likewise. | |
331 | * src/gram.c (ritem_print): Likewise. | |
332 | * src/print.c (print_core, print_grammar): Likewise. | |
333 | * src/print_graph.c: Likewise. | |
334 | ||
b7c49edf AD |
335 | 2001-12-27 Akim Demaille <akim@epita.fr> |
336 | ||
337 | * src/main.c (main): If there are complains after grammar | |
338 | reductions, then output the report anyway if requested, then die. | |
339 | * src/symtab.c (bucket_new): Initialize `value' to -1, not 0. | |
340 | * src/reader.c (eoftoken): New. | |
341 | (parse_token_decl): If the token being defined has value `0', it | |
342 | is the eoftoken. | |
343 | (packsymbols): No longer hack `tags' to insert `$' by hand. | |
344 | Be sure to preserve the value of the eoftoken. | |
345 | (reader): Make sure eoftoken is defined. | |
346 | Initialize nsyms to 0: now eoftoken is created just like the others. | |
347 | * src/print.c (print_grammar): Don't special case the eof token. | |
348 | * src/regression.at: Adjust: `$' has value 0, not -1, which was a | |
349 | lie anyway, albeit pleasant. | |
350 | * tests/calc.at: Exercise error messages with eoftoken. | |
351 | Change the grammar so that empty input is invalid. | |
352 | Adjust expectations. | |
353 | When yyungeting, be sure to use a valid yylloc: use last_yylloc. | |
354 | ||
ec2da99f AD |
355 | 2001-12-27 Akim Demaille <akim@epita.fr> |
356 | ||
357 | * configure.in: Check the protos of strchr ans strspn. | |
358 | Replace strchr if needed. | |
359 | * src/system.h: Provide the protos of strchr, strspn and memchr if | |
360 | missing. | |
361 | * lib/strchr.c: New. | |
362 | * src/reader.c (symbols_save): Use strchr. | |
363 | ||
8adfa272 AD |
364 | 2001-12-27 Akim Demaille <akim@epita.fr> |
365 | ||
366 | * src/print.c, src/print_graph.c (escape): New. | |
367 | Use it to quote the TAGS outputs. | |
368 | * src/print_graph.c (print_state): Now errors are in red, and | |
369 | reductions in green. | |
370 | Prefer high to wide: output the state number on a line of its own. | |
371 | ||
80dac38c AD |
372 | 2001-12-27 Akim Demaille <akim@epita.fr> |
373 | ||
374 | * src/state.h, src/state.c (reductions_new): New. | |
375 | * src/LR0.c (set_state_table): Let all the states have a | |
376 | `reductions', even if reduced to 0. | |
377 | (save_reductions): Adjust. | |
378 | * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust. | |
379 | * src/print.c (print_reductions, print_actions): Adjust. | |
380 | * src/output.c (action_row): Adjust. | |
381 | ||
2cec70b9 AD |
382 | 2001-12-27 Akim Demaille <akim@epita.fr> |
383 | ||
384 | * src/state.h, src/state.c (errs_new, errs_dup): New. | |
385 | * src/LR0.c (set_state_table): Let all the states have an errs, | |
386 | even if reduced to 0. | |
387 | * src/print.c (print_errs, print_reductions): Adjust. | |
388 | * src/output.c (output_actions, action_row): Adjust. | |
389 | * src/conflicts.c (resolve_sr_conflict): Adjust. | |
390 | ||
13ca549a AD |
391 | 2001-12-27 Akim Demaille <akim@epita.fr> |
392 | ||
393 | * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL. | |
394 | ||
5092aba5 AD |
395 | 2001-12-27 Akim Demaille <akim@epita.fr> |
396 | ||
397 | * src/conflicts.c, src/conflicts.h (print_reductions): Move to... | |
398 | * src/print.c: here. | |
399 | (lookaheadset, shiftset): New, used as additional storage by | |
400 | print_reductions. | |
401 | (print_results): Adjust. | |
402 | (print_shifts, print_gotos, print_errs): New, extracted from... | |
403 | (print_actions): here. | |
404 | * src/print_graph.c (print_actions): Remove dead code. | |
405 | ||
11e2beca AD |
406 | 2001-12-27 Akim Demaille <akim@epita.fr> |
407 | ||
408 | * src/reader.c (copy_dollar, copy_at): Better checking of `n' in | |
409 | `$n' and `@n'. | |
410 | ||
dac3c910 AD |
411 | 2001-12-27 Akim Demaille <akim@epita.fr> |
412 | ||
413 | * src/lalr.c (add_lookback_edge): Use state_t instead of ints. | |
414 | (build_relations): Adjust. | |
415 | ||
d0b0fefa AD |
416 | 2001-12-27 Akim Demaille <akim@epita.fr> |
417 | ||
418 | * src/lalr.c (set_goto_map): Remove a wrong but benign loop | |
419 | duplication. | |
420 | ||
adc8c848 AD |
421 | 2001-12-27 Akim Demaille <akim@epita.fr> |
422 | ||
423 | * src/reader.c (packgram): Catch nitems overflows. | |
424 | ||
14d293ac AD |
425 | 2001-12-27 Akim Demaille <akim@epita.fr> |
426 | ||
427 | * src/files.c, src/files.h (guard_obstack): Remove. | |
428 | * src/output.c (output): Adjust. | |
429 | * src/reader.c (parse_braces): New, factoring... | |
430 | (copy_action, copy_guard): these two which are renamed as... | |
431 | (parse_action, parse_guard): these. | |
432 | As a voluntary consequence, using braces around guards is now | |
433 | mandatory. | |
434 | ||
f499b062 AD |
435 | 2001-12-27 Akim Demaille <akim@epita.fr> |
436 | ||
437 | * src/gram.h (rule_t): `guard' and `guard_line' are new members. | |
438 | * src/reader.c (symbol_list): `guard' and `guard_line' are new | |
439 | members. | |
440 | (symbol_list_new): Adjust. | |
441 | (copy_action): action_line is the first line, not the last. | |
442 | (copy_guard): Just as for actions, store the `action' only, not | |
443 | the switch/case/break flesh. | |
444 | Don't parse the user action that might follow the guard, let... | |
445 | (readgram): do it, i.e., now, there can be an action after a | |
446 | guard. | |
447 | In other words the guard is just explicitly optional. | |
448 | (packgram): Adjust. | |
449 | * src/output.c (guards_output): New. | |
450 | (output_parser): Call it when needed. | |
451 | (output): Also free the guard and attrs obstacks. | |
452 | * src/files.c, src/files.h (obstack_save): Remove. | |
453 | (output_files): Remove. | |
454 | As a result, if one needs the former `.act' file, using an | |
455 | appropriate skeleton which requires actions and guards is now | |
456 | required. | |
457 | * src/main.c (main): Adjust. | |
458 | * tests/semantic.at: New. | |
459 | * tests/regression.at: Use `input.y' as input file name. | |
460 | Avoid 8+3 problems by requiring input.c when the test needs the | |
461 | parser. | |
462 | ||
d945f5cd AD |
463 | 2001-12-27 Akim Demaille <akim@epita.fr> |
464 | ||
465 | * src/reader.c (symbol_list_new): Be sure to initialize all the | |
466 | fields. | |
467 | ||
d200e455 AD |
468 | 2001-12-27 Akim Demaille <akim@epita.fr> |
469 | ||
470 | All the hacks using a final pseudo state are now useless. | |
471 | ||
472 | * src/LR0.c (set_state_table): state_table holds exactly nstates. | |
473 | * src/lalr.c (nLA): New. | |
474 | (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it | |
475 | instead of lookaheadsp from the pseudo state (nstate + 1). | |
476 | ||
f9507c28 AD |
477 | 2001-12-27 Akim Demaille <akim@epita.fr> |
478 | ||
479 | * src/output.c (action_row, token_actions): Use a state_t instead | |
480 | of a integer, and nlookaheads instead of the following state's | |
481 | lookaheadsp. | |
482 | ||
065fbd27 AD |
483 | 2001-12-27 Akim Demaille <akim@epita.fr> |
484 | ||
485 | * src/conflicts.c (log_resolution, flush_shift) | |
486 | (resolve_sr_conflict, set_conflicts, solve_conflicts) | |
487 | (count_sr_conflicts, count_rr_conflicts, conflicts_output) | |
488 | (conflicts_print, print_reductions): Use a state_t instead of an | |
489 | integer when referring to a state. | |
490 | As much as possible, depend upon nlookaheads, instead of the | |
491 | `lookaheadsp' member of the following state (since lookaheads of | |
492 | successive states are successive, the difference between state n + 1 | |
493 | and n served as the number of lookaheads for state n). | |
494 | * src/lalr.c (add_lookback_edge): Likewise. | |
495 | * src/print.c (print_core, print_actions, print_state) | |
496 | (print_results): Likewise. | |
497 | * src/print_graph.c (print_core, print_actions, print_state) | |
498 | (print_graph): Likewise. | |
499 | * src/conflicts.h: Adjust. | |
500 | ||
1b177bd7 AD |
501 | 2001-12-27 Akim Demaille <akim@epita.fr> |
502 | ||
503 | * src/bison.hairy: Formatting/comment changes. | |
504 | ANSIfy. | |
505 | Remove `register' indications. | |
506 | Add plenty of `static'. | |
507 | ||
7742ddeb AD |
508 | 2001-12-27 Akim Demaille <akim@epita.fr> |
509 | ||
510 | * src/output.c (prepare): Drop the muscle `ntbase' which | |
511 | duplicates ntokens. | |
512 | * src/bison.simple: Formatting/comment changes. | |
513 | Use YYNTOKENS only, which is documented, but not YYNTBASE, which | |
514 | is an undocumented synonym. | |
515 | ||
1fa14068 AD |
516 | 2001-12-22 Akim Demaille <akim@epita.fr> |
517 | ||
518 | * src/output.c (output_table_data): Change the prototype to use | |
519 | `int' for array ranges: some invocations do pass an int, not a | |
520 | short. | |
521 | Reported by Wayne Green. | |
522 | ||
b9752825 AD |
523 | 2001-12-22 Akim Demaille <akim@epita.fr> |
524 | ||
525 | Some actions of web2c.y are improperly triggered. | |
526 | Reported by Mike Castle. | |
527 | ||
528 | * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/. | |
529 | * tests/regression.at (Web2c): Rename as... | |
530 | (Web2c Report): this. | |
531 | (Web2c Actions): New. | |
532 | ||
776209d6 AD |
533 | 2001-12-22 Akim Demaille <akim@epita.fr> |
534 | ||
535 | Reductions in web2c.y are improperly reported. | |
536 | Reported by Mike Castle. | |
537 | ||
538 | * src/conflicts.c (print_reductions): Fix. | |
539 | * tests/regression.at (Web2c): New. | |
540 | ||
275fc3ad AD |
541 | 2001-12-18 Akim Demaille <akim@epita.fr> |
542 | ||
543 | Some host fail on `assert (!"foo")', which expands to | |
544 | ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__)) | |
545 | Reported by Nelson Beebee. | |
546 | ||
547 | * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with | |
548 | `#define it_succeeded 0' and `assert (it_succeeded)'. | |
549 | ||
897668ee MA |
550 | 2001-12-17 Marc Autret <autret_m@epita.fr> |
551 | ||
552 | * src/bison.simple: Don't hard code the skeleton line and filename. | |
553 | * src/output.c (output_parser): Rename 'line' as 'output_line'. | |
554 | New line counter 'skeleton_line' (skeleton-line muscle). | |
555 | ||
ab3399e0 PE |
556 | 2001-12-17 Paul Eggert <eggert@twinsun.com> |
557 | ||
558 | * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that | |
559 | YYDEBUG must be defined to a nonzero value. | |
560 | ||
561 | * src/bison.simple (yytname): Do not assume that the user defines | |
562 | YYDEBUG to a properly parenthesized expression. | |
563 | ||
3877f72b AD |
564 | 2001-12-17 Akim Demaille <akim@epita.fr> |
565 | ||
566 | * src/state.h (state_t): Rename lookaheads as lookaheadsp. | |
567 | nlookaheads is a new member. | |
568 | Adjust all users. | |
569 | * src/lalr.h (nlookaheads): Remove this orphan declaration. | |
570 | * src/lalr.c (initialize_lookaheads): Set nlookaheads for each | |
571 | state. | |
776209d6 | 572 | |
331dbc1b AD |
573 | 2001-12-17 Akim Demaille <akim@epita.fr> |
574 | ||
575 | * src/files.h, src/files.c (open_files, close_files): Remove. | |
576 | * src/main.c (main): Don't open/close files, nor invoke lex_free, | |
577 | let... | |
578 | * src/reader.c (reader): Do it. | |
776209d6 | 579 | |
be750e4c AD |
580 | 2001-12-17 Akim Demaille <akim@epita.fr> |
581 | ||
582 | * src/conflicts.c (print_reductions): Formatting changes. | |
776209d6 | 583 | |
709ae8c6 AD |
584 | 2001-12-17 Akim Demaille <akim@epita.fr> |
585 | ||
586 | * src/conflicts.c (flush_shift): Also adjust lookaheadset. | |
587 | (flush_reduce): New. | |
588 | (resolve_sr_conflict): Adjust. | |
776209d6 | 589 | |
f87685c3 AD |
590 | 2001-12-17 Akim Demaille <akim@epita.fr> |
591 | ||
592 | * src/output.c (output_obstack): Be static and rename as... | |
593 | (format_obstack): this, to avoid any confusion with files.c's | |
594 | output_obstack. | |
595 | * src/reader.h (muscle_obstack): Move to... | |
596 | * src/output.h: here, since it's defined in output.c. | |
597 | ||
837491d8 AD |
598 | 2001-12-17 Akim Demaille <akim@epita.fr> |
599 | ||
600 | * src/output.c (action_row, save_column, default_goto) | |
601 | (sort_actions, matching_state, pack_vector): Better variable | |
602 | locality. | |
603 | ||
796d61fb AD |
604 | 2001-12-17 Akim Demaille <akim@epita.fr> |
605 | ||
606 | * src/output.c: Various formatting changes. | |
776209d6 | 607 | |
64d15509 AD |
608 | 2001-12-17 Akim Demaille <akim@epita.fr> |
609 | ||
610 | * src/files.c (output_files): Free the output_obstack. | |
611 | * src/main.c (main): Call print and print_graph conditionally. | |
612 | * src/print.c (print): Work unconditionally. | |
613 | * src/print_graph.c (print_graph): Work unconditionally. | |
614 | * src/conflicts.c (log_resolution): Output only if verbose_flag. | |
615 | ||
fbc8ecb7 MA |
616 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
617 | ||
618 | * src/output.c (actions_output): Fix. When we use %no-lines, | |
619 | there is one less line per action. | |
620 | ||
f0440388 MA |
621 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
622 | ||
623 | * src/bison.simple: Remove a useless #line directive. | |
624 | s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'. | |
625 | * src/output.c (get_lines_number): New. | |
776209d6 | 626 | (output_parser): Adjust, now takes care about the lines of a |
f0440388 MA |
627 | output muscles. |
628 | Fix line numbering. | |
629 | (actions_output): Computes the number of lines taken by actions. | |
630 | (output_master_parser): Insert new skeleton which is the name of | |
631 | the output parser file name. | |
632 | ||
a79986b8 MA |
633 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
634 | ||
635 | * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. | |
636 | ||
4ec8e00f MA |
637 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
638 | ||
639 | * src/output.c (output_gram): Keep track of the hairy one. | |
640 | ||
1a4648ff AD |
641 | 2001-12-15 Akim Demaille <akim@epita.fr> |
642 | ||
643 | Make `make distcheck' work. | |
644 | ||
645 | * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses | |
646 | system.h which uses libgettext.h. | |
647 | ||
9c2c67e6 AD |
648 | 2001-12-15 Akim Demaille <akim@epita.fr> |
649 | ||
650 | * src/nullable.c (set_nullable): Useless rules must be skipped, | |
651 | otherwise, since we range over their symbols, we might look at a | |
652 | nonterminal which no longer ``exists'', i.e., it is not counted in | |
653 | `nvars', hence we overflow our arrays. | |
654 | ||
93ede233 AD |
655 | 2001-12-15 Akim Demaille <akim@epita.fr> |
656 | ||
657 | The header can also be produced directly, without any obstack! | |
658 | Yahoo! | |
659 | ||
660 | * src/files.c, src/files.h (defines_obstack): Remove. | |
661 | (compute_header_macro): Global. | |
662 | (defines_obstack_save): Remove. | |
663 | * src/reader.c (parse_union_decl): No longer output to | |
664 | defines_obstack: its content can be found in the `stype' muscle | |
665 | anyway. | |
666 | (output_token_translations): Merge into... | |
667 | (symbols_output): this. | |
668 | Rename as... | |
669 | (symbols_save): this. | |
670 | (reader): Adjust. | |
671 | * src/output.c (header_output): New. | |
672 | (output): Call it. | |
673 | ||
2666f928 AD |
674 | 2001-12-15 Akim Demaille <akim@epita.fr> |
675 | ||
676 | * src/reader.c (parse_union_decl): Instead of handling two obstack | |
677 | simultaneously, use one to define the `stype' muscle, and use the | |
678 | value of the latter to fill defines_obstack. | |
679 | (copy_comment): Remove. | |
680 | (copy_comment2): Work for a single obstack. | |
681 | Rename as... | |
682 | (copy_comment): this. | |
683 | ||
428046f8 AD |
684 | 2001-12-15 Akim Demaille <akim@epita.fr> |
685 | ||
686 | * src/lex.c, src/lex.h (xgetc): No longer static. | |
687 | * src/reader.c (parse_union_decl): Revamp. | |
688 | ||
ea52d706 AD |
689 | 2001-12-15 Akim Demaille <akim@epita.fr> |
690 | ||
691 | Still making progress in separating Bison into (i) input, (ii) | |
692 | process, (iii) output: now we can directly output the parser file | |
693 | without using table_obstack at all. | |
694 | ||
695 | * src/files.c, src/files.h (table_obstack): Bye bye. | |
696 | (parser_file_name): New. | |
697 | * src/files.c (compute_output_file_names): Compute it. | |
698 | * src/output.c (actions_output, output_parser) | |
699 | (output_master_parser): To a file instead of an obstack. | |
700 | ||
3f96f4dc AD |
701 | 2001-12-15 Akim Demaille <akim@epita.fr> |
702 | ||
703 | Attach actions to rules, instead of pre-outputting them to | |
704 | actions_obstack. | |
705 | ||
706 | * src/gram.h (rule_t): action and action_line are new members. | |
707 | * src/reader.c (symbol_list): Likewise. | |
708 | (copy_action): Save the actions within the rule. | |
709 | (packgram): Save them in rule_table. | |
710 | * src/output.c (actions_output): New. | |
711 | (output_parser): Use it on `%%actions'. | |
712 | (output_rule_data): Don't free rule_table. | |
713 | (output): Do it. | |
714 | (prepare): Don't save the `action' muscle. | |
715 | * src/bison.simple: s/%%action/%%actions/. | |
716 | ||
51576fb3 AD |
717 | 2001-12-15 Akim Demaille <akim@epita.fr> |
718 | ||
719 | * src/reader.c (copy_action): When --yacc, don't append a `;' | |
720 | to the user action: let it fail if lacking. | |
dee049eb | 721 | Suggested by Arnold Robbins and Tom Tromey. |
51576fb3 | 722 | |
2648a72d AD |
723 | 2001-12-14 Akim Demaille <akim@epita.fr> |
724 | ||
725 | * src/lex.c (literalchar): Simply return the char you decoded, non | |
726 | longer mess around with obstacks and int pointers. | |
727 | Adjust all callers. | |
728 | ||
92790e5b AD |
729 | 2001-12-14 Akim Demaille <akim@epita.fr> |
730 | ||
731 | * src/lex.c (literalchar): Don't escape the special characters, | |
732 | just decode them, and keep them as char (before, eol was output as | |
733 | the 2 char string `\n' etc.). | |
734 | * src/output.c (output_rule_data): Use quotearg to output the | |
735 | token strings. | |
736 | ||
927c1557 PE |
737 | 2001-12-13 Paul Eggert <eggert@twinsun.com> |
738 | ||
739 | * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE): | |
740 | Do not infringe on the global user namespace when using C++. | |
741 | (YYFPRINTF, YYSTDERR): New macros, needed for the above. | |
742 | All uses of `fprintf' and `stderr' changed. | |
743 | ||
744 | * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR. | |
745 | ||
ed8e1f68 AD |
746 | 2001-12-13 Akim Demaille <akim@epita.fr> |
747 | ||
748 | The computation of nullable is broken: it doesn't handle empty | |
749 | RHS's properly. | |
750 | ||
751 | * tests/torture.at (GNU AWK Grammar): New. | |
752 | * tests/sets.at (Nullable): New. | |
753 | * src/nullable.c (set_nullable): Instead of blindly looping over | |
754 | `ritems', loop over the rules, and then over their rhs's. | |
755 | ||
756 | Work around Autotest bugs. | |
757 | ||
758 | * src/warshall.c (bitmatrix_print): Don't use `+--+' as table | |
759 | frame, because Autotest understand lines starting with a `+' as | |
760 | traces from the shell. Then, they are not processed properly. | |
761 | Admittedly an Autotest bug, but we don't have time to wait for | |
762 | Autotest to catch up. | |
763 | * tests/regression.at (Broken Closure): Adjust to the new table | |
764 | frames. | |
765 | Move to... | |
766 | * tests/sets.at: here. | |
767 | ||
cb581495 AD |
768 | 2001-12-13 Akim Demaille <akim@epita.fr> |
769 | ||
770 | * src/closure.c (closure): Use nrules instead of playing tricks | |
771 | with BITS_PER_WORD. | |
772 | ||
2e729273 AD |
773 | 2001-12-13 Akim Demaille <akim@epita.fr> |
774 | ||
775 | * src/print.c (print_actions): Output the handling of `$' as the | |
776 | traces do: shifting the token EOF. Before EOF was treated as a | |
777 | nonterminal. | |
778 | * tests/regression.at: Adjust some tests. | |
779 | * src/print_graph.c (print_core): Complete the set of items via | |
780 | closure. The next-to-final and final states are still unsatisfying, | |
781 | but that's to be addressed elsewhere. | |
782 | No longer output the rule numbers, but do output the state number. | |
783 | A single loop for the shifts + gotos is enough, but picked a | |
784 | distinct color for each. | |
785 | (print_graph): Initialize and finalize closure. | |
786 | ||
107f7dfb AD |
787 | 2001-12-13 Akim Demaille <akim@epita.fr> |
788 | ||
789 | * src/reader.c (readgram): Remove dead code, an strip useless | |
790 | braces. | |
791 | (get_type): Remove, unused. | |
792 | ||
9b53a24f AD |
793 | 2001-12-12 Akim Demaille <akim@epita.fr> |
794 | ||
795 | * src/complain.h, src/complain.c: Remove error_one_per_line, rely | |
796 | on that of lib/error.c. | |
797 | ||
dbfb6dcd AD |
798 | 2001-12-12 Akim Demaille <akim@epita.fr> |
799 | ||
800 | Some hosts don't like `/' in includes. | |
801 | ||
802 | * src/system.h: Include libgettext.h without qualifying the path. | |
803 | * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove | |
804 | $(top_srcdir). | |
805 | ||
c25fb648 MA |
806 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
807 | ||
808 | * src/output.c (output_parser): Remove useless muscle. | |
809 | ||
710ddc4f MA |
810 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
811 | ||
812 | * src/bison.simple: Remove #line just before %%epilogue. It | |
813 | is now handled in ... | |
814 | * src/reader.c (read_additionnal_code): Add the output of a | |
815 | #line for the epilogue. | |
816 | ||
e83d80b8 MA |
817 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
818 | ||
927c1557 | 819 | * src/reader.c (copy_definition): Re-use CPP-outed code which |
e83d80b8 MA |
820 | replace precedent remove. |
821 | * src/bison.simple: Remove #line before %%prologue because | |
822 | %%input-line is wrong at this time. | |
823 | ||
971d5158 MA |
824 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
825 | ||
826 | * src/reader.c (symbols_output): Clean up. | |
927c1557 | 827 | * src/output.c (output_gram, output): Clean up. |
971d5158 | 828 | |
5edafffd AD |
829 | 2001-12-10 Akim Demaille <akim@epita.fr> |
830 | ||
831 | * src/lalr.c (initialize_lookaheads): New. Extracted from... | |
832 | * src/LR0.c (set_state_table): here. | |
833 | * src/lalr.c (lalr): Call it. | |
834 | ||
0279f8e9 AD |
835 | 2001-12-10 Akim Demaille <akim@epita.fr> |
836 | ||
837 | * src/state.h (shifts): Remove the `number' member: shifts are | |
838 | attached to state, hence no longer need to be labelled with a | |
839 | state number. | |
840 | ||
190c4f5f AD |
841 | 2001-12-10 Akim Demaille <akim@epita.fr> |
842 | ||
843 | Now that states have a complete set of members, the linked list of | |
844 | shifts is useless: just fill directly the state's shifts member. | |
845 | ||
846 | * src/state.h (shifts): Remove the `next' member. | |
847 | * src/LR0.c (first_state, last_state): Remove. | |
848 | Adjust the callers. | |
849 | (augment_automaton): Don't look for the shifts that must be added | |
850 | a shift on EOF: it is those of the state we looked for! But now, | |
851 | since shifts are attached, it is no longer needed to looking | |
852 | merely by its id: its number. | |
853 | ||
2a73b93d AD |
854 | 2001-12-10 Akim Demaille <akim@epita.fr> |
855 | ||
856 | * src/LR0.c (augment_automaton): Better variable locality. | |
857 | Remove an impossible branch: if there is a state corresponding to | |
858 | the start symbol being shifted, then there is shift for the start | |
859 | symbol from the initial state. | |
860 | ||
74392f6a AD |
861 | 2001-12-10 Akim Demaille <akim@epita.fr> |
862 | ||
863 | * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state' | |
864 | only when appropriate: when insert_start_shifting_state' is not | |
865 | invoked. | |
866 | * tests/regression.at (Rule Line Numbers): Adjust. | |
867 | ||
37c82725 AD |
868 | 2001-12-10 Akim Demaille <akim@epita.fr> |
869 | ||
870 | * src/LR0.c (augment_automaton): Now that all states have shifts, | |
871 | merge the two cases addition shifts to the initial state. | |
872 | ||
6a164e0c AD |
873 | 2001-12-10 Akim Demaille <akim@epita.fr> |
874 | ||
875 | * src/lalr.c (set_state_table): Move to... | |
876 | * src/LR0.c: here. | |
877 | * src/lalr.c (lalr): Don't call it... | |
878 | * src/LR0.c (generate_states): do it. | |
879 | * src/LR0.h (first_state): Remove, only the table is used. | |
880 | ||
7215de24 AD |
881 | 2001-12-10 Akim Demaille <akim@epita.fr> |
882 | ||
883 | * src/LR0.h (first_shift, first_reduction): Remove. | |
884 | * src/lalr.c: Don't use first_shift: find shifts through the | |
885 | states. | |
886 | ||
80e25d4d AD |
887 | 2001-12-10 Akim Demaille <akim@epita.fr> |
888 | ||
889 | * src/LR0.c: Attach shifts to states as soon as they are | |
890 | computed. | |
891 | * src/lalr.c (set_state_table): Instead of assigning shifts to | |
892 | state, just assert that the mapping was properly done. | |
893 | ||
0ab3728b AD |
894 | 2001-12-10 Akim Demaille <akim@epita.fr> |
895 | ||
896 | * src/LR0.c (insert_start_shift): Rename as... | |
897 | (insert_start_shifting_state): this. | |
898 | (insert_eof_shifting_state, insert_accepting_state): New. | |
899 | (augment_automaton): Adjust. | |
900 | Better locality of the variables. | |
901 | When looking if the start_symbol is shifted from the initial | |
902 | state, using `while (... symbol != start_symbol ...)' sounds | |
903 | better than `while (... symbol < start_symbol ...)': If fail | |
904 | to see how the order between symbols could be relevant! | |
905 | ||
78af9bbc AD |
906 | 2001-12-10 Akim Demaille <akim@epita.fr> |
907 | ||
908 | * src/getargs.h: Don't declare `spec_name_prefix' and | |
909 | `spec_file_prefix', declared by src/files.h. | |
910 | * src/files.c, src/files.h: Default for spec_name_prefix is "yy". | |
911 | * src/muscle_tab.c (muscle_init): Default prefix to NULL. | |
912 | * src/output.c (prepare): Adjust. | |
913 | * src/reader.c (symbols_output): Likewise. | |
914 | * src/vmsgetargs.c: Vaguely adjust, but who cares? | |
915 | ||
bdef2a41 AD |
916 | 2001-12-10 Akim Demaille <akim@epita.fr> |
917 | ||
918 | * src/muscle_tab.c (muscle_init): NULL is a better default than | |
919 | `"0"'. | |
920 | ||
3735969c AD |
921 | 2001-12-10 Akim Demaille <akim@epita.fr> |
922 | ||
923 | * src/reader.c (reader): Calling symbols_output once is enough. | |
924 | ||
49701457 AD |
925 | 2001-12-10 Akim Demaille <akim@epita.fr> |
926 | ||
927 | Now that states have a complete set of members, the linked list of | |
928 | reductions is useless: just fill directly the state's reductions | |
929 | member. | |
930 | ||
931 | * src/state.h (struct reductions): Remove member `number' and | |
932 | `next'. | |
933 | * src/LR0.c (first_reduction, last_reduction): Remove. | |
934 | (save_reductions): Don't link the new reductions, store them in | |
935 | this_state. | |
936 | * src/lalr.c (set_state_table): No need to attach reductions to | |
937 | states, it's already done. | |
938 | * src/output.c (output_actions): No longer free the shifts, then | |
939 | the reductions, then the states: free all the states and their | |
940 | members. | |
941 | ||
0edad749 AD |
942 | 2001-12-10 Akim Demaille <akim@epita.fr> |
943 | ||
944 | * src/options.c (OPTN, DRTV, BOTH): New. | |
945 | (option_table): Use them. | |
946 | ||
0edad749 AD |
947 | * src/muscle_tab.c: Don't include xalloc.h and string.h: that's |
948 | the job of system.h. | |
949 | * src/options.c: Don't include stdio.h and xalloc.h for the same | |
950 | reasons. | |
951 | ||
5449dd0f AD |
952 | 2001-12-10 Akim Demaille <akim@epita.fr> |
953 | ||
954 | * src/output.c (output, prepare): Make sure the values of the | |
955 | muscles `action' and `prologue' are 0-terminated. | |
956 | ||
a870c567 AD |
957 | 2001-12-10 Akim Demaille <akim@epita.fr> |
958 | ||
959 | Clean up GCC warnings. | |
960 | ||
961 | * src/reader.c (copy_action): `buf' is not used. | |
962 | (parse_skel_decl): Be static. | |
963 | * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'. | |
964 | * src/options.h (create_long_option_table): Have a real prototype. | |
965 | * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete) | |
966 | (hash_delete_at): Return const void *. | |
967 | Adjust casts to preserve the const. | |
968 | ||
80df8768 AD |
969 | 2001-12-10 Akim Demaille <akim@epita.fr> |
970 | ||
971 | * configure.in: Require 2.52g. | |
972 | M4 is not needed, but AUTOM4TE is. | |
973 | * m4/m4.m4: Remove. | |
974 | * tests/Makefile.am: Adjust. | |
975 | ||
f693ad14 AD |
976 | 2001-12-10 Akim Demaille <akim@epita.fr> |
977 | ||
978 | One structure for states is enough, even though theoretically | |
979 | there are LR(0) states and LALR(1) states. | |
980 | ||
981 | * src/lalr.h (state_t): Remove. | |
982 | (state_table): Be state_t **, not state_t *. | |
983 | * src/state.h (core, CORE_ALLOC): Rename as... | |
984 | (state_t, STATE_ALLOC): this. | |
985 | Add the LALR(1) members: shifts, reductions, errs. | |
986 | * src/LR0.c (state_table): Rename as... | |
987 | (state_hash): this, to avoid name clashes with the global | |
988 | `state_table'. | |
989 | * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c | |
990 | * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust. | |
991 | ||
74ffbcb6 AD |
992 | 2001-12-10 Akim Demaille <akim@epita.fr> |
993 | ||
994 | Bison dumps core on bash.y. | |
995 | Reported by Pascal Bart. | |
996 | ||
997 | * src/warshall.c (bitmatrix_print): New. | |
998 | (TC): Use it. | |
999 | When performing a transitive closure R(i, j) && R(j, k) => R(i, k), | |
1000 | j must be the outer loop. | |
1001 | * tests/regression.at (Broken Closure): New. | |
1002 | ||
07708e19 AD |
1003 | 2001-12-05 Akim Demaille <akim@epita.fr> |
1004 | ||
1005 | * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and | |
1006 | its argument. | |
1007 |