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