12 |
* src/bison.simple: Prefix yylloc if used. |
* src/bison.simple: Prefix yylloc if used. |
13 |
* doc/bison.texinfo (Decl Summary): Document that. |
* doc/bison.texinfo (Decl Summary): Document that. |
14 |
|
|
|
|
|
15 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
16 |
|
|
17 |
* doc/bison.texinfo: Promote `%long-directive' over |
* doc/bison.texinfo: Promote `%long-directive' over |
18 |
`%long_directive'. |
`%long_directive'. |
19 |
Remove all references to fixed-output-files, yacc is enough. |
Remove all references to fixed-output-files, yacc is enough. |
20 |
|
|
|
|
|
21 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
22 |
|
|
23 |
* src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the |
* src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the |
25 |
* tests/actions.at (Mid-rule actions): Make sure the user can |
* tests/actions.at (Mid-rule actions): Make sure the user can |
26 |
define YYDEBUG and YYERROR_VERBOSE. |
define YYDEBUG and YYERROR_VERBOSE. |
27 |
|
|
|
|
|
28 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
29 |
|
|
30 |
* src/output.c (header_output): Don't forget to export YYLTYPE and |
* src/output.c (header_output): Don't forget to export YYLTYPE and |
34 |
Move to... |
Move to... |
35 |
* tests/headers.at: here. |
* tests/headers.at: here. |
36 |
|
|
|
|
|
37 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
38 |
|
|
39 |
* src/gram.h (rule_s): Member `assoc' is of type `associativity'. |
* src/gram.h (rule_s): Member `assoc' is of type `associativity'. |
40 |
|
|
|
|
|
41 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
42 |
|
|
43 |
* tests/actions.at (Mid-rule actions): Output on a single line |
* tests/actions.at (Mid-rule actions): Output on a single line |
44 |
instead of several. |
instead of several. |
45 |
|
|
|
|
|
46 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
47 |
|
|
48 |
* doc/bison.texinfo: Formatting changes. |
* doc/bison.texinfo: Formatting changes. |
56 |
(output_parser, header_output): Use it. |
(output_parser, header_output): Use it. |
57 |
* src/reader.c (symbols_save): Remove. |
* src/reader.c (symbols_save): Remove. |
58 |
|
|
|
|
|
59 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
60 |
|
|
61 |
* src/bison.simple: Do not provide a default for YYSTYPE and |
* src/bison.simple: Do not provide a default for YYSTYPE and |
62 |
YYLTYPE before the user's prologue. Otherwise it's hardly... a |
YYLTYPE before the user's prologue. Otherwise it's hardly... a |
63 |
default. |
default. |
64 |
|
|
|
|
|
65 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
66 |
|
|
67 |
Mid-rule actions are simply... ignored! |
Mid-rule actions are simply... ignored! |
71 |
rule. |
rule. |
72 |
* tests/actions.at (Mid-rule actions): New. |
* tests/actions.at (Mid-rule actions): New. |
73 |
|
|
|
|
|
74 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
75 |
|
|
76 |
Memory leak. |
Memory leak. |
85 |
since it allocates it for each state, although only one is needed. |
since it allocates it for each state, although only one is needed. |
86 |
(allocate_storage): Do it here. |
(allocate_storage): Do it here. |
87 |
|
|
|
|
|
88 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
89 |
|
|
90 |
* src/options.h, src/options.c (create_long_option_table): Rename |
* src/options.h, src/options.c (create_long_option_table): Rename |
93 |
(percent_table): Remove, unused, |
(percent_table): Remove, unused, |
94 |
* src/getargs.c (getargs): Adjust. |
* src/getargs.c (getargs): Adjust. |
95 |
|
|
|
|
|
96 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
97 |
|
|
98 |
* src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c |
* src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c |
99 |
* src/print.c, src/print_graph.c, src/state.h: Rename state_table |
* src/print.c, src/print_graph.c, src/state.h: Rename state_table |
100 |
as states. |
as states. |
101 |
|
|
|
|
|
102 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
103 |
|
|
104 |
* src/lalr.c (build_relations): Rename `states' as `states1'. |
* src/lalr.c (build_relations): Rename `states' as `states1'. |
105 |
Sorry, I don't understand exactly what it is, no better name... |
Sorry, I don't understand exactly what it is, no better name... |
106 |
|
|
|
|
|
107 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
108 |
|
|
109 |
* src/closure.c, src/conflicts.c, src/derives.c, src/gram.c |
* src/closure.c, src/conflicts.c, src/derives.c, src/gram.c |
111 |
* src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table |
* src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table |
112 |
as rules. |
as rules. |
113 |
|
|
|
|
|
114 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
115 |
|
|
116 |
* src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long |
* src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long |
117 |
ago. |
ago. |
118 |
|
|
|
|
|
119 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
120 |
|
|
121 |
* src/reader.c, src/reader.h (user_toknums): Remove. |
* src/reader.c, src/reader.h (user_toknums): Remove. |
122 |
Adjust all users to use symbols[i]->user_token_number. |
Adjust all users to use symbols[i]->user_token_number. |
123 |
|
|
|
|
|
124 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
125 |
|
|
126 |
* src/gram.c, src/gram.h (sprec, sassoc): Remove. |
* src/gram.c, src/gram.h (sprec, sassoc): Remove. |
127 |
Adjust all users to use symbols[i]->prec or ->assoc. |
Adjust all users to use symbols[i]->prec or ->assoc. |
128 |
|
|
|
|
|
129 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
130 |
|
|
131 |
* src/reader.c, src/reader.h (tags): Remove. |
* src/reader.c, src/reader.h (tags): Remove. |
132 |
Adjust all users to use symbols[i]->tag. |
Adjust all users to use symbols[i]->tag. |
133 |
|
|
|
|
|
134 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
135 |
|
|
136 |
* src/gram.h, src/gram.c (symbols): New, similar to state_table |
* src/gram.h, src/gram.c (symbols): New, similar to state_table |
142 |
single table. |
single table. |
143 |
Use symbols[i]->tag instead of tags[i]. |
Use symbols[i]->tag instead of tags[i]. |
144 |
|
|
|
|
|
145 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
146 |
|
|
147 |
* tests/calc.at (_AT_DATA_CALC_Y): Also use %union. |
* tests/calc.at (_AT_DATA_CALC_Y): Also use %union. |
148 |
In addition, put a comment in there, to replace... |
In addition, put a comment in there, to replace... |
149 |
* tests/regression.at (%union and C comments): Remove. |
* tests/regression.at (%union and C comments): Remove. |
150 |
|
|
|
|
|
151 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
152 |
|
|
153 |
* tests/regression.at (Web2c Actions): Blindly move the actual |
* tests/regression.at (Web2c Actions): Blindly move the actual |
157 |
presence of `$axiom' is to be noted: AFAICS it is useless (but |
presence of `$axiom' is to be noted: AFAICS it is useless (but |
158 |
harmless). |
harmless). |
159 |
|
|
|
|
|
160 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
161 |
|
|
162 |
* src/reader.c (readgram): Don't add the rule 0 if there were no |
* src/reader.c (readgram): Don't add the rule 0 if there were no |
164 |
grammar sanity checks. |
grammar sanity checks. |
165 |
Fixes the `tests/regression.at (Invalid input: 1)' Failure. |
Fixes the `tests/regression.at (Invalid input: 1)' Failure. |
166 |
|
|
|
|
|
167 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
168 |
|
|
169 |
* tests/regression.at (Web2c Report): Catch up: the rule 0 is now |
* tests/regression.at (Web2c Report): Catch up: the rule 0 is now |
170 |
visible, and some states have now a different number. |
visible, and some states have now a different number. |
171 |
|
|
|
|
|
172 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
173 |
|
|
174 |
* src/reader.c (readgram): Bind the initial rule's lineno to that |
* src/reader.c (readgram): Bind the initial rule's lineno to that |
176 |
* tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts): |
* tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts): |
177 |
(Solved SR Conflicts): Adjust rule 0's line number. |
(Solved SR Conflicts): Adjust rule 0's line number. |
178 |
|
|
|
|
|
179 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
180 |
|
|
181 |
Fix the `GAWK Grammar' failure. |
Fix the `GAWK Grammar' failure. |
189 |
* tests/regression.at (Rule Line Numbers): Adjust: state 0 does |
* tests/regression.at (Rule Line Numbers): Adjust: state 0 does |
190 |
have a reduction on $default. |
have a reduction on $default. |
191 |
|
|
|
|
|
192 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
193 |
|
|
194 |
* src/gram.c (ritem_print): Be sure to subtract 1 when displaying |
* src/gram.c (ritem_print): Be sure to subtract 1 when displaying |
205 |
* tests/sets.at (Nullable): Adjust: when tracing, the lookaheads |
* tests/sets.at (Nullable): Adjust: when tracing, the lookaheads |
206 |
are dumped. |
are dumped. |
207 |
|
|
|
|
|
208 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
209 |
|
|
210 |
* src/derives.c (print_derives): Be sure to use `>= 0', not `> 0', |
* src/derives.c (print_derives): Be sure to use `>= 0', not `> 0', |
217 |
* tests/sets.at (Nullable): Adjust. |
* tests/sets.at (Nullable): Adjust. |
218 |
Fortunately, now, the $axiom is no longer nullable. |
Fortunately, now, the $axiom is no longer nullable. |
219 |
|
|
|
|
|
220 |
2001-12-29 Akim Demaille <akim@epita.fr> |
2001-12-29 Akim Demaille <akim@epita.fr> |
221 |
|
|
222 |
* src/LR0.c (generate_states): Use nritems, not nitems, nor using |
* src/LR0.c (generate_states): Use nritems, not nitems, nor using |