]> git.saurik.com Git - bison.git/blame - ChangeLog
Automaton VCG graph output.
[bison.git] / ChangeLog
CommitLineData
22c2cbc0
AD
12001-08-06 Marc Autret <autret_@epita.fr>
2
3 Automaton VCG graph output.
4 Using option ``-g'' or long option ``--graph'', you can generate
5 a gram_filename.vcg file containing a VCG description of the LALR (1)
6 automaton of your grammar.
7
8 * src/main.c: Call to print_graph() function.
9 * src/getargs.h: Update.
10 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
11 (graph_flag): New flag.
12 (longopts): Update.
13 (getargs): Add case `g'.
14 * src/files.c (graph_obstack): New obstack struct.
15 (open_files): Initialize new obstack.
16 (output_files): Saves graph_obstack if required.
17 * src/files.h (graph_obstack): New extern declaration.
18 * src/Makefile.am: Add new source files.
19
ce4d5ce0
AD
202001-08-06 Marc Autret <autret_@epita.fr>
21
22 * src/print_graph.c, src/print_graph.h (graph): New.
23 * src/vcg.h: New file.
24 * src/vcg.c: New file, VCG graph handling.
25
7333d403
AD
262001-08-06 Marc Autret <autret_m@epita.fr>
27
28 Add of %source_extension and %header_extension which specify
29 the source or/and the header output file extension.
30
31 * src/files.c (compute_base_names): Remove initialisation of
32 src_extension and header_extension.
33 (compute_exts_from_gf): Update.
34 (compute_exts_from_src): Update.
35 (output_files): Update.
36 * src/reader.c (parse_header_extension_decl): New.
37 (parse_source_extension_decl): New.
38 (read_declarations): New case statements for the new tokens.
39 * src/lex.c (percent_table): Add entries for %source_extension
40 and %header_extension.
41 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
42
84163231
AD
432001-08-06 Marc Autret <autret_m@epita.fr>
44
45 * configure.in: Bump to 1.28c.
46 * doc/bison.texinfo: Texinfo thingies.
47
8303fc42
AD
482001-08-04 Pascal Bart <pascal.bart@epita.fr>
49
50 * tests/atconfig.in (CPPFLAGS): Add.
51 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
52
70a84437
AD
532001-08-03 Akim Demaille <akim@epita.fr>
54
55 Version 1.28b.
56
2ce10144
AD
572001-08-03 Akim Demaille <akim@epita.fr>
58
59 * tests/Makefile.am (check-local): Ship testsuite.
60 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
61 Include `string.h'.
62
1e3e4bc1
AD
632001-08-03 Akim Demaille <akim@epita.fr>
64
65 * configure.in: Try using -Wformat when compiling.
66
42b45b7f
AD
672001-08-03 Akim Demaille <akim@epita.fr>
68
69 * configure.in: Bump to 1.28b.
70
8f13fe33
AD
712001-08-03 Akim Demaille <akim@epita.fr>
72
73 * src/complain.c: Adjust strerror_r portability issues.
74
b37ba92c
AD
752001-08-03 Akim Demaille <akim@epita.fr>
76
77 Version 1.28a.
78
b0ce6046
AD
792001-08-03 Akim Demaille <akim@epita.fr>
80
81 * src/getargs.c, src/getarg.h (skeleton)): Constify.
82 * src/lex.c (literalchar): Avoid name clashes on `buf'.
83 * src/getargs.c: Include complain.h.
84 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
85 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
86
d01c415b
AD
872001-08-03 Akim Demaille <akim@epita.fr>
88
89 * src/reader.c (readgram): Display hidden chars in error messages.
90
459dd1a6
AD
912001-08-03 Akim Demaille <akim@epita.fr>
92
93 Update to gettext 0.10.39.
94
53b74c0c
AD
952001-08-03 Akim Demaille <akim@epita.fr>
96
97 * lib/strspn.c: New.
98
234a3be3
AD
992001-08-01 Marc Autret <autret_m@epita.fr>
100
101 * doc/bison.texinfo: Update.
102 * doc/bison.1 (mandoc): Update.
103 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
104 * src/files.c: Support output files extensions computing.
105 (src_extension): New static variable.
106 (header_extension): New static variable.
107 (tr): New function.
108 (get_extension_index): New function, gets the index of an extension
109 filename in a string.
110 (compute_exts_from_gf): New function, computes extensions from the
111 grammar file extension.
112 (compute_exts_from_src): New functions, computes extensions from the
113 C source file extension, file given by ``-o'' option.
114 (compute_base_names): Update.
115 (output_files): Update.
116
847bf1f5
AD
1172001-08-01 Robert Anisko <anisko_r@epita.fr>
118
d995fee7 119 * doc/bison.texi: Document @$.
847bf1f5
AD
120 (Locations): New section.
121
d074a105
AD
1222001-07-18 Akim Demaille <akim@epita.fr>
123
124 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
125 * config/prev-version.txt, config/move-if-change: New.
126 * Makefile.am: Adjust.
127
3419715d
AD
1282001-07-08 Pascal Bart <pascal.bart@epita.fr>
129
130 * src/bison.simple (yyparse): Suppress warning `comparaison
131 between signed and unsigned'.
132
62ab6972
AD
1332001-07-05 Pascal Bart <pascal.bart@epita.fr>
134
135 * src/getargs.h (raw_flag): Remove.
136 * src/getargs.c: Die on `-r'/`--raw'.
137 * src/lex.c (parse_percent_token): Die on `%raw'.
138 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
139 * tests/calc.at: Suppress test with option `--raw'.
140
1e24cc5b
AD
1412001-07-14 Akim Demaille <akim@epita.fr>
142
143 * config/: New.
144 * configure.in: Require Autoconf 2.50.
145 Update to gettext 0.10.38.
146
32dfccf8
AD
1472001-03-16 Akim Demaille <akim@epita.fr>
148
149 * doc/bison.texinfo: ANSIfy the examples.
150
cd5bd6ac
AD
1512001-03-16 Akim Demaille <akim@epita.fr>
152
153 * getargs.c (skeleton): New variable.
154 (longopts): --skeleton is a new option.
155 (shortopts, getargs): -S is a new option.
156 * getargs.h: Declare skeleton.
157 * output.c (output_parser): Use it.
158
5141b016
AD
1592001-03-16 Akim Demaille <akim@epita.fr>
160
161 * m4/strerror_r.m4: New.
162 * m4/error.m4: Run AC_FUNC_STRERROR_R.
163 * lib/error.h, lib/error.c: Update.
164
447992b9
AD
1652001-03-16 Akim Demaille <akim@epita.fr>
166
167 * src/getargs.c (longopts): Clean up.
168
274d42ce
AD
1692001-02-21 Akim Demaille <akim@epita.fr>
170
171 * src/reader.c (gensym): `gensym_count' is your own.
172 Use a static buf to create the symbol name, as token_buffer is no
173 longer a buffer.
174
22c821f3
AD
1752001-02-08 Akim Demaille <akim@epita.fr>
176
177 * src/conflicts.c (conflict_report): Be sure not to append to res
178 between two calls, which could happen if both first sprintf were
179 skipped, but not the first cp += strlen.
180
18569462
AD
1812001-02-08 Akim Demaille <akim@epita.fr>
182
183 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
184 New, from fileutils 4.0.37.
185 * configure.in: Require Autoconf 2.49c. I took some time before
186 making this decision. This is the only way out for portability
187 issues in Bison, it would mean way too much duplicate effort to
188 import in Bison features implemented in 2.49c since 2.13.
189 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
190
0d8f3c8a
AD
1912001-02-02 Akim Demaille <akim@epita.fr>
192
193 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 194 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 195
f17bcd1f
AD
1962001-01-19 Akim Demaille <akim@epita.fr>
197
198 Get rid of the ad hoc handling of token_buffer in the scanner: use
199 the obstacks.
200
201 * src/lex.c (token_obstack): New.
202 (init_lex): Initialize it. No longer call...
203 (grow_token_buffer): this. Remove it.
204 Adjust all the places which used it to use the obstack.
205
511e79b3
AD
2062001-01-19 Akim Demaille <akim@epita.fr>
207
208 * src/lex.h: Rename all the tokens:
209 s/\bENDFILE\b/tok_eof/g;
210 s/\bIDENTIFIER\b/tok_identifier/g;
211 etc.
212 Let them be enums, not #define, to ease debugging.
213 Adjust all the code.
214
0d6508ef
AD
2152001-01-18 Akim Demaille <akim@epita.fr>
216
217 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
218 * src/lex.c (maxtoken, grow_token_buffer): Static.
219
6deb4447
AD
2202001-01-18 Akim Demaille <akim@epita.fr>
221
222 Since we now use obstacks, more % directives can be enabled.
223
224 * src/lex.c (percent_table): Also accept `%yacc',
225 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
226 `%debug'.
227 Handle the actions for `%semantic_parser' and `%pure_parser' here,
228 instead of returning a token.
229 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
230 * src/reader.c (read_declarations): Adjust.
231 * src/files.c (open_files): Don't call `compute_base_names', don't
232 compute `attrsfile' since they depend upon data which might be
233 *in* the input file now.
234 (output_files): Do it here.
235 * src/output.c (output_headers): Document the fact that this patch
236 introduces a guaranteed SEGV for semantic parsers.
237 * doc/bison.texinfo: Document them.
238 * tests/suite.at: Exercise these %options.
239
ff4423cc
AD
2402000-12-20 Akim Demaille <akim@epita.fr>
241
242 Also handle the output file (--verbose) with obstacks.
243
244 * files.c (foutput): Remove.
245 (output_obstack): New.
246 Adjust all dependencies.
247 * src/conflicts.c: Return a string.
248 * src/system.h (obstack_grow_string): Rename as...
249 (obstack_sgrow): this. Be ready to work with non literals.
250 (obstack_fgrow4): New.
251
956dba3a
AD
2522000-12-20 Akim Demaille <akim@epita.fr>
253
254 * src/files.c (open_files): Fix the computation of short_base_name
255 in the case of `-o foo.tab.c'.
256
337bab46
AD
2572000-12-20 Akim Demaille <akim@epita.fr>
258
259 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
260 (copy_dollar): Now that everything uses obstacks, get rid of the
261 FILE * parameters.
262
5d3214b8
AD
2632000-12-20 Akim Demaille <akim@epita.fr>
264
265 * src/files.c (open_files): Actually the `.output' file is based
266 on the short_base_name, not base_name.
267 * tests/suite.at (Checking output file names): Adjust.
268
29092a57
AD
2692000-12-20 Akim Demaille <akim@epita.fr>
270
271 * src/bison.s1: Remove, we now use directly...
272 * src/bison.simple: this.
273 * src/Makefile.am: Use pkgdata instead of data.
274
ea5607fd
AD
2752000-12-20 Akim Demaille <akim@epita.fr>
276
277 * src/files.c (guard_obstack): New.
278 (open_files): Initialize it.
279 (output_files): Dump it...
280 * src/files.h: Export it.
281 * src/reader.c (copy_guard): Use it.
282
27110317
AD
2832000-12-19 Akim Demaille <akim@epita.fr>
284
285 * src/files.c (outfile, defsfile, actfile): Removed as global
286 vars.
287 (open_files): Don't compute them.
288 (output_files): Adjust.
289 (base_name, short_base_name): Be global.
290 Adjust dependencies.
291
19c50364
AD
2922000-12-19 Akim Demaille <akim@epita.fr>
293
294 * src/files.c (strsuffix): New.
295 (stringappend): Be just like strcat but allocate.
296 (base_names): Eve out from open_files.
297 Try to simplify the rather hairy computation of base_name and
298 short_base_name.
299 (open_files): Use it.
300 * tests/suite.at (Checking output file names): New test.
301
573c1d9f
AD
3022000-12-19 Akim Demaille <akim@epita.fr>
303
304 * src/system.h (obstack_grow_literal_string): Rename as...
305 (obstack_grow_string): this.
306 * src/output.c (output_parser): Recognize `%% actions' instead of
307 `$'.
308 * src/bison.s1: s/$/%% actions/.
309 * src/bison.hairy: Likewise.
310
ef7ddedd
AD
3112000-12-19 Akim Demaille <akim@epita.fr>
312
313 * src/output.c (output_parser): Compute the `#line' lines when
314 there are.
315 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
316 Suggested by Hans Aberg.
317
ff61dabd
AD
3182000-12-19 Akim Demaille <akim@epita.fr>
319
320 Let the handling of the skeleton files be local to the procedures
321 that use it.
322
323 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
324 longer static.
325 (fparser, open_extra_files): Remove.
326 (open_files, output_files): Don't take care of fparser.
327 * src/files.h: Adjust.
328 * src/output.c (output_parser): Open and close the file to the
329 skeleton.
330 * src/reader.c (read_declarations): When %semantic_parser, open
331 fguard.
332
55b96341
AD
3332000-12-19 Akim Demaille <akim@epita.fr>
334
335 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
336 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
337
358c15b7
AD
3382000-12-19 Akim Demaille <akim@epita.fr>
339
340 * src/files.c (open_files): Yipee! We no longer need all the code
341 looking for `/tmp' since we have no tmp file.
342
7de3329e
AD
3432000-12-19 Akim Demaille <akim@epita.fr>
344
345 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
346 New macros.
347 * src/files.c (open_files): Less dependency on MSDOS etc.
348
3abcd459
AD
3492000-12-14 Akim Demaille <akim@epita.fr>
350
351 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
352 Provide a default definition.
353 Use it when executing the default @ action.
354 * src/reader.c (reader_output_yylsp): No longer include
355 `timestamp' and `text' in the default YYLTYPE.
356
2a91a95e
AD
3572000-12-12 Akim Demaille <akim@epita.fr>
358
359 * src/reader.c (copy_definition, parse_union_decl, copy_action)
360 (copy_guard): Quote the file names.
361 Reported by Laurent Mascherpa.
362
14d3eb9b
AD
3632000-12-12 Akim Demaille <akim@epita.fr>
364
365 * src/output.c (output_headers, output_program, output): Be sure
366 to escape special characters when outputting filenames.
367 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
368 (output_headers): Don't depend on them, Use ACTSTR.
369
d7045ec6
AD
3702000-11-17 Akim Demaille <akim@epita.fr>
371
372 * lib/obstack.h: Formatting changes.
373 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
374 prevents type checking.
375 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
376 cast the value to (void *): assigning a `foo *' to a `void *'
377 variable is valid.
378 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
379 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
380 append characters.
381
6fd54b73
AD
3822000-11-17 Akim Demaille <akim@epita.fr>
383
384 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
385 as...
386 (suite.m4, regression.m4, calc.m4): these.
387 * tests/atgeneral.m4: Update from CVS Autoconf.
388
4c50eae6
AD
3892000-11-17 Akim Demaille <akim@epita.fr>
390
391 * tests/regression.m4 (%union and --defines): New test,
392 demonstrating a current bug in the obstack implementation.
393
a35f64ea
AD
3942000-11-17 Akim Demaille <akim@epita.fr>
395
396 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
397 macros.
398 Use them to declare the variables which are global or local to
399 `yyparse'.
400
7de23534
AD
4012000-11-17 Akim Demaille <akim@epita.fr>
402
403 * acconfig.h: Remove, no longer used.
404
aa7815f5
AD
4052000-11-07 Akim Demaille <akim@epita.fr>
406
407 * src: s/Copyright (C)/Copyright/g.
408
5af1f549
AD
4092000-11-07 Akim Demaille <akim@epita.fr>
410
411 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
412 defining.
413 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
414
553e2b22
AD
4152000-11-07 Akim Demaille <akim@epita.fr>
416
417 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
418 Merge in a single CPP if/else.
419
8a4f41d6
AD
4202000-11-07 Akim Demaille <akim@epita.fr>
421
422 * src/output.c (output): Remove useless variables.
423 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
424 argument `data' for consistency with the prototypes.
425 Qualify it `const'.
426 (obstack_copy, obstack_copy0): Rename the second argument as
427 `address' for consistency. Qualify it `const'.
428 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
429 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
430 `const' their input argument (`data' or `address').
431 Adjust the corresponding macros to include `const' in casts.
432
095a3fb5
AD
4332000-11-03 Akim Demaille <akim@epita.fr>
434
435 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
436 s/PFILE1/BISON_HAIRY/.
437 Adjust dependencies.
438
d1cdce7c
AD
4392000-11-03 Akim Demaille <akim@epita.fr>
440
090c5ebf 441 For some reason, this was not applied.
d1cdce7c
AD
442
443 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
444 `unlink': it's no longer used.
445
9311529b
AD
4462000-11-03 Akim Demaille <akim@epita.fr>
447
448 * src/files.c (skeleton_find): New function, eved out of...
449 (open_files, open_extra_files): here.
450
d8880f69
AD
4512000-11-03 Akim Demaille <akim@epita.fr>
452
453 Don't use `atexit'.
454
455 * src/files.c (obstack_save): New function.
456 (done): Rename as...
457 (output_files): this.
458 Use `obstack_save'.
459 * src/main.c (main): Don't use `atexit' to register `done', since
460 it no longer has to remove tmp files, just call `output_files'
461 when there are no errors.
462
0dbb648e
AD
4632000-11-02 Akim Demaille <akim@epita.fr>
464
465 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
466 `unlink': it's no longer used.
467 * src/files.h: Formatting changes.
468
896fe5c1
AD
4692000-11-02 Akim Demaille <akim@epita.fr>
470
471 Remove the last uses of mktemp and unlink/delete.
472
473 * src/files.c (fdefines, ftable): Removed.
474 (defines_ostack, table_obstack): New.
475 Adjust dependencies of the former into uses of the latter.
476 * src/output.c (output_short_or_char_table, output_short_table):
477 Convert to using obstacks.
478 * src/reader.c (copy_comment2): Accept one FILE * and two
479 obstacks.
480 (output_token_defines, reader_output_yylsp): Use obstacks.
481 * src/system.h (obstack_fgrow3): New.
482
dd60faec
AD
4832000-11-01 Akim Demaille <akim@epita.fr>
484
485 Change each use of `fattrs' into a use of `attrs_obstack'.
486
487 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
488 * src/files.c (fattrs): Remove.
489 (attrs_obstack): New.
490 Adjust all dependencies.
491 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
492
8c7ebe49
AD
4932000-11-01 Akim Demaille <akim@epita.fr>
494
495 Introduce obstacks.
496 Change each use of `faction' into a use of `action_obstack'.
497
498 * lib/obstack.h, lib/obstack.c: New files.
499 * src/files.c (faction): Remove.
500 (action_obstack): New.
501 Adjust all dependencies.
502
77aee789
AD
5032000-10-20 Akim Demaille <akim@epita.fr>
504
505 * lib/quote.h (PARAMS): New macro. Use it.
506
43591cec
AD
5072000-10-16 Akim Demaille <akim@epita.fr>
508
509 * src/output.c (output_short_or_char_table): New function.
510 (output_short_table, output_token_translations): Use it.
511 (goto_actions): Use output_short_table.
512
1e9798d5
AD
5132000-10-16 Akim Demaille <akim@epita.fr>
514
515 * src/symtab.c (bucket_new): New function.
516 (getsym): Use it.
517
518 * src/output.c (output_short_table): New argument to display the
519 comment associated with the table.
520 Adjust dependencies.
521 (output_gram): Use it.
522 (output_rule_data): Nicer output layout for YYTNAME.
523
f282676b
AD
5242000-10-16 Akim Demaille <akim@epita.fr>
525
526 * src/lex.c (read_typename): New function.
527 (lex): Use it.
528 * src/reader.c (copy_dollar): Likewise.
529
550a72a3
AD
5302000-10-16 Akim Demaille <akim@epita.fr>
531
532 * src/reader.c (copy_comment2): Expect the input stream to be on
533 the `/' which is suspected to open a comment, instead of being
534 called after `//' or `/*' was read.
535 (copy_comment, copy_definition, parse_union_decl, copy_action)
536 (copy_guard): Adjust.
537
131e2fef
AD
5382000-10-16 Akim Demaille <akim@epita.fr>
539
540 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
541 `read_signed_integer'.
542
79282c5a
AD
5432000-10-16 Akim Demaille <akim@epita.fr>
544
545 * src/reader.c (copy_dollar): New function.
546 (copy_guard, copy_action): Use it.
547
ff4a34be
AD
5482000-10-16 Akim Demaille <akim@epita.fr>
549
550 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
551 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
552 New files, from Fileutils 4.0.27.
553 * src/main.c (printable_version): Remove.
554 * src/lex.c, src/reader.c: Use `quote'.
555
5562000-10-04 Akim Demaille <akim@epita.fr>
557
558 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
559
14ded682
AD
5602000-10-04 Akim Demaille <akim@epita.fr>
561
562 * doc/bison.texinfo: Various typos spotted by Neil Booth.
563
8e03724b
AD
5642000-10-04 Akim Demaille <akim@epita.fr>
565
566 When a literal string is used to define two different tokens,
567 `bison -v' segfaults.
568 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
569
570 * tests/regression.m4: New file.
571 Include the core of the sample provided by Piotr Gackiewicz.
572 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
573 properly.
574
a9e64249
AD
5752000-10-04 Akim Demaille <akim@epita.fr>
576
577 * src/reader.c (parse_expect_decl): Keep `count' within the size
578 of `buffer'.
579 From Neil Booth.
580
da9abf43
AD
5812000-10-02 Paul Eggert <eggert@twinsun.com>
582
583 * bison.s1 (yyparse): Assign the default value
584 unconditionally, to avoid a GCC warning and make the parser a
585 tad smaller.
586
c33638bb
AD
5872000-10-02 Akim Demaille <akim@epita.fr>
588
589 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
590 options.
591
444c570a
AD
5922000-10-02 Akim Demaille <akim@epita.fr>
593
594 * src/derives.c, src/print.c, src/reduce.c: To ease the
595 translation, move some `\n' out of the translated strings.
596
89cab50d
AD
5972000-10-02 Akim Demaille <akim@epita.fr>
598
599 The location tracking mechanism is precious for parse error
600 messages. Nevertheless, it is enabled only when `@n' is used in
601 the grammar, which is a different issue (you can use it in error
602 message, but not in the grammar per se). Therefore, there should
603 be another means to enable it.
604
605 * src/getargs.c (getargs): Support `--locations'.
606 (usage): Report it.
607 * src/getargs.h (locationsflag): Export it.
608 * src/lex.c (percent_table): Support `%locations'.
609 * src/reader.c (yylsp_needed): Remove this variable, now replaced
610 with `locationsflag'.
611 * doc/bison.texinfo: Document `--locations' and `%locations'.
612 Sort the options.
613 * tests/calc.m4: Test it.
614
615 For regularity of the names, replace each
616 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
617 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
618 In addition replace each `flag' with `_flag'.
619
d6c2cba0
AD
6202000-10-02 Akim Demaille <akim@epita.fr>
621
622 Also test parse error messages, including with YYERROR_VERBOSE.
623
624 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
625 associative).
626 Use it to check the computations.
627 Use it to check `nonassoc' is honored.
628 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
629 `--yyerror-verbose'.
630 (_AT_CHECK_CALC): Adjust to this option.
631 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
632
5a35a6cb
AD
6332000-10-02 Akim Demaille <akim@epita.fr>
634
635 Test also `--verbose', `--defines' and `--name-prefix'. Testing
636 the latter demonstrates a flaw in the handling of non debugging
637 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
638 was used in order to simplify:
639
640 #if YYDEBUG
641 if (yydebug)
642 {
643 ...
644 }
645 #endif
646
647 into
648
649 if (yydebug)
650 {
651 ...
652 }
653
654 unfortunately this leads to a CPP conflict when
655 `--name-prefix=foo' is used since it produces `#define yydebug
656 foodebug'.
657
658 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
659 (YYDPRINTF): New macro.
660 Spread its use.
661 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
662 the bison options.
663 Also test `--verbose', `--defines' and `--name-prefix'.
664
71da9eea
AD
6652000-10-02 Akim Demaille <akim@epita.fr>
666
667 Improve the readability of the produced parsers.
668
669 * src/bison.s1: Formatting changes.
670 Improve the comment related to the `$' mark.
671 (yydefault): Don't fall through to `yyresume': `goto' there.
672 * src/output.c (output_parser): When the `$' is met, skip the end
673 of its line.
674 New variable, `number_of_dollar_signs', to check there's exactly
675 one `$' in the parser skeleton.
676
95e36146
AD
6772000-10-02 Akim Demaille <akim@epita.fr>
678
679 * lib/xstrdup.c: New file, from the fileutils.
680 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
681 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
682 instead of strlen + xmalloc + strcpy.
683 * src/symtab.c (copys): Remove, use xstrdup instead.
684
d7020c20
AD
6852000-10-02 Akim Demaille <akim@epita.fr>
686
687 * src/gram.h (associativity): New enum type which replaces the
688 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
689 `right_assoc', `left_assoc' and `non_assoc'.
690 Adjust all dependencies.
691 * src/reader.c: Formatting changes.
692 (LTYPESTR): Don't define it, use it as a literal in
693 `reader_output_yylsp'.
694 * src/symtab.h (symbol_class): New enum type which replaces the
695 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
696 `sunknown', `stoken and `snterm'.
697
1916f98e
AD
6982000-10-02 Akim Demaille <akim@epita.fr>
699
700 * src/getargs.c (fixed_outfiles): Rename as...
701 (yaccflag): for consistency and accuracy.
702 Adjust dependencies.
703
d7913476
AD
7042000-10-02 Akim Demaille <akim@epita.fr>
705
706 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
707 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
708 difficult and introduced a lot of core dump. It turns out that
709 Bison used an implementation of `xmalloc' based on `calloc', and
710 at various places it does depend upon the initialization to 0. I
711 have not tried to isolate the pertinent places, and all the former
712 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
713 someone should address this issue.
714
715 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
716 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
717 files.
718 Adjust dependencies.
719 * src/warshall.h: New file.
720 Propagate.
721
340ef489
AD
7222000-10-02 Akim Demaille <akim@epita.fr>
723
724 Various anti-`extern in *.c' changes.
725
726 * src/system.h: Include `assert.h'.
727
b2ca4022
AD
7282000-10-02 Akim Demaille <akim@epita.fr>
729
730 * src/state.h (nstates, final_state, first_state, first_shift)
731 (first_reduction): Move their exportation from here...
732 * src/LR0.h: to here.
733 Adjust dependencies.
734 * src/getargs.c (statisticsflag): New variable.
735 Add support for `--statistics'.
736 Adjust dependencies.
737
738 Remove a lot of now useless `extern' statements in most files.
739
403b315b
AD
7402000-10-02 Akim Demaille <akim@epita.fr>
741
742 * src/LR0.h: New file.
743 Propagate its use.
744
07a58c13
AD
7452000-10-02 Akim Demaille <akim@epita.fr>
746
747 * src/print.h: New file.
748 Propagate its use.
749 * src/print.c: Formatting and ordering changes.
750 (verbose, terse): Replace with...
751 (print_results): this new function.
752 Adjust dependencies.
753
0619caf0
AD
7542000-10-02 Akim Demaille <akim@epita.fr>
755
756 * src/conflicts.c (conflict_report): New function.
757 (conflict_log, verbose_conflict_log): Replace with...
758 (print_conflicts): this function.
759 Adjust dependencies.
760 * src/conflicts.h: New file.
761 Propagate its inclusion.
762
3519ec76
AD
7632000-10-02 Akim Demaille <akim@epita.fr>
764
765 * src/nullable.h: New file.
766 Propagate its inclusion.
767 * src/nullable.c: Formatting changes.
768
015acc48
AD
7692000-10-02 Akim Demaille <akim@epita.fr>
770
771 * src/reduce.h: New file.
772 Propagate its inclusion.
773 * src/reduce.c: Topological sort and other formatting changes.
774 (bool, TRUE, FALSE): Move their definition to...
775 * src/system.h: here.
776
8963a27b
AD
7772000-10-02 Akim Demaille <akim@epita.fr>
778
779 * src/files.c: Formatting changes.
780 (tryopen, tryclose, openfiles): Rename as...
781 (xfopen, xfclose, open_files): this.
782 (stringappend): static.
783 * src/files.h: Complete the list of exported symbols.
784 Propagate its use.
785
a70083a3
AD
7862000-10-02 Akim Demaille <akim@epita.fr>
787
788 * src/reader.h: New file.
789 Propagate its use instead of tedious list of `extern' and
790 prototypes.
791 * src/reader.c: Formatting changes, topological sort,
792 s/register//.
793
abadc117
AD
7942000-10-02 Akim Demaille <akim@epita.fr>
795
796 * src/lex.h: Prototype `lex.c' exported functions.
797 * src/reader.c: Adjust.
798 * src/lex.c: Formatting changes.
799 (safegetc): Rename as...
800 (xgetc): this.
801
720d742f
AD
8022000-10-02 Akim Demaille <akim@epita.fr>
803
804 * src/lalr.h: New file.
805 Propagate its inclusion instead of prototypes and `extern'.
806 * src/lalr.c: Formatting changes, topological sorting etc.
807
f2acea59
AD
8082000-10-02 Akim Demaille <akim@epita.fr>
809
810 * src/output.c (token_actions): Introduce a temporary array,
811 YYDEFACT, that makes it possible for this function to use
812 output_short_table.
813
d019d655
AD
8142000-10-02 Akim Demaille <akim@epita.fr>
815
816 `user_toknums' is output as a `short[]' in `output.c', while it is
817 defined as a `int[]' in `reader.c'. For consistency with the
818 other output tables, `user_toknums' is now defined as a table of
819 shorts.
820
821 * src/reader.c (user_toknums): Be a short table instead of an int
822 table.
823 Adjust dependencies.
824
825 Factor the short table outputs.
826
827 * src/output.c (output_short_table): New function.
828 * src/output.c (output_gram, output_stos, output_rule_data)
829 (output_base, output_table, output_check): Use it.
830
6c89f1c1
AD
8312000-10-02 Akim Demaille <akim@epita.fr>
832
833 * src/output.c (output): Topological sort of the functions, in
834 order to get rid of the `static' prototypes.
835 No longer use `register'.
836 * src/output.h: New file.
837 Propagate its inclusion in files explicitly prototyping functions
838 from output.c.
839
d9efd181
AD
8402000-09-21 Akim Demaille <akim@epita.fr>
841
842 * src/atgeneral.m4: Update from Autoconf.
843
c29240e7 8442000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
845
846 * src/closure.h: New file.
847 * src/closure.c: Formatting changes, topological sort over the
848 functions, use of closure.h.
849 (initialize_closure, finalize_closure): Rename as...
850 (new_closure, free_closure): these. Adjust dependencies.
851 * src/LR0.c: Formatting changes, topological sort, use of
852 cloture.h.
853 (initialize_states): Rename as...
854 (new_states): this.
855 * src/Makefile.am (noinst_HEADERS): Adjust.
856
499daa50
AD
8572000-09-20 Akim Demaille <akim@epita.fr>
858
859 * src/acconfig.h: Don't protect config.h against multiple
860 inclusion.
861 Don't define PARAMS.
862 * src/system.h: Define PARAMS.
863 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
864 purpose of config.h. system.h must not try to fix wrong
865 definitions in config.h.
866
cc84fd5d
AD
8672000-09-20 Akim Demaille <akim@epita.fr>
868
869 * src/derives.h: New file.
870 * src/main.c, src/derives.h: Use it.
871 Formatting changes.
872 * src/Makefile.am (noinst_HEADERS): Adjust.
873
db5b3a89
AD
8742000-09-20 Akim Demaille <akim@epita.fr>
875
876 * tests/atgeneral.m4: Update from Autoconf.
877 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
878 (AT_CHECK_CALC): New macros.
879 Use these macros to test bison with options `', `--raw',
880 `--debug', `--yacc', `--yacc --debug'.
881
ceed8467
AD
8822000-09-19 Akim Demaille <akim@epita.fr>
883
884 * src/output.c: Formatting changes.
885 * src/machine.h: Remove, leaving its contents in...
886 * src/system.h: here.
887 Include stdio.h.
888 Adjust all dependencies on stdio.h and machine.h.
889 * src/getargs.h: New file.
890 Let all `extern' declarations about getargs.c be replaced with
891 inclusion of `getargs.h'.
892 * src/Makefile.am (noinst_HEADERS): Adjust.
893
894 * tests/calc.m4 (yyin): Be initialized in main, not on the global
895 scope.
896 (yyerror): Returns void, not int.
897 * doc/bison.texinfo: Formatting changes.
898
05a1d24b
AD
8992000-09-19 Akim Demaille <akim@epita.fr>
900
901 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
902 portable.
903
cbd25751
AD
9042000-09-18 Akim Demaille <akim@epita.fr>
905
906 * configure.in: Append WARNING_CFLAGS to CFLAGS.
907 * src/Makefile.am (INCLUDES): Don't.
908 Be ready to fetch headers in lib/.
909
13863333
AD
9102000-09-18 Akim Demaille <akim@epita.fr>
911
912 * doc/bison.texinfo: Update the copyright.
913 ANSIfy and GNUify the examples.
914 Remove the old menu.
915
0d533154
AD
9162000-09-18 Akim Demaille <akim@epita.fr>
917
918 First set of tests: use the `calc' example from the documentation.
919
920 * src/bison.s1 (yyparse): Condition the code using `yytname' which
921 is defined only when YYDEBUG is.
922 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
923 * src/files.c (tryopen, tryclose): Formatting changes.
924 Move to the top and be static.
925 * src/reader.c (read_signed_integer): Likewise.
926 * tests/calc.m4: New file.
927 * Makefile.am, suite.m4: Adjust.
928 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
929
e79137ac
AD
9302000-09-18 Akim Demaille <akim@epita.fr>
931
932 Add support for an Autotest test suite for Bison.
933
934 * m4/m4.m4, m4/atconfig.m4: New files.
935 * m4/Makefile.am (EXTRA_DIST): Adjust.
936 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
937 files.
938 * src/getargs.c: Display a more standard --version message.
939 * src/reader.c (reader): Formatting changes.
940 No longer depend upon VERSION_STRING.
941 * configure.in: No longer use `dnl'.
942 Set up the test suite and the new directory `tests/.
943 (VERSION_STRING): Remove.
944
27821bff
AD
9452000-04-14 Akim Demaille <akim@epita.fr>
946
947 * src/reader.c (copy_comment2): New function, same as former
948 `copy_comment', but outputs into two FILE *.
949 (copy_comment): Use it.
950 (parse_union_decl): Use it.
951 (get_type, parse_start_decl): Use the same `invalid' message.
952 (parse_start_decl, parse_union_decl): Use the same `multiple'
953 message.
954 (parse_union_decl, copy_guard, copy_action): Use the same
955 `unmatched' message.
956 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
957
cfe5fbc0
AD
9582000-03-31 Akim Demaille <akim@epita.fr>
959
960 * src/files.c (tryopen, tryclose): Move to the top.
961 Be static.
962
cb7db13e
AD
9632000-03-31 Akim Demaille <akim@epita.fr>
964
965 * src/main.c (main): Don't call `done', exit does it.
966
a0f6b076
AD
9672000-03-31 Akim Demaille <akim@epita.fr>
968
36281465
AD
969 * allocate.c: s/return (foo)/return foo/.
970 * lalr.c: Likewise.
971 * LR0.c: Likewise.
972 * output.c: Likewise.
973 * reader.c: Likewise.
974 * symtab.c: Likewise.
975 * vmsgetargs.c: Likewise.
976
9772000-03-31 Akim Demaille <akim@epita.fr>
978
979 Clean up the error reporting functions.
a0f6b076
AD
980
981 * src/report.c: New file.
982 * src/report.h: Likewise.
983 * src/Makefile.am: Adjust.
984 * m4/error.m4: New file.
985 * m4/Makefile.am: Adjust.
986 * configure.in (jm_PREREQ_ERROR): Call it.
987 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
988 Remove.
989 (fatal, fatals): Remove. All callers use complain.c::fatal.
990 (warn, warni, warns, warnss, warnss): Remove. All callers use
991 complain.c::complain.
992 (toomany): Remove, use fatal instead.
993 * src/files.c (done): No argument, use complain_message_count.
994 * src/main.c (main): Register `done' to `atexit'.
995
996 * src/getargs.c (usage): More `fputs', less `fprintf'.
997
18539825
AD
9982000-03-28 Akim Demaille <akim@epita.fr>
999
1000 * lib/: New directory.
1001 * Makefile.am (SUBDIRS): Adjust.
1002 * configure.in: Adjust.
1003 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1004 useless.
1005 * src/alloca.c: Moved to lib/.
1006 * src/getopt.c: Likewise.
1007 * src/getopt1.c: Likewise.
1008 * src/getopt.h: Likewise.
1009 * src/ansi2knr.c: Likewise.
1010 * src/ansi2knr.1: Likewise.
1011 * src/Makefile.am: Adjust.
1012 * lib/Makefile.am: New file.
1013
9f306f2a
AD
10142000-03-28 Akim Demaille <akim@epita.fr>
1015
1016 * src/getargs.c (usage): Refresh the help message.
1017
0ba347b6
AD
10182000-03-17 Akim Demaille <akim@epita.fr>
1019
1020 * src/getopt1.c: Updated from textutils 2.0e
1021 * src/getopt.c: Likewise.
1022 * src/getopt.h: Likewise.
1023
dbe7f271
AD
10242000-03-17 Akim Demaille <akim@epita.fr>
1025
1026 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1027 the file name, not the whole `#line LINE FILE'.
1028
75bbe78d
AD
10292000-03-17 Akim Demaille <akim@epita.fr>
1030
1031 On syntax errors, report the token on which we choked.
1032
aa5fd0ee
AD
1033 * src/bison.s1 (yyparse): In the label yyerrlab, when
1034 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1035
7b306f52
AD
10362000-03-17 Akim Demaille <akim@epita.fr>
1037
aa5fd0ee 1038 * src/reader.c (copy_at): New function.
7b306f52
AD
1039 (copy_guard): Use it.
1040 (copy_action): Use it.
1041
e87b5700
AD
10422000-03-17 Akim Demaille <akim@epita.fr>
1043
1044 Be kind to translators, save some useless translations.
1045
aa5fd0ee 1046 * src/main.c (banner): New function.
e87b5700
AD
1047 (fatal_banner): Use it.
1048 (warn_banner): Use it.
1049
ae3c3164
AD
10502000-03-17 Akim Demaille <akim@epita.fr>
1051
aa5fd0ee
AD
1052 * src/reader.c (copy_definition): Use copy_string and
1053 copy_comment. Removed now unused `match', `ended',
1054 `cplus_comment'.
ae3c3164
AD
1055 (copy_comment, copy_string): Moved, to be visible from
1056 copy_definition.
1057
4dc58e7c
AD
10582000-03-17 Akim Demaille <akim@epita.fr>
1059
aa5fd0ee
AD
1060 * src/reader.c (copy_string): Declare `static inline'. No
1061 problems with inline, since it is checked by configure.
4dc58e7c
AD
1062 (copy_comment): Likewise.
1063
0a6384c4
AD
10642000-03-17 Akim Demaille <akim@epita.fr>
1065
aa5fd0ee 1066 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1067
3cef001a
AD
10682000-03-17 Akim Demaille <akim@epita.fr>
1069
aa5fd0ee 1070 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1071 (copy_action): Use it. Removed now unused `match', `ended',
1072 `cplus_comment'.
1073 (copy_guard): Likewise.
1074
ca36d2ef
AD
10752000-03-17 Akim Demaille <akim@epita.fr>
1076
aa5fd0ee 1077 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1078 (copy_action): Use it.
1079 (copy_guard): Likewise.
1080
6666f98f
AD
10812000-03-17 Akim Demaille <akim@epita.fr>
1082
1083 Change the handling of @s so that they behave exactly like $s.
1084 There is now a pseudo variable @$ (readble and writable), location
1085 of the lhs of the rule (by default ranging from the location of
1086 the first symbol of the rhs, to the location of the last symbol,
1087 or, if the rhs is empty, YYLLOC).
1088
1089 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1090 yyval.
1091 (yyparse): When providing a default semantic action, provide a
1092 default location action.
1093 (after the $): No longer change `*YYLSP', just stack YYLOC the
1094 same way you stack YYVAL.
1095 * src/reader.c (read_declarations): Use warns.
1096 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1097 (copy_action, case '@'): Likewise.
1098 Use a standard error message, to save useless work from
1099 translators.
1100
41aca2e0
AD
11012000-03-17 Akim Demaille <akim@epita.fr>
1102
aa5fd0ee
AD
1103 * src/bison.s1: Formatting and cosmetics changes.
1104 * src/reader.c: Likewise.
41aca2e0
AD
1105 Update the Copyright notice.
1106
dc08c1d5
AD
11072000-03-17 Akim Demaille <akim@epita.fr>
1108
aa5fd0ee
AD
1109 * src/bison.s1 (#line): All set to `#line' only, since the
1110 Makefile now handles them.
dc08c1d5 1111
9ee3c97b
AD
11122000-03-16 Akim Demaille <akim@epita.fr>
1113
1114 * src/output.c (output_rule_data): Output the documentation of
1115 some of the tables.
1116 (Copyright notice): Update.
1117 Formatting changes.
1118
0de741ca
AD
11192000-03-16 Akim Demaille <akim@epita.fr>
1120
1121 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1122 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1123 One `#if YYDEBUG' remains, since it uses variables which are
1124 defined only if `YYDEBUG != 0'.
1125
bb10be54
AD
11262000-03-16 Akim Demaille <akim@epita.fr>
1127
1128 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1129 and related variables so that the similarities are highlighted.
1130
b07b484a
AD
11312000-03-16 Akim Demaille <akim@epita.fr>
1132
1133 * src/bison.s1: Properly indent CPP directives.
1134
361f60b3
AD
11352000-03-16 Akim Demaille <akim@epita.fr>
1136
1137 * src/bison.s1: Properly indent the `alloca' CPP section.
1138
8c44d3ec
AD
11392000-03-16 Akim Demaille <akim@epita.fr>
1140
1141 Do not hard code values of directories in `configure.in'.
1142 Update the `configure' tool chain.
1143
1144 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1145 src/makefile.am.
1146 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1147 (AC_OUTPUT): Add m4/Makefile.
1148 Bump to bison 1.28a, 1.29 has never been released.
1149 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1150 handled via src/Makefile.am.
1151 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1152 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1153 autoheader.
1154 * Makefile.am (SUBDIRS): Add m4.
1155 (ACLOCAL_AM_FLAGS): New variable.
1156 (AUTOMAKE_OPTIONS): Add check-news.
1157 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1158 the proper line number and file name.
1159 (DEFS): Propagate the location of bison library files and of the
1160 locale files.
1161 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1162 builddir.
1163 * acinclude.m4: Remove, replaced by the directory m4.
1164 * m4/Makefile.am (EXTRA_DIST): New variable.
1165 * m4/gettext.m4: New file, from the fileutils.
1166 * m4/lcmessage.m4: Likewise
1167 * m4/progtest.m4: Likewise.
1168 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1169
f95997e7
AD
11702000-03-10 Akim Demaille <akim@epita.fr>
1171
1172 * src/closure.c:
1173 Formatting changes of various comments.
1174 Respect the GNU coding standards at various places.
1175 Don't use `_()' when no translation is needed.
1176
11771999-12-13 Jesse Thilo <jthilo@gnu.org>
1178
1179 * src/files.c:
1180 OS/2 honors TMPDIR environment variable.
1181
11821999-12-13 Jesse Thilo <jthilo@gnu.org>
1183
1184 * doc/bison.texinfo: Tweaked spelling and grammar.
1185 Updated ISBN.
1186 Removed reference to price of printed copy.
1187 Mention BISON_SIMPLE and BISON_HAIRY.
1188
11891999-12-13 Jesse Thilo <jthilo@gnu.org>
1190
1191 * configure.in, NEWS:
1192 Bison 1.29 released.
1193
11941999-10-27 Jesse Thilo <jthilo@gnu.org>
1195
1196 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1197 Added reference card.
1198
11991999-07-26 Jesse Thilo <jthilo@gnu.org>
1200
1201 * po/ru.po: Added Russian translation.
1202
12031999-07-26 Jesse Thilo <jthilo@gnu.org>
1204
1205 * configure.in: Added Russian translation.
1206
12071999-07-06 Jesse Thilo <jthilo@gnu.org>
1208
1209 * configure.in, NEWS, README:
1210 Released version 1.28.
1211
12121999-06-14 Jesse Thilo <jthilo@gnu.org>
1213
1214 * src/system.h:
1215 Squashed redefinition warning on some systems.
1216
1217 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1218 Have configure build version string instead of relying on ANSI string
1219 concatentation.
1220
12211999-06-14 Jesse Thilo <jthilo@gnu.org>
1222
1223 * po/POTFILES.in: Got rid of version.c.
1224
12251999-06-14 Jesse Thilo <jthilo@gnu.org>
1226
1227 * acconfig.h, configure.in:
1228 Have configure build version string instead of relying on ANSI string
1229 concatentation.
1230
12311999-06-08 Jesse Thilo <jthilo@gnu.org>
1232
1233 * doc/bison.1:
1234 Dropped mention of `+' for long-named options.
1235
12361999-05-30 Jesse Thilo <jthilo@gnu.org>
1237
1238 * src/files.c: Added <unistd.h> for unlink().
1239
1240 * src/Makefile.am, src/system.h:
1241 I18n fixes.
1242
12431999-05-30 Jesse Thilo <jthilo@gnu.org>
1244
1245 * README: Added a FAQ list.
1246
1247 * configure.in, acconfig.h:
1248 I18n fixes.
1249
12501999-05-30 Jesse Thilo <jthilo@gnu.org>
1251
1252 * doc/FAQ, doc/Makefile.am:
1253 Added a FAQ list.
1254
12551999-05-19 Jesse Thilo <jthilo@gnu.org>
1256
1257 * src/alloc.h, src/symtab.h, src/version.c:
1258 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1259
12601999-04-18 Jesse Thilo <jthilo@gnu.org>
1261
1262 * src/.cvsignore, src/Makefile.am:
1263 Reorganized: sources in `src', documentation in `doc'.
1264
1265 * src/lex.c (literalchar):
1266 fixed the code for escaping double quotes (thanks
1267 Jonathan Czisny.)
1268
12691999-04-18 Jesse Thilo <jthilo@gnu.org>
1270
1271 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1272 Adjusted paths to reflect directory reorganization.
1273
12741999-04-18 Jesse Thilo <jthilo@gnu.org>
1275
1276 * doc/.cvsignore, doc/Makefile.am:
1277 Reorganized: sources in `src', documentation in `doc'.
1278
12791999-04-18 Jesse Thilo <jthilo@gnu.org>
1280
1281 * configure.in:
1282 Updated AC_INIT file to reflect directory reorganization.
1283
1284 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1285 Reorganized: sources in `src', documentation in `doc'.
1286
12871999-04-13 Jesse Thilo <jthilo@gnu.org>
1288
1289 * src/allocate.c:
1290 Don't declare calloc() and realloc() if not necessary.
1291
12921999-04-13 Jesse Thilo <jthilo@gnu.org>
1293
1294 * configure.in, acconfig.h, acinclude.m4:
1295 Don't declare calloc() and realloc() if not necessary.
1296
12971999-03-23 Jesse Thilo <jthilo@gnu.org>
1298
1299 * po/.cvsignore: Added i18n support.
1300
13011999-03-23 Jesse Thilo <jthilo@gnu.org>
1302
1303 * acconfig.h, configure.in, Makefile.am:
1304 Added i18n support.
1305
13061999-03-22 Jesse Thilo <jthilo@gnu.org>
1307
1308 * src/bison.s1: Fixed #line numbers.
1309
13101999-03-15 Jesse Thilo <jthilo@gnu.org>
1311
1312 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1313 Added PO files from Translation Project.
1314
13151999-03-03 Jesse Thilo <jthilo@gnu.org>
1316
1317 * Makefile.am:
1318 Added support for non-ANSI compilers (ansi2knr).
1319
13201999-02-16 Jesse Thilo <jthilo@gnu.org>
1321
1322 * configure.in: Bumped version number to 1.27.
1323
1324 * Makefile.am:
1325 Added `bison.simple' to list of files removed by `make distclean'.
1326
13271999-02-12 Jesse Thilo <jthilo@gnu.org>
1328
1329 * src/files.c, src/files.h:
1330 Defined locations of parser files in config.h instead of Makefile.
1331
13321999-02-12 Jesse Thilo <jthilo@gnu.org>
1333
1334 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1335 Defined locations of parser files in config.h instead of Makefile.
1336
13371999-02-09 Jesse Thilo <jthilo@gnu.org>
1338
1339 * Makefile.am:
1340 Removed inappropriate use of $< macro.
1341
13421999-02-05 Jesse Thilo <jthilo@gnu.org>
1343
1344 * po/Makefile.in.in, po/POTFILES.in:
1345 Add `po' directory skeleton.
1346
13471999-01-27 Jesse Thilo <jthilo@gnu.org>
1348
1349 * README: Document help-bison list.
1350
1351 * configure.in: Add check for mkstemp().
1352
13531999-01-20 Jesse Thilo <jthilo@gnu.org>
1354
1355 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1356 Hush a few compiler warnings.
1357
1358 * src/files.c:
1359 Add tryclose(), which verifies that fclose was successful.
1360 Hush a couple of compiler warnings.
1361
13621999-01-20 Jesse Thilo <jthilo@gnu.org>
1363
1364 * Makefile.am, OChangeLog:
1365 ChangeLog is now automatically generated. Include the old version as
1366 OChangeLog.
1367
13681999-01-14 Jesse Thilo <jthilo@gnu.org>
1369
1370 * 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:
1371 Update FSF address.
1372
13731999-01-14 Jesse Thilo <jthilo@gnu.org>
1374
1375 * doc/bison.texinfo: Fix formatting glitch.
1376
1377 * doc/bison.texinfo: Update FSF address.
1378
13791999-01-14 Jesse Thilo <jthilo@gnu.org>
1380
1381 * acconfig.h: Update FSF address.
1382
13831999-01-08 Jesse Thilo <jthilo@gnu.org>
1384
1385 * src/system.h:
1386 Don't define PACKAGE here, since config.h defines it.
1387
13881998-12-30 Jesse Thilo <jthilo@gnu.org>
1389
1390 * src/reader.c: Update copyright date.
1391
1392 * src/main.c:
1393 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1394 favor of output directly to stderr (avoids buffer overruns).
1395
1396 * src/reader.c: Some checks for premature EOF.
1397
1398 * 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:
1399 Use prototypes if the compiler understands them.
1400
1401 * src/files.c: Honor TMPDIR on Unix hosts.
1402 Use prototypes if the compiler understands them.
1403
1404 * src/reader.c:
1405 Fix a couple of buffer overrun bugs.
1406 Use prototypes if the compiler understands them.
1407
1408 * src/system.h: Include unistd.h and ctype.h.
1409 Use #ifdef instead of #if for NLS symbols.
1410
14111998-12-30 Jesse Thilo <jthilo@gnu.org>
1412
1413 * doc/bison.texinfo:
1414 Delete comment "consider using @set for edition number, etc..." since
1415 we now are doing so.
1416
14171998-12-30 Jesse Thilo <jthilo@gnu.org>
1418
1419 * configure.in:
1420 Use prototypes if the compiler understands them.
1421
1422 * NEWS: Document 1.26 highlights.
1423
1424 * Makefile.am: Require Automake 1.3 or later.
1425
1426 * acconfig.h:
1427 Use prototypes if the compiler understands them.
1428
14291998-12-29 Jesse Thilo <jthilo@gnu.org>
1430
1431 * src/version.c:
1432 Use VERSION symbol from automake for version number.
1433
14341998-12-29 Jesse Thilo <jthilo@gnu.org>
1435
1436 * acconfig.h, configure.in, version.cin:
1437 Use VERSION symbol from automake for version number.
1438
14391998-11-28 Jesse Thilo <jthilo@gnu.org>
1440
1441 * Makefile.am:
1442 Distribute original version of simple parser (bison.s1), not built
1443 version (bison.simple).
1444
14451998-11-28 Jesse Thilo <jthilo@gnu.org>
1446
1447 * doc/bison.texinfo: Add info dir entry.
1448
1449 * doc/bison.texinfo:
1450 Let automake put version number into documentation.
1451
14521998-11-26 Jesse Thilo <jthilo@gnu.org>
1453
1454 * src/bison.cld, src/build.com, src/vmshlp.mar:
1455 Add non-RCS files from /gd/gnu/bison.
1456
14571998-11-26 Jesse Thilo <jthilo@gnu.org>
1458
1459 * doc/bison.1:
1460 Document the BISON_HAIRY and BISON_SIMPLE variables.
1461
14621998-11-25 Jesse Thilo <jthilo@gnu.org>
1463
1464 * src/version.c: Build version.c automatically.
1465
1466 * src/reader.c:
1467 Fix token numbering (used to start at 258, not 257).
1468
1469 * src/system.h: Include config.h.
1470
1471 * src/getargs.c: Update bug report address.
1472
1473 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1474 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1475
14761998-11-25 Jesse Thilo <jthilo@gnu.org>
1477
1478 * Makefile.am:
1479 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1480
1481 * configure.in, version.cin:
1482 Build version.c automatically.
1483
1484 * AUTHORS: Add AUTHORS file.
1485
1486 * README: Update bug report address.
1487
1488 * bison.simple:
1489 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1490
1491 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1492 Add automake stuff.
1493
14941998-11-25 Jesse Thilo <jthilo@gnu.org>
1495
1496 * doc/bison.texinfo: Clean up some formatting.
1497
14981998-05-05 Richard Stallman <rms@gnu.org>
1499
1500 * doc/bison.texinfo:
1501 Explain better why to make a pure parser.
1502
15031998-01-05 Richard Stallman <rms@gnu.org>
1504
1505 * src/files.c (openfiles):
1506 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1507 find a temporary directory, if possible. Do not unlink files while
1508 they are open.
1509
15101997-08-25 Richard Stallman <rms@gnu.org>
1511
1512 * src/reader.c (stack_offset;):
1513 Change some warni to warns.
1514
1515 * src/lex.c (literalchar): Use warns, not warni.
1516
15171997-06-28 Richard Stallman <rms@gnu.org>
1518
1519 * src/bison.s1: Add a Bison version comment.
1520
1521 * src/main.c (fatal, warn, berror):
1522 Use program_name.
1523
15241997-06-28 Richard Stallman <rms@gnu.org>
1525
1526 * Makefile.in (bison_version): New variable.
1527 (dist): Use that variable.
1528 (bison.s1): Substitute the Bison version into bison.simple.
1529
1530 * bison.simple: Add a Bison version comment.
1531
15321997-06-18 Richard Stallman <rms@gnu.org>
1533
1534 * src/main.c (fatal, warn, berror):
1535 Make error messages standard.
1536 (toomany): Improve error message text.
1537
1538 * 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:
1539 new.h renamed to alloc.h.
1540
15411997-06-18 Richard Stallman <rms@gnu.org>
1542
1543 * Makefile.in: new.h renamed to alloc.h.
1544
15451997-05-24 Richard Stallman <rms@gnu.org>
1546
1547 * src/lex.c (literalchar):
1548 Fix the code for escaping \, " and '.
1549
1550 (lex): Avoid trouble when there are many chars
1551 to discard in a char literal with just several chars in it.
1552
15531997-05-17 Richard Stallman <rms@gnu.org>
1554
1555 * src/bison.s1:
1556 Use malloc, if using alloca is troublesome.
1557 (YYSTACK_USE_ALLOCA): New flag macro.
1558 Define it for some systems and compilers.
1559 (YYSTACK_ALLOC): New macro.
1560 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1561 If it was malloc'd, free it.
1562
15631997-05-17 Richard Stallman <rms@gnu.org>
1564
1565 * bison.simple:
1566 Use malloc, if using alloca is troublesome.
1567 (YYSTACK_USE_ALLOCA): New flag macro.
1568 Define it for some systems and compilers.
1569 (YYSTACK_ALLOC): New macro.
1570 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1571 If it was malloc'd, free it.
1572
15731997-04-23 Richard Stallman <rms@gnu.org>
1574
1575 * src/bison.s1:
1576 (alloca) [__hpux]: Always define as __builtin_alloca.
1577
15781997-04-23 Richard Stallman <rms@gnu.org>
1579
1580 * bison.simple:
1581 (alloca) [__hpux]: Always define as __builtin_alloca.
1582
15831997-04-22 Richard Stallman <rms@gnu.org>
1584
1585 * src/bison.s1:
1586 [__hpux]: Include alloca.h (right for HPUX 10)
1587 instead of declaring alloca (right for HPUX 9).
1588
1589 * src/bison.s1 (__yy_memcpy):
1590 Declare arg `count' as unsigned int.
1591 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1592
15931997-04-22 Richard Stallman <rms@gnu.org>
1594
1595 * bison.simple:
1596 [__hpux]: Include alloca.h (right for HPUX 10)
1597 instead of declaring alloca (right for HPUX 9).
1598
1599 * bison.simple (__yy_memcpy):
1600 Declare arg `count' as unsigned int.
1601 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1602
16031997-01-03 Richard Stallman <rms@gnu.org>
1604
1605 * src/allocate.c: [__STDC__ or _MSC_VER]:
1606 Declare calloc and realloc to return void *.
1607
16081997-01-02 Richard Stallman <rms@gnu.org>
1609
1610 * src/system.h:
1611 [_MSC_VER]: Include stdlib.h and process.h.
1612 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1613
1614 * src/main.c (main): Return FAILURE as a value.
1615 (printable_version): Declare arg as int, not char.
1616
16171997-01-02 Richard Stallman <rms@gnu.org>
1618
1619 * Makefile.in (dist):
1620 Explicitly check for symlinks, and copy them.
1621
16221996-12-19 Richard Stallman <rms@gnu.org>
1623
1624 * src/files.c:
1625 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1626
16271996-12-18 Paul Eggert <eggert@gnu.org>
1628
1629 * src/bison.s1 (yyparse):
1630 If __GNUC__ and YYPARSE_PARAM are both defined,
1631 declare yyparse to have a void * argument.
1632
16331996-12-18 Paul Eggert <eggert@gnu.org>
1634
1635 * bison.simple (yyparse):
1636 If __GNUC__ and YYPARSE_PARAM are both defined,
1637 declare yyparse to have a void * argument.
1638
16391996-12-17 Richard Stallman <rms@gnu.org>
1640
1641 * src/reduce.c (nbits): Add some casts.
1642
16431996-08-12 Richard Stallman <rms@gnu.org>
1644
1645 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1646
16471996-08-12 Richard Stallman <rms@gnu.org>
1648
1649 * bison.simple: Test _MSDOS as well as _MSDOS_.
1650
16511996-07-31 Richard Stallman <rms@gnu.org>
1652
1653 * src/bison.s1:
1654 [__sun && __i386]: Include alloca.h.
1655
16561996-07-31 Richard Stallman <rms@gnu.org>
1657
1658 * bison.simple:
1659 [__sun && __i386]: Include alloca.h.
1660
16611996-07-30 Richard Stallman <rms@gnu.org>
1662
1663 * src/bison.s1: Comment change.
1664
1665 * src/bison.s1: Test _MSDOS_, not MSDOS.
1666
16671996-07-30 Richard Stallman <rms@gnu.org>
1668
1669 * bison.simple: Comment change.
1670
1671 * bison.simple: Test _MSDOS_, not MSDOS.
1672
16731996-06-01 Richard Stallman <rms@gnu.org>
1674
1675 * 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:
1676 Insert `_' macro around many string constants.
1677
1678 * src/main.c:
1679 Insert `_' macro around many string constants.
1680
1681 (main): Call setlocale, bindtextdomain and textdomain.
1682
1683 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1684 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1685 [ENABLE_NLS]: Include libintl.h.
1686 [ENABLE_NLS] (gettext): Define.
1687 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1688 (N_, PACKAGE, LOCALEDIR): New macros.
1689
16901996-06-01 Richard Stallman <rms@gnu.org>
1691
1692 * POTFILES.in: New file.
1693
1694 * Makefile.in (allocate.o):
1695 Define target explicitly.
1696
1697 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1698 (LDFLAGS): Set to @LDFLAGS@.
1699 (configure): Run autoconf only if preceding `cd' succeeds.
1700 (bison.s1): Redirect output to temporary file then move the
1701 temporary to the target, rather than redirecting directly to bison.s1.
1702 (clean): Remove config.status and config.log.
1703 (distclean): Don't remove config.status here.
1704
17051996-05-12 Richard Stallman <rms@gnu.org>
1706
1707 * src/bison.s1:
1708 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1709
17101996-05-12 Richard Stallman <rms@gnu.org>
1711
1712 * bison.simple:
1713 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1714
17151996-05-11 Richard Stallman <rms@gnu.org>
1716
1717 * src/bison.s1 (__yy_memcpy):
1718 Really reorder the args, as was supposedly done on Feb 14 1995.
1719 (yyparse): Calls changed accordingly.
1720
17211996-05-11 Richard Stallman <rms@gnu.org>
1722
1723 * Makefile.in (dist): Don't use $(srcdir).
1724
1725 * bison.simple (__yy_memcpy):
1726 Really reorder the args, as was supposedly done on Feb 14 1995.
1727 (yyparse): Calls changed accordingly.
1728
17291996-01-27 Richard Stallman <rms@gnu.org>
1730
1731 * src/output.c (output_rule_data):
1732 Test YYERROR_VERBOSE in the conditional
1733 around the definition of ttyname.
1734
17351995-12-29 Richard Stallman <rms@gnu.org>
1736
1737 * src/bison.s1:
1738 Fix line numbers in #line commands.
1739
17401995-12-29 Richard Stallman <rms@gnu.org>
1741
1742 * bison.simple:
1743 Fix line numbers in #line commands.
1744
17451995-12-27 Richard Stallman <rms@gnu.org>
1746
1747 * src/bison.s1 (YYPARSE_PARAM_DECL):
1748 In C++, make it always null.
1749 (YYPARSE_PARAM_ARG): New macro.
1750 (yyparse): Use YYPARSE_PARAM_ARG.
1751
17521995-12-27 Richard Stallman <rms@gnu.org>
1753
1754 * bison.simple (YYPARSE_PARAM_DECL):
1755 In C++, make it always null.
1756 (YYPARSE_PARAM_ARG): New macro.
1757 (yyparse): Use YYPARSE_PARAM_ARG.
1758
17591995-11-29 Richard Stallman <rms@gnu.org>
1760
1761 * doc/bison.texinfo:
1762 Describe literal string tokens, %raw, %no_lines, %token_table.
1763
17641995-11-29 Daniel Hagerty <hag@gnu.org>
1765
1766 * doc/bison.texinfo: Fixed update date
1767
17681995-10-16 Richard Stallman <rms@gnu.org>
1769
1770 * src/version.c: Version 1.25.
1771
17721995-10-16 Richard Stallman <rms@gnu.org>
1773
1774 * NEWS: *** empty log message ***
1775
17761995-10-16 Richard Stallman <rms@gnu.org>
1777
1778 * doc/bison.1, doc/bison.rnh:
1779 Add new options.
1780
17811995-10-15 Richard Stallman <rms@gnu.org>
1782
1783 * src/vmsgetargs.c, src/getargs.c:
1784 Added -n, -k, and -raw switches.
1785 (noparserflag, toknumflag, rawtoknumflag): New variables.
1786
1787 * src/symtab.h (SALIAS):
1788 New #define for adding aliases to %token.
1789 (struct bucket): Added `alias' field.
1790
1791 * src/reduce.c (reduce_grammar):
1792 Revise error message.
1793 (print_notices): Remove final `.' from error message.
1794
1795 * src/reader.c (reader_output_yylsp):
1796 New function.
1797 (readgram): Use `#if 0' around code that accepted %command
1798 inside grammar rules: The documentation doesn't allow it,
1799 and it will fail since the %command processors scan for the next %.
1800 (parse_token_decl): Extended the %token
1801 declaration to allow a multi-character symbol as an alias.
1802 (parse_thong_decl): New function.
1803 (read_declarations): Added %thong declarations.
1804 (read_declarations): Handle NOOP to deal with allowing
1805 % declarations as another means to specify the flags.
1806 (readgram): Allow %prec prior to semantics embedded in a rule.
1807 (skip_to_char, read_declarations, copy_definition)
1808 (parse_token_decl, parse_start_decl, parse_type_decl)
1809 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1810 (get_type_name, copy_guard, copy_action, readgram)
1811 (get_type, packsymbols): Revised most error messages.
1812 Changed `fatal' to `warnxxx' to avoid aborting for error.
1813 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1814 (read_declarations): Improve the error message for
1815 an invalid character. Do not abort.
1816 (read_declarations, copy_guard, copy_action): Use
1817 printable_version to avoid unprintable characters in printed output.
1818 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1819 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1820 Allow the type of a non-terminal can be given
1821 more than once, as long as all specifications give the same type.
1822
1823 * src/output.c:
1824 (output_headers, output_trailers, output, output_gram)
1825 (output_rule_data): Implement noparserflag variable.
1826 Implement toknumflag variable.
1827 (output): Call reader_output_yylsp to output LTYPESTR.
1828
1829 * src/main.c (main):
1830 If reader sees an error, don't process the grammar.
1831 (fatals): Updated to not use VARARGS1.
1832 (printable_version, int_to_string, warn, warni, warns, warnss)
1833 (warnsss): New error reporting functions. Avoid abort for error.
1834
1835 * src/lex.h:
1836 Added THONG and NOOP for alias processing.
1837 Added SETOPT for the new code that allows setting options with %flags.
1838
1839 * src/lex.c:
1840 Include getopt.h. Add some extern decls.
1841 (safegetc): New function to deal with EOF gracefully.
1842 (literalchar); new function to deal with reading \ escapes.
1843 (lex): Use literalchar.
1844 (lex): Implemented "..." tokens.
1845 (literalchar, lex, parse_percent_token): Made tokenbuffer
1846 always contain the token. This includes growing the token
1847 buffer while reading an integer.
1848 (parse_percent_token): Replaced if-else statement with percent_table.
1849 (parse_percent_token): Added % declarations as another
1850 way to specify the flags -n, -l, and -r. Also added hooks for
1851 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1852 major changes to files.c.
1853 (lex) Retain in the incoming stream a character following
1854 an incorrect '/'.
1855 (skip_white_space, lex): Revised most error messages
1856 and changed fatal to warn to avoid aborting.
1857 (percent_table): Added %thong declarations.
1858
1859 * src/gram.h: Comment changes.
1860
1861 * src/files.c (openfiles, open_extra_files, done):
1862 Add faction flag
1863 and actfile file. Handle noparserflag. Both for -n switch.
1864
1865 * src/conflicts.c (resolve_sr_conflict):
1866 Remove use of alloca.
1867
18681995-06-01 Jim Meyering <meyering@gnu.org>
1869
1870 * doc/bison.texinfo: *** empty log message ***
1871
18721995-05-06 Richard Stallman <rms@gnu.org>
1873
1874 * src/bison.s1: Comment change.
1875
18761995-05-06 Richard Stallman <rms@gnu.org>
1877
1878 * bison.simple: Comment change.
1879
18801995-05-03 Richard Stallman <rms@gnu.org>
1881
1882 * src/version.c: Version now 1.24.
1883
1884 * src/bison.s1: Change distribution terms.
1885
1886 * src/version.c: Version now 1.23.
1887
18881995-05-03 Richard Stallman <rms@gnu.org>
1889
1890 * doc/bison.texinfo:
1891 Rewrite "Conditions for Using Bison".
1892 Update version to 1.24.
1893
18941995-05-03 Richard Stallman <rms@gnu.org>
1895
1896 * bison.simple: Change distribution terms.
1897
18981995-02-23 Richard Stallman <rms@gnu.org>
1899
1900 * src/files.c: Test __VMS_POSIX as well as VMS.
1901
19021995-02-14 Jim Meyering <meyering@gnu.org>
1903
1904 * src/bison.s1 (__yy_memcpy):
1905 Renamed from __yy_bcopy to avoid
1906 confusion. Reverse FROM and TO arguments to be consistent with
1907 those of memcpy.
1908
19091995-02-14 Jim Meyering <meyering@gnu.org>
1910
1911 * bison.simple (__yy_memcpy):
1912 Renamed from __yy_bcopy to avoid
1913 confusion. Reverse FROM and TO arguments to be consistent with
1914 those of memcpy.
1915
19161994-11-10 David J. MacKenzie <djm@gnu.org>
1917
1918 * NEWS: reformat
1919
1920 * NEWS: New file.
1921
1922 * Makefile.in (DISTFILES): Include NEWS.
1923
1924 * Makefile.in (DISTFILES):
1925 Include install-sh, not install.sh.
1926
1927 * configure.in: Update to Autoconf v2 macro names.
1928
19291994-10-05 David J. MacKenzie <djm@gnu.org>
1930
1931 * Makefile.in: fix typo
1932
1933 * Makefile.in (prefix, exec_prefix):
1934 Let configure set them.
1935
19361994-09-28 David J. MacKenzie <djm@gnu.org>
1937
1938 * Makefile.in: Set datadir to $(prefix)/share.
1939
19401994-09-15 Richard Stallman <rms@gnu.org>
1941
1942 * src/bison.s1:
1943 Update copyright notice and GPL version.
1944
19451994-09-15 Richard Stallman <rms@gnu.org>
1946
1947 * bison.simple:
1948 Update copyright notice and GPL version.
1949
19501994-07-12 Richard Stallman <rms@gnu.org>
1951
1952 * src/reduce.c, src/reader.c:
1953 entered into RCS
1954
19551994-05-05 David J. MacKenzie <djm@gnu.org>
1956
1957 * Makefile.in: entered into RCS
1958
19591994-03-26 Richard Stallman <rms@gnu.org>
1960
1961 * src/bison.s1: entered into RCS
1962
19631994-03-26 Richard Stallman <rms@gnu.org>
1964
1965 * bison.simple: entered into RCS
1966
19671994-03-25 Richard Stallman <rms@gnu.org>
1968
1969 * src/main.c: entered into RCS
1970
19711994-03-24 Richard Stallman <rms@gnu.org>
1972
1973 * src/conflicts.c: entered into RCS
1974
19751994-01-02 Richard Stallman <rms@gnu.org>
1976
1977 * Makefile.in: *** empty log message ***
1978
19791993-11-21 Richard Stallman <rms@gnu.org>
1980
1981 * src/bison.s1: *** empty log message ***
1982
19831993-11-21 Richard Stallman <rms@gnu.org>
1984
1985 * doc/bison.texinfo: entered into RCS
1986
1987 * doc/bison.texinfo: *** empty log message ***
1988
19891993-11-21 Richard Stallman <rms@gnu.org>
1990
1991 * bison.simple: *** empty log message ***
1992
19931993-10-25 David J. MacKenzie <djm@gnu.org>
1994
1995 * doc/bison.texinfo: *** empty log message ***
1996
19971993-10-19 Richard Stallman <rms@gnu.org>
1998
1999 * src/bison.s1: *** empty log message ***
2000
20011993-10-19 Richard Stallman <rms@gnu.org>
2002
2003 * bison.simple: *** empty log message ***
2004
20051993-10-14 Richard Stallman <rms@gnu.org>
2006
2007 * src/bison.s1: *** empty log message ***
2008
20091993-10-14 Richard Stallman <rms@gnu.org>
2010
2011 * bison.simple: *** empty log message ***
2012
20131993-09-14 David J. MacKenzie <djm@gnu.org>
2014
2015 * doc/bison.texinfo: *** empty log message ***
2016
20171993-09-13 Noah Friedman <friedman@gnu.org>
2018
2019 * Makefile.in: *** empty log message ***
2020
20211993-09-10 Richard Stallman <rms@gnu.org>
2022
2023 * src/conflicts.c: *** empty log message ***
2024
2025 * src/system.h: entered into RCS
2026
20271993-09-10 Richard Stallman <rms@gnu.org>
2028
2029 * doc/bison.1: entered into RCS
2030
20311993-09-06 Noah Friedman <friedman@gnu.org>
2032
2033 * src/version.c: entered into RCS
2034
20351993-09-06 Noah Friedman <friedman@gnu.org>
2036
2037 * Makefile.in: *** empty log message ***
2038
20391993-07-30 David J. MacKenzie <djm@gnu.org>
2040
2041 * Makefile.in: *** empty log message ***
2042
20431993-07-24 Richard Stallman <rms@gnu.org>
2044
2045 * src/bison.s1: *** empty log message ***
2046
20471993-07-24 Richard Stallman <rms@gnu.org>
2048
2049 * bison.simple: *** empty log message ***
2050
20511993-07-08 David J. MacKenzie <djm@gnu.org>
2052
2053 * Makefile.in: *** empty log message ***
2054
20551993-07-04 Richard Stallman <rms@gnu.org>
2056
2057 * src/bison.s1: *** empty log message ***
2058
20591993-07-04 Richard Stallman <rms@gnu.org>
2060
2061 * bison.simple: *** empty log message ***
2062
20631993-06-26 David J. MacKenzie <djm@gnu.org>
2064
2065 * src/getargs.c: entered into RCS
2066
20671993-06-26 David J. MacKenzie <djm@gnu.org>
2068
2069 * doc/bison.texinfo: *** empty log message ***
2070
2071 * doc/bison.1: New file.
2072
20731993-06-25 Richard Stallman <rms@gnu.org>
2074
2075 * src/getargs.c: New file.
2076
20771993-06-16 Richard Stallman <rms@gnu.org>
2078
2079 * src/bison.s1: *** empty log message ***
2080
20811993-06-16 Richard Stallman <rms@gnu.org>
2082
2083 * bison.simple: *** empty log message ***
2084
20851993-06-03 Richard Stallman <rms@gnu.org>
2086
2087 * src/bison.s1: New file.
2088
20891993-06-03 Richard Stallman <rms@gnu.org>
2090
2091 * doc/bison.texinfo: *** empty log message ***
2092
20931993-06-03 Richard Stallman <rms@gnu.org>
2094
2095 * bison.simple: New file.
2096
20971993-05-19 Richard Stallman <rms@gnu.org>
2098
2099 * doc/bison.texinfo: New file.
2100
21011993-05-07 Noah Friedman <friedman@gnu.org>
2102
2103 * Makefile.in: *** empty log message ***
2104
21051993-04-28 Noah Friedman <friedman@gnu.org>
2106
2107 * src/reader.c: *** empty log message ***
2108
21091993-04-23 Noah Friedman <friedman@gnu.org>
2110
2111 * src/alloc.h: entered into RCS
2112
21131993-04-20 David J. MacKenzie <djm@gnu.org>
2114
2115 * src/version.c: *** empty log message ***
2116
2117 * src/files.c, src/allocate.c:
2118 entered into RCS
2119
2120 * src/reader.c: *** empty log message ***
2121
2122 * src/lex.c: entered into RCS
2123
2124 * src/conflicts.c: New file.
2125
2126 * src/symtab.c: entered into RCS
2127
2128 * src/alloc.h: New file.
2129
2130 * src/LR0.c: entered into RCS
2131
21321993-04-18 Noah Friedman <friedman@gnu.org>
2133
2134 * src/reader.c: New file.
2135
2136 * src/version.c: *** empty log message ***
2137
21381993-04-18 Noah Friedman <friedman@gnu.org>
2139
2140 * Makefile.in: *** empty log message ***
2141
21421993-04-17 Noah Friedman <friedman@gnu.org>
2143
2144 * Makefile.in: *** empty log message ***
2145
21461993-04-15 Richard Stallman <rms@gnu.org>
2147
2148 * src/main.c, src/files.c:
2149 New file.
2150
21511993-04-15 Noah Friedman <friedman@gnu.org>
2152
2153 * configure.in: entered into RCS
2154
2155 * configure.in: *** empty log message ***
2156
2157 * configure.in: New file.
2158
21591993-04-14 Richard Stallman <rms@gnu.org>
2160
2161 * Makefile.in: New file.
2162
21631993-04-13 Richard Stallman <rms@gnu.org>
2164
2165 * src/version.c: New file.
2166
21671993-03-25 Richard Stallman <rms@gnu.org>
2168
2169 * src/output.c: entered into RCS
2170
21711992-09-25 Richard Stallman <rms@gnu.org>
2172
2173 * configure.bat: entered into RCS
2174
21751992-06-22 Richard Stallman <rms@gnu.org>
2176
2177 * src/vmsgetargs.c: entered into RCS
2178
21791992-06-22 Richard Stallman <rms@gnu.org>
2180
2181 * doc/bison.rnh: entered into RCS
2182
21831992-04-20 David J. MacKenzie <djm@gnu.org>
2184
2185 * README: entered into RCS
2186
21871992-01-22 Richard Stallman <rms@gnu.org>
2188
2189 * src/machine.h: entered into RCS
2190
21911991-12-21 Richard Stallman <rms@gnu.org>
2192
2193 * src/lalr.c, src/closure.c:
2194 entered into RCS
2195
21961991-12-20 Richard Stallman <rms@gnu.org>
2197
2198 * src/state.h: entered into RCS
2199
22001991-12-18 Richard Stallman <rms@gnu.org>
2201
2202 * src/print.c, src/nullable.c, src/derives.c:
2203 entered into RCS
2204
22051991-11-03 David J. MacKenzie <djm@gnu.org>
2206
2207 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2208 entered into RCS
2209
22101988-09-09 Richard Stallman <rms@gnu.org>
2211
2212 * src/bison.hairy: entered into RCS
2213
22141987-12-16 Richard Stallman <rms@gnu.org>
2215
2216 * REFERENCES: entered into RCS