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