]>
Commit | Line | Data |
---|---|---|
1 | 2001-12-27 Akim Demaille <akim@epita.fr> | |
2 | ||
3 | * src/reader.c (symbol_list_new): Be sure to initialize all the | |
4 | fields. | |
5 | ||
6 | 2001-12-27 Akim Demaille <akim@epita.fr> | |
7 | ||
8 | All the hacks using a final pseudo state are now useless. | |
9 | ||
10 | * src/LR0.c (set_state_table): state_table holds exactly nstates. | |
11 | * src/lalr.c (nLA): New. | |
12 | (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it | |
13 | instead of lookaheadsp from the pseudo state (nstate + 1). | |
14 | ||
15 | 2001-12-27 Akim Demaille <akim@epita.fr> | |
16 | ||
17 | * src/output.c (action_row, token_actions): Use a state_t instead | |
18 | of a integer, and nlookaheads instead of the following state's | |
19 | lookaheadsp. | |
20 | ||
21 | ||
22 | 2001-12-27 Akim Demaille <akim@epita.fr> | |
23 | ||
24 | * src/conflicts.c (log_resolution, flush_shift) | |
25 | (resolve_sr_conflict, set_conflicts, solve_conflicts) | |
26 | (count_sr_conflicts, count_rr_conflicts, conflicts_output) | |
27 | (conflicts_print, print_reductions): Use a state_t instead of an | |
28 | integer when referring to a state. | |
29 | As much as possible, depend upon nlookaheads, instead of the | |
30 | `lookaheadsp' member of the following state (since lookaheads of | |
31 | successive states are successive, the difference between state n + 1 | |
32 | and n served as the number of lookaheads for state n). | |
33 | * src/lalr.c (add_lookback_edge): Likewise. | |
34 | * src/print.c (print_core, print_actions, print_state) | |
35 | (print_results): Likewise. | |
36 | * src/print_graph.c (print_core, print_actions, print_state) | |
37 | (print_graph): Likewise. | |
38 | * src/conflicts.h: Adjust. | |
39 | ||
40 | 2001-12-27 Akim Demaille <akim@epita.fr> | |
41 | ||
42 | * src/bison.hairy: Formatting/comment changes. | |
43 | ANSIfy. | |
44 | Remove `register' indications. | |
45 | Add plenty of `static'. | |
46 | ||
47 | 2001-12-27 Akim Demaille <akim@epita.fr> | |
48 | ||
49 | * src/output.c (prepare): Drop the muscle `ntbase' which | |
50 | duplicates ntokens. | |
51 | * src/bison.simple: Formatting/comment changes. | |
52 | Use YYNTOKENS only, which is documented, but not YYNTBASE, which | |
53 | is an undocumented synonym. | |
54 | ||
55 | ||
56 | 2001-12-22 Akim Demaille <akim@epita.fr> | |
57 | ||
58 | * src/output.c (output_table_data): Change the prototype to use | |
59 | `int' for array ranges: some invocations do pass an int, not a | |
60 | short. | |
61 | Reported by Wayne Green. | |
62 | ||
63 | 2001-12-22 Akim Demaille <akim@epita.fr> | |
64 | ||
65 | Some actions of web2c.y are improperly triggered. | |
66 | Reported by Mike Castle. | |
67 | ||
68 | * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/. | |
69 | * tests/regression.at (Web2c): Rename as... | |
70 | (Web2c Report): this. | |
71 | (Web2c Actions): New. | |
72 | ||
73 | 2001-12-22 Akim Demaille <akim@epita.fr> | |
74 | ||
75 | Reductions in web2c.y are improperly reported. | |
76 | Reported by Mike Castle. | |
77 | ||
78 | * src/conflicts.c (print_reductions): Fix. | |
79 | * tests/regression.at (Web2c): New. | |
80 | ||
81 | 2001-12-18 Akim Demaille <akim@epita.fr> | |
82 | ||
83 | Some host fail on `assert (!"foo")', which expands to | |
84 | ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__)) | |
85 | Reported by Nelson Beebee. | |
86 | ||
87 | * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with | |
88 | `#define it_succeeded 0' and `assert (it_succeeded)'. | |
89 | ||
90 | 2001-12-17 Marc Autret <autret_m@epita.fr> | |
91 | ||
92 | * src/bison.simple: Don't hard code the skeleton line and filename. | |
93 | * src/output.c (output_parser): Rename 'line' as 'output_line'. | |
94 | New line counter 'skeleton_line' (skeleton-line muscle). | |
95 | ||
96 | 2001-12-17 Paul Eggert <eggert@twinsun.com> | |
97 | ||
98 | * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that | |
99 | YYDEBUG must be defined to a nonzero value. | |
100 | ||
101 | * src/bison.simple (yytname): Do not assume that the user defines | |
102 | YYDEBUG to a properly parenthesized expression. | |
103 | ||
104 | 2001-12-17 Akim Demaille <akim@epita.fr> | |
105 | ||
106 | * src/state.h (state_t): Rename lookaheads as lookaheadsp. | |
107 | nlookaheads is a new member. | |
108 | Adjust all users. | |
109 | * src/lalr.h (nlookaheads): Remove this orphan declaration. | |
110 | * src/lalr.c (initialize_lookaheads): Set nlookaheads for each | |
111 | state. | |
112 | ||
113 | 2001-12-17 Akim Demaille <akim@epita.fr> | |
114 | ||
115 | * src/files.h, src/files.c (open_files, close_files): Remove. | |
116 | * src/main.c (main): Don't open/close files, nor invoke lex_free, | |
117 | let... | |
118 | * src/reader.c (reader): Do it. | |
119 | ||
120 | 2001-12-17 Akim Demaille <akim@epita.fr> | |
121 | ||
122 | * src/conflicts.c (print_reductions): Formatting changes. | |
123 | ||
124 | 2001-12-17 Akim Demaille <akim@epita.fr> | |
125 | ||
126 | * src/conflicts.c (flush_shift): Also adjust lookaheadset. | |
127 | (flush_reduce): New. | |
128 | (resolve_sr_conflict): Adjust. | |
129 | ||
130 | 2001-12-17 Akim Demaille <akim@epita.fr> | |
131 | ||
132 | * src/output.c (output_obstack): Be static and rename as... | |
133 | (format_obstack): this, to avoid any confusion with files.c's | |
134 | output_obstack. | |
135 | * src/reader.h (muscle_obstack): Move to... | |
136 | * src/output.h: here, since it's defined in output.c. | |
137 | ||
138 | 2001-12-17 Akim Demaille <akim@epita.fr> | |
139 | ||
140 | * src/output.c (action_row, save_column, default_goto) | |
141 | (sort_actions, matching_state, pack_vector): Better variable | |
142 | locality. | |
143 | ||
144 | 2001-12-17 Akim Demaille <akim@epita.fr> | |
145 | ||
146 | * src/output.c: Various formatting changes. | |
147 | ||
148 | 2001-12-17 Akim Demaille <akim@epita.fr> | |
149 | ||
150 | * src/files.c (output_files): Free the output_obstack. | |
151 | * src/main.c (main): Call print and print_graph conditionally. | |
152 | * src/print.c (print): Work unconditionally. | |
153 | * src/print_graph.c (print_graph): Work unconditionally. | |
154 | * src/conflicts.c (log_resolution): Output only if verbose_flag. | |
155 | ||
156 | 2001-12-16 Marc Autret <autret_m@epita.fr> | |
157 | ||
158 | * src/output.c (actions_output): Fix. When we use %no-lines, | |
159 | there is one less line per action. | |
160 | ||
161 | 2001-12-16 Marc Autret <autret_m@epita.fr> | |
162 | ||
163 | * src/bison.simple: Remove a useless #line directive. | |
164 | s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'. | |
165 | * src/output.c (get_lines_number): New. | |
166 | (output_parser): Adjust, now takes care about the lines of a | |
167 | output muscles. | |
168 | Fix line numbering. | |
169 | (actions_output): Computes the number of lines taken by actions. | |
170 | (output_master_parser): Insert new skeleton which is the name of | |
171 | the output parser file name. | |
172 | ||
173 | 2001-12-15 Marc Autret <autret_m@epita.fr> | |
174 | ||
175 | * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. | |
176 | ||
177 | 2001-12-15 Marc Autret <autret_m@epita.fr> | |
178 | ||
179 | * src/output.c (output_gram): Keep track of the hairy one. | |
180 | ||
181 | 2001-12-15 Akim Demaille <akim@epita.fr> | |
182 | ||
183 | Make `make distcheck' work. | |
184 | ||
185 | * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses | |
186 | system.h which uses libgettext.h. | |
187 | ||
188 | 2001-12-15 Akim Demaille <akim@epita.fr> | |
189 | ||
190 | * src/nullable.c (set_nullable): Useless rules must be skipped, | |
191 | otherwise, since we range over their symbols, we might look at a | |
192 | nonterminal which no longer ``exists'', i.e., it is not counted in | |
193 | `nvars', hence we overflow our arrays. | |
194 | ||
195 | 2001-12-15 Akim Demaille <akim@epita.fr> | |
196 | ||
197 | The header can also be produced directly, without any obstack! | |
198 | Yahoo! | |
199 | ||
200 | * src/files.c, src/files.h (defines_obstack): Remove. | |
201 | (compute_header_macro): Global. | |
202 | (defines_obstack_save): Remove. | |
203 | * src/reader.c (parse_union_decl): No longer output to | |
204 | defines_obstack: its content can be found in the `stype' muscle | |
205 | anyway. | |
206 | (output_token_translations): Merge into... | |
207 | (symbols_output): this. | |
208 | Rename as... | |
209 | (symbols_save): this. | |
210 | (reader): Adjust. | |
211 | * src/output.c (header_output): New. | |
212 | (output): Call it. | |
213 | ||
214 | 2001-12-15 Akim Demaille <akim@epita.fr> | |
215 | ||
216 | * src/reader.c (parse_union_decl): Instead of handling two obstack | |
217 | simultaneously, use one to define the `stype' muscle, and use the | |
218 | value of the latter to fill defines_obstack. | |
219 | (copy_comment): Remove. | |
220 | (copy_comment2): Work for a single obstack. | |
221 | Rename as... | |
222 | (copy_comment): this. | |
223 | ||
224 | 2001-12-15 Akim Demaille <akim@epita.fr> | |
225 | ||
226 | * src/lex.c, src/lex.h (xgetc): No longer static. | |
227 | * src/reader.c (parse_union_decl): Revamp. | |
228 | ||
229 | 2001-12-15 Akim Demaille <akim@epita.fr> | |
230 | ||
231 | Still making progress in separating Bison into (i) input, (ii) | |
232 | process, (iii) output: now we can directly output the parser file | |
233 | without using table_obstack at all. | |
234 | ||
235 | * src/files.c, src/files.h (table_obstack): Bye bye. | |
236 | (parser_file_name): New. | |
237 | * src/files.c (compute_output_file_names): Compute it. | |
238 | * src/output.c (actions_output, output_parser) | |
239 | (output_master_parser): To a file instead of an obstack. | |
240 | ||
241 | 2001-12-15 Akim Demaille <akim@epita.fr> | |
242 | ||
243 | Attach actions to rules, instead of pre-outputting them to | |
244 | actions_obstack. | |
245 | ||
246 | * src/gram.h (rule_t): action and action_line are new members. | |
247 | * src/reader.c (symbol_list): Likewise. | |
248 | (copy_action): Save the actions within the rule. | |
249 | (packgram): Save them in rule_table. | |
250 | * src/output.c (actions_output): New. | |
251 | (output_parser): Use it on `%%actions'. | |
252 | (output_rule_data): Don't free rule_table. | |
253 | (output): Do it. | |
254 | (prepare): Don't save the `action' muscle. | |
255 | * src/bison.simple: s/%%action/%%actions/. | |
256 | ||
257 | 2001-12-15 Akim Demaille <akim@epita.fr> | |
258 | ||
259 | * src/reader.c (copy_action): When --yacc, don't append a `;' | |
260 | to the user action: let it fail if lacking. | |
261 | Suggested by Arnold Robbins and Tom Tromey. | |
262 | ||
263 | 2001-12-14 Akim Demaille <akim@epita.fr> | |
264 | ||
265 | * src/lex.c (literalchar): Simply return the char you decoded, non | |
266 | longer mess around with obstacks and int pointers. | |
267 | Adjust all callers. | |
268 | ||
269 | 2001-12-14 Akim Demaille <akim@epita.fr> | |
270 | ||
271 | * src/lex.c (literalchar): Don't escape the special characters, | |
272 | just decode them, and keep them as char (before, eol was output as | |
273 | the 2 char string `\n' etc.). | |
274 | * src/output.c (output_rule_data): Use quotearg to output the | |
275 | token strings. | |
276 | ||
277 | 2001-12-13 Paul Eggert <eggert@twinsun.com> | |
278 | ||
279 | * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE): | |
280 | Do not infringe on the global user namespace when using C++. | |
281 | (YYFPRINTF, YYSTDERR): New macros, needed for the above. | |
282 | All uses of `fprintf' and `stderr' changed. | |
283 | ||
284 | * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR. | |
285 | ||
286 | 2001-12-13 Akim Demaille <akim@epita.fr> | |
287 | ||
288 | The computation of nullable is broken: it doesn't handle empty | |
289 | RHS's properly. | |
290 | ||
291 | * tests/torture.at (GNU AWK Grammar): New. | |
292 | * tests/sets.at (Nullable): New. | |
293 | * src/nullable.c (set_nullable): Instead of blindly looping over | |
294 | `ritems', loop over the rules, and then over their rhs's. | |
295 | ||
296 | Work around Autotest bugs. | |
297 | ||
298 | * src/warshall.c (bitmatrix_print): Don't use `+--+' as table | |
299 | frame, because Autotest understand lines starting with a `+' as | |
300 | traces from the shell. Then, they are not processed properly. | |
301 | Admittedly an Autotest bug, but we don't have time to wait for | |
302 | Autotest to catch up. | |
303 | * tests/regression.at (Broken Closure): Adjust to the new table | |
304 | frames. | |
305 | Move to... | |
306 | * tests/sets.at: here. | |
307 | ||
308 | 2001-12-13 Akim Demaille <akim@epita.fr> | |
309 | ||
310 | * src/closure.c (closure): Use nrules instead of playing tricks | |
311 | with BITS_PER_WORD. | |
312 | ||
313 | 2001-12-13 Akim Demaille <akim@epita.fr> | |
314 | ||
315 | * src/print.c (print_actions): Output the handling of `$' as the | |
316 | traces do: shifting the token EOF. Before EOF was treated as a | |
317 | nonterminal. | |
318 | * tests/regression.at: Adjust some tests. | |
319 | * src/print_graph.c (print_core): Complete the set of items via | |
320 | closure. The next-to-final and final states are still unsatisfying, | |
321 | but that's to be addressed elsewhere. | |
322 | No longer output the rule numbers, but do output the state number. | |
323 | A single loop for the shifts + gotos is enough, but picked a | |
324 | distinct color for each. | |
325 | (print_graph): Initialize and finalize closure. | |
326 | ||
327 | 2001-12-13 Akim Demaille <akim@epita.fr> | |
328 | ||
329 | * src/reader.c (readgram): Remove dead code, an strip useless | |
330 | braces. | |
331 | (get_type): Remove, unused. | |
332 | ||
333 | 2001-12-12 Akim Demaille <akim@epita.fr> | |
334 | ||
335 | * src/complain.h, src/complain.c: Remove error_one_per_line, rely | |
336 | on that of lib/error.c. | |
337 | ||
338 | 2001-12-12 Akim Demaille <akim@epita.fr> | |
339 | ||
340 | Some hosts don't like `/' in includes. | |
341 | ||
342 | * src/system.h: Include libgettext.h without qualifying the path. | |
343 | * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove | |
344 | $(top_srcdir). | |
345 | ||
346 | 2001-12-11 Marc Autret <autret_m@epita.fr> | |
347 | ||
348 | * src/output.c (output_parser): Remove useless muscle. | |
349 | ||
350 | 2001-12-11 Marc Autret <autret_m@epita.fr> | |
351 | ||
352 | * src/bison.simple: Remove #line just before %%epilogue. It | |
353 | is now handled in ... | |
354 | * src/reader.c (read_additionnal_code): Add the output of a | |
355 | #line for the epilogue. | |
356 | ||
357 | 2001-12-10 Marc Autret <autret_m@epita.fr> | |
358 | ||
359 | * src/reader.c (copy_definition): Re-use CPP-outed code which | |
360 | replace precedent remove. | |
361 | * src/bison.simple: Remove #line before %%prologue because | |
362 | %%input-line is wrong at this time. | |
363 | ||
364 | 2001-12-10 Marc Autret <autret_m@epita.fr> | |
365 | ||
366 | * src/reader.c (symbols_output): Clean up. | |
367 | * src/output.c (output_gram, output): Clean up. | |
368 | ||
369 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
370 | ||
371 | * src/lalr.c (initialize_lookaheads): New. Extracted from... | |
372 | * src/LR0.c (set_state_table): here. | |
373 | * src/lalr.c (lalr): Call it. | |
374 | ||
375 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
376 | ||
377 | * src/state.h (shifts): Remove the `number' member: shifts are | |
378 | attached to state, hence no longer need to be labelled with a | |
379 | state number. | |
380 | ||
381 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
382 | ||
383 | Now that states have a complete set of members, the linked list of | |
384 | shifts is useless: just fill directly the state's shifts member. | |
385 | ||
386 | * src/state.h (shifts): Remove the `next' member. | |
387 | * src/LR0.c (first_state, last_state): Remove. | |
388 | Adjust the callers. | |
389 | (augment_automaton): Don't look for the shifts that must be added | |
390 | a shift on EOF: it is those of the state we looked for! But now, | |
391 | since shifts are attached, it is no longer needed to looking | |
392 | merely by its id: its number. | |
393 | ||
394 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
395 | ||
396 | * src/LR0.c (augment_automaton): Better variable locality. | |
397 | Remove an impossible branch: if there is a state corresponding to | |
398 | the start symbol being shifted, then there is shift for the start | |
399 | symbol from the initial state. | |
400 | ||
401 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
402 | ||
403 | * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state' | |
404 | only when appropriate: when insert_start_shifting_state' is not | |
405 | invoked. | |
406 | * tests/regression.at (Rule Line Numbers): Adjust. | |
407 | ||
408 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
409 | ||
410 | * src/LR0.c (augment_automaton): Now that all states have shifts, | |
411 | merge the two cases addition shifts to the initial state. | |
412 | ||
413 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
414 | ||
415 | * src/lalr.c (set_state_table): Move to... | |
416 | * src/LR0.c: here. | |
417 | * src/lalr.c (lalr): Don't call it... | |
418 | * src/LR0.c (generate_states): do it. | |
419 | * src/LR0.h (first_state): Remove, only the table is used. | |
420 | ||
421 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
422 | ||
423 | * src/LR0.h (first_shift, first_reduction): Remove. | |
424 | * src/lalr.c: Don't use first_shift: find shifts through the | |
425 | states. | |
426 | ||
427 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
428 | ||
429 | * src/LR0.c: Attach shifts to states as soon as they are | |
430 | computed. | |
431 | * src/lalr.c (set_state_table): Instead of assigning shifts to | |
432 | state, just assert that the mapping was properly done. | |
433 | ||
434 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
435 | ||
436 | * src/LR0.c (insert_start_shift): Rename as... | |
437 | (insert_start_shifting_state): this. | |
438 | (insert_eof_shifting_state, insert_accepting_state): New. | |
439 | (augment_automaton): Adjust. | |
440 | Better locality of the variables. | |
441 | When looking if the start_symbol is shifted from the initial | |
442 | state, using `while (... symbol != start_symbol ...)' sounds | |
443 | better than `while (... symbol < start_symbol ...)': If fail | |
444 | to see how the order between symbols could be relevant! | |
445 | ||
446 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
447 | ||
448 | * src/getargs.h: Don't declare `spec_name_prefix' and | |
449 | `spec_file_prefix', declared by src/files.h. | |
450 | * src/files.c, src/files.h: Default for spec_name_prefix is "yy". | |
451 | * src/muscle_tab.c (muscle_init): Default prefix to NULL. | |
452 | * src/output.c (prepare): Adjust. | |
453 | * src/reader.c (symbols_output): Likewise. | |
454 | * src/vmsgetargs.c: Vaguely adjust, but who cares? | |
455 | ||
456 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
457 | ||
458 | * src/muscle_tab.c (muscle_init): NULL is a better default than | |
459 | `"0"'. | |
460 | ||
461 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
462 | ||
463 | * src/reader.c (reader): Calling symbols_output once is enough. | |
464 | ||
465 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
466 | ||
467 | Now that states have a complete set of members, the linked list of | |
468 | reductions is useless: just fill directly the state's reductions | |
469 | member. | |
470 | ||
471 | * src/state.h (struct reductions): Remove member `number' and | |
472 | `next'. | |
473 | * src/LR0.c (first_reduction, last_reduction): Remove. | |
474 | (save_reductions): Don't link the new reductions, store them in | |
475 | this_state. | |
476 | * src/lalr.c (set_state_table): No need to attach reductions to | |
477 | states, it's already done. | |
478 | * src/output.c (output_actions): No longer free the shifts, then | |
479 | the reductions, then the states: free all the states and their | |
480 | members. | |
481 | ||
482 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
483 | ||
484 | * src/options.c (OPTN, DRTV, BOTH): New. | |
485 | (option_table): Use them. | |
486 | ||
487 | * src/muscle_tab.c: Don't include xalloc.h and string.h: that's | |
488 | the job of system.h. | |
489 | * src/options.c: Don't include stdio.h and xalloc.h for the same | |
490 | reasons. | |
491 | ||
492 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
493 | ||
494 | * src/output.c (output, prepare): Make sure the values of the | |
495 | muscles `action' and `prologue' are 0-terminated. | |
496 | ||
497 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
498 | ||
499 | Clean up GCC warnings. | |
500 | ||
501 | * src/reader.c (copy_action): `buf' is not used. | |
502 | (parse_skel_decl): Be static. | |
503 | * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'. | |
504 | * src/options.h (create_long_option_table): Have a real prototype. | |
505 | * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete) | |
506 | (hash_delete_at): Return const void *. | |
507 | Adjust casts to preserve the const. | |
508 | ||
509 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
510 | ||
511 | * configure.in: Require 2.52g. | |
512 | M4 is not needed, but AUTOM4TE is. | |
513 | * m4/m4.m4: Remove. | |
514 | * tests/Makefile.am: Adjust. | |
515 | ||
516 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
517 | ||
518 | One structure for states is enough, even though theoretically | |
519 | there are LR(0) states and LALR(1) states. | |
520 | ||
521 | * src/lalr.h (state_t): Remove. | |
522 | (state_table): Be state_t **, not state_t *. | |
523 | * src/state.h (core, CORE_ALLOC): Rename as... | |
524 | (state_t, STATE_ALLOC): this. | |
525 | Add the LALR(1) members: shifts, reductions, errs. | |
526 | * src/LR0.c (state_table): Rename as... | |
527 | (state_hash): this, to avoid name clashes with the global | |
528 | `state_table'. | |
529 | * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c | |
530 | * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust. | |
531 | ||
532 | 2001-12-10 Akim Demaille <akim@epita.fr> | |
533 | ||
534 | Bison dumps core on bash.y. | |
535 | Reported by Pascal Bart. | |
536 | ||
537 | * src/warshall.c (bitmatrix_print): New. | |
538 | (TC): Use it. | |
539 | When performing a transitive closure R(i, j) && R(j, k) => R(i, k), | |
540 | j must be the outer loop. | |
541 | * tests/regression.at (Broken Closure): New. | |
542 | ||
543 | 2001-12-05 Akim Demaille <akim@epita.fr> | |
544 | ||
545 | * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and | |
546 | its argument. | |
547 |