]>
Commit | Line | Data |
---|---|---|
0e721e75 AD |
1 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2 | ||
3 | * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused. | |
4 | * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET): | |
5 | Ditto. | |
6 | ||
7 | ||
0fb1ffb1 AD |
8 | 2002-03-04 Akim Demaille <akim@epita.fr> |
9 | ||
10 | * src/lalr.c (F): Now a bitset*. | |
11 | Adjust all dependencies. | |
12 | ||
13 | ||
b86796bf AD |
14 | 2002-03-04 Akim Demaille <akim@epita.fr> |
15 | ||
16 | * src/conflicts.c (shiftset, lookaheadset): Now bitset. | |
17 | Adjust all dependencies. | |
18 | ||
19 | ||
602bbf31 AD |
20 | 2002-03-04 Akim Demaille <akim@epita.fr> |
21 | ||
22 | * src/L0.c, src/LR0.h (nstates): Be size_t. | |
23 | Adjust comparisons (signed vs unsigned). | |
24 | * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a | |
25 | bitset*. | |
26 | Adjust all dependencies. | |
27 | ||
28 | ||
d8a0245c AD |
29 | 2002-03-04 Akim Demaille <akim@epita.fr> |
30 | ||
31 | * src/closure.c (firsts): Now, also a bitset. | |
32 | Adjust all dependencies. | |
33 | (varsetsize): Remove, now unused. | |
34 | * src/warshall.h, src/warshall.c: Now work on arrays of bitsets. | |
35 | ||
34ba9743 AD |
36 | 2002-03-04 Akim Demaille <akim@epita.fr> |
37 | ||
38 | * src/print.c: Convert to use bitset.h, not hand coded iterations | |
39 | over ints. | |
40 | ||
41 | ||
ed86e78c AD |
42 | 2002-03-04 Akim Demaille <akim@epita.fr> |
43 | ||
44 | * src/reduce.c: Convert to use bitset.h, not hand coded BSet. | |
45 | ||
dfdb1797 AD |
46 | 2002-03-04 Akim Demaille <akim@epita.fr> |
47 | ||
48 | * src/closure.c (ruleset): Be a bitset. | |
49 | (rulesetsize): Remove. | |
50 | ||
51 | ||
7086e707 AD |
52 | 2002-03-04 Akim Demaille <akim@epita.fr> |
53 | ||
54 | * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c, | |
55 | * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, | |
56 | * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New. | |
57 | * src/closure.c (fderives): Be an array of bitsets. | |
58 | ||
98254360 RA |
59 | 2002-02-28 Robert Anisko <robert@lrde.epita.fr> |
60 | ||
61 | * data/bison.c++: Merge the two generated headers. Insert a copyright | |
62 | notice in each output file. | |
63 | ||
a75c057f AD |
64 | 2002-02-28 Akim Demaille <akim@epita.fr> |
65 | ||
66 | * data/bison.c++: Copy the prologue of bison.simple to fetch | |
67 | useful M4 definitions, such as b4_header_guard. | |
68 | ||
06b00abc AD |
69 | 2002-02-25 Akim Demaille <akim@epita.fr> |
70 | ||
71 | * src/getargs.c (version): Give the name of the authors, and use a | |
a75c057f AD |
72 | translator friendly scheme for the bgr |
73 | copyright notice. | |
06b00abc | 74 | |
70e7d534 AD |
75 | 2002-02-25 Akim Demaille <akim@epita.fr> |
76 | ||
77 | * src/output.c (header_output): Remove, now handled completely via | |
78 | M4. | |
79 | ||
abe017f6 AD |
80 | 2002-02-25 Akim Demaille <akim@epita.fr> |
81 | ||
82 | * m4/m4.m4: New, from CVS Autoconf. | |
83 | * configure.in: Invoke it. | |
84 | * src/output.c (output_skeleton): Use its result instead of the | |
85 | hard coded name. | |
86 | ||
381fb12e AD |
87 | 2002-02-25 Akim Demaille <akim@epita.fr> |
88 | ||
89 | * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from | |
90 | Fileutils 4.1.5. | |
91 | * configure.in: Invoke UTILS_FUNC_MKSTEMP. | |
92 | * src/output.c (output_skeleton): Use mkstemp to create a real | |
93 | temporary file. | |
94 | Move the filling of `skeleton' and its muscle to... | |
95 | (prepare): here. | |
96 | (output): Move the definition of the prologue muscle to... | |
97 | (prepare): here. | |
98 | * src/system.h (DEFAULT_TMPDIR): New. | |
99 | ||
6f38107f PE |
100 | 2002-02-14 Paul Eggert <eggert@twinsun.com> |
101 | ||
102 | Remove the support for C++ namespace cleanliness; it was | |
103 | causing more problems than it was curing, since it didn't work | |
104 | properly on some nonstandard C++ compilers. This can wait | |
105 | for a proper C++ parser. | |
106 | ||
107 | * NEWS: Document this. | |
108 | * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention | |
109 | of C++, as it's treated like C now. | |
110 | * src/bison.simple (YYSTD): Remove. | |
111 | (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL): | |
112 | Treat C++ just like Standard C instead of trying to support | |
113 | namespace cleanliness. | |
114 | ||
80cce3da AD |
115 | 2002-02-14 Akim Demaille <akim@epita.fr> |
116 | ||
117 | * tests/regression.at (else): Adjust to Andreas' change. | |
118 | ||
842e8679 AD |
119 | 2002-02-14 Akim Demaille <akim@epita.fr> |
120 | ||
121 | * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c. | |
122 | ||
4bda3f10 AD |
123 | 2002-02-13 Andreas Schwab <schwab@suse.de> |
124 | ||
125 | * src/output.c (output_rule_data): Don't output NULL, it might | |
126 | not be defined yet. | |
127 | ||
4162fa07 | 128 | 2002-02-11 Robert Anisko <robert@lrde.epita.fr> |
b418ecd8 | 129 | |
4162fa07 RA |
130 | * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue. |
131 | (Copyright notice): Update. | |
b418ecd8 | 132 | |
bd16a5dc AD |
133 | 2002-02-11 Akim Demaille <akim@epita.fr> |
134 | ||
135 | * tests/regression.at (%nonassoc and eof): Don't include | |
136 | nonportable headers. | |
137 | ||
8d69a1a3 RA |
138 | 2002-02-08 Robert Anisko <robert@lrde.epita.fr> |
139 | ||
140 | * data/bison.c++: Correct error recovery. Make the user able to | |
141 | initialize the starting location. | |
142 | ||
9b2d0677 AD |
143 | 2002-02-07 Akim Demaille <akim@epita.fr> |
144 | ||
145 | * tests/input.at: New. | |
146 | ||
69e2658b RA |
147 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
148 | ||
149 | * data/bison.c++: Replace some direct m4 expansions by constants. Be | |
9b2d0677 | 150 | more consistent when naming methods and variables. Put preprocessor |
69e2658b RA |
151 | directives around tables only needed for debugging. |
152 | ||
4aacc3a7 RA |
153 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
154 | ||
155 | * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in | |
156 | C++ parsers. | |
157 | (yy::b4_name::parse): Use print_. | |
158 | ||
762a801e RA |
159 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
160 | ||
161 | * data/bison.c++ (yy::b4_name::parse): Error recovery is back. | |
162 | ||
4bb2bc3f RA |
163 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
164 | ||
165 | * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in | |
166 | C++ parsers. | |
167 | (yy::b4_name::parse): Build verbose error messages, and use error_. | |
168 | ||
6b45a3ca RA |
169 | 2002-02-06 Robert Anisko <robert@lrde.epita.fr> |
170 | ||
171 | * data/bison.c++: Fix m4 quoting in comments. | |
172 | ||
50997c6e RA |
173 | 2002-02-06 Robert Anisko <robert@lrde.epita.fr> |
174 | ||
175 | * data/bison.c++: Adjust the parser code. Fix some muscles that were | |
176 | not expanded by m4. | |
177 | ||
3f3eed27 AD |
178 | 2002-02-05 Akim Demaille <akim@epita.fr> |
179 | ||
180 | * data/bison.c++: Adjust to the M4 back end. | |
181 | More is certainly needed. | |
182 | ||
be2a1a68 AD |
183 | 2002-02-05 Akim Demaille <akim@epita.fr> |
184 | ||
185 | Give a try to M4 as a back end. | |
186 | ||
187 | * lib/readpipe.c: New, from wdiff. | |
188 | * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and | |
189 | BISON_HAIRY. | |
190 | * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS | |
191 | specific values. Now it is m4 that performs the lookup. | |
192 | * src/parse-skel.y: Remove. | |
193 | * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New. | |
194 | * src/output.c (actions_output, guards_output) | |
195 | (token_definitions_output): No longer keeps track of the output | |
196 | line number, hence remove the second argument. | |
197 | (guards_output): Check against the guard member of a rule, not the | |
198 | action member. | |
199 | Adjust callers. | |
200 | (output_skeleton): Don't look for the skeleton location, let m4 do | |
201 | that. | |
202 | Create `/tmp/muscles.m4'. This is temporary, a proper temporary | |
203 | file will be used. | |
204 | Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton. | |
205 | (prepare): Given that for the time being changesyntax is not | |
206 | usable in M4, rename the muscles using `-' to `_'. | |
207 | Define `defines_flag', `output_parser_name' and `output_header_name'. | |
208 | * src/output.h (actions_output, guards_output) | |
209 | (token_definitions_output): Adjust prototypes. | |
210 | * src/scan-skel.l: Instead of scanning the skeletons, it now | |
211 | processes the output of m4: `__oline__' and `#output'. | |
212 | * data/bison.simple: Adjust to be used by M4(sugar). | |
213 | * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up | |
214 | to date. | |
215 | * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR' | |
216 | instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'. | |
217 | * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New, | |
218 | shamelessly stolen from CVS Autoconf. | |
219 | ||
beda758b AD |
220 | 2002-02-05 Akim Demaille <akim@epita.fr> |
221 | ||
222 | * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version. | |
223 | * configure.in: Check for the declarations of free and malloc. | |
224 | * src/muscle_tab.c: Adjust. | |
225 | ||
5ece6d43 AD |
226 | 2002-02-05 Akim Demaille <akim@epita.fr> |
227 | ||
228 | * src/muscle_tab.c (muscle_init): Don't default to NULL muscle | |
229 | which have no values. | |
230 | ||
5bb18f9a AD |
231 | 2002-02-05 Akim Demaille <akim@epita.fr> |
232 | ||
233 | * src/bison.simple, src/bison.hairy, src/bison.c++: Move to... | |
234 | * data/: here. | |
235 | ||
894dd62e PE |
236 | 2002-01-29 Paul Eggert <eggert@twinsun.com> |
237 | ||
238 | * src/bison.simple (YYSIZE_T): Do not define merely because | |
239 | YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined. | |
240 | On some platforms, <alloca.h> does not declare YYSTD (size_t). | |
241 | ||
82841af7 AD |
242 | 2002-01-27 Akim Demaille <akim@epita.fr> |
243 | ||
244 | Fix `%nonassoc and eof'. | |
245 | ||
246 | * src/state.c (errs_dup): Aaaah! The failure was due to bytes | |
247 | which were not properly copied! Replace | |
248 | memcpy (res->errs, src->errs, src->nerrs); | |
249 | with | |
250 | memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0])); | |
251 | !!! | |
252 | * tests/regression.at (%nonassoc and eof): Adjust to newest | |
253 | Autotest: `.' is not in the PATH. | |
254 | ||
318b76e9 AD |
255 | 2002-01-27 Akim Demaille <akim@epita.fr> |
256 | ||
257 | * tests/sets.at (AT_EXTRACT_SETS): New. | |
258 | (Nullable): Use it. | |
259 | (Firsts): New. | |
260 | ||
30d2f3d5 AD |
261 | 2002-01-26 Akim Demaille <akim@epita.fr> |
262 | ||
263 | * tests/actions.at, tests/calc.at, tests/headers.at, | |
264 | * tests/torture.at: Adjust to the newest Autotest which no longer | |
265 | forces `.' in the PATH. | |
266 | ||
30f8c395 AD |
267 | 2002-01-25 Akim Demaille <akim@epita.fr> |
268 | ||
269 | * tests/regression.at (%nonassoc and eof): New. | |
270 | Suggested by Robert Anisko. | |
271 | ||
29ae55f1 AD |
272 | 2002-01-24 Akim Demaille <akim@epita.fr> |
273 | ||
274 | Bison dumps core when trying to complain about broken input files. | |
275 | Reported by Cris van Pelt. | |
276 | ||
277 | * src/lex.c (parse_percent_token): Be sure to set token_buffer. | |
278 | * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge | |
279 | into... | |
280 | (Invalid inputs): Strengthen: exercise parse_percent_token. | |
281 | ||
2b548aa6 RA |
282 | 2002-01-24 Robert Anisko <robert.anisko@epita.fr> |
283 | ||
284 | * src/Makefile.am: Add bison.c++. | |
285 | * src/bison.c++: New skeleton. | |
286 | ||
bb0146c2 AD |
287 | 2002-01-21 Paolo Bonzini <bonzini@gnu.org> |
288 | ||
289 | * po/it.po: New. | |
290 | ||
bec30531 AD |
291 | 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net> |
292 | ||
293 | * src/files.c (skeleton_find) [MSDOS]: Fix cp definition. | |
294 | ||
fc6edc45 MA |
295 | 2002-01-20 Marc Autret <marc@gnu.org> |
296 | ||
297 | * src/files.c (compute_output_file_names): Fix | |
298 | ||
5e5d5415 MA |
299 | 2002-01-20 Marc Autret <marc@gnu.org> |
300 | ||
301 | * tests/output.at: New test. | |
302 | * src/files.c (compute_base_names): Don't map extensions when | |
303 | the YACC flag is set, use defaults. | |
304 | Reported by Evgeny Stambulchik. | |
305 | ||
44ea3fbd MA |
306 | 2002-01-20 Marc Autret <marc@gnu.org> |
307 | ||
bb0146c2 | 308 | * src/system.h: Need to define __attribute__ away for non-GCC |
44ea3fbd MA |
309 | compilers as well (i.e. the vendor C compiler). |
310 | Suggested by Albert Chin-A-Young. | |
311 | ||
338963d1 TVH |
312 | 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be> |
313 | ||
314 | * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the | |
315 | canonical definition. | |
316 | * src/system.h: Use the canonical definition for PARAMS (avoids | |
317 | a conflict with the macro from lib/hash.h). | |
318 | ||
c57b2479 AD |
319 | 2002-01-11 Akim Demaille <akim@epita.fr> |
320 | ||
321 | * configure.in: Use AC_FUNC_STRNLEN. | |
d9e9746c | 322 | Fixes the failures observed on AIX 4.3 by H.Merijn Brand. |
c57b2479 | 323 | |
b85810ae AD |
324 | 2002-01-09 Akim Demaille <akim@epita.fr> |
325 | ||
326 | * src/files.c, src/files.h (output_infix): New. | |
327 | (tab_extension): Remove. | |
328 | (compute_base_names): Compute the former, drop the latter. | |
329 | * src/output.c (prepare): Insert the muscles `output-infix', and | |
330 | `output-suffix'. | |
331 | * src/parse-skel.y (string, string.1): New. | |
332 | (section.header): Use it. | |
333 | (section.yacc): Remove. | |
334 | (prefix): Remove too. | |
335 | * src/scan-skel.l: Adjust. | |
336 | * src/bison.simple, src/bison.hairy: Adjust. | |
337 | ||
cae60122 AD |
338 | 2002-01-09 Akim Demaille <akim@epita.fr> |
339 | ||
340 | * configure.in (WERROR_CFLAGS): Compute it. | |
341 | * src/Makefile.am (CFLAGS): Pass it. | |
342 | * tests/atlocal.in (CFLAGS): Idem. | |
343 | * src/files.c: Fix a few warnings. | |
344 | (get_extension_index): Remove, unused. | |
345 | ||
ae404801 AD |
346 | 2002-01-08 Akim Demaille <akim@epita.fr> |
347 | ||
348 | * src/getargs.c (AS_FILE_NAME): New. | |
349 | (getargs): Use it to convert DOSish file names. | |
350 | * src/files.c (base_name): Rename as full_base_name to avoid | |
351 | clashes with `base_name ()'. | |
352 | (filename_split): New. | |
353 | (compute_base_names): N-th rewrite, using filename_split. | |
354 | ||
22312b71 AD |
355 | 2002-01-08 Akim Demaille <akim@epita.fr> |
356 | ||
357 | * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c: | |
358 | New, stolen from the Fileutils 4.1. | |
359 | * lib/Makefile.am (libbison_a_SOURCES): Adjust. | |
360 | * configure.in: Check for the presence of memrchr, and of its | |
361 | prototype. | |
362 | ||
a67cef01 TVH |
363 | 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be> |
364 | ||
365 | * lib/hash.h (__P): Added definition for this macro. | |
366 | * src/Makefile.am: Add parse-skel.c and scan-skel.c to | |
367 | BUILT_SOURCES, to ensure they are generated first. | |
368 | * src/parse-skel.y: Use YYERROR_VERBOSE instead of | |
369 | %error-verbose to allow bootstrapping with bison 1.30x. | |
370 | ||
2b25d624 AD |
371 | 2002-01-06 Akim Demaille <akim@epita.fr> |
372 | ||
373 | * src/reader.c (parse_braces): Don't fetch the next char, the | |
374 | convention is to fetch on entry. | |
375 | * tests/torture.at (GNU Cim Grammar): Reintroduce their weird | |
376 | 'switch' without a following semicolon. | |
377 | * tests/regression.at (braces parsing): New. | |
378 | ||
3460813b AD |
379 | 2002-01-06 Akim Demaille <akim@epita.fr> |
380 | ||
381 | Bison is dead wrong in its RR conflict reports. | |
382 | ||
383 | * tests/torture.at (GNU Cim Grammar): New. | |
384 | * src/conflicts.c (count_rr_conflicts): Fix. | |
385 | ||
73784c64 AD |
386 | 2002-01-06 Akim Demaille <akim@epita.fr> |
387 | ||
388 | Creating package.m4 from configure.ac causes too many problems. | |
389 | ||
390 | * tests/Makefile.am (package.m4): Create it by hand, | |
391 | AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf. | |
392 | ||
25d81090 AD |
393 | 2002-01-06 Akim Demaille <akim@epita.fr> |
394 | ||
395 | * src/Makefile.am (bison_SOURCES): Add parse-skel.h and | |
396 | skeleton.h. | |
397 | ||
a9b8959e PE |
398 | 2002-01-04 Paul Eggert <eggert@twinsun.com> |
399 | ||
400 | * doc/bison.texinfo (Debugging): | |
401 | Remove YYSTDERR; it's no longer defined or used. | |
402 | Also, s/cstdio.h/cstdio/. | |
403 | ||
25d81090 AD |
404 | 2002-01-03 Akim Demaille <akim@epita.fr> |
405 | ||
406 | * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf. | |
407 | ||
1109455c AD |
408 | 2002-01-03 Akim Demaille <akim@epita.fr> |
409 | ||
410 | * src/parse-skel.y (process_skeleton): Don't bind the parser's | |
411 | tracing code to --trace, wait for a better --trace option, with | |
412 | args. | |
413 | ||
7ea5e977 AD |
414 | 2002-01-03 Akim Demaille <akim@epita.fr> |
415 | ||
416 | * src/bison.simple (YYSTDERR): Remove, replace `stderr'. | |
417 | The ISO C++ standard is extremely clear about it: stderr is | |
418 | considered a macro, not a regular symbol (see table 94 `Header | |
419 | <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files). | |
420 | Therefore std:: does not apply to it. It still does with fprintf. | |
421 | Also, s/cstdio.h/cstdio/. | |
422 | ||
fab5b110 AD |
423 | 2002-01-03 Akim Demaille <akim@epita.fr> |
424 | ||
425 | * lib/quotearg.c: Use `#include "..."' instead of `#include <...>' | |
426 | for non system headers. | |
427 | ||
aed7fd9b AD |
428 | 2002-01-02 Akim Demaille <akim@epita.fr> |
429 | ||
430 | Equip the skeleton chain with location tracking, runtime trace, | |
431 | pure parser and scanner. | |
432 | ||
433 | * src/parse-skel.y: Request a pure parser, locations, and prefix | |
434 | renaming. | |
435 | (%union): Having several members with the same type does not help | |
436 | type mismatches, simplify. | |
437 | (YYPRINT, yyprint): New. | |
438 | (yyerror): ``Rename'' (there is a #define yyerror skel_error) as... | |
439 | (skel_error): this. | |
440 | Handle locations. | |
441 | * src/scan-skel.l: Adjust to these changes. | |
442 | * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP) | |
443 | (LOCATION_PRINT, skel_control_t): New. | |
444 | ||
24fad99e AD |
445 | 2001-12-30 Akim Demaille <akim@epita.fr> |
446 | ||
447 | * src/parse-skel.y: Get rid of the shift/reduce conflict: | |
448 | replace `gb' with BLANKS. | |
449 | * src/scan-skel.l: Adjust. | |
450 | ||
a4b36db4 AD |
451 | 2001-12-30 Akim Demaille <akim@epita.fr> |
452 | ||
453 | * src/system.h: We don't need nor want bcopy. | |
454 | Throw away MS-DOS crap: we don't need getpid. | |
455 | * configure.in: We don't need strndup. It was even causing | |
456 | problems: because Flex includes the headers *before* us, | |
457 | _GNU_SOURCE is not defined by config.h, and therefore strndup was | |
458 | not visible. | |
459 | * lib/xstrndup.c: New. | |
460 | * src/scan-skel.l: Use it. | |
461 | Be sure to initialize yylval.muscle member when scanning a MUSCLE. | |
462 | * src/parse-skel.y: Use %directives instead of #defines. | |
463 | ||
1239777d AD |
464 | 2001-12-30 Akim Demaille <akim@epita.fr> |
465 | ||
466 | * src/skeleton.h: New. | |
467 | * src/output.c (output_parser, output_master_parser): Remove, dead | |
468 | code. | |
469 | * src/output.h (get_lines_number, actions_output, guards_output) | |
470 | (token_definitions_output): Prototype them. | |
471 | * src/parse-skel.y: Add the license notice. | |
472 | Include output.h and skeleton.h. | |
473 | (process_skeleton): Returns void, and takes a single parameter. | |
474 | * src/scan-skel.l: Add the license notice. | |
475 | Include skeleton.h. | |
476 | Don't use %option yylineno: it seems that then Flex imagines | |
477 | REJECT has been used, and therefore it won't reallocate its | |
478 | buffers (which makes no other sense to me than a bug). It results | |
479 | in warnings for `unused: yy_flex_realloc'. | |
480 | ||
9b3add5b RA |
481 | 2001-12-30 Robert Anisko <robert.anisko@epita.fr> |
482 | ||
483 | * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING) | |
484 | (MUSCLE_INSERT_PREFIX): ...to there. | |
485 | * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING) | |
486 | (MUSCLE_INSERT_PREFIX): Move from here... | |
487 | ||
488 | * src/bison.hairy: Add a section directive. Put braces around muscle | |
489 | names. This parser skeleton is still broken, but Bison should not | |
490 | choke on a bad muscle 'syntax'. | |
491 | * src/bison.simple: Add a section directive. Put braces around muscle | |
492 | names. | |
493 | ||
494 | * src/files.h (strsuffix, stringappend): Add declarations. | |
495 | (tab_extension): Add declaration. | |
496 | (short_base_name): Add declaration. | |
497 | ||
498 | * src/files.c (strsuffix, stringappend): No longer static. These | |
499 | functions are used in the skeleton parser. | |
500 | (tab_extension): New. | |
501 | (compute_base_names): Use the computations done in this function | |
fab5b110 | 502 | to guess if the generated parsers should have '.tab' in their |
9b3add5b RA |
503 | names. |
504 | (short_base_name): No longer static. | |
505 | ||
506 | * src/output.c (output_skeleton): New. | |
507 | (output): Disable call to output_master_parser, and give a try to | |
508 | a new skeleton handling system. | |
509 | (guards_output, actions_output): No longer static. | |
510 | (token_definitions_output, get_lines_number): No longer static. | |
511 | ||
512 | * configure.in: Use AM_PROG_LEX and AC_PROG_YACC. | |
513 | ||
fab5b110 | 514 | * src/Makefile.am (bison_SOURCES): Add scan-skel.l and |
9b3add5b RA |
515 | parse-skel.y. |
516 | ||
517 | * src/parse-skel.y: New file. | |
518 | * src/scan-skel.l: New file. | |
519 | ||
b5b61c61 AD |
520 | 2001-12-29 Akim Demaille <akim@epita.fr> |
521 | ||
522 | %name-prefix is broken. | |
523 | ||
524 | * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy". | |
525 | Adjust all dependencies. | |
526 | * tests/headers.at (export YYLTYPE): Strengthen this test: use | |
527 | %name-prefix. | |
528 | ||
529 | Renaming yylval but not yylloc is not consistent. Now we do. | |
530 | ||
531 | * src/bison.simple: Prefix yylloc if used. | |
532 | * doc/bison.texinfo (Decl Summary): Document that. | |
533 | ||
8c9a50be AD |
534 | 2001-12-29 Akim Demaille <akim@epita.fr> |
535 | ||
536 | * doc/bison.texinfo: Promote `%long-directive' over | |
537 | `%long_directive'. | |
538 | Remove all references to fixed-output-files, yacc is enough. | |
539 | ||
d99361e6 AD |
540 | 2001-12-29 Akim Demaille <akim@epita.fr> |
541 | ||
542 | * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the | |
543 | user prologue. These are defaults. | |
544 | * tests/actions.at (Mid-rule actions): Make sure the user can | |
545 | define YYDEBUG and YYERROR_VERBOSE. | |
546 | ||
b9cecb91 AD |
547 | 2001-12-29 Akim Demaille <akim@epita.fr> |
548 | ||
549 | * src/output.c (header_output): Don't forget to export YYLTYPE and | |
550 | yylloc. | |
551 | * tests/headers.at (export YYLTYPE): New, make sure it does. | |
552 | * tests/regression.at (%union and --defines, Invalid CPP headers): | |
553 | Move to... | |
554 | * tests/headers.at: here. | |
555 | ||
aea13e97 AD |
556 | 2001-12-29 Akim Demaille <akim@epita.fr> |
557 | ||
558 | * src/gram.h (rule_s): Member `assoc' is of type `associativity'. | |
559 | ||
931394cb AD |
560 | 2001-12-29 Akim Demaille <akim@epita.fr> |
561 | ||
562 | * tests/actions.at (Mid-rule actions): Output on a single line | |
563 | instead of several. | |
564 | ||
704a47c4 AD |
565 | 2001-12-29 Akim Demaille <akim@epita.fr> |
566 | ||
567 | * doc/bison.texinfo: Formatting changes. | |
568 | ||
091e20bb AD |
569 | 2001-12-29 Akim Demaille <akim@epita.fr> |
570 | ||
571 | Don't store the token defs in a muscle, just be ready to output it | |
572 | on command. Now possible via `symbols'. Fixes a memory leak. | |
573 | ||
574 | * src/output.c (token_definitions_output): New. | |
575 | (output_parser, header_output): Use it. | |
576 | * src/reader.c (symbols_save): Remove. | |
577 | ||
cce71710 AD |
578 | 2001-12-29 Akim Demaille <akim@epita.fr> |
579 | ||
580 | * src/bison.simple: Do not provide a default for YYSTYPE and | |
581 | YYLTYPE before the user's prologue. Otherwise it's hardly... a | |
582 | default. | |
583 | ||
82c035a8 AD |
584 | 2001-12-29 Akim Demaille <akim@epita.fr> |
585 | ||
586 | Mid-rule actions are simply... ignored! | |
587 | ||
588 | * src/reader.c (readgram): Be sure to attach mid-rule actions to | |
589 | the empty-rule associated to the dummy symbol, not to the host | |
590 | rule. | |
591 | * tests/actions.at (Mid-rule actions): New. | |
592 | ||
8419d367 AD |
593 | 2001-12-29 Akim Demaille <akim@epita.fr> |
594 | ||
595 | Memory leak. | |
596 | ||
597 | * src/reader.c (reader): Free grammar. | |
598 | ||
375d5806 AD |
599 | 2001-12-29 Akim Demaille <akim@epita.fr> |
600 | ||
601 | Memory leak. | |
602 | ||
603 | * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here, | |
604 | since it allocates it for each state, although only one is needed. | |
605 | (allocate_storage): Do it here. | |
606 | ||
f51cb8ff AD |
607 | 2001-12-29 Akim Demaille <akim@epita.fr> |
608 | ||
609 | * src/options.h, src/options.c (create_long_option_table): Rename | |
610 | as... | |
611 | (long_option_table_new): this, with a clearer prototype. | |
612 | (percent_table): Remove, unused, | |
613 | * src/getargs.c (getargs): Adjust. | |
614 | ||
29e88316 AD |
615 | 2001-12-29 Akim Demaille <akim@epita.fr> |
616 | ||
617 | * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c | |
618 | * src/print.c, src/print_graph.c, src/state.h: Rename state_table | |
619 | as states. | |
620 | ||
b9f71f19 AD |
621 | 2001-12-29 Akim Demaille <akim@epita.fr> |
622 | ||
623 | * src/lalr.c (build_relations): Rename `states' as `states1'. | |
624 | Sorry, I don't understand exactly what it is, no better name... | |
625 | ||
1a2b5d37 AD |
626 | 2001-12-29 Akim Demaille <akim@epita.fr> |
627 | ||
628 | * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c | |
629 | * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c | |
630 | * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table | |
631 | as rules. | |
632 | ||
1cca533e AD |
633 | 2001-12-29 Akim Demaille <akim@epita.fr> |
634 | ||
635 | * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long | |
636 | ago. | |
637 | ||
c03ae966 AD |
638 | 2001-12-29 Akim Demaille <akim@epita.fr> |
639 | ||
640 | * src/reader.c, src/reader.h (user_toknums): Remove. | |
641 | Adjust all users to use symbols[i]->user_token_number. | |
642 | ||
5a670b1e AD |
643 | 2001-12-29 Akim Demaille <akim@epita.fr> |
644 | ||
645 | * src/gram.c, src/gram.h (sprec, sassoc): Remove. | |
646 | Adjust all users to use symbols[i]->prec or ->assoc. | |
647 | ||
ad949da9 AD |
648 | 2001-12-29 Akim Demaille <akim@epita.fr> |
649 | ||
650 | * src/reader.c, src/reader.h (tags): Remove. | |
651 | Adjust all users to use symbols[i]->tag. | |
652 | ||
0e78e603 AD |
653 | 2001-12-29 Akim Demaille <akim@epita.fr> |
654 | ||
655 | * src/gram.h, src/gram.c (symbols): New, similar to state_table | |
656 | and rule_table. | |
657 | * src/reader.c (packsymbols): Fill this table. | |
658 | Drop sprec. | |
659 | * src/conflicts.c (resolve_sr_conflict): Adjust. | |
660 | * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a | |
661 | single table. | |
662 | Use symbols[i]->tag instead of tags[i]. | |
663 | ||
213e640e AD |
664 | 2001-12-29 Akim Demaille <akim@epita.fr> |
665 | ||
666 | * tests/calc.at (_AT_DATA_CALC_Y): Also use %union. | |
667 | In addition, put a comment in there, to replace... | |
668 | * tests/regression.at (%union and C comments): Remove. | |
669 | ||
e7b8bef1 AD |
670 | 2001-12-29 Akim Demaille <akim@epita.fr> |
671 | ||
672 | * tests/regression.at (Web2c Actions): Blindly move the actual | |
673 | output as expected output. The contents *seem* right to me, but I | |
674 | can't pretend reading perfectly parser tables... Nonetheless, all | |
675 | the other tests pass correctly, the table look OK, even though the | |
676 | presence of `$axiom' is to be noted: AFAICS it is useless (but | |
677 | harmless). | |
678 | ||
b68e7744 AD |
679 | 2001-12-29 Akim Demaille <akim@epita.fr> |
680 | ||
681 | * src/reader.c (readgram): Don't add the rule 0 if there were no | |
682 | rules read. In other words, add it _after_ having performed | |
683 | grammar sanity checks. | |
684 | Fixes the `tests/regression.at (Invalid input: 1)' Failure. | |
685 | ||
78d5bae9 AD |
686 | 2001-12-29 Akim Demaille <akim@epita.fr> |
687 | ||
688 | * tests/regression.at (Web2c Report): Catch up: the rule 0 is now | |
689 | visible, and some states have now a different number. | |
690 | ||
ff442794 AD |
691 | 2001-12-29 Akim Demaille <akim@epita.fr> |
692 | ||
693 | * src/reader.c (readgram): Bind the initial rule's lineno to that | |
694 | of the first rule. | |
695 | * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts): | |
696 | (Solved SR Conflicts): Adjust rule 0's line number. | |
697 | ||
610ab194 AD |
698 | 2001-12-29 Akim Demaille <akim@epita.fr> |
699 | ||
700 | Fix the `GAWK Grammar' failure. | |
701 | ||
702 | * src/LR0.c (final_state): Initialize to -1 so that we do compute | |
703 | the reductions of the first state which was mistakenly confused | |
704 | with the final state because precisely final_state was initialized | |
705 | to 0. | |
706 | * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads, | |
707 | now noticed by Bison. | |
708 | * tests/regression.at (Rule Line Numbers): Adjust: state 0 does | |
709 | have a reduction on $default. | |
710 | ||
29d29c8f AD |
711 | 2001-12-29 Akim Demaille <akim@epita.fr> |
712 | ||
713 | * src/gram.c (ritem_print): Be sure to subtract 1 when displaying | |
714 | rule line numbers. | |
715 | * src/closure.c (print_closure): Likewise. | |
716 | * src/derives.c (print_derives): Likewise. | |
717 | * tests/sets.at (Nullable): Adjust: the rule numbers are correct | |
718 | now. | |
719 | ||
7c6b64d0 AD |
720 | 2001-12-29 Akim Demaille <akim@epita.fr> |
721 | ||
722 | * src/lalr.c (lookaheads_print): New. | |
723 | (lalr): Call it when --trace-flag. | |
724 | * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads | |
725 | are dumped. | |
726 | ||
3d4daee3 AD |
727 | 2001-12-29 Akim Demaille <akim@epita.fr> |
728 | ||
729 | * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0', | |
730 | when walking through ritem, even via rule->rhs. | |
731 | * src/reduce.c (dump_grammar, useful_production, reduce_output) | |
732 | (useful_production, useless_nonterminals): Likewise. | |
733 | (reduce_grammar_tables): Likewise, plus update nritems. | |
734 | * src/nullable.c (set_nullable): Likewise. | |
735 | * src/lalr.c (build_relations): Likewise. | |
736 | * tests/sets.at (Nullable): Adjust. | |
737 | Fortunately, now, the $axiom is no longer nullable. | |
738 | ||
9e7f6bbd AD |
739 | 2001-12-29 Akim Demaille <akim@epita.fr> |
740 | ||
741 | * src/LR0.c (generate_states): Use nritems, not nitems, nor using | |
742 | the 0-sentinel. | |
743 | * src/gram.c (ritem_longest_rhs): Likewise. | |
744 | * src/reduce.c (nonterminals_reduce): Likewise. | |
745 | * src/print_graph.c (print_graph): Likewise. | |
746 | * src/output.c (output_rule_data): Likewise. | |
747 | * src/nullable.c (set_nullable): Likewise. | |
748 | ||
255ef638 AD |
749 | 2001-12-29 Akim Demaille <akim@epita.fr> |
750 | ||
751 | * src/output.c: Comment changes. | |
752 | ||
0d8a7363 AD |
753 | 2001-12-27 Paul Eggert <eggert@twinsun.com> |
754 | ||
755 | * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special | |
756 | cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and | |
757 | Sparc, as they were causing more porting problems than the | |
758 | (minor) performance improvement was worth. | |
759 | ||
760 | Also, catch up with 1.31's YYSTD. | |
761 | ||
3db472b9 AD |
762 | 2001-12-27 Akim Demaille <akim@epita.fr> |
763 | ||
764 | * src/output.c (output_gram): Rely on nritems, not the | |
765 | 0-sentinel. See below. | |
766 | Use -1 as separator, not 0. | |
767 | * src/bison.simple (yyparse): Subtract 1 to the rule numbers. | |
768 | Rely on -1 as separator in yyrhs, instead of 0. | |
769 | * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue | |
770 | twice `Now at end of input', therefore there are two lines less to | |
771 | expect. | |
772 | ||
b365aa05 AD |
773 | 2001-12-27 Akim Demaille <akim@epita.fr> |
774 | ||
775 | * tests/regression.at (Unresolved SR Conflicts): | |
776 | (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes | |
777 | below. | |
778 | ||
30171f79 AD |
779 | 2001-12-27 Akim Demaille <akim@epita.fr> |
780 | ||
781 | * src/LR0.c (new_state): Recognize the final state by the fact it | |
782 | is reached by eoftoken. | |
783 | (insert_start_shifting_state, insert_eof_shifting_state) | |
784 | (insert_accepting_state, augment_automaton): Remove, since now | |
785 | these states are automatically computed from the initial state. | |
786 | (generate_states): Adjust. | |
787 | * src/print.c: When reporting a rule number to the user, substract | |
788 | 1, so that the axiom rule is rule 0, and the first user rule is 1. | |
789 | * src/reduce.c: Likewise. | |
790 | * src/print_graph.c (print_core): For the time being, just as for | |
791 | the report, depend upon --trace-flags to dump the full set of | |
792 | items. | |
793 | * src/reader.c (readgram): Once the grammar read, insert the rule | |
794 | 0: `$axiom: START-SYMBOL $'. | |
795 | * tests/set.at: Adjust: rule 0 is now displayed, and since the | |
796 | number of the states has changed (the final state is no longer | |
797 | necessarily the last), catch up. | |
798 | ||
75142d45 AD |
799 | 2001-12-27 Akim Demaille <akim@epita.fr> |
800 | ||
801 | Try to make the use of the eoftoken valid. Given that its value | |
802 | is 0 which was also used as a sentinel in ritem, (i) make sure >= 0 | |
803 | is used instead of > 0 where appropriate, (ii), depend upon nritems | |
804 | instead of the 0-sentinel. | |
805 | ||
806 | * src/gram.h, src/gram.c (nritems): New. | |
807 | Expected to be duplication of nitems, but for the time being... | |
808 | * src/reader.c (packgram): Assert nritems and nitems are equal. | |
809 | * src/LR0.c (allocate_itemsets, new_itemsets): Adjust. | |
810 | * src/closure.c (print_closure, print_fderives): Likewise. | |
811 | * src/gram.c (ritem_print): Likewise. | |
812 | * src/print.c (print_core, print_grammar): Likewise. | |
813 | * src/print_graph.c: Likewise. | |
814 | ||
b7c49edf AD |
815 | 2001-12-27 Akim Demaille <akim@epita.fr> |
816 | ||
817 | * src/main.c (main): If there are complains after grammar | |
818 | reductions, then output the report anyway if requested, then die. | |
819 | * src/symtab.c (bucket_new): Initialize `value' to -1, not 0. | |
820 | * src/reader.c (eoftoken): New. | |
821 | (parse_token_decl): If the token being defined has value `0', it | |
822 | is the eoftoken. | |
823 | (packsymbols): No longer hack `tags' to insert `$' by hand. | |
824 | Be sure to preserve the value of the eoftoken. | |
825 | (reader): Make sure eoftoken is defined. | |
826 | Initialize nsyms to 0: now eoftoken is created just like the others. | |
827 | * src/print.c (print_grammar): Don't special case the eof token. | |
828 | * src/regression.at: Adjust: `$' has value 0, not -1, which was a | |
829 | lie anyway, albeit pleasant. | |
830 | * tests/calc.at: Exercise error messages with eoftoken. | |
831 | Change the grammar so that empty input is invalid. | |
832 | Adjust expectations. | |
833 | When yyungeting, be sure to use a valid yylloc: use last_yylloc. | |
834 | ||
ec2da99f AD |
835 | 2001-12-27 Akim Demaille <akim@epita.fr> |
836 | ||
837 | * configure.in: Check the protos of strchr ans strspn. | |
838 | Replace strchr if needed. | |
839 | * src/system.h: Provide the protos of strchr, strspn and memchr if | |
840 | missing. | |
841 | * lib/strchr.c: New. | |
842 | * src/reader.c (symbols_save): Use strchr. | |
843 | ||
8adfa272 AD |
844 | 2001-12-27 Akim Demaille <akim@epita.fr> |
845 | ||
846 | * src/print.c, src/print_graph.c (escape): New. | |
847 | Use it to quote the TAGS outputs. | |
848 | * src/print_graph.c (print_state): Now errors are in red, and | |
849 | reductions in green. | |
850 | Prefer high to wide: output the state number on a line of its own. | |
851 | ||
80dac38c AD |
852 | 2001-12-27 Akim Demaille <akim@epita.fr> |
853 | ||
854 | * src/state.h, src/state.c (reductions_new): New. | |
855 | * src/LR0.c (set_state_table): Let all the states have a | |
856 | `reductions', even if reduced to 0. | |
857 | (save_reductions): Adjust. | |
858 | * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust. | |
859 | * src/print.c (print_reductions, print_actions): Adjust. | |
860 | * src/output.c (action_row): Adjust. | |
861 | ||
2cec70b9 AD |
862 | 2001-12-27 Akim Demaille <akim@epita.fr> |
863 | ||
864 | * src/state.h, src/state.c (errs_new, errs_dup): New. | |
865 | * src/LR0.c (set_state_table): Let all the states have an errs, | |
866 | even if reduced to 0. | |
867 | * src/print.c (print_errs, print_reductions): Adjust. | |
868 | * src/output.c (output_actions, action_row): Adjust. | |
869 | * src/conflicts.c (resolve_sr_conflict): Adjust. | |
870 | ||
13ca549a AD |
871 | 2001-12-27 Akim Demaille <akim@epita.fr> |
872 | ||
873 | * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL. | |
874 | ||
5092aba5 AD |
875 | 2001-12-27 Akim Demaille <akim@epita.fr> |
876 | ||
877 | * src/conflicts.c, src/conflicts.h (print_reductions): Move to... | |
878 | * src/print.c: here. | |
879 | (lookaheadset, shiftset): New, used as additional storage by | |
880 | print_reductions. | |
881 | (print_results): Adjust. | |
882 | (print_shifts, print_gotos, print_errs): New, extracted from... | |
883 | (print_actions): here. | |
884 | * src/print_graph.c (print_actions): Remove dead code. | |
885 | ||
11e2beca AD |
886 | 2001-12-27 Akim Demaille <akim@epita.fr> |
887 | ||
888 | * src/reader.c (copy_dollar, copy_at): Better checking of `n' in | |
889 | `$n' and `@n'. | |
890 | ||
dac3c910 AD |
891 | 2001-12-27 Akim Demaille <akim@epita.fr> |
892 | ||
893 | * src/lalr.c (add_lookback_edge): Use state_t instead of ints. | |
894 | (build_relations): Adjust. | |
895 | ||
d0b0fefa AD |
896 | 2001-12-27 Akim Demaille <akim@epita.fr> |
897 | ||
898 | * src/lalr.c (set_goto_map): Remove a wrong but benign loop | |
899 | duplication. | |
900 | ||
adc8c848 AD |
901 | 2001-12-27 Akim Demaille <akim@epita.fr> |
902 | ||
903 | * src/reader.c (packgram): Catch nitems overflows. | |
904 | ||
14d293ac AD |
905 | 2001-12-27 Akim Demaille <akim@epita.fr> |
906 | ||
907 | * src/files.c, src/files.h (guard_obstack): Remove. | |
908 | * src/output.c (output): Adjust. | |
909 | * src/reader.c (parse_braces): New, factoring... | |
910 | (copy_action, copy_guard): these two which are renamed as... | |
911 | (parse_action, parse_guard): these. | |
912 | As a voluntary consequence, using braces around guards is now | |
913 | mandatory. | |
914 | ||
f499b062 AD |
915 | 2001-12-27 Akim Demaille <akim@epita.fr> |
916 | ||
917 | * src/gram.h (rule_t): `guard' and `guard_line' are new members. | |
918 | * src/reader.c (symbol_list): `guard' and `guard_line' are new | |
919 | members. | |
920 | (symbol_list_new): Adjust. | |
921 | (copy_action): action_line is the first line, not the last. | |
922 | (copy_guard): Just as for actions, store the `action' only, not | |
923 | the switch/case/break flesh. | |
924 | Don't parse the user action that might follow the guard, let... | |
925 | (readgram): do it, i.e., now, there can be an action after a | |
926 | guard. | |
927 | In other words the guard is just explicitly optional. | |
928 | (packgram): Adjust. | |
929 | * src/output.c (guards_output): New. | |
930 | (output_parser): Call it when needed. | |
931 | (output): Also free the guard and attrs obstacks. | |
932 | * src/files.c, src/files.h (obstack_save): Remove. | |
933 | (output_files): Remove. | |
934 | As a result, if one needs the former `.act' file, using an | |
935 | appropriate skeleton which requires actions and guards is now | |
936 | required. | |
937 | * src/main.c (main): Adjust. | |
938 | * tests/semantic.at: New. | |
939 | * tests/regression.at: Use `input.y' as input file name. | |
940 | Avoid 8+3 problems by requiring input.c when the test needs the | |
941 | parser. | |
942 | ||
d945f5cd AD |
943 | 2001-12-27 Akim Demaille <akim@epita.fr> |
944 | ||
945 | * src/reader.c (symbol_list_new): Be sure to initialize all the | |
946 | fields. | |
947 | ||
d200e455 AD |
948 | 2001-12-27 Akim Demaille <akim@epita.fr> |
949 | ||
950 | All the hacks using a final pseudo state are now useless. | |
951 | ||
952 | * src/LR0.c (set_state_table): state_table holds exactly nstates. | |
953 | * src/lalr.c (nLA): New. | |
954 | (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it | |
955 | instead of lookaheadsp from the pseudo state (nstate + 1). | |
956 | ||
f9507c28 AD |
957 | 2001-12-27 Akim Demaille <akim@epita.fr> |
958 | ||
959 | * src/output.c (action_row, token_actions): Use a state_t instead | |
960 | of a integer, and nlookaheads instead of the following state's | |
961 | lookaheadsp. | |
962 | ||
065fbd27 AD |
963 | 2001-12-27 Akim Demaille <akim@epita.fr> |
964 | ||
965 | * src/conflicts.c (log_resolution, flush_shift) | |
966 | (resolve_sr_conflict, set_conflicts, solve_conflicts) | |
967 | (count_sr_conflicts, count_rr_conflicts, conflicts_output) | |
968 | (conflicts_print, print_reductions): Use a state_t instead of an | |
969 | integer when referring to a state. | |
970 | As much as possible, depend upon nlookaheads, instead of the | |
971 | `lookaheadsp' member of the following state (since lookaheads of | |
972 | successive states are successive, the difference between state n + 1 | |
973 | and n served as the number of lookaheads for state n). | |
974 | * src/lalr.c (add_lookback_edge): Likewise. | |
975 | * src/print.c (print_core, print_actions, print_state) | |
976 | (print_results): Likewise. | |
977 | * src/print_graph.c (print_core, print_actions, print_state) | |
978 | (print_graph): Likewise. | |
979 | * src/conflicts.h: Adjust. | |
980 | ||
1b177bd7 AD |
981 | 2001-12-27 Akim Demaille <akim@epita.fr> |
982 | ||
983 | * src/bison.hairy: Formatting/comment changes. | |
984 | ANSIfy. | |
985 | Remove `register' indications. | |
986 | Add plenty of `static'. | |
987 | ||
7742ddeb AD |
988 | 2001-12-27 Akim Demaille <akim@epita.fr> |
989 | ||
990 | * src/output.c (prepare): Drop the muscle `ntbase' which | |
991 | duplicates ntokens. | |
992 | * src/bison.simple: Formatting/comment changes. | |
993 | Use YYNTOKENS only, which is documented, but not YYNTBASE, which | |
994 | is an undocumented synonym. | |
995 | ||
1fa14068 AD |
996 | 2001-12-22 Akim Demaille <akim@epita.fr> |
997 | ||
998 | * src/output.c (output_table_data): Change the prototype to use | |
999 | `int' for array ranges: some invocations do pass an int, not a | |
1000 | short. | |
1001 | Reported by Wayne Green. | |
1002 | ||
b9752825 AD |
1003 | 2001-12-22 Akim Demaille <akim@epita.fr> |
1004 | ||
1005 | Some actions of web2c.y are improperly triggered. | |
1006 | Reported by Mike Castle. | |
1007 | ||
1008 | * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/. | |
1009 | * tests/regression.at (Web2c): Rename as... | |
1010 | (Web2c Report): this. | |
1011 | (Web2c Actions): New. | |
1012 | ||
776209d6 AD |
1013 | 2001-12-22 Akim Demaille <akim@epita.fr> |
1014 | ||
1015 | Reductions in web2c.y are improperly reported. | |
1016 | Reported by Mike Castle. | |
1017 | ||
1018 | * src/conflicts.c (print_reductions): Fix. | |
1019 | * tests/regression.at (Web2c): New. | |
1020 | ||
275fc3ad AD |
1021 | 2001-12-18 Akim Demaille <akim@epita.fr> |
1022 | ||
1023 | Some host fail on `assert (!"foo")', which expands to | |
1024 | ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__)) | |
1025 | Reported by Nelson Beebee. | |
1026 | ||
1027 | * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with | |
1028 | `#define it_succeeded 0' and `assert (it_succeeded)'. | |
1029 | ||
897668ee MA |
1030 | 2001-12-17 Marc Autret <autret_m@epita.fr> |
1031 | ||
1032 | * src/bison.simple: Don't hard code the skeleton line and filename. | |
1033 | * src/output.c (output_parser): Rename 'line' as 'output_line'. | |
1034 | New line counter 'skeleton_line' (skeleton-line muscle). | |
1035 | ||
ab3399e0 PE |
1036 | 2001-12-17 Paul Eggert <eggert@twinsun.com> |
1037 | ||
1038 | * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that | |
1039 | YYDEBUG must be defined to a nonzero value. | |
1040 | ||
1041 | * src/bison.simple (yytname): Do not assume that the user defines | |
1042 | YYDEBUG to a properly parenthesized expression. | |
1043 | ||
3877f72b AD |
1044 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1045 | ||
1046 | * src/state.h (state_t): Rename lookaheads as lookaheadsp. | |
1047 | nlookaheads is a new member. | |
1048 | Adjust all users. | |
1049 | * src/lalr.h (nlookaheads): Remove this orphan declaration. | |
1050 | * src/lalr.c (initialize_lookaheads): Set nlookaheads for each | |
1051 | state. | |
776209d6 | 1052 | |
331dbc1b AD |
1053 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1054 | ||
1055 | * src/files.h, src/files.c (open_files, close_files): Remove. | |
1056 | * src/main.c (main): Don't open/close files, nor invoke lex_free, | |
1057 | let... | |
1058 | * src/reader.c (reader): Do it. | |
776209d6 | 1059 | |
be750e4c AD |
1060 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1061 | ||
1062 | * src/conflicts.c (print_reductions): Formatting changes. | |
776209d6 | 1063 | |
709ae8c6 AD |
1064 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1065 | ||
1066 | * src/conflicts.c (flush_shift): Also adjust lookaheadset. | |
1067 | (flush_reduce): New. | |
1068 | (resolve_sr_conflict): Adjust. | |
776209d6 | 1069 | |
f87685c3 AD |
1070 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1071 | ||
1072 | * src/output.c (output_obstack): Be static and rename as... | |
1073 | (format_obstack): this, to avoid any confusion with files.c's | |
1074 | output_obstack. | |
1075 | * src/reader.h (muscle_obstack): Move to... | |
1076 | * src/output.h: here, since it's defined in output.c. | |
1077 | ||
837491d8 AD |
1078 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1079 | ||
1080 | * src/output.c (action_row, save_column, default_goto) | |
1081 | (sort_actions, matching_state, pack_vector): Better variable | |
1082 | locality. | |
1083 | ||
796d61fb AD |
1084 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1085 | ||
1086 | * src/output.c: Various formatting changes. | |
776209d6 | 1087 | |
64d15509 AD |
1088 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1089 | ||
1090 | * src/files.c (output_files): Free the output_obstack. | |
1091 | * src/main.c (main): Call print and print_graph conditionally. | |
1092 | * src/print.c (print): Work unconditionally. | |
1093 | * src/print_graph.c (print_graph): Work unconditionally. | |
1094 | * src/conflicts.c (log_resolution): Output only if verbose_flag. | |
1095 | ||
fbc8ecb7 MA |
1096 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
1097 | ||
1098 | * src/output.c (actions_output): Fix. When we use %no-lines, | |
1099 | there is one less line per action. | |
1100 | ||
f0440388 MA |
1101 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
1102 | ||
1103 | * src/bison.simple: Remove a useless #line directive. | |
1104 | s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'. | |
1105 | * src/output.c (get_lines_number): New. | |
776209d6 | 1106 | (output_parser): Adjust, now takes care about the lines of a |
f0440388 MA |
1107 | output muscles. |
1108 | Fix line numbering. | |
1109 | (actions_output): Computes the number of lines taken by actions. | |
1110 | (output_master_parser): Insert new skeleton which is the name of | |
1111 | the output parser file name. | |
1112 | ||
a79986b8 MA |
1113 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
1114 | ||
1115 | * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. | |
1116 | ||
4ec8e00f MA |
1117 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
1118 | ||
1119 | * src/output.c (output_gram): Keep track of the hairy one. | |
1120 | ||
1a4648ff AD |
1121 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1122 | ||
1123 | Make `make distcheck' work. | |
1124 | ||
1125 | * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses | |
1126 | system.h which uses libgettext.h. | |
1127 | ||
9c2c67e6 AD |
1128 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1129 | ||
1130 | * src/nullable.c (set_nullable): Useless rules must be skipped, | |
1131 | otherwise, since we range over their symbols, we might look at a | |
1132 | nonterminal which no longer ``exists'', i.e., it is not counted in | |
1133 | `nvars', hence we overflow our arrays. | |
1134 | ||
93ede233 AD |
1135 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1136 | ||
1137 | The header can also be produced directly, without any obstack! | |
1138 | Yahoo! | |
1139 | ||
1140 | * src/files.c, src/files.h (defines_obstack): Remove. | |
1141 | (compute_header_macro): Global. | |
1142 | (defines_obstack_save): Remove. | |
1143 | * src/reader.c (parse_union_decl): No longer output to | |
1144 | defines_obstack: its content can be found in the `stype' muscle | |
1145 | anyway. | |
1146 | (output_token_translations): Merge into... | |
1147 | (symbols_output): this. | |
1148 | Rename as... | |
1149 | (symbols_save): this. | |
1150 | (reader): Adjust. | |
1151 | * src/output.c (header_output): New. | |
1152 | (output): Call it. | |
1153 | ||
2666f928 AD |
1154 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1155 | ||
1156 | * src/reader.c (parse_union_decl): Instead of handling two obstack | |
1157 | simultaneously, use one to define the `stype' muscle, and use the | |
1158 | value of the latter to fill defines_obstack. | |
1159 | (copy_comment): Remove. | |
1160 | (copy_comment2): Work for a single obstack. | |
1161 | Rename as... | |
1162 | (copy_comment): this. | |
1163 | ||
428046f8 AD |
1164 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1165 | ||
1166 | * src/lex.c, src/lex.h (xgetc): No longer static. | |
1167 | * src/reader.c (parse_union_decl): Revamp. | |
1168 | ||
ea52d706 AD |
1169 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1170 | ||
1171 | Still making progress in separating Bison into (i) input, (ii) | |
1172 | process, (iii) output: now we can directly output the parser file | |
1173 | without using table_obstack at all. | |
1174 | ||
1175 | * src/files.c, src/files.h (table_obstack): Bye bye. | |
1176 | (parser_file_name): New. | |
1177 | * src/files.c (compute_output_file_names): Compute it. | |
1178 | * src/output.c (actions_output, output_parser) | |
1179 | (output_master_parser): To a file instead of an obstack. | |
1180 | ||
3f96f4dc AD |
1181 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1182 | ||
1183 | Attach actions to rules, instead of pre-outputting them to | |
1184 | actions_obstack. | |
1185 | ||
1186 | * src/gram.h (rule_t): action and action_line are new members. | |
1187 | * src/reader.c (symbol_list): Likewise. | |
1188 | (copy_action): Save the actions within the rule. | |
1189 | (packgram): Save them in rule_table. | |
1190 | * src/output.c (actions_output): New. | |
1191 | (output_parser): Use it on `%%actions'. | |
1192 | (output_rule_data): Don't free rule_table. | |
1193 | (output): Do it. | |
1194 | (prepare): Don't save the `action' muscle. | |
1195 | * src/bison.simple: s/%%action/%%actions/. | |
1196 | ||
51576fb3 AD |
1197 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1198 | ||
1199 | * src/reader.c (copy_action): When --yacc, don't append a `;' | |
1200 | to the user action: let it fail if lacking. | |
dee049eb | 1201 | Suggested by Arnold Robbins and Tom Tromey. |
51576fb3 | 1202 | |
2648a72d AD |
1203 | 2001-12-14 Akim Demaille <akim@epita.fr> |
1204 | ||
1205 | * src/lex.c (literalchar): Simply return the char you decoded, non | |
1206 | longer mess around with obstacks and int pointers. | |
1207 | Adjust all callers. | |
1208 | ||
92790e5b AD |
1209 | 2001-12-14 Akim Demaille <akim@epita.fr> |
1210 | ||
1211 | * src/lex.c (literalchar): Don't escape the special characters, | |
1212 | just decode them, and keep them as char (before, eol was output as | |
1213 | the 2 char string `\n' etc.). | |
1214 | * src/output.c (output_rule_data): Use quotearg to output the | |
1215 | token strings. | |
1216 | ||
927c1557 PE |
1217 | 2001-12-13 Paul Eggert <eggert@twinsun.com> |
1218 | ||
1219 | * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE): | |
1220 | Do not infringe on the global user namespace when using C++. | |
1221 | (YYFPRINTF, YYSTDERR): New macros, needed for the above. | |
1222 | All uses of `fprintf' and `stderr' changed. | |
1223 | ||
1224 | * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR. | |
1225 | ||
ed8e1f68 AD |
1226 | 2001-12-13 Akim Demaille <akim@epita.fr> |
1227 | ||
1228 | The computation of nullable is broken: it doesn't handle empty | |
1229 | RHS's properly. | |
1230 | ||
1231 | * tests/torture.at (GNU AWK Grammar): New. | |
1232 | * tests/sets.at (Nullable): New. | |
1233 | * src/nullable.c (set_nullable): Instead of blindly looping over | |
1234 | `ritems', loop over the rules, and then over their rhs's. | |
1235 | ||
1236 | Work around Autotest bugs. | |
1237 | ||
1238 | * src/warshall.c (bitmatrix_print): Don't use `+--+' as table | |
1239 | frame, because Autotest understand lines starting with a `+' as | |
1240 | traces from the shell. Then, they are not processed properly. | |
1241 | Admittedly an Autotest bug, but we don't have time to wait for | |
1242 | Autotest to catch up. | |
1243 | * tests/regression.at (Broken Closure): Adjust to the new table | |
1244 | frames. | |
1245 | Move to... | |
1246 | * tests/sets.at: here. | |
1247 | ||
cb581495 AD |
1248 | 2001-12-13 Akim Demaille <akim@epita.fr> |
1249 | ||
1250 | * src/closure.c (closure): Use nrules instead of playing tricks | |
1251 | with BITS_PER_WORD. | |
1252 | ||
2e729273 AD |
1253 | 2001-12-13 Akim Demaille <akim@epita.fr> |
1254 | ||
1255 | * src/print.c (print_actions): Output the handling of `$' as the | |
1256 | traces do: shifting the token EOF. Before EOF was treated as a | |
1257 | nonterminal. | |
1258 | * tests/regression.at: Adjust some tests. | |
1259 | * src/print_graph.c (print_core): Complete the set of items via | |
1260 | closure. The next-to-final and final states are still unsatisfying, | |
1261 | but that's to be addressed elsewhere. | |
1262 | No longer output the rule numbers, but do output the state number. | |
1263 | A single loop for the shifts + gotos is enough, but picked a | |
1264 | distinct color for each. | |
1265 | (print_graph): Initialize and finalize closure. | |
1266 | ||
107f7dfb AD |
1267 | 2001-12-13 Akim Demaille <akim@epita.fr> |
1268 | ||
1269 | * src/reader.c (readgram): Remove dead code, an strip useless | |
1270 | braces. | |
1271 | (get_type): Remove, unused. | |
1272 | ||
9b53a24f AD |
1273 | 2001-12-12 Akim Demaille <akim@epita.fr> |
1274 | ||
1275 | * src/complain.h, src/complain.c: Remove error_one_per_line, rely | |
1276 | on that of lib/error.c. | |
1277 | ||
dbfb6dcd AD |
1278 | 2001-12-12 Akim Demaille <akim@epita.fr> |
1279 | ||
1280 | Some hosts don't like `/' in includes. | |
1281 | ||
1282 | * src/system.h: Include libgettext.h without qualifying the path. | |
1283 | * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove | |
1284 | $(top_srcdir). | |
1285 | ||
c25fb648 MA |
1286 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
1287 | ||
1288 | * src/output.c (output_parser): Remove useless muscle. | |
1289 | ||
710ddc4f MA |
1290 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
1291 | ||
1292 | * src/bison.simple: Remove #line just before %%epilogue. It | |
1293 | is now handled in ... | |
1294 | * src/reader.c (read_additionnal_code): Add the output of a | |
1295 | #line for the epilogue. | |
1296 | ||
e83d80b8 MA |
1297 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
1298 | ||
927c1557 | 1299 | * src/reader.c (copy_definition): Re-use CPP-outed code which |
e83d80b8 MA |
1300 | replace precedent remove. |
1301 | * src/bison.simple: Remove #line before %%prologue because | |
1302 | %%input-line is wrong at this time. | |
1303 | ||
971d5158 MA |
1304 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
1305 | ||
1306 | * src/reader.c (symbols_output): Clean up. | |
927c1557 | 1307 | * src/output.c (output_gram, output): Clean up. |
971d5158 | 1308 | |
5edafffd AD |
1309 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1310 | ||
1311 | * src/lalr.c (initialize_lookaheads): New. Extracted from... | |
1312 | * src/LR0.c (set_state_table): here. | |
1313 | * src/lalr.c (lalr): Call it. | |
1314 | ||
0279f8e9 AD |
1315 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1316 | ||
1317 | * src/state.h (shifts): Remove the `number' member: shifts are | |
1318 | attached to state, hence no longer need to be labelled with a | |
1319 | state number. | |
1320 | ||
190c4f5f AD |
1321 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1322 | ||
1323 | Now that states have a complete set of members, the linked list of | |
1324 | shifts is useless: just fill directly the state's shifts member. | |
1325 | ||
1326 | * src/state.h (shifts): Remove the `next' member. | |
1327 | * src/LR0.c (first_state, last_state): Remove. | |
1328 | Adjust the callers. | |
1329 | (augment_automaton): Don't look for the shifts that must be added | |
1330 | a shift on EOF: it is those of the state we looked for! But now, | |
1331 | since shifts are attached, it is no longer needed to looking | |
1332 | merely by its id: its number. | |
1333 | ||
2a73b93d AD |
1334 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1335 | ||
1336 | * src/LR0.c (augment_automaton): Better variable locality. | |
1337 | Remove an impossible branch: if there is a state corresponding to | |
1338 | the start symbol being shifted, then there is shift for the start | |
1339 | symbol from the initial state. | |
1340 | ||
74392f6a AD |
1341 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1342 | ||
1343 | * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state' | |
1344 | only when appropriate: when insert_start_shifting_state' is not | |
1345 | invoked. | |
1346 | * tests/regression.at (Rule Line Numbers): Adjust. | |
1347 | ||
37c82725 AD |
1348 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1349 | ||
1350 | * src/LR0.c (augment_automaton): Now that all states have shifts, | |
1351 | merge the two cases addition shifts to the initial state. | |
1352 | ||
6a164e0c AD |
1353 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1354 | ||
1355 | * src/lalr.c (set_state_table): Move to... | |
1356 | * src/LR0.c: here. | |
1357 | * src/lalr.c (lalr): Don't call it... | |
1358 | * src/LR0.c (generate_states): do it. | |
1359 | * src/LR0.h (first_state): Remove, only the table is used. | |
1360 | ||
7215de24 AD |
1361 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1362 | ||
1363 | * src/LR0.h (first_shift, first_reduction): Remove. | |
1364 | * src/lalr.c: Don't use first_shift: find shifts through the | |
1365 | states. | |
1366 | ||
80e25d4d AD |
1367 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1368 | ||
1369 | * src/LR0.c: Attach shifts to states as soon as they are | |
1370 | computed. | |
1371 | * src/lalr.c (set_state_table): Instead of assigning shifts to | |
1372 | state, just assert that the mapping was properly done. | |
1373 | ||
0ab3728b AD |
1374 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1375 | ||
1376 | * src/LR0.c (insert_start_shift): Rename as... | |
1377 | (insert_start_shifting_state): this. | |
1378 | (insert_eof_shifting_state, insert_accepting_state): New. | |
1379 | (augment_automaton): Adjust. | |
1380 | Better locality of the variables. | |
1381 | When looking if the start_symbol is shifted from the initial | |
1382 | state, using `while (... symbol != start_symbol ...)' sounds | |
1383 | better than `while (... symbol < start_symbol ...)': If fail | |
1384 | to see how the order between symbols could be relevant! | |
1385 | ||
78af9bbc AD |
1386 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1387 | ||
1388 | * src/getargs.h: Don't declare `spec_name_prefix' and | |
1389 | `spec_file_prefix', declared by src/files.h. | |
1390 | * src/files.c, src/files.h: Default for spec_name_prefix is "yy". | |
1391 | * src/muscle_tab.c (muscle_init): Default prefix to NULL. | |
1392 | * src/output.c (prepare): Adjust. | |
1393 | * src/reader.c (symbols_output): Likewise. | |
1394 | * src/vmsgetargs.c: Vaguely adjust, but who cares? | |
1395 | ||
bdef2a41 AD |
1396 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1397 | ||
1398 | * src/muscle_tab.c (muscle_init): NULL is a better default than | |
1399 | `"0"'. | |
1400 | ||
3735969c AD |
1401 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1402 | ||
1403 | * src/reader.c (reader): Calling symbols_output once is enough. | |
1404 | ||
49701457 AD |
1405 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1406 | ||
1407 | Now that states have a complete set of members, the linked list of | |
1408 | reductions is useless: just fill directly the state's reductions | |
1409 | member. | |
1410 | ||
1411 | * src/state.h (struct reductions): Remove member `number' and | |
1412 | `next'. | |
1413 | * src/LR0.c (first_reduction, last_reduction): Remove. | |
1414 | (save_reductions): Don't link the new reductions, store them in | |
1415 | this_state. | |
1416 | * src/lalr.c (set_state_table): No need to attach reductions to | |
1417 | states, it's already done. | |
1418 | * src/output.c (output_actions): No longer free the shifts, then | |
1419 | the reductions, then the states: free all the states and their | |
1420 | members. | |
1421 | ||
0edad749 AD |
1422 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1423 | ||
1424 | * src/options.c (OPTN, DRTV, BOTH): New. | |
1425 | (option_table): Use them. | |
1426 | ||
0edad749 AD |
1427 | * src/muscle_tab.c: Don't include xalloc.h and string.h: that's |
1428 | the job of system.h. | |
1429 | * src/options.c: Don't include stdio.h and xalloc.h for the same | |
1430 | reasons. | |
1431 | ||
5449dd0f AD |
1432 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1433 | ||
1434 | * src/output.c (output, prepare): Make sure the values of the | |
1435 | muscles `action' and `prologue' are 0-terminated. | |
1436 | ||
a870c567 AD |
1437 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1438 | ||
1439 | Clean up GCC warnings. | |
1440 | ||
1441 | * src/reader.c (copy_action): `buf' is not used. | |
1442 | (parse_skel_decl): Be static. | |
1443 | * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'. | |
1444 | * src/options.h (create_long_option_table): Have a real prototype. | |
1445 | * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete) | |
1446 | (hash_delete_at): Return const void *. | |
1447 | Adjust casts to preserve the const. | |
1448 | ||
80df8768 AD |
1449 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1450 | ||
1451 | * configure.in: Require 2.52g. | |
1452 | M4 is not needed, but AUTOM4TE is. | |
1453 | * m4/m4.m4: Remove. | |
1454 | * tests/Makefile.am: Adjust. | |
1455 | ||
f693ad14 AD |
1456 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1457 | ||
1458 | One structure for states is enough, even though theoretically | |
1459 | there are LR(0) states and LALR(1) states. | |
1460 | ||
1461 | * src/lalr.h (state_t): Remove. | |
1462 | (state_table): Be state_t **, not state_t *. | |
1463 | * src/state.h (core, CORE_ALLOC): Rename as... | |
1464 | (state_t, STATE_ALLOC): this. | |
1465 | Add the LALR(1) members: shifts, reductions, errs. | |
1466 | * src/LR0.c (state_table): Rename as... | |
1467 | (state_hash): this, to avoid name clashes with the global | |
1468 | `state_table'. | |
1469 | * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c | |
1470 | * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust. | |
1471 | ||
74ffbcb6 AD |
1472 | 2001-12-10 Akim Demaille <akim@epita.fr> |
1473 | ||
1474 | Bison dumps core on bash.y. | |
1475 | Reported by Pascal Bart. | |
1476 | ||
1477 | * src/warshall.c (bitmatrix_print): New. | |
1478 | (TC): Use it. | |
1479 | When performing a transitive closure R(i, j) && R(j, k) => R(i, k), | |
1480 | j must be the outer loop. | |
1481 | * tests/regression.at (Broken Closure): New. | |
1482 | ||
07708e19 AD |
1483 | 2001-12-05 Akim Demaille <akim@epita.fr> |
1484 | ||
1485 | * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and | |
1486 | its argument. | |
1487 |