]> git.saurik.com Git - bison.git/blob - ChangeLog
* tests/sets.at (AT_EXTRACT_SETS): New.
[bison.git] / ChangeLog
1 2002-01-27 Akim Demaille <akim@epita.fr>
2
3 * tests/sets.at (AT_EXTRACT_SETS): New.
4 (Nullable): Use it.
5 (Firsts): New.
6
7 2002-01-26 Akim Demaille <akim@epita.fr>
8
9 * tests/actions.at, tests/calc.at, tests/headers.at,
10 * tests/torture.at: Adjust to the newest Autotest which no longer
11 forces `.' in the PATH.
12
13 2002-01-25 Akim Demaille <akim@epita.fr>
14
15 * tests/regression.at (%nonassoc and eof): New.
16 Suggested by Robert Anisko.
17
18 2002-01-24 Akim Demaille <akim@epita.fr>
19
20 Bison dumps core when trying to complain about broken input files.
21 Reported by Cris van Pelt.
22
23 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
24 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
25 into...
26 (Invalid inputs): Strengthen: exercise parse_percent_token.
27
28 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
29
30 * src/Makefile.am: Add bison.c++.
31 * src/bison.c++: New skeleton.
32
33 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
34
35 * po/it.po: New.
36
37 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
38
39 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
40
41 2002-01-20 Marc Autret <marc@gnu.org>
42
43 * src/files.c (compute_output_file_names): Fix
44
45 2002-01-20 Marc Autret <marc@gnu.org>
46
47 * tests/output.at: New test.
48 * src/files.c (compute_base_names): Don't map extensions when
49 the YACC flag is set, use defaults.
50 Reported by Evgeny Stambulchik.
51
52 2002-01-20 Marc Autret <marc@gnu.org>
53
54 * src/system.h: Need to define __attribute__ away for non-GCC
55 compilers as well (i.e. the vendor C compiler).
56 Suggested by Albert Chin-A-Young.
57
58 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
59
60 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
61 canonical definition.
62 * src/system.h: Use the canonical definition for PARAMS (avoids
63 a conflict with the macro from lib/hash.h).
64
65 2002-01-11 Akim Demaille <akim@epita.fr>
66
67 * configure.in: Use AC_FUNC_STRNLEN.
68 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
69
70 2002-01-09 Akim Demaille <akim@epita.fr>
71
72 * src/files.c, src/files.h (output_infix): New.
73 (tab_extension): Remove.
74 (compute_base_names): Compute the former, drop the latter.
75 * src/output.c (prepare): Insert the muscles `output-infix', and
76 `output-suffix'.
77 * src/parse-skel.y (string, string.1): New.
78 (section.header): Use it.
79 (section.yacc): Remove.
80 (prefix): Remove too.
81 * src/scan-skel.l: Adjust.
82 * src/bison.simple, src/bison.hairy: Adjust.
83
84 2002-01-09 Akim Demaille <akim@epita.fr>
85
86 * configure.in (WERROR_CFLAGS): Compute it.
87 * src/Makefile.am (CFLAGS): Pass it.
88 * tests/atlocal.in (CFLAGS): Idem.
89 * src/files.c: Fix a few warnings.
90 (get_extension_index): Remove, unused.
91
92 2002-01-08 Akim Demaille <akim@epita.fr>
93
94 * src/getargs.c (AS_FILE_NAME): New.
95 (getargs): Use it to convert DOSish file names.
96 * src/files.c (base_name): Rename as full_base_name to avoid
97 clashes with `base_name ()'.
98 (filename_split): New.
99 (compute_base_names): N-th rewrite, using filename_split.
100
101 2002-01-08 Akim Demaille <akim@epita.fr>
102
103 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
104 New, stolen from the Fileutils 4.1.
105 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
106 * configure.in: Check for the presence of memrchr, and of its
107 prototype.
108
109 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
110
111 * lib/hash.h (__P): Added definition for this macro.
112 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
113 BUILT_SOURCES, to ensure they are generated first.
114 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
115 %error-verbose to allow bootstrapping with bison 1.30x.
116
117 2002-01-06 Akim Demaille <akim@epita.fr>
118
119 * src/reader.c (parse_braces): Don't fetch the next char, the
120 convention is to fetch on entry.
121 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
122 'switch' without a following semicolon.
123 * tests/regression.at (braces parsing): New.
124
125 2002-01-06 Akim Demaille <akim@epita.fr>
126
127 Bison is dead wrong in its RR conflict reports.
128
129 * tests/torture.at (GNU Cim Grammar): New.
130 * src/conflicts.c (count_rr_conflicts): Fix.
131
132 2002-01-06 Akim Demaille <akim@epita.fr>
133
134 Creating package.m4 from configure.ac causes too many problems.
135
136 * tests/Makefile.am (package.m4): Create it by hand,
137 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
138
139 2002-01-06 Akim Demaille <akim@epita.fr>
140
141 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
142 skeleton.h.
143
144 2002-01-04 Paul Eggert <eggert@twinsun.com>
145
146 * doc/bison.texinfo (Debugging):
147 Remove YYSTDERR; it's no longer defined or used.
148 Also, s/cstdio.h/cstdio/.
149
150 2002-01-03 Akim Demaille <akim@epita.fr>
151
152 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
153
154 2002-01-03 Akim Demaille <akim@epita.fr>
155
156 * src/parse-skel.y (process_skeleton): Don't bind the parser's
157 tracing code to --trace, wait for a better --trace option, with
158 args.
159
160 2002-01-03 Akim Demaille <akim@epita.fr>
161
162 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
163 The ISO C++ standard is extremely clear about it: stderr is
164 considered a macro, not a regular symbol (see table 94 `Header
165 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
166 Therefore std:: does not apply to it. It still does with fprintf.
167 Also, s/cstdio.h/cstdio/.
168
169 2002-01-03 Akim Demaille <akim@epita.fr>
170
171 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
172 for non system headers.
173
174 2002-01-02 Akim Demaille <akim@epita.fr>
175
176 Equip the skeleton chain with location tracking, runtime trace,
177 pure parser and scanner.
178
179 * src/parse-skel.y: Request a pure parser, locations, and prefix
180 renaming.
181 (%union): Having several members with the same type does not help
182 type mismatches, simplify.
183 (YYPRINT, yyprint): New.
184 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
185 (skel_error): this.
186 Handle locations.
187 * src/scan-skel.l: Adjust to these changes.
188 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
189 (LOCATION_PRINT, skel_control_t): New.
190
191 2001-12-30 Akim Demaille <akim@epita.fr>
192
193 * src/parse-skel.y: Get rid of the shift/reduce conflict:
194 replace `gb' with BLANKS.
195 * src/scan-skel.l: Adjust.
196
197 2001-12-30 Akim Demaille <akim@epita.fr>
198
199 * src/system.h: We don't need nor want bcopy.
200 Throw away MS-DOS crap: we don't need getpid.
201 * configure.in: We don't need strndup. It was even causing
202 problems: because Flex includes the headers *before* us,
203 _GNU_SOURCE is not defined by config.h, and therefore strndup was
204 not visible.
205 * lib/xstrndup.c: New.
206 * src/scan-skel.l: Use it.
207 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
208 * src/parse-skel.y: Use %directives instead of #defines.
209
210 2001-12-30 Akim Demaille <akim@epita.fr>
211
212 * src/skeleton.h: New.
213 * src/output.c (output_parser, output_master_parser): Remove, dead
214 code.
215 * src/output.h (get_lines_number, actions_output, guards_output)
216 (token_definitions_output): Prototype them.
217 * src/parse-skel.y: Add the license notice.
218 Include output.h and skeleton.h.
219 (process_skeleton): Returns void, and takes a single parameter.
220 * src/scan-skel.l: Add the license notice.
221 Include skeleton.h.
222 Don't use %option yylineno: it seems that then Flex imagines
223 REJECT has been used, and therefore it won't reallocate its
224 buffers (which makes no other sense to me than a bug). It results
225 in warnings for `unused: yy_flex_realloc'.
226
227 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
228
229 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
230 (MUSCLE_INSERT_PREFIX): ...to there.
231 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
232 (MUSCLE_INSERT_PREFIX): Move from here...
233
234 * src/bison.hairy: Add a section directive. Put braces around muscle
235 names. This parser skeleton is still broken, but Bison should not
236 choke on a bad muscle 'syntax'.
237 * src/bison.simple: Add a section directive. Put braces around muscle
238 names.
239
240 * src/files.h (strsuffix, stringappend): Add declarations.
241 (tab_extension): Add declaration.
242 (short_base_name): Add declaration.
243
244 * src/files.c (strsuffix, stringappend): No longer static. These
245 functions are used in the skeleton parser.
246 (tab_extension): New.
247 (compute_base_names): Use the computations done in this function
248 to guess if the generated parsers should have '.tab' in their
249 names.
250 (short_base_name): No longer static.
251
252 * src/output.c (output_skeleton): New.
253 (output): Disable call to output_master_parser, and give a try to
254 a new skeleton handling system.
255 (guards_output, actions_output): No longer static.
256 (token_definitions_output, get_lines_number): No longer static.
257
258 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
259
260 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
261 parse-skel.y.
262
263 * src/parse-skel.y: New file.
264 * src/scan-skel.l: New file.
265
266 2001-12-29 Akim Demaille <akim@epita.fr>
267
268 %name-prefix is broken.
269
270 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
271 Adjust all dependencies.
272 * tests/headers.at (export YYLTYPE): Strengthen this test: use
273 %name-prefix.
274
275 Renaming yylval but not yylloc is not consistent. Now we do.
276
277 * src/bison.simple: Prefix yylloc if used.
278 * doc/bison.texinfo (Decl Summary): Document that.
279
280 2001-12-29 Akim Demaille <akim@epita.fr>
281
282 * doc/bison.texinfo: Promote `%long-directive' over
283 `%long_directive'.
284 Remove all references to fixed-output-files, yacc is enough.
285
286 2001-12-29 Akim Demaille <akim@epita.fr>
287
288 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
289 user prologue. These are defaults.
290 * tests/actions.at (Mid-rule actions): Make sure the user can
291 define YYDEBUG and YYERROR_VERBOSE.
292
293 2001-12-29 Akim Demaille <akim@epita.fr>
294
295 * src/output.c (header_output): Don't forget to export YYLTYPE and
296 yylloc.
297 * tests/headers.at (export YYLTYPE): New, make sure it does.
298 * tests/regression.at (%union and --defines, Invalid CPP headers):
299 Move to...
300 * tests/headers.at: here.
301
302 2001-12-29 Akim Demaille <akim@epita.fr>
303
304 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
305
306 2001-12-29 Akim Demaille <akim@epita.fr>
307
308 * tests/actions.at (Mid-rule actions): Output on a single line
309 instead of several.
310
311 2001-12-29 Akim Demaille <akim@epita.fr>
312
313 * doc/bison.texinfo: Formatting changes.
314
315 2001-12-29 Akim Demaille <akim@epita.fr>
316
317 Don't store the token defs in a muscle, just be ready to output it
318 on command. Now possible via `symbols'. Fixes a memory leak.
319
320 * src/output.c (token_definitions_output): New.
321 (output_parser, header_output): Use it.
322 * src/reader.c (symbols_save): Remove.
323
324 2001-12-29 Akim Demaille <akim@epita.fr>
325
326 * src/bison.simple: Do not provide a default for YYSTYPE and
327 YYLTYPE before the user's prologue. Otherwise it's hardly... a
328 default.
329
330 2001-12-29 Akim Demaille <akim@epita.fr>
331
332 Mid-rule actions are simply... ignored!
333
334 * src/reader.c (readgram): Be sure to attach mid-rule actions to
335 the empty-rule associated to the dummy symbol, not to the host
336 rule.
337 * tests/actions.at (Mid-rule actions): New.
338
339 2001-12-29 Akim Demaille <akim@epita.fr>
340
341 Memory leak.
342
343 * src/reader.c (reader): Free grammar.
344
345 2001-12-29 Akim Demaille <akim@epita.fr>
346
347 Memory leak.
348
349 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
350 since it allocates it for each state, although only one is needed.
351 (allocate_storage): Do it here.
352
353 2001-12-29 Akim Demaille <akim@epita.fr>
354
355 * src/options.h, src/options.c (create_long_option_table): Rename
356 as...
357 (long_option_table_new): this, with a clearer prototype.
358 (percent_table): Remove, unused,
359 * src/getargs.c (getargs): Adjust.
360
361 2001-12-29 Akim Demaille <akim@epita.fr>
362
363 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
364 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
365 as states.
366
367 2001-12-29 Akim Demaille <akim@epita.fr>
368
369 * src/lalr.c (build_relations): Rename `states' as `states1'.
370 Sorry, I don't understand exactly what it is, no better name...
371
372 2001-12-29 Akim Demaille <akim@epita.fr>
373
374 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
375 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
376 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
377 as rules.
378
379 2001-12-29 Akim Demaille <akim@epita.fr>
380
381 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
382 ago.
383
384 2001-12-29 Akim Demaille <akim@epita.fr>
385
386 * src/reader.c, src/reader.h (user_toknums): Remove.
387 Adjust all users to use symbols[i]->user_token_number.
388
389 2001-12-29 Akim Demaille <akim@epita.fr>
390
391 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
392 Adjust all users to use symbols[i]->prec or ->assoc.
393
394 2001-12-29 Akim Demaille <akim@epita.fr>
395
396 * src/reader.c, src/reader.h (tags): Remove.
397 Adjust all users to use symbols[i]->tag.
398
399 2001-12-29 Akim Demaille <akim@epita.fr>
400
401 * src/gram.h, src/gram.c (symbols): New, similar to state_table
402 and rule_table.
403 * src/reader.c (packsymbols): Fill this table.
404 Drop sprec.
405 * src/conflicts.c (resolve_sr_conflict): Adjust.
406 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
407 single table.
408 Use symbols[i]->tag instead of tags[i].
409
410 2001-12-29 Akim Demaille <akim@epita.fr>
411
412 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
413 In addition, put a comment in there, to replace...
414 * tests/regression.at (%union and C comments): Remove.
415
416 2001-12-29 Akim Demaille <akim@epita.fr>
417
418 * tests/regression.at (Web2c Actions): Blindly move the actual
419 output as expected output. The contents *seem* right to me, but I
420 can't pretend reading perfectly parser tables... Nonetheless, all
421 the other tests pass correctly, the table look OK, even though the
422 presence of `$axiom' is to be noted: AFAICS it is useless (but
423 harmless).
424
425 2001-12-29 Akim Demaille <akim@epita.fr>
426
427 * src/reader.c (readgram): Don't add the rule 0 if there were no
428 rules read. In other words, add it _after_ having performed
429 grammar sanity checks.
430 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
431
432 2001-12-29 Akim Demaille <akim@epita.fr>
433
434 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
435 visible, and some states have now a different number.
436
437 2001-12-29 Akim Demaille <akim@epita.fr>
438
439 * src/reader.c (readgram): Bind the initial rule's lineno to that
440 of the first rule.
441 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
442 (Solved SR Conflicts): Adjust rule 0's line number.
443
444 2001-12-29 Akim Demaille <akim@epita.fr>
445
446 Fix the `GAWK Grammar' failure.
447
448 * src/LR0.c (final_state): Initialize to -1 so that we do compute
449 the reductions of the first state which was mistakenly confused
450 with the final state because precisely final_state was initialized
451 to 0.
452 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
453 now noticed by Bison.
454 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
455 have a reduction on $default.
456
457 2001-12-29 Akim Demaille <akim@epita.fr>
458
459 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
460 rule line numbers.
461 * src/closure.c (print_closure): Likewise.
462 * src/derives.c (print_derives): Likewise.
463 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
464 now.
465
466 2001-12-29 Akim Demaille <akim@epita.fr>
467
468 * src/lalr.c (lookaheads_print): New.
469 (lalr): Call it when --trace-flag.
470 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
471 are dumped.
472
473 2001-12-29 Akim Demaille <akim@epita.fr>
474
475 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
476 when walking through ritem, even via rule->rhs.
477 * src/reduce.c (dump_grammar, useful_production, reduce_output)
478 (useful_production, useless_nonterminals): Likewise.
479 (reduce_grammar_tables): Likewise, plus update nritems.
480 * src/nullable.c (set_nullable): Likewise.
481 * src/lalr.c (build_relations): Likewise.
482 * tests/sets.at (Nullable): Adjust.
483 Fortunately, now, the $axiom is no longer nullable.
484
485 2001-12-29 Akim Demaille <akim@epita.fr>
486
487 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
488 the 0-sentinel.
489 * src/gram.c (ritem_longest_rhs): Likewise.
490 * src/reduce.c (nonterminals_reduce): Likewise.
491 * src/print_graph.c (print_graph): Likewise.
492 * src/output.c (output_rule_data): Likewise.
493 * src/nullable.c (set_nullable): Likewise.
494
495 2001-12-29 Akim Demaille <akim@epita.fr>
496
497 * src/output.c: Comment changes.
498
499 2001-12-27 Paul Eggert <eggert@twinsun.com>
500
501 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
502 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
503 Sparc, as they were causing more porting problems than the
504 (minor) performance improvement was worth.
505
506 Also, catch up with 1.31's YYSTD.
507
508 2001-12-27 Akim Demaille <akim@epita.fr>
509
510 * src/output.c (output_gram): Rely on nritems, not the
511 0-sentinel. See below.
512 Use -1 as separator, not 0.
513 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
514 Rely on -1 as separator in yyrhs, instead of 0.
515 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
516 twice `Now at end of input', therefore there are two lines less to
517 expect.
518
519 2001-12-27 Akim Demaille <akim@epita.fr>
520
521 * tests/regression.at (Unresolved SR Conflicts):
522 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
523 below.
524
525 2001-12-27 Akim Demaille <akim@epita.fr>
526
527 * src/LR0.c (new_state): Recognize the final state by the fact it
528 is reached by eoftoken.
529 (insert_start_shifting_state, insert_eof_shifting_state)
530 (insert_accepting_state, augment_automaton): Remove, since now
531 these states are automatically computed from the initial state.
532 (generate_states): Adjust.
533 * src/print.c: When reporting a rule number to the user, substract
534 1, so that the axiom rule is rule 0, and the first user rule is 1.
535 * src/reduce.c: Likewise.
536 * src/print_graph.c (print_core): For the time being, just as for
537 the report, depend upon --trace-flags to dump the full set of
538 items.
539 * src/reader.c (readgram): Once the grammar read, insert the rule
540 0: `$axiom: START-SYMBOL $'.
541 * tests/set.at: Adjust: rule 0 is now displayed, and since the
542 number of the states has changed (the final state is no longer
543 necessarily the last), catch up.
544
545 2001-12-27 Akim Demaille <akim@epita.fr>
546
547 Try to make the use of the eoftoken valid. Given that its value
548 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
549 is used instead of > 0 where appropriate, (ii), depend upon nritems
550 instead of the 0-sentinel.
551
552 * src/gram.h, src/gram.c (nritems): New.
553 Expected to be duplication of nitems, but for the time being...
554 * src/reader.c (packgram): Assert nritems and nitems are equal.
555 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
556 * src/closure.c (print_closure, print_fderives): Likewise.
557 * src/gram.c (ritem_print): Likewise.
558 * src/print.c (print_core, print_grammar): Likewise.
559 * src/print_graph.c: Likewise.
560
561 2001-12-27 Akim Demaille <akim@epita.fr>
562
563 * src/main.c (main): If there are complains after grammar
564 reductions, then output the report anyway if requested, then die.
565 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
566 * src/reader.c (eoftoken): New.
567 (parse_token_decl): If the token being defined has value `0', it
568 is the eoftoken.
569 (packsymbols): No longer hack `tags' to insert `$' by hand.
570 Be sure to preserve the value of the eoftoken.
571 (reader): Make sure eoftoken is defined.
572 Initialize nsyms to 0: now eoftoken is created just like the others.
573 * src/print.c (print_grammar): Don't special case the eof token.
574 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
575 lie anyway, albeit pleasant.
576 * tests/calc.at: Exercise error messages with eoftoken.
577 Change the grammar so that empty input is invalid.
578 Adjust expectations.
579 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
580
581 2001-12-27 Akim Demaille <akim@epita.fr>
582
583 * configure.in: Check the protos of strchr ans strspn.
584 Replace strchr if needed.
585 * src/system.h: Provide the protos of strchr, strspn and memchr if
586 missing.
587 * lib/strchr.c: New.
588 * src/reader.c (symbols_save): Use strchr.
589
590 2001-12-27 Akim Demaille <akim@epita.fr>
591
592 * src/print.c, src/print_graph.c (escape): New.
593 Use it to quote the TAGS outputs.
594 * src/print_graph.c (print_state): Now errors are in red, and
595 reductions in green.
596 Prefer high to wide: output the state number on a line of its own.
597
598 2001-12-27 Akim Demaille <akim@epita.fr>
599
600 * src/state.h, src/state.c (reductions_new): New.
601 * src/LR0.c (set_state_table): Let all the states have a
602 `reductions', even if reduced to 0.
603 (save_reductions): Adjust.
604 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
605 * src/print.c (print_reductions, print_actions): Adjust.
606 * src/output.c (action_row): Adjust.
607
608 2001-12-27 Akim Demaille <akim@epita.fr>
609
610 * src/state.h, src/state.c (errs_new, errs_dup): New.
611 * src/LR0.c (set_state_table): Let all the states have an errs,
612 even if reduced to 0.
613 * src/print.c (print_errs, print_reductions): Adjust.
614 * src/output.c (output_actions, action_row): Adjust.
615 * src/conflicts.c (resolve_sr_conflict): Adjust.
616
617 2001-12-27 Akim Demaille <akim@epita.fr>
618
619 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
620
621 2001-12-27 Akim Demaille <akim@epita.fr>
622
623 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
624 * src/print.c: here.
625 (lookaheadset, shiftset): New, used as additional storage by
626 print_reductions.
627 (print_results): Adjust.
628 (print_shifts, print_gotos, print_errs): New, extracted from...
629 (print_actions): here.
630 * src/print_graph.c (print_actions): Remove dead code.
631
632 2001-12-27 Akim Demaille <akim@epita.fr>
633
634 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
635 `$n' and `@n'.
636
637 2001-12-27 Akim Demaille <akim@epita.fr>
638
639 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
640 (build_relations): Adjust.
641
642 2001-12-27 Akim Demaille <akim@epita.fr>
643
644 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
645 duplication.
646
647 2001-12-27 Akim Demaille <akim@epita.fr>
648
649 * src/reader.c (packgram): Catch nitems overflows.
650
651 2001-12-27 Akim Demaille <akim@epita.fr>
652
653 * src/files.c, src/files.h (guard_obstack): Remove.
654 * src/output.c (output): Adjust.
655 * src/reader.c (parse_braces): New, factoring...
656 (copy_action, copy_guard): these two which are renamed as...
657 (parse_action, parse_guard): these.
658 As a voluntary consequence, using braces around guards is now
659 mandatory.
660
661 2001-12-27 Akim Demaille <akim@epita.fr>
662
663 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
664 * src/reader.c (symbol_list): `guard' and `guard_line' are new
665 members.
666 (symbol_list_new): Adjust.
667 (copy_action): action_line is the first line, not the last.
668 (copy_guard): Just as for actions, store the `action' only, not
669 the switch/case/break flesh.
670 Don't parse the user action that might follow the guard, let...
671 (readgram): do it, i.e., now, there can be an action after a
672 guard.
673 In other words the guard is just explicitly optional.
674 (packgram): Adjust.
675 * src/output.c (guards_output): New.
676 (output_parser): Call it when needed.
677 (output): Also free the guard and attrs obstacks.
678 * src/files.c, src/files.h (obstack_save): Remove.
679 (output_files): Remove.
680 As a result, if one needs the former `.act' file, using an
681 appropriate skeleton which requires actions and guards is now
682 required.
683 * src/main.c (main): Adjust.
684 * tests/semantic.at: New.
685 * tests/regression.at: Use `input.y' as input file name.
686 Avoid 8+3 problems by requiring input.c when the test needs the
687 parser.
688
689 2001-12-27 Akim Demaille <akim@epita.fr>
690
691 * src/reader.c (symbol_list_new): Be sure to initialize all the
692 fields.
693
694 2001-12-27 Akim Demaille <akim@epita.fr>
695
696 All the hacks using a final pseudo state are now useless.
697
698 * src/LR0.c (set_state_table): state_table holds exactly nstates.
699 * src/lalr.c (nLA): New.
700 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
701 instead of lookaheadsp from the pseudo state (nstate + 1).
702
703 2001-12-27 Akim Demaille <akim@epita.fr>
704
705 * src/output.c (action_row, token_actions): Use a state_t instead
706 of a integer, and nlookaheads instead of the following state's
707 lookaheadsp.
708
709 2001-12-27 Akim Demaille <akim@epita.fr>
710
711 * src/conflicts.c (log_resolution, flush_shift)
712 (resolve_sr_conflict, set_conflicts, solve_conflicts)
713 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
714 (conflicts_print, print_reductions): Use a state_t instead of an
715 integer when referring to a state.
716 As much as possible, depend upon nlookaheads, instead of the
717 `lookaheadsp' member of the following state (since lookaheads of
718 successive states are successive, the difference between state n + 1
719 and n served as the number of lookaheads for state n).
720 * src/lalr.c (add_lookback_edge): Likewise.
721 * src/print.c (print_core, print_actions, print_state)
722 (print_results): Likewise.
723 * src/print_graph.c (print_core, print_actions, print_state)
724 (print_graph): Likewise.
725 * src/conflicts.h: Adjust.
726
727 2001-12-27 Akim Demaille <akim@epita.fr>
728
729 * src/bison.hairy: Formatting/comment changes.
730 ANSIfy.
731 Remove `register' indications.
732 Add plenty of `static'.
733
734 2001-12-27 Akim Demaille <akim@epita.fr>
735
736 * src/output.c (prepare): Drop the muscle `ntbase' which
737 duplicates ntokens.
738 * src/bison.simple: Formatting/comment changes.
739 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
740 is an undocumented synonym.
741
742 2001-12-22 Akim Demaille <akim@epita.fr>
743
744 * src/output.c (output_table_data): Change the prototype to use
745 `int' for array ranges: some invocations do pass an int, not a
746 short.
747 Reported by Wayne Green.
748
749 2001-12-22 Akim Demaille <akim@epita.fr>
750
751 Some actions of web2c.y are improperly triggered.
752 Reported by Mike Castle.
753
754 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
755 * tests/regression.at (Web2c): Rename as...
756 (Web2c Report): this.
757 (Web2c Actions): New.
758
759 2001-12-22 Akim Demaille <akim@epita.fr>
760
761 Reductions in web2c.y are improperly reported.
762 Reported by Mike Castle.
763
764 * src/conflicts.c (print_reductions): Fix.
765 * tests/regression.at (Web2c): New.
766
767 2001-12-18 Akim Demaille <akim@epita.fr>
768
769 Some host fail on `assert (!"foo")', which expands to
770 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
771 Reported by Nelson Beebee.
772
773 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
774 `#define it_succeeded 0' and `assert (it_succeeded)'.
775
776 2001-12-17 Marc Autret <autret_m@epita.fr>
777
778 * src/bison.simple: Don't hard code the skeleton line and filename.
779 * src/output.c (output_parser): Rename 'line' as 'output_line'.
780 New line counter 'skeleton_line' (skeleton-line muscle).
781
782 2001-12-17 Paul Eggert <eggert@twinsun.com>
783
784 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
785 YYDEBUG must be defined to a nonzero value.
786
787 * src/bison.simple (yytname): Do not assume that the user defines
788 YYDEBUG to a properly parenthesized expression.
789
790 2001-12-17 Akim Demaille <akim@epita.fr>
791
792 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
793 nlookaheads is a new member.
794 Adjust all users.
795 * src/lalr.h (nlookaheads): Remove this orphan declaration.
796 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
797 state.
798
799 2001-12-17 Akim Demaille <akim@epita.fr>
800
801 * src/files.h, src/files.c (open_files, close_files): Remove.
802 * src/main.c (main): Don't open/close files, nor invoke lex_free,
803 let...
804 * src/reader.c (reader): Do it.
805
806 2001-12-17 Akim Demaille <akim@epita.fr>
807
808 * src/conflicts.c (print_reductions): Formatting changes.
809
810 2001-12-17 Akim Demaille <akim@epita.fr>
811
812 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
813 (flush_reduce): New.
814 (resolve_sr_conflict): Adjust.
815
816 2001-12-17 Akim Demaille <akim@epita.fr>
817
818 * src/output.c (output_obstack): Be static and rename as...
819 (format_obstack): this, to avoid any confusion with files.c's
820 output_obstack.
821 * src/reader.h (muscle_obstack): Move to...
822 * src/output.h: here, since it's defined in output.c.
823
824 2001-12-17 Akim Demaille <akim@epita.fr>
825
826 * src/output.c (action_row, save_column, default_goto)
827 (sort_actions, matching_state, pack_vector): Better variable
828 locality.
829
830 2001-12-17 Akim Demaille <akim@epita.fr>
831
832 * src/output.c: Various formatting changes.
833
834 2001-12-17 Akim Demaille <akim@epita.fr>
835
836 * src/files.c (output_files): Free the output_obstack.
837 * src/main.c (main): Call print and print_graph conditionally.
838 * src/print.c (print): Work unconditionally.
839 * src/print_graph.c (print_graph): Work unconditionally.
840 * src/conflicts.c (log_resolution): Output only if verbose_flag.
841
842 2001-12-16 Marc Autret <autret_m@epita.fr>
843
844 * src/output.c (actions_output): Fix. When we use %no-lines,
845 there is one less line per action.
846
847 2001-12-16 Marc Autret <autret_m@epita.fr>
848
849 * src/bison.simple: Remove a useless #line directive.
850 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
851 * src/output.c (get_lines_number): New.
852 (output_parser): Adjust, now takes care about the lines of a
853 output muscles.
854 Fix line numbering.
855 (actions_output): Computes the number of lines taken by actions.
856 (output_master_parser): Insert new skeleton which is the name of
857 the output parser file name.
858
859 2001-12-15 Marc Autret <autret_m@epita.fr>
860
861 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
862
863 2001-12-15 Marc Autret <autret_m@epita.fr>
864
865 * src/output.c (output_gram): Keep track of the hairy one.
866
867 2001-12-15 Akim Demaille <akim@epita.fr>
868
869 Make `make distcheck' work.
870
871 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
872 system.h which uses libgettext.h.
873
874 2001-12-15 Akim Demaille <akim@epita.fr>
875
876 * src/nullable.c (set_nullable): Useless rules must be skipped,
877 otherwise, since we range over their symbols, we might look at a
878 nonterminal which no longer ``exists'', i.e., it is not counted in
879 `nvars', hence we overflow our arrays.
880
881 2001-12-15 Akim Demaille <akim@epita.fr>
882
883 The header can also be produced directly, without any obstack!
884 Yahoo!
885
886 * src/files.c, src/files.h (defines_obstack): Remove.
887 (compute_header_macro): Global.
888 (defines_obstack_save): Remove.
889 * src/reader.c (parse_union_decl): No longer output to
890 defines_obstack: its content can be found in the `stype' muscle
891 anyway.
892 (output_token_translations): Merge into...
893 (symbols_output): this.
894 Rename as...
895 (symbols_save): this.
896 (reader): Adjust.
897 * src/output.c (header_output): New.
898 (output): Call it.
899
900 2001-12-15 Akim Demaille <akim@epita.fr>
901
902 * src/reader.c (parse_union_decl): Instead of handling two obstack
903 simultaneously, use one to define the `stype' muscle, and use the
904 value of the latter to fill defines_obstack.
905 (copy_comment): Remove.
906 (copy_comment2): Work for a single obstack.
907 Rename as...
908 (copy_comment): this.
909
910 2001-12-15 Akim Demaille <akim@epita.fr>
911
912 * src/lex.c, src/lex.h (xgetc): No longer static.
913 * src/reader.c (parse_union_decl): Revamp.
914
915 2001-12-15 Akim Demaille <akim@epita.fr>
916
917 Still making progress in separating Bison into (i) input, (ii)
918 process, (iii) output: now we can directly output the parser file
919 without using table_obstack at all.
920
921 * src/files.c, src/files.h (table_obstack): Bye bye.
922 (parser_file_name): New.
923 * src/files.c (compute_output_file_names): Compute it.
924 * src/output.c (actions_output, output_parser)
925 (output_master_parser): To a file instead of an obstack.
926
927 2001-12-15 Akim Demaille <akim@epita.fr>
928
929 Attach actions to rules, instead of pre-outputting them to
930 actions_obstack.
931
932 * src/gram.h (rule_t): action and action_line are new members.
933 * src/reader.c (symbol_list): Likewise.
934 (copy_action): Save the actions within the rule.
935 (packgram): Save them in rule_table.
936 * src/output.c (actions_output): New.
937 (output_parser): Use it on `%%actions'.
938 (output_rule_data): Don't free rule_table.
939 (output): Do it.
940 (prepare): Don't save the `action' muscle.
941 * src/bison.simple: s/%%action/%%actions/.
942
943 2001-12-15 Akim Demaille <akim@epita.fr>
944
945 * src/reader.c (copy_action): When --yacc, don't append a `;'
946 to the user action: let it fail if lacking.
947 Suggested by Arnold Robbins and Tom Tromey.
948
949 2001-12-14 Akim Demaille <akim@epita.fr>
950
951 * src/lex.c (literalchar): Simply return the char you decoded, non
952 longer mess around with obstacks and int pointers.
953 Adjust all callers.
954
955 2001-12-14 Akim Demaille <akim@epita.fr>
956
957 * src/lex.c (literalchar): Don't escape the special characters,
958 just decode them, and keep them as char (before, eol was output as
959 the 2 char string `\n' etc.).
960 * src/output.c (output_rule_data): Use quotearg to output the
961 token strings.
962
963 2001-12-13 Paul Eggert <eggert@twinsun.com>
964
965 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
966 Do not infringe on the global user namespace when using C++.
967 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
968 All uses of `fprintf' and `stderr' changed.
969
970 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
971
972 2001-12-13 Akim Demaille <akim@epita.fr>
973
974 The computation of nullable is broken: it doesn't handle empty
975 RHS's properly.
976
977 * tests/torture.at (GNU AWK Grammar): New.
978 * tests/sets.at (Nullable): New.
979 * src/nullable.c (set_nullable): Instead of blindly looping over
980 `ritems', loop over the rules, and then over their rhs's.
981
982 Work around Autotest bugs.
983
984 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
985 frame, because Autotest understand lines starting with a `+' as
986 traces from the shell. Then, they are not processed properly.
987 Admittedly an Autotest bug, but we don't have time to wait for
988 Autotest to catch up.
989 * tests/regression.at (Broken Closure): Adjust to the new table
990 frames.
991 Move to...
992 * tests/sets.at: here.
993
994 2001-12-13 Akim Demaille <akim@epita.fr>
995
996 * src/closure.c (closure): Use nrules instead of playing tricks
997 with BITS_PER_WORD.
998
999 2001-12-13 Akim Demaille <akim@epita.fr>
1000
1001 * src/print.c (print_actions): Output the handling of `$' as the
1002 traces do: shifting the token EOF. Before EOF was treated as a
1003 nonterminal.
1004 * tests/regression.at: Adjust some tests.
1005 * src/print_graph.c (print_core): Complete the set of items via
1006 closure. The next-to-final and final states are still unsatisfying,
1007 but that's to be addressed elsewhere.
1008 No longer output the rule numbers, but do output the state number.
1009 A single loop for the shifts + gotos is enough, but picked a
1010 distinct color for each.
1011 (print_graph): Initialize and finalize closure.
1012
1013 2001-12-13 Akim Demaille <akim@epita.fr>
1014
1015 * src/reader.c (readgram): Remove dead code, an strip useless
1016 braces.
1017 (get_type): Remove, unused.
1018
1019 2001-12-12 Akim Demaille <akim@epita.fr>
1020
1021 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
1022 on that of lib/error.c.
1023
1024 2001-12-12 Akim Demaille <akim@epita.fr>
1025
1026 Some hosts don't like `/' in includes.
1027
1028 * src/system.h: Include libgettext.h without qualifying the path.
1029 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
1030 $(top_srcdir).
1031
1032 2001-12-11 Marc Autret <autret_m@epita.fr>
1033
1034 * src/output.c (output_parser): Remove useless muscle.
1035
1036 2001-12-11 Marc Autret <autret_m@epita.fr>
1037
1038 * src/bison.simple: Remove #line just before %%epilogue. It
1039 is now handled in ...
1040 * src/reader.c (read_additionnal_code): Add the output of a
1041 #line for the epilogue.
1042
1043 2001-12-10 Marc Autret <autret_m@epita.fr>
1044
1045 * src/reader.c (copy_definition): Re-use CPP-outed code which
1046 replace precedent remove.
1047 * src/bison.simple: Remove #line before %%prologue because
1048 %%input-line is wrong at this time.
1049
1050 2001-12-10 Marc Autret <autret_m@epita.fr>
1051
1052 * src/reader.c (symbols_output): Clean up.
1053 * src/output.c (output_gram, output): Clean up.
1054
1055 2001-12-10 Akim Demaille <akim@epita.fr>
1056
1057 * src/lalr.c (initialize_lookaheads): New. Extracted from...
1058 * src/LR0.c (set_state_table): here.
1059 * src/lalr.c (lalr): Call it.
1060
1061 2001-12-10 Akim Demaille <akim@epita.fr>
1062
1063 * src/state.h (shifts): Remove the `number' member: shifts are
1064 attached to state, hence no longer need to be labelled with a
1065 state number.
1066
1067 2001-12-10 Akim Demaille <akim@epita.fr>
1068
1069 Now that states have a complete set of members, the linked list of
1070 shifts is useless: just fill directly the state's shifts member.
1071
1072 * src/state.h (shifts): Remove the `next' member.
1073 * src/LR0.c (first_state, last_state): Remove.
1074 Adjust the callers.
1075 (augment_automaton): Don't look for the shifts that must be added
1076 a shift on EOF: it is those of the state we looked for! But now,
1077 since shifts are attached, it is no longer needed to looking
1078 merely by its id: its number.
1079
1080 2001-12-10 Akim Demaille <akim@epita.fr>
1081
1082 * src/LR0.c (augment_automaton): Better variable locality.
1083 Remove an impossible branch: if there is a state corresponding to
1084 the start symbol being shifted, then there is shift for the start
1085 symbol from the initial state.
1086
1087 2001-12-10 Akim Demaille <akim@epita.fr>
1088
1089 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
1090 only when appropriate: when insert_start_shifting_state' is not
1091 invoked.
1092 * tests/regression.at (Rule Line Numbers): Adjust.
1093
1094 2001-12-10 Akim Demaille <akim@epita.fr>
1095
1096 * src/LR0.c (augment_automaton): Now that all states have shifts,
1097 merge the two cases addition shifts to the initial state.
1098
1099 2001-12-10 Akim Demaille <akim@epita.fr>
1100
1101 * src/lalr.c (set_state_table): Move to...
1102 * src/LR0.c: here.
1103 * src/lalr.c (lalr): Don't call it...
1104 * src/LR0.c (generate_states): do it.
1105 * src/LR0.h (first_state): Remove, only the table is used.
1106
1107 2001-12-10 Akim Demaille <akim@epita.fr>
1108
1109 * src/LR0.h (first_shift, first_reduction): Remove.
1110 * src/lalr.c: Don't use first_shift: find shifts through the
1111 states.
1112
1113 2001-12-10 Akim Demaille <akim@epita.fr>
1114
1115 * src/LR0.c: Attach shifts to states as soon as they are
1116 computed.
1117 * src/lalr.c (set_state_table): Instead of assigning shifts to
1118 state, just assert that the mapping was properly done.
1119
1120 2001-12-10 Akim Demaille <akim@epita.fr>
1121
1122 * src/LR0.c (insert_start_shift): Rename as...
1123 (insert_start_shifting_state): this.
1124 (insert_eof_shifting_state, insert_accepting_state): New.
1125 (augment_automaton): Adjust.
1126 Better locality of the variables.
1127 When looking if the start_symbol is shifted from the initial
1128 state, using `while (... symbol != start_symbol ...)' sounds
1129 better than `while (... symbol < start_symbol ...)': If fail
1130 to see how the order between symbols could be relevant!
1131
1132 2001-12-10 Akim Demaille <akim@epita.fr>
1133
1134 * src/getargs.h: Don't declare `spec_name_prefix' and
1135 `spec_file_prefix', declared by src/files.h.
1136 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
1137 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
1138 * src/output.c (prepare): Adjust.
1139 * src/reader.c (symbols_output): Likewise.
1140 * src/vmsgetargs.c: Vaguely adjust, but who cares?
1141
1142 2001-12-10 Akim Demaille <akim@epita.fr>
1143
1144 * src/muscle_tab.c (muscle_init): NULL is a better default than
1145 `"0"'.
1146
1147 2001-12-10 Akim Demaille <akim@epita.fr>
1148
1149 * src/reader.c (reader): Calling symbols_output once is enough.
1150
1151 2001-12-10 Akim Demaille <akim@epita.fr>
1152
1153 Now that states have a complete set of members, the linked list of
1154 reductions is useless: just fill directly the state's reductions
1155 member.
1156
1157 * src/state.h (struct reductions): Remove member `number' and
1158 `next'.
1159 * src/LR0.c (first_reduction, last_reduction): Remove.
1160 (save_reductions): Don't link the new reductions, store them in
1161 this_state.
1162 * src/lalr.c (set_state_table): No need to attach reductions to
1163 states, it's already done.
1164 * src/output.c (output_actions): No longer free the shifts, then
1165 the reductions, then the states: free all the states and their
1166 members.
1167
1168 2001-12-10 Akim Demaille <akim@epita.fr>
1169
1170 * src/options.c (OPTN, DRTV, BOTH): New.
1171 (option_table): Use them.
1172
1173 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
1174 the job of system.h.
1175 * src/options.c: Don't include stdio.h and xalloc.h for the same
1176 reasons.
1177
1178 2001-12-10 Akim Demaille <akim@epita.fr>
1179
1180 * src/output.c (output, prepare): Make sure the values of the
1181 muscles `action' and `prologue' are 0-terminated.
1182
1183 2001-12-10 Akim Demaille <akim@epita.fr>
1184
1185 Clean up GCC warnings.
1186
1187 * src/reader.c (copy_action): `buf' is not used.
1188 (parse_skel_decl): Be static.
1189 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
1190 * src/options.h (create_long_option_table): Have a real prototype.
1191 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
1192 (hash_delete_at): Return const void *.
1193 Adjust casts to preserve the const.
1194
1195 2001-12-10 Akim Demaille <akim@epita.fr>
1196
1197 * configure.in: Require 2.52g.
1198 M4 is not needed, but AUTOM4TE is.
1199 * m4/m4.m4: Remove.
1200 * tests/Makefile.am: Adjust.
1201
1202 2001-12-10 Akim Demaille <akim@epita.fr>
1203
1204 One structure for states is enough, even though theoretically
1205 there are LR(0) states and LALR(1) states.
1206
1207 * src/lalr.h (state_t): Remove.
1208 (state_table): Be state_t **, not state_t *.
1209 * src/state.h (core, CORE_ALLOC): Rename as...
1210 (state_t, STATE_ALLOC): this.
1211 Add the LALR(1) members: shifts, reductions, errs.
1212 * src/LR0.c (state_table): Rename as...
1213 (state_hash): this, to avoid name clashes with the global
1214 `state_table'.
1215 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
1216 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
1217
1218 2001-12-10 Akim Demaille <akim@epita.fr>
1219
1220 Bison dumps core on bash.y.
1221 Reported by Pascal Bart.
1222
1223 * src/warshall.c (bitmatrix_print): New.
1224 (TC): Use it.
1225 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
1226 j must be the outer loop.
1227 * tests/regression.at (Broken Closure): New.
1228
1229 2001-12-05 Akim Demaille <akim@epita.fr>
1230
1231 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
1232 its argument.
1233 Reported by Peter Hámorský.
1234
1235 2001-12-05 Akim Demaille <akim@epita.fr>
1236
1237 * src/conflicts.c (err_table): Remove.
1238 (resolve_sr_conflict): Adjust.
1239 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
1240 Rename as...
1241 (state_t.reductions, state_t.shifts): this.
1242
1243 2001-12-05 Akim Demaille <akim@epita.fr>
1244
1245 * src/reduce.c (reduce_grammar_tables): No longer disable the
1246 removal of useless rules via CPP but via `if (0)', so that the
1247 compiler still check the code is valid.
1248 For instance, it should have noticed `rline' no longer exists: use
1249 the `line' member of rule_t.
1250 * src/gram.c (dummy, rline): Remove, unused.
1251
1252 2001-12-05 Akim Demaille <akim@epita.fr>
1253
1254 * src/output.c (pack_vector): Use assert, not berror.
1255 * src/main.c (berror): Remove, unused.
1256
1257 2001-12-05 Akim Demaille <akim@epita.fr>
1258
1259 New experimental feature: if --verbose --trace output all the
1260 items of a state, not only its kernel.
1261
1262 * src/print.c (print_core): If `trace_flag', then invoke closure
1263 before outputting the items of the state (print_core is no longer
1264 a correct name them).
1265 (print_results): Invoke new_closure/free_closure if needed.
1266
1267 2001-12-05 Akim Demaille <akim@epita.fr>
1268
1269 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
1270 * src/closure.c, src/closure.h (itemsetsize): Rename as...
1271 (nitemset): for consistency with the rest of the project.
1272
1273 2001-12-05 Akim Demaille <akim@epita.fr>
1274
1275 * src/closure.c (print_closure): Improve.
1276 (closure): Use it for printing input and output.
1277
1278 2001-12-05 Akim Demaille <akim@epita.fr>
1279
1280 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
1281 indexed by nonterminals.
1282
1283 2001-12-05 Akim Demaille <akim@epita.fr>
1284
1285 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
1286 what it was!).
1287 * src/warshall.h: Remove accidental duplication of the content.
1288
1289 2001-12-05 Akim Demaille <akim@epita.fr>
1290
1291 * src/closure.c (set_fderives): De-obfuscate.
1292
1293 2001-12-05 Akim Demaille <akim@epita.fr>
1294
1295 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
1296
1297 2001-12-05 Akim Demaille <akim@epita.fr>
1298
1299 * src/closure.c (set_firsts): De-obfuscate.
1300
1301 2001-12-05 Akim Demaille <akim@epita.fr>
1302
1303 * src/output.c (action_row): De-obfuscate
1304 using the good o' techniques: arrays not pointers, variable
1305 locality, BITISSET, RESETBIT etc.
1306
1307 2001-12-05 Akim Demaille <akim@epita.fr>
1308
1309 Pessimize the code to simplify it: from now on, all the states
1310 have a valid SHIFTS, which NSHIFTS is possibly 0.
1311
1312 * src/LR0.c (shifts_new): Be global and move to..
1313 * src/state.c, src/state.h: here.
1314 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
1315 * src/print_graph: Adjust.
1316
1317 2001-12-05 Akim Demaille <akim@epita.fr>
1318
1319 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
1320 * src/conflicts.c: Use it.
1321 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
1322 incorrectly ``simplified''.
1323
1324 2001-12-05 Akim Demaille <akim@epita.fr>
1325
1326 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
1327 using the good o' techniques: arrays not pointers, variable
1328 locality, BITISSET, RESETBIT etc.
1329
1330 2001-12-05 Akim Demaille <akim@epita.fr>
1331
1332 * src/state.h (SHIFT_SYMBOL): New.
1333 * src/conflicts.c: Use it to deobfuscate.
1334
1335 2001-12-05 Akim Demaille <akim@epita.fr>
1336
1337 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
1338 (print_reductions): De-obfuscate using the good o' techniques:
1339 arrays not pointers, variable locality, BITISSET.
1340
1341 2001-12-05 Akim Demaille <akim@epita.fr>
1342
1343 * src/conflicts.c (print_reductions): Arrays, not pointers.
1344 Use BITISSET.
1345
1346 2001-12-05 Akim Demaille <akim@epita.fr>
1347
1348 * src/conflicts.c (print_reductions): Pessimize, but clarify.
1349
1350 2001-12-05 Akim Demaille <akim@epita.fr>
1351
1352 * src/conflicts.c (print_reductions): Improve variable locality.
1353
1354 2001-12-05 Akim Demaille <akim@epita.fr>
1355
1356 * src/conflicts.c (print_reductions): Pessimize, but clarify.
1357
1358 2001-12-05 Akim Demaille <akim@epita.fr>
1359
1360 * src/conflicts.c (print_reductions): Improve variable locality.
1361
1362 2001-12-05 Akim Demaille <akim@epita.fr>
1363
1364 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
1365 * src/lalr.c: Use them.
1366
1367 2001-12-05 Akim Demaille <akim@epita.fr>
1368
1369 * src/LR0.c (augment_automaton): Formatting changes.
1370 Better variable locality.
1371
1372 2001-12-05 Akim Demaille <akim@epita.fr>
1373
1374 * src/lalr.c (matrix_print): New.
1375 (transpose): Use it.
1376 Use arrays instead of pointers.
1377
1378 2001-12-05 Akim Demaille <akim@epita.fr>
1379
1380 * src/lalr.c (maxrhs): Move to...
1381 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
1382 * src/lalr.c (build_relations): Adjust.
1383
1384 2001-12-05 Akim Demaille <akim@epita.fr>
1385
1386 * src/lalr.c (transpose): Free the memory allocated to the
1387 argument, as it is replaced by the results by the unique caller.
1388 (build_relations): Merely invoke transpose: it handles the memory
1389 deallocation.
1390 Improve variable locality.
1391 Avoid variables used as mere abbreviations.
1392 (compute_lookaheads): Use arrays instead of pointers.
1393
1394 2001-12-05 Akim Demaille <akim@epita.fr>
1395
1396 * src/lalr.c (initialize_F): Improve variable locality.
1397 Avoid variables used as mere abbreviations.
1398
1399 2001-12-05 Akim Demaille <akim@epita.fr>
1400
1401 * src/derives.c (print_derives): Display the ruleno.
1402 * src/lalr.c (initialize_F, transpose): Better variable locality
1403 to improve readability.
1404 Avoid variables used as mere abbreviations.
1405
1406 2001-12-05 Akim Demaille <akim@epita.fr>
1407
1408 * src/lalr.c (traverse): Use arrays instead of pointers.
1409
1410 2001-12-05 Akim Demaille <akim@epita.fr>
1411
1412 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
1413 the handling of squeue.
1414 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
1415
1416 2001-12-05 Akim Demaille <akim@epita.fr>
1417
1418 Because useless nonterminals are now kept alive (instead of being
1419 `destroyed'), we now sometimes examine them, and store information
1420 related to them. Hence we need to know their number, and adjust
1421 memory allocations.
1422
1423 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
1424 static.
1425 * src/LR0.c (allocate_itemsets): The memory allocated to
1426 `symbol_count' was used for two different purpose: once to count
1427 the number of occurrences of each symbol, and later reassigned to
1428 `shift_symbol', containing the symbol that can be shifted from a
1429 given state.
1430 Deobfuscate, i.e., allocate, use and free `symbol_count' here
1431 only, and...
1432 (new_itemsets): Allocate `shift_symbol' here.
1433 (allocate_itemsets): symbol_count includes useless nonterminals.
1434 Make room for them.
1435 (free_storage): Use `free', not `XFREE', for pointers that cannot
1436 be null.
1437
1438 2001-12-05 Akim Demaille <akim@epita.fr>
1439
1440 * src/nullable.c (set_nullable): Deobfuscate the handling of
1441 ritem.
1442 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
1443
1444 2001-12-05 Akim Demaille <akim@epita.fr>
1445
1446 * src/gram.c, src/gram.h (ritem_print): New.
1447 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
1448 (This useless function was defined only to work around VMS linkers
1449 that can't handle compilation units with variables only).
1450 * src/reduce.c (dump_grammar): Use it to trace the construction of
1451 ritem.
1452
1453 2001-12-04 Paul Eggert <eggert@twinsun.com>
1454
1455 * src/bison.simple (union yyalloc): Change member names
1456 to be the same as the stack names.
1457 (yyparse): yyptr is now union yyalloc *, not char *.
1458 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
1459 and may generate better code on some machines.
1460 (yystpcpy): Use prototype if __STDC__ is defined, not just
1461 if __cplusplus is defined.
1462
1463 2001-11-30 Akim Demaille <akim@epita.fr>
1464
1465 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
1466 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
1467 Gettext doesn't compile cleanly, and dies with -Werror.
1468 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
1469 Include WARNING_CFLAGS here.
1470 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
1471 before being defined.
1472
1473 2001-11-27 Paul Eggert <eggert@twinsun.com>
1474
1475 * lib/quotearg.h (quotearg_n, quotearg_n_style):
1476 First arg is int, not unsigned.
1477 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
1478 (SIZE_MAX, UINT_MAX): New macros.
1479 (quotearg_n_options): Abort if N is negative.
1480 Avoid overflow check on hosts where size_t is 64 bits and int
1481 is 32 bits, as overflow is impossible there.
1482 Fix off-by-one typo that caused unnecessary reallocation.
1483
1484 2001-11-29 Paul Eggert <eggert@twinsun.com>
1485
1486 Name space cleanup in generated parser.
1487
1488 * doc/bison.texinfo (Bison Parser): Discuss system headers
1489 and their effect on the user name space.
1490
1491 * src/bison.simple:
1492 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
1493 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
1494 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
1495
1496 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
1497 on user names when possible.
1498
1499 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
1500 Simplify test for whather <alloca.h> exists.
1501
1502 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
1503
1504 (<stdio.h>): Include if YYDEBUG.
1505
1506 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
1507 ! defined (yyoverflow) && ! defined (yymemcpy).
1508
1509 (yymemcpy, yyparse): Rename local variables as needed so that
1510 they all begin with 'yy'.
1511
1512 (yystrlen, yystpcpy): New functions.
1513
1514 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
1515 All uses changed.
1516
1517 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
1518 instead of relying on string.h functions. Use YYSTACK_ALLOC
1519 and YYSTACK_FREE instead of malloc and free.
1520
1521 2001-11-30 Akim Demaille <akim@epita.fr>
1522
1523 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
1524 before their first uses.
1525 (YYBISON, YYPURE): Move to the top of the output.
1526
1527 2001-11-30 Akim Demaille <akim@epita.fr>
1528
1529 * tests/reduce.at (Useless Nonterminals): Fix.
1530
1531 2001-11-30 Akim Demaille <akim@epita.fr>
1532
1533 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
1534 if body instead of `;' to pacify GCC's warnings.
1535
1536 2001-11-30 Akim Demaille <akim@epita.fr>
1537
1538 Instead of mapping the LHS of unused rules to -1, keep the LHS
1539 valid, but flag the rules as invalid.
1540
1541 * src/gram.h (rule_t): `useful' is a new member.
1542 * src/print.c (print_grammar): Adjust.
1543 * src/derives.c (set_derives): Likewise.
1544 * src/reader.c (packgram, reduce_output): Likewise.
1545 * src/reduce.c (reduce_grammar_tables): Likewise.
1546 * tests/reduce.at (Underivable Rules, Useless Rules): New.
1547
1548 2001-11-30 Akim Demaille <akim@epita.fr>
1549
1550 * src/reduce.c (reduce_output): Formatting changes.
1551 * src/print.c (print_results, print_grammar): Likewise.
1552 * tests/regression.at (Rule Line Numbers)
1553 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
1554
1555 2001-11-30 Akim Demaille <akim@epita.fr>
1556
1557 * src/reduce.c (nonterminals_reduce): Instead of throwing away
1558 useless nonterminals, move them at the end of the symbol arrays.
1559 (reduce_output): Adjust.
1560 * tests/reduce.at (Useless Nonterminals): Adjust.
1561
1562 2001-11-30 Akim Demaille <akim@epita.fr>
1563
1564 * src/reduce.c: Various comment/formatting changes.
1565 (nonterminals_reduce): New, extracted from...
1566 (reduce_grammar_tables): here.
1567 (reduce_grammar): Call nonterminals_reduce.
1568
1569 2001-11-29 Paul Eggert <eggert@twinsun.com>
1570
1571 * src/bison.simple (YYSTACK_REALLOC): Remove.
1572 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
1573 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
1574 New macros.
1575 (union yyalloc): New type.
1576 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
1577 an arbitrary restriction on hosts where size_t is wider than int.
1578
1579 (yyparse): Don't dump core if alloca or malloc fails; instead, report
1580 a parser stack overflow. Allocate just one block of memory for all
1581 three stacks, instead of allocating three blocks; this typically is
1582 faster and reduces fragmentation.
1583
1584 Do not limit the number of items in the stack to a value that fits
1585 in 'int', as this is an arbitrary limit on hosts with 64-bit
1586 size_t and 32-bit int.
1587
1588 2001-11-29 Marc Autret <autret_m@epita.fr>
1589
1590 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
1591 of defining YYERROR_VERBOSE.
1592 [AT_DATA]: $4 is now out of C declarations in the prologue.
1593
1594 2001-11-28 Marc Autret <autret_m@epita.fr>
1595
1596 * src/reader.c (parse_dquoted_param): New.
1597 (parse_skel_decl): Use it.
1598 * src/lex.h: Add its prototype.
1599 * src/lex.c (literalchar): Become not static.
1600
1601 2001-11-28 Marc Autret <autret_m@epita.fr>
1602
1603 * src/output.h: And put its extern declaration here.
1604 * src/output.c (error_verbose): Define here.
1605 (prepare): Echo name modification.
1606 * src/getargs.h: Clean its extern declaration.
1607 * src/getargs.c (error_verbose_flag): Remove.
1608 (getargs): Remove case 'e'.
1609 * src/options.c (option_table): 'error-verbose' is now seen as simple
1610 percent option.
1611 Include output.h.
1612
1613 * src/reader.c (read_declarations): Remove case tok_include.
1614 (parse_include_decl): Remove.
1615 * src/lex.h (token_t): Remove tok_include.
1616 * src/options.c (option_table): 'include' is now a simple command line
1617 option.
1618
1619 2001-11-28 Marc Autret <autret_m@epita.fr>
1620
1621 * src/bison.simple: Adjust muscle names.
1622 * src/muscle_tab.c (muscle_init): Also rename the muscles.
1623 * src/output.c (prepare): s/_/-/ for the muscles names.
1624 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
1625
1626 2001-11-28 Marc Autret <autret_m@epita.fr>
1627
1628 * src/bison.simple: Fix debug.
1629 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
1630
1631 2001-11-28 Akim Demaille <akim@epita.fr>
1632
1633 * src/LR0.c (shifts_new): New.
1634 (save_shifts, insert_start_shift, augment_automaton): Use it.
1635
1636 2001-11-28 Akim Demaille <akim@epita.fr>
1637
1638 * src/closure.c (closure): `b' and `ruleno' denote the same value:
1639 keep ruleno only.
1640
1641 2001-11-28 Akim Demaille <akim@epita.fr>
1642
1643 * src/closure.c (closure): Instead of looping over word in array
1644 then bits in words, loop over bits in array.
1645
1646 2001-11-28 Akim Demaille <akim@epita.fr>
1647
1648 * src/closure.c (closure): No longer optimize the special case
1649 where all the bits of `ruleset[r]' are set to 0, to make the code
1650 clearer.
1651
1652 2001-11-28 Akim Demaille <akim@epita.fr>
1653
1654 * src/closure.c (closure): `r' and `c' are new variables, used to
1655 de-obfuscate accesses to RULESET and CORE.
1656
1657 2001-11-28 Akim Demaille <akim@epita.fr>
1658
1659 * src/reduce.c (reduce_print): Use ngettext.
1660 (dump_grammar): Improve the trace accuracy.
1661
1662 2001-11-28 Akim Demaille <akim@epita.fr>
1663
1664 * src/reduce.c (dump_grammar): Don't translate trace messages.
1665
1666 2001-11-28 Akim Demaille <akim@epita.fr>
1667
1668 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
1669 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
1670 as all tags are free'ed afterwards.
1671 From Enrico Scholz.
1672
1673 2001-11-27 Paul Eggert <eggert@twinsun.com>
1674
1675 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
1676 use alloca when we didn't want to, and vice versa.
1677
1678 2001-11-27 Marc Autret <autret_m@epita.fr>
1679
1680 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
1681 initialization.
1682 * src/output.c (prepare): Remove its update.
1683
1684 2001-11-27 Marc Autret <autret_m@epita.fr>
1685
1686 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
1687 Use %error-verbose.
1688
1689 2001-11-27 Marc Autret <autret_m@epita.fr>
1690
1691 * src/bison.simple: Remove YYERROR_VERBOSE using.
1692 Use %%error_verbose.
1693 (yyparse): Likewise.
1694 * src/output.c (prepare): Give its final value.
1695 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
1696 * src/getargs.h: Add its extern declaration.
1697 * src/getargs.c (error_verbose_flag): New int.
1698 (getargs): Update to catch new case.
1699 * src/options.c (option_table): 'error-verbose' is a new option.
1700 (shortopts): Update.
1701
1702 2001-11-27 Akim Demaille <akim@epita.fr>
1703
1704 * src/system.h: Use intl/libgettext.h.
1705 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
1706
1707 2001-11-27 Akim Demaille <akim@epita.fr>
1708
1709 * tests/torture.at (Exploding the Stack Size with Malloc):
1710 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
1711
1712 2001-11-27 Akim Demaille <akim@epita.fr>
1713
1714 * src/files.c: Include error.h.
1715 Reported by Hans Aberg.
1716
1717 2001-11-26 Marc Autret <autret_m@epita.fr>
1718
1719 * src/reader.c (parse_include_decl): New, not yet implemented.
1720 (read_declarations): Add case tok_include.
1721 * src/getargs.h (include): Add its extern definition.
1722 * src/getargs.c (include): New const char *.
1723 (getargs): Add case '-I'.
1724 * src/options.c (option_table): Add include as command line and
1725 percent option.
1726 * src/lex.h (token_t): Add tok_include.
1727
1728 2001-11-26 Akim Demaille <akim@epita.fr>
1729
1730 * src/reader.c (readgram): Make sure rules for mid-rule actions
1731 have a lineno equal to that of their host rule.
1732 Reported by Hans Aberg.
1733 * tests/regression.at (Rule Line Numbers): New.
1734
1735 2001-11-26 Akim Demaille <akim@epita.fr>
1736
1737 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
1738 size_ts.
1739
1740 2001-11-26 Akim Demaille <akim@epita.fr>
1741
1742 * src/complain.c, src/complain.h (error): Remove, provided by
1743 lib/error.[ch].
1744
1745 2001-11-26 Akim Demaille <akim@epita.fr>
1746
1747 * src/reader.c (read_declarations): Don't abort on tok_illegal,
1748 issue an error message.
1749 * tests/regression.at (Invalid %directive): New.
1750 Reported by Hans Aberg.
1751
1752 2001-11-26 Akim Demaille <akim@epita.fr>
1753
1754 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
1755 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1756
1757 2001-11-26 Akim Demaille <akim@epita.fr>
1758
1759 * src/conflicts.c (conflicts_print): Don't complain at all when
1760 there are no reduce/reduce conflicts, and as many shift/reduce
1761 conflicts as expected.
1762 * tests/regression.at (%expect right): Adjust.
1763
1764 2001-11-23 Akim Demaille <akim@epita.fr>
1765
1766 * lib/alloca.c: Update, from fileutils.
1767
1768 2001-11-23 Akim Demaille <akim@epita.fr>
1769
1770 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
1771
1772 2001-11-23 Akim Demaille <akim@epita.fr>
1773
1774 * src/system.h: Include alloca.h.
1775 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
1776
1777 2001-11-23 Akim Demaille <akim@epita.fr>
1778
1779 * src/print_graph.c (print_actions): Remove `rule', unused.
1780 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
1781 pacify GCC's signed < unsigned warnings.
1782 * src/closure.c (itemsetsize): Likewise.
1783 * src/reader.c (symbol_list_new): Static.
1784
1785 2001-11-23 Akim Demaille <akim@epita.fr>
1786
1787 Attaching lineno to buckets is stupid, since only one copy of each
1788 symbol is kept, only the line of the first occurrence is kept too.
1789
1790 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
1791 * src/reader.c (rline_allocated): Remove, unused.
1792 (symbol_list): Have a `line' member.
1793 (symbol_list_new): New.
1794 (readgram): Use it.
1795 * src/print.c (print_grammar): Output the rule line numbers.
1796 * tests/regression.at (Solved SR Conflicts)
1797 (Unresolved SR Conflicts): Adjust.
1798 Reported by Hans Aberg.
1799
1800 2001-11-22 Marc Autret <autret_m@epita.fr>
1801
1802 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
1803
1804 2001-11-22 Marc Autret <autret_m@epita.fr>
1805
1806 * src/muscle_tab.c (muscle_init): Remove initialization of
1807 skeleton muscle.
1808 * src/output.c (output_master_parser): Do it here.
1809
1810 2001-11-20 Akim Demaille <akim@epita.fr>
1811
1812 * po/sv.po: New.
1813 * configure.in (ALL_LINGUAS): Adjust.
1814 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
1815 longer contains strings to translate.
1816
1817 2001-11-19 Akim Demaille <akim@epita.fr>
1818
1819 * src/conflicts.c (conflicts_print): Add a missing \n.
1820
1821 2001-11-19 Akim Demaille <akim@epita.fr>
1822
1823 * src/nullable.c (nullable_print): New.
1824 (set_nullable): Call it when tracing.
1825 Better locality of variables.
1826
1827 2001-11-19 Akim Demaille <akim@epita.fr>
1828
1829 * src/print.c (print_actions): Better locality of variables.
1830
1831 2001-11-19 Akim Demaille <akim@epita.fr>
1832
1833 * src/derives.c (print_derives): Fix and enrich.
1834 * src/closure.c (print_fderives): Likewise.
1835
1836 2001-11-19 Akim Demaille <akim@epita.fr>
1837
1838 * src/closure.c (itemsetend): Remove, replaced with...
1839 (itemsetsize): new.
1840
1841 2001-11-19 Akim Demaille <akim@epita.fr>
1842
1843 * src/LR0.c (kernel_end): Remove, replaced with...
1844 (kernel_size): new.
1845
1846 2001-11-19 Akim Demaille <akim@epita.fr>
1847
1848 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
1849 to clarify.
1850
1851 2001-11-19 Akim Demaille <akim@epita.fr>
1852
1853 * src/closure.c (closure): Use arrays instead of pointers to clarify.
1854
1855 2001-11-19 Akim Demaille <akim@epita.fr>
1856
1857 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
1858 trace messages.
1859 * src/LR0.c: Likewise.
1860 (allocate_itemsets): Use arrays instead of pointers to clarify.
1861
1862 2001-11-19 Akim Demaille <akim@epita.fr>
1863
1864 * src/getargs.c (statistics_flag): Replace with...
1865 (trace_flag): New.
1866 (longopts): Accept --trace instead of --statistics.
1867 * src/getargs.h, src/options.c: Adjust.
1868 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
1869 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
1870
1871 2001-11-19 Akim Demaille <akim@epita.fr>
1872
1873 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
1874 pointers to clarify the code.
1875 (save_reductions, save_shifts): Factor common parts of alternatives.
1876
1877 2001-11-19 Akim Demaille <akim@epita.fr>
1878
1879 * src/LR0.c (new_state, get_state): Complete TRACE code.
1880 * src/closure.c: Include `reader.h' to get `tags', needed by the
1881 trace code.
1882 Rename the conditional DEBUG as TRACE.
1883 Output consistently TRACEs to stderr, not stdout.
1884 * src/derives.c: Likewise.
1885 * src/reduce.c: (inaccessable_symbols): Using if is better style
1886 than goto.
1887 Use `#if TRACE' instead of `#if 0' for tracing code.
1888
1889 2001-11-19 Akim Demaille <akim@epita.fr>
1890
1891 * src/system.h (LIST_FREE, shortcpy): New.
1892 * src/LR0.c: Use them.
1893 * src/output.c (free_itemsets, free_reductions, free_shifts):
1894 Remove, replaced by LIST_FREE.
1895
1896 2001-11-19 Akim Demaille <akim@epita.fr>
1897
1898 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
1899 (REDUCTIONS_ALLOC): New.
1900 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
1901 allocation.
1902
1903 2001-11-19 Akim Demaille <akim@epita.fr>
1904
1905 * src/LR0.c (new_state): Complete trace code.
1906 * src/nullable.c (set_nullable): Don't translate traces.
1907
1908 2001-11-19 Akim Demaille <akim@epita.fr>
1909
1910 * src/print_graph.c (print_core): Better locality of variables.
1911 * src/print.c (print_core): Likewise.
1912
1913 2001-11-19 Akim Demaille <akim@epita.fr>
1914
1915 * src/vcg.c: You do the output, so you are responsible of the
1916 handling of VCG syntax, in particular: use quotearg.
1917 * src/print_graph.c: Don't.
1918 (print_actions): Don't output the actions as part of the nodes,
1919 since that's the job of the edges.
1920 (print_state): Don't output by hand: fill the node description,
1921 and ask for its output.
1922
1923 2001-11-19 Akim Demaille <akim@epita.fr>
1924
1925 * src/bison.simple (yyparse): When verbosely reporting an error,
1926 no longer put additional quotes around token names.
1927 * tests/calc.at: Adjust.
1928
1929 2001-11-19 Akim Demaille <akim@epita.fr>
1930
1931 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
1932 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
1933 * src/output.c: Adjust.
1934
1935 2001-11-19 Akim Demaille <akim@epita.fr>
1936
1937 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
1938 (rule_t): this.
1939 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
1940
1941 2001-11-19 Akim Demaille <akim@epita.fr>
1942
1943 * src/gram.h (rule_t): New.
1944 (rule_table): New.
1945 (rrhs, rlhs): Remove, part of state_t.
1946 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
1947 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
1948 * src/reader.c, src/reduce.c: Adjust.
1949
1950 2001-11-19 Akim Demaille <akim@epita.fr>
1951
1952 * src/reader.c (symbols_output): New, extracted from...
1953 (packsymbols): Here.
1954 (reader): Call it.
1955
1956 2001-11-19 Akim Demaille <akim@epita.fr>
1957
1958 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
1959 (maxrhs): this new function.
1960
1961 2001-11-19 Akim Demaille <akim@epita.fr>
1962
1963 * src/lalr.c (F): New macro to access the variable F.
1964 Adjust.
1965
1966 2001-11-19 Akim Demaille <akim@epita.fr>
1967
1968 * src/lalr.h (LA): New macro to access the variable LA.
1969 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1970 * src/lalr.c: Adjust.
1971
1972 2001-11-19 Akim Demaille <akim@epita.fr>
1973
1974 * src/lalr.c (initialize_LA): Only initialize LA. Let...
1975 (set_state_table): handle the `lookaheads' members.
1976
1977 2001-11-19 Akim Demaille <akim@epita.fr>
1978
1979 * src/lalr.h (lookaheads): Removed array, whose contents is now
1980 a member of...
1981 (state_t): this structure.
1982 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1983 Adjust.
1984
1985 2001-11-19 Akim Demaille <akim@epita.fr>
1986
1987 * src/lalr.h (consistent): Removed array, whose contents is now
1988 a member of...
1989 (state_t): this structure.
1990 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1991 Adjust.
1992
1993 2001-11-19 Akim Demaille <akim@epita.fr>
1994
1995 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
1996 contents are now members of...
1997 (state_t): this structure.
1998 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1999 Adjust.
2000
2001 2001-11-19 Akim Demaille <akim@epita.fr>
2002
2003 * src/lalr.h (state_t): New.
2004 (state_table): Be a state_t * instead of a core **.
2005 (accessing_symbol): Remove, part of state_t.
2006 * src/lalr.c: Adjust.
2007 (set_accessing_symbol): Merge into...
2008 (set_state_table): this.
2009 * src/print_graph.c, src/conflicts.c: Adjust.
2010
2011 2001-11-14 Akim Demaille <akim@epita.fr>
2012
2013 * tests/calc.at, tests/output.at, tests/regression.at,
2014 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
2015 now the tests are run in private dirs, therefore AC_CLEANUP and
2016 family can be simplified to 0-ary.
2017 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
2018 use abs. path to find config.h.
2019 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
2020 stderr, there can be way too much random noise.
2021 Instead pass -Werror to GCC and rely on the exit status.
2022 Reported by Wolfram Wagner.
2023
2024 2001-11-14 Akim Demaille <akim@epita.fr>
2025
2026 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
2027 defined only if yyoverflow is defined, to avoid `warning: unused
2028 variable `yyvs1''.
2029 Reported by The Test Suite.
2030
2031 2001-11-14 Akim Demaille <akim@epita.fr>
2032
2033 * src/print.c: Include reduce.h.
2034 Reported by Hans Aberg.
2035
2036 2001-11-14 Akim Demaille <akim@epita.fr>
2037
2038 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
2039 Revert a previous patch: these are really const.
2040 * src/conflicts.c (conflict_report): Additional useless pair of
2041 braces to pacify GCC's warnings for `if () if () {} else {}'.
2042 * src/lex.c (parse_percent_token): Replace equal_offset with
2043 arg_offset.
2044 arg is const.
2045 Be sure to strdup `arg' when used, since there is no reason for
2046 token_buffer not to change.
2047
2048 2001-11-14 Akim Demaille <akim@epita.fr>
2049
2050 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
2051 definition.
2052 * src/main.c (main): Use them.
2053 Suggested by Hans Aberg.
2054
2055 2001-11-12 Akim Demaille <akim@epita.fr>
2056
2057 * src/system.h (ngettext): Now that we use ngettext, be sure to
2058 provide a default definition when NLS are not used.
2059
2060 2001-11-12 Akim Demaille <akim@epita.fr>
2061
2062 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
2063 Use @kbd to denote user input.
2064 (Language and Grammar): ANSIfy the example.
2065 Adjust its layout for info/notinfo.
2066 (Location Tracking Calc): Output error messages to stderr.
2067 Output locations in a more GNUtically correct way.
2068 Fix a couple of Englishos.
2069 Adjust @group/@end group pairs.
2070
2071 2001-11-12 Akim Demaille <akim@epita.fr>
2072
2073 %expext was not functioning at all.
2074
2075 * src/conflicts.c (expected_conflicts): Set to -1.
2076 (conflict_report): Use ngettext.
2077 (conflicts_print): Check %expect and make its violation an error.
2078 * doc/bison.texinfo (Expect Decl): Adjust.
2079 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
2080 * tests/regression.at (%expect not enough, %expect right)
2081 (%expect too much): New.
2082
2083 2001-11-12 Akim Demaille <akim@epita.fr>
2084
2085 * tests/regression.at (Conflicts): Rename as...
2086 (Unresolved SR Conflicts): this.
2087 (Solved SR Conflicts): New.
2088
2089 2001-11-12 Akim Demaille <akim@epita.fr>
2090
2091 * src/reduce.c (print_results): Rename as...
2092 (reduce_output): This.
2093 Output to OUT, passed as argument, instead of output_obstack.
2094 (dump_grammar): Likewise.
2095 (reduce_free): New.
2096 Also free V1.
2097 (reduce_grammar): No longer call reduce_output, since...
2098 * src/print.c (print_results): do it.
2099 * src/main.c (main): Call reduce_free;
2100
2101 2001-11-12 Akim Demaille <akim@epita.fr>
2102
2103 * src/conflicts.c (print_reductions): Accept OUT as argument.
2104 Output to it, not to output_obstack.
2105 * src/print.c (print_actions): Adjust.
2106
2107 2001-11-12 Akim Demaille <akim@epita.fr>
2108
2109 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
2110 the result instead of using...
2111 (src_total, rrc_total, src_count, rrc_count): Remove.
2112 (any_conflicts): Remove.
2113 (print_conflicts): Split into...
2114 (conflicts_print, conflicts_output): New.
2115 * src/conflicts.h: Adjust.
2116 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
2117 * src/print.c (print_grammar): Issue `\n' between two rules.
2118 * tests/regression.at (Conflicts): New.
2119 Reported by Tom Lane.
2120
2121 2001-11-12 Akim Demaille <akim@epita.fr>
2122
2123 * tests/regression.at (Invalid input): Remove, duplicate with
2124 ``Invalid input: 1''.
2125
2126 2001-11-12 Akim Demaille <akim@epita.fr>
2127
2128 * tests/torture.at (AT_DATA_STACK_TORTURE)
2129 (Exploding the Stack Size with Alloca)
2130 (Exploding the Stack Size with Malloc): New.
2131
2132 2001-11-12 Akim Demaille <akim@epita.fr>
2133
2134 * src/bison.simple (YYSTACK_REALLOC): New.
2135 (yyparse) [!yyoverflow]: Use it and free the old stack.
2136 Reported by Per Allansson.
2137
2138 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
2139
2140 * src/bison.simple: Define type yystype instead of YYSTYPE, and
2141 define CPP macro, which substitute YYSTYPE by yystype.
2142 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
2143 with yyltype/YYLTYPE. This allows inclusion of the generated
2144 header within the parser if the compiler, such as GGC, accepts
2145 multiple equivalent #defines.
2146 From Akim.
2147
2148 2001-11-05 Akim Demaille <akim@epita.fr>
2149
2150 * src/reader.c (symbols_output): New, extracted from...
2151 (packsymbols): here.
2152 (reader): Adjust.
2153
2154 2001-11-05 Akim Demaille <akim@epita.fr>
2155
2156 * src/lex.c (parse_percent_token): s/quotearg/quote/.
2157
2158 2001-11-05 Akim Demaille <akim@epita.fr>
2159
2160 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
2161 pattern.
2162
2163 2001-11-05 Akim Demaille <akim@epita.fr>
2164
2165 * src/options.h (struct option_table_struct): set_flags is void*.
2166 * src/options.c (longopts): Support `--output' and `%output'.
2167 (usage): Adjust.
2168 * src/lex.h (tok_setopt): Remove, replaced with...
2169 (tok_intopt, tok_stropt): these new guys.
2170 * src/lex.c (getopt.h): Not needed.
2171 (token_buffer, unlexed_token_buffer): Not const.
2172 (percent_table): Promote `-' over `_' in directive names.
2173 Active `%name-prefix', `file-prefix', and `output'.
2174 (parse_percent_token): Accept possible arguments to directives.
2175 Promote `-' over `_' in directive names.
2176
2177 2001-11-04 Akim Demaille <akim@epita.fr>
2178
2179 * doc/bison.texinfo (Decl Summary): Split the list into
2180 `directives for grammars' and `directives for bison'.
2181 Sort'em.
2182 Add description of `%name-prefix', `file-prefix', and `output'.
2183 Promote `-' over `_' in directive names.
2184 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
2185 Simplify the description of `--name-prefix'.
2186 Promote `-' over `_' in directive names.
2187 Promote `--output' over `--output-file'.
2188 Fix the description of `--defines'.
2189 * tests/output.at: Exercise %file-prefix and %output.
2190
2191 2001-11-02 Akim Demaille <akim@epita.fr>
2192
2193 * doc/refcard.tex: Update.
2194
2195 2001-11-02 Akim Demaille <akim@epita.fr>
2196
2197 * src/symtab.h (SUNDEF): New.
2198 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
2199 stand for `uninitialized', instead of 0.
2200 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
2201 * src/lex.c (lex): Adjust.
2202
2203 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
2204 Number it 0.
2205 Let yylex return it instead of a plain 0.
2206 Reported by Dick Streefland.
2207
2208 2001-11-02 Akim Demaille <akim@epita.fr>
2209
2210 * tests/regression.at (Mixing %token styles): New test.
2211
2212 2001-11-02 Akim Demaille <akim@epita.fr>
2213
2214 * src/reader.c (parse_thong_decl): Formatting changes.
2215 (token_translations_init): New, extracted from...
2216 (packsymbols): Here.
2217 Adjust.
2218
2219 2001-11-01 Akim Demaille <akim@epita.fr>
2220
2221 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
2222 Check that `9foo.y' produces correct cpp guards.
2223 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
2224 guards.
2225 Reported by Wwp.
2226
2227 2001-11-01 Akim Demaille <akim@epita.fr>
2228
2229 * tests/regression.at (Invalid input: 2): New.
2230 * src/lex.c (unlexed_token_buffer): New.
2231 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
2232 too.
2233 Reported by Wwp.
2234
2235 2001-11-01 Akim Demaille <akim@epita.fr>
2236
2237 * tests/calc.at: Catch up with 1.30.
2238 * configure.in: Bump to 1.49a.
2239 Adjust to newer Autotest.
2240
2241 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
2242
2243 * src/conflicts.c: Move global variables rrc_total and src_total ...
2244 (print_conflicts): here.
2245 * src/output.c (output): Free global variable user_toknums.
2246 * src/lex.c (token_obstack): Become static.
2247
2248 2001-10-18 Akim Demaille <akim@epita.fr>
2249
2250 * tests/atlocal.in (GCC): Add.
2251 * tests/calc.at: s/m4_match/m4_bmatch/.
2252 s/m4_patsubst/m4_bpatsubst/.
2253 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
2254 * configure.in: AC_SUBST(GCC).
2255
2256 2001-10-14 Marc Autret <autret_m@epita.fr>
2257
2258 * src/options.c (create_long_option_table): Fix.
2259
2260 2001-10-10 Akim Demaille <akim@epita.fr>
2261
2262 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
2263
2264 2001-10-04 Akim Demaille <akim@epita.fr>
2265
2266 * src/reader.c (parse_union_decl): Push the caracters in
2267 union_obstack, not attrs_obstack.
2268
2269 2001-10-04 Akim Demaille <akim@epita.fr>
2270
2271 Merge in the branch 1.29.
2272
2273 * src/reader.c (packsymbols): Use a temporary obstack for
2274 `%%tokendef', since output_stack is already used elsewhere.
2275
2276 2001-10-02 Akim Demaille <akim@epita.fr>
2277
2278 Bump 1.29d.
2279
2280 2001-10-02 Akim Demaille <akim@epita.fr>
2281
2282 Version 1.29c.
2283
2284 2001-10-02 Akim Demaille <akim@epita.fr>
2285
2286 * tests/regression.at (Invalid CPP headers): New.
2287 From Alexander Belopolsky.
2288 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
2289
2290 2001-10-02 Akim Demaille <akim@epita.fr>
2291
2292 * tests/regression.at (Invalid input): New.
2293 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
2294 Reported by Shura.
2295
2296 2001-10-02 Akim Demaille <akim@epita.fr>
2297
2298 * tests/calc.at: Now that --debug works, the tests must be adjusted.
2299
2300 2001-10-02 Akim Demaille <akim@epita.fr>
2301
2302 * src/output.c (output_parser): Assert `skeleton'.
2303 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
2304 systems.
2305 From Shura.
2306
2307 2001-10-01 Marc Autret <autret_m@epita.fr>
2308
2309 * src/lex.h: Echo modifications.
2310 * src/lex.c (unlex): Parameter is now token_t.
2311 From Hans Aberg.
2312
2313 2001-10-01 Marc Autret <autret_m@epita.fr>
2314
2315 * src/main.c: Include lex.h.
2316 From Hans Aberg.
2317
2318 2001-09-29 Akim Demaille <akim@epita.fr>
2319
2320 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
2321
2322 2001-09-28 Akim Demaille <akim@epita.fr>
2323
2324 * tests/testsuite.at: Update to newer Autotest.
2325 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
2326
2327 2001-09-27 Akim Demaille <akim@epita.fr>
2328
2329 Position independent wrapper.
2330
2331 * tests/bison: Remove.
2332 * tests/bison.in: New.
2333 * configure.in: Adjust.
2334
2335 2001-09-27 Paul Eggert <eggert@twinsun.com>
2336
2337 Port quotearg fixes from tar 1.13.24.
2338
2339 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
2340 tm to be declared.
2341 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
2342 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
2343
2344 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
2345 * m4/mbrtowc.m4: New file.
2346 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
2347 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
2348
2349 2001-09-27 Akim Demaille <akim@epita.fr>
2350
2351 Bump to 1.29c.
2352
2353 2001-09-27 Akim Demaille <akim@epita.fr>
2354
2355 Version 1.29b.
2356
2357 2001-09-25 Akim Demaille <akim@epita.fr>
2358
2359 * src/system.h: Include `xalloc.h'.
2360 Remove it from the C files.
2361 * src/files.c (output_files): Free the obstacks.
2362 * src/lex.c (init_lex): Rename as...
2363 (lex_init): this.
2364 (lex_free): New.
2365 * src/main.c (main): Use it.
2366
2367 2001-09-24 Marc Autret <autret_m@epita.fr>
2368
2369 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
2370 to output informations in fout (FILE*).
2371 (open_graph, close_graph): Likewise.
2372 (output_graph, output_edge, output_node): Likewise.
2373 * src/vcg.h: Update function prototypes.
2374 * src/print_graph.c (print_graph): Open output graph file.
2375 (print_actions): Adjust.
2376 * src/files.h: Remove extern declaration.
2377 * src/files.c: Remove graph_obstack declaration.
2378 (open_files): Remove graph_obstack initialization.
2379 (output_files): Remove graph_obstack saving.
2380
2381 2001-09-24 Marc Autret <autret_m@epita.fr>
2382
2383 * src/files.c (compute_output_file_names): Fix.
2384
2385 2001-09-24 Marc Autret <autret_m@epita.fr>,
2386 Akim Demaille <akim@epita.fr>
2387
2388 * src/reader.c (reader): Remove call to free_symtab ().
2389 * src/main.c (main): Call it here.
2390 Include symtab.h.
2391 * src/conflicts.c (initialize_conflicts): Rename as...
2392 (solve_conflicts): this.
2393 * src/print.c (print_core, print_actions, print_state)
2394 (print_grammar): Dump to a file instead a `output_obstack'.
2395 (print_results): Dump `output_obstack', and then proceed with the
2396 FILE *.
2397 * src/files.c (compute_output_file_names, close_files): New.
2398 (output_files): Adjust.
2399 * src/main.c (main): Adjust.
2400
2401 2001-09-23 Marc Autret <autret_m@epita.fr>
2402
2403 * src/files.c (compute_header_macro): Computes header macro name
2404 from spec_defines_file when given.
2405
2406 2001-09-23 Marc Autret <autret_m@epita.fr>
2407
2408 * src/files.c (output_files): Add default extensions.
2409
2410 2001-09-22 Akim Demaille <akim@epita.fr>
2411
2412 * src/conflicts.c (finalize_conflicts): Rename as...
2413 (free_conflicts): this.
2414
2415 2001-09-22 Akim Demaille <akim@epita.fr>
2416
2417 * src/gram.c (gram_free): Rename back as...
2418 (dummy): this.
2419 (output_token_translations): Free `token_translations'.
2420 * src/symtab.c (free_symtab): Free the tag field.
2421
2422 2001-09-22 Akim Demaille <akim@epita.fr>
2423
2424 Remove `translations' as it is always set to true.
2425
2426 * src/gram.h: Adjust.
2427 * src/reader.c (packsymbols, parse_token_decl): Adjust
2428 * src/print.c (print_grammar): Adjust.
2429 * src/output.c (output_token_translations): Adjust.
2430 * src/lex.c (lex): Adjust.
2431 * src/gram.c: Be sure the set pointers to NULL.
2432 (dummy): Rename as...
2433 (gram_free): this.
2434
2435 2001-09-22 Akim Demaille <akim@epita.fr>
2436
2437 * configure.in: Invoke AM_LIB_DMALLOC.
2438 * src/system.h: Use dmalloc.
2439 * src/LR0.c: Be sure to have pointers initialized to NULL.
2440 (allocate_itemsets): Allocate kernel_items only if needed.
2441
2442 2001-09-22 Akim Demaille <akim@epita.fr>
2443
2444 * configure.in: Bump to 1.29b.
2445 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
2446 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
2447 need xmalloc.c in calc.y.
2448 From Pascal Bart.
2449
2450 2001-09-21 Akim Demaille <akim@epita.fr>
2451
2452 Version 1.29a.
2453 * Makefile.maint, config/config.guess, config/config.sub,
2454 * config/missing: Update from masters.
2455 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
2456 upon package.m4.
2457 * configure.in (ALL_LINGUAS): Add `tr'.
2458
2459 2001-09-21 Akim Demaille <akim@epita.fr>
2460
2461 * tests/Makefile.am (package.m4): Move to...
2462 ($(srcdir)/$(TESTSUITE)): here.
2463
2464 2001-09-20 Akim Demaille <akim@epita.fr>
2465
2466 * src/complain.c: No longer try to be standalone: use system.h.
2467 Don't assume __STDC__ is defined to 1. Just test if it is defined.
2468 * src/complain.h: Likewise.
2469 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
2470 Remove the unused variable `n'.
2471 From Albert Chin-A-Young.
2472
2473 2001-09-18 Marc Autret <autret_m@epita.fr>
2474
2475 * doc/bison.1: Update.
2476 * doc/bison.texinfo (Bison Options): Update --defines and --graph
2477 descriptions.
2478 (Option Cross Key): Update.
2479 Add --graph.
2480
2481 2001-09-18 Marc Autret <autret_m@epita.fr>
2482
2483 * tests/regression.at: New test (comment in %union).
2484
2485 2001-09-18 Marc Autret <autret_m@epita.fr>
2486
2487 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
2488 do that.
2489 Reported by Keith Browne.
2490
2491 2001-09-18 Marc Autret <autret_m@epita.fr>
2492
2493 * tests/output.at: Add tests for --defines and --graph.
2494
2495 2001-09-18 Marc Autret <autret_m@epita.fr>
2496
2497 * tests/output.at: Removes tests of %{header,src}_extension features.
2498
2499 2001-09-18 Akim Demaille <akim@epita.fr>
2500
2501 * tests/Makefile.am (package.m4): New.
2502 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
2503 (_AT_CHECK_CALC_ERROR): Likewise.
2504 Factor the `, ' part of verbose error messages.
2505
2506 2001-09-18 Marc Autret <autret_m@epita.fr>
2507
2508 * src/getargs.c (longopts): Declare --defines and --graph as options
2509 with optional arguments.
2510 * src/files.h: Add extern declarations.
2511 * src/files.c (spec_graph_file, spec_defines_file): New.
2512 (output_files): Update.
2513 Remove CPP-outed code.
2514
2515 2001-09-18 Marc Autret <autret_m@epita.fr>
2516
2517 Turn off %{source,header}_extension feature.
2518
2519 * src/files.c (compute_exts_from_gf): Update.
2520 (compute_exts_from_src): Update.
2521 (output_files): CPP-out useless code.
2522 * src/files.h: Remove {header,source}_extension extern declarations.
2523 * src/reader.c (parse_dquoted_param): CPP-out.
2524 (parse_header_extension_decl): Remove.
2525 (parse_source_extension_decl): Remove.
2526 (read_declarations): Remove cases tok_{hdrext,srcext}.
2527 * src/lex.c (percent_table): Remove {header,source}_extension entries.
2528 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
2529
2530 2001-09-10 Akim Demaille <akim@epita.fr>
2531
2532 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
2533 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
2534 (AT_CHECK_OUTPUT): this.
2535 Merely check ls' exit status, its output is useless.
2536
2537 2001-09-10 Akim Demaille <akim@epita.fr>
2538
2539 * tests/calc.at: Use m4_match.
2540 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
2541
2542 2001-09-10 Marc Autret <autret_m@epita.fr>,
2543 Akim Demaille <akim@epita.fr>
2544
2545 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
2546 enum color_e.
2547 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
2548 to `normal'.
2549 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
2550 * src/lex.h: Adjust prototype.
2551 (token_t): Add `tok_undef'.
2552 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
2553 (parse_percent_token): Now returns token_t.
2554 Add default statement in switch.
2555 (lex): Separate `c' as an input variable, from the token_t result
2556 part.
2557 (unlexed): Is a token_t.
2558
2559 2001-09-10 Akim Demaille <akim@epita.fr>
2560
2561 * configure.in: Bump to 1.29a.
2562
2563 2001-09-07 Akim Demaille <akim@epita.fr>
2564
2565 Version 1.29.
2566
2567 2001-08-30 Akim Demaille <akim@epita.fr>
2568
2569 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
2570 * m4/atconfig.m4: Remove.
2571 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
2572 * tests/bison: New.
2573 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
2574 m4_if, m4_patsubst, and m4_regexp.
2575 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
2576 `input' file instead of echo.
2577
2578 2001-08-29 Akim Demaille <akim@epita.fr>
2579
2580 Bump to 1.28e.
2581
2582 2001-08-29 Akim Demaille <akim@epita.fr>
2583
2584 Version 1.28d.
2585
2586 2001-08-29 Paul Eggert <eggert@twinsun.com>
2587
2588 * src/bison.simple (yyparse): Don't take the address of an
2589 item before the start of an array, as that doesn't conform to
2590 the C Standard.
2591
2592 2001-08-29 Robert Anisko <anisko_r@epita.fr>
2593
2594 * doc/bison.texinfo (Location Tracking Calc): New node.
2595
2596 2001-08-29 Paul Eggert <eggert@twinsun.com>
2597
2598 * src/output.c (output): Do not define const, as this now
2599 causes more problems than it cures.
2600
2601 2001-08-29 Akim Demaille <akim@epita.fr>
2602
2603 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
2604 the nodes.
2605 Be sure to tag the `detailmenu'.
2606
2607 2001-08-29 Akim Demaille <akim@epita.fr>
2608
2609 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
2610 download in a tmp dir.
2611
2612 2001-08-28 Marc Autret <autret_m@epita.fr>
2613
2614 * config/depcomp: New file.
2615
2616 2001-08-28 Marc Autret <autret_m@epita.fr>
2617
2618 * doc/bison.1 (mandoc): Adjust.
2619 From Juan Manuel Guerrero.
2620
2621 2001-08-28 Marc Autret <autret_m@epita.fr>
2622
2623 * src/print_graph.c (print_state): Fix.
2624
2625 2001-08-27 Marc Autret <autret_m@epita.fr>
2626
2627 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
2628 char * members.
2629 Echo modifications to the functions prototypes.
2630 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
2631
2632 2001-08-27 Marc Autret <autret_m@epita.fr>
2633
2634 * src/vcg.c: Include `xalloc.h'.
2635 (add_colorentry): New.
2636 (add_classname): New.
2637 (add_infoname): New.
2638 * src/vcg.h: Add new prototypes.
2639
2640 2001-08-27 Akim Demaille <akim@epita.fr>
2641
2642 * Makefile.maint: Sync. again with CVS Autoconf.
2643
2644 2001-08-27 Akim Demaille <akim@epita.fr>
2645
2646 * Makefile.maint: Formatting changes.
2647 (po-update, cvs-update, update): New targets.
2648 (AMTAR): Remove.
2649
2650 2001-08-27 Akim Demaille <akim@epita.fr>
2651
2652 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2653 * Makefile.maint: Sync. with CVS Autoconf.
2654
2655 2001-08-27 Marc Autret <autret_m@epita.fr>
2656
2657 * src/vcg.h (struct infoname_s): New.
2658 (struct colorentry_s): New.
2659 (graph_s): New fields {vertical,horizontal}_order in structure.
2660 Add `infoname' field.
2661 Add `colorentry' field;
2662 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
2663 (G_HORIZONTAL_ORDER): New.
2664 (G_INFONAME): New.
2665 (G_COLORENTRY): New.
2666 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
2667 Add output of `infoname'.
2668 Add output of `colorentry'.
2669
2670 2001-08-27 Marc Autret <autret_m@epita.fr>
2671
2672 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
2673 This one shadowed a global parameter.
2674
2675 2001-08-24 Marc Autret <autret_m@epita.fr>
2676
2677 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
2678 instead of `unsigned'.
2679 (print_state): Do not call obstack_object_size () in obstack_grow ()
2680 to avoid macro variables shadowing.
2681
2682 2001-08-23 Marc Autret <autret_m@epita.fr>
2683
2684 * src/lex.c (percent_table): Typo: s/naem/name/.
2685 Add graph option.
2686 Normalize new options declarations.
2687
2688 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
2689
2690 * tests/suite.at: Exercise %header_extension and %source_extension.
2691
2692 2001-08-16 Marc Autret <autret_m@epita.fr>
2693
2694 * src/reader.c (parse_dquoted_param): New.
2695 (parse_header_extension_decl): Use it.
2696 (parse_source_extension_decl): Likewise.
2697
2698 2001-08-16 Marc Autret <autret_m@epita.fr>
2699
2700 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
2701 (get_xxxx_str): Use assert () instead of complain ().
2702 Remove return invokations in default cases.
2703 (get_decision_str): Modify default behaviour. Remove second argument.
2704 Echo modifications on calls.
2705 (output_graph): Fix.
2706
2707 2001-08-16 Marc Autret <autret_m@epita.fr>
2708
2709 * src/getargs.c (usage): Update with ``-g, --graph''.
2710
2711 2001-08-16 Marc Autret <autret_m@epita.fr>
2712
2713 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
2714 (Option Cross Key): Likewise.
2715 * doc/bison.1: Update.
2716
2717 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
2718
2719 * src/output.c (output_master_parser): Don't finish action_obstack.
2720 (output_parser): Don't care about the muscle action, here.
2721 (prepare): Copy the action_obstack in the action muscle.
2722 (output): Free action_obstack.
2723
2724 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2725
2726 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
2727 will contain `%union' declaration.
2728 (parse_union_decl): Delete #line directive output.
2729 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
2730 informations about %union.
2731 (parse_union_decl): Copy the union_obstack in the muscle stype.
2732 * src/bison.simple: Add new #line directive.
2733 Add typdef %%stype YYSTYPE.
2734
2735 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2736
2737 * src/bison.simple: Add new `#line' directive.
2738
2739 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
2740
2741 * src/bison.simple: New `#line' directive.
2742 * src/output.c (output_parser): Support new dynamic muscle input_line.
2743
2744 2001-09-22 Marc Autret <autret_m@epita.fr>
2745
2746 * src/output.c (output_master_parser): New.
2747 (output_parser): Be more re-entrant.
2748
2749 2001-09-21 Marc Autret <autret_m@epita.fr>
2750
2751 * src/reader.c (copy_definition, parse_union_decl): Update and use
2752 `linef' muscle.
2753 (copy_action): Likewise.
2754 Use obstack_1grow ().
2755 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
2756
2757 2001-09-21 Marc Autret <autret_m@epita.fr>
2758
2759 * src/options.c (option_table): Adjust.
2760 * src/lex.c (parse_percent_token): Fix.
2761
2762 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2763
2764 * src/options.c (symtab.h): Include it, need by lex.h.
2765
2766 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2767
2768 * src/lex.c (parse_percent_token): Change type of variable `tx', which
2769 is now an option_table_struct*.
2770 (option_strcmp): New function option_strcmp.
2771 (parse_percent_token): Call option_strcmp.
2772 * src/getargs.c (xalloc.h, options.h): Include it.
2773 (getargs): Call create_long_option_table.
2774 (getargs): Free longopts at the end of the function.
2775 (shortopts): Move in options.c.
2776 * src/options.c (create_long_option_table): New function. Convert
2777 information from option_table to option structure.
2778 * src/reader.c (options.h): Include it.
2779
2780 * src/Makefile.am: Adjust.
2781 * src/options.c (option_table): Create from longopts and percent_table.
2782 * src/getargs.c (longopts): Delete.
2783 * src/lex.c (struct percent_table_struct): Delete.
2784 (percent_table): Delete.
2785 (options.h): Include it.
2786 * src/options.c: Create.
2787 * src/options.h: Create.
2788 Declare enum opt_access_e.
2789 Define struct option_table_struct.
2790
2791 2001-09-20 Marc Autret <autret_m@epita.fr>
2792
2793 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
2794 sections of Bison.
2795
2796 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
2797
2798 * src/bison.simple: s/%%filename/%%skeleton.
2799 * src/muscle_tab.c (getargs.h): Include it.
2800 (muscle_init): Insert new muscle skeleton.
2801
2802 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
2803
2804 * src/output.c (output_parser): Delete unused variable actions_dumped.
2805
2806 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
2807
2808 * src/output.c (output): Delete call to reader_output_yylsp.
2809 * src/reader.c (reader): Likewise.
2810 * src/reader.h: Delete declaration of reader_output_yylsp.
2811
2812 2001-09-02 Marc Autret <autret_m@epita.fr>
2813
2814 * src/reader.c: Include muscle_tab.h.
2815 (parse_union_decl): Update.
2816 (parse_macro_decl): Rename parse_muscle_decl.
2817 Update to use renamed functions and variable.
2818 (read_declarations, copy_action, read_additionnal_code, : Updated
2819 with correct variables and functions names.
2820 (packsymbols, reader): Likewise.
2821
2822 * src/reader.h (muscle_obstack): Extern declaration update.
2823
2824 * src/output.c: Include muscle_tab.h
2825 In all functions using macro_insert, change by using muscle_insert ().
2826 (macro_obstack): Rename muscle_obstack.
2827 Echo modifications in the whole file.
2828 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
2829 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
2830 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
2831
2832 * src/muscle_tab.h: Update double inclusion macros.
2833 (macro_entry_s): Rename muscle_entry_s.
2834 Update prototypes.
2835
2836 * src/muscle_tab.c: Include muscle_tab.h.
2837 Rename macro_tabble to muscle_table.
2838 (mhash1, mhash2, mcmp): Use muscle_entry.
2839 (macro_init): Rename muscle_init. Update.
2840 (macro_insert): Rename muscle_insert. Update.
2841 (macro_find): Rename muscle_find. Update.
2842
2843 * src/main.c: Include muscle_tab.h.
2844 (main): Call muscle_init ().
2845 * src/Makefile.am (bison_SOURCES): Echo modifications.
2846
2847 2001-09-02 Marc Autret <autret_m@epita.fr>
2848
2849 Now the files macro_tab.[ch] are named muscle_tab.[ch].
2850
2851 * src/muscle_tab.c, src/muscle_tab.h: Add files.
2852
2853 2001-09-02 Marc Autret <autret_m@epita.fr>
2854
2855 * src/macrotab.c, src/macrotab.h: Remove.
2856
2857 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
2858
2859 * src/reader.c (copy_guard): Use muscle to specify the `#line'
2860 filename.
2861
2862 2001-09-01 Marc Autret <autret_m@epita.fr>
2863
2864 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
2865 to an explicit value to activate the feature. We do it here.
2866
2867 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2868
2869 * src/output.c (prepare): Delete the `filename' muscule insertion.
2870 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
2871 (parse_union_decl): Likewise.
2872 * src/macrotab.c (macro_init): Initialize filename by infile.
2873
2874 2001-08-31 Marc Autret <autret_m@epita.fr>
2875
2876 * src/bison.simple (YYLSP_NEEDED): New definition.
2877 * src/output.c (prepare): Add macro insertion of `locations_flag'
2878
2879 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2880
2881 * src/output.c (prepare): Delete insertion of previous muscles,
2882 and insert the `prefix' muscles.
2883 * src/macrotab.c (macro_init): Likewise.
2884 (macro_init): Initialization prefix directive by `yy'.
2885 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
2886 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
2887 yylval, yydebug, yyerror, yynerrs and yyparse.
2888 New directive `#define' to substitute yydebug, ... with option
2889 name_prefix.
2890
2891 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2892
2893 * src/main.c (main): Standardize.
2894 * src/output.c (output_table_data, output_parser): Likewise.
2895 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
2896
2897 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
2898
2899 * src/reader.c (read_additionnal_code): Rename %%user_code to
2900 %%epilogue.
2901 * src/output.c (output): Rename %%declarations to %%prologue.
2902 * src/bison.simple: Echo modifications.
2903
2904 2001-08-31 Marc Autret <autret_m@epita.fr>
2905
2906 * src/reader.c (readgram): CleanUp.
2907 (output_token_defines): Likewise.
2908 (packsymbols): Likewise.
2909 (reader): Likewise.
2910 * src/output.c (output): CPP-out useless code.
2911
2912 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2913
2914 * src/reader.c (reader): Delete obsolete call to function
2915 output_trailers and output_headers.
2916 * src/output.h: Remove obsolete functions prototypes of output_headers
2917 and output_trailers.
2918
2919 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
2920
2921 * src/main.c: Include macrotab.h.
2922 * src/macrotab.h (macro_entry_s): Constify fields.
2923 Adjust functions prototypes.
2924 * src/macrotab.c (macro_insert): Constify key and value.
2925 (macro_find): Constify key.
2926 (macro_insert): Include 'xalloc.h'
2927 (macro_insert): Use XMALLOC.
2928 (macro_find): Constify return value.
2929 * src/output.c (output_table_data): Rename table to table_data.
2930 (output_parser): Constify macro_key, macro_value.
2931
2932 2001-08-30 Marc Autret <autret_m@epita.fr>
2933
2934 * src/reader.c (parse_skel_decl): New.
2935 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2936 * src/lex.h (token_t): New token `tok_skel'.
2937 * src/lex.c (percent_table): Add skeleton option entry.
2938 Standardize.
2939
2940 2001-08-29 Marc Autret <autret_m@epita.fr>
2941
2942 * src/bison.simple: Add %%user_code directive at the end.
2943 * src/reader.c (read_additionnal_code): New.
2944 (reader): Use it.
2945 * src/output.c (output_program): Remove.
2946 (output): Update.
2947
2948 2001-08-28 Marc Autret <autret_m@epita.fr>
2949
2950 * src/output.c (output_actions): Clean up.
2951 (output_gram): CPP-out useless code.
2952 * src/reader.c (reader): Clean up, CPP-out useless code.
2953
2954 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
2955
2956 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
2957 directive.
2958 * src/bison.simple: Add `%%definitions'.
2959
2960 2001-08-28 Marc Autret <autret_m@epita.fr>
2961
2962 * config/depcomp: New file.
2963
2964 2001-08-27 Paul Eggert <eggert@twinsun.com>
2965
2966 * src/bison.simple (yyparse): Don't take the address of an
2967 item before the start of an array, as that doesn't conform to
2968 the C Standard.
2969
2970 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
2971
2972 * src/output.c (output): Remove the initialization of the macro
2973 obstack. It was done too late here.
2974
2975 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
2976 completely wrong.
2977 (reader): Initialize the macro obstack here, since we need it to grow
2978 '%define' directives.
2979
2980 * src/reader.h: Declare the macro obstack as extern.
2981
2982 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
2983
2984 * src/output.c (output_parser): Fix. Store single '%' characters in
2985 the output obstack instead of throwing them away.
2986
2987 2001-08-27 Akim Demaille <akim@epita.fr>
2988
2989 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2990
2991 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2992
2993 * lib/Makefile.am: Adjust.
2994
2995 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2996
2997 * src/bison.simple: Update and add '%%' directives.
2998
2999 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3000
3001 * src/reader.c (reader): Remove calls to 'output_headers' and
3002 'output_trailers'. Remove some C output.
3003 (readgram): Disable a piece of code that was writing a default
3004 definition for 'YYSTYPE'.
3005 (reader_output_yylsp): Remove.
3006 (packsymbols): Output token defintions to a macro.
3007 (copy_definition): Disable C output.
3008
3009 * src/reader.c (parse_macro_decl): New function used to parse macro
3010 declarations.
3011 (copy_string2): Put the body of copy_string into this new function.
3012 Add a parameter to let the caller choose whether he wants to copy the
3013 string delimiters or not.
3014 (copy_string): Be a simple call to copy_string2 with the last argument
3015 bound to true.
3016 (read_declarations): Add case for macro definition.
3017 (copy_identifier): New.
3018 (parse_macro_decl): Read macro identifiers using copy_identifier
3019 rather than lex.
3020
3021 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3022
3023 * src/output.c (prepare): Add prefixed names.
3024 (output_parser): Output semantic actions.
3025 (output_parser): Fix bug on '%%line' directives.
3026
3027 * src/output.c (output_headers): Remove. The C code printed by this
3028 function should now be in the skeletons.
3029 (output_trailers): Remove.
3030 (output): Disable call to 'reader_output_yylsp'.
3031 (output_rule_data): Do not output tables to the table obstack.
3032
3033 * src/output.c: Remove some C dedicated output.
3034 Improve the use of macro and output obstacks.
3035 (output_defines): Remove.
3036
3037 * src/output.c (output_token_translations): Associate 'translate'
3038 table with a macro. No output to the table obstack.
3039 (output_gram): Same for 'rhs' and 'prhs'.
3040 (output_stos): Same for 'stos'.
3041 (output_rule_data): Same for 'r1' and 'r2'.
3042 (token_actions): Same for 'defact'.
3043 (goto_actions): Same for 'defgoto'.
3044 (output_base): Same for 'pact' and 'pgoto'.
3045 (output_table): Same for 'table'.
3046 (output_check): Same for 'check'.
3047
3048 * src/output.c (output_table_data): New function.
3049 (output_short_table): Remove.
3050 (output_short_or_char_table): Remove.
3051
3052 * src/output.c (output_parser): Replace most of the skeleton copy code
3053 with something new. Skeletons are now processed character by character
3054 rather than line by line, and Bison looks for '%%' macros. This is the
3055 first step in making Bison's output process (a lot) more flexible.
3056 (output_parser): Use the macro table.
3057
3058 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3059
3060 * src/main.c (main): Initialize the macro table.
3061
3062 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3063
3064 * src/lex.c (percent_table): Add tok_define.
3065 * src/lex.h: Add tok_define.
3066
3067 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3068
3069 * src/macrotab.c: New file.
3070 * src/macrotab.h: New file.
3071 * src/Makefile.am: Update.
3072
3073 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
3074
3075 * lib/hash.c: New file.
3076 * lib/hash.h: New file.
3077 * lib/Makefile.am: Update.
3078
3079 2001-08-15 Akim Demaille <akim@epita.fr>
3080
3081 Version 1.28c.
3082
3083 2001-08-15 Marc Autret <autret_m@epita.fr>
3084
3085 * src/reader.c (readgram): Indent output macro YYSTYPE.
3086 (packsymbols): Likewise.
3087 (output_token_defines): Likewise.
3088 * src/files.c: Standardize.
3089 (compute_header_macro): New.
3090 (defines_obstack_save): New. Use compute_header_macro.
3091 (output_files): Update. Use defines_obstack_save.
3092
3093 2001-08-15 Akim Demaille <akim@epita.fr>
3094
3095 * doc/bison.texinfo (Table of Symbols): Document
3096 YYSTACK_USE_ALLOCA.
3097
3098 2001-08-15 Akim Demaille <akim@epita.fr>
3099
3100 * missing: Update from CVS Automake.
3101 * config/config.guess, config/config.sub, config/texinfo.tex:
3102 Update from gnu.org.
3103
3104 2001-08-15 Akim Demaille <akim@epita.fr>
3105
3106 * Makefile.maint: Sync with CVS Autoconf.
3107
3108 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
3109
3110 * doc/bison.texinfo: Include GNU Free Documentation License from
3111 `fdl.texi'.
3112 * doc/fdl.texi: Add to package.
3113
3114 2001-08-14 Marc Autret <autret_m@epita.fr>
3115
3116 Turn on %{source,header}_extension features.
3117
3118 * src/lex.c (percent_table): Un-CPP out header_extension and
3119 source_extension.
3120 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
3121 (compute_exts_from_src): Remove conditions. It restores priorities
3122 between options.
3123
3124 2001-08-14 Marc Autret <autret_m@epita.fr>
3125
3126 * src/files.c (compute_base_names): Add extensions computing when
3127 `--file-prefix' used.
3128 Standardize function calls.
3129
3130 2001-08-13 Marc Autret <autret_m@epita.fr>
3131
3132 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
3133 defining it (defined but null disables alloca).
3134
3135 2001-08-13 Marc Autret <autret_m@epita.fr>
3136
3137 * src/bison.simple (_yy_memcpy): CPP reformat.
3138
3139 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
3140
3141 * tests/atconfig.in (CPPFLAGS): Fix.
3142
3143 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
3144
3145 * doc/bison.texinfo: Include GNU General Public License from
3146 `gpl.texi'.
3147 * doc/gpl.texi: Add to package.
3148
3149 2001-08-10 Marc Autret <autret_m@epita.fr>
3150
3151 * src/print_graph.h: Fix.
3152 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
3153
3154 2001-08-10 Akim Demaille <akim@epita.fr>
3155
3156 * src/system.h: Provide default declarations for stpcpy, strndup,
3157 and strnlen.
3158
3159 2001-08-10 Robert Anisko <anisko_r@epita.fr>
3160
3161 * doc/bison.texinfo (Locations): Update @$ stuff.
3162
3163 2001-08-09 Robert Anisko <anisko_r@epita.fr>
3164
3165 * src/bison.simple (YYLLOC_DEFAULT): Update.
3166 (yyparse): Adjust.
3167
3168 2001-08-08 Marc Autret <autret_m@epita.fr>
3169
3170 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
3171 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
3172 Reported by Fabrice Bauzac.
3173
3174 2001-08-08 Marc Autret <autret_m@epita.fr>
3175
3176 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
3177 * src/vcg.c (output_node): Fix.
3178 * src/vcg.h: Cleanup.
3179 * src/print_graph.c: Add comments.
3180 (node_output_size): New global variable. Simplify the formatting of
3181 the VCG graph output.
3182 (print_actions): Unused code is now used. It notifies the final state
3183 and no action states in the VCG graph. It also give the reduce actions.
3184 The `shift and goto' edges are red and the `go to state' edges are
3185 blue.
3186 Get the current node name and node_obstack by argument.
3187 (node_obstack): New variable.
3188 (print_state): Manage node_obstack.
3189 (print_core): Use node_obstack given by argument.
3190 A node is not only computed here but in print_actions also.
3191 (print_graph): CPP out useless code instead of commenting it.
3192
3193 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
3194
3195 * tests/atconfig.in (CPPFLAGS): Fix.
3196
3197 2001-08-07 Akim Demaille <akim@epita.fr>
3198
3199 * src/print_graph.c (quote): New.
3200 (print_core): Use it.
3201
3202 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3203
3204 * src/vcg.c (complain.h): Include it.
3205 Unepitaize `return' invocations.
3206 [NDEBUG] (main): Remove.
3207 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
3208 * src/files.c (open_files): Initialize graph_obstack.
3209 * src/print_graph.c (print_actions): CPP out useless code.
3210 (print_core): Don't output the last `\n' in labels.
3211 Use `quote'.
3212 * src/files.c (output_files): Output the VCG file.
3213 * src/main.c (main): Invoke print_graph ();
3214
3215 2001-08-06 Marc Autret <autret_m@epita.fr>
3216
3217 Automaton VCG graph output.
3218 Using option ``-g'' or long option ``--graph'', you can generate
3219 a gram_filename.vcg file containing a VCG description of the LALR (1)
3220 automaton of your grammar.
3221
3222 * src/main.c: Call to print_graph() function.
3223 * src/getargs.h: Update.
3224 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
3225 (graph_flag): New flag.
3226 (longopts): Update.
3227 (getargs): Add case `g'.
3228 * src/files.c (graph_obstack): New obstack struct.
3229 (open_files): Initialize new obstack.
3230 (output_files): Saves graph_obstack if required.
3231 * src/files.h (graph_obstack): New extern declaration.
3232 * src/Makefile.am: Add new source files.
3233
3234 2001-08-06 Marc Autret <autret_m@epita.fr>
3235
3236 * src/print_graph.c, src/print_graph.h (graph): New.
3237 * src/vcg.h: New file.
3238 * src/vcg.c: New file, VCG graph handling.
3239
3240 2001-08-06 Marc Autret <autret_m@epita.fr>
3241
3242 Add of %source_extension and %header_extension which specify
3243 the source or/and the header output file extension.
3244
3245 * src/files.c (compute_base_names): Remove initialisation of
3246 src_extension and header_extension.
3247 (compute_exts_from_gf): Update.
3248 (compute_exts_from_src): Update.
3249 (output_files): Update.
3250 * src/reader.c (parse_header_extension_decl): New.
3251 (parse_source_extension_decl): New.
3252 (read_declarations): New case statements for the new tokens.
3253 * src/lex.c (percent_table): Add entries for %source_extension
3254 and %header_extension.
3255 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
3256
3257 2001-08-06 Marc Autret <autret_m@epita.fr>
3258
3259 * configure.in: Bump to 1.28c.
3260 * doc/bison.texinfo: Texinfo thingies.
3261
3262 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
3263
3264 * tests/atconfig.in (CPPFLAGS): Add.
3265 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
3266
3267 2001-08-03 Akim Demaille <akim@epita.fr>
3268
3269 Version 1.28b.
3270
3271 2001-08-03 Akim Demaille <akim@epita.fr>
3272
3273 * tests/Makefile.am (check-local): Ship testsuite.
3274 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
3275 Include `string.h'.
3276
3277 2001-08-03 Akim Demaille <akim@epita.fr>
3278
3279 * configure.in: Try using -Wformat when compiling.
3280
3281 2001-08-03 Akim Demaille <akim@epita.fr>
3282
3283 * configure.in: Bump to 1.28b.
3284
3285 2001-08-03 Akim Demaille <akim@epita.fr>
3286
3287 * src/complain.c: Adjust strerror_r portability issues.
3288
3289 2001-08-03 Akim Demaille <akim@epita.fr>
3290
3291 Version 1.28a.
3292
3293 2001-08-03 Akim Demaille <akim@epita.fr>
3294
3295 * src/getargs.c, src/getarg.h (skeleton)): Constify.
3296 * src/lex.c (literalchar): Avoid name clashes on `buf'.
3297 * src/getargs.c: Include complain.h.
3298 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
3299 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
3300
3301 2001-08-03 Akim Demaille <akim@epita.fr>
3302
3303 * src/reader.c (readgram): Display hidden chars in error messages.
3304
3305 2001-08-03 Akim Demaille <akim@epita.fr>
3306
3307 Update to gettext 0.10.39.
3308
3309 2001-08-03 Akim Demaille <akim@epita.fr>
3310
3311 * lib/strspn.c: New.
3312
3313 2001-08-01 Marc Autret <autret_m@epita.fr>
3314
3315 * doc/bison.texinfo: Update.
3316 * doc/bison.1 (mandoc): Update.
3317 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
3318 * src/files.c: Support output files extensions computing.
3319 (src_extension): New static variable.
3320 (header_extension): New static variable.
3321 (tr): New function.
3322 (get_extension_index): New function, gets the index of an extension
3323 filename in a string.
3324 (compute_exts_from_gf): New function, computes extensions from the
3325 grammar file extension.
3326 (compute_exts_from_src): New functions, computes extensions from the
3327 C source file extension, file given by ``-o'' option.
3328 (compute_base_names): Update.
3329 (output_files): Update.
3330
3331 2001-08-01 Robert Anisko <anisko_r@epita.fr>
3332
3333 * doc/bison.texi: Document @$.
3334 (Locations): New section.
3335
3336 2001-07-18 Akim Demaille <akim@epita.fr>
3337
3338 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
3339 * config/prev-version.txt, config/move-if-change: New.
3340 * Makefile.am: Adjust.
3341
3342 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
3343
3344 * src/bison.simple (yyparse): Suppress warning `comparaison
3345 between signed and unsigned'.
3346
3347 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
3348
3349 * src/getargs.h (raw_flag): Remove.
3350 * src/getargs.c: Die on `-r'/`--raw'.
3351 * src/lex.c (parse_percent_token): Die on `%raw'.
3352 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
3353 * tests/calc.at: Suppress test with option `--raw'.
3354
3355 2001-07-14 Akim Demaille <akim@epita.fr>
3356
3357 * config/: New.
3358 * configure.in: Require Autoconf 2.50.
3359 Update to gettext 0.10.38.
3360
3361 2001-03-16 Akim Demaille <akim@epita.fr>
3362
3363 * doc/bison.texinfo: ANSIfy the examples.
3364
3365 2001-03-16 Akim Demaille <akim@epita.fr>
3366
3367 * getargs.c (skeleton): New variable.
3368 (longopts): --skeleton is a new option.
3369 (shortopts, getargs): -S is a new option.
3370 * getargs.h: Declare skeleton.
3371 * output.c (output_parser): Use it.
3372
3373 2001-03-16 Akim Demaille <akim@epita.fr>
3374
3375 * m4/strerror_r.m4: New.
3376 * m4/error.m4: Run AC_FUNC_STRERROR_R.
3377 * lib/error.h, lib/error.c: Update.
3378
3379 2001-03-16 Akim Demaille <akim@epita.fr>
3380
3381 * src/getargs.c (longopts): Clean up.
3382
3383 2001-02-21 Akim Demaille <akim@epita.fr>
3384
3385 * src/reader.c (gensym): `gensym_count' is your own.
3386 Use a static buf to create the symbol name, as token_buffer is no
3387 longer a buffer.
3388
3389 2001-02-08 Akim Demaille <akim@epita.fr>
3390
3391 * src/conflicts.c (conflict_report): Be sure not to append to res
3392 between two calls, which could happen if both first sprintf were
3393 skipped, but not the first cp += strlen.
3394
3395 2001-02-08 Akim Demaille <akim@epita.fr>
3396
3397 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
3398 New, from fileutils 4.0.37.
3399 * configure.in: Require Autoconf 2.49c. I took some time before
3400 making this decision. This is the only way out for portability
3401 issues in Bison, it would mean way too much duplicate effort to
3402 import in Bison features implemented in 2.49c since 2.13.
3403 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
3404
3405 2001-02-02 Akim Demaille <akim@epita.fr>
3406
3407 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
3408 * lib/xalloc.h, lib/xmalloc.c: Update.
3409
3410 2001-01-19 Akim Demaille <akim@epita.fr>
3411
3412 Get rid of the ad hoc handling of token_buffer in the scanner: use
3413 the obstacks.
3414
3415 * src/lex.c (token_obstack): New.
3416 (init_lex): Initialize it. No longer call...
3417 (grow_token_buffer): this. Remove it.
3418 Adjust all the places which used it to use the obstack.
3419
3420 2001-01-19 Akim Demaille <akim@epita.fr>
3421
3422 * src/lex.h: Rename all the tokens:
3423 s/\bENDFILE\b/tok_eof/g;
3424 s/\bIDENTIFIER\b/tok_identifier/g;
3425 etc.
3426 Let them be enums, not #define, to ease debugging.
3427 Adjust all the code.
3428
3429 2001-01-18 Akim Demaille <akim@epita.fr>
3430
3431 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
3432 * src/lex.c (maxtoken, grow_token_buffer): Static.
3433
3434 2001-01-18 Akim Demaille <akim@epita.fr>
3435
3436 Since we now use obstacks, more % directives can be enabled.
3437
3438 * src/lex.c (percent_table): Also accept `%yacc',
3439 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
3440 `%debug'.
3441 Handle the actions for `%semantic_parser' and `%pure_parser' here,
3442 instead of returning a token.
3443 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
3444 * src/reader.c (read_declarations): Adjust.
3445 * src/files.c (open_files): Don't call `compute_base_names', don't
3446 compute `attrsfile' since they depend upon data which might be
3447 *in* the input file now.
3448 (output_files): Do it here.
3449 * src/output.c (output_headers): Document the fact that this patch
3450 introduces a guaranteed SEGV for semantic parsers.
3451 * doc/bison.texinfo: Document them.
3452 * tests/suite.at: Exercise these %options.
3453
3454 2000-12-20 Akim Demaille <akim@epita.fr>
3455
3456 Also handle the output file (--verbose) with obstacks.
3457
3458 * files.c (foutput): Remove.
3459 (output_obstack): New.
3460 Adjust all dependencies.
3461 * src/conflicts.c: Return a string.
3462 * src/system.h (obstack_grow_string): Rename as...
3463 (obstack_sgrow): this. Be ready to work with non literals.
3464 (obstack_fgrow4): New.
3465
3466 2000-12-20 Akim Demaille <akim@epita.fr>
3467
3468 * src/files.c (open_files): Fix the computation of short_base_name
3469 in the case of `-o foo.tab.c'.
3470
3471 2000-12-20 Akim Demaille <akim@epita.fr>
3472
3473 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
3474 (copy_dollar): Now that everything uses obstacks, get rid of the
3475 FILE * parameters.
3476
3477 2000-12-20 Akim Demaille <akim@epita.fr>
3478
3479 * src/files.c (open_files): Actually the `.output' file is based
3480 on the short_base_name, not base_name.
3481 * tests/suite.at (Checking output file names): Adjust.
3482
3483 2000-12-20 Akim Demaille <akim@epita.fr>
3484
3485 * src/bison.s1: Remove, we now use directly...
3486 * src/bison.simple: this.
3487 * src/Makefile.am: Use pkgdata instead of data.
3488
3489 2000-12-20 Akim Demaille <akim@epita.fr>
3490
3491 * src/files.c (guard_obstack): New.
3492 (open_files): Initialize it.
3493 (output_files): Dump it...
3494 * src/files.h: Export it.
3495 * src/reader.c (copy_guard): Use it.
3496
3497 2000-12-19 Akim Demaille <akim@epita.fr>
3498
3499 * src/files.c (outfile, defsfile, actfile): Removed as global
3500 vars.
3501 (open_files): Don't compute them.
3502 (output_files): Adjust.
3503 (base_name, short_base_name): Be global.
3504 Adjust dependencies.
3505
3506 2000-12-19 Akim Demaille <akim@epita.fr>
3507
3508 * src/files.c (strsuffix): New.
3509 (stringappend): Be just like strcat but allocate.
3510 (base_names): Eve out from open_files.
3511 Try to simplify the rather hairy computation of base_name and
3512 short_base_name.
3513 (open_files): Use it.
3514 * tests/suite.at (Checking output file names): New test.
3515
3516 2000-12-19 Akim Demaille <akim@epita.fr>
3517
3518 * src/system.h (obstack_grow_literal_string): Rename as...
3519 (obstack_grow_string): this.
3520 * src/output.c (output_parser): Recognize `%% actions' instead of
3521 `$'.
3522 * src/bison.s1: s/$/%% actions/.
3523 * src/bison.hairy: Likewise.
3524
3525 2000-12-19 Akim Demaille <akim@epita.fr>
3526
3527 * src/output.c (output_parser): Compute the `#line' lines when
3528 there are.
3529 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
3530 Suggested by Hans Aberg.
3531
3532 2000-12-19 Akim Demaille <akim@epita.fr>
3533
3534 Let the handling of the skeleton files be local to the procedures
3535 that use it.
3536
3537 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
3538 longer static.
3539 (fparser, open_extra_files): Remove.
3540 (open_files, output_files): Don't take care of fparser.
3541 * src/files.h: Adjust.
3542 * src/output.c (output_parser): Open and close the file to the
3543 skeleton.
3544 * src/reader.c (read_declarations): When %semantic_parser, open
3545 fguard.
3546
3547 2000-12-19 Akim Demaille <akim@epita.fr>
3548
3549 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
3550 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
3551
3552 2000-12-19 Akim Demaille <akim@epita.fr>
3553
3554 * src/files.c (open_files): Yipee! We no longer need all the code
3555 looking for `/tmp' since we have no tmp file.
3556
3557 2000-12-19 Akim Demaille <akim@epita.fr>
3558
3559 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
3560 New macros.
3561 * src/files.c (open_files): Less dependency on MSDOS etc.
3562
3563 2000-12-14 Akim Demaille <akim@epita.fr>
3564
3565 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
3566 Provide a default definition.
3567 Use it when executing the default @ action.
3568 * src/reader.c (reader_output_yylsp): No longer include
3569 `timestamp' and `text' in the default YYLTYPE.
3570
3571 2000-12-12 Akim Demaille <akim@epita.fr>
3572
3573 * src/reader.c (copy_definition, parse_union_decl, copy_action)
3574 (copy_guard): Quote the file names.
3575 Reported by Laurent Mascherpa.
3576
3577 2000-12-12 Akim Demaille <akim@epita.fr>
3578
3579 * src/output.c (output_headers, output_program, output): Be sure
3580 to escape special characters when outputting filenames.
3581 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
3582 (output_headers): Don't depend on them, Use ACTSTR.
3583
3584 2000-11-17 Akim Demaille <akim@epita.fr>
3585
3586 * lib/obstack.h: Formatting changes.
3587 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
3588 prevents type checking.
3589 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
3590 cast the value to (void *): assigning a `foo *' to a `void *'
3591 variable is valid.
3592 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
3593 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
3594 append characters.
3595
3596 2000-11-17 Akim Demaille <akim@epita.fr>
3597
3598 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
3599 as...
3600 (suite.m4, regression.m4, calc.m4): these.
3601 * tests/atgeneral.m4: Update from CVS Autoconf.
3602
3603 2000-11-17 Akim Demaille <akim@epita.fr>
3604
3605 * tests/regression.m4 (%union and --defines): New test,
3606 demonstrating a current bug in the obstack implementation.
3607
3608 2000-11-17 Akim Demaille <akim@epita.fr>
3609
3610 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
3611 macros.
3612 Use them to declare the variables which are global or local to
3613 `yyparse'.
3614
3615 2000-11-17 Akim Demaille <akim@epita.fr>
3616
3617 * acconfig.h: Remove, no longer used.
3618
3619 2000-11-07 Akim Demaille <akim@epita.fr>
3620
3621 * src: s/Copyright (C)/Copyright/g.
3622
3623 2000-11-07 Akim Demaille <akim@epita.fr>
3624
3625 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
3626 defining.
3627 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
3628
3629 2000-11-07 Akim Demaille <akim@epita.fr>
3630
3631 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
3632 Merge in a single CPP if/else.
3633
3634 2000-11-07 Akim Demaille <akim@epita.fr>
3635
3636 * src/output.c (output): Remove useless variables.
3637 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
3638 argument `data' for consistency with the prototypes.
3639 Qualify it `const'.
3640 (obstack_copy, obstack_copy0): Rename the second argument as
3641 `address' for consistency. Qualify it `const'.
3642 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
3643 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
3644 `const' their input argument (`data' or `address').
3645 Adjust the corresponding macros to include `const' in casts.
3646
3647 2000-11-03 Akim Demaille <akim@epita.fr>
3648
3649 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
3650 s/PFILE1/BISON_HAIRY/.
3651 Adjust dependencies.
3652
3653 2000-11-03 Akim Demaille <akim@epita.fr>
3654
3655 For some reason, this was not applied.
3656
3657 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3658 `unlink': it's no longer used.
3659
3660 2000-11-03 Akim Demaille <akim@epita.fr>
3661
3662 * src/files.c (skeleton_find): New function, eved out of...
3663 (open_files, open_extra_files): here.
3664
3665 2000-11-03 Akim Demaille <akim@epita.fr>
3666
3667 Don't use `atexit'.
3668
3669 * src/files.c (obstack_save): New function.
3670 (done): Rename as...
3671 (output_files): this.
3672 Use `obstack_save'.
3673 * src/main.c (main): Don't use `atexit' to register `done', since
3674 it no longer has to remove tmp files, just call `output_files'
3675 when there are no errors.
3676
3677 2000-11-02 Akim Demaille <akim@epita.fr>
3678
3679 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3680 `unlink': it's no longer used.
3681 * src/files.h: Formatting changes.
3682
3683 2000-11-02 Akim Demaille <akim@epita.fr>
3684
3685 Remove the last uses of mktemp and unlink/delete.
3686
3687 * src/files.c (fdefines, ftable): Removed.
3688 (defines_ostack, table_obstack): New.
3689 Adjust dependencies of the former into uses of the latter.
3690 * src/output.c (output_short_or_char_table, output_short_table):
3691 Convert to using obstacks.
3692 * src/reader.c (copy_comment2): Accept one FILE * and two
3693 obstacks.
3694 (output_token_defines, reader_output_yylsp): Use obstacks.
3695 * src/system.h (obstack_fgrow3): New.
3696
3697 2000-11-01 Akim Demaille <akim@epita.fr>
3698
3699 Change each use of `fattrs' into a use of `attrs_obstack'.
3700
3701 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
3702 * src/files.c (fattrs): Remove.
3703 (attrs_obstack): New.
3704 Adjust all dependencies.
3705 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
3706
3707 2000-11-01 Akim Demaille <akim@epita.fr>
3708
3709 Introduce obstacks.
3710 Change each use of `faction' into a use of `action_obstack'.
3711
3712 * lib/obstack.h, lib/obstack.c: New files.
3713 * src/files.c (faction): Remove.
3714 (action_obstack): New.
3715 Adjust all dependencies.
3716
3717 2000-10-20 Akim Demaille <akim@epita.fr>
3718
3719 * lib/quote.h (PARAMS): New macro. Use it.
3720
3721 2000-10-16 Akim Demaille <akim@epita.fr>
3722
3723 * src/output.c (output_short_or_char_table): New function.
3724 (output_short_table, output_token_translations): Use it.
3725 (goto_actions): Use output_short_table.
3726
3727 2000-10-16 Akim Demaille <akim@epita.fr>
3728
3729 * src/symtab.c (bucket_new): New function.
3730 (getsym): Use it.
3731
3732 * src/output.c (output_short_table): New argument to display the
3733 comment associated with the table.
3734 Adjust dependencies.
3735 (output_gram): Use it.
3736 (output_rule_data): Nicer output layout for YYTNAME.
3737
3738 2000-10-16 Akim Demaille <akim@epita.fr>
3739
3740 * src/lex.c (read_typename): New function.
3741 (lex): Use it.
3742 * src/reader.c (copy_dollar): Likewise.
3743
3744 2000-10-16 Akim Demaille <akim@epita.fr>
3745
3746 * src/reader.c (copy_comment2): Expect the input stream to be on
3747 the `/' which is suspected to open a comment, instead of being
3748 called after `//' or `/*' was read.
3749 (copy_comment, copy_definition, parse_union_decl, copy_action)
3750 (copy_guard): Adjust.
3751
3752 2000-10-16 Akim Demaille <akim@epita.fr>
3753
3754 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
3755 `read_signed_integer'.
3756
3757 2000-10-16 Akim Demaille <akim@epita.fr>
3758
3759 * src/reader.c (copy_dollar): New function.
3760 (copy_guard, copy_action): Use it.
3761
3762 2000-10-16 Akim Demaille <akim@epita.fr>
3763
3764 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
3765 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
3766 New files, from Fileutils 4.0.27.
3767 * src/main.c (printable_version): Remove.
3768 * src/lex.c, src/reader.c: Use `quote'.
3769
3770 2000-10-04 Akim Demaille <akim@epita.fr>
3771
3772 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
3773
3774 2000-10-04 Akim Demaille <akim@epita.fr>
3775
3776 * doc/bison.texinfo: Various typos spotted by Neil Booth.
3777
3778 2000-10-04 Akim Demaille <akim@epita.fr>
3779
3780 When a literal string is used to define two different tokens,
3781 `bison -v' segfaults.
3782 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
3783
3784 * tests/regression.m4: New file.
3785 Include the core of the sample provided by Piotr Gackiewicz.
3786 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
3787 properly.
3788
3789 2000-10-04 Akim Demaille <akim@epita.fr>
3790
3791 * src/reader.c (parse_expect_decl): Keep `count' within the size
3792 of `buffer'.
3793 From Neil Booth.
3794
3795 2000-10-02 Paul Eggert <eggert@twinsun.com>
3796
3797 * bison.s1 (yyparse): Assign the default value
3798 unconditionally, to avoid a GCC warning and make the parser a
3799 tad smaller.
3800
3801 2000-10-02 Akim Demaille <akim@epita.fr>
3802
3803 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
3804 options.
3805
3806 2000-10-02 Akim Demaille <akim@epita.fr>
3807
3808 * src/derives.c, src/print.c, src/reduce.c: To ease the
3809 translation, move some `\n' out of the translated strings.
3810
3811 2000-10-02 Akim Demaille <akim@epita.fr>
3812
3813 The location tracking mechanism is precious for parse error
3814 messages. Nevertheless, it is enabled only when `@n' is used in
3815 the grammar, which is a different issue (you can use it in error
3816 message, but not in the grammar per se). Therefore, there should
3817 be another means to enable it.
3818
3819 * src/getargs.c (getargs): Support `--locations'.
3820 (usage): Report it.
3821 * src/getargs.h (locationsflag): Export it.
3822 * src/lex.c (percent_table): Support `%locations'.
3823 * src/reader.c (yylsp_needed): Remove this variable, now replaced
3824 with `locationsflag'.
3825 * doc/bison.texinfo: Document `--locations' and `%locations'.
3826 Sort the options.
3827 * tests/calc.m4: Test it.
3828
3829 For regularity of the names, replace each
3830 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
3831 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
3832 In addition replace each `flag' with `_flag'.
3833
3834 2000-10-02 Akim Demaille <akim@epita.fr>
3835
3836 Also test parse error messages, including with YYERROR_VERBOSE.
3837
3838 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
3839 associative).
3840 Use it to check the computations.
3841 Use it to check `nonassoc' is honored.
3842 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
3843 `--yyerror-verbose'.
3844 (_AT_CHECK_CALC): Adjust to this option.
3845 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
3846
3847 2000-10-02 Akim Demaille <akim@epita.fr>
3848
3849 Test also `--verbose', `--defines' and `--name-prefix'. Testing
3850 the latter demonstrates a flaw in the handling of non debugging
3851 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
3852 was used in order to simplify:
3853
3854 #if YYDEBUG
3855 if (yydebug)
3856 {
3857 ...
3858 }
3859 #endif
3860
3861 into
3862
3863 if (yydebug)
3864 {
3865 ...
3866 }
3867
3868 unfortunately this leads to a CPP conflict when
3869 `--name-prefix=foo' is used since it produces `#define yydebug
3870 foodebug'.
3871
3872 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
3873 (YYDPRINTF): New macro.
3874 Spread its use.
3875 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
3876 the bison options.
3877 Also test `--verbose', `--defines' and `--name-prefix'.
3878
3879 2000-10-02 Akim Demaille <akim@epita.fr>
3880
3881 Improve the readability of the produced parsers.
3882
3883 * src/bison.s1: Formatting changes.
3884 Improve the comment related to the `$' mark.
3885 (yydefault): Don't fall through to `yyresume': `goto' there.
3886 * src/output.c (output_parser): When the `$' is met, skip the end
3887 of its line.
3888 New variable, `number_of_dollar_signs', to check there's exactly
3889 one `$' in the parser skeleton.
3890
3891 2000-10-02 Akim Demaille <akim@epita.fr>
3892
3893 * lib/xstrdup.c: New file, from the fileutils.
3894 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
3895 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
3896 instead of strlen + xmalloc + strcpy.
3897 * src/symtab.c (copys): Remove, use xstrdup instead.
3898
3899 2000-10-02 Akim Demaille <akim@epita.fr>
3900
3901 * src/gram.h (associativity): New enum type which replaces the
3902 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
3903 `right_assoc', `left_assoc' and `non_assoc'.
3904 Adjust all dependencies.
3905 * src/reader.c: Formatting changes.
3906 (LTYPESTR): Don't define it, use it as a literal in
3907 `reader_output_yylsp'.
3908 * src/symtab.h (symbol_class): New enum type which replaces the
3909 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
3910 `sunknown', `stoken and `snterm'.
3911
3912 2000-10-02 Akim Demaille <akim@epita.fr>
3913
3914 * src/getargs.c (fixed_outfiles): Rename as...
3915 (yaccflag): for consistency and accuracy.
3916 Adjust dependencies.
3917
3918 2000-10-02 Akim Demaille <akim@epita.fr>
3919
3920 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
3921 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
3922 difficult and introduced a lot of core dump. It turns out that
3923 Bison used an implementation of `xmalloc' based on `calloc', and
3924 at various places it does depend upon the initialization to 0. I
3925 have not tried to isolate the pertinent places, and all the former
3926 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
3927 someone should address this issue.
3928
3929 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
3930 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
3931 files.
3932 Adjust dependencies.
3933 * src/warshall.h: New file.
3934 Propagate.
3935
3936 2000-10-02 Akim Demaille <akim@epita.fr>
3937
3938 Various anti-`extern in *.c' changes.
3939
3940 * src/system.h: Include `assert.h'.
3941
3942 2000-10-02 Akim Demaille <akim@epita.fr>
3943
3944 * src/state.h (nstates, final_state, first_state, first_shift)
3945 (first_reduction): Move their exportation from here...
3946 * src/LR0.h: to here.
3947 Adjust dependencies.
3948 * src/getargs.c (statisticsflag): New variable.
3949 Add support for `--statistics'.
3950 Adjust dependencies.
3951
3952 Remove a lot of now useless `extern' statements in most files.
3953
3954 2000-10-02 Akim Demaille <akim@epita.fr>
3955
3956 * src/LR0.h: New file.
3957 Propagate its use.
3958
3959 2000-10-02 Akim Demaille <akim@epita.fr>
3960
3961 * src/print.h: New file.
3962 Propagate its use.
3963 * src/print.c: Formatting and ordering changes.
3964 (verbose, terse): Replace with...
3965 (print_results): this new function.
3966 Adjust dependencies.
3967
3968 2000-10-02 Akim Demaille <akim@epita.fr>
3969
3970 * src/conflicts.c (conflict_report): New function.
3971 (conflict_log, verbose_conflict_log): Replace with...
3972 (print_conflicts): this function.
3973 Adjust dependencies.
3974 * src/conflicts.h: New file.
3975 Propagate its inclusion.
3976
3977 2000-10-02 Akim Demaille <akim@epita.fr>
3978
3979 * src/nullable.h: New file.
3980 Propagate its inclusion.
3981 * src/nullable.c: Formatting changes.
3982
3983 2000-10-02 Akim Demaille <akim@epita.fr>
3984
3985 * src/reduce.h: New file.
3986 Propagate its inclusion.
3987 * src/reduce.c: Topological sort and other formatting changes.
3988 (bool, TRUE, FALSE): Move their definition to...
3989 * src/system.h: here.
3990
3991 2000-10-02 Akim Demaille <akim@epita.fr>
3992
3993 * src/files.c: Formatting changes.
3994 (tryopen, tryclose, openfiles): Rename as...
3995 (xfopen, xfclose, open_files): this.
3996 (stringappend): static.
3997 * src/files.h: Complete the list of exported symbols.
3998 Propagate its use.
3999
4000 2000-10-02 Akim Demaille <akim@epita.fr>
4001
4002 * src/reader.h: New file.
4003 Propagate its use instead of tedious list of `extern' and
4004 prototypes.
4005 * src/reader.c: Formatting changes, topological sort,
4006 s/register//.
4007
4008 2000-10-02 Akim Demaille <akim@epita.fr>
4009
4010 * src/lex.h: Prototype `lex.c' exported functions.
4011 * src/reader.c: Adjust.
4012 * src/lex.c: Formatting changes.
4013 (safegetc): Rename as...
4014 (xgetc): this.
4015
4016 2000-10-02 Akim Demaille <akim@epita.fr>
4017
4018 * src/lalr.h: New file.
4019 Propagate its inclusion instead of prototypes and `extern'.
4020 * src/lalr.c: Formatting changes, topological sorting etc.
4021
4022 2000-10-02 Akim Demaille <akim@epita.fr>
4023
4024 * src/output.c (token_actions): Introduce a temporary array,
4025 YYDEFACT, that makes it possible for this function to use
4026 output_short_table.
4027
4028 2000-10-02 Akim Demaille <akim@epita.fr>
4029
4030 `user_toknums' is output as a `short[]' in `output.c', while it is
4031 defined as a `int[]' in `reader.c'. For consistency with the
4032 other output tables, `user_toknums' is now defined as a table of
4033 shorts.
4034
4035 * src/reader.c (user_toknums): Be a short table instead of an int
4036 table.
4037 Adjust dependencies.
4038
4039 Factor the short table outputs.
4040
4041 * src/output.c (output_short_table): New function.
4042 * src/output.c (output_gram, output_stos, output_rule_data)
4043 (output_base, output_table, output_check): Use it.
4044
4045 2000-10-02 Akim Demaille <akim@epita.fr>
4046
4047 * src/output.c (output): Topological sort of the functions, in
4048 order to get rid of the `static' prototypes.
4049 No longer use `register'.
4050 * src/output.h: New file.
4051 Propagate its inclusion in files explicitly prototyping functions
4052 from output.c.
4053
4054 2000-09-21 Akim Demaille <akim@epita.fr>
4055
4056 * src/atgeneral.m4: Update from Autoconf.
4057
4058 2000-09-21 Akim Demaille <akim@epita.fr>
4059
4060 * src/closure.h: New file.
4061 * src/closure.c: Formatting changes, topological sort over the
4062 functions, use of closure.h.
4063 (initialize_closure, finalize_closure): Rename as...
4064 (new_closure, free_closure): these. Adjust dependencies.
4065 * src/LR0.c: Formatting changes, topological sort, use of
4066 cloture.h.
4067 (initialize_states): Rename as...
4068 (new_states): this.
4069 * src/Makefile.am (noinst_HEADERS): Adjust.
4070
4071 2000-09-20 Akim Demaille <akim@epita.fr>
4072
4073 * src/acconfig.h: Don't protect config.h against multiple
4074 inclusion.
4075 Don't define PARAMS.
4076 * src/system.h: Define PARAMS.
4077 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
4078 purpose of config.h. system.h must not try to fix wrong
4079 definitions in config.h.
4080
4081 2000-09-20 Akim Demaille <akim@epita.fr>
4082
4083 * src/derives.h: New file.
4084 * src/main.c, src/derives.h: Use it.
4085 Formatting changes.
4086 * src/Makefile.am (noinst_HEADERS): Adjust.
4087
4088 2000-09-20 Akim Demaille <akim@epita.fr>
4089
4090 * tests/atgeneral.m4: Update from Autoconf.
4091 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
4092 (AT_CHECK_CALC): New macros.
4093 Use these macros to test bison with options `', `--raw',
4094 `--debug', `--yacc', `--yacc --debug'.
4095
4096 2000-09-19 Akim Demaille <akim@epita.fr>
4097
4098 * src/output.c: Formatting changes.
4099 * src/machine.h: Remove, leaving its contents in...
4100 * src/system.h: here.
4101 Include stdio.h.
4102 Adjust all dependencies on stdio.h and machine.h.
4103 * src/getargs.h: New file.
4104 Let all `extern' declarations about getargs.c be replaced with
4105 inclusion of `getargs.h'.
4106 * src/Makefile.am (noinst_HEADERS): Adjust.
4107
4108 * tests/calc.m4 (yyin): Be initialized in main, not on the global
4109 scope.
4110 (yyerror): Returns void, not int.
4111 * doc/bison.texinfo: Formatting changes.
4112
4113 2000-09-19 Akim Demaille <akim@epita.fr>
4114
4115 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
4116 portable.
4117
4118 2000-09-18 Akim Demaille <akim@epita.fr>
4119
4120 * configure.in: Append WARNING_CFLAGS to CFLAGS.
4121 * src/Makefile.am (INCLUDES): Don't.
4122 Be ready to fetch headers in lib/.
4123
4124 2000-09-18 Akim Demaille <akim@epita.fr>
4125
4126 * doc/bison.texinfo: Update the copyright.
4127 ANSIfy and GNUify the examples.
4128 Remove the old menu.
4129
4130 2000-09-18 Akim Demaille <akim@epita.fr>
4131
4132 First set of tests: use the `calc' example from the documentation.
4133
4134 * src/bison.s1 (yyparse): Condition the code using `yytname' which
4135 is defined only when YYDEBUG is.
4136 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
4137 * src/files.c (tryopen, tryclose): Formatting changes.
4138 Move to the top and be static.
4139 * src/reader.c (read_signed_integer): Likewise.
4140 * tests/calc.m4: New file.
4141 * Makefile.am, suite.m4: Adjust.
4142 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
4143
4144 2000-09-18 Akim Demaille <akim@epita.fr>
4145
4146 Add support for an Autotest test suite for Bison.
4147
4148 * m4/m4.m4, m4/atconfig.m4: New files.
4149 * m4/Makefile.am (EXTRA_DIST): Adjust.
4150 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
4151 files.
4152 * src/getargs.c: Display a more standard --version message.
4153 * src/reader.c (reader): Formatting changes.
4154 No longer depend upon VERSION_STRING.
4155 * configure.in: No longer use `dnl'.
4156 Set up the test suite and the new directory `tests/.
4157 (VERSION_STRING): Remove.
4158
4159 2000-04-14 Akim Demaille <akim@epita.fr>
4160
4161 * src/reader.c (copy_comment2): New function, same as former
4162 `copy_comment', but outputs into two FILE *.
4163 (copy_comment): Use it.
4164 (parse_union_decl): Use it.
4165 (get_type, parse_start_decl): Use the same `invalid' message.
4166 (parse_start_decl, parse_union_decl): Use the same `multiple'
4167 message.
4168 (parse_union_decl, copy_guard, copy_action): Use the same
4169 `unmatched' message.
4170 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
4171
4172 2000-03-31 Akim Demaille <akim@epita.fr>
4173
4174 * src/files.c (tryopen, tryclose): Move to the top.
4175 Be static.
4176
4177 2000-03-31 Akim Demaille <akim@epita.fr>
4178
4179 * src/main.c (main): Don't call `done', exit does it.
4180
4181 2000-03-31 Akim Demaille <akim@epita.fr>
4182
4183 * allocate.c: s/return (foo)/return foo/.
4184 * lalr.c: Likewise.
4185 * LR0.c: Likewise.
4186 * output.c: Likewise.
4187 * reader.c: Likewise.
4188 * symtab.c: Likewise.
4189 * vmsgetargs.c: Likewise.
4190
4191 2000-03-31 Akim Demaille <akim@epita.fr>
4192
4193 Clean up the error reporting functions.
4194
4195 * src/report.c: New file.
4196 * src/report.h: Likewise.
4197 * src/Makefile.am: Adjust.
4198 * m4/error.m4: New file.
4199 * m4/Makefile.am: Adjust.
4200 * configure.in (jm_PREREQ_ERROR): Call it.
4201 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
4202 Remove.
4203 (fatal, fatals): Remove. All callers use complain.c::fatal.
4204 (warn, warni, warns, warnss, warnss): Remove. All callers use
4205 complain.c::complain.
4206 (toomany): Remove, use fatal instead.
4207 * src/files.c (done): No argument, use complain_message_count.
4208 * src/main.c (main): Register `done' to `atexit'.
4209
4210 * src/getargs.c (usage): More `fputs', less `fprintf'.
4211
4212 2000-03-28 Akim Demaille <akim@epita.fr>
4213
4214 * lib/: New directory.
4215 * Makefile.am (SUBDIRS): Adjust.
4216 * configure.in: Adjust.
4217 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
4218 useless.
4219 * src/alloca.c: Moved to lib/.
4220 * src/getopt.c: Likewise.
4221 * src/getopt1.c: Likewise.
4222 * src/getopt.h: Likewise.
4223 * src/ansi2knr.c: Likewise.
4224 * src/ansi2knr.1: Likewise.
4225 * src/Makefile.am: Adjust.
4226 * lib/Makefile.am: New file.
4227
4228 2000-03-28 Akim Demaille <akim@epita.fr>
4229
4230 * src/getargs.c (usage): Refresh the help message.
4231
4232 2000-03-17 Akim Demaille <akim@epita.fr>
4233
4234 * src/getopt1.c: Updated from textutils 2.0e
4235 * src/getopt.c: Likewise.
4236 * src/getopt.h: Likewise.
4237
4238 2000-03-17 Akim Demaille <akim@epita.fr>
4239
4240 * src/Makefile.am (bison.simple): Fix the awk program: quote only
4241 the file name, not the whole `#line LINE FILE'.
4242
4243 2000-03-17 Akim Demaille <akim@epita.fr>
4244
4245 On syntax errors, report the token on which we choked.
4246
4247 * src/bison.s1 (yyparse): In the label yyerrlab, when
4248 YYERROR_VERBOSE, add yychar in msg.
4249
4250 2000-03-17 Akim Demaille <akim@epita.fr>
4251
4252 * src/reader.c (copy_at): New function.
4253 (copy_guard): Use it.
4254 (copy_action): Use it.
4255
4256 2000-03-17 Akim Demaille <akim@epita.fr>
4257
4258 Be kind to translators, save some useless translations.
4259
4260 * src/main.c (banner): New function.
4261 (fatal_banner): Use it.
4262 (warn_banner): Use it.
4263
4264 2000-03-17 Akim Demaille <akim@epita.fr>
4265
4266 * src/reader.c (copy_definition): Use copy_string and
4267 copy_comment. Removed now unused `match', `ended',
4268 `cplus_comment'.
4269 (copy_comment, copy_string): Moved, to be visible from
4270 copy_definition.
4271
4272 2000-03-17 Akim Demaille <akim@epita.fr>
4273
4274 * src/reader.c (copy_string): Declare `static inline'. No
4275 problems with inline, since it is checked by configure.
4276 (copy_comment): Likewise.
4277
4278 2000-03-17 Akim Demaille <akim@epita.fr>
4279
4280 * src/reader.c (packsymbols): Formatting changes.
4281
4282 2000-03-17 Akim Demaille <akim@epita.fr>
4283
4284 * src/reader.c (copy_comment): New function, factored out from:
4285 (copy_action): Use it. Removed now unused `match', `ended',
4286 `cplus_comment'.
4287 (copy_guard): Likewise.
4288
4289 2000-03-17 Akim Demaille <akim@epita.fr>
4290
4291 * src/reader.c (copy_string): New function, factored out from:
4292 (copy_action): Use it.
4293 (copy_guard): Likewise.
4294
4295 2000-03-17 Akim Demaille <akim@epita.fr>
4296
4297 Change the handling of @s so that they behave exactly like $s.
4298 There is now a pseudo variable @$ (readble and writable), location
4299 of the lhs of the rule (by default ranging from the location of
4300 the first symbol of the rhs, to the location of the last symbol,
4301 or, if the rhs is empty, YYLLOC).
4302
4303 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
4304 yyval.
4305 (yyparse): When providing a default semantic action, provide a
4306 default location action.
4307 (after the $): No longer change `*YYLSP', just stack YYLOC the
4308 same way you stack YYVAL.
4309 * src/reader.c (read_declarations): Use warns.
4310 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
4311 (copy_action, case '@'): Likewise.
4312 Use a standard error message, to save useless work from
4313 translators.
4314
4315 2000-03-17 Akim Demaille <akim@epita.fr>
4316
4317 * src/bison.s1: Formatting and cosmetics changes.
4318 * src/reader.c: Likewise.
4319 Update the Copyright notice.
4320
4321 2000-03-17 Akim Demaille <akim@epita.fr>
4322
4323 * src/bison.s1 (#line): All set to `#line' only, since the
4324 Makefile now handles them.
4325
4326 2000-03-16 Akim Demaille <akim@epita.fr>
4327
4328 * src/output.c (output_rule_data): Output the documentation of
4329 some of the tables.
4330 (Copyright notice): Update.
4331 Formatting changes.
4332
4333 2000-03-16 Akim Demaille <akim@epita.fr>
4334
4335 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
4336 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
4337 One `#if YYDEBUG' remains, since it uses variables which are
4338 defined only if `YYDEBUG != 0'.
4339
4340 2000-03-16 Akim Demaille <akim@epita.fr>
4341
4342 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
4343 and related variables so that the similarities are highlighted.
4344
4345 2000-03-16 Akim Demaille <akim@epita.fr>
4346
4347 * src/bison.s1: Properly indent CPP directives.
4348
4349 2000-03-16 Akim Demaille <akim@epita.fr>
4350
4351 * src/bison.s1: Properly indent the `alloca' CPP section.
4352
4353 2000-03-16 Akim Demaille <akim@epita.fr>
4354
4355 Do not hard code values of directories in `configure.in'.
4356 Update the `configure' tool chain.
4357
4358 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
4359 src/makefile.am.
4360 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
4361 (AC_OUTPUT): Add m4/Makefile.
4362 Bump to bison 1.28a, 1.29 has never been released.
4363 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
4364 handled via src/Makefile.am.
4365 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
4366 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
4367 autoheader.
4368 * Makefile.am (SUBDIRS): Add m4.
4369 (ACLOCAL_AM_FLAGS): New variable.
4370 (AUTOMAKE_OPTIONS): Add check-news.
4371 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
4372 the proper line number and file name.
4373 (DEFS): Propagate the location of bison library files and of the
4374 locale files.
4375 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
4376 builddir.
4377 * acinclude.m4: Remove, replaced by the directory m4.
4378 * m4/Makefile.am (EXTRA_DIST): New variable.
4379 * m4/gettext.m4: New file, from the fileutils.
4380 * m4/lcmessage.m4: Likewise
4381 * m4/progtest.m4: Likewise.
4382 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
4383
4384 2000-03-10 Akim Demaille <akim@epita.fr>
4385
4386 * src/closure.c:
4387 Formatting changes of various comments.
4388 Respect the GNU coding standards at various places.
4389 Don't use `_()' when no translation is needed.
4390
4391 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4392
4393 * src/files.c:
4394 OS/2 honors TMPDIR environment variable.
4395
4396 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4397
4398 * doc/bison.texinfo: Tweaked spelling and grammar.
4399 Updated ISBN.
4400 Removed reference to price of printed copy.
4401 Mention BISON_SIMPLE and BISON_HAIRY.
4402
4403 1999-12-13 Jesse Thilo <jthilo@gnu.org>
4404
4405 * configure.in, NEWS:
4406 Bison 1.29 released.
4407
4408 1999-10-27 Jesse Thilo <jthilo@gnu.org>
4409
4410 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
4411 Added reference card.
4412
4413 1999-07-26 Jesse Thilo <jthilo@gnu.org>
4414
4415 * po/ru.po: Added Russian translation.
4416
4417 1999-07-26 Jesse Thilo <jthilo@gnu.org>
4418
4419 * configure.in: Added Russian translation.
4420
4421 1999-07-06 Jesse Thilo <jthilo@gnu.org>
4422
4423 * configure.in, NEWS, README:
4424 Released version 1.28.
4425
4426 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4427
4428 * src/system.h:
4429 Squashed redefinition warning on some systems.
4430
4431 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
4432 Have configure build version string instead of relying on ANSI string
4433 concatentation.
4434
4435 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4436
4437 * po/POTFILES.in: Got rid of version.c.
4438
4439 1999-06-14 Jesse Thilo <jthilo@gnu.org>
4440
4441 * acconfig.h, configure.in:
4442 Have configure build version string instead of relying on ANSI string
4443 concatentation.
4444
4445 1999-06-08 Jesse Thilo <jthilo@gnu.org>
4446
4447 * doc/bison.1:
4448 Dropped mention of `+' for long-named options.
4449
4450 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4451
4452 * src/files.c: Added <unistd.h> for unlink().
4453
4454 * src/Makefile.am, src/system.h:
4455 I18n fixes.
4456
4457 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4458
4459 * README: Added a FAQ list.
4460
4461 * configure.in, acconfig.h:
4462 I18n fixes.
4463
4464 1999-05-30 Jesse Thilo <jthilo@gnu.org>
4465
4466 * doc/FAQ, doc/Makefile.am:
4467 Added a FAQ list.
4468
4469 1999-05-19 Jesse Thilo <jthilo@gnu.org>
4470
4471 * src/alloc.h, src/symtab.h, src/version.c:
4472 Protected inclusion of "config.h" with HAVE_CONFIG_H.
4473
4474 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4475
4476 * src/.cvsignore, src/Makefile.am:
4477 Reorganized: sources in `src', documentation in `doc'.
4478
4479 * src/lex.c (literalchar):
4480 fixed the code for escaping double quotes (thanks
4481 Jonathan Czisny.)
4482
4483 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4484
4485 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
4486 Adjusted paths to reflect directory reorganization.
4487
4488 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4489
4490 * doc/.cvsignore, doc/Makefile.am:
4491 Reorganized: sources in `src', documentation in `doc'.
4492
4493 1999-04-18 Jesse Thilo <jthilo@gnu.org>
4494
4495 * configure.in:
4496 Updated AC_INIT file to reflect directory reorganization.
4497
4498 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
4499 Reorganized: sources in `src', documentation in `doc'.
4500
4501 1999-04-13 Jesse Thilo <jthilo@gnu.org>
4502
4503 * src/allocate.c:
4504 Don't declare calloc() and realloc() if not necessary.
4505
4506 1999-04-13 Jesse Thilo <jthilo@gnu.org>
4507
4508 * configure.in, acconfig.h, acinclude.m4:
4509 Don't declare calloc() and realloc() if not necessary.
4510
4511 1999-03-23 Jesse Thilo <jthilo@gnu.org>
4512
4513 * po/.cvsignore: Added i18n support.
4514
4515 1999-03-23 Jesse Thilo <jthilo@gnu.org>
4516
4517 * acconfig.h, configure.in, Makefile.am:
4518 Added i18n support.
4519
4520 1999-03-22 Jesse Thilo <jthilo@gnu.org>
4521
4522 * src/bison.s1: Fixed #line numbers.
4523
4524 1999-03-15 Jesse Thilo <jthilo@gnu.org>
4525
4526 * po/es.po, po/fr.po, po/nl.po, po/de.po:
4527 Added PO files from Translation Project.
4528
4529 1999-03-03 Jesse Thilo <jthilo@gnu.org>
4530
4531 * Makefile.am:
4532 Added support for non-ANSI compilers (ansi2knr).
4533
4534 1999-02-16 Jesse Thilo <jthilo@gnu.org>
4535
4536 * configure.in: Bumped version number to 1.27.
4537
4538 * Makefile.am:
4539 Added `bison.simple' to list of files removed by `make distclean'.
4540
4541 1999-02-12 Jesse Thilo <jthilo@gnu.org>
4542
4543 * src/files.c, src/files.h:
4544 Defined locations of parser files in config.h instead of Makefile.
4545
4546 1999-02-12 Jesse Thilo <jthilo@gnu.org>
4547
4548 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
4549 Defined locations of parser files in config.h instead of Makefile.
4550
4551 1999-02-09 Jesse Thilo <jthilo@gnu.org>
4552
4553 * Makefile.am:
4554 Removed inappropriate use of $< macro.
4555
4556 1999-02-05 Jesse Thilo <jthilo@gnu.org>
4557
4558 * po/Makefile.in.in, po/POTFILES.in:
4559 Add `po' directory skeleton.
4560
4561 1999-01-27 Jesse Thilo <jthilo@gnu.org>
4562
4563 * README: Document help-bison list.
4564
4565 * configure.in: Add check for mkstemp().
4566
4567 1999-01-20 Jesse Thilo <jthilo@gnu.org>
4568
4569 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
4570 Hush a few compiler warnings.
4571
4572 * src/files.c:
4573 Add tryclose(), which verifies that fclose was successful.
4574 Hush a couple of compiler warnings.
4575
4576 1999-01-20 Jesse Thilo <jthilo@gnu.org>
4577
4578 * Makefile.am, OChangeLog:
4579 ChangeLog is now automatically generated. Include the old version as
4580 OChangeLog.
4581
4582 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4583
4584 * 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:
4585 Update FSF address.
4586
4587 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4588
4589 * doc/bison.texinfo: Fix formatting glitch.
4590
4591 * doc/bison.texinfo: Update FSF address.
4592
4593 1999-01-14 Jesse Thilo <jthilo@gnu.org>
4594
4595 * acconfig.h: Update FSF address.
4596
4597 1999-01-08 Jesse Thilo <jthilo@gnu.org>
4598
4599 * src/system.h:
4600 Don't define PACKAGE here, since config.h defines it.
4601
4602 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4603
4604 * src/reader.c: Update copyright date.
4605
4606 * src/main.c:
4607 Ditch sprintf to statically-sized buffers in fatal/warn functions in
4608 favor of output directly to stderr (avoids buffer overruns).
4609
4610 * src/reader.c: Some checks for premature EOF.
4611
4612 * 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:
4613 Use prototypes if the compiler understands them.
4614
4615 * src/files.c: Honor TMPDIR on Unix hosts.
4616 Use prototypes if the compiler understands them.
4617
4618 * src/reader.c:
4619 Fix a couple of buffer overrun bugs.
4620 Use prototypes if the compiler understands them.
4621
4622 * src/system.h: Include unistd.h and ctype.h.
4623 Use #ifdef instead of #if for NLS symbols.
4624
4625 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4626
4627 * doc/bison.texinfo:
4628 Delete comment "consider using @set for edition number, etc..." since
4629 we now are doing so.
4630
4631 1998-12-30 Jesse Thilo <jthilo@gnu.org>
4632
4633 * configure.in:
4634 Use prototypes if the compiler understands them.
4635
4636 * NEWS: Document 1.26 highlights.
4637
4638 * Makefile.am: Require Automake 1.3 or later.
4639
4640 * acconfig.h:
4641 Use prototypes if the compiler understands them.
4642
4643 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4644
4645 * src/version.c:
4646 Use VERSION symbol from automake for version number.
4647
4648 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4649
4650 * acconfig.h, configure.in, version.cin:
4651 Use VERSION symbol from automake for version number.
4652
4653 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4654
4655 * Makefile.am:
4656 Distribute original version of simple parser (bison.s1), not built
4657 version (bison.simple).
4658
4659 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4660
4661 * doc/bison.texinfo: Add info dir entry.
4662
4663 * doc/bison.texinfo:
4664 Let automake put version number into documentation.
4665
4666 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4667
4668 * src/bison.cld, src/build.com, src/vmshlp.mar:
4669 Add non-RCS files from /gd/gnu/bison.
4670
4671 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4672
4673 * doc/bison.1:
4674 Document the BISON_HAIRY and BISON_SIMPLE variables.
4675
4676 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4677
4678 * src/version.c: Build version.c automatically.
4679
4680 * src/reader.c:
4681 Fix token numbering (used to start at 258, not 257).
4682
4683 * src/system.h: Include config.h.
4684
4685 * src/getargs.c: Update bug report address.
4686
4687 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
4688 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
4689
4690 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4691
4692 * Makefile.am:
4693 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4694
4695 * configure.in, version.cin:
4696 Build version.c automatically.
4697
4698 * AUTHORS: Add AUTHORS file.
4699
4700 * README: Update bug report address.
4701
4702 * bison.simple:
4703 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4704
4705 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
4706 Add automake stuff.
4707
4708 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4709
4710 * doc/bison.texinfo: Clean up some formatting.
4711
4712 1998-05-05 Richard Stallman <rms@gnu.org>
4713
4714 * doc/bison.texinfo:
4715 Explain better why to make a pure parser.
4716
4717 1998-01-05 Richard Stallman <rms@gnu.org>
4718
4719 * src/files.c (openfiles):
4720 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
4721 find a temporary directory, if possible. Do not unlink files while
4722 they are open.
4723
4724 1997-08-25 Richard Stallman <rms@gnu.org>
4725
4726 * src/reader.c (stack_offset;):
4727 Change some warni to warns.
4728
4729 * src/lex.c (literalchar): Use warns, not warni.
4730
4731 1997-06-28 Richard Stallman <rms@gnu.org>
4732
4733 * src/bison.s1: Add a Bison version comment.
4734
4735 * src/main.c (fatal, warn, berror):
4736 Use program_name.
4737
4738 1997-06-28 Richard Stallman <rms@gnu.org>
4739
4740 * Makefile.in (bison_version): New variable.
4741 (dist): Use that variable.
4742 (bison.s1): Substitute the Bison version into bison.simple.
4743
4744 * bison.simple: Add a Bison version comment.
4745
4746 1997-06-18 Richard Stallman <rms@gnu.org>
4747
4748 * src/main.c (fatal, warn, berror):
4749 Make error messages standard.
4750 (toomany): Improve error message text.
4751
4752 * 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:
4753 new.h renamed to alloc.h.
4754
4755 1997-06-18 Richard Stallman <rms@gnu.org>
4756
4757 * Makefile.in: new.h renamed to alloc.h.
4758
4759 1997-05-24 Richard Stallman <rms@gnu.org>
4760
4761 * src/lex.c (literalchar):
4762 Fix the code for escaping \, " and '.
4763
4764 (lex): Avoid trouble when there are many chars
4765 to discard in a char literal with just several chars in it.
4766
4767 1997-05-17 Richard Stallman <rms@gnu.org>
4768
4769 * src/bison.s1:
4770 Use malloc, if using alloca is troublesome.
4771 (YYSTACK_USE_ALLOCA): New flag macro.
4772 Define it for some systems and compilers.
4773 (YYSTACK_ALLOC): New macro.
4774 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4775 If it was malloc'd, free it.
4776
4777 1997-05-17 Richard Stallman <rms@gnu.org>
4778
4779 * bison.simple:
4780 Use malloc, if using alloca is troublesome.
4781 (YYSTACK_USE_ALLOCA): New flag macro.
4782 Define it for some systems and compilers.
4783 (YYSTACK_ALLOC): New macro.
4784 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4785 If it was malloc'd, free it.
4786
4787 1997-04-23 Richard Stallman <rms@gnu.org>
4788
4789 * src/bison.s1:
4790 (alloca) [__hpux]: Always define as __builtin_alloca.
4791
4792 1997-04-23 Richard Stallman <rms@gnu.org>
4793
4794 * bison.simple:
4795 (alloca) [__hpux]: Always define as __builtin_alloca.
4796
4797 1997-04-22 Richard Stallman <rms@gnu.org>
4798
4799 * src/bison.s1:
4800 [__hpux]: Include alloca.h (right for HPUX 10)
4801 instead of declaring alloca (right for HPUX 9).
4802
4803 * src/bison.s1 (__yy_memcpy):
4804 Declare arg `count' as unsigned int.
4805 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4806
4807 1997-04-22 Richard Stallman <rms@gnu.org>
4808
4809 * bison.simple:
4810 [__hpux]: Include alloca.h (right for HPUX 10)
4811 instead of declaring alloca (right for HPUX 9).
4812
4813 * bison.simple (__yy_memcpy):
4814 Declare arg `count' as unsigned int.
4815 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4816
4817 1997-01-03 Richard Stallman <rms@gnu.org>
4818
4819 * src/allocate.c: [__STDC__ or _MSC_VER]:
4820 Declare calloc and realloc to return void *.
4821
4822 1997-01-02 Richard Stallman <rms@gnu.org>
4823
4824 * src/system.h:
4825 [_MSC_VER]: Include stdlib.h and process.h.
4826 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
4827
4828 * src/main.c (main): Return FAILURE as a value.
4829 (printable_version): Declare arg as int, not char.
4830
4831 1997-01-02 Richard Stallman <rms@gnu.org>
4832
4833 * Makefile.in (dist):
4834 Explicitly check for symlinks, and copy them.
4835
4836 1996-12-19 Richard Stallman <rms@gnu.org>
4837
4838 * src/files.c:
4839 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
4840
4841 1996-12-18 Paul Eggert <eggert@gnu.org>
4842
4843 * src/bison.s1 (yyparse):
4844 If __GNUC__ and YYPARSE_PARAM are both defined,
4845 declare yyparse to have a void * argument.
4846
4847 1996-12-18 Paul Eggert <eggert@gnu.org>
4848
4849 * bison.simple (yyparse):
4850 If __GNUC__ and YYPARSE_PARAM are both defined,
4851 declare yyparse to have a void * argument.
4852
4853 1996-12-17 Richard Stallman <rms@gnu.org>
4854
4855 * src/reduce.c (nbits): Add some casts.
4856
4857 1996-08-12 Richard Stallman <rms@gnu.org>
4858
4859 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
4860
4861 1996-08-12 Richard Stallman <rms@gnu.org>
4862
4863 * bison.simple: Test _MSDOS as well as _MSDOS_.
4864
4865 1996-07-31 Richard Stallman <rms@gnu.org>
4866
4867 * src/bison.s1:
4868 [__sun && __i386]: Include alloca.h.
4869
4870 1996-07-31 Richard Stallman <rms@gnu.org>
4871
4872 * bison.simple:
4873 [__sun && __i386]: Include alloca.h.
4874
4875 1996-07-30 Richard Stallman <rms@gnu.org>
4876
4877 * src/bison.s1: Comment change.
4878
4879 * src/bison.s1: Test _MSDOS_, not MSDOS.
4880
4881 1996-07-30 Richard Stallman <rms@gnu.org>
4882
4883 * bison.simple: Comment change.
4884
4885 * bison.simple: Test _MSDOS_, not MSDOS.
4886
4887 1996-06-01 Richard Stallman <rms@gnu.org>
4888
4889 * 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:
4890 Insert `_' macro around many string constants.
4891
4892 * src/main.c:
4893 Insert `_' macro around many string constants.
4894
4895 (main): Call setlocale, bindtextdomain and textdomain.
4896
4897 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
4898 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
4899 [ENABLE_NLS]: Include libintl.h.
4900 [ENABLE_NLS] (gettext): Define.
4901 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
4902 (N_, PACKAGE, LOCALEDIR): New macros.
4903
4904 1996-06-01 Richard Stallman <rms@gnu.org>
4905
4906 * POTFILES.in: New file.
4907
4908 * Makefile.in (allocate.o):
4909 Define target explicitly.
4910
4911 * Makefile.in (CFLAGS): Set to @CFLAGS@.
4912 (LDFLAGS): Set to @LDFLAGS@.
4913 (configure): Run autoconf only if preceding `cd' succeeds.
4914 (bison.s1): Redirect output to temporary file then move the
4915 temporary to the target, rather than redirecting directly to bison.s1.
4916 (clean): Remove config.status and config.log.
4917 (distclean): Don't remove config.status here.
4918
4919 1996-05-12 Richard Stallman <rms@gnu.org>
4920
4921 * src/bison.s1:
4922 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
4923
4924 1996-05-12 Richard Stallman <rms@gnu.org>
4925
4926 * bison.simple:
4927 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
4928
4929 1996-05-11 Richard Stallman <rms@gnu.org>
4930
4931 * src/bison.s1 (__yy_memcpy):
4932 Really reorder the args, as was supposedly done on Feb 14 1995.
4933 (yyparse): Calls changed accordingly.
4934
4935 1996-05-11 Richard Stallman <rms@gnu.org>
4936
4937 * Makefile.in (dist): Don't use $(srcdir).
4938
4939 * bison.simple (__yy_memcpy):
4940 Really reorder the args, as was supposedly done on Feb 14 1995.
4941 (yyparse): Calls changed accordingly.
4942
4943 1996-01-27 Richard Stallman <rms@gnu.org>
4944
4945 * src/output.c (output_rule_data):
4946 Test YYERROR_VERBOSE in the conditional
4947 around the definition of ttyname.
4948
4949 1995-12-29 Richard Stallman <rms@gnu.org>
4950
4951 * src/bison.s1:
4952 Fix line numbers in #line commands.
4953
4954 1995-12-29 Richard Stallman <rms@gnu.org>
4955
4956 * bison.simple:
4957 Fix line numbers in #line commands.
4958
4959 1995-12-27 Richard Stallman <rms@gnu.org>
4960
4961 * src/bison.s1 (YYPARSE_PARAM_DECL):
4962 In C++, make it always null.
4963 (YYPARSE_PARAM_ARG): New macro.
4964 (yyparse): Use YYPARSE_PARAM_ARG.
4965
4966 1995-12-27 Richard Stallman <rms@gnu.org>
4967
4968 * bison.simple (YYPARSE_PARAM_DECL):
4969 In C++, make it always null.
4970 (YYPARSE_PARAM_ARG): New macro.
4971 (yyparse): Use YYPARSE_PARAM_ARG.
4972
4973 1995-11-29 Richard Stallman <rms@gnu.org>
4974
4975 * doc/bison.texinfo:
4976 Describe literal string tokens, %raw, %no_lines, %token_table.
4977
4978 1995-11-29 Daniel Hagerty <hag@gnu.org>
4979
4980 * doc/bison.texinfo: Fixed update date
4981
4982 1995-10-16 Richard Stallman <rms@gnu.org>
4983
4984 * src/version.c: Version 1.25.
4985
4986 1995-10-16 Richard Stallman <rms@gnu.org>
4987
4988 * NEWS: *** empty log message ***
4989
4990 1995-10-16 Richard Stallman <rms@gnu.org>
4991
4992 * doc/bison.1, doc/bison.rnh:
4993 Add new options.
4994
4995 1995-10-15 Richard Stallman <rms@gnu.org>
4996
4997 * src/vmsgetargs.c, src/getargs.c:
4998 Added -n, -k, and -raw switches.
4999 (noparserflag, toknumflag, rawtoknumflag): New variables.
5000
5001 * src/symtab.h (SALIAS):
5002 New #define for adding aliases to %token.
5003 (struct bucket): Added `alias' field.
5004
5005 * src/reduce.c (reduce_grammar):
5006 Revise error message.
5007 (print_notices): Remove final `.' from error message.
5008
5009 * src/reader.c (reader_output_yylsp):
5010 New function.
5011 (readgram): Use `#if 0' around code that accepted %command
5012 inside grammar rules: The documentation doesn't allow it,
5013 and it will fail since the %command processors scan for the next %.
5014 (parse_token_decl): Extended the %token
5015 declaration to allow a multi-character symbol as an alias.
5016 (parse_thong_decl): New function.
5017 (read_declarations): Added %thong declarations.
5018 (read_declarations): Handle NOOP to deal with allowing
5019 % declarations as another means to specify the flags.
5020 (readgram): Allow %prec prior to semantics embedded in a rule.
5021 (skip_to_char, read_declarations, copy_definition)
5022 (parse_token_decl, parse_start_decl, parse_type_decl)
5023 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
5024 (get_type_name, copy_guard, copy_action, readgram)
5025 (get_type, packsymbols): Revised most error messages.
5026 Changed `fatal' to `warnxxx' to avoid aborting for error.
5027 Revised and use multiple warnxxx functions to avoid using VARARGS1.
5028 (read_declarations): Improve the error message for
5029 an invalid character. Do not abort.
5030 (read_declarations, copy_guard, copy_action): Use
5031 printable_version to avoid unprintable characters in printed output.
5032 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
5033 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
5034 Allow the type of a non-terminal can be given
5035 more than once, as long as all specifications give the same type.
5036
5037 * src/output.c:
5038 (output_headers, output_trailers, output, output_gram)
5039 (output_rule_data): Implement noparserflag variable.
5040 Implement toknumflag variable.
5041 (output): Call reader_output_yylsp to output LTYPESTR.
5042
5043 * src/main.c (main):
5044 If reader sees an error, don't process the grammar.
5045 (fatals): Updated to not use VARARGS1.
5046 (printable_version, int_to_string, warn, warni, warns, warnss)
5047 (warnsss): New error reporting functions. Avoid abort for error.
5048
5049 * src/lex.h:
5050 Added THONG and NOOP for alias processing.
5051 Added SETOPT for the new code that allows setting options with %flags.
5052
5053 * src/lex.c:
5054 Include getopt.h. Add some extern decls.
5055 (safegetc): New function to deal with EOF gracefully.
5056 (literalchar); new function to deal with reading \ escapes.
5057 (lex): Use literalchar.
5058 (lex): Implemented "..." tokens.
5059 (literalchar, lex, parse_percent_token): Made tokenbuffer
5060 always contain the token. This includes growing the token
5061 buffer while reading an integer.
5062 (parse_percent_token): Replaced if-else statement with percent_table.
5063 (parse_percent_token): Added % declarations as another
5064 way to specify the flags -n, -l, and -r. Also added hooks for
5065 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
5066 major changes to files.c.
5067 (lex) Retain in the incoming stream a character following
5068 an incorrect '/'.
5069 (skip_white_space, lex): Revised most error messages
5070 and changed fatal to warn to avoid aborting.
5071 (percent_table): Added %thong declarations.
5072
5073 * src/gram.h: Comment changes.
5074
5075 * src/files.c (openfiles, open_extra_files, done):
5076 Add faction flag
5077 and actfile file. Handle noparserflag. Both for -n switch.
5078
5079 * src/conflicts.c (resolve_sr_conflict):
5080 Remove use of alloca.
5081
5082 1995-06-01 Jim Meyering <meyering@gnu.org>
5083
5084 * doc/bison.texinfo: *** empty log message ***
5085
5086 1995-05-06 Richard Stallman <rms@gnu.org>
5087
5088 * src/bison.s1: Comment change.
5089
5090 1995-05-06 Richard Stallman <rms@gnu.org>
5091
5092 * bison.simple: Comment change.
5093
5094 1995-05-03 Richard Stallman <rms@gnu.org>
5095
5096 * src/version.c: Version now 1.24.
5097
5098 * src/bison.s1: Change distribution terms.
5099
5100 * src/version.c: Version now 1.23.
5101
5102 1995-05-03 Richard Stallman <rms@gnu.org>
5103
5104 * doc/bison.texinfo:
5105 Rewrite "Conditions for Using Bison".
5106 Update version to 1.24.
5107
5108 1995-05-03 Richard Stallman <rms@gnu.org>
5109
5110 * bison.simple: Change distribution terms.
5111
5112 1995-02-23 Richard Stallman <rms@gnu.org>
5113
5114 * src/files.c: Test __VMS_POSIX as well as VMS.
5115
5116 1995-02-14 Jim Meyering <meyering@gnu.org>
5117
5118 * src/bison.s1 (__yy_memcpy):
5119 Renamed from __yy_bcopy to avoid
5120 confusion. Reverse FROM and TO arguments to be consistent with
5121 those of memcpy.
5122
5123 1995-02-14 Jim Meyering <meyering@gnu.org>
5124
5125 * bison.simple (__yy_memcpy):
5126 Renamed from __yy_bcopy to avoid
5127 confusion. Reverse FROM and TO arguments to be consistent with
5128 those of memcpy.
5129
5130 1994-11-10 David J. MacKenzie <djm@gnu.org>
5131
5132 * NEWS: reformat
5133
5134 * NEWS: New file.
5135
5136 * Makefile.in (DISTFILES): Include NEWS.
5137
5138 * Makefile.in (DISTFILES):
5139 Include install-sh, not install.sh.
5140
5141 * configure.in: Update to Autoconf v2 macro names.
5142
5143 1994-10-05 David J. MacKenzie <djm@gnu.org>
5144
5145 * Makefile.in: fix typo
5146
5147 * Makefile.in (prefix, exec_prefix):
5148 Let configure set them.
5149
5150 1994-09-28 David J. MacKenzie <djm@gnu.org>
5151
5152 * Makefile.in: Set datadir to $(prefix)/share.
5153
5154 1994-09-15 Richard Stallman <rms@gnu.org>
5155
5156 * src/bison.s1:
5157 Update copyright notice and GPL version.
5158
5159 1994-09-15 Richard Stallman <rms@gnu.org>
5160
5161 * bison.simple:
5162 Update copyright notice and GPL version.
5163
5164 1994-07-12 Richard Stallman <rms@gnu.org>
5165
5166 * src/reduce.c, src/reader.c:
5167 entered into RCS
5168
5169 1994-05-05 David J. MacKenzie <djm@gnu.org>
5170
5171 * Makefile.in: entered into RCS
5172
5173 1994-03-26 Richard Stallman <rms@gnu.org>
5174
5175 * src/bison.s1: entered into RCS
5176
5177 1994-03-26 Richard Stallman <rms@gnu.org>
5178
5179 * bison.simple: entered into RCS
5180
5181 1994-03-25 Richard Stallman <rms@gnu.org>
5182
5183 * src/main.c: entered into RCS
5184
5185 1994-03-24 Richard Stallman <rms@gnu.org>
5186
5187 * src/conflicts.c: entered into RCS
5188
5189 1994-01-02 Richard Stallman <rms@gnu.org>
5190
5191 * Makefile.in: *** empty log message ***
5192
5193 1993-11-21 Richard Stallman <rms@gnu.org>
5194
5195 * src/bison.s1: *** empty log message ***
5196
5197 1993-11-21 Richard Stallman <rms@gnu.org>
5198
5199 * doc/bison.texinfo: entered into RCS
5200
5201 * doc/bison.texinfo: *** empty log message ***
5202
5203 1993-11-21 Richard Stallman <rms@gnu.org>
5204
5205 * bison.simple: *** empty log message ***
5206
5207 1993-10-25 David J. MacKenzie <djm@gnu.org>
5208
5209 * doc/bison.texinfo: *** empty log message ***
5210
5211 1993-10-19 Richard Stallman <rms@gnu.org>
5212
5213 * src/bison.s1: *** empty log message ***
5214
5215 1993-10-19 Richard Stallman <rms@gnu.org>
5216
5217 * bison.simple: *** empty log message ***
5218
5219 1993-10-14 Richard Stallman <rms@gnu.org>
5220
5221 * src/bison.s1: *** empty log message ***
5222
5223 1993-10-14 Richard Stallman <rms@gnu.org>
5224
5225 * bison.simple: *** empty log message ***
5226
5227 1993-09-14 David J. MacKenzie <djm@gnu.org>
5228
5229 * doc/bison.texinfo: *** empty log message ***
5230
5231 1993-09-13 Noah Friedman <friedman@gnu.org>
5232
5233 * Makefile.in: *** empty log message ***
5234
5235 1993-09-10 Richard Stallman <rms@gnu.org>
5236
5237 * src/conflicts.c: *** empty log message ***
5238
5239 * src/system.h: entered into RCS
5240
5241 1993-09-10 Richard Stallman <rms@gnu.org>
5242
5243 * doc/bison.1: entered into RCS
5244
5245 1993-09-06 Noah Friedman <friedman@gnu.org>
5246
5247 * src/version.c: entered into RCS
5248
5249 1993-09-06 Noah Friedman <friedman@gnu.org>
5250
5251 * Makefile.in: *** empty log message ***
5252
5253 1993-07-30 David J. MacKenzie <djm@gnu.org>
5254
5255 * Makefile.in: *** empty log message ***
5256
5257 1993-07-24 Richard Stallman <rms@gnu.org>
5258
5259 * src/bison.s1: *** empty log message ***
5260
5261 1993-07-24 Richard Stallman <rms@gnu.org>
5262
5263 * bison.simple: *** empty log message ***
5264
5265 1993-07-08 David J. MacKenzie <djm@gnu.org>
5266
5267 * Makefile.in: *** empty log message ***
5268
5269 1993-07-04 Richard Stallman <rms@gnu.org>
5270
5271 * src/bison.s1: *** empty log message ***
5272
5273 1993-07-04 Richard Stallman <rms@gnu.org>
5274
5275 * bison.simple: *** empty log message ***
5276
5277 1993-06-26 David J. MacKenzie <djm@gnu.org>
5278
5279 * src/getargs.c: entered into RCS
5280
5281 1993-06-26 David J. MacKenzie <djm@gnu.org>
5282
5283 * doc/bison.texinfo: *** empty log message ***
5284
5285 * doc/bison.1: New file.
5286
5287 1993-06-25 Richard Stallman <rms@gnu.org>
5288
5289 * src/getargs.c: New file.
5290
5291 1993-06-16 Richard Stallman <rms@gnu.org>
5292
5293 * src/bison.s1: *** empty log message ***
5294
5295 1993-06-16 Richard Stallman <rms@gnu.org>
5296
5297 * bison.simple: *** empty log message ***
5298
5299 1993-06-03 Richard Stallman <rms@gnu.org>
5300
5301 * src/bison.s1: New file.
5302
5303 1993-06-03 Richard Stallman <rms@gnu.org>
5304
5305 * doc/bison.texinfo: *** empty log message ***
5306
5307 1993-06-03 Richard Stallman <rms@gnu.org>
5308
5309 * bison.simple: New file.
5310
5311 1993-05-19 Richard Stallman <rms@gnu.org>
5312
5313 * doc/bison.texinfo: New file.
5314
5315 1993-05-07 Noah Friedman <friedman@gnu.org>
5316
5317 * Makefile.in: *** empty log message ***
5318
5319 1993-04-28 Noah Friedman <friedman@gnu.org>
5320
5321 * src/reader.c: *** empty log message ***
5322
5323 1993-04-23 Noah Friedman <friedman@gnu.org>
5324
5325 * src/alloc.h: entered into RCS
5326
5327 1993-04-20 David J. MacKenzie <djm@gnu.org>
5328
5329 * src/version.c: *** empty log message ***
5330
5331 * src/files.c, src/allocate.c:
5332 entered into RCS
5333
5334 * src/reader.c: *** empty log message ***
5335
5336 * src/lex.c: entered into RCS
5337
5338 * src/conflicts.c: New file.
5339
5340 * src/symtab.c: entered into RCS
5341
5342 * src/alloc.h: New file.
5343
5344 * src/LR0.c: entered into RCS
5345
5346 1993-04-18 Noah Friedman <friedman@gnu.org>
5347
5348 * src/reader.c: New file.
5349
5350 * src/version.c: *** empty log message ***
5351
5352 1993-04-18 Noah Friedman <friedman@gnu.org>
5353
5354 * Makefile.in: *** empty log message ***
5355
5356 1993-04-17 Noah Friedman <friedman@gnu.org>
5357
5358 * Makefile.in: *** empty log message ***
5359
5360 1993-04-15 Richard Stallman <rms@gnu.org>
5361
5362 * src/main.c, src/files.c:
5363 New file.
5364
5365 1993-04-15 Noah Friedman <friedman@gnu.org>
5366
5367 * configure.in: entered into RCS
5368
5369 * configure.in: *** empty log message ***
5370
5371 * configure.in: New file.
5372
5373 1993-04-14 Richard Stallman <rms@gnu.org>
5374
5375 * Makefile.in: New file.
5376
5377 1993-04-13 Richard Stallman <rms@gnu.org>
5378
5379 * src/version.c: New file.
5380
5381 1993-03-25 Richard Stallman <rms@gnu.org>
5382
5383 * src/output.c: entered into RCS
5384
5385 1992-09-25 Richard Stallman <rms@gnu.org>
5386
5387 * configure.bat: entered into RCS
5388
5389 1992-06-22 Richard Stallman <rms@gnu.org>
5390
5391 * src/vmsgetargs.c: entered into RCS
5392
5393 1992-06-22 Richard Stallman <rms@gnu.org>
5394
5395 * doc/bison.rnh: entered into RCS
5396
5397 1992-04-20 David J. MacKenzie <djm@gnu.org>
5398
5399 * README: entered into RCS
5400
5401 1992-01-22 Richard Stallman <rms@gnu.org>
5402
5403 * src/machine.h: entered into RCS
5404
5405 1991-12-21 Richard Stallman <rms@gnu.org>
5406
5407 * src/lalr.c, src/closure.c:
5408 entered into RCS
5409
5410 1991-12-20 Richard Stallman <rms@gnu.org>
5411
5412 * src/state.h: entered into RCS
5413
5414 1991-12-18 Richard Stallman <rms@gnu.org>
5415
5416 * src/print.c, src/nullable.c, src/derives.c:
5417 entered into RCS
5418
5419 1991-11-03 David J. MacKenzie <djm@gnu.org>
5420
5421 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
5422 entered into RCS
5423
5424 1988-09-09 Richard Stallman <rms@gnu.org>
5425
5426 * src/bison.hairy: entered into RCS
5427
5428 1987-12-16 Richard Stallman <rms@gnu.org>
5429
5430 * REFERENCES: entered into RCS