]>
Commit | Line | Data |
---|---|---|
6a254321 PE |
1 | 2002-08-12 Paul Eggert <eggert@twinsun.com> |
2 | ||
645e30d1 PE |
3 | Version 1.49b. |
4 | ||
6a254321 PE |
5 | * Makefile.am (SUBDIRS): Remove intl. |
6 | (DISTCLEANFILES): Remove. | |
7 | * NEWS: Mention that GNU M4 is now required. Clarify what is | |
8 | meant by "larger grammars". Mention the pt_BR translation. | |
9 | * configure.in (AC_CHECK_DECLS): Add getenv, getopt. | |
10 | (AM_GNU_GETTEXT_VERSION): New macro, replacing GETTEXT_VERSION var. | |
11 | Bump version from 0.11.2 to 0.11.5. | |
12 | (BISON_PREREQ_STAGE): Remove. | |
13 | (AM_GNU_GETTEXT): Use external gettext. | |
14 | (AC_OUTPUT): Remove intl/Makefile. | |
15 | ||
16 | * config/depcomp, config/install-sh: Sync with Automake 1.6.3. | |
17 | ||
18 | * data/glr.c: Include string.h, for strlen. | |
19 | (yyreportParseError): Use size_t for yysize. | |
20 | (yy_yypstack): No longer nested inside yypstates, as nested | |
21 | functions are not portable. Do not assume size_t is the | |
22 | same width as int. | |
23 | (yypstates): Do not assume that ptrdiff_t is the same width | |
24 | as int, and similarly for yyposn and YYINDEX. | |
25 | ||
26 | * data/yacc.c: Fix comment about `$$ = $1': it can copy garbage. | |
27 | ||
28 | * lib/Makefile.am (INCLUDES): Do not include from the intl | |
29 | directory, which has been removed. | |
30 | * src/Makefile.am (INCLUDES): Likewise. | |
31 | ||
32 | * lib/Makefile.am (libbison_a_SOURCES): Add unlocked-io.h. | |
33 | (bitsets_sources, additional_bitsets_sources, timevars_sources): | |
34 | New vars. | |
35 | ||
36 | * lib/Makefile.am (libbison_a_SOURCES): Avoid +=, a GNU make extension. | |
37 | * tests/Makefile.am (EXTRA_DIST): Likewise. | |
38 | ||
39 | * lib/abitset.c (abitset_reverse_list, ebitset_reverse_list): | |
40 | Do not assume that bitset_windex is the same width as unsigned. | |
41 | ||
42 | * lib/abitset.c (abitset_unused_clear): Do not assume that | |
43 | bitset_word is the same width as int. | |
44 | * lib/bbitset.h (BITSET_INDEX_MAX, BITSET_MSB): Likewise. | |
45 | * lib/bitset.h (bitset_set, bitset_reset): Likewise. | |
46 | * lib/bitset_stats.c (bitset_stats_set, bitset_stats_reset): Likewise. | |
47 | * lib/ebitset.c (ebitset_set, ebitset_reset): Likewise. | |
48 | * lib/lbitset.c (lbitset_set, lbitset_reset): Likewise. | |
49 | ||
50 | * lib/abitset.c (abitset_op1): Use -1, not ~0, as memset arg (for | |
51 | portability to one's complement hosts!). | |
52 | * lib/ebitset.c (ebitset_op1): Likewise. | |
53 | * lib/lbitset.c (lbitset_op1): Likewise. | |
54 | ||
55 | * lib/argmatch.c, lib/quotearg.c, quotearg.h: Sync with GNU tar. | |
56 | * lib/argmatch.h, lib/basename.c, lib/dirname.c, lib/dirname.h, | |
57 | lib/hash.c, lib/hash.h, lib/strnlen.c, lib/xmalloc.c: | |
58 | Sync with fileutils. | |
59 | * lib/error.c, lib/getopt.c, lib/getopt.h, lib/getopt1.c, | |
60 | lib/gettext.h: Sync with diffutils. | |
61 | ||
62 | * lib/memrchr.c, lib/mkstemp.c, lib/strchr.c, lib/strnlen.c, | |
63 | lib/strspn.c, lib/tempname.c: Use GPL, not LGPL. | |
64 | ||
65 | * lib/obstack.c, lib/obstack.h: Sync with fileutils, except use | |
66 | PROTOTYPES to check for prototypes, and "defined __STDC__" to | |
67 | check for void *. | |
68 | ||
69 | * lib/bbitset.h (BITSET_WORD_BITS): Now of type unsigned, not | |
70 | size_t; the old version tried to do this but casted improperly. | |
71 | (bitset_bindex, bitset_windex): Now size_t, not unsigned long. | |
72 | (bitset_test): Now returns int, not unsigned long. | |
73 | ||
74 | * lib/bitset_stats.c: Include "gettext.h". | |
75 | (_): New macro. | |
76 | (bitset_stats_set, bitset_stats_reset, bitset_stats_test): Don't | |
77 | name locals "index", as it generates unnecessary warnings on some | |
78 | hosts that have an "index" function. | |
79 | ||
80 | * lib/bitset_stats.c (bitset_stats_print_1, bitset_stats_print, | |
81 | bitset_stats_read, bitset_stats_write): Wrap strings in _() if | |
82 | they need translation. | |
83 | * src/LR0.c (state_list_append, new_itemsets, get_state, | |
84 | append_states, generate_states): Likewise. | |
85 | * src/assoc.c (assoc_to_string): Likewise. | |
86 | * src/closure.c (print_closure, set_firsts, closure): Likewise. | |
87 | * src/gram.c (grammar_dump): Likewise. | |
88 | * src/injections.c (injections_compute): Likewise. | |
89 | * src/lalr.c (lookaheads_print): Likewise. | |
90 | * src/relation.c (relation_transpose): Likewise. | |
91 | * src/scan-gram.l: Likewise. | |
92 | * src/tables.c (table_grow, pack_vector): Likewise. | |
93 | ||
94 | * m4/Makefile.am (EXTRA_DIST): Remove codeset.m4, | |
95 | glibc21.m4, isc-posix.m4 lcmessage.m4, stage.m4. | |
96 | * m4/malloc.m4, m4/realloc.m4: Sync with diffutils. | |
97 | * m4/mbstate_t.m4: Sync with fileutils. | |
98 | * m4/prereq.m4 (jm_PREREQ_QUOTEARG): AC_MBSTATE_T -> AC_TYPE_MBSTATE_T. | |
99 | ||
100 | * po/LINGUAS: Add pt_BR. | |
101 | * po/POTFILES.in: Add src/assoc.c, src/closure.c, src/gram.c, | |
102 | src/main.c, src/relation.c, src/state.c, lib/bitset_stats.c, | |
103 | lib/timevar.c. | |
104 | Use src/parse-gram.y instead of src/parse-gram.c, as the gettext | |
105 | manual recommends. | |
106 | Similarly, use src/scan-gram.l instead of src/scan-gram.c. | |
107 | ||
108 | * src/complain.c (strerror_r): Remove decl; not needed. | |
109 | (strerror): Use same pattern as ../lib/error.c. | |
110 | ||
111 | * src/files.c, src/files.h (compute_header_macro): Remove; unused. | |
112 | ||
113 | * src/gram.c (grammar_dump): Do not assume ptrdiff_t fits in int. | |
114 | ||
115 | * src/main.c (main): Cast result of bindtextdomain and textdomain | |
116 | to void, to avoid a GCC warning when --disable-nls is in effect. | |
117 | ||
118 | * src/scan-gram.l: Use strings rather than escapes when possible, | |
119 | to minimize the number of warnings from xgettext. | |
120 | (handle_action_dollar, handle_action_at): Don't use isdigit, | |
121 | as it mishandles negative chars and it may not work as expected | |
122 | outside the C locale. | |
123 | ||
124 | * src/symtab.c (symbol_get): Don't cast LHS of an assignment; | |
125 | this is a GCC extension and is not portable to other compilers. | |
126 | ||
127 | * src/system.h (alloca): Use same pattern as ../lib/error.c. | |
128 | Do not include <ctype.h>; no longer needed. | |
129 | Do not include <malloc.h>; no longer needed (and generates | |
130 | warnings on OpenBSD 3.0). | |
131 | ||
132 | * tests/cxx-type.at (yylex): Do not pass signed char to isupper; | |
133 | it's not portable. | |
134 | ||
135 | * tests/regression.at: Do not use 'cc -c input.c -o input'; | |
136 | Sun C rejects this. Instead, use 'cc -c input.c -o input.o'. | |
137 | ||
138 | * tests/synclines.at (AC_SYNCLINES_COMPILE): Accept any nonzero | |
139 | exit status as failure, not just exit status 1. Sun C exits | |
140 | with status 2 sometimes. | |
141 | ||
142 | * tests/torture.at (AT_INCREASE_DATA_SIZE): New macro. | |
143 | Use it for the two large tests. | |
144 | ||
c8f002c7 AD |
145 | 2002-08-02 Akim Demaille <akim@epita.fr> |
146 | ||
147 | * src/conflicts.c (conflicts_output): Don't output rules never | |
148 | reduced here, since anyway that computation doesn't work. | |
149 | * src/gram.h, src/gram.h (rule_filter_t, rule_useful_p) | |
150 | (rule_useless_p, rule_never_reduced_p): New. | |
151 | (grammar_rules_partial_print): Use a filter instead of a range. | |
152 | Display the title only if needed. | |
153 | (grammar_rules_print): Adjust. | |
154 | (grammar_rules_never_reduced_report): New. | |
155 | * src/tables.c (action_row): Move the computation of rules never | |
156 | reduced to... | |
157 | (token_actions): here. | |
158 | * src/main.c (main): Make the parser before making the report, so | |
159 | that rules never reduced are computed. | |
160 | Call grammar_rules_never_reduced_report. | |
161 | * src/print.c (print_results): Report rules never reduced. | |
162 | * tests/conflicts.at, tests/reduce.at: Adjust. | |
163 | ||
cd08e51e AD |
164 | 2002-08-01 Akim Demaille <akim@epita.fr> |
165 | ||
166 | Instead of attaching lookaheads and duplicating the rules being | |
167 | reduced by a state, attach the lookaheads to the reductions. | |
168 | ||
169 | * src/state.h (state_t): Remove the `lookaheads', | |
170 | `lookaheads_rule' member. | |
171 | (reductions_t): Add a `lookaheads' member. | |
172 | Use a regular array for the `rules'. | |
173 | * src/state.c (reductions_new): Initialize the lookaheads member | |
174 | to 0. | |
175 | (state_rule_lookaheads_print): Adjust. | |
176 | * src/state.h, src/state.c (state_reductions_find): New. | |
177 | * src/conflicts.c (resolve_sr_conflict, set_conflicts) | |
178 | (count_rr_conflicts): Adjust. | |
179 | * src/lalr.c (LArule): Remove. | |
180 | (add_lookback_edge): Adjust. | |
181 | (state_lookaheads_count): New. | |
182 | (states_lookaheads_initialize): Merge into... | |
183 | (initialize_LA): this. | |
184 | (lalr_free): Adjust. | |
185 | * src/main.c (main): Don't free nullable and derives too early: it | |
186 | is used by --verbose. | |
187 | * src/print.c, src/print_graph.c, src/tables.c: Adjust. | |
188 | ||
bb0027a9 AD |
189 | 2002-08-01 Akim Demaille <akim@epita.fr> |
190 | ||
191 | * src/derives.h, src/derives.c (derives): A `rule_t***' instead of | |
192 | `rule_number_t**'. | |
193 | (set_derives, free_derives): Rename as... | |
194 | (derives_compute, derives_free): this. | |
195 | Adjust all dependencies. | |
196 | * src/nullable.c (set_nullable, free_nullable): Rename as... | |
197 | (nullable_compute, nullable_free): these. | |
198 | (rule_list_t): Store rule_t *, not rule_number_t. | |
199 | * src/state.c (state_rule_lookaheads_print): Directly compare rule | |
200 | pointers, instead of their numbers. | |
201 | * src/main.c (main): Call nullable_free, and derives_free earlier, | |
202 | as they were lo longer used. | |
203 | ||
3325ddc4 AD |
204 | 2002-08-01 Akim Demaille <akim@epita.fr> |
205 | ||
206 | * lib/timevar.c (get_time): Include children time. | |
207 | * src/lalr.h (LA, LArule): Don't export them: used with the | |
208 | state_t. | |
209 | * src/lalr.c (LA, LArule): Static. | |
210 | * src/lalr.h, src/lalr.c (lalr_free): New. | |
211 | * src/main.c (main): Call it. | |
212 | * src/tables.c (pack_vector): Check whether loc is >= to the | |
213 | table_size, not >. | |
214 | (pack_tables): Don't free froms, tos, conflict_tos, and pos... | |
215 | (tables_generate): do it, since that's also it which allocates | |
216 | them. | |
217 | Don't free LA and LArule, main does. | |
218 | ||
c6f1a33c AD |
219 | 2002-07-31 Akim Demaille <akim@epita.fr> |
220 | ||
221 | Separate parser tables computation and output. | |
222 | ||
223 | * src/output.c (nvectors, base_t, base, base_ninf, conflict_table) | |
224 | (conflict_list, conflict_list_cnt, table, check, table_ninf) | |
225 | (yydefgoto, yydefact, high): Move to... | |
226 | * src/tables.h, src/tables.c: here. | |
227 | * src/output.c (vector_number_t, VECTOR_NUMBER_MAX) | |
228 | (VECTOR_NUMBER_MIN, state_number_to_vector_number) | |
229 | (symbol_number_to_vector_number, nvectors, BASE_MAX, BASE_MIN) | |
230 | (froms, tos, conflict_tos, tally, width, action_t, ACTION_MAX) | |
231 | (ACTION_MIN, actrow, order, nentries, pos, conflrow) | |
232 | (conflict_list_free, table_size, lowzero, table_grow, conflict_row) | |
233 | (action_row, save_row, token_actions, save_column, default_goto) | |
234 | (goto_actions, sort_actions, matching_state, pack_vector) | |
235 | (table_ninf_remap, pack_table, prepare_actions): Move to... | |
236 | * src/tables.c: here. | |
237 | * src/tables.h, src/tables.c(tables_generate, tables_free): New. | |
238 | * src/output.c (token_actions, output_base, output_conflicts) | |
239 | (output_check): Merge into... | |
240 | (prepare_actions): this. | |
241 | (actions_output): Rename as... | |
242 | (user_actions_output): this. | |
243 | * src/main.c (main): Call tables_generate and tables_free. | |
244 | ||
1509d42f AD |
245 | 2002-07-31 Akim Demaille <akim@epita.fr> |
246 | ||
247 | Steal GCC's --time-report support. | |
248 | ||
249 | * lib/timevar.c, lib/timevar.h, lib/timevar.def: New, | |
250 | stolen/adjusted from GCC. | |
251 | * m4/stage.m4: Remove time related checks. | |
252 | * m4/timevar.m4: New. | |
253 | * configure.in: Adjust. | |
254 | * src/system.h: Adjust to using timevar.h. | |
255 | * src/getargs.h, src/getargs.c: Support trace_time for | |
256 | --trace=time. | |
257 | * src/main.c (stage): Remove. | |
258 | (main): Replace `stage' invocations with timevar calls. | |
259 | * src/output.c: Insert pertinent timevar calls. | |
260 | ||
273a74fa AD |
261 | 2002-07-31 Akim Demaille <akim@epita.fr> |
262 | ||
263 | Let --trace have arguments. | |
264 | ||
265 | * src/getargs.h (enum trace_e): New. | |
266 | * src/getargs.c (trace_args, trace_types, trace_argmatch): New. | |
267 | (long_options, short_options): --trace/-T takes an optional | |
268 | argument. | |
269 | Change all the uses of trace_flag to reflect the new flags. | |
270 | * tests/sets.at (Firsts, Nullable, Broken Closure): Use --trace=sets. | |
271 | ||
272 | Strengthen `stage' portability. | |
273 | ||
274 | * m4/stage.m4 (BISON_PREREQ_STAGE): New. | |
275 | * configure.in: Use it. | |
276 | Don't check for malloc.h and sys/times.h. | |
277 | * src/system.h: Include them when appropriate. | |
278 | * src/main.c (stage): Compile only when mallinfo, struct mallinfo, | |
279 | times and struct tms are available. | |
280 | ||
217598da AD |
281 | 2002-07-30 Akim Demaille <akim@epita.fr> |
282 | ||
283 | In verbose parse error message, don't report `error' as an | |
284 | expected token. | |
285 | * tests/actions.at (Printers and Destructors): Adjust. | |
286 | * tests/calc.at (Calculator $1): Adjust. | |
287 | * data/yacc.c, data/glr.c, data/lalr1.c: When making the verbose | |
288 | error message, do not report the parser accepts the error token in | |
289 | that state. | |
290 | ||
52489d44 AD |
291 | 2002-07-30 Akim Demaille <akim@epita.fr> |
292 | ||
293 | Normalize conflict related messages. | |
294 | ||
295 | * src/complain.h, src/complain.c (warn, complain): New. | |
296 | * src/conflicts.c (conflicts_print): Use them. | |
297 | (conflict_report_yacc): New, extracted from... | |
298 | (conflicts_print): here. | |
299 | * tests/conflicts.at, tests/existing.at: Adjust. | |
300 | ||
e8832397 AD |
301 | 2002-07-30 Akim Demaille <akim@epita.fr> |
302 | ||
303 | Report rules which are never reduced by the parser: those hidden | |
304 | by conflicts. | |
305 | ||
306 | * src/LR0.c (save_reductions): Don't make the final state too | |
307 | different: save its reduction (accept) instead of having a state | |
308 | without any action (no shift or goto, no reduce). | |
309 | Note: the final state is now a ``regular'' state, i.e., the | |
310 | parsers now contain `reduce 0' as default reduction. | |
311 | Nevertheless, since they decide to `accept' when yystate = | |
312 | final_state, they still will not reduce rule 0. | |
313 | * src/print.c (print_actions, print_reduction): Adjust. | |
314 | * src/output.c (action_row): Track reduced rules. | |
315 | (token_actions): Report rules never reduced. | |
316 | * tests/conflicts.at, tests/regression.at: Adjust. | |
317 | ||
caf23d24 AD |
318 | 2002-07-30 Akim Demaille <akim@epita.fr> |
319 | ||
320 | `stage' was accidently included in a previous patch. | |
321 | Initiate its autoconfiscation. | |
322 | ||
323 | * configure.in: Look for malloc.h and sys/times.h. | |
324 | * src/main.c (stage): Adjust. | |
325 | Report only when trace_flag. | |
326 | ||
640748ee AD |
327 | 2002-07-29 Akim Demaille <akim@epita.fr> |
328 | ||
329 | * src/state.h, src/state.c (transitions_t): Holds state_t*'s, not | |
330 | state_number_t. | |
331 | (errs_t): symbol_t*, not symbol_number_t. | |
332 | (reductions_t): rule_t*, not rule_number_t. | |
333 | (FOR_EACH_SHIFT): New. | |
334 | * src/LR0.c, src/conflicts.c, src/lalr.c, src/output.c | |
335 | * src/print.c, src/print_graph.c: Adjust. | |
336 | ||
88bce5a2 AD |
337 | 2002-07-29 Akim Demaille <akim@epita.fr> |
338 | ||
339 | Use $accept and $end, as BYacc and BTYacc do, instead of $axiom and $. | |
340 | ||
341 | * src/symtab.h, src/symtab.c (eoftoken, axiom): Rename as... | |
342 | (endtoken, accept): these. | |
343 | * src/reader.c (reader): Set endtoken's default tag to "$end". | |
344 | Set undeftoken's tag to "$undefined" instead of "$undefined.". | |
345 | * doc/bison.texinfo (Table of Symbols): Mention $accept and $end. | |
346 | Adjust. | |
347 | ||
1bfb97db AD |
348 | 2002-07-29 Akim Demaille <akim@epita.fr> |
349 | ||
350 | * src/reduce.c (reduce_grammar): When the language is empty, | |
351 | complain about the start symbol, not the axiom. | |
352 | Use its location. | |
353 | * tests/reduce.at (Empty Language): New. | |
354 | ||
fc5734fe AD |
355 | 2002-07-26 Akim Demaille <akim@epita.fr> |
356 | ||
357 | * src/reader.h, src/reader.c (gram_error): ... can't get | |
358 | yycontrol without making too strong assumptions on the parser | |
359 | itself. | |
360 | * src/output.c (prepare_tokens): Use the real 0th value of | |
361 | token_translations instead of `0'. | |
362 | * src/parse-gram.y (yyerror): Don't rely on yycontrol being | |
363 | visible here. | |
364 | * data/yacc.c (yyreport_parse_error): Rename yylocation as yylloc | |
365 | for the time being: %locations ought to provide it to yyerror. | |
366 | ||
3650b4b8 AD |
367 | 2002-07-25 Akim Demaille <akim@epita.fr> |
368 | ||
369 | * src/output.c (prepare_tokens): Go up to ntokens, not ntokens + 1. | |
370 | * doc/bison.texinfo (Decl Summary): s/$illegal/$undefined./. | |
371 | * tests/regression.at (Web2c Actions): Adjust. | |
372 | ||
4b3d3a8e AD |
373 | 2002-07-25 Akim Demaille <akim@epita.fr> |
374 | ||
375 | Stop storing rules from 1 to nrules + 1. | |
376 | ||
377 | * src/LR0.c, src/closure.c, src/derives.c, src/gram.c, src/lalr.c | |
378 | * src/nullable.c, src/output.c, src/print.c, src/reader.c | |
379 | * src/reduce.c: Allocate and free from &rules[0], not &rules[1]. | |
380 | Iterate from 0 to nrules. | |
381 | Use rule_number_as_item_number and item_number_as_rule_number. | |
382 | Adjust to `derive' now containing possibly 0. | |
383 | * src/gram.h (rule_number_as_item_number, item_number_as_rule_number): | |
384 | Handle the `- 1' part in rule numbers from/to item numbers. | |
385 | * src/conflicts.c (log_resolution): Fix the message which reversed | |
386 | shift and reduce. | |
387 | * src/output.c (action_row): Initialize default_rule to -1. | |
388 | (token_actions): Adjust. | |
389 | * tests/sets.at (Nullable, Firsts): Fix the previously bogus | |
390 | expected output. | |
391 | * tests/conflicts.at (Resolved SR Conflicts): Likewise. | |
392 | ||
4a2a22f4 AD |
393 | 2002-07-25 Akim Demaille <akim@epita.fr> |
394 | ||
395 | * data/c.m4 (b4_c_function, b4_c_ansi_args, b4_c_ansi_arg) | |
396 | (b4_c_knr_arg_names, b4_c_knr_arg_name, b4_c_knr_arg_decls) | |
397 | (b4_c_knr_arg_decl): New. | |
398 | * data/yacc.c: Use it to define yysymprint, yydestruct, and | |
399 | yyreport_parse_error. | |
400 | ||
b8df3223 AD |
401 | 2002-07-25 Akim Demaille <akim@epita.fr> |
402 | ||
403 | * data/yacc.c (yyreport_parse_error): New, extracted from... | |
404 | (yyparse): here. | |
405 | (yydestruct, yysymprint): Move above yyparse. | |
406 | Be K&R compliant. | |
407 | ||
a762e609 AD |
408 | 2002-07-25 Akim Demaille <akim@epita.fr> |
409 | ||
410 | * data/c.m4 (b4_ints_in, b4_int_type, b4_int_type_for): New, | |
411 | replace... | |
412 | (b4_sint_type, b4_uint_type): these. | |
413 | * data/yacc.c, data/glr.c, data/lalr1.cc: Use b4_int_type_for. | |
414 | * tests/regression.at (Web2c Actions): Adjust. | |
415 | ||
12b0043a AD |
416 | 2002-07-25 Akim Demaille <akim@epita.fr> |
417 | ||
418 | * src/gram.h (TIEM_NUMBER_MAX): New. | |
419 | (item_number_of_rule_number, rule_number_of_item_number): Rename | |
420 | as... | |
421 | (rule_number_as_item_number, item_number_as_rule_number): these. | |
422 | Adjust dependencies. | |
423 | * src/output.c (vector_number_t, VECTOR_NUMBER_MAX) | |
424 | (VECTOR_NUMBER_MIN, state_number_to_vector_number) | |
425 | (symbol_number_to_vector_number): New. | |
426 | (order): Of vector_number_t* type. | |
427 | (base_t, BASE_MAX, BASE_MIN): New. | |
428 | (froms, tos, width, pos, check): Of base_t type. | |
429 | (action_number_t, ACTION_MIN, ACTION_MAX): New. | |
430 | (actrow): Of action_number_t type. | |
431 | (conflrow): Of unsigned int type. | |
432 | (table_ninf, base_ninf): New. | |
433 | (GENERATE_MUSCLE_INSERT_TABLE): Also output the `*_min' value. | |
434 | (muscle_insert_int_table, muscle_insert_base_table) | |
435 | (muscle_insert_rule_number_table): New. | |
436 | (prepare_tokens): Output `toknum' as int_table. | |
437 | (action_row): Returns a rule_number_t. | |
438 | Use ACTION_MIN, not SHRT_MIN. | |
439 | (token_actions): yydefact is rule_number_t*. | |
440 | (table_ninf_remap): New. | |
441 | (pack_table): Use it for `base' and `table'. | |
442 | * data/yacc.c, data/glr.c, data/lalr1.cc (YYFLAG): Remove, | |
443 | replaced with... | |
444 | (YYPACT_NINF, YYTABLE_NINF): these. | |
445 | (yypact, yytable): Compute their types instead of hard-coded | |
446 | `short'. | |
447 | * tests/regression.at (Web2c Actions): Adjust. | |
448 | ||
5dde258a AD |
449 | 2002-07-19 Akim Demaille <akim@epita.fr> |
450 | ||
451 | * src/scan-gram.l (id): Can start with an underscore. | |
452 | ||
a945ec39 AD |
453 | 2002-07-16 Akim Demaille <akim@epita.fr> |
454 | ||
455 | * src/assoc.c, src/asssoc.h (assoc_t, assoc_to_string): New. | |
456 | Adjust all former `associativity' dependencies. | |
457 | * src/symtab.c (symbol_new): Default associativity is `undef', not | |
458 | `right'. | |
459 | (symbol_check_alias_consistence): Adjust. | |
460 | ||
fae437e8 AD |
461 | 2002-07-09 Akim Demaille <akim@epita.fr> |
462 | ||
463 | * doc/bison.texinfo: Properly set the ``header'' part. | |
464 | Use @dircategory ``GNU programming tools'' as per Texinfo's | |
465 | documentation. | |
466 | Use @copying. | |
467 | ||
1a715ef2 AD |
468 | 2002-07-09 Akim Demaille <akim@epita.fr> |
469 | ||
470 | * lib/quotearg.h: Protect against multiple inclusions. | |
471 | * src/location.h (location_t): Add a `file' member. | |
472 | (LOCATION_RESET, LOCATION_PRINT): Adjust. | |
473 | * src/complain.c (warn_at, complain_at, fatal_at): Drop | |
474 | `error_one_per_line' support. | |
475 | ||
a5d50994 AD |
476 | 2002-07-09 Akim Demaille <akim@epita.fr> |
477 | ||
478 | * src/complain.h, src/complain.c (warn, complain): Remove, unused. | |
479 | * src/reader.c (lineno): Remove. | |
480 | Adjust all dependencies. | |
481 | (get_merge_function): Take a location and use complain_at. | |
482 | * src/symtab.h, src/symtab.c (symbol_make_alias): Likewise. | |
483 | * tests/regression.at (Invalid inputs, Mixing %token styles): | |
484 | Adjust. | |
485 | ||
b275314e AD |
486 | 2002-07-09 Akim Demaille <akim@epita.fr> |
487 | ||
488 | * src/parse-gram.y (rules_or_grammar_declaration): Add an error | |
489 | recovery rule, and forbid extensions when --yacc. | |
490 | (gram_error): Use complain_at. | |
491 | * src/reader.c (reader): Exit if there were parse errors. | |
492 | ||
865b9df1 AD |
493 | 2002-07-09 Akim Demaille <akim@epita.fr> |
494 | ||
495 | * tests/synclines.at (AT_SYNCLINES_COMPILE): New. | |
496 | (AT_TEST_SYNCLINE): Adjust to unusual GCC outputs. | |
497 | Reported by R Blake <blakers@mac.com>. | |
498 | ||
c76e14da AD |
499 | 2002-07-09 Akim Demaille <akim@epita.fr> |
500 | ||
501 | * data/yacc.c: Output the copyright notive in the header. | |
502 | ||
7db2ed2d AD |
503 | 2002-07-03 Akim Demaille <akim@epita.fr> |
504 | ||
505 | * src/output.c (froms, tos): Are state_number_t. | |
506 | (save_column): sp, sp1, and sp2 are state_number_t. | |
507 | (prepare): Rename `final' as `final_state_number', `nnts' as | |
508 | `nterms_number', `nrules' as `rules_number', `nstates' as | |
509 | `states_number', and `ntokens' as `tokens_number'. Remove `nsym', | |
510 | unused. | |
511 | * data/yacc.c, data/glr.c, data/lalr1.cc: Adjust. | |
512 | * data/lalr1.cc (nsym_): Remove, unused. | |
513 | ||
e68e0410 AD |
514 | 2002-07-03 Akim Demaille <akim@epita.fr> |
515 | ||
516 | * src/lalr.h, src/lalr.c (goto_number_t): New. | |
517 | * src/lalr.c (goto_list_t): New. | |
518 | Propagate them. | |
519 | * src/nullable.c (rule_list_t): New. | |
520 | Propagate. | |
521 | * src/types.h: Remove. | |
522 | ||
e1a4f3a4 AD |
523 | 2002-07-03 Akim Demaille <akim@epita.fr> |
524 | ||
525 | * src/closure.c (print_fderives): Use rule_rhs_print. | |
526 | * src/derives.c (print_derives): Use rule_rhs_print. | |
527 | (rule_list_t): New, replaces `shorts'. | |
528 | (set_derives): Add comments. | |
529 | * tests/sets.at (Nullable, Firsts): Adjust. | |
530 | ||
536545f3 AD |
531 | 2002-07-03 Akim Demaille <akim@epita.fr> |
532 | ||
533 | * src/output.c (prepare_actions): Free `tally' and `width'. | |
534 | (prepare_actions): Allocate and free `order'. | |
535 | * src/symtab.c (symbols_free): Free `symbols'. | |
536 | * src/scan-gram.l (scanner_free): Clear Flex's scanners memory. | |
537 | * src/output.c (m4_invoke): Move to... | |
538 | * src/scan-skel.l: here. | |
539 | (<<EOF>>): Close yyout, and free its name. | |
540 | ||
8b752b00 AD |
541 | 2002-07-03 Akim Demaille <akim@epita.fr> |
542 | ||
543 | Fix some memory leaks, and fix a bug: state 0 was examined twice. | |
544 | ||
545 | * src/LR0.c (new_state): Merge into... | |
546 | (state_list_append): this. | |
547 | (new_states): Merge into... | |
548 | (generate_states): here. | |
549 | (set_states): Don't ensure a proper `errs' state member here, do it... | |
550 | * src/conflicts.c (conflicts_solve): here. | |
551 | * src/state.h, src/state.c: Comment changes. | |
552 | (state_t): Rename member `shifts' as `transitions'. | |
553 | Adjust all dependencies. | |
554 | (errs_new): For consistency, also take the values as argument. | |
555 | (errs_dup): Remove. | |
556 | (state_errs_set): New. | |
557 | (state_reductions_set, state_transitions_set): Assert that no | |
558 | previous value was assigned. | |
559 | (state_free): New. | |
560 | (states_free): Use it. | |
561 | * src/conflicts.c (resolve_sr_conflict): Don't use an `errs_t' as | |
562 | temporary storage: use `errs' and `nerrs' as elsewhere. | |
563 | (set_conflicts): Allocate and free this `errs'. | |
564 | ||
613f5e1a AD |
565 | 2002-07-02 Akim Demaille <akim@epita.fr> |
566 | ||
567 | * lib/libiberty.h: New. | |
568 | * lib: Update the bitset implementation from upstream. | |
569 | * src/closure.c, src/lalr.c, src/output.c, src/print_graph.c, | |
570 | * src/state.c: Use BITSET_FOR_EACH, not BITSET_EXECUTE. | |
571 | * src/main.c: Adjust bitset stats calls. | |
572 | ||
26e0cadc PE |
573 | 2002-07-01 Paul Eggert <eggert@twinsun.com> |
574 | ||
575 | * src/scan-gram.l (<SC_ESCAPED_CHARACTER>): Convert to unsigned | |
576 | char, so that negative chars don't collide with $. | |
577 | ||
1154cced AD |
578 | 2002-06-30 Akim Demaille <akim@epita.fr> |
579 | ||
580 | Have the GLR tests be `warning' checked, and fix the warnings. | |
581 | ||
582 | * data/glr.c (YYFPRINTF): Always define it, not only when YYDEBUG | |
583 | (yyuserAction, yyreportAmbiguity): `Use' all the arguments. | |
584 | (yyremoveDeletes): `yyi' and `yyj' are size_t. | |
585 | Use YYFPRINTF when under if (YYDEBUG) to avoid empty `if' bodies. | |
586 | (yyaddDeferredAction): static. | |
587 | (yyglrReduce): yyi, yyk, amd yyposn are size_t. | |
588 | (yyreportParseError): yyprefix is const. | |
589 | yytokenp is used only when verbose. | |
590 | (yy__GNUC__): Replace with __GNUC__. | |
591 | (yypdumpstack): yyi is size_t. | |
592 | (yypreference): Un-yy local variables and arguments, to avoid | |
593 | clashes with `yyr1'. Anyway, we are not in the user name space. | |
594 | (yytname_size): be an int, as is compared with ints. | |
595 | * tests/testsuite.at (AT_COMPILE, AT_PARSER_CHECK): New. | |
596 | Use them. | |
597 | * tests/cxx-gram.at: Use quotation to protect $1. | |
598 | Use AT_COMPILE to enable warnings hunts. | |
599 | Prototype yylex and yyerror. | |
600 | `Use' argc. | |
601 | Include `string.h', not `strings.h'. | |
602 | Produce and prototype stmtMerge only when used. | |
603 | yylex takes a location. | |
604 | ||
97650f4e AD |
605 | 2002-06-30 Akim Demaille <akim@epita.fr> |
606 | ||
607 | We spend a lot of time in quotearg, in particular when --verbose. | |
608 | ||
609 | * src/symtab.c (symbol_get): Store a quoted version of the key. | |
610 | (symbol_tag_get, symbol_tag_get_n, symbol_tag_print): Remove. | |
611 | Adjust all callers. | |
612 | ||
d2576365 AD |
613 | 2002-06-30 Akim Demaille <akim@epita.fr> |
614 | ||
615 | * src/state.h (reductions_t): Rename member `nreds' as num. | |
616 | (errs_t): Rename members `nerrs' and `errs' as `num' and `symbols'. | |
617 | * src/state.c (ERRS_ALLOC, REDUCTIONS_ALLOC): Use the correct types. | |
618 | ||
ccaf65bc AD |
619 | 2002-06-30 Akim Demaille <akim@epita.fr> |
620 | ||
621 | * src/state.h, src/state.c (shift_t, SHIFT_SYMBOL, SHIFT_IS_SHIFT) | |
622 | (SHIFT_IS_GOTO, SHIFT_IS_ERROR, SHIFT_DISABLE, SHIFT_IS_DISABLED) | |
623 | (shifts_to): Rename as... | |
624 | (transition_t, TRANSITION_SYMBOL, TRANSITION_IS_TRANSITION) | |
625 | (TRANSITION_IS_GOTO, TRANSITION_IS_ERROR, TRANSITION_DISABLE) | |
626 | (TRANSITION_IS_DISABLED, transitions_to): these. | |
627 | ||
87675353 AD |
628 | 2002-06-30 Akim Demaille <akim@epita.fr> |
629 | ||
630 | * src/print.c (print_shifts, print_gotos): Merge into... | |
631 | (print_transitions): this. | |
632 | (print_transitions, print_errs, print_reductions): Align the | |
633 | lookaheads columns. | |
634 | (print_core, print_transitions, print_errs, print_state, | |
635 | print_grammar): Output empty lines separator before, not after. | |
636 | (state_default_rule_compute): Rename as... | |
637 | (state_default_rule): this. | |
638 | * tests/conflicts.at (Defaulted Conflicted Reduction), | |
639 | (Unresolved SR Conflicts, Resolved SR Conflicts): Adjust. | |
640 | * tests/regression.at (Rule Line Numbers, Web2c Report): Adjust. | |
641 | ||
ce4ccb4b AD |
642 | 2002-06-30 Akim Demaille <akim@epita.fr> |
643 | ||
644 | Display items as we display rules. | |
645 | ||
646 | * src/gram.h, src/gram.c (rule_lhs_print): New. | |
647 | * src/gram.c (grammar_rules_partial_print): Use it. | |
648 | * src/print.c (print_core): Likewise. | |
649 | * tests/conflicts.at (Defaulted Conflicted Reduction), | |
650 | (Unresolved SR Conflicts): Adjust. | |
651 | (Unresolved SR Conflicts): Adjust and rename as... | |
652 | (Resolved SR Conflicts): this, as was meant. | |
653 | * tests/regression.at (Web2c Report): Adjust. | |
654 | ||
bc933ef1 AD |
655 | 2002-06-30 Akim Demaille <akim@epita.fr> |
656 | ||
657 | * src/print.c (state_default_rule_compute): New, extracted from... | |
658 | (print_reductions): here. | |
659 | Pessimize, but clarify the code. | |
660 | * tests/conflicts.at (Defaulted Conflicted Reduction): New. | |
661 | ||
53d4308d AD |
662 | 2002-06-30 Akim Demaille <akim@epita.fr> |
663 | ||
664 | * src/output.c (action_row): Let default_rule be always a rule | |
665 | number. | |
666 | ||
574fb2d5 AD |
667 | 2002-06-30 Akim Demaille <akim@epita.fr> |
668 | ||
669 | * src/closure.c (print_firsts, print_fderives, closure): | |
670 | Use BITSET_EXECUTE. | |
671 | * src/lalr.c (lookaheads_print): Likewise. | |
672 | * src/state.c (state_rule_lookaheads_print): Likewise. | |
673 | * src/print_graph.c (print_core): Likewise. | |
674 | * src/print.c (print_reductions): Likewise. | |
675 | * src/output.c (action_row): Likewise. | |
676 | Use SHIFT_IS_DISABLED, SHIFT_IS_SHIFT and SHIFT_SYMBOL. | |
677 | ||
05811fd7 AD |
678 | 2002-06-30 Akim Demaille <akim@epita.fr> |
679 | ||
680 | * src/print_graph.c: Use report_flag. | |
681 | ||
0e4d5753 AD |
682 | 2002-06-30 Akim Demaille <akim@epita.fr> |
683 | ||
684 | * src/lalr.c (traverse, digraph, matrix_print, transpose): Move | |
685 | to... | |
686 | * src/relation.h, src/relation.c (traverse, relation_digraph) | |
687 | (relation_print, relation_transpose): New. | |
688 | ||
24c7d800 AD |
689 | 2002-06-30 Akim Demaille <akim@epita.fr> |
690 | ||
691 | * src/state.h, src/state.c (shifts_to): New. | |
692 | * src/lalr.c (build_relations): Use it. | |
693 | ||
9222837b AD |
694 | 2002-06-30 Akim Demaille <akim@epita.fr> |
695 | ||
696 | * src/gram.h (rule_number_t, RULE_NUMBER_MAX, int_of_rule_number) | |
697 | (item_number_of_rule_number, rule_number_of_item_number): New. | |
698 | * src/LR0.c, src/closure.c, src/derives.c, src/derives.h, | |
699 | * src/gram.c, src/lalr.c, src/nullable.c, src/output.c, src/print.c, | |
700 | * src/print_graph.c, src/reader.c, src/reduce.c, src/reduce.h: | |
701 | Propagate their use. | |
702 | Much remains to be done, in particular wrt `shorts' from types.h. | |
703 | ||
260008e5 AD |
704 | 2002-06-30 Akim Demaille <akim@epita.fr> |
705 | ||
706 | * src/symtab.c (symbol_new): Initialize the `printer' member. | |
707 | ||
8a731ca8 AD |
708 | 2002-06-30 Akim Demaille <akim@epita.fr> |
709 | ||
710 | * src/LR0.c (save_reductions): Remove, replaced by... | |
711 | * src/state.h, src/state.c (state_reductions_set): New. | |
712 | (reductions, errs): Rename as... | |
713 | (reductions_t, errs_t): these. | |
714 | Adjust all dependencies. | |
715 | ||
32e1e0a4 AD |
716 | 2002-06-30 Akim Demaille <akim@epita.fr> |
717 | ||
718 | * src/LR0.c (state_list_t, state_list_append): New. | |
719 | (first_state, last_state): Now symbol_list_t. | |
720 | (this_state): Remove. | |
721 | (new_itemsets, append_states, save_reductions): Take a state_t as | |
722 | argument. | |
723 | (set_states, generate_states): Adjust. | |
724 | (save_shifts): Remove, replaced by... | |
725 | * src/state.h, src/state.c (state_shifts_set): New. | |
726 | (shifts): Rename as... | |
727 | (shifts_t): this. | |
728 | Adjust all dependencies. | |
729 | * src/state.h (state_t): Remove the `next' member. | |
730 | ||
e5fb6710 AD |
731 | 2002-06-30 Akim Demaille <akim@epita.fr> |
732 | ||
733 | * src/vcg.c (quote): Use slot 2, since we often pass symbol tag | |
734 | escaped in slot 0. | |
735 | ||
c7ca99d4 AD |
736 | 2002-06-30 Akim Demaille <akim@epita.fr> |
737 | ||
738 | Use hash.h for the state hash table. | |
739 | ||
740 | * src/LR0.c (STATE_HASH_SIZE, state_hash): Remove. | |
741 | (allocate_storage): Use state_hash_new. | |
742 | (free_storage): Use state_hash_free. | |
743 | (new_state, get_state): Adjust. | |
744 | * src/lalr.h, src/lalr.c (states): Move to... | |
745 | * src/states.h (state_t): Remove the `link' member, no longer | |
746 | used. | |
747 | * src/states.h, src/states.c: here. | |
748 | (state_hash_new, state_hash_free, state_hash_lookup) | |
749 | (state_hash_insert, states_free): New. | |
750 | * src/states.c (state_table, state_compare, state_hash): New. | |
751 | * src/output.c (output_actions): Do not free states now, since we | |
752 | still need to know the final_state number in `prepare', called | |
753 | afterwards. Do it... | |
754 | * src/main.c (main): here: call states_free after `output'. | |
755 | ||
df0e7316 AD |
756 | 2002-06-30 Akim Demaille <akim@epita.fr> |
757 | ||
758 | * src/state.h, src/state.c (state_new): New, extracted from... | |
759 | * src/LR0.c (new_state): here. | |
760 | * src/state.h (STATE_ALLOC): Move to... | |
761 | * src/state.c: here. | |
762 | * src/LR0.h, src/LR0.c (nstates, final_state): Move to... | |
763 | * src/state.h, src/state.c: here. | |
764 | ||
39f41916 AD |
765 | 2002-06-30 Akim Demaille <akim@epita.fr> |
766 | ||
767 | * src/reader.c (gensym): Rename as... | |
768 | * src/symtab.h, src/symtab.c (dummy_symbol_get): this. | |
769 | (getsym): Rename as... | |
770 | (symbol_get): this. | |
771 | ||
d57650a5 AD |
772 | 2002-06-30 Akim Demaille <akim@epita.fr> |
773 | ||
774 | * src/state.h (state_number_t, STATE_NUMBER_MAX): New. | |
775 | * src/LR0.c, src/LR0.h, src/conflicts.c, src/lalr.c, src/lalr.h, | |
776 | * src/output.c, src/print.c, src/print_graph.c: Propagate. | |
777 | * src/LR0.h, src/LR0.h (final_state): Is a state_t*. | |
778 | ||
5a08f1ce AD |
779 | 2002-06-30 Akim Demaille <akim@epita.fr> |
780 | ||
781 | Make the test suite pass with warnings checked. | |
782 | ||
783 | * tests/actions.at (Printers and Destructors): Improve. | |
784 | Avoid unsigned vs. signed issues. | |
785 | * tests/calc.at: Don't exercise the scanner here, do it... | |
786 | * tests/input.at (Torturing the Scanner): here. | |
787 | ||
720623af PH |
788 | 2002-06-28 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
789 | ||
88e7e941 | 790 | * data/glr.c: Correct typo in Emacs-mode directive. Slightly |
720623af PH |
791 | reorganize first lines parallel to yacc.c. |
792 | ||
fb8135fa AD |
793 | 2002-06-28 Akim Demaille <akim@epita.fr> |
794 | ||
795 | * data/c.m4 (b4_copyright, b4_sint_type, b4_uint_type, b4_token_define) | |
796 | (b4_token_enum, b4_token_defines): New, factored from... | |
797 | * data/lalr1.cc, data/yacc.c, glr.c: here. | |
798 | ||
41442480 AD |
799 | 2002-06-28 Akim Demaille <akim@epita.fr> |
800 | ||
801 | * data/yacc.c (yydestruct, yysymprint): Pacify GCC warnings for | |
802 | unused variables. | |
803 | * src/output.c (merger_output): static. | |
804 | ||
e0e5bf84 AD |
805 | 2002-06-28 Akim Demaille <akim@epita.fr> |
806 | ||
807 | * src/reader.h: s/grammer_current_rule_merge_set/grammar_.../. | |
808 | * src/conflicts.c (conflicts_total_count): `i' is unsigned, to | |
809 | pacify GCC. | |
810 | * src/output.c (save_row): Initialize all the variables to pacify GCC. | |
e0e5bf84 | 811 | |
676385e2 PH |
812 | 2002-06-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
813 | ||
814 | Accumulated changelog for new GLR parsing features. | |
815 | ||
6a254321 | 816 | * src/conflicts.c (count_total_conflicts): Change name to |
676385e2 PH |
817 | conflicts_total_count. |
818 | * src/conflicts.h: Ditto. | |
819 | * src/output.c (token_actions): Use the new name. | |
820 | (output_conflicts): Change conflp => conflict_list_heads, and | |
821 | confl => conflict_list for better readability. | |
822 | * data/glr.c: Use the new names. | |
823 | * NEWS: Add self to GLR announcement. | |
e0e5bf84 | 824 | |
676385e2 PH |
825 | * src/reader.c (free_merger_functions): Cleanup: XFREE->free. |
826 | ||
827 | * doc/bison.texinfo (GLR Parsers): Make corrections suggested by | |
828 | Akim Demaille. | |
829 | ||
830 | * data/bison.glr: Change name to glr.c | |
831 | * data/glr.c: Renamed from bison.glr. | |
832 | * data/Makefile.am: Add glr.c | |
e0e5bf84 AD |
833 | |
834 | * src/getargs.c: | |
835 | ||
676385e2 PH |
836 | * src/symlist.h: Add dprec and merger fields to symbol_list_s. |
837 | * src/symlist.c (symbol_list_new): Initialize dprec and merger fields. | |
e0e5bf84 | 838 | |
676385e2 PH |
839 | Originally 2002-06-16 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
840 | ||
841 | * data/bison.glr: Be sure to restore the | |
842 | current #line when returning to the skeleton contents after having | |
843 | exposed the input file's #line. | |
844 | ||
845 | Originally 2002-06-13 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> | |
846 | ||
847 | * data/bison.glr: Bring up to date with changes to bison.simple. | |
848 | ||
849 | Originally 2002-06-03 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> | |
850 | ||
851 | * data/bison.glr: Correct definitions that use b4_prefix. | |
852 | Various reformatting. | |
853 | (GLRStack): Make yychar (in YYPURE case) and yytokenp as part of stack. | |
854 | (yyreportParseError, yyrecoverParseError, yyprocessOneStack): remove | |
855 | yytokenp argument; now part of stack. | |
856 | (yychar): Define to behave as documented. | |
857 | (yyclearin): Ditto. | |
e0e5bf84 | 858 | |
676385e2 PH |
859 | Originally 2002-05-14 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
860 | ||
861 | * src/reader.h: Add declaration for free_merger_functions. | |
862 | ||
863 | * src/reader.c (merge_functions): New variable. | |
864 | (get_merge_function): New function. | |
865 | (free_merger_functions): New function. | |
866 | (readgram): Check for %prec that is not followed by a symbol. | |
867 | Handle %dprec and %merge declarations. | |
868 | (packgram): Initialize dprec and merger fields in rules array. | |
869 | ||
870 | * src/output.c (conflict_tos, conflrow, conflict_table, conflict_list, | |
871 | conflict_list_cnt, conflict_list_free): New variables. | |
872 | (table_grow): Also grow conflict_table. | |
e0e5bf84 | 873 | (prepare_rules): Output dprec and merger tables. |
676385e2 | 874 | (conflict_row): New function. |
e0e5bf84 | 875 | (action_row): Output conflict lists for GLR parser. Don't use |
676385e2 PH |
876 | default reduction in conflicted states for GLR parser so that there |
877 | are spaces for the conflict lists. | |
878 | (save_row): Also save conflict information. | |
879 | (token_actions): Allocate conflict list. | |
880 | (merger_output): New function. | |
881 | (pack_vector): Pack conflict table, too. | |
882 | (output_conflicts): New function to output yyconflp and yyconfl. | |
883 | (output_check): Allocate conflict_tos. | |
884 | (output_actions): Output conflict tables, also. | |
885 | (output_skeleton): Output b4_mergers definition. | |
886 | (prepare): Output b4_max_rhs_length definition. | |
887 | Use 'bison.glr' as default skeleton for GLR parsers. | |
888 | ||
889 | * src/gram.c (glr_parser): New flag. | |
890 | (grammar_free): Call free_merger_functions. | |
891 | ||
892 | * src/conflicts.c (count_rr_conflicts): Augment to optionally count | |
893 | all pairs of conflicting reductions, rather than just all tokens | |
894 | causing conflicts. Needed to size conflict tables. | |
e0e5bf84 | 895 | (conflicts_output): Modify call to count_rr_conflicts for new |
676385e2 PH |
896 | interface. |
897 | (conflicts_print): Ditto. | |
898 | (count_total_conflicts): New function. | |
899 | ||
900 | * src/reader.h (merger_list): New type. | |
901 | (merge_functions): New variable. | |
902 | ||
903 | * src/lex.h (tok_dprec, tok_merge): New token types. | |
904 | ||
905 | * src/gram.h (rule_s): Add dprec and merger fields. | |
906 | (glr_parser): New flag. | |
907 | ||
908 | * src/conflicts.h (count_total_conflicts): New function. | |
909 | ||
910 | * src/options.c (option_table): Add %dprec, %merge, and %glr-parser. | |
911 | ||
912 | * doc/bison.texinfo (Generalized LR Parsing): New section. | |
913 | (GLR Parsers): New section. | |
914 | (Language and Grammar): Mention GLR parsing. | |
915 | (Table of Symbols): Add %dprec, %glr-parser, %merge, GLR | |
916 | Correct typo ("tge" -> "the"). | |
917 | ||
918 | * data/bison.glr: New skeleton for GLR parsing. | |
919 | ||
920 | * tests/cxx-gram.at: New tests for GLR parsing. | |
921 | ||
922 | * tests/testsuite.at: Include cxx-gram.at. | |
923 | ||
924 | * tests/Makefile.am: Add cxx-gram.at. | |
e0e5bf84 | 925 | |
676385e2 PH |
926 | * src/parse-gram.y: |
927 | ||
928 | * src/scan-gram.l: Add %dprec, %glr-parser, %merge. | |
929 | ||
930 | * src/parse-gram.y: Grammar for %dprec, %merge, %glr-parser. | |
e0e5bf84 | 931 | |
b5480d74 | 932 | 2002-06-27 Akim Demaille <akim@epita.fr> |
e2aaf4c4 AD |
933 | |
934 | * src/options.h, src/options.c: Remove. | |
935 | * src/getargs.c (short_options, long_options): New. | |
936 | ||
60491a94 AD |
937 | 2002-06-27 Akim Demaille <akim@epita.fr> |
938 | ||
939 | * data/bison.simple, data/bison.c++: Rename as... | |
940 | * data/yacc.c, data/lalr1.cc: these. | |
941 | * doc/bison.texinfo (Environment Variables): Remove. | |
942 | ||
9be0c25b AD |
943 | 2002-06-25 Raja R Harinath <harinath@cs.umn.edu> |
944 | ||
945 | * src/getargs.c (report_argmatch): Initialize strtok(). | |
946 | ||
1ae72863 AD |
947 | 2002-06-20 Akim Demaille <akim@epita.fr> |
948 | ||
949 | * data/bison.simple (b4_symbol_actions): New, replaces... | |
950 | (b4_symbol_destructor, b4_symbol_printer): these. | |
951 | (yysymprint): Be sure to call YYPRINT only for tokens, and using | |
952 | user token numbers. | |
953 | ||
87542d29 AD |
954 | 2002-06-20 Akim Demaille <akim@epita.fr> |
955 | ||
956 | * data/bison.simple (yydestructor): Rename as... | |
957 | (yydestruct): this. | |
958 | ||
1a31ed21 AD |
959 | 2002-06-20 Akim Demaille <akim@epita.fr> |
960 | ||
961 | * src/symtab.h, src/symtab.c (symbol_type_set) | |
962 | (symbol_destructor_set, symbol_precedence_set): The location is | |
963 | the last argument. | |
964 | Adjust all callers. | |
965 | ||
e776192e AD |
966 | 2002-06-20 Akim Demaille <akim@epita.fr> |
967 | ||
968 | * src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser | |
969 | internals. | |
970 | * src/reader.h, src/reader.c (grammar_current_rule_prec_set): | |
971 | Takes a location. | |
972 | * src/symtab.h, src/symtab.c (symbol_class_set) | |
973 | (symbol_user_token_number_set): Likewise. | |
974 | Adjust all callers. | |
975 | Promote complain_at. | |
976 | * tests/input.at (Type Clashes): Adjust. | |
977 | ||
5c1180b3 AD |
978 | 2002-06-20 Akim Demaille <akim@epita.fr> |
979 | ||
980 | * data/bison.simple (YYLEX): Fix the declaration when | |
981 | %pure-parser. | |
982 | ||
e3170060 AD |
983 | 2002-06-20 Akim Demaille <akim@epita.fr> |
984 | ||
985 | * data/bison.simple (yysymprint): Don't print the token number, | |
986 | just its name. | |
987 | * tests/actions.at (Destructors): Rename as... | |
988 | (Printers and Destructors): this. | |
989 | Also exercise %printer. | |
990 | ||
253862fd AD |
991 | 2002-06-20 Akim Demaille <akim@epita.fr> |
992 | ||
993 | * data/bison.simple (YYDSYMPRINT): New. | |
994 | Use it to remove many of the #if YYDEBUG/if (yydebug). | |
995 | ||
366eea36 AD |
996 | 2002-06-20 Akim Demaille <akim@epita.fr> |
997 | ||
998 | * src/symtab.h, src/symtab.c (symbol_t): printer and | |
999 | printer_location are new members. | |
1000 | (symbol_printer_set): New. | |
1001 | * src/parse-gram.y (PERCENT_PRINTER): New token. | |
1002 | Handle its associated rule. | |
1003 | * src/scan-gram.l: Adjust. | |
1004 | (handle_destructor_at, handle_destructor_dollar): Rename as... | |
1005 | (handle_symbol_code_at, handle_symbol_code_dollar): these. | |
1006 | * src/output.c (symbol_printers_output): New. | |
1007 | (output_skeleton): Call it. | |
1008 | * data/bison.simple (yysymprint): New. Cannot be named yyprint | |
1009 | since there are already many grammar files with a user `yyprint'. | |
1010 | Replace the calls to YYPRINT to calls to yysymprint. | |
1011 | * tests/calc.at: Adjust. | |
1012 | * tests/torture.at (AT_DATA_STACK_TORTURE): Remove YYPRINT: it was | |
1013 | taking advantage of parser very internal details (stack size!). | |
1014 | ||
4f25ebb0 AD |
1015 | 2002-06-20 Akim Demaille <akim@epita.fr> |
1016 | ||
1017 | * src/scan-gram.l: Complete the scanner with the missing patterns | |
1018 | to pacify Flex. | |
1019 | Use `quote' and `symbol_tag_get' where appropriate. | |
1020 | ||
93b68a0e AD |
1021 | 2002-06-19 Akim Demaille <akim@epita.fr> |
1022 | ||
1023 | * tests/actions.at (Destructors): Augment to test locations. | |
1024 | * data/bison.simple (yydestructor): Pass it the current location | |
1025 | if locations are enabled. | |
1026 | Prototype only when __STDC__ or C++. | |
1027 | Change the argument names to move into the yy name space: there is | |
1028 | user code here. | |
1029 | ||
58612f1d AD |
1030 | 2002-06-19 Akim Demaille <akim@epita.fr> |
1031 | ||
74310291 AD |
1032 | * data/bison.simple (b4_pure_if): New. |
1033 | Use it instead of #ifdef YYPURE. | |
1034 | ||
1035 | 2002-06-19 Akim Demaille <akim@epita.fr> | |
1036 | ||
1037 | * data/bison.simple (b4_location_if): New. | |
58612f1d AD |
1038 | Use it instead of #ifdef YYLSP_NEEDED. |
1039 | ||
f25bfb75 AD |
1040 | 2002-06-19 Akim Demaille <akim@epita.fr> |
1041 | ||
1042 | Prepare @$ in %destructor, but currently don't bind it in the | |
1043 | skeleton, as %location use is not cleaned up yet. | |
1044 | ||
1045 | * src/scan-gram.l (handle_dollar, handle_destructor_at) | |
1046 | (handle_action_at): New. | |
1047 | (handle_at, handle_action_dollar, handle_destructor_dollar): Take | |
1048 | a braced_code_t and a location as additional arguments. | |
1049 | (handle_destructor_dollar): Instead of requiring `b4_eval', just | |
1050 | unquote one when outputting `b4_dollar_dollar'. | |
1051 | Adjust callers. | |
1052 | * data/bison.simple (b4_eval): Remove. | |
1053 | (b4_symbol_destructor): Adjust. | |
1054 | * tests/input.at (Invalid @n): Adjust. | |
1055 | ||
c732d2c6 AD |
1056 | 2002-06-19 Zack Weinberg <zack@codesourcery.com> |
1057 | ||
1058 | * doc/bison.texinfo: Document ability to have multiple | |
1059 | prologue sections. | |
1060 | ||
8c165d89 AD |
1061 | 2002-06-18 Akim Demaille <akim@epita.fr> |
1062 | ||
1063 | * src/files.c (compute_base_names): When computing the output file | |
1064 | names from the input file name, strip the directory part. | |
1065 | ||
ca98bf57 AD |
1066 | 2002-06-18 Akim Demaille <akim@epita.fr> |
1067 | ||
1068 | * data/bison.simple.new: Comment changes. | |
1069 | Reported by Andreas Schwab. | |
1070 | ||
0bfb02ff AD |
1071 | 2002-06-18 Matt Kraai <kraai@alumni.cmu.edu> |
1072 | ||
1073 | * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that | |
1074 | there are no `label `yyoverflowlab' defined but not used' warnings | |
1075 | when yyoverflow is defined. | |
1076 | ||
24c0aad7 AD |
1077 | 2002-06-18 Akim Demaille <akim@epita.fr> |
1078 | ||
1079 | * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a | |
1080 | new member. | |
1081 | (symbol_destructor_set): Adjust. | |
1082 | * src/output.c (symbol_destructors_output): Output the destructor | |
1083 | locations. | |
1084 | Output the symbol name. | |
1085 | * data/bison.simple (b4_symbol_destructor): Adjust. | |
1086 | ||
5719c109 AD |
1087 | 2002-06-18 Cris Bailiff <c.bailiff@awayweb.com> |
1088 | and Akim Demaille <akim@epita.fr> | |
1089 | ||
1090 | * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy | |
1091 | what's left on the stack when the error recovery hits EOF. | |
1092 | * tests/actions.at (Destructors): Complete to exercise this case. | |
1093 | ||
9280d3ef AD |
1094 | 2002-06-17 Akim Demaille <akim@epita.fr> |
1095 | ||
1096 | * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of | |
1097 | arguments is really empty, not only equal to `[]'. | |
1098 | * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new | |
1099 | member. | |
1100 | (symbol_destructor_set): New. | |
1101 | * src/output.c (symbol_destructors_output): New. | |
1102 | * src/reader.h (brace_code_t, current_braced_code): New. | |
1103 | * src/scan-gram.l (BRACED_CODE): Use it to branch on... | |
1104 | (handle_dollar): Rename as... | |
1105 | (handle_action_dollar): this. | |
1106 | (handle_destructor_dollar): New. | |
1107 | * src/parse-gram.y (PERCENT_DESTRUCTOR): New. | |
1108 | (grammar_declaration): Use it. | |
1109 | * data/bison.simple (yystos): Is always defined. | |
1110 | (yydestructor): New. | |
1111 | * tests/actions.at (Destructors): New. | |
1112 | * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep. | |
1113 | ||
dafdc66f AD |
1114 | 2002-06-17 Akim Demaille <akim@epita.fr> |
1115 | ||
1116 | * src/symlist.h, src/symlist.c (symbol_list_length): New. | |
1117 | * src/scan-gram.l (handle_dollar, handle_at): Compute the | |
1118 | rule_length only when needed. | |
1119 | * src/output.c (actions_output, token_definitions_output): Output | |
1120 | the full M4 block. | |
1121 | * src/symtab.c: Don't access directly to the symbol tag, use | |
1122 | symbol_tag_get. | |
1123 | * src/parse-gram.y: Use symbol_list_free. | |
1124 | ||
56c47203 AD |
1125 | 2002-06-17 Akim Demaille <akim@epita.fr> |
1126 | ||
1127 | * src/reader.h, src/reader.c (symbol_list, symbol_list_new) | |
1128 | (symbol_list_prepend, get_type_name): Move to... | |
1129 | * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new) | |
1130 | (symbol_list_prepend, symbol_list_n_type_name_get): here. | |
1131 | Adjust all callers. | |
1132 | (symbol_list_free): New. | |
1133 | * src/scan-gram.l (handle_dollar): Takes a location. | |
1134 | * tests/input.at (Invalid $n): Adjust. | |
1135 | ||
1e0bab92 AD |
1136 | 2002-06-17 Akim Demaille <akim@epita.fr> |
1137 | ||
1138 | * src/reader.h, src/reader.c (symbol_list_new): Export it. | |
1139 | (symbol_list_prepend): New. | |
1140 | * src/parse-gram.y (%union): `list' is a new member. | |
1141 | (symbols.1): New, replaces... | |
1142 | (terms_to_prec.1, nterms_to_type.1): these. | |
1143 | * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set) | |
1144 | Take a location as additional argument. | |
1145 | Adjust all callers. | |
1146 | ||
04e60654 AD |
1147 | 2002-06-15 Akim Demaille <akim@epita.fr> |
1148 | ||
1149 | * src/parse-gram.y: Move %token in the declaration section so that | |
1150 | we don't depend upon CVS Bison. | |
1151 | ||
10e5b8bd AD |
1152 | 2002-06-15 Akim Demaille <akim@epita.fr> |
1153 | ||
1154 | * src/state.h, src/state.c (state_rule_lookaheads_print): New. | |
1155 | * src/print.c (print_core): Use it. | |
1156 | ||
9801d40c AD |
1157 | 2002-06-15 Akim Demaille <akim@epita.fr> |
1158 | ||
1159 | * src/conflicts.c (log_resolution): Accept the rule involved in | |
1160 | the sr conflicts instead of the lookahead number that points to | |
1161 | that rule. | |
1162 | (flush_reduce): Accept the current lookahead vector as argument, | |
1163 | instead of the index in LA. | |
1164 | (resolve_sr_conflict): Accept the current number of lookahead | |
1165 | bitset to consider for the STATE, instead of the index in LA. | |
1166 | (set_conflicts): Adjust. | |
1167 | * src/lalr.c, src/lalr.h, src/state.h: Comment changes. | |
1168 | ||
c0263492 AD |
1169 | 2002-06-15 Akim Demaille <akim@epita.fr> |
1170 | ||
1171 | * src/state.h (state_t): Replace the `lookaheadsp' member, a | |
1172 | short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**). | |
1173 | Adjust all dependencies. | |
1174 | * src/lalr.c (initialize_lookaheads): Split into... | |
1175 | (states_lookaheads_count, states_lookaheads_initialize): these. | |
1176 | (lalr): Adjust. | |
1177 | ||
9757c359 AD |
1178 | 2002-06-15 Akim Demaille <akim@epita.fr> |
1179 | ||
1180 | * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved | |
1181 | out of... | |
1182 | (grammar_rules_print): here. | |
1183 | * src/reduce.c (reduce_output): Use it. | |
1184 | * tests/reduce.at (Useless Rules, Reduced Automaton) | |
1185 | (Underivable Rules): Adjust. | |
1186 | ||
6b98e4b5 AD |
1187 | 2002-06-15 Akim Demaille <akim@epita.fr> |
1188 | ||
1189 | Copy BYacc's nice way to report the grammar. | |
1190 | ||
1191 | * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print): | |
1192 | New. | |
1193 | Don't print the rules' location, it is confusing and useless. | |
1194 | (rule_print): Use grammar_rhs_print. | |
1195 | * src/print.c (print_grammar): Use grammar_rules_print. | |
1196 | ||
6b98e4b5 AD |
1197 | 2002-06-15 Akim Demaille <akim@epita.fr> |
1198 | ||
1199 | Complete and rationalize `useless thing' warnings. | |
1200 | ||
1201 | * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n) | |
1202 | (symbol_tag_print): New. | |
1203 | Use them everywhere in place of accessing directly the tag member. | |
1204 | * src/gram.h, src/gram.c (rule_print): New. | |
1205 | Use it where a rule used to be printed `by hand'. | |
1206 | * src/reduce.c (nonterminals_reduce): Report the use nonterminals. | |
1207 | (reduce_grammar_tables): Report the useless rules. | |
1208 | (reduce_print): Useless things are a warning, not an error. | |
1209 | Report it as such. | |
1210 | * tests/reduce.at (Useless Nonterminals, Useless Rules): | |
1211 | (Reduced Automaton, Underivable Rules): Adjust. | |
1212 | * tests/regression.at (Web2c Report, Web2c Report): Adjust. | |
1213 | * tests/conflicts.at (Unresolved SR Conflicts) | |
1214 | (Solved SR Conflicts): Adjust. | |
1215 | ||
ee000ba4 AD |
1216 | 2002-06-15 Akim Demaille <akim@epita.fr> |
1217 | ||
1218 | Let symbols have a location. | |
1219 | ||
1220 | * src/symtab.h, src/symtab.c (symbol_t): Location is a new member. | |
1221 | (getsym): Adjust. | |
1222 | Adjust all callers. | |
1223 | * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at): | |
1224 | Use location_t, not int. | |
1225 | * src/symtab.c (symbol_check_defined): Take advantage of the | |
1226 | location. | |
1227 | * tests/regression.at (Invalid inputs): Adjust. | |
1228 | ||
8efe435c AD |
1229 | 2002-06-15 Akim Demaille <akim@epita.fr> |
1230 | ||
1231 | * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New. | |
1232 | (input): Don't try to initialize yylloc here, do it in the | |
1233 | scanner. | |
1234 | * src/scan-gram.l (YY_USER_INIT): Initialize yylloc. | |
1235 | * src/gram.h (rule_t): Change line and action_line into location | |
1236 | and action_location, of location_t type. | |
1237 | Adjust all dependencies. | |
1238 | * src/location.h, src/location.c (empty_location): New. | |
1239 | * src/reader.h, src/reader.c (grammar_start_symbol_set) | |
1240 | (grammar_symbol_append, grammar_rule_begin, grammar_rule_end) | |
1241 | (grammar_current_rule_symbol_append) | |
1242 | (grammar_current_rule_action_append): Expect a location as argument. | |
1243 | * src/reader.c (grammar_midrule_action): Adjust to attach an | |
1244 | action's location as dummy symbol location. | |
1245 | * src/symtab.h, src/symtab.c (startsymbol_location): New. | |
1246 | * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust | |
1247 | the line numbers. | |
1248 | ||
1921f1d7 AD |
1249 | 2002-06-14 Akim Demaille <akim@epita.fr> |
1250 | ||
1251 | Grammar declarations may be found in the grammar section. | |
1252 | ||
1253 | * src/parse-gram.y (rules_or_grammar_declaration): New. | |
1254 | (declarations): Each declaration may end with a semicolon, not | |
1255 | just... | |
1256 | (grammar_declaration): `"%union"'. | |
1257 | (grammar): Branch to rules_or_grammar_declaration. | |
1258 | ||
4515534c AD |
1259 | 2002-06-14 Akim Demaille <akim@epita.fr> |
1260 | ||
1261 | * src/main.c (main): Invoke scanner_free. | |
1262 | ||
f958596b AD |
1263 | 2002-06-14 Akim Demaille <akim@epita.fr> |
1264 | ||
1265 | * src/output.c (m4_invoke): Extracted from... | |
1266 | (output_skeleton): here. | |
1267 | Free tempfile. | |
1268 | ||
2c569025 AD |
1269 | 2002-06-14 Akim Demaille <akim@epita.fr> |
1270 | ||
1271 | * src/parse-gram.y (directives, directive, gram) | |
1272 | (grammar_directives, precedence_directives, precedence_directive): | |
1273 | Rename as... | |
1274 | (declarations, declaration, grammar, grammar_declaration) | |
1275 | (precedence_declaration, precedence_declarator): these. | |
1276 | (symbol_declaration): New. | |
1277 | ||
592e8d4d AD |
1278 | 2002-06-14 Akim Demaille <akim@epita.fr> |
1279 | ||
1280 | * src/files.c (action_obstack): Remove, unused. | |
1281 | (output_obstack): Remove it, and all its dependencies, as it is no | |
1282 | longer needed. | |
1283 | * src/reader.c (epilogue_set): Build the epilogue in the | |
1284 | muscle_obstack. | |
1285 | * src/output.h, src/output.c (muscle_obstack): Move to... | |
1286 | * src/muscle_tab.h, src/muscle_tab.h: here. | |
1287 | (muscle_init): Initialize muscle_obstack. | |
1288 | (muscle_free): New. | |
1289 | * src/main.c (main): Call it. | |
1290 | ||
0c15323d AD |
1291 | 2002-06-14 Akim Demaille <akim@epita.fr> |
1292 | ||
1293 | * src/location.h: New, extracted from... | |
1294 | * src/reader.h: here. | |
1295 | * src/Makefile.am (noinst_HEADERS): Merge into | |
1296 | (bison_SOURCES): this. | |
1297 | Add location.h. | |
1298 | * src/parse-gram.y: Use location_t instead of Bison's. | |
1299 | * src/reader.h, src/reader.c (prologue_augment, epilogue_set): | |
1300 | Use location_t instead of ints. | |
1301 | ||
e96c9728 AD |
1302 | 2002-06-14 Akim Demaille <akim@epita.fr> |
1303 | ||
1304 | * data/bison.simple, data/bison.c++: Be sure to restore the | |
1305 | current #line when returning to the skeleton contents after having | |
1306 | exposed the input file's #line. | |
1307 | ||
75d1fe16 AD |
1308 | 2002-06-12 Akim Demaille <akim@epita.fr> |
1309 | ||
1310 | * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too | |
1311 | eager. | |
1312 | * tests/actions.at (Exotic Dollars): New. | |
1313 | ||
6c35d22c AD |
1314 | 2002-06-12 Akim Demaille <akim@epita.fr> |
1315 | ||
1316 | * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst | |
1317 | ['"/] too eagerly. | |
1318 | * tests/input.at (Torturing the Scanner): New. | |
1319 | ||
1d6412ad AD |
1320 | 2002-06-11 Akim Demaille <akim@epita.fr> |
1321 | ||
1322 | * src/scan-gram.l (YY_OBS_INIT): Remove, replace with... | |
1323 | [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE] | |
1324 | [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment. | |
1325 | * src/reader.h, src/scan-gram.l (scanner_initialize): this. | |
1326 | * src/reader.c (reader): Use it. | |
1327 | ||
4cdb01db AD |
1328 | 2002-06-11 Akim Demaille <akim@epita.fr> |
1329 | ||
1330 | * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval. | |
1331 | Adjust all callers. | |
1332 | (scanner_last_string_free): New. | |
1333 | ||
44995b2e AD |
1334 | 2002-06-11 Akim Demaille <akim@epita.fr> |
1335 | ||
1336 | * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as... | |
1337 | (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these. | |
1338 | (last_string, YY_OBS_FREE): New. | |
1339 | Use them when returning an ID. | |
1340 | ||
e9955c83 AD |
1341 | 2002-06-11 Akim Demaille <akim@epita.fr> |
1342 | ||
1343 | Have Bison grammars parsed by a Bison grammar. | |
1344 | ||
1345 | * src/reader.c, src/reader.h (prologue_augment): New. | |
1346 | * src/reader.c (copy_definition): Remove. | |
1347 | ||
1348 | * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment) | |
1349 | (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action) | |
1350 | (grammar_current_rule_prec_set, grammar_current_rule_check) | |
1351 | (grammar_current_rule_symbol_append) | |
1352 | (grammar_current_rule_action_append): Export. | |
1353 | * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_ | |
1354 | (symbol_list_action_append): Remove. | |
1355 | Hook the routines from reader. | |
1356 | * src/scan-gram.l: In INITIAL, characters and strings are tokens. | |
1357 | * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now. | |
1358 | ||
1359 | * src/reader.c (read_declarations): Remove, unused. | |
1360 | ||
1361 | * src/parse-gram.y: Handle the epilogue. | |
1362 | * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as... | |
1363 | (grammar_start_symbol_set): this. | |
1364 | * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet. | |
1365 | * src/reader.c (readgram): Remove, unused. | |
1366 | (reader): Adjust to insert eoftoken and axiom where appropriate. | |
1367 | ||
1368 | * src/reader.c (copy_dollar): Replace with... | |
1369 | * src/scan-gram.h (handle_dollar): this. | |
1370 | * src/parse-gram.y: Remove `%thong'. | |
1371 | ||
1372 | * src/reader.c (copy_at): Replace with... | |
1373 | * src/scan-gram.h (handle_at): this. | |
1374 | ||
1375 | * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at): | |
1376 | New. | |
1377 | ||
1378 | * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the | |
1379 | time being. | |
1380 | ||
1381 | * src/reader.h, src/reader.c (grammar_rule_end): New. | |
1382 | ||
1383 | * src/parse.y (current_type, current_class): New. | |
1384 | Implement `%nterm', `%token' support. | |
1385 | Merge `%term' into `%token'. | |
1386 | (string_as_id): New. | |
1387 | * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the | |
1388 | type name. | |
1389 | ||
1390 | * src/parse-gram.y: Be sure to handle properly the beginning of | |
1391 | rules. | |
1392 | ||
1393 | * src/parse-gram.y: Handle %type. | |
1394 | * src/reader.c (grammar_rule_end): Call grammar_current_rule_check. | |
1395 | ||
1396 | * src/parse-gram.y: More directives support. | |
1397 | * src/options.c: No longer handle source directives. | |
1398 | ||
1399 | * src/parse-gram.y: Fix %output. | |
1400 | ||
1401 | * src/parse-gram.y: Handle %union. | |
1402 | Use the prologue locations. | |
1403 | * src/reader.c (parse_union_decl): Remove. | |
1404 | ||
1405 | * src/reader.h, src/reader.c (epilogue_set): New. | |
1406 | * src/parse-gram.y: Use it. | |
1407 | ||
1408 | * data/bison.simple, data/bison.c++: b4_stype is now either not | |
1409 | defined, then default to int, or to the contents of %union, | |
1410 | without `union' itself. | |
1411 | Adjust. | |
1412 | * src/muscle_tab.c (muscle_init): Don't predefine `stype'. | |
1413 | ||
1414 | * src/output.c (actions_output): Don't output braces, as they are | |
1415 | already handled by the scanner. | |
1416 | ||
1417 | * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of | |
1418 | characters to themselves. | |
1419 | ||
1420 | * tests/reduce.at (Reduced Automaton): End the grammars with %% so | |
1421 | that the epilogue has a proper #line. | |
1422 | ||
1423 | * src/parse-gram.y: Handle precedence/associativity. | |
1424 | ||
1425 | * src/symtab.c (symbol_precedence_set): Requires the symbol to be | |
1426 | a terminal. | |
1427 | * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters. | |
1428 | * tests/calc.at: Do not use `%token "foo"' as it makes not sense | |
1429 | at all to define terminals that cannot be emitted. | |
1430 | ||
1431 | * src/scan-gram.l: Escape M4 characters. | |
1432 | ||
1433 | * src/scan-gram.l: Working properly with escapes in user | |
1434 | strings/characters. | |
1435 | ||
1436 | * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR) | |
1437 | (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING' | |
1438 | grammar. | |
1439 | Use more modest sizes, as for the time being the parser does not | |
1440 | release memory, and therefore the process swallows a huge amount | |
1441 | of memory. | |
1442 | ||
1443 | * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the | |
1444 | stricter %token grammar. | |
1445 | ||
1446 | * src/symtab.h (associativity): Add `undef_assoc'. | |
1447 | (symbol_precedence_set): Do nothing when passed an undef_assoc. | |
1448 | * src/symtab.c (symbol_check_alias_consistence): Adjust. | |
1449 | ||
1450 | * tests/regression.at (Invalid %directive): Remove, as it is now | |
1451 | meaningless. | |
1452 | (Invalid inputs): Adjust to the new error messages. | |
1453 | (Token definitions): The new grammar doesn't allow too many | |
1454 | eccentricities. | |
1455 | ||
1456 | * src/lex.h, src/lex.c: Remove. | |
1457 | * src/reader.c (lastprec, skip_to_char, read_signed_integer) | |
1458 | (copy_character, copy_string2, copy_string, copy_identifier) | |
1459 | (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl) | |
1460 | (parse_muscle_decl, parse_dquoted_param, parse_skel_decl) | |
1461 | (parse_action): Remove. | |
1462 | * po/POTFILES.in: Adjust. | |
1463 | ||
2e047461 AD |
1464 | 2002-06-11 Akim Demaille <akim@epita.fr> |
1465 | ||
1466 | * src/reader.c (parse_action): Don't store directly into the | |
1467 | rule's action member: return the action as a string. | |
1468 | Don't require `rule_length' as an argument: compute it. | |
1469 | (grammar_current_rule_symbol_append) | |
1470 | (grammar_current_rule_action_append): New, eved out from | |
1471 | (readgram): here. | |
1472 | Remove `action_flag', `rulelength', unused now. | |
1473 | ||
9af3fbce AD |
1474 | 2002-06-11 Akim Demaille <akim@epita.fr> |
1475 | ||
1476 | * src/reader.c (grammar_current_rule_prec_set). | |
1477 | (grammar_current_rule_check): New, eved out from... | |
1478 | (readgram): here. | |
1479 | Remove `xaction', `first_rhs': useless. | |
1480 | * tests/input.at (Type clashes): New. | |
1481 | * tests/existing.at (GNU Cim Grammar): Adjust. | |
1482 | ||
1485e106 AD |
1483 | 2002-06-11 Akim Demaille <akim@epita.fr> |
1484 | ||
1485 | * src/reader.c (grammar_midrule_action): New, Eved out from | |
1486 | (readgram): here. | |
1487 | ||
da4160c3 AD |
1488 | 2002-06-11 Akim Demaille <akim@epita.fr> |
1489 | ||
1490 | * src/reader.c (grammar_rule_begin, previous_rule, current_rule): | |
1491 | New. | |
1492 | (readgram): Use them as replacement of inlined code, crule and | |
1493 | crule1. | |
1494 | ||
f6d0f937 AD |
1495 | 2002-06-11 Akim Demaille <akim@epita.fr> |
1496 | ||
1497 | * src/reader.c (grammar_end, grammar_symbol_append): New. | |
1498 | (readgram): Use them. | |
1499 | Make the use of `p' as local as possible. | |
1500 | ||
69078d4b AD |
1501 | 2002-06-10 Akim Demaille <akim@epita.fr> |
1502 | ||
1503 | GCJ's parser requires the tokens to be defined before the prologue. | |
1504 | ||
1505 | * data/bison.simple: Output the token definition before the user's | |
1506 | prologue. | |
1507 | * tests/regression.at (Braces parsing, Duplicate string) | |
1508 | (Mixing %token styles): Check the output from bison. | |
1509 | (Early token definitions): New. | |
1510 | ||
5e424082 AD |
1511 | 2002-06-10 Akim Demaille <akim@epita.fr> |
1512 | ||
1513 | * src/symtab.c (symbol_user_token_number_set): Don't complain when | |
1514 | assigning twice the same user number to a token, so that we can | |
1515 | use it in... | |
1516 | * src/lex.c (lex): here. | |
1517 | Also use `symbol_class_set' instead of hand written code. | |
1518 | * src/reader.c (parse_assoc_decl): Likewise. | |
1519 | ||
44536b35 AD |
1520 | 2002-06-10 Akim Demaille <akim@epita.fr> |
1521 | ||
1522 | * src/symtab.c, src/symtab.c (symbol_class_set) | |
1523 | (symbol_user_token_number_set): New. | |
1524 | * src/reader.c (parse_token_decl): Use them. | |
1525 | Use a switch instead of ifs. | |
1526 | Use a single argument. | |
1527 | ||
8b9f2372 AD |
1528 | 2002-06-10 Akim Demaille <akim@epita.fr> |
1529 | ||
1530 | Remove `%thong' support as it is undocumented, unused, duplicates | |
1531 | `%token's job, and creates useless e-mail traffic with people who | |
1532 | want to know what it is, why it is undocumented, unused, and | |
1533 | duplicates `%token's job. | |
1534 | ||
1535 | * src/reader.c (parse_thong_decl): Remove. | |
1536 | * src/options.c (option_table): Remove "thong". | |
1537 | * src/lex.h (tok_thong): Remove. | |
1538 | ||
3ae2b51f AD |
1539 | 2002-06-10 Akim Demaille <akim@epita.fr> |
1540 | ||
1541 | * src/symtab.c, src/symtab.c (symbol_type_set) | |
1542 | (symbol_precedence_set): New. | |
1543 | * src/reader.c (parse_type_decl, parse_assoc_decl): Use them. | |
1544 | (value_components_used): Remove, unused. | |
1545 | ||
2f1afb73 AD |
1546 | 2002-06-09 Akim Demaille <akim@epita.fr> |
1547 | ||
1548 | Move symbols handling code out of the reader. | |
1549 | ||
1550 | * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken) | |
1551 | (axiom): Move to... | |
1552 | * src/symtab.h, src/symtab.c: here. | |
1553 | ||
1554 | * src/gram.c (start_symbol): Remove: use startsymbol->number. | |
1555 | * src/reader.c (startval): Rename as... | |
1556 | * src/symtab.h, src/symtab.c (startsymbol): this. | |
1557 | * src/reader.c: Adjust. | |
1558 | ||
1559 | * src/reader.c (symbol_check_defined, symbol_make_alias) | |
1560 | (symbol_check_alias_consistence, symbol_pack, symbol_translation) | |
1561 | (token_translations_init) | |
1562 | Move to... | |
1563 | * src/symtab.c: here. | |
1564 | * src/reader.c (packsymbols): Move to... | |
1565 | * src/symtab.h, src/symtab.c (symbols_pack): here. | |
1566 | * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as | |
1567 | argument. | |
1568 | ||
e9bca3ad AD |
1569 | 2002-06-03 Akim Demaille <akim@epita.fr> |
1570 | ||
1571 | * src/muscle_tab.c (muscle_insert, muscle_find): Declarations, | |
1572 | then statements. | |
1573 | ||
86eff183 AD |
1574 | 2002-06-03 Akim Demaille <akim@epita.fr> |
1575 | ||
1576 | * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize | |
1577 | structs with non literals. | |
1578 | * src/scan-skel.l: never-interactive. | |
1579 | * src/conflicts.c (enum conflict_resolution_e): No trailing | |
1580 | comma. | |
1581 | * src/getargs.c (usage): Split long literal strings. | |
1582 | Reported by Hans Aberg. | |
1583 | ||
717be197 AD |
1584 | 2002-05-28 Akim Demaille <akim@epita.fr> |
1585 | ||
1586 | * data/bison.c++: Use C++ ostreams. | |
1587 | (cdebug_): New member. | |
1588 | ||
670ddffd AD |
1589 | 2002-05-28 Akim Demaille <akim@epita.fr> |
1590 | ||
1591 | * src/output.c (output_skeleton): Be sure to allocate enough room | |
1592 | for `/' _and_ for `\0' in full_skeleton. | |
1593 | ||
769b430f AD |
1594 | 2002-05-28 Akim Demaille <akim@epita.fr> |
1595 | ||
1596 | * data/bison.c++: Catch up with bison.simple: | |
1597 | 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> | |
1598 | and Paul Eggert <eggert@twinsun.com>: `error' handing. | |
1599 | 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_, | |
1600 | and popping traces. | |
1601 | ||
7067cb36 PH |
1602 | 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
1603 | ||
1604 | * src/output.c (output_skeleton): Put an explicit path in front of | |
1605 | the skeleton file name, rather than relying on the -I directory, | |
1606 | to partially alleviate effects of having a skeleton file lying around | |
1607 | in the current directory. | |
769b430f | 1608 | |
4a713ec2 PH |
1609 | 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
1610 | ||
769b430f | 1611 | * src/conflicts.c (log_resolution): Correct typo: |
4a713ec2 PH |
1612 | obstack_printf should be obstack_fgrow1. |
1613 | ||
b408954b AD |
1614 | 2002-05-26 Akim Demaille <akim@epita.fr> |
1615 | ||
1616 | * src/state.h (state_t): `solved_conflicts' is a new member. | |
1617 | * src/LR0.c (new_state): Set it to 0. | |
1618 | * src/conflicts.h, src/conflicts.c (print_conflicts) | |
1619 | (free_conflicts, solve_conflicts): Rename as... | |
1620 | (conflicts_print, conflicts_free, conflicts_solve): these. | |
1621 | Adjust callers. | |
1622 | * src/conflicts.c (enum conflict_resolution_e) | |
1623 | (solved_conflicts_obstack): New, used by... | |
1624 | (log_resolution): this. | |
1625 | Adjust to attach the conflict resolution to each state. | |
1626 | Complete the description with the precedence/associativity | |
1627 | information. | |
1628 | (resolve_sr_conflict): Adjust. | |
1629 | * src/print.c (print_state): Output its solved_conflicts. | |
1630 | * tests/conflicts.at (Unresolved SR Conflicts) | |
1631 | (Solved SR Conflicts): Exercise --report=all. | |
1632 | ||
a49aecd5 AD |
1633 | 2002-05-26 Akim Demaille <akim@epita.fr> |
1634 | ||
1635 | * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c, | |
1636 | * src/nullable.c, src/output.c, src/print.c, src/print_graph.c, | |
1637 | * src/reader.c, src/reduce.c, src/state.h, src/symtab.h | |
1638 | (token_number_t, item_number_as_token_number) | |
1639 | (token_number_as_item_number, muscle_insert_token_number_table): | |
1640 | Rename as... | |
1641 | (symbol_number_t, item_number_as_symbol_number) | |
1642 | (symbol_number_as_item_number, muscle_insert_symbol_number_table): | |
1643 | these, since it is more appropriate. | |
1644 | ||
5504898e AD |
1645 | 2002-05-26 Akim Demaille <akim@epita.fr> |
1646 | ||
1647 | * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional | |
1648 | `Error:' lines. | |
1649 | * data/bison.simple (yystos) [YYDEBUG]: New. | |
1650 | (yyparse) [YYDEBUG]: Display the symbols which are popped during | |
1651 | error recovery. | |
1652 | * tests/regression.at (Web2c Actions): Adjust: yystos is output now. | |
1653 | ||
ec3bc396 AD |
1654 | 2002-05-25 Akim Demaille <akim@epita.fr> |
1655 | ||
1656 | * doc/bison.texinfo (Debugging): Split into... | |
1657 | (Tracing): this new section, its former contents, and... | |
1658 | (Understanding): this new section. | |
1659 | * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced | |
1660 | by... | |
1661 | (report_flag): this. | |
1662 | Adjust all dependencies. | |
1663 | (report_args, report_types, report_argmatch): New. | |
1664 | (usage, getargs): Report/support -r, --report. | |
1665 | * src/options.h | |
1666 | (struct option_table_struct): Rename as.., | |
1667 | (struct option_table_s): this. | |
1668 | Rename the `set_flag' member to `flag' to match with getopt_long's | |
1669 | struct. | |
1670 | * src/options.c (option_table): Split verbose into an entry for | |
1671 | %verbose, and another for --verbose. | |
1672 | Support --report/-r, so remove -r from the obsolete --raw. | |
1673 | * src/print.c: Attach full item sets and lookaheads reports to | |
1674 | report_flag instead of trace_flag. | |
1675 | * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1. | |
1676 | ||
78df8250 PE |
1677 | 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
1678 | and Paul Eggert <eggert@twinsun.com> | |
769b430f | 1679 | |
78df8250 PE |
1680 | * data/bison.simple (yyparse): Correct error handling to conform to |
1681 | POSIX and yacc. Specifically, after syntax error is discovered, | |
1682 | do not reduce further before shifting the error token. | |
1683 | Clean up the code a bit by removing the labels yyerrdefault, | |
1684 | yyerrhandle, yyerrpop. | |
1685 | * NEWS: Document the above. | |
1686 | ||
c0c9ea05 PH |
1687 | 2002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
1688 | ||
1689 | * data/bison.simple (yyr1): Don't use yy_token_number_type as element | |
1690 | type; it isn't always big enough, since it doesn't necessarily | |
1691 | include non-terminals. | |
769b430f | 1692 | (yytranslate): Expand definition of yy_token_number_type, so that |
c0c9ea05 PH |
1693 | the latter can be removed. |
1694 | (yy_token_number_type): Remove, only one use. | |
1695 | * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple--- | |
1696 | don't use TokenNumberType as element type. | |
769b430f | 1697 | |
c0c9ea05 PH |
1698 | * tests/regression.at: Modify expected output to agree with change |
1699 | to yyr1 and yytranslate. | |
769b430f | 1700 | |
6390a83f FK |
1701 | 2002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com> |
1702 | ||
1703 | * src/reader.c (parse_action): Use copy_character instead of | |
1704 | obstack_1grow. | |
1705 | ||
db7c8e9a AD |
1706 | 2002-05-13 Akim Demaille <akim@epita.fr> |
1707 | ||
1708 | * tests/regression.at (Token definitions): Prototype yylex and | |
1709 | yyerror. | |
1710 | ||
fcc61800 PH |
1711 | 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
1712 | ||
158c687b | 1713 | * src/scan-skel.l: Correct off-by-one error in handling of __oline__. |
fcc61800 PH |
1714 | * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect |
1715 | 32-bit arithmetic. | |
1716 | * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto. | |
1717 | ||
5683e9b2 AD |
1718 | 2002-05-07 Akim Demaille <akim@epita.fr> |
1719 | ||
1720 | * tests/synclines.at: Be sure to prototype yylex and yyerror to | |
1721 | avoid GCC warnings. | |
1722 | ||
0c2d3f4c AD |
1723 | 2002-05-07 Akim Demaille <akim@epita.fr> |
1724 | ||
1725 | Kill GCC warnings. | |
1726 | ||
1727 | * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop | |
1728 | over the RHS of each rule. | |
1729 | * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int. | |
1730 | * src/state.h (state_t): Member `nitems' is unsigned short. | |
1731 | * src/LR0.c (get_state): Adjust. | |
1732 | * src/reader.c (packgram): Likewise. | |
1733 | * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type | |
1734 | `Type'. | |
1735 | (muscle_insert_int_table): Remove, unused. | |
1736 | (prepare_rules): Remove `max'. | |
1737 | ||
1565b720 AD |
1738 | 2002-05-06 Akim Demaille <akim@epita.fr> |
1739 | ||
1740 | * src/closure.c (print_firsts): Display of the symbol tags. | |
1741 | (bitmatrix_print): Move to... | |
1742 | * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump): | |
1743 | here. | |
1744 | * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust. | |
1745 | ||
cfaee611 AD |
1746 | 2002-05-06 Akim Demaille <akim@epita.fr> |
1747 | ||
1748 | * src/muscle_tab.c (muscle_m4_output): Must return TRUE for | |
1749 | hash_do_for_each. | |
1750 | ||
458be8e0 AD |
1751 | 2002-05-06 Akim Demaille <akim@epita.fr> |
1752 | ||
1753 | * src/LR0.c (new_state, get_state): Instead of using the global | |
1754 | `kernel_size' and `kernel_base', have two new arguments: | |
1755 | `core_size' and `core'. | |
1756 | Adjust callers. | |
1757 | ||
a900a624 AD |
1758 | 2002-05-06 Akim Demaille <akim@epita.fr> |
1759 | ||
1760 | * src/reader.c (packgram): No longer end `ritem' with a 0 | |
1761 | sentinel: it is not used. | |
1762 | ||
d4e7d3a1 AD |
1763 | 2002-05-05 Akim Demaille <akim@epita.fr> |
1764 | ||
1765 | New experimental feature: display the lookaheads in the report and | |
1766 | graph. | |
1767 | ||
1768 | * src/print (print_core): When --trace-flag, display the rules | |
1769 | lookaheads. | |
1770 | * src/print_graph.c (print_core): Likewise. | |
1771 | Swap the arguments. | |
1772 | Adjust caller. | |
1773 | ||
39ceb25b AD |
1774 | 2002-05-05 Akim Demaille <akim@epita.fr> |
1775 | ||
1776 | * tests/torture.at (Many lookaheads): New test. | |
1777 | ||
5372019f AD |
1778 | 2002-05-05 Akim Demaille <akim@epita.fr> |
1779 | ||
1780 | * src/output.c (GENERATE_OUTPUT_TABLE): Replace with... | |
1781 | (GENERATE_MUSCLE_INSERT_TABLE): this. | |
1782 | (output_int_table, output_unsigned_int_table, output_short_table) | |
1783 | (output_token_number_table, output_item_number_table): Replace with... | |
1784 | (muscle_insert_int_table, muscle_insert_unsigned_int_table) | |
1785 | (muscle_insert_short_table, muscle_insert_token_number_table) | |
1786 | (muscle_insert_item_number_table): these. | |
1787 | Adjust all callers. | |
1788 | (prepare_tokens): Don't free `translations', since... | |
1789 | * src/reader.h, src/reader.c (grammar_free): do it. | |
1790 | Move to... | |
1791 | * src/gram.h, src/gram.c (grammar_free): here. | |
1792 | * data/bison.simple, data/bison.c++: b4_token_number_max is now | |
1793 | b4_translate_max. | |
1794 | ||
5df5f6d5 AD |
1795 | 2002-05-05 Akim Demaille <akim@epita.fr> |
1796 | ||
1797 | * src/output.c (output_unsigned_int_table): New. | |
1798 | (prepare_rules): `i' is unsigned. | |
1799 | `prhs', `rline', `r2' are unsigned int. | |
1800 | Rename muscle `rhs_number_max' as `rhs_max'. | |
1801 | Output muscles `prhs_max', `rline_max', and `r2_max'. | |
1802 | Free rline and r1. | |
1803 | * data/bison.simple, data/bison.c++: Adjust to use these muscles | |
1804 | to compute types instead of constant types. | |
1805 | * tests/regression.at (Web2c Actions): Adjust. | |
1806 | ||
b87f8b21 AD |
1807 | 2002-05-04 Akim Demaille <akim@epita.fr> |
1808 | ||
1809 | * src/symtab.h (SALIAS, SUNDEF): Rename as... | |
1810 | (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these. | |
1811 | Adjust dependencies. | |
1812 | * src/output.c (token_definitions_output): Be sure not to output a | |
1813 | `#define 'a'' when fed with `%token 'a' "a"'. | |
1814 | * tests/regression.at (Token definitions): New. | |
1815 | ||
8bb936e4 PE |
1816 | 2002-05-03 Paul Eggert <eggert@twinsun.com> |
1817 | ||
1818 | * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE | |
1819 | for K&R C. | |
1820 | ||
1821 | 2002-05-03 gettextize <bug-gnu-gettext@gnu.org> | |
1822 | ||
1823 | * Makefile.am (SUBDIRS): Remove intl. | |
1824 | (EXTRA_DIST): Add config/config.rpath. | |
1825 | ||
53c71a12 AD |
1826 | 2002-05-03 Akim Demaille <akim@epita.fr> |
1827 | ||
1828 | * data/bison.simple (m4_if): Don't output empty enums. | |
1829 | And actually, output valid enum definitions :(. | |
1830 | ||
289dd0cf AD |
1831 | 2002-05-03 Akim Demaille <akim@epita.fr> |
1832 | ||
1833 | * configure.bat: Remove, completely obsolete. | |
1834 | * Makefile.am (EXTRA_DIST): Adjust. | |
1835 | Don't distribute config.rpath... | |
1836 | * config/Makefile.am (EXTRA_DIST): Do it. | |
1837 | ||
db85e524 AD |
1838 | 2002-05-03 Akim Demaille <akim@epita.fr> |
1839 | ||
1840 | * configure.in (GETTEXT_VERSION): New. | |
1841 | Suggested by Bruno Haible for the forthcoming Gettext 0.10.3. | |
1842 | ||
83ccf991 AD |
1843 | 2002-05-03 Akim Demaille <akim@epita.fr> |
1844 | ||
1845 | * data/bison.simple (b4_token_enum): New. | |
1846 | (b4_token_defines): Use it to output tokens both as #define and | |
1847 | enums. | |
1848 | Suggested by Paul Eggert. | |
1849 | * src/output.c (token_definitions_output): Don't output spurious | |
1850 | white spaces. | |
1851 | ||
1f418995 AD |
1852 | 2002-05-03 Akim Demaille <akim@epita.fr> |
1853 | ||
1854 | * data/m4sugar/m4sugar.m4: Update from CVS Autoconf. | |
1855 | ||
45119f04 RA |
1856 | 2002-05-02 Robert Anisko <robert@lrde.epita.fr> |
1857 | ||
1858 | * data/bison.c++: Adapt expansion of $s and @s to the C++ parser. | |
1859 | Update the stack class, give a try to deque as the default container. | |
1860 | ||
b2d52318 AD |
1861 | 2002-05-02 Akim Demaille <akim@epita.fr> |
1862 | ||
1863 | * data/bison.simple (yyparse): Do not implement @$ = @1. | |
1864 | (YYLLOC_DEFAULT): Adjust to do it. | |
1865 | * doc/bison.texinfo (Location Default Action): Fix. | |
1866 | ||
3a8b4109 AD |
1867 | 2002-05-02 Akim Demaille <akim@epita.fr> |
1868 | ||
1869 | * src/reader.c (parse_braces): Merge into... | |
1870 | (parse_action): this. | |
1871 | ||
84614e13 AD |
1872 | 2002-05-02 Akim Demaille <akim@epita.fr> |
1873 | ||
1874 | * configure.in (ALL_LINGUAS): Remove. | |
1875 | * po/LINGUAS, hr.po: New. | |
1876 | ||
fdbcd8e2 AD |
1877 | 2002-05-02 Akim Demaille <akim@epita.fr> |
1878 | ||
1879 | Remove the so called hairy (semantic) parsers. | |
1880 | ||
1881 | * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove. | |
1882 | * src/gram.h, src/gram.c (semantic_parser): Remove. | |
1883 | (rule_t): Remove the guard and guard_line members. | |
1884 | * src/lex.h (token_t): remove tok_guard. | |
1885 | * src/options.c (option_table): Remove %guard and %semantic_parser | |
1886 | support. | |
1887 | * src/output.c, src/output.h (guards_output): Remove. | |
1888 | (prepare): Adjust. | |
1889 | (token_definitions_output): Don't output the `T' | |
1890 | tokens (???). | |
1891 | (output_skeleton): Don't output the guards. | |
1892 | * src/files.c, src/files.c (attrsfile): Remove. | |
1893 | * src/reader.c (symbol_list): Remove the guard and guard_line | |
1894 | members. | |
1895 | Adjust dependencies. | |
1896 | (parse_guard): Remove. | |
1897 | * data/bison.hairy: Remove. | |
1898 | * doc/bison.texinfo (Environment Variables): Remove occurrences of | |
1899 | BISON_HAIRY. | |
1900 | ||
82b6cb3f AD |
1901 | 2002-05-02 Akim Demaille <akim@epita.fr> |
1902 | ||
1903 | * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action) | |
1904 | (parse_guard): Rename the formal argument `stack_offset' as | |
1905 | `rule_length', which is more readable. | |
1906 | Adjust callers. | |
1907 | (copy_at, copy_dollar): Instead of outputting the hard coded | |
1908 | values of $$, $n and so forth, output invocation to b4_lhs_value, | |
1909 | b4_lhs_location, b4_rhs_value, and b4_rhs_location. | |
900c877b AD |
1910 | Note: this patch partially drops `semantic-parser' support: it |
1911 | always does `rule_length - n', where semantic parsers ought to | |
1912 | always use `-n'. | |
82b6cb3f AD |
1913 | * data/bison.simple, data/bison.c++ (b4_lhs_value) |
1914 | (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New. | |
1915 | ||
6cbfbcc5 AD |
1916 | 2002-05-02 Akim Demaille <akim@epita.fr> |
1917 | ||
1918 | * configure.in (AC_INIT): Bump to 1.49b. | |
1919 | (AM_INIT_AUTOMAKE): Short invocation. | |
1920 | ||
b8548114 AD |
1921 | 2002-05-02 Akim Demaille <akim@epita.fr> |
1922 | ||
1923 | Version 1.49a. | |
1924 | ||
c20cd1fa AD |
1925 | 2002-05-01 Akim Demaille <akim@epita.fr> |
1926 | ||
1927 | * src/skeleton.h: Remove. | |
1928 | ||
8a9566d4 AD |
1929 | 2002-05-01 Akim Demaille <akim@epita.fr> |
1930 | ||
1931 | * src/skeleton.h: Fix the #endif. | |
1932 | Reported by Magnus Fromreide. | |
1933 | ||
8c6d399a PE |
1934 | 2002-04-26 Paul Eggert <eggert@twinsun.com> |
1935 | ||
1936 | * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL): | |
1937 | Define if we define YYSTYPE and YYLTYPE, respectively. | |
b756bb75 | 1938 | (YYCOPY): Fix [] quoting problem in the non-GCC case. |
8a9566d4 | 1939 | |
2b7ed18a RA |
1940 | 2002-04-25 Robert Anisko <robert@lrde.epita.fr> |
1941 | ||
1942 | * src/scan-skel.l: Postprocess quadrigraphs. | |
1943 | ||
1944 | * src/reader.c (copy_character): New function, used to output | |
1945 | single characters while replacing `[' and `]' with quadrigraphs, to | |
1946 | avoid troubles with M4 quotes. | |
1947 | (copy_comment): Output characters with copy_character. | |
1948 | (read_additionnal_code): Likewise. | |
1949 | (copy_string2): Likewise. | |
1950 | (copy_definition): Likewise. | |
1951 | ||
1952 | * tests/calc.at: Exercise M4 quoting. | |
1953 | ||
34a89c50 AD |
1954 | 2002-04-25 Akim Demaille <akim@epita.fr> |
1955 | ||
1956 | * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space | |
1957 | between `!' and the command. | |
1958 | Reported by Paul Eggert. | |
1959 | ||
0dd1580a RA |
1960 | 2002-04-24 Robert Anisko <robert@lrde.epita.fr> |
1961 | ||
1962 | * tests/calc.at: Exercise prologue splitting. | |
1963 | ||
1964 | * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and | |
1965 | `b4_post_prologue' instead of `b4_prologue'. | |
1966 | ||
1967 | * src/output.c (prepare): Add the `pre_prologue' and `post_prologue' | |
1968 | muscles. | |
1969 | (output): Free pre_prologue_obstack and post_prologue_obstack. | |
1970 | * src/files.h, src/files.c (attrs_obstack): Remove. | |
1971 | (pre_prologue_obstack, post_prologue_obstack): New. | |
1972 | * src/reader.c (copy_definition): Add a parameter to specify the | |
1973 | obstack to fill, instead of using attrs_obstack unconditionally. | |
1974 | (read_declarations): Pass pre_prologue_obstack to copy_definition if | |
1975 | `%union' has not yet been seen, pass post_prologue_obstack otherwise. | |
1976 | ||
83c1796f PE |
1977 | 2002-04-23 Paul Eggert <eggert@twinsun.com> |
1978 | ||
1979 | * data/bison.simple: Remove unnecessary commentary and white | |
1980 | space differences from 1_29-branch. | |
1981 | Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE). | |
1982 | ||
1983 | (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY, | |
1984 | YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or | |
1985 | if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial | |
1986 | constructors or destructors. | |
1987 | ||
1988 | (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack. | |
1989 | ||
1207eeac AD |
1990 | 2002-04-23 Akim Demaille <akim@epita.fr> |
1991 | ||
1992 | * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels. | |
1993 | * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's | |
1994 | location with columns. | |
1995 | * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'. | |
1996 | All reported by Paul Eggert. | |
1997 | ||
78ab8f67 AD |
1998 | 2002-04-22 Akim Demaille <akim@epita.fr> |
1999 | ||
2000 | * src/reduce.c (dump_grammar): Move to... | |
2001 | * src/gram.h, src/gram.c (grammar_dump): here. | |
2002 | Be sure to separate long item numbers. | |
2003 | Don't read the members of a rule's prec if its nil. | |
2004 | ||
133c20e2 AD |
2005 | 2002-04-22 Akim Demaille <akim@epita.fr> |
2006 | ||
2007 | * src/output.c (table_size, table_grow): New. | |
2008 | (MAXTABLE): Remove, replace uses with table_size. | |
2009 | (pack_vector): Instead of dying when the table is too big, grow it. | |
2010 | ||
9515e8a7 AD |
2011 | 2002-04-22 Akim Demaille <akim@epita.fr> |
2012 | ||
2013 | * data/bison.simple (yyr1): Its type is that of a token number. | |
2014 | * data/bison.c++ (r1_): Likewise. | |
2015 | * tests/regression.at (Web2c Actions): Adjust. | |
2016 | ||
23c5a174 AD |
2017 | 2002-04-22 Akim Demaille <akim@epita.fr> |
2018 | ||
2019 | * src/reader.c (token_translations_init): 256 is now the default | |
2020 | value for the error token, i.e., it will be assigned another | |
2021 | number if the user assigned 256 to one of her tokens. | |
2022 | (reader): Don't force 256 to error. | |
2023 | * doc/bison.texinfo (Symbols): Adjust. | |
2024 | * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR) | |
2025 | (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3 | |
2026 | etc. instead of 10, 20, 30 (which was used to `jump' over error | |
2027 | (256) and undefined (2)). | |
2028 | ||
5fbb0954 AD |
2029 | 2002-04-22 Akim Demaille <akim@epita.fr> |
2030 | ||
2031 | Propagate more token_number_t. | |
2032 | ||
2033 | * src/gram.h (token_number_as_item_number) | |
2034 | (item_number_as_token_number): New. | |
2035 | * src/output.c (GENERATE_OUTPUT_TABLE): New. | |
2036 | Use it to create output_item_number_table and | |
2037 | output_token_number_table. | |
2038 | * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c, | |
2039 | * src/lex.c, src/nullable.c, src/output.c, src/print.c, | |
2040 | * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h, | |
2041 | * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts. | |
2042 | ||
4f940944 AD |
2043 | 2002-04-22 Akim Demaille <akim@epita.fr> |
2044 | ||
2045 | * src/output.h, src/output.c (get_lines_number): Remove. | |
2046 | ||
3ded9a63 AD |
2047 | 2002-04-19 Akim Demaille <akim@epita.fr> |
2048 | ||
2049 | * doc/bison.texinfo (Actions): Make clear that `|' is not the same | |
2050 | as Lex/Flex'. | |
2051 | (Debugging): More details about enabling the debugging features. | |
2052 | (Table of Symbols): Describe $$, $n, @$, and @n. | |
2053 | Suggested by Tim Josling. | |
2054 | ||
e0c471a9 AD |
2055 | 2002-04-19 Akim Demaille <akim@epita.fr> |
2056 | ||
2057 | * doc/bison.texinfo: Remove the uses of the obsolete @refill. | |
2058 | ||
fecc10cd AD |
2059 | 2002-04-10 Akim Demaille <akim@epita.fr> |
2060 | ||
2061 | * src/system.h: Rely on HAVE_LIMITS_H. | |
2062 | Suggested by Paul Eggert. | |
2063 | ||
51dec47b AD |
2064 | 2002-04-09 Akim Demaille <akim@epita.fr> |
2065 | ||
2066 | * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the | |
2067 | full stderr, and strip it according to the bison options, instead | |
2068 | of composing the error message from different bits. | |
2069 | This makes it easier to check for several error messages. | |
2070 | Adjust all the invocations. | |
2071 | Add an invocation exercising the error token. | |
2072 | Add an invocation demonstrating a stupid error message. | |
2073 | (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0. | |
2074 | Adjust the tests. | |
2075 | Error message are for stderr, not stdout. | |
2076 | ||
007a50a4 AD |
2077 | 2002-04-09 Akim Demaille <akim@epita.fr> |
2078 | ||
2079 | * src/gram.h, src/gram.c (error_token_number): Remove, use | |
2080 | errtoken->number. | |
2081 | * src/reader.c (reader): Don't specify the user token number (2) | |
2082 | for $undefined, as it uselessly prevents using it. | |
2083 | * src/gram.h (token_number_t): Move to... | |
2084 | * src/symtab.h: here. | |
2085 | (state_t.number): Is a token_number_t. | |
2086 | * src/print.c, src/reader.c: Use undeftoken->number instead of | |
2087 | hard coded 2. | |
2088 | (Even though this 2 is not the same as above: the number of the | |
2089 | undeftoken remains being 2, it is its user token number which | |
2090 | might not be 2). | |
2091 | * src/output.c (prepare_tokens): Rename the `maxtok' muscle with | |
2092 | `user_token_number_max'. | |
2093 | Output `undef_token_number'. | |
2094 | * data/bison.simple, data/bison.c++: Use them. | |
2095 | Be sure to map invalid yylex return values to | |
2096 | `undef_token_number'. This saves us from gratuitous SEGV. | |
2097 | ||
2098 | * tests/conflicts.at (Solved SR Conflicts) | |
2099 | (Unresolved SR Conflicts): Adjust. | |
2100 | * tests/regression.at (Web2c Actions): Adjust. | |
2101 | ||
06446ccf AD |
2102 | 2002-04-08 Akim Demaille <akim@epita.fr> |
2103 | ||
2104 | * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/. | |
2105 | Adding #line. | |
2106 | Remove the duplicate `typedefs'. | |
2107 | (RhsNumberType): Fix the declaration and various other typos. | |
2108 | Use __ofile__. | |
2109 | * data/bison.simple: Use __ofile__. | |
2110 | * src/scan-skel.l: Handle __ofile__. | |
2111 | ||
62a3e4f0 AD |
2112 | 2002-04-08 Akim Demaille <akim@epita.fr> |
2113 | ||
2114 | * src/gram.h (item_number_t): New, the type of item numbers in | |
2115 | RITEM. Note that it must be able to code symbol numbers as | |
2116 | positive number, and the negation of rule numbers as negative | |
2117 | numbers. | |
2118 | Adjust all dependencies (pretty many). | |
2119 | * src/reduce.c (rule): Remove this `short *' pointer: use | |
2120 | item_number_t. | |
2121 | * src/system.h (MINSHORT, MAXSHORT): Remove. | |
2122 | Include `limits.h'. | |
2123 | Adjust dependencies to using SHRT_MAX and SHRT_MIN. | |
2124 | (shortcpy): Remove. | |
2125 | (MAXTABLE): Move to... | |
2126 | * src/output.c (MAXTABLE): here. | |
2127 | (prepare_rules): Use output_int_table to output rhs. | |
2128 | * data/bison.simple, data/bison.c++: Adjust. | |
2129 | * tests/torture.at (Big triangle): Move the limit from 254 to | |
2130 | 500. | |
2131 | * tests/regression.at (Web2c Actions): Ajust. | |
2132 | ||
2133 | Trying with bigger grammars shows various phenomena: at 3000 (28Mb | |
2134 | of grammar file) bison is killed by my system, at 2000 (12Mb) bison | |
2135 | passes, but produces negative #line number, once fixed, GCC is | |
2136 | killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of | |
2137 | C), it passes. | |
2138 | * src/state.h (state_h): Code input lines on ints, not shorts. | |
2139 | ||
bb88b0fc AD |
2140 | 2002-04-08 Akim Demaille <akim@epita.fr> |
2141 | ||
2142 | * src/reduce.c (reduce_grammar): First reduce the nonterminals, | |
2143 | and then the grammar. | |
2144 | ||
9a636f47 AD |
2145 | 2002-04-08 Akim Demaille <akim@epita.fr> |
2146 | ||
2147 | * src/system.h: No longer using strndup. | |
2148 | ||
680e8701 AD |
2149 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2150 | ||
2151 | * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New. | |
2152 | * src/output.c (output_table_data): Return the longest number. | |
2153 | (prepare_tokens): Output `token_number_max'). | |
2154 | * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type): | |
2155 | New. | |
2156 | Use them to define yy_token_number_type/TokenNumberType. | |
2157 | Use this type for yytranslate. | |
2158 | * tests/torture.at (Big triangle): Push the limit from 124 to | |
2159 | 253. | |
2160 | * tests/regression.at (Web2c Actions): Adjust. | |
2161 | ||
817e9f41 AD |
2162 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2163 | ||
2164 | * tests/torture.at (Big triangle): New. | |
2165 | (GNU AWK Grammar, GNU Cim Grammar): Move to... | |
2166 | * tests/existing.at: here. | |
2167 | ||
5123689b AD |
2168 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2169 | ||
2170 | * src/gram.h, src/gram.c (nitems): Remove, it is an alias of | |
2171 | nritems. | |
2172 | Adjust dependencies. | |
2173 | ||
f3849179 AD |
2174 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2175 | ||
2176 | * src/reader.c: Normalize increments to prefix form. | |
2177 | ||
bd02036a AD |
2178 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2179 | ||
2180 | * src/reader.c, symtab.c: Remove debugging code. | |
2181 | ||
db8837cb AD |
2182 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2183 | ||
2184 | Rename all the `bucket's as `symbol_t'. | |
2185 | ||
2186 | * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c, | |
2187 | * src/reader.c, src/reader.h, src/reduce.c, src/state.h, | |
2188 | * src/symtab.c, src/symtab.h (bucket): Rename as... | |
2189 | (symbol_t): this. | |
2190 | (symbol_list_new, bucket_check_defined, bucket_make_alias) | |
2191 | (bucket_check_alias_consistence, bucket_pack, bucket_translation) | |
2192 | (bucket_new, bucket_free, hash_compare_bucket, hash_bucket) | |
2193 | (buckets_new, buckets_free, buckets_do): Rename as... | |
2194 | (symbol_list_new, symbol_check_defined, symbol_make_alias) | |
2195 | (symbol_check_alias_consistence, symbol_pack, symbol_translation) | |
2196 | (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t) | |
2197 | (symbols_new, symbols_free, symbols_do): these. | |
2198 | ||
72a23c97 AD |
2199 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2200 | ||
2201 | Use lib/hash for the symbol table. | |
2202 | ||
2203 | * src/gram.c (ntokens): Initialize to 1, to reserve a slot for | |
2204 | EOF. | |
2205 | * src/lex.c (lex): Set the `number' member of new terminals. | |
2206 | * src/reader.c (bucket_check_defined, bucket_make_alias) | |
2207 | (bucket_check_alias_consistence, bucket_translation): New. | |
2208 | (reader, grammar_free, readgram, token_translations_init) | |
2209 | (packsymbols): Adjust. | |
2210 | (reader): Number the predefined tokens. | |
2211 | * src/reduce.c (inaccessable_symbols): Just use hard coded numbers | |
2212 | for predefined tokens. | |
2213 | * src/symtab.h (bucket): Remove all the hash table related | |
2214 | members. | |
2215 | * src/symtab.c (symtab): Replace by... | |
2216 | (bucket_table): this. | |
2217 | (bucket_new, bucket_free, hash_compare_bucket, hash_bucket) | |
2218 | (buckets_new, buckets_do): New. | |
2219 | ||
280a38c3 AD |
2220 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2221 | ||
2222 | * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems) | |
2223 | (start_symbol, max_user_token_number, semantic_parser) | |
2224 | (error_token_number): Initialize. | |
2225 | * src/reader.c (grammar, start_flag, startval, typed, lastprec): | |
2226 | Initialize. | |
2227 | (reader): Don't. | |
2228 | (errtoken, eoftoken, undeftoken, axiom): Extern. | |
2229 | ||
03b31c0c AD |
2230 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2231 | ||
2232 | * src/gram.h (rule_s): prec and precsym are now pointers | |
2233 | to the bucket giving the priority/associativity. | |
2234 | Member `associativity' removed: useless. | |
2235 | * src/reduce.c, src/conflicts.c: Adjust. | |
2236 | ||
8b3df748 AD |
2237 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2238 | ||
2239 | * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c: | |
2240 | Properly escape the symbols' TAG when outputting them. | |
2241 | ||
e601aa1d AD |
2242 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2243 | ||
2244 | * src/lalr.h (LA): Is a bitsetv, not bitset*. | |
2245 | ||
b0299a2e AD |
2246 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2247 | ||
2248 | * src/lalr.h, src/lalr.c (LAruleno): Replace with... | |
2249 | (LArule): this, which is an array to rule_t*. | |
2250 | * src/print.c, src/conflicts.c: Adjust. | |
2251 | ||
d7e1f00c AD |
2252 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2253 | ||
2254 | * src/gram.h (rule_t): Rename `number' as `user_number'. | |
2255 | `number' is a new member. | |
2256 | Adjust dependencies. | |
2257 | * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number. | |
2258 | ||
cc9305dd AD |
2259 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2260 | ||
2261 | As a result of the previous patch, it is no longer needed | |
2262 | to reorder ritem itself. | |
2263 | ||
2264 | * src/reduce.c (reduce_grammar_tables): Don't sort RITEM. | |
2265 | ||
b0940840 AD |
2266 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2267 | ||
2268 | Be sure never to walk through RITEMS, but use only data related to | |
2269 | the rules themselves. RITEMS should be banished. | |
2270 | ||
2271 | * src/output.c (output_token_translations): Rename as... | |
2272 | (prepare_tokens): this. | |
2273 | In addition to `translate', prepare the muscles `tname' and | |
2274 | `toknum', which were handled by... | |
2275 | (output_rule_data): this. | |
2276 | Remove, and move the remainder of its outputs into... | |
2277 | (prepare_rules): this new routines, which also merges content from | |
2278 | (output_gram): this. | |
2279 | (prepare_rules): Be sure never to walk through RITEMS. | |
2280 | (output_stos): Rename as... | |
2281 | (prepare_stos): this. | |
2282 | (output): Always invoke prepare_states, after all, just don't use it | |
2283 | in the output if you don't need it. | |
2284 | ||
643a5994 AD |
2285 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2286 | ||
2287 | * src/LR0.c (new_state): Display `nstates' as the name of the | |
2288 | newly created state. | |
2289 | Adjust to initialize first_state and last_state if needed. | |
2290 | Be sure to distinguish the initial from the final state. | |
2291 | (new_states): Create the itemset of the initial state, and use | |
2292 | new_state. | |
2293 | * src/closure.c (closure): Now that the initial state has its | |
2294 | items properly set, there is no need for a special case when | |
2295 | creating `ruleset'. | |
2296 | ||
2297 | As a result, now the rule 0, reducing to $axiom, is visible in the | |
2298 | outputs. Adjust the test suite. | |
2299 | ||
2300 | * tests/conflicts.at (Solved SR Conflicts) | |
2301 | (Unresolved SR Conflicts): Adjust. | |
2302 | * tests/regression.at (Web2c Report, Rule Line Numbers): Idem. | |
2303 | * tests/conflicts.at (S/R in initial): New. | |
2304 | ||
b4c4ccc2 AD |
2305 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2306 | ||
2307 | * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over | |
2308 | the RHS of the rules. | |
2309 | * src/output.c (output_gram): Likewise. | |
2310 | ||
bba97eb2 AD |
2311 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2312 | ||
2313 | * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's | |
2314 | bucket. | |
2315 | Adjust all dependencies. | |
2316 | * src/reduce.c (nonterminals_reduce): Don't forget to renumber the | |
2317 | `number' of the buckets too. | |
2318 | * src/gram.h: Include `symtab.h'. | |
2319 | (associativity): Move to... | |
2320 | * src/symtab.h: here. | |
2321 | No longer include `gram.h'. | |
2322 | ||
c3b407f4 AD |
2323 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2324 | ||
2325 | * src/gram.h, src/gram.c (rules_rhs_length): New. | |
2326 | (ritem_longest_rhs): Use it. | |
2327 | * src/gram.h (rule_t): `number' is a new member. | |
2328 | * src/reader.c (packgram): Set it. | |
2329 | * src/reduce.c (reduce_grammar_tables): Move the useless rules at | |
2330 | the end of `rules', and count them out of `nrules'. | |
2331 | (reduce_output, dump_grammar): Adjust. | |
2332 | * src/print.c (print_grammar): It is no longer needed to check for | |
2333 | the usefulness of a rule, as useless rules are beyond `nrules + 1'. | |
2334 | * tests/reduce.at (Reduced Automaton): New test. | |
2335 | ||
11652ab3 AD |
2336 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2337 | ||
2338 | * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a | |
2339 | lacking `+ 1' to nrules, Bison reported as useless a token if it | |
2340 | was used solely to set the precedence of the last rule... | |
2341 | ||
26b23c1a AD |
2342 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2343 | ||
2344 | * data/bison.c++, data/bison.simple: Don't output the current file | |
2345 | name in #line, to avoid useless diffs between two identical | |
2346 | outputs under different names. | |
2347 | ||
18bcecb0 AD |
2348 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2349 | ||
2350 | * src/closure.c, src/print.c, src/reader.c, src/reduce.c: | |
2351 | Normalize loops to using `< nrules + 1', not `<= nrules'. | |
2352 | ||
fa770c86 AD |
2353 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2354 | ||
2355 | * TODO: Update. | |
2356 | ||
d9b739c3 AD |
2357 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2358 | ||
2359 | * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename | |
2360 | bucket.value as bucket.number. | |
2361 | ||
99013900 AD |
2362 | 2002-04-07 Akim Demaille <akim@epita.fr> |
2363 | ||
2364 | * src/closure.c, src/derives.c, src/gram.h, src/lalr.c, | |
2365 | * src/nullable.c, src/output.c, src/print.c, src/print_graph.c, | |
2366 | * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the | |
2367 | RHS, instead of being an index in RITEMS. | |
2368 | ||
e966383b PE |
2369 | 2002-04-04 Paul Eggert <eggert@twinsun.com> |
2370 | ||
2371 | * doc/bison.texinfo: Update copyright date. | |
2372 | (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII. | |
2373 | (Symbols): Warn about running Bison in one character set, | |
2374 | but compiling and/or running in an incompatible one. | |
2375 | Warn about character code 256, too. | |
2376 | ||
2377 | 2002-04-03 Paul Eggert <eggert@twinsun.com> | |
2378 | ||
2379 | * src/bison.data (YYSTACK_ALLOC): Depend on whether | |
2380 | YYERROR_VERBOSE is nonzero, not whether it is defined. | |
2381 | ||
2382 | Merge changes from bison-1_29-branch. | |
c307773e | 2383 | |
8d6c48b9 PE |
2384 | 2002-03-20 Paul Eggert <eggert@twinsun.com> |
2385 | ||
2386 | Merge fixes from Debian bison_1.34-1.diff. | |
2387 | ||
2388 | * configure.in (AC_PREREQ): 2.53. | |
2389 | ||
e53c6322 AD |
2390 | 2002-03-20 Akim Demaille <akim@epita.fr> |
2391 | ||
2392 | * src/conflicts.c (log_resolution): Argument `resolution' is const. | |
2393 | ||
9ffbeca7 PE |
2394 | 2002-03-19 Paul Eggert <eggert@twinsun.com> |
2395 | ||
21db0b2a PE |
2396 | * src/bison.simple (YYCOPY): New macro. |
2397 | (YYSTACK_RELOCATE): Use it. | |
2398 | Remove Type arg; no longer needed. All callers changed. | |
2399 | (yymemcpy): Remove; no longer needed. | |
2400 | ||
9ffbeca7 PE |
2401 | * Makefile.am (AUTOMAKE_OPTIONS): 1.6. |
2402 | * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove. | |
2403 | ||
642cb8f8 AD |
2404 | 2002-03-19 Akim Demaille <akim@epita.fr> |
2405 | ||
2406 | Test and fix the #line outputs. | |
2407 | ||
2408 | * tests/atlocal.at (GCC): New. | |
2409 | * tests/synclines.at (AT_TEST_SYNCLINE): New macro. | |
2410 | (Prologue synch line, ,%union synch line, Postprologue synch line) | |
2411 | (Action synch line, Epilogue synch line): New tests. | |
2412 | * src/reader.c (parse_union_decl): Define the muscle stype_line. | |
2413 | * data/bison.simple, data/bison.c++: Use it. | |
2414 | ||
3c31a486 AD |
2415 | 2002-03-19 Akim Demaille <akim@epita.fr> |
2416 | ||
2417 | * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts) | |
2418 | (Solved SR Conflicts, %expect not enough, %expect right) | |
2419 | (%expect too much): Move to... | |
2420 | * tests/conflicts.at: this new file. | |
2421 | ||
0d8bed56 AD |
2422 | 2002-03-19 Akim Demaille <akim@epita.fr> |
2423 | ||
2424 | * data/m4sugar/m4sugar.m4: Update from CVS Autoconf. | |
2425 | * data/bison.simple, data/bison.c++: Handle the `#define' part, so | |
2426 | that we can move to enums for instance. | |
2427 | * src/output.c (token_definitions_output): Output a list of | |
2428 | `token-name, token-number' instead of the #define. | |
2429 | (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'. | |
2430 | ||
9208d17f AD |
2431 | 2002-03-14 Akim Demaille <akim@epita.fr> |
2432 | ||
2433 | Use Gettext 0.11.1. | |
2434 | ||
af27eacb RA |
2435 | 2002-03-09 Robert Anisko <robert@lrde.epita.fr> |
2436 | ||
2437 | * data/bison.c++: Make the user able to add members to the generated | |
2438 | parser by subclassing. | |
2439 | ||
9101a310 RA |
2440 | 2002-03-05 Robert Anisko <robert@lrde.epita.fr> |
2441 | ||
2442 | * src/reader.c (read_additionnal_code): `c' should be an integer, not | |
2443 | a character. | |
2444 | Reported by Nicolas Tisserand and Nicolas Burrus. | |
2445 | ||
fff9bf0b RA |
2446 | 2002-03-04 Robert Anisko <robert@lrde.epita.fr> |
2447 | ||
2448 | * src/reader.c: Warn about lacking semi-colons, do not complain. | |
2449 | ||
64dba31e RA |
2450 | 2002-03-04 Robert Anisko <robert@lrde.epita.fr> |
2451 | ||
2452 | * data/bison.c++: Remove a debug line. | |
2453 | ||
374f5a14 RA |
2454 | 2002-03-04 Robert Anisko <robert@lrde.epita.fr> |
2455 | ||
2456 | * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge | |
2457 | location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and | |
2458 | provide a default implementation. | |
2459 | ||
bfcf1f3a AD |
2460 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2461 | ||
2462 | * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'. | |
2463 | * tests/output.at (AT_CHECK_OUTPUT): Likewise. | |
2464 | * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto. | |
2465 | * tests/semantic.at (Parsing Guards): Similarly. | |
2466 | * src/reader.at (readgram): Complain if the last rule is not ended | |
2467 | with a semi-colon. | |
2468 | ||
65ccf9fc AD |
2469 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2470 | ||
2471 | * src/warshall.h, src/warshall.c (bitmatrix_print): Move to... | |
2472 | * src/closure.c: here. | |
2473 | (set_firsts): Use bitsetv_reflexive_transitive_closure instead of | |
2474 | RTC. | |
2475 | * src/warshall.h, src/warshall.c: Remove. | |
2476 | * tests/sets.at (Broken Closure): Adjust. | |
2477 | ||
d0039cbc AD |
2478 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2479 | ||
2480 | * src/output.c (output_skeleton): tempdir is const. | |
2481 | bytes_read is unused. | |
2482 | ||
345cea78 AD |
2483 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2484 | ||
2485 | * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c, | |
2486 | * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c: | |
2487 | Update. | |
2488 | From Michael Hayes. | |
2489 | ||
564801f7 AD |
2490 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2491 | ||
2492 | * src/closure.c (closure): `r' is unused. | |
2493 | ||
e5352bc7 AD |
2494 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2495 | ||
2496 | * tests/sets.at (Broken Closure): Add the ending `;'. | |
2497 | * src/reader.at (readgram): Complain if a rule is not ended with a | |
2498 | semi-colon. | |
2499 | ||
914feea9 AD |
2500 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2501 | ||
2502 | * src/conflicts.c (set_conflicts): Use bitset_disjoint_p. | |
2503 | (count_sr_conflicts): Use bitset_count. | |
2504 | * src/reduce.c (inaccessable_symbols): Ditto. | |
2505 | (bits_size): Remove. | |
2506 | * src/warshall.h, src/warshall.c: Convert to bitsetv. | |
2507 | ||
f0250de6 AD |
2508 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2509 | ||
2510 | * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c, | |
2511 | * src/reduce.c: Remove the `bitset_zero's following the | |
2512 | `bitset_create's, as now it is performed by the latter. | |
2513 | ||
ef017502 AD |
2514 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2515 | ||
2516 | * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h, | |
2517 | * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h, | |
2518 | * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the | |
2519 | latest sources from Michael. | |
2520 | ||
76514394 AD |
2521 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2522 | ||
2523 | * src/output.c (output): Don't free the grammar. | |
2524 | * src/reader.c (grammar_free): New. | |
2525 | * src/main.c (main): Call it and don't free symtab here. | |
2526 | ||
55024580 AD |
2527 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2528 | ||
2529 | * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer | |
2530 | before returning. | |
2531 | Reported by Benoit Perrot. | |
2532 | ||
f9abaa2c AD |
2533 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2534 | ||
2535 | Use bitset operations when possible, not loops over bits. | |
2536 | ||
2537 | * src/conflicts.c (set_conflicts, count_sr_conflicts): Use | |
2538 | bitset_or. | |
2539 | * src/print.c (print_reductions): Use bitset_and, bitset_andn. | |
2540 | * src/reduce.c (useless_nonterminals): Formatting changes. | |
2541 | * src/warshall.c (TC): Use bitset_or. | |
2542 | ||
0e721e75 AD |
2543 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2544 | ||
2545 | * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused. | |
2546 | * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET): | |
2547 | Ditto. | |
2548 | ||
0fb1ffb1 AD |
2549 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2550 | ||
2551 | * src/lalr.c (F): Now a bitset*. | |
2552 | Adjust all dependencies. | |
2553 | ||
b86796bf AD |
2554 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2555 | ||
2556 | * src/conflicts.c (shiftset, lookaheadset): Now bitset. | |
2557 | Adjust all dependencies. | |
2558 | ||
602bbf31 AD |
2559 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2560 | ||
2561 | * src/L0.c, src/LR0.h (nstates): Be size_t. | |
2562 | Adjust comparisons (signed vs unsigned). | |
2563 | * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a | |
2564 | bitset*. | |
2565 | Adjust all dependencies. | |
2566 | ||
d8a0245c AD |
2567 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2568 | ||
2569 | * src/closure.c (firsts): Now, also a bitset. | |
2570 | Adjust all dependencies. | |
2571 | (varsetsize): Remove, now unused. | |
2572 | * src/warshall.h, src/warshall.c: Now work on arrays of bitsets. | |
2573 | ||
34ba9743 AD |
2574 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2575 | ||
2576 | * src/print.c: Convert to use bitset.h, not hand coded iterations | |
2577 | over ints. | |
2578 | ||
ed86e78c AD |
2579 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2580 | ||
2581 | * src/reduce.c: Convert to use bitset.h, not hand coded BSet. | |
2582 | ||
dfdb1797 AD |
2583 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2584 | ||
2585 | * src/closure.c (ruleset): Be a bitset. | |
2586 | (rulesetsize): Remove. | |
2587 | ||
7086e707 AD |
2588 | 2002-03-04 Akim Demaille <akim@epita.fr> |
2589 | ||
2590 | * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c, | |
2591 | * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, | |
2592 | * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New. | |
2593 | * src/closure.c (fderives): Be an array of bitsets. | |
2594 | ||
98254360 RA |
2595 | 2002-02-28 Robert Anisko <robert@lrde.epita.fr> |
2596 | ||
2597 | * data/bison.c++: Merge the two generated headers. Insert a copyright | |
2598 | notice in each output file. | |
2599 | ||
a75c057f AD |
2600 | 2002-02-28 Akim Demaille <akim@epita.fr> |
2601 | ||
2602 | * data/bison.c++: Copy the prologue of bison.simple to fetch | |
2603 | useful M4 definitions, such as b4_header_guard. | |
2604 | ||
06b00abc AD |
2605 | 2002-02-25 Akim Demaille <akim@epita.fr> |
2606 | ||
2607 | * src/getargs.c (version): Give the name of the authors, and use a | |
a75c057f AD |
2608 | translator friendly scheme for the bgr |
2609 | copyright notice. | |
06b00abc | 2610 | |
70e7d534 AD |
2611 | 2002-02-25 Akim Demaille <akim@epita.fr> |
2612 | ||
2613 | * src/output.c (header_output): Remove, now handled completely via | |
2614 | M4. | |
2615 | ||
abe017f6 AD |
2616 | 2002-02-25 Akim Demaille <akim@epita.fr> |
2617 | ||
2618 | * m4/m4.m4: New, from CVS Autoconf. | |
2619 | * configure.in: Invoke it. | |
2620 | * src/output.c (output_skeleton): Use its result instead of the | |
2621 | hard coded name. | |
2622 | ||
381fb12e AD |
2623 | 2002-02-25 Akim Demaille <akim@epita.fr> |
2624 | ||
2625 | * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from | |
2626 | Fileutils 4.1.5. | |
2627 | * configure.in: Invoke UTILS_FUNC_MKSTEMP. | |
2628 | * src/output.c (output_skeleton): Use mkstemp to create a real | |
2629 | temporary file. | |
2630 | Move the filling of `skeleton' and its muscle to... | |
2631 | (prepare): here. | |
2632 | (output): Move the definition of the prologue muscle to... | |
2633 | (prepare): here. | |
2634 | * src/system.h (DEFAULT_TMPDIR): New. | |
2635 | ||
6f38107f PE |
2636 | 2002-02-14 Paul Eggert <eggert@twinsun.com> |
2637 | ||
2638 | Remove the support for C++ namespace cleanliness; it was | |
2639 | causing more problems than it was curing, since it didn't work | |
2640 | properly on some nonstandard C++ compilers. This can wait | |
2641 | for a proper C++ parser. | |
2642 | ||
2643 | * NEWS: Document this. | |
2644 | * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention | |
2645 | of C++, as it's treated like C now. | |
2646 | * src/bison.simple (YYSTD): Remove. | |
2647 | (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL): | |
2648 | Treat C++ just like Standard C instead of trying to support | |
2649 | namespace cleanliness. | |
2650 | ||
80cce3da AD |
2651 | 2002-02-14 Akim Demaille <akim@epita.fr> |
2652 | ||
2653 | * tests/regression.at (else): Adjust to Andreas' change. | |
2654 | ||
842e8679 AD |
2655 | 2002-02-14 Akim Demaille <akim@epita.fr> |
2656 | ||
2657 | * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c. | |
2658 | ||
4bda3f10 AD |
2659 | 2002-02-13 Andreas Schwab <schwab@suse.de> |
2660 | ||
2661 | * src/output.c (output_rule_data): Don't output NULL, it might | |
2662 | not be defined yet. | |
2663 | ||
4162fa07 | 2664 | 2002-02-11 Robert Anisko <robert@lrde.epita.fr> |
b418ecd8 | 2665 | |
4162fa07 RA |
2666 | * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue. |
2667 | (Copyright notice): Update. | |
b418ecd8 | 2668 | |
bd16a5dc AD |
2669 | 2002-02-11 Akim Demaille <akim@epita.fr> |
2670 | ||
2671 | * tests/regression.at (%nonassoc and eof): Don't include | |
2672 | nonportable headers. | |
2673 | ||
8d69a1a3 RA |
2674 | 2002-02-08 Robert Anisko <robert@lrde.epita.fr> |
2675 | ||
2676 | * data/bison.c++: Correct error recovery. Make the user able to | |
2677 | initialize the starting location. | |
2678 | ||
9b2d0677 AD |
2679 | 2002-02-07 Akim Demaille <akim@epita.fr> |
2680 | ||
2681 | * tests/input.at: New. | |
2682 | ||
69e2658b RA |
2683 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
2684 | ||
2685 | * data/bison.c++: Replace some direct m4 expansions by constants. Be | |
9b2d0677 | 2686 | more consistent when naming methods and variables. Put preprocessor |
69e2658b RA |
2687 | directives around tables only needed for debugging. |
2688 | ||
4aacc3a7 RA |
2689 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
2690 | ||
2691 | * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in | |
2692 | C++ parsers. | |
2693 | (yy::b4_name::parse): Use print_. | |
2694 | ||
762a801e RA |
2695 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
2696 | ||
2697 | * data/bison.c++ (yy::b4_name::parse): Error recovery is back. | |
2698 | ||
4bb2bc3f RA |
2699 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
2700 | ||
2701 | * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in | |
2702 | C++ parsers. | |
2703 | (yy::b4_name::parse): Build verbose error messages, and use error_. | |
2704 | ||
6b45a3ca RA |
2705 | 2002-02-06 Robert Anisko <robert@lrde.epita.fr> |
2706 | ||
2707 | * data/bison.c++: Fix m4 quoting in comments. | |
2708 | ||
50997c6e RA |
2709 | 2002-02-06 Robert Anisko <robert@lrde.epita.fr> |
2710 | ||
2711 | * data/bison.c++: Adjust the parser code. Fix some muscles that were | |
2712 | not expanded by m4. | |
2713 | ||
3f3eed27 AD |
2714 | 2002-02-05 Akim Demaille <akim@epita.fr> |
2715 | ||
2716 | * data/bison.c++: Adjust to the M4 back end. | |
2717 | More is certainly needed. | |
2718 | ||
be2a1a68 AD |
2719 | 2002-02-05 Akim Demaille <akim@epita.fr> |
2720 | ||
2721 | Give a try to M4 as a back end. | |
2722 | ||
2723 | * lib/readpipe.c: New, from wdiff. | |
2724 | * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and | |
2725 | BISON_HAIRY. | |
2726 | * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS | |
2727 | specific values. Now it is m4 that performs the lookup. | |
2728 | * src/parse-skel.y: Remove. | |
2729 | * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New. | |
2730 | * src/output.c (actions_output, guards_output) | |
2731 | (token_definitions_output): No longer keeps track of the output | |
2732 | line number, hence remove the second argument. | |
2733 | (guards_output): Check against the guard member of a rule, not the | |
2734 | action member. | |
2735 | Adjust callers. | |
2736 | (output_skeleton): Don't look for the skeleton location, let m4 do | |
2737 | that. | |
2738 | Create `/tmp/muscles.m4'. This is temporary, a proper temporary | |
2739 | file will be used. | |
2740 | Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton. | |
2741 | (prepare): Given that for the time being changesyntax is not | |
2742 | usable in M4, rename the muscles using `-' to `_'. | |
2743 | Define `defines_flag', `output_parser_name' and `output_header_name'. | |
2744 | * src/output.h (actions_output, guards_output) | |
2745 | (token_definitions_output): Adjust prototypes. | |
2746 | * src/scan-skel.l: Instead of scanning the skeletons, it now | |
2747 | processes the output of m4: `__oline__' and `#output'. | |
2748 | * data/bison.simple: Adjust to be used by M4(sugar). | |
2749 | * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up | |
2750 | to date. | |
2751 | * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR' | |
2752 | instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'. | |
2753 | * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New, | |
2754 | shamelessly stolen from CVS Autoconf. | |
2755 | ||
beda758b AD |
2756 | 2002-02-05 Akim Demaille <akim@epita.fr> |
2757 | ||
2758 | * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version. | |
2759 | * configure.in: Check for the declarations of free and malloc. | |
2760 | * src/muscle_tab.c: Adjust. | |
2761 | ||
5ece6d43 AD |
2762 | 2002-02-05 Akim Demaille <akim@epita.fr> |
2763 | ||
2764 | * src/muscle_tab.c (muscle_init): Don't default to NULL muscle | |
2765 | which have no values. | |
2766 | ||
5bb18f9a AD |
2767 | 2002-02-05 Akim Demaille <akim@epita.fr> |
2768 | ||
2769 | * src/bison.simple, src/bison.hairy, src/bison.c++: Move to... | |
2770 | * data/: here. | |
2771 | ||
894dd62e PE |
2772 | 2002-01-29 Paul Eggert <eggert@twinsun.com> |
2773 | ||
2774 | * src/bison.simple (YYSIZE_T): Do not define merely because | |
2775 | YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined. | |
2776 | On some platforms, <alloca.h> does not declare YYSTD (size_t). | |
2777 | ||
82841af7 AD |
2778 | 2002-01-27 Akim Demaille <akim@epita.fr> |
2779 | ||
2780 | Fix `%nonassoc and eof'. | |
2781 | ||
2782 | * src/state.c (errs_dup): Aaaah! The failure was due to bytes | |
2783 | which were not properly copied! Replace | |
2784 | memcpy (res->errs, src->errs, src->nerrs); | |
2785 | with | |
2786 | memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0])); | |
2787 | !!! | |
2788 | * tests/regression.at (%nonassoc and eof): Adjust to newest | |
2789 | Autotest: `.' is not in the PATH. | |
2790 | ||
318b76e9 AD |
2791 | 2002-01-27 Akim Demaille <akim@epita.fr> |
2792 | ||
2793 | * tests/sets.at (AT_EXTRACT_SETS): New. | |
2794 | (Nullable): Use it. | |
2795 | (Firsts): New. | |
2796 | ||
30d2f3d5 AD |
2797 | 2002-01-26 Akim Demaille <akim@epita.fr> |
2798 | ||
2799 | * tests/actions.at, tests/calc.at, tests/headers.at, | |
2800 | * tests/torture.at: Adjust to the newest Autotest which no longer | |
2801 | forces `.' in the PATH. | |
2802 | ||
30f8c395 AD |
2803 | 2002-01-25 Akim Demaille <akim@epita.fr> |
2804 | ||
2805 | * tests/regression.at (%nonassoc and eof): New. | |
2806 | Suggested by Robert Anisko. | |
2807 | ||
29ae55f1 AD |
2808 | 2002-01-24 Akim Demaille <akim@epita.fr> |
2809 | ||
2810 | Bison dumps core when trying to complain about broken input files. | |
2811 | Reported by Cris van Pelt. | |
2812 | ||
2813 | * src/lex.c (parse_percent_token): Be sure to set token_buffer. | |
2814 | * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge | |
2815 | into... | |
2816 | (Invalid inputs): Strengthen: exercise parse_percent_token. | |
2817 | ||
2b548aa6 RA |
2818 | 2002-01-24 Robert Anisko <robert.anisko@epita.fr> |
2819 | ||
2820 | * src/Makefile.am: Add bison.c++. | |
2821 | * src/bison.c++: New skeleton. | |
2822 | ||
bb0146c2 AD |
2823 | 2002-01-21 Paolo Bonzini <bonzini@gnu.org> |
2824 | ||
2825 | * po/it.po: New. | |
2826 | ||
bec30531 AD |
2827 | 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net> |
2828 | ||
2829 | * src/files.c (skeleton_find) [MSDOS]: Fix cp definition. | |
2830 | ||
fc6edc45 MA |
2831 | 2002-01-20 Marc Autret <marc@gnu.org> |
2832 | ||
2833 | * src/files.c (compute_output_file_names): Fix | |
2834 | ||
5e5d5415 MA |
2835 | 2002-01-20 Marc Autret <marc@gnu.org> |
2836 | ||
2837 | * tests/output.at: New test. | |
2838 | * src/files.c (compute_base_names): Don't map extensions when | |
2839 | the YACC flag is set, use defaults. | |
2840 | Reported by Evgeny Stambulchik. | |
2841 | ||
44ea3fbd MA |
2842 | 2002-01-20 Marc Autret <marc@gnu.org> |
2843 | ||
bb0146c2 | 2844 | * src/system.h: Need to define __attribute__ away for non-GCC |
44ea3fbd MA |
2845 | compilers as well (i.e. the vendor C compiler). |
2846 | Suggested by Albert Chin-A-Young. | |
2847 | ||
338963d1 TVH |
2848 | 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be> |
2849 | ||
2850 | * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the | |
2851 | canonical definition. | |
2852 | * src/system.h: Use the canonical definition for PARAMS (avoids | |
2853 | a conflict with the macro from lib/hash.h). | |
2854 | ||
c57b2479 AD |
2855 | 2002-01-11 Akim Demaille <akim@epita.fr> |
2856 | ||
2857 | * configure.in: Use AC_FUNC_STRNLEN. | |
d9e9746c | 2858 | Fixes the failures observed on AIX 4.3 by H.Merijn Brand. |
c57b2479 | 2859 | |
b85810ae AD |
2860 | 2002-01-09 Akim Demaille <akim@epita.fr> |
2861 | ||
2862 | * src/files.c, src/files.h (output_infix): New. | |
2863 | (tab_extension): Remove. | |
2864 | (compute_base_names): Compute the former, drop the latter. | |
2865 | * src/output.c (prepare): Insert the muscles `output-infix', and | |
2866 | `output-suffix'. | |
2867 | * src/parse-skel.y (string, string.1): New. | |
2868 | (section.header): Use it. | |
2869 | (section.yacc): Remove. | |
2870 | (prefix): Remove too. | |
2871 | * src/scan-skel.l: Adjust. | |
2872 | * src/bison.simple, src/bison.hairy: Adjust. | |
2873 | ||
cae60122 AD |
2874 | 2002-01-09 Akim Demaille <akim@epita.fr> |
2875 | ||
2876 | * configure.in (WERROR_CFLAGS): Compute it. | |
2877 | * src/Makefile.am (CFLAGS): Pass it. | |
2878 | * tests/atlocal.in (CFLAGS): Idem. | |
2879 | * src/files.c: Fix a few warnings. | |
2880 | (get_extension_index): Remove, unused. | |
2881 | ||
ae404801 AD |
2882 | 2002-01-08 Akim Demaille <akim@epita.fr> |
2883 | ||
2884 | * src/getargs.c (AS_FILE_NAME): New. | |
2885 | (getargs): Use it to convert DOSish file names. | |
2886 | * src/files.c (base_name): Rename as full_base_name to avoid | |
2887 | clashes with `base_name ()'. | |
2888 | (filename_split): New. | |
2889 | (compute_base_names): N-th rewrite, using filename_split. | |
2890 | ||
22312b71 AD |
2891 | 2002-01-08 Akim Demaille <akim@epita.fr> |
2892 | ||
2893 | * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c: | |
2894 | New, stolen from the Fileutils 4.1. | |
2895 | * lib/Makefile.am (libbison_a_SOURCES): Adjust. | |
2896 | * configure.in: Check for the presence of memrchr, and of its | |
2897 | prototype. | |
2898 | ||
a67cef01 TVH |
2899 | 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be> |
2900 | ||
2901 | * lib/hash.h (__P): Added definition for this macro. | |
2902 | * src/Makefile.am: Add parse-skel.c and scan-skel.c to | |
2903 | BUILT_SOURCES, to ensure they are generated first. | |
2904 | * src/parse-skel.y: Use YYERROR_VERBOSE instead of | |
2905 | %error-verbose to allow bootstrapping with bison 1.30x. | |
2906 | ||
2b25d624 AD |
2907 | 2002-01-06 Akim Demaille <akim@epita.fr> |
2908 | ||
2909 | * src/reader.c (parse_braces): Don't fetch the next char, the | |
2910 | convention is to fetch on entry. | |
2911 | * tests/torture.at (GNU Cim Grammar): Reintroduce their weird | |
2912 | 'switch' without a following semicolon. | |
2913 | * tests/regression.at (braces parsing): New. | |
2914 | ||
3460813b AD |
2915 | 2002-01-06 Akim Demaille <akim@epita.fr> |
2916 | ||
2917 | Bison is dead wrong in its RR conflict reports. | |
2918 | ||
2919 | * tests/torture.at (GNU Cim Grammar): New. | |
2920 | * src/conflicts.c (count_rr_conflicts): Fix. | |
2921 | ||
73784c64 AD |
2922 | 2002-01-06 Akim Demaille <akim@epita.fr> |
2923 | ||
2924 | Creating package.m4 from configure.ac causes too many problems. | |
2925 | ||
2926 | * tests/Makefile.am (package.m4): Create it by hand, | |
2927 | AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf. | |
2928 | ||
25d81090 AD |
2929 | 2002-01-06 Akim Demaille <akim@epita.fr> |
2930 | ||
2931 | * src/Makefile.am (bison_SOURCES): Add parse-skel.h and | |
2932 | skeleton.h. | |
2933 | ||
a9b8959e PE |
2934 | 2002-01-04 Paul Eggert <eggert@twinsun.com> |
2935 | ||
2936 | * doc/bison.texinfo (Debugging): | |
2937 | Remove YYSTDERR; it's no longer defined or used. | |
2938 | Also, s/cstdio.h/cstdio/. | |
2939 | ||
25d81090 AD |
2940 | 2002-01-03 Akim Demaille <akim@epita.fr> |
2941 | ||
2942 | * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf. | |
2943 | ||
1109455c AD |
2944 | 2002-01-03 Akim Demaille <akim@epita.fr> |
2945 | ||
2946 | * src/parse-skel.y (process_skeleton): Don't bind the parser's | |
2947 | tracing code to --trace, wait for a better --trace option, with | |
2948 | args. | |
2949 | ||
7ea5e977 AD |
2950 | 2002-01-03 Akim Demaille <akim@epita.fr> |
2951 | ||
2952 | * src/bison.simple (YYSTDERR): Remove, replace `stderr'. | |
2953 | The ISO C++ standard is extremely clear about it: stderr is | |
2954 | considered a macro, not a regular symbol (see table 94 `Header | |
2955 | <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files). | |
2956 | Therefore std:: does not apply to it. It still does with fprintf. | |
2957 | Also, s/cstdio.h/cstdio/. | |
2958 | ||
fab5b110 AD |
2959 | 2002-01-03 Akim Demaille <akim@epita.fr> |
2960 | ||
2961 | * lib/quotearg.c: Use `#include "..."' instead of `#include <...>' | |
2962 | for non system headers. | |
2963 | ||
aed7fd9b AD |
2964 | 2002-01-02 Akim Demaille <akim@epita.fr> |
2965 | ||
2966 | Equip the skeleton chain with location tracking, runtime trace, | |
2967 | pure parser and scanner. | |
2968 | ||
2969 | * src/parse-skel.y: Request a pure parser, locations, and prefix | |
2970 | renaming. | |
2971 | (%union): Having several members with the same type does not help | |
2972 | type mismatches, simplify. | |
2973 | (YYPRINT, yyprint): New. | |
2974 | (yyerror): ``Rename'' (there is a #define yyerror skel_error) as... | |
2975 | (skel_error): this. | |
2976 | Handle locations. | |
2977 | * src/scan-skel.l: Adjust to these changes. | |
2978 | * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP) | |
2979 | (LOCATION_PRINT, skel_control_t): New. | |
2980 | ||
24fad99e AD |
2981 | 2001-12-30 Akim Demaille <akim@epita.fr> |
2982 | ||
2983 | * src/parse-skel.y: Get rid of the shift/reduce conflict: | |
2984 | replace `gb' with BLANKS. | |
2985 | * src/scan-skel.l: Adjust. | |
2986 | ||
a4b36db4 AD |
2987 | 2001-12-30 Akim Demaille <akim@epita.fr> |
2988 | ||
2989 | * src/system.h: We don't need nor want bcopy. | |
2990 | Throw away MS-DOS crap: we don't need getpid. | |
2991 | * configure.in: We don't need strndup. It was even causing | |
2992 | problems: because Flex includes the headers *before* us, | |
2993 | _GNU_SOURCE is not defined by config.h, and therefore strndup was | |
2994 | not visible. | |
2995 | * lib/xstrndup.c: New. | |
2996 | * src/scan-skel.l: Use it. | |
2997 | Be sure to initialize yylval.muscle member when scanning a MUSCLE. | |
2998 | * src/parse-skel.y: Use %directives instead of #defines. | |
2999 | ||
1239777d AD |
3000 | 2001-12-30 Akim Demaille <akim@epita.fr> |
3001 | ||
3002 | * src/skeleton.h: New. | |
3003 | * src/output.c (output_parser, output_master_parser): Remove, dead | |
3004 | code. | |
3005 | * src/output.h (get_lines_number, actions_output, guards_output) | |
3006 | (token_definitions_output): Prototype them. | |
3007 | * src/parse-skel.y: Add the license notice. | |
3008 | Include output.h and skeleton.h. | |
3009 | (process_skeleton): Returns void, and takes a single parameter. | |
3010 | * src/scan-skel.l: Add the license notice. | |
3011 | Include skeleton.h. | |
3012 | Don't use %option yylineno: it seems that then Flex imagines | |
3013 | REJECT has been used, and therefore it won't reallocate its | |
3014 | buffers (which makes no other sense to me than a bug). It results | |
3015 | in warnings for `unused: yy_flex_realloc'. | |
3016 | ||
9b3add5b RA |
3017 | 2001-12-30 Robert Anisko <robert.anisko@epita.fr> |
3018 | ||
3019 | * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING) | |
3020 | (MUSCLE_INSERT_PREFIX): ...to there. | |
3021 | * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING) | |
3022 | (MUSCLE_INSERT_PREFIX): Move from here... | |
3023 | ||
3024 | * src/bison.hairy: Add a section directive. Put braces around muscle | |
3025 | names. This parser skeleton is still broken, but Bison should not | |
3026 | choke on a bad muscle 'syntax'. | |
3027 | * src/bison.simple: Add a section directive. Put braces around muscle | |
3028 | names. | |
3029 | ||
3030 | * src/files.h (strsuffix, stringappend): Add declarations. | |
3031 | (tab_extension): Add declaration. | |
3032 | (short_base_name): Add declaration. | |
3033 | ||
3034 | * src/files.c (strsuffix, stringappend): No longer static. These | |
3035 | functions are used in the skeleton parser. | |
3036 | (tab_extension): New. | |
3037 | (compute_base_names): Use the computations done in this function | |
fab5b110 | 3038 | to guess if the generated parsers should have '.tab' in their |
9b3add5b RA |
3039 | names. |
3040 | (short_base_name): No longer static. | |
3041 | ||
3042 | * src/output.c (output_skeleton): New. | |
3043 | (output): Disable call to output_master_parser, and give a try to | |
3044 | a new skeleton handling system. | |
3045 | (guards_output, actions_output): No longer static. | |
3046 | (token_definitions_output, get_lines_number): No longer static. | |
3047 | ||
3048 | * configure.in: Use AM_PROG_LEX and AC_PROG_YACC. | |
3049 | ||
fab5b110 | 3050 | * src/Makefile.am (bison_SOURCES): Add scan-skel.l and |
9b3add5b RA |
3051 | parse-skel.y. |
3052 | ||
3053 | * src/parse-skel.y: New file. | |
3054 | * src/scan-skel.l: New file. | |
3055 | ||
b5b61c61 AD |
3056 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3057 | ||
3058 | %name-prefix is broken. | |
3059 | ||
3060 | * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy". | |
3061 | Adjust all dependencies. | |
3062 | * tests/headers.at (export YYLTYPE): Strengthen this test: use | |
3063 | %name-prefix. | |
3064 | ||
3065 | Renaming yylval but not yylloc is not consistent. Now we do. | |
3066 | ||
3067 | * src/bison.simple: Prefix yylloc if used. | |
3068 | * doc/bison.texinfo (Decl Summary): Document that. | |
3069 | ||
8c9a50be AD |
3070 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3071 | ||
3072 | * doc/bison.texinfo: Promote `%long-directive' over | |
3073 | `%long_directive'. | |
3074 | Remove all references to fixed-output-files, yacc is enough. | |
3075 | ||
d99361e6 AD |
3076 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3077 | ||
3078 | * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the | |
3079 | user prologue. These are defaults. | |
3080 | * tests/actions.at (Mid-rule actions): Make sure the user can | |
3081 | define YYDEBUG and YYERROR_VERBOSE. | |
3082 | ||
b9cecb91 AD |
3083 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3084 | ||
3085 | * src/output.c (header_output): Don't forget to export YYLTYPE and | |
3086 | yylloc. | |
3087 | * tests/headers.at (export YYLTYPE): New, make sure it does. | |
3088 | * tests/regression.at (%union and --defines, Invalid CPP headers): | |
3089 | Move to... | |
3090 | * tests/headers.at: here. | |
3091 | ||
aea13e97 AD |
3092 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3093 | ||
3094 | * src/gram.h (rule_s): Member `assoc' is of type `associativity'. | |
3095 | ||
931394cb AD |
3096 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3097 | ||
3098 | * tests/actions.at (Mid-rule actions): Output on a single line | |
3099 | instead of several. | |
3100 | ||
704a47c4 AD |
3101 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3102 | ||
3103 | * doc/bison.texinfo: Formatting changes. | |
3104 | ||
091e20bb AD |
3105 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3106 | ||
3107 | Don't store the token defs in a muscle, just be ready to output it | |
3108 | on command. Now possible via `symbols'. Fixes a memory leak. | |
3109 | ||
3110 | * src/output.c (token_definitions_output): New. | |
3111 | (output_parser, header_output): Use it. | |
3112 | * src/reader.c (symbols_save): Remove. | |
3113 | ||
cce71710 AD |
3114 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3115 | ||
3116 | * src/bison.simple: Do not provide a default for YYSTYPE and | |
3117 | YYLTYPE before the user's prologue. Otherwise it's hardly... a | |
3118 | default. | |
3119 | ||
82c035a8 AD |
3120 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3121 | ||
3122 | Mid-rule actions are simply... ignored! | |
3123 | ||
3124 | * src/reader.c (readgram): Be sure to attach mid-rule actions to | |
3125 | the empty-rule associated to the dummy symbol, not to the host | |
3126 | rule. | |
3127 | * tests/actions.at (Mid-rule actions): New. | |
3128 | ||
8419d367 AD |
3129 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3130 | ||
3131 | Memory leak. | |
3132 | ||
3133 | * src/reader.c (reader): Free grammar. | |
3134 | ||
375d5806 AD |
3135 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3136 | ||
3137 | Memory leak. | |
3138 | ||
3139 | * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here, | |
3140 | since it allocates it for each state, although only one is needed. | |
3141 | (allocate_storage): Do it here. | |
3142 | ||
f51cb8ff AD |
3143 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3144 | ||
3145 | * src/options.h, src/options.c (create_long_option_table): Rename | |
3146 | as... | |
3147 | (long_option_table_new): this, with a clearer prototype. | |
3148 | (percent_table): Remove, unused, | |
3149 | * src/getargs.c (getargs): Adjust. | |
3150 | ||
29e88316 AD |
3151 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3152 | ||
3153 | * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c | |
3154 | * src/print.c, src/print_graph.c, src/state.h: Rename state_table | |
3155 | as states. | |
3156 | ||
b9f71f19 AD |
3157 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3158 | ||
3159 | * src/lalr.c (build_relations): Rename `states' as `states1'. | |
3160 | Sorry, I don't understand exactly what it is, no better name... | |
3161 | ||
1a2b5d37 AD |
3162 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3163 | ||
3164 | * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c | |
3165 | * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c | |
3166 | * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table | |
3167 | as rules. | |
3168 | ||
1cca533e AD |
3169 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3170 | ||
3171 | * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long | |
3172 | ago. | |
3173 | ||
c03ae966 AD |
3174 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3175 | ||
3176 | * src/reader.c, src/reader.h (user_toknums): Remove. | |
3177 | Adjust all users to use symbols[i]->user_token_number. | |
3178 | ||
5a670b1e AD |
3179 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3180 | ||
3181 | * src/gram.c, src/gram.h (sprec, sassoc): Remove. | |
3182 | Adjust all users to use symbols[i]->prec or ->assoc. | |
3183 | ||
ad949da9 AD |
3184 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3185 | ||
3186 | * src/reader.c, src/reader.h (tags): Remove. | |
3187 | Adjust all users to use symbols[i]->tag. | |
3188 | ||
0e78e603 AD |
3189 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3190 | ||
3191 | * src/gram.h, src/gram.c (symbols): New, similar to state_table | |
3192 | and rule_table. | |
3193 | * src/reader.c (packsymbols): Fill this table. | |
3194 | Drop sprec. | |
3195 | * src/conflicts.c (resolve_sr_conflict): Adjust. | |
3196 | * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a | |
3197 | single table. | |
3198 | Use symbols[i]->tag instead of tags[i]. | |
3199 | ||
213e640e AD |
3200 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3201 | ||
3202 | * tests/calc.at (_AT_DATA_CALC_Y): Also use %union. | |
3203 | In addition, put a comment in there, to replace... | |
3204 | * tests/regression.at (%union and C comments): Remove. | |
3205 | ||
e7b8bef1 AD |
3206 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3207 | ||
3208 | * tests/regression.at (Web2c Actions): Blindly move the actual | |
3209 | output as expected output. The contents *seem* right to me, but I | |
3210 | can't pretend reading perfectly parser tables... Nonetheless, all | |
3211 | the other tests pass correctly, the table look OK, even though the | |
3212 | presence of `$axiom' is to be noted: AFAICS it is useless (but | |
3213 | harmless). | |
3214 | ||
b68e7744 AD |
3215 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3216 | ||
3217 | * src/reader.c (readgram): Don't add the rule 0 if there were no | |
3218 | rules read. In other words, add it _after_ having performed | |
3219 | grammar sanity checks. | |
3220 | Fixes the `tests/regression.at (Invalid input: 1)' Failure. | |
3221 | ||
78d5bae9 AD |
3222 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3223 | ||
3224 | * tests/regression.at (Web2c Report): Catch up: the rule 0 is now | |
3225 | visible, and some states have now a different number. | |
3226 | ||
ff442794 AD |
3227 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3228 | ||
3229 | * src/reader.c (readgram): Bind the initial rule's lineno to that | |
3230 | of the first rule. | |
3231 | * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts): | |
3232 | (Solved SR Conflicts): Adjust rule 0's line number. | |
3233 | ||
610ab194 AD |
3234 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3235 | ||
3236 | Fix the `GAWK Grammar' failure. | |
3237 | ||
3238 | * src/LR0.c (final_state): Initialize to -1 so that we do compute | |
3239 | the reductions of the first state which was mistakenly confused | |
3240 | with the final state because precisely final_state was initialized | |
3241 | to 0. | |
3242 | * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads, | |
3243 | now noticed by Bison. | |
3244 | * tests/regression.at (Rule Line Numbers): Adjust: state 0 does | |
3245 | have a reduction on $default. | |
3246 | ||
29d29c8f AD |
3247 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3248 | ||
3249 | * src/gram.c (ritem_print): Be sure to subtract 1 when displaying | |
3250 | rule line numbers. | |
3251 | * src/closure.c (print_closure): Likewise. | |
3252 | * src/derives.c (print_derives): Likewise. | |
3253 | * tests/sets.at (Nullable): Adjust: the rule numbers are correct | |
3254 | now. | |
3255 | ||
7c6b64d0 AD |
3256 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3257 | ||
3258 | * src/lalr.c (lookaheads_print): New. | |
3259 | (lalr): Call it when --trace-flag. | |
3260 | * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads | |
3261 | are dumped. | |
3262 | ||
3d4daee3 AD |
3263 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3264 | ||
3265 | * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0', | |
3266 | when walking through ritem, even via rule->rhs. | |
3267 | * src/reduce.c (dump_grammar, useful_production, reduce_output) | |
3268 | (useful_production, useless_nonterminals): Likewise. | |
3269 | (reduce_grammar_tables): Likewise, plus update nritems. | |
3270 | * src/nullable.c (set_nullable): Likewise. | |
3271 | * src/lalr.c (build_relations): Likewise. | |
3272 | * tests/sets.at (Nullable): Adjust. | |
3273 | Fortunately, now, the $axiom is no longer nullable. | |
3274 | ||
9e7f6bbd AD |
3275 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3276 | ||
3277 | * src/LR0.c (generate_states): Use nritems, not nitems, nor using | |
3278 | the 0-sentinel. | |
3279 | * src/gram.c (ritem_longest_rhs): Likewise. | |
3280 | * src/reduce.c (nonterminals_reduce): Likewise. | |
3281 | * src/print_graph.c (print_graph): Likewise. | |
3282 | * src/output.c (output_rule_data): Likewise. | |
3283 | * src/nullable.c (set_nullable): Likewise. | |
3284 | ||
255ef638 AD |
3285 | 2001-12-29 Akim Demaille <akim@epita.fr> |
3286 | ||
3287 | * src/output.c: Comment changes. | |
3288 | ||
0d8a7363 AD |
3289 | 2001-12-27 Paul Eggert <eggert@twinsun.com> |
3290 | ||
3291 | * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special | |
3292 | cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and | |
3293 | Sparc, as they were causing more porting problems than the | |
3294 | (minor) performance improvement was worth. | |
3295 | ||
3296 | Also, catch up with 1.31's YYSTD. | |
3297 | ||
3db472b9 AD |
3298 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3299 | ||
3300 | * src/output.c (output_gram): Rely on nritems, not the | |
3301 | 0-sentinel. See below. | |
3302 | Use -1 as separator, not 0. | |
3303 | * src/bison.simple (yyparse): Subtract 1 to the rule numbers. | |
3304 | Rely on -1 as separator in yyrhs, instead of 0. | |
3305 | * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue | |
3306 | twice `Now at end of input', therefore there are two lines less to | |
3307 | expect. | |
3308 | ||
b365aa05 AD |
3309 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3310 | ||
3311 | * tests/regression.at (Unresolved SR Conflicts): | |
3312 | (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes | |
3313 | below. | |
3314 | ||
30171f79 AD |
3315 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3316 | ||
3317 | * src/LR0.c (new_state): Recognize the final state by the fact it | |
3318 | is reached by eoftoken. | |
3319 | (insert_start_shifting_state, insert_eof_shifting_state) | |
3320 | (insert_accepting_state, augment_automaton): Remove, since now | |
3321 | these states are automatically computed from the initial state. | |
3322 | (generate_states): Adjust. | |
3323 | * src/print.c: When reporting a rule number to the user, substract | |
3324 | 1, so that the axiom rule is rule 0, and the first user rule is 1. | |
3325 | * src/reduce.c: Likewise. | |
3326 | * src/print_graph.c (print_core): For the time being, just as for | |
3327 | the report, depend upon --trace-flags to dump the full set of | |
3328 | items. | |
3329 | * src/reader.c (readgram): Once the grammar read, insert the rule | |
3330 | 0: `$axiom: START-SYMBOL $'. | |
3331 | * tests/set.at: Adjust: rule 0 is now displayed, and since the | |
3332 | number of the states has changed (the final state is no longer | |
3333 | necessarily the last), catch up. | |
3334 | ||
75142d45 AD |
3335 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3336 | ||
3337 | Try to make the use of the eoftoken valid. Given that its value | |
3338 | is 0 which was also used as a sentinel in ritem, (i) make sure >= 0 | |
3339 | is used instead of > 0 where appropriate, (ii), depend upon nritems | |
3340 | instead of the 0-sentinel. | |
3341 | ||
3342 | * src/gram.h, src/gram.c (nritems): New. | |
3343 | Expected to be duplication of nitems, but for the time being... | |
3344 | * src/reader.c (packgram): Assert nritems and nitems are equal. | |
3345 | * src/LR0.c (allocate_itemsets, new_itemsets): Adjust. | |
3346 | * src/closure.c (print_closure, print_fderives): Likewise. | |
3347 | * src/gram.c (ritem_print): Likewise. | |
3348 | * src/print.c (print_core, print_grammar): Likewise. | |
3349 | * src/print_graph.c: Likewise. | |
3350 | ||
b7c49edf AD |
3351 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3352 | ||
3353 | * src/main.c (main): If there are complains after grammar | |
3354 | reductions, then output the report anyway if requested, then die. | |
3355 | * src/symtab.c (bucket_new): Initialize `value' to -1, not 0. | |
3356 | * src/reader.c (eoftoken): New. | |
3357 | (parse_token_decl): If the token being defined has value `0', it | |
3358 | is the eoftoken. | |
3359 | (packsymbols): No longer hack `tags' to insert `$' by hand. | |
3360 | Be sure to preserve the value of the eoftoken. | |
3361 | (reader): Make sure eoftoken is defined. | |
3362 | Initialize nsyms to 0: now eoftoken is created just like the others. | |
3363 | * src/print.c (print_grammar): Don't special case the eof token. | |
3364 | * src/regression.at: Adjust: `$' has value 0, not -1, which was a | |
3365 | lie anyway, albeit pleasant. | |
3366 | * tests/calc.at: Exercise error messages with eoftoken. | |
3367 | Change the grammar so that empty input is invalid. | |
3368 | Adjust expectations. | |
3369 | When yyungeting, be sure to use a valid yylloc: use last_yylloc. | |
3370 | ||
ec2da99f AD |
3371 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3372 | ||
3373 | * configure.in: Check the protos of strchr ans strspn. | |
3374 | Replace strchr if needed. | |
3375 | * src/system.h: Provide the protos of strchr, strspn and memchr if | |
3376 | missing. | |
3377 | * lib/strchr.c: New. | |
3378 | * src/reader.c (symbols_save): Use strchr. | |
3379 | ||
8adfa272 AD |
3380 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3381 | ||
3382 | * src/print.c, src/print_graph.c (escape): New. | |
3383 | Use it to quote the TAGS outputs. | |
3384 | * src/print_graph.c (print_state): Now errors are in red, and | |
3385 | reductions in green. | |
3386 | Prefer high to wide: output the state number on a line of its own. | |
3387 | ||
80dac38c AD |
3388 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3389 | ||
3390 | * src/state.h, src/state.c (reductions_new): New. | |
3391 | * src/LR0.c (set_state_table): Let all the states have a | |
3392 | `reductions', even if reduced to 0. | |
3393 | (save_reductions): Adjust. | |
3394 | * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust. | |
3395 | * src/print.c (print_reductions, print_actions): Adjust. | |
3396 | * src/output.c (action_row): Adjust. | |
3397 | ||
2cec70b9 AD |
3398 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3399 | ||
3400 | * src/state.h, src/state.c (errs_new, errs_dup): New. | |
3401 | * src/LR0.c (set_state_table): Let all the states have an errs, | |
3402 | even if reduced to 0. | |
3403 | * src/print.c (print_errs, print_reductions): Adjust. | |
3404 | * src/output.c (output_actions, action_row): Adjust. | |
3405 | * src/conflicts.c (resolve_sr_conflict): Adjust. | |
3406 | ||
13ca549a AD |
3407 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3408 | ||
3409 | * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL. | |
3410 | ||
5092aba5 AD |
3411 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3412 | ||
3413 | * src/conflicts.c, src/conflicts.h (print_reductions): Move to... | |
3414 | * src/print.c: here. | |
3415 | (lookaheadset, shiftset): New, used as additional storage by | |
3416 | print_reductions. | |
3417 | (print_results): Adjust. | |
3418 | (print_shifts, print_gotos, print_errs): New, extracted from... | |
3419 | (print_actions): here. | |
3420 | * src/print_graph.c (print_actions): Remove dead code. | |
3421 | ||
11e2beca AD |
3422 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3423 | ||
3424 | * src/reader.c (copy_dollar, copy_at): Better checking of `n' in | |
3425 | `$n' and `@n'. | |
3426 | ||
dac3c910 AD |
3427 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3428 | ||
3429 | * src/lalr.c (add_lookback_edge): Use state_t instead of ints. | |
3430 | (build_relations): Adjust. | |
3431 | ||
d0b0fefa AD |
3432 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3433 | ||
3434 | * src/lalr.c (set_goto_map): Remove a wrong but benign loop | |
3435 | duplication. | |
3436 | ||
adc8c848 AD |
3437 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3438 | ||
3439 | * src/reader.c (packgram): Catch nitems overflows. | |
3440 | ||
14d293ac AD |
3441 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3442 | ||
3443 | * src/files.c, src/files.h (guard_obstack): Remove. | |
3444 | * src/output.c (output): Adjust. | |
3445 | * src/reader.c (parse_braces): New, factoring... | |
3446 | (copy_action, copy_guard): these two which are renamed as... | |
3447 | (parse_action, parse_guard): these. | |
3448 | As a voluntary consequence, using braces around guards is now | |
3449 | mandatory. | |
3450 | ||
f499b062 AD |
3451 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3452 | ||
3453 | * src/gram.h (rule_t): `guard' and `guard_line' are new members. | |
3454 | * src/reader.c (symbol_list): `guard' and `guard_line' are new | |
3455 | members. | |
3456 | (symbol_list_new): Adjust. | |
3457 | (copy_action): action_line is the first line, not the last. | |
3458 | (copy_guard): Just as for actions, store the `action' only, not | |
3459 | the switch/case/break flesh. | |
3460 | Don't parse the user action that might follow the guard, let... | |
3461 | (readgram): do it, i.e., now, there can be an action after a | |
3462 | guard. | |
3463 | In other words the guard is just explicitly optional. | |
3464 | (packgram): Adjust. | |
3465 | * src/output.c (guards_output): New. | |
3466 | (output_parser): Call it when needed. | |
3467 | (output): Also free the guard and attrs obstacks. | |
3468 | * src/files.c, src/files.h (obstack_save): Remove. | |
3469 | (output_files): Remove. | |
3470 | As a result, if one needs the former `.act' file, using an | |
3471 | appropriate skeleton which requires actions and guards is now | |
3472 | required. | |
3473 | * src/main.c (main): Adjust. | |
3474 | * tests/semantic.at: New. | |
3475 | * tests/regression.at: Use `input.y' as input file name. | |
3476 | Avoid 8+3 problems by requiring input.c when the test needs the | |
3477 | parser. | |
3478 | ||
d945f5cd AD |
3479 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3480 | ||
3481 | * src/reader.c (symbol_list_new): Be sure to initialize all the | |
3482 | fields. | |
3483 | ||
d200e455 AD |
3484 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3485 | ||
3486 | All the hacks using a final pseudo state are now useless. | |
3487 | ||
3488 | * src/LR0.c (set_state_table): state_table holds exactly nstates. | |
3489 | * src/lalr.c (nLA): New. | |
3490 | (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it | |
3491 | instead of lookaheadsp from the pseudo state (nstate + 1). | |
3492 | ||
f9507c28 AD |
3493 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3494 | ||
3495 | * src/output.c (action_row, token_actions): Use a state_t instead | |
3496 | of a integer, and nlookaheads instead of the following state's | |
3497 | lookaheadsp. | |
3498 | ||
065fbd27 AD |
3499 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3500 | ||
3501 | * src/conflicts.c (log_resolution, flush_shift) | |
3502 | (resolve_sr_conflict, set_conflicts, solve_conflicts) | |
3503 | (count_sr_conflicts, count_rr_conflicts, conflicts_output) | |
3504 | (conflicts_print, print_reductions): Use a state_t instead of an | |
3505 | integer when referring to a state. | |
3506 | As much as possible, depend upon nlookaheads, instead of the | |
3507 | `lookaheadsp' member of the following state (since lookaheads of | |
3508 | successive states are successive, the difference between state n + 1 | |
3509 | and n served as the number of lookaheads for state n). | |
3510 | * src/lalr.c (add_lookback_edge): Likewise. | |
3511 | * src/print.c (print_core, print_actions, print_state) | |
3512 | (print_results): Likewise. | |
3513 | * src/print_graph.c (print_core, print_actions, print_state) | |
3514 | (print_graph): Likewise. | |
3515 | * src/conflicts.h: Adjust. | |
3516 | ||
1b177bd7 AD |
3517 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3518 | ||
3519 | * src/bison.hairy: Formatting/comment changes. | |
3520 | ANSIfy. | |
3521 | Remove `register' indications. | |
3522 | Add plenty of `static'. | |
3523 | ||
7742ddeb AD |
3524 | 2001-12-27 Akim Demaille <akim@epita.fr> |
3525 | ||
3526 | * src/output.c (prepare): Drop the muscle `ntbase' which | |
3527 | duplicates ntokens. | |
3528 | * src/bison.simple: Formatting/comment changes. | |
3529 | Use YYNTOKENS only, which is documented, but not YYNTBASE, which | |
3530 | is an undocumented synonym. | |
3531 | ||
1fa14068 AD |
3532 | 2001-12-22 Akim Demaille <akim@epita.fr> |
3533 | ||
3534 | * src/output.c (output_table_data): Change the prototype to use | |
3535 | `int' for array ranges: some invocations do pass an int, not a | |
3536 | short. | |
3537 | Reported by Wayne Green. | |
3538 | ||
b9752825 AD |
3539 | 2001-12-22 Akim Demaille <akim@epita.fr> |
3540 | ||
3541 | Some actions of web2c.y are improperly triggered. | |
3542 | Reported by Mike Castle. | |
3543 | ||
3544 | * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/. | |
3545 | * tests/regression.at (Web2c): Rename as... | |
3546 | (Web2c Report): this. | |
3547 | (Web2c Actions): New. | |
3548 | ||
776209d6 AD |
3549 | 2001-12-22 Akim Demaille <akim@epita.fr> |
3550 | ||
3551 | Reductions in web2c.y are improperly reported. | |
3552 | Reported by Mike Castle. | |
3553 | ||
3554 | * src/conflicts.c (print_reductions): Fix. | |
3555 | * tests/regression.at (Web2c): New. | |
3556 | ||
275fc3ad AD |
3557 | 2001-12-18 Akim Demaille <akim@epita.fr> |
3558 | ||
3559 | Some host fail on `assert (!"foo")', which expands to | |
3560 | ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__)) | |
3561 | Reported by Nelson Beebee. | |
3562 | ||
3563 | * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with | |
3564 | `#define it_succeeded 0' and `assert (it_succeeded)'. | |
3565 | ||
897668ee MA |
3566 | 2001-12-17 Marc Autret <autret_m@epita.fr> |
3567 | ||
3568 | * src/bison.simple: Don't hard code the skeleton line and filename. | |
3569 | * src/output.c (output_parser): Rename 'line' as 'output_line'. | |
3570 | New line counter 'skeleton_line' (skeleton-line muscle). | |
3571 | ||
ab3399e0 PE |
3572 | 2001-12-17 Paul Eggert <eggert@twinsun.com> |
3573 | ||
3574 | * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that | |
3575 | YYDEBUG must be defined to a nonzero value. | |
3576 | ||
3577 | * src/bison.simple (yytname): Do not assume that the user defines | |
3578 | YYDEBUG to a properly parenthesized expression. | |
3579 | ||
3877f72b AD |
3580 | 2001-12-17 Akim Demaille <akim@epita.fr> |
3581 | ||
3582 | * src/state.h (state_t): Rename lookaheads as lookaheadsp. | |
3583 | nlookaheads is a new member. | |
3584 | Adjust all users. | |
3585 | * src/lalr.h (nlookaheads): Remove this orphan declaration. | |
3586 | * src/lalr.c (initialize_lookaheads): Set nlookaheads for each | |
3587 | state. | |
776209d6 | 3588 | |
331dbc1b AD |
3589 | 2001-12-17 Akim Demaille <akim@epita.fr> |
3590 | ||
3591 | * src/files.h, src/files.c (open_files, close_files): Remove. | |
3592 | * src/main.c (main): Don't open/close files, nor invoke lex_free, | |
3593 | let... | |
3594 | * src/reader.c (reader): Do it. | |
776209d6 | 3595 | |
be750e4c AD |
3596 | 2001-12-17 Akim Demaille <akim@epita.fr> |
3597 | ||
3598 | * src/conflicts.c (print_reductions): Formatting changes. | |
776209d6 | 3599 | |
709ae8c6 AD |
3600 | 2001-12-17 Akim Demaille <akim@epita.fr> |
3601 | ||
3602 | * src/conflicts.c (flush_shift): Also adjust lookaheadset. | |
3603 | (flush_reduce): New. | |
3604 | (resolve_sr_conflict): Adjust. | |
776209d6 | 3605 | |
f87685c3 AD |
3606 | 2001-12-17 Akim Demaille <akim@epita.fr> |
3607 | ||
3608 | * src/output.c (output_obstack): Be static and rename as... | |
3609 | (format_obstack): this, to avoid any confusion with files.c's | |
3610 | output_obstack. | |
3611 | * src/reader.h (muscle_obstack): Move to... | |
3612 | * src/output.h: here, since it's defined in output.c. | |
3613 | ||
837491d8 AD |
3614 | 2001-12-17 Akim Demaille <akim@epita.fr> |
3615 | ||
3616 | * src/output.c (action_row, save_column, default_goto) | |
3617 | (sort_actions, matching_state, pack_vector): Better variable | |
3618 | locality. | |
3619 | ||
796d61fb AD |
3620 | 2001-12-17 Akim Demaille <akim@epita.fr> |
3621 | ||
3622 | * src/output.c: Various formatting changes. | |
776209d6 | 3623 | |
64d15509 AD |
3624 | 2001-12-17 Akim Demaille <akim@epita.fr> |
3625 | ||
3626 | * src/files.c (output_files): Free the output_obstack. | |
3627 | * src/main.c (main): Call print and print_graph conditionally. | |
3628 | * src/print.c (print): Work unconditionally. | |
3629 | * src/print_graph.c (print_graph): Work unconditionally. | |
3630 | * src/conflicts.c (log_resolution): Output only if verbose_flag. | |
3631 | ||
fbc8ecb7 MA |
3632 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
3633 | ||
3634 | * src/output.c (actions_output): Fix. When we use %no-lines, | |
3635 | there is one less line per action. | |
3636 | ||
f0440388 MA |
3637 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
3638 | ||
3639 | * src/bison.simple: Remove a useless #line directive. | |
3640 | s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'. | |
3641 | * src/output.c (get_lines_number): New. | |
776209d6 | 3642 | (output_parser): Adjust, now takes care about the lines of a |
f0440388 MA |
3643 | output muscles. |
3644 | Fix line numbering. | |
3645 | (actions_output): Computes the number of lines taken by actions. | |
3646 | (output_master_parser): Insert new skeleton which is the name of | |
3647 | the output parser file name. | |
3648 | ||
a79986b8 MA |
3649 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
3650 | ||
3651 | * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. | |
3652 | ||
4ec8e00f MA |
3653 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
3654 | ||
3655 | * src/output.c (output_gram): Keep track of the hairy one. | |
3656 | ||
1a4648ff AD |
3657 | 2001-12-15 Akim Demaille <akim@epita.fr> |
3658 | ||
3659 | Make `make distcheck' work. | |
3660 | ||
3661 | * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses | |
3662 | system.h which uses libgettext.h. | |
3663 | ||
9c2c67e6 AD |
3664 | 2001-12-15 Akim Demaille <akim@epita.fr> |
3665 | ||
3666 | * src/nullable.c (set_nullable): Useless rules must be skipped, | |
3667 | otherwise, since we range over their symbols, we might look at a | |
3668 | nonterminal which no longer ``exists'', i.e., it is not counted in | |
3669 | `nvars', hence we overflow our arrays. | |
3670 | ||
93ede233 AD |
3671 | 2001-12-15 Akim Demaille <akim@epita.fr> |
3672 | ||
3673 | The header can also be produced directly, without any obstack! | |
3674 | Yahoo! | |
3675 | ||
3676 | * src/files.c, src/files.h (defines_obstack): Remove. | |
3677 | (compute_header_macro): Global. | |
3678 | (defines_obstack_save): Remove. | |
3679 | * src/reader.c (parse_union_decl): No longer output to | |
3680 | defines_obstack: its content can be found in the `stype' muscle | |
3681 | anyway. | |
3682 | (output_token_translations): Merge into... | |
3683 | (symbols_output): this. | |
3684 | Rename as... | |
3685 | (symbols_save): this. | |
3686 | (reader): Adjust. | |
3687 | * src/output.c (header_output): New. | |
3688 | (output): Call it. | |
3689 | ||
2666f928 AD |
3690 | 2001-12-15 Akim Demaille <akim@epita.fr> |
3691 | ||
3692 | * src/reader.c (parse_union_decl): Instead of handling two obstack | |
3693 | simultaneously, use one to define the `stype' muscle, and use the | |
3694 | value of the latter to fill defines_obstack. | |
3695 | (copy_comment): Remove. | |
3696 | (copy_comment2): Work for a single obstack. | |
3697 | Rename as... | |
3698 | (copy_comment): this. | |
3699 | ||
428046f8 AD |
3700 | 2001-12-15 Akim Demaille <akim@epita.fr> |
3701 | ||
3702 | * src/lex.c, src/lex.h (xgetc): No longer static. | |
3703 | * src/reader.c (parse_union_decl): Revamp. | |
3704 | ||
ea52d706 AD |
3705 | 2001-12-15 Akim Demaille <akim@epita.fr> |
3706 | ||
3707 | Still making progress in separating Bison into (i) input, (ii) | |
3708 | process, (iii) output: now we can directly output the parser file | |
3709 | without using table_obstack at all. | |
3710 | ||
3711 | * src/files.c, src/files.h (table_obstack): Bye bye. | |
3712 | (parser_file_name): New. | |
3713 | * src/files.c (compute_output_file_names): Compute it. | |
3714 | * src/output.c (actions_output, output_parser) | |
3715 | (output_master_parser): To a file instead of an obstack. | |
3716 | ||
3f96f4dc AD |
3717 | 2001-12-15 Akim Demaille <akim@epita.fr> |
3718 | ||
3719 | Attach actions to rules, instead of pre-outputting them to | |
3720 | actions_obstack. | |
3721 | ||
3722 | * src/gram.h (rule_t): action and action_line are new members. | |
3723 | * src/reader.c (symbol_list): Likewise. | |
3724 | (copy_action): Save the actions within the rule. | |
3725 | (packgram): Save them in rule_table. | |
3726 | * src/output.c (actions_output): New. | |
3727 | (output_parser): Use it on `%%actions'. | |
3728 | (output_rule_data): Don't free rule_table. | |
3729 | (output): Do it. | |
3730 | (prepare): Don't save the `action' muscle. | |
3731 | * src/bison.simple: s/%%action/%%actions/. | |
3732 | ||
51576fb3 AD |
3733 | 2001-12-15 Akim Demaille <akim@epita.fr> |
3734 | ||
3735 | * src/reader.c (copy_action): When --yacc, don't append a `;' | |
3736 | to the user action: let it fail if lacking. | |
dee049eb | 3737 | Suggested by Arnold Robbins and Tom Tromey. |
51576fb3 | 3738 | |
2648a72d AD |
3739 | 2001-12-14 Akim Demaille <akim@epita.fr> |
3740 | ||
3741 | * src/lex.c (literalchar): Simply return the char you decoded, non | |
3742 | longer mess around with obstacks and int pointers. | |
3743 | Adjust all callers. | |
3744 | ||
92790e5b AD |
3745 | 2001-12-14 Akim Demaille <akim@epita.fr> |
3746 | ||
3747 | * src/lex.c (literalchar): Don't escape the special characters, | |
3748 | just decode them, and keep them as char (before, eol was output as | |
3749 | the 2 char string `\n' etc.). | |
3750 | * src/output.c (output_rule_data): Use quotearg to output the | |
3751 | token strings. | |
3752 | ||
927c1557 PE |
3753 | 2001-12-13 Paul Eggert <eggert@twinsun.com> |
3754 | ||
3755 | * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE): | |
3756 | Do not infringe on the global user namespace when using C++. | |
3757 | (YYFPRINTF, YYSTDERR): New macros, needed for the above. | |
3758 | All uses of `fprintf' and `stderr' changed. | |
3759 | ||
3760 | * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR. | |
3761 | ||
ed8e1f68 AD |
3762 | 2001-12-13 Akim Demaille <akim@epita.fr> |
3763 | ||
3764 | The computation of nullable is broken: it doesn't handle empty | |
3765 | RHS's properly. | |
3766 | ||
3767 | * tests/torture.at (GNU AWK Grammar): New. | |
3768 | * tests/sets.at (Nullable): New. | |
3769 | * src/nullable.c (set_nullable): Instead of blindly looping over | |
3770 | `ritems', loop over the rules, and then over their rhs's. | |
3771 | ||
3772 | Work around Autotest bugs. | |
3773 | ||
3774 | * src/warshall.c (bitmatrix_print): Don't use `+--+' as table | |
3775 | frame, because Autotest understand lines starting with a `+' as | |
3776 | traces from the shell. Then, they are not processed properly. | |
3777 | Admittedly an Autotest bug, but we don't have time to wait for | |
3778 | Autotest to catch up. | |
3779 | * tests/regression.at (Broken Closure): Adjust to the new table | |
3780 | frames. | |
3781 | Move to... | |
3782 | * tests/sets.at: here. | |
3783 | ||
cb581495 AD |
3784 | 2001-12-13 Akim Demaille <akim@epita.fr> |
3785 | ||
3786 | * src/closure.c (closure): Use nrules instead of playing tricks | |
3787 | with BITS_PER_WORD. | |
3788 | ||
2e729273 AD |
3789 | 2001-12-13 Akim Demaille <akim@epita.fr> |
3790 | ||
3791 | * src/print.c (print_actions): Output the handling of `$' as the | |
3792 | traces do: shifting the token EOF. Before EOF was treated as a | |
3793 | nonterminal. | |
3794 | * tests/regression.at: Adjust some tests. | |
3795 | * src/print_graph.c (print_core): Complete the set of items via | |
3796 | closure. The next-to-final and final states are still unsatisfying, | |
3797 | but that's to be addressed elsewhere. | |
3798 | No longer output the rule numbers, but do output the state number. | |
3799 | A single loop for the shifts + gotos is enough, but picked a | |
3800 | distinct color for each. | |
3801 | (print_graph): Initialize and finalize closure. | |
3802 | ||
107f7dfb AD |
3803 | 2001-12-13 Akim Demaille <akim@epita.fr> |
3804 | ||
3805 | * src/reader.c (readgram): Remove dead code, an strip useless | |
3806 | braces. | |
3807 | (get_type): Remove, unused. | |
3808 | ||
9b53a24f AD |
3809 | 2001-12-12 Akim Demaille <akim@epita.fr> |
3810 | ||
3811 | * src/complain.h, src/complain.c: Remove error_one_per_line, rely | |
3812 | on that of lib/error.c. | |
3813 | ||
dbfb6dcd AD |
3814 | 2001-12-12 Akim Demaille <akim@epita.fr> |
3815 | ||
3816 | Some hosts don't like `/' in includes. | |
3817 | ||
3818 | * src/system.h: Include libgettext.h without qualifying the path. | |
3819 | * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove | |
3820 | $(top_srcdir). | |
3821 | ||
c25fb648 MA |
3822 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
3823 | ||
3824 | * src/output.c (output_parser): Remove useless muscle. | |
3825 | ||
710ddc4f MA |
3826 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
3827 | ||
3828 | * src/bison.simple: Remove #line just before %%epilogue. It | |
3829 | is now handled in ... | |
3830 | * src/reader.c (read_additionnal_code): Add the output of a | |
3831 | #line for the epilogue. | |
3832 | ||
e83d80b8 MA |
3833 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
3834 | ||
927c1557 | 3835 | * src/reader.c (copy_definition): Re-use CPP-outed code which |
e83d80b8 MA |
3836 | replace precedent remove. |
3837 | * src/bison.simple: Remove #line before %%prologue because | |
3838 | %%input-line is wrong at this time. | |
3839 | ||
971d5158 MA |
3840 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
3841 | ||
3842 | * src/reader.c (symbols_output): Clean up. | |
927c1557 | 3843 | * src/output.c (output_gram, output): Clean up. |
971d5158 | 3844 | |
5edafffd AD |
3845 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3846 | ||
3847 | * src/lalr.c (initialize_lookaheads): New. Extracted from... | |
3848 | * src/LR0.c (set_state_table): here. | |
3849 | * src/lalr.c (lalr): Call it. | |
3850 | ||
0279f8e9 AD |
3851 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3852 | ||
3853 | * src/state.h (shifts): Remove the `number' member: shifts are | |
3854 | attached to state, hence no longer need to be labelled with a | |
3855 | state number. | |
3856 | ||
190c4f5f AD |
3857 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3858 | ||
3859 | Now that states have a complete set of members, the linked list of | |
3860 | shifts is useless: just fill directly the state's shifts member. | |
3861 | ||
3862 | * src/state.h (shifts): Remove the `next' member. | |
3863 | * src/LR0.c (first_state, last_state): Remove. | |
3864 | Adjust the callers. | |
3865 | (augment_automaton): Don't look for the shifts that must be added | |
3866 | a shift on EOF: it is those of the state we looked for! But now, | |
3867 | since shifts are attached, it is no longer needed to looking | |
3868 | merely by its id: its number. | |
3869 | ||
2a73b93d AD |
3870 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3871 | ||
3872 | * src/LR0.c (augment_automaton): Better variable locality. | |
3873 | Remove an impossible branch: if there is a state corresponding to | |
3874 | the start symbol being shifted, then there is shift for the start | |
3875 | symbol from the initial state. | |
3876 | ||
74392f6a AD |
3877 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3878 | ||
3879 | * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state' | |
3880 | only when appropriate: when insert_start_shifting_state' is not | |
3881 | invoked. | |
3882 | * tests/regression.at (Rule Line Numbers): Adjust. | |
3883 | ||
37c82725 AD |
3884 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3885 | ||
3886 | * src/LR0.c (augment_automaton): Now that all states have shifts, | |
3887 | merge the two cases addition shifts to the initial state. | |
3888 | ||
6a164e0c AD |
3889 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3890 | ||
3891 | * src/lalr.c (set_state_table): Move to... | |
3892 | * src/LR0.c: here. | |
3893 | * src/lalr.c (lalr): Don't call it... | |
3894 | * src/LR0.c (generate_states): do it. | |
3895 | * src/LR0.h (first_state): Remove, only the table is used. | |
3896 | ||
7215de24 AD |
3897 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3898 | ||
3899 | * src/LR0.h (first_shift, first_reduction): Remove. | |
3900 | * src/lalr.c: Don't use first_shift: find shifts through the | |
3901 | states. | |
3902 | ||
80e25d4d AD |
3903 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3904 | ||
3905 | * src/LR0.c: Attach shifts to states as soon as they are | |
3906 | computed. | |
3907 | * src/lalr.c (set_state_table): Instead of assigning shifts to | |
3908 | state, just assert that the mapping was properly done. | |
3909 | ||
0ab3728b AD |
3910 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3911 | ||
3912 | * src/LR0.c (insert_start_shift): Rename as... | |
3913 | (insert_start_shifting_state): this. | |
3914 | (insert_eof_shifting_state, insert_accepting_state): New. | |
3915 | (augment_automaton): Adjust. | |
3916 | Better locality of the variables. | |
3917 | When looking if the start_symbol is shifted from the initial | |
3918 | state, using `while (... symbol != start_symbol ...)' sounds | |
3919 | better than `while (... symbol < start_symbol ...)': If fail | |
3920 | to see how the order between symbols could be relevant! | |
3921 | ||
78af9bbc AD |
3922 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3923 | ||
3924 | * src/getargs.h: Don't declare `spec_name_prefix' and | |
3925 | `spec_file_prefix', declared by src/files.h. | |
3926 | * src/files.c, src/files.h: Default for spec_name_prefix is "yy". | |
3927 | * src/muscle_tab.c (muscle_init): Default prefix to NULL. | |
3928 | * src/output.c (prepare): Adjust. | |
3929 | * src/reader.c (symbols_output): Likewise. | |
3930 | * src/vmsgetargs.c: Vaguely adjust, but who cares? | |
3931 | ||
bdef2a41 AD |
3932 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3933 | ||
3934 | * src/muscle_tab.c (muscle_init): NULL is a better default than | |
3935 | `"0"'. | |
3936 | ||
3735969c AD |
3937 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3938 | ||
3939 | * src/reader.c (reader): Calling symbols_output once is enough. | |
3940 | ||
49701457 AD |
3941 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3942 | ||
3943 | Now that states have a complete set of members, the linked list of | |
3944 | reductions is useless: just fill directly the state's reductions | |
3945 | member. | |
3946 | ||
3947 | * src/state.h (struct reductions): Remove member `number' and | |
3948 | `next'. | |
3949 | * src/LR0.c (first_reduction, last_reduction): Remove. | |
3950 | (save_reductions): Don't link the new reductions, store them in | |
3951 | this_state. | |
3952 | * src/lalr.c (set_state_table): No need to attach reductions to | |
3953 | states, it's already done. | |
3954 | * src/output.c (output_actions): No longer free the shifts, then | |
3955 | the reductions, then the states: free all the states and their | |
3956 | members. | |
3957 | ||
0edad749 AD |
3958 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3959 | ||
3960 | * src/options.c (OPTN, DRTV, BOTH): New. | |
3961 | (option_table): Use them. | |
3962 | ||
0edad749 AD |
3963 | * src/muscle_tab.c: Don't include xalloc.h and string.h: that's |
3964 | the job of system.h. | |
3965 | * src/options.c: Don't include stdio.h and xalloc.h for the same | |
3966 | reasons. | |
3967 | ||
5449dd0f AD |
3968 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3969 | ||
3970 | * src/output.c (output, prepare): Make sure the values of the | |
3971 | muscles `action' and `prologue' are 0-terminated. | |
3972 | ||
a870c567 AD |
3973 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3974 | ||
3975 | Clean up GCC warnings. | |
3976 | ||
3977 | * src/reader.c (copy_action): `buf' is not used. | |
3978 | (parse_skel_decl): Be static. | |
3979 | * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'. | |
3980 | * src/options.h (create_long_option_table): Have a real prototype. | |
3981 | * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete) | |
3982 | (hash_delete_at): Return const void *. | |
3983 | Adjust casts to preserve the const. | |
3984 | ||
80df8768 AD |
3985 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3986 | ||
3987 | * configure.in: Require 2.52g. | |
3988 | M4 is not needed, but AUTOM4TE is. | |
3989 | * m4/m4.m4: Remove. | |
3990 | * tests/Makefile.am: Adjust. | |
3991 | ||
f693ad14 AD |
3992 | 2001-12-10 Akim Demaille <akim@epita.fr> |
3993 | ||
3994 | One structure for states is enough, even though theoretically | |
3995 | there are LR(0) states and LALR(1) states. | |
3996 | ||
3997 | * src/lalr.h (state_t): Remove. | |
3998 | (state_table): Be state_t **, not state_t *. | |
3999 | * src/state.h (core, CORE_ALLOC): Rename as... | |
4000 | (state_t, STATE_ALLOC): this. | |
4001 | Add the LALR(1) members: shifts, reductions, errs. | |
4002 | * src/LR0.c (state_table): Rename as... | |
4003 | (state_hash): this, to avoid name clashes with the global | |
4004 | `state_table'. | |
4005 | * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c | |
4006 | * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust. | |
4007 | ||
74ffbcb6 AD |
4008 | 2001-12-10 Akim Demaille <akim@epita.fr> |
4009 | ||
4010 | Bison dumps core on bash.y. | |
4011 | Reported by Pascal Bart. | |
4012 | ||
4013 | * src/warshall.c (bitmatrix_print): New. | |
4014 | (TC): Use it. | |
4015 | When performing a transitive closure R(i, j) && R(j, k) => R(i, k), | |
4016 | j must be the outer loop. | |
4017 | * tests/regression.at (Broken Closure): New. | |
4018 | ||
07708e19 AD |
4019 | 2001-12-05 Akim Demaille <akim@epita.fr> |
4020 | ||
4021 | * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and | |
4022 | its argument. | |
4023 |