]> git.saurik.com Git - bison.git/blame - ChangeLog
* data/yacc.c (yydestruct, yysymprint): Pacify GCC warnings for
[bison.git] / ChangeLog
CommitLineData
41442480
AD
12002-06-28 Akim Demaille <akim@epita.fr>
2
3 * data/yacc.c (yydestruct, yysymprint): Pacify GCC warnings for
4 unused variables.
5 * src/output.c (merger_output): static.
6
e0e5bf84
AD
72002-06-28 Akim Demaille <akim@epita.fr>
8
9 * src/reader.h: s/grammer_current_rule_merge_set/grammar_.../.
10 * src/conflicts.c (conflicts_total_count): `i' is unsigned, to
11 pacify GCC.
12 * src/output.c (save_row): Initialize all the variables to pacify GCC.
e0e5bf84 13
676385e2
PH
142002-06-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
15
16 Accumulated changelog for new GLR parsing features.
17
e0e5bf84 18 * src/conflicts.c (count_total_conflicts): Change name to
676385e2
PH
19 conflicts_total_count.
20 * src/conflicts.h: Ditto.
21 * src/output.c (token_actions): Use the new name.
22 (output_conflicts): Change conflp => conflict_list_heads, and
23 confl => conflict_list for better readability.
24 * data/glr.c: Use the new names.
25 * NEWS: Add self to GLR announcement.
e0e5bf84 26
676385e2
PH
27 * src/reader.c (free_merger_functions): Cleanup: XFREE->free.
28
29 * doc/bison.texinfo (GLR Parsers): Make corrections suggested by
30 Akim Demaille.
31
32 * data/bison.glr: Change name to glr.c
33 * data/glr.c: Renamed from bison.glr.
34 * data/Makefile.am: Add glr.c
e0e5bf84
AD
35
36 * src/getargs.c:
37
676385e2
PH
38 * src/symlist.h: Add dprec and merger fields to symbol_list_s.
39 * src/symlist.c (symbol_list_new): Initialize dprec and merger fields.
e0e5bf84 40
676385e2
PH
41 Originally 2002-06-16 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
42
43 * data/bison.glr: Be sure to restore the
44 current #line when returning to the skeleton contents after having
45 exposed the input file's #line.
46
47 Originally 2002-06-13 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
48
49 * data/bison.glr: Bring up to date with changes to bison.simple.
50
51 Originally 2002-06-03 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
52
53 * data/bison.glr: Correct definitions that use b4_prefix.
54 Various reformatting.
55 (GLRStack): Make yychar (in YYPURE case) and yytokenp as part of stack.
56 (yyreportParseError, yyrecoverParseError, yyprocessOneStack): remove
57 yytokenp argument; now part of stack.
58 (yychar): Define to behave as documented.
59 (yyclearin): Ditto.
e0e5bf84 60
676385e2
PH
61 Originally 2002-05-14 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
62
63 * src/reader.h: Add declaration for free_merger_functions.
64
65 * src/reader.c (merge_functions): New variable.
66 (get_merge_function): New function.
67 (free_merger_functions): New function.
68 (readgram): Check for %prec that is not followed by a symbol.
69 Handle %dprec and %merge declarations.
70 (packgram): Initialize dprec and merger fields in rules array.
71
72 * src/output.c (conflict_tos, conflrow, conflict_table, conflict_list,
73 conflict_list_cnt, conflict_list_free): New variables.
74 (table_grow): Also grow conflict_table.
e0e5bf84 75 (prepare_rules): Output dprec and merger tables.
676385e2 76 (conflict_row): New function.
e0e5bf84 77 (action_row): Output conflict lists for GLR parser. Don't use
676385e2
PH
78 default reduction in conflicted states for GLR parser so that there
79 are spaces for the conflict lists.
80 (save_row): Also save conflict information.
81 (token_actions): Allocate conflict list.
82 (merger_output): New function.
83 (pack_vector): Pack conflict table, too.
84 (output_conflicts): New function to output yyconflp and yyconfl.
85 (output_check): Allocate conflict_tos.
86 (output_actions): Output conflict tables, also.
87 (output_skeleton): Output b4_mergers definition.
88 (prepare): Output b4_max_rhs_length definition.
89 Use 'bison.glr' as default skeleton for GLR parsers.
90
91 * src/gram.c (glr_parser): New flag.
92 (grammar_free): Call free_merger_functions.
93
94 * src/conflicts.c (count_rr_conflicts): Augment to optionally count
95 all pairs of conflicting reductions, rather than just all tokens
96 causing conflicts. Needed to size conflict tables.
e0e5bf84 97 (conflicts_output): Modify call to count_rr_conflicts for new
676385e2
PH
98 interface.
99 (conflicts_print): Ditto.
100 (count_total_conflicts): New function.
101
102 * src/reader.h (merger_list): New type.
103 (merge_functions): New variable.
104
105 * src/lex.h (tok_dprec, tok_merge): New token types.
106
107 * src/gram.h (rule_s): Add dprec and merger fields.
108 (glr_parser): New flag.
109
110 * src/conflicts.h (count_total_conflicts): New function.
111
112 * src/options.c (option_table): Add %dprec, %merge, and %glr-parser.
113
114 * doc/bison.texinfo (Generalized LR Parsing): New section.
115 (GLR Parsers): New section.
116 (Language and Grammar): Mention GLR parsing.
117 (Table of Symbols): Add %dprec, %glr-parser, %merge, GLR
118 Correct typo ("tge" -> "the").
119
120 * data/bison.glr: New skeleton for GLR parsing.
121
122 * tests/cxx-gram.at: New tests for GLR parsing.
123
124 * tests/testsuite.at: Include cxx-gram.at.
125
126 * tests/Makefile.am: Add cxx-gram.at.
e0e5bf84 127
676385e2
PH
128 * src/parse-gram.y:
129
130 * src/scan-gram.l: Add %dprec, %glr-parser, %merge.
131
132 * src/parse-gram.y: Grammar for %dprec, %merge, %glr-parser.
e0e5bf84 133
b5480d74 1342002-06-27 Akim Demaille <akim@epita.fr>
e2aaf4c4
AD
135
136 * src/options.h, src/options.c: Remove.
137 * src/getargs.c (short_options, long_options): New.
138
60491a94
AD
1392002-06-27 Akim Demaille <akim@epita.fr>
140
141 * data/bison.simple, data/bison.c++: Rename as...
142 * data/yacc.c, data/lalr1.cc: these.
143 * doc/bison.texinfo (Environment Variables): Remove.
144
9be0c25b
AD
1452002-06-25 Raja R Harinath <harinath@cs.umn.edu>
146
147 * src/getargs.c (report_argmatch): Initialize strtok().
148
1ae72863
AD
1492002-06-20 Akim Demaille <akim@epita.fr>
150
151 * data/bison.simple (b4_symbol_actions): New, replaces...
152 (b4_symbol_destructor, b4_symbol_printer): these.
153 (yysymprint): Be sure to call YYPRINT only for tokens, and using
154 user token numbers.
155
87542d29
AD
1562002-06-20 Akim Demaille <akim@epita.fr>
157
158 * data/bison.simple (yydestructor): Rename as...
159 (yydestruct): this.
160
1a31ed21
AD
1612002-06-20 Akim Demaille <akim@epita.fr>
162
163 * src/symtab.h, src/symtab.c (symbol_type_set)
164 (symbol_destructor_set, symbol_precedence_set): The location is
165 the last argument.
166 Adjust all callers.
167
e776192e
AD
1682002-06-20 Akim Demaille <akim@epita.fr>
169
170 * src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser
171 internals.
172 * src/reader.h, src/reader.c (grammar_current_rule_prec_set):
173 Takes a location.
174 * src/symtab.h, src/symtab.c (symbol_class_set)
175 (symbol_user_token_number_set): Likewise.
176 Adjust all callers.
177 Promote complain_at.
178 * tests/input.at (Type Clashes): Adjust.
179
5c1180b3
AD
1802002-06-20 Akim Demaille <akim@epita.fr>
181
182 * data/bison.simple (YYLEX): Fix the declaration when
183 %pure-parser.
184
e3170060
AD
1852002-06-20 Akim Demaille <akim@epita.fr>
186
187 * data/bison.simple (yysymprint): Don't print the token number,
188 just its name.
189 * tests/actions.at (Destructors): Rename as...
190 (Printers and Destructors): this.
191 Also exercise %printer.
192
253862fd
AD
1932002-06-20 Akim Demaille <akim@epita.fr>
194
195 * data/bison.simple (YYDSYMPRINT): New.
196 Use it to remove many of the #if YYDEBUG/if (yydebug).
197
366eea36
AD
1982002-06-20 Akim Demaille <akim@epita.fr>
199
200 * src/symtab.h, src/symtab.c (symbol_t): printer and
201 printer_location are new members.
202 (symbol_printer_set): New.
203 * src/parse-gram.y (PERCENT_PRINTER): New token.
204 Handle its associated rule.
205 * src/scan-gram.l: Adjust.
206 (handle_destructor_at, handle_destructor_dollar): Rename as...
207 (handle_symbol_code_at, handle_symbol_code_dollar): these.
208 * src/output.c (symbol_printers_output): New.
209 (output_skeleton): Call it.
210 * data/bison.simple (yysymprint): New. Cannot be named yyprint
211 since there are already many grammar files with a user `yyprint'.
212 Replace the calls to YYPRINT to calls to yysymprint.
213 * tests/calc.at: Adjust.
214 * tests/torture.at (AT_DATA_STACK_TORTURE): Remove YYPRINT: it was
215 taking advantage of parser very internal details (stack size!).
216
4f25ebb0
AD
2172002-06-20 Akim Demaille <akim@epita.fr>
218
219 * src/scan-gram.l: Complete the scanner with the missing patterns
220 to pacify Flex.
221 Use `quote' and `symbol_tag_get' where appropriate.
222
93b68a0e
AD
2232002-06-19 Akim Demaille <akim@epita.fr>
224
225 * tests/actions.at (Destructors): Augment to test locations.
226 * data/bison.simple (yydestructor): Pass it the current location
227 if locations are enabled.
228 Prototype only when __STDC__ or C++.
229 Change the argument names to move into the yy name space: there is
230 user code here.
231
58612f1d
AD
2322002-06-19 Akim Demaille <akim@epita.fr>
233
74310291
AD
234 * data/bison.simple (b4_pure_if): New.
235 Use it instead of #ifdef YYPURE.
236
2372002-06-19 Akim Demaille <akim@epita.fr>
238
239 * data/bison.simple (b4_location_if): New.
58612f1d
AD
240 Use it instead of #ifdef YYLSP_NEEDED.
241
f25bfb75
AD
2422002-06-19 Akim Demaille <akim@epita.fr>
243
244 Prepare @$ in %destructor, but currently don't bind it in the
245 skeleton, as %location use is not cleaned up yet.
246
247 * src/scan-gram.l (handle_dollar, handle_destructor_at)
248 (handle_action_at): New.
249 (handle_at, handle_action_dollar, handle_destructor_dollar): Take
250 a braced_code_t and a location as additional arguments.
251 (handle_destructor_dollar): Instead of requiring `b4_eval', just
252 unquote one when outputting `b4_dollar_dollar'.
253 Adjust callers.
254 * data/bison.simple (b4_eval): Remove.
255 (b4_symbol_destructor): Adjust.
256 * tests/input.at (Invalid @n): Adjust.
257
c732d2c6
AD
2582002-06-19 Zack Weinberg <zack@codesourcery.com>
259
260 * doc/bison.texinfo: Document ability to have multiple
261 prologue sections.
262
8c165d89
AD
2632002-06-18 Akim Demaille <akim@epita.fr>
264
265 * src/files.c (compute_base_names): When computing the output file
266 names from the input file name, strip the directory part.
267
ca98bf57
AD
2682002-06-18 Akim Demaille <akim@epita.fr>
269
270 * data/bison.simple.new: Comment changes.
271 Reported by Andreas Schwab.
272
0bfb02ff
AD
2732002-06-18 Matt Kraai <kraai@alumni.cmu.edu>
274
275 * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
276 there are no `label `yyoverflowlab' defined but not used' warnings
277 when yyoverflow is defined.
278
24c0aad7
AD
2792002-06-18 Akim Demaille <akim@epita.fr>
280
281 * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a
282 new member.
283 (symbol_destructor_set): Adjust.
284 * src/output.c (symbol_destructors_output): Output the destructor
285 locations.
286 Output the symbol name.
287 * data/bison.simple (b4_symbol_destructor): Adjust.
288
5719c109
AD
2892002-06-18 Cris Bailiff <c.bailiff@awayweb.com>
290 and Akim Demaille <akim@epita.fr>
291
292 * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy
293 what's left on the stack when the error recovery hits EOF.
294 * tests/actions.at (Destructors): Complete to exercise this case.
295
9280d3ef
AD
2962002-06-17 Akim Demaille <akim@epita.fr>
297
298 * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of
299 arguments is really empty, not only equal to `[]'.
300 * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new
301 member.
302 (symbol_destructor_set): New.
303 * src/output.c (symbol_destructors_output): New.
304 * src/reader.h (brace_code_t, current_braced_code): New.
305 * src/scan-gram.l (BRACED_CODE): Use it to branch on...
306 (handle_dollar): Rename as...
307 (handle_action_dollar): this.
308 (handle_destructor_dollar): New.
309 * src/parse-gram.y (PERCENT_DESTRUCTOR): New.
310 (grammar_declaration): Use it.
311 * data/bison.simple (yystos): Is always defined.
312 (yydestructor): New.
313 * tests/actions.at (Destructors): New.
314 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep.
315
dafdc66f
AD
3162002-06-17 Akim Demaille <akim@epita.fr>
317
318 * src/symlist.h, src/symlist.c (symbol_list_length): New.
319 * src/scan-gram.l (handle_dollar, handle_at): Compute the
320 rule_length only when needed.
321 * src/output.c (actions_output, token_definitions_output): Output
322 the full M4 block.
323 * src/symtab.c: Don't access directly to the symbol tag, use
324 symbol_tag_get.
325 * src/parse-gram.y: Use symbol_list_free.
326
56c47203
AD
3272002-06-17 Akim Demaille <akim@epita.fr>
328
329 * src/reader.h, src/reader.c (symbol_list, symbol_list_new)
330 (symbol_list_prepend, get_type_name): Move to...
331 * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new)
332 (symbol_list_prepend, symbol_list_n_type_name_get): here.
333 Adjust all callers.
334 (symbol_list_free): New.
335 * src/scan-gram.l (handle_dollar): Takes a location.
336 * tests/input.at (Invalid $n): Adjust.
337
1e0bab92
AD
3382002-06-17 Akim Demaille <akim@epita.fr>
339
340 * src/reader.h, src/reader.c (symbol_list_new): Export it.
341 (symbol_list_prepend): New.
342 * src/parse-gram.y (%union): `list' is a new member.
343 (symbols.1): New, replaces...
344 (terms_to_prec.1, nterms_to_type.1): these.
345 * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set)
346 Take a location as additional argument.
347 Adjust all callers.
348
04e60654
AD
3492002-06-15 Akim Demaille <akim@epita.fr>
350
351 * src/parse-gram.y: Move %token in the declaration section so that
352 we don't depend upon CVS Bison.
353
10e5b8bd
AD
3542002-06-15 Akim Demaille <akim@epita.fr>
355
356 * src/state.h, src/state.c (state_rule_lookaheads_print): New.
357 * src/print.c (print_core): Use it.
358
9801d40c
AD
3592002-06-15 Akim Demaille <akim@epita.fr>
360
361 * src/conflicts.c (log_resolution): Accept the rule involved in
362 the sr conflicts instead of the lookahead number that points to
363 that rule.
364 (flush_reduce): Accept the current lookahead vector as argument,
365 instead of the index in LA.
366 (resolve_sr_conflict): Accept the current number of lookahead
367 bitset to consider for the STATE, instead of the index in LA.
368 (set_conflicts): Adjust.
369 * src/lalr.c, src/lalr.h, src/state.h: Comment changes.
370
c0263492
AD
3712002-06-15 Akim Demaille <akim@epita.fr>
372
373 * src/state.h (state_t): Replace the `lookaheadsp' member, a
374 short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**).
375 Adjust all dependencies.
376 * src/lalr.c (initialize_lookaheads): Split into...
377 (states_lookaheads_count, states_lookaheads_initialize): these.
378 (lalr): Adjust.
379
9757c359
AD
3802002-06-15 Akim Demaille <akim@epita.fr>
381
382 * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved
383 out of...
384 (grammar_rules_print): here.
385 * src/reduce.c (reduce_output): Use it.
386 * tests/reduce.at (Useless Rules, Reduced Automaton)
387 (Underivable Rules): Adjust.
388
6b98e4b5
AD
3892002-06-15 Akim Demaille <akim@epita.fr>
390
391 Copy BYacc's nice way to report the grammar.
392
393 * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print):
394 New.
395 Don't print the rules' location, it is confusing and useless.
396 (rule_print): Use grammar_rhs_print.
397 * src/print.c (print_grammar): Use grammar_rules_print.
398
6b98e4b5
AD
3992002-06-15 Akim Demaille <akim@epita.fr>
400
401 Complete and rationalize `useless thing' warnings.
402
403 * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n)
404 (symbol_tag_print): New.
405 Use them everywhere in place of accessing directly the tag member.
406 * src/gram.h, src/gram.c (rule_print): New.
407 Use it where a rule used to be printed `by hand'.
408 * src/reduce.c (nonterminals_reduce): Report the use nonterminals.
409 (reduce_grammar_tables): Report the useless rules.
410 (reduce_print): Useless things are a warning, not an error.
411 Report it as such.
412 * tests/reduce.at (Useless Nonterminals, Useless Rules):
413 (Reduced Automaton, Underivable Rules): Adjust.
414 * tests/regression.at (Web2c Report, Web2c Report): Adjust.
415 * tests/conflicts.at (Unresolved SR Conflicts)
416 (Solved SR Conflicts): Adjust.
417
ee000ba4
AD
4182002-06-15 Akim Demaille <akim@epita.fr>
419
420 Let symbols have a location.
421
422 * src/symtab.h, src/symtab.c (symbol_t): Location is a new member.
423 (getsym): Adjust.
424 Adjust all callers.
425 * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at):
426 Use location_t, not int.
427 * src/symtab.c (symbol_check_defined): Take advantage of the
428 location.
429 * tests/regression.at (Invalid inputs): Adjust.
430
8efe435c
AD
4312002-06-15 Akim Demaille <akim@epita.fr>
432
433 * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
434 (input): Don't try to initialize yylloc here, do it in the
435 scanner.
436 * src/scan-gram.l (YY_USER_INIT): Initialize yylloc.
437 * src/gram.h (rule_t): Change line and action_line into location
438 and action_location, of location_t type.
439 Adjust all dependencies.
440 * src/location.h, src/location.c (empty_location): New.
441 * src/reader.h, src/reader.c (grammar_start_symbol_set)
442 (grammar_symbol_append, grammar_rule_begin, grammar_rule_end)
443 (grammar_current_rule_symbol_append)
444 (grammar_current_rule_action_append): Expect a location as argument.
445 * src/reader.c (grammar_midrule_action): Adjust to attach an
446 action's location as dummy symbol location.
447 * src/symtab.h, src/symtab.c (startsymbol_location): New.
448 * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust
449 the line numbers.
450
1921f1d7
AD
4512002-06-14 Akim Demaille <akim@epita.fr>
452
453 Grammar declarations may be found in the grammar section.
454
455 * src/parse-gram.y (rules_or_grammar_declaration): New.
456 (declarations): Each declaration may end with a semicolon, not
457 just...
458 (grammar_declaration): `"%union"'.
459 (grammar): Branch to rules_or_grammar_declaration.
460
4515534c
AD
4612002-06-14 Akim Demaille <akim@epita.fr>
462
463 * src/main.c (main): Invoke scanner_free.
464
f958596b
AD
4652002-06-14 Akim Demaille <akim@epita.fr>
466
467 * src/output.c (m4_invoke): Extracted from...
468 (output_skeleton): here.
469 Free tempfile.
470
2c569025
AD
4712002-06-14 Akim Demaille <akim@epita.fr>
472
473 * src/parse-gram.y (directives, directive, gram)
474 (grammar_directives, precedence_directives, precedence_directive):
475 Rename as...
476 (declarations, declaration, grammar, grammar_declaration)
477 (precedence_declaration, precedence_declarator): these.
478 (symbol_declaration): New.
479
592e8d4d
AD
4802002-06-14 Akim Demaille <akim@epita.fr>
481
482 * src/files.c (action_obstack): Remove, unused.
483 (output_obstack): Remove it, and all its dependencies, as it is no
484 longer needed.
485 * src/reader.c (epilogue_set): Build the epilogue in the
486 muscle_obstack.
487 * src/output.h, src/output.c (muscle_obstack): Move to...
488 * src/muscle_tab.h, src/muscle_tab.h: here.
489 (muscle_init): Initialize muscle_obstack.
490 (muscle_free): New.
491 * src/main.c (main): Call it.
492
0c15323d
AD
4932002-06-14 Akim Demaille <akim@epita.fr>
494
495 * src/location.h: New, extracted from...
496 * src/reader.h: here.
497 * src/Makefile.am (noinst_HEADERS): Merge into
498 (bison_SOURCES): this.
499 Add location.h.
500 * src/parse-gram.y: Use location_t instead of Bison's.
501 * src/reader.h, src/reader.c (prologue_augment, epilogue_set):
502 Use location_t instead of ints.
503
e96c9728
AD
5042002-06-14 Akim Demaille <akim@epita.fr>
505
506 * data/bison.simple, data/bison.c++: Be sure to restore the
507 current #line when returning to the skeleton contents after having
508 exposed the input file's #line.
509
75d1fe16
AD
5102002-06-12 Akim Demaille <akim@epita.fr>
511
512 * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
513 eager.
514 * tests/actions.at (Exotic Dollars): New.
515
6c35d22c
AD
5162002-06-12 Akim Demaille <akim@epita.fr>
517
518 * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
519 ['"/] too eagerly.
520 * tests/input.at (Torturing the Scanner): New.
521
1d6412ad
AD
5222002-06-11 Akim Demaille <akim@epita.fr>
523
524 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
525 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
526 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
527 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
528 * src/reader.c (reader): Use it.
529
4cdb01db
AD
5302002-06-11 Akim Demaille <akim@epita.fr>
531
532 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
533 Adjust all callers.
534 (scanner_last_string_free): New.
535
44995b2e
AD
5362002-06-11 Akim Demaille <akim@epita.fr>
537
538 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
539 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
540 (last_string, YY_OBS_FREE): New.
541 Use them when returning an ID.
542
e9955c83
AD
5432002-06-11 Akim Demaille <akim@epita.fr>
544
545 Have Bison grammars parsed by a Bison grammar.
546
547 * src/reader.c, src/reader.h (prologue_augment): New.
548 * src/reader.c (copy_definition): Remove.
549
550 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
551 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
552 (grammar_current_rule_prec_set, grammar_current_rule_check)
553 (grammar_current_rule_symbol_append)
554 (grammar_current_rule_action_append): Export.
555 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
556 (symbol_list_action_append): Remove.
557 Hook the routines from reader.
558 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
559 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
560
561 * src/reader.c (read_declarations): Remove, unused.
562
563 * src/parse-gram.y: Handle the epilogue.
564 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
565 (grammar_start_symbol_set): this.
566 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
567 * src/reader.c (readgram): Remove, unused.
568 (reader): Adjust to insert eoftoken and axiom where appropriate.
569
570 * src/reader.c (copy_dollar): Replace with...
571 * src/scan-gram.h (handle_dollar): this.
572 * src/parse-gram.y: Remove `%thong'.
573
574 * src/reader.c (copy_at): Replace with...
575 * src/scan-gram.h (handle_at): this.
576
577 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
578 New.
579
580 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
581 time being.
582
583 * src/reader.h, src/reader.c (grammar_rule_end): New.
584
585 * src/parse.y (current_type, current_class): New.
586 Implement `%nterm', `%token' support.
587 Merge `%term' into `%token'.
588 (string_as_id): New.
589 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
590 type name.
591
592 * src/parse-gram.y: Be sure to handle properly the beginning of
593 rules.
594
595 * src/parse-gram.y: Handle %type.
596 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
597
598 * src/parse-gram.y: More directives support.
599 * src/options.c: No longer handle source directives.
600
601 * src/parse-gram.y: Fix %output.
602
603 * src/parse-gram.y: Handle %union.
604 Use the prologue locations.
605 * src/reader.c (parse_union_decl): Remove.
606
607 * src/reader.h, src/reader.c (epilogue_set): New.
608 * src/parse-gram.y: Use it.
609
610 * data/bison.simple, data/bison.c++: b4_stype is now either not
611 defined, then default to int, or to the contents of %union,
612 without `union' itself.
613 Adjust.
614 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
615
616 * src/output.c (actions_output): Don't output braces, as they are
617 already handled by the scanner.
618
619 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
620 characters to themselves.
621
622 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
623 that the epilogue has a proper #line.
624
625 * src/parse-gram.y: Handle precedence/associativity.
626
627 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
628 a terminal.
629 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
630 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
631 at all to define terminals that cannot be emitted.
632
633 * src/scan-gram.l: Escape M4 characters.
634
635 * src/scan-gram.l: Working properly with escapes in user
636 strings/characters.
637
638 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
639 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
640 grammar.
641 Use more modest sizes, as for the time being the parser does not
642 release memory, and therefore the process swallows a huge amount
643 of memory.
644
645 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
646 stricter %token grammar.
647
648 * src/symtab.h (associativity): Add `undef_assoc'.
649 (symbol_precedence_set): Do nothing when passed an undef_assoc.
650 * src/symtab.c (symbol_check_alias_consistence): Adjust.
651
652 * tests/regression.at (Invalid %directive): Remove, as it is now
653 meaningless.
654 (Invalid inputs): Adjust to the new error messages.
655 (Token definitions): The new grammar doesn't allow too many
656 eccentricities.
657
658 * src/lex.h, src/lex.c: Remove.
659 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
660 (copy_character, copy_string2, copy_string, copy_identifier)
661 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
662 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
663 (parse_action): Remove.
664 * po/POTFILES.in: Adjust.
665
2e047461
AD
6662002-06-11 Akim Demaille <akim@epita.fr>
667
668 * src/reader.c (parse_action): Don't store directly into the
669 rule's action member: return the action as a string.
670 Don't require `rule_length' as an argument: compute it.
671 (grammar_current_rule_symbol_append)
672 (grammar_current_rule_action_append): New, eved out from
673 (readgram): here.
674 Remove `action_flag', `rulelength', unused now.
675
9af3fbce
AD
6762002-06-11 Akim Demaille <akim@epita.fr>
677
678 * src/reader.c (grammar_current_rule_prec_set).
679 (grammar_current_rule_check): New, eved out from...
680 (readgram): here.
681 Remove `xaction', `first_rhs': useless.
682 * tests/input.at (Type clashes): New.
683 * tests/existing.at (GNU Cim Grammar): Adjust.
684
1485e106
AD
6852002-06-11 Akim Demaille <akim@epita.fr>
686
687 * src/reader.c (grammar_midrule_action): New, Eved out from
688 (readgram): here.
689
da4160c3
AD
6902002-06-11 Akim Demaille <akim@epita.fr>
691
692 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
693 New.
694 (readgram): Use them as replacement of inlined code, crule and
695 crule1.
696
f6d0f937
AD
6972002-06-11 Akim Demaille <akim@epita.fr>
698
699 * src/reader.c (grammar_end, grammar_symbol_append): New.
700 (readgram): Use them.
701 Make the use of `p' as local as possible.
702
69078d4b
AD
7032002-06-10 Akim Demaille <akim@epita.fr>
704
705 GCJ's parser requires the tokens to be defined before the prologue.
706
707 * data/bison.simple: Output the token definition before the user's
708 prologue.
709 * tests/regression.at (Braces parsing, Duplicate string)
710 (Mixing %token styles): Check the output from bison.
711 (Early token definitions): New.
712
5e424082
AD
7132002-06-10 Akim Demaille <akim@epita.fr>
714
715 * src/symtab.c (symbol_user_token_number_set): Don't complain when
716 assigning twice the same user number to a token, so that we can
717 use it in...
718 * src/lex.c (lex): here.
719 Also use `symbol_class_set' instead of hand written code.
720 * src/reader.c (parse_assoc_decl): Likewise.
721
44536b35
AD
7222002-06-10 Akim Demaille <akim@epita.fr>
723
724 * src/symtab.c, src/symtab.c (symbol_class_set)
725 (symbol_user_token_number_set): New.
726 * src/reader.c (parse_token_decl): Use them.
727 Use a switch instead of ifs.
728 Use a single argument.
729
8b9f2372
AD
7302002-06-10 Akim Demaille <akim@epita.fr>
731
732 Remove `%thong' support as it is undocumented, unused, duplicates
733 `%token's job, and creates useless e-mail traffic with people who
734 want to know what it is, why it is undocumented, unused, and
735 duplicates `%token's job.
736
737 * src/reader.c (parse_thong_decl): Remove.
738 * src/options.c (option_table): Remove "thong".
739 * src/lex.h (tok_thong): Remove.
740
3ae2b51f
AD
7412002-06-10 Akim Demaille <akim@epita.fr>
742
743 * src/symtab.c, src/symtab.c (symbol_type_set)
744 (symbol_precedence_set): New.
745 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
746 (value_components_used): Remove, unused.
747
2f1afb73
AD
7482002-06-09 Akim Demaille <akim@epita.fr>
749
750 Move symbols handling code out of the reader.
751
752 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
753 (axiom): Move to...
754 * src/symtab.h, src/symtab.c: here.
755
756 * src/gram.c (start_symbol): Remove: use startsymbol->number.
757 * src/reader.c (startval): Rename as...
758 * src/symtab.h, src/symtab.c (startsymbol): this.
759 * src/reader.c: Adjust.
760
761 * src/reader.c (symbol_check_defined, symbol_make_alias)
762 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
763 (token_translations_init)
764 Move to...
765 * src/symtab.c: here.
766 * src/reader.c (packsymbols): Move to...
767 * src/symtab.h, src/symtab.c (symbols_pack): here.
768 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
769 argument.
770
e9bca3ad
AD
7712002-06-03 Akim Demaille <akim@epita.fr>
772
773 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
774 then statements.
775
86eff183
AD
7762002-06-03 Akim Demaille <akim@epita.fr>
777
778 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
779 structs with non literals.
780 * src/scan-skel.l: never-interactive.
781 * src/conflicts.c (enum conflict_resolution_e): No trailing
782 comma.
783 * src/getargs.c (usage): Split long literal strings.
784 Reported by Hans Aberg.
785
717be197
AD
7862002-05-28 Akim Demaille <akim@epita.fr>
787
788 * data/bison.c++: Use C++ ostreams.
789 (cdebug_): New member.
790
670ddffd
AD
7912002-05-28 Akim Demaille <akim@epita.fr>
792
793 * src/output.c (output_skeleton): Be sure to allocate enough room
794 for `/' _and_ for `\0' in full_skeleton.
795
769b430f
AD
7962002-05-28 Akim Demaille <akim@epita.fr>
797
798 * data/bison.c++: Catch up with bison.simple:
799 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
800 and Paul Eggert <eggert@twinsun.com>: `error' handing.
801 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
802 and popping traces.
803
7067cb36
PH
8042002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
805
806 * src/output.c (output_skeleton): Put an explicit path in front of
807 the skeleton file name, rather than relying on the -I directory,
808 to partially alleviate effects of having a skeleton file lying around
809 in the current directory.
769b430f 810
4a713ec2
PH
8112002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
812
769b430f 813 * src/conflicts.c (log_resolution): Correct typo:
4a713ec2
PH
814 obstack_printf should be obstack_fgrow1.
815
b408954b
AD
8162002-05-26 Akim Demaille <akim@epita.fr>
817
818 * src/state.h (state_t): `solved_conflicts' is a new member.
819 * src/LR0.c (new_state): Set it to 0.
820 * src/conflicts.h, src/conflicts.c (print_conflicts)
821 (free_conflicts, solve_conflicts): Rename as...
822 (conflicts_print, conflicts_free, conflicts_solve): these.
823 Adjust callers.
824 * src/conflicts.c (enum conflict_resolution_e)
825 (solved_conflicts_obstack): New, used by...
826 (log_resolution): this.
827 Adjust to attach the conflict resolution to each state.
828 Complete the description with the precedence/associativity
829 information.
830 (resolve_sr_conflict): Adjust.
831 * src/print.c (print_state): Output its solved_conflicts.
832 * tests/conflicts.at (Unresolved SR Conflicts)
833 (Solved SR Conflicts): Exercise --report=all.
834
a49aecd5
AD
8352002-05-26 Akim Demaille <akim@epita.fr>
836
837 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
838 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
839 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
840 (token_number_t, item_number_as_token_number)
841 (token_number_as_item_number, muscle_insert_token_number_table):
842 Rename as...
843 (symbol_number_t, item_number_as_symbol_number)
844 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
845 these, since it is more appropriate.
846
5504898e
AD
8472002-05-26 Akim Demaille <akim@epita.fr>
848
849 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
850 `Error:' lines.
851 * data/bison.simple (yystos) [YYDEBUG]: New.
852 (yyparse) [YYDEBUG]: Display the symbols which are popped during
853 error recovery.
854 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
855
ec3bc396
AD
8562002-05-25 Akim Demaille <akim@epita.fr>
857
858 * doc/bison.texinfo (Debugging): Split into...
859 (Tracing): this new section, its former contents, and...
860 (Understanding): this new section.
861 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
862 by...
863 (report_flag): this.
864 Adjust all dependencies.
865 (report_args, report_types, report_argmatch): New.
866 (usage, getargs): Report/support -r, --report.
867 * src/options.h
868 (struct option_table_struct): Rename as..,
869 (struct option_table_s): this.
870 Rename the `set_flag' member to `flag' to match with getopt_long's
871 struct.
872 * src/options.c (option_table): Split verbose into an entry for
873 %verbose, and another for --verbose.
874 Support --report/-r, so remove -r from the obsolete --raw.
875 * src/print.c: Attach full item sets and lookaheads reports to
876 report_flag instead of trace_flag.
877 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
878
78df8250
PE
8792002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
880 and Paul Eggert <eggert@twinsun.com>
769b430f 881
78df8250
PE
882 * data/bison.simple (yyparse): Correct error handling to conform to
883 POSIX and yacc. Specifically, after syntax error is discovered,
884 do not reduce further before shifting the error token.
885 Clean up the code a bit by removing the labels yyerrdefault,
886 yyerrhandle, yyerrpop.
887 * NEWS: Document the above.
888
c0c9ea05
PH
8892002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
890
891 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
892 type; it isn't always big enough, since it doesn't necessarily
893 include non-terminals.
769b430f 894 (yytranslate): Expand definition of yy_token_number_type, so that
c0c9ea05
PH
895 the latter can be removed.
896 (yy_token_number_type): Remove, only one use.
897 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
898 don't use TokenNumberType as element type.
769b430f 899
c0c9ea05
PH
900 * tests/regression.at: Modify expected output to agree with change
901 to yyr1 and yytranslate.
769b430f 902
6390a83f
FK
9032002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
904
905 * src/reader.c (parse_action): Use copy_character instead of
906 obstack_1grow.
907
db7c8e9a
AD
9082002-05-13 Akim Demaille <akim@epita.fr>
909
910 * tests/regression.at (Token definitions): Prototype yylex and
911 yyerror.
912
fcc61800
PH
9132002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
914
158c687b 915 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
fcc61800
PH
916 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
917 32-bit arithmetic.
918 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
919
5683e9b2
AD
9202002-05-07 Akim Demaille <akim@epita.fr>
921
922 * tests/synclines.at: Be sure to prototype yylex and yyerror to
923 avoid GCC warnings.
924
0c2d3f4c
AD
9252002-05-07 Akim Demaille <akim@epita.fr>
926
927 Kill GCC warnings.
928
929 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
930 over the RHS of each rule.
931 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
932 * src/state.h (state_t): Member `nitems' is unsigned short.
933 * src/LR0.c (get_state): Adjust.
934 * src/reader.c (packgram): Likewise.
935 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
936 `Type'.
937 (muscle_insert_int_table): Remove, unused.
938 (prepare_rules): Remove `max'.
939
1565b720
AD
9402002-05-06 Akim Demaille <akim@epita.fr>
941
942 * src/closure.c (print_firsts): Display of the symbol tags.
943 (bitmatrix_print): Move to...
944 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
945 here.
946 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
947
cfaee611
AD
9482002-05-06 Akim Demaille <akim@epita.fr>
949
950 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
951 hash_do_for_each.
952
458be8e0
AD
9532002-05-06 Akim Demaille <akim@epita.fr>
954
955 * src/LR0.c (new_state, get_state): Instead of using the global
956 `kernel_size' and `kernel_base', have two new arguments:
957 `core_size' and `core'.
958 Adjust callers.
959
a900a624
AD
9602002-05-06 Akim Demaille <akim@epita.fr>
961
962 * src/reader.c (packgram): No longer end `ritem' with a 0
963 sentinel: it is not used.
964
d4e7d3a1
AD
9652002-05-05 Akim Demaille <akim@epita.fr>
966
967 New experimental feature: display the lookaheads in the report and
968 graph.
969
970 * src/print (print_core): When --trace-flag, display the rules
971 lookaheads.
972 * src/print_graph.c (print_core): Likewise.
973 Swap the arguments.
974 Adjust caller.
975
39ceb25b
AD
9762002-05-05 Akim Demaille <akim@epita.fr>
977
978 * tests/torture.at (Many lookaheads): New test.
979
5372019f
AD
9802002-05-05 Akim Demaille <akim@epita.fr>
981
982 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
983 (GENERATE_MUSCLE_INSERT_TABLE): this.
984 (output_int_table, output_unsigned_int_table, output_short_table)
985 (output_token_number_table, output_item_number_table): Replace with...
986 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
987 (muscle_insert_short_table, muscle_insert_token_number_table)
988 (muscle_insert_item_number_table): these.
989 Adjust all callers.
990 (prepare_tokens): Don't free `translations', since...
991 * src/reader.h, src/reader.c (grammar_free): do it.
992 Move to...
993 * src/gram.h, src/gram.c (grammar_free): here.
994 * data/bison.simple, data/bison.c++: b4_token_number_max is now
995 b4_translate_max.
996
5df5f6d5
AD
9972002-05-05 Akim Demaille <akim@epita.fr>
998
999 * src/output.c (output_unsigned_int_table): New.
1000 (prepare_rules): `i' is unsigned.
1001 `prhs', `rline', `r2' are unsigned int.
1002 Rename muscle `rhs_number_max' as `rhs_max'.
1003 Output muscles `prhs_max', `rline_max', and `r2_max'.
1004 Free rline and r1.
1005 * data/bison.simple, data/bison.c++: Adjust to use these muscles
1006 to compute types instead of constant types.
1007 * tests/regression.at (Web2c Actions): Adjust.
1008
b87f8b21
AD
10092002-05-04 Akim Demaille <akim@epita.fr>
1010
1011 * src/symtab.h (SALIAS, SUNDEF): Rename as...
1012 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
1013 Adjust dependencies.
1014 * src/output.c (token_definitions_output): Be sure not to output a
1015 `#define 'a'' when fed with `%token 'a' "a"'.
1016 * tests/regression.at (Token definitions): New.
1017
8bb936e4
PE
10182002-05-03 Paul Eggert <eggert@twinsun.com>
1019
1020 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
1021 for K&R C.
1022
10232002-05-03 gettextize <bug-gnu-gettext@gnu.org>
1024
1025 * Makefile.am (SUBDIRS): Remove intl.
1026 (EXTRA_DIST): Add config/config.rpath.
1027
53c71a12
AD
10282002-05-03 Akim Demaille <akim@epita.fr>
1029
1030 * data/bison.simple (m4_if): Don't output empty enums.
1031 And actually, output valid enum definitions :(.
1032
289dd0cf
AD
10332002-05-03 Akim Demaille <akim@epita.fr>
1034
1035 * configure.bat: Remove, completely obsolete.
1036 * Makefile.am (EXTRA_DIST): Adjust.
1037 Don't distribute config.rpath...
1038 * config/Makefile.am (EXTRA_DIST): Do it.
1039
db85e524
AD
10402002-05-03 Akim Demaille <akim@epita.fr>
1041
1042 * configure.in (GETTEXT_VERSION): New.
1043 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
1044
83ccf991
AD
10452002-05-03 Akim Demaille <akim@epita.fr>
1046
1047 * data/bison.simple (b4_token_enum): New.
1048 (b4_token_defines): Use it to output tokens both as #define and
1049 enums.
1050 Suggested by Paul Eggert.
1051 * src/output.c (token_definitions_output): Don't output spurious
1052 white spaces.
1053
1f418995
AD
10542002-05-03 Akim Demaille <akim@epita.fr>
1055
1056 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1057
45119f04
RA
10582002-05-02 Robert Anisko <robert@lrde.epita.fr>
1059
1060 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
1061 Update the stack class, give a try to deque as the default container.
1062
b2d52318
AD
10632002-05-02 Akim Demaille <akim@epita.fr>
1064
1065 * data/bison.simple (yyparse): Do not implement @$ = @1.
1066 (YYLLOC_DEFAULT): Adjust to do it.
1067 * doc/bison.texinfo (Location Default Action): Fix.
1068
3a8b4109
AD
10692002-05-02 Akim Demaille <akim@epita.fr>
1070
1071 * src/reader.c (parse_braces): Merge into...
1072 (parse_action): this.
1073
84614e13
AD
10742002-05-02 Akim Demaille <akim@epita.fr>
1075
1076 * configure.in (ALL_LINGUAS): Remove.
1077 * po/LINGUAS, hr.po: New.
1078
fdbcd8e2
AD
10792002-05-02 Akim Demaille <akim@epita.fr>
1080
1081 Remove the so called hairy (semantic) parsers.
1082
1083 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
1084 * src/gram.h, src/gram.c (semantic_parser): Remove.
1085 (rule_t): Remove the guard and guard_line members.
1086 * src/lex.h (token_t): remove tok_guard.
1087 * src/options.c (option_table): Remove %guard and %semantic_parser
1088 support.
1089 * src/output.c, src/output.h (guards_output): Remove.
1090 (prepare): Adjust.
1091 (token_definitions_output): Don't output the `T'
1092 tokens (???).
1093 (output_skeleton): Don't output the guards.
1094 * src/files.c, src/files.c (attrsfile): Remove.
1095 * src/reader.c (symbol_list): Remove the guard and guard_line
1096 members.
1097 Adjust dependencies.
1098 (parse_guard): Remove.
1099 * data/bison.hairy: Remove.
1100 * doc/bison.texinfo (Environment Variables): Remove occurrences of
1101 BISON_HAIRY.
1102
82b6cb3f
AD
11032002-05-02 Akim Demaille <akim@epita.fr>
1104
1105 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
1106 (parse_guard): Rename the formal argument `stack_offset' as
1107 `rule_length', which is more readable.
1108 Adjust callers.
1109 (copy_at, copy_dollar): Instead of outputting the hard coded
1110 values of $$, $n and so forth, output invocation to b4_lhs_value,
1111 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
900c877b
AD
1112 Note: this patch partially drops `semantic-parser' support: it
1113 always does `rule_length - n', where semantic parsers ought to
1114 always use `-n'.
82b6cb3f
AD
1115 * data/bison.simple, data/bison.c++ (b4_lhs_value)
1116 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
1117
6cbfbcc5
AD
11182002-05-02 Akim Demaille <akim@epita.fr>
1119
1120 * configure.in (AC_INIT): Bump to 1.49b.
1121 (AM_INIT_AUTOMAKE): Short invocation.
1122
b8548114
AD
11232002-05-02 Akim Demaille <akim@epita.fr>
1124
1125 Version 1.49a.
1126
c20cd1fa
AD
11272002-05-01 Akim Demaille <akim@epita.fr>
1128
1129 * src/skeleton.h: Remove.
1130
8a9566d4
AD
11312002-05-01 Akim Demaille <akim@epita.fr>
1132
1133 * src/skeleton.h: Fix the #endif.
1134 Reported by Magnus Fromreide.
1135
8c6d399a
PE
11362002-04-26 Paul Eggert <eggert@twinsun.com>
1137
1138 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
1139 Define if we define YYSTYPE and YYLTYPE, respectively.
b756bb75 1140 (YYCOPY): Fix [] quoting problem in the non-GCC case.
8a9566d4 1141
2b7ed18a
RA
11422002-04-25 Robert Anisko <robert@lrde.epita.fr>
1143
1144 * src/scan-skel.l: Postprocess quadrigraphs.
1145
1146 * src/reader.c (copy_character): New function, used to output
1147 single characters while replacing `[' and `]' with quadrigraphs, to
1148 avoid troubles with M4 quotes.
1149 (copy_comment): Output characters with copy_character.
1150 (read_additionnal_code): Likewise.
1151 (copy_string2): Likewise.
1152 (copy_definition): Likewise.
1153
1154 * tests/calc.at: Exercise M4 quoting.
1155
34a89c50
AD
11562002-04-25 Akim Demaille <akim@epita.fr>
1157
1158 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
1159 between `!' and the command.
1160 Reported by Paul Eggert.
1161
0dd1580a
RA
11622002-04-24 Robert Anisko <robert@lrde.epita.fr>
1163
1164 * tests/calc.at: Exercise prologue splitting.
1165
1166 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
1167 `b4_post_prologue' instead of `b4_prologue'.
1168
1169 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
1170 muscles.
1171 (output): Free pre_prologue_obstack and post_prologue_obstack.
1172 * src/files.h, src/files.c (attrs_obstack): Remove.
1173 (pre_prologue_obstack, post_prologue_obstack): New.
1174 * src/reader.c (copy_definition): Add a parameter to specify the
1175 obstack to fill, instead of using attrs_obstack unconditionally.
1176 (read_declarations): Pass pre_prologue_obstack to copy_definition if
1177 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
1178
83c1796f
PE
11792002-04-23 Paul Eggert <eggert@twinsun.com>
1180
1181 * data/bison.simple: Remove unnecessary commentary and white
1182 space differences from 1_29-branch.
1183 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
1184
1185 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
1186 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
1187 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
1188 constructors or destructors.
1189
1190 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
1191
1207eeac
AD
11922002-04-23 Akim Demaille <akim@epita.fr>
1193
1194 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
1195 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
1196 location with columns.
1197 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
1198 All reported by Paul Eggert.
1199
78ab8f67
AD
12002002-04-22 Akim Demaille <akim@epita.fr>
1201
1202 * src/reduce.c (dump_grammar): Move to...
1203 * src/gram.h, src/gram.c (grammar_dump): here.
1204 Be sure to separate long item numbers.
1205 Don't read the members of a rule's prec if its nil.
1206
133c20e2
AD
12072002-04-22 Akim Demaille <akim@epita.fr>
1208
1209 * src/output.c (table_size, table_grow): New.
1210 (MAXTABLE): Remove, replace uses with table_size.
1211 (pack_vector): Instead of dying when the table is too big, grow it.
1212
9515e8a7
AD
12132002-04-22 Akim Demaille <akim@epita.fr>
1214
1215 * data/bison.simple (yyr1): Its type is that of a token number.
1216 * data/bison.c++ (r1_): Likewise.
1217 * tests/regression.at (Web2c Actions): Adjust.
1218
23c5a174
AD
12192002-04-22 Akim Demaille <akim@epita.fr>
1220
1221 * src/reader.c (token_translations_init): 256 is now the default
1222 value for the error token, i.e., it will be assigned another
1223 number if the user assigned 256 to one of her tokens.
1224 (reader): Don't force 256 to error.
1225 * doc/bison.texinfo (Symbols): Adjust.
1226 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
1227 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
1228 etc. instead of 10, 20, 30 (which was used to `jump' over error
1229 (256) and undefined (2)).
1230
5fbb0954
AD
12312002-04-22 Akim Demaille <akim@epita.fr>
1232
1233 Propagate more token_number_t.
1234
1235 * src/gram.h (token_number_as_item_number)
1236 (item_number_as_token_number): New.
1237 * src/output.c (GENERATE_OUTPUT_TABLE): New.
1238 Use it to create output_item_number_table and
1239 output_token_number_table.
1240 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
1241 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
1242 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
1243 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
1244
4f940944
AD
12452002-04-22 Akim Demaille <akim@epita.fr>
1246
1247 * src/output.h, src/output.c (get_lines_number): Remove.
1248
3ded9a63
AD
12492002-04-19 Akim Demaille <akim@epita.fr>
1250
1251 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
1252 as Lex/Flex'.
1253 (Debugging): More details about enabling the debugging features.
1254 (Table of Symbols): Describe $$, $n, @$, and @n.
1255 Suggested by Tim Josling.
1256
e0c471a9
AD
12572002-04-19 Akim Demaille <akim@epita.fr>
1258
1259 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
1260
fecc10cd
AD
12612002-04-10 Akim Demaille <akim@epita.fr>
1262
1263 * src/system.h: Rely on HAVE_LIMITS_H.
1264 Suggested by Paul Eggert.
1265
51dec47b
AD
12662002-04-09 Akim Demaille <akim@epita.fr>
1267
1268 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
1269 full stderr, and strip it according to the bison options, instead
1270 of composing the error message from different bits.
1271 This makes it easier to check for several error messages.
1272 Adjust all the invocations.
1273 Add an invocation exercising the error token.
1274 Add an invocation demonstrating a stupid error message.
1275 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
1276 Adjust the tests.
1277 Error message are for stderr, not stdout.
1278
007a50a4
AD
12792002-04-09 Akim Demaille <akim@epita.fr>
1280
1281 * src/gram.h, src/gram.c (error_token_number): Remove, use
1282 errtoken->number.
1283 * src/reader.c (reader): Don't specify the user token number (2)
1284 for $undefined, as it uselessly prevents using it.
1285 * src/gram.h (token_number_t): Move to...
1286 * src/symtab.h: here.
1287 (state_t.number): Is a token_number_t.
1288 * src/print.c, src/reader.c: Use undeftoken->number instead of
1289 hard coded 2.
1290 (Even though this 2 is not the same as above: the number of the
1291 undeftoken remains being 2, it is its user token number which
1292 might not be 2).
1293 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
1294 `user_token_number_max'.
1295 Output `undef_token_number'.
1296 * data/bison.simple, data/bison.c++: Use them.
1297 Be sure to map invalid yylex return values to
1298 `undef_token_number'. This saves us from gratuitous SEGV.
1299
1300 * tests/conflicts.at (Solved SR Conflicts)
1301 (Unresolved SR Conflicts): Adjust.
1302 * tests/regression.at (Web2c Actions): Adjust.
1303
06446ccf
AD
13042002-04-08 Akim Demaille <akim@epita.fr>
1305
1306 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
1307 Adding #line.
1308 Remove the duplicate `typedefs'.
1309 (RhsNumberType): Fix the declaration and various other typos.
1310 Use __ofile__.
1311 * data/bison.simple: Use __ofile__.
1312 * src/scan-skel.l: Handle __ofile__.
1313
62a3e4f0
AD
13142002-04-08 Akim Demaille <akim@epita.fr>
1315
1316 * src/gram.h (item_number_t): New, the type of item numbers in
1317 RITEM. Note that it must be able to code symbol numbers as
1318 positive number, and the negation of rule numbers as negative
1319 numbers.
1320 Adjust all dependencies (pretty many).
1321 * src/reduce.c (rule): Remove this `short *' pointer: use
1322 item_number_t.
1323 * src/system.h (MINSHORT, MAXSHORT): Remove.
1324 Include `limits.h'.
1325 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
1326 (shortcpy): Remove.
1327 (MAXTABLE): Move to...
1328 * src/output.c (MAXTABLE): here.
1329 (prepare_rules): Use output_int_table to output rhs.
1330 * data/bison.simple, data/bison.c++: Adjust.
1331 * tests/torture.at (Big triangle): Move the limit from 254 to
1332 500.
1333 * tests/regression.at (Web2c Actions): Ajust.
1334
1335 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
1336 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
1337 passes, but produces negative #line number, once fixed, GCC is
1338 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
1339 C), it passes.
1340 * src/state.h (state_h): Code input lines on ints, not shorts.
1341
bb88b0fc
AD
13422002-04-08 Akim Demaille <akim@epita.fr>
1343
1344 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
1345 and then the grammar.
1346
9a636f47
AD
13472002-04-08 Akim Demaille <akim@epita.fr>
1348
1349 * src/system.h: No longer using strndup.
1350
680e8701
AD
13512002-04-07 Akim Demaille <akim@epita.fr>
1352
1353 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
1354 * src/output.c (output_table_data): Return the longest number.
1355 (prepare_tokens): Output `token_number_max').
1356 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
1357 New.
1358 Use them to define yy_token_number_type/TokenNumberType.
1359 Use this type for yytranslate.
1360 * tests/torture.at (Big triangle): Push the limit from 124 to
1361 253.
1362 * tests/regression.at (Web2c Actions): Adjust.
1363
817e9f41
AD
13642002-04-07 Akim Demaille <akim@epita.fr>
1365
1366 * tests/torture.at (Big triangle): New.
1367 (GNU AWK Grammar, GNU Cim Grammar): Move to...
1368 * tests/existing.at: here.
1369
5123689b
AD
13702002-04-07 Akim Demaille <akim@epita.fr>
1371
1372 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
1373 nritems.
1374 Adjust dependencies.
1375
f3849179
AD
13762002-04-07 Akim Demaille <akim@epita.fr>
1377
1378 * src/reader.c: Normalize increments to prefix form.
1379
bd02036a
AD
13802002-04-07 Akim Demaille <akim@epita.fr>
1381
1382 * src/reader.c, symtab.c: Remove debugging code.
1383
db8837cb
AD
13842002-04-07 Akim Demaille <akim@epita.fr>
1385
1386 Rename all the `bucket's as `symbol_t'.
1387
1388 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
1389 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
1390 * src/symtab.c, src/symtab.h (bucket): Rename as...
1391 (symbol_t): this.
1392 (symbol_list_new, bucket_check_defined, bucket_make_alias)
1393 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
1394 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1395 (buckets_new, buckets_free, buckets_do): Rename as...
1396 (symbol_list_new, symbol_check_defined, symbol_make_alias)
1397 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
1398 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
1399 (symbols_new, symbols_free, symbols_do): these.
1400
72a23c97
AD
14012002-04-07 Akim Demaille <akim@epita.fr>
1402
1403 Use lib/hash for the symbol table.
1404
1405 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
1406 EOF.
1407 * src/lex.c (lex): Set the `number' member of new terminals.
1408 * src/reader.c (bucket_check_defined, bucket_make_alias)
1409 (bucket_check_alias_consistence, bucket_translation): New.
1410 (reader, grammar_free, readgram, token_translations_init)
1411 (packsymbols): Adjust.
1412 (reader): Number the predefined tokens.
1413 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
1414 for predefined tokens.
1415 * src/symtab.h (bucket): Remove all the hash table related
1416 members.
1417 * src/symtab.c (symtab): Replace by...
1418 (bucket_table): this.
1419 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1420 (buckets_new, buckets_do): New.
1421
280a38c3
AD
14222002-04-07 Akim Demaille <akim@epita.fr>
1423
1424 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
1425 (start_symbol, max_user_token_number, semantic_parser)
1426 (error_token_number): Initialize.
1427 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
1428 Initialize.
1429 (reader): Don't.
1430 (errtoken, eoftoken, undeftoken, axiom): Extern.
1431
03b31c0c
AD
14322002-04-07 Akim Demaille <akim@epita.fr>
1433
1434 * src/gram.h (rule_s): prec and precsym are now pointers
1435 to the bucket giving the priority/associativity.
1436 Member `associativity' removed: useless.
1437 * src/reduce.c, src/conflicts.c: Adjust.
1438
8b3df748
AD
14392002-04-07 Akim Demaille <akim@epita.fr>
1440
1441 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
1442 Properly escape the symbols' TAG when outputting them.
1443
e601aa1d
AD
14442002-04-07 Akim Demaille <akim@epita.fr>
1445
1446 * src/lalr.h (LA): Is a bitsetv, not bitset*.
1447
b0299a2e
AD
14482002-04-07 Akim Demaille <akim@epita.fr>
1449
1450 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
1451 (LArule): this, which is an array to rule_t*.
1452 * src/print.c, src/conflicts.c: Adjust.
1453
d7e1f00c
AD
14542002-04-07 Akim Demaille <akim@epita.fr>
1455
1456 * src/gram.h (rule_t): Rename `number' as `user_number'.
1457 `number' is a new member.
1458 Adjust dependencies.
1459 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
1460
cc9305dd
AD
14612002-04-07 Akim Demaille <akim@epita.fr>
1462
1463 As a result of the previous patch, it is no longer needed
1464 to reorder ritem itself.
1465
1466 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
1467
b0940840
AD
14682002-04-07 Akim Demaille <akim@epita.fr>
1469
1470 Be sure never to walk through RITEMS, but use only data related to
1471 the rules themselves. RITEMS should be banished.
1472
1473 * src/output.c (output_token_translations): Rename as...
1474 (prepare_tokens): this.
1475 In addition to `translate', prepare the muscles `tname' and
1476 `toknum', which were handled by...
1477 (output_rule_data): this.
1478 Remove, and move the remainder of its outputs into...
1479 (prepare_rules): this new routines, which also merges content from
1480 (output_gram): this.
1481 (prepare_rules): Be sure never to walk through RITEMS.
1482 (output_stos): Rename as...
1483 (prepare_stos): this.
1484 (output): Always invoke prepare_states, after all, just don't use it
1485 in the output if you don't need it.
1486
643a5994
AD
14872002-04-07 Akim Demaille <akim@epita.fr>
1488
1489 * src/LR0.c (new_state): Display `nstates' as the name of the
1490 newly created state.
1491 Adjust to initialize first_state and last_state if needed.
1492 Be sure to distinguish the initial from the final state.
1493 (new_states): Create the itemset of the initial state, and use
1494 new_state.
1495 * src/closure.c (closure): Now that the initial state has its
1496 items properly set, there is no need for a special case when
1497 creating `ruleset'.
1498
1499 As a result, now the rule 0, reducing to $axiom, is visible in the
1500 outputs. Adjust the test suite.
1501
1502 * tests/conflicts.at (Solved SR Conflicts)
1503 (Unresolved SR Conflicts): Adjust.
1504 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
1505 * tests/conflicts.at (S/R in initial): New.
1506
b4c4ccc2
AD
15072002-04-07 Akim Demaille <akim@epita.fr>
1508
1509 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
1510 the RHS of the rules.
1511 * src/output.c (output_gram): Likewise.
1512
bba97eb2
AD
15132002-04-07 Akim Demaille <akim@epita.fr>
1514
1515 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
1516 bucket.
1517 Adjust all dependencies.
1518 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
1519 `number' of the buckets too.
1520 * src/gram.h: Include `symtab.h'.
1521 (associativity): Move to...
1522 * src/symtab.h: here.
1523 No longer include `gram.h'.
1524
c3b407f4
AD
15252002-04-07 Akim Demaille <akim@epita.fr>
1526
1527 * src/gram.h, src/gram.c (rules_rhs_length): New.
1528 (ritem_longest_rhs): Use it.
1529 * src/gram.h (rule_t): `number' is a new member.
1530 * src/reader.c (packgram): Set it.
1531 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
1532 the end of `rules', and count them out of `nrules'.
1533 (reduce_output, dump_grammar): Adjust.
1534 * src/print.c (print_grammar): It is no longer needed to check for
1535 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
1536 * tests/reduce.at (Reduced Automaton): New test.
1537
11652ab3
AD
15382002-04-07 Akim Demaille <akim@epita.fr>
1539
1540 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
1541 lacking `+ 1' to nrules, Bison reported as useless a token if it
1542 was used solely to set the precedence of the last rule...
1543
26b23c1a
AD
15442002-04-07 Akim Demaille <akim@epita.fr>
1545
1546 * data/bison.c++, data/bison.simple: Don't output the current file
1547 name in #line, to avoid useless diffs between two identical
1548 outputs under different names.
1549
18bcecb0
AD
15502002-04-07 Akim Demaille <akim@epita.fr>
1551
1552 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
1553 Normalize loops to using `< nrules + 1', not `<= nrules'.
1554
fa770c86
AD
15552002-04-07 Akim Demaille <akim@epita.fr>
1556
1557 * TODO: Update.
1558
d9b739c3
AD
15592002-04-07 Akim Demaille <akim@epita.fr>
1560
1561 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
1562 bucket.value as bucket.number.
1563
99013900
AD
15642002-04-07 Akim Demaille <akim@epita.fr>
1565
1566 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
1567 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1568 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
1569 RHS, instead of being an index in RITEMS.
1570
e966383b
PE
15712002-04-04 Paul Eggert <eggert@twinsun.com>
1572
1573 * doc/bison.texinfo: Update copyright date.
1574 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
1575 (Symbols): Warn about running Bison in one character set,
1576 but compiling and/or running in an incompatible one.
1577 Warn about character code 256, too.
1578
15792002-04-03 Paul Eggert <eggert@twinsun.com>
1580
1581 * src/bison.data (YYSTACK_ALLOC): Depend on whether
1582 YYERROR_VERBOSE is nonzero, not whether it is defined.
1583
1584 Merge changes from bison-1_29-branch.
c307773e 1585
8d6c48b9
PE
15862002-03-20 Paul Eggert <eggert@twinsun.com>
1587
1588 Merge fixes from Debian bison_1.34-1.diff.
1589
1590 * configure.in (AC_PREREQ): 2.53.
1591
e53c6322
AD
15922002-03-20 Akim Demaille <akim@epita.fr>
1593
1594 * src/conflicts.c (log_resolution): Argument `resolution' is const.
1595
9ffbeca7
PE
15962002-03-19 Paul Eggert <eggert@twinsun.com>
1597
21db0b2a
PE
1598 * src/bison.simple (YYCOPY): New macro.
1599 (YYSTACK_RELOCATE): Use it.
1600 Remove Type arg; no longer needed. All callers changed.
1601 (yymemcpy): Remove; no longer needed.
1602
9ffbeca7
PE
1603 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
1604 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1605
642cb8f8
AD
16062002-03-19 Akim Demaille <akim@epita.fr>
1607
1608 Test and fix the #line outputs.
1609
1610 * tests/atlocal.at (GCC): New.
1611 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
1612 (Prologue synch line, ,%union synch line, Postprologue synch line)
1613 (Action synch line, Epilogue synch line): New tests.
1614 * src/reader.c (parse_union_decl): Define the muscle stype_line.
1615 * data/bison.simple, data/bison.c++: Use it.
1616
3c31a486
AD
16172002-03-19 Akim Demaille <akim@epita.fr>
1618
1619 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
1620 (Solved SR Conflicts, %expect not enough, %expect right)
1621 (%expect too much): Move to...
1622 * tests/conflicts.at: this new file.
1623
0d8bed56
AD
16242002-03-19 Akim Demaille <akim@epita.fr>
1625
1626 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1627 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
1628 that we can move to enums for instance.
1629 * src/output.c (token_definitions_output): Output a list of
1630 `token-name, token-number' instead of the #define.
1631 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
1632
9208d17f
AD
16332002-03-14 Akim Demaille <akim@epita.fr>
1634
1635 Use Gettext 0.11.1.
1636
af27eacb
RA
16372002-03-09 Robert Anisko <robert@lrde.epita.fr>
1638
1639 * data/bison.c++: Make the user able to add members to the generated
1640 parser by subclassing.
1641
9101a310
RA
16422002-03-05 Robert Anisko <robert@lrde.epita.fr>
1643
1644 * src/reader.c (read_additionnal_code): `c' should be an integer, not
1645 a character.
1646 Reported by Nicolas Tisserand and Nicolas Burrus.
1647
fff9bf0b
RA
16482002-03-04 Robert Anisko <robert@lrde.epita.fr>
1649
1650 * src/reader.c: Warn about lacking semi-colons, do not complain.
1651
64dba31e
RA
16522002-03-04 Robert Anisko <robert@lrde.epita.fr>
1653
1654 * data/bison.c++: Remove a debug line.
1655
374f5a14
RA
16562002-03-04 Robert Anisko <robert@lrde.epita.fr>
1657
1658 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
1659 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
1660 provide a default implementation.
1661
bfcf1f3a
AD
16622002-03-04 Akim Demaille <akim@epita.fr>
1663
1664 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
1665 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
1666 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
1667 * tests/semantic.at (Parsing Guards): Similarly.
1668 * src/reader.at (readgram): Complain if the last rule is not ended
1669 with a semi-colon.
1670
65ccf9fc
AD
16712002-03-04 Akim Demaille <akim@epita.fr>
1672
1673 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
1674 * src/closure.c: here.
1675 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
1676 RTC.
1677 * src/warshall.h, src/warshall.c: Remove.
1678 * tests/sets.at (Broken Closure): Adjust.
1679
d0039cbc
AD
16802002-03-04 Akim Demaille <akim@epita.fr>
1681
1682 * src/output.c (output_skeleton): tempdir is const.
1683 bytes_read is unused.
1684
345cea78
AD
16852002-03-04 Akim Demaille <akim@epita.fr>
1686
1687 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1688 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
1689 Update.
1690 From Michael Hayes.
1691
564801f7
AD
16922002-03-04 Akim Demaille <akim@epita.fr>
1693
1694 * src/closure.c (closure): `r' is unused.
1695
e5352bc7
AD
16962002-03-04 Akim Demaille <akim@epita.fr>
1697
1698 * tests/sets.at (Broken Closure): Add the ending `;'.
1699 * src/reader.at (readgram): Complain if a rule is not ended with a
1700 semi-colon.
1701
914feea9
AD
17022002-03-04 Akim Demaille <akim@epita.fr>
1703
1704 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
1705 (count_sr_conflicts): Use bitset_count.
1706 * src/reduce.c (inaccessable_symbols): Ditto.
1707 (bits_size): Remove.
1708 * src/warshall.h, src/warshall.c: Convert to bitsetv.
1709
f0250de6
AD
17102002-03-04 Akim Demaille <akim@epita.fr>
1711
1712 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
1713 * src/reduce.c: Remove the `bitset_zero's following the
1714 `bitset_create's, as now it is performed by the latter.
1715
ef017502
AD
17162002-03-04 Akim Demaille <akim@epita.fr>
1717
1718 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
1719 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
1720 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
1721 latest sources from Michael.
1722
76514394
AD
17232002-03-04 Akim Demaille <akim@epita.fr>
1724
1725 * src/output.c (output): Don't free the grammar.
1726 * src/reader.c (grammar_free): New.
1727 * src/main.c (main): Call it and don't free symtab here.
1728
55024580
AD
17292002-03-04 Akim Demaille <akim@epita.fr>
1730
1731 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
1732 before returning.
1733 Reported by Benoit Perrot.
1734
f9abaa2c
AD
17352002-03-04 Akim Demaille <akim@epita.fr>
1736
1737 Use bitset operations when possible, not loops over bits.
1738
1739 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
1740 bitset_or.
1741 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
1742 * src/reduce.c (useless_nonterminals): Formatting changes.
1743 * src/warshall.c (TC): Use bitset_or.
1744
0e721e75
AD
17452002-03-04 Akim Demaille <akim@epita.fr>
1746
1747 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
1748 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
1749 Ditto.
1750
0fb1ffb1
AD
17512002-03-04 Akim Demaille <akim@epita.fr>
1752
1753 * src/lalr.c (F): Now a bitset*.
1754 Adjust all dependencies.
1755
b86796bf
AD
17562002-03-04 Akim Demaille <akim@epita.fr>
1757
1758 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
1759 Adjust all dependencies.
1760
602bbf31
AD
17612002-03-04 Akim Demaille <akim@epita.fr>
1762
1763 * src/L0.c, src/LR0.h (nstates): Be size_t.
1764 Adjust comparisons (signed vs unsigned).
1765 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
1766 bitset*.
1767 Adjust all dependencies.
1768
d8a0245c
AD
17692002-03-04 Akim Demaille <akim@epita.fr>
1770
1771 * src/closure.c (firsts): Now, also a bitset.
1772 Adjust all dependencies.
1773 (varsetsize): Remove, now unused.
1774 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
1775
34ba9743
AD
17762002-03-04 Akim Demaille <akim@epita.fr>
1777
1778 * src/print.c: Convert to use bitset.h, not hand coded iterations
1779 over ints.
1780
ed86e78c
AD
17812002-03-04 Akim Demaille <akim@epita.fr>
1782
1783 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
1784
dfdb1797
AD
17852002-03-04 Akim Demaille <akim@epita.fr>
1786
1787 * src/closure.c (ruleset): Be a bitset.
1788 (rulesetsize): Remove.
1789
7086e707
AD
17902002-03-04 Akim Demaille <akim@epita.fr>
1791
1792 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1793 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
1794 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
1795 * src/closure.c (fderives): Be an array of bitsets.
1796
98254360
RA
17972002-02-28 Robert Anisko <robert@lrde.epita.fr>
1798
1799 * data/bison.c++: Merge the two generated headers. Insert a copyright
1800 notice in each output file.
1801
a75c057f
AD
18022002-02-28 Akim Demaille <akim@epita.fr>
1803
1804 * data/bison.c++: Copy the prologue of bison.simple to fetch
1805 useful M4 definitions, such as b4_header_guard.
1806
06b00abc
AD
18072002-02-25 Akim Demaille <akim@epita.fr>
1808
1809 * src/getargs.c (version): Give the name of the authors, and use a
a75c057f
AD
1810 translator friendly scheme for the bgr
1811 copyright notice.
06b00abc 1812
70e7d534
AD
18132002-02-25 Akim Demaille <akim@epita.fr>
1814
1815 * src/output.c (header_output): Remove, now handled completely via
1816 M4.
1817
abe017f6
AD
18182002-02-25 Akim Demaille <akim@epita.fr>
1819
1820 * m4/m4.m4: New, from CVS Autoconf.
1821 * configure.in: Invoke it.
1822 * src/output.c (output_skeleton): Use its result instead of the
1823 hard coded name.
1824
381fb12e
AD
18252002-02-25 Akim Demaille <akim@epita.fr>
1826
1827 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
1828 Fileutils 4.1.5.
1829 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
1830 * src/output.c (output_skeleton): Use mkstemp to create a real
1831 temporary file.
1832 Move the filling of `skeleton' and its muscle to...
1833 (prepare): here.
1834 (output): Move the definition of the prologue muscle to...
1835 (prepare): here.
1836 * src/system.h (DEFAULT_TMPDIR): New.
1837
6f38107f
PE
18382002-02-14 Paul Eggert <eggert@twinsun.com>
1839
1840 Remove the support for C++ namespace cleanliness; it was
1841 causing more problems than it was curing, since it didn't work
1842 properly on some nonstandard C++ compilers. This can wait
1843 for a proper C++ parser.
1844
1845 * NEWS: Document this.
1846 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
1847 of C++, as it's treated like C now.
1848 * src/bison.simple (YYSTD): Remove.
1849 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
1850 Treat C++ just like Standard C instead of trying to support
1851 namespace cleanliness.
1852
80cce3da
AD
18532002-02-14 Akim Demaille <akim@epita.fr>
1854
1855 * tests/regression.at (else): Adjust to Andreas' change.
1856
842e8679
AD
18572002-02-14 Akim Demaille <akim@epita.fr>
1858
1859 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
1860
4bda3f10
AD
18612002-02-13 Andreas Schwab <schwab@suse.de>
1862
1863 * src/output.c (output_rule_data): Don't output NULL, it might
1864 not be defined yet.
1865
4162fa07 18662002-02-11 Robert Anisko <robert@lrde.epita.fr>
b418ecd8 1867
4162fa07
RA
1868 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
1869 (Copyright notice): Update.
b418ecd8 1870
bd16a5dc
AD
18712002-02-11 Akim Demaille <akim@epita.fr>
1872
1873 * tests/regression.at (%nonassoc and eof): Don't include
1874 nonportable headers.
1875
8d69a1a3
RA
18762002-02-08 Robert Anisko <robert@lrde.epita.fr>
1877
1878 * data/bison.c++: Correct error recovery. Make the user able to
1879 initialize the starting location.
1880
9b2d0677
AD
18812002-02-07 Akim Demaille <akim@epita.fr>
1882
1883 * tests/input.at: New.
1884
69e2658b
RA
18852002-02-07 Robert Anisko <robert@lrde.epita.fr>
1886
1887 * data/bison.c++: Replace some direct m4 expansions by constants. Be
9b2d0677 1888 more consistent when naming methods and variables. Put preprocessor
69e2658b
RA
1889 directives around tables only needed for debugging.
1890
4aacc3a7
RA
18912002-02-07 Robert Anisko <robert@lrde.epita.fr>
1892
1893 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
1894 C++ parsers.
1895 (yy::b4_name::parse): Use print_.
1896
762a801e
RA
18972002-02-07 Robert Anisko <robert@lrde.epita.fr>
1898
1899 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
1900
4bb2bc3f
RA
19012002-02-07 Robert Anisko <robert@lrde.epita.fr>
1902
1903 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
1904 C++ parsers.
1905 (yy::b4_name::parse): Build verbose error messages, and use error_.
1906
6b45a3ca
RA
19072002-02-06 Robert Anisko <robert@lrde.epita.fr>
1908
1909 * data/bison.c++: Fix m4 quoting in comments.
1910
50997c6e
RA
19112002-02-06 Robert Anisko <robert@lrde.epita.fr>
1912
1913 * data/bison.c++: Adjust the parser code. Fix some muscles that were
1914 not expanded by m4.
1915
3f3eed27
AD
19162002-02-05 Akim Demaille <akim@epita.fr>
1917
1918 * data/bison.c++: Adjust to the M4 back end.
1919 More is certainly needed.
1920
be2a1a68
AD
19212002-02-05 Akim Demaille <akim@epita.fr>
1922
1923 Give a try to M4 as a back end.
1924
1925 * lib/readpipe.c: New, from wdiff.
1926 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
1927 BISON_HAIRY.
1928 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
1929 specific values. Now it is m4 that performs the lookup.
1930 * src/parse-skel.y: Remove.
1931 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
1932 * src/output.c (actions_output, guards_output)
1933 (token_definitions_output): No longer keeps track of the output
1934 line number, hence remove the second argument.
1935 (guards_output): Check against the guard member of a rule, not the
1936 action member.
1937 Adjust callers.
1938 (output_skeleton): Don't look for the skeleton location, let m4 do
1939 that.
1940 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
1941 file will be used.
1942 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
1943 (prepare): Given that for the time being changesyntax is not
1944 usable in M4, rename the muscles using `-' to `_'.
1945 Define `defines_flag', `output_parser_name' and `output_header_name'.
1946 * src/output.h (actions_output, guards_output)
1947 (token_definitions_output): Adjust prototypes.
1948 * src/scan-skel.l: Instead of scanning the skeletons, it now
1949 processes the output of m4: `__oline__' and `#output'.
1950 * data/bison.simple: Adjust to be used by M4(sugar).
1951 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
1952 to date.
1953 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
1954 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
1955 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
1956 shamelessly stolen from CVS Autoconf.
1957
beda758b
AD
19582002-02-05 Akim Demaille <akim@epita.fr>
1959
1960 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
1961 * configure.in: Check for the declarations of free and malloc.
1962 * src/muscle_tab.c: Adjust.
1963
5ece6d43
AD
19642002-02-05 Akim Demaille <akim@epita.fr>
1965
1966 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
1967 which have no values.
1968
5bb18f9a
AD
19692002-02-05 Akim Demaille <akim@epita.fr>
1970
1971 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
1972 * data/: here.
1973
894dd62e
PE
19742002-01-29 Paul Eggert <eggert@twinsun.com>
1975
1976 * src/bison.simple (YYSIZE_T): Do not define merely because
1977 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
1978 On some platforms, <alloca.h> does not declare YYSTD (size_t).
1979
82841af7
AD
19802002-01-27 Akim Demaille <akim@epita.fr>
1981
1982 Fix `%nonassoc and eof'.
1983
1984 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
1985 which were not properly copied! Replace
1986 memcpy (res->errs, src->errs, src->nerrs);
1987 with
1988 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
1989 !!!
1990 * tests/regression.at (%nonassoc and eof): Adjust to newest
1991 Autotest: `.' is not in the PATH.
1992
318b76e9
AD
19932002-01-27 Akim Demaille <akim@epita.fr>
1994
1995 * tests/sets.at (AT_EXTRACT_SETS): New.
1996 (Nullable): Use it.
1997 (Firsts): New.
1998
30d2f3d5
AD
19992002-01-26 Akim Demaille <akim@epita.fr>
2000
2001 * tests/actions.at, tests/calc.at, tests/headers.at,
2002 * tests/torture.at: Adjust to the newest Autotest which no longer
2003 forces `.' in the PATH.
2004
30f8c395
AD
20052002-01-25 Akim Demaille <akim@epita.fr>
2006
2007 * tests/regression.at (%nonassoc and eof): New.
2008 Suggested by Robert Anisko.
2009
29ae55f1
AD
20102002-01-24 Akim Demaille <akim@epita.fr>
2011
2012 Bison dumps core when trying to complain about broken input files.
2013 Reported by Cris van Pelt.
2014
2015 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
2016 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
2017 into...
2018 (Invalid inputs): Strengthen: exercise parse_percent_token.
2019
2b548aa6
RA
20202002-01-24 Robert Anisko <robert.anisko@epita.fr>
2021
2022 * src/Makefile.am: Add bison.c++.
2023 * src/bison.c++: New skeleton.
2024
bb0146c2
AD
20252002-01-21 Paolo Bonzini <bonzini@gnu.org>
2026
2027 * po/it.po: New.
2028
bec30531
AD
20292002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
2030
2031 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
2032
fc6edc45
MA
20332002-01-20 Marc Autret <marc@gnu.org>
2034
2035 * src/files.c (compute_output_file_names): Fix
2036
5e5d5415
MA
20372002-01-20 Marc Autret <marc@gnu.org>
2038
2039 * tests/output.at: New test.
2040 * src/files.c (compute_base_names): Don't map extensions when
2041 the YACC flag is set, use defaults.
2042 Reported by Evgeny Stambulchik.
2043
44ea3fbd
MA
20442002-01-20 Marc Autret <marc@gnu.org>
2045
bb0146c2 2046 * src/system.h: Need to define __attribute__ away for non-GCC
44ea3fbd
MA
2047 compilers as well (i.e. the vendor C compiler).
2048 Suggested by Albert Chin-A-Young.
2049
338963d1
TVH
20502002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
2051
2052 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
2053 canonical definition.
2054 * src/system.h: Use the canonical definition for PARAMS (avoids
2055 a conflict with the macro from lib/hash.h).
2056
c57b2479
AD
20572002-01-11 Akim Demaille <akim@epita.fr>
2058
2059 * configure.in: Use AC_FUNC_STRNLEN.
d9e9746c 2060 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
c57b2479 2061
b85810ae
AD
20622002-01-09 Akim Demaille <akim@epita.fr>
2063
2064 * src/files.c, src/files.h (output_infix): New.
2065 (tab_extension): Remove.
2066 (compute_base_names): Compute the former, drop the latter.
2067 * src/output.c (prepare): Insert the muscles `output-infix', and
2068 `output-suffix'.
2069 * src/parse-skel.y (string, string.1): New.
2070 (section.header): Use it.
2071 (section.yacc): Remove.
2072 (prefix): Remove too.
2073 * src/scan-skel.l: Adjust.
2074 * src/bison.simple, src/bison.hairy: Adjust.
2075
cae60122
AD
20762002-01-09 Akim Demaille <akim@epita.fr>
2077
2078 * configure.in (WERROR_CFLAGS): Compute it.
2079 * src/Makefile.am (CFLAGS): Pass it.
2080 * tests/atlocal.in (CFLAGS): Idem.
2081 * src/files.c: Fix a few warnings.
2082 (get_extension_index): Remove, unused.
2083
ae404801
AD
20842002-01-08 Akim Demaille <akim@epita.fr>
2085
2086 * src/getargs.c (AS_FILE_NAME): New.
2087 (getargs): Use it to convert DOSish file names.
2088 * src/files.c (base_name): Rename as full_base_name to avoid
2089 clashes with `base_name ()'.
2090 (filename_split): New.
2091 (compute_base_names): N-th rewrite, using filename_split.
2092
22312b71
AD
20932002-01-08 Akim Demaille <akim@epita.fr>
2094
2095 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
2096 New, stolen from the Fileutils 4.1.
2097 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
2098 * configure.in: Check for the presence of memrchr, and of its
2099 prototype.
2100
a67cef01
TVH
21012002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
2102
2103 * lib/hash.h (__P): Added definition for this macro.
2104 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
2105 BUILT_SOURCES, to ensure they are generated first.
2106 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
2107 %error-verbose to allow bootstrapping with bison 1.30x.
2108
2b25d624
AD
21092002-01-06 Akim Demaille <akim@epita.fr>
2110
2111 * src/reader.c (parse_braces): Don't fetch the next char, the
2112 convention is to fetch on entry.
2113 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
2114 'switch' without a following semicolon.
2115 * tests/regression.at (braces parsing): New.
2116
3460813b
AD
21172002-01-06 Akim Demaille <akim@epita.fr>
2118
2119 Bison is dead wrong in its RR conflict reports.
2120
2121 * tests/torture.at (GNU Cim Grammar): New.
2122 * src/conflicts.c (count_rr_conflicts): Fix.
2123
73784c64
AD
21242002-01-06 Akim Demaille <akim@epita.fr>
2125
2126 Creating package.m4 from configure.ac causes too many problems.
2127
2128 * tests/Makefile.am (package.m4): Create it by hand,
2129 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
2130
25d81090
AD
21312002-01-06 Akim Demaille <akim@epita.fr>
2132
2133 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
2134 skeleton.h.
2135
a9b8959e
PE
21362002-01-04 Paul Eggert <eggert@twinsun.com>
2137
2138 * doc/bison.texinfo (Debugging):
2139 Remove YYSTDERR; it's no longer defined or used.
2140 Also, s/cstdio.h/cstdio/.
2141
25d81090
AD
21422002-01-03 Akim Demaille <akim@epita.fr>
2143
2144 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
2145
1109455c
AD
21462002-01-03 Akim Demaille <akim@epita.fr>
2147
2148 * src/parse-skel.y (process_skeleton): Don't bind the parser's
2149 tracing code to --trace, wait for a better --trace option, with
2150 args.
2151
7ea5e977
AD
21522002-01-03 Akim Demaille <akim@epita.fr>
2153
2154 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
2155 The ISO C++ standard is extremely clear about it: stderr is
2156 considered a macro, not a regular symbol (see table 94 `Header
2157 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
2158 Therefore std:: does not apply to it. It still does with fprintf.
2159 Also, s/cstdio.h/cstdio/.
2160
fab5b110
AD
21612002-01-03 Akim Demaille <akim@epita.fr>
2162
2163 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
2164 for non system headers.
2165
aed7fd9b
AD
21662002-01-02 Akim Demaille <akim@epita.fr>
2167
2168 Equip the skeleton chain with location tracking, runtime trace,
2169 pure parser and scanner.
2170
2171 * src/parse-skel.y: Request a pure parser, locations, and prefix
2172 renaming.
2173 (%union): Having several members with the same type does not help
2174 type mismatches, simplify.
2175 (YYPRINT, yyprint): New.
2176 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
2177 (skel_error): this.
2178 Handle locations.
2179 * src/scan-skel.l: Adjust to these changes.
2180 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
2181 (LOCATION_PRINT, skel_control_t): New.
2182
24fad99e
AD
21832001-12-30 Akim Demaille <akim@epita.fr>
2184
2185 * src/parse-skel.y: Get rid of the shift/reduce conflict:
2186 replace `gb' with BLANKS.
2187 * src/scan-skel.l: Adjust.
2188
a4b36db4
AD
21892001-12-30 Akim Demaille <akim@epita.fr>
2190
2191 * src/system.h: We don't need nor want bcopy.
2192 Throw away MS-DOS crap: we don't need getpid.
2193 * configure.in: We don't need strndup. It was even causing
2194 problems: because Flex includes the headers *before* us,
2195 _GNU_SOURCE is not defined by config.h, and therefore strndup was
2196 not visible.
2197 * lib/xstrndup.c: New.
2198 * src/scan-skel.l: Use it.
2199 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
2200 * src/parse-skel.y: Use %directives instead of #defines.
2201
1239777d
AD
22022001-12-30 Akim Demaille <akim@epita.fr>
2203
2204 * src/skeleton.h: New.
2205 * src/output.c (output_parser, output_master_parser): Remove, dead
2206 code.
2207 * src/output.h (get_lines_number, actions_output, guards_output)
2208 (token_definitions_output): Prototype them.
2209 * src/parse-skel.y: Add the license notice.
2210 Include output.h and skeleton.h.
2211 (process_skeleton): Returns void, and takes a single parameter.
2212 * src/scan-skel.l: Add the license notice.
2213 Include skeleton.h.
2214 Don't use %option yylineno: it seems that then Flex imagines
2215 REJECT has been used, and therefore it won't reallocate its
2216 buffers (which makes no other sense to me than a bug). It results
2217 in warnings for `unused: yy_flex_realloc'.
2218
9b3add5b
RA
22192001-12-30 Robert Anisko <robert.anisko@epita.fr>
2220
2221 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
2222 (MUSCLE_INSERT_PREFIX): ...to there.
2223 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
2224 (MUSCLE_INSERT_PREFIX): Move from here...
2225
2226 * src/bison.hairy: Add a section directive. Put braces around muscle
2227 names. This parser skeleton is still broken, but Bison should not
2228 choke on a bad muscle 'syntax'.
2229 * src/bison.simple: Add a section directive. Put braces around muscle
2230 names.
2231
2232 * src/files.h (strsuffix, stringappend): Add declarations.
2233 (tab_extension): Add declaration.
2234 (short_base_name): Add declaration.
2235
2236 * src/files.c (strsuffix, stringappend): No longer static. These
2237 functions are used in the skeleton parser.
2238 (tab_extension): New.
2239 (compute_base_names): Use the computations done in this function
fab5b110 2240 to guess if the generated parsers should have '.tab' in their
9b3add5b
RA
2241 names.
2242 (short_base_name): No longer static.
2243
2244 * src/output.c (output_skeleton): New.
2245 (output): Disable call to output_master_parser, and give a try to
2246 a new skeleton handling system.
2247 (guards_output, actions_output): No longer static.
2248 (token_definitions_output, get_lines_number): No longer static.
2249
2250 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
2251
fab5b110 2252 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
9b3add5b
RA
2253 parse-skel.y.
2254
2255 * src/parse-skel.y: New file.
2256 * src/scan-skel.l: New file.
2257
b5b61c61
AD
22582001-12-29 Akim Demaille <akim@epita.fr>
2259
2260 %name-prefix is broken.
2261
2262 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
2263 Adjust all dependencies.
2264 * tests/headers.at (export YYLTYPE): Strengthen this test: use
2265 %name-prefix.
2266
2267 Renaming yylval but not yylloc is not consistent. Now we do.
2268
2269 * src/bison.simple: Prefix yylloc if used.
2270 * doc/bison.texinfo (Decl Summary): Document that.
2271
8c9a50be
AD
22722001-12-29 Akim Demaille <akim@epita.fr>
2273
2274 * doc/bison.texinfo: Promote `%long-directive' over
2275 `%long_directive'.
2276 Remove all references to fixed-output-files, yacc is enough.
2277
d99361e6
AD
22782001-12-29 Akim Demaille <akim@epita.fr>
2279
2280 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
2281 user prologue. These are defaults.
2282 * tests/actions.at (Mid-rule actions): Make sure the user can
2283 define YYDEBUG and YYERROR_VERBOSE.
2284
b9cecb91
AD
22852001-12-29 Akim Demaille <akim@epita.fr>
2286
2287 * src/output.c (header_output): Don't forget to export YYLTYPE and
2288 yylloc.
2289 * tests/headers.at (export YYLTYPE): New, make sure it does.
2290 * tests/regression.at (%union and --defines, Invalid CPP headers):
2291 Move to...
2292 * tests/headers.at: here.
2293
aea13e97
AD
22942001-12-29 Akim Demaille <akim@epita.fr>
2295
2296 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
2297
931394cb
AD
22982001-12-29 Akim Demaille <akim@epita.fr>
2299
2300 * tests/actions.at (Mid-rule actions): Output on a single line
2301 instead of several.
2302
704a47c4
AD
23032001-12-29 Akim Demaille <akim@epita.fr>
2304
2305 * doc/bison.texinfo: Formatting changes.
2306
091e20bb
AD
23072001-12-29 Akim Demaille <akim@epita.fr>
2308
2309 Don't store the token defs in a muscle, just be ready to output it
2310 on command. Now possible via `symbols'. Fixes a memory leak.
2311
2312 * src/output.c (token_definitions_output): New.
2313 (output_parser, header_output): Use it.
2314 * src/reader.c (symbols_save): Remove.
2315
cce71710
AD
23162001-12-29 Akim Demaille <akim@epita.fr>
2317
2318 * src/bison.simple: Do not provide a default for YYSTYPE and
2319 YYLTYPE before the user's prologue. Otherwise it's hardly... a
2320 default.
2321
82c035a8
AD
23222001-12-29 Akim Demaille <akim@epita.fr>
2323
2324 Mid-rule actions are simply... ignored!
2325
2326 * src/reader.c (readgram): Be sure to attach mid-rule actions to
2327 the empty-rule associated to the dummy symbol, not to the host
2328 rule.
2329 * tests/actions.at (Mid-rule actions): New.
2330
8419d367
AD
23312001-12-29 Akim Demaille <akim@epita.fr>
2332
2333 Memory leak.
2334
2335 * src/reader.c (reader): Free grammar.
2336
375d5806
AD
23372001-12-29 Akim Demaille <akim@epita.fr>
2338
2339 Memory leak.
2340
2341 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
2342 since it allocates it for each state, although only one is needed.
2343 (allocate_storage): Do it here.
2344
f51cb8ff
AD
23452001-12-29 Akim Demaille <akim@epita.fr>
2346
2347 * src/options.h, src/options.c (create_long_option_table): Rename
2348 as...
2349 (long_option_table_new): this, with a clearer prototype.
2350 (percent_table): Remove, unused,
2351 * src/getargs.c (getargs): Adjust.
2352
29e88316
AD
23532001-12-29 Akim Demaille <akim@epita.fr>
2354
2355 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
2356 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
2357 as states.
2358
b9f71f19
AD
23592001-12-29 Akim Demaille <akim@epita.fr>
2360
2361 * src/lalr.c (build_relations): Rename `states' as `states1'.
2362 Sorry, I don't understand exactly what it is, no better name...
2363
1a2b5d37
AD
23642001-12-29 Akim Demaille <akim@epita.fr>
2365
2366 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
2367 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
2368 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
2369 as rules.
2370
1cca533e
AD
23712001-12-29 Akim Demaille <akim@epita.fr>
2372
2373 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
2374 ago.
2375
c03ae966
AD
23762001-12-29 Akim Demaille <akim@epita.fr>
2377
2378 * src/reader.c, src/reader.h (user_toknums): Remove.
2379 Adjust all users to use symbols[i]->user_token_number.
2380
5a670b1e
AD
23812001-12-29 Akim Demaille <akim@epita.fr>
2382
2383 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
2384 Adjust all users to use symbols[i]->prec or ->assoc.
2385
ad949da9
AD
23862001-12-29 Akim Demaille <akim@epita.fr>
2387
2388 * src/reader.c, src/reader.h (tags): Remove.
2389 Adjust all users to use symbols[i]->tag.
2390
0e78e603
AD
23912001-12-29 Akim Demaille <akim@epita.fr>
2392
2393 * src/gram.h, src/gram.c (symbols): New, similar to state_table
2394 and rule_table.
2395 * src/reader.c (packsymbols): Fill this table.
2396 Drop sprec.
2397 * src/conflicts.c (resolve_sr_conflict): Adjust.
2398 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
2399 single table.
2400 Use symbols[i]->tag instead of tags[i].
2401
213e640e
AD
24022001-12-29 Akim Demaille <akim@epita.fr>
2403
2404 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
2405 In addition, put a comment in there, to replace...
2406 * tests/regression.at (%union and C comments): Remove.
2407
e7b8bef1
AD
24082001-12-29 Akim Demaille <akim@epita.fr>
2409
2410 * tests/regression.at (Web2c Actions): Blindly move the actual
2411 output as expected output. The contents *seem* right to me, but I
2412 can't pretend reading perfectly parser tables... Nonetheless, all
2413 the other tests pass correctly, the table look OK, even though the
2414 presence of `$axiom' is to be noted: AFAICS it is useless (but
2415 harmless).
2416
b68e7744
AD
24172001-12-29 Akim Demaille <akim@epita.fr>
2418
2419 * src/reader.c (readgram): Don't add the rule 0 if there were no
2420 rules read. In other words, add it _after_ having performed
2421 grammar sanity checks.
2422 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
2423
78d5bae9
AD
24242001-12-29 Akim Demaille <akim@epita.fr>
2425
2426 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
2427 visible, and some states have now a different number.
2428
ff442794
AD
24292001-12-29 Akim Demaille <akim@epita.fr>
2430
2431 * src/reader.c (readgram): Bind the initial rule's lineno to that
2432 of the first rule.
2433 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
2434 (Solved SR Conflicts): Adjust rule 0's line number.
2435
610ab194
AD
24362001-12-29 Akim Demaille <akim@epita.fr>
2437
2438 Fix the `GAWK Grammar' failure.
2439
2440 * src/LR0.c (final_state): Initialize to -1 so that we do compute
2441 the reductions of the first state which was mistakenly confused
2442 with the final state because precisely final_state was initialized
2443 to 0.
2444 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
2445 now noticed by Bison.
2446 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
2447 have a reduction on $default.
2448
29d29c8f
AD
24492001-12-29 Akim Demaille <akim@epita.fr>
2450
2451 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
2452 rule line numbers.
2453 * src/closure.c (print_closure): Likewise.
2454 * src/derives.c (print_derives): Likewise.
2455 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
2456 now.
2457
7c6b64d0
AD
24582001-12-29 Akim Demaille <akim@epita.fr>
2459
2460 * src/lalr.c (lookaheads_print): New.
2461 (lalr): Call it when --trace-flag.
2462 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
2463 are dumped.
2464
3d4daee3
AD
24652001-12-29 Akim Demaille <akim@epita.fr>
2466
2467 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
2468 when walking through ritem, even via rule->rhs.
2469 * src/reduce.c (dump_grammar, useful_production, reduce_output)
2470 (useful_production, useless_nonterminals): Likewise.
2471 (reduce_grammar_tables): Likewise, plus update nritems.
2472 * src/nullable.c (set_nullable): Likewise.
2473 * src/lalr.c (build_relations): Likewise.
2474 * tests/sets.at (Nullable): Adjust.
2475 Fortunately, now, the $axiom is no longer nullable.
2476
9e7f6bbd
AD
24772001-12-29 Akim Demaille <akim@epita.fr>
2478
2479 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
2480 the 0-sentinel.
2481 * src/gram.c (ritem_longest_rhs): Likewise.
2482 * src/reduce.c (nonterminals_reduce): Likewise.
2483 * src/print_graph.c (print_graph): Likewise.
2484 * src/output.c (output_rule_data): Likewise.
2485 * src/nullable.c (set_nullable): Likewise.
2486
255ef638
AD
24872001-12-29 Akim Demaille <akim@epita.fr>
2488
2489 * src/output.c: Comment changes.
2490
0d8a7363
AD
24912001-12-27 Paul Eggert <eggert@twinsun.com>
2492
2493 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
2494 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
2495 Sparc, as they were causing more porting problems than the
2496 (minor) performance improvement was worth.
2497
2498 Also, catch up with 1.31's YYSTD.
2499
3db472b9
AD
25002001-12-27 Akim Demaille <akim@epita.fr>
2501
2502 * src/output.c (output_gram): Rely on nritems, not the
2503 0-sentinel. See below.
2504 Use -1 as separator, not 0.
2505 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
2506 Rely on -1 as separator in yyrhs, instead of 0.
2507 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
2508 twice `Now at end of input', therefore there are two lines less to
2509 expect.
2510
b365aa05
AD
25112001-12-27 Akim Demaille <akim@epita.fr>
2512
2513 * tests/regression.at (Unresolved SR Conflicts):
2514 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
2515 below.
2516
30171f79
AD
25172001-12-27 Akim Demaille <akim@epita.fr>
2518
2519 * src/LR0.c (new_state): Recognize the final state by the fact it
2520 is reached by eoftoken.
2521 (insert_start_shifting_state, insert_eof_shifting_state)
2522 (insert_accepting_state, augment_automaton): Remove, since now
2523 these states are automatically computed from the initial state.
2524 (generate_states): Adjust.
2525 * src/print.c: When reporting a rule number to the user, substract
2526 1, so that the axiom rule is rule 0, and the first user rule is 1.
2527 * src/reduce.c: Likewise.
2528 * src/print_graph.c (print_core): For the time being, just as for
2529 the report, depend upon --trace-flags to dump the full set of
2530 items.
2531 * src/reader.c (readgram): Once the grammar read, insert the rule
2532 0: `$axiom: START-SYMBOL $'.
2533 * tests/set.at: Adjust: rule 0 is now displayed, and since the
2534 number of the states has changed (the final state is no longer
2535 necessarily the last), catch up.
2536
75142d45
AD
25372001-12-27 Akim Demaille <akim@epita.fr>
2538
2539 Try to make the use of the eoftoken valid. Given that its value
2540 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
2541 is used instead of > 0 where appropriate, (ii), depend upon nritems
2542 instead of the 0-sentinel.
2543
2544 * src/gram.h, src/gram.c (nritems): New.
2545 Expected to be duplication of nitems, but for the time being...
2546 * src/reader.c (packgram): Assert nritems and nitems are equal.
2547 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
2548 * src/closure.c (print_closure, print_fderives): Likewise.
2549 * src/gram.c (ritem_print): Likewise.
2550 * src/print.c (print_core, print_grammar): Likewise.
2551 * src/print_graph.c: Likewise.
2552
b7c49edf
AD
25532001-12-27 Akim Demaille <akim@epita.fr>
2554
2555 * src/main.c (main): If there are complains after grammar
2556 reductions, then output the report anyway if requested, then die.
2557 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
2558 * src/reader.c (eoftoken): New.
2559 (parse_token_decl): If the token being defined has value `0', it
2560 is the eoftoken.
2561 (packsymbols): No longer hack `tags' to insert `$' by hand.
2562 Be sure to preserve the value of the eoftoken.
2563 (reader): Make sure eoftoken is defined.
2564 Initialize nsyms to 0: now eoftoken is created just like the others.
2565 * src/print.c (print_grammar): Don't special case the eof token.
2566 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
2567 lie anyway, albeit pleasant.
2568 * tests/calc.at: Exercise error messages with eoftoken.
2569 Change the grammar so that empty input is invalid.
2570 Adjust expectations.
2571 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
2572
ec2da99f
AD
25732001-12-27 Akim Demaille <akim@epita.fr>
2574
2575 * configure.in: Check the protos of strchr ans strspn.
2576 Replace strchr if needed.
2577 * src/system.h: Provide the protos of strchr, strspn and memchr if
2578 missing.
2579 * lib/strchr.c: New.
2580 * src/reader.c (symbols_save): Use strchr.
2581
8adfa272
AD
25822001-12-27 Akim Demaille <akim@epita.fr>
2583
2584 * src/print.c, src/print_graph.c (escape): New.
2585 Use it to quote the TAGS outputs.
2586 * src/print_graph.c (print_state): Now errors are in red, and
2587 reductions in green.
2588 Prefer high to wide: output the state number on a line of its own.
2589
80dac38c
AD
25902001-12-27 Akim Demaille <akim@epita.fr>
2591
2592 * src/state.h, src/state.c (reductions_new): New.
2593 * src/LR0.c (set_state_table): Let all the states have a
2594 `reductions', even if reduced to 0.
2595 (save_reductions): Adjust.
2596 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
2597 * src/print.c (print_reductions, print_actions): Adjust.
2598 * src/output.c (action_row): Adjust.
2599
2cec70b9
AD
26002001-12-27 Akim Demaille <akim@epita.fr>
2601
2602 * src/state.h, src/state.c (errs_new, errs_dup): New.
2603 * src/LR0.c (set_state_table): Let all the states have an errs,
2604 even if reduced to 0.
2605 * src/print.c (print_errs, print_reductions): Adjust.
2606 * src/output.c (output_actions, action_row): Adjust.
2607 * src/conflicts.c (resolve_sr_conflict): Adjust.
2608
13ca549a
AD
26092001-12-27 Akim Demaille <akim@epita.fr>
2610
2611 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
2612
5092aba5
AD
26132001-12-27 Akim Demaille <akim@epita.fr>
2614
2615 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
2616 * src/print.c: here.
2617 (lookaheadset, shiftset): New, used as additional storage by
2618 print_reductions.
2619 (print_results): Adjust.
2620 (print_shifts, print_gotos, print_errs): New, extracted from...
2621 (print_actions): here.
2622 * src/print_graph.c (print_actions): Remove dead code.
2623
11e2beca
AD
26242001-12-27 Akim Demaille <akim@epita.fr>
2625
2626 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
2627 `$n' and `@n'.
2628
dac3c910
AD
26292001-12-27 Akim Demaille <akim@epita.fr>
2630
2631 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
2632 (build_relations): Adjust.
2633
d0b0fefa
AD
26342001-12-27 Akim Demaille <akim@epita.fr>
2635
2636 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
2637 duplication.
2638
adc8c848
AD
26392001-12-27 Akim Demaille <akim@epita.fr>
2640
2641 * src/reader.c (packgram): Catch nitems overflows.
2642
14d293ac
AD
26432001-12-27 Akim Demaille <akim@epita.fr>
2644
2645 * src/files.c, src/files.h (guard_obstack): Remove.
2646 * src/output.c (output): Adjust.
2647 * src/reader.c (parse_braces): New, factoring...
2648 (copy_action, copy_guard): these two which are renamed as...
2649 (parse_action, parse_guard): these.
2650 As a voluntary consequence, using braces around guards is now
2651 mandatory.
2652
f499b062
AD
26532001-12-27 Akim Demaille <akim@epita.fr>
2654
2655 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
2656 * src/reader.c (symbol_list): `guard' and `guard_line' are new
2657 members.
2658 (symbol_list_new): Adjust.
2659 (copy_action): action_line is the first line, not the last.
2660 (copy_guard): Just as for actions, store the `action' only, not
2661 the switch/case/break flesh.
2662 Don't parse the user action that might follow the guard, let...
2663 (readgram): do it, i.e., now, there can be an action after a
2664 guard.
2665 In other words the guard is just explicitly optional.
2666 (packgram): Adjust.
2667 * src/output.c (guards_output): New.
2668 (output_parser): Call it when needed.
2669 (output): Also free the guard and attrs obstacks.
2670 * src/files.c, src/files.h (obstack_save): Remove.
2671 (output_files): Remove.
2672 As a result, if one needs the former `.act' file, using an
2673 appropriate skeleton which requires actions and guards is now
2674 required.
2675 * src/main.c (main): Adjust.
2676 * tests/semantic.at: New.
2677 * tests/regression.at: Use `input.y' as input file name.
2678 Avoid 8+3 problems by requiring input.c when the test needs the
2679 parser.
2680
d945f5cd
AD
26812001-12-27 Akim Demaille <akim@epita.fr>
2682
2683 * src/reader.c (symbol_list_new): Be sure to initialize all the
2684 fields.
2685
d200e455
AD
26862001-12-27 Akim Demaille <akim@epita.fr>
2687
2688 All the hacks using a final pseudo state are now useless.
2689
2690 * src/LR0.c (set_state_table): state_table holds exactly nstates.
2691 * src/lalr.c (nLA): New.
2692 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
2693 instead of lookaheadsp from the pseudo state (nstate + 1).
2694
f9507c28
AD
26952001-12-27 Akim Demaille <akim@epita.fr>
2696
2697 * src/output.c (action_row, token_actions): Use a state_t instead
2698 of a integer, and nlookaheads instead of the following state's
2699 lookaheadsp.
2700
065fbd27
AD
27012001-12-27 Akim Demaille <akim@epita.fr>
2702
2703 * src/conflicts.c (log_resolution, flush_shift)
2704 (resolve_sr_conflict, set_conflicts, solve_conflicts)
2705 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
2706 (conflicts_print, print_reductions): Use a state_t instead of an
2707 integer when referring to a state.
2708 As much as possible, depend upon nlookaheads, instead of the
2709 `lookaheadsp' member of the following state (since lookaheads of
2710 successive states are successive, the difference between state n + 1
2711 and n served as the number of lookaheads for state n).
2712 * src/lalr.c (add_lookback_edge): Likewise.
2713 * src/print.c (print_core, print_actions, print_state)
2714 (print_results): Likewise.
2715 * src/print_graph.c (print_core, print_actions, print_state)
2716 (print_graph): Likewise.
2717 * src/conflicts.h: Adjust.
2718
1b177bd7
AD
27192001-12-27 Akim Demaille <akim@epita.fr>
2720
2721 * src/bison.hairy: Formatting/comment changes.
2722 ANSIfy.
2723 Remove `register' indications.
2724 Add plenty of `static'.
2725
7742ddeb
AD
27262001-12-27 Akim Demaille <akim@epita.fr>
2727
2728 * src/output.c (prepare): Drop the muscle `ntbase' which
2729 duplicates ntokens.
2730 * src/bison.simple: Formatting/comment changes.
2731 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
2732 is an undocumented synonym.
2733
1fa14068
AD
27342001-12-22 Akim Demaille <akim@epita.fr>
2735
2736 * src/output.c (output_table_data): Change the prototype to use
2737 `int' for array ranges: some invocations do pass an int, not a
2738 short.
2739 Reported by Wayne Green.
2740
b9752825
AD
27412001-12-22 Akim Demaille <akim@epita.fr>
2742
2743 Some actions of web2c.y are improperly triggered.
2744 Reported by Mike Castle.
2745
2746 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
2747 * tests/regression.at (Web2c): Rename as...
2748 (Web2c Report): this.
2749 (Web2c Actions): New.
2750
776209d6
AD
27512001-12-22 Akim Demaille <akim@epita.fr>
2752
2753 Reductions in web2c.y are improperly reported.
2754 Reported by Mike Castle.
2755
2756 * src/conflicts.c (print_reductions): Fix.
2757 * tests/regression.at (Web2c): New.
2758
275fc3ad
AD
27592001-12-18 Akim Demaille <akim@epita.fr>
2760
2761 Some host fail on `assert (!"foo")', which expands to
2762 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
2763 Reported by Nelson Beebee.
2764
2765 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
2766 `#define it_succeeded 0' and `assert (it_succeeded)'.
2767
897668ee
MA
27682001-12-17 Marc Autret <autret_m@epita.fr>
2769
2770 * src/bison.simple: Don't hard code the skeleton line and filename.
2771 * src/output.c (output_parser): Rename 'line' as 'output_line'.
2772 New line counter 'skeleton_line' (skeleton-line muscle).
2773
ab3399e0
PE
27742001-12-17 Paul Eggert <eggert@twinsun.com>
2775
2776 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
2777 YYDEBUG must be defined to a nonzero value.
2778
2779 * src/bison.simple (yytname): Do not assume that the user defines
2780 YYDEBUG to a properly parenthesized expression.
2781
3877f72b
AD
27822001-12-17 Akim Demaille <akim@epita.fr>
2783
2784 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
2785 nlookaheads is a new member.
2786 Adjust all users.
2787 * src/lalr.h (nlookaheads): Remove this orphan declaration.
2788 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
2789 state.
776209d6 2790
331dbc1b
AD
27912001-12-17 Akim Demaille <akim@epita.fr>
2792
2793 * src/files.h, src/files.c (open_files, close_files): Remove.
2794 * src/main.c (main): Don't open/close files, nor invoke lex_free,
2795 let...
2796 * src/reader.c (reader): Do it.
776209d6 2797
be750e4c
AD
27982001-12-17 Akim Demaille <akim@epita.fr>
2799
2800 * src/conflicts.c (print_reductions): Formatting changes.
776209d6 2801
709ae8c6
AD
28022001-12-17 Akim Demaille <akim@epita.fr>
2803
2804 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
2805 (flush_reduce): New.
2806 (resolve_sr_conflict): Adjust.
776209d6 2807
f87685c3
AD
28082001-12-17 Akim Demaille <akim@epita.fr>
2809
2810 * src/output.c (output_obstack): Be static and rename as...
2811 (format_obstack): this, to avoid any confusion with files.c's
2812 output_obstack.
2813 * src/reader.h (muscle_obstack): Move to...
2814 * src/output.h: here, since it's defined in output.c.
2815
837491d8
AD
28162001-12-17 Akim Demaille <akim@epita.fr>
2817
2818 * src/output.c (action_row, save_column, default_goto)
2819 (sort_actions, matching_state, pack_vector): Better variable
2820 locality.
2821
796d61fb
AD
28222001-12-17 Akim Demaille <akim@epita.fr>
2823
2824 * src/output.c: Various formatting changes.
776209d6 2825
64d15509
AD
28262001-12-17 Akim Demaille <akim@epita.fr>
2827
2828 * src/files.c (output_files): Free the output_obstack.
2829 * src/main.c (main): Call print and print_graph conditionally.
2830 * src/print.c (print): Work unconditionally.
2831 * src/print_graph.c (print_graph): Work unconditionally.
2832 * src/conflicts.c (log_resolution): Output only if verbose_flag.
2833
fbc8ecb7
MA
28342001-12-16 Marc Autret <autret_m@epita.fr>
2835
2836 * src/output.c (actions_output): Fix. When we use %no-lines,
2837 there is one less line per action.
2838
f0440388
MA
28392001-12-16 Marc Autret <autret_m@epita.fr>
2840
2841 * src/bison.simple: Remove a useless #line directive.
2842 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
2843 * src/output.c (get_lines_number): New.
776209d6 2844 (output_parser): Adjust, now takes care about the lines of a
f0440388
MA
2845 output muscles.
2846 Fix line numbering.
2847 (actions_output): Computes the number of lines taken by actions.
2848 (output_master_parser): Insert new skeleton which is the name of
2849 the output parser file name.
2850
a79986b8
MA
28512001-12-15 Marc Autret <autret_m@epita.fr>
2852
2853 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
2854
4ec8e00f
MA
28552001-12-15 Marc Autret <autret_m@epita.fr>
2856
2857 * src/output.c (output_gram): Keep track of the hairy one.
2858
1a4648ff
AD
28592001-12-15 Akim Demaille <akim@epita.fr>
2860
2861 Make `make distcheck' work.
2862
2863 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
2864 system.h which uses libgettext.h.
2865
9c2c67e6
AD
28662001-12-15 Akim Demaille <akim@epita.fr>
2867
2868 * src/nullable.c (set_nullable): Useless rules must be skipped,
2869 otherwise, since we range over their symbols, we might look at a
2870 nonterminal which no longer ``exists'', i.e., it is not counted in
2871 `nvars', hence we overflow our arrays.
2872
93ede233
AD
28732001-12-15 Akim Demaille <akim@epita.fr>
2874
2875 The header can also be produced directly, without any obstack!
2876 Yahoo!
2877
2878 * src/files.c, src/files.h (defines_obstack): Remove.
2879 (compute_header_macro): Global.
2880 (defines_obstack_save): Remove.
2881 * src/reader.c (parse_union_decl): No longer output to
2882 defines_obstack: its content can be found in the `stype' muscle
2883 anyway.
2884 (output_token_translations): Merge into...
2885 (symbols_output): this.
2886 Rename as...
2887 (symbols_save): this.
2888 (reader): Adjust.
2889 * src/output.c (header_output): New.
2890 (output): Call it.
2891
2666f928
AD
28922001-12-15 Akim Demaille <akim@epita.fr>
2893
2894 * src/reader.c (parse_union_decl): Instead of handling two obstack
2895 simultaneously, use one to define the `stype' muscle, and use the
2896 value of the latter to fill defines_obstack.
2897 (copy_comment): Remove.
2898 (copy_comment2): Work for a single obstack.
2899 Rename as...
2900 (copy_comment): this.
2901
428046f8
AD
29022001-12-15 Akim Demaille <akim@epita.fr>
2903
2904 * src/lex.c, src/lex.h (xgetc): No longer static.
2905 * src/reader.c (parse_union_decl): Revamp.
2906
ea52d706
AD
29072001-12-15 Akim Demaille <akim@epita.fr>
2908
2909 Still making progress in separating Bison into (i) input, (ii)
2910 process, (iii) output: now we can directly output the parser file
2911 without using table_obstack at all.
2912
2913 * src/files.c, src/files.h (table_obstack): Bye bye.
2914 (parser_file_name): New.
2915 * src/files.c (compute_output_file_names): Compute it.
2916 * src/output.c (actions_output, output_parser)
2917 (output_master_parser): To a file instead of an obstack.
2918
3f96f4dc
AD
29192001-12-15 Akim Demaille <akim@epita.fr>
2920
2921 Attach actions to rules, instead of pre-outputting them to
2922 actions_obstack.
2923
2924 * src/gram.h (rule_t): action and action_line are new members.
2925 * src/reader.c (symbol_list): Likewise.
2926 (copy_action): Save the actions within the rule.
2927 (packgram): Save them in rule_table.
2928 * src/output.c (actions_output): New.
2929 (output_parser): Use it on `%%actions'.
2930 (output_rule_data): Don't free rule_table.
2931 (output): Do it.
2932 (prepare): Don't save the `action' muscle.
2933 * src/bison.simple: s/%%action/%%actions/.
2934
51576fb3
AD
29352001-12-15 Akim Demaille <akim@epita.fr>
2936
2937 * src/reader.c (copy_action): When --yacc, don't append a `;'
2938 to the user action: let it fail if lacking.
dee049eb 2939 Suggested by Arnold Robbins and Tom Tromey.
51576fb3 2940
2648a72d
AD
29412001-12-14 Akim Demaille <akim@epita.fr>
2942
2943 * src/lex.c (literalchar): Simply return the char you decoded, non
2944 longer mess around with obstacks and int pointers.
2945 Adjust all callers.
2946
92790e5b
AD
29472001-12-14 Akim Demaille <akim@epita.fr>
2948
2949 * src/lex.c (literalchar): Don't escape the special characters,
2950 just decode them, and keep them as char (before, eol was output as
2951 the 2 char string `\n' etc.).
2952 * src/output.c (output_rule_data): Use quotearg to output the
2953 token strings.
2954
927c1557
PE
29552001-12-13 Paul Eggert <eggert@twinsun.com>
2956
2957 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
2958 Do not infringe on the global user namespace when using C++.
2959 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
2960 All uses of `fprintf' and `stderr' changed.
2961
2962 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
2963
ed8e1f68
AD
29642001-12-13 Akim Demaille <akim@epita.fr>
2965
2966 The computation of nullable is broken: it doesn't handle empty
2967 RHS's properly.
2968
2969 * tests/torture.at (GNU AWK Grammar): New.
2970 * tests/sets.at (Nullable): New.
2971 * src/nullable.c (set_nullable): Instead of blindly looping over
2972 `ritems', loop over the rules, and then over their rhs's.
2973
2974 Work around Autotest bugs.
2975
2976 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
2977 frame, because Autotest understand lines starting with a `+' as
2978 traces from the shell. Then, they are not processed properly.
2979 Admittedly an Autotest bug, but we don't have time to wait for
2980 Autotest to catch up.
2981 * tests/regression.at (Broken Closure): Adjust to the new table
2982 frames.
2983 Move to...
2984 * tests/sets.at: here.
2985
cb581495
AD
29862001-12-13 Akim Demaille <akim@epita.fr>
2987
2988 * src/closure.c (closure): Use nrules instead of playing tricks
2989 with BITS_PER_WORD.
2990
2e729273
AD
29912001-12-13 Akim Demaille <akim@epita.fr>
2992
2993 * src/print.c (print_actions): Output the handling of `$' as the
2994 traces do: shifting the token EOF. Before EOF was treated as a
2995 nonterminal.
2996 * tests/regression.at: Adjust some tests.
2997 * src/print_graph.c (print_core): Complete the set of items via
2998 closure. The next-to-final and final states are still unsatisfying,
2999 but that's to be addressed elsewhere.
3000 No longer output the rule numbers, but do output the state number.
3001 A single loop for the shifts + gotos is enough, but picked a
3002 distinct color for each.
3003 (print_graph): Initialize and finalize closure.
3004
107f7dfb
AD
30052001-12-13 Akim Demaille <akim@epita.fr>
3006
3007 * src/reader.c (readgram): Remove dead code, an strip useless
3008 braces.
3009 (get_type): Remove, unused.
3010
9b53a24f
AD
30112001-12-12 Akim Demaille <akim@epita.fr>
3012
3013 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
3014 on that of lib/error.c.
3015
dbfb6dcd
AD
30162001-12-12 Akim Demaille <akim@epita.fr>
3017
3018 Some hosts don't like `/' in includes.
3019
3020 * src/system.h: Include libgettext.h without qualifying the path.
3021 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
3022 $(top_srcdir).
3023
c25fb648
MA
30242001-12-11 Marc Autret <autret_m@epita.fr>
3025
3026 * src/output.c (output_parser): Remove useless muscle.
3027
710ddc4f
MA
30282001-12-11 Marc Autret <autret_m@epita.fr>
3029
3030 * src/bison.simple: Remove #line just before %%epilogue. It
3031 is now handled in ...
3032 * src/reader.c (read_additionnal_code): Add the output of a
3033 #line for the epilogue.
3034
e83d80b8
MA
30352001-12-10 Marc Autret <autret_m@epita.fr>
3036
927c1557 3037 * src/reader.c (copy_definition): Re-use CPP-outed code which
e83d80b8
MA
3038 replace precedent remove.
3039 * src/bison.simple: Remove #line before %%prologue because
3040 %%input-line is wrong at this time.
3041
971d5158
MA
30422001-12-10 Marc Autret <autret_m@epita.fr>
3043
3044 * src/reader.c (symbols_output): Clean up.
927c1557 3045 * src/output.c (output_gram, output): Clean up.
971d5158 3046
5edafffd
AD
30472001-12-10 Akim Demaille <akim@epita.fr>
3048
3049 * src/lalr.c (initialize_lookaheads): New. Extracted from...
3050 * src/LR0.c (set_state_table): here.
3051 * src/lalr.c (lalr): Call it.
3052
0279f8e9
AD
30532001-12-10 Akim Demaille <akim@epita.fr>
3054
3055 * src/state.h (shifts): Remove the `number' member: shifts are
3056 attached to state, hence no longer need to be labelled with a
3057 state number.
3058
190c4f5f
AD
30592001-12-10 Akim Demaille <akim@epita.fr>
3060
3061 Now that states have a complete set of members, the linked list of
3062 shifts is useless: just fill directly the state's shifts member.
3063
3064 * src/state.h (shifts): Remove the `next' member.
3065 * src/LR0.c (first_state, last_state): Remove.
3066 Adjust the callers.
3067 (augment_automaton): Don't look for the shifts that must be added
3068 a shift on EOF: it is those of the state we looked for! But now,
3069 since shifts are attached, it is no longer needed to looking
3070 merely by its id: its number.
3071
2a73b93d
AD
30722001-12-10 Akim Demaille <akim@epita.fr>
3073
3074 * src/LR0.c (augment_automaton): Better variable locality.
3075 Remove an impossible branch: if there is a state corresponding to
3076 the start symbol being shifted, then there is shift for the start
3077 symbol from the initial state.
3078
74392f6a
AD
30792001-12-10 Akim Demaille <akim@epita.fr>
3080
3081 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
3082 only when appropriate: when insert_start_shifting_state' is not
3083 invoked.
3084 * tests/regression.at (Rule Line Numbers): Adjust.
3085
37c82725
AD
30862001-12-10 Akim Demaille <akim@epita.fr>
3087
3088 * src/LR0.c (augment_automaton): Now that all states have shifts,
3089 merge the two cases addition shifts to the initial state.
3090
6a164e0c
AD
30912001-12-10 Akim Demaille <akim@epita.fr>
3092
3093 * src/lalr.c (set_state_table): Move to...
3094 * src/LR0.c: here.
3095 * src/lalr.c (lalr): Don't call it...
3096 * src/LR0.c (generate_states): do it.
3097 * src/LR0.h (first_state): Remove, only the table is used.
3098
7215de24
AD
30992001-12-10 Akim Demaille <akim@epita.fr>
3100
3101 * src/LR0.h (first_shift, first_reduction): Remove.
3102 * src/lalr.c: Don't use first_shift: find shifts through the
3103 states.
3104
80e25d4d
AD
31052001-12-10 Akim Demaille <akim@epita.fr>
3106
3107 * src/LR0.c: Attach shifts to states as soon as they are
3108 computed.
3109 * src/lalr.c (set_state_table): Instead of assigning shifts to
3110 state, just assert that the mapping was properly done.
3111
0ab3728b
AD
31122001-12-10 Akim Demaille <akim@epita.fr>
3113
3114 * src/LR0.c (insert_start_shift): Rename as...
3115 (insert_start_shifting_state): this.
3116 (insert_eof_shifting_state, insert_accepting_state): New.
3117 (augment_automaton): Adjust.
3118 Better locality of the variables.
3119 When looking if the start_symbol is shifted from the initial
3120 state, using `while (... symbol != start_symbol ...)' sounds
3121 better than `while (... symbol < start_symbol ...)': If fail
3122 to see how the order between symbols could be relevant!
3123
78af9bbc
AD
31242001-12-10 Akim Demaille <akim@epita.fr>
3125
3126 * src/getargs.h: Don't declare `spec_name_prefix' and
3127 `spec_file_prefix', declared by src/files.h.
3128 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
3129 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
3130 * src/output.c (prepare): Adjust.
3131 * src/reader.c (symbols_output): Likewise.
3132 * src/vmsgetargs.c: Vaguely adjust, but who cares?
3133
bdef2a41
AD
31342001-12-10 Akim Demaille <akim@epita.fr>
3135
3136 * src/muscle_tab.c (muscle_init): NULL is a better default than
3137 `"0"'.
3138
3735969c
AD
31392001-12-10 Akim Demaille <akim@epita.fr>
3140
3141 * src/reader.c (reader): Calling symbols_output once is enough.
3142
49701457
AD
31432001-12-10 Akim Demaille <akim@epita.fr>
3144
3145 Now that states have a complete set of members, the linked list of
3146 reductions is useless: just fill directly the state's reductions
3147 member.
3148
3149 * src/state.h (struct reductions): Remove member `number' and
3150 `next'.
3151 * src/LR0.c (first_reduction, last_reduction): Remove.
3152 (save_reductions): Don't link the new reductions, store them in
3153 this_state.
3154 * src/lalr.c (set_state_table): No need to attach reductions to
3155 states, it's already done.
3156 * src/output.c (output_actions): No longer free the shifts, then
3157 the reductions, then the states: free all the states and their
3158 members.
3159
0edad749
AD
31602001-12-10 Akim Demaille <akim@epita.fr>
3161
3162 * src/options.c (OPTN, DRTV, BOTH): New.
3163 (option_table): Use them.
3164
0edad749
AD
3165 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
3166 the job of system.h.
3167 * src/options.c: Don't include stdio.h and xalloc.h for the same
3168 reasons.
3169
5449dd0f
AD
31702001-12-10 Akim Demaille <akim@epita.fr>
3171
3172 * src/output.c (output, prepare): Make sure the values of the
3173 muscles `action' and `prologue' are 0-terminated.
3174
a870c567
AD
31752001-12-10 Akim Demaille <akim@epita.fr>
3176
3177 Clean up GCC warnings.
3178
3179 * src/reader.c (copy_action): `buf' is not used.
3180 (parse_skel_decl): Be static.
3181 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
3182 * src/options.h (create_long_option_table): Have a real prototype.
3183 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
3184 (hash_delete_at): Return const void *.
3185 Adjust casts to preserve the const.
3186
80df8768
AD
31872001-12-10 Akim Demaille <akim@epita.fr>
3188
3189 * configure.in: Require 2.52g.
3190 M4 is not needed, but AUTOM4TE is.
3191 * m4/m4.m4: Remove.
3192 * tests/Makefile.am: Adjust.
3193
f693ad14
AD
31942001-12-10 Akim Demaille <akim@epita.fr>
3195
3196 One structure for states is enough, even though theoretically
3197 there are LR(0) states and LALR(1) states.
3198
3199 * src/lalr.h (state_t): Remove.
3200 (state_table): Be state_t **, not state_t *.
3201 * src/state.h (core, CORE_ALLOC): Rename as...
3202 (state_t, STATE_ALLOC): this.
3203 Add the LALR(1) members: shifts, reductions, errs.
3204 * src/LR0.c (state_table): Rename as...
3205 (state_hash): this, to avoid name clashes with the global
3206 `state_table'.
3207 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
3208 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
3209
74ffbcb6
AD
32102001-12-10 Akim Demaille <akim@epita.fr>
3211
3212 Bison dumps core on bash.y.
3213 Reported by Pascal Bart.
3214
3215 * src/warshall.c (bitmatrix_print): New.
3216 (TC): Use it.
3217 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
3218 j must be the outer loop.
3219 * tests/regression.at (Broken Closure): New.
3220
07708e19
AD
32212001-12-05 Akim Demaille <akim@epita.fr>
3222
3223 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
3224 its argument.
3225