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