]> git.saurik.com Git - bison.git/blob - ChangeLog
* doc/bison.texinfo: Document ability to have multiple
[bison.git] / ChangeLog
1 2002-06-19 Zack Weinberg <zack@codesourcery.com>
2
3 * doc/bison.texinfo: Document ability to have multiple
4 prologue sections.
5
6 2002-06-18 Akim Demaille <akim@epita.fr>
7
8 * src/files.c (compute_base_names): When computing the output file
9 names from the input file name, strip the directory part.
10
11 2002-06-18 Akim Demaille <akim@epita.fr>
12
13 * data/bison.simple.new: Comment changes.
14 Reported by Andreas Schwab.
15
16 2002-06-18 Matt Kraai <kraai@alumni.cmu.edu>
17
18 * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
19 there are no `label `yyoverflowlab' defined but not used' warnings
20 when yyoverflow is defined.
21
22 2002-06-18 Akim Demaille <akim@epita.fr>
23
24 * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a
25 new member.
26 (symbol_destructor_set): Adjust.
27 * src/output.c (symbol_destructors_output): Output the destructor
28 locations.
29 Output the symbol name.
30 * data/bison.simple (b4_symbol_destructor): Adjust.
31
32 2002-06-18 Cris Bailiff <c.bailiff@awayweb.com>
33 and Akim Demaille <akim@epita.fr>
34
35 * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy
36 what's left on the stack when the error recovery hits EOF.
37 * tests/actions.at (Destructors): Complete to exercise this case.
38
39 2002-06-17 Akim Demaille <akim@epita.fr>
40
41 * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of
42 arguments is really empty, not only equal to `[]'.
43 * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new
44 member.
45 (symbol_destructor_set): New.
46 * src/output.c (symbol_destructors_output): New.
47 * src/reader.h (brace_code_t, current_braced_code): New.
48 * src/scan-gram.l (BRACED_CODE): Use it to branch on...
49 (handle_dollar): Rename as...
50 (handle_action_dollar): this.
51 (handle_destructor_dollar): New.
52 * src/parse-gram.y (PERCENT_DESTRUCTOR): New.
53 (grammar_declaration): Use it.
54 * data/bison.simple (yystos): Is always defined.
55 (yydestructor): New.
56 * tests/actions.at (Destructors): New.
57 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep.
58
59 2002-06-17 Akim Demaille <akim@epita.fr>
60
61 * src/symlist.h, src/symlist.c (symbol_list_length): New.
62 * src/scan-gram.l (handle_dollar, handle_at): Compute the
63 rule_length only when needed.
64 * src/output.c (actions_output, token_definitions_output): Output
65 the full M4 block.
66 * src/symtab.c: Don't access directly to the symbol tag, use
67 symbol_tag_get.
68 * src/parse-gram.y: Use symbol_list_free.
69
70 2002-06-17 Akim Demaille <akim@epita.fr>
71
72 * src/reader.h, src/reader.c (symbol_list, symbol_list_new)
73 (symbol_list_prepend, get_type_name): Move to...
74 * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new)
75 (symbol_list_prepend, symbol_list_n_type_name_get): here.
76 Adjust all callers.
77 (symbol_list_free): New.
78 * src/scan-gram.l (handle_dollar): Takes a location.
79 * tests/input.at (Invalid $n): Adjust.
80
81 2002-06-17 Akim Demaille <akim@epita.fr>
82
83 * src/reader.h, src/reader.c (symbol_list_new): Export it.
84 (symbol_list_prepend): New.
85 * src/parse-gram.y (%union): `list' is a new member.
86 (symbols.1): New, replaces...
87 (terms_to_prec.1, nterms_to_type.1): these.
88 * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set)
89 Take a location as additional argument.
90 Adjust all callers.
91
92 2002-06-15 Akim Demaille <akim@epita.fr>
93
94 * src/parse-gram.y: Move %token in the declaration section so that
95 we don't depend upon CVS Bison.
96
97 2002-06-15 Akim Demaille <akim@epita.fr>
98
99 * src/state.h, src/state.c (state_rule_lookaheads_print): New.
100 * src/print.c (print_core): Use it.
101
102 2002-06-15 Akim Demaille <akim@epita.fr>
103
104 * src/conflicts.c (log_resolution): Accept the rule involved in
105 the sr conflicts instead of the lookahead number that points to
106 that rule.
107 (flush_reduce): Accept the current lookahead vector as argument,
108 instead of the index in LA.
109 (resolve_sr_conflict): Accept the current number of lookahead
110 bitset to consider for the STATE, instead of the index in LA.
111 (set_conflicts): Adjust.
112 * src/lalr.c, src/lalr.h, src/state.h: Comment changes.
113
114 2002-06-15 Akim Demaille <akim@epita.fr>
115
116 * src/state.h (state_t): Replace the `lookaheadsp' member, a
117 short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**).
118 Adjust all dependencies.
119 * src/lalr.c (initialize_lookaheads): Split into...
120 (states_lookaheads_count, states_lookaheads_initialize): these.
121 (lalr): Adjust.
122
123 2002-06-15 Akim Demaille <akim@epita.fr>
124
125 * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved
126 out of...
127 (grammar_rules_print): here.
128 * src/reduce.c (reduce_output): Use it.
129 * tests/reduce.at (Useless Rules, Reduced Automaton)
130 (Underivable Rules): Adjust.
131
132 2002-06-15 Akim Demaille <akim@epita.fr>
133
134 Copy BYacc's nice way to report the grammar.
135
136 * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print):
137 New.
138 Don't print the rules' location, it is confusing and useless.
139 (rule_print): Use grammar_rhs_print.
140 * src/print.c (print_grammar): Use grammar_rules_print.
141
142 2002-06-15 Akim Demaille <akim@epita.fr>
143
144 Complete and rationalize `useless thing' warnings.
145
146 * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n)
147 (symbol_tag_print): New.
148 Use them everywhere in place of accessing directly the tag member.
149 * src/gram.h, src/gram.c (rule_print): New.
150 Use it where a rule used to be printed `by hand'.
151 * src/reduce.c (nonterminals_reduce): Report the use nonterminals.
152 (reduce_grammar_tables): Report the useless rules.
153 (reduce_print): Useless things are a warning, not an error.
154 Report it as such.
155 * tests/reduce.at (Useless Nonterminals, Useless Rules):
156 (Reduced Automaton, Underivable Rules): Adjust.
157 * tests/regression.at (Web2c Report, Web2c Report): Adjust.
158 * tests/conflicts.at (Unresolved SR Conflicts)
159 (Solved SR Conflicts): Adjust.
160
161 2002-06-15 Akim Demaille <akim@epita.fr>
162
163 Let symbols have a location.
164
165 * src/symtab.h, src/symtab.c (symbol_t): Location is a new member.
166 (getsym): Adjust.
167 Adjust all callers.
168 * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at):
169 Use location_t, not int.
170 * src/symtab.c (symbol_check_defined): Take advantage of the
171 location.
172 * tests/regression.at (Invalid inputs): Adjust.
173
174 2002-06-15 Akim Demaille <akim@epita.fr>
175
176 * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
177 (input): Don't try to initialize yylloc here, do it in the
178 scanner.
179 * src/scan-gram.l (YY_USER_INIT): Initialize yylloc.
180 * src/gram.h (rule_t): Change line and action_line into location
181 and action_location, of location_t type.
182 Adjust all dependencies.
183 * src/location.h, src/location.c (empty_location): New.
184 * src/reader.h, src/reader.c (grammar_start_symbol_set)
185 (grammar_symbol_append, grammar_rule_begin, grammar_rule_end)
186 (grammar_current_rule_symbol_append)
187 (grammar_current_rule_action_append): Expect a location as argument.
188 * src/reader.c (grammar_midrule_action): Adjust to attach an
189 action's location as dummy symbol location.
190 * src/symtab.h, src/symtab.c (startsymbol_location): New.
191 * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust
192 the line numbers.
193
194 2002-06-14 Akim Demaille <akim@epita.fr>
195
196 Grammar declarations may be found in the grammar section.
197
198 * src/parse-gram.y (rules_or_grammar_declaration): New.
199 (declarations): Each declaration may end with a semicolon, not
200 just...
201 (grammar_declaration): `"%union"'.
202 (grammar): Branch to rules_or_grammar_declaration.
203
204 2002-06-14 Akim Demaille <akim@epita.fr>
205
206 * src/main.c (main): Invoke scanner_free.
207
208 2002-06-14 Akim Demaille <akim@epita.fr>
209
210 * src/output.c (m4_invoke): Extracted from...
211 (output_skeleton): here.
212 Free tempfile.
213
214 2002-06-14 Akim Demaille <akim@epita.fr>
215
216 * src/parse-gram.y (directives, directive, gram)
217 (grammar_directives, precedence_directives, precedence_directive):
218 Rename as...
219 (declarations, declaration, grammar, grammar_declaration)
220 (precedence_declaration, precedence_declarator): these.
221 (symbol_declaration): New.
222
223 2002-06-14 Akim Demaille <akim@epita.fr>
224
225 * src/files.c (action_obstack): Remove, unused.
226 (output_obstack): Remove it, and all its dependencies, as it is no
227 longer needed.
228 * src/reader.c (epilogue_set): Build the epilogue in the
229 muscle_obstack.
230 * src/output.h, src/output.c (muscle_obstack): Move to...
231 * src/muscle_tab.h, src/muscle_tab.h: here.
232 (muscle_init): Initialize muscle_obstack.
233 (muscle_free): New.
234 * src/main.c (main): Call it.
235
236 2002-06-14 Akim Demaille <akim@epita.fr>
237
238 * src/location.h: New, extracted from...
239 * src/reader.h: here.
240 * src/Makefile.am (noinst_HEADERS): Merge into
241 (bison_SOURCES): this.
242 Add location.h.
243 * src/parse-gram.y: Use location_t instead of Bison's.
244 * src/reader.h, src/reader.c (prologue_augment, epilogue_set):
245 Use location_t instead of ints.
246
247 2002-06-14 Akim Demaille <akim@epita.fr>
248
249 * data/bison.simple, data/bison.c++: Be sure to restore the
250 current #line when returning to the skeleton contents after having
251 exposed the input file's #line.
252
253 2002-06-12 Akim Demaille <akim@epita.fr>
254
255 * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
256 eager.
257 * tests/actions.at (Exotic Dollars): New.
258
259 2002-06-12 Akim Demaille <akim@epita.fr>
260
261 * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
262 ['"/] too eagerly.
263 * tests/input.at (Torturing the Scanner): New.
264
265 2002-06-11 Akim Demaille <akim@epita.fr>
266
267 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
268 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
269 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
270 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
271 * src/reader.c (reader): Use it.
272
273 2002-06-11 Akim Demaille <akim@epita.fr>
274
275 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
276 Adjust all callers.
277 (scanner_last_string_free): New.
278
279 2002-06-11 Akim Demaille <akim@epita.fr>
280
281 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
282 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
283 (last_string, YY_OBS_FREE): New.
284 Use them when returning an ID.
285
286 2002-06-11 Akim Demaille <akim@epita.fr>
287
288 Have Bison grammars parsed by a Bison grammar.
289
290 * src/reader.c, src/reader.h (prologue_augment): New.
291 * src/reader.c (copy_definition): Remove.
292
293 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
294 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
295 (grammar_current_rule_prec_set, grammar_current_rule_check)
296 (grammar_current_rule_symbol_append)
297 (grammar_current_rule_action_append): Export.
298 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
299 (symbol_list_action_append): Remove.
300 Hook the routines from reader.
301 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
302 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
303
304 * src/reader.c (read_declarations): Remove, unused.
305
306 * src/parse-gram.y: Handle the epilogue.
307 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
308 (grammar_start_symbol_set): this.
309 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
310 * src/reader.c (readgram): Remove, unused.
311 (reader): Adjust to insert eoftoken and axiom where appropriate.
312
313 * src/reader.c (copy_dollar): Replace with...
314 * src/scan-gram.h (handle_dollar): this.
315 * src/parse-gram.y: Remove `%thong'.
316
317 * src/reader.c (copy_at): Replace with...
318 * src/scan-gram.h (handle_at): this.
319
320 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
321 New.
322
323 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
324 time being.
325
326 * src/reader.h, src/reader.c (grammar_rule_end): New.
327
328 * src/parse.y (current_type, current_class): New.
329 Implement `%nterm', `%token' support.
330 Merge `%term' into `%token'.
331 (string_as_id): New.
332 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
333 type name.
334
335 * src/parse-gram.y: Be sure to handle properly the beginning of
336 rules.
337
338 * src/parse-gram.y: Handle %type.
339 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
340
341 * src/parse-gram.y: More directives support.
342 * src/options.c: No longer handle source directives.
343
344 * src/parse-gram.y: Fix %output.
345
346 * src/parse-gram.y: Handle %union.
347 Use the prologue locations.
348 * src/reader.c (parse_union_decl): Remove.
349
350 * src/reader.h, src/reader.c (epilogue_set): New.
351 * src/parse-gram.y: Use it.
352
353 * data/bison.simple, data/bison.c++: b4_stype is now either not
354 defined, then default to int, or to the contents of %union,
355 without `union' itself.
356 Adjust.
357 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
358
359 * src/output.c (actions_output): Don't output braces, as they are
360 already handled by the scanner.
361
362 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
363 characters to themselves.
364
365 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
366 that the epilogue has a proper #line.
367
368 * src/parse-gram.y: Handle precedence/associativity.
369
370 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
371 a terminal.
372 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
373 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
374 at all to define terminals that cannot be emitted.
375
376 * src/scan-gram.l: Escape M4 characters.
377
378 * src/scan-gram.l: Working properly with escapes in user
379 strings/characters.
380
381 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
382 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
383 grammar.
384 Use more modest sizes, as for the time being the parser does not
385 release memory, and therefore the process swallows a huge amount
386 of memory.
387
388 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
389 stricter %token grammar.
390
391 * src/symtab.h (associativity): Add `undef_assoc'.
392 (symbol_precedence_set): Do nothing when passed an undef_assoc.
393 * src/symtab.c (symbol_check_alias_consistence): Adjust.
394
395 * tests/regression.at (Invalid %directive): Remove, as it is now
396 meaningless.
397 (Invalid inputs): Adjust to the new error messages.
398 (Token definitions): The new grammar doesn't allow too many
399 eccentricities.
400
401 * src/lex.h, src/lex.c: Remove.
402 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
403 (copy_character, copy_string2, copy_string, copy_identifier)
404 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
405 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
406 (parse_action): Remove.
407 * po/POTFILES.in: Adjust.
408
409 2002-06-11 Akim Demaille <akim@epita.fr>
410
411 * src/reader.c (parse_action): Don't store directly into the
412 rule's action member: return the action as a string.
413 Don't require `rule_length' as an argument: compute it.
414 (grammar_current_rule_symbol_append)
415 (grammar_current_rule_action_append): New, eved out from
416 (readgram): here.
417 Remove `action_flag', `rulelength', unused now.
418
419 2002-06-11 Akim Demaille <akim@epita.fr>
420
421 * src/reader.c (grammar_current_rule_prec_set).
422 (grammar_current_rule_check): New, eved out from...
423 (readgram): here.
424 Remove `xaction', `first_rhs': useless.
425 * tests/input.at (Type clashes): New.
426 * tests/existing.at (GNU Cim Grammar): Adjust.
427
428 2002-06-11 Akim Demaille <akim@epita.fr>
429
430 * src/reader.c (grammar_midrule_action): New, Eved out from
431 (readgram): here.
432
433 2002-06-11 Akim Demaille <akim@epita.fr>
434
435 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
436 New.
437 (readgram): Use them as replacement of inlined code, crule and
438 crule1.
439
440 2002-06-11 Akim Demaille <akim@epita.fr>
441
442 * src/reader.c (grammar_end, grammar_symbol_append): New.
443 (readgram): Use them.
444 Make the use of `p' as local as possible.
445
446 2002-06-10 Akim Demaille <akim@epita.fr>
447
448 GCJ's parser requires the tokens to be defined before the prologue.
449
450 * data/bison.simple: Output the token definition before the user's
451 prologue.
452 * tests/regression.at (Braces parsing, Duplicate string)
453 (Mixing %token styles): Check the output from bison.
454 (Early token definitions): New.
455
456 2002-06-10 Akim Demaille <akim@epita.fr>
457
458 * src/symtab.c (symbol_user_token_number_set): Don't complain when
459 assigning twice the same user number to a token, so that we can
460 use it in...
461 * src/lex.c (lex): here.
462 Also use `symbol_class_set' instead of hand written code.
463 * src/reader.c (parse_assoc_decl): Likewise.
464
465 2002-06-10 Akim Demaille <akim@epita.fr>
466
467 * src/symtab.c, src/symtab.c (symbol_class_set)
468 (symbol_user_token_number_set): New.
469 * src/reader.c (parse_token_decl): Use them.
470 Use a switch instead of ifs.
471 Use a single argument.
472
473 2002-06-10 Akim Demaille <akim@epita.fr>
474
475 Remove `%thong' support as it is undocumented, unused, duplicates
476 `%token's job, and creates useless e-mail traffic with people who
477 want to know what it is, why it is undocumented, unused, and
478 duplicates `%token's job.
479
480 * src/reader.c (parse_thong_decl): Remove.
481 * src/options.c (option_table): Remove "thong".
482 * src/lex.h (tok_thong): Remove.
483
484 2002-06-10 Akim Demaille <akim@epita.fr>
485
486 * src/symtab.c, src/symtab.c (symbol_type_set)
487 (symbol_precedence_set): New.
488 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
489 (value_components_used): Remove, unused.
490
491 2002-06-09 Akim Demaille <akim@epita.fr>
492
493 Move symbols handling code out of the reader.
494
495 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
496 (axiom): Move to...
497 * src/symtab.h, src/symtab.c: here.
498
499 * src/gram.c (start_symbol): Remove: use startsymbol->number.
500 * src/reader.c (startval): Rename as...
501 * src/symtab.h, src/symtab.c (startsymbol): this.
502 * src/reader.c: Adjust.
503
504 * src/reader.c (symbol_check_defined, symbol_make_alias)
505 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
506 (token_translations_init)
507 Move to...
508 * src/symtab.c: here.
509 * src/reader.c (packsymbols): Move to...
510 * src/symtab.h, src/symtab.c (symbols_pack): here.
511 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
512 argument.
513
514 2002-06-03 Akim Demaille <akim@epita.fr>
515
516 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
517 then statements.
518
519 2002-06-03 Akim Demaille <akim@epita.fr>
520
521 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
522 structs with non literals.
523 * src/scan-skel.l: never-interactive.
524 * src/conflicts.c (enum conflict_resolution_e): No trailing
525 comma.
526 * src/getargs.c (usage): Split long literal strings.
527 Reported by Hans Aberg.
528
529 2002-05-28 Akim Demaille <akim@epita.fr>
530
531 * data/bison.c++: Use C++ ostreams.
532 (cdebug_): New member.
533
534 2002-05-28 Akim Demaille <akim@epita.fr>
535
536 * src/output.c (output_skeleton): Be sure to allocate enough room
537 for `/' _and_ for `\0' in full_skeleton.
538
539 2002-05-28 Akim Demaille <akim@epita.fr>
540
541 * data/bison.c++: Catch up with bison.simple:
542 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
543 and Paul Eggert <eggert@twinsun.com>: `error' handing.
544 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
545 and popping traces.
546
547 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
548
549 * src/output.c (output_skeleton): Put an explicit path in front of
550 the skeleton file name, rather than relying on the -I directory,
551 to partially alleviate effects of having a skeleton file lying around
552 in the current directory.
553
554 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
555
556 * src/conflicts.c (log_resolution): Correct typo:
557 obstack_printf should be obstack_fgrow1.
558
559 2002-05-26 Akim Demaille <akim@epita.fr>
560
561 * src/state.h (state_t): `solved_conflicts' is a new member.
562 * src/LR0.c (new_state): Set it to 0.
563 * src/conflicts.h, src/conflicts.c (print_conflicts)
564 (free_conflicts, solve_conflicts): Rename as...
565 (conflicts_print, conflicts_free, conflicts_solve): these.
566 Adjust callers.
567 * src/conflicts.c (enum conflict_resolution_e)
568 (solved_conflicts_obstack): New, used by...
569 (log_resolution): this.
570 Adjust to attach the conflict resolution to each state.
571 Complete the description with the precedence/associativity
572 information.
573 (resolve_sr_conflict): Adjust.
574 * src/print.c (print_state): Output its solved_conflicts.
575 * tests/conflicts.at (Unresolved SR Conflicts)
576 (Solved SR Conflicts): Exercise --report=all.
577
578 2002-05-26 Akim Demaille <akim@epita.fr>
579
580 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
581 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
582 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
583 (token_number_t, item_number_as_token_number)
584 (token_number_as_item_number, muscle_insert_token_number_table):
585 Rename as...
586 (symbol_number_t, item_number_as_symbol_number)
587 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
588 these, since it is more appropriate.
589
590 2002-05-26 Akim Demaille <akim@epita.fr>
591
592 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
593 `Error:' lines.
594 * data/bison.simple (yystos) [YYDEBUG]: New.
595 (yyparse) [YYDEBUG]: Display the symbols which are popped during
596 error recovery.
597 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
598
599 2002-05-25 Akim Demaille <akim@epita.fr>
600
601 * doc/bison.texinfo (Debugging): Split into...
602 (Tracing): this new section, its former contents, and...
603 (Understanding): this new section.
604 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
605 by...
606 (report_flag): this.
607 Adjust all dependencies.
608 (report_args, report_types, report_argmatch): New.
609 (usage, getargs): Report/support -r, --report.
610 * src/options.h
611 (struct option_table_struct): Rename as..,
612 (struct option_table_s): this.
613 Rename the `set_flag' member to `flag' to match with getopt_long's
614 struct.
615 * src/options.c (option_table): Split verbose into an entry for
616 %verbose, and another for --verbose.
617 Support --report/-r, so remove -r from the obsolete --raw.
618 * src/print.c: Attach full item sets and lookaheads reports to
619 report_flag instead of trace_flag.
620 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
621
622 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
623 and Paul Eggert <eggert@twinsun.com>
624
625 * data/bison.simple (yyparse): Correct error handling to conform to
626 POSIX and yacc. Specifically, after syntax error is discovered,
627 do not reduce further before shifting the error token.
628 Clean up the code a bit by removing the labels yyerrdefault,
629 yyerrhandle, yyerrpop.
630 * NEWS: Document the above.
631
632 2002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
633
634 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
635 type; it isn't always big enough, since it doesn't necessarily
636 include non-terminals.
637 (yytranslate): Expand definition of yy_token_number_type, so that
638 the latter can be removed.
639 (yy_token_number_type): Remove, only one use.
640 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
641 don't use TokenNumberType as element type.
642
643 * tests/regression.at: Modify expected output to agree with change
644 to yyr1 and yytranslate.
645
646 2002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
647
648 * src/reader.c (parse_action): Use copy_character instead of
649 obstack_1grow.
650
651 2002-05-13 Akim Demaille <akim@epita.fr>
652
653 * tests/regression.at (Token definitions): Prototype yylex and
654 yyerror.
655
656 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
657
658 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
659 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
660 32-bit arithmetic.
661 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
662
663 2002-05-07 Akim Demaille <akim@epita.fr>
664
665 * tests/synclines.at: Be sure to prototype yylex and yyerror to
666 avoid GCC warnings.
667
668 2002-05-07 Akim Demaille <akim@epita.fr>
669
670 Kill GCC warnings.
671
672 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
673 over the RHS of each rule.
674 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
675 * src/state.h (state_t): Member `nitems' is unsigned short.
676 * src/LR0.c (get_state): Adjust.
677 * src/reader.c (packgram): Likewise.
678 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
679 `Type'.
680 (muscle_insert_int_table): Remove, unused.
681 (prepare_rules): Remove `max'.
682
683 2002-05-06 Akim Demaille <akim@epita.fr>
684
685 * src/closure.c (print_firsts): Display of the symbol tags.
686 (bitmatrix_print): Move to...
687 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
688 here.
689 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
690
691 2002-05-06 Akim Demaille <akim@epita.fr>
692
693 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
694 hash_do_for_each.
695
696 2002-05-06 Akim Demaille <akim@epita.fr>
697
698 * src/LR0.c (new_state, get_state): Instead of using the global
699 `kernel_size' and `kernel_base', have two new arguments:
700 `core_size' and `core'.
701 Adjust callers.
702
703 2002-05-06 Akim Demaille <akim@epita.fr>
704
705 * src/reader.c (packgram): No longer end `ritem' with a 0
706 sentinel: it is not used.
707
708 2002-05-05 Akim Demaille <akim@epita.fr>
709
710 New experimental feature: display the lookaheads in the report and
711 graph.
712
713 * src/print (print_core): When --trace-flag, display the rules
714 lookaheads.
715 * src/print_graph.c (print_core): Likewise.
716 Swap the arguments.
717 Adjust caller.
718
719 2002-05-05 Akim Demaille <akim@epita.fr>
720
721 * tests/torture.at (Many lookaheads): New test.
722
723 2002-05-05 Akim Demaille <akim@epita.fr>
724
725 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
726 (GENERATE_MUSCLE_INSERT_TABLE): this.
727 (output_int_table, output_unsigned_int_table, output_short_table)
728 (output_token_number_table, output_item_number_table): Replace with...
729 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
730 (muscle_insert_short_table, muscle_insert_token_number_table)
731 (muscle_insert_item_number_table): these.
732 Adjust all callers.
733 (prepare_tokens): Don't free `translations', since...
734 * src/reader.h, src/reader.c (grammar_free): do it.
735 Move to...
736 * src/gram.h, src/gram.c (grammar_free): here.
737 * data/bison.simple, data/bison.c++: b4_token_number_max is now
738 b4_translate_max.
739
740 2002-05-05 Akim Demaille <akim@epita.fr>
741
742 * src/output.c (output_unsigned_int_table): New.
743 (prepare_rules): `i' is unsigned.
744 `prhs', `rline', `r2' are unsigned int.
745 Rename muscle `rhs_number_max' as `rhs_max'.
746 Output muscles `prhs_max', `rline_max', and `r2_max'.
747 Free rline and r1.
748 * data/bison.simple, data/bison.c++: Adjust to use these muscles
749 to compute types instead of constant types.
750 * tests/regression.at (Web2c Actions): Adjust.
751
752 2002-05-04 Akim Demaille <akim@epita.fr>
753
754 * src/symtab.h (SALIAS, SUNDEF): Rename as...
755 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
756 Adjust dependencies.
757 * src/output.c (token_definitions_output): Be sure not to output a
758 `#define 'a'' when fed with `%token 'a' "a"'.
759 * tests/regression.at (Token definitions): New.
760
761 2002-05-03 Paul Eggert <eggert@twinsun.com>
762
763 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
764 for K&R C.
765
766 2002-05-03 gettextize <bug-gnu-gettext@gnu.org>
767
768 * Makefile.am (SUBDIRS): Remove intl.
769 (EXTRA_DIST): Add config/config.rpath.
770
771 2002-05-03 Akim Demaille <akim@epita.fr>
772
773 * data/bison.simple (m4_if): Don't output empty enums.
774 And actually, output valid enum definitions :(.
775
776 2002-05-03 Akim Demaille <akim@epita.fr>
777
778 * configure.bat: Remove, completely obsolete.
779 * Makefile.am (EXTRA_DIST): Adjust.
780 Don't distribute config.rpath...
781 * config/Makefile.am (EXTRA_DIST): Do it.
782
783 2002-05-03 Akim Demaille <akim@epita.fr>
784
785 * configure.in (GETTEXT_VERSION): New.
786 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
787
788 2002-05-03 Akim Demaille <akim@epita.fr>
789
790 * data/bison.simple (b4_token_enum): New.
791 (b4_token_defines): Use it to output tokens both as #define and
792 enums.
793 Suggested by Paul Eggert.
794 * src/output.c (token_definitions_output): Don't output spurious
795 white spaces.
796
797 2002-05-03 Akim Demaille <akim@epita.fr>
798
799 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
800
801 2002-05-02 Robert Anisko <robert@lrde.epita.fr>
802
803 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
804 Update the stack class, give a try to deque as the default container.
805
806 2002-05-02 Akim Demaille <akim@epita.fr>
807
808 * data/bison.simple (yyparse): Do not implement @$ = @1.
809 (YYLLOC_DEFAULT): Adjust to do it.
810 * doc/bison.texinfo (Location Default Action): Fix.
811
812 2002-05-02 Akim Demaille <akim@epita.fr>
813
814 * src/reader.c (parse_braces): Merge into...
815 (parse_action): this.
816
817 2002-05-02 Akim Demaille <akim@epita.fr>
818
819 * configure.in (ALL_LINGUAS): Remove.
820 * po/LINGUAS, hr.po: New.
821
822 2002-05-02 Akim Demaille <akim@epita.fr>
823
824 Remove the so called hairy (semantic) parsers.
825
826 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
827 * src/gram.h, src/gram.c (semantic_parser): Remove.
828 (rule_t): Remove the guard and guard_line members.
829 * src/lex.h (token_t): remove tok_guard.
830 * src/options.c (option_table): Remove %guard and %semantic_parser
831 support.
832 * src/output.c, src/output.h (guards_output): Remove.
833 (prepare): Adjust.
834 (token_definitions_output): Don't output the `T'
835 tokens (???).
836 (output_skeleton): Don't output the guards.
837 * src/files.c, src/files.c (attrsfile): Remove.
838 * src/reader.c (symbol_list): Remove the guard and guard_line
839 members.
840 Adjust dependencies.
841 (parse_guard): Remove.
842 * data/bison.hairy: Remove.
843 * doc/bison.texinfo (Environment Variables): Remove occurrences of
844 BISON_HAIRY.
845
846 2002-05-02 Akim Demaille <akim@epita.fr>
847
848 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
849 (parse_guard): Rename the formal argument `stack_offset' as
850 `rule_length', which is more readable.
851 Adjust callers.
852 (copy_at, copy_dollar): Instead of outputting the hard coded
853 values of $$, $n and so forth, output invocation to b4_lhs_value,
854 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
855 Note: this patch partially drops `semantic-parser' support: it
856 always does `rule_length - n', where semantic parsers ought to
857 always use `-n'.
858 * data/bison.simple, data/bison.c++ (b4_lhs_value)
859 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
860
861 2002-05-02 Akim Demaille <akim@epita.fr>
862
863 * configure.in (AC_INIT): Bump to 1.49b.
864 (AM_INIT_AUTOMAKE): Short invocation.
865
866 2002-05-02 Akim Demaille <akim@epita.fr>
867
868 Version 1.49a.
869
870 2002-05-01 Akim Demaille <akim@epita.fr>
871
872 * src/skeleton.h: Remove.
873
874 2002-05-01 Akim Demaille <akim@epita.fr>
875
876 * src/skeleton.h: Fix the #endif.
877 Reported by Magnus Fromreide.
878
879 2002-04-26 Paul Eggert <eggert@twinsun.com>
880
881 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
882 Define if we define YYSTYPE and YYLTYPE, respectively.
883 (YYCOPY): Fix [] quoting problem in the non-GCC case.
884
885 2002-04-25 Robert Anisko <robert@lrde.epita.fr>
886
887 * src/scan-skel.l: Postprocess quadrigraphs.
888
889 * src/reader.c (copy_character): New function, used to output
890 single characters while replacing `[' and `]' with quadrigraphs, to
891 avoid troubles with M4 quotes.
892 (copy_comment): Output characters with copy_character.
893 (read_additionnal_code): Likewise.
894 (copy_string2): Likewise.
895 (copy_definition): Likewise.
896
897 * tests/calc.at: Exercise M4 quoting.
898
899 2002-04-25 Akim Demaille <akim@epita.fr>
900
901 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
902 between `!' and the command.
903 Reported by Paul Eggert.
904
905 2002-04-24 Robert Anisko <robert@lrde.epita.fr>
906
907 * tests/calc.at: Exercise prologue splitting.
908
909 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
910 `b4_post_prologue' instead of `b4_prologue'.
911
912 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
913 muscles.
914 (output): Free pre_prologue_obstack and post_prologue_obstack.
915 * src/files.h, src/files.c (attrs_obstack): Remove.
916 (pre_prologue_obstack, post_prologue_obstack): New.
917 * src/reader.c (copy_definition): Add a parameter to specify the
918 obstack to fill, instead of using attrs_obstack unconditionally.
919 (read_declarations): Pass pre_prologue_obstack to copy_definition if
920 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
921
922 2002-04-23 Paul Eggert <eggert@twinsun.com>
923
924 * data/bison.simple: Remove unnecessary commentary and white
925 space differences from 1_29-branch.
926 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
927
928 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
929 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
930 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
931 constructors or destructors.
932
933 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
934
935 2002-04-23 Akim Demaille <akim@epita.fr>
936
937 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
938 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
939 location with columns.
940 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
941 All reported by Paul Eggert.
942
943 2002-04-22 Akim Demaille <akim@epita.fr>
944
945 * src/reduce.c (dump_grammar): Move to...
946 * src/gram.h, src/gram.c (grammar_dump): here.
947 Be sure to separate long item numbers.
948 Don't read the members of a rule's prec if its nil.
949
950 2002-04-22 Akim Demaille <akim@epita.fr>
951
952 * src/output.c (table_size, table_grow): New.
953 (MAXTABLE): Remove, replace uses with table_size.
954 (pack_vector): Instead of dying when the table is too big, grow it.
955
956 2002-04-22 Akim Demaille <akim@epita.fr>
957
958 * data/bison.simple (yyr1): Its type is that of a token number.
959 * data/bison.c++ (r1_): Likewise.
960 * tests/regression.at (Web2c Actions): Adjust.
961
962 2002-04-22 Akim Demaille <akim@epita.fr>
963
964 * src/reader.c (token_translations_init): 256 is now the default
965 value for the error token, i.e., it will be assigned another
966 number if the user assigned 256 to one of her tokens.
967 (reader): Don't force 256 to error.
968 * doc/bison.texinfo (Symbols): Adjust.
969 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
970 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
971 etc. instead of 10, 20, 30 (which was used to `jump' over error
972 (256) and undefined (2)).
973
974 2002-04-22 Akim Demaille <akim@epita.fr>
975
976 Propagate more token_number_t.
977
978 * src/gram.h (token_number_as_item_number)
979 (item_number_as_token_number): New.
980 * src/output.c (GENERATE_OUTPUT_TABLE): New.
981 Use it to create output_item_number_table and
982 output_token_number_table.
983 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
984 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
985 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
986 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
987
988 2002-04-22 Akim Demaille <akim@epita.fr>
989
990 * src/output.h, src/output.c (get_lines_number): Remove.
991
992 2002-04-19 Akim Demaille <akim@epita.fr>
993
994 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
995 as Lex/Flex'.
996 (Debugging): More details about enabling the debugging features.
997 (Table of Symbols): Describe $$, $n, @$, and @n.
998 Suggested by Tim Josling.
999
1000 2002-04-19 Akim Demaille <akim@epita.fr>
1001
1002 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
1003
1004 2002-04-10 Akim Demaille <akim@epita.fr>
1005
1006 * src/system.h: Rely on HAVE_LIMITS_H.
1007 Suggested by Paul Eggert.
1008
1009 2002-04-09 Akim Demaille <akim@epita.fr>
1010
1011 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
1012 full stderr, and strip it according to the bison options, instead
1013 of composing the error message from different bits.
1014 This makes it easier to check for several error messages.
1015 Adjust all the invocations.
1016 Add an invocation exercising the error token.
1017 Add an invocation demonstrating a stupid error message.
1018 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
1019 Adjust the tests.
1020 Error message are for stderr, not stdout.
1021
1022 2002-04-09 Akim Demaille <akim@epita.fr>
1023
1024 * src/gram.h, src/gram.c (error_token_number): Remove, use
1025 errtoken->number.
1026 * src/reader.c (reader): Don't specify the user token number (2)
1027 for $undefined, as it uselessly prevents using it.
1028 * src/gram.h (token_number_t): Move to...
1029 * src/symtab.h: here.
1030 (state_t.number): Is a token_number_t.
1031 * src/print.c, src/reader.c: Use undeftoken->number instead of
1032 hard coded 2.
1033 (Even though this 2 is not the same as above: the number of the
1034 undeftoken remains being 2, it is its user token number which
1035 might not be 2).
1036 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
1037 `user_token_number_max'.
1038 Output `undef_token_number'.
1039 * data/bison.simple, data/bison.c++: Use them.
1040 Be sure to map invalid yylex return values to
1041 `undef_token_number'. This saves us from gratuitous SEGV.
1042
1043 * tests/conflicts.at (Solved SR Conflicts)
1044 (Unresolved SR Conflicts): Adjust.
1045 * tests/regression.at (Web2c Actions): Adjust.
1046
1047 2002-04-08 Akim Demaille <akim@epita.fr>
1048
1049 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
1050 Adding #line.
1051 Remove the duplicate `typedefs'.
1052 (RhsNumberType): Fix the declaration and various other typos.
1053 Use __ofile__.
1054 * data/bison.simple: Use __ofile__.
1055 * src/scan-skel.l: Handle __ofile__.
1056
1057 2002-04-08 Akim Demaille <akim@epita.fr>
1058
1059 * src/gram.h (item_number_t): New, the type of item numbers in
1060 RITEM. Note that it must be able to code symbol numbers as
1061 positive number, and the negation of rule numbers as negative
1062 numbers.
1063 Adjust all dependencies (pretty many).
1064 * src/reduce.c (rule): Remove this `short *' pointer: use
1065 item_number_t.
1066 * src/system.h (MINSHORT, MAXSHORT): Remove.
1067 Include `limits.h'.
1068 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
1069 (shortcpy): Remove.
1070 (MAXTABLE): Move to...
1071 * src/output.c (MAXTABLE): here.
1072 (prepare_rules): Use output_int_table to output rhs.
1073 * data/bison.simple, data/bison.c++: Adjust.
1074 * tests/torture.at (Big triangle): Move the limit from 254 to
1075 500.
1076 * tests/regression.at (Web2c Actions): Ajust.
1077
1078 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
1079 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
1080 passes, but produces negative #line number, once fixed, GCC is
1081 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
1082 C), it passes.
1083 * src/state.h (state_h): Code input lines on ints, not shorts.
1084
1085 2002-04-08 Akim Demaille <akim@epita.fr>
1086
1087 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
1088 and then the grammar.
1089
1090 2002-04-08 Akim Demaille <akim@epita.fr>
1091
1092 * src/system.h: No longer using strndup.
1093
1094 2002-04-07 Akim Demaille <akim@epita.fr>
1095
1096 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
1097 * src/output.c (output_table_data): Return the longest number.
1098 (prepare_tokens): Output `token_number_max').
1099 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
1100 New.
1101 Use them to define yy_token_number_type/TokenNumberType.
1102 Use this type for yytranslate.
1103 * tests/torture.at (Big triangle): Push the limit from 124 to
1104 253.
1105 * tests/regression.at (Web2c Actions): Adjust.
1106
1107 2002-04-07 Akim Demaille <akim@epita.fr>
1108
1109 * tests/torture.at (Big triangle): New.
1110 (GNU AWK Grammar, GNU Cim Grammar): Move to...
1111 * tests/existing.at: here.
1112
1113 2002-04-07 Akim Demaille <akim@epita.fr>
1114
1115 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
1116 nritems.
1117 Adjust dependencies.
1118
1119 2002-04-07 Akim Demaille <akim@epita.fr>
1120
1121 * src/reader.c: Normalize increments to prefix form.
1122
1123 2002-04-07 Akim Demaille <akim@epita.fr>
1124
1125 * src/reader.c, symtab.c: Remove debugging code.
1126
1127 2002-04-07 Akim Demaille <akim@epita.fr>
1128
1129 Rename all the `bucket's as `symbol_t'.
1130
1131 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
1132 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
1133 * src/symtab.c, src/symtab.h (bucket): Rename as...
1134 (symbol_t): this.
1135 (symbol_list_new, bucket_check_defined, bucket_make_alias)
1136 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
1137 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1138 (buckets_new, buckets_free, buckets_do): Rename as...
1139 (symbol_list_new, symbol_check_defined, symbol_make_alias)
1140 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
1141 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
1142 (symbols_new, symbols_free, symbols_do): these.
1143
1144 2002-04-07 Akim Demaille <akim@epita.fr>
1145
1146 Use lib/hash for the symbol table.
1147
1148 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
1149 EOF.
1150 * src/lex.c (lex): Set the `number' member of new terminals.
1151 * src/reader.c (bucket_check_defined, bucket_make_alias)
1152 (bucket_check_alias_consistence, bucket_translation): New.
1153 (reader, grammar_free, readgram, token_translations_init)
1154 (packsymbols): Adjust.
1155 (reader): Number the predefined tokens.
1156 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
1157 for predefined tokens.
1158 * src/symtab.h (bucket): Remove all the hash table related
1159 members.
1160 * src/symtab.c (symtab): Replace by...
1161 (bucket_table): this.
1162 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
1163 (buckets_new, buckets_do): New.
1164
1165 2002-04-07 Akim Demaille <akim@epita.fr>
1166
1167 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
1168 (start_symbol, max_user_token_number, semantic_parser)
1169 (error_token_number): Initialize.
1170 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
1171 Initialize.
1172 (reader): Don't.
1173 (errtoken, eoftoken, undeftoken, axiom): Extern.
1174
1175 2002-04-07 Akim Demaille <akim@epita.fr>
1176
1177 * src/gram.h (rule_s): prec and precsym are now pointers
1178 to the bucket giving the priority/associativity.
1179 Member `associativity' removed: useless.
1180 * src/reduce.c, src/conflicts.c: Adjust.
1181
1182 2002-04-07 Akim Demaille <akim@epita.fr>
1183
1184 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
1185 Properly escape the symbols' TAG when outputting them.
1186
1187 2002-04-07 Akim Demaille <akim@epita.fr>
1188
1189 * src/lalr.h (LA): Is a bitsetv, not bitset*.
1190
1191 2002-04-07 Akim Demaille <akim@epita.fr>
1192
1193 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
1194 (LArule): this, which is an array to rule_t*.
1195 * src/print.c, src/conflicts.c: Adjust.
1196
1197 2002-04-07 Akim Demaille <akim@epita.fr>
1198
1199 * src/gram.h (rule_t): Rename `number' as `user_number'.
1200 `number' is a new member.
1201 Adjust dependencies.
1202 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
1203
1204 2002-04-07 Akim Demaille <akim@epita.fr>
1205
1206 As a result of the previous patch, it is no longer needed
1207 to reorder ritem itself.
1208
1209 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
1210
1211 2002-04-07 Akim Demaille <akim@epita.fr>
1212
1213 Be sure never to walk through RITEMS, but use only data related to
1214 the rules themselves. RITEMS should be banished.
1215
1216 * src/output.c (output_token_translations): Rename as...
1217 (prepare_tokens): this.
1218 In addition to `translate', prepare the muscles `tname' and
1219 `toknum', which were handled by...
1220 (output_rule_data): this.
1221 Remove, and move the remainder of its outputs into...
1222 (prepare_rules): this new routines, which also merges content from
1223 (output_gram): this.
1224 (prepare_rules): Be sure never to walk through RITEMS.
1225 (output_stos): Rename as...
1226 (prepare_stos): this.
1227 (output): Always invoke prepare_states, after all, just don't use it
1228 in the output if you don't need it.
1229
1230 2002-04-07 Akim Demaille <akim@epita.fr>
1231
1232 * src/LR0.c (new_state): Display `nstates' as the name of the
1233 newly created state.
1234 Adjust to initialize first_state and last_state if needed.
1235 Be sure to distinguish the initial from the final state.
1236 (new_states): Create the itemset of the initial state, and use
1237 new_state.
1238 * src/closure.c (closure): Now that the initial state has its
1239 items properly set, there is no need for a special case when
1240 creating `ruleset'.
1241
1242 As a result, now the rule 0, reducing to $axiom, is visible in the
1243 outputs. Adjust the test suite.
1244
1245 * tests/conflicts.at (Solved SR Conflicts)
1246 (Unresolved SR Conflicts): Adjust.
1247 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
1248 * tests/conflicts.at (S/R in initial): New.
1249
1250 2002-04-07 Akim Demaille <akim@epita.fr>
1251
1252 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
1253 the RHS of the rules.
1254 * src/output.c (output_gram): Likewise.
1255
1256 2002-04-07 Akim Demaille <akim@epita.fr>
1257
1258 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
1259 bucket.
1260 Adjust all dependencies.
1261 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
1262 `number' of the buckets too.
1263 * src/gram.h: Include `symtab.h'.
1264 (associativity): Move to...
1265 * src/symtab.h: here.
1266 No longer include `gram.h'.
1267
1268 2002-04-07 Akim Demaille <akim@epita.fr>
1269
1270 * src/gram.h, src/gram.c (rules_rhs_length): New.
1271 (ritem_longest_rhs): Use it.
1272 * src/gram.h (rule_t): `number' is a new member.
1273 * src/reader.c (packgram): Set it.
1274 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
1275 the end of `rules', and count them out of `nrules'.
1276 (reduce_output, dump_grammar): Adjust.
1277 * src/print.c (print_grammar): It is no longer needed to check for
1278 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
1279 * tests/reduce.at (Reduced Automaton): New test.
1280
1281 2002-04-07 Akim Demaille <akim@epita.fr>
1282
1283 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
1284 lacking `+ 1' to nrules, Bison reported as useless a token if it
1285 was used solely to set the precedence of the last rule...
1286
1287 2002-04-07 Akim Demaille <akim@epita.fr>
1288
1289 * data/bison.c++, data/bison.simple: Don't output the current file
1290 name in #line, to avoid useless diffs between two identical
1291 outputs under different names.
1292
1293 2002-04-07 Akim Demaille <akim@epita.fr>
1294
1295 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
1296 Normalize loops to using `< nrules + 1', not `<= nrules'.
1297
1298 2002-04-07 Akim Demaille <akim@epita.fr>
1299
1300 * TODO: Update.
1301
1302 2002-04-07 Akim Demaille <akim@epita.fr>
1303
1304 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
1305 bucket.value as bucket.number.
1306
1307 2002-04-07 Akim Demaille <akim@epita.fr>
1308
1309 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
1310 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
1311 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
1312 RHS, instead of being an index in RITEMS.
1313
1314 2002-04-04 Paul Eggert <eggert@twinsun.com>
1315
1316 * doc/bison.texinfo: Update copyright date.
1317 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
1318 (Symbols): Warn about running Bison in one character set,
1319 but compiling and/or running in an incompatible one.
1320 Warn about character code 256, too.
1321
1322 2002-04-03 Paul Eggert <eggert@twinsun.com>
1323
1324 * src/bison.data (YYSTACK_ALLOC): Depend on whether
1325 YYERROR_VERBOSE is nonzero, not whether it is defined.
1326
1327 Merge changes from bison-1_29-branch.
1328
1329 2002-03-20 Paul Eggert <eggert@twinsun.com>
1330
1331 Merge fixes from Debian bison_1.34-1.diff.
1332
1333 * configure.in (AC_PREREQ): 2.53.
1334
1335 2002-03-20 Akim Demaille <akim@epita.fr>
1336
1337 * src/conflicts.c (log_resolution): Argument `resolution' is const.
1338
1339 2002-03-19 Paul Eggert <eggert@twinsun.com>
1340
1341 * src/bison.simple (YYCOPY): New macro.
1342 (YYSTACK_RELOCATE): Use it.
1343 Remove Type arg; no longer needed. All callers changed.
1344 (yymemcpy): Remove; no longer needed.
1345
1346 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
1347 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1348
1349 2002-03-19 Akim Demaille <akim@epita.fr>
1350
1351 Test and fix the #line outputs.
1352
1353 * tests/atlocal.at (GCC): New.
1354 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
1355 (Prologue synch line, ,%union synch line, Postprologue synch line)
1356 (Action synch line, Epilogue synch line): New tests.
1357 * src/reader.c (parse_union_decl): Define the muscle stype_line.
1358 * data/bison.simple, data/bison.c++: Use it.
1359
1360 2002-03-19 Akim Demaille <akim@epita.fr>
1361
1362 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
1363 (Solved SR Conflicts, %expect not enough, %expect right)
1364 (%expect too much): Move to...
1365 * tests/conflicts.at: this new file.
1366
1367 2002-03-19 Akim Demaille <akim@epita.fr>
1368
1369 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
1370 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
1371 that we can move to enums for instance.
1372 * src/output.c (token_definitions_output): Output a list of
1373 `token-name, token-number' instead of the #define.
1374 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
1375
1376 2002-03-14 Akim Demaille <akim@epita.fr>
1377
1378 Use Gettext 0.11.1.
1379
1380 2002-03-09 Robert Anisko <robert@lrde.epita.fr>
1381
1382 * data/bison.c++: Make the user able to add members to the generated
1383 parser by subclassing.
1384
1385 2002-03-05 Robert Anisko <robert@lrde.epita.fr>
1386
1387 * src/reader.c (read_additionnal_code): `c' should be an integer, not
1388 a character.
1389 Reported by Nicolas Tisserand and Nicolas Burrus.
1390
1391 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1392
1393 * src/reader.c: Warn about lacking semi-colons, do not complain.
1394
1395 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1396
1397 * data/bison.c++: Remove a debug line.
1398
1399 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
1400
1401 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
1402 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
1403 provide a default implementation.
1404
1405 2002-03-04 Akim Demaille <akim@epita.fr>
1406
1407 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
1408 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
1409 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
1410 * tests/semantic.at (Parsing Guards): Similarly.
1411 * src/reader.at (readgram): Complain if the last rule is not ended
1412 with a semi-colon.
1413
1414 2002-03-04 Akim Demaille <akim@epita.fr>
1415
1416 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
1417 * src/closure.c: here.
1418 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
1419 RTC.
1420 * src/warshall.h, src/warshall.c: Remove.
1421 * tests/sets.at (Broken Closure): Adjust.
1422
1423 2002-03-04 Akim Demaille <akim@epita.fr>
1424
1425 * src/output.c (output_skeleton): tempdir is const.
1426 bytes_read is unused.
1427
1428 2002-03-04 Akim Demaille <akim@epita.fr>
1429
1430 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1431 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
1432 Update.
1433 From Michael Hayes.
1434
1435 2002-03-04 Akim Demaille <akim@epita.fr>
1436
1437 * src/closure.c (closure): `r' is unused.
1438
1439 2002-03-04 Akim Demaille <akim@epita.fr>
1440
1441 * tests/sets.at (Broken Closure): Add the ending `;'.
1442 * src/reader.at (readgram): Complain if a rule is not ended with a
1443 semi-colon.
1444
1445 2002-03-04 Akim Demaille <akim@epita.fr>
1446
1447 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
1448 (count_sr_conflicts): Use bitset_count.
1449 * src/reduce.c (inaccessable_symbols): Ditto.
1450 (bits_size): Remove.
1451 * src/warshall.h, src/warshall.c: Convert to bitsetv.
1452
1453 2002-03-04 Akim Demaille <akim@epita.fr>
1454
1455 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
1456 * src/reduce.c: Remove the `bitset_zero's following the
1457 `bitset_create's, as now it is performed by the latter.
1458
1459 2002-03-04 Akim Demaille <akim@epita.fr>
1460
1461 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
1462 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
1463 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
1464 latest sources from Michael.
1465
1466 2002-03-04 Akim Demaille <akim@epita.fr>
1467
1468 * src/output.c (output): Don't free the grammar.
1469 * src/reader.c (grammar_free): New.
1470 * src/main.c (main): Call it and don't free symtab here.
1471
1472 2002-03-04 Akim Demaille <akim@epita.fr>
1473
1474 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
1475 before returning.
1476 Reported by Benoit Perrot.
1477
1478 2002-03-04 Akim Demaille <akim@epita.fr>
1479
1480 Use bitset operations when possible, not loops over bits.
1481
1482 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
1483 bitset_or.
1484 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
1485 * src/reduce.c (useless_nonterminals): Formatting changes.
1486 * src/warshall.c (TC): Use bitset_or.
1487
1488 2002-03-04 Akim Demaille <akim@epita.fr>
1489
1490 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
1491 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
1492 Ditto.
1493
1494 2002-03-04 Akim Demaille <akim@epita.fr>
1495
1496 * src/lalr.c (F): Now a bitset*.
1497 Adjust all dependencies.
1498
1499 2002-03-04 Akim Demaille <akim@epita.fr>
1500
1501 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
1502 Adjust all dependencies.
1503
1504 2002-03-04 Akim Demaille <akim@epita.fr>
1505
1506 * src/L0.c, src/LR0.h (nstates): Be size_t.
1507 Adjust comparisons (signed vs unsigned).
1508 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
1509 bitset*.
1510 Adjust all dependencies.
1511
1512 2002-03-04 Akim Demaille <akim@epita.fr>
1513
1514 * src/closure.c (firsts): Now, also a bitset.
1515 Adjust all dependencies.
1516 (varsetsize): Remove, now unused.
1517 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
1518
1519 2002-03-04 Akim Demaille <akim@epita.fr>
1520
1521 * src/print.c: Convert to use bitset.h, not hand coded iterations
1522 over ints.
1523
1524 2002-03-04 Akim Demaille <akim@epita.fr>
1525
1526 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
1527
1528 2002-03-04 Akim Demaille <akim@epita.fr>
1529
1530 * src/closure.c (ruleset): Be a bitset.
1531 (rulesetsize): Remove.
1532
1533 2002-03-04 Akim Demaille <akim@epita.fr>
1534
1535 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
1536 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
1537 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
1538 * src/closure.c (fderives): Be an array of bitsets.
1539
1540 2002-02-28 Robert Anisko <robert@lrde.epita.fr>
1541
1542 * data/bison.c++: Merge the two generated headers. Insert a copyright
1543 notice in each output file.
1544
1545 2002-02-28 Akim Demaille <akim@epita.fr>
1546
1547 * data/bison.c++: Copy the prologue of bison.simple to fetch
1548 useful M4 definitions, such as b4_header_guard.
1549
1550 2002-02-25 Akim Demaille <akim@epita.fr>
1551
1552 * src/getargs.c (version): Give the name of the authors, and use a
1553 translator friendly scheme for the bgr
1554 copyright notice.
1555
1556 2002-02-25 Akim Demaille <akim@epita.fr>
1557
1558 * src/output.c (header_output): Remove, now handled completely via
1559 M4.
1560
1561 2002-02-25 Akim Demaille <akim@epita.fr>
1562
1563 * m4/m4.m4: New, from CVS Autoconf.
1564 * configure.in: Invoke it.
1565 * src/output.c (output_skeleton): Use its result instead of the
1566 hard coded name.
1567
1568 2002-02-25 Akim Demaille <akim@epita.fr>
1569
1570 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
1571 Fileutils 4.1.5.
1572 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
1573 * src/output.c (output_skeleton): Use mkstemp to create a real
1574 temporary file.
1575 Move the filling of `skeleton' and its muscle to...
1576 (prepare): here.
1577 (output): Move the definition of the prologue muscle to...
1578 (prepare): here.
1579 * src/system.h (DEFAULT_TMPDIR): New.
1580
1581 2002-02-14 Paul Eggert <eggert@twinsun.com>
1582
1583 Remove the support for C++ namespace cleanliness; it was
1584 causing more problems than it was curing, since it didn't work
1585 properly on some nonstandard C++ compilers. This can wait
1586 for a proper C++ parser.
1587
1588 * NEWS: Document this.
1589 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
1590 of C++, as it's treated like C now.
1591 * src/bison.simple (YYSTD): Remove.
1592 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
1593 Treat C++ just like Standard C instead of trying to support
1594 namespace cleanliness.
1595
1596 2002-02-14 Akim Demaille <akim@epita.fr>
1597
1598 * tests/regression.at (else): Adjust to Andreas' change.
1599
1600 2002-02-14 Akim Demaille <akim@epita.fr>
1601
1602 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
1603
1604 2002-02-13 Andreas Schwab <schwab@suse.de>
1605
1606 * src/output.c (output_rule_data): Don't output NULL, it might
1607 not be defined yet.
1608
1609 2002-02-11 Robert Anisko <robert@lrde.epita.fr>
1610
1611 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
1612 (Copyright notice): Update.
1613
1614 2002-02-11 Akim Demaille <akim@epita.fr>
1615
1616 * tests/regression.at (%nonassoc and eof): Don't include
1617 nonportable headers.
1618
1619 2002-02-08 Robert Anisko <robert@lrde.epita.fr>
1620
1621 * data/bison.c++: Correct error recovery. Make the user able to
1622 initialize the starting location.
1623
1624 2002-02-07 Akim Demaille <akim@epita.fr>
1625
1626 * tests/input.at: New.
1627
1628 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1629
1630 * data/bison.c++: Replace some direct m4 expansions by constants. Be
1631 more consistent when naming methods and variables. Put preprocessor
1632 directives around tables only needed for debugging.
1633
1634 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1635
1636 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
1637 C++ parsers.
1638 (yy::b4_name::parse): Use print_.
1639
1640 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1641
1642 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
1643
1644 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
1645
1646 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
1647 C++ parsers.
1648 (yy::b4_name::parse): Build verbose error messages, and use error_.
1649
1650 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1651
1652 * data/bison.c++: Fix m4 quoting in comments.
1653
1654 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
1655
1656 * data/bison.c++: Adjust the parser code. Fix some muscles that were
1657 not expanded by m4.
1658
1659 2002-02-05 Akim Demaille <akim@epita.fr>
1660
1661 * data/bison.c++: Adjust to the M4 back end.
1662 More is certainly needed.
1663
1664 2002-02-05 Akim Demaille <akim@epita.fr>
1665
1666 Give a try to M4 as a back end.
1667
1668 * lib/readpipe.c: New, from wdiff.
1669 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
1670 BISON_HAIRY.
1671 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
1672 specific values. Now it is m4 that performs the lookup.
1673 * src/parse-skel.y: Remove.
1674 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
1675 * src/output.c (actions_output, guards_output)
1676 (token_definitions_output): No longer keeps track of the output
1677 line number, hence remove the second argument.
1678 (guards_output): Check against the guard member of a rule, not the
1679 action member.
1680 Adjust callers.
1681 (output_skeleton): Don't look for the skeleton location, let m4 do
1682 that.
1683 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
1684 file will be used.
1685 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
1686 (prepare): Given that for the time being changesyntax is not
1687 usable in M4, rename the muscles using `-' to `_'.
1688 Define `defines_flag', `output_parser_name' and `output_header_name'.
1689 * src/output.h (actions_output, guards_output)
1690 (token_definitions_output): Adjust prototypes.
1691 * src/scan-skel.l: Instead of scanning the skeletons, it now
1692 processes the output of m4: `__oline__' and `#output'.
1693 * data/bison.simple: Adjust to be used by M4(sugar).
1694 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
1695 to date.
1696 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
1697 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
1698 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
1699 shamelessly stolen from CVS Autoconf.
1700
1701 2002-02-05 Akim Demaille <akim@epita.fr>
1702
1703 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
1704 * configure.in: Check for the declarations of free and malloc.
1705 * src/muscle_tab.c: Adjust.
1706
1707 2002-02-05 Akim Demaille <akim@epita.fr>
1708
1709 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
1710 which have no values.
1711
1712 2002-02-05 Akim Demaille <akim@epita.fr>
1713
1714 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
1715 * data/: here.
1716
1717 2002-01-29 Paul Eggert <eggert@twinsun.com>
1718
1719 * src/bison.simple (YYSIZE_T): Do not define merely because
1720 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
1721 On some platforms, <alloca.h> does not declare YYSTD (size_t).
1722
1723 2002-01-27 Akim Demaille <akim@epita.fr>
1724
1725 Fix `%nonassoc and eof'.
1726
1727 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
1728 which were not properly copied! Replace
1729 memcpy (res->errs, src->errs, src->nerrs);
1730 with
1731 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
1732 !!!
1733 * tests/regression.at (%nonassoc and eof): Adjust to newest
1734 Autotest: `.' is not in the PATH.
1735
1736 2002-01-27 Akim Demaille <akim@epita.fr>
1737
1738 * tests/sets.at (AT_EXTRACT_SETS): New.
1739 (Nullable): Use it.
1740 (Firsts): New.
1741
1742 2002-01-26 Akim Demaille <akim@epita.fr>
1743
1744 * tests/actions.at, tests/calc.at, tests/headers.at,
1745 * tests/torture.at: Adjust to the newest Autotest which no longer
1746 forces `.' in the PATH.
1747
1748 2002-01-25 Akim Demaille <akim@epita.fr>
1749
1750 * tests/regression.at (%nonassoc and eof): New.
1751 Suggested by Robert Anisko.
1752
1753 2002-01-24 Akim Demaille <akim@epita.fr>
1754
1755 Bison dumps core when trying to complain about broken input files.
1756 Reported by Cris van Pelt.
1757
1758 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
1759 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
1760 into...
1761 (Invalid inputs): Strengthen: exercise parse_percent_token.
1762
1763 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
1764
1765 * src/Makefile.am: Add bison.c++.
1766 * src/bison.c++: New skeleton.
1767
1768 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
1769
1770 * po/it.po: New.
1771
1772 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
1773
1774 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
1775
1776 2002-01-20 Marc Autret <marc@gnu.org>
1777
1778 * src/files.c (compute_output_file_names): Fix
1779
1780 2002-01-20 Marc Autret <marc@gnu.org>
1781
1782 * tests/output.at: New test.
1783 * src/files.c (compute_base_names): Don't map extensions when
1784 the YACC flag is set, use defaults.
1785 Reported by Evgeny Stambulchik.
1786
1787 2002-01-20 Marc Autret <marc@gnu.org>
1788
1789 * src/system.h: Need to define __attribute__ away for non-GCC
1790 compilers as well (i.e. the vendor C compiler).
1791 Suggested by Albert Chin-A-Young.
1792
1793 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
1794
1795 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
1796 canonical definition.
1797 * src/system.h: Use the canonical definition for PARAMS (avoids
1798 a conflict with the macro from lib/hash.h).
1799
1800 2002-01-11 Akim Demaille <akim@epita.fr>
1801
1802 * configure.in: Use AC_FUNC_STRNLEN.
1803 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
1804
1805 2002-01-09 Akim Demaille <akim@epita.fr>
1806
1807 * src/files.c, src/files.h (output_infix): New.
1808 (tab_extension): Remove.
1809 (compute_base_names): Compute the former, drop the latter.
1810 * src/output.c (prepare): Insert the muscles `output-infix', and
1811 `output-suffix'.
1812 * src/parse-skel.y (string, string.1): New.
1813 (section.header): Use it.
1814 (section.yacc): Remove.
1815 (prefix): Remove too.
1816 * src/scan-skel.l: Adjust.
1817 * src/bison.simple, src/bison.hairy: Adjust.
1818
1819 2002-01-09 Akim Demaille <akim@epita.fr>
1820
1821 * configure.in (WERROR_CFLAGS): Compute it.
1822 * src/Makefile.am (CFLAGS): Pass it.
1823 * tests/atlocal.in (CFLAGS): Idem.
1824 * src/files.c: Fix a few warnings.
1825 (get_extension_index): Remove, unused.
1826
1827 2002-01-08 Akim Demaille <akim@epita.fr>
1828
1829 * src/getargs.c (AS_FILE_NAME): New.
1830 (getargs): Use it to convert DOSish file names.
1831 * src/files.c (base_name): Rename as full_base_name to avoid
1832 clashes with `base_name ()'.
1833 (filename_split): New.
1834 (compute_base_names): N-th rewrite, using filename_split.
1835
1836 2002-01-08 Akim Demaille <akim@epita.fr>
1837
1838 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
1839 New, stolen from the Fileutils 4.1.
1840 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1841 * configure.in: Check for the presence of memrchr, and of its
1842 prototype.
1843
1844 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
1845
1846 * lib/hash.h (__P): Added definition for this macro.
1847 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
1848 BUILT_SOURCES, to ensure they are generated first.
1849 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
1850 %error-verbose to allow bootstrapping with bison 1.30x.
1851
1852 2002-01-06 Akim Demaille <akim@epita.fr>
1853
1854 * src/reader.c (parse_braces): Don't fetch the next char, the
1855 convention is to fetch on entry.
1856 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
1857 'switch' without a following semicolon.
1858 * tests/regression.at (braces parsing): New.
1859
1860 2002-01-06 Akim Demaille <akim@epita.fr>
1861
1862 Bison is dead wrong in its RR conflict reports.
1863
1864 * tests/torture.at (GNU Cim Grammar): New.
1865 * src/conflicts.c (count_rr_conflicts): Fix.
1866
1867 2002-01-06 Akim Demaille <akim@epita.fr>
1868
1869 Creating package.m4 from configure.ac causes too many problems.
1870
1871 * tests/Makefile.am (package.m4): Create it by hand,
1872 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
1873
1874 2002-01-06 Akim Demaille <akim@epita.fr>
1875
1876 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
1877 skeleton.h.
1878
1879 2002-01-04 Paul Eggert <eggert@twinsun.com>
1880
1881 * doc/bison.texinfo (Debugging):
1882 Remove YYSTDERR; it's no longer defined or used.
1883 Also, s/cstdio.h/cstdio/.
1884
1885 2002-01-03 Akim Demaille <akim@epita.fr>
1886
1887 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
1888
1889 2002-01-03 Akim Demaille <akim@epita.fr>
1890
1891 * src/parse-skel.y (process_skeleton): Don't bind the parser's
1892 tracing code to --trace, wait for a better --trace option, with
1893 args.
1894
1895 2002-01-03 Akim Demaille <akim@epita.fr>
1896
1897 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
1898 The ISO C++ standard is extremely clear about it: stderr is
1899 considered a macro, not a regular symbol (see table 94 `Header
1900 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
1901 Therefore std:: does not apply to it. It still does with fprintf.
1902 Also, s/cstdio.h/cstdio/.
1903
1904 2002-01-03 Akim Demaille <akim@epita.fr>
1905
1906 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
1907 for non system headers.
1908
1909 2002-01-02 Akim Demaille <akim@epita.fr>
1910
1911 Equip the skeleton chain with location tracking, runtime trace,
1912 pure parser and scanner.
1913
1914 * src/parse-skel.y: Request a pure parser, locations, and prefix
1915 renaming.
1916 (%union): Having several members with the same type does not help
1917 type mismatches, simplify.
1918 (YYPRINT, yyprint): New.
1919 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
1920 (skel_error): this.
1921 Handle locations.
1922 * src/scan-skel.l: Adjust to these changes.
1923 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
1924 (LOCATION_PRINT, skel_control_t): New.
1925
1926 2001-12-30 Akim Demaille <akim@epita.fr>
1927
1928 * src/parse-skel.y: Get rid of the shift/reduce conflict:
1929 replace `gb' with BLANKS.
1930 * src/scan-skel.l: Adjust.
1931
1932 2001-12-30 Akim Demaille <akim@epita.fr>
1933
1934 * src/system.h: We don't need nor want bcopy.
1935 Throw away MS-DOS crap: we don't need getpid.
1936 * configure.in: We don't need strndup. It was even causing
1937 problems: because Flex includes the headers *before* us,
1938 _GNU_SOURCE is not defined by config.h, and therefore strndup was
1939 not visible.
1940 * lib/xstrndup.c: New.
1941 * src/scan-skel.l: Use it.
1942 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
1943 * src/parse-skel.y: Use %directives instead of #defines.
1944
1945 2001-12-30 Akim Demaille <akim@epita.fr>
1946
1947 * src/skeleton.h: New.
1948 * src/output.c (output_parser, output_master_parser): Remove, dead
1949 code.
1950 * src/output.h (get_lines_number, actions_output, guards_output)
1951 (token_definitions_output): Prototype them.
1952 * src/parse-skel.y: Add the license notice.
1953 Include output.h and skeleton.h.
1954 (process_skeleton): Returns void, and takes a single parameter.
1955 * src/scan-skel.l: Add the license notice.
1956 Include skeleton.h.
1957 Don't use %option yylineno: it seems that then Flex imagines
1958 REJECT has been used, and therefore it won't reallocate its
1959 buffers (which makes no other sense to me than a bug). It results
1960 in warnings for `unused: yy_flex_realloc'.
1961
1962 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
1963
1964 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1965 (MUSCLE_INSERT_PREFIX): ...to there.
1966 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
1967 (MUSCLE_INSERT_PREFIX): Move from here...
1968
1969 * src/bison.hairy: Add a section directive. Put braces around muscle
1970 names. This parser skeleton is still broken, but Bison should not
1971 choke on a bad muscle 'syntax'.
1972 * src/bison.simple: Add a section directive. Put braces around muscle
1973 names.
1974
1975 * src/files.h (strsuffix, stringappend): Add declarations.
1976 (tab_extension): Add declaration.
1977 (short_base_name): Add declaration.
1978
1979 * src/files.c (strsuffix, stringappend): No longer static. These
1980 functions are used in the skeleton parser.
1981 (tab_extension): New.
1982 (compute_base_names): Use the computations done in this function
1983 to guess if the generated parsers should have '.tab' in their
1984 names.
1985 (short_base_name): No longer static.
1986
1987 * src/output.c (output_skeleton): New.
1988 (output): Disable call to output_master_parser, and give a try to
1989 a new skeleton handling system.
1990 (guards_output, actions_output): No longer static.
1991 (token_definitions_output, get_lines_number): No longer static.
1992
1993 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
1994
1995 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
1996 parse-skel.y.
1997
1998 * src/parse-skel.y: New file.
1999 * src/scan-skel.l: New file.
2000
2001 2001-12-29 Akim Demaille <akim@epita.fr>
2002
2003 %name-prefix is broken.
2004
2005 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
2006 Adjust all dependencies.
2007 * tests/headers.at (export YYLTYPE): Strengthen this test: use
2008 %name-prefix.
2009
2010 Renaming yylval but not yylloc is not consistent. Now we do.
2011
2012 * src/bison.simple: Prefix yylloc if used.
2013 * doc/bison.texinfo (Decl Summary): Document that.
2014
2015 2001-12-29 Akim Demaille <akim@epita.fr>
2016
2017 * doc/bison.texinfo: Promote `%long-directive' over
2018 `%long_directive'.
2019 Remove all references to fixed-output-files, yacc is enough.
2020
2021 2001-12-29 Akim Demaille <akim@epita.fr>
2022
2023 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
2024 user prologue. These are defaults.
2025 * tests/actions.at (Mid-rule actions): Make sure the user can
2026 define YYDEBUG and YYERROR_VERBOSE.
2027
2028 2001-12-29 Akim Demaille <akim@epita.fr>
2029
2030 * src/output.c (header_output): Don't forget to export YYLTYPE and
2031 yylloc.
2032 * tests/headers.at (export YYLTYPE): New, make sure it does.
2033 * tests/regression.at (%union and --defines, Invalid CPP headers):
2034 Move to...
2035 * tests/headers.at: here.
2036
2037 2001-12-29 Akim Demaille <akim@epita.fr>
2038
2039 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
2040
2041 2001-12-29 Akim Demaille <akim@epita.fr>
2042
2043 * tests/actions.at (Mid-rule actions): Output on a single line
2044 instead of several.
2045
2046 2001-12-29 Akim Demaille <akim@epita.fr>
2047
2048 * doc/bison.texinfo: Formatting changes.
2049
2050 2001-12-29 Akim Demaille <akim@epita.fr>
2051
2052 Don't store the token defs in a muscle, just be ready to output it
2053 on command. Now possible via `symbols'. Fixes a memory leak.
2054
2055 * src/output.c (token_definitions_output): New.
2056 (output_parser, header_output): Use it.
2057 * src/reader.c (symbols_save): Remove.
2058
2059 2001-12-29 Akim Demaille <akim@epita.fr>
2060
2061 * src/bison.simple: Do not provide a default for YYSTYPE and
2062 YYLTYPE before the user's prologue. Otherwise it's hardly... a
2063 default.
2064
2065 2001-12-29 Akim Demaille <akim@epita.fr>
2066
2067 Mid-rule actions are simply... ignored!
2068
2069 * src/reader.c (readgram): Be sure to attach mid-rule actions to
2070 the empty-rule associated to the dummy symbol, not to the host
2071 rule.
2072 * tests/actions.at (Mid-rule actions): New.
2073
2074 2001-12-29 Akim Demaille <akim@epita.fr>
2075
2076 Memory leak.
2077
2078 * src/reader.c (reader): Free grammar.
2079
2080 2001-12-29 Akim Demaille <akim@epita.fr>
2081
2082 Memory leak.
2083
2084 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
2085 since it allocates it for each state, although only one is needed.
2086 (allocate_storage): Do it here.
2087
2088 2001-12-29 Akim Demaille <akim@epita.fr>
2089
2090 * src/options.h, src/options.c (create_long_option_table): Rename
2091 as...
2092 (long_option_table_new): this, with a clearer prototype.
2093 (percent_table): Remove, unused,
2094 * src/getargs.c (getargs): Adjust.
2095
2096 2001-12-29 Akim Demaille <akim@epita.fr>
2097
2098 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
2099 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
2100 as states.
2101
2102 2001-12-29 Akim Demaille <akim@epita.fr>
2103
2104 * src/lalr.c (build_relations): Rename `states' as `states1'.
2105 Sorry, I don't understand exactly what it is, no better name...
2106
2107 2001-12-29 Akim Demaille <akim@epita.fr>
2108
2109 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
2110 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
2111 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
2112 as rules.
2113
2114 2001-12-29 Akim Demaille <akim@epita.fr>
2115
2116 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
2117 ago.
2118
2119 2001-12-29 Akim Demaille <akim@epita.fr>
2120
2121 * src/reader.c, src/reader.h (user_toknums): Remove.
2122 Adjust all users to use symbols[i]->user_token_number.
2123
2124 2001-12-29 Akim Demaille <akim@epita.fr>
2125
2126 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
2127 Adjust all users to use symbols[i]->prec or ->assoc.
2128
2129 2001-12-29 Akim Demaille <akim@epita.fr>
2130
2131 * src/reader.c, src/reader.h (tags): Remove.
2132 Adjust all users to use symbols[i]->tag.
2133
2134 2001-12-29 Akim Demaille <akim@epita.fr>
2135
2136 * src/gram.h, src/gram.c (symbols): New, similar to state_table
2137 and rule_table.
2138 * src/reader.c (packsymbols): Fill this table.
2139 Drop sprec.
2140 * src/conflicts.c (resolve_sr_conflict): Adjust.
2141 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
2142 single table.
2143 Use symbols[i]->tag instead of tags[i].
2144
2145 2001-12-29 Akim Demaille <akim@epita.fr>
2146
2147 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
2148 In addition, put a comment in there, to replace...
2149 * tests/regression.at (%union and C comments): Remove.
2150
2151 2001-12-29 Akim Demaille <akim@epita.fr>
2152
2153 * tests/regression.at (Web2c Actions): Blindly move the actual
2154 output as expected output. The contents *seem* right to me, but I
2155 can't pretend reading perfectly parser tables... Nonetheless, all
2156 the other tests pass correctly, the table look OK, even though the
2157 presence of `$axiom' is to be noted: AFAICS it is useless (but
2158 harmless).
2159
2160 2001-12-29 Akim Demaille <akim@epita.fr>
2161
2162 * src/reader.c (readgram): Don't add the rule 0 if there were no
2163 rules read. In other words, add it _after_ having performed
2164 grammar sanity checks.
2165 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
2166
2167 2001-12-29 Akim Demaille <akim@epita.fr>
2168
2169 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
2170 visible, and some states have now a different number.
2171
2172 2001-12-29 Akim Demaille <akim@epita.fr>
2173
2174 * src/reader.c (readgram): Bind the initial rule's lineno to that
2175 of the first rule.
2176 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
2177 (Solved SR Conflicts): Adjust rule 0's line number.
2178
2179 2001-12-29 Akim Demaille <akim@epita.fr>
2180
2181 Fix the `GAWK Grammar' failure.
2182
2183 * src/LR0.c (final_state): Initialize to -1 so that we do compute
2184 the reductions of the first state which was mistakenly confused
2185 with the final state because precisely final_state was initialized
2186 to 0.
2187 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
2188 now noticed by Bison.
2189 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
2190 have a reduction on $default.
2191
2192 2001-12-29 Akim Demaille <akim@epita.fr>
2193
2194 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
2195 rule line numbers.
2196 * src/closure.c (print_closure): Likewise.
2197 * src/derives.c (print_derives): Likewise.
2198 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
2199 now.
2200
2201 2001-12-29 Akim Demaille <akim@epita.fr>
2202
2203 * src/lalr.c (lookaheads_print): New.
2204 (lalr): Call it when --trace-flag.
2205 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
2206 are dumped.
2207
2208 2001-12-29 Akim Demaille <akim@epita.fr>
2209
2210 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
2211 when walking through ritem, even via rule->rhs.
2212 * src/reduce.c (dump_grammar, useful_production, reduce_output)
2213 (useful_production, useless_nonterminals): Likewise.
2214 (reduce_grammar_tables): Likewise, plus update nritems.
2215 * src/nullable.c (set_nullable): Likewise.
2216 * src/lalr.c (build_relations): Likewise.
2217 * tests/sets.at (Nullable): Adjust.
2218 Fortunately, now, the $axiom is no longer nullable.
2219
2220 2001-12-29 Akim Demaille <akim@epita.fr>
2221
2222 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
2223 the 0-sentinel.
2224 * src/gram.c (ritem_longest_rhs): Likewise.
2225 * src/reduce.c (nonterminals_reduce): Likewise.
2226 * src/print_graph.c (print_graph): Likewise.
2227 * src/output.c (output_rule_data): Likewise.
2228 * src/nullable.c (set_nullable): Likewise.
2229
2230 2001-12-29 Akim Demaille <akim@epita.fr>
2231
2232 * src/output.c: Comment changes.
2233
2234 2001-12-27 Paul Eggert <eggert@twinsun.com>
2235
2236 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
2237 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
2238 Sparc, as they were causing more porting problems than the
2239 (minor) performance improvement was worth.
2240
2241 Also, catch up with 1.31's YYSTD.
2242
2243 2001-12-27 Akim Demaille <akim@epita.fr>
2244
2245 * src/output.c (output_gram): Rely on nritems, not the
2246 0-sentinel. See below.
2247 Use -1 as separator, not 0.
2248 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
2249 Rely on -1 as separator in yyrhs, instead of 0.
2250 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
2251 twice `Now at end of input', therefore there are two lines less to
2252 expect.
2253
2254 2001-12-27 Akim Demaille <akim@epita.fr>
2255
2256 * tests/regression.at (Unresolved SR Conflicts):
2257 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
2258 below.
2259
2260 2001-12-27 Akim Demaille <akim@epita.fr>
2261
2262 * src/LR0.c (new_state): Recognize the final state by the fact it
2263 is reached by eoftoken.
2264 (insert_start_shifting_state, insert_eof_shifting_state)
2265 (insert_accepting_state, augment_automaton): Remove, since now
2266 these states are automatically computed from the initial state.
2267 (generate_states): Adjust.
2268 * src/print.c: When reporting a rule number to the user, substract
2269 1, so that the axiom rule is rule 0, and the first user rule is 1.
2270 * src/reduce.c: Likewise.
2271 * src/print_graph.c (print_core): For the time being, just as for
2272 the report, depend upon --trace-flags to dump the full set of
2273 items.
2274 * src/reader.c (readgram): Once the grammar read, insert the rule
2275 0: `$axiom: START-SYMBOL $'.
2276 * tests/set.at: Adjust: rule 0 is now displayed, and since the
2277 number of the states has changed (the final state is no longer
2278 necessarily the last), catch up.
2279
2280 2001-12-27 Akim Demaille <akim@epita.fr>
2281
2282 Try to make the use of the eoftoken valid. Given that its value
2283 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
2284 is used instead of > 0 where appropriate, (ii), depend upon nritems
2285 instead of the 0-sentinel.
2286
2287 * src/gram.h, src/gram.c (nritems): New.
2288 Expected to be duplication of nitems, but for the time being...
2289 * src/reader.c (packgram): Assert nritems and nitems are equal.
2290 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
2291 * src/closure.c (print_closure, print_fderives): Likewise.
2292 * src/gram.c (ritem_print): Likewise.
2293 * src/print.c (print_core, print_grammar): Likewise.
2294 * src/print_graph.c: Likewise.
2295
2296 2001-12-27 Akim Demaille <akim@epita.fr>
2297
2298 * src/main.c (main): If there are complains after grammar
2299 reductions, then output the report anyway if requested, then die.
2300 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
2301 * src/reader.c (eoftoken): New.
2302 (parse_token_decl): If the token being defined has value `0', it
2303 is the eoftoken.
2304 (packsymbols): No longer hack `tags' to insert `$' by hand.
2305 Be sure to preserve the value of the eoftoken.
2306 (reader): Make sure eoftoken is defined.
2307 Initialize nsyms to 0: now eoftoken is created just like the others.
2308 * src/print.c (print_grammar): Don't special case the eof token.
2309 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
2310 lie anyway, albeit pleasant.
2311 * tests/calc.at: Exercise error messages with eoftoken.
2312 Change the grammar so that empty input is invalid.
2313 Adjust expectations.
2314 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
2315
2316 2001-12-27 Akim Demaille <akim@epita.fr>
2317
2318 * configure.in: Check the protos of strchr ans strspn.
2319 Replace strchr if needed.
2320 * src/system.h: Provide the protos of strchr, strspn and memchr if
2321 missing.
2322 * lib/strchr.c: New.
2323 * src/reader.c (symbols_save): Use strchr.
2324
2325 2001-12-27 Akim Demaille <akim@epita.fr>
2326
2327 * src/print.c, src/print_graph.c (escape): New.
2328 Use it to quote the TAGS outputs.
2329 * src/print_graph.c (print_state): Now errors are in red, and
2330 reductions in green.
2331 Prefer high to wide: output the state number on a line of its own.
2332
2333 2001-12-27 Akim Demaille <akim@epita.fr>
2334
2335 * src/state.h, src/state.c (reductions_new): New.
2336 * src/LR0.c (set_state_table): Let all the states have a
2337 `reductions', even if reduced to 0.
2338 (save_reductions): Adjust.
2339 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
2340 * src/print.c (print_reductions, print_actions): Adjust.
2341 * src/output.c (action_row): Adjust.
2342
2343 2001-12-27 Akim Demaille <akim@epita.fr>
2344
2345 * src/state.h, src/state.c (errs_new, errs_dup): New.
2346 * src/LR0.c (set_state_table): Let all the states have an errs,
2347 even if reduced to 0.
2348 * src/print.c (print_errs, print_reductions): Adjust.
2349 * src/output.c (output_actions, action_row): Adjust.
2350 * src/conflicts.c (resolve_sr_conflict): Adjust.
2351
2352 2001-12-27 Akim Demaille <akim@epita.fr>
2353
2354 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
2355
2356 2001-12-27 Akim Demaille <akim@epita.fr>
2357
2358 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
2359 * src/print.c: here.
2360 (lookaheadset, shiftset): New, used as additional storage by
2361 print_reductions.
2362 (print_results): Adjust.
2363 (print_shifts, print_gotos, print_errs): New, extracted from...
2364 (print_actions): here.
2365 * src/print_graph.c (print_actions): Remove dead code.
2366
2367 2001-12-27 Akim Demaille <akim@epita.fr>
2368
2369 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
2370 `$n' and `@n'.
2371
2372 2001-12-27 Akim Demaille <akim@epita.fr>
2373
2374 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
2375 (build_relations): Adjust.
2376
2377 2001-12-27 Akim Demaille <akim@epita.fr>
2378
2379 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
2380 duplication.
2381
2382 2001-12-27 Akim Demaille <akim@epita.fr>
2383
2384 * src/reader.c (packgram): Catch nitems overflows.
2385
2386 2001-12-27 Akim Demaille <akim@epita.fr>
2387
2388 * src/files.c, src/files.h (guard_obstack): Remove.
2389 * src/output.c (output): Adjust.
2390 * src/reader.c (parse_braces): New, factoring...
2391 (copy_action, copy_guard): these two which are renamed as...
2392 (parse_action, parse_guard): these.
2393 As a voluntary consequence, using braces around guards is now
2394 mandatory.
2395
2396 2001-12-27 Akim Demaille <akim@epita.fr>
2397
2398 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
2399 * src/reader.c (symbol_list): `guard' and `guard_line' are new
2400 members.
2401 (symbol_list_new): Adjust.
2402 (copy_action): action_line is the first line, not the last.
2403 (copy_guard): Just as for actions, store the `action' only, not
2404 the switch/case/break flesh.
2405 Don't parse the user action that might follow the guard, let...
2406 (readgram): do it, i.e., now, there can be an action after a
2407 guard.
2408 In other words the guard is just explicitly optional.
2409 (packgram): Adjust.
2410 * src/output.c (guards_output): New.
2411 (output_parser): Call it when needed.
2412 (output): Also free the guard and attrs obstacks.
2413 * src/files.c, src/files.h (obstack_save): Remove.
2414 (output_files): Remove.
2415 As a result, if one needs the former `.act' file, using an
2416 appropriate skeleton which requires actions and guards is now
2417 required.
2418 * src/main.c (main): Adjust.
2419 * tests/semantic.at: New.
2420 * tests/regression.at: Use `input.y' as input file name.
2421 Avoid 8+3 problems by requiring input.c when the test needs the
2422 parser.
2423
2424 2001-12-27 Akim Demaille <akim@epita.fr>
2425
2426 * src/reader.c (symbol_list_new): Be sure to initialize all the
2427 fields.
2428
2429 2001-12-27 Akim Demaille <akim@epita.fr>
2430
2431 All the hacks using a final pseudo state are now useless.
2432
2433 * src/LR0.c (set_state_table): state_table holds exactly nstates.
2434 * src/lalr.c (nLA): New.
2435 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
2436 instead of lookaheadsp from the pseudo state (nstate + 1).
2437
2438 2001-12-27 Akim Demaille <akim@epita.fr>
2439
2440 * src/output.c (action_row, token_actions): Use a state_t instead
2441 of a integer, and nlookaheads instead of the following state's
2442 lookaheadsp.
2443
2444 2001-12-27 Akim Demaille <akim@epita.fr>
2445
2446 * src/conflicts.c (log_resolution, flush_shift)
2447 (resolve_sr_conflict, set_conflicts, solve_conflicts)
2448 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
2449 (conflicts_print, print_reductions): Use a state_t instead of an
2450 integer when referring to a state.
2451 As much as possible, depend upon nlookaheads, instead of the
2452 `lookaheadsp' member of the following state (since lookaheads of
2453 successive states are successive, the difference between state n + 1
2454 and n served as the number of lookaheads for state n).
2455 * src/lalr.c (add_lookback_edge): Likewise.
2456 * src/print.c (print_core, print_actions, print_state)
2457 (print_results): Likewise.
2458 * src/print_graph.c (print_core, print_actions, print_state)
2459 (print_graph): Likewise.
2460 * src/conflicts.h: Adjust.
2461
2462 2001-12-27 Akim Demaille <akim@epita.fr>
2463
2464 * src/bison.hairy: Formatting/comment changes.
2465 ANSIfy.
2466 Remove `register' indications.
2467 Add plenty of `static'.
2468
2469 2001-12-27 Akim Demaille <akim@epita.fr>
2470
2471 * src/output.c (prepare): Drop the muscle `ntbase' which
2472 duplicates ntokens.
2473 * src/bison.simple: Formatting/comment changes.
2474 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
2475 is an undocumented synonym.
2476
2477 2001-12-22 Akim Demaille <akim@epita.fr>
2478
2479 * src/output.c (output_table_data): Change the prototype to use
2480 `int' for array ranges: some invocations do pass an int, not a
2481 short.
2482 Reported by Wayne Green.
2483
2484 2001-12-22 Akim Demaille <akim@epita.fr>
2485
2486 Some actions of web2c.y are improperly triggered.
2487 Reported by Mike Castle.
2488
2489 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
2490 * tests/regression.at (Web2c): Rename as...
2491 (Web2c Report): this.
2492 (Web2c Actions): New.
2493
2494 2001-12-22 Akim Demaille <akim@epita.fr>
2495
2496 Reductions in web2c.y are improperly reported.
2497 Reported by Mike Castle.
2498
2499 * src/conflicts.c (print_reductions): Fix.
2500 * tests/regression.at (Web2c): New.
2501
2502 2001-12-18 Akim Demaille <akim@epita.fr>
2503
2504 Some host fail on `assert (!"foo")', which expands to
2505 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
2506 Reported by Nelson Beebee.
2507
2508 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
2509 `#define it_succeeded 0' and `assert (it_succeeded)'.
2510
2511 2001-12-17 Marc Autret <autret_m@epita.fr>
2512
2513 * src/bison.simple: Don't hard code the skeleton line and filename.
2514 * src/output.c (output_parser): Rename 'line' as 'output_line'.
2515 New line counter 'skeleton_line' (skeleton-line muscle).
2516
2517 2001-12-17 Paul Eggert <eggert@twinsun.com>
2518
2519 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
2520 YYDEBUG must be defined to a nonzero value.
2521
2522 * src/bison.simple (yytname): Do not assume that the user defines
2523 YYDEBUG to a properly parenthesized expression.
2524
2525 2001-12-17 Akim Demaille <akim@epita.fr>
2526
2527 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
2528 nlookaheads is a new member.
2529 Adjust all users.
2530 * src/lalr.h (nlookaheads): Remove this orphan declaration.
2531 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
2532 state.
2533
2534 2001-12-17 Akim Demaille <akim@epita.fr>
2535
2536 * src/files.h, src/files.c (open_files, close_files): Remove.
2537 * src/main.c (main): Don't open/close files, nor invoke lex_free,
2538 let...
2539 * src/reader.c (reader): Do it.
2540
2541 2001-12-17 Akim Demaille <akim@epita.fr>
2542
2543 * src/conflicts.c (print_reductions): Formatting changes.
2544
2545 2001-12-17 Akim Demaille <akim@epita.fr>
2546
2547 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
2548 (flush_reduce): New.
2549 (resolve_sr_conflict): Adjust.
2550
2551 2001-12-17 Akim Demaille <akim@epita.fr>
2552
2553 * src/output.c (output_obstack): Be static and rename as...
2554 (format_obstack): this, to avoid any confusion with files.c's
2555 output_obstack.
2556 * src/reader.h (muscle_obstack): Move to...
2557 * src/output.h: here, since it's defined in output.c.
2558
2559 2001-12-17 Akim Demaille <akim@epita.fr>
2560
2561 * src/output.c (action_row, save_column, default_goto)
2562 (sort_actions, matching_state, pack_vector): Better variable
2563 locality.
2564
2565 2001-12-17 Akim Demaille <akim@epita.fr>
2566
2567 * src/output.c: Various formatting changes.
2568
2569 2001-12-17 Akim Demaille <akim@epita.fr>
2570
2571 * src/files.c (output_files): Free the output_obstack.
2572 * src/main.c (main): Call print and print_graph conditionally.
2573 * src/print.c (print): Work unconditionally.
2574 * src/print_graph.c (print_graph): Work unconditionally.
2575 * src/conflicts.c (log_resolution): Output only if verbose_flag.
2576
2577 2001-12-16 Marc Autret <autret_m@epita.fr>
2578
2579 * src/output.c (actions_output): Fix. When we use %no-lines,
2580 there is one less line per action.
2581
2582 2001-12-16 Marc Autret <autret_m@epita.fr>
2583
2584 * src/bison.simple: Remove a useless #line directive.
2585 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
2586 * src/output.c (get_lines_number): New.
2587 (output_parser): Adjust, now takes care about the lines of a
2588 output muscles.
2589 Fix line numbering.
2590 (actions_output): Computes the number of lines taken by actions.
2591 (output_master_parser): Insert new skeleton which is the name of
2592 the output parser file name.
2593
2594 2001-12-15 Marc Autret <autret_m@epita.fr>
2595
2596 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
2597
2598 2001-12-15 Marc Autret <autret_m@epita.fr>
2599
2600 * src/output.c (output_gram): Keep track of the hairy one.
2601
2602 2001-12-15 Akim Demaille <akim@epita.fr>
2603
2604 Make `make distcheck' work.
2605
2606 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
2607 system.h which uses libgettext.h.
2608
2609 2001-12-15 Akim Demaille <akim@epita.fr>
2610
2611 * src/nullable.c (set_nullable): Useless rules must be skipped,
2612 otherwise, since we range over their symbols, we might look at a
2613 nonterminal which no longer ``exists'', i.e., it is not counted in
2614 `nvars', hence we overflow our arrays.
2615
2616 2001-12-15 Akim Demaille <akim@epita.fr>
2617
2618 The header can also be produced directly, without any obstack!
2619 Yahoo!
2620
2621 * src/files.c, src/files.h (defines_obstack): Remove.
2622 (compute_header_macro): Global.
2623 (defines_obstack_save): Remove.
2624 * src/reader.c (parse_union_decl): No longer output to
2625 defines_obstack: its content can be found in the `stype' muscle
2626 anyway.
2627 (output_token_translations): Merge into...
2628 (symbols_output): this.
2629 Rename as...
2630 (symbols_save): this.
2631 (reader): Adjust.
2632 * src/output.c (header_output): New.
2633 (output): Call it.
2634
2635 2001-12-15 Akim Demaille <akim@epita.fr>
2636
2637 * src/reader.c (parse_union_decl): Instead of handling two obstack
2638 simultaneously, use one to define the `stype' muscle, and use the
2639 value of the latter to fill defines_obstack.
2640 (copy_comment): Remove.
2641 (copy_comment2): Work for a single obstack.
2642 Rename as...
2643 (copy_comment): this.
2644
2645 2001-12-15 Akim Demaille <akim@epita.fr>
2646
2647 * src/lex.c, src/lex.h (xgetc): No longer static.
2648 * src/reader.c (parse_union_decl): Revamp.
2649
2650 2001-12-15 Akim Demaille <akim@epita.fr>
2651
2652 Still making progress in separating Bison into (i) input, (ii)
2653 process, (iii) output: now we can directly output the parser file
2654 without using table_obstack at all.
2655
2656 * src/files.c, src/files.h (table_obstack): Bye bye.
2657 (parser_file_name): New.
2658 * src/files.c (compute_output_file_names): Compute it.
2659 * src/output.c (actions_output, output_parser)
2660 (output_master_parser): To a file instead of an obstack.
2661
2662 2001-12-15 Akim Demaille <akim@epita.fr>
2663
2664 Attach actions to rules, instead of pre-outputting them to
2665 actions_obstack.
2666
2667 * src/gram.h (rule_t): action and action_line are new members.
2668 * src/reader.c (symbol_list): Likewise.
2669 (copy_action): Save the actions within the rule.
2670 (packgram): Save them in rule_table.
2671 * src/output.c (actions_output): New.
2672 (output_parser): Use it on `%%actions'.
2673 (output_rule_data): Don't free rule_table.
2674 (output): Do it.
2675 (prepare): Don't save the `action' muscle.
2676 * src/bison.simple: s/%%action/%%actions/.
2677
2678 2001-12-15 Akim Demaille <akim@epita.fr>
2679
2680 * src/reader.c (copy_action): When --yacc, don't append a `;'
2681 to the user action: let it fail if lacking.
2682 Suggested by Arnold Robbins and Tom Tromey.
2683
2684 2001-12-14 Akim Demaille <akim@epita.fr>
2685
2686 * src/lex.c (literalchar): Simply return the char you decoded, non
2687 longer mess around with obstacks and int pointers.
2688 Adjust all callers.
2689
2690 2001-12-14 Akim Demaille <akim@epita.fr>
2691
2692 * src/lex.c (literalchar): Don't escape the special characters,
2693 just decode them, and keep them as char (before, eol was output as
2694 the 2 char string `\n' etc.).
2695 * src/output.c (output_rule_data): Use quotearg to output the
2696 token strings.
2697
2698 2001-12-13 Paul Eggert <eggert@twinsun.com>
2699
2700 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
2701 Do not infringe on the global user namespace when using C++.
2702 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
2703 All uses of `fprintf' and `stderr' changed.
2704
2705 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
2706
2707 2001-12-13 Akim Demaille <akim@epita.fr>
2708
2709 The computation of nullable is broken: it doesn't handle empty
2710 RHS's properly.
2711
2712 * tests/torture.at (GNU AWK Grammar): New.
2713 * tests/sets.at (Nullable): New.
2714 * src/nullable.c (set_nullable): Instead of blindly looping over
2715 `ritems', loop over the rules, and then over their rhs's.
2716
2717 Work around Autotest bugs.
2718
2719 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
2720 frame, because Autotest understand lines starting with a `+' as
2721 traces from the shell. Then, they are not processed properly.
2722 Admittedly an Autotest bug, but we don't have time to wait for
2723 Autotest to catch up.
2724 * tests/regression.at (Broken Closure): Adjust to the new table
2725 frames.
2726 Move to...
2727 * tests/sets.at: here.
2728
2729 2001-12-13 Akim Demaille <akim@epita.fr>
2730
2731 * src/closure.c (closure): Use nrules instead of playing tricks
2732 with BITS_PER_WORD.
2733
2734 2001-12-13 Akim Demaille <akim@epita.fr>
2735
2736 * src/print.c (print_actions): Output the handling of `$' as the
2737 traces do: shifting the token EOF. Before EOF was treated as a
2738 nonterminal.
2739 * tests/regression.at: Adjust some tests.
2740 * src/print_graph.c (print_core): Complete the set of items via
2741 closure. The next-to-final and final states are still unsatisfying,
2742 but that's to be addressed elsewhere.
2743 No longer output the rule numbers, but do output the state number.
2744 A single loop for the shifts + gotos is enough, but picked a
2745 distinct color for each.
2746 (print_graph): Initialize and finalize closure.
2747
2748 2001-12-13 Akim Demaille <akim@epita.fr>
2749
2750 * src/reader.c (readgram): Remove dead code, an strip useless
2751 braces.
2752 (get_type): Remove, unused.
2753
2754 2001-12-12 Akim Demaille <akim@epita.fr>
2755
2756 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
2757 on that of lib/error.c.
2758
2759 2001-12-12 Akim Demaille <akim@epita.fr>
2760
2761 Some hosts don't like `/' in includes.
2762
2763 * src/system.h: Include libgettext.h without qualifying the path.
2764 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
2765 $(top_srcdir).
2766
2767 2001-12-11 Marc Autret <autret_m@epita.fr>
2768
2769 * src/output.c (output_parser): Remove useless muscle.
2770
2771 2001-12-11 Marc Autret <autret_m@epita.fr>
2772
2773 * src/bison.simple: Remove #line just before %%epilogue. It
2774 is now handled in ...
2775 * src/reader.c (read_additionnal_code): Add the output of a
2776 #line for the epilogue.
2777
2778 2001-12-10 Marc Autret <autret_m@epita.fr>
2779
2780 * src/reader.c (copy_definition): Re-use CPP-outed code which
2781 replace precedent remove.
2782 * src/bison.simple: Remove #line before %%prologue because
2783 %%input-line is wrong at this time.
2784
2785 2001-12-10 Marc Autret <autret_m@epita.fr>
2786
2787 * src/reader.c (symbols_output): Clean up.
2788 * src/output.c (output_gram, output): Clean up.
2789
2790 2001-12-10 Akim Demaille <akim@epita.fr>
2791
2792 * src/lalr.c (initialize_lookaheads): New. Extracted from...
2793 * src/LR0.c (set_state_table): here.
2794 * src/lalr.c (lalr): Call it.
2795
2796 2001-12-10 Akim Demaille <akim@epita.fr>
2797
2798 * src/state.h (shifts): Remove the `number' member: shifts are
2799 attached to state, hence no longer need to be labelled with a
2800 state number.
2801
2802 2001-12-10 Akim Demaille <akim@epita.fr>
2803
2804 Now that states have a complete set of members, the linked list of
2805 shifts is useless: just fill directly the state's shifts member.
2806
2807 * src/state.h (shifts): Remove the `next' member.
2808 * src/LR0.c (first_state, last_state): Remove.
2809 Adjust the callers.
2810 (augment_automaton): Don't look for the shifts that must be added
2811 a shift on EOF: it is those of the state we looked for! But now,
2812 since shifts are attached, it is no longer needed to looking
2813 merely by its id: its number.
2814
2815 2001-12-10 Akim Demaille <akim@epita.fr>
2816
2817 * src/LR0.c (augment_automaton): Better variable locality.
2818 Remove an impossible branch: if there is a state corresponding to
2819 the start symbol being shifted, then there is shift for the start
2820 symbol from the initial state.
2821
2822 2001-12-10 Akim Demaille <akim@epita.fr>
2823
2824 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
2825 only when appropriate: when insert_start_shifting_state' is not
2826 invoked.
2827 * tests/regression.at (Rule Line Numbers): Adjust.
2828
2829 2001-12-10 Akim Demaille <akim@epita.fr>
2830
2831 * src/LR0.c (augment_automaton): Now that all states have shifts,
2832 merge the two cases addition shifts to the initial state.
2833
2834 2001-12-10 Akim Demaille <akim@epita.fr>
2835
2836 * src/lalr.c (set_state_table): Move to...
2837 * src/LR0.c: here.
2838 * src/lalr.c (lalr): Don't call it...
2839 * src/LR0.c (generate_states): do it.
2840 * src/LR0.h (first_state): Remove, only the table is used.
2841
2842 2001-12-10 Akim Demaille <akim@epita.fr>
2843
2844 * src/LR0.h (first_shift, first_reduction): Remove.
2845 * src/lalr.c: Don't use first_shift: find shifts through the
2846 states.
2847
2848 2001-12-10 Akim Demaille <akim@epita.fr>
2849
2850 * src/LR0.c: Attach shifts to states as soon as they are
2851 computed.
2852 * src/lalr.c (set_state_table): Instead of assigning shifts to
2853 state, just assert that the mapping was properly done.
2854
2855 2001-12-10 Akim Demaille <akim@epita.fr>
2856
2857 * src/LR0.c (insert_start_shift): Rename as...
2858 (insert_start_shifting_state): this.
2859 (insert_eof_shifting_state, insert_accepting_state): New.
2860 (augment_automaton): Adjust.
2861 Better locality of the variables.
2862 When looking if the start_symbol is shifted from the initial
2863 state, using `while (... symbol != start_symbol ...)' sounds
2864 better than `while (... symbol < start_symbol ...)': If fail
2865 to see how the order between symbols could be relevant!
2866
2867 2001-12-10 Akim Demaille <akim@epita.fr>
2868
2869 * src/getargs.h: Don't declare `spec_name_prefix' and
2870 `spec_file_prefix', declared by src/files.h.
2871 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
2872 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
2873 * src/output.c (prepare): Adjust.
2874 * src/reader.c (symbols_output): Likewise.
2875 * src/vmsgetargs.c: Vaguely adjust, but who cares?
2876
2877 2001-12-10 Akim Demaille <akim@epita.fr>
2878
2879 * src/muscle_tab.c (muscle_init): NULL is a better default than
2880 `"0"'.
2881
2882 2001-12-10 Akim Demaille <akim@epita.fr>
2883
2884 * src/reader.c (reader): Calling symbols_output once is enough.
2885
2886 2001-12-10 Akim Demaille <akim@epita.fr>
2887
2888 Now that states have a complete set of members, the linked list of
2889 reductions is useless: just fill directly the state's reductions
2890 member.
2891
2892 * src/state.h (struct reductions): Remove member `number' and
2893 `next'.
2894 * src/LR0.c (first_reduction, last_reduction): Remove.
2895 (save_reductions): Don't link the new reductions, store them in
2896 this_state.
2897 * src/lalr.c (set_state_table): No need to attach reductions to
2898 states, it's already done.
2899 * src/output.c (output_actions): No longer free the shifts, then
2900 the reductions, then the states: free all the states and their
2901 members.
2902
2903 2001-12-10 Akim Demaille <akim@epita.fr>
2904
2905 * src/options.c (OPTN, DRTV, BOTH): New.
2906 (option_table): Use them.
2907
2908 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
2909 the job of system.h.
2910 * src/options.c: Don't include stdio.h and xalloc.h for the same
2911 reasons.
2912
2913 2001-12-10 Akim Demaille <akim@epita.fr>
2914
2915 * src/output.c (output, prepare): Make sure the values of the
2916 muscles `action' and `prologue' are 0-terminated.
2917
2918 2001-12-10 Akim Demaille <akim@epita.fr>
2919
2920 Clean up GCC warnings.
2921
2922 * src/reader.c (copy_action): `buf' is not used.
2923 (parse_skel_decl): Be static.
2924 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
2925 * src/options.h (create_long_option_table): Have a real prototype.
2926 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
2927 (hash_delete_at): Return const void *.
2928 Adjust casts to preserve the const.
2929
2930 2001-12-10 Akim Demaille <akim@epita.fr>
2931
2932 * configure.in: Require 2.52g.
2933 M4 is not needed, but AUTOM4TE is.
2934 * m4/m4.m4: Remove.
2935 * tests/Makefile.am: Adjust.
2936
2937 2001-12-10 Akim Demaille <akim@epita.fr>
2938
2939 One structure for states is enough, even though theoretically
2940 there are LR(0) states and LALR(1) states.
2941
2942 * src/lalr.h (state_t): Remove.
2943 (state_table): Be state_t **, not state_t *.
2944 * src/state.h (core, CORE_ALLOC): Rename as...
2945 (state_t, STATE_ALLOC): this.
2946 Add the LALR(1) members: shifts, reductions, errs.
2947 * src/LR0.c (state_table): Rename as...
2948 (state_hash): this, to avoid name clashes with the global
2949 `state_table'.
2950 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
2951 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
2952
2953 2001-12-10 Akim Demaille <akim@epita.fr>
2954
2955 Bison dumps core on bash.y.
2956 Reported by Pascal Bart.
2957
2958 * src/warshall.c (bitmatrix_print): New.
2959 (TC): Use it.
2960 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
2961 j must be the outer loop.
2962 * tests/regression.at (Broken Closure): New.
2963
2964 2001-12-05 Akim Demaille <akim@epita.fr>
2965
2966 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
2967 its argument.
2968 Reported by Peter Hámorský.
2969
2970 2001-12-05 Akim Demaille <akim@epita.fr>
2971
2972 * src/conflicts.c (err_table): Remove.
2973 (resolve_sr_conflict): Adjust.
2974 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
2975 Rename as...
2976 (state_t.reductions, state_t.shifts): this.
2977
2978 2001-12-05 Akim Demaille <akim@epita.fr>
2979
2980 * src/reduce.c (reduce_grammar_tables): No longer disable the
2981 removal of useless rules via CPP but via `if (0)', so that the
2982 compiler still check the code is valid.
2983 For instance, it should have noticed `rline' no longer exists: use
2984 the `line' member of rule_t.
2985 * src/gram.c (dummy, rline): Remove, unused.
2986
2987 2001-12-05 Akim Demaille <akim@epita.fr>
2988
2989 * src/output.c (pack_vector): Use assert, not berror.
2990 * src/main.c (berror): Remove, unused.
2991
2992 2001-12-05 Akim Demaille <akim@epita.fr>
2993
2994 New experimental feature: if --verbose --trace output all the
2995 items of a state, not only its kernel.
2996
2997 * src/print.c (print_core): If `trace_flag', then invoke closure
2998 before outputting the items of the state (print_core is no longer
2999 a correct name them).
3000 (print_results): Invoke new_closure/free_closure if needed.
3001
3002 2001-12-05 Akim Demaille <akim@epita.fr>
3003
3004 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
3005 * src/closure.c, src/closure.h (itemsetsize): Rename as...
3006 (nitemset): for consistency with the rest of the project.
3007
3008 2001-12-05 Akim Demaille <akim@epita.fr>
3009
3010 * src/closure.c (print_closure): Improve.
3011 (closure): Use it for printing input and output.
3012
3013 2001-12-05 Akim Demaille <akim@epita.fr>
3014
3015 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
3016 indexed by nonterminals.
3017
3018 2001-12-05 Akim Demaille <akim@epita.fr>
3019
3020 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
3021 what it was!).
3022 * src/warshall.h: Remove accidental duplication of the content.
3023
3024 2001-12-05 Akim Demaille <akim@epita.fr>
3025
3026 * src/closure.c (set_fderives): De-obfuscate.
3027
3028 2001-12-05 Akim Demaille <akim@epita.fr>
3029
3030 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
3031
3032 2001-12-05 Akim Demaille <akim@epita.fr>
3033
3034 * src/closure.c (set_firsts): De-obfuscate.
3035
3036 2001-12-05 Akim Demaille <akim@epita.fr>
3037
3038 * src/output.c (action_row): De-obfuscate
3039 using the good o' techniques: arrays not pointers, variable
3040 locality, BITISSET, RESETBIT etc.
3041
3042 2001-12-05 Akim Demaille <akim@epita.fr>
3043
3044 Pessimize the code to simplify it: from now on, all the states
3045 have a valid SHIFTS, which NSHIFTS is possibly 0.
3046
3047 * src/LR0.c (shifts_new): Be global and move to..
3048 * src/state.c, src/state.h: here.
3049 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
3050 * src/print_graph: Adjust.
3051
3052 2001-12-05 Akim Demaille <akim@epita.fr>
3053
3054 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
3055 * src/conflicts.c: Use it.
3056 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
3057 incorrectly ``simplified''.
3058
3059 2001-12-05 Akim Demaille <akim@epita.fr>
3060
3061 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
3062 using the good o' techniques: arrays not pointers, variable
3063 locality, BITISSET, RESETBIT etc.
3064
3065 2001-12-05 Akim Demaille <akim@epita.fr>
3066
3067 * src/state.h (SHIFT_SYMBOL): New.
3068 * src/conflicts.c: Use it to deobfuscate.
3069
3070 2001-12-05 Akim Demaille <akim@epita.fr>
3071
3072 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
3073 (print_reductions): De-obfuscate using the good o' techniques:
3074 arrays not pointers, variable locality, BITISSET.
3075
3076 2001-12-05 Akim Demaille <akim@epita.fr>
3077
3078 * src/conflicts.c (print_reductions): Arrays, not pointers.
3079 Use BITISSET.
3080
3081 2001-12-05 Akim Demaille <akim@epita.fr>
3082
3083 * src/conflicts.c (print_reductions): Pessimize, but clarify.
3084
3085 2001-12-05 Akim Demaille <akim@epita.fr>
3086
3087 * src/conflicts.c (print_reductions): Improve variable locality.
3088
3089 2001-12-05 Akim Demaille <akim@epita.fr>
3090
3091 * src/conflicts.c (print_reductions): Pessimize, but clarify.
3092
3093 2001-12-05 Akim Demaille <akim@epita.fr>
3094
3095 * src/conflicts.c (print_reductions): Improve variable locality.
3096
3097 2001-12-05 Akim Demaille <akim@epita.fr>
3098
3099 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
3100 * src/lalr.c: Use them.
3101
3102 2001-12-05 Akim Demaille <akim@epita.fr>
3103
3104 * src/LR0.c (augment_automaton): Formatting changes.
3105 Better variable locality.
3106
3107 2001-12-05 Akim Demaille <akim@epita.fr>
3108
3109 * src/lalr.c (matrix_print): New.
3110 (transpose): Use it.
3111 Use arrays instead of pointers.
3112
3113 2001-12-05 Akim Demaille <akim@epita.fr>
3114
3115 * src/lalr.c (maxrhs): Move to...
3116 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
3117 * src/lalr.c (build_relations): Adjust.
3118
3119 2001-12-05 Akim Demaille <akim@epita.fr>
3120
3121 * src/lalr.c (transpose): Free the memory allocated to the
3122 argument, as it is replaced by the results by the unique caller.
3123 (build_relations): Merely invoke transpose: it handles the memory
3124 deallocation.
3125 Improve variable locality.
3126 Avoid variables used as mere abbreviations.
3127 (compute_lookaheads): Use arrays instead of pointers.
3128
3129 2001-12-05 Akim Demaille <akim@epita.fr>
3130
3131 * src/lalr.c (initialize_F): Improve variable locality.
3132 Avoid variables used as mere abbreviations.
3133
3134 2001-12-05 Akim Demaille <akim@epita.fr>
3135
3136 * src/derives.c (print_derives): Display the ruleno.
3137 * src/lalr.c (initialize_F, transpose): Better variable locality
3138 to improve readability.
3139 Avoid variables used as mere abbreviations.
3140
3141 2001-12-05 Akim Demaille <akim@epita.fr>
3142
3143 * src/lalr.c (traverse): Use arrays instead of pointers.
3144
3145 2001-12-05 Akim Demaille <akim@epita.fr>
3146
3147 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
3148 the handling of squeue.
3149 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
3150
3151 2001-12-05 Akim Demaille <akim@epita.fr>
3152
3153 Because useless nonterminals are now kept alive (instead of being
3154 `destroyed'), we now sometimes examine them, and store information
3155 related to them. Hence we need to know their number, and adjust
3156 memory allocations.
3157
3158 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
3159 static.
3160 * src/LR0.c (allocate_itemsets): The memory allocated to
3161 `symbol_count' was used for two different purpose: once to count
3162 the number of occurrences of each symbol, and later reassigned to
3163 `shift_symbol', containing the symbol that can be shifted from a
3164 given state.
3165 Deobfuscate, i.e., allocate, use and free `symbol_count' here
3166 only, and...
3167 (new_itemsets): Allocate `shift_symbol' here.
3168 (allocate_itemsets): symbol_count includes useless nonterminals.
3169 Make room for them.
3170 (free_storage): Use `free', not `XFREE', for pointers that cannot
3171 be null.
3172
3173 2001-12-05 Akim Demaille <akim@epita.fr>
3174
3175 * src/nullable.c (set_nullable): Deobfuscate the handling of
3176 ritem.
3177 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
3178
3179 2001-12-05 Akim Demaille <akim@epita.fr>
3180
3181 * src/gram.c, src/gram.h (ritem_print): New.
3182 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
3183 (This useless function was defined only to work around VMS linkers
3184 that can't handle compilation units with variables only).
3185 * src/reduce.c (dump_grammar): Use it to trace the construction of
3186 ritem.
3187
3188 2001-12-04 Paul Eggert <eggert@twinsun.com>
3189
3190 * src/bison.simple (union yyalloc): Change member names
3191 to be the same as the stack names.
3192 (yyparse): yyptr is now union yyalloc *, not char *.
3193 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
3194 and may generate better code on some machines.
3195 (yystpcpy): Use prototype if __STDC__ is defined, not just
3196 if __cplusplus is defined.
3197
3198 2001-11-30 Akim Demaille <akim@epita.fr>
3199
3200 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
3201 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
3202 Gettext doesn't compile cleanly, and dies with -Werror.
3203 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
3204 Include WARNING_CFLAGS here.
3205 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
3206 before being defined.
3207
3208 2001-11-27 Paul Eggert <eggert@twinsun.com>
3209
3210 * lib/quotearg.h (quotearg_n, quotearg_n_style):
3211 First arg is int, not unsigned.
3212 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
3213 (SIZE_MAX, UINT_MAX): New macros.
3214 (quotearg_n_options): Abort if N is negative.
3215 Avoid overflow check on hosts where size_t is 64 bits and int
3216 is 32 bits, as overflow is impossible there.
3217 Fix off-by-one typo that caused unnecessary reallocation.
3218
3219 2001-11-29 Paul Eggert <eggert@twinsun.com>
3220
3221 Name space cleanup in generated parser.
3222
3223 * doc/bison.texinfo (Bison Parser): Discuss system headers
3224 and their effect on the user name space.
3225
3226 * src/bison.simple:
3227 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
3228 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
3229 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
3230
3231 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
3232 on user names when possible.
3233
3234 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
3235 Simplify test for whather <alloca.h> exists.
3236
3237 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
3238
3239 (<stdio.h>): Include if YYDEBUG.
3240
3241 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
3242 ! defined (yyoverflow) && ! defined (yymemcpy).
3243
3244 (yymemcpy, yyparse): Rename local variables as needed so that
3245 they all begin with 'yy'.
3246
3247 (yystrlen, yystpcpy): New functions.
3248
3249 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
3250 All uses changed.
3251
3252 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
3253 instead of relying on string.h functions. Use YYSTACK_ALLOC
3254 and YYSTACK_FREE instead of malloc and free.
3255
3256 2001-11-30 Akim Demaille <akim@epita.fr>
3257
3258 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
3259 before their first uses.
3260 (YYBISON, YYPURE): Move to the top of the output.
3261
3262 2001-11-30 Akim Demaille <akim@epita.fr>
3263
3264 * tests/reduce.at (Useless Nonterminals): Fix.
3265
3266 2001-11-30 Akim Demaille <akim@epita.fr>
3267
3268 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
3269 if body instead of `;' to pacify GCC's warnings.
3270
3271 2001-11-30 Akim Demaille <akim@epita.fr>
3272
3273 Instead of mapping the LHS of unused rules to -1, keep the LHS
3274 valid, but flag the rules as invalid.
3275
3276 * src/gram.h (rule_t): `useful' is a new member.
3277 * src/print.c (print_grammar): Adjust.
3278 * src/derives.c (set_derives): Likewise.
3279 * src/reader.c (packgram, reduce_output): Likewise.
3280 * src/reduce.c (reduce_grammar_tables): Likewise.
3281 * tests/reduce.at (Underivable Rules, Useless Rules): New.
3282
3283 2001-11-30 Akim Demaille <akim@epita.fr>
3284
3285 * src/reduce.c (reduce_output): Formatting changes.
3286 * src/print.c (print_results, print_grammar): Likewise.
3287 * tests/regression.at (Rule Line Numbers)
3288 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
3289
3290 2001-11-30 Akim Demaille <akim@epita.fr>
3291
3292 * src/reduce.c (nonterminals_reduce): Instead of throwing away
3293 useless nonterminals, move them at the end of the symbol arrays.
3294 (reduce_output): Adjust.
3295 * tests/reduce.at (Useless Nonterminals): Adjust.
3296
3297 2001-11-30 Akim Demaille <akim@epita.fr>
3298
3299 * src/reduce.c: Various comment/formatting changes.
3300 (nonterminals_reduce): New, extracted from...
3301 (reduce_grammar_tables): here.
3302 (reduce_grammar): Call nonterminals_reduce.
3303
3304 2001-11-29 Paul Eggert <eggert@twinsun.com>
3305
3306 * src/bison.simple (YYSTACK_REALLOC): Remove.
3307 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
3308 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
3309 New macros.
3310 (union yyalloc): New type.
3311 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
3312 an arbitrary restriction on hosts where size_t is wider than int.
3313
3314 (yyparse): Don't dump core if alloca or malloc fails; instead, report
3315 a parser stack overflow. Allocate just one block of memory for all
3316 three stacks, instead of allocating three blocks; this typically is
3317 faster and reduces fragmentation.
3318
3319 Do not limit the number of items in the stack to a value that fits
3320 in 'int', as this is an arbitrary limit on hosts with 64-bit
3321 size_t and 32-bit int.
3322
3323 2001-11-29 Marc Autret <autret_m@epita.fr>
3324
3325 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
3326 of defining YYERROR_VERBOSE.
3327 [AT_DATA]: $4 is now out of C declarations in the prologue.
3328
3329 2001-11-28 Marc Autret <autret_m@epita.fr>
3330
3331 * src/reader.c (parse_dquoted_param): New.
3332 (parse_skel_decl): Use it.
3333 * src/lex.h: Add its prototype.
3334 * src/lex.c (literalchar): Become not static.
3335
3336 2001-11-28 Marc Autret <autret_m@epita.fr>
3337
3338 * src/output.h: And put its extern declaration here.
3339 * src/output.c (error_verbose): Define here.
3340 (prepare): Echo name modification.
3341 * src/getargs.h: Clean its extern declaration.
3342 * src/getargs.c (error_verbose_flag): Remove.
3343 (getargs): Remove case 'e'.
3344 * src/options.c (option_table): 'error-verbose' is now seen as simple
3345 percent option.
3346 Include output.h.
3347
3348 * src/reader.c (read_declarations): Remove case tok_include.
3349 (parse_include_decl): Remove.
3350 * src/lex.h (token_t): Remove tok_include.
3351 * src/options.c (option_table): 'include' is now a simple command line
3352 option.
3353
3354 2001-11-28 Marc Autret <autret_m@epita.fr>
3355
3356 * src/bison.simple: Adjust muscle names.
3357 * src/muscle_tab.c (muscle_init): Also rename the muscles.
3358 * src/output.c (prepare): s/_/-/ for the muscles names.
3359 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
3360
3361 2001-11-28 Marc Autret <autret_m@epita.fr>
3362
3363 * src/bison.simple: Fix debug.
3364 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
3365
3366 2001-11-28 Akim Demaille <akim@epita.fr>
3367
3368 * src/LR0.c (shifts_new): New.
3369 (save_shifts, insert_start_shift, augment_automaton): Use it.
3370
3371 2001-11-28 Akim Demaille <akim@epita.fr>
3372
3373 * src/closure.c (closure): `b' and `ruleno' denote the same value:
3374 keep ruleno only.
3375
3376 2001-11-28 Akim Demaille <akim@epita.fr>
3377
3378 * src/closure.c (closure): Instead of looping over word in array
3379 then bits in words, loop over bits in array.
3380
3381 2001-11-28 Akim Demaille <akim@epita.fr>
3382
3383 * src/closure.c (closure): No longer optimize the special case
3384 where all the bits of `ruleset[r]' are set to 0, to make the code
3385 clearer.
3386
3387 2001-11-28 Akim Demaille <akim@epita.fr>
3388
3389 * src/closure.c (closure): `r' and `c' are new variables, used to
3390 de-obfuscate accesses to RULESET and CORE.
3391
3392 2001-11-28 Akim Demaille <akim@epita.fr>
3393
3394 * src/reduce.c (reduce_print): Use ngettext.
3395 (dump_grammar): Improve the trace accuracy.
3396
3397 2001-11-28 Akim Demaille <akim@epita.fr>
3398
3399 * src/reduce.c (dump_grammar): Don't translate trace messages.
3400
3401 2001-11-28 Akim Demaille <akim@epita.fr>
3402
3403 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
3404 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
3405 as all tags are free'ed afterwards.
3406 From Enrico Scholz.
3407
3408 2001-11-27 Paul Eggert <eggert@twinsun.com>
3409
3410 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
3411 use alloca when we didn't want to, and vice versa.
3412
3413 2001-11-27 Marc Autret <autret_m@epita.fr>
3414
3415 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
3416 initialization.
3417 * src/output.c (prepare): Remove its update.
3418
3419 2001-11-27 Marc Autret <autret_m@epita.fr>
3420
3421 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
3422 Use %error-verbose.
3423
3424 2001-11-27 Marc Autret <autret_m@epita.fr>
3425
3426 * src/bison.simple: Remove YYERROR_VERBOSE using.
3427 Use %%error_verbose.
3428 (yyparse): Likewise.
3429 * src/output.c (prepare): Give its final value.
3430 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
3431 * src/getargs.h: Add its extern declaration.
3432 * src/getargs.c (error_verbose_flag): New int.
3433 (getargs): Update to catch new case.
3434 * src/options.c (option_table): 'error-verbose' is a new option.
3435 (shortopts): Update.
3436
3437 2001-11-27 Akim Demaille <akim@epita.fr>
3438
3439 * src/system.h: Use intl/libgettext.h.
3440 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
3441
3442 2001-11-27 Akim Demaille <akim@epita.fr>
3443
3444 * tests/torture.at (Exploding the Stack Size with Malloc):
3445 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
3446
3447 2001-11-27 Akim Demaille <akim@epita.fr>
3448
3449 * src/files.c: Include error.h.
3450 Reported by Hans Aberg.
3451
3452 2001-11-26 Marc Autret <autret_m@epita.fr>
3453
3454 * src/reader.c (parse_include_decl): New, not yet implemented.
3455 (read_declarations): Add case tok_include.
3456 * src/getargs.h (include): Add its extern definition.
3457 * src/getargs.c (include): New const char *.
3458 (getargs): Add case '-I'.
3459 * src/options.c (option_table): Add include as command line and
3460 percent option.
3461 * src/lex.h (token_t): Add tok_include.
3462
3463 2001-11-26 Akim Demaille <akim@epita.fr>
3464
3465 * src/reader.c (readgram): Make sure rules for mid-rule actions
3466 have a lineno equal to that of their host rule.
3467 Reported by Hans Aberg.
3468 * tests/regression.at (Rule Line Numbers): New.
3469
3470 2001-11-26 Akim Demaille <akim@epita.fr>
3471
3472 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
3473 size_ts.
3474
3475 2001-11-26 Akim Demaille <akim@epita.fr>
3476
3477 * src/complain.c, src/complain.h (error): Remove, provided by
3478 lib/error.[ch].
3479
3480 2001-11-26 Akim Demaille <akim@epita.fr>
3481
3482 * src/reader.c (read_declarations): Don't abort on tok_illegal,
3483 issue an error message.
3484 * tests/regression.at (Invalid %directive): New.
3485 Reported by Hans Aberg.
3486
3487 2001-11-26 Akim Demaille <akim@epita.fr>
3488
3489 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
3490 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
3491
3492 2001-11-26 Akim Demaille <akim@epita.fr>
3493
3494 * src/conflicts.c (conflicts_print): Don't complain at all when
3495 there are no reduce/reduce conflicts, and as many shift/reduce
3496 conflicts as expected.
3497 * tests/regression.at (%expect right): Adjust.
3498
3499 2001-11-23 Akim Demaille <akim@epita.fr>
3500
3501 * lib/alloca.c: Update, from fileutils.
3502
3503 2001-11-23 Akim Demaille <akim@epita.fr>
3504
3505 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
3506
3507 2001-11-23 Akim Demaille <akim@epita.fr>
3508
3509 * src/system.h: Include alloca.h.
3510 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
3511
3512 2001-11-23 Akim Demaille <akim@epita.fr>
3513
3514 * src/print_graph.c (print_actions): Remove `rule', unused.
3515 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
3516 pacify GCC's signed < unsigned warnings.
3517 * src/closure.c (itemsetsize): Likewise.
3518 * src/reader.c (symbol_list_new): Static.
3519
3520 2001-11-23 Akim Demaille <akim@epita.fr>
3521
3522 Attaching lineno to buckets is stupid, since only one copy of each
3523 symbol is kept, only the line of the first occurrence is kept too.
3524
3525 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
3526 * src/reader.c (rline_allocated): Remove, unused.
3527 (symbol_list): Have a `line' member.
3528 (symbol_list_new): New.
3529 (readgram): Use it.
3530 * src/print.c (print_grammar): Output the rule line numbers.
3531 * tests/regression.at (Solved SR Conflicts)
3532 (Unresolved SR Conflicts): Adjust.
3533 Reported by Hans Aberg.
3534
3535 2001-11-22 Marc Autret <autret_m@epita.fr>
3536
3537 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
3538
3539 2001-11-22 Marc Autret <autret_m@epita.fr>
3540
3541 * src/muscle_tab.c (muscle_init): Remove initialization of
3542 skeleton muscle.
3543 * src/output.c (output_master_parser): Do it here.
3544
3545 2001-11-20 Akim Demaille <akim@epita.fr>
3546
3547 * po/sv.po: New.
3548 * configure.in (ALL_LINGUAS): Adjust.
3549 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
3550 longer contains strings to translate.
3551
3552 2001-11-19 Akim Demaille <akim@epita.fr>
3553
3554 * src/conflicts.c (conflicts_print): Add a missing \n.
3555
3556 2001-11-19 Akim Demaille <akim@epita.fr>
3557
3558 * src/nullable.c (nullable_print): New.
3559 (set_nullable): Call it when tracing.
3560 Better locality of variables.
3561
3562 2001-11-19 Akim Demaille <akim@epita.fr>
3563
3564 * src/print.c (print_actions): Better locality of variables.
3565
3566 2001-11-19 Akim Demaille <akim@epita.fr>
3567
3568 * src/derives.c (print_derives): Fix and enrich.
3569 * src/closure.c (print_fderives): Likewise.
3570
3571 2001-11-19 Akim Demaille <akim@epita.fr>
3572
3573 * src/closure.c (itemsetend): Remove, replaced with...
3574 (itemsetsize): new.
3575
3576 2001-11-19 Akim Demaille <akim@epita.fr>
3577
3578 * src/LR0.c (kernel_end): Remove, replaced with...
3579 (kernel_size): new.
3580
3581 2001-11-19 Akim Demaille <akim@epita.fr>
3582
3583 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
3584 to clarify.
3585
3586 2001-11-19 Akim Demaille <akim@epita.fr>
3587
3588 * src/closure.c (closure): Use arrays instead of pointers to clarify.
3589
3590 2001-11-19 Akim Demaille <akim@epita.fr>
3591
3592 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
3593 trace messages.
3594 * src/LR0.c: Likewise.
3595 (allocate_itemsets): Use arrays instead of pointers to clarify.
3596
3597 2001-11-19 Akim Demaille <akim@epita.fr>
3598
3599 * src/getargs.c (statistics_flag): Replace with...
3600 (trace_flag): New.
3601 (longopts): Accept --trace instead of --statistics.
3602 * src/getargs.h, src/options.c: Adjust.
3603 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
3604 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
3605
3606 2001-11-19 Akim Demaille <akim@epita.fr>
3607
3608 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
3609 pointers to clarify the code.
3610 (save_reductions, save_shifts): Factor common parts of alternatives.
3611
3612 2001-11-19 Akim Demaille <akim@epita.fr>
3613
3614 * src/LR0.c (new_state, get_state): Complete TRACE code.
3615 * src/closure.c: Include `reader.h' to get `tags', needed by the
3616 trace code.
3617 Rename the conditional DEBUG as TRACE.
3618 Output consistently TRACEs to stderr, not stdout.
3619 * src/derives.c: Likewise.
3620 * src/reduce.c: (inaccessable_symbols): Using if is better style
3621 than goto.
3622 Use `#if TRACE' instead of `#if 0' for tracing code.
3623
3624 2001-11-19 Akim Demaille <akim@epita.fr>
3625
3626 * src/system.h (LIST_FREE, shortcpy): New.
3627 * src/LR0.c: Use them.
3628 * src/output.c (free_itemsets, free_reductions, free_shifts):
3629 Remove, replaced by LIST_FREE.
3630
3631 2001-11-19 Akim Demaille <akim@epita.fr>
3632
3633 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
3634 (REDUCTIONS_ALLOC): New.
3635 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
3636 allocation.
3637
3638 2001-11-19 Akim Demaille <akim@epita.fr>
3639
3640 * src/LR0.c (new_state): Complete trace code.
3641 * src/nullable.c (set_nullable): Don't translate traces.
3642
3643 2001-11-19 Akim Demaille <akim@epita.fr>
3644
3645 * src/print_graph.c (print_core): Better locality of variables.
3646 * src/print.c (print_core): Likewise.
3647
3648 2001-11-19 Akim Demaille <akim@epita.fr>
3649
3650 * src/vcg.c: You do the output, so you are responsible of the
3651 handling of VCG syntax, in particular: use quotearg.
3652 * src/print_graph.c: Don't.
3653 (print_actions): Don't output the actions as part of the nodes,
3654 since that's the job of the edges.
3655 (print_state): Don't output by hand: fill the node description,
3656 and ask for its output.
3657
3658 2001-11-19 Akim Demaille <akim@epita.fr>
3659
3660 * src/bison.simple (yyparse): When verbosely reporting an error,
3661 no longer put additional quotes around token names.
3662 * tests/calc.at: Adjust.
3663
3664 2001-11-19 Akim Demaille <akim@epita.fr>
3665
3666 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
3667 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
3668 * src/output.c: Adjust.
3669
3670 2001-11-19 Akim Demaille <akim@epita.fr>
3671
3672 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
3673 (rule_t): this.
3674 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
3675
3676 2001-11-19 Akim Demaille <akim@epita.fr>
3677
3678 * src/gram.h (rule_t): New.
3679 (rule_table): New.
3680 (rrhs, rlhs): Remove, part of state_t.
3681 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
3682 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
3683 * src/reader.c, src/reduce.c: Adjust.
3684
3685 2001-11-19 Akim Demaille <akim@epita.fr>
3686
3687 * src/reader.c (symbols_output): New, extracted from...
3688 (packsymbols): Here.
3689 (reader): Call it.
3690
3691 2001-11-19 Akim Demaille <akim@epita.fr>
3692
3693 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
3694 (maxrhs): this new function.
3695
3696 2001-11-19 Akim Demaille <akim@epita.fr>
3697
3698 * src/lalr.c (F): New macro to access the variable F.
3699 Adjust.
3700
3701 2001-11-19 Akim Demaille <akim@epita.fr>
3702
3703 * src/lalr.h (LA): New macro to access the variable LA.
3704 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3705 * src/lalr.c: Adjust.
3706
3707 2001-11-19 Akim Demaille <akim@epita.fr>
3708
3709 * src/lalr.c (initialize_LA): Only initialize LA. Let...
3710 (set_state_table): handle the `lookaheads' members.
3711
3712 2001-11-19 Akim Demaille <akim@epita.fr>
3713
3714 * src/lalr.h (lookaheads): Removed array, whose contents is now
3715 a member of...
3716 (state_t): this structure.
3717 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3718 Adjust.
3719
3720 2001-11-19 Akim Demaille <akim@epita.fr>
3721
3722 * src/lalr.h (consistent): Removed array, whose contents is now
3723 a member of...
3724 (state_t): this structure.
3725 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3726 Adjust.
3727
3728 2001-11-19 Akim Demaille <akim@epita.fr>
3729
3730 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
3731 contents are now members of...
3732 (state_t): this structure.
3733 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
3734 Adjust.
3735
3736 2001-11-19 Akim Demaille <akim@epita.fr>
3737
3738 * src/lalr.h (state_t): New.
3739 (state_table): Be a state_t * instead of a core **.
3740 (accessing_symbol): Remove, part of state_t.
3741 * src/lalr.c: Adjust.
3742 (set_accessing_symbol): Merge into...
3743 (set_state_table): this.
3744 * src/print_graph.c, src/conflicts.c: Adjust.
3745
3746 2001-11-14 Akim Demaille <akim@epita.fr>
3747
3748 * tests/calc.at, tests/output.at, tests/regression.at,
3749 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
3750 now the tests are run in private dirs, therefore AC_CLEANUP and
3751 family can be simplified to 0-ary.
3752 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
3753 use abs. path to find config.h.
3754 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
3755 stderr, there can be way too much random noise.
3756 Instead pass -Werror to GCC and rely on the exit status.
3757 Reported by Wolfram Wagner.
3758
3759 2001-11-14 Akim Demaille <akim@epita.fr>
3760
3761 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
3762 defined only if yyoverflow is defined, to avoid `warning: unused
3763 variable `yyvs1''.
3764 Reported by The Test Suite.
3765
3766 2001-11-14 Akim Demaille <akim@epita.fr>
3767
3768 * src/print.c: Include reduce.h.
3769 Reported by Hans Aberg.
3770
3771 2001-11-14 Akim Demaille <akim@epita.fr>
3772
3773 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
3774 Revert a previous patch: these are really const.
3775 * src/conflicts.c (conflict_report): Additional useless pair of
3776 braces to pacify GCC's warnings for `if () if () {} else {}'.
3777 * src/lex.c (parse_percent_token): Replace equal_offset with
3778 arg_offset.
3779 arg is const.
3780 Be sure to strdup `arg' when used, since there is no reason for
3781 token_buffer not to change.
3782
3783 2001-11-14 Akim Demaille <akim@epita.fr>
3784
3785 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
3786 definition.
3787 * src/main.c (main): Use them.
3788 Suggested by Hans Aberg.
3789
3790 2001-11-12 Akim Demaille <akim@epita.fr>
3791
3792 * src/system.h (ngettext): Now that we use ngettext, be sure to
3793 provide a default definition when NLS are not used.
3794
3795 2001-11-12 Akim Demaille <akim@epita.fr>
3796
3797 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
3798 Use @kbd to denote user input.
3799 (Language and Grammar): ANSIfy the example.
3800 Adjust its layout for info/notinfo.
3801 (Location Tracking Calc): Output error messages to stderr.
3802 Output locations in a more GNUtically correct way.
3803 Fix a couple of Englishos.
3804 Adjust @group/@end group pairs.
3805
3806 2001-11-12 Akim Demaille <akim@epita.fr>
3807
3808 %expext was not functioning at all.
3809
3810 * src/conflicts.c (expected_conflicts): Set to -1.
3811 (conflict_report): Use ngettext.
3812 (conflicts_print): Check %expect and make its violation an error.
3813 * doc/bison.texinfo (Expect Decl): Adjust.
3814 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
3815 * tests/regression.at (%expect not enough, %expect right)
3816 (%expect too much): New.
3817
3818 2001-11-12 Akim Demaille <akim@epita.fr>
3819
3820 * tests/regression.at (Conflicts): Rename as...
3821 (Unresolved SR Conflicts): this.
3822 (Solved SR Conflicts): New.
3823
3824 2001-11-12 Akim Demaille <akim@epita.fr>
3825
3826 * src/reduce.c (print_results): Rename as...
3827 (reduce_output): This.
3828 Output to OUT, passed as argument, instead of output_obstack.
3829 (dump_grammar): Likewise.
3830 (reduce_free): New.
3831 Also free V1.
3832 (reduce_grammar): No longer call reduce_output, since...
3833 * src/print.c (print_results): do it.
3834 * src/main.c (main): Call reduce_free;
3835
3836 2001-11-12 Akim Demaille <akim@epita.fr>
3837
3838 * src/conflicts.c (print_reductions): Accept OUT as argument.
3839 Output to it, not to output_obstack.
3840 * src/print.c (print_actions): Adjust.
3841
3842 2001-11-12 Akim Demaille <akim@epita.fr>
3843
3844 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
3845 the result instead of using...
3846 (src_total, rrc_total, src_count, rrc_count): Remove.
3847 (any_conflicts): Remove.
3848 (print_conflicts): Split into...
3849 (conflicts_print, conflicts_output): New.
3850 * src/conflicts.h: Adjust.
3851 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
3852 * src/print.c (print_grammar): Issue `\n' between two rules.
3853 * tests/regression.at (Conflicts): New.
3854 Reported by Tom Lane.
3855
3856 2001-11-12 Akim Demaille <akim@epita.fr>
3857
3858 * tests/regression.at (Invalid input): Remove, duplicate with
3859 ``Invalid input: 1''.
3860
3861 2001-11-12 Akim Demaille <akim@epita.fr>
3862
3863 * tests/torture.at (AT_DATA_STACK_TORTURE)
3864 (Exploding the Stack Size with Alloca)
3865 (Exploding the Stack Size with Malloc): New.
3866
3867 2001-11-12 Akim Demaille <akim@epita.fr>
3868
3869 * src/bison.simple (YYSTACK_REALLOC): New.
3870 (yyparse) [!yyoverflow]: Use it and free the old stack.
3871 Reported by Per Allansson.
3872
3873 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
3874
3875 * src/bison.simple: Define type yystype instead of YYSTYPE, and
3876 define CPP macro, which substitute YYSTYPE by yystype.
3877 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
3878 with yyltype/YYLTYPE. This allows inclusion of the generated
3879 header within the parser if the compiler, such as GGC, accepts
3880 multiple equivalent #defines.
3881 From Akim.
3882
3883 2001-11-05 Akim Demaille <akim@epita.fr>
3884
3885 * src/reader.c (symbols_output): New, extracted from...
3886 (packsymbols): here.
3887 (reader): Adjust.
3888
3889 2001-11-05 Akim Demaille <akim@epita.fr>
3890
3891 * src/lex.c (parse_percent_token): s/quotearg/quote/.
3892
3893 2001-11-05 Akim Demaille <akim@epita.fr>
3894
3895 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
3896 pattern.
3897
3898 2001-11-05 Akim Demaille <akim@epita.fr>
3899
3900 * src/options.h (struct option_table_struct): set_flags is void*.
3901 * src/options.c (longopts): Support `--output' and `%output'.
3902 (usage): Adjust.
3903 * src/lex.h (tok_setopt): Remove, replaced with...
3904 (tok_intopt, tok_stropt): these new guys.
3905 * src/lex.c (getopt.h): Not needed.
3906 (token_buffer, unlexed_token_buffer): Not const.
3907 (percent_table): Promote `-' over `_' in directive names.
3908 Active `%name-prefix', `file-prefix', and `output'.
3909 (parse_percent_token): Accept possible arguments to directives.
3910 Promote `-' over `_' in directive names.
3911
3912 2001-11-04 Akim Demaille <akim@epita.fr>
3913
3914 * doc/bison.texinfo (Decl Summary): Split the list into
3915 `directives for grammars' and `directives for bison'.
3916 Sort'em.
3917 Add description of `%name-prefix', `file-prefix', and `output'.
3918 Promote `-' over `_' in directive names.
3919 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
3920 Simplify the description of `--name-prefix'.
3921 Promote `-' over `_' in directive names.
3922 Promote `--output' over `--output-file'.
3923 Fix the description of `--defines'.
3924 * tests/output.at: Exercise %file-prefix and %output.
3925
3926 2001-11-02 Akim Demaille <akim@epita.fr>
3927
3928 * doc/refcard.tex: Update.
3929
3930 2001-11-02 Akim Demaille <akim@epita.fr>
3931
3932 * src/symtab.h (SUNDEF): New.
3933 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
3934 stand for `uninitialized', instead of 0.
3935 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
3936 * src/lex.c (lex): Adjust.
3937
3938 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
3939 Number it 0.
3940 Let yylex return it instead of a plain 0.
3941 Reported by Dick Streefland.
3942
3943 2001-11-02 Akim Demaille <akim@epita.fr>
3944
3945 * tests/regression.at (Mixing %token styles): New test.
3946
3947 2001-11-02 Akim Demaille <akim@epita.fr>
3948
3949 * src/reader.c (parse_thong_decl): Formatting changes.
3950 (token_translations_init): New, extracted from...
3951 (packsymbols): Here.
3952 Adjust.
3953
3954 2001-11-01 Akim Demaille <akim@epita.fr>
3955
3956 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
3957 Check that `9foo.y' produces correct cpp guards.
3958 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
3959 guards.
3960 Reported by Wwp.
3961
3962 2001-11-01 Akim Demaille <akim@epita.fr>
3963
3964 * tests/regression.at (Invalid input: 2): New.
3965 * src/lex.c (unlexed_token_buffer): New.
3966 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
3967 too.
3968 Reported by Wwp.
3969
3970 2001-11-01 Akim Demaille <akim@epita.fr>
3971
3972 * tests/calc.at: Catch up with 1.30.
3973 * configure.in: Bump to 1.49a.
3974 Adjust to newer Autotest.
3975
3976 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
3977
3978 * src/conflicts.c: Move global variables rrc_total and src_total ...
3979 (print_conflicts): here.
3980 * src/output.c (output): Free global variable user_toknums.
3981 * src/lex.c (token_obstack): Become static.
3982
3983 2001-10-18 Akim Demaille <akim@epita.fr>
3984
3985 * tests/atlocal.in (GCC): Add.
3986 * tests/calc.at: s/m4_match/m4_bmatch/.
3987 s/m4_patsubst/m4_bpatsubst/.
3988 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
3989 * configure.in: AC_SUBST(GCC).
3990
3991 2001-10-14 Marc Autret <autret_m@epita.fr>
3992
3993 * src/options.c (create_long_option_table): Fix.
3994
3995 2001-10-10 Akim Demaille <akim@epita.fr>
3996
3997 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
3998
3999 2001-10-04 Akim Demaille <akim@epita.fr>
4000
4001 * src/reader.c (parse_union_decl): Push the caracters in
4002 union_obstack, not attrs_obstack.
4003
4004 2001-10-04 Akim Demaille <akim@epita.fr>
4005
4006 Merge in the branch 1.29.
4007
4008 * src/reader.c (packsymbols): Use a temporary obstack for
4009 `%%tokendef', since output_stack is already used elsewhere.
4010
4011 2001-10-02 Akim Demaille <akim@epita.fr>
4012
4013 Bump 1.29d.
4014
4015 2001-10-02 Akim Demaille <akim@epita.fr>
4016
4017 Version 1.29c.
4018
4019 2001-10-02 Akim Demaille <akim@epita.fr>
4020
4021 * tests/regression.at (Invalid CPP headers): New.
4022 From Alexander Belopolsky.
4023 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
4024
4025 2001-10-02 Akim Demaille <akim@epita.fr>
4026
4027 * tests/regression.at (Invalid input): New.
4028 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
4029 Reported by Shura.
4030
4031 2001-10-02 Akim Demaille <akim@epita.fr>
4032
4033 * tests/calc.at: Now that --debug works, the tests must be adjusted.
4034
4035 2001-10-02 Akim Demaille <akim@epita.fr>
4036
4037 * src/output.c (output_parser): Assert `skeleton'.
4038 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
4039 systems.
4040 From Shura.
4041
4042 2001-10-01 Marc Autret <autret_m@epita.fr>
4043
4044 * src/lex.h: Echo modifications.
4045 * src/lex.c (unlex): Parameter is now token_t.
4046 From Hans Aberg.
4047
4048 2001-10-01 Marc Autret <autret_m@epita.fr>
4049
4050 * src/main.c: Include lex.h.
4051 From Hans Aberg.
4052
4053 2001-09-29 Akim Demaille <akim@epita.fr>
4054
4055 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
4056
4057 2001-09-28 Akim Demaille <akim@epita.fr>
4058
4059 * tests/testsuite.at: Update to newer Autotest.
4060 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
4061
4062 2001-09-27 Akim Demaille <akim@epita.fr>
4063
4064 Position independent wrapper.
4065
4066 * tests/bison: Remove.
4067 * tests/bison.in: New.
4068 * configure.in: Adjust.
4069
4070 2001-09-27 Paul Eggert <eggert@twinsun.com>
4071
4072 Port quotearg fixes from tar 1.13.24.
4073
4074 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
4075 tm to be declared.
4076 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
4077 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
4078
4079 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
4080 * m4/mbrtowc.m4: New file.
4081 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
4082 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
4083
4084 2001-09-27 Akim Demaille <akim@epita.fr>
4085
4086 Bump to 1.29c.
4087
4088 2001-09-27 Akim Demaille <akim@epita.fr>
4089
4090 Version 1.29b.
4091
4092 2001-09-25 Akim Demaille <akim@epita.fr>
4093
4094 * src/system.h: Include `xalloc.h'.
4095 Remove it from the C files.
4096 * src/files.c (output_files): Free the obstacks.
4097 * src/lex.c (init_lex): Rename as...
4098 (lex_init): this.
4099 (lex_free): New.
4100 * src/main.c (main): Use it.
4101
4102 2001-09-24 Marc Autret <autret_m@epita.fr>
4103
4104 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
4105 to output informations in fout (FILE*).
4106 (open_graph, close_graph): Likewise.
4107 (output_graph, output_edge, output_node): Likewise.
4108 * src/vcg.h: Update function prototypes.
4109 * src/print_graph.c (print_graph): Open output graph file.
4110 (print_actions): Adjust.
4111 * src/files.h: Remove extern declaration.
4112 * src/files.c: Remove graph_obstack declaration.
4113 (open_files): Remove graph_obstack initialization.
4114 (output_files): Remove graph_obstack saving.
4115
4116 2001-09-24 Marc Autret <autret_m@epita.fr>
4117
4118 * src/files.c (compute_output_file_names): Fix.
4119
4120 2001-09-24 Marc Autret <autret_m@epita.fr>,
4121 Akim Demaille <akim@epita.fr>
4122
4123 * src/reader.c (reader): Remove call to free_symtab ().
4124 * src/main.c (main): Call it here.
4125 Include symtab.h.
4126 * src/conflicts.c (initialize_conflicts): Rename as...
4127 (solve_conflicts): this.
4128 * src/print.c (print_core, print_actions, print_state)
4129 (print_grammar): Dump to a file instead a `output_obstack'.
4130 (print_results): Dump `output_obstack', and then proceed with the
4131 FILE *.
4132 * src/files.c (compute_output_file_names, close_files): New.
4133 (output_files): Adjust.
4134 * src/main.c (main): Adjust.
4135
4136 2001-09-23 Marc Autret <autret_m@epita.fr>
4137
4138 * src/files.c (compute_header_macro): Computes header macro name
4139 from spec_defines_file when given.
4140
4141 2001-09-23 Marc Autret <autret_m@epita.fr>
4142
4143 * src/files.c (output_files): Add default extensions.
4144
4145 2001-09-22 Akim Demaille <akim@epita.fr>
4146
4147 * src/conflicts.c (finalize_conflicts): Rename as...
4148 (free_conflicts): this.
4149
4150 2001-09-22 Akim Demaille <akim@epita.fr>
4151
4152 * src/gram.c (gram_free): Rename back as...
4153 (dummy): this.
4154 (output_token_translations): Free `token_translations'.
4155 * src/symtab.c (free_symtab): Free the tag field.
4156
4157 2001-09-22 Akim Demaille <akim@epita.fr>
4158
4159 Remove `translations' as it is always set to true.
4160
4161 * src/gram.h: Adjust.
4162 * src/reader.c (packsymbols, parse_token_decl): Adjust
4163 * src/print.c (print_grammar): Adjust.
4164 * src/output.c (output_token_translations): Adjust.
4165 * src/lex.c (lex): Adjust.
4166 * src/gram.c: Be sure the set pointers to NULL.
4167 (dummy): Rename as...
4168 (gram_free): this.
4169
4170 2001-09-22 Akim Demaille <akim@epita.fr>
4171
4172 * configure.in: Invoke AM_LIB_DMALLOC.
4173 * src/system.h: Use dmalloc.
4174 * src/LR0.c: Be sure to have pointers initialized to NULL.
4175 (allocate_itemsets): Allocate kernel_items only if needed.
4176
4177 2001-09-22 Akim Demaille <akim@epita.fr>
4178
4179 * configure.in: Bump to 1.29b.
4180 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
4181 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
4182 need xmalloc.c in calc.y.
4183 From Pascal Bart.
4184
4185 2001-09-21 Akim Demaille <akim@epita.fr>
4186
4187 Version 1.29a.
4188 * Makefile.maint, config/config.guess, config/config.sub,
4189 * config/missing: Update from masters.
4190 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
4191 upon package.m4.
4192 * configure.in (ALL_LINGUAS): Add `tr'.
4193
4194 2001-09-21 Akim Demaille <akim@epita.fr>
4195
4196 * tests/Makefile.am (package.m4): Move to...
4197 ($(srcdir)/$(TESTSUITE)): here.
4198
4199 2001-09-20 Akim Demaille <akim@epita.fr>
4200
4201 * src/complain.c: No longer try to be standalone: use system.h.
4202 Don't assume __STDC__ is defined to 1. Just test if it is defined.
4203 * src/complain.h: Likewise.
4204 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
4205 Remove the unused variable `n'.
4206 From Albert Chin-A-Young.
4207
4208 2001-09-18 Marc Autret <autret_m@epita.fr>
4209
4210 * doc/bison.1: Update.
4211 * doc/bison.texinfo (Bison Options): Update --defines and --graph
4212 descriptions.
4213 (Option Cross Key): Update.
4214 Add --graph.
4215
4216 2001-09-18 Marc Autret <autret_m@epita.fr>
4217
4218 * tests/regression.at: New test (comment in %union).
4219
4220 2001-09-18 Marc Autret <autret_m@epita.fr>
4221
4222 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
4223 do that.
4224 Reported by Keith Browne.
4225
4226 2001-09-18 Marc Autret <autret_m@epita.fr>
4227
4228 * tests/output.at: Add tests for --defines and --graph.
4229
4230 2001-09-18 Marc Autret <autret_m@epita.fr>
4231
4232 * tests/output.at: Removes tests of %{header,src}_extension features.
4233
4234 2001-09-18 Akim Demaille <akim@epita.fr>
4235
4236 * tests/Makefile.am (package.m4): New.
4237 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
4238 (_AT_CHECK_CALC_ERROR): Likewise.
4239 Factor the `, ' part of verbose error messages.
4240
4241 2001-09-18 Marc Autret <autret_m@epita.fr>
4242
4243 * src/getargs.c (longopts): Declare --defines and --graph as options
4244 with optional arguments.
4245 * src/files.h: Add extern declarations.
4246 * src/files.c (spec_graph_file, spec_defines_file): New.
4247 (output_files): Update.
4248 Remove CPP-outed code.
4249
4250 2001-09-18 Marc Autret <autret_m@epita.fr>
4251
4252 Turn off %{source,header}_extension feature.
4253
4254 * src/files.c (compute_exts_from_gf): Update.
4255 (compute_exts_from_src): Update.
4256 (output_files): CPP-out useless code.
4257 * src/files.h: Remove {header,source}_extension extern declarations.
4258 * src/reader.c (parse_dquoted_param): CPP-out.
4259 (parse_header_extension_decl): Remove.
4260 (parse_source_extension_decl): Remove.
4261 (read_declarations): Remove cases tok_{hdrext,srcext}.
4262 * src/lex.c (percent_table): Remove {header,source}_extension entries.
4263 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
4264
4265 2001-09-10 Akim Demaille <akim@epita.fr>
4266
4267 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
4268 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
4269 (AT_CHECK_OUTPUT): this.
4270 Merely check ls' exit status, its output is useless.
4271
4272 2001-09-10 Akim Demaille <akim@epita.fr>
4273
4274 * tests/calc.at: Use m4_match.
4275 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
4276
4277 2001-09-10 Marc Autret <autret_m@epita.fr>,
4278 Akim Demaille <akim@epita.fr>
4279
4280 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
4281 enum color_e.
4282 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
4283 to `normal'.
4284 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
4285 * src/lex.h: Adjust prototype.
4286 (token_t): Add `tok_undef'.
4287 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
4288 (parse_percent_token): Now returns token_t.
4289 Add default statement in switch.
4290 (lex): Separate `c' as an input variable, from the token_t result
4291 part.
4292 (unlexed): Is a token_t.
4293
4294 2001-09-10 Akim Demaille <akim@epita.fr>
4295
4296 * configure.in: Bump to 1.29a.
4297
4298 2001-09-07 Akim Demaille <akim@epita.fr>
4299
4300 Version 1.29.
4301
4302 2001-08-30 Akim Demaille <akim@epita.fr>
4303
4304 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
4305 * m4/atconfig.m4: Remove.
4306 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
4307 * tests/bison: New.
4308 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
4309 m4_if, m4_patsubst, and m4_regexp.
4310 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
4311 `input' file instead of echo.
4312
4313 2001-08-29 Akim Demaille <akim@epita.fr>
4314
4315 Bump to 1.28e.
4316
4317 2001-08-29 Akim Demaille <akim@epita.fr>
4318
4319 Version 1.28d.
4320
4321 2001-08-29 Paul Eggert <eggert@twinsun.com>
4322
4323 * src/bison.simple (yyparse): Don't take the address of an
4324 item before the start of an array, as that doesn't conform to
4325 the C Standard.
4326
4327 2001-08-29 Robert Anisko <anisko_r@epita.fr>
4328
4329 * doc/bison.texinfo (Location Tracking Calc): New node.
4330
4331 2001-08-29 Paul Eggert <eggert@twinsun.com>
4332
4333 * src/output.c (output): Do not define const, as this now
4334 causes more problems than it cures.
4335
4336 2001-08-29 Akim Demaille <akim@epita.fr>
4337
4338 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
4339 the nodes.
4340 Be sure to tag the `detailmenu'.
4341
4342 2001-08-29 Akim Demaille <akim@epita.fr>
4343
4344 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
4345 download in a tmp dir.
4346
4347 2001-08-28 Marc Autret <autret_m@epita.fr>
4348
4349 * config/depcomp: New file.
4350
4351 2001-08-28 Marc Autret <autret_m@epita.fr>
4352
4353 * doc/bison.1 (mandoc): Adjust.
4354 From Juan Manuel Guerrero.
4355
4356 2001-08-28 Marc Autret <autret_m@epita.fr>
4357
4358 * src/print_graph.c (print_state): Fix.
4359
4360 2001-08-27 Marc Autret <autret_m@epita.fr>
4361
4362 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
4363 char * members.
4364 Echo modifications to the functions prototypes.
4365 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
4366
4367 2001-08-27 Marc Autret <autret_m@epita.fr>
4368
4369 * src/vcg.c: Include `xalloc.h'.
4370 (add_colorentry): New.
4371 (add_classname): New.
4372 (add_infoname): New.
4373 * src/vcg.h: Add new prototypes.
4374
4375 2001-08-27 Akim Demaille <akim@epita.fr>
4376
4377 * Makefile.maint: Sync. again with CVS Autoconf.
4378
4379 2001-08-27 Akim Demaille <akim@epita.fr>
4380
4381 * Makefile.maint: Formatting changes.
4382 (po-update, cvs-update, update): New targets.
4383 (AMTAR): Remove.
4384
4385 2001-08-27 Akim Demaille <akim@epita.fr>
4386
4387 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4388 * Makefile.maint: Sync. with CVS Autoconf.
4389
4390 2001-08-27 Marc Autret <autret_m@epita.fr>
4391
4392 * src/vcg.h (struct infoname_s): New.
4393 (struct colorentry_s): New.
4394 (graph_s): New fields {vertical,horizontal}_order in structure.
4395 Add `infoname' field.
4396 Add `colorentry' field;
4397 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
4398 (G_HORIZONTAL_ORDER): New.
4399 (G_INFONAME): New.
4400 (G_COLORENTRY): New.
4401 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
4402 Add output of `infoname'.
4403 Add output of `colorentry'.
4404
4405 2001-08-27 Marc Autret <autret_m@epita.fr>
4406
4407 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
4408 This one shadowed a global parameter.
4409
4410 2001-08-24 Marc Autret <autret_m@epita.fr>
4411
4412 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
4413 instead of `unsigned'.
4414 (print_state): Do not call obstack_object_size () in obstack_grow ()
4415 to avoid macro variables shadowing.
4416
4417 2001-08-23 Marc Autret <autret_m@epita.fr>
4418
4419 * src/lex.c (percent_table): Typo: s/naem/name/.
4420 Add graph option.
4421 Normalize new options declarations.
4422
4423 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
4424
4425 * tests/suite.at: Exercise %header_extension and %source_extension.
4426
4427 2001-08-16 Marc Autret <autret_m@epita.fr>
4428
4429 * src/reader.c (parse_dquoted_param): New.
4430 (parse_header_extension_decl): Use it.
4431 (parse_source_extension_decl): Likewise.
4432
4433 2001-08-16 Marc Autret <autret_m@epita.fr>
4434
4435 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
4436 (get_xxxx_str): Use assert () instead of complain ().
4437 Remove return invokations in default cases.
4438 (get_decision_str): Modify default behaviour. Remove second argument.
4439 Echo modifications on calls.
4440 (output_graph): Fix.
4441
4442 2001-08-16 Marc Autret <autret_m@epita.fr>
4443
4444 * src/getargs.c (usage): Update with ``-g, --graph''.
4445
4446 2001-08-16 Marc Autret <autret_m@epita.fr>
4447
4448 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
4449 (Option Cross Key): Likewise.
4450 * doc/bison.1: Update.
4451
4452 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
4453
4454 * src/output.c (output_master_parser): Don't finish action_obstack.
4455 (output_parser): Don't care about the muscle action, here.
4456 (prepare): Copy the action_obstack in the action muscle.
4457 (output): Free action_obstack.
4458
4459 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
4460
4461 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
4462 will contain `%union' declaration.
4463 (parse_union_decl): Delete #line directive output.
4464 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
4465 informations about %union.
4466 (parse_union_decl): Copy the union_obstack in the muscle stype.
4467 * src/bison.simple: Add new #line directive.
4468 Add typdef %%stype YYSTYPE.
4469
4470 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
4471
4472 * src/bison.simple: Add new `#line' directive.
4473
4474 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
4475
4476 * src/bison.simple: New `#line' directive.
4477 * src/output.c (output_parser): Support new dynamic muscle input_line.
4478
4479 2001-09-22 Marc Autret <autret_m@epita.fr>
4480
4481 * src/output.c (output_master_parser): New.
4482 (output_parser): Be more re-entrant.
4483
4484 2001-09-21 Marc Autret <autret_m@epita.fr>
4485
4486 * src/reader.c (copy_definition, parse_union_decl): Update and use
4487 `linef' muscle.
4488 (copy_action): Likewise.
4489 Use obstack_1grow ().
4490 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
4491
4492 2001-09-21 Marc Autret <autret_m@epita.fr>
4493
4494 * src/options.c (option_table): Adjust.
4495 * src/lex.c (parse_percent_token): Fix.
4496
4497 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
4498
4499 * src/options.c (symtab.h): Include it, need by lex.h.
4500
4501 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
4502
4503 * src/lex.c (parse_percent_token): Change type of variable `tx', which
4504 is now an option_table_struct*.
4505 (option_strcmp): New function option_strcmp.
4506 (parse_percent_token): Call option_strcmp.
4507 * src/getargs.c (xalloc.h, options.h): Include it.
4508 (getargs): Call create_long_option_table.
4509 (getargs): Free longopts at the end of the function.
4510 (shortopts): Move in options.c.
4511 * src/options.c (create_long_option_table): New function. Convert
4512 information from option_table to option structure.
4513 * src/reader.c (options.h): Include it.
4514
4515 * src/Makefile.am: Adjust.
4516 * src/options.c (option_table): Create from longopts and percent_table.
4517 * src/getargs.c (longopts): Delete.
4518 * src/lex.c (struct percent_table_struct): Delete.
4519 (percent_table): Delete.
4520 (options.h): Include it.
4521 * src/options.c: Create.
4522 * src/options.h: Create.
4523 Declare enum opt_access_e.
4524 Define struct option_table_struct.
4525
4526 2001-09-20 Marc Autret <autret_m@epita.fr>
4527
4528 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
4529 sections of Bison.
4530
4531 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
4532
4533 * src/bison.simple: s/%%filename/%%skeleton.
4534 * src/muscle_tab.c (getargs.h): Include it.
4535 (muscle_init): Insert new muscle skeleton.
4536
4537 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
4538
4539 * src/output.c (output_parser): Delete unused variable actions_dumped.
4540
4541 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
4542
4543 * src/output.c (output): Delete call to reader_output_yylsp.
4544 * src/reader.c (reader): Likewise.
4545 * src/reader.h: Delete declaration of reader_output_yylsp.
4546
4547 2001-09-02 Marc Autret <autret_m@epita.fr>
4548
4549 * src/reader.c: Include muscle_tab.h.
4550 (parse_union_decl): Update.
4551 (parse_macro_decl): Rename parse_muscle_decl.
4552 Update to use renamed functions and variable.
4553 (read_declarations, copy_action, read_additionnal_code, : Updated
4554 with correct variables and functions names.
4555 (packsymbols, reader): Likewise.
4556
4557 * src/reader.h (muscle_obstack): Extern declaration update.
4558
4559 * src/output.c: Include muscle_tab.h
4560 In all functions using macro_insert, change by using muscle_insert ().
4561 (macro_obstack): Rename muscle_obstack.
4562 Echo modifications in the whole file.
4563 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
4564 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
4565 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
4566
4567 * src/muscle_tab.h: Update double inclusion macros.
4568 (macro_entry_s): Rename muscle_entry_s.
4569 Update prototypes.
4570
4571 * src/muscle_tab.c: Include muscle_tab.h.
4572 Rename macro_tabble to muscle_table.
4573 (mhash1, mhash2, mcmp): Use muscle_entry.
4574 (macro_init): Rename muscle_init. Update.
4575 (macro_insert): Rename muscle_insert. Update.
4576 (macro_find): Rename muscle_find. Update.
4577
4578 * src/main.c: Include muscle_tab.h.
4579 (main): Call muscle_init ().
4580 * src/Makefile.am (bison_SOURCES): Echo modifications.
4581
4582 2001-09-02 Marc Autret <autret_m@epita.fr>
4583
4584 Now the files macro_tab.[ch] are named muscle_tab.[ch].
4585
4586 * src/muscle_tab.c, src/muscle_tab.h: Add files.
4587
4588 2001-09-02 Marc Autret <autret_m@epita.fr>
4589
4590 * src/macrotab.c, src/macrotab.h: Remove.
4591
4592 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
4593
4594 * src/reader.c (copy_guard): Use muscle to specify the `#line'
4595 filename.
4596
4597 2001-09-01 Marc Autret <autret_m@epita.fr>
4598
4599 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
4600 to an explicit value to activate the feature. We do it here.
4601
4602 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4603
4604 * src/output.c (prepare): Delete the `filename' muscule insertion.
4605 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
4606 (parse_union_decl): Likewise.
4607 * src/macrotab.c (macro_init): Initialize filename by infile.
4608
4609 2001-08-31 Marc Autret <autret_m@epita.fr>
4610
4611 * src/bison.simple (YYLSP_NEEDED): New definition.
4612 * src/output.c (prepare): Add macro insertion of `locations_flag'
4613
4614 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4615
4616 * src/output.c (prepare): Delete insertion of previous muscles,
4617 and insert the `prefix' muscles.
4618 * src/macrotab.c (macro_init): Likewise.
4619 (macro_init): Initialization prefix directive by `yy'.
4620 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
4621 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
4622 yylval, yydebug, yyerror, yynerrs and yyparse.
4623 New directive `#define' to substitute yydebug, ... with option
4624 name_prefix.
4625
4626 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4627
4628 * src/main.c (main): Standardize.
4629 * src/output.c (output_table_data, output_parser): Likewise.
4630 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
4631
4632 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
4633
4634 * src/reader.c (read_additionnal_code): Rename %%user_code to
4635 %%epilogue.
4636 * src/output.c (output): Rename %%declarations to %%prologue.
4637 * src/bison.simple: Echo modifications.
4638
4639 2001-08-31 Marc Autret <autret_m@epita.fr>
4640
4641 * src/reader.c (readgram): CleanUp.
4642 (output_token_defines): Likewise.
4643 (packsymbols): Likewise.
4644 (reader): Likewise.
4645 * src/output.c (output): CPP-out useless code.
4646
4647 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
4648
4649 * src/reader.c (reader): Delete obsolete call to function
4650 output_trailers and output_headers.
4651 * src/output.h: Remove obsolete functions prototypes of output_headers
4652 and output_trailers.
4653
4654 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
4655
4656 * src/main.c: Include macrotab.h.
4657 * src/macrotab.h (macro_entry_s): Constify fields.
4658 Adjust functions prototypes.
4659 * src/macrotab.c (macro_insert): Constify key and value.
4660 (macro_find): Constify key.
4661 (macro_insert): Include 'xalloc.h'
4662 (macro_insert): Use XMALLOC.
4663 (macro_find): Constify return value.
4664 * src/output.c (output_table_data): Rename table to table_data.
4665 (output_parser): Constify macro_key, macro_value.
4666
4667 2001-08-30 Marc Autret <autret_m@epita.fr>
4668
4669 * src/reader.c (parse_skel_decl): New.
4670 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
4671 * src/lex.h (token_t): New token `tok_skel'.
4672 * src/lex.c (percent_table): Add skeleton option entry.
4673 Standardize.
4674
4675 2001-08-29 Marc Autret <autret_m@epita.fr>
4676
4677 * src/bison.simple: Add %%user_code directive at the end.
4678 * src/reader.c (read_additionnal_code): New.
4679 (reader): Use it.
4680 * src/output.c (output_program): Remove.
4681 (output): Update.
4682
4683 2001-08-28 Marc Autret <autret_m@epita.fr>
4684
4685 * src/output.c (output_actions): Clean up.
4686 (output_gram): CPP-out useless code.
4687 * src/reader.c (reader): Clean up, CPP-out useless code.
4688
4689 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
4690
4691 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
4692 directive.
4693 * src/bison.simple: Add `%%definitions'.
4694
4695 2001-08-28 Marc Autret <autret_m@epita.fr>
4696
4697 * config/depcomp: New file.
4698
4699 2001-08-27 Paul Eggert <eggert@twinsun.com>
4700
4701 * src/bison.simple (yyparse): Don't take the address of an
4702 item before the start of an array, as that doesn't conform to
4703 the C Standard.
4704
4705 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4706
4707 * src/output.c (output): Remove the initialization of the macro
4708 obstack. It was done too late here.
4709
4710 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
4711 completely wrong.
4712 (reader): Initialize the macro obstack here, since we need it to grow
4713 '%define' directives.
4714
4715 * src/reader.h: Declare the macro obstack as extern.
4716
4717 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
4718
4719 * src/output.c (output_parser): Fix. Store single '%' characters in
4720 the output obstack instead of throwing them away.
4721
4722 2001-08-27 Akim Demaille <akim@epita.fr>
4723
4724 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
4725
4726 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4727
4728 * lib/Makefile.am: Adjust.
4729
4730 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4731
4732 * src/bison.simple: Update and add '%%' directives.
4733
4734 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4735
4736 * src/reader.c (reader): Remove calls to 'output_headers' and
4737 'output_trailers'. Remove some C output.
4738 (readgram): Disable a piece of code that was writing a default
4739 definition for 'YYSTYPE'.
4740 (reader_output_yylsp): Remove.
4741 (packsymbols): Output token defintions to a macro.
4742 (copy_definition): Disable C output.
4743
4744 * src/reader.c (parse_macro_decl): New function used to parse macro
4745 declarations.
4746 (copy_string2): Put the body of copy_string into this new function.
4747 Add a parameter to let the caller choose whether he wants to copy the
4748 string delimiters or not.
4749 (copy_string): Be a simple call to copy_string2 with the last argument
4750 bound to true.
4751 (read_declarations): Add case for macro definition.
4752 (copy_identifier): New.
4753 (parse_macro_decl): Read macro identifiers using copy_identifier
4754 rather than lex.
4755
4756 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4757
4758 * src/output.c (prepare): Add prefixed names.
4759 (output_parser): Output semantic actions.
4760 (output_parser): Fix bug on '%%line' directives.
4761
4762 * src/output.c (output_headers): Remove. The C code printed by this
4763 function should now be in the skeletons.
4764 (output_trailers): Remove.
4765 (output): Disable call to 'reader_output_yylsp'.
4766 (output_rule_data): Do not output tables to the table obstack.
4767
4768 * src/output.c: Remove some C dedicated output.
4769 Improve the use of macro and output obstacks.
4770 (output_defines): Remove.
4771
4772 * src/output.c (output_token_translations): Associate 'translate'
4773 table with a macro. No output to the table obstack.
4774 (output_gram): Same for 'rhs' and 'prhs'.
4775 (output_stos): Same for 'stos'.
4776 (output_rule_data): Same for 'r1' and 'r2'.
4777 (token_actions): Same for 'defact'.
4778 (goto_actions): Same for 'defgoto'.
4779 (output_base): Same for 'pact' and 'pgoto'.
4780 (output_table): Same for 'table'.
4781 (output_check): Same for 'check'.
4782
4783 * src/output.c (output_table_data): New function.
4784 (output_short_table): Remove.
4785 (output_short_or_char_table): Remove.
4786
4787 * src/output.c (output_parser): Replace most of the skeleton copy code
4788 with something new. Skeletons are now processed character by character
4789 rather than line by line, and Bison looks for '%%' macros. This is the
4790 first step in making Bison's output process (a lot) more flexible.
4791 (output_parser): Use the macro table.
4792
4793 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4794
4795 * src/main.c (main): Initialize the macro table.
4796
4797 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4798
4799 * src/lex.c (percent_table): Add tok_define.
4800 * src/lex.h: Add tok_define.
4801
4802 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4803
4804 * src/macrotab.c: New file.
4805 * src/macrotab.h: New file.
4806 * src/Makefile.am: Update.
4807
4808 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
4809
4810 * lib/hash.c: New file.
4811 * lib/hash.h: New file.
4812 * lib/Makefile.am: Update.
4813
4814 2001-08-15 Akim Demaille <akim@epita.fr>
4815
4816 Version 1.28c.
4817
4818 2001-08-15 Marc Autret <autret_m@epita.fr>
4819
4820 * src/reader.c (readgram): Indent output macro YYSTYPE.
4821 (packsymbols): Likewise.
4822 (output_token_defines): Likewise.
4823 * src/files.c: Standardize.
4824 (compute_header_macro): New.
4825 (defines_obstack_save): New. Use compute_header_macro.
4826 (output_files): Update. Use defines_obstack_save.
4827
4828 2001-08-15 Akim Demaille <akim@epita.fr>
4829
4830 * doc/bison.texinfo (Table of Symbols): Document
4831 YYSTACK_USE_ALLOCA.
4832
4833 2001-08-15 Akim Demaille <akim@epita.fr>
4834
4835 * missing: Update from CVS Automake.
4836 * config/config.guess, config/config.sub, config/texinfo.tex:
4837 Update from gnu.org.
4838
4839 2001-08-15 Akim Demaille <akim@epita.fr>
4840
4841 * Makefile.maint: Sync with CVS Autoconf.
4842
4843 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
4844
4845 * doc/bison.texinfo: Include GNU Free Documentation License from
4846 `fdl.texi'.
4847 * doc/fdl.texi: Add to package.
4848
4849 2001-08-14 Marc Autret <autret_m@epita.fr>
4850
4851 Turn on %{source,header}_extension features.
4852
4853 * src/lex.c (percent_table): Un-CPP out header_extension and
4854 source_extension.
4855 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
4856 (compute_exts_from_src): Remove conditions. It restores priorities
4857 between options.
4858
4859 2001-08-14 Marc Autret <autret_m@epita.fr>
4860
4861 * src/files.c (compute_base_names): Add extensions computing when
4862 `--file-prefix' used.
4863 Standardize function calls.
4864
4865 2001-08-13 Marc Autret <autret_m@epita.fr>
4866
4867 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
4868 defining it (defined but null disables alloca).
4869
4870 2001-08-13 Marc Autret <autret_m@epita.fr>
4871
4872 * src/bison.simple (_yy_memcpy): CPP reformat.
4873
4874 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
4875
4876 * tests/atconfig.in (CPPFLAGS): Fix.
4877
4878 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
4879
4880 * doc/bison.texinfo: Include GNU General Public License from
4881 `gpl.texi'.
4882 * doc/gpl.texi: Add to package.
4883
4884 2001-08-10 Marc Autret <autret_m@epita.fr>
4885
4886 * src/print_graph.h: Fix.
4887 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
4888
4889 2001-08-10 Akim Demaille <akim@epita.fr>
4890
4891 * src/system.h: Provide default declarations for stpcpy, strndup,
4892 and strnlen.
4893
4894 2001-08-10 Robert Anisko <anisko_r@epita.fr>
4895
4896 * doc/bison.texinfo (Locations): Update @$ stuff.
4897
4898 2001-08-09 Robert Anisko <anisko_r@epita.fr>
4899
4900 * src/bison.simple (YYLLOC_DEFAULT): Update.
4901 (yyparse): Adjust.
4902
4903 2001-08-08 Marc Autret <autret_m@epita.fr>
4904
4905 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
4906 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
4907 Reported by Fabrice Bauzac.
4908
4909 2001-08-08 Marc Autret <autret_m@epita.fr>
4910
4911 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
4912 * src/vcg.c (output_node): Fix.
4913 * src/vcg.h: Cleanup.
4914 * src/print_graph.c: Add comments.
4915 (node_output_size): New global variable. Simplify the formatting of
4916 the VCG graph output.
4917 (print_actions): Unused code is now used. It notifies the final state
4918 and no action states in the VCG graph. It also give the reduce actions.
4919 The `shift and goto' edges are red and the `go to state' edges are
4920 blue.
4921 Get the current node name and node_obstack by argument.
4922 (node_obstack): New variable.
4923 (print_state): Manage node_obstack.
4924 (print_core): Use node_obstack given by argument.
4925 A node is not only computed here but in print_actions also.
4926 (print_graph): CPP out useless code instead of commenting it.
4927
4928 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
4929
4930 * tests/atconfig.in (CPPFLAGS): Fix.
4931
4932 2001-08-07 Akim Demaille <akim@epita.fr>
4933
4934 * src/print_graph.c (quote): New.
4935 (print_core): Use it.
4936
4937 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
4938
4939 * src/vcg.c (complain.h): Include it.
4940 Unepitaize `return' invocations.
4941 [NDEBUG] (main): Remove.
4942 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
4943 * src/files.c (open_files): Initialize graph_obstack.
4944 * src/print_graph.c (print_actions): CPP out useless code.
4945 (print_core): Don't output the last `\n' in labels.
4946 Use `quote'.
4947 * src/files.c (output_files): Output the VCG file.
4948 * src/main.c (main): Invoke print_graph ();
4949
4950 2001-08-06 Marc Autret <autret_m@epita.fr>
4951
4952 Automaton VCG graph output.
4953 Using option ``-g'' or long option ``--graph'', you can generate
4954 a gram_filename.vcg file containing a VCG description of the LALR (1)
4955 automaton of your grammar.
4956
4957 * src/main.c: Call to print_graph() function.
4958 * src/getargs.h: Update.
4959 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
4960 (graph_flag): New flag.
4961 (longopts): Update.
4962 (getargs): Add case `g'.
4963 * src/files.c (graph_obstack): New obstack struct.
4964 (open_files): Initialize new obstack.
4965 (output_files): Saves graph_obstack if required.
4966 * src/files.h (graph_obstack): New extern declaration.
4967 * src/Makefile.am: Add new source files.
4968
4969 2001-08-06 Marc Autret <autret_m@epita.fr>
4970
4971 * src/print_graph.c, src/print_graph.h (graph): New.
4972 * src/vcg.h: New file.
4973 * src/vcg.c: New file, VCG graph handling.
4974
4975 2001-08-06 Marc Autret <autret_m@epita.fr>
4976
4977 Add of %source_extension and %header_extension which specify
4978 the source or/and the header output file extension.
4979
4980 * src/files.c (compute_base_names): Remove initialisation of
4981 src_extension and header_extension.
4982 (compute_exts_from_gf): Update.
4983 (compute_exts_from_src): Update.
4984 (output_files): Update.
4985 * src/reader.c (parse_header_extension_decl): New.
4986 (parse_source_extension_decl): New.
4987 (read_declarations): New case statements for the new tokens.
4988 * src/lex.c (percent_table): Add entries for %source_extension
4989 and %header_extension.
4990 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
4991
4992 2001-08-06 Marc Autret <autret_m@epita.fr>
4993
4994 * configure.in: Bump to 1.28c.
4995 * doc/bison.texinfo: Texinfo thingies.
4996
4997 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
4998
4999 * tests/atconfig.in (CPPFLAGS): Add.
5000 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
5001
5002 2001-08-03 Akim Demaille <akim@epita.fr>
5003
5004 Version 1.28b.
5005
5006 2001-08-03 Akim Demaille <akim@epita.fr>
5007
5008 * tests/Makefile.am (check-local): Ship testsuite.
5009 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
5010 Include `string.h'.
5011
5012 2001-08-03 Akim Demaille <akim@epita.fr>
5013
5014 * configure.in: Try using -Wformat when compiling.
5015
5016 2001-08-03 Akim Demaille <akim@epita.fr>
5017
5018 * configure.in: Bump to 1.28b.
5019
5020 2001-08-03 Akim Demaille <akim@epita.fr>
5021
5022 * src/complain.c: Adjust strerror_r portability issues.
5023
5024 2001-08-03 Akim Demaille <akim@epita.fr>
5025
5026 Version 1.28a.
5027
5028 2001-08-03 Akim Demaille <akim@epita.fr>
5029
5030 * src/getargs.c, src/getarg.h (skeleton)): Constify.
5031 * src/lex.c (literalchar): Avoid name clashes on `buf'.
5032 * src/getargs.c: Include complain.h.
5033 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
5034 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
5035
5036 2001-08-03 Akim Demaille <akim@epita.fr>
5037
5038 * src/reader.c (readgram): Display hidden chars in error messages.
5039
5040 2001-08-03 Akim Demaille <akim@epita.fr>
5041
5042 Update to gettext 0.10.39.
5043
5044 2001-08-03 Akim Demaille <akim@epita.fr>
5045
5046 * lib/strspn.c: New.
5047
5048 2001-08-01 Marc Autret <autret_m@epita.fr>
5049
5050 * doc/bison.texinfo: Update.
5051 * doc/bison.1 (mandoc): Update.
5052 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
5053 * src/files.c: Support output files extensions computing.
5054 (src_extension): New static variable.
5055 (header_extension): New static variable.
5056 (tr): New function.
5057 (get_extension_index): New function, gets the index of an extension
5058 filename in a string.
5059 (compute_exts_from_gf): New function, computes extensions from the
5060 grammar file extension.
5061 (compute_exts_from_src): New functions, computes extensions from the
5062 C source file extension, file given by ``-o'' option.
5063 (compute_base_names): Update.
5064 (output_files): Update.
5065
5066 2001-08-01 Robert Anisko <anisko_r@epita.fr>
5067
5068 * doc/bison.texi: Document @$.
5069 (Locations): New section.
5070
5071 2001-07-18 Akim Demaille <akim@epita.fr>
5072
5073 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
5074 * config/prev-version.txt, config/move-if-change: New.
5075 * Makefile.am: Adjust.
5076
5077 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
5078
5079 * src/bison.simple (yyparse): Suppress warning `comparaison
5080 between signed and unsigned'.
5081
5082 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
5083
5084 * src/getargs.h (raw_flag): Remove.
5085 * src/getargs.c: Die on `-r'/`--raw'.
5086 * src/lex.c (parse_percent_token): Die on `%raw'.
5087 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
5088 * tests/calc.at: Suppress test with option `--raw'.
5089
5090 2001-07-14 Akim Demaille <akim@epita.fr>
5091
5092 * config/: New.
5093 * configure.in: Require Autoconf 2.50.
5094 Update to gettext 0.10.38.
5095
5096 2001-03-16 Akim Demaille <akim@epita.fr>
5097
5098 * doc/bison.texinfo: ANSIfy the examples.
5099
5100 2001-03-16 Akim Demaille <akim@epita.fr>
5101
5102 * getargs.c (skeleton): New variable.
5103 (longopts): --skeleton is a new option.
5104 (shortopts, getargs): -S is a new option.
5105 * getargs.h: Declare skeleton.
5106 * output.c (output_parser): Use it.
5107
5108 2001-03-16 Akim Demaille <akim@epita.fr>
5109
5110 * m4/strerror_r.m4: New.
5111 * m4/error.m4: Run AC_FUNC_STRERROR_R.
5112 * lib/error.h, lib/error.c: Update.
5113
5114 2001-03-16 Akim Demaille <akim@epita.fr>
5115
5116 * src/getargs.c (longopts): Clean up.
5117
5118 2001-02-21 Akim Demaille <akim@epita.fr>
5119
5120 * src/reader.c (gensym): `gensym_count' is your own.
5121 Use a static buf to create the symbol name, as token_buffer is no
5122 longer a buffer.
5123
5124 2001-02-08 Akim Demaille <akim@epita.fr>
5125
5126 * src/conflicts.c (conflict_report): Be sure not to append to res
5127 between two calls, which could happen if both first sprintf were
5128 skipped, but not the first cp += strlen.
5129
5130 2001-02-08 Akim Demaille <akim@epita.fr>
5131
5132 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
5133 New, from fileutils 4.0.37.
5134 * configure.in: Require Autoconf 2.49c. I took some time before
5135 making this decision. This is the only way out for portability
5136 issues in Bison, it would mean way too much duplicate effort to
5137 import in Bison features implemented in 2.49c since 2.13.
5138 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
5139
5140 2001-02-02 Akim Demaille <akim@epita.fr>
5141
5142 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
5143 * lib/xalloc.h, lib/xmalloc.c: Update.
5144
5145 2001-01-19 Akim Demaille <akim@epita.fr>
5146
5147 Get rid of the ad hoc handling of token_buffer in the scanner: use
5148 the obstacks.
5149
5150 * src/lex.c (token_obstack): New.
5151 (init_lex): Initialize it. No longer call...
5152 (grow_token_buffer): this. Remove it.
5153 Adjust all the places which used it to use the obstack.
5154
5155 2001-01-19 Akim Demaille <akim@epita.fr>
5156
5157 * src/lex.h: Rename all the tokens:
5158 s/\bENDFILE\b/tok_eof/g;
5159 s/\bIDENTIFIER\b/tok_identifier/g;
5160 etc.
5161 Let them be enums, not #define, to ease debugging.
5162 Adjust all the code.
5163
5164 2001-01-18 Akim Demaille <akim@epita.fr>
5165
5166 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
5167 * src/lex.c (maxtoken, grow_token_buffer): Static.
5168
5169 2001-01-18 Akim Demaille <akim@epita.fr>
5170
5171 Since we now use obstacks, more % directives can be enabled.
5172
5173 * src/lex.c (percent_table): Also accept `%yacc',
5174 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
5175 `%debug'.
5176 Handle the actions for `%semantic_parser' and `%pure_parser' here,
5177 instead of returning a token.
5178 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
5179 * src/reader.c (read_declarations): Adjust.
5180 * src/files.c (open_files): Don't call `compute_base_names', don't
5181 compute `attrsfile' since they depend upon data which might be
5182 *in* the input file now.
5183 (output_files): Do it here.
5184 * src/output.c (output_headers): Document the fact that this patch
5185 introduces a guaranteed SEGV for semantic parsers.
5186 * doc/bison.texinfo: Document them.
5187 * tests/suite.at: Exercise these %options.
5188
5189 2000-12-20 Akim Demaille <akim@epita.fr>
5190
5191 Also handle the output file (--verbose) with obstacks.
5192
5193 * files.c (foutput): Remove.
5194 (output_obstack): New.
5195 Adjust all dependencies.
5196 * src/conflicts.c: Return a string.
5197 * src/system.h (obstack_grow_string): Rename as...
5198 (obstack_sgrow): this. Be ready to work with non literals.
5199 (obstack_fgrow4): New.
5200
5201 2000-12-20 Akim Demaille <akim@epita.fr>
5202
5203 * src/files.c (open_files): Fix the computation of short_base_name
5204 in the case of `-o foo.tab.c'.
5205
5206 2000-12-20 Akim Demaille <akim@epita.fr>
5207
5208 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
5209 (copy_dollar): Now that everything uses obstacks, get rid of the
5210 FILE * parameters.
5211
5212 2000-12-20 Akim Demaille <akim@epita.fr>
5213
5214 * src/files.c (open_files): Actually the `.output' file is based
5215 on the short_base_name, not base_name.
5216 * tests/suite.at (Checking output file names): Adjust.
5217
5218 2000-12-20 Akim Demaille <akim@epita.fr>
5219
5220 * src/bison.s1: Remove, we now use directly...
5221 * src/bison.simple: this.
5222 * src/Makefile.am: Use pkgdata instead of data.
5223
5224 2000-12-20 Akim Demaille <akim@epita.fr>
5225
5226 * src/files.c (guard_obstack): New.
5227 (open_files): Initialize it.
5228 (output_files): Dump it...
5229 * src/files.h: Export it.
5230 * src/reader.c (copy_guard): Use it.
5231
5232 2000-12-19 Akim Demaille <akim@epita.fr>
5233
5234 * src/files.c (outfile, defsfile, actfile): Removed as global
5235 vars.
5236 (open_files): Don't compute them.
5237 (output_files): Adjust.
5238 (base_name, short_base_name): Be global.
5239 Adjust dependencies.
5240
5241 2000-12-19 Akim Demaille <akim@epita.fr>
5242
5243 * src/files.c (strsuffix): New.
5244 (stringappend): Be just like strcat but allocate.
5245 (base_names): Eve out from open_files.
5246 Try to simplify the rather hairy computation of base_name and
5247 short_base_name.
5248 (open_files): Use it.
5249 * tests/suite.at (Checking output file names): New test.
5250
5251 2000-12-19 Akim Demaille <akim@epita.fr>
5252
5253 * src/system.h (obstack_grow_literal_string): Rename as...
5254 (obstack_grow_string): this.
5255 * src/output.c (output_parser): Recognize `%% actions' instead of
5256 `$'.
5257 * src/bison.s1: s/$/%% actions/.
5258 * src/bison.hairy: Likewise.
5259
5260 2000-12-19 Akim Demaille <akim@epita.fr>
5261
5262 * src/output.c (output_parser): Compute the `#line' lines when
5263 there are.
5264 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
5265 Suggested by Hans Aberg.
5266
5267 2000-12-19 Akim Demaille <akim@epita.fr>
5268
5269 Let the handling of the skeleton files be local to the procedures
5270 that use it.
5271
5272 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
5273 longer static.
5274 (fparser, open_extra_files): Remove.
5275 (open_files, output_files): Don't take care of fparser.
5276 * src/files.h: Adjust.
5277 * src/output.c (output_parser): Open and close the file to the
5278 skeleton.
5279 * src/reader.c (read_declarations): When %semantic_parser, open
5280 fguard.
5281
5282 2000-12-19 Akim Demaille <akim@epita.fr>
5283
5284 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
5285 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
5286
5287 2000-12-19 Akim Demaille <akim@epita.fr>
5288
5289 * src/files.c (open_files): Yipee! We no longer need all the code
5290 looking for `/tmp' since we have no tmp file.
5291
5292 2000-12-19 Akim Demaille <akim@epita.fr>
5293
5294 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
5295 New macros.
5296 * src/files.c (open_files): Less dependency on MSDOS etc.
5297
5298 2000-12-14 Akim Demaille <akim@epita.fr>
5299
5300 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
5301 Provide a default definition.
5302 Use it when executing the default @ action.
5303 * src/reader.c (reader_output_yylsp): No longer include
5304 `timestamp' and `text' in the default YYLTYPE.
5305
5306 2000-12-12 Akim Demaille <akim@epita.fr>
5307
5308 * src/reader.c (copy_definition, parse_union_decl, copy_action)
5309 (copy_guard): Quote the file names.
5310 Reported by Laurent Mascherpa.
5311
5312 2000-12-12 Akim Demaille <akim@epita.fr>
5313
5314 * src/output.c (output_headers, output_program, output): Be sure
5315 to escape special characters when outputting filenames.
5316 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
5317 (output_headers): Don't depend on them, Use ACTSTR.
5318
5319 2000-11-17 Akim Demaille <akim@epita.fr>
5320
5321 * lib/obstack.h: Formatting changes.
5322 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
5323 prevents type checking.
5324 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
5325 cast the value to (void *): assigning a `foo *' to a `void *'
5326 variable is valid.
5327 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
5328 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
5329 append characters.
5330
5331 2000-11-17 Akim Demaille <akim@epita.fr>
5332
5333 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
5334 as...
5335 (suite.m4, regression.m4, calc.m4): these.
5336 * tests/atgeneral.m4: Update from CVS Autoconf.
5337
5338 2000-11-17 Akim Demaille <akim@epita.fr>
5339
5340 * tests/regression.m4 (%union and --defines): New test,
5341 demonstrating a current bug in the obstack implementation.
5342
5343 2000-11-17 Akim Demaille <akim@epita.fr>
5344
5345 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
5346 macros.
5347 Use them to declare the variables which are global or local to
5348 `yyparse'.
5349
5350 2000-11-17 Akim Demaille <akim@epita.fr>
5351
5352 * acconfig.h: Remove, no longer used.
5353
5354 2000-11-07 Akim Demaille <akim@epita.fr>
5355
5356 * src: s/Copyright (C)/Copyright/g.
5357
5358 2000-11-07 Akim Demaille <akim@epita.fr>
5359
5360 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
5361 defining.
5362 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
5363
5364 2000-11-07 Akim Demaille <akim@epita.fr>
5365
5366 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
5367 Merge in a single CPP if/else.
5368
5369 2000-11-07 Akim Demaille <akim@epita.fr>
5370
5371 * src/output.c (output): Remove useless variables.
5372 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
5373 argument `data' for consistency with the prototypes.
5374 Qualify it `const'.
5375 (obstack_copy, obstack_copy0): Rename the second argument as
5376 `address' for consistency. Qualify it `const'.
5377 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
5378 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
5379 `const' their input argument (`data' or `address').
5380 Adjust the corresponding macros to include `const' in casts.
5381
5382 2000-11-03 Akim Demaille <akim@epita.fr>
5383
5384 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
5385 s/PFILE1/BISON_HAIRY/.
5386 Adjust dependencies.
5387
5388 2000-11-03 Akim Demaille <akim@epita.fr>
5389
5390 For some reason, this was not applied.
5391
5392 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
5393 `unlink': it's no longer used.
5394
5395 2000-11-03 Akim Demaille <akim@epita.fr>
5396
5397 * src/files.c (skeleton_find): New function, eved out of...
5398 (open_files, open_extra_files): here.
5399
5400 2000-11-03 Akim Demaille <akim@epita.fr>
5401
5402 Don't use `atexit'.
5403
5404 * src/files.c (obstack_save): New function.
5405 (done): Rename as...
5406 (output_files): this.
5407 Use `obstack_save'.
5408 * src/main.c (main): Don't use `atexit' to register `done', since
5409 it no longer has to remove tmp files, just call `output_files'
5410 when there are no errors.
5411
5412 2000-11-02 Akim Demaille <akim@epita.fr>
5413
5414 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
5415 `unlink': it's no longer used.
5416 * src/files.h: Formatting changes.
5417
5418 2000-11-02 Akim Demaille <akim@epita.fr>
5419
5420 Remove the last uses of mktemp and unlink/delete.
5421
5422 * src/files.c (fdefines, ftable): Removed.
5423 (defines_ostack, table_obstack): New.
5424 Adjust dependencies of the former into uses of the latter.
5425 * src/output.c (output_short_or_char_table, output_short_table):
5426 Convert to using obstacks.
5427 * src/reader.c (copy_comment2): Accept one FILE * and two
5428 obstacks.
5429 (output_token_defines, reader_output_yylsp): Use obstacks.
5430 * src/system.h (obstack_fgrow3): New.
5431
5432 2000-11-01 Akim Demaille <akim@epita.fr>
5433
5434 Change each use of `fattrs' into a use of `attrs_obstack'.
5435
5436 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
5437 * src/files.c (fattrs): Remove.
5438 (attrs_obstack): New.
5439 Adjust all dependencies.
5440 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
5441
5442 2000-11-01 Akim Demaille <akim@epita.fr>
5443
5444 Introduce obstacks.
5445 Change each use of `faction' into a use of `action_obstack'.
5446
5447 * lib/obstack.h, lib/obstack.c: New files.
5448 * src/files.c (faction): Remove.
5449 (action_obstack): New.
5450 Adjust all dependencies.
5451
5452 2000-10-20 Akim Demaille <akim@epita.fr>
5453
5454 * lib/quote.h (PARAMS): New macro. Use it.
5455
5456 2000-10-16 Akim Demaille <akim@epita.fr>
5457
5458 * src/output.c (output_short_or_char_table): New function.
5459 (output_short_table, output_token_translations): Use it.
5460 (goto_actions): Use output_short_table.
5461
5462 2000-10-16 Akim Demaille <akim@epita.fr>
5463
5464 * src/symtab.c (bucket_new): New function.
5465 (getsym): Use it.
5466
5467 * src/output.c (output_short_table): New argument to display the
5468 comment associated with the table.
5469 Adjust dependencies.
5470 (output_gram): Use it.
5471 (output_rule_data): Nicer output layout for YYTNAME.
5472
5473 2000-10-16 Akim Demaille <akim@epita.fr>
5474
5475 * src/lex.c (read_typename): New function.
5476 (lex): Use it.
5477 * src/reader.c (copy_dollar): Likewise.
5478
5479 2000-10-16 Akim Demaille <akim@epita.fr>
5480
5481 * src/reader.c (copy_comment2): Expect the input stream to be on
5482 the `/' which is suspected to open a comment, instead of being
5483 called after `//' or `/*' was read.
5484 (copy_comment, copy_definition, parse_union_decl, copy_action)
5485 (copy_guard): Adjust.
5486
5487 2000-10-16 Akim Demaille <akim@epita.fr>
5488
5489 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
5490 `read_signed_integer'.
5491
5492 2000-10-16 Akim Demaille <akim@epita.fr>
5493
5494 * src/reader.c (copy_dollar): New function.
5495 (copy_guard, copy_action): Use it.
5496
5497 2000-10-16 Akim Demaille <akim@epita.fr>
5498
5499 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
5500 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
5501 New files, from Fileutils 4.0.27.
5502 * src/main.c (printable_version): Remove.
5503 * src/lex.c, src/reader.c: Use `quote'.
5504
5505 2000-10-04 Akim Demaille <akim@epita.fr>
5506
5507 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
5508
5509 2000-10-04 Akim Demaille <akim@epita.fr>
5510
5511 * doc/bison.texinfo: Various typos spotted by Neil Booth.
5512
5513 2000-10-04 Akim Demaille <akim@epita.fr>
5514
5515 When a literal string is used to define two different tokens,
5516 `bison -v' segfaults.
5517 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
5518
5519 * tests/regression.m4: New file.
5520 Include the core of the sample provided by Piotr Gackiewicz.
5521 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
5522 properly.
5523
5524 2000-10-04 Akim Demaille <akim@epita.fr>
5525
5526 * src/reader.c (parse_expect_decl): Keep `count' within the size
5527 of `buffer'.
5528 From Neil Booth.
5529
5530 2000-10-02 Paul Eggert <eggert@twinsun.com>
5531
5532 * bison.s1 (yyparse): Assign the default value
5533 unconditionally, to avoid a GCC warning and make the parser a
5534 tad smaller.
5535
5536 2000-10-02 Akim Demaille <akim@epita.fr>
5537
5538 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
5539 options.
5540
5541 2000-10-02 Akim Demaille <akim@epita.fr>
5542
5543 * src/derives.c, src/print.c, src/reduce.c: To ease the
5544 translation, move some `\n' out of the translated strings.
5545
5546 2000-10-02 Akim Demaille <akim@epita.fr>
5547
5548 The location tracking mechanism is precious for parse error
5549 messages. Nevertheless, it is enabled only when `@n' is used in
5550 the grammar, which is a different issue (you can use it in error
5551 message, but not in the grammar per se). Therefore, there should
5552 be another means to enable it.
5553
5554 * src/getargs.c (getargs): Support `--locations'.
5555 (usage): Report it.
5556 * src/getargs.h (locationsflag): Export it.
5557 * src/lex.c (percent_table): Support `%locations'.
5558 * src/reader.c (yylsp_needed): Remove this variable, now replaced
5559 with `locationsflag'.
5560 * doc/bison.texinfo: Document `--locations' and `%locations'.
5561 Sort the options.
5562 * tests/calc.m4: Test it.
5563
5564 For regularity of the names, replace each
5565 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
5566 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
5567 In addition replace each `flag' with `_flag'.
5568
5569 2000-10-02 Akim Demaille <akim@epita.fr>
5570
5571 Also test parse error messages, including with YYERROR_VERBOSE.
5572
5573 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
5574 associative).
5575 Use it to check the computations.
5576 Use it to check `nonassoc' is honored.
5577 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
5578 `--yyerror-verbose'.
5579 (_AT_CHECK_CALC): Adjust to this option.
5580 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
5581
5582 2000-10-02 Akim Demaille <akim@epita.fr>
5583
5584 Test also `--verbose', `--defines' and `--name-prefix'. Testing
5585 the latter demonstrates a flaw in the handling of non debugging
5586 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
5587 was used in order to simplify:
5588
5589 #if YYDEBUG
5590 if (yydebug)
5591 {
5592 ...
5593 }
5594 #endif
5595
5596 into
5597
5598 if (yydebug)
5599 {
5600 ...
5601 }
5602
5603 unfortunately this leads to a CPP conflict when
5604 `--name-prefix=foo' is used since it produces `#define yydebug
5605 foodebug'.
5606
5607 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
5608 (YYDPRINTF): New macro.
5609 Spread its use.
5610 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
5611 the bison options.
5612 Also test `--verbose', `--defines' and `--name-prefix'.
5613
5614 2000-10-02 Akim Demaille <akim@epita.fr>
5615
5616 Improve the readability of the produced parsers.
5617
5618 * src/bison.s1: Formatting changes.
5619 Improve the comment related to the `$' mark.
5620 (yydefault): Don't fall through to `yyresume': `goto' there.
5621 * src/output.c (output_parser): When the `$' is met, skip the end
5622 of its line.
5623 New variable, `number_of_dollar_signs', to check there's exactly
5624 one `$' in the parser skeleton.
5625
5626 2000-10-02 Akim Demaille <akim@epita.fr>
5627
5628 * lib/xstrdup.c: New file, from the fileutils.
5629 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
5630 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
5631 instead of strlen + xmalloc + strcpy.
5632 * src/symtab.c (copys): Remove, use xstrdup instead.
5633
5634 2000-10-02 Akim Demaille <akim@epita.fr>
5635
5636 * src/gram.h (associativity): New enum type which replaces the
5637 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
5638 `right_assoc', `left_assoc' and `non_assoc'.
5639 Adjust all dependencies.
5640 * src/reader.c: Formatting changes.
5641 (LTYPESTR): Don't define it, use it as a literal in
5642 `reader_output_yylsp'.
5643 * src/symtab.h (symbol_class): New enum type which replaces the
5644 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
5645 `sunknown', `stoken and `snterm'.
5646
5647 2000-10-02 Akim Demaille <akim@epita.fr>
5648
5649 * src/getargs.c (fixed_outfiles): Rename as...
5650 (yaccflag): for consistency and accuracy.
5651 Adjust dependencies.
5652
5653 2000-10-02 Akim Demaille <akim@epita.fr>
5654
5655 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
5656 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
5657 difficult and introduced a lot of core dump. It turns out that
5658 Bison used an implementation of `xmalloc' based on `calloc', and
5659 at various places it does depend upon the initialization to 0. I
5660 have not tried to isolate the pertinent places, and all the former
5661 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
5662 someone should address this issue.
5663
5664 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
5665 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
5666 files.
5667 Adjust dependencies.
5668 * src/warshall.h: New file.
5669 Propagate.
5670
5671 2000-10-02 Akim Demaille <akim@epita.fr>
5672
5673 Various anti-`extern in *.c' changes.
5674
5675 * src/system.h: Include `assert.h'.
5676
5677 2000-10-02 Akim Demaille <akim@epita.fr>
5678
5679 * src/state.h (nstates, final_state, first_state, first_shift)
5680 (first_reduction): Move their exportation from here...
5681 * src/LR0.h: to here.
5682 Adjust dependencies.
5683 * src/getargs.c (statisticsflag): New variable.
5684 Add support for `--statistics'.
5685 Adjust dependencies.
5686
5687 Remove a lot of now useless `extern' statements in most files.
5688
5689 2000-10-02 Akim Demaille <akim@epita.fr>
5690
5691 * src/LR0.h: New file.
5692 Propagate its use.
5693
5694 2000-10-02 Akim Demaille <akim@epita.fr>
5695
5696 * src/print.h: New file.
5697 Propagate its use.
5698 * src/print.c: Formatting and ordering changes.
5699 (verbose, terse): Replace with...
5700 (print_results): this new function.
5701 Adjust dependencies.
5702
5703 2000-10-02 Akim Demaille <akim@epita.fr>
5704
5705 * src/conflicts.c (conflict_report): New function.
5706 (conflict_log, verbose_conflict_log): Replace with...
5707 (print_conflicts): this function.
5708 Adjust dependencies.
5709 * src/conflicts.h: New file.
5710 Propagate its inclusion.
5711
5712 2000-10-02 Akim Demaille <akim@epita.fr>
5713
5714 * src/nullable.h: New file.
5715 Propagate its inclusion.
5716 * src/nullable.c: Formatting changes.
5717
5718 2000-10-02 Akim Demaille <akim@epita.fr>
5719
5720 * src/reduce.h: New file.
5721 Propagate its inclusion.
5722 * src/reduce.c: Topological sort and other formatting changes.
5723 (bool, TRUE, FALSE): Move their definition to...
5724 * src/system.h: here.
5725
5726 2000-10-02 Akim Demaille <akim@epita.fr>
5727
5728 * src/files.c: Formatting changes.
5729 (tryopen, tryclose, openfiles): Rename as...
5730 (xfopen, xfclose, open_files): this.
5731 (stringappend): static.
5732 * src/files.h: Complete the list of exported symbols.
5733 Propagate its use.
5734
5735 2000-10-02 Akim Demaille <akim@epita.fr>
5736
5737 * src/reader.h: New file.
5738 Propagate its use instead of tedious list of `extern' and
5739 prototypes.
5740 * src/reader.c: Formatting changes, topological sort,
5741 s/register//.
5742
5743 2000-10-02 Akim Demaille <akim@epita.fr>
5744
5745 * src/lex.h: Prototype `lex.c' exported functions.
5746 * src/reader.c: Adjust.
5747 * src/lex.c: Formatting changes.
5748 (safegetc): Rename as...
5749 (xgetc): this.
5750
5751 2000-10-02 Akim Demaille <akim@epita.fr>
5752
5753 * src/lalr.h: New file.
5754 Propagate its inclusion instead of prototypes and `extern'.
5755 * src/lalr.c: Formatting changes, topological sorting etc.
5756
5757 2000-10-02 Akim Demaille <akim@epita.fr>
5758
5759 * src/output.c (token_actions): Introduce a temporary array,
5760 YYDEFACT, that makes it possible for this function to use
5761 output_short_table.
5762
5763 2000-10-02 Akim Demaille <akim@epita.fr>
5764
5765 `user_toknums' is output as a `short[]' in `output.c', while it is
5766 defined as a `int[]' in `reader.c'. For consistency with the
5767 other output tables, `user_toknums' is now defined as a table of
5768 shorts.
5769
5770 * src/reader.c (user_toknums): Be a short table instead of an int
5771 table.
5772 Adjust dependencies.
5773
5774 Factor the short table outputs.
5775
5776 * src/output.c (output_short_table): New function.
5777 * src/output.c (output_gram, output_stos, output_rule_data)
5778 (output_base, output_table, output_check): Use it.
5779
5780 2000-10-02 Akim Demaille <akim@epita.fr>
5781
5782 * src/output.c (output): Topological sort of the functions, in
5783 order to get rid of the `static' prototypes.
5784 No longer use `register'.
5785 * src/output.h: New file.
5786 Propagate its inclusion in files explicitly prototyping functions
5787 from output.c.
5788
5789 2000-09-21 Akim Demaille <akim@epita.fr>
5790
5791 * src/atgeneral.m4: Update from Autoconf.
5792
5793 2000-09-21 Akim Demaille <akim@epita.fr>
5794
5795 * src/closure.h: New file.
5796 * src/closure.c: Formatting changes, topological sort over the
5797 functions, use of closure.h.
5798 (initialize_closure, finalize_closure): Rename as...
5799 (new_closure, free_closure): these. Adjust dependencies.
5800 * src/LR0.c: Formatting changes, topological sort, use of
5801 cloture.h.
5802 (initialize_states): Rename as...
5803 (new_states): this.
5804 * src/Makefile.am (noinst_HEADERS): Adjust.
5805
5806 2000-09-20 Akim Demaille <akim@epita.fr>
5807
5808 * src/acconfig.h: Don't protect config.h against multiple
5809 inclusion.
5810 Don't define PARAMS.
5811 * src/system.h: Define PARAMS.
5812 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
5813 purpose of config.h. system.h must not try to fix wrong
5814 definitions in config.h.
5815
5816 2000-09-20 Akim Demaille <akim@epita.fr>
5817
5818 * src/derives.h: New file.
5819 * src/main.c, src/derives.h: Use it.
5820 Formatting changes.
5821 * src/Makefile.am (noinst_HEADERS): Adjust.
5822
5823 2000-09-20 Akim Demaille <akim@epita.fr>
5824
5825 * tests/atgeneral.m4: Update from Autoconf.
5826 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
5827 (AT_CHECK_CALC): New macros.
5828 Use these macros to test bison with options `', `--raw',
5829 `--debug', `--yacc', `--yacc --debug'.
5830
5831 2000-09-19 Akim Demaille <akim@epita.fr>
5832
5833 * src/output.c: Formatting changes.
5834 * src/machine.h: Remove, leaving its contents in...
5835 * src/system.h: here.
5836 Include stdio.h.
5837 Adjust all dependencies on stdio.h and machine.h.
5838 * src/getargs.h: New file.
5839 Let all `extern' declarations about getargs.c be replaced with
5840 inclusion of `getargs.h'.
5841 * src/Makefile.am (noinst_HEADERS): Adjust.
5842
5843 * tests/calc.m4 (yyin): Be initialized in main, not on the global
5844 scope.
5845 (yyerror): Returns void, not int.
5846 * doc/bison.texinfo: Formatting changes.
5847
5848 2000-09-19 Akim Demaille <akim@epita.fr>
5849
5850 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
5851 portable.
5852
5853 2000-09-18 Akim Demaille <akim@epita.fr>
5854
5855 * configure.in: Append WARNING_CFLAGS to CFLAGS.
5856 * src/Makefile.am (INCLUDES): Don't.
5857 Be ready to fetch headers in lib/.
5858
5859 2000-09-18 Akim Demaille <akim@epita.fr>
5860
5861 * doc/bison.texinfo: Update the copyright.
5862 ANSIfy and GNUify the examples.
5863 Remove the old menu.
5864
5865 2000-09-18 Akim Demaille <akim@epita.fr>
5866
5867 First set of tests: use the `calc' example from the documentation.
5868
5869 * src/bison.s1 (yyparse): Condition the code using `yytname' which
5870 is defined only when YYDEBUG is.
5871 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
5872 * src/files.c (tryopen, tryclose): Formatting changes.
5873 Move to the top and be static.
5874 * src/reader.c (read_signed_integer): Likewise.
5875 * tests/calc.m4: New file.
5876 * Makefile.am, suite.m4: Adjust.
5877 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
5878
5879 2000-09-18 Akim Demaille <akim@epita.fr>
5880
5881 Add support for an Autotest test suite for Bison.
5882
5883 * m4/m4.m4, m4/atconfig.m4: New files.
5884 * m4/Makefile.am (EXTRA_DIST): Adjust.
5885 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
5886 files.
5887 * src/getargs.c: Display a more standard --version message.
5888 * src/reader.c (reader): Formatting changes.
5889 No longer depend upon VERSION_STRING.
5890 * configure.in: No longer use `dnl'.
5891 Set up the test suite and the new directory `tests/.
5892 (VERSION_STRING): Remove.
5893
5894 2000-04-14 Akim Demaille <akim@epita.fr>
5895
5896 * src/reader.c (copy_comment2): New function, same as former
5897 `copy_comment', but outputs into two FILE *.
5898 (copy_comment): Use it.
5899 (parse_union_decl): Use it.
5900 (get_type, parse_start_decl): Use the same `invalid' message.
5901 (parse_start_decl, parse_union_decl): Use the same `multiple'
5902 message.
5903 (parse_union_decl, copy_guard, copy_action): Use the same
5904 `unmatched' message.
5905 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
5906
5907 2000-03-31 Akim Demaille <akim@epita.fr>
5908
5909 * src/files.c (tryopen, tryclose): Move to the top.
5910 Be static.
5911
5912 2000-03-31 Akim Demaille <akim@epita.fr>
5913
5914 * src/main.c (main): Don't call `done', exit does it.
5915
5916 2000-03-31 Akim Demaille <akim@epita.fr>
5917
5918 * allocate.c: s/return (foo)/return foo/.
5919 * lalr.c: Likewise.
5920 * LR0.c: Likewise.
5921 * output.c: Likewise.
5922 * reader.c: Likewise.
5923 * symtab.c: Likewise.
5924 * vmsgetargs.c: Likewise.
5925
5926 2000-03-31 Akim Demaille <akim@epita.fr>
5927
5928 Clean up the error reporting functions.
5929
5930 * src/report.c: New file.
5931 * src/report.h: Likewise.
5932 * src/Makefile.am: Adjust.
5933 * m4/error.m4: New file.
5934 * m4/Makefile.am: Adjust.
5935 * configure.in (jm_PREREQ_ERROR): Call it.
5936 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
5937 Remove.
5938 (fatal, fatals): Remove. All callers use complain.c::fatal.
5939 (warn, warni, warns, warnss, warnss): Remove. All callers use
5940 complain.c::complain.
5941 (toomany): Remove, use fatal instead.
5942 * src/files.c (done): No argument, use complain_message_count.
5943 * src/main.c (main): Register `done' to `atexit'.
5944
5945 * src/getargs.c (usage): More `fputs', less `fprintf'.
5946
5947 2000-03-28 Akim Demaille <akim@epita.fr>
5948
5949 * lib/: New directory.
5950 * Makefile.am (SUBDIRS): Adjust.
5951 * configure.in: Adjust.
5952 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
5953 useless.
5954 * src/alloca.c: Moved to lib/.
5955 * src/getopt.c: Likewise.
5956 * src/getopt1.c: Likewise.
5957 * src/getopt.h: Likewise.
5958 * src/ansi2knr.c: Likewise.
5959 * src/ansi2knr.1: Likewise.
5960 * src/Makefile.am: Adjust.
5961 * lib/Makefile.am: New file.
5962
5963 2000-03-28 Akim Demaille <akim@epita.fr>
5964
5965 * src/getargs.c (usage): Refresh the help message.
5966
5967 2000-03-17 Akim Demaille <akim@epita.fr>
5968
5969 * src/getopt1.c: Updated from textutils 2.0e
5970 * src/getopt.c: Likewise.
5971 * src/getopt.h: Likewise.
5972
5973 2000-03-17 Akim Demaille <akim@epita.fr>
5974
5975 * src/Makefile.am (bison.simple): Fix the awk program: quote only
5976 the file name, not the whole `#line LINE FILE'.
5977
5978 2000-03-17 Akim Demaille <akim@epita.fr>
5979
5980 On syntax errors, report the token on which we choked.
5981
5982 * src/bison.s1 (yyparse): In the label yyerrlab, when
5983 YYERROR_VERBOSE, add yychar in msg.
5984
5985 2000-03-17 Akim Demaille <akim@epita.fr>
5986
5987 * src/reader.c (copy_at): New function.
5988 (copy_guard): Use it.
5989 (copy_action): Use it.
5990
5991 2000-03-17 Akim Demaille <akim@epita.fr>
5992
5993 Be kind to translators, save some useless translations.
5994
5995 * src/main.c (banner): New function.
5996 (fatal_banner): Use it.
5997 (warn_banner): Use it.
5998
5999 2000-03-17 Akim Demaille <akim@epita.fr>
6000
6001 * src/reader.c (copy_definition): Use copy_string and
6002 copy_comment. Removed now unused `match', `ended',
6003 `cplus_comment'.
6004 (copy_comment, copy_string): Moved, to be visible from
6005 copy_definition.
6006
6007 2000-03-17 Akim Demaille <akim@epita.fr>
6008
6009 * src/reader.c (copy_string): Declare `static inline'. No
6010 problems with inline, since it is checked by configure.
6011 (copy_comment): Likewise.
6012
6013 2000-03-17 Akim Demaille <akim@epita.fr>
6014
6015 * src/reader.c (packsymbols): Formatting changes.
6016
6017 2000-03-17 Akim Demaille <akim@epita.fr>
6018
6019 * src/reader.c (copy_comment): New function, factored out from:
6020 (copy_action): Use it. Removed now unused `match', `ended',
6021 `cplus_comment'.
6022 (copy_guard): Likewise.
6023
6024 2000-03-17 Akim Demaille <akim@epita.fr>
6025
6026 * src/reader.c (copy_string): New function, factored out from:
6027 (copy_action): Use it.
6028 (copy_guard): Likewise.
6029
6030 2000-03-17 Akim Demaille <akim@epita.fr>
6031
6032 Change the handling of @s so that they behave exactly like $s.
6033 There is now a pseudo variable @$ (readble and writable), location
6034 of the lhs of the rule (by default ranging from the location of
6035 the first symbol of the rhs, to the location of the last symbol,
6036 or, if the rhs is empty, YYLLOC).
6037
6038 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
6039 yyval.
6040 (yyparse): When providing a default semantic action, provide a
6041 default location action.
6042 (after the $): No longer change `*YYLSP', just stack YYLOC the
6043 same way you stack YYVAL.
6044 * src/reader.c (read_declarations): Use warns.
6045 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
6046 (copy_action, case '@'): Likewise.
6047 Use a standard error message, to save useless work from
6048 translators.
6049
6050 2000-03-17 Akim Demaille <akim@epita.fr>
6051
6052 * src/bison.s1: Formatting and cosmetics changes.
6053 * src/reader.c: Likewise.
6054 Update the Copyright notice.
6055
6056 2000-03-17 Akim Demaille <akim@epita.fr>
6057
6058 * src/bison.s1 (#line): All set to `#line' only, since the
6059 Makefile now handles them.
6060
6061 2000-03-16 Akim Demaille <akim@epita.fr>
6062
6063 * src/output.c (output_rule_data): Output the documentation of
6064 some of the tables.
6065 (Copyright notice): Update.
6066 Formatting changes.
6067
6068 2000-03-16 Akim Demaille <akim@epita.fr>
6069
6070 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
6071 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
6072 One `#if YYDEBUG' remains, since it uses variables which are
6073 defined only if `YYDEBUG != 0'.
6074
6075 2000-03-16 Akim Demaille <akim@epita.fr>
6076
6077 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
6078 and related variables so that the similarities are highlighted.
6079
6080 2000-03-16 Akim Demaille <akim@epita.fr>
6081
6082 * src/bison.s1: Properly indent CPP directives.
6083
6084 2000-03-16 Akim Demaille <akim@epita.fr>
6085
6086 * src/bison.s1: Properly indent the `alloca' CPP section.
6087
6088 2000-03-16 Akim Demaille <akim@epita.fr>
6089
6090 Do not hard code values of directories in `configure.in'.
6091 Update the `configure' tool chain.
6092
6093 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
6094 src/makefile.am.
6095 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
6096 (AC_OUTPUT): Add m4/Makefile.
6097 Bump to bison 1.28a, 1.29 has never been released.
6098 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
6099 handled via src/Makefile.am.
6100 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
6101 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
6102 autoheader.
6103 * Makefile.am (SUBDIRS): Add m4.
6104 (ACLOCAL_AM_FLAGS): New variable.
6105 (AUTOMAKE_OPTIONS): Add check-news.
6106 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
6107 the proper line number and file name.
6108 (DEFS): Propagate the location of bison library files and of the
6109 locale files.
6110 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
6111 builddir.
6112 * acinclude.m4: Remove, replaced by the directory m4.
6113 * m4/Makefile.am (EXTRA_DIST): New variable.
6114 * m4/gettext.m4: New file, from the fileutils.
6115 * m4/lcmessage.m4: Likewise
6116 * m4/progtest.m4: Likewise.
6117 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
6118
6119 2000-03-10 Akim Demaille <akim@epita.fr>
6120
6121 * src/closure.c:
6122 Formatting changes of various comments.
6123 Respect the GNU coding standards at various places.
6124 Don't use `_()' when no translation is needed.
6125
6126 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6127
6128 * src/files.c:
6129 OS/2 honors TMPDIR environment variable.
6130
6131 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6132
6133 * doc/bison.texinfo: Tweaked spelling and grammar.
6134 Updated ISBN.
6135 Removed reference to price of printed copy.
6136 Mention BISON_SIMPLE and BISON_HAIRY.
6137
6138 1999-12-13 Jesse Thilo <jthilo@gnu.org>
6139
6140 * configure.in, NEWS:
6141 Bison 1.29 released.
6142
6143 1999-10-27 Jesse Thilo <jthilo@gnu.org>
6144
6145 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
6146 Added reference card.
6147
6148 1999-07-26 Jesse Thilo <jthilo@gnu.org>
6149
6150 * po/ru.po: Added Russian translation.
6151
6152 1999-07-26 Jesse Thilo <jthilo@gnu.org>
6153
6154 * configure.in: Added Russian translation.
6155
6156 1999-07-06 Jesse Thilo <jthilo@gnu.org>
6157
6158 * configure.in, NEWS, README:
6159 Released version 1.28.
6160
6161 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6162
6163 * src/system.h:
6164 Squashed redefinition warning on some systems.
6165
6166 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
6167 Have configure build version string instead of relying on ANSI string
6168 concatentation.
6169
6170 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6171
6172 * po/POTFILES.in: Got rid of version.c.
6173
6174 1999-06-14 Jesse Thilo <jthilo@gnu.org>
6175
6176 * acconfig.h, configure.in:
6177 Have configure build version string instead of relying on ANSI string
6178 concatentation.
6179
6180 1999-06-08 Jesse Thilo <jthilo@gnu.org>
6181
6182 * doc/bison.1:
6183 Dropped mention of `+' for long-named options.
6184
6185 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6186
6187 * src/files.c: Added <unistd.h> for unlink().
6188
6189 * src/Makefile.am, src/system.h:
6190 I18n fixes.
6191
6192 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6193
6194 * README: Added a FAQ list.
6195
6196 * configure.in, acconfig.h:
6197 I18n fixes.
6198
6199 1999-05-30 Jesse Thilo <jthilo@gnu.org>
6200
6201 * doc/FAQ, doc/Makefile.am:
6202 Added a FAQ list.
6203
6204 1999-05-19 Jesse Thilo <jthilo@gnu.org>
6205
6206 * src/alloc.h, src/symtab.h, src/version.c:
6207 Protected inclusion of "config.h" with HAVE_CONFIG_H.
6208
6209 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6210
6211 * src/.cvsignore, src/Makefile.am:
6212 Reorganized: sources in `src', documentation in `doc'.
6213
6214 * src/lex.c (literalchar):
6215 fixed the code for escaping double quotes (thanks
6216 Jonathan Czisny.)
6217
6218 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6219
6220 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
6221 Adjusted paths to reflect directory reorganization.
6222
6223 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6224
6225 * doc/.cvsignore, doc/Makefile.am:
6226 Reorganized: sources in `src', documentation in `doc'.
6227
6228 1999-04-18 Jesse Thilo <jthilo@gnu.org>
6229
6230 * configure.in:
6231 Updated AC_INIT file to reflect directory reorganization.
6232
6233 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
6234 Reorganized: sources in `src', documentation in `doc'.
6235
6236 1999-04-13 Jesse Thilo <jthilo@gnu.org>
6237
6238 * src/allocate.c:
6239 Don't declare calloc() and realloc() if not necessary.
6240
6241 1999-04-13 Jesse Thilo <jthilo@gnu.org>
6242
6243 * configure.in, acconfig.h, acinclude.m4:
6244 Don't declare calloc() and realloc() if not necessary.
6245
6246 1999-03-23 Jesse Thilo <jthilo@gnu.org>
6247
6248 * po/.cvsignore: Added i18n support.
6249
6250 1999-03-23 Jesse Thilo <jthilo@gnu.org>
6251
6252 * acconfig.h, configure.in, Makefile.am:
6253 Added i18n support.
6254
6255 1999-03-22 Jesse Thilo <jthilo@gnu.org>
6256
6257 * src/bison.s1: Fixed #line numbers.
6258
6259 1999-03-15 Jesse Thilo <jthilo@gnu.org>
6260
6261 * po/es.po, po/fr.po, po/nl.po, po/de.po:
6262 Added PO files from Translation Project.
6263
6264 1999-03-03 Jesse Thilo <jthilo@gnu.org>
6265
6266 * Makefile.am:
6267 Added support for non-ANSI compilers (ansi2knr).
6268
6269 1999-02-16 Jesse Thilo <jthilo@gnu.org>
6270
6271 * configure.in: Bumped version number to 1.27.
6272
6273 * Makefile.am:
6274 Added `bison.simple' to list of files removed by `make distclean'.
6275
6276 1999-02-12 Jesse Thilo <jthilo@gnu.org>
6277
6278 * src/files.c, src/files.h:
6279 Defined locations of parser files in config.h instead of Makefile.
6280
6281 1999-02-12 Jesse Thilo <jthilo@gnu.org>
6282
6283 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
6284 Defined locations of parser files in config.h instead of Makefile.
6285
6286 1999-02-09 Jesse Thilo <jthilo@gnu.org>
6287
6288 * Makefile.am:
6289 Removed inappropriate use of $< macro.
6290
6291 1999-02-05 Jesse Thilo <jthilo@gnu.org>
6292
6293 * po/Makefile.in.in, po/POTFILES.in:
6294 Add `po' directory skeleton.
6295
6296 1999-01-27 Jesse Thilo <jthilo@gnu.org>
6297
6298 * README: Document help-bison list.
6299
6300 * configure.in: Add check for mkstemp().
6301
6302 1999-01-20 Jesse Thilo <jthilo@gnu.org>
6303
6304 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
6305 Hush a few compiler warnings.
6306
6307 * src/files.c:
6308 Add tryclose(), which verifies that fclose was successful.
6309 Hush a couple of compiler warnings.
6310
6311 1999-01-20 Jesse Thilo <jthilo@gnu.org>
6312
6313 * Makefile.am, OChangeLog:
6314 ChangeLog is now automatically generated. Include the old version as
6315 OChangeLog.
6316
6317 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6318
6319 * src/gram.h, src/lalr.c, src/lex.c, src/lex.h, src/machine.h, src/main.c, src/nullable.c, src/output.c, src/print.c, src/reader.c, src/reduce.c, src/state.h, src/symtab.c, src/symtab.h, src/types.h, src/vmsgetargs.c, src/warshall.c, src/allocate.c, src/alloc.h, src/bison.s1, src/closure.c, src/conflicts.c, src/derives.c, src/files.c, src/files.h, src/getargs.c, src/gram.c, src/LR0.c:
6320 Update FSF address.
6321
6322 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6323
6324 * doc/bison.texinfo: Fix formatting glitch.
6325
6326 * doc/bison.texinfo: Update FSF address.
6327
6328 1999-01-14 Jesse Thilo <jthilo@gnu.org>
6329
6330 * acconfig.h: Update FSF address.
6331
6332 1999-01-08 Jesse Thilo <jthilo@gnu.org>
6333
6334 * src/system.h:
6335 Don't define PACKAGE here, since config.h defines it.
6336
6337 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6338
6339 * src/reader.c: Update copyright date.
6340
6341 * src/main.c:
6342 Ditch sprintf to statically-sized buffers in fatal/warn functions in
6343 favor of output directly to stderr (avoids buffer overruns).
6344
6345 * src/reader.c: Some checks for premature EOF.
6346
6347 * src/allocate.c, src/alloc.h, src/closure.c, src/conflicts.c, src/derives.c, src/getargs.c, src/gram.c, src/lalr.c, src/lex.c, src/LR0.c, src/main.c, src/nullable.c, src/output.c, src/print.c, src/reduce.c, src/symtab.c, src/symtab.h, src/warshall.c:
6348 Use prototypes if the compiler understands them.
6349
6350 * src/files.c: Honor TMPDIR on Unix hosts.
6351 Use prototypes if the compiler understands them.
6352
6353 * src/reader.c:
6354 Fix a couple of buffer overrun bugs.
6355 Use prototypes if the compiler understands them.
6356
6357 * src/system.h: Include unistd.h and ctype.h.
6358 Use #ifdef instead of #if for NLS symbols.
6359
6360 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6361
6362 * doc/bison.texinfo:
6363 Delete comment "consider using @set for edition number, etc..." since
6364 we now are doing so.
6365
6366 1998-12-30 Jesse Thilo <jthilo@gnu.org>
6367
6368 * configure.in:
6369 Use prototypes if the compiler understands them.
6370
6371 * NEWS: Document 1.26 highlights.
6372
6373 * Makefile.am: Require Automake 1.3 or later.
6374
6375 * acconfig.h:
6376 Use prototypes if the compiler understands them.
6377
6378 1998-12-29 Jesse Thilo <jthilo@gnu.org>
6379
6380 * src/version.c:
6381 Use VERSION symbol from automake for version number.
6382
6383 1998-12-29 Jesse Thilo <jthilo@gnu.org>
6384
6385 * acconfig.h, configure.in, version.cin:
6386 Use VERSION symbol from automake for version number.
6387
6388 1998-11-28 Jesse Thilo <jthilo@gnu.org>
6389
6390 * Makefile.am:
6391 Distribute original version of simple parser (bison.s1), not built
6392 version (bison.simple).
6393
6394 1998-11-28 Jesse Thilo <jthilo@gnu.org>
6395
6396 * doc/bison.texinfo: Add info dir entry.
6397
6398 * doc/bison.texinfo:
6399 Let automake put version number into documentation.
6400
6401 1998-11-26 Jesse Thilo <jthilo@gnu.org>
6402
6403 * src/bison.cld, src/build.com, src/vmshlp.mar:
6404 Add non-RCS files from /gd/gnu/bison.
6405
6406 1998-11-26 Jesse Thilo <jthilo@gnu.org>
6407
6408 * doc/bison.1:
6409 Document the BISON_HAIRY and BISON_SIMPLE variables.
6410
6411 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6412
6413 * src/version.c: Build version.c automatically.
6414
6415 * src/reader.c:
6416 Fix token numbering (used to start at 258, not 257).
6417
6418 * src/system.h: Include config.h.
6419
6420 * src/getargs.c: Update bug report address.
6421
6422 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
6423 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
6424
6425 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6426
6427 * Makefile.am:
6428 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
6429
6430 * configure.in, version.cin:
6431 Build version.c automatically.
6432
6433 * AUTHORS: Add AUTHORS file.
6434
6435 * README: Update bug report address.
6436
6437 * bison.simple:
6438 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
6439
6440 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
6441 Add automake stuff.
6442
6443 1998-11-25 Jesse Thilo <jthilo@gnu.org>
6444
6445 * doc/bison.texinfo: Clean up some formatting.
6446
6447 1998-05-05 Richard Stallman <rms@gnu.org>
6448
6449 * doc/bison.texinfo:
6450 Explain better why to make a pure parser.
6451
6452 1998-01-05 Richard Stallman <rms@gnu.org>
6453
6454 * src/files.c (openfiles):
6455 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
6456 find a temporary directory, if possible. Do not unlink files while
6457 they are open.
6458
6459 1997-08-25 Richard Stallman <rms@gnu.org>
6460
6461 * src/reader.c (stack_offset;):
6462 Change some warni to warns.
6463
6464 * src/lex.c (literalchar): Use warns, not warni.
6465
6466 1997-06-28 Richard Stallman <rms@gnu.org>
6467
6468 * src/bison.s1: Add a Bison version comment.
6469
6470 * src/main.c (fatal, warn, berror):
6471 Use program_name.
6472
6473 1997-06-28 Richard Stallman <rms@gnu.org>
6474
6475 * Makefile.in (bison_version): New variable.
6476 (dist): Use that variable.
6477 (bison.s1): Substitute the Bison version into bison.simple.
6478
6479 * bison.simple: Add a Bison version comment.
6480
6481 1997-06-18 Richard Stallman <rms@gnu.org>
6482
6483 * src/main.c (fatal, warn, berror):
6484 Make error messages standard.
6485 (toomany): Improve error message text.
6486
6487 * src/LR0.c, src/closure.c, src/conflicts.c, src/derives.c, src/files.c, src/lalr.c, src/lex.c, src/nullable.c, src/output.c, src/print.c, src/reader.c, src/reduce.c, src/symtab.c:
6488 new.h renamed to alloc.h.
6489
6490 1997-06-18 Richard Stallman <rms@gnu.org>
6491
6492 * Makefile.in: new.h renamed to alloc.h.
6493
6494 1997-05-24 Richard Stallman <rms@gnu.org>
6495
6496 * src/lex.c (literalchar):
6497 Fix the code for escaping \, " and '.
6498
6499 (lex): Avoid trouble when there are many chars
6500 to discard in a char literal with just several chars in it.
6501
6502 1997-05-17 Richard Stallman <rms@gnu.org>
6503
6504 * src/bison.s1:
6505 Use malloc, if using alloca is troublesome.
6506 (YYSTACK_USE_ALLOCA): New flag macro.
6507 Define it for some systems and compilers.
6508 (YYSTACK_ALLOC): New macro.
6509 (yyparse): Use YYSTACK_ALLOC to allocate stack.
6510 If it was malloc'd, free it.
6511
6512 1997-05-17 Richard Stallman <rms@gnu.org>
6513
6514 * bison.simple:
6515 Use malloc, if using alloca is troublesome.
6516 (YYSTACK_USE_ALLOCA): New flag macro.
6517 Define it for some systems and compilers.
6518 (YYSTACK_ALLOC): New macro.
6519 (yyparse): Use YYSTACK_ALLOC to allocate stack.
6520 If it was malloc'd, free it.
6521
6522 1997-04-23 Richard Stallman <rms@gnu.org>
6523
6524 * src/bison.s1:
6525 (alloca) [__hpux]: Always define as __builtin_alloca.
6526
6527 1997-04-23 Richard Stallman <rms@gnu.org>
6528
6529 * bison.simple:
6530 (alloca) [__hpux]: Always define as __builtin_alloca.
6531
6532 1997-04-22 Richard Stallman <rms@gnu.org>
6533
6534 * src/bison.s1:
6535 [__hpux]: Include alloca.h (right for HPUX 10)
6536 instead of declaring alloca (right for HPUX 9).
6537
6538 * src/bison.s1 (__yy_memcpy):
6539 Declare arg `count' as unsigned int.
6540 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
6541
6542 1997-04-22 Richard Stallman <rms@gnu.org>
6543
6544 * bison.simple:
6545 [__hpux]: Include alloca.h (right for HPUX 10)
6546 instead of declaring alloca (right for HPUX 9).
6547
6548 * bison.simple (__yy_memcpy):
6549 Declare arg `count' as unsigned int.
6550 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
6551
6552 1997-01-03 Richard Stallman <rms@gnu.org>
6553
6554 * src/allocate.c: [__STDC__ or _MSC_VER]:
6555 Declare calloc and realloc to return void *.
6556
6557 1997-01-02 Richard Stallman <rms@gnu.org>
6558
6559 * src/system.h:
6560 [_MSC_VER]: Include stdlib.h and process.h.
6561 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
6562
6563 * src/main.c (main): Return FAILURE as a value.
6564 (printable_version): Declare arg as int, not char.
6565
6566 1997-01-02 Richard Stallman <rms@gnu.org>
6567
6568 * Makefile.in (dist):
6569 Explicitly check for symlinks, and copy them.
6570
6571 1996-12-19 Richard Stallman <rms@gnu.org>
6572
6573 * src/files.c:
6574 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
6575
6576 1996-12-18 Paul Eggert <eggert@gnu.org>
6577
6578 * src/bison.s1 (yyparse):
6579 If __GNUC__ and YYPARSE_PARAM are both defined,
6580 declare yyparse to have a void * argument.
6581
6582 1996-12-18 Paul Eggert <eggert@gnu.org>
6583
6584 * bison.simple (yyparse):
6585 If __GNUC__ and YYPARSE_PARAM are both defined,
6586 declare yyparse to have a void * argument.
6587
6588 1996-12-17 Richard Stallman <rms@gnu.org>
6589
6590 * src/reduce.c (nbits): Add some casts.
6591
6592 1996-08-12 Richard Stallman <rms@gnu.org>
6593
6594 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
6595
6596 1996-08-12 Richard Stallman <rms@gnu.org>
6597
6598 * bison.simple: Test _MSDOS as well as _MSDOS_.
6599
6600 1996-07-31 Richard Stallman <rms@gnu.org>
6601
6602 * src/bison.s1:
6603 [__sun && __i386]: Include alloca.h.
6604
6605 1996-07-31 Richard Stallman <rms@gnu.org>
6606
6607 * bison.simple:
6608 [__sun && __i386]: Include alloca.h.
6609
6610 1996-07-30 Richard Stallman <rms@gnu.org>
6611
6612 * src/bison.s1: Comment change.
6613
6614 * src/bison.s1: Test _MSDOS_, not MSDOS.
6615
6616 1996-07-30 Richard Stallman <rms@gnu.org>
6617
6618 * bison.simple: Comment change.
6619
6620 * bison.simple: Test _MSDOS_, not MSDOS.
6621
6622 1996-06-01 Richard Stallman <rms@gnu.org>
6623
6624 * src/reduce.c, src/reader.c, src/print.c, src/output.c, src/nullable.c, src/lex.c, src/lalr.c, src/getargs.c, src/derives.c, src/conflicts.c, src/closure.c, src/allocate.c:
6625 Insert `_' macro around many string constants.
6626
6627 * src/main.c:
6628 Insert `_' macro around many string constants.
6629
6630 (main): Call setlocale, bindtextdomain and textdomain.
6631
6632 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
6633 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
6634 [ENABLE_NLS]: Include libintl.h.
6635 [ENABLE_NLS] (gettext): Define.
6636 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
6637 (N_, PACKAGE, LOCALEDIR): New macros.
6638
6639 1996-06-01 Richard Stallman <rms@gnu.org>
6640
6641 * POTFILES.in: New file.
6642
6643 * Makefile.in (allocate.o):
6644 Define target explicitly.
6645
6646 * Makefile.in (CFLAGS): Set to @CFLAGS@.
6647 (LDFLAGS): Set to @LDFLAGS@.
6648 (configure): Run autoconf only if preceding `cd' succeeds.
6649 (bison.s1): Redirect output to temporary file then move the
6650 temporary to the target, rather than redirecting directly to bison.s1.
6651 (clean): Remove config.status and config.log.
6652 (distclean): Don't remove config.status here.
6653
6654 1996-05-12 Richard Stallman <rms@gnu.org>
6655
6656 * src/bison.s1:
6657 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6658
6659 1996-05-12 Richard Stallman <rms@gnu.org>
6660
6661 * bison.simple:
6662 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
6663
6664 1996-05-11 Richard Stallman <rms@gnu.org>
6665
6666 * src/bison.s1 (__yy_memcpy):
6667 Really reorder the args, as was supposedly done on Feb 14 1995.
6668 (yyparse): Calls changed accordingly.
6669
6670 1996-05-11 Richard Stallman <rms@gnu.org>
6671
6672 * Makefile.in (dist): Don't use $(srcdir).
6673
6674 * bison.simple (__yy_memcpy):
6675 Really reorder the args, as was supposedly done on Feb 14 1995.
6676 (yyparse): Calls changed accordingly.
6677
6678 1996-01-27 Richard Stallman <rms@gnu.org>
6679
6680 * src/output.c (output_rule_data):
6681 Test YYERROR_VERBOSE in the conditional
6682 around the definition of ttyname.
6683
6684 1995-12-29 Richard Stallman <rms@gnu.org>
6685
6686 * src/bison.s1:
6687 Fix line numbers in #line commands.
6688
6689 1995-12-29 Richard Stallman <rms@gnu.org>
6690
6691 * bison.simple:
6692 Fix line numbers in #line commands.
6693
6694 1995-12-27 Richard Stallman <rms@gnu.org>
6695
6696 * src/bison.s1 (YYPARSE_PARAM_DECL):
6697 In C++, make it always null.
6698 (YYPARSE_PARAM_ARG): New macro.
6699 (yyparse): Use YYPARSE_PARAM_ARG.
6700
6701 1995-12-27 Richard Stallman <rms@gnu.org>
6702
6703 * bison.simple (YYPARSE_PARAM_DECL):
6704 In C++, make it always null.
6705 (YYPARSE_PARAM_ARG): New macro.
6706 (yyparse): Use YYPARSE_PARAM_ARG.
6707
6708 1995-11-29 Richard Stallman <rms@gnu.org>
6709
6710 * doc/bison.texinfo:
6711 Describe literal string tokens, %raw, %no_lines, %token_table.
6712
6713 1995-11-29 Daniel Hagerty <hag@gnu.org>
6714
6715 * doc/bison.texinfo: Fixed update date
6716
6717 1995-10-16 Richard Stallman <rms@gnu.org>
6718
6719 * src/version.c: Version 1.25.
6720
6721 1995-10-16 Richard Stallman <rms@gnu.org>
6722
6723 * NEWS: *** empty log message ***
6724
6725 1995-10-16 Richard Stallman <rms@gnu.org>
6726
6727 * doc/bison.1, doc/bison.rnh:
6728 Add new options.
6729
6730 1995-10-15 Richard Stallman <rms@gnu.org>
6731
6732 * src/vmsgetargs.c, src/getargs.c:
6733 Added -n, -k, and -raw switches.
6734 (noparserflag, toknumflag, rawtoknumflag): New variables.
6735
6736 * src/symtab.h (SALIAS):
6737 New #define for adding aliases to %token.
6738 (struct bucket): Added `alias' field.
6739
6740 * src/reduce.c (reduce_grammar):
6741 Revise error message.
6742 (print_notices): Remove final `.' from error message.
6743
6744 * src/reader.c (reader_output_yylsp):
6745 New function.
6746 (readgram): Use `#if 0' around code that accepted %command
6747 inside grammar rules: The documentation doesn't allow it,
6748 and it will fail since the %command processors scan for the next %.
6749 (parse_token_decl): Extended the %token
6750 declaration to allow a multi-character symbol as an alias.
6751 (parse_thong_decl): New function.
6752 (read_declarations): Added %thong declarations.
6753 (read_declarations): Handle NOOP to deal with allowing
6754 % declarations as another means to specify the flags.
6755 (readgram): Allow %prec prior to semantics embedded in a rule.
6756 (skip_to_char, read_declarations, copy_definition)
6757 (parse_token_decl, parse_start_decl, parse_type_decl)
6758 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
6759 (get_type_name, copy_guard, copy_action, readgram)
6760 (get_type, packsymbols): Revised most error messages.
6761 Changed `fatal' to `warnxxx' to avoid aborting for error.
6762 Revised and use multiple warnxxx functions to avoid using VARARGS1.
6763 (read_declarations): Improve the error message for
6764 an invalid character. Do not abort.
6765 (read_declarations, copy_guard, copy_action): Use
6766 printable_version to avoid unprintable characters in printed output.
6767 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
6768 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
6769 Allow the type of a non-terminal can be given
6770 more than once, as long as all specifications give the same type.
6771
6772 * src/output.c:
6773 (output_headers, output_trailers, output, output_gram)
6774 (output_rule_data): Implement noparserflag variable.
6775 Implement toknumflag variable.
6776 (output): Call reader_output_yylsp to output LTYPESTR.
6777
6778 * src/main.c (main):
6779 If reader sees an error, don't process the grammar.
6780 (fatals): Updated to not use VARARGS1.
6781 (printable_version, int_to_string, warn, warni, warns, warnss)
6782 (warnsss): New error reporting functions. Avoid abort for error.
6783
6784 * src/lex.h:
6785 Added THONG and NOOP for alias processing.
6786 Added SETOPT for the new code that allows setting options with %flags.
6787
6788 * src/lex.c:
6789 Include getopt.h. Add some extern decls.
6790 (safegetc): New function to deal with EOF gracefully.
6791 (literalchar); new function to deal with reading \ escapes.
6792 (lex): Use literalchar.
6793 (lex): Implemented "..." tokens.
6794 (literalchar, lex, parse_percent_token): Made tokenbuffer
6795 always contain the token. This includes growing the token
6796 buffer while reading an integer.
6797 (parse_percent_token): Replaced if-else statement with percent_table.
6798 (parse_percent_token): Added % declarations as another
6799 way to specify the flags -n, -l, and -r. Also added hooks for
6800 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
6801 major changes to files.c.
6802 (lex) Retain in the incoming stream a character following
6803 an incorrect '/'.
6804 (skip_white_space, lex): Revised most error messages
6805 and changed fatal to warn to avoid aborting.
6806 (percent_table): Added %thong declarations.
6807
6808 * src/gram.h: Comment changes.
6809
6810 * src/files.c (openfiles, open_extra_files, done):
6811 Add faction flag
6812 and actfile file. Handle noparserflag. Both for -n switch.
6813
6814 * src/conflicts.c (resolve_sr_conflict):
6815 Remove use of alloca.
6816
6817 1995-06-01 Jim Meyering <meyering@gnu.org>
6818
6819 * doc/bison.texinfo: *** empty log message ***
6820
6821 1995-05-06 Richard Stallman <rms@gnu.org>
6822
6823 * src/bison.s1: Comment change.
6824
6825 1995-05-06 Richard Stallman <rms@gnu.org>
6826
6827 * bison.simple: Comment change.
6828
6829 1995-05-03 Richard Stallman <rms@gnu.org>
6830
6831 * src/version.c: Version now 1.24.
6832
6833 * src/bison.s1: Change distribution terms.
6834
6835 * src/version.c: Version now 1.23.
6836
6837 1995-05-03 Richard Stallman <rms@gnu.org>
6838
6839 * doc/bison.texinfo:
6840 Rewrite "Conditions for Using Bison".
6841 Update version to 1.24.
6842
6843 1995-05-03 Richard Stallman <rms@gnu.org>
6844
6845 * bison.simple: Change distribution terms.
6846
6847 1995-02-23 Richard Stallman <rms@gnu.org>
6848
6849 * src/files.c: Test __VMS_POSIX as well as VMS.
6850
6851 1995-02-14 Jim Meyering <meyering@gnu.org>
6852
6853 * src/bison.s1 (__yy_memcpy):
6854 Renamed from __yy_bcopy to avoid
6855 confusion. Reverse FROM and TO arguments to be consistent with
6856 those of memcpy.
6857
6858 1995-02-14 Jim Meyering <meyering@gnu.org>
6859
6860 * bison.simple (__yy_memcpy):
6861 Renamed from __yy_bcopy to avoid
6862 confusion. Reverse FROM and TO arguments to be consistent with
6863 those of memcpy.
6864
6865 1994-11-10 David J. MacKenzie <djm@gnu.org>
6866
6867 * NEWS: reformat
6868
6869 * NEWS: New file.
6870
6871 * Makefile.in (DISTFILES): Include NEWS.
6872
6873 * Makefile.in (DISTFILES):
6874 Include install-sh, not install.sh.
6875
6876 * configure.in: Update to Autoconf v2 macro names.
6877
6878 1994-10-05 David J. MacKenzie <djm@gnu.org>
6879
6880 * Makefile.in: fix typo
6881
6882 * Makefile.in (prefix, exec_prefix):
6883 Let configure set them.
6884
6885 1994-09-28 David J. MacKenzie <djm@gnu.org>
6886
6887 * Makefile.in: Set datadir to $(prefix)/share.
6888
6889 1994-09-15 Richard Stallman <rms@gnu.org>
6890
6891 * src/bison.s1:
6892 Update copyright notice and GPL version.
6893
6894 1994-09-15 Richard Stallman <rms@gnu.org>
6895
6896 * bison.simple:
6897 Update copyright notice and GPL version.
6898
6899 1994-07-12 Richard Stallman <rms@gnu.org>
6900
6901 * src/reduce.c, src/reader.c:
6902 entered into RCS
6903
6904 1994-05-05 David J. MacKenzie <djm@gnu.org>
6905
6906 * Makefile.in: entered into RCS
6907
6908 1994-03-26 Richard Stallman <rms@gnu.org>
6909
6910 * src/bison.s1: entered into RCS
6911
6912 1994-03-26 Richard Stallman <rms@gnu.org>
6913
6914 * bison.simple: entered into RCS
6915
6916 1994-03-25 Richard Stallman <rms@gnu.org>
6917
6918 * src/main.c: entered into RCS
6919
6920 1994-03-24 Richard Stallman <rms@gnu.org>
6921
6922 * src/conflicts.c: entered into RCS
6923
6924 1994-01-02 Richard Stallman <rms@gnu.org>
6925
6926 * Makefile.in: *** empty log message ***
6927
6928 1993-11-21 Richard Stallman <rms@gnu.org>
6929
6930 * src/bison.s1: *** empty log message ***
6931
6932 1993-11-21 Richard Stallman <rms@gnu.org>
6933
6934 * doc/bison.texinfo: entered into RCS
6935
6936 * doc/bison.texinfo: *** empty log message ***
6937
6938 1993-11-21 Richard Stallman <rms@gnu.org>
6939
6940 * bison.simple: *** empty log message ***
6941
6942 1993-10-25 David J. MacKenzie <djm@gnu.org>
6943
6944 * doc/bison.texinfo: *** empty log message ***
6945
6946 1993-10-19 Richard Stallman <rms@gnu.org>
6947
6948 * src/bison.s1: *** empty log message ***
6949
6950 1993-10-19 Richard Stallman <rms@gnu.org>
6951
6952 * bison.simple: *** empty log message ***
6953
6954 1993-10-14 Richard Stallman <rms@gnu.org>
6955
6956 * src/bison.s1: *** empty log message ***
6957
6958 1993-10-14 Richard Stallman <rms@gnu.org>
6959
6960 * bison.simple: *** empty log message ***
6961
6962 1993-09-14 David J. MacKenzie <djm@gnu.org>
6963
6964 * doc/bison.texinfo: *** empty log message ***
6965
6966 1993-09-13 Noah Friedman <friedman@gnu.org>
6967
6968 * Makefile.in: *** empty log message ***
6969
6970 1993-09-10 Richard Stallman <rms@gnu.org>
6971
6972 * src/conflicts.c: *** empty log message ***
6973
6974 * src/system.h: entered into RCS
6975
6976 1993-09-10 Richard Stallman <rms@gnu.org>
6977
6978 * doc/bison.1: entered into RCS
6979
6980 1993-09-06 Noah Friedman <friedman@gnu.org>
6981
6982 * src/version.c: entered into RCS
6983
6984 1993-09-06 Noah Friedman <friedman@gnu.org>
6985
6986 * Makefile.in: *** empty log message ***
6987
6988 1993-07-30 David J. MacKenzie <djm@gnu.org>
6989
6990 * Makefile.in: *** empty log message ***
6991
6992 1993-07-24 Richard Stallman <rms@gnu.org>
6993
6994 * src/bison.s1: *** empty log message ***
6995
6996 1993-07-24 Richard Stallman <rms@gnu.org>
6997
6998 * bison.simple: *** empty log message ***
6999
7000 1993-07-08 David J. MacKenzie <djm@gnu.org>
7001
7002 * Makefile.in: *** empty log message ***
7003
7004 1993-07-04 Richard Stallman <rms@gnu.org>
7005
7006 * src/bison.s1: *** empty log message ***
7007
7008 1993-07-04 Richard Stallman <rms@gnu.org>
7009
7010 * bison.simple: *** empty log message ***
7011
7012 1993-06-26 David J. MacKenzie <djm@gnu.org>
7013
7014 * src/getargs.c: entered into RCS
7015
7016 1993-06-26 David J. MacKenzie <djm@gnu.org>
7017
7018 * doc/bison.texinfo: *** empty log message ***
7019
7020 * doc/bison.1: New file.
7021
7022 1993-06-25 Richard Stallman <rms@gnu.org>
7023
7024 * src/getargs.c: New file.
7025
7026 1993-06-16 Richard Stallman <rms@gnu.org>
7027
7028 * src/bison.s1: *** empty log message ***
7029
7030 1993-06-16 Richard Stallman <rms@gnu.org>
7031
7032 * bison.simple: *** empty log message ***
7033
7034 1993-06-03 Richard Stallman <rms@gnu.org>
7035
7036 * src/bison.s1: New file.
7037
7038 1993-06-03 Richard Stallman <rms@gnu.org>
7039
7040 * doc/bison.texinfo: *** empty log message ***
7041
7042 1993-06-03 Richard Stallman <rms@gnu.org>
7043
7044 * bison.simple: New file.
7045
7046 1993-05-19 Richard Stallman <rms@gnu.org>
7047
7048 * doc/bison.texinfo: New file.
7049
7050 1993-05-07 Noah Friedman <friedman@gnu.org>
7051
7052 * Makefile.in: *** empty log message ***
7053
7054 1993-04-28 Noah Friedman <friedman@gnu.org>
7055
7056 * src/reader.c: *** empty log message ***
7057
7058 1993-04-23 Noah Friedman <friedman@gnu.org>
7059
7060 * src/alloc.h: entered into RCS
7061
7062 1993-04-20 David J. MacKenzie <djm@gnu.org>
7063
7064 * src/version.c: *** empty log message ***
7065
7066 * src/files.c, src/allocate.c:
7067 entered into RCS
7068
7069 * src/reader.c: *** empty log message ***
7070
7071 * src/lex.c: entered into RCS
7072
7073 * src/conflicts.c: New file.
7074
7075 * src/symtab.c: entered into RCS
7076
7077 * src/alloc.h: New file.
7078
7079 * src/LR0.c: entered into RCS
7080
7081 1993-04-18 Noah Friedman <friedman@gnu.org>
7082
7083 * src/reader.c: New file.
7084
7085 * src/version.c: *** empty log message ***
7086
7087 1993-04-18 Noah Friedman <friedman@gnu.org>
7088
7089 * Makefile.in: *** empty log message ***
7090
7091 1993-04-17 Noah Friedman <friedman@gnu.org>
7092
7093 * Makefile.in: *** empty log message ***
7094
7095 1993-04-15 Richard Stallman <rms@gnu.org>
7096
7097 * src/main.c, src/files.c:
7098 New file.
7099
7100 1993-04-15 Noah Friedman <friedman@gnu.org>
7101
7102 * configure.in: entered into RCS
7103
7104 * configure.in: *** empty log message ***
7105
7106 * configure.in: New file.
7107
7108 1993-04-14 Richard Stallman <rms@gnu.org>
7109
7110 * Makefile.in: New file.
7111
7112 1993-04-13 Richard Stallman <rms@gnu.org>
7113
7114 * src/version.c: New file.
7115
7116 1993-03-25 Richard Stallman <rms@gnu.org>
7117
7118 * src/output.c: entered into RCS
7119
7120 1992-09-25 Richard Stallman <rms@gnu.org>
7121
7122 * configure.bat: entered into RCS
7123
7124 1992-06-22 Richard Stallman <rms@gnu.org>
7125
7126 * src/vmsgetargs.c: entered into RCS
7127
7128 1992-06-22 Richard Stallman <rms@gnu.org>
7129
7130 * doc/bison.rnh: entered into RCS
7131
7132 1992-04-20 David J. MacKenzie <djm@gnu.org>
7133
7134 * README: entered into RCS
7135
7136 1992-01-22 Richard Stallman <rms@gnu.org>
7137
7138 * src/machine.h: entered into RCS
7139
7140 1991-12-21 Richard Stallman <rms@gnu.org>
7141
7142 * src/lalr.c, src/closure.c:
7143 entered into RCS
7144
7145 1991-12-20 Richard Stallman <rms@gnu.org>
7146
7147 * src/state.h: entered into RCS
7148
7149 1991-12-18 Richard Stallman <rms@gnu.org>
7150
7151 * src/print.c, src/nullable.c, src/derives.c:
7152 entered into RCS
7153
7154 1991-11-03 David J. MacKenzie <djm@gnu.org>
7155
7156 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
7157 entered into RCS
7158
7159 1988-09-09 Richard Stallman <rms@gnu.org>
7160
7161 * src/bison.hairy: entered into RCS
7162
7163 1987-12-16 Richard Stallman <rms@gnu.org>
7164
7165 * REFERENCES: entered into RCS
7166 -----
7167
7168 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
7169
7170 This file is part of GNU Autoconf.
7171
7172 GNU Autoconf is free software; you can redistribute it and/or modify
7173 it under the terms of the GNU General Public License as published by
7174 the Free Software Foundation; either version 2, or (at your option)
7175 any later version.
7176
7177 GNU Autoconf is distributed in the hope that it will be useful,
7178 but WITHOUT ANY WARRANTY; without even the implied warranty of
7179 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7180 GNU General Public License for more details.
7181
7182 You should have received a copy of the GNU General Public License
7183 along with autoconf; see the file COPYING. If not, write to
7184 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
7185 Boston, MA 02111-1307, USA.