]>
Commit | Line | Data |
---|---|---|
fcc61800 PH |
1 | 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
2 | ||
158c687b | 3 | * src/scan-skel.l: Correct off-by-one error in handling of __oline__. |
fcc61800 PH |
4 | * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect |
5 | 32-bit arithmetic. | |
6 | * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto. | |
7 | ||
5683e9b2 AD |
8 | 2002-05-07 Akim Demaille <akim@epita.fr> |
9 | ||
10 | * tests/synclines.at: Be sure to prototype yylex and yyerror to | |
11 | avoid GCC warnings. | |
12 | ||
0c2d3f4c AD |
13 | 2002-05-07 Akim Demaille <akim@epita.fr> |
14 | ||
15 | Kill GCC warnings. | |
16 | ||
17 | * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop | |
18 | over the RHS of each rule. | |
19 | * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int. | |
20 | * src/state.h (state_t): Member `nitems' is unsigned short. | |
21 | * src/LR0.c (get_state): Adjust. | |
22 | * src/reader.c (packgram): Likewise. | |
23 | * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type | |
24 | `Type'. | |
25 | (muscle_insert_int_table): Remove, unused. | |
26 | (prepare_rules): Remove `max'. | |
27 | ||
1565b720 AD |
28 | 2002-05-06 Akim Demaille <akim@epita.fr> |
29 | ||
30 | * src/closure.c (print_firsts): Display of the symbol tags. | |
31 | (bitmatrix_print): Move to... | |
32 | * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump): | |
33 | here. | |
34 | * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust. | |
35 | ||
cfaee611 AD |
36 | 2002-05-06 Akim Demaille <akim@epita.fr> |
37 | ||
38 | * src/muscle_tab.c (muscle_m4_output): Must return TRUE for | |
39 | hash_do_for_each. | |
40 | ||
458be8e0 AD |
41 | 2002-05-06 Akim Demaille <akim@epita.fr> |
42 | ||
43 | * src/LR0.c (new_state, get_state): Instead of using the global | |
44 | `kernel_size' and `kernel_base', have two new arguments: | |
45 | `core_size' and `core'. | |
46 | Adjust callers. | |
47 | ||
a900a624 AD |
48 | 2002-05-06 Akim Demaille <akim@epita.fr> |
49 | ||
50 | * src/reader.c (packgram): No longer end `ritem' with a 0 | |
51 | sentinel: it is not used. | |
52 | ||
d4e7d3a1 AD |
53 | 2002-05-05 Akim Demaille <akim@epita.fr> |
54 | ||
55 | New experimental feature: display the lookaheads in the report and | |
56 | graph. | |
57 | ||
58 | * src/print (print_core): When --trace-flag, display the rules | |
59 | lookaheads. | |
60 | * src/print_graph.c (print_core): Likewise. | |
61 | Swap the arguments. | |
62 | Adjust caller. | |
63 | ||
39ceb25b AD |
64 | 2002-05-05 Akim Demaille <akim@epita.fr> |
65 | ||
66 | * tests/torture.at (Many lookaheads): New test. | |
67 | ||
5372019f AD |
68 | 2002-05-05 Akim Demaille <akim@epita.fr> |
69 | ||
70 | * src/output.c (GENERATE_OUTPUT_TABLE): Replace with... | |
71 | (GENERATE_MUSCLE_INSERT_TABLE): this. | |
72 | (output_int_table, output_unsigned_int_table, output_short_table) | |
73 | (output_token_number_table, output_item_number_table): Replace with... | |
74 | (muscle_insert_int_table, muscle_insert_unsigned_int_table) | |
75 | (muscle_insert_short_table, muscle_insert_token_number_table) | |
76 | (muscle_insert_item_number_table): these. | |
77 | Adjust all callers. | |
78 | (prepare_tokens): Don't free `translations', since... | |
79 | * src/reader.h, src/reader.c (grammar_free): do it. | |
80 | Move to... | |
81 | * src/gram.h, src/gram.c (grammar_free): here. | |
82 | * data/bison.simple, data/bison.c++: b4_token_number_max is now | |
83 | b4_translate_max. | |
84 | ||
5df5f6d5 AD |
85 | 2002-05-05 Akim Demaille <akim@epita.fr> |
86 | ||
87 | * src/output.c (output_unsigned_int_table): New. | |
88 | (prepare_rules): `i' is unsigned. | |
89 | `prhs', `rline', `r2' are unsigned int. | |
90 | Rename muscle `rhs_number_max' as `rhs_max'. | |
91 | Output muscles `prhs_max', `rline_max', and `r2_max'. | |
92 | Free rline and r1. | |
93 | * data/bison.simple, data/bison.c++: Adjust to use these muscles | |
94 | to compute types instead of constant types. | |
95 | * tests/regression.at (Web2c Actions): Adjust. | |
96 | ||
b87f8b21 AD |
97 | 2002-05-04 Akim Demaille <akim@epita.fr> |
98 | ||
99 | * src/symtab.h (SALIAS, SUNDEF): Rename as... | |
100 | (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these. | |
101 | Adjust dependencies. | |
102 | * src/output.c (token_definitions_output): Be sure not to output a | |
103 | `#define 'a'' when fed with `%token 'a' "a"'. | |
104 | * tests/regression.at (Token definitions): New. | |
105 | ||
8bb936e4 PE |
106 | 2002-05-03 Paul Eggert <eggert@twinsun.com> |
107 | ||
108 | * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE | |
109 | for K&R C. | |
110 | ||
111 | 2002-05-03 gettextize <bug-gnu-gettext@gnu.org> | |
112 | ||
113 | * Makefile.am (SUBDIRS): Remove intl. | |
114 | (EXTRA_DIST): Add config/config.rpath. | |
115 | ||
53c71a12 AD |
116 | 2002-05-03 Akim Demaille <akim@epita.fr> |
117 | ||
118 | * data/bison.simple (m4_if): Don't output empty enums. | |
119 | And actually, output valid enum definitions :(. | |
120 | ||
289dd0cf AD |
121 | 2002-05-03 Akim Demaille <akim@epita.fr> |
122 | ||
123 | * configure.bat: Remove, completely obsolete. | |
124 | * Makefile.am (EXTRA_DIST): Adjust. | |
125 | Don't distribute config.rpath... | |
126 | * config/Makefile.am (EXTRA_DIST): Do it. | |
127 | ||
db85e524 AD |
128 | 2002-05-03 Akim Demaille <akim@epita.fr> |
129 | ||
130 | * configure.in (GETTEXT_VERSION): New. | |
131 | Suggested by Bruno Haible for the forthcoming Gettext 0.10.3. | |
132 | ||
83ccf991 AD |
133 | 2002-05-03 Akim Demaille <akim@epita.fr> |
134 | ||
135 | * data/bison.simple (b4_token_enum): New. | |
136 | (b4_token_defines): Use it to output tokens both as #define and | |
137 | enums. | |
138 | Suggested by Paul Eggert. | |
139 | * src/output.c (token_definitions_output): Don't output spurious | |
140 | white spaces. | |
141 | ||
1f418995 AD |
142 | 2002-05-03 Akim Demaille <akim@epita.fr> |
143 | ||
144 | * data/m4sugar/m4sugar.m4: Update from CVS Autoconf. | |
145 | ||
45119f04 RA |
146 | 2002-05-02 Robert Anisko <robert@lrde.epita.fr> |
147 | ||
148 | * data/bison.c++: Adapt expansion of $s and @s to the C++ parser. | |
149 | Update the stack class, give a try to deque as the default container. | |
150 | ||
b2d52318 AD |
151 | 2002-05-02 Akim Demaille <akim@epita.fr> |
152 | ||
153 | * data/bison.simple (yyparse): Do not implement @$ = @1. | |
154 | (YYLLOC_DEFAULT): Adjust to do it. | |
155 | * doc/bison.texinfo (Location Default Action): Fix. | |
156 | ||
3a8b4109 AD |
157 | 2002-05-02 Akim Demaille <akim@epita.fr> |
158 | ||
159 | * src/reader.c (parse_braces): Merge into... | |
160 | (parse_action): this. | |
161 | ||
84614e13 AD |
162 | 2002-05-02 Akim Demaille <akim@epita.fr> |
163 | ||
164 | * configure.in (ALL_LINGUAS): Remove. | |
165 | * po/LINGUAS, hr.po: New. | |
166 | ||
fdbcd8e2 AD |
167 | 2002-05-02 Akim Demaille <akim@epita.fr> |
168 | ||
169 | Remove the so called hairy (semantic) parsers. | |
170 | ||
171 | * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove. | |
172 | * src/gram.h, src/gram.c (semantic_parser): Remove. | |
173 | (rule_t): Remove the guard and guard_line members. | |
174 | * src/lex.h (token_t): remove tok_guard. | |
175 | * src/options.c (option_table): Remove %guard and %semantic_parser | |
176 | support. | |
177 | * src/output.c, src/output.h (guards_output): Remove. | |
178 | (prepare): Adjust. | |
179 | (token_definitions_output): Don't output the `T' | |
180 | tokens (???). | |
181 | (output_skeleton): Don't output the guards. | |
182 | * src/files.c, src/files.c (attrsfile): Remove. | |
183 | * src/reader.c (symbol_list): Remove the guard and guard_line | |
184 | members. | |
185 | Adjust dependencies. | |
186 | (parse_guard): Remove. | |
187 | * data/bison.hairy: Remove. | |
188 | * doc/bison.texinfo (Environment Variables): Remove occurrences of | |
189 | BISON_HAIRY. | |
190 | ||
82b6cb3f AD |
191 | 2002-05-02 Akim Demaille <akim@epita.fr> |
192 | ||
193 | * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action) | |
194 | (parse_guard): Rename the formal argument `stack_offset' as | |
195 | `rule_length', which is more readable. | |
196 | Adjust callers. | |
197 | (copy_at, copy_dollar): Instead of outputting the hard coded | |
198 | values of $$, $n and so forth, output invocation to b4_lhs_value, | |
199 | b4_lhs_location, b4_rhs_value, and b4_rhs_location. | |
900c877b AD |
200 | Note: this patch partially drops `semantic-parser' support: it |
201 | always does `rule_length - n', where semantic parsers ought to | |
202 | always use `-n'. | |
82b6cb3f AD |
203 | * data/bison.simple, data/bison.c++ (b4_lhs_value) |
204 | (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New. | |
205 | ||
6cbfbcc5 AD |
206 | 2002-05-02 Akim Demaille <akim@epita.fr> |
207 | ||
208 | * configure.in (AC_INIT): Bump to 1.49b. | |
209 | (AM_INIT_AUTOMAKE): Short invocation. | |
210 | ||
b8548114 AD |
211 | 2002-05-02 Akim Demaille <akim@epita.fr> |
212 | ||
213 | Version 1.49a. | |
214 | ||
c20cd1fa AD |
215 | 2002-05-01 Akim Demaille <akim@epita.fr> |
216 | ||
217 | * src/skeleton.h: Remove. | |
218 | ||
8a9566d4 AD |
219 | 2002-05-01 Akim Demaille <akim@epita.fr> |
220 | ||
221 | * src/skeleton.h: Fix the #endif. | |
222 | Reported by Magnus Fromreide. | |
223 | ||
8c6d399a PE |
224 | 2002-04-26 Paul Eggert <eggert@twinsun.com> |
225 | ||
226 | * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL): | |
227 | Define if we define YYSTYPE and YYLTYPE, respectively. | |
b756bb75 | 228 | (YYCOPY): Fix [] quoting problem in the non-GCC case. |
8a9566d4 | 229 | |
2b7ed18a RA |
230 | 2002-04-25 Robert Anisko <robert@lrde.epita.fr> |
231 | ||
232 | * src/scan-skel.l: Postprocess quadrigraphs. | |
233 | ||
234 | * src/reader.c (copy_character): New function, used to output | |
235 | single characters while replacing `[' and `]' with quadrigraphs, to | |
236 | avoid troubles with M4 quotes. | |
237 | (copy_comment): Output characters with copy_character. | |
238 | (read_additionnal_code): Likewise. | |
239 | (copy_string2): Likewise. | |
240 | (copy_definition): Likewise. | |
241 | ||
242 | * tests/calc.at: Exercise M4 quoting. | |
243 | ||
34a89c50 AD |
244 | 2002-04-25 Akim Demaille <akim@epita.fr> |
245 | ||
246 | * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space | |
247 | between `!' and the command. | |
248 | Reported by Paul Eggert. | |
249 | ||
0dd1580a RA |
250 | 2002-04-24 Robert Anisko <robert@lrde.epita.fr> |
251 | ||
252 | * tests/calc.at: Exercise prologue splitting. | |
253 | ||
254 | * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and | |
255 | `b4_post_prologue' instead of `b4_prologue'. | |
256 | ||
257 | * src/output.c (prepare): Add the `pre_prologue' and `post_prologue' | |
258 | muscles. | |
259 | (output): Free pre_prologue_obstack and post_prologue_obstack. | |
260 | * src/files.h, src/files.c (attrs_obstack): Remove. | |
261 | (pre_prologue_obstack, post_prologue_obstack): New. | |
262 | * src/reader.c (copy_definition): Add a parameter to specify the | |
263 | obstack to fill, instead of using attrs_obstack unconditionally. | |
264 | (read_declarations): Pass pre_prologue_obstack to copy_definition if | |
265 | `%union' has not yet been seen, pass post_prologue_obstack otherwise. | |
266 | ||
83c1796f PE |
267 | 2002-04-23 Paul Eggert <eggert@twinsun.com> |
268 | ||
269 | * data/bison.simple: Remove unnecessary commentary and white | |
270 | space differences from 1_29-branch. | |
271 | Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE). | |
272 | ||
273 | (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY, | |
274 | YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or | |
275 | if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial | |
276 | constructors or destructors. | |
277 | ||
278 | (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack. | |
279 | ||
1207eeac AD |
280 | 2002-04-23 Akim Demaille <akim@epita.fr> |
281 | ||
282 | * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels. | |
283 | * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's | |
284 | location with columns. | |
285 | * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'. | |
286 | All reported by Paul Eggert. | |
287 | ||
78ab8f67 AD |
288 | 2002-04-22 Akim Demaille <akim@epita.fr> |
289 | ||
290 | * src/reduce.c (dump_grammar): Move to... | |
291 | * src/gram.h, src/gram.c (grammar_dump): here. | |
292 | Be sure to separate long item numbers. | |
293 | Don't read the members of a rule's prec if its nil. | |
294 | ||
133c20e2 AD |
295 | 2002-04-22 Akim Demaille <akim@epita.fr> |
296 | ||
297 | * src/output.c (table_size, table_grow): New. | |
298 | (MAXTABLE): Remove, replace uses with table_size. | |
299 | (pack_vector): Instead of dying when the table is too big, grow it. | |
300 | ||
9515e8a7 AD |
301 | 2002-04-22 Akim Demaille <akim@epita.fr> |
302 | ||
303 | * data/bison.simple (yyr1): Its type is that of a token number. | |
304 | * data/bison.c++ (r1_): Likewise. | |
305 | * tests/regression.at (Web2c Actions): Adjust. | |
306 | ||
23c5a174 AD |
307 | 2002-04-22 Akim Demaille <akim@epita.fr> |
308 | ||
309 | * src/reader.c (token_translations_init): 256 is now the default | |
310 | value for the error token, i.e., it will be assigned another | |
311 | number if the user assigned 256 to one of her tokens. | |
312 | (reader): Don't force 256 to error. | |
313 | * doc/bison.texinfo (Symbols): Adjust. | |
314 | * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR) | |
315 | (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3 | |
316 | etc. instead of 10, 20, 30 (which was used to `jump' over error | |
317 | (256) and undefined (2)). | |
318 | ||
5fbb0954 AD |
319 | 2002-04-22 Akim Demaille <akim@epita.fr> |
320 | ||
321 | Propagate more token_number_t. | |
322 | ||
323 | * src/gram.h (token_number_as_item_number) | |
324 | (item_number_as_token_number): New. | |
325 | * src/output.c (GENERATE_OUTPUT_TABLE): New. | |
326 | Use it to create output_item_number_table and | |
327 | output_token_number_table. | |
328 | * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c, | |
329 | * src/lex.c, src/nullable.c, src/output.c, src/print.c, | |
330 | * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h, | |
331 | * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts. | |
332 | ||
4f940944 AD |
333 | 2002-04-22 Akim Demaille <akim@epita.fr> |
334 | ||
335 | * src/output.h, src/output.c (get_lines_number): Remove. | |
336 | ||
3ded9a63 AD |
337 | 2002-04-19 Akim Demaille <akim@epita.fr> |
338 | ||
339 | * doc/bison.texinfo (Actions): Make clear that `|' is not the same | |
340 | as Lex/Flex'. | |
341 | (Debugging): More details about enabling the debugging features. | |
342 | (Table of Symbols): Describe $$, $n, @$, and @n. | |
343 | Suggested by Tim Josling. | |
344 | ||
e0c471a9 AD |
345 | 2002-04-19 Akim Demaille <akim@epita.fr> |
346 | ||
347 | * doc/bison.texinfo: Remove the uses of the obsolete @refill. | |
348 | ||
fecc10cd AD |
349 | 2002-04-10 Akim Demaille <akim@epita.fr> |
350 | ||
351 | * src/system.h: Rely on HAVE_LIMITS_H. | |
352 | Suggested by Paul Eggert. | |
353 | ||
51dec47b AD |
354 | 2002-04-09 Akim Demaille <akim@epita.fr> |
355 | ||
356 | * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the | |
357 | full stderr, and strip it according to the bison options, instead | |
358 | of composing the error message from different bits. | |
359 | This makes it easier to check for several error messages. | |
360 | Adjust all the invocations. | |
361 | Add an invocation exercising the error token. | |
362 | Add an invocation demonstrating a stupid error message. | |
363 | (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0. | |
364 | Adjust the tests. | |
365 | Error message are for stderr, not stdout. | |
366 | ||
007a50a4 AD |
367 | 2002-04-09 Akim Demaille <akim@epita.fr> |
368 | ||
369 | * src/gram.h, src/gram.c (error_token_number): Remove, use | |
370 | errtoken->number. | |
371 | * src/reader.c (reader): Don't specify the user token number (2) | |
372 | for $undefined, as it uselessly prevents using it. | |
373 | * src/gram.h (token_number_t): Move to... | |
374 | * src/symtab.h: here. | |
375 | (state_t.number): Is a token_number_t. | |
376 | * src/print.c, src/reader.c: Use undeftoken->number instead of | |
377 | hard coded 2. | |
378 | (Even though this 2 is not the same as above: the number of the | |
379 | undeftoken remains being 2, it is its user token number which | |
380 | might not be 2). | |
381 | * src/output.c (prepare_tokens): Rename the `maxtok' muscle with | |
382 | `user_token_number_max'. | |
383 | Output `undef_token_number'. | |
384 | * data/bison.simple, data/bison.c++: Use them. | |
385 | Be sure to map invalid yylex return values to | |
386 | `undef_token_number'. This saves us from gratuitous SEGV. | |
387 | ||
388 | * tests/conflicts.at (Solved SR Conflicts) | |
389 | (Unresolved SR Conflicts): Adjust. | |
390 | * tests/regression.at (Web2c Actions): Adjust. | |
391 | ||
06446ccf AD |
392 | 2002-04-08 Akim Demaille <akim@epita.fr> |
393 | ||
394 | * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/. | |
395 | Adding #line. | |
396 | Remove the duplicate `typedefs'. | |
397 | (RhsNumberType): Fix the declaration and various other typos. | |
398 | Use __ofile__. | |
399 | * data/bison.simple: Use __ofile__. | |
400 | * src/scan-skel.l: Handle __ofile__. | |
401 | ||
62a3e4f0 AD |
402 | 2002-04-08 Akim Demaille <akim@epita.fr> |
403 | ||
404 | * src/gram.h (item_number_t): New, the type of item numbers in | |
405 | RITEM. Note that it must be able to code symbol numbers as | |
406 | positive number, and the negation of rule numbers as negative | |
407 | numbers. | |
408 | Adjust all dependencies (pretty many). | |
409 | * src/reduce.c (rule): Remove this `short *' pointer: use | |
410 | item_number_t. | |
411 | * src/system.h (MINSHORT, MAXSHORT): Remove. | |
412 | Include `limits.h'. | |
413 | Adjust dependencies to using SHRT_MAX and SHRT_MIN. | |
414 | (shortcpy): Remove. | |
415 | (MAXTABLE): Move to... | |
416 | * src/output.c (MAXTABLE): here. | |
417 | (prepare_rules): Use output_int_table to output rhs. | |
418 | * data/bison.simple, data/bison.c++: Adjust. | |
419 | * tests/torture.at (Big triangle): Move the limit from 254 to | |
420 | 500. | |
421 | * tests/regression.at (Web2c Actions): Ajust. | |
422 | ||
423 | Trying with bigger grammars shows various phenomena: at 3000 (28Mb | |
424 | of grammar file) bison is killed by my system, at 2000 (12Mb) bison | |
425 | passes, but produces negative #line number, once fixed, GCC is | |
426 | killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of | |
427 | C), it passes. | |
428 | * src/state.h (state_h): Code input lines on ints, not shorts. | |
429 | ||
bb88b0fc AD |
430 | 2002-04-08 Akim Demaille <akim@epita.fr> |
431 | ||
432 | * src/reduce.c (reduce_grammar): First reduce the nonterminals, | |
433 | and then the grammar. | |
434 | ||
9a636f47 AD |
435 | 2002-04-08 Akim Demaille <akim@epita.fr> |
436 | ||
437 | * src/system.h: No longer using strndup. | |
438 | ||
680e8701 AD |
439 | 2002-04-07 Akim Demaille <akim@epita.fr> |
440 | ||
441 | * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New. | |
442 | * src/output.c (output_table_data): Return the longest number. | |
443 | (prepare_tokens): Output `token_number_max'). | |
444 | * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type): | |
445 | New. | |
446 | Use them to define yy_token_number_type/TokenNumberType. | |
447 | Use this type for yytranslate. | |
448 | * tests/torture.at (Big triangle): Push the limit from 124 to | |
449 | 253. | |
450 | * tests/regression.at (Web2c Actions): Adjust. | |
451 | ||
817e9f41 AD |
452 | 2002-04-07 Akim Demaille <akim@epita.fr> |
453 | ||
454 | * tests/torture.at (Big triangle): New. | |
455 | (GNU AWK Grammar, GNU Cim Grammar): Move to... | |
456 | * tests/existing.at: here. | |
457 | ||
5123689b AD |
458 | 2002-04-07 Akim Demaille <akim@epita.fr> |
459 | ||
460 | * src/gram.h, src/gram.c (nitems): Remove, it is an alias of | |
461 | nritems. | |
462 | Adjust dependencies. | |
463 | ||
f3849179 AD |
464 | 2002-04-07 Akim Demaille <akim@epita.fr> |
465 | ||
466 | * src/reader.c: Normalize increments to prefix form. | |
467 | ||
bd02036a AD |
468 | 2002-04-07 Akim Demaille <akim@epita.fr> |
469 | ||
470 | * src/reader.c, symtab.c: Remove debugging code. | |
471 | ||
db8837cb AD |
472 | 2002-04-07 Akim Demaille <akim@epita.fr> |
473 | ||
474 | Rename all the `bucket's as `symbol_t'. | |
475 | ||
476 | * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c, | |
477 | * src/reader.c, src/reader.h, src/reduce.c, src/state.h, | |
478 | * src/symtab.c, src/symtab.h (bucket): Rename as... | |
479 | (symbol_t): this. | |
480 | (symbol_list_new, bucket_check_defined, bucket_make_alias) | |
481 | (bucket_check_alias_consistence, bucket_pack, bucket_translation) | |
482 | (bucket_new, bucket_free, hash_compare_bucket, hash_bucket) | |
483 | (buckets_new, buckets_free, buckets_do): Rename as... | |
484 | (symbol_list_new, symbol_check_defined, symbol_make_alias) | |
485 | (symbol_check_alias_consistence, symbol_pack, symbol_translation) | |
486 | (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t) | |
487 | (symbols_new, symbols_free, symbols_do): these. | |
488 | ||
72a23c97 AD |
489 | 2002-04-07 Akim Demaille <akim@epita.fr> |
490 | ||
491 | Use lib/hash for the symbol table. | |
492 | ||
493 | * src/gram.c (ntokens): Initialize to 1, to reserve a slot for | |
494 | EOF. | |
495 | * src/lex.c (lex): Set the `number' member of new terminals. | |
496 | * src/reader.c (bucket_check_defined, bucket_make_alias) | |
497 | (bucket_check_alias_consistence, bucket_translation): New. | |
498 | (reader, grammar_free, readgram, token_translations_init) | |
499 | (packsymbols): Adjust. | |
500 | (reader): Number the predefined tokens. | |
501 | * src/reduce.c (inaccessable_symbols): Just use hard coded numbers | |
502 | for predefined tokens. | |
503 | * src/symtab.h (bucket): Remove all the hash table related | |
504 | members. | |
505 | * src/symtab.c (symtab): Replace by... | |
506 | (bucket_table): this. | |
507 | (bucket_new, bucket_free, hash_compare_bucket, hash_bucket) | |
508 | (buckets_new, buckets_do): New. | |
509 | ||
280a38c3 AD |
510 | 2002-04-07 Akim Demaille <akim@epita.fr> |
511 | ||
512 | * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems) | |
513 | (start_symbol, max_user_token_number, semantic_parser) | |
514 | (error_token_number): Initialize. | |
515 | * src/reader.c (grammar, start_flag, startval, typed, lastprec): | |
516 | Initialize. | |
517 | (reader): Don't. | |
518 | (errtoken, eoftoken, undeftoken, axiom): Extern. | |
519 | ||
03b31c0c AD |
520 | 2002-04-07 Akim Demaille <akim@epita.fr> |
521 | ||
522 | * src/gram.h (rule_s): prec and precsym are now pointers | |
523 | to the bucket giving the priority/associativity. | |
524 | Member `associativity' removed: useless. | |
525 | * src/reduce.c, src/conflicts.c: Adjust. | |
526 | ||
8b3df748 AD |
527 | 2002-04-07 Akim Demaille <akim@epita.fr> |
528 | ||
529 | * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c: | |
530 | Properly escape the symbols' TAG when outputting them. | |
531 | ||
e601aa1d AD |
532 | 2002-04-07 Akim Demaille <akim@epita.fr> |
533 | ||
534 | * src/lalr.h (LA): Is a bitsetv, not bitset*. | |
535 | ||
b0299a2e AD |
536 | 2002-04-07 Akim Demaille <akim@epita.fr> |
537 | ||
538 | * src/lalr.h, src/lalr.c (LAruleno): Replace with... | |
539 | (LArule): this, which is an array to rule_t*. | |
540 | * src/print.c, src/conflicts.c: Adjust. | |
541 | ||
d7e1f00c AD |
542 | 2002-04-07 Akim Demaille <akim@epita.fr> |
543 | ||
544 | * src/gram.h (rule_t): Rename `number' as `user_number'. | |
545 | `number' is a new member. | |
546 | Adjust dependencies. | |
547 | * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number. | |
548 | ||
cc9305dd AD |
549 | 2002-04-07 Akim Demaille <akim@epita.fr> |
550 | ||
551 | As a result of the previous patch, it is no longer needed | |
552 | to reorder ritem itself. | |
553 | ||
554 | * src/reduce.c (reduce_grammar_tables): Don't sort RITEM. | |
555 | ||
b0940840 AD |
556 | 2002-04-07 Akim Demaille <akim@epita.fr> |
557 | ||
558 | Be sure never to walk through RITEMS, but use only data related to | |
559 | the rules themselves. RITEMS should be banished. | |
560 | ||
561 | * src/output.c (output_token_translations): Rename as... | |
562 | (prepare_tokens): this. | |
563 | In addition to `translate', prepare the muscles `tname' and | |
564 | `toknum', which were handled by... | |
565 | (output_rule_data): this. | |
566 | Remove, and move the remainder of its outputs into... | |
567 | (prepare_rules): this new routines, which also merges content from | |
568 | (output_gram): this. | |
569 | (prepare_rules): Be sure never to walk through RITEMS. | |
570 | (output_stos): Rename as... | |
571 | (prepare_stos): this. | |
572 | (output): Always invoke prepare_states, after all, just don't use it | |
573 | in the output if you don't need it. | |
574 | ||
643a5994 AD |
575 | 2002-04-07 Akim Demaille <akim@epita.fr> |
576 | ||
577 | * src/LR0.c (new_state): Display `nstates' as the name of the | |
578 | newly created state. | |
579 | Adjust to initialize first_state and last_state if needed. | |
580 | Be sure to distinguish the initial from the final state. | |
581 | (new_states): Create the itemset of the initial state, and use | |
582 | new_state. | |
583 | * src/closure.c (closure): Now that the initial state has its | |
584 | items properly set, there is no need for a special case when | |
585 | creating `ruleset'. | |
586 | ||
587 | As a result, now the rule 0, reducing to $axiom, is visible in the | |
588 | outputs. Adjust the test suite. | |
589 | ||
590 | * tests/conflicts.at (Solved SR Conflicts) | |
591 | (Unresolved SR Conflicts): Adjust. | |
592 | * tests/regression.at (Web2c Report, Rule Line Numbers): Idem. | |
593 | * tests/conflicts.at (S/R in initial): New. | |
594 | ||
b4c4ccc2 AD |
595 | 2002-04-07 Akim Demaille <akim@epita.fr> |
596 | ||
597 | * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over | |
598 | the RHS of the rules. | |
599 | * src/output.c (output_gram): Likewise. | |
600 | ||
bba97eb2 AD |
601 | 2002-04-07 Akim Demaille <akim@epita.fr> |
602 | ||
603 | * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's | |
604 | bucket. | |
605 | Adjust all dependencies. | |
606 | * src/reduce.c (nonterminals_reduce): Don't forget to renumber the | |
607 | `number' of the buckets too. | |
608 | * src/gram.h: Include `symtab.h'. | |
609 | (associativity): Move to... | |
610 | * src/symtab.h: here. | |
611 | No longer include `gram.h'. | |
612 | ||
c3b407f4 AD |
613 | 2002-04-07 Akim Demaille <akim@epita.fr> |
614 | ||
615 | * src/gram.h, src/gram.c (rules_rhs_length): New. | |
616 | (ritem_longest_rhs): Use it. | |
617 | * src/gram.h (rule_t): `number' is a new member. | |
618 | * src/reader.c (packgram): Set it. | |
619 | * src/reduce.c (reduce_grammar_tables): Move the useless rules at | |
620 | the end of `rules', and count them out of `nrules'. | |
621 | (reduce_output, dump_grammar): Adjust. | |
622 | * src/print.c (print_grammar): It is no longer needed to check for | |
623 | the usefulness of a rule, as useless rules are beyond `nrules + 1'. | |
624 | * tests/reduce.at (Reduced Automaton): New test. | |
625 | ||
11652ab3 AD |
626 | 2002-04-07 Akim Demaille <akim@epita.fr> |
627 | ||
628 | * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a | |
629 | lacking `+ 1' to nrules, Bison reported as useless a token if it | |
630 | was used solely to set the precedence of the last rule... | |
631 | ||
26b23c1a AD |
632 | 2002-04-07 Akim Demaille <akim@epita.fr> |
633 | ||
634 | * data/bison.c++, data/bison.simple: Don't output the current file | |
635 | name in #line, to avoid useless diffs between two identical | |
636 | outputs under different names. | |
637 | ||
18bcecb0 AD |
638 | 2002-04-07 Akim Demaille <akim@epita.fr> |
639 | ||
640 | * src/closure.c, src/print.c, src/reader.c, src/reduce.c: | |
641 | Normalize loops to using `< nrules + 1', not `<= nrules'. | |
642 | ||
fa770c86 AD |
643 | 2002-04-07 Akim Demaille <akim@epita.fr> |
644 | ||
645 | * TODO: Update. | |
646 | ||
d9b739c3 AD |
647 | 2002-04-07 Akim Demaille <akim@epita.fr> |
648 | ||
649 | * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename | |
650 | bucket.value as bucket.number. | |
651 | ||
99013900 AD |
652 | 2002-04-07 Akim Demaille <akim@epita.fr> |
653 | ||
654 | * src/closure.c, src/derives.c, src/gram.h, src/lalr.c, | |
655 | * src/nullable.c, src/output.c, src/print.c, src/print_graph.c, | |
656 | * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the | |
657 | RHS, instead of being an index in RITEMS. | |
658 | ||
e966383b PE |
659 | 2002-04-04 Paul Eggert <eggert@twinsun.com> |
660 | ||
661 | * doc/bison.texinfo: Update copyright date. | |
662 | (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII. | |
663 | (Symbols): Warn about running Bison in one character set, | |
664 | but compiling and/or running in an incompatible one. | |
665 | Warn about character code 256, too. | |
666 | ||
667 | 2002-04-03 Paul Eggert <eggert@twinsun.com> | |
668 | ||
669 | * src/bison.data (YYSTACK_ALLOC): Depend on whether | |
670 | YYERROR_VERBOSE is nonzero, not whether it is defined. | |
671 | ||
672 | Merge changes from bison-1_29-branch. | |
c307773e | 673 | |
8d6c48b9 PE |
674 | 2002-03-20 Paul Eggert <eggert@twinsun.com> |
675 | ||
676 | Merge fixes from Debian bison_1.34-1.diff. | |
677 | ||
678 | * configure.in (AC_PREREQ): 2.53. | |
679 | ||
e53c6322 AD |
680 | 2002-03-20 Akim Demaille <akim@epita.fr> |
681 | ||
682 | * src/conflicts.c (log_resolution): Argument `resolution' is const. | |
683 | ||
9ffbeca7 PE |
684 | 2002-03-19 Paul Eggert <eggert@twinsun.com> |
685 | ||
21db0b2a PE |
686 | * src/bison.simple (YYCOPY): New macro. |
687 | (YYSTACK_RELOCATE): Use it. | |
688 | Remove Type arg; no longer needed. All callers changed. | |
689 | (yymemcpy): Remove; no longer needed. | |
690 | ||
9ffbeca7 PE |
691 | * Makefile.am (AUTOMAKE_OPTIONS): 1.6. |
692 | * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove. | |
693 | ||
642cb8f8 AD |
694 | 2002-03-19 Akim Demaille <akim@epita.fr> |
695 | ||
696 | Test and fix the #line outputs. | |
697 | ||
698 | * tests/atlocal.at (GCC): New. | |
699 | * tests/synclines.at (AT_TEST_SYNCLINE): New macro. | |
700 | (Prologue synch line, ,%union synch line, Postprologue synch line) | |
701 | (Action synch line, Epilogue synch line): New tests. | |
702 | * src/reader.c (parse_union_decl): Define the muscle stype_line. | |
703 | * data/bison.simple, data/bison.c++: Use it. | |
704 | ||
3c31a486 AD |
705 | 2002-03-19 Akim Demaille <akim@epita.fr> |
706 | ||
707 | * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts) | |
708 | (Solved SR Conflicts, %expect not enough, %expect right) | |
709 | (%expect too much): Move to... | |
710 | * tests/conflicts.at: this new file. | |
711 | ||
0d8bed56 AD |
712 | 2002-03-19 Akim Demaille <akim@epita.fr> |
713 | ||
714 | * data/m4sugar/m4sugar.m4: Update from CVS Autoconf. | |
715 | * data/bison.simple, data/bison.c++: Handle the `#define' part, so | |
716 | that we can move to enums for instance. | |
717 | * src/output.c (token_definitions_output): Output a list of | |
718 | `token-name, token-number' instead of the #define. | |
719 | (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'. | |
720 | ||
9208d17f AD |
721 | 2002-03-14 Akim Demaille <akim@epita.fr> |
722 | ||
723 | Use Gettext 0.11.1. | |
724 | ||
af27eacb RA |
725 | 2002-03-09 Robert Anisko <robert@lrde.epita.fr> |
726 | ||
727 | * data/bison.c++: Make the user able to add members to the generated | |
728 | parser by subclassing. | |
729 | ||
9101a310 RA |
730 | 2002-03-05 Robert Anisko <robert@lrde.epita.fr> |
731 | ||
732 | * src/reader.c (read_additionnal_code): `c' should be an integer, not | |
733 | a character. | |
734 | Reported by Nicolas Tisserand and Nicolas Burrus. | |
735 | ||
fff9bf0b RA |
736 | 2002-03-04 Robert Anisko <robert@lrde.epita.fr> |
737 | ||
738 | * src/reader.c: Warn about lacking semi-colons, do not complain. | |
739 | ||
64dba31e RA |
740 | 2002-03-04 Robert Anisko <robert@lrde.epita.fr> |
741 | ||
742 | * data/bison.c++: Remove a debug line. | |
743 | ||
374f5a14 RA |
744 | 2002-03-04 Robert Anisko <robert@lrde.epita.fr> |
745 | ||
746 | * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge | |
747 | location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and | |
748 | provide a default implementation. | |
749 | ||
bfcf1f3a AD |
750 | 2002-03-04 Akim Demaille <akim@epita.fr> |
751 | ||
752 | * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'. | |
753 | * tests/output.at (AT_CHECK_OUTPUT): Likewise. | |
754 | * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto. | |
755 | * tests/semantic.at (Parsing Guards): Similarly. | |
756 | * src/reader.at (readgram): Complain if the last rule is not ended | |
757 | with a semi-colon. | |
758 | ||
65ccf9fc AD |
759 | 2002-03-04 Akim Demaille <akim@epita.fr> |
760 | ||
761 | * src/warshall.h, src/warshall.c (bitmatrix_print): Move to... | |
762 | * src/closure.c: here. | |
763 | (set_firsts): Use bitsetv_reflexive_transitive_closure instead of | |
764 | RTC. | |
765 | * src/warshall.h, src/warshall.c: Remove. | |
766 | * tests/sets.at (Broken Closure): Adjust. | |
767 | ||
d0039cbc AD |
768 | 2002-03-04 Akim Demaille <akim@epita.fr> |
769 | ||
770 | * src/output.c (output_skeleton): tempdir is const. | |
771 | bytes_read is unused. | |
772 | ||
345cea78 AD |
773 | 2002-03-04 Akim Demaille <akim@epita.fr> |
774 | ||
775 | * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c, | |
776 | * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c: | |
777 | Update. | |
778 | From Michael Hayes. | |
779 | ||
564801f7 AD |
780 | 2002-03-04 Akim Demaille <akim@epita.fr> |
781 | ||
782 | * src/closure.c (closure): `r' is unused. | |
783 | ||
e5352bc7 AD |
784 | 2002-03-04 Akim Demaille <akim@epita.fr> |
785 | ||
786 | * tests/sets.at (Broken Closure): Add the ending `;'. | |
787 | * src/reader.at (readgram): Complain if a rule is not ended with a | |
788 | semi-colon. | |
789 | ||
914feea9 AD |
790 | 2002-03-04 Akim Demaille <akim@epita.fr> |
791 | ||
792 | * src/conflicts.c (set_conflicts): Use bitset_disjoint_p. | |
793 | (count_sr_conflicts): Use bitset_count. | |
794 | * src/reduce.c (inaccessable_symbols): Ditto. | |
795 | (bits_size): Remove. | |
796 | * src/warshall.h, src/warshall.c: Convert to bitsetv. | |
797 | ||
f0250de6 AD |
798 | 2002-03-04 Akim Demaille <akim@epita.fr> |
799 | ||
800 | * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c, | |
801 | * src/reduce.c: Remove the `bitset_zero's following the | |
802 | `bitset_create's, as now it is performed by the latter. | |
803 | ||
ef017502 AD |
804 | 2002-03-04 Akim Demaille <akim@epita.fr> |
805 | ||
806 | * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h, | |
807 | * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h, | |
808 | * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the | |
809 | latest sources from Michael. | |
810 | ||
76514394 AD |
811 | 2002-03-04 Akim Demaille <akim@epita.fr> |
812 | ||
813 | * src/output.c (output): Don't free the grammar. | |
814 | * src/reader.c (grammar_free): New. | |
815 | * src/main.c (main): Call it and don't free symtab here. | |
816 | ||
55024580 AD |
817 | 2002-03-04 Akim Demaille <akim@epita.fr> |
818 | ||
819 | * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer | |
820 | before returning. | |
821 | Reported by Benoit Perrot. | |
822 | ||
f9abaa2c AD |
823 | 2002-03-04 Akim Demaille <akim@epita.fr> |
824 | ||
825 | Use bitset operations when possible, not loops over bits. | |
826 | ||
827 | * src/conflicts.c (set_conflicts, count_sr_conflicts): Use | |
828 | bitset_or. | |
829 | * src/print.c (print_reductions): Use bitset_and, bitset_andn. | |
830 | * src/reduce.c (useless_nonterminals): Formatting changes. | |
831 | * src/warshall.c (TC): Use bitset_or. | |
832 | ||
0e721e75 AD |
833 | 2002-03-04 Akim Demaille <akim@epita.fr> |
834 | ||
835 | * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused. | |
836 | * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET): | |
837 | Ditto. | |
838 | ||
0fb1ffb1 AD |
839 | 2002-03-04 Akim Demaille <akim@epita.fr> |
840 | ||
841 | * src/lalr.c (F): Now a bitset*. | |
842 | Adjust all dependencies. | |
843 | ||
b86796bf AD |
844 | 2002-03-04 Akim Demaille <akim@epita.fr> |
845 | ||
846 | * src/conflicts.c (shiftset, lookaheadset): Now bitset. | |
847 | Adjust all dependencies. | |
848 | ||
602bbf31 AD |
849 | 2002-03-04 Akim Demaille <akim@epita.fr> |
850 | ||
851 | * src/L0.c, src/LR0.h (nstates): Be size_t. | |
852 | Adjust comparisons (signed vs unsigned). | |
853 | * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a | |
854 | bitset*. | |
855 | Adjust all dependencies. | |
856 | ||
d8a0245c AD |
857 | 2002-03-04 Akim Demaille <akim@epita.fr> |
858 | ||
859 | * src/closure.c (firsts): Now, also a bitset. | |
860 | Adjust all dependencies. | |
861 | (varsetsize): Remove, now unused. | |
862 | * src/warshall.h, src/warshall.c: Now work on arrays of bitsets. | |
863 | ||
34ba9743 AD |
864 | 2002-03-04 Akim Demaille <akim@epita.fr> |
865 | ||
866 | * src/print.c: Convert to use bitset.h, not hand coded iterations | |
867 | over ints. | |
868 | ||
ed86e78c AD |
869 | 2002-03-04 Akim Demaille <akim@epita.fr> |
870 | ||
871 | * src/reduce.c: Convert to use bitset.h, not hand coded BSet. | |
872 | ||
dfdb1797 AD |
873 | 2002-03-04 Akim Demaille <akim@epita.fr> |
874 | ||
875 | * src/closure.c (ruleset): Be a bitset. | |
876 | (rulesetsize): Remove. | |
877 | ||
7086e707 AD |
878 | 2002-03-04 Akim Demaille <akim@epita.fr> |
879 | ||
880 | * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c, | |
881 | * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, | |
882 | * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New. | |
883 | * src/closure.c (fderives): Be an array of bitsets. | |
884 | ||
98254360 RA |
885 | 2002-02-28 Robert Anisko <robert@lrde.epita.fr> |
886 | ||
887 | * data/bison.c++: Merge the two generated headers. Insert a copyright | |
888 | notice in each output file. | |
889 | ||
a75c057f AD |
890 | 2002-02-28 Akim Demaille <akim@epita.fr> |
891 | ||
892 | * data/bison.c++: Copy the prologue of bison.simple to fetch | |
893 | useful M4 definitions, such as b4_header_guard. | |
894 | ||
06b00abc AD |
895 | 2002-02-25 Akim Demaille <akim@epita.fr> |
896 | ||
897 | * src/getargs.c (version): Give the name of the authors, and use a | |
a75c057f AD |
898 | translator friendly scheme for the bgr |
899 | copyright notice. | |
06b00abc | 900 | |
70e7d534 AD |
901 | 2002-02-25 Akim Demaille <akim@epita.fr> |
902 | ||
903 | * src/output.c (header_output): Remove, now handled completely via | |
904 | M4. | |
905 | ||
abe017f6 AD |
906 | 2002-02-25 Akim Demaille <akim@epita.fr> |
907 | ||
908 | * m4/m4.m4: New, from CVS Autoconf. | |
909 | * configure.in: Invoke it. | |
910 | * src/output.c (output_skeleton): Use its result instead of the | |
911 | hard coded name. | |
912 | ||
381fb12e AD |
913 | 2002-02-25 Akim Demaille <akim@epita.fr> |
914 | ||
915 | * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from | |
916 | Fileutils 4.1.5. | |
917 | * configure.in: Invoke UTILS_FUNC_MKSTEMP. | |
918 | * src/output.c (output_skeleton): Use mkstemp to create a real | |
919 | temporary file. | |
920 | Move the filling of `skeleton' and its muscle to... | |
921 | (prepare): here. | |
922 | (output): Move the definition of the prologue muscle to... | |
923 | (prepare): here. | |
924 | * src/system.h (DEFAULT_TMPDIR): New. | |
925 | ||
6f38107f PE |
926 | 2002-02-14 Paul Eggert <eggert@twinsun.com> |
927 | ||
928 | Remove the support for C++ namespace cleanliness; it was | |
929 | causing more problems than it was curing, since it didn't work | |
930 | properly on some nonstandard C++ compilers. This can wait | |
931 | for a proper C++ parser. | |
932 | ||
933 | * NEWS: Document this. | |
934 | * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention | |
935 | of C++, as it's treated like C now. | |
936 | * src/bison.simple (YYSTD): Remove. | |
937 | (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL): | |
938 | Treat C++ just like Standard C instead of trying to support | |
939 | namespace cleanliness. | |
940 | ||
80cce3da AD |
941 | 2002-02-14 Akim Demaille <akim@epita.fr> |
942 | ||
943 | * tests/regression.at (else): Adjust to Andreas' change. | |
944 | ||
842e8679 AD |
945 | 2002-02-14 Akim Demaille <akim@epita.fr> |
946 | ||
947 | * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c. | |
948 | ||
4bda3f10 AD |
949 | 2002-02-13 Andreas Schwab <schwab@suse.de> |
950 | ||
951 | * src/output.c (output_rule_data): Don't output NULL, it might | |
952 | not be defined yet. | |
953 | ||
4162fa07 | 954 | 2002-02-11 Robert Anisko <robert@lrde.epita.fr> |
b418ecd8 | 955 | |
4162fa07 RA |
956 | * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue. |
957 | (Copyright notice): Update. | |
b418ecd8 | 958 | |
bd16a5dc AD |
959 | 2002-02-11 Akim Demaille <akim@epita.fr> |
960 | ||
961 | * tests/regression.at (%nonassoc and eof): Don't include | |
962 | nonportable headers. | |
963 | ||
8d69a1a3 RA |
964 | 2002-02-08 Robert Anisko <robert@lrde.epita.fr> |
965 | ||
966 | * data/bison.c++: Correct error recovery. Make the user able to | |
967 | initialize the starting location. | |
968 | ||
9b2d0677 AD |
969 | 2002-02-07 Akim Demaille <akim@epita.fr> |
970 | ||
971 | * tests/input.at: New. | |
972 | ||
69e2658b RA |
973 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
974 | ||
975 | * data/bison.c++: Replace some direct m4 expansions by constants. Be | |
9b2d0677 | 976 | more consistent when naming methods and variables. Put preprocessor |
69e2658b RA |
977 | directives around tables only needed for debugging. |
978 | ||
4aacc3a7 RA |
979 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
980 | ||
981 | * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in | |
982 | C++ parsers. | |
983 | (yy::b4_name::parse): Use print_. | |
984 | ||
762a801e RA |
985 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
986 | ||
987 | * data/bison.c++ (yy::b4_name::parse): Error recovery is back. | |
988 | ||
4bb2bc3f RA |
989 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
990 | ||
991 | * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in | |
992 | C++ parsers. | |
993 | (yy::b4_name::parse): Build verbose error messages, and use error_. | |
994 | ||
6b45a3ca RA |
995 | 2002-02-06 Robert Anisko <robert@lrde.epita.fr> |
996 | ||
997 | * data/bison.c++: Fix m4 quoting in comments. | |
998 | ||
50997c6e RA |
999 | 2002-02-06 Robert Anisko <robert@lrde.epita.fr> |
1000 | ||
1001 | * data/bison.c++: Adjust the parser code. Fix some muscles that were | |
1002 | not expanded by m4. | |
1003 | ||
3f3eed27 AD |
1004 | 2002-02-05 Akim Demaille <akim@epita.fr> |
1005 | ||
1006 | * data/bison.c++: Adjust to the M4 back end. | |
1007 | More is certainly needed. | |
1008 | ||
be2a1a68 AD |
1009 | 2002-02-05 Akim Demaille <akim@epita.fr> |
1010 | ||
1011 | Give a try to M4 as a back end. | |
1012 | ||
1013 | * lib/readpipe.c: New, from wdiff. | |
1014 | * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and | |
1015 | BISON_HAIRY. | |
1016 | * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS | |
1017 | specific values. Now it is m4 that performs the lookup. | |
1018 | * src/parse-skel.y: Remove. | |
1019 | * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New. | |
1020 | * src/output.c (actions_output, guards_output) | |
1021 | (token_definitions_output): No longer keeps track of the output | |
1022 | line number, hence remove the second argument. | |
1023 | (guards_output): Check against the guard member of a rule, not the | |
1024 | action member. | |
1025 | Adjust callers. | |
1026 | (output_skeleton): Don't look for the skeleton location, let m4 do | |
1027 | that. | |
1028 | Create `/tmp/muscles.m4'. This is temporary, a proper temporary | |
1029 | file will be used. | |
1030 | Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton. | |
1031 | (prepare): Given that for the time being changesyntax is not | |
1032 | usable in M4, rename the muscles using `-' to `_'. | |
1033 | Define `defines_flag', `output_parser_name' and `output_header_name'. | |
1034 | * src/output.h (actions_output, guards_output) | |
1035 | (token_definitions_output): Adjust prototypes. | |
1036 | * src/scan-skel.l: Instead of scanning the skeletons, it now | |
1037 | processes the output of m4: `__oline__' and `#output'. | |
1038 | * data/bison.simple: Adjust to be used by M4(sugar). | |
1039 | * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up | |
1040 | to date. | |
1041 | * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR' | |
1042 | instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'. | |
1043 | * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New, | |
1044 | shamelessly stolen from CVS Autoconf. | |
1045 | ||
beda758b AD |
1046 | 2002-02-05 Akim Demaille <akim@epita.fr> |
1047 | ||
1048 | * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version. | |
1049 | * configure.in: Check for the declarations of free and malloc. | |
1050 | * src/muscle_tab.c: Adjust. | |
1051 | ||
5ece6d43 AD |
1052 | 2002-02-05 Akim Demaille <akim@epita.fr> |
1053 | ||
1054 | * src/muscle_tab.c (muscle_init): Don't default to NULL muscle | |
1055 | which have no values. | |
1056 | ||
5bb18f9a AD |
1057 | 2002-02-05 Akim Demaille <akim@epita.fr> |
1058 | ||
1059 | * src/bison.simple, src/bison.hairy, src/bison.c++: Move to... | |
1060 | * data/: here. | |
1061 | ||
894dd62e PE |
1062 | 2002-01-29 Paul Eggert <eggert@twinsun.com> |
1063 | ||
1064 | * src/bison.simple (YYSIZE_T): Do not define merely because | |
1065 | YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined. | |
1066 | On some platforms, <alloca.h> does not declare YYSTD (size_t). | |
1067 | ||
82841af7 AD |
1068 | 2002-01-27 Akim Demaille <akim@epita.fr> |
1069 | ||
1070 | Fix `%nonassoc and eof'. | |
1071 | ||
1072 | * src/state.c (errs_dup): Aaaah! The failure was due to bytes | |
1073 | which were not properly copied! Replace | |
1074 | memcpy (res->errs, src->errs, src->nerrs); | |
1075 | with | |
1076 | memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0])); | |
1077 | !!! | |
1078 | * tests/regression.at (%nonassoc and eof): Adjust to newest | |
1079 | Autotest: `.' is not in the PATH. | |
1080 | ||
318b76e9 AD |
1081 | 2002-01-27 Akim Demaille <akim@epita.fr> |
1082 | ||
1083 | * tests/sets.at (AT_EXTRACT_SETS): New. | |
1084 | (Nullable): Use it. | |
1085 | (Firsts): New. | |
1086 | ||
30d2f3d5 AD |
1087 | 2002-01-26 Akim Demaille <akim@epita.fr> |
1088 | ||
1089 | * tests/actions.at, tests/calc.at, tests/headers.at, | |
1090 | * tests/torture.at: Adjust to the newest Autotest which no longer | |
1091 | forces `.' in the PATH. | |
1092 | ||
30f8c395 AD |
1093 | 2002-01-25 Akim Demaille <akim@epita.fr> |
1094 | ||
1095 | * tests/regression.at (%nonassoc and eof): New. | |
1096 | Suggested by Robert Anisko. | |
1097 | ||
29ae55f1 AD |
1098 | 2002-01-24 Akim Demaille <akim@epita.fr> |
1099 | ||
1100 | Bison dumps core when trying to complain about broken input files. | |
1101 | Reported by Cris van Pelt. | |
1102 | ||
1103 | * src/lex.c (parse_percent_token): Be sure to set token_buffer. | |
1104 | * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge | |
1105 | into... | |
1106 | (Invalid inputs): Strengthen: exercise parse_percent_token. | |
1107 | ||
2b548aa6 RA |
1108 | 2002-01-24 Robert Anisko <robert.anisko@epita.fr> |
1109 | ||
1110 | * src/Makefile.am: Add bison.c++. | |
1111 | * src/bison.c++: New skeleton. | |
1112 | ||
bb0146c2 AD |
1113 | 2002-01-21 Paolo Bonzini <bonzini@gnu.org> |
1114 | ||
1115 | * po/it.po: New. | |
1116 | ||
bec30531 AD |
1117 | 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net> |
1118 | ||
1119 | * src/files.c (skeleton_find) [MSDOS]: Fix cp definition. | |
1120 | ||
fc6edc45 MA |
1121 | 2002-01-20 Marc Autret <marc@gnu.org> |
1122 | ||
1123 | * src/files.c (compute_output_file_names): Fix | |
1124 | ||
5e5d5415 MA |
1125 | 2002-01-20 Marc Autret <marc@gnu.org> |
1126 | ||
1127 | * tests/output.at: New test. | |
1128 | * src/files.c (compute_base_names): Don't map extensions when | |
1129 | the YACC flag is set, use defaults. | |
1130 | Reported by Evgeny Stambulchik. | |
1131 | ||
44ea3fbd MA |
1132 | 2002-01-20 Marc Autret <marc@gnu.org> |
1133 | ||
bb0146c2 | 1134 | * src/system.h: Need to define __attribute__ away for non-GCC |
44ea3fbd MA |
1135 | compilers as well (i.e. the vendor C compiler). |
1136 | Suggested by Albert Chin-A-Young. | |
1137 | ||
338963d1 TVH |
1138 | 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be> |
1139 | ||
1140 | * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the | |
1141 | canonical definition. | |
1142 | * src/system.h: Use the canonical definition for PARAMS (avoids | |
1143 | a conflict with the macro from lib/hash.h). | |
1144 | ||
c57b2479 AD |
1145 | 2002-01-11 Akim Demaille <akim@epita.fr> |
1146 | ||
1147 | * configure.in: Use AC_FUNC_STRNLEN. | |
d9e9746c | 1148 | Fixes the failures observed on AIX 4.3 by H.Merijn Brand. |
c57b2479 | 1149 | |
b85810ae AD |
1150 | 2002-01-09 Akim Demaille <akim@epita.fr> |
1151 | ||
1152 | * src/files.c, src/files.h (output_infix): New. | |
1153 | (tab_extension): Remove. | |
1154 | (compute_base_names): Compute the former, drop the latter. | |
1155 | * src/output.c (prepare): Insert the muscles `output-infix', and | |
1156 | `output-suffix'. | |
1157 | * src/parse-skel.y (string, string.1): New. | |
1158 | (section.header): Use it. | |
1159 | (section.yacc): Remove. | |
1160 | (prefix): Remove too. | |
1161 | * src/scan-skel.l: Adjust. | |
1162 | * src/bison.simple, src/bison.hairy: Adjust. | |
1163 | ||
cae60122 AD |
1164 | 2002-01-09 Akim Demaille <akim@epita.fr> |
1165 | ||
1166 | * configure.in (WERROR_CFLAGS): Compute it. | |
1167 | * src/Makefile.am (CFLAGS): Pass it. | |
1168 | * tests/atlocal.in (CFLAGS): Idem. | |
1169 | * src/files.c: Fix a few warnings. | |
1170 | (get_extension_index): Remove, unused. | |
1171 | ||
ae404801 AD |
1172 | 2002-01-08 Akim Demaille <akim@epita.fr> |
1173 | ||
1174 | * src/getargs.c (AS_FILE_NAME): New. | |
1175 | (getargs): Use it to convert DOSish file names. | |
1176 | * src/files.c (base_name): Rename as full_base_name to avoid | |
1177 | clashes with `base_name ()'. | |
1178 | (filename_split): New. | |
1179 | (compute_base_names): N-th rewrite, using filename_split. | |
1180 | ||
22312b71 AD |
1181 | 2002-01-08 Akim Demaille <akim@epita.fr> |
1182 | ||
1183 | * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c: | |
1184 | New, stolen from the Fileutils 4.1. | |
1185 | * lib/Makefile.am (libbison_a_SOURCES): Adjust. | |
1186 | * configure.in: Check for the presence of memrchr, and of its | |
1187 | prototype. | |
1188 | ||
a67cef01 TVH |
1189 | 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be> |
1190 | ||
1191 | * lib/hash.h (__P): Added definition for this macro. | |
1192 | * src/Makefile.am: Add parse-skel.c and scan-skel.c to | |
1193 | BUILT_SOURCES, to ensure they are generated first. | |
1194 | * src/parse-skel.y: Use YYERROR_VERBOSE instead of | |
1195 | %error-verbose to allow bootstrapping with bison 1.30x. | |
1196 | ||
2b25d624 AD |
1197 | 2002-01-06 Akim Demaille <akim@epita.fr> |
1198 | ||
1199 | * src/reader.c (parse_braces): Don't fetch the next char, the | |
1200 | convention is to fetch on entry. | |
1201 | * tests/torture.at (GNU Cim Grammar): Reintroduce their weird | |
1202 | 'switch' without a following semicolon. | |
1203 | * tests/regression.at (braces parsing): New. | |
1204 | ||
3460813b AD |
1205 | 2002-01-06 Akim Demaille <akim@epita.fr> |
1206 | ||
1207 | Bison is dead wrong in its RR conflict reports. | |
1208 | ||
1209 | * tests/torture.at (GNU Cim Grammar): New. | |
1210 | * src/conflicts.c (count_rr_conflicts): Fix. | |
1211 | ||
73784c64 AD |
1212 | 2002-01-06 Akim Demaille <akim@epita.fr> |
1213 | ||
1214 | Creating package.m4 from configure.ac causes too many problems. | |
1215 | ||
1216 | * tests/Makefile.am (package.m4): Create it by hand, | |
1217 | AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf. | |
1218 | ||
25d81090 AD |
1219 | 2002-01-06 Akim Demaille <akim@epita.fr> |
1220 | ||
1221 | * src/Makefile.am (bison_SOURCES): Add parse-skel.h and | |
1222 | skeleton.h. | |
1223 | ||
a9b8959e PE |
1224 | 2002-01-04 Paul Eggert <eggert@twinsun.com> |
1225 | ||
1226 | * doc/bison.texinfo (Debugging): | |
1227 | Remove YYSTDERR; it's no longer defined or used. | |
1228 | Also, s/cstdio.h/cstdio/. | |
1229 | ||
25d81090 AD |
1230 | 2002-01-03 Akim Demaille <akim@epita.fr> |
1231 | ||
1232 | * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf. | |
1233 | ||
1109455c AD |
1234 | 2002-01-03 Akim Demaille <akim@epita.fr> |
1235 | ||
1236 | * src/parse-skel.y (process_skeleton): Don't bind the parser's | |
1237 | tracing code to --trace, wait for a better --trace option, with | |
1238 | args. | |
1239 | ||
7ea5e977 AD |
1240 | 2002-01-03 Akim Demaille <akim@epita.fr> |
1241 | ||
1242 | * src/bison.simple (YYSTDERR): Remove, replace `stderr'. | |
1243 | The ISO C++ standard is extremely clear about it: stderr is | |
1244 | considered a macro, not a regular symbol (see table 94 `Header | |
1245 | <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files). | |
1246 | Therefore std:: does not apply to it. It still does with fprintf. | |
1247 | Also, s/cstdio.h/cstdio/. | |
1248 | ||
fab5b110 AD |
1249 | 2002-01-03 Akim Demaille <akim@epita.fr> |
1250 | ||
1251 | * lib/quotearg.c: Use `#include "..."' instead of `#include <...>' | |
1252 | for non system headers. | |
1253 | ||
aed7fd9b AD |
1254 | 2002-01-02 Akim Demaille <akim@epita.fr> |
1255 | ||
1256 | Equip the skeleton chain with location tracking, runtime trace, | |
1257 | pure parser and scanner. | |
1258 | ||
1259 | * src/parse-skel.y: Request a pure parser, locations, and prefix | |
1260 | renaming. | |
1261 | (%union): Having several members with the same type does not help | |
1262 | type mismatches, simplify. | |
1263 | (YYPRINT, yyprint): New. | |
1264 | (yyerror): ``Rename'' (there is a #define yyerror skel_error) as... | |
1265 | (skel_error): this. | |
1266 | Handle locations. | |
1267 | * src/scan-skel.l: Adjust to these changes. | |
1268 | * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP) | |
1269 | (LOCATION_PRINT, skel_control_t): New. | |
1270 | ||
24fad99e AD |
1271 | 2001-12-30 Akim Demaille <akim@epita.fr> |
1272 | ||
1273 | * src/parse-skel.y: Get rid of the shift/reduce conflict: | |
1274 | replace `gb' with BLANKS. | |
1275 | * src/scan-skel.l: Adjust. | |
1276 | ||
a4b36db4 AD |
1277 | 2001-12-30 Akim Demaille <akim@epita.fr> |
1278 | ||
1279 | * src/system.h: We don't need nor want bcopy. | |
1280 | Throw away MS-DOS crap: we don't need getpid. | |
1281 | * configure.in: We don't need strndup. It was even causing | |
1282 | problems: because Flex includes the headers *before* us, | |
1283 | _GNU_SOURCE is not defined by config.h, and therefore strndup was | |
1284 | not visible. | |
1285 | * lib/xstrndup.c: New. | |
1286 | * src/scan-skel.l: Use it. | |
1287 | Be sure to initialize yylval.muscle member when scanning a MUSCLE. | |
1288 | * src/parse-skel.y: Use %directives instead of #defines. | |
1289 | ||
1239777d AD |
1290 | 2001-12-30 Akim Demaille <akim@epita.fr> |
1291 | ||
1292 | * src/skeleton.h: New. | |
1293 | * src/output.c (output_parser, output_master_parser): Remove, dead | |
1294 | code. | |
1295 | * src/output.h (get_lines_number, actions_output, guards_output) | |
1296 | (token_definitions_output): Prototype them. | |
1297 | * src/parse-skel.y: Add the license notice. | |
1298 | Include output.h and skeleton.h. | |
1299 | (process_skeleton): Returns void, and takes a single parameter. | |
1300 | * src/scan-skel.l: Add the license notice. | |
1301 | Include skeleton.h. | |
1302 | Don't use %option yylineno: it seems that then Flex imagines | |
1303 | REJECT has been used, and therefore it won't reallocate its | |
1304 | buffers (which makes no other sense to me than a bug). It results | |
1305 | in warnings for `unused: yy_flex_realloc'. | |
1306 | ||
9b3add5b RA |
1307 | 2001-12-30 Robert Anisko <robert.anisko@epita.fr> |
1308 | ||
1309 | * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING) | |
1310 | (MUSCLE_INSERT_PREFIX): ...to there. | |
1311 | * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING) | |
1312 | (MUSCLE_INSERT_PREFIX): Move from here... | |
1313 | ||
1314 | * src/bison.hairy: Add a section directive. Put braces around muscle | |
1315 | names. This parser skeleton is still broken, but Bison should not | |
1316 | choke on a bad muscle 'syntax'. | |
1317 | * src/bison.simple: Add a section directive. Put braces around muscle | |
1318 | names. | |
1319 | ||
1320 | * src/files.h (strsuffix, stringappend): Add declarations. | |
1321 | (tab_extension): Add declaration. | |
1322 | (short_base_name): Add declaration. | |
1323 | ||
1324 | * src/files.c (strsuffix, stringappend): No longer static. These | |
1325 | functions are used in the skeleton parser. | |
1326 | (tab_extension): New. | |
1327 | (compute_base_names): Use the computations done in this function | |
fab5b110 | 1328 | to guess if the generated parsers should have '.tab' in their |
9b3add5b RA |
1329 | names. |
1330 | (short_base_name): No longer static. | |
1331 | ||
1332 | * src/output.c (output_skeleton): New. | |
1333 | (output): Disable call to output_master_parser, and give a try to | |
1334 | a new skeleton handling system. | |
1335 | (guards_output, actions_output): No longer static. | |
1336 | (token_definitions_output, get_lines_number): No longer static. | |
1337 | ||
1338 | * configure.in: Use AM_PROG_LEX and AC_PROG_YACC. | |
1339 | ||
fab5b110 | 1340 | * src/Makefile.am (bison_SOURCES): Add scan-skel.l and |
9b3add5b RA |
1341 | parse-skel.y. |
1342 | ||
1343 | * src/parse-skel.y: New file. | |
1344 | * src/scan-skel.l: New file. | |
1345 | ||
b5b61c61 AD |
1346 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1347 | ||
1348 | %name-prefix is broken. | |
1349 | ||
1350 | * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy". | |
1351 | Adjust all dependencies. | |
1352 | * tests/headers.at (export YYLTYPE): Strengthen this test: use | |
1353 | %name-prefix. | |
1354 | ||
1355 | Renaming yylval but not yylloc is not consistent. Now we do. | |
1356 | ||
1357 | * src/bison.simple: Prefix yylloc if used. | |
1358 | * doc/bison.texinfo (Decl Summary): Document that. | |
1359 | ||
8c9a50be AD |
1360 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1361 | ||
1362 | * doc/bison.texinfo: Promote `%long-directive' over | |
1363 | `%long_directive'. | |
1364 | Remove all references to fixed-output-files, yacc is enough. | |
1365 | ||
d99361e6 AD |
1366 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1367 | ||
1368 | * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the | |
1369 | user prologue. These are defaults. | |
1370 | * tests/actions.at (Mid-rule actions): Make sure the user can | |
1371 | define YYDEBUG and YYERROR_VERBOSE. | |
1372 | ||
b9cecb91 AD |
1373 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1374 | ||
1375 | * src/output.c (header_output): Don't forget to export YYLTYPE and | |
1376 | yylloc. | |
1377 | * tests/headers.at (export YYLTYPE): New, make sure it does. | |
1378 | * tests/regression.at (%union and --defines, Invalid CPP headers): | |
1379 | Move to... | |
1380 | * tests/headers.at: here. | |
1381 | ||
aea13e97 AD |
1382 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1383 | ||
1384 | * src/gram.h (rule_s): Member `assoc' is of type `associativity'. | |
1385 | ||
931394cb AD |
1386 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1387 | ||
1388 | * tests/actions.at (Mid-rule actions): Output on a single line | |
1389 | instead of several. | |
1390 | ||
704a47c4 AD |
1391 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1392 | ||
1393 | * doc/bison.texinfo: Formatting changes. | |
1394 | ||
091e20bb AD |
1395 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1396 | ||
1397 | Don't store the token defs in a muscle, just be ready to output it | |
1398 | on command. Now possible via `symbols'. Fixes a memory leak. | |
1399 | ||
1400 | * src/output.c (token_definitions_output): New. | |
1401 | (output_parser, header_output): Use it. | |
1402 | * src/reader.c (symbols_save): Remove. | |
1403 | ||
cce71710 AD |
1404 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1405 | ||
1406 | * src/bison.simple: Do not provide a default for YYSTYPE and | |
1407 | YYLTYPE before the user's prologue. Otherwise it's hardly... a | |
1408 | default. | |
1409 | ||
82c035a8 AD |
1410 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1411 | ||
1412 | Mid-rule actions are simply... ignored! | |
1413 | ||
1414 | * src/reader.c (readgram): Be sure to attach mid-rule actions to | |
1415 | the empty-rule associated to the dummy symbol, not to the host | |
1416 | rule. | |
1417 | * tests/actions.at (Mid-rule actions): New. | |
1418 | ||
8419d367 AD |
1419 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1420 | ||
1421 | Memory leak. | |
1422 | ||
1423 | * src/reader.c (reader): Free grammar. | |
1424 | ||
375d5806 AD |
1425 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1426 | ||
1427 | Memory leak. | |
1428 | ||
1429 | * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here, | |
1430 | since it allocates it for each state, although only one is needed. | |
1431 | (allocate_storage): Do it here. | |
1432 | ||
f51cb8ff AD |
1433 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1434 | ||
1435 | * src/options.h, src/options.c (create_long_option_table): Rename | |
1436 | as... | |
1437 | (long_option_table_new): this, with a clearer prototype. | |
1438 | (percent_table): Remove, unused, | |
1439 | * src/getargs.c (getargs): Adjust. | |
1440 | ||
29e88316 AD |
1441 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1442 | ||
1443 | * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c | |
1444 | * src/print.c, src/print_graph.c, src/state.h: Rename state_table | |
1445 | as states. | |
1446 | ||
b9f71f19 AD |
1447 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1448 | ||
1449 | * src/lalr.c (build_relations): Rename `states' as `states1'. | |
1450 | Sorry, I don't understand exactly what it is, no better name... | |
1451 | ||
1a2b5d37 AD |
1452 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1453 | ||
1454 | * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c | |
1455 | * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c | |
1456 | * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table | |
1457 | as rules. | |
1458 | ||
1cca533e AD |
1459 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1460 | ||
1461 | * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long | |
1462 | ago. | |
1463 | ||
c03ae966 AD |
1464 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1465 | ||
1466 | * src/reader.c, src/reader.h (user_toknums): Remove. | |
1467 | Adjust all users to use symbols[i]->user_token_number. | |
1468 | ||
5a670b1e AD |
1469 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1470 | ||
1471 | * src/gram.c, src/gram.h (sprec, sassoc): Remove. | |
1472 | Adjust all users to use symbols[i]->prec or ->assoc. | |
1473 | ||
ad949da9 AD |
1474 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1475 | ||
1476 | * src/reader.c, src/reader.h (tags): Remove. | |
1477 | Adjust all users to use symbols[i]->tag. | |
1478 | ||
0e78e603 AD |
1479 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1480 | ||
1481 | * src/gram.h, src/gram.c (symbols): New, similar to state_table | |
1482 | and rule_table. | |
1483 | * src/reader.c (packsymbols): Fill this table. | |
1484 | Drop sprec. | |
1485 | * src/conflicts.c (resolve_sr_conflict): Adjust. | |
1486 | * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a | |
1487 | single table. | |
1488 | Use symbols[i]->tag instead of tags[i]. | |
1489 | ||
213e640e AD |
1490 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1491 | ||
1492 | * tests/calc.at (_AT_DATA_CALC_Y): Also use %union. | |
1493 | In addition, put a comment in there, to replace... | |
1494 | * tests/regression.at (%union and C comments): Remove. | |
1495 | ||
e7b8bef1 AD |
1496 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1497 | ||
1498 | * tests/regression.at (Web2c Actions): Blindly move the actual | |
1499 | output as expected output. The contents *seem* right to me, but I | |
1500 | can't pretend reading perfectly parser tables... Nonetheless, all | |
1501 | the other tests pass correctly, the table look OK, even though the | |
1502 | presence of `$axiom' is to be noted: AFAICS it is useless (but | |
1503 | harmless). | |
1504 | ||
b68e7744 AD |
1505 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1506 | ||
1507 | * src/reader.c (readgram): Don't add the rule 0 if there were no | |
1508 | rules read. In other words, add it _after_ having performed | |
1509 | grammar sanity checks. | |
1510 | Fixes the `tests/regression.at (Invalid input: 1)' Failure. | |
1511 | ||
78d5bae9 AD |
1512 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1513 | ||
1514 | * tests/regression.at (Web2c Report): Catch up: the rule 0 is now | |
1515 | visible, and some states have now a different number. | |
1516 | ||
ff442794 AD |
1517 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1518 | ||
1519 | * src/reader.c (readgram): Bind the initial rule's lineno to that | |
1520 | of the first rule. | |
1521 | * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts): | |
1522 | (Solved SR Conflicts): Adjust rule 0's line number. | |
1523 | ||
610ab194 AD |
1524 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1525 | ||
1526 | Fix the `GAWK Grammar' failure. | |
1527 | ||
1528 | * src/LR0.c (final_state): Initialize to -1 so that we do compute | |
1529 | the reductions of the first state which was mistakenly confused | |
1530 | with the final state because precisely final_state was initialized | |
1531 | to 0. | |
1532 | * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads, | |
1533 | now noticed by Bison. | |
1534 | * tests/regression.at (Rule Line Numbers): Adjust: state 0 does | |
1535 | have a reduction on $default. | |
1536 | ||
29d29c8f AD |
1537 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1538 | ||
1539 | * src/gram.c (ritem_print): Be sure to subtract 1 when displaying | |
1540 | rule line numbers. | |
1541 | * src/closure.c (print_closure): Likewise. | |
1542 | * src/derives.c (print_derives): Likewise. | |
1543 | * tests/sets.at (Nullable): Adjust: the rule numbers are correct | |
1544 | now. | |
1545 | ||
7c6b64d0 AD |
1546 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1547 | ||
1548 | * src/lalr.c (lookaheads_print): New. | |
1549 | (lalr): Call it when --trace-flag. | |
1550 | * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads | |
1551 | are dumped. | |
1552 | ||
3d4daee3 AD |
1553 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1554 | ||
1555 | * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0', | |
1556 | when walking through ritem, even via rule->rhs. | |
1557 | * src/reduce.c (dump_grammar, useful_production, reduce_output) | |
1558 | (useful_production, useless_nonterminals): Likewise. | |
1559 | (reduce_grammar_tables): Likewise, plus update nritems. | |
1560 | * src/nullable.c (set_nullable): Likewise. | |
1561 | * src/lalr.c (build_relations): Likewise. | |
1562 | * tests/sets.at (Nullable): Adjust. | |
1563 | Fortunately, now, the $axiom is no longer nullable. | |
1564 | ||
9e7f6bbd AD |
1565 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1566 | ||
1567 | * src/LR0.c (generate_states): Use nritems, not nitems, nor using | |
1568 | the 0-sentinel. | |
1569 | * src/gram.c (ritem_longest_rhs): Likewise. | |
1570 | * src/reduce.c (nonterminals_reduce): Likewise. | |
1571 | * src/print_graph.c (print_graph): Likewise. | |
1572 | * src/output.c (output_rule_data): Likewise. | |
1573 | * src/nullable.c (set_nullable): Likewise. | |
1574 | ||
255ef638 AD |
1575 | 2001-12-29 Akim Demaille <akim@epita.fr> |
1576 | ||
1577 | * src/output.c: Comment changes. | |
1578 | ||
0d8a7363 AD |
1579 | 2001-12-27 Paul Eggert <eggert@twinsun.com> |
1580 | ||
1581 | * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special | |
1582 | cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and | |
1583 | Sparc, as they were causing more porting problems than the | |
1584 | (minor) performance improvement was worth. | |
1585 | ||
1586 | Also, catch up with 1.31's YYSTD. | |
1587 | ||
3db472b9 AD |
1588 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1589 | ||
1590 | * src/output.c (output_gram): Rely on nritems, not the | |
1591 | 0-sentinel. See below. | |
1592 | Use -1 as separator, not 0. | |
1593 | * src/bison.simple (yyparse): Subtract 1 to the rule numbers. | |
1594 | Rely on -1 as separator in yyrhs, instead of 0. | |
1595 | * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue | |
1596 | twice `Now at end of input', therefore there are two lines less to | |
1597 | expect. | |
1598 | ||
b365aa05 AD |
1599 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1600 | ||
1601 | * tests/regression.at (Unresolved SR Conflicts): | |
1602 | (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes | |
1603 | below. | |
1604 | ||
30171f79 AD |
1605 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1606 | ||
1607 | * src/LR0.c (new_state): Recognize the final state by the fact it | |
1608 | is reached by eoftoken. | |
1609 | (insert_start_shifting_state, insert_eof_shifting_state) | |
1610 | (insert_accepting_state, augment_automaton): Remove, since now | |
1611 | these states are automatically computed from the initial state. | |
1612 | (generate_states): Adjust. | |
1613 | * src/print.c: When reporting a rule number to the user, substract | |
1614 | 1, so that the axiom rule is rule 0, and the first user rule is 1. | |
1615 | * src/reduce.c: Likewise. | |
1616 | * src/print_graph.c (print_core): For the time being, just as for | |
1617 | the report, depend upon --trace-flags to dump the full set of | |
1618 | items. | |
1619 | * src/reader.c (readgram): Once the grammar read, insert the rule | |
1620 | 0: `$axiom: START-SYMBOL $'. | |
1621 | * tests/set.at: Adjust: rule 0 is now displayed, and since the | |
1622 | number of the states has changed (the final state is no longer | |
1623 | necessarily the last), catch up. | |
1624 | ||
75142d45 AD |
1625 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1626 | ||
1627 | Try to make the use of the eoftoken valid. Given that its value | |
1628 | is 0 which was also used as a sentinel in ritem, (i) make sure >= 0 | |
1629 | is used instead of > 0 where appropriate, (ii), depend upon nritems | |
1630 | instead of the 0-sentinel. | |
1631 | ||
1632 | * src/gram.h, src/gram.c (nritems): New. | |
1633 | Expected to be duplication of nitems, but for the time being... | |
1634 | * src/reader.c (packgram): Assert nritems and nitems are equal. | |
1635 | * src/LR0.c (allocate_itemsets, new_itemsets): Adjust. | |
1636 | * src/closure.c (print_closure, print_fderives): Likewise. | |
1637 | * src/gram.c (ritem_print): Likewise. | |
1638 | * src/print.c (print_core, print_grammar): Likewise. | |
1639 | * src/print_graph.c: Likewise. | |
1640 | ||
b7c49edf AD |
1641 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1642 | ||
1643 | * src/main.c (main): If there are complains after grammar | |
1644 | reductions, then output the report anyway if requested, then die. | |
1645 | * src/symtab.c (bucket_new): Initialize `value' to -1, not 0. | |
1646 | * src/reader.c (eoftoken): New. | |
1647 | (parse_token_decl): If the token being defined has value `0', it | |
1648 | is the eoftoken. | |
1649 | (packsymbols): No longer hack `tags' to insert `$' by hand. | |
1650 | Be sure to preserve the value of the eoftoken. | |
1651 | (reader): Make sure eoftoken is defined. | |
1652 | Initialize nsyms to 0: now eoftoken is created just like the others. | |
1653 | * src/print.c (print_grammar): Don't special case the eof token. | |
1654 | * src/regression.at: Adjust: `$' has value 0, not -1, which was a | |
1655 | lie anyway, albeit pleasant. | |
1656 | * tests/calc.at: Exercise error messages with eoftoken. | |
1657 | Change the grammar so that empty input is invalid. | |
1658 | Adjust expectations. | |
1659 | When yyungeting, be sure to use a valid yylloc: use last_yylloc. | |
1660 | ||
ec2da99f AD |
1661 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1662 | ||
1663 | * configure.in: Check the protos of strchr ans strspn. | |
1664 | Replace strchr if needed. | |
1665 | * src/system.h: Provide the protos of strchr, strspn and memchr if | |
1666 | missing. | |
1667 | * lib/strchr.c: New. | |
1668 | * src/reader.c (symbols_save): Use strchr. | |
1669 | ||
8adfa272 AD |
1670 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1671 | ||
1672 | * src/print.c, src/print_graph.c (escape): New. | |
1673 | Use it to quote the TAGS outputs. | |
1674 | * src/print_graph.c (print_state): Now errors are in red, and | |
1675 | reductions in green. | |
1676 | Prefer high to wide: output the state number on a line of its own. | |
1677 | ||
80dac38c AD |
1678 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1679 | ||
1680 | * src/state.h, src/state.c (reductions_new): New. | |
1681 | * src/LR0.c (set_state_table): Let all the states have a | |
1682 | `reductions', even if reduced to 0. | |
1683 | (save_reductions): Adjust. | |
1684 | * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust. | |
1685 | * src/print.c (print_reductions, print_actions): Adjust. | |
1686 | * src/output.c (action_row): Adjust. | |
1687 | ||
2cec70b9 AD |
1688 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1689 | ||
1690 | * src/state.h, src/state.c (errs_new, errs_dup): New. | |
1691 | * src/LR0.c (set_state_table): Let all the states have an errs, | |
1692 | even if reduced to 0. | |
1693 | * src/print.c (print_errs, print_reductions): Adjust. | |
1694 | * src/output.c (output_actions, action_row): Adjust. | |
1695 | * src/conflicts.c (resolve_sr_conflict): Adjust. | |
1696 | ||
13ca549a AD |
1697 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1698 | ||
1699 | * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL. | |
1700 | ||
5092aba5 AD |
1701 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1702 | ||
1703 | * src/conflicts.c, src/conflicts.h (print_reductions): Move to... | |
1704 | * src/print.c: here. | |
1705 | (lookaheadset, shiftset): New, used as additional storage by | |
1706 | print_reductions. | |
1707 | (print_results): Adjust. | |
1708 | (print_shifts, print_gotos, print_errs): New, extracted from... | |
1709 | (print_actions): here. | |
1710 | * src/print_graph.c (print_actions): Remove dead code. | |
1711 | ||
11e2beca AD |
1712 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1713 | ||
1714 | * src/reader.c (copy_dollar, copy_at): Better checking of `n' in | |
1715 | `$n' and `@n'. | |
1716 | ||
dac3c910 AD |
1717 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1718 | ||
1719 | * src/lalr.c (add_lookback_edge): Use state_t instead of ints. | |
1720 | (build_relations): Adjust. | |
1721 | ||
d0b0fefa AD |
1722 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1723 | ||
1724 | * src/lalr.c (set_goto_map): Remove a wrong but benign loop | |
1725 | duplication. | |
1726 | ||
adc8c848 AD |
1727 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1728 | ||
1729 | * src/reader.c (packgram): Catch nitems overflows. | |
1730 | ||
14d293ac AD |
1731 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1732 | ||
1733 | * src/files.c, src/files.h (guard_obstack): Remove. | |
1734 | * src/output.c (output): Adjust. | |
1735 | * src/reader.c (parse_braces): New, factoring... | |
1736 | (copy_action, copy_guard): these two which are renamed as... | |
1737 | (parse_action, parse_guard): these. | |
1738 | As a voluntary consequence, using braces around guards is now | |
1739 | mandatory. | |
1740 | ||
f499b062 AD |
1741 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1742 | ||
1743 | * src/gram.h (rule_t): `guard' and `guard_line' are new members. | |
1744 | * src/reader.c (symbol_list): `guard' and `guard_line' are new | |
1745 | members. | |
1746 | (symbol_list_new): Adjust. | |
1747 | (copy_action): action_line is the first line, not the last. | |
1748 | (copy_guard): Just as for actions, store the `action' only, not | |
1749 | the switch/case/break flesh. | |
1750 | Don't parse the user action that might follow the guard, let... | |
1751 | (readgram): do it, i.e., now, there can be an action after a | |
1752 | guard. | |
1753 | In other words the guard is just explicitly optional. | |
1754 | (packgram): Adjust. | |
1755 | * src/output.c (guards_output): New. | |
1756 | (output_parser): Call it when needed. | |
1757 | (output): Also free the guard and attrs obstacks. | |
1758 | * src/files.c, src/files.h (obstack_save): Remove. | |
1759 | (output_files): Remove. | |
1760 | As a result, if one needs the former `.act' file, using an | |
1761 | appropriate skeleton which requires actions and guards is now | |
1762 | required. | |
1763 | * src/main.c (main): Adjust. | |
1764 | * tests/semantic.at: New. | |
1765 | * tests/regression.at: Use `input.y' as input file name. | |
1766 | Avoid 8+3 problems by requiring input.c when the test needs the | |
1767 | parser. | |
1768 | ||
d945f5cd AD |
1769 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1770 | ||
1771 | * src/reader.c (symbol_list_new): Be sure to initialize all the | |
1772 | fields. | |
1773 | ||
d200e455 AD |
1774 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1775 | ||
1776 | All the hacks using a final pseudo state are now useless. | |
1777 | ||
1778 | * src/LR0.c (set_state_table): state_table holds exactly nstates. | |
1779 | * src/lalr.c (nLA): New. | |
1780 | (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it | |
1781 | instead of lookaheadsp from the pseudo state (nstate + 1). | |
1782 | ||
f9507c28 AD |
1783 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1784 | ||
1785 | * src/output.c (action_row, token_actions): Use a state_t instead | |
1786 | of a integer, and nlookaheads instead of the following state's | |
1787 | lookaheadsp. | |
1788 | ||
065fbd27 AD |
1789 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1790 | ||
1791 | * src/conflicts.c (log_resolution, flush_shift) | |
1792 | (resolve_sr_conflict, set_conflicts, solve_conflicts) | |
1793 | (count_sr_conflicts, count_rr_conflicts, conflicts_output) | |
1794 | (conflicts_print, print_reductions): Use a state_t instead of an | |
1795 | integer when referring to a state. | |
1796 | As much as possible, depend upon nlookaheads, instead of the | |
1797 | `lookaheadsp' member of the following state (since lookaheads of | |
1798 | successive states are successive, the difference between state n + 1 | |
1799 | and n served as the number of lookaheads for state n). | |
1800 | * src/lalr.c (add_lookback_edge): Likewise. | |
1801 | * src/print.c (print_core, print_actions, print_state) | |
1802 | (print_results): Likewise. | |
1803 | * src/print_graph.c (print_core, print_actions, print_state) | |
1804 | (print_graph): Likewise. | |
1805 | * src/conflicts.h: Adjust. | |
1806 | ||
1b177bd7 AD |
1807 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1808 | ||
1809 | * src/bison.hairy: Formatting/comment changes. | |
1810 | ANSIfy. | |
1811 | Remove `register' indications. | |
1812 | Add plenty of `static'. | |
1813 | ||
7742ddeb AD |
1814 | 2001-12-27 Akim Demaille <akim@epita.fr> |
1815 | ||
1816 | * src/output.c (prepare): Drop the muscle `ntbase' which | |
1817 | duplicates ntokens. | |
1818 | * src/bison.simple: Formatting/comment changes. | |
1819 | Use YYNTOKENS only, which is documented, but not YYNTBASE, which | |
1820 | is an undocumented synonym. | |
1821 | ||
1fa14068 AD |
1822 | 2001-12-22 Akim Demaille <akim@epita.fr> |
1823 | ||
1824 | * src/output.c (output_table_data): Change the prototype to use | |
1825 | `int' for array ranges: some invocations do pass an int, not a | |
1826 | short. | |
1827 | Reported by Wayne Green. | |
1828 | ||
b9752825 AD |
1829 | 2001-12-22 Akim Demaille <akim@epita.fr> |
1830 | ||
1831 | Some actions of web2c.y are improperly triggered. | |
1832 | Reported by Mike Castle. | |
1833 | ||
1834 | * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/. | |
1835 | * tests/regression.at (Web2c): Rename as... | |
1836 | (Web2c Report): this. | |
1837 | (Web2c Actions): New. | |
1838 | ||
776209d6 AD |
1839 | 2001-12-22 Akim Demaille <akim@epita.fr> |
1840 | ||
1841 | Reductions in web2c.y are improperly reported. | |
1842 | Reported by Mike Castle. | |
1843 | ||
1844 | * src/conflicts.c (print_reductions): Fix. | |
1845 | * tests/regression.at (Web2c): New. | |
1846 | ||
275fc3ad AD |
1847 | 2001-12-18 Akim Demaille <akim@epita.fr> |
1848 | ||
1849 | Some host fail on `assert (!"foo")', which expands to | |
1850 | ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__)) | |
1851 | Reported by Nelson Beebee. | |
1852 | ||
1853 | * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with | |
1854 | `#define it_succeeded 0' and `assert (it_succeeded)'. | |
1855 | ||
897668ee MA |
1856 | 2001-12-17 Marc Autret <autret_m@epita.fr> |
1857 | ||
1858 | * src/bison.simple: Don't hard code the skeleton line and filename. | |
1859 | * src/output.c (output_parser): Rename 'line' as 'output_line'. | |
1860 | New line counter 'skeleton_line' (skeleton-line muscle). | |
1861 | ||
ab3399e0 PE |
1862 | 2001-12-17 Paul Eggert <eggert@twinsun.com> |
1863 | ||
1864 | * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that | |
1865 | YYDEBUG must be defined to a nonzero value. | |
1866 | ||
1867 | * src/bison.simple (yytname): Do not assume that the user defines | |
1868 | YYDEBUG to a properly parenthesized expression. | |
1869 | ||
3877f72b AD |
1870 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1871 | ||
1872 | * src/state.h (state_t): Rename lookaheads as lookaheadsp. | |
1873 | nlookaheads is a new member. | |
1874 | Adjust all users. | |
1875 | * src/lalr.h (nlookaheads): Remove this orphan declaration. | |
1876 | * src/lalr.c (initialize_lookaheads): Set nlookaheads for each | |
1877 | state. | |
776209d6 | 1878 | |
331dbc1b AD |
1879 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1880 | ||
1881 | * src/files.h, src/files.c (open_files, close_files): Remove. | |
1882 | * src/main.c (main): Don't open/close files, nor invoke lex_free, | |
1883 | let... | |
1884 | * src/reader.c (reader): Do it. | |
776209d6 | 1885 | |
be750e4c AD |
1886 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1887 | ||
1888 | * src/conflicts.c (print_reductions): Formatting changes. | |
776209d6 | 1889 | |
709ae8c6 AD |
1890 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1891 | ||
1892 | * src/conflicts.c (flush_shift): Also adjust lookaheadset. | |
1893 | (flush_reduce): New. | |
1894 | (resolve_sr_conflict): Adjust. | |
776209d6 | 1895 | |
f87685c3 AD |
1896 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1897 | ||
1898 | * src/output.c (output_obstack): Be static and rename as... | |
1899 | (format_obstack): this, to avoid any confusion with files.c's | |
1900 | output_obstack. | |
1901 | * src/reader.h (muscle_obstack): Move to... | |
1902 | * src/output.h: here, since it's defined in output.c. | |
1903 | ||
837491d8 AD |
1904 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1905 | ||
1906 | * src/output.c (action_row, save_column, default_goto) | |
1907 | (sort_actions, matching_state, pack_vector): Better variable | |
1908 | locality. | |
1909 | ||
796d61fb AD |
1910 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1911 | ||
1912 | * src/output.c: Various formatting changes. | |
776209d6 | 1913 | |
64d15509 AD |
1914 | 2001-12-17 Akim Demaille <akim@epita.fr> |
1915 | ||
1916 | * src/files.c (output_files): Free the output_obstack. | |
1917 | * src/main.c (main): Call print and print_graph conditionally. | |
1918 | * src/print.c (print): Work unconditionally. | |
1919 | * src/print_graph.c (print_graph): Work unconditionally. | |
1920 | * src/conflicts.c (log_resolution): Output only if verbose_flag. | |
1921 | ||
fbc8ecb7 MA |
1922 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
1923 | ||
1924 | * src/output.c (actions_output): Fix. When we use %no-lines, | |
1925 | there is one less line per action. | |
1926 | ||
f0440388 MA |
1927 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
1928 | ||
1929 | * src/bison.simple: Remove a useless #line directive. | |
1930 | s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'. | |
1931 | * src/output.c (get_lines_number): New. | |
776209d6 | 1932 | (output_parser): Adjust, now takes care about the lines of a |
f0440388 MA |
1933 | output muscles. |
1934 | Fix line numbering. | |
1935 | (actions_output): Computes the number of lines taken by actions. | |
1936 | (output_master_parser): Insert new skeleton which is the name of | |
1937 | the output parser file name. | |
1938 | ||
a79986b8 MA |
1939 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
1940 | ||
1941 | * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. | |
1942 | ||
4ec8e00f MA |
1943 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
1944 | ||
1945 | * src/output.c (output_gram): Keep track of the hairy one. | |
1946 | ||
1a4648ff AD |
1947 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1948 | ||
1949 | Make `make distcheck' work. | |
1950 | ||
1951 | * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses | |
1952 | system.h which uses libgettext.h. | |
1953 | ||
9c2c67e6 AD |
1954 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1955 | ||
1956 | * src/nullable.c (set_nullable): Useless rules must be skipped, | |
1957 | otherwise, since we range over their symbols, we might look at a | |
1958 | nonterminal which no longer ``exists'', i.e., it is not counted in | |
1959 | `nvars', hence we overflow our arrays. | |
1960 | ||
93ede233 AD |
1961 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1962 | ||
1963 | The header can also be produced directly, without any obstack! | |
1964 | Yahoo! | |
1965 | ||
1966 | * src/files.c, src/files.h (defines_obstack): Remove. | |
1967 | (compute_header_macro): Global. | |
1968 | (defines_obstack_save): Remove. | |
1969 | * src/reader.c (parse_union_decl): No longer output to | |
1970 | defines_obstack: its content can be found in the `stype' muscle | |
1971 | anyway. | |
1972 | (output_token_translations): Merge into... | |
1973 | (symbols_output): this. | |
1974 | Rename as... | |
1975 | (symbols_save): this. | |
1976 | (reader): Adjust. | |
1977 | * src/output.c (header_output): New. | |
1978 | (output): Call it. | |
1979 | ||
2666f928 AD |
1980 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1981 | ||
1982 | * src/reader.c (parse_union_decl): Instead of handling two obstack | |
1983 | simultaneously, use one to define the `stype' muscle, and use the | |
1984 | value of the latter to fill defines_obstack. | |
1985 | (copy_comment): Remove. | |
1986 | (copy_comment2): Work for a single obstack. | |
1987 | Rename as... | |
1988 | (copy_comment): this. | |
1989 | ||
428046f8 AD |
1990 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1991 | ||
1992 | * src/lex.c, src/lex.h (xgetc): No longer static. | |
1993 | * src/reader.c (parse_union_decl): Revamp. | |
1994 | ||
ea52d706 AD |
1995 | 2001-12-15 Akim Demaille <akim@epita.fr> |
1996 | ||
1997 | Still making progress in separating Bison into (i) input, (ii) | |
1998 | process, (iii) output: now we can directly output the parser file | |
1999 | without using table_obstack at all. | |
2000 | ||
2001 | * src/files.c, src/files.h (table_obstack): Bye bye. | |
2002 | (parser_file_name): New. | |
2003 | * src/files.c (compute_output_file_names): Compute it. | |
2004 | * src/output.c (actions_output, output_parser) | |
2005 | (output_master_parser): To a file instead of an obstack. | |
2006 | ||
3f96f4dc AD |
2007 | 2001-12-15 Akim Demaille <akim@epita.fr> |
2008 | ||
2009 | Attach actions to rules, instead of pre-outputting them to | |
2010 | actions_obstack. | |
2011 | ||
2012 | * src/gram.h (rule_t): action and action_line are new members. | |
2013 | * src/reader.c (symbol_list): Likewise. | |
2014 | (copy_action): Save the actions within the rule. | |
2015 | (packgram): Save them in rule_table. | |
2016 | * src/output.c (actions_output): New. | |
2017 | (output_parser): Use it on `%%actions'. | |
2018 | (output_rule_data): Don't free rule_table. | |
2019 | (output): Do it. | |
2020 | (prepare): Don't save the `action' muscle. | |
2021 | * src/bison.simple: s/%%action/%%actions/. | |
2022 | ||
51576fb3 AD |
2023 | 2001-12-15 Akim Demaille <akim@epita.fr> |
2024 | ||
2025 | * src/reader.c (copy_action): When --yacc, don't append a `;' | |
2026 | to the user action: let it fail if lacking. | |
dee049eb | 2027 | Suggested by Arnold Robbins and Tom Tromey. |
51576fb3 | 2028 | |
2648a72d AD |
2029 | 2001-12-14 Akim Demaille <akim@epita.fr> |
2030 | ||
2031 | * src/lex.c (literalchar): Simply return the char you decoded, non | |
2032 | longer mess around with obstacks and int pointers. | |
2033 | Adjust all callers. | |
2034 | ||
92790e5b AD |
2035 | 2001-12-14 Akim Demaille <akim@epita.fr> |
2036 | ||
2037 | * src/lex.c (literalchar): Don't escape the special characters, | |
2038 | just decode them, and keep them as char (before, eol was output as | |
2039 | the 2 char string `\n' etc.). | |
2040 | * src/output.c (output_rule_data): Use quotearg to output the | |
2041 | token strings. | |
2042 | ||
927c1557 PE |
2043 | 2001-12-13 Paul Eggert <eggert@twinsun.com> |
2044 | ||
2045 | * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE): | |
2046 | Do not infringe on the global user namespace when using C++. | |
2047 | (YYFPRINTF, YYSTDERR): New macros, needed for the above. | |
2048 | All uses of `fprintf' and `stderr' changed. | |
2049 | ||
2050 | * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR. | |
2051 | ||
ed8e1f68 AD |
2052 | 2001-12-13 Akim Demaille <akim@epita.fr> |
2053 | ||
2054 | The computation of nullable is broken: it doesn't handle empty | |
2055 | RHS's properly. | |
2056 | ||
2057 | * tests/torture.at (GNU AWK Grammar): New. | |
2058 | * tests/sets.at (Nullable): New. | |
2059 | * src/nullable.c (set_nullable): Instead of blindly looping over | |
2060 | `ritems', loop over the rules, and then over their rhs's. | |
2061 | ||
2062 | Work around Autotest bugs. | |
2063 | ||
2064 | * src/warshall.c (bitmatrix_print): Don't use `+--+' as table | |
2065 | frame, because Autotest understand lines starting with a `+' as | |
2066 | traces from the shell. Then, they are not processed properly. | |
2067 | Admittedly an Autotest bug, but we don't have time to wait for | |
2068 | Autotest to catch up. | |
2069 | * tests/regression.at (Broken Closure): Adjust to the new table | |
2070 | frames. | |
2071 | Move to... | |
2072 | * tests/sets.at: here. | |
2073 | ||
cb581495 AD |
2074 | 2001-12-13 Akim Demaille <akim@epita.fr> |
2075 | ||
2076 | * src/closure.c (closure): Use nrules instead of playing tricks | |
2077 | with BITS_PER_WORD. | |
2078 | ||
2e729273 AD |
2079 | 2001-12-13 Akim Demaille <akim@epita.fr> |
2080 | ||
2081 | * src/print.c (print_actions): Output the handling of `$' as the | |
2082 | traces do: shifting the token EOF. Before EOF was treated as a | |
2083 | nonterminal. | |
2084 | * tests/regression.at: Adjust some tests. | |
2085 | * src/print_graph.c (print_core): Complete the set of items via | |
2086 | closure. The next-to-final and final states are still unsatisfying, | |
2087 | but that's to be addressed elsewhere. | |
2088 | No longer output the rule numbers, but do output the state number. | |
2089 | A single loop for the shifts + gotos is enough, but picked a | |
2090 | distinct color for each. | |
2091 | (print_graph): Initialize and finalize closure. | |
2092 | ||
107f7dfb AD |
2093 | 2001-12-13 Akim Demaille <akim@epita.fr> |
2094 | ||
2095 | * src/reader.c (readgram): Remove dead code, an strip useless | |
2096 | braces. | |
2097 | (get_type): Remove, unused. | |
2098 | ||
9b53a24f AD |
2099 | 2001-12-12 Akim Demaille <akim@epita.fr> |
2100 | ||
2101 | * src/complain.h, src/complain.c: Remove error_one_per_line, rely | |
2102 | on that of lib/error.c. | |
2103 | ||
dbfb6dcd AD |
2104 | 2001-12-12 Akim Demaille <akim@epita.fr> |
2105 | ||
2106 | Some hosts don't like `/' in includes. | |
2107 | ||
2108 | * src/system.h: Include libgettext.h without qualifying the path. | |
2109 | * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove | |
2110 | $(top_srcdir). | |
2111 | ||
c25fb648 MA |
2112 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
2113 | ||
2114 | * src/output.c (output_parser): Remove useless muscle. | |
2115 | ||
710ddc4f MA |
2116 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
2117 | ||
2118 | * src/bison.simple: Remove #line just before %%epilogue. It | |
2119 | is now handled in ... | |
2120 | * src/reader.c (read_additionnal_code): Add the output of a | |
2121 | #line for the epilogue. | |
2122 | ||
e83d80b8 MA |
2123 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
2124 | ||
927c1557 | 2125 | * src/reader.c (copy_definition): Re-use CPP-outed code which |
e83d80b8 MA |
2126 | replace precedent remove. |
2127 | * src/bison.simple: Remove #line before %%prologue because | |
2128 | %%input-line is wrong at this time. | |
2129 | ||
971d5158 MA |
2130 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
2131 | ||
2132 | * src/reader.c (symbols_output): Clean up. | |
927c1557 | 2133 | * src/output.c (output_gram, output): Clean up. |
971d5158 | 2134 | |
5edafffd AD |
2135 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2136 | ||
2137 | * src/lalr.c (initialize_lookaheads): New. Extracted from... | |
2138 | * src/LR0.c (set_state_table): here. | |
2139 | * src/lalr.c (lalr): Call it. | |
2140 | ||
0279f8e9 AD |
2141 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2142 | ||
2143 | * src/state.h (shifts): Remove the `number' member: shifts are | |
2144 | attached to state, hence no longer need to be labelled with a | |
2145 | state number. | |
2146 | ||
190c4f5f AD |
2147 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2148 | ||
2149 | Now that states have a complete set of members, the linked list of | |
2150 | shifts is useless: just fill directly the state's shifts member. | |
2151 | ||
2152 | * src/state.h (shifts): Remove the `next' member. | |
2153 | * src/LR0.c (first_state, last_state): Remove. | |
2154 | Adjust the callers. | |
2155 | (augment_automaton): Don't look for the shifts that must be added | |
2156 | a shift on EOF: it is those of the state we looked for! But now, | |
2157 | since shifts are attached, it is no longer needed to looking | |
2158 | merely by its id: its number. | |
2159 | ||
2a73b93d AD |
2160 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2161 | ||
2162 | * src/LR0.c (augment_automaton): Better variable locality. | |
2163 | Remove an impossible branch: if there is a state corresponding to | |
2164 | the start symbol being shifted, then there is shift for the start | |
2165 | symbol from the initial state. | |
2166 | ||
74392f6a AD |
2167 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2168 | ||
2169 | * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state' | |
2170 | only when appropriate: when insert_start_shifting_state' is not | |
2171 | invoked. | |
2172 | * tests/regression.at (Rule Line Numbers): Adjust. | |
2173 | ||
37c82725 AD |
2174 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2175 | ||
2176 | * src/LR0.c (augment_automaton): Now that all states have shifts, | |
2177 | merge the two cases addition shifts to the initial state. | |
2178 | ||
6a164e0c AD |
2179 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2180 | ||
2181 | * src/lalr.c (set_state_table): Move to... | |
2182 | * src/LR0.c: here. | |
2183 | * src/lalr.c (lalr): Don't call it... | |
2184 | * src/LR0.c (generate_states): do it. | |
2185 | * src/LR0.h (first_state): Remove, only the table is used. | |
2186 | ||
7215de24 AD |
2187 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2188 | ||
2189 | * src/LR0.h (first_shift, first_reduction): Remove. | |
2190 | * src/lalr.c: Don't use first_shift: find shifts through the | |
2191 | states. | |
2192 | ||
80e25d4d AD |
2193 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2194 | ||
2195 | * src/LR0.c: Attach shifts to states as soon as they are | |
2196 | computed. | |
2197 | * src/lalr.c (set_state_table): Instead of assigning shifts to | |
2198 | state, just assert that the mapping was properly done. | |
2199 | ||
0ab3728b AD |
2200 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2201 | ||
2202 | * src/LR0.c (insert_start_shift): Rename as... | |
2203 | (insert_start_shifting_state): this. | |
2204 | (insert_eof_shifting_state, insert_accepting_state): New. | |
2205 | (augment_automaton): Adjust. | |
2206 | Better locality of the variables. | |
2207 | When looking if the start_symbol is shifted from the initial | |
2208 | state, using `while (... symbol != start_symbol ...)' sounds | |
2209 | better than `while (... symbol < start_symbol ...)': If fail | |
2210 | to see how the order between symbols could be relevant! | |
2211 | ||
78af9bbc AD |
2212 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2213 | ||
2214 | * src/getargs.h: Don't declare `spec_name_prefix' and | |
2215 | `spec_file_prefix', declared by src/files.h. | |
2216 | * src/files.c, src/files.h: Default for spec_name_prefix is "yy". | |
2217 | * src/muscle_tab.c (muscle_init): Default prefix to NULL. | |
2218 | * src/output.c (prepare): Adjust. | |
2219 | * src/reader.c (symbols_output): Likewise. | |
2220 | * src/vmsgetargs.c: Vaguely adjust, but who cares? | |
2221 | ||
bdef2a41 AD |
2222 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2223 | ||
2224 | * src/muscle_tab.c (muscle_init): NULL is a better default than | |
2225 | `"0"'. | |
2226 | ||
3735969c AD |
2227 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2228 | ||
2229 | * src/reader.c (reader): Calling symbols_output once is enough. | |
2230 | ||
49701457 AD |
2231 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2232 | ||
2233 | Now that states have a complete set of members, the linked list of | |
2234 | reductions is useless: just fill directly the state's reductions | |
2235 | member. | |
2236 | ||
2237 | * src/state.h (struct reductions): Remove member `number' and | |
2238 | `next'. | |
2239 | * src/LR0.c (first_reduction, last_reduction): Remove. | |
2240 | (save_reductions): Don't link the new reductions, store them in | |
2241 | this_state. | |
2242 | * src/lalr.c (set_state_table): No need to attach reductions to | |
2243 | states, it's already done. | |
2244 | * src/output.c (output_actions): No longer free the shifts, then | |
2245 | the reductions, then the states: free all the states and their | |
2246 | members. | |
2247 | ||
0edad749 AD |
2248 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2249 | ||
2250 | * src/options.c (OPTN, DRTV, BOTH): New. | |
2251 | (option_table): Use them. | |
2252 | ||
0edad749 AD |
2253 | * src/muscle_tab.c: Don't include xalloc.h and string.h: that's |
2254 | the job of system.h. | |
2255 | * src/options.c: Don't include stdio.h and xalloc.h for the same | |
2256 | reasons. | |
2257 | ||
5449dd0f AD |
2258 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2259 | ||
2260 | * src/output.c (output, prepare): Make sure the values of the | |
2261 | muscles `action' and `prologue' are 0-terminated. | |
2262 | ||
a870c567 AD |
2263 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2264 | ||
2265 | Clean up GCC warnings. | |
2266 | ||
2267 | * src/reader.c (copy_action): `buf' is not used. | |
2268 | (parse_skel_decl): Be static. | |
2269 | * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'. | |
2270 | * src/options.h (create_long_option_table): Have a real prototype. | |
2271 | * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete) | |
2272 | (hash_delete_at): Return const void *. | |
2273 | Adjust casts to preserve the const. | |
2274 | ||
80df8768 AD |
2275 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2276 | ||
2277 | * configure.in: Require 2.52g. | |
2278 | M4 is not needed, but AUTOM4TE is. | |
2279 | * m4/m4.m4: Remove. | |
2280 | * tests/Makefile.am: Adjust. | |
2281 | ||
f693ad14 AD |
2282 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2283 | ||
2284 | One structure for states is enough, even though theoretically | |
2285 | there are LR(0) states and LALR(1) states. | |
2286 | ||
2287 | * src/lalr.h (state_t): Remove. | |
2288 | (state_table): Be state_t **, not state_t *. | |
2289 | * src/state.h (core, CORE_ALLOC): Rename as... | |
2290 | (state_t, STATE_ALLOC): this. | |
2291 | Add the LALR(1) members: shifts, reductions, errs. | |
2292 | * src/LR0.c (state_table): Rename as... | |
2293 | (state_hash): this, to avoid name clashes with the global | |
2294 | `state_table'. | |
2295 | * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c | |
2296 | * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust. | |
2297 | ||
74ffbcb6 AD |
2298 | 2001-12-10 Akim Demaille <akim@epita.fr> |
2299 | ||
2300 | Bison dumps core on bash.y. | |
2301 | Reported by Pascal Bart. | |
2302 | ||
2303 | * src/warshall.c (bitmatrix_print): New. | |
2304 | (TC): Use it. | |
2305 | When performing a transitive closure R(i, j) && R(j, k) => R(i, k), | |
2306 | j must be the outer loop. | |
2307 | * tests/regression.at (Broken Closure): New. | |
2308 | ||
07708e19 AD |
2309 | 2001-12-05 Akim Demaille <akim@epita.fr> |
2310 | ||
2311 | * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and | |
2312 | its argument. | |
2313 |