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