]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
[bison.git] / ChangeLog
CommitLineData
75d1fe16
AD
12002-06-12 Akim Demaille <akim@epita.fr>
2
3 * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
4 eager.
5 * tests/actions.at (Exotic Dollars): New.
6
6c35d22c
AD
72002-06-12 Akim Demaille <akim@epita.fr>
8
9 * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
10 ['"/] too eagerly.
11 * tests/input.at (Torturing the Scanner): New.
12
1d6412ad
AD
132002-06-11 Akim Demaille <akim@epita.fr>
14
15 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
16 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
17 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
18 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
19 * src/reader.c (reader): Use it.
20
4cdb01db
AD
212002-06-11 Akim Demaille <akim@epita.fr>
22
23 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
24 Adjust all callers.
25 (scanner_last_string_free): New.
26
44995b2e
AD
272002-06-11 Akim Demaille <akim@epita.fr>
28
29 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
30 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
31 (last_string, YY_OBS_FREE): New.
32 Use them when returning an ID.
33
e9955c83
AD
342002-06-11 Akim Demaille <akim@epita.fr>
35
36 Have Bison grammars parsed by a Bison grammar.
37
38 * src/reader.c, src/reader.h (prologue_augment): New.
39 * src/reader.c (copy_definition): Remove.
40
41 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
42 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
43 (grammar_current_rule_prec_set, grammar_current_rule_check)
44 (grammar_current_rule_symbol_append)
45 (grammar_current_rule_action_append): Export.
46 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
47 (symbol_list_action_append): Remove.
48 Hook the routines from reader.
49 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
50 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
51
52 * src/reader.c (read_declarations): Remove, unused.
53
54 * src/parse-gram.y: Handle the epilogue.
55 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
56 (grammar_start_symbol_set): this.
57 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
58 * src/reader.c (readgram): Remove, unused.
59 (reader): Adjust to insert eoftoken and axiom where appropriate.
60
61 * src/reader.c (copy_dollar): Replace with...
62 * src/scan-gram.h (handle_dollar): this.
63 * src/parse-gram.y: Remove `%thong'.
64
65 * src/reader.c (copy_at): Replace with...
66 * src/scan-gram.h (handle_at): this.
67
68 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
69 New.
70
71 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
72 time being.
73
74 * src/reader.h, src/reader.c (grammar_rule_end): New.
75
76 * src/parse.y (current_type, current_class): New.
77 Implement `%nterm', `%token' support.
78 Merge `%term' into `%token'.
79 (string_as_id): New.
80 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
81 type name.
82
83 * src/parse-gram.y: Be sure to handle properly the beginning of
84 rules.
85
86 * src/parse-gram.y: Handle %type.
87 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
88
89 * src/parse-gram.y: More directives support.
90 * src/options.c: No longer handle source directives.
91
92 * src/parse-gram.y: Fix %output.
93
94 * src/parse-gram.y: Handle %union.
95 Use the prologue locations.
96 * src/reader.c (parse_union_decl): Remove.
97
98 * src/reader.h, src/reader.c (epilogue_set): New.
99 * src/parse-gram.y: Use it.
100
101 * data/bison.simple, data/bison.c++: b4_stype is now either not
102 defined, then default to int, or to the contents of %union,
103 without `union' itself.
104 Adjust.
105 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
106
107 * src/output.c (actions_output): Don't output braces, as they are
108 already handled by the scanner.
109
110 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
111 characters to themselves.
112
113 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
114 that the epilogue has a proper #line.
115
116 * src/parse-gram.y: Handle precedence/associativity.
117
118 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
119 a terminal.
120 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
121 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
122 at all to define terminals that cannot be emitted.
123
124 * src/scan-gram.l: Escape M4 characters.
125
126 * src/scan-gram.l: Working properly with escapes in user
127 strings/characters.
128
129 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
130 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
131 grammar.
132 Use more modest sizes, as for the time being the parser does not
133 release memory, and therefore the process swallows a huge amount
134 of memory.
135
136 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
137 stricter %token grammar.
138
139 * src/symtab.h (associativity): Add `undef_assoc'.
140 (symbol_precedence_set): Do nothing when passed an undef_assoc.
141 * src/symtab.c (symbol_check_alias_consistence): Adjust.
142
143 * tests/regression.at (Invalid %directive): Remove, as it is now
144 meaningless.
145 (Invalid inputs): Adjust to the new error messages.
146 (Token definitions): The new grammar doesn't allow too many
147 eccentricities.
148
149 * src/lex.h, src/lex.c: Remove.
150 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
151 (copy_character, copy_string2, copy_string, copy_identifier)
152 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
153 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
154 (parse_action): Remove.
155 * po/POTFILES.in: Adjust.
156
2e047461
AD
1572002-06-11 Akim Demaille <akim@epita.fr>
158
159 * src/reader.c (parse_action): Don't store directly into the
160 rule's action member: return the action as a string.
161 Don't require `rule_length' as an argument: compute it.
162 (grammar_current_rule_symbol_append)
163 (grammar_current_rule_action_append): New, eved out from
164 (readgram): here.
165 Remove `action_flag', `rulelength', unused now.
166
9af3fbce
AD
1672002-06-11 Akim Demaille <akim@epita.fr>
168
169 * src/reader.c (grammar_current_rule_prec_set).
170 (grammar_current_rule_check): New, eved out from...
171 (readgram): here.
172 Remove `xaction', `first_rhs': useless.
173 * tests/input.at (Type clashes): New.
174 * tests/existing.at (GNU Cim Grammar): Adjust.
175
1485e106
AD
1762002-06-11 Akim Demaille <akim@epita.fr>
177
178 * src/reader.c (grammar_midrule_action): New, Eved out from
179 (readgram): here.
180
da4160c3
AD
1812002-06-11 Akim Demaille <akim@epita.fr>
182
183 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
184 New.
185 (readgram): Use them as replacement of inlined code, crule and
186 crule1.
187
f6d0f937
AD
1882002-06-11 Akim Demaille <akim@epita.fr>
189
190 * src/reader.c (grammar_end, grammar_symbol_append): New.
191 (readgram): Use them.
192 Make the use of `p' as local as possible.
193
69078d4b
AD
1942002-06-10 Akim Demaille <akim@epita.fr>
195
196 GCJ's parser requires the tokens to be defined before the prologue.
197
198 * data/bison.simple: Output the token definition before the user's
199 prologue.
200 * tests/regression.at (Braces parsing, Duplicate string)
201 (Mixing %token styles): Check the output from bison.
202 (Early token definitions): New.
203
5e424082
AD
2042002-06-10 Akim Demaille <akim@epita.fr>
205
206 * src/symtab.c (symbol_user_token_number_set): Don't complain when
207 assigning twice the same user number to a token, so that we can
208 use it in...
209 * src/lex.c (lex): here.
210 Also use `symbol_class_set' instead of hand written code.
211 * src/reader.c (parse_assoc_decl): Likewise.
212
44536b35
AD
2132002-06-10 Akim Demaille <akim@epita.fr>
214
215 * src/symtab.c, src/symtab.c (symbol_class_set)
216 (symbol_user_token_number_set): New.
217 * src/reader.c (parse_token_decl): Use them.
218 Use a switch instead of ifs.
219 Use a single argument.
220
8b9f2372
AD
2212002-06-10 Akim Demaille <akim@epita.fr>
222
223 Remove `%thong' support as it is undocumented, unused, duplicates
224 `%token's job, and creates useless e-mail traffic with people who
225 want to know what it is, why it is undocumented, unused, and
226 duplicates `%token's job.
227
228 * src/reader.c (parse_thong_decl): Remove.
229 * src/options.c (option_table): Remove "thong".
230 * src/lex.h (tok_thong): Remove.
231
3ae2b51f
AD
2322002-06-10 Akim Demaille <akim@epita.fr>
233
234 * src/symtab.c, src/symtab.c (symbol_type_set)
235 (symbol_precedence_set): New.
236 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
237 (value_components_used): Remove, unused.
238
2f1afb73
AD
2392002-06-09 Akim Demaille <akim@epita.fr>
240
241 Move symbols handling code out of the reader.
242
243 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
244 (axiom): Move to...
245 * src/symtab.h, src/symtab.c: here.
246
247 * src/gram.c (start_symbol): Remove: use startsymbol->number.
248 * src/reader.c (startval): Rename as...
249 * src/symtab.h, src/symtab.c (startsymbol): this.
250 * src/reader.c: Adjust.
251
252 * src/reader.c (symbol_check_defined, symbol_make_alias)
253 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
254 (token_translations_init)
255 Move to...
256 * src/symtab.c: here.
257 * src/reader.c (packsymbols): Move to...
258 * src/symtab.h, src/symtab.c (symbols_pack): here.
259 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
260 argument.
261
e9bca3ad
AD
2622002-06-03 Akim Demaille <akim@epita.fr>
263
264 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
265 then statements.
266
86eff183
AD
2672002-06-03 Akim Demaille <akim@epita.fr>
268
269 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
270 structs with non literals.
271 * src/scan-skel.l: never-interactive.
272 * src/conflicts.c (enum conflict_resolution_e): No trailing
273 comma.
274 * src/getargs.c (usage): Split long literal strings.
275 Reported by Hans Aberg.
276
717be197
AD
2772002-05-28 Akim Demaille <akim@epita.fr>
278
279 * data/bison.c++: Use C++ ostreams.
280 (cdebug_): New member.
281
670ddffd
AD
2822002-05-28 Akim Demaille <akim@epita.fr>
283
284 * src/output.c (output_skeleton): Be sure to allocate enough room
285 for `/' _and_ for `\0' in full_skeleton.
286
769b430f
AD
2872002-05-28 Akim Demaille <akim@epita.fr>
288
289 * data/bison.c++: Catch up with bison.simple:
290 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
291 and Paul Eggert <eggert@twinsun.com>: `error' handing.
292 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
293 and popping traces.
294
7067cb36
PH
2952002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
296
297 * src/output.c (output_skeleton): Put an explicit path in front of
298 the skeleton file name, rather than relying on the -I directory,
299 to partially alleviate effects of having a skeleton file lying around
300 in the current directory.
769b430f 301
4a713ec2
PH
3022002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
303
769b430f 304 * src/conflicts.c (log_resolution): Correct typo:
4a713ec2
PH
305 obstack_printf should be obstack_fgrow1.
306
b408954b
AD
3072002-05-26 Akim Demaille <akim@epita.fr>
308
309 * src/state.h (state_t): `solved_conflicts' is a new member.
310 * src/LR0.c (new_state): Set it to 0.
311 * src/conflicts.h, src/conflicts.c (print_conflicts)
312 (free_conflicts, solve_conflicts): Rename as...
313 (conflicts_print, conflicts_free, conflicts_solve): these.
314 Adjust callers.
315 * src/conflicts.c (enum conflict_resolution_e)
316 (solved_conflicts_obstack): New, used by...
317 (log_resolution): this.
318 Adjust to attach the conflict resolution to each state.
319 Complete the description with the precedence/associativity
320 information.
321 (resolve_sr_conflict): Adjust.
322 * src/print.c (print_state): Output its solved_conflicts.
323 * tests/conflicts.at (Unresolved SR Conflicts)
324 (Solved SR Conflicts): Exercise --report=all.
325
a49aecd5
AD
3262002-05-26 Akim Demaille <akim@epita.fr>
327
328 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
329 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
330 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
331 (token_number_t, item_number_as_token_number)
332 (token_number_as_item_number, muscle_insert_token_number_table):
333 Rename as...
334 (symbol_number_t, item_number_as_symbol_number)
335 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
336 these, since it is more appropriate.
337
5504898e
AD
3382002-05-26 Akim Demaille <akim@epita.fr>
339
340 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
341 `Error:' lines.
342 * data/bison.simple (yystos) [YYDEBUG]: New.
343 (yyparse) [YYDEBUG]: Display the symbols which are popped during
344 error recovery.
345 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
346
ec3bc396
AD
3472002-05-25 Akim Demaille <akim@epita.fr>
348
349 * doc/bison.texinfo (Debugging): Split into...
350 (Tracing): this new section, its former contents, and...
351 (Understanding): this new section.
352 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
353 by...
354 (report_flag): this.
355 Adjust all dependencies.
356 (report_args, report_types, report_argmatch): New.
357 (usage, getargs): Report/support -r, --report.
358 * src/options.h
359 (struct option_table_struct): Rename as..,
360 (struct option_table_s): this.
361 Rename the `set_flag' member to `flag' to match with getopt_long's
362 struct.
363 * src/options.c (option_table): Split verbose into an entry for
364 %verbose, and another for --verbose.
365 Support --report/-r, so remove -r from the obsolete --raw.
366 * src/print.c: Attach full item sets and lookaheads reports to
367 report_flag instead of trace_flag.
368 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
369
78df8250
PE
3702002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
371 and Paul Eggert <eggert@twinsun.com>
769b430f 372
78df8250
PE
373 * data/bison.simple (yyparse): Correct error handling to conform to
374 POSIX and yacc. Specifically, after syntax error is discovered,
375 do not reduce further before shifting the error token.
376 Clean up the code a bit by removing the labels yyerrdefault,
377 yyerrhandle, yyerrpop.
378 * NEWS: Document the above.
379
c0c9ea05
PH
3802002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
381
382 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
383 type; it isn't always big enough, since it doesn't necessarily
384 include non-terminals.
769b430f 385 (yytranslate): Expand definition of yy_token_number_type, so that
c0c9ea05
PH
386 the latter can be removed.
387 (yy_token_number_type): Remove, only one use.
388 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
389 don't use TokenNumberType as element type.
769b430f 390
c0c9ea05
PH
391 * tests/regression.at: Modify expected output to agree with change
392 to yyr1 and yytranslate.
769b430f 393
6390a83f
FK
3942002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
395
396 * src/reader.c (parse_action): Use copy_character instead of
397 obstack_1grow.
398
db7c8e9a
AD
3992002-05-13 Akim Demaille <akim@epita.fr>
400
401 * tests/regression.at (Token definitions): Prototype yylex and
402 yyerror.
403
fcc61800
PH
4042002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
405
158c687b 406 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
fcc61800
PH
407 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
408 32-bit arithmetic.
409 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
410
5683e9b2
AD
4112002-05-07 Akim Demaille <akim@epita.fr>
412
413 * tests/synclines.at: Be sure to prototype yylex and yyerror to
414 avoid GCC warnings.
415
0c2d3f4c
AD
4162002-05-07 Akim Demaille <akim@epita.fr>
417
418 Kill GCC warnings.
419
420 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
421 over the RHS of each rule.
422 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
423 * src/state.h (state_t): Member `nitems' is unsigned short.
424 * src/LR0.c (get_state): Adjust.
425 * src/reader.c (packgram): Likewise.
426 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
427 `Type'.
428 (muscle_insert_int_table): Remove, unused.
429 (prepare_rules): Remove `max'.
430
1565b720
AD
4312002-05-06 Akim Demaille <akim@epita.fr>
432
433 * src/closure.c (print_firsts): Display of the symbol tags.
434 (bitmatrix_print): Move to...
435 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
436 here.
437 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
438
cfaee611
AD
4392002-05-06 Akim Demaille <akim@epita.fr>
440
441 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
442 hash_do_for_each.
443
458be8e0
AD
4442002-05-06 Akim Demaille <akim@epita.fr>
445
446 * src/LR0.c (new_state, get_state): Instead of using the global
447 `kernel_size' and `kernel_base', have two new arguments:
448 `core_size' and `core'.
449 Adjust callers.
450
a900a624
AD
4512002-05-06 Akim Demaille <akim@epita.fr>
452
453 * src/reader.c (packgram): No longer end `ritem' with a 0
454 sentinel: it is not used.
455
d4e7d3a1
AD
4562002-05-05 Akim Demaille <akim@epita.fr>
457
458 New experimental feature: display the lookaheads in the report and
459 graph.
460
461 * src/print (print_core): When --trace-flag, display the rules
462 lookaheads.
463 * src/print_graph.c (print_core): Likewise.
464 Swap the arguments.
465 Adjust caller.
466
39ceb25b
AD
4672002-05-05 Akim Demaille <akim@epita.fr>
468
469 * tests/torture.at (Many lookaheads): New test.
470
5372019f
AD
4712002-05-05 Akim Demaille <akim@epita.fr>
472
473 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
474 (GENERATE_MUSCLE_INSERT_TABLE): this.
475 (output_int_table, output_unsigned_int_table, output_short_table)
476 (output_token_number_table, output_item_number_table): Replace with...
477 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
478 (muscle_insert_short_table, muscle_insert_token_number_table)
479 (muscle_insert_item_number_table): these.
480 Adjust all callers.
481 (prepare_tokens): Don't free `translations', since...
482 * src/reader.h, src/reader.c (grammar_free): do it.
483 Move to...
484 * src/gram.h, src/gram.c (grammar_free): here.
485 * data/bison.simple, data/bison.c++: b4_token_number_max is now
486 b4_translate_max.
487
5df5f6d5
AD
4882002-05-05 Akim Demaille <akim@epita.fr>
489
490 * src/output.c (output_unsigned_int_table): New.
491 (prepare_rules): `i' is unsigned.
492 `prhs', `rline', `r2' are unsigned int.
493 Rename muscle `rhs_number_max' as `rhs_max'.
494 Output muscles `prhs_max', `rline_max', and `r2_max'.
495 Free rline and r1.
496 * data/bison.simple, data/bison.c++: Adjust to use these muscles
497 to compute types instead of constant types.
498 * tests/regression.at (Web2c Actions): Adjust.
499
b87f8b21
AD
5002002-05-04 Akim Demaille <akim@epita.fr>
501
502 * src/symtab.h (SALIAS, SUNDEF): Rename as...
503 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
504 Adjust dependencies.
505 * src/output.c (token_definitions_output): Be sure not to output a
506 `#define 'a'' when fed with `%token 'a' "a"'.
507 * tests/regression.at (Token definitions): New.
508
8bb936e4
PE
5092002-05-03 Paul Eggert <eggert@twinsun.com>
510
511 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
512 for K&R C.
513
5142002-05-03 gettextize <bug-gnu-gettext@gnu.org>
515
516 * Makefile.am (SUBDIRS): Remove intl.
517 (EXTRA_DIST): Add config/config.rpath.
518
53c71a12
AD
5192002-05-03 Akim Demaille <akim@epita.fr>
520
521 * data/bison.simple (m4_if): Don't output empty enums.
522 And actually, output valid enum definitions :(.
523
289dd0cf
AD
5242002-05-03 Akim Demaille <akim@epita.fr>
525
526 * configure.bat: Remove, completely obsolete.
527 * Makefile.am (EXTRA_DIST): Adjust.
528 Don't distribute config.rpath...
529 * config/Makefile.am (EXTRA_DIST): Do it.
530
db85e524
AD
5312002-05-03 Akim Demaille <akim@epita.fr>
532
533 * configure.in (GETTEXT_VERSION): New.
534 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
535
83ccf991
AD
5362002-05-03 Akim Demaille <akim@epita.fr>
537
538 * data/bison.simple (b4_token_enum): New.
539 (b4_token_defines): Use it to output tokens both as #define and
540 enums.
541 Suggested by Paul Eggert.
542 * src/output.c (token_definitions_output): Don't output spurious
543 white spaces.
544
1f418995
AD
5452002-05-03 Akim Demaille <akim@epita.fr>
546
547 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
548
45119f04
RA
5492002-05-02 Robert Anisko <robert@lrde.epita.fr>
550
551 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
552 Update the stack class, give a try to deque as the default container.
553
b2d52318
AD
5542002-05-02 Akim Demaille <akim@epita.fr>
555
556 * data/bison.simple (yyparse): Do not implement @$ = @1.
557 (YYLLOC_DEFAULT): Adjust to do it.
558 * doc/bison.texinfo (Location Default Action): Fix.
559
3a8b4109
AD
5602002-05-02 Akim Demaille <akim@epita.fr>
561
562 * src/reader.c (parse_braces): Merge into...
563 (parse_action): this.
564
84614e13
AD
5652002-05-02 Akim Demaille <akim@epita.fr>
566
567 * configure.in (ALL_LINGUAS): Remove.
568 * po/LINGUAS, hr.po: New.
569
fdbcd8e2
AD
5702002-05-02 Akim Demaille <akim@epita.fr>
571
572 Remove the so called hairy (semantic) parsers.
573
574 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
575 * src/gram.h, src/gram.c (semantic_parser): Remove.
576 (rule_t): Remove the guard and guard_line members.
577 * src/lex.h (token_t): remove tok_guard.
578 * src/options.c (option_table): Remove %guard and %semantic_parser
579 support.
580 * src/output.c, src/output.h (guards_output): Remove.
581 (prepare): Adjust.
582 (token_definitions_output): Don't output the `T'
583 tokens (???).
584 (output_skeleton): Don't output the guards.
585 * src/files.c, src/files.c (attrsfile): Remove.
586 * src/reader.c (symbol_list): Remove the guard and guard_line
587 members.
588 Adjust dependencies.
589 (parse_guard): Remove.
590 * data/bison.hairy: Remove.
591 * doc/bison.texinfo (Environment Variables): Remove occurrences of
592 BISON_HAIRY.
593
82b6cb3f
AD
5942002-05-02 Akim Demaille <akim@epita.fr>
595
596 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
597 (parse_guard): Rename the formal argument `stack_offset' as
598 `rule_length', which is more readable.
599 Adjust callers.
600 (copy_at, copy_dollar): Instead of outputting the hard coded
601 values of $$, $n and so forth, output invocation to b4_lhs_value,
602 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
900c877b
AD
603 Note: this patch partially drops `semantic-parser' support: it
604 always does `rule_length - n', where semantic parsers ought to
605 always use `-n'.
82b6cb3f
AD
606 * data/bison.simple, data/bison.c++ (b4_lhs_value)
607 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
608
6cbfbcc5
AD
6092002-05-02 Akim Demaille <akim@epita.fr>
610
611 * configure.in (AC_INIT): Bump to 1.49b.
612 (AM_INIT_AUTOMAKE): Short invocation.
613
b8548114
AD
6142002-05-02 Akim Demaille <akim@epita.fr>
615
616 Version 1.49a.
617
c20cd1fa
AD
6182002-05-01 Akim Demaille <akim@epita.fr>
619
620 * src/skeleton.h: Remove.
621
8a9566d4
AD
6222002-05-01 Akim Demaille <akim@epita.fr>
623
624 * src/skeleton.h: Fix the #endif.
625 Reported by Magnus Fromreide.
626
8c6d399a
PE
6272002-04-26 Paul Eggert <eggert@twinsun.com>
628
629 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
630 Define if we define YYSTYPE and YYLTYPE, respectively.
b756bb75 631 (YYCOPY): Fix [] quoting problem in the non-GCC case.
8a9566d4 632
2b7ed18a
RA
6332002-04-25 Robert Anisko <robert@lrde.epita.fr>
634
635 * src/scan-skel.l: Postprocess quadrigraphs.
636
637 * src/reader.c (copy_character): New function, used to output
638 single characters while replacing `[' and `]' with quadrigraphs, to
639 avoid troubles with M4 quotes.
640 (copy_comment): Output characters with copy_character.
641 (read_additionnal_code): Likewise.
642 (copy_string2): Likewise.
643 (copy_definition): Likewise.
644
645 * tests/calc.at: Exercise M4 quoting.
646
34a89c50
AD
6472002-04-25 Akim Demaille <akim@epita.fr>
648
649 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
650 between `!' and the command.
651 Reported by Paul Eggert.
652
0dd1580a
RA
6532002-04-24 Robert Anisko <robert@lrde.epita.fr>
654
655 * tests/calc.at: Exercise prologue splitting.
656
657 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
658 `b4_post_prologue' instead of `b4_prologue'.
659
660 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
661 muscles.
662 (output): Free pre_prologue_obstack and post_prologue_obstack.
663 * src/files.h, src/files.c (attrs_obstack): Remove.
664 (pre_prologue_obstack, post_prologue_obstack): New.
665 * src/reader.c (copy_definition): Add a parameter to specify the
666 obstack to fill, instead of using attrs_obstack unconditionally.
667 (read_declarations): Pass pre_prologue_obstack to copy_definition if
668 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
669
83c1796f
PE
6702002-04-23 Paul Eggert <eggert@twinsun.com>
671
672 * data/bison.simple: Remove unnecessary commentary and white
673 space differences from 1_29-branch.
674 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
675
676 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
677 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
678 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
679 constructors or destructors.
680
681 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
682
1207eeac
AD
6832002-04-23 Akim Demaille <akim@epita.fr>
684
685 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
686 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
687 location with columns.
688 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
689 All reported by Paul Eggert.
690
78ab8f67
AD
6912002-04-22 Akim Demaille <akim@epita.fr>
692
693 * src/reduce.c (dump_grammar): Move to...
694 * src/gram.h, src/gram.c (grammar_dump): here.
695 Be sure to separate long item numbers.
696 Don't read the members of a rule's prec if its nil.
697
133c20e2
AD
6982002-04-22 Akim Demaille <akim@epita.fr>
699
700 * src/output.c (table_size, table_grow): New.
701 (MAXTABLE): Remove, replace uses with table_size.
702 (pack_vector): Instead of dying when the table is too big, grow it.
703
9515e8a7
AD
7042002-04-22 Akim Demaille <akim@epita.fr>
705
706 * data/bison.simple (yyr1): Its type is that of a token number.
707 * data/bison.c++ (r1_): Likewise.
708 * tests/regression.at (Web2c Actions): Adjust.
709
23c5a174
AD
7102002-04-22 Akim Demaille <akim@epita.fr>
711
712 * src/reader.c (token_translations_init): 256 is now the default
713 value for the error token, i.e., it will be assigned another
714 number if the user assigned 256 to one of her tokens.
715 (reader): Don't force 256 to error.
716 * doc/bison.texinfo (Symbols): Adjust.
717 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
718 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
719 etc. instead of 10, 20, 30 (which was used to `jump' over error
720 (256) and undefined (2)).
721
5fbb0954
AD
7222002-04-22 Akim Demaille <akim@epita.fr>
723
724 Propagate more token_number_t.
725
726 * src/gram.h (token_number_as_item_number)
727 (item_number_as_token_number): New.
728 * src/output.c (GENERATE_OUTPUT_TABLE): New.
729 Use it to create output_item_number_table and
730 output_token_number_table.
731 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
732 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
733 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
734 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
735
4f940944
AD
7362002-04-22 Akim Demaille <akim@epita.fr>
737
738 * src/output.h, src/output.c (get_lines_number): Remove.
739
3ded9a63
AD
7402002-04-19 Akim Demaille <akim@epita.fr>
741
742 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
743 as Lex/Flex'.
744 (Debugging): More details about enabling the debugging features.
745 (Table of Symbols): Describe $$, $n, @$, and @n.
746 Suggested by Tim Josling.
747
e0c471a9
AD
7482002-04-19 Akim Demaille <akim@epita.fr>
749
750 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
751
fecc10cd
AD
7522002-04-10 Akim Demaille <akim@epita.fr>
753
754 * src/system.h: Rely on HAVE_LIMITS_H.
755 Suggested by Paul Eggert.
756
51dec47b
AD
7572002-04-09 Akim Demaille <akim@epita.fr>
758
759 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
760 full stderr, and strip it according to the bison options, instead
761 of composing the error message from different bits.
762 This makes it easier to check for several error messages.
763 Adjust all the invocations.
764 Add an invocation exercising the error token.
765 Add an invocation demonstrating a stupid error message.
766 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
767 Adjust the tests.
768 Error message are for stderr, not stdout.
769
007a50a4
AD
7702002-04-09 Akim Demaille <akim@epita.fr>
771
772 * src/gram.h, src/gram.c (error_token_number): Remove, use
773 errtoken->number.
774 * src/reader.c (reader): Don't specify the user token number (2)
775 for $undefined, as it uselessly prevents using it.
776 * src/gram.h (token_number_t): Move to...
777 * src/symtab.h: here.
778 (state_t.number): Is a token_number_t.
779 * src/print.c, src/reader.c: Use undeftoken->number instead of
780 hard coded 2.
781 (Even though this 2 is not the same as above: the number of the
782 undeftoken remains being 2, it is its user token number which
783 might not be 2).
784 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
785 `user_token_number_max'.
786 Output `undef_token_number'.
787 * data/bison.simple, data/bison.c++: Use them.
788 Be sure to map invalid yylex return values to
789 `undef_token_number'. This saves us from gratuitous SEGV.
790
791 * tests/conflicts.at (Solved SR Conflicts)
792 (Unresolved SR Conflicts): Adjust.
793 * tests/regression.at (Web2c Actions): Adjust.
794
06446ccf
AD
7952002-04-08 Akim Demaille <akim@epita.fr>
796
797 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
798 Adding #line.
799 Remove the duplicate `typedefs'.
800 (RhsNumberType): Fix the declaration and various other typos.
801 Use __ofile__.
802 * data/bison.simple: Use __ofile__.
803 * src/scan-skel.l: Handle __ofile__.
804
62a3e4f0
AD
8052002-04-08 Akim Demaille <akim@epita.fr>
806
807 * src/gram.h (item_number_t): New, the type of item numbers in
808 RITEM. Note that it must be able to code symbol numbers as
809 positive number, and the negation of rule numbers as negative
810 numbers.
811 Adjust all dependencies (pretty many).
812 * src/reduce.c (rule): Remove this `short *' pointer: use
813 item_number_t.
814 * src/system.h (MINSHORT, MAXSHORT): Remove.
815 Include `limits.h'.
816 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
817 (shortcpy): Remove.
818 (MAXTABLE): Move to...
819 * src/output.c (MAXTABLE): here.
820 (prepare_rules): Use output_int_table to output rhs.
821 * data/bison.simple, data/bison.c++: Adjust.
822 * tests/torture.at (Big triangle): Move the limit from 254 to
823 500.
824 * tests/regression.at (Web2c Actions): Ajust.
825
826 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
827 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
828 passes, but produces negative #line number, once fixed, GCC is
829 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
830 C), it passes.
831 * src/state.h (state_h): Code input lines on ints, not shorts.
832
bb88b0fc
AD
8332002-04-08 Akim Demaille <akim@epita.fr>
834
835 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
836 and then the grammar.
837
9a636f47
AD
8382002-04-08 Akim Demaille <akim@epita.fr>
839
840 * src/system.h: No longer using strndup.
841
680e8701
AD
8422002-04-07 Akim Demaille <akim@epita.fr>
843
844 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
845 * src/output.c (output_table_data): Return the longest number.
846 (prepare_tokens): Output `token_number_max').
847 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
848 New.
849 Use them to define yy_token_number_type/TokenNumberType.
850 Use this type for yytranslate.
851 * tests/torture.at (Big triangle): Push the limit from 124 to
852 253.
853 * tests/regression.at (Web2c Actions): Adjust.
854
817e9f41
AD
8552002-04-07 Akim Demaille <akim@epita.fr>
856
857 * tests/torture.at (Big triangle): New.
858 (GNU AWK Grammar, GNU Cim Grammar): Move to...
859 * tests/existing.at: here.
860
5123689b
AD
8612002-04-07 Akim Demaille <akim@epita.fr>
862
863 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
864 nritems.
865 Adjust dependencies.
866
f3849179
AD
8672002-04-07 Akim Demaille <akim@epita.fr>
868
869 * src/reader.c: Normalize increments to prefix form.
870
bd02036a
AD
8712002-04-07 Akim Demaille <akim@epita.fr>
872
873 * src/reader.c, symtab.c: Remove debugging code.
874
db8837cb
AD
8752002-04-07 Akim Demaille <akim@epita.fr>
876
877 Rename all the `bucket's as `symbol_t'.
878
879 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
880 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
881 * src/symtab.c, src/symtab.h (bucket): Rename as...
882 (symbol_t): this.
883 (symbol_list_new, bucket_check_defined, bucket_make_alias)
884 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
885 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
886 (buckets_new, buckets_free, buckets_do): Rename as...
887 (symbol_list_new, symbol_check_defined, symbol_make_alias)
888 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
889 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
890 (symbols_new, symbols_free, symbols_do): these.
891
72a23c97
AD
8922002-04-07 Akim Demaille <akim@epita.fr>
893
894 Use lib/hash for the symbol table.
895
896 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
897 EOF.
898 * src/lex.c (lex): Set the `number' member of new terminals.
899 * src/reader.c (bucket_check_defined, bucket_make_alias)
900 (bucket_check_alias_consistence, bucket_translation): New.
901 (reader, grammar_free, readgram, token_translations_init)
902 (packsymbols): Adjust.
903 (reader): Number the predefined tokens.
904 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
905 for predefined tokens.
906 * src/symtab.h (bucket): Remove all the hash table related
907 members.
908 * src/symtab.c (symtab): Replace by...
909 (bucket_table): this.
910 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
911 (buckets_new, buckets_do): New.
912
280a38c3
AD
9132002-04-07 Akim Demaille <akim@epita.fr>
914
915 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
916 (start_symbol, max_user_token_number, semantic_parser)
917 (error_token_number): Initialize.
918 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
919 Initialize.
920 (reader): Don't.
921 (errtoken, eoftoken, undeftoken, axiom): Extern.
922
03b31c0c
AD
9232002-04-07 Akim Demaille <akim@epita.fr>
924
925 * src/gram.h (rule_s): prec and precsym are now pointers
926 to the bucket giving the priority/associativity.
927 Member `associativity' removed: useless.
928 * src/reduce.c, src/conflicts.c: Adjust.
929
8b3df748
AD
9302002-04-07 Akim Demaille <akim@epita.fr>
931
932 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
933 Properly escape the symbols' TAG when outputting them.
934
e601aa1d
AD
9352002-04-07 Akim Demaille <akim@epita.fr>
936
937 * src/lalr.h (LA): Is a bitsetv, not bitset*.
938
b0299a2e
AD
9392002-04-07 Akim Demaille <akim@epita.fr>
940
941 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
942 (LArule): this, which is an array to rule_t*.
943 * src/print.c, src/conflicts.c: Adjust.
944
d7e1f00c
AD
9452002-04-07 Akim Demaille <akim@epita.fr>
946
947 * src/gram.h (rule_t): Rename `number' as `user_number'.
948 `number' is a new member.
949 Adjust dependencies.
950 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
951
cc9305dd
AD
9522002-04-07 Akim Demaille <akim@epita.fr>
953
954 As a result of the previous patch, it is no longer needed
955 to reorder ritem itself.
956
957 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
958
b0940840
AD
9592002-04-07 Akim Demaille <akim@epita.fr>
960
961 Be sure never to walk through RITEMS, but use only data related to
962 the rules themselves. RITEMS should be banished.
963
964 * src/output.c (output_token_translations): Rename as...
965 (prepare_tokens): this.
966 In addition to `translate', prepare the muscles `tname' and
967 `toknum', which were handled by...
968 (output_rule_data): this.
969 Remove, and move the remainder of its outputs into...
970 (prepare_rules): this new routines, which also merges content from
971 (output_gram): this.
972 (prepare_rules): Be sure never to walk through RITEMS.
973 (output_stos): Rename as...
974 (prepare_stos): this.
975 (output): Always invoke prepare_states, after all, just don't use it
976 in the output if you don't need it.
977
643a5994
AD
9782002-04-07 Akim Demaille <akim@epita.fr>
979
980 * src/LR0.c (new_state): Display `nstates' as the name of the
981 newly created state.
982 Adjust to initialize first_state and last_state if needed.
983 Be sure to distinguish the initial from the final state.
984 (new_states): Create the itemset of the initial state, and use
985 new_state.
986 * src/closure.c (closure): Now that the initial state has its
987 items properly set, there is no need for a special case when
988 creating `ruleset'.
989
990 As a result, now the rule 0, reducing to $axiom, is visible in the
991 outputs. Adjust the test suite.
992
993 * tests/conflicts.at (Solved SR Conflicts)
994 (Unresolved SR Conflicts): Adjust.
995 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
996 * tests/conflicts.at (S/R in initial): New.
997
b4c4ccc2
AD
9982002-04-07 Akim Demaille <akim@epita.fr>
999
1000 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
1001 the RHS of the rules.
1002 * src/output.c (output_gram): Likewise.
1003
bba97eb2
AD
10042002-04-07 Akim Demaille <akim@epita.fr>
1005
1006 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
1007 bucket.
1008 Adjust all dependencies.
1009 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
1010 `number' of the buckets too.
1011 * src/gram.h: Include `symtab.h'.
1012 (associativity): Move to...
1013 * src/symtab.h: here.
1014 No longer include `gram.h'.
1015
c3b407f4
AD
10162002-04-07 Akim Demaille <akim@epita.fr>
1017
1018 * src/gram.h, src/gram.c (rules_rhs_length): New.
1019 (ritem_longest_rhs): Use it.
1020 * src/gram.h (rule_t): `number' is a new member.
1021 * src/reader.c (packgram): Set it.
1022 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
1023 the end of `rules', and count them out of `nrules'.
1024 (reduce_output, dump_grammar): Adjust.
1025 * src/print.c (print_grammar): It is no longer needed to check for
1026 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
1027 * tests/reduce.at (Reduced Automaton): New test.
1028
11652ab3
AD
10292002-04-07 Akim Demaille <akim@epita.fr>
1030
1031 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
1032 lacking `+ 1' to nrules, Bison reported as useless a token if it
1033 was used solely to set the precedence of the last rule...
1034
26b23c1a
AD
10352002-04-07 Akim Demaille <akim@epita.fr>
1036
1037 * data/bison.c++, data/bison.simple: Don't output the current file
1038 name in #line, to avoid useless diffs between two identical
1039 outputs under different names.
1040
18bcecb0
AD
10412002-04-07 Akim Demaille <akim@epita.fr>
1042
1043 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
1044 Normalize loops to using `< nrules + 1', not `<= nrules'.
1045
fa770c86
AD
10462002-04-07 Akim Demaille <akim@epita.fr>
1047
1048 * TODO: Update.
1049
d9b739c3
AD
10502002-04-07 Akim Demaille <akim@epita.fr>
1051
1052 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
1053 bucket.value as bucket.number.
1054
99013900
AD
10552002-04-07 Akim Demaille <akim@epita.fr>
1056
1057 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
1058 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1059 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
1060 RHS, instead of being an index in RITEMS.
1061
e966383b
PE
10622002-04-04 Paul Eggert <eggert@twinsun.com>
1063
1064 * doc/bison.texinfo: Update copyright date.
1065 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
1066 (Symbols): Warn about running Bison in one character set,
1067 but compiling and/or running in an incompatible one.
1068 Warn about character code 256, too.
1069
10702002-04-03 Paul Eggert <eggert@twinsun.com>
1071
1072 * src/bison.data (YYSTACK_ALLOC): Depend on whether
1073 YYERROR_VERBOSE is nonzero, not whether it is defined.
1074
1075 Merge changes from bison-1_29-branch.
c307773e 1076
8d6c48b9
PE
10772002-03-20 Paul Eggert <eggert@twinsun.com>
1078
1079 Merge fixes from Debian bison_1.34-1.diff.
1080
1081 * configure.in (AC_PREREQ): 2.53.
1082
e53c6322
AD
10832002-03-20 Akim Demaille <akim@epita.fr>
1084
1085 * src/conflicts.c (log_resolution): Argument `resolution' is const.
1086
9ffbeca7
PE
10872002-03-19 Paul Eggert <eggert@twinsun.com>
1088
21db0b2a
PE
1089 * src/bison.simple (YYCOPY): New macro.
1090 (YYSTACK_RELOCATE): Use it.
1091 Remove Type arg; no longer needed. All callers changed.
1092 (yymemcpy): Remove; no longer needed.
1093
9ffbeca7
PE
1094 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
1095 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1096
642cb8f8
AD
10972002-03-19 Akim Demaille <akim@epita.fr>
1098
1099 Test and fix the #line outputs.
1100
1101 * tests/atlocal.at (GCC): New.
1102 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
1103 (Prologue synch line, ,%union synch line, Postprologue synch line)
1104 (Action synch line, Epilogue synch line): New tests.
1105 * src/reader.c (parse_union_decl): Define the muscle stype_line.
1106 * data/bison.simple, data/bison.c++: Use it.
1107
3c31a486
AD
11082002-03-19 Akim Demaille <akim@epita.fr>
1109
1110 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
1111 (Solved SR Conflicts, %expect not enough, %expect right)
1112 (%expect too much): Move to...
1113 * tests/conflicts.at: this new file.
1114
0d8bed56
AD
11152002-03-19 Akim Demaille <akim@epita.fr>
1116
1117 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1118 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
1119 that we can move to enums for instance.
1120 * src/output.c (token_definitions_output): Output a list of
1121 `token-name, token-number' instead of the #define.
1122 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
1123
9208d17f
AD
11242002-03-14 Akim Demaille <akim@epita.fr>
1125
1126 Use Gettext 0.11.1.
1127
af27eacb
RA
11282002-03-09 Robert Anisko <robert@lrde.epita.fr>
1129
1130 * data/bison.c++: Make the user able to add members to the generated
1131 parser by subclassing.
1132
9101a310
RA
11332002-03-05 Robert Anisko <robert@lrde.epita.fr>
1134
1135 * src/reader.c (read_additionnal_code): `c' should be an integer, not
1136 a character.
1137 Reported by Nicolas Tisserand and Nicolas Burrus.
1138
fff9bf0b
RA
11392002-03-04 Robert Anisko <robert@lrde.epita.fr>
1140
1141 * src/reader.c: Warn about lacking semi-colons, do not complain.
1142
64dba31e
RA
11432002-03-04 Robert Anisko <robert@lrde.epita.fr>
1144
1145 * data/bison.c++: Remove a debug line.
1146
374f5a14
RA
11472002-03-04 Robert Anisko <robert@lrde.epita.fr>
1148
1149 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
1150 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
1151 provide a default implementation.
1152
bfcf1f3a
AD
11532002-03-04 Akim Demaille <akim@epita.fr>
1154
1155 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
1156 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
1157 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
1158 * tests/semantic.at (Parsing Guards): Similarly.
1159 * src/reader.at (readgram): Complain if the last rule is not ended
1160 with a semi-colon.
1161
65ccf9fc
AD
11622002-03-04 Akim Demaille <akim@epita.fr>
1163
1164 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
1165 * src/closure.c: here.
1166 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
1167 RTC.
1168 * src/warshall.h, src/warshall.c: Remove.
1169 * tests/sets.at (Broken Closure): Adjust.
1170
d0039cbc
AD
11712002-03-04 Akim Demaille <akim@epita.fr>
1172
1173 * src/output.c (output_skeleton): tempdir is const.
1174 bytes_read is unused.
1175
345cea78
AD
11762002-03-04 Akim Demaille <akim@epita.fr>
1177
1178 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1179 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
1180 Update.
1181 From Michael Hayes.
1182
564801f7
AD
11832002-03-04 Akim Demaille <akim@epita.fr>
1184
1185 * src/closure.c (closure): `r' is unused.
1186
e5352bc7
AD
11872002-03-04 Akim Demaille <akim@epita.fr>
1188
1189 * tests/sets.at (Broken Closure): Add the ending `;'.
1190 * src/reader.at (readgram): Complain if a rule is not ended with a
1191 semi-colon.
1192
914feea9
AD
11932002-03-04 Akim Demaille <akim@epita.fr>
1194
1195 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
1196 (count_sr_conflicts): Use bitset_count.
1197 * src/reduce.c (inaccessable_symbols): Ditto.
1198 (bits_size): Remove.
1199 * src/warshall.h, src/warshall.c: Convert to bitsetv.
1200
f0250de6
AD
12012002-03-04 Akim Demaille <akim@epita.fr>
1202
1203 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
1204 * src/reduce.c: Remove the `bitset_zero's following the
1205 `bitset_create's, as now it is performed by the latter.
1206
ef017502
AD
12072002-03-04 Akim Demaille <akim@epita.fr>
1208
1209 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
1210 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
1211 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
1212 latest sources from Michael.
1213
76514394
AD
12142002-03-04 Akim Demaille <akim@epita.fr>
1215
1216 * src/output.c (output): Don't free the grammar.
1217 * src/reader.c (grammar_free): New.
1218 * src/main.c (main): Call it and don't free symtab here.
1219
55024580
AD
12202002-03-04 Akim Demaille <akim@epita.fr>
1221
1222 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
1223 before returning.
1224 Reported by Benoit Perrot.
1225
f9abaa2c
AD
12262002-03-04 Akim Demaille <akim@epita.fr>
1227
1228 Use bitset operations when possible, not loops over bits.
1229
1230 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
1231 bitset_or.
1232 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
1233 * src/reduce.c (useless_nonterminals): Formatting changes.
1234 * src/warshall.c (TC): Use bitset_or.
1235
0e721e75
AD
12362002-03-04 Akim Demaille <akim@epita.fr>
1237
1238 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
1239 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
1240 Ditto.
1241
0fb1ffb1
AD
12422002-03-04 Akim Demaille <akim@epita.fr>
1243
1244 * src/lalr.c (F): Now a bitset*.
1245 Adjust all dependencies.
1246
b86796bf
AD
12472002-03-04 Akim Demaille <akim@epita.fr>
1248
1249 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
1250 Adjust all dependencies.
1251
602bbf31
AD
12522002-03-04 Akim Demaille <akim@epita.fr>
1253
1254 * src/L0.c, src/LR0.h (nstates): Be size_t.
1255 Adjust comparisons (signed vs unsigned).
1256 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
1257 bitset*.
1258 Adjust all dependencies.
1259
d8a0245c
AD
12602002-03-04 Akim Demaille <akim@epita.fr>
1261
1262 * src/closure.c (firsts): Now, also a bitset.
1263 Adjust all dependencies.
1264 (varsetsize): Remove, now unused.
1265 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
1266
34ba9743
AD
12672002-03-04 Akim Demaille <akim@epita.fr>
1268
1269 * src/print.c: Convert to use bitset.h, not hand coded iterations
1270 over ints.
1271
ed86e78c
AD
12722002-03-04 Akim Demaille <akim@epita.fr>
1273
1274 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
1275
dfdb1797
AD
12762002-03-04 Akim Demaille <akim@epita.fr>
1277
1278 * src/closure.c (ruleset): Be a bitset.
1279 (rulesetsize): Remove.
1280
7086e707
AD
12812002-03-04 Akim Demaille <akim@epita.fr>
1282
1283 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1284 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
1285 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
1286 * src/closure.c (fderives): Be an array of bitsets.
1287
98254360
RA
12882002-02-28 Robert Anisko <robert@lrde.epita.fr>
1289
1290 * data/bison.c++: Merge the two generated headers. Insert a copyright
1291 notice in each output file.
1292
a75c057f
AD
12932002-02-28 Akim Demaille <akim@epita.fr>
1294
1295 * data/bison.c++: Copy the prologue of bison.simple to fetch
1296 useful M4 definitions, such as b4_header_guard.
1297
06b00abc
AD
12982002-02-25 Akim Demaille <akim@epita.fr>
1299
1300 * src/getargs.c (version): Give the name of the authors, and use a
a75c057f
AD
1301 translator friendly scheme for the bgr
1302 copyright notice.
06b00abc 1303
70e7d534
AD
13042002-02-25 Akim Demaille <akim@epita.fr>
1305
1306 * src/output.c (header_output): Remove, now handled completely via
1307 M4.
1308
abe017f6
AD
13092002-02-25 Akim Demaille <akim@epita.fr>
1310
1311 * m4/m4.m4: New, from CVS Autoconf.
1312 * configure.in: Invoke it.
1313 * src/output.c (output_skeleton): Use its result instead of the
1314 hard coded name.
1315
381fb12e
AD
13162002-02-25 Akim Demaille <akim@epita.fr>
1317
1318 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
1319 Fileutils 4.1.5.
1320 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
1321 * src/output.c (output_skeleton): Use mkstemp to create a real
1322 temporary file.
1323 Move the filling of `skeleton' and its muscle to...
1324 (prepare): here.
1325 (output): Move the definition of the prologue muscle to...
1326 (prepare): here.
1327 * src/system.h (DEFAULT_TMPDIR): New.
1328
6f38107f
PE
13292002-02-14 Paul Eggert <eggert@twinsun.com>
1330
1331 Remove the support for C++ namespace cleanliness; it was
1332 causing more problems than it was curing, since it didn't work
1333 properly on some nonstandard C++ compilers. This can wait
1334 for a proper C++ parser.
1335
1336 * NEWS: Document this.
1337 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
1338 of C++, as it's treated like C now.
1339 * src/bison.simple (YYSTD): Remove.
1340 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
1341 Treat C++ just like Standard C instead of trying to support
1342 namespace cleanliness.
1343
80cce3da
AD
13442002-02-14 Akim Demaille <akim@epita.fr>
1345
1346 * tests/regression.at (else): Adjust to Andreas' change.
1347
842e8679
AD
13482002-02-14 Akim Demaille <akim@epita.fr>
1349
1350 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
1351
4bda3f10
AD
13522002-02-13 Andreas Schwab <schwab@suse.de>
1353
1354 * src/output.c (output_rule_data): Don't output NULL, it might
1355 not be defined yet.
1356
4162fa07 13572002-02-11 Robert Anisko <robert@lrde.epita.fr>
b418ecd8 1358
4162fa07
RA
1359 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
1360 (Copyright notice): Update.
b418ecd8 1361
bd16a5dc
AD
13622002-02-11 Akim Demaille <akim@epita.fr>
1363
1364 * tests/regression.at (%nonassoc and eof): Don't include
1365 nonportable headers.
1366
8d69a1a3
RA
13672002-02-08 Robert Anisko <robert@lrde.epita.fr>
1368
1369 * data/bison.c++: Correct error recovery. Make the user able to
1370 initialize the starting location.
1371
9b2d0677
AD
13722002-02-07 Akim Demaille <akim@epita.fr>
1373
1374 * tests/input.at: New.
1375
69e2658b
RA
13762002-02-07 Robert Anisko <robert@lrde.epita.fr>
1377
1378 * data/bison.c++: Replace some direct m4 expansions by constants. Be
9b2d0677 1379 more consistent when naming methods and variables. Put preprocessor
69e2658b
RA
1380 directives around tables only needed for debugging.
1381
4aacc3a7
RA
13822002-02-07 Robert Anisko <robert@lrde.epita.fr>
1383
1384 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
1385 C++ parsers.
1386 (yy::b4_name::parse): Use print_.
1387
762a801e
RA
13882002-02-07 Robert Anisko <robert@lrde.epita.fr>
1389
1390 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
1391
4bb2bc3f
RA
13922002-02-07 Robert Anisko <robert@lrde.epita.fr>
1393
1394 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
1395 C++ parsers.
1396 (yy::b4_name::parse): Build verbose error messages, and use error_.
1397
6b45a3ca
RA
13982002-02-06 Robert Anisko <robert@lrde.epita.fr>
1399
1400 * data/bison.c++: Fix m4 quoting in comments.
1401
50997c6e
RA
14022002-02-06 Robert Anisko <robert@lrde.epita.fr>
1403
1404 * data/bison.c++: Adjust the parser code. Fix some muscles that were
1405 not expanded by m4.
1406
3f3eed27
AD
14072002-02-05 Akim Demaille <akim@epita.fr>
1408
1409 * data/bison.c++: Adjust to the M4 back end.
1410 More is certainly needed.
1411
be2a1a68
AD
14122002-02-05 Akim Demaille <akim@epita.fr>
1413
1414 Give a try to M4 as a back end.
1415
1416 * lib/readpipe.c: New, from wdiff.
1417 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
1418 BISON_HAIRY.
1419 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
1420 specific values. Now it is m4 that performs the lookup.
1421 * src/parse-skel.y: Remove.
1422 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
1423 * src/output.c (actions_output, guards_output)
1424 (token_definitions_output): No longer keeps track of the output
1425 line number, hence remove the second argument.
1426 (guards_output): Check against the guard member of a rule, not the
1427 action member.
1428 Adjust callers.
1429 (output_skeleton): Don't look for the skeleton location, let m4 do
1430 that.
1431 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
1432 file will be used.
1433 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
1434 (prepare): Given that for the time being changesyntax is not
1435 usable in M4, rename the muscles using `-' to `_'.
1436 Define `defines_flag', `output_parser_name' and `output_header_name'.
1437 * src/output.h (actions_output, guards_output)
1438 (token_definitions_output): Adjust prototypes.
1439 * src/scan-skel.l: Instead of scanning the skeletons, it now
1440 processes the output of m4: `__oline__' and `#output'.
1441 * data/bison.simple: Adjust to be used by M4(sugar).
1442 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
1443 to date.
1444 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
1445 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
1446 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
1447 shamelessly stolen from CVS Autoconf.
1448
beda758b
AD
14492002-02-05 Akim Demaille <akim@epita.fr>
1450
1451 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
1452 * configure.in: Check for the declarations of free and malloc.
1453 * src/muscle_tab.c: Adjust.
1454
5ece6d43
AD
14552002-02-05 Akim Demaille <akim@epita.fr>
1456
1457 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
1458 which have no values.
1459
5bb18f9a
AD
14602002-02-05 Akim Demaille <akim@epita.fr>
1461
1462 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
1463 * data/: here.
1464
894dd62e
PE
14652002-01-29 Paul Eggert <eggert@twinsun.com>
1466
1467 * src/bison.simple (YYSIZE_T): Do not define merely because
1468 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
1469 On some platforms, <alloca.h> does not declare YYSTD (size_t).
1470
82841af7
AD
14712002-01-27 Akim Demaille <akim@epita.fr>
1472
1473 Fix `%nonassoc and eof'.
1474
1475 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
1476 which were not properly copied! Replace
1477 memcpy (res->errs, src->errs, src->nerrs);
1478 with
1479 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
1480 !!!
1481 * tests/regression.at (%nonassoc and eof): Adjust to newest
1482 Autotest: `.' is not in the PATH.
1483
318b76e9
AD
14842002-01-27 Akim Demaille <akim@epita.fr>
1485
1486 * tests/sets.at (AT_EXTRACT_SETS): New.
1487 (Nullable): Use it.
1488 (Firsts): New.
1489
30d2f3d5
AD
14902002-01-26 Akim Demaille <akim@epita.fr>
1491
1492 * tests/actions.at, tests/calc.at, tests/headers.at,
1493 * tests/torture.at: Adjust to the newest Autotest which no longer
1494 forces `.' in the PATH.
1495
30f8c395
AD
14962002-01-25 Akim Demaille <akim@epita.fr>
1497
1498 * tests/regression.at (%nonassoc and eof): New.
1499 Suggested by Robert Anisko.
1500
29ae55f1
AD
15012002-01-24 Akim Demaille <akim@epita.fr>
1502
1503 Bison dumps core when trying to complain about broken input files.
1504 Reported by Cris van Pelt.
1505
1506 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
1507 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
1508 into...
1509 (Invalid inputs): Strengthen: exercise parse_percent_token.
1510
2b548aa6
RA
15112002-01-24 Robert Anisko <robert.anisko@epita.fr>
1512
1513 * src/Makefile.am: Add bison.c++.
1514 * src/bison.c++: New skeleton.
1515
bb0146c2
AD
15162002-01-21 Paolo Bonzini <bonzini@gnu.org>
1517
1518 * po/it.po: New.
1519
bec30531
AD
15202002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
1521
1522 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
1523
fc6edc45
MA
15242002-01-20 Marc Autret <marc@gnu.org>
1525
1526 * src/files.c (compute_output_file_names): Fix
1527
5e5d5415
MA
15282002-01-20 Marc Autret <marc@gnu.org>
1529
1530 * tests/output.at: New test.
1531 * src/files.c (compute_base_names): Don't map extensions when
1532 the YACC flag is set, use defaults.
1533 Reported by Evgeny Stambulchik.
1534
44ea3fbd
MA
15352002-01-20 Marc Autret <marc@gnu.org>
1536
bb0146c2 1537 * src/system.h: Need to define __attribute__ away for non-GCC
44ea3fbd
MA
1538 compilers as well (i.e. the vendor C compiler).
1539 Suggested by Albert Chin-A-Young.
1540
338963d1
TVH
15412002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
1542
1543 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
1544 canonical definition.
1545 * src/system.h: Use the canonical definition for PARAMS (avoids
1546 a conflict with the macro from lib/hash.h).
1547
c57b2479
AD
15482002-01-11 Akim Demaille <akim@epita.fr>
1549
1550 * configure.in: Use AC_FUNC_STRNLEN.
d9e9746c 1551 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
c57b2479 1552
b85810ae
AD
15532002-01-09 Akim Demaille <akim@epita.fr>
1554
1555 * src/files.c, src/files.h (output_infix): New.
1556 (tab_extension): Remove.
1557 (compute_base_names): Compute the former, drop the latter.
1558 * src/output.c (prepare): Insert the muscles `output-infix', and
1559 `output-suffix'.
1560 * src/parse-skel.y (string, string.1): New.
1561 (section.header): Use it.
1562 (section.yacc): Remove.
1563 (prefix): Remove too.
1564 * src/scan-skel.l: Adjust.
1565 * src/bison.simple, src/bison.hairy: Adjust.
1566
cae60122
AD
15672002-01-09 Akim Demaille <akim@epita.fr>
1568
1569 * configure.in (WERROR_CFLAGS): Compute it.
1570 * src/Makefile.am (CFLAGS): Pass it.
1571 * tests/atlocal.in (CFLAGS): Idem.
1572 * src/files.c: Fix a few warnings.
1573 (get_extension_index): Remove, unused.
1574
ae404801
AD
15752002-01-08 Akim Demaille <akim@epita.fr>
1576
1577 * src/getargs.c (AS_FILE_NAME): New.
1578 (getargs): Use it to convert DOSish file names.
1579 * src/files.c (base_name): Rename as full_base_name to avoid
1580 clashes with `base_name ()'.
1581 (filename_split): New.
1582 (compute_base_names): N-th rewrite, using filename_split.
1583
22312b71
AD
15842002-01-08 Akim Demaille <akim@epita.fr>
1585
1586 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
1587 New, stolen from the Fileutils 4.1.
1588 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1589 * configure.in: Check for the presence of memrchr, and of its
1590 prototype.
1591
a67cef01
TVH
15922002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
1593
1594 * lib/hash.h (__P): Added definition for this macro.
1595 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
1596 BUILT_SOURCES, to ensure they are generated first.
1597 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
1598 %error-verbose to allow bootstrapping with bison 1.30x.
1599
2b25d624
AD
16002002-01-06 Akim Demaille <akim@epita.fr>
1601
1602 * src/reader.c (parse_braces): Don't fetch the next char, the
1603 convention is to fetch on entry.
1604 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
1605 'switch' without a following semicolon.
1606 * tests/regression.at (braces parsing): New.
1607
3460813b
AD
16082002-01-06 Akim Demaille <akim@epita.fr>
1609
1610 Bison is dead wrong in its RR conflict reports.
1611
1612 * tests/torture.at (GNU Cim Grammar): New.
1613 * src/conflicts.c (count_rr_conflicts): Fix.
1614
73784c64
AD
16152002-01-06 Akim Demaille <akim@epita.fr>
1616
1617 Creating package.m4 from configure.ac causes too many problems.
1618
1619 * tests/Makefile.am (package.m4): Create it by hand,
1620 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
1621
25d81090
AD
16222002-01-06 Akim Demaille <akim@epita.fr>
1623
1624 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
1625 skeleton.h.
1626
a9b8959e
PE
16272002-01-04 Paul Eggert <eggert@twinsun.com>
1628
1629 * doc/bison.texinfo (Debugging):
1630 Remove YYSTDERR; it's no longer defined or used.
1631 Also, s/cstdio.h/cstdio/.
1632
25d81090
AD
16332002-01-03 Akim Demaille <akim@epita.fr>
1634
1635 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
1636
1109455c
AD
16372002-01-03 Akim Demaille <akim@epita.fr>
1638
1639 * src/parse-skel.y (process_skeleton): Don't bind the parser's
1640 tracing code to --trace, wait for a better --trace option, with
1641 args.
1642
7ea5e977
AD
16432002-01-03 Akim Demaille <akim@epita.fr>
1644
1645 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
1646 The ISO C++ standard is extremely clear about it: stderr is
1647 considered a macro, not a regular symbol (see table 94 `Header
1648 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
1649 Therefore std:: does not apply to it. It still does with fprintf.
1650 Also, s/cstdio.h/cstdio/.
1651
fab5b110
AD
16522002-01-03 Akim Demaille <akim@epita.fr>
1653
1654 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
1655 for non system headers.
1656
aed7fd9b
AD
16572002-01-02 Akim Demaille <akim@epita.fr>
1658
1659 Equip the skeleton chain with location tracking, runtime trace,
1660 pure parser and scanner.
1661
1662 * src/parse-skel.y: Request a pure parser, locations, and prefix
1663 renaming.
1664 (%union): Having several members with the same type does not help
1665 type mismatches, simplify.
1666 (YYPRINT, yyprint): New.
1667 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
1668 (skel_error): this.
1669 Handle locations.
1670 * src/scan-skel.l: Adjust to these changes.
1671 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
1672 (LOCATION_PRINT, skel_control_t): New.
1673
24fad99e
AD
16742001-12-30 Akim Demaille <akim@epita.fr>
1675
1676 * src/parse-skel.y: Get rid of the shift/reduce conflict:
1677 replace `gb' with BLANKS.
1678 * src/scan-skel.l: Adjust.
1679
a4b36db4
AD
16802001-12-30 Akim Demaille <akim@epita.fr>
1681
1682 * src/system.h: We don't need nor want bcopy.
1683 Throw away MS-DOS crap: we don't need getpid.
1684 * configure.in: We don't need strndup. It was even causing
1685 problems: because Flex includes the headers *before* us,
1686 _GNU_SOURCE is not defined by config.h, and therefore strndup was
1687 not visible.
1688 * lib/xstrndup.c: New.
1689 * src/scan-skel.l: Use it.
1690 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
1691 * src/parse-skel.y: Use %directives instead of #defines.
1692
1239777d
AD
16932001-12-30 Akim Demaille <akim@epita.fr>
1694
1695 * src/skeleton.h: New.
1696 * src/output.c (output_parser, output_master_parser): Remove, dead
1697 code.
1698 * src/output.h (get_lines_number, actions_output, guards_output)
1699 (token_definitions_output): Prototype them.
1700 * src/parse-skel.y: Add the license notice.
1701 Include output.h and skeleton.h.
1702 (process_skeleton): Returns void, and takes a single parameter.
1703 * src/scan-skel.l: Add the license notice.
1704 Include skeleton.h.
1705 Don't use %option yylineno: it seems that then Flex imagines
1706 REJECT has been used, and therefore it won't reallocate its
1707 buffers (which makes no other sense to me than a bug). It results
1708 in warnings for `unused: yy_flex_realloc'.
1709
9b3add5b
RA
17102001-12-30 Robert Anisko <robert.anisko@epita.fr>
1711
1712 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1713 (MUSCLE_INSERT_PREFIX): ...to there.
1714 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1715 (MUSCLE_INSERT_PREFIX): Move from here...
1716
1717 * src/bison.hairy: Add a section directive. Put braces around muscle
1718 names. This parser skeleton is still broken, but Bison should not
1719 choke on a bad muscle 'syntax'.
1720 * src/bison.simple: Add a section directive. Put braces around muscle
1721 names.
1722
1723 * src/files.h (strsuffix, stringappend): Add declarations.
1724 (tab_extension): Add declaration.
1725 (short_base_name): Add declaration.
1726
1727 * src/files.c (strsuffix, stringappend): No longer static. These
1728 functions are used in the skeleton parser.
1729 (tab_extension): New.
1730 (compute_base_names): Use the computations done in this function
fab5b110 1731 to guess if the generated parsers should have '.tab' in their
9b3add5b
RA
1732 names.
1733 (short_base_name): No longer static.
1734
1735 * src/output.c (output_skeleton): New.
1736 (output): Disable call to output_master_parser, and give a try to
1737 a new skeleton handling system.
1738 (guards_output, actions_output): No longer static.
1739 (token_definitions_output, get_lines_number): No longer static.
1740
1741 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
1742
fab5b110 1743 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
9b3add5b
RA
1744 parse-skel.y.
1745
1746 * src/parse-skel.y: New file.
1747 * src/scan-skel.l: New file.
1748
b5b61c61
AD
17492001-12-29 Akim Demaille <akim@epita.fr>
1750
1751 %name-prefix is broken.
1752
1753 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
1754 Adjust all dependencies.
1755 * tests/headers.at (export YYLTYPE): Strengthen this test: use
1756 %name-prefix.
1757
1758 Renaming yylval but not yylloc is not consistent. Now we do.
1759
1760 * src/bison.simple: Prefix yylloc if used.
1761 * doc/bison.texinfo (Decl Summary): Document that.
1762
8c9a50be
AD
17632001-12-29 Akim Demaille <akim@epita.fr>
1764
1765 * doc/bison.texinfo: Promote `%long-directive' over
1766 `%long_directive'.
1767 Remove all references to fixed-output-files, yacc is enough.
1768
d99361e6
AD
17692001-12-29 Akim Demaille <akim@epita.fr>
1770
1771 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
1772 user prologue. These are defaults.
1773 * tests/actions.at (Mid-rule actions): Make sure the user can
1774 define YYDEBUG and YYERROR_VERBOSE.
1775
b9cecb91
AD
17762001-12-29 Akim Demaille <akim@epita.fr>
1777
1778 * src/output.c (header_output): Don't forget to export YYLTYPE and
1779 yylloc.
1780 * tests/headers.at (export YYLTYPE): New, make sure it does.
1781 * tests/regression.at (%union and --defines, Invalid CPP headers):
1782 Move to...
1783 * tests/headers.at: here.
1784
aea13e97
AD
17852001-12-29 Akim Demaille <akim@epita.fr>
1786
1787 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
1788
931394cb
AD
17892001-12-29 Akim Demaille <akim@epita.fr>
1790
1791 * tests/actions.at (Mid-rule actions): Output on a single line
1792 instead of several.
1793
704a47c4
AD
17942001-12-29 Akim Demaille <akim@epita.fr>
1795
1796 * doc/bison.texinfo: Formatting changes.
1797
091e20bb
AD
17982001-12-29 Akim Demaille <akim@epita.fr>
1799
1800 Don't store the token defs in a muscle, just be ready to output it
1801 on command. Now possible via `symbols'. Fixes a memory leak.
1802
1803 * src/output.c (token_definitions_output): New.
1804 (output_parser, header_output): Use it.
1805 * src/reader.c (symbols_save): Remove.
1806
cce71710
AD
18072001-12-29 Akim Demaille <akim@epita.fr>
1808
1809 * src/bison.simple: Do not provide a default for YYSTYPE and
1810 YYLTYPE before the user's prologue. Otherwise it's hardly... a
1811 default.
1812
82c035a8
AD
18132001-12-29 Akim Demaille <akim@epita.fr>
1814
1815 Mid-rule actions are simply... ignored!
1816
1817 * src/reader.c (readgram): Be sure to attach mid-rule actions to
1818 the empty-rule associated to the dummy symbol, not to the host
1819 rule.
1820 * tests/actions.at (Mid-rule actions): New.
1821
8419d367
AD
18222001-12-29 Akim Demaille <akim@epita.fr>
1823
1824 Memory leak.
1825
1826 * src/reader.c (reader): Free grammar.
1827
375d5806
AD
18282001-12-29 Akim Demaille <akim@epita.fr>
1829
1830 Memory leak.
1831
1832 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
1833 since it allocates it for each state, although only one is needed.
1834 (allocate_storage): Do it here.
1835
f51cb8ff
AD
18362001-12-29 Akim Demaille <akim@epita.fr>
1837
1838 * src/options.h, src/options.c (create_long_option_table): Rename
1839 as...
1840 (long_option_table_new): this, with a clearer prototype.
1841 (percent_table): Remove, unused,
1842 * src/getargs.c (getargs): Adjust.
1843
29e88316
AD
18442001-12-29 Akim Demaille <akim@epita.fr>
1845
1846 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
1847 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
1848 as states.
1849
b9f71f19
AD
18502001-12-29 Akim Demaille <akim@epita.fr>
1851
1852 * src/lalr.c (build_relations): Rename `states' as `states1'.
1853 Sorry, I don't understand exactly what it is, no better name...
1854
1a2b5d37
AD
18552001-12-29 Akim Demaille <akim@epita.fr>
1856
1857 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
1858 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
1859 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
1860 as rules.
1861
1cca533e
AD
18622001-12-29 Akim Demaille <akim@epita.fr>
1863
1864 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
1865 ago.
1866
c03ae966
AD
18672001-12-29 Akim Demaille <akim@epita.fr>
1868
1869 * src/reader.c, src/reader.h (user_toknums): Remove.
1870 Adjust all users to use symbols[i]->user_token_number.
1871
5a670b1e
AD
18722001-12-29 Akim Demaille <akim@epita.fr>
1873
1874 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
1875 Adjust all users to use symbols[i]->prec or ->assoc.
1876
ad949da9
AD
18772001-12-29 Akim Demaille <akim@epita.fr>
1878
1879 * src/reader.c, src/reader.h (tags): Remove.
1880 Adjust all users to use symbols[i]->tag.
1881
0e78e603
AD
18822001-12-29 Akim Demaille <akim@epita.fr>
1883
1884 * src/gram.h, src/gram.c (symbols): New, similar to state_table
1885 and rule_table.
1886 * src/reader.c (packsymbols): Fill this table.
1887 Drop sprec.
1888 * src/conflicts.c (resolve_sr_conflict): Adjust.
1889 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
1890 single table.
1891 Use symbols[i]->tag instead of tags[i].
1892
213e640e
AD
18932001-12-29 Akim Demaille <akim@epita.fr>
1894
1895 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
1896 In addition, put a comment in there, to replace...
1897 * tests/regression.at (%union and C comments): Remove.
1898
e7b8bef1
AD
18992001-12-29 Akim Demaille <akim@epita.fr>
1900
1901 * tests/regression.at (Web2c Actions): Blindly move the actual
1902 output as expected output. The contents *seem* right to me, but I
1903 can't pretend reading perfectly parser tables... Nonetheless, all
1904 the other tests pass correctly, the table look OK, even though the
1905 presence of `$axiom' is to be noted: AFAICS it is useless (but
1906 harmless).
1907
b68e7744
AD
19082001-12-29 Akim Demaille <akim@epita.fr>
1909
1910 * src/reader.c (readgram): Don't add the rule 0 if there were no
1911 rules read. In other words, add it _after_ having performed
1912 grammar sanity checks.
1913 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
1914
78d5bae9
AD
19152001-12-29 Akim Demaille <akim@epita.fr>
1916
1917 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
1918 visible, and some states have now a different number.
1919
ff442794
AD
19202001-12-29 Akim Demaille <akim@epita.fr>
1921
1922 * src/reader.c (readgram): Bind the initial rule's lineno to that
1923 of the first rule.
1924 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
1925 (Solved SR Conflicts): Adjust rule 0's line number.
1926
610ab194
AD
19272001-12-29 Akim Demaille <akim@epita.fr>
1928
1929 Fix the `GAWK Grammar' failure.
1930
1931 * src/LR0.c (final_state): Initialize to -1 so that we do compute
1932 the reductions of the first state which was mistakenly confused
1933 with the final state because precisely final_state was initialized
1934 to 0.
1935 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
1936 now noticed by Bison.
1937 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
1938 have a reduction on $default.
1939
29d29c8f
AD
19402001-12-29 Akim Demaille <akim@epita.fr>
1941
1942 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
1943 rule line numbers.
1944 * src/closure.c (print_closure): Likewise.
1945 * src/derives.c (print_derives): Likewise.
1946 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
1947 now.
1948
7c6b64d0
AD
19492001-12-29 Akim Demaille <akim@epita.fr>
1950
1951 * src/lalr.c (lookaheads_print): New.
1952 (lalr): Call it when --trace-flag.
1953 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
1954 are dumped.
1955
3d4daee3
AD
19562001-12-29 Akim Demaille <akim@epita.fr>
1957
1958 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
1959 when walking through ritem, even via rule->rhs.
1960 * src/reduce.c (dump_grammar, useful_production, reduce_output)
1961 (useful_production, useless_nonterminals): Likewise.
1962 (reduce_grammar_tables): Likewise, plus update nritems.
1963 * src/nullable.c (set_nullable): Likewise.
1964 * src/lalr.c (build_relations): Likewise.
1965 * tests/sets.at (Nullable): Adjust.
1966 Fortunately, now, the $axiom is no longer nullable.
1967
9e7f6bbd
AD
19682001-12-29 Akim Demaille <akim@epita.fr>
1969
1970 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
1971 the 0-sentinel.
1972 * src/gram.c (ritem_longest_rhs): Likewise.
1973 * src/reduce.c (nonterminals_reduce): Likewise.
1974 * src/print_graph.c (print_graph): Likewise.
1975 * src/output.c (output_rule_data): Likewise.
1976 * src/nullable.c (set_nullable): Likewise.
1977
255ef638
AD
19782001-12-29 Akim Demaille <akim@epita.fr>
1979
1980 * src/output.c: Comment changes.
1981
0d8a7363
AD
19822001-12-27 Paul Eggert <eggert@twinsun.com>
1983
1984 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
1985 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
1986 Sparc, as they were causing more porting problems than the
1987 (minor) performance improvement was worth.
1988
1989 Also, catch up with 1.31's YYSTD.
1990
3db472b9
AD
19912001-12-27 Akim Demaille <akim@epita.fr>
1992
1993 * src/output.c (output_gram): Rely on nritems, not the
1994 0-sentinel. See below.
1995 Use -1 as separator, not 0.
1996 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
1997 Rely on -1 as separator in yyrhs, instead of 0.
1998 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
1999 twice `Now at end of input', therefore there are two lines less to
2000 expect.
2001
b365aa05
AD
20022001-12-27 Akim Demaille <akim@epita.fr>
2003
2004 * tests/regression.at (Unresolved SR Conflicts):
2005 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
2006 below.
2007
30171f79
AD
20082001-12-27 Akim Demaille <akim@epita.fr>
2009
2010 * src/LR0.c (new_state): Recognize the final state by the fact it
2011 is reached by eoftoken.
2012 (insert_start_shifting_state, insert_eof_shifting_state)
2013 (insert_accepting_state, augment_automaton): Remove, since now
2014 these states are automatically computed from the initial state.
2015 (generate_states): Adjust.
2016 * src/print.c: When reporting a rule number to the user, substract
2017 1, so that the axiom rule is rule 0, and the first user rule is 1.
2018 * src/reduce.c: Likewise.
2019 * src/print_graph.c (print_core): For the time being, just as for
2020 the report, depend upon --trace-flags to dump the full set of
2021 items.
2022 * src/reader.c (readgram): Once the grammar read, insert the rule
2023 0: `$axiom: START-SYMBOL $'.
2024 * tests/set.at: Adjust: rule 0 is now displayed, and since the
2025 number of the states has changed (the final state is no longer
2026 necessarily the last), catch up.
2027
75142d45
AD
20282001-12-27 Akim Demaille <akim@epita.fr>
2029
2030 Try to make the use of the eoftoken valid. Given that its value
2031 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
2032 is used instead of > 0 where appropriate, (ii), depend upon nritems
2033 instead of the 0-sentinel.
2034
2035 * src/gram.h, src/gram.c (nritems): New.
2036 Expected to be duplication of nitems, but for the time being...
2037 * src/reader.c (packgram): Assert nritems and nitems are equal.
2038 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
2039 * src/closure.c (print_closure, print_fderives): Likewise.
2040 * src/gram.c (ritem_print): Likewise.
2041 * src/print.c (print_core, print_grammar): Likewise.
2042 * src/print_graph.c: Likewise.
2043
b7c49edf
AD
20442001-12-27 Akim Demaille <akim@epita.fr>
2045
2046 * src/main.c (main): If there are complains after grammar
2047 reductions, then output the report anyway if requested, then die.
2048 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
2049 * src/reader.c (eoftoken): New.
2050 (parse_token_decl): If the token being defined has value `0', it
2051 is the eoftoken.
2052 (packsymbols): No longer hack `tags' to insert `$' by hand.
2053 Be sure to preserve the value of the eoftoken.
2054 (reader): Make sure eoftoken is defined.
2055 Initialize nsyms to 0: now eoftoken is created just like the others.
2056 * src/print.c (print_grammar): Don't special case the eof token.
2057 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
2058 lie anyway, albeit pleasant.
2059 * tests/calc.at: Exercise error messages with eoftoken.
2060 Change the grammar so that empty input is invalid.
2061 Adjust expectations.
2062 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
2063
ec2da99f
AD
20642001-12-27 Akim Demaille <akim@epita.fr>
2065
2066 * configure.in: Check the protos of strchr ans strspn.
2067 Replace strchr if needed.
2068 * src/system.h: Provide the protos of strchr, strspn and memchr if
2069 missing.
2070 * lib/strchr.c: New.
2071 * src/reader.c (symbols_save): Use strchr.
2072
8adfa272
AD
20732001-12-27 Akim Demaille <akim@epita.fr>
2074
2075 * src/print.c, src/print_graph.c (escape): New.
2076 Use it to quote the TAGS outputs.
2077 * src/print_graph.c (print_state): Now errors are in red, and
2078 reductions in green.
2079 Prefer high to wide: output the state number on a line of its own.
2080
80dac38c
AD
20812001-12-27 Akim Demaille <akim@epita.fr>
2082
2083 * src/state.h, src/state.c (reductions_new): New.
2084 * src/LR0.c (set_state_table): Let all the states have a
2085 `reductions', even if reduced to 0.
2086 (save_reductions): Adjust.
2087 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
2088 * src/print.c (print_reductions, print_actions): Adjust.
2089 * src/output.c (action_row): Adjust.
2090
2cec70b9
AD
20912001-12-27 Akim Demaille <akim@epita.fr>
2092
2093 * src/state.h, src/state.c (errs_new, errs_dup): New.
2094 * src/LR0.c (set_state_table): Let all the states have an errs,
2095 even if reduced to 0.
2096 * src/print.c (print_errs, print_reductions): Adjust.
2097 * src/output.c (output_actions, action_row): Adjust.
2098 * src/conflicts.c (resolve_sr_conflict): Adjust.
2099
13ca549a
AD
21002001-12-27 Akim Demaille <akim@epita.fr>
2101
2102 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
2103
5092aba5
AD
21042001-12-27 Akim Demaille <akim@epita.fr>
2105
2106 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
2107 * src/print.c: here.
2108 (lookaheadset, shiftset): New, used as additional storage by
2109 print_reductions.
2110 (print_results): Adjust.
2111 (print_shifts, print_gotos, print_errs): New, extracted from...
2112 (print_actions): here.
2113 * src/print_graph.c (print_actions): Remove dead code.
2114
11e2beca
AD
21152001-12-27 Akim Demaille <akim@epita.fr>
2116
2117 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
2118 `$n' and `@n'.
2119
dac3c910
AD
21202001-12-27 Akim Demaille <akim@epita.fr>
2121
2122 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
2123 (build_relations): Adjust.
2124
d0b0fefa
AD
21252001-12-27 Akim Demaille <akim@epita.fr>
2126
2127 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
2128 duplication.
2129
adc8c848
AD
21302001-12-27 Akim Demaille <akim@epita.fr>
2131
2132 * src/reader.c (packgram): Catch nitems overflows.
2133
14d293ac
AD
21342001-12-27 Akim Demaille <akim@epita.fr>
2135
2136 * src/files.c, src/files.h (guard_obstack): Remove.
2137 * src/output.c (output): Adjust.
2138 * src/reader.c (parse_braces): New, factoring...
2139 (copy_action, copy_guard): these two which are renamed as...
2140 (parse_action, parse_guard): these.
2141 As a voluntary consequence, using braces around guards is now
2142 mandatory.
2143
f499b062
AD
21442001-12-27 Akim Demaille <akim@epita.fr>
2145
2146 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
2147 * src/reader.c (symbol_list): `guard' and `guard_line' are new
2148 members.
2149 (symbol_list_new): Adjust.
2150 (copy_action): action_line is the first line, not the last.
2151 (copy_guard): Just as for actions, store the `action' only, not
2152 the switch/case/break flesh.
2153 Don't parse the user action that might follow the guard, let...
2154 (readgram): do it, i.e., now, there can be an action after a
2155 guard.
2156 In other words the guard is just explicitly optional.
2157 (packgram): Adjust.
2158 * src/output.c (guards_output): New.
2159 (output_parser): Call it when needed.
2160 (output): Also free the guard and attrs obstacks.
2161 * src/files.c, src/files.h (obstack_save): Remove.
2162 (output_files): Remove.
2163 As a result, if one needs the former `.act' file, using an
2164 appropriate skeleton which requires actions and guards is now
2165 required.
2166 * src/main.c (main): Adjust.
2167 * tests/semantic.at: New.
2168 * tests/regression.at: Use `input.y' as input file name.
2169 Avoid 8+3 problems by requiring input.c when the test needs the
2170 parser.
2171
d945f5cd
AD
21722001-12-27 Akim Demaille <akim@epita.fr>
2173
2174 * src/reader.c (symbol_list_new): Be sure to initialize all the
2175 fields.
2176
d200e455
AD
21772001-12-27 Akim Demaille <akim@epita.fr>
2178
2179 All the hacks using a final pseudo state are now useless.
2180
2181 * src/LR0.c (set_state_table): state_table holds exactly nstates.
2182 * src/lalr.c (nLA): New.
2183 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
2184 instead of lookaheadsp from the pseudo state (nstate + 1).
2185
f9507c28
AD
21862001-12-27 Akim Demaille <akim@epita.fr>
2187
2188 * src/output.c (action_row, token_actions): Use a state_t instead
2189 of a integer, and nlookaheads instead of the following state's
2190 lookaheadsp.
2191
065fbd27
AD
21922001-12-27 Akim Demaille <akim@epita.fr>
2193
2194 * src/conflicts.c (log_resolution, flush_shift)
2195 (resolve_sr_conflict, set_conflicts, solve_conflicts)
2196 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
2197 (conflicts_print, print_reductions): Use a state_t instead of an
2198 integer when referring to a state.
2199 As much as possible, depend upon nlookaheads, instead of the
2200 `lookaheadsp' member of the following state (since lookaheads of
2201 successive states are successive, the difference between state n + 1
2202 and n served as the number of lookaheads for state n).
2203 * src/lalr.c (add_lookback_edge): Likewise.
2204 * src/print.c (print_core, print_actions, print_state)
2205 (print_results): Likewise.
2206 * src/print_graph.c (print_core, print_actions, print_state)
2207 (print_graph): Likewise.
2208 * src/conflicts.h: Adjust.
2209
1b177bd7
AD
22102001-12-27 Akim Demaille <akim@epita.fr>
2211
2212 * src/bison.hairy: Formatting/comment changes.
2213 ANSIfy.
2214 Remove `register' indications.
2215 Add plenty of `static'.
2216
7742ddeb
AD
22172001-12-27 Akim Demaille <akim@epita.fr>
2218
2219 * src/output.c (prepare): Drop the muscle `ntbase' which
2220 duplicates ntokens.
2221 * src/bison.simple: Formatting/comment changes.
2222 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
2223 is an undocumented synonym.
2224
1fa14068
AD
22252001-12-22 Akim Demaille <akim@epita.fr>
2226
2227 * src/output.c (output_table_data): Change the prototype to use
2228 `int' for array ranges: some invocations do pass an int, not a
2229 short.
2230 Reported by Wayne Green.
2231
b9752825
AD
22322001-12-22 Akim Demaille <akim@epita.fr>
2233
2234 Some actions of web2c.y are improperly triggered.
2235 Reported by Mike Castle.
2236
2237 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
2238 * tests/regression.at (Web2c): Rename as...
2239 (Web2c Report): this.
2240 (Web2c Actions): New.
2241
776209d6
AD
22422001-12-22 Akim Demaille <akim@epita.fr>
2243
2244 Reductions in web2c.y are improperly reported.
2245 Reported by Mike Castle.
2246
2247 * src/conflicts.c (print_reductions): Fix.
2248 * tests/regression.at (Web2c): New.
2249
275fc3ad
AD
22502001-12-18 Akim Demaille <akim@epita.fr>
2251
2252 Some host fail on `assert (!"foo")', which expands to
2253 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
2254 Reported by Nelson Beebee.
2255
2256 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
2257 `#define it_succeeded 0' and `assert (it_succeeded)'.
2258
897668ee
MA
22592001-12-17 Marc Autret <autret_m@epita.fr>
2260
2261 * src/bison.simple: Don't hard code the skeleton line and filename.
2262 * src/output.c (output_parser): Rename 'line' as 'output_line'.
2263 New line counter 'skeleton_line' (skeleton-line muscle).
2264
ab3399e0
PE
22652001-12-17 Paul Eggert <eggert@twinsun.com>
2266
2267 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
2268 YYDEBUG must be defined to a nonzero value.
2269
2270 * src/bison.simple (yytname): Do not assume that the user defines
2271 YYDEBUG to a properly parenthesized expression.
2272
3877f72b
AD
22732001-12-17 Akim Demaille <akim@epita.fr>
2274
2275 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
2276 nlookaheads is a new member.
2277 Adjust all users.
2278 * src/lalr.h (nlookaheads): Remove this orphan declaration.
2279 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
2280 state.
776209d6 2281
331dbc1b
AD
22822001-12-17 Akim Demaille <akim@epita.fr>
2283
2284 * src/files.h, src/files.c (open_files, close_files): Remove.
2285 * src/main.c (main): Don't open/close files, nor invoke lex_free,
2286 let...
2287 * src/reader.c (reader): Do it.
776209d6 2288
be750e4c
AD
22892001-12-17 Akim Demaille <akim@epita.fr>
2290
2291 * src/conflicts.c (print_reductions): Formatting changes.
776209d6 2292
709ae8c6
AD
22932001-12-17 Akim Demaille <akim@epita.fr>
2294
2295 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
2296 (flush_reduce): New.
2297 (resolve_sr_conflict): Adjust.
776209d6 2298
f87685c3
AD
22992001-12-17 Akim Demaille <akim@epita.fr>
2300
2301 * src/output.c (output_obstack): Be static and rename as...
2302 (format_obstack): this, to avoid any confusion with files.c's
2303 output_obstack.
2304 * src/reader.h (muscle_obstack): Move to...
2305 * src/output.h: here, since it's defined in output.c.
2306
837491d8
AD
23072001-12-17 Akim Demaille <akim@epita.fr>
2308
2309 * src/output.c (action_row, save_column, default_goto)
2310 (sort_actions, matching_state, pack_vector): Better variable
2311 locality.
2312
796d61fb
AD
23132001-12-17 Akim Demaille <akim@epita.fr>
2314
2315 * src/output.c: Various formatting changes.
776209d6 2316
64d15509
AD
23172001-12-17 Akim Demaille <akim@epita.fr>
2318
2319 * src/files.c (output_files): Free the output_obstack.
2320 * src/main.c (main): Call print and print_graph conditionally.
2321 * src/print.c (print): Work unconditionally.
2322 * src/print_graph.c (print_graph): Work unconditionally.
2323 * src/conflicts.c (log_resolution): Output only if verbose_flag.
2324
fbc8ecb7
MA
23252001-12-16 Marc Autret <autret_m@epita.fr>
2326
2327 * src/output.c (actions_output): Fix. When we use %no-lines,
2328 there is one less line per action.
2329
f0440388
MA
23302001-12-16 Marc Autret <autret_m@epita.fr>
2331
2332 * src/bison.simple: Remove a useless #line directive.
2333 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
2334 * src/output.c (get_lines_number): New.
776209d6 2335 (output_parser): Adjust, now takes care about the lines of a
f0440388
MA
2336 output muscles.
2337 Fix line numbering.
2338 (actions_output): Computes the number of lines taken by actions.
2339 (output_master_parser): Insert new skeleton which is the name of
2340 the output parser file name.
2341
a79986b8
MA
23422001-12-15 Marc Autret <autret_m@epita.fr>
2343
2344 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
2345
4ec8e00f
MA
23462001-12-15 Marc Autret <autret_m@epita.fr>
2347
2348 * src/output.c (output_gram): Keep track of the hairy one.
2349
1a4648ff
AD
23502001-12-15 Akim Demaille <akim@epita.fr>
2351
2352 Make `make distcheck' work.
2353
2354 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
2355 system.h which uses libgettext.h.
2356
9c2c67e6
AD
23572001-12-15 Akim Demaille <akim@epita.fr>
2358
2359 * src/nullable.c (set_nullable): Useless rules must be skipped,
2360 otherwise, since we range over their symbols, we might look at a
2361 nonterminal which no longer ``exists'', i.e., it is not counted in
2362 `nvars', hence we overflow our arrays.
2363
93ede233
AD
23642001-12-15 Akim Demaille <akim@epita.fr>
2365
2366 The header can also be produced directly, without any obstack!
2367 Yahoo!
2368
2369 * src/files.c, src/files.h (defines_obstack): Remove.
2370 (compute_header_macro): Global.
2371 (defines_obstack_save): Remove.
2372 * src/reader.c (parse_union_decl): No longer output to
2373 defines_obstack: its content can be found in the `stype' muscle
2374 anyway.
2375 (output_token_translations): Merge into...
2376 (symbols_output): this.
2377 Rename as...
2378 (symbols_save): this.
2379 (reader): Adjust.
2380 * src/output.c (header_output): New.
2381 (output): Call it.
2382
2666f928
AD
23832001-12-15 Akim Demaille <akim@epita.fr>
2384
2385 * src/reader.c (parse_union_decl): Instead of handling two obstack
2386 simultaneously, use one to define the `stype' muscle, and use the
2387 value of the latter to fill defines_obstack.
2388 (copy_comment): Remove.
2389 (copy_comment2): Work for a single obstack.
2390 Rename as...
2391 (copy_comment): this.
2392
428046f8
AD
23932001-12-15 Akim Demaille <akim@epita.fr>
2394
2395 * src/lex.c, src/lex.h (xgetc): No longer static.
2396 * src/reader.c (parse_union_decl): Revamp.
2397
ea52d706
AD
23982001-12-15 Akim Demaille <akim@epita.fr>
2399
2400 Still making progress in separating Bison into (i) input, (ii)
2401 process, (iii) output: now we can directly output the parser file
2402 without using table_obstack at all.
2403
2404 * src/files.c, src/files.h (table_obstack): Bye bye.
2405 (parser_file_name): New.
2406 * src/files.c (compute_output_file_names): Compute it.
2407 * src/output.c (actions_output, output_parser)
2408 (output_master_parser): To a file instead of an obstack.
2409
3f96f4dc
AD
24102001-12-15 Akim Demaille <akim@epita.fr>
2411
2412 Attach actions to rules, instead of pre-outputting them to
2413 actions_obstack.
2414
2415 * src/gram.h (rule_t): action and action_line are new members.
2416 * src/reader.c (symbol_list): Likewise.
2417 (copy_action): Save the actions within the rule.
2418 (packgram): Save them in rule_table.
2419 * src/output.c (actions_output): New.
2420 (output_parser): Use it on `%%actions'.
2421 (output_rule_data): Don't free rule_table.
2422 (output): Do it.
2423 (prepare): Don't save the `action' muscle.
2424 * src/bison.simple: s/%%action/%%actions/.
2425
51576fb3
AD
24262001-12-15 Akim Demaille <akim@epita.fr>
2427
2428 * src/reader.c (copy_action): When --yacc, don't append a `;'
2429 to the user action: let it fail if lacking.
dee049eb 2430 Suggested by Arnold Robbins and Tom Tromey.
51576fb3 2431
2648a72d
AD
24322001-12-14 Akim Demaille <akim@epita.fr>
2433
2434 * src/lex.c (literalchar): Simply return the char you decoded, non
2435 longer mess around with obstacks and int pointers.
2436 Adjust all callers.
2437
92790e5b
AD
24382001-12-14 Akim Demaille <akim@epita.fr>
2439
2440 * src/lex.c (literalchar): Don't escape the special characters,
2441 just decode them, and keep them as char (before, eol was output as
2442 the 2 char string `\n' etc.).
2443 * src/output.c (output_rule_data): Use quotearg to output the
2444 token strings.
2445
927c1557
PE
24462001-12-13 Paul Eggert <eggert@twinsun.com>
2447
2448 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
2449 Do not infringe on the global user namespace when using C++.
2450 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
2451 All uses of `fprintf' and `stderr' changed.
2452
2453 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
2454
ed8e1f68
AD
24552001-12-13 Akim Demaille <akim@epita.fr>
2456
2457 The computation of nullable is broken: it doesn't handle empty
2458 RHS's properly.
2459
2460 * tests/torture.at (GNU AWK Grammar): New.
2461 * tests/sets.at (Nullable): New.
2462 * src/nullable.c (set_nullable): Instead of blindly looping over
2463 `ritems', loop over the rules, and then over their rhs's.
2464
2465 Work around Autotest bugs.
2466
2467 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
2468 frame, because Autotest understand lines starting with a `+' as
2469 traces from the shell. Then, they are not processed properly.
2470 Admittedly an Autotest bug, but we don't have time to wait for
2471 Autotest to catch up.
2472 * tests/regression.at (Broken Closure): Adjust to the new table
2473 frames.
2474 Move to...
2475 * tests/sets.at: here.
2476
cb581495
AD
24772001-12-13 Akim Demaille <akim@epita.fr>
2478
2479 * src/closure.c (closure): Use nrules instead of playing tricks
2480 with BITS_PER_WORD.
2481
2e729273
AD
24822001-12-13 Akim Demaille <akim@epita.fr>
2483
2484 * src/print.c (print_actions): Output the handling of `$' as the
2485 traces do: shifting the token EOF. Before EOF was treated as a
2486 nonterminal.
2487 * tests/regression.at: Adjust some tests.
2488 * src/print_graph.c (print_core): Complete the set of items via
2489 closure. The next-to-final and final states are still unsatisfying,
2490 but that's to be addressed elsewhere.
2491 No longer output the rule numbers, but do output the state number.
2492 A single loop for the shifts + gotos is enough, but picked a
2493 distinct color for each.
2494 (print_graph): Initialize and finalize closure.
2495
107f7dfb
AD
24962001-12-13 Akim Demaille <akim@epita.fr>
2497
2498 * src/reader.c (readgram): Remove dead code, an strip useless
2499 braces.
2500 (get_type): Remove, unused.
2501
9b53a24f
AD
25022001-12-12 Akim Demaille <akim@epita.fr>
2503
2504 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
2505 on that of lib/error.c.
2506
dbfb6dcd
AD
25072001-12-12 Akim Demaille <akim@epita.fr>
2508
2509 Some hosts don't like `/' in includes.
2510
2511 * src/system.h: Include libgettext.h without qualifying the path.
2512 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
2513 $(top_srcdir).
2514
c25fb648
MA
25152001-12-11 Marc Autret <autret_m@epita.fr>
2516
2517 * src/output.c (output_parser): Remove useless muscle.
2518
710ddc4f
MA
25192001-12-11 Marc Autret <autret_m@epita.fr>
2520
2521 * src/bison.simple: Remove #line just before %%epilogue. It
2522 is now handled in ...
2523 * src/reader.c (read_additionnal_code): Add the output of a
2524 #line for the epilogue.
2525
e83d80b8
MA
25262001-12-10 Marc Autret <autret_m@epita.fr>
2527
927c1557 2528 * src/reader.c (copy_definition): Re-use CPP-outed code which
e83d80b8
MA
2529 replace precedent remove.
2530 * src/bison.simple: Remove #line before %%prologue because
2531 %%input-line is wrong at this time.
2532
971d5158
MA
25332001-12-10 Marc Autret <autret_m@epita.fr>
2534
2535 * src/reader.c (symbols_output): Clean up.
927c1557 2536 * src/output.c (output_gram, output): Clean up.
971d5158 2537
5edafffd
AD
25382001-12-10 Akim Demaille <akim@epita.fr>
2539
2540 * src/lalr.c (initialize_lookaheads): New. Extracted from...
2541 * src/LR0.c (set_state_table): here.
2542 * src/lalr.c (lalr): Call it.
2543
0279f8e9
AD
25442001-12-10 Akim Demaille <akim@epita.fr>
2545
2546 * src/state.h (shifts): Remove the `number' member: shifts are
2547 attached to state, hence no longer need to be labelled with a
2548 state number.
2549
190c4f5f
AD
25502001-12-10 Akim Demaille <akim@epita.fr>
2551
2552 Now that states have a complete set of members, the linked list of
2553 shifts is useless: just fill directly the state's shifts member.
2554
2555 * src/state.h (shifts): Remove the `next' member.
2556 * src/LR0.c (first_state, last_state): Remove.
2557 Adjust the callers.
2558 (augment_automaton): Don't look for the shifts that must be added
2559 a shift on EOF: it is those of the state we looked for! But now,
2560 since shifts are attached, it is no longer needed to looking
2561 merely by its id: its number.
2562
2a73b93d
AD
25632001-12-10 Akim Demaille <akim@epita.fr>
2564
2565 * src/LR0.c (augment_automaton): Better variable locality.
2566 Remove an impossible branch: if there is a state corresponding to
2567 the start symbol being shifted, then there is shift for the start
2568 symbol from the initial state.
2569
74392f6a
AD
25702001-12-10 Akim Demaille <akim@epita.fr>
2571
2572 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
2573 only when appropriate: when insert_start_shifting_state' is not
2574 invoked.
2575 * tests/regression.at (Rule Line Numbers): Adjust.
2576
37c82725
AD
25772001-12-10 Akim Demaille <akim@epita.fr>
2578
2579 * src/LR0.c (augment_automaton): Now that all states have shifts,
2580 merge the two cases addition shifts to the initial state.
2581
6a164e0c
AD
25822001-12-10 Akim Demaille <akim@epita.fr>
2583
2584 * src/lalr.c (set_state_table): Move to...
2585 * src/LR0.c: here.
2586 * src/lalr.c (lalr): Don't call it...
2587 * src/LR0.c (generate_states): do it.
2588 * src/LR0.h (first_state): Remove, only the table is used.
2589
7215de24
AD
25902001-12-10 Akim Demaille <akim@epita.fr>
2591
2592 * src/LR0.h (first_shift, first_reduction): Remove.
2593 * src/lalr.c: Don't use first_shift: find shifts through the
2594 states.
2595
80e25d4d
AD
25962001-12-10 Akim Demaille <akim@epita.fr>
2597
2598 * src/LR0.c: Attach shifts to states as soon as they are
2599 computed.
2600 * src/lalr.c (set_state_table): Instead of assigning shifts to
2601 state, just assert that the mapping was properly done.
2602
0ab3728b
AD
26032001-12-10 Akim Demaille <akim@epita.fr>
2604
2605 * src/LR0.c (insert_start_shift): Rename as...
2606 (insert_start_shifting_state): this.
2607 (insert_eof_shifting_state, insert_accepting_state): New.
2608 (augment_automaton): Adjust.
2609 Better locality of the variables.
2610 When looking if the start_symbol is shifted from the initial
2611 state, using `while (... symbol != start_symbol ...)' sounds
2612 better than `while (... symbol < start_symbol ...)': If fail
2613 to see how the order between symbols could be relevant!
2614
78af9bbc
AD
26152001-12-10 Akim Demaille <akim@epita.fr>
2616
2617 * src/getargs.h: Don't declare `spec_name_prefix' and
2618 `spec_file_prefix', declared by src/files.h.
2619 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
2620 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
2621 * src/output.c (prepare): Adjust.
2622 * src/reader.c (symbols_output): Likewise.
2623 * src/vmsgetargs.c: Vaguely adjust, but who cares?
2624
bdef2a41
AD
26252001-12-10 Akim Demaille <akim@epita.fr>
2626
2627 * src/muscle_tab.c (muscle_init): NULL is a better default than
2628 `"0"'.
2629
3735969c
AD
26302001-12-10 Akim Demaille <akim@epita.fr>
2631
2632 * src/reader.c (reader): Calling symbols_output once is enough.
2633
49701457
AD
26342001-12-10 Akim Demaille <akim@epita.fr>
2635
2636 Now that states have a complete set of members, the linked list of
2637 reductions is useless: just fill directly the state's reductions
2638 member.
2639
2640 * src/state.h (struct reductions): Remove member `number' and
2641 `next'.
2642 * src/LR0.c (first_reduction, last_reduction): Remove.
2643 (save_reductions): Don't link the new reductions, store them in
2644 this_state.
2645 * src/lalr.c (set_state_table): No need to attach reductions to
2646 states, it's already done.
2647 * src/output.c (output_actions): No longer free the shifts, then
2648 the reductions, then the states: free all the states and their
2649 members.
2650
0edad749
AD
26512001-12-10 Akim Demaille <akim@epita.fr>
2652
2653 * src/options.c (OPTN, DRTV, BOTH): New.
2654 (option_table): Use them.
2655
0edad749
AD
2656 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
2657 the job of system.h.
2658 * src/options.c: Don't include stdio.h and xalloc.h for the same
2659 reasons.
2660
5449dd0f
AD
26612001-12-10 Akim Demaille <akim@epita.fr>
2662
2663 * src/output.c (output, prepare): Make sure the values of the
2664 muscles `action' and `prologue' are 0-terminated.
2665
a870c567
AD
26662001-12-10 Akim Demaille <akim@epita.fr>
2667
2668 Clean up GCC warnings.
2669
2670 * src/reader.c (copy_action): `buf' is not used.
2671 (parse_skel_decl): Be static.
2672 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
2673 * src/options.h (create_long_option_table): Have a real prototype.
2674 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
2675 (hash_delete_at): Return const void *.
2676 Adjust casts to preserve the const.
2677
80df8768
AD
26782001-12-10 Akim Demaille <akim@epita.fr>
2679
2680 * configure.in: Require 2.52g.
2681 M4 is not needed, but AUTOM4TE is.
2682 * m4/m4.m4: Remove.
2683 * tests/Makefile.am: Adjust.
2684
f693ad14
AD
26852001-12-10 Akim Demaille <akim@epita.fr>
2686
2687 One structure for states is enough, even though theoretically
2688 there are LR(0) states and LALR(1) states.
2689
2690 * src/lalr.h (state_t): Remove.
2691 (state_table): Be state_t **, not state_t *.
2692 * src/state.h (core, CORE_ALLOC): Rename as...
2693 (state_t, STATE_ALLOC): this.
2694 Add the LALR(1) members: shifts, reductions, errs.
2695 * src/LR0.c (state_table): Rename as...
2696 (state_hash): this, to avoid name clashes with the global
2697 `state_table'.
2698 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
2699 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
2700
74ffbcb6
AD
27012001-12-10 Akim Demaille <akim@epita.fr>
2702
2703 Bison dumps core on bash.y.
2704 Reported by Pascal Bart.
2705
2706 * src/warshall.c (bitmatrix_print): New.
2707 (TC): Use it.
2708 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
2709 j must be the outer loop.
2710 * tests/regression.at (Broken Closure): New.
2711
07708e19
AD
27122001-12-05 Akim Demaille <akim@epita.fr>
2713
2714 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
2715 its argument.
2716