]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/reader.c (parse_expect_decl): Use `skip_white_space' and
[bison.git] / ChangeLog
CommitLineData
131e2fef
AD
12000-10-16 Akim Demaille <akim@epita.fr>
2
3 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
4 `read_signed_integer'.
5
6
79282c5a
AD
72000-10-16 Akim Demaille <akim@epita.fr>
8
9 * src/reader.c (copy_dollar): New function.
10 (copy_guard, copy_action): Use it.
11
12
ff4a34be
AD
132000-10-16 Akim Demaille <akim@epita.fr>
14
15 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
16 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
17 New files, from Fileutils 4.0.27.
18 * src/main.c (printable_version): Remove.
19 * src/lex.c, src/reader.c: Use `quote'.
20
212000-10-04 Akim Demaille <akim@epita.fr>
22
23 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
24
14ded682
AD
252000-10-04 Akim Demaille <akim@epita.fr>
26
27 * doc/bison.texinfo: Various typos spotted by Neil Booth.
28
8e03724b
AD
292000-10-04 Akim Demaille <akim@epita.fr>
30
31 When a literal string is used to define two different tokens,
32 `bison -v' segfaults.
33 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
34
35 * tests/regression.m4: New file.
36 Include the core of the sample provided by Piotr Gackiewicz.
37 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
38 properly.
39
a9e64249
AD
402000-10-04 Akim Demaille <akim@epita.fr>
41
42 * src/reader.c (parse_expect_decl): Keep `count' within the size
43 of `buffer'.
44 From Neil Booth.
45
da9abf43
AD
462000-10-02 Paul Eggert <eggert@twinsun.com>
47
48 * bison.s1 (yyparse): Assign the default value
49 unconditionally, to avoid a GCC warning and make the parser a
50 tad smaller.
51
c33638bb
AD
522000-10-02 Akim Demaille <akim@epita.fr>
53
54 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
55 options.
56
444c570a
AD
572000-10-02 Akim Demaille <akim@epita.fr>
58
59 * src/derives.c, src/print.c, src/reduce.c: To ease the
60 translation, move some `\n' out of the translated strings.
61
89cab50d
AD
622000-10-02 Akim Demaille <akim@epita.fr>
63
64 The location tracking mechanism is precious for parse error
65 messages. Nevertheless, it is enabled only when `@n' is used in
66 the grammar, which is a different issue (you can use it in error
67 message, but not in the grammar per se). Therefore, there should
68 be another means to enable it.
69
70 * src/getargs.c (getargs): Support `--locations'.
71 (usage): Report it.
72 * src/getargs.h (locationsflag): Export it.
73 * src/lex.c (percent_table): Support `%locations'.
74 * src/reader.c (yylsp_needed): Remove this variable, now replaced
75 with `locationsflag'.
76 * doc/bison.texinfo: Document `--locations' and `%locations'.
77 Sort the options.
78 * tests/calc.m4: Test it.
79
80 For regularity of the names, replace each
81 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
82 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
83 In addition replace each `flag' with `_flag'.
84
d6c2cba0
AD
852000-10-02 Akim Demaille <akim@epita.fr>
86
87 Also test parse error messages, including with YYERROR_VERBOSE.
88
89 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
90 associative).
91 Use it to check the computations.
92 Use it to check `nonassoc' is honored.
93 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
94 `--yyerror-verbose'.
95 (_AT_CHECK_CALC): Adjust to this option.
96 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
97
5a35a6cb
AD
982000-10-02 Akim Demaille <akim@epita.fr>
99
100 Test also `--verbose', `--defines' and `--name-prefix'. Testing
101 the latter demonstrates a flaw in the handling of non debugging
102 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
103 was used in order to simplify:
104
105 #if YYDEBUG
106 if (yydebug)
107 {
108 ...
109 }
110 #endif
111
112 into
113
114 if (yydebug)
115 {
116 ...
117 }
118
119 unfortunately this leads to a CPP conflict when
120 `--name-prefix=foo' is used since it produces `#define yydebug
121 foodebug'.
122
123 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
124 (YYDPRINTF): New macro.
125 Spread its use.
126 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
127 the bison options.
128 Also test `--verbose', `--defines' and `--name-prefix'.
129
71da9eea
AD
1302000-10-02 Akim Demaille <akim@epita.fr>
131
132 Improve the readability of the produced parsers.
133
134 * src/bison.s1: Formatting changes.
135 Improve the comment related to the `$' mark.
136 (yydefault): Don't fall through to `yyresume': `goto' there.
137 * src/output.c (output_parser): When the `$' is met, skip the end
138 of its line.
139 New variable, `number_of_dollar_signs', to check there's exactly
140 one `$' in the parser skeleton.
141
95e36146
AD
1422000-10-02 Akim Demaille <akim@epita.fr>
143
144 * lib/xstrdup.c: New file, from the fileutils.
145 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
146 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
147 instead of strlen + xmalloc + strcpy.
148 * src/symtab.c (copys): Remove, use xstrdup instead.
149
d7020c20
AD
1502000-10-02 Akim Demaille <akim@epita.fr>
151
152 * src/gram.h (associativity): New enum type which replaces the
153 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
154 `right_assoc', `left_assoc' and `non_assoc'.
155 Adjust all dependencies.
156 * src/reader.c: Formatting changes.
157 (LTYPESTR): Don't define it, use it as a literal in
158 `reader_output_yylsp'.
159 * src/symtab.h (symbol_class): New enum type which replaces the
160 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
161 `sunknown', `stoken and `snterm'.
162
1916f98e
AD
1632000-10-02 Akim Demaille <akim@epita.fr>
164
165 * src/getargs.c (fixed_outfiles): Rename as...
166 (yaccflag): for consistency and accuracy.
167 Adjust dependencies.
168
d7913476
AD
1692000-10-02 Akim Demaille <akim@epita.fr>
170
171 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
172 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
173 difficult and introduced a lot of core dump. It turns out that
174 Bison used an implementation of `xmalloc' based on `calloc', and
175 at various places it does depend upon the initialization to 0. I
176 have not tried to isolate the pertinent places, and all the former
177 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
178 someone should address this issue.
179
180 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
181 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
182 files.
183 Adjust dependencies.
184 * src/warshall.h: New file.
185 Propagate.
186
340ef489
AD
1872000-10-02 Akim Demaille <akim@epita.fr>
188
189 Various anti-`extern in *.c' changes.
190
191 * src/system.h: Include `assert.h'.
192
b2ca4022
AD
1932000-10-02 Akim Demaille <akim@epita.fr>
194
195 * src/state.h (nstates, final_state, first_state, first_shift)
196 (first_reduction): Move their exportation from here...
197 * src/LR0.h: to here.
198 Adjust dependencies.
199 * src/getargs.c (statisticsflag): New variable.
200 Add support for `--statistics'.
201 Adjust dependencies.
202
203 Remove a lot of now useless `extern' statements in most files.
204
403b315b
AD
2052000-10-02 Akim Demaille <akim@epita.fr>
206
207 * src/LR0.h: New file.
208 Propagate its use.
209
07a58c13
AD
2102000-10-02 Akim Demaille <akim@epita.fr>
211
212 * src/print.h: New file.
213 Propagate its use.
214 * src/print.c: Formatting and ordering changes.
215 (verbose, terse): Replace with...
216 (print_results): this new function.
217 Adjust dependencies.
218
0619caf0
AD
2192000-10-02 Akim Demaille <akim@epita.fr>
220
221 * src/conflicts.c (conflict_report): New function.
222 (conflict_log, verbose_conflict_log): Replace with...
223 (print_conflicts): this function.
224 Adjust dependencies.
225 * src/conflicts.h: New file.
226 Propagate its inclusion.
227
3519ec76
AD
2282000-10-02 Akim Demaille <akim@epita.fr>
229
230 * src/nullable.h: New file.
231 Propagate its inclusion.
232 * src/nullable.c: Formatting changes.
233
015acc48
AD
2342000-10-02 Akim Demaille <akim@epita.fr>
235
236 * src/reduce.h: New file.
237 Propagate its inclusion.
238 * src/reduce.c: Topological sort and other formatting changes.
239 (bool, TRUE, FALSE): Move their definition to...
240 * src/system.h: here.
241
8963a27b
AD
2422000-10-02 Akim Demaille <akim@epita.fr>
243
244 * src/files.c: Formatting changes.
245 (tryopen, tryclose, openfiles): Rename as...
246 (xfopen, xfclose, open_files): this.
247 (stringappend): static.
248 * src/files.h: Complete the list of exported symbols.
249 Propagate its use.
250
a70083a3
AD
2512000-10-02 Akim Demaille <akim@epita.fr>
252
253 * src/reader.h: New file.
254 Propagate its use instead of tedious list of `extern' and
255 prototypes.
256 * src/reader.c: Formatting changes, topological sort,
257 s/register//.
258
abadc117
AD
2592000-10-02 Akim Demaille <akim@epita.fr>
260
261 * src/lex.h: Prototype `lex.c' exported functions.
262 * src/reader.c: Adjust.
263 * src/lex.c: Formatting changes.
264 (safegetc): Rename as...
265 (xgetc): this.
266
720d742f
AD
2672000-10-02 Akim Demaille <akim@epita.fr>
268
269 * src/lalr.h: New file.
270 Propagate its inclusion instead of prototypes and `extern'.
271 * src/lalr.c: Formatting changes, topological sorting etc.
272
f2acea59
AD
2732000-10-02 Akim Demaille <akim@epita.fr>
274
275 * src/output.c (token_actions): Introduce a temporary array,
276 YYDEFACT, that makes it possible for this function to use
277 output_short_table.
278
d019d655
AD
2792000-10-02 Akim Demaille <akim@epita.fr>
280
281 `user_toknums' is output as a `short[]' in `output.c', while it is
282 defined as a `int[]' in `reader.c'. For consistency with the
283 other output tables, `user_toknums' is now defined as a table of
284 shorts.
285
286 * src/reader.c (user_toknums): Be a short table instead of an int
287 table.
288 Adjust dependencies.
289
290 Factor the short table outputs.
291
292 * src/output.c (output_short_table): New function.
293 * src/output.c (output_gram, output_stos, output_rule_data)
294 (output_base, output_table, output_check): Use it.
295
6c89f1c1
AD
2962000-10-02 Akim Demaille <akim@epita.fr>
297
298 * src/output.c (output): Topological sort of the functions, in
299 order to get rid of the `static' prototypes.
300 No longer use `register'.
301 * src/output.h: New file.
302 Propagate its inclusion in files explicitly prototyping functions
303 from output.c.
304
d9efd181
AD
3052000-09-21 Akim Demaille <akim@epita.fr>
306
307 * src/atgeneral.m4: Update from Autoconf.
308
c29240e7 3092000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
310
311 * src/closure.h: New file.
312 * src/closure.c: Formatting changes, topological sort over the
313 functions, use of closure.h.
314 (initialize_closure, finalize_closure): Rename as...
315 (new_closure, free_closure): these. Adjust dependencies.
316 * src/LR0.c: Formatting changes, topological sort, use of
317 cloture.h.
318 (initialize_states): Rename as...
319 (new_states): this.
320 * src/Makefile.am (noinst_HEADERS): Adjust.
321
499daa50
AD
3222000-09-20 Akim Demaille <akim@epita.fr>
323
324 * src/acconfig.h: Don't protect config.h against multiple
325 inclusion.
326 Don't define PARAMS.
327 * src/system.h: Define PARAMS.
328 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
329 purpose of config.h. system.h must not try to fix wrong
330 definitions in config.h.
331
cc84fd5d
AD
3322000-09-20 Akim Demaille <akim@epita.fr>
333
334 * src/derives.h: New file.
335 * src/main.c, src/derives.h: Use it.
336 Formatting changes.
337 * src/Makefile.am (noinst_HEADERS): Adjust.
338
db5b3a89
AD
3392000-09-20 Akim Demaille <akim@epita.fr>
340
341 * tests/atgeneral.m4: Update from Autoconf.
342 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
343 (AT_CHECK_CALC): New macros.
344 Use these macros to test bison with options `', `--raw',
345 `--debug', `--yacc', `--yacc --debug'.
346
ceed8467
AD
3472000-09-19 Akim Demaille <akim@epita.fr>
348
349 * src/output.c: Formatting changes.
350 * src/machine.h: Remove, leaving its contents in...
351 * src/system.h: here.
352 Include stdio.h.
353 Adjust all dependencies on stdio.h and machine.h.
354 * src/getargs.h: New file.
355 Let all `extern' declarations about getargs.c be replaced with
356 inclusion of `getargs.h'.
357 * src/Makefile.am (noinst_HEADERS): Adjust.
358
359 * tests/calc.m4 (yyin): Be initialized in main, not on the global
360 scope.
361 (yyerror): Returns void, not int.
362 * doc/bison.texinfo: Formatting changes.
363
05a1d24b
AD
3642000-09-19 Akim Demaille <akim@epita.fr>
365
366 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
367 portable.
368
cbd25751
AD
3692000-09-18 Akim Demaille <akim@epita.fr>
370
371 * configure.in: Append WARNING_CFLAGS to CFLAGS.
372 * src/Makefile.am (INCLUDES): Don't.
373 Be ready to fetch headers in lib/.
374
13863333
AD
3752000-09-18 Akim Demaille <akim@epita.fr>
376
377 * doc/bison.texinfo: Update the copyright.
378 ANSIfy and GNUify the examples.
379 Remove the old menu.
380
0d533154
AD
3812000-09-18 Akim Demaille <akim@epita.fr>
382
383 First set of tests: use the `calc' example from the documentation.
384
385 * src/bison.s1 (yyparse): Condition the code using `yytname' which
386 is defined only when YYDEBUG is.
387 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
388 * src/files.c (tryopen, tryclose): Formatting changes.
389 Move to the top and be static.
390 * src/reader.c (read_signed_integer): Likewise.
391 * tests/calc.m4: New file.
392 * Makefile.am, suite.m4: Adjust.
393 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
394
e79137ac
AD
3952000-09-18 Akim Demaille <akim@epita.fr>
396
397 Add support for an Autotest test suite for Bison.
398
399 * m4/m4.m4, m4/atconfig.m4: New files.
400 * m4/Makefile.am (EXTRA_DIST): Adjust.
401 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
402 files.
403 * src/getargs.c: Display a more standard --version message.
404 * src/reader.c (reader): Formatting changes.
405 No longer depend upon VERSION_STRING.
406 * configure.in: No longer use `dnl'.
407 Set up the test suite and the new directory `tests/.
408 (VERSION_STRING): Remove.
409
27821bff
AD
4102000-04-14 Akim Demaille <akim@epita.fr>
411
412 * src/reader.c (copy_comment2): New function, same as former
413 `copy_comment', but outputs into two FILE *.
414 (copy_comment): Use it.
415 (parse_union_decl): Use it.
416 (get_type, parse_start_decl): Use the same `invalid' message.
417 (parse_start_decl, parse_union_decl): Use the same `multiple'
418 message.
419 (parse_union_decl, copy_guard, copy_action): Use the same
420 `unmatched' message.
421 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
422
cfe5fbc0
AD
4232000-03-31 Akim Demaille <akim@epita.fr>
424
425 * src/files.c (tryopen, tryclose): Move to the top.
426 Be static.
427
cb7db13e
AD
4282000-03-31 Akim Demaille <akim@epita.fr>
429
430 * src/main.c (main): Don't call `done', exit does it.
431
a0f6b076
AD
4322000-03-31 Akim Demaille <akim@epita.fr>
433
36281465
AD
434 * allocate.c: s/return (foo)/return foo/.
435 * lalr.c: Likewise.
436 * LR0.c: Likewise.
437 * output.c: Likewise.
438 * reader.c: Likewise.
439 * symtab.c: Likewise.
440 * vmsgetargs.c: Likewise.
441
4422000-03-31 Akim Demaille <akim@epita.fr>
443
444 Clean up the error reporting functions.
a0f6b076
AD
445
446 * src/report.c: New file.
447 * src/report.h: Likewise.
448 * src/Makefile.am: Adjust.
449 * m4/error.m4: New file.
450 * m4/Makefile.am: Adjust.
451 * configure.in (jm_PREREQ_ERROR): Call it.
452 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
453 Remove.
454 (fatal, fatals): Remove. All callers use complain.c::fatal.
455 (warn, warni, warns, warnss, warnss): Remove. All callers use
456 complain.c::complain.
457 (toomany): Remove, use fatal instead.
458 * src/files.c (done): No argument, use complain_message_count.
459 * src/main.c (main): Register `done' to `atexit'.
460
461 * src/getargs.c (usage): More `fputs', less `fprintf'.
462
18539825
AD
4632000-03-28 Akim Demaille <akim@epita.fr>
464
465 * lib/: New directory.
466 * Makefile.am (SUBDIRS): Adjust.
467 * configure.in: Adjust.
468 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
469 useless.
470 * src/alloca.c: Moved to lib/.
471 * src/getopt.c: Likewise.
472 * src/getopt1.c: Likewise.
473 * src/getopt.h: Likewise.
474 * src/ansi2knr.c: Likewise.
475 * src/ansi2knr.1: Likewise.
476 * src/Makefile.am: Adjust.
477 * lib/Makefile.am: New file.
478
9f306f2a
AD
4792000-03-28 Akim Demaille <akim@epita.fr>
480
481 * src/getargs.c (usage): Refresh the help message.
482
0ba347b6
AD
4832000-03-17 Akim Demaille <akim@epita.fr>
484
485 * src/getopt1.c: Updated from textutils 2.0e
486 * src/getopt.c: Likewise.
487 * src/getopt.h: Likewise.
488
dbe7f271
AD
4892000-03-17 Akim Demaille <akim@epita.fr>
490
491 * src/Makefile.am (bison.simple): Fix the awk program: quote only
492 the file name, not the whole `#line LINE FILE'.
493
75bbe78d
AD
4942000-03-17 Akim Demaille <akim@epita.fr>
495
496 On syntax errors, report the token on which we choked.
497
aa5fd0ee
AD
498 * src/bison.s1 (yyparse): In the label yyerrlab, when
499 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 500
7b306f52
AD
5012000-03-17 Akim Demaille <akim@epita.fr>
502
aa5fd0ee 503 * src/reader.c (copy_at): New function.
7b306f52
AD
504 (copy_guard): Use it.
505 (copy_action): Use it.
506
e87b5700
AD
5072000-03-17 Akim Demaille <akim@epita.fr>
508
509 Be kind to translators, save some useless translations.
510
aa5fd0ee 511 * src/main.c (banner): New function.
e87b5700
AD
512 (fatal_banner): Use it.
513 (warn_banner): Use it.
514
ae3c3164
AD
5152000-03-17 Akim Demaille <akim@epita.fr>
516
aa5fd0ee
AD
517 * src/reader.c (copy_definition): Use copy_string and
518 copy_comment. Removed now unused `match', `ended',
519 `cplus_comment'.
ae3c3164
AD
520 (copy_comment, copy_string): Moved, to be visible from
521 copy_definition.
522
4dc58e7c
AD
5232000-03-17 Akim Demaille <akim@epita.fr>
524
aa5fd0ee
AD
525 * src/reader.c (copy_string): Declare `static inline'. No
526 problems with inline, since it is checked by configure.
4dc58e7c
AD
527 (copy_comment): Likewise.
528
0a6384c4
AD
5292000-03-17 Akim Demaille <akim@epita.fr>
530
aa5fd0ee 531 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 532
3cef001a
AD
5332000-03-17 Akim Demaille <akim@epita.fr>
534
aa5fd0ee 535 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
536 (copy_action): Use it. Removed now unused `match', `ended',
537 `cplus_comment'.
538 (copy_guard): Likewise.
539
ca36d2ef
AD
5402000-03-17 Akim Demaille <akim@epita.fr>
541
aa5fd0ee 542 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
543 (copy_action): Use it.
544 (copy_guard): Likewise.
545
6666f98f
AD
5462000-03-17 Akim Demaille <akim@epita.fr>
547
548 Change the handling of @s so that they behave exactly like $s.
549 There is now a pseudo variable @$ (readble and writable), location
550 of the lhs of the rule (by default ranging from the location of
551 the first symbol of the rhs, to the location of the last symbol,
552 or, if the rhs is empty, YYLLOC).
553
554 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
555 yyval.
556 (yyparse): When providing a default semantic action, provide a
557 default location action.
558 (after the $): No longer change `*YYLSP', just stack YYLOC the
559 same way you stack YYVAL.
560 * src/reader.c (read_declarations): Use warns.
561 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
562 (copy_action, case '@'): Likewise.
563 Use a standard error message, to save useless work from
564 translators.
565
41aca2e0
AD
5662000-03-17 Akim Demaille <akim@epita.fr>
567
aa5fd0ee
AD
568 * src/bison.s1: Formatting and cosmetics changes.
569 * src/reader.c: Likewise.
41aca2e0
AD
570 Update the Copyright notice.
571
dc08c1d5
AD
5722000-03-17 Akim Demaille <akim@epita.fr>
573
aa5fd0ee
AD
574 * src/bison.s1 (#line): All set to `#line' only, since the
575 Makefile now handles them.
dc08c1d5 576
9ee3c97b
AD
5772000-03-16 Akim Demaille <akim@epita.fr>
578
579 * src/output.c (output_rule_data): Output the documentation of
580 some of the tables.
581 (Copyright notice): Update.
582 Formatting changes.
583
0de741ca
AD
5842000-03-16 Akim Demaille <akim@epita.fr>
585
586 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
587 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
588 One `#if YYDEBUG' remains, since it uses variables which are
589 defined only if `YYDEBUG != 0'.
590
bb10be54
AD
5912000-03-16 Akim Demaille <akim@epita.fr>
592
593 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
594 and related variables so that the similarities are highlighted.
595
b07b484a
AD
5962000-03-16 Akim Demaille <akim@epita.fr>
597
598 * src/bison.s1: Properly indent CPP directives.
599
361f60b3
AD
6002000-03-16 Akim Demaille <akim@epita.fr>
601
602 * src/bison.s1: Properly indent the `alloca' CPP section.
603
8c44d3ec
AD
6042000-03-16 Akim Demaille <akim@epita.fr>
605
606 Do not hard code values of directories in `configure.in'.
607 Update the `configure' tool chain.
608
609 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
610 src/makefile.am.
611 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
612 (AC_OUTPUT): Add m4/Makefile.
613 Bump to bison 1.28a, 1.29 has never been released.
614 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
615 handled via src/Makefile.am.
616 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
617 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
618 autoheader.
619 * Makefile.am (SUBDIRS): Add m4.
620 (ACLOCAL_AM_FLAGS): New variable.
621 (AUTOMAKE_OPTIONS): Add check-news.
622 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
623 the proper line number and file name.
624 (DEFS): Propagate the location of bison library files and of the
625 locale files.
626 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
627 builddir.
628 * acinclude.m4: Remove, replaced by the directory m4.
629 * m4/Makefile.am (EXTRA_DIST): New variable.
630 * m4/gettext.m4: New file, from the fileutils.
631 * m4/lcmessage.m4: Likewise
632 * m4/progtest.m4: Likewise.
633 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
634
f95997e7
AD
6352000-03-10 Akim Demaille <akim@epita.fr>
636
637 * src/closure.c:
638 Formatting changes of various comments.
639 Respect the GNU coding standards at various places.
640 Don't use `_()' when no translation is needed.
641
6421999-12-13 Jesse Thilo <jthilo@gnu.org>
643
644 * src/files.c:
645 OS/2 honors TMPDIR environment variable.
646
6471999-12-13 Jesse Thilo <jthilo@gnu.org>
648
649 * doc/bison.texinfo: Tweaked spelling and grammar.
650 Updated ISBN.
651 Removed reference to price of printed copy.
652 Mention BISON_SIMPLE and BISON_HAIRY.
653
6541999-12-13 Jesse Thilo <jthilo@gnu.org>
655
656 * configure.in, NEWS:
657 Bison 1.29 released.
658
6591999-10-27 Jesse Thilo <jthilo@gnu.org>
660
661 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
662 Added reference card.
663
6641999-07-26 Jesse Thilo <jthilo@gnu.org>
665
666 * po/ru.po: Added Russian translation.
667
6681999-07-26 Jesse Thilo <jthilo@gnu.org>
669
670 * configure.in: Added Russian translation.
671
6721999-07-06 Jesse Thilo <jthilo@gnu.org>
673
674 * configure.in, NEWS, README:
675 Released version 1.28.
676
6771999-06-14 Jesse Thilo <jthilo@gnu.org>
678
679 * src/system.h:
680 Squashed redefinition warning on some systems.
681
682 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
683 Have configure build version string instead of relying on ANSI string
684 concatentation.
685
6861999-06-14 Jesse Thilo <jthilo@gnu.org>
687
688 * po/POTFILES.in: Got rid of version.c.
689
6901999-06-14 Jesse Thilo <jthilo@gnu.org>
691
692 * acconfig.h, configure.in:
693 Have configure build version string instead of relying on ANSI string
694 concatentation.
695
6961999-06-08 Jesse Thilo <jthilo@gnu.org>
697
698 * doc/bison.1:
699 Dropped mention of `+' for long-named options.
700
7011999-05-30 Jesse Thilo <jthilo@gnu.org>
702
703 * src/files.c: Added <unistd.h> for unlink().
704
705 * src/Makefile.am, src/system.h:
706 I18n fixes.
707
7081999-05-30 Jesse Thilo <jthilo@gnu.org>
709
710 * README: Added a FAQ list.
711
712 * configure.in, acconfig.h:
713 I18n fixes.
714
7151999-05-30 Jesse Thilo <jthilo@gnu.org>
716
717 * doc/FAQ, doc/Makefile.am:
718 Added a FAQ list.
719
7201999-05-19 Jesse Thilo <jthilo@gnu.org>
721
722 * src/alloc.h, src/symtab.h, src/version.c:
723 Protected inclusion of "config.h" with HAVE_CONFIG_H.
724
7251999-04-18 Jesse Thilo <jthilo@gnu.org>
726
727 * src/.cvsignore, src/Makefile.am:
728 Reorganized: sources in `src', documentation in `doc'.
729
730 * src/lex.c (literalchar):
731 fixed the code for escaping double quotes (thanks
732 Jonathan Czisny.)
733
7341999-04-18 Jesse Thilo <jthilo@gnu.org>
735
736 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
737 Adjusted paths to reflect directory reorganization.
738
7391999-04-18 Jesse Thilo <jthilo@gnu.org>
740
741 * doc/.cvsignore, doc/Makefile.am:
742 Reorganized: sources in `src', documentation in `doc'.
743
7441999-04-18 Jesse Thilo <jthilo@gnu.org>
745
746 * configure.in:
747 Updated AC_INIT file to reflect directory reorganization.
748
749 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
750 Reorganized: sources in `src', documentation in `doc'.
751
7521999-04-13 Jesse Thilo <jthilo@gnu.org>
753
754 * src/allocate.c:
755 Don't declare calloc() and realloc() if not necessary.
756
7571999-04-13 Jesse Thilo <jthilo@gnu.org>
758
759 * configure.in, acconfig.h, acinclude.m4:
760 Don't declare calloc() and realloc() if not necessary.
761
7621999-03-23 Jesse Thilo <jthilo@gnu.org>
763
764 * po/.cvsignore: Added i18n support.
765
7661999-03-23 Jesse Thilo <jthilo@gnu.org>
767
768 * acconfig.h, configure.in, Makefile.am:
769 Added i18n support.
770
7711999-03-22 Jesse Thilo <jthilo@gnu.org>
772
773 * src/bison.s1: Fixed #line numbers.
774
7751999-03-15 Jesse Thilo <jthilo@gnu.org>
776
777 * po/es.po, po/fr.po, po/nl.po, po/de.po:
778 Added PO files from Translation Project.
779
7801999-03-03 Jesse Thilo <jthilo@gnu.org>
781
782 * Makefile.am:
783 Added support for non-ANSI compilers (ansi2knr).
784
7851999-02-16 Jesse Thilo <jthilo@gnu.org>
786
787 * configure.in: Bumped version number to 1.27.
788
789 * Makefile.am:
790 Added `bison.simple' to list of files removed by `make distclean'.
791
7921999-02-12 Jesse Thilo <jthilo@gnu.org>
793
794 * src/files.c, src/files.h:
795 Defined locations of parser files in config.h instead of Makefile.
796
7971999-02-12 Jesse Thilo <jthilo@gnu.org>
798
799 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
800 Defined locations of parser files in config.h instead of Makefile.
801
8021999-02-09 Jesse Thilo <jthilo@gnu.org>
803
804 * Makefile.am:
805 Removed inappropriate use of $< macro.
806
8071999-02-05 Jesse Thilo <jthilo@gnu.org>
808
809 * po/Makefile.in.in, po/POTFILES.in:
810 Add `po' directory skeleton.
811
8121999-01-27 Jesse Thilo <jthilo@gnu.org>
813
814 * README: Document help-bison list.
815
816 * configure.in: Add check for mkstemp().
817
8181999-01-20 Jesse Thilo <jthilo@gnu.org>
819
820 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
821 Hush a few compiler warnings.
822
823 * src/files.c:
824 Add tryclose(), which verifies that fclose was successful.
825 Hush a couple of compiler warnings.
826
8271999-01-20 Jesse Thilo <jthilo@gnu.org>
828
829 * Makefile.am, OChangeLog:
830 ChangeLog is now automatically generated. Include the old version as
831 OChangeLog.
832
8331999-01-14 Jesse Thilo <jthilo@gnu.org>
834
835 * 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:
836 Update FSF address.
837
8381999-01-14 Jesse Thilo <jthilo@gnu.org>
839
840 * doc/bison.texinfo: Fix formatting glitch.
841
842 * doc/bison.texinfo: Update FSF address.
843
8441999-01-14 Jesse Thilo <jthilo@gnu.org>
845
846 * acconfig.h: Update FSF address.
847
8481999-01-08 Jesse Thilo <jthilo@gnu.org>
849
850 * src/system.h:
851 Don't define PACKAGE here, since config.h defines it.
852
8531998-12-30 Jesse Thilo <jthilo@gnu.org>
854
855 * src/reader.c: Update copyright date.
856
857 * src/main.c:
858 Ditch sprintf to statically-sized buffers in fatal/warn functions in
859 favor of output directly to stderr (avoids buffer overruns).
860
861 * src/reader.c: Some checks for premature EOF.
862
863 * 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:
864 Use prototypes if the compiler understands them.
865
866 * src/files.c: Honor TMPDIR on Unix hosts.
867 Use prototypes if the compiler understands them.
868
869 * src/reader.c:
870 Fix a couple of buffer overrun bugs.
871 Use prototypes if the compiler understands them.
872
873 * src/system.h: Include unistd.h and ctype.h.
874 Use #ifdef instead of #if for NLS symbols.
875
8761998-12-30 Jesse Thilo <jthilo@gnu.org>
877
878 * doc/bison.texinfo:
879 Delete comment "consider using @set for edition number, etc..." since
880 we now are doing so.
881
8821998-12-30 Jesse Thilo <jthilo@gnu.org>
883
884 * configure.in:
885 Use prototypes if the compiler understands them.
886
887 * NEWS: Document 1.26 highlights.
888
889 * Makefile.am: Require Automake 1.3 or later.
890
891 * acconfig.h:
892 Use prototypes if the compiler understands them.
893
8941998-12-29 Jesse Thilo <jthilo@gnu.org>
895
896 * src/version.c:
897 Use VERSION symbol from automake for version number.
898
8991998-12-29 Jesse Thilo <jthilo@gnu.org>
900
901 * acconfig.h, configure.in, version.cin:
902 Use VERSION symbol from automake for version number.
903
9041998-11-28 Jesse Thilo <jthilo@gnu.org>
905
906 * Makefile.am:
907 Distribute original version of simple parser (bison.s1), not built
908 version (bison.simple).
909
9101998-11-28 Jesse Thilo <jthilo@gnu.org>
911
912 * doc/bison.texinfo: Add info dir entry.
913
914 * doc/bison.texinfo:
915 Let automake put version number into documentation.
916
9171998-11-26 Jesse Thilo <jthilo@gnu.org>
918
919 * src/bison.cld, src/build.com, src/vmshlp.mar:
920 Add non-RCS files from /gd/gnu/bison.
921
9221998-11-26 Jesse Thilo <jthilo@gnu.org>
923
924 * doc/bison.1:
925 Document the BISON_HAIRY and BISON_SIMPLE variables.
926
9271998-11-25 Jesse Thilo <jthilo@gnu.org>
928
929 * src/version.c: Build version.c automatically.
930
931 * src/reader.c:
932 Fix token numbering (used to start at 258, not 257).
933
934 * src/system.h: Include config.h.
935
936 * src/getargs.c: Update bug report address.
937
938 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
939 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
940
9411998-11-25 Jesse Thilo <jthilo@gnu.org>
942
943 * Makefile.am:
944 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
945
946 * configure.in, version.cin:
947 Build version.c automatically.
948
949 * AUTHORS: Add AUTHORS file.
950
951 * README: Update bug report address.
952
953 * bison.simple:
954 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
955
956 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
957 Add automake stuff.
958
9591998-11-25 Jesse Thilo <jthilo@gnu.org>
960
961 * doc/bison.texinfo: Clean up some formatting.
962
9631998-05-05 Richard Stallman <rms@gnu.org>
964
965 * doc/bison.texinfo:
966 Explain better why to make a pure parser.
967
9681998-01-05 Richard Stallman <rms@gnu.org>
969
970 * src/files.c (openfiles):
971 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
972 find a temporary directory, if possible. Do not unlink files while
973 they are open.
974
9751997-08-25 Richard Stallman <rms@gnu.org>
976
977 * src/reader.c (stack_offset;):
978 Change some warni to warns.
979
980 * src/lex.c (literalchar): Use warns, not warni.
981
9821997-06-28 Richard Stallman <rms@gnu.org>
983
984 * src/bison.s1: Add a Bison version comment.
985
986 * src/main.c (fatal, warn, berror):
987 Use program_name.
988
9891997-06-28 Richard Stallman <rms@gnu.org>
990
991 * Makefile.in (bison_version): New variable.
992 (dist): Use that variable.
993 (bison.s1): Substitute the Bison version into bison.simple.
994
995 * bison.simple: Add a Bison version comment.
996
9971997-06-18 Richard Stallman <rms@gnu.org>
998
999 * src/main.c (fatal, warn, berror):
1000 Make error messages standard.
1001 (toomany): Improve error message text.
1002
1003 * 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:
1004 new.h renamed to alloc.h.
1005
10061997-06-18 Richard Stallman <rms@gnu.org>
1007
1008 * Makefile.in: new.h renamed to alloc.h.
1009
10101997-05-24 Richard Stallman <rms@gnu.org>
1011
1012 * src/lex.c (literalchar):
1013 Fix the code for escaping \, " and '.
1014
1015 (lex): Avoid trouble when there are many chars
1016 to discard in a char literal with just several chars in it.
1017
10181997-05-17 Richard Stallman <rms@gnu.org>
1019
1020 * src/bison.s1:
1021 Use malloc, if using alloca is troublesome.
1022 (YYSTACK_USE_ALLOCA): New flag macro.
1023 Define it for some systems and compilers.
1024 (YYSTACK_ALLOC): New macro.
1025 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1026 If it was malloc'd, free it.
1027
10281997-05-17 Richard Stallman <rms@gnu.org>
1029
1030 * bison.simple:
1031 Use malloc, if using alloca is troublesome.
1032 (YYSTACK_USE_ALLOCA): New flag macro.
1033 Define it for some systems and compilers.
1034 (YYSTACK_ALLOC): New macro.
1035 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1036 If it was malloc'd, free it.
1037
10381997-04-23 Richard Stallman <rms@gnu.org>
1039
1040 * src/bison.s1:
1041 (alloca) [__hpux]: Always define as __builtin_alloca.
1042
10431997-04-23 Richard Stallman <rms@gnu.org>
1044
1045 * bison.simple:
1046 (alloca) [__hpux]: Always define as __builtin_alloca.
1047
10481997-04-22 Richard Stallman <rms@gnu.org>
1049
1050 * src/bison.s1:
1051 [__hpux]: Include alloca.h (right for HPUX 10)
1052 instead of declaring alloca (right for HPUX 9).
1053
1054 * src/bison.s1 (__yy_memcpy):
1055 Declare arg `count' as unsigned int.
1056 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1057
10581997-04-22 Richard Stallman <rms@gnu.org>
1059
1060 * bison.simple:
1061 [__hpux]: Include alloca.h (right for HPUX 10)
1062 instead of declaring alloca (right for HPUX 9).
1063
1064 * bison.simple (__yy_memcpy):
1065 Declare arg `count' as unsigned int.
1066 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1067
10681997-01-03 Richard Stallman <rms@gnu.org>
1069
1070 * src/allocate.c: [__STDC__ or _MSC_VER]:
1071 Declare calloc and realloc to return void *.
1072
10731997-01-02 Richard Stallman <rms@gnu.org>
1074
1075 * src/system.h:
1076 [_MSC_VER]: Include stdlib.h and process.h.
1077 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1078
1079 * src/main.c (main): Return FAILURE as a value.
1080 (printable_version): Declare arg as int, not char.
1081
10821997-01-02 Richard Stallman <rms@gnu.org>
1083
1084 * Makefile.in (dist):
1085 Explicitly check for symlinks, and copy them.
1086
10871996-12-19 Richard Stallman <rms@gnu.org>
1088
1089 * src/files.c:
1090 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1091
10921996-12-18 Paul Eggert <eggert@gnu.org>
1093
1094 * src/bison.s1 (yyparse):
1095 If __GNUC__ and YYPARSE_PARAM are both defined,
1096 declare yyparse to have a void * argument.
1097
10981996-12-18 Paul Eggert <eggert@gnu.org>
1099
1100 * bison.simple (yyparse):
1101 If __GNUC__ and YYPARSE_PARAM are both defined,
1102 declare yyparse to have a void * argument.
1103
11041996-12-17 Richard Stallman <rms@gnu.org>
1105
1106 * src/reduce.c (nbits): Add some casts.
1107
11081996-08-12 Richard Stallman <rms@gnu.org>
1109
1110 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1111
11121996-08-12 Richard Stallman <rms@gnu.org>
1113
1114 * bison.simple: Test _MSDOS as well as _MSDOS_.
1115
11161996-07-31 Richard Stallman <rms@gnu.org>
1117
1118 * src/bison.s1:
1119 [__sun && __i386]: Include alloca.h.
1120
11211996-07-31 Richard Stallman <rms@gnu.org>
1122
1123 * bison.simple:
1124 [__sun && __i386]: Include alloca.h.
1125
11261996-07-30 Richard Stallman <rms@gnu.org>
1127
1128 * src/bison.s1: Comment change.
1129
1130 * src/bison.s1: Test _MSDOS_, not MSDOS.
1131
11321996-07-30 Richard Stallman <rms@gnu.org>
1133
1134 * bison.simple: Comment change.
1135
1136 * bison.simple: Test _MSDOS_, not MSDOS.
1137
11381996-06-01 Richard Stallman <rms@gnu.org>
1139
1140 * 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:
1141 Insert `_' macro around many string constants.
1142
1143 * src/main.c:
1144 Insert `_' macro around many string constants.
1145
1146 (main): Call setlocale, bindtextdomain and textdomain.
1147
1148 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1149 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1150 [ENABLE_NLS]: Include libintl.h.
1151 [ENABLE_NLS] (gettext): Define.
1152 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1153 (N_, PACKAGE, LOCALEDIR): New macros.
1154
11551996-06-01 Richard Stallman <rms@gnu.org>
1156
1157 * POTFILES.in: New file.
1158
1159 * Makefile.in (allocate.o):
1160 Define target explicitly.
1161
1162 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1163 (LDFLAGS): Set to @LDFLAGS@.
1164 (configure): Run autoconf only if preceding `cd' succeeds.
1165 (bison.s1): Redirect output to temporary file then move the
1166 temporary to the target, rather than redirecting directly to bison.s1.
1167 (clean): Remove config.status and config.log.
1168 (distclean): Don't remove config.status here.
1169
11701996-05-12 Richard Stallman <rms@gnu.org>
1171
1172 * src/bison.s1:
1173 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1174
11751996-05-12 Richard Stallman <rms@gnu.org>
1176
1177 * bison.simple:
1178 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1179
11801996-05-11 Richard Stallman <rms@gnu.org>
1181
1182 * src/bison.s1 (__yy_memcpy):
1183 Really reorder the args, as was supposedly done on Feb 14 1995.
1184 (yyparse): Calls changed accordingly.
1185
11861996-05-11 Richard Stallman <rms@gnu.org>
1187
1188 * Makefile.in (dist): Don't use $(srcdir).
1189
1190 * bison.simple (__yy_memcpy):
1191 Really reorder the args, as was supposedly done on Feb 14 1995.
1192 (yyparse): Calls changed accordingly.
1193
11941996-01-27 Richard Stallman <rms@gnu.org>
1195
1196 * src/output.c (output_rule_data):
1197 Test YYERROR_VERBOSE in the conditional
1198 around the definition of ttyname.
1199
12001995-12-29 Richard Stallman <rms@gnu.org>
1201
1202 * src/bison.s1:
1203 Fix line numbers in #line commands.
1204
12051995-12-29 Richard Stallman <rms@gnu.org>
1206
1207 * bison.simple:
1208 Fix line numbers in #line commands.
1209
12101995-12-27 Richard Stallman <rms@gnu.org>
1211
1212 * src/bison.s1 (YYPARSE_PARAM_DECL):
1213 In C++, make it always null.
1214 (YYPARSE_PARAM_ARG): New macro.
1215 (yyparse): Use YYPARSE_PARAM_ARG.
1216
12171995-12-27 Richard Stallman <rms@gnu.org>
1218
1219 * bison.simple (YYPARSE_PARAM_DECL):
1220 In C++, make it always null.
1221 (YYPARSE_PARAM_ARG): New macro.
1222 (yyparse): Use YYPARSE_PARAM_ARG.
1223
12241995-11-29 Richard Stallman <rms@gnu.org>
1225
1226 * doc/bison.texinfo:
1227 Describe literal string tokens, %raw, %no_lines, %token_table.
1228
12291995-11-29 Daniel Hagerty <hag@gnu.org>
1230
1231 * doc/bison.texinfo: Fixed update date
1232
12331995-10-16 Richard Stallman <rms@gnu.org>
1234
1235 * src/version.c: Version 1.25.
1236
12371995-10-16 Richard Stallman <rms@gnu.org>
1238
1239 * NEWS: *** empty log message ***
1240
12411995-10-16 Richard Stallman <rms@gnu.org>
1242
1243 * doc/bison.1, doc/bison.rnh:
1244 Add new options.
1245
12461995-10-15 Richard Stallman <rms@gnu.org>
1247
1248 * src/vmsgetargs.c, src/getargs.c:
1249 Added -n, -k, and -raw switches.
1250 (noparserflag, toknumflag, rawtoknumflag): New variables.
1251
1252 * src/symtab.h (SALIAS):
1253 New #define for adding aliases to %token.
1254 (struct bucket): Added `alias' field.
1255
1256 * src/reduce.c (reduce_grammar):
1257 Revise error message.
1258 (print_notices): Remove final `.' from error message.
1259
1260 * src/reader.c (reader_output_yylsp):
1261 New function.
1262 (readgram): Use `#if 0' around code that accepted %command
1263 inside grammar rules: The documentation doesn't allow it,
1264 and it will fail since the %command processors scan for the next %.
1265 (parse_token_decl): Extended the %token
1266 declaration to allow a multi-character symbol as an alias.
1267 (parse_thong_decl): New function.
1268 (read_declarations): Added %thong declarations.
1269 (read_declarations): Handle NOOP to deal with allowing
1270 % declarations as another means to specify the flags.
1271 (readgram): Allow %prec prior to semantics embedded in a rule.
1272 (skip_to_char, read_declarations, copy_definition)
1273 (parse_token_decl, parse_start_decl, parse_type_decl)
1274 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1275 (get_type_name, copy_guard, copy_action, readgram)
1276 (get_type, packsymbols): Revised most error messages.
1277 Changed `fatal' to `warnxxx' to avoid aborting for error.
1278 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1279 (read_declarations): Improve the error message for
1280 an invalid character. Do not abort.
1281 (read_declarations, copy_guard, copy_action): Use
1282 printable_version to avoid unprintable characters in printed output.
1283 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1284 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1285 Allow the type of a non-terminal can be given
1286 more than once, as long as all specifications give the same type.
1287
1288 * src/output.c:
1289 (output_headers, output_trailers, output, output_gram)
1290 (output_rule_data): Implement noparserflag variable.
1291 Implement toknumflag variable.
1292 (output): Call reader_output_yylsp to output LTYPESTR.
1293
1294 * src/main.c (main):
1295 If reader sees an error, don't process the grammar.
1296 (fatals): Updated to not use VARARGS1.
1297 (printable_version, int_to_string, warn, warni, warns, warnss)
1298 (warnsss): New error reporting functions. Avoid abort for error.
1299
1300 * src/lex.h:
1301 Added THONG and NOOP for alias processing.
1302 Added SETOPT for the new code that allows setting options with %flags.
1303
1304 * src/lex.c:
1305 Include getopt.h. Add some extern decls.
1306 (safegetc): New function to deal with EOF gracefully.
1307 (literalchar); new function to deal with reading \ escapes.
1308 (lex): Use literalchar.
1309 (lex): Implemented "..." tokens.
1310 (literalchar, lex, parse_percent_token): Made tokenbuffer
1311 always contain the token. This includes growing the token
1312 buffer while reading an integer.
1313 (parse_percent_token): Replaced if-else statement with percent_table.
1314 (parse_percent_token): Added % declarations as another
1315 way to specify the flags -n, -l, and -r. Also added hooks for
1316 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1317 major changes to files.c.
1318 (lex) Retain in the incoming stream a character following
1319 an incorrect '/'.
1320 (skip_white_space, lex): Revised most error messages
1321 and changed fatal to warn to avoid aborting.
1322 (percent_table): Added %thong declarations.
1323
1324 * src/gram.h: Comment changes.
1325
1326 * src/files.c (openfiles, open_extra_files, done):
1327 Add faction flag
1328 and actfile file. Handle noparserflag. Both for -n switch.
1329
1330 * src/conflicts.c (resolve_sr_conflict):
1331 Remove use of alloca.
1332
13331995-06-01 Jim Meyering <meyering@gnu.org>
1334
1335 * doc/bison.texinfo: *** empty log message ***
1336
13371995-05-06 Richard Stallman <rms@gnu.org>
1338
1339 * src/bison.s1: Comment change.
1340
13411995-05-06 Richard Stallman <rms@gnu.org>
1342
1343 * bison.simple: Comment change.
1344
13451995-05-03 Richard Stallman <rms@gnu.org>
1346
1347 * src/version.c: Version now 1.24.
1348
1349 * src/bison.s1: Change distribution terms.
1350
1351 * src/version.c: Version now 1.23.
1352
13531995-05-03 Richard Stallman <rms@gnu.org>
1354
1355 * doc/bison.texinfo:
1356 Rewrite "Conditions for Using Bison".
1357 Update version to 1.24.
1358
13591995-05-03 Richard Stallman <rms@gnu.org>
1360
1361 * bison.simple: Change distribution terms.
1362
13631995-02-23 Richard Stallman <rms@gnu.org>
1364
1365 * src/files.c: Test __VMS_POSIX as well as VMS.
1366
13671995-02-14 Jim Meyering <meyering@gnu.org>
1368
1369 * src/bison.s1 (__yy_memcpy):
1370 Renamed from __yy_bcopy to avoid
1371 confusion. Reverse FROM and TO arguments to be consistent with
1372 those of memcpy.
1373
13741995-02-14 Jim Meyering <meyering@gnu.org>
1375
1376 * bison.simple (__yy_memcpy):
1377 Renamed from __yy_bcopy to avoid
1378 confusion. Reverse FROM and TO arguments to be consistent with
1379 those of memcpy.
1380
13811994-11-10 David J. MacKenzie <djm@gnu.org>
1382
1383 * NEWS: reformat
1384
1385 * NEWS: New file.
1386
1387 * Makefile.in (DISTFILES): Include NEWS.
1388
1389 * Makefile.in (DISTFILES):
1390 Include install-sh, not install.sh.
1391
1392 * configure.in: Update to Autoconf v2 macro names.
1393
13941994-10-05 David J. MacKenzie <djm@gnu.org>
1395
1396 * Makefile.in: fix typo
1397
1398 * Makefile.in (prefix, exec_prefix):
1399 Let configure set them.
1400
14011994-09-28 David J. MacKenzie <djm@gnu.org>
1402
1403 * Makefile.in: Set datadir to $(prefix)/share.
1404
14051994-09-15 Richard Stallman <rms@gnu.org>
1406
1407 * src/bison.s1:
1408 Update copyright notice and GPL version.
1409
14101994-09-15 Richard Stallman <rms@gnu.org>
1411
1412 * bison.simple:
1413 Update copyright notice and GPL version.
1414
14151994-07-12 Richard Stallman <rms@gnu.org>
1416
1417 * src/reduce.c, src/reader.c:
1418 entered into RCS
1419
14201994-05-05 David J. MacKenzie <djm@gnu.org>
1421
1422 * Makefile.in: entered into RCS
1423
14241994-03-26 Richard Stallman <rms@gnu.org>
1425
1426 * src/bison.s1: entered into RCS
1427
14281994-03-26 Richard Stallman <rms@gnu.org>
1429
1430 * bison.simple: entered into RCS
1431
14321994-03-25 Richard Stallman <rms@gnu.org>
1433
1434 * src/main.c: entered into RCS
1435
14361994-03-24 Richard Stallman <rms@gnu.org>
1437
1438 * src/conflicts.c: entered into RCS
1439
14401994-01-02 Richard Stallman <rms@gnu.org>
1441
1442 * Makefile.in: *** empty log message ***
1443
14441993-11-21 Richard Stallman <rms@gnu.org>
1445
1446 * src/bison.s1: *** empty log message ***
1447
14481993-11-21 Richard Stallman <rms@gnu.org>
1449
1450 * doc/bison.texinfo: entered into RCS
1451
1452 * doc/bison.texinfo: *** empty log message ***
1453
14541993-11-21 Richard Stallman <rms@gnu.org>
1455
1456 * bison.simple: *** empty log message ***
1457
14581993-10-25 David J. MacKenzie <djm@gnu.org>
1459
1460 * doc/bison.texinfo: *** empty log message ***
1461
14621993-10-19 Richard Stallman <rms@gnu.org>
1463
1464 * src/bison.s1: *** empty log message ***
1465
14661993-10-19 Richard Stallman <rms@gnu.org>
1467
1468 * bison.simple: *** empty log message ***
1469
14701993-10-14 Richard Stallman <rms@gnu.org>
1471
1472 * src/bison.s1: *** empty log message ***
1473
14741993-10-14 Richard Stallman <rms@gnu.org>
1475
1476 * bison.simple: *** empty log message ***
1477
14781993-09-14 David J. MacKenzie <djm@gnu.org>
1479
1480 * doc/bison.texinfo: *** empty log message ***
1481
14821993-09-13 Noah Friedman <friedman@gnu.org>
1483
1484 * Makefile.in: *** empty log message ***
1485
14861993-09-10 Richard Stallman <rms@gnu.org>
1487
1488 * src/conflicts.c: *** empty log message ***
1489
1490 * src/system.h: entered into RCS
1491
14921993-09-10 Richard Stallman <rms@gnu.org>
1493
1494 * doc/bison.1: entered into RCS
1495
14961993-09-06 Noah Friedman <friedman@gnu.org>
1497
1498 * src/version.c: entered into RCS
1499
15001993-09-06 Noah Friedman <friedman@gnu.org>
1501
1502 * Makefile.in: *** empty log message ***
1503
15041993-07-30 David J. MacKenzie <djm@gnu.org>
1505
1506 * Makefile.in: *** empty log message ***
1507
15081993-07-24 Richard Stallman <rms@gnu.org>
1509
1510 * src/bison.s1: *** empty log message ***
1511
15121993-07-24 Richard Stallman <rms@gnu.org>
1513
1514 * bison.simple: *** empty log message ***
1515
15161993-07-08 David J. MacKenzie <djm@gnu.org>
1517
1518 * Makefile.in: *** empty log message ***
1519
15201993-07-04 Richard Stallman <rms@gnu.org>
1521
1522 * src/bison.s1: *** empty log message ***
1523
15241993-07-04 Richard Stallman <rms@gnu.org>
1525
1526 * bison.simple: *** empty log message ***
1527
15281993-06-26 David J. MacKenzie <djm@gnu.org>
1529
1530 * src/getargs.c: entered into RCS
1531
15321993-06-26 David J. MacKenzie <djm@gnu.org>
1533
1534 * doc/bison.texinfo: *** empty log message ***
1535
1536 * doc/bison.1: New file.
1537
15381993-06-25 Richard Stallman <rms@gnu.org>
1539
1540 * src/getargs.c: New file.
1541
15421993-06-16 Richard Stallman <rms@gnu.org>
1543
1544 * src/bison.s1: *** empty log message ***
1545
15461993-06-16 Richard Stallman <rms@gnu.org>
1547
1548 * bison.simple: *** empty log message ***
1549
15501993-06-03 Richard Stallman <rms@gnu.org>
1551
1552 * src/bison.s1: New file.
1553
15541993-06-03 Richard Stallman <rms@gnu.org>
1555
1556 * doc/bison.texinfo: *** empty log message ***
1557
15581993-06-03 Richard Stallman <rms@gnu.org>
1559
1560 * bison.simple: New file.
1561
15621993-05-19 Richard Stallman <rms@gnu.org>
1563
1564 * doc/bison.texinfo: New file.
1565
15661993-05-07 Noah Friedman <friedman@gnu.org>
1567
1568 * Makefile.in: *** empty log message ***
1569
15701993-04-28 Noah Friedman <friedman@gnu.org>
1571
1572 * src/reader.c: *** empty log message ***
1573
15741993-04-23 Noah Friedman <friedman@gnu.org>
1575
1576 * src/alloc.h: entered into RCS
1577
15781993-04-20 David J. MacKenzie <djm@gnu.org>
1579
1580 * src/version.c: *** empty log message ***
1581
1582 * src/files.c, src/allocate.c:
1583 entered into RCS
1584
1585 * src/reader.c: *** empty log message ***
1586
1587 * src/lex.c: entered into RCS
1588
1589 * src/conflicts.c: New file.
1590
1591 * src/symtab.c: entered into RCS
1592
1593 * src/alloc.h: New file.
1594
1595 * src/LR0.c: entered into RCS
1596
15971993-04-18 Noah Friedman <friedman@gnu.org>
1598
1599 * src/reader.c: New file.
1600
1601 * src/version.c: *** empty log message ***
1602
16031993-04-18 Noah Friedman <friedman@gnu.org>
1604
1605 * Makefile.in: *** empty log message ***
1606
16071993-04-17 Noah Friedman <friedman@gnu.org>
1608
1609 * Makefile.in: *** empty log message ***
1610
16111993-04-15 Richard Stallman <rms@gnu.org>
1612
1613 * src/main.c, src/files.c:
1614 New file.
1615
16161993-04-15 Noah Friedman <friedman@gnu.org>
1617
1618 * configure.in: entered into RCS
1619
1620 * configure.in: *** empty log message ***
1621
1622 * configure.in: New file.
1623
16241993-04-14 Richard Stallman <rms@gnu.org>
1625
1626 * Makefile.in: New file.
1627
16281993-04-13 Richard Stallman <rms@gnu.org>
1629
1630 * src/version.c: New file.
1631
16321993-03-25 Richard Stallman <rms@gnu.org>
1633
1634 * src/output.c: entered into RCS
1635
16361992-09-25 Richard Stallman <rms@gnu.org>
1637
1638 * configure.bat: entered into RCS
1639
16401992-06-22 Richard Stallman <rms@gnu.org>
1641
1642 * src/vmsgetargs.c: entered into RCS
1643
16441992-06-22 Richard Stallman <rms@gnu.org>
1645
1646 * doc/bison.rnh: entered into RCS
1647
16481992-04-20 David J. MacKenzie <djm@gnu.org>
1649
1650 * README: entered into RCS
1651
16521992-01-22 Richard Stallman <rms@gnu.org>
1653
1654 * src/machine.h: entered into RCS
1655
16561991-12-21 Richard Stallman <rms@gnu.org>
1657
1658 * src/lalr.c, src/closure.c:
1659 entered into RCS
1660
16611991-12-20 Richard Stallman <rms@gnu.org>
1662
1663 * src/state.h: entered into RCS
1664
16651991-12-18 Richard Stallman <rms@gnu.org>
1666
1667 * src/print.c, src/nullable.c, src/derives.c:
1668 entered into RCS
1669
16701991-11-03 David J. MacKenzie <djm@gnu.org>
1671
1672 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
1673 entered into RCS
1674
16751988-09-09 Richard Stallman <rms@gnu.org>
1676
1677 * src/bison.hairy: entered into RCS
1678
16791987-12-16 Richard Stallman <rms@gnu.org>
1680
1681 * REFERENCES: entered into RCS