]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/reader.c (readgram): Remove dead code, an strip useless
[bison.git] / ChangeLog
CommitLineData
107f7dfb
AD
12001-12-13 Akim Demaille <akim@epita.fr>
2
3 * src/reader.c (readgram): Remove dead code, an strip useless
4 braces.
5 (get_type): Remove, unused.
6
9b53a24f
AD
72001-12-12 Akim Demaille <akim@epita.fr>
8
9 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
10 on that of lib/error.c.
11
dbfb6dcd
AD
122001-12-12 Akim Demaille <akim@epita.fr>
13
14 Some hosts don't like `/' in includes.
15
16 * src/system.h: Include libgettext.h without qualifying the path.
17 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
18 $(top_srcdir).
19
c25fb648
MA
202001-12-11 Marc Autret <autret_m@epita.fr>
21
22 * src/output.c (output_parser): Remove useless muscle.
23
710ddc4f
MA
242001-12-11 Marc Autret <autret_m@epita.fr>
25
26 * src/bison.simple: Remove #line just before %%epilogue. It
27 is now handled in ...
28 * src/reader.c (read_additionnal_code): Add the output of a
29 #line for the epilogue.
30
e83d80b8
MA
312001-12-10 Marc Autret <autret_m@epita.fr>
32
33 * src/reader.c (copy_definition): Re-use CPP-outed code which
34 replace precedent remove.
35 * src/bison.simple: Remove #line before %%prologue because
36 %%input-line is wrong at this time.
37
971d5158
MA
382001-12-10 Marc Autret <autret_m@epita.fr>
39
40 * src/reader.c (symbols_output): Clean up.
41 * src/output.c (output_gram, output): Clean up.
42
5edafffd
AD
432001-12-10 Akim Demaille <akim@epita.fr>
44
45 * src/lalr.c (initialize_lookaheads): New. Extracted from...
46 * src/LR0.c (set_state_table): here.
47 * src/lalr.c (lalr): Call it.
48
0279f8e9
AD
492001-12-10 Akim Demaille <akim@epita.fr>
50
51 * src/state.h (shifts): Remove the `number' member: shifts are
52 attached to state, hence no longer need to be labelled with a
53 state number.
54
190c4f5f
AD
552001-12-10 Akim Demaille <akim@epita.fr>
56
57 Now that states have a complete set of members, the linked list of
58 shifts is useless: just fill directly the state's shifts member.
59
60 * src/state.h (shifts): Remove the `next' member.
61 * src/LR0.c (first_state, last_state): Remove.
62 Adjust the callers.
63 (augment_automaton): Don't look for the shifts that must be added
64 a shift on EOF: it is those of the state we looked for! But now,
65 since shifts are attached, it is no longer needed to looking
66 merely by its id: its number.
67
2a73b93d
AD
682001-12-10 Akim Demaille <akim@epita.fr>
69
70 * src/LR0.c (augment_automaton): Better variable locality.
71 Remove an impossible branch: if there is a state corresponding to
72 the start symbol being shifted, then there is shift for the start
73 symbol from the initial state.
74
74392f6a
AD
752001-12-10 Akim Demaille <akim@epita.fr>
76
77 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
78 only when appropriate: when insert_start_shifting_state' is not
79 invoked.
80 * tests/regression.at (Rule Line Numbers): Adjust.
81
37c82725
AD
822001-12-10 Akim Demaille <akim@epita.fr>
83
84 * src/LR0.c (augment_automaton): Now that all states have shifts,
85 merge the two cases addition shifts to the initial state.
86
6a164e0c
AD
872001-12-10 Akim Demaille <akim@epita.fr>
88
89 * src/lalr.c (set_state_table): Move to...
90 * src/LR0.c: here.
91 * src/lalr.c (lalr): Don't call it...
92 * src/LR0.c (generate_states): do it.
93 * src/LR0.h (first_state): Remove, only the table is used.
94
7215de24
AD
952001-12-10 Akim Demaille <akim@epita.fr>
96
97 * src/LR0.h (first_shift, first_reduction): Remove.
98 * src/lalr.c: Don't use first_shift: find shifts through the
99 states.
100
80e25d4d
AD
1012001-12-10 Akim Demaille <akim@epita.fr>
102
103 * src/LR0.c: Attach shifts to states as soon as they are
104 computed.
105 * src/lalr.c (set_state_table): Instead of assigning shifts to
106 state, just assert that the mapping was properly done.
107
0ab3728b
AD
1082001-12-10 Akim Demaille <akim@epita.fr>
109
110 * src/LR0.c (insert_start_shift): Rename as...
111 (insert_start_shifting_state): this.
112 (insert_eof_shifting_state, insert_accepting_state): New.
113 (augment_automaton): Adjust.
114 Better locality of the variables.
115 When looking if the start_symbol is shifted from the initial
116 state, using `while (... symbol != start_symbol ...)' sounds
117 better than `while (... symbol < start_symbol ...)': If fail
118 to see how the order between symbols could be relevant!
119
78af9bbc
AD
1202001-12-10 Akim Demaille <akim@epita.fr>
121
122 * src/getargs.h: Don't declare `spec_name_prefix' and
123 `spec_file_prefix', declared by src/files.h.
124 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
125 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
126 * src/output.c (prepare): Adjust.
127 * src/reader.c (symbols_output): Likewise.
128 * src/vmsgetargs.c: Vaguely adjust, but who cares?
129
bdef2a41
AD
1302001-12-10 Akim Demaille <akim@epita.fr>
131
132 * src/muscle_tab.c (muscle_init): NULL is a better default than
133 `"0"'.
134
3735969c
AD
1352001-12-10 Akim Demaille <akim@epita.fr>
136
137 * src/reader.c (reader): Calling symbols_output once is enough.
138
49701457
AD
1392001-12-10 Akim Demaille <akim@epita.fr>
140
141 Now that states have a complete set of members, the linked list of
142 reductions is useless: just fill directly the state's reductions
143 member.
144
145 * src/state.h (struct reductions): Remove member `number' and
146 `next'.
147 * src/LR0.c (first_reduction, last_reduction): Remove.
148 (save_reductions): Don't link the new reductions, store them in
149 this_state.
150 * src/lalr.c (set_state_table): No need to attach reductions to
151 states, it's already done.
152 * src/output.c (output_actions): No longer free the shifts, then
153 the reductions, then the states: free all the states and their
154 members.
155
0edad749
AD
1562001-12-10 Akim Demaille <akim@epita.fr>
157
158 * src/options.c (OPTN, DRTV, BOTH): New.
159 (option_table): Use them.
160
0edad749
AD
161 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
162 the job of system.h.
163 * src/options.c: Don't include stdio.h and xalloc.h for the same
164 reasons.
165
5449dd0f
AD
1662001-12-10 Akim Demaille <akim@epita.fr>
167
168 * src/output.c (output, prepare): Make sure the values of the
169 muscles `action' and `prologue' are 0-terminated.
170
a870c567
AD
1712001-12-10 Akim Demaille <akim@epita.fr>
172
173 Clean up GCC warnings.
174
175 * src/reader.c (copy_action): `buf' is not used.
176 (parse_skel_decl): Be static.
177 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
178 * src/options.h (create_long_option_table): Have a real prototype.
179 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
180 (hash_delete_at): Return const void *.
181 Adjust casts to preserve the const.
182
80df8768
AD
1832001-12-10 Akim Demaille <akim@epita.fr>
184
185 * configure.in: Require 2.52g.
186 M4 is not needed, but AUTOM4TE is.
187 * m4/m4.m4: Remove.
188 * tests/Makefile.am: Adjust.
189
f693ad14
AD
1902001-12-10 Akim Demaille <akim@epita.fr>
191
192 One structure for states is enough, even though theoretically
193 there are LR(0) states and LALR(1) states.
194
195 * src/lalr.h (state_t): Remove.
196 (state_table): Be state_t **, not state_t *.
197 * src/state.h (core, CORE_ALLOC): Rename as...
198 (state_t, STATE_ALLOC): this.
199 Add the LALR(1) members: shifts, reductions, errs.
200 * src/LR0.c (state_table): Rename as...
201 (state_hash): this, to avoid name clashes with the global
202 `state_table'.
203 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
204 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
205
74ffbcb6
AD
2062001-12-10 Akim Demaille <akim@epita.fr>
207
208 Bison dumps core on bash.y.
209 Reported by Pascal Bart.
210
211 * src/warshall.c (bitmatrix_print): New.
212 (TC): Use it.
213 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
214 j must be the outer loop.
215 * tests/regression.at (Broken Closure): New.
216
07708e19
AD
2172001-12-05 Akim Demaille <akim@epita.fr>
218
219 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
220 its argument.
221