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