]> git.saurik.com Git - bison.git/blame - ChangeLog
Typo.
[bison.git] / ChangeLog
CommitLineData
5edafffd
AD
12001-12-10 Akim Demaille <akim@epita.fr>
2
3 * src/lalr.c (initialize_lookaheads): New. Extracted from...
4 * src/LR0.c (set_state_table): here.
5 * src/lalr.c (lalr): Call it.
6
0279f8e9
AD
72001-12-10 Akim Demaille <akim@epita.fr>
8
9 * src/state.h (shifts): Remove the `number' member: shifts are
10 attached to state, hence no longer need to be labelled with a
11 state number.
12
190c4f5f
AD
132001-12-10 Akim Demaille <akim@epita.fr>
14
15 Now that states have a complete set of members, the linked list of
16 shifts is useless: just fill directly the state's shifts member.
17
18 * src/state.h (shifts): Remove the `next' member.
19 * src/LR0.c (first_state, last_state): Remove.
20 Adjust the callers.
21 (augment_automaton): Don't look for the shifts that must be added
22 a shift on EOF: it is those of the state we looked for! But now,
23 since shifts are attached, it is no longer needed to looking
24 merely by its id: its number.
25
2a73b93d
AD
262001-12-10 Akim Demaille <akim@epita.fr>
27
28 * src/LR0.c (augment_automaton): Better variable locality.
29 Remove an impossible branch: if there is a state corresponding to
30 the start symbol being shifted, then there is shift for the start
31 symbol from the initial state.
32
74392f6a
AD
332001-12-10 Akim Demaille <akim@epita.fr>
34
35 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
36 only when appropriate: when insert_start_shifting_state' is not
37 invoked.
38 * tests/regression.at (Rule Line Numbers): Adjust.
39
37c82725
AD
402001-12-10 Akim Demaille <akim@epita.fr>
41
42 * src/LR0.c (augment_automaton): Now that all states have shifts,
43 merge the two cases addition shifts to the initial state.
44
6a164e0c
AD
452001-12-10 Akim Demaille <akim@epita.fr>
46
47 * src/lalr.c (set_state_table): Move to...
48 * src/LR0.c: here.
49 * src/lalr.c (lalr): Don't call it...
50 * src/LR0.c (generate_states): do it.
51 * src/LR0.h (first_state): Remove, only the table is used.
52
7215de24
AD
532001-12-10 Akim Demaille <akim@epita.fr>
54
55 * src/LR0.h (first_shift, first_reduction): Remove.
56 * src/lalr.c: Don't use first_shift: find shifts through the
57 states.
58
80e25d4d
AD
592001-12-10 Akim Demaille <akim@epita.fr>
60
61 * src/LR0.c: Attach shifts to states as soon as they are
62 computed.
63 * src/lalr.c (set_state_table): Instead of assigning shifts to
64 state, just assert that the mapping was properly done.
65
0ab3728b
AD
662001-12-10 Akim Demaille <akim@epita.fr>
67
68 * src/LR0.c (insert_start_shift): Rename as...
69 (insert_start_shifting_state): this.
70 (insert_eof_shifting_state, insert_accepting_state): New.
71 (augment_automaton): Adjust.
72 Better locality of the variables.
73 When looking if the start_symbol is shifted from the initial
74 state, using `while (... symbol != start_symbol ...)' sounds
75 better than `while (... symbol < start_symbol ...)': If fail
76 to see how the order between symbols could be relevant!
77
78af9bbc
AD
782001-12-10 Akim Demaille <akim@epita.fr>
79
80 * src/getargs.h: Don't declare `spec_name_prefix' and
81 `spec_file_prefix', declared by src/files.h.
82 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
83 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
84 * src/output.c (prepare): Adjust.
85 * src/reader.c (symbols_output): Likewise.
86 * src/vmsgetargs.c: Vaguely adjust, but who cares?
87
bdef2a41
AD
882001-12-10 Akim Demaille <akim@epita.fr>
89
90 * src/muscle_tab.c (muscle_init): NULL is a better default than
91 `"0"'.
92
3735969c
AD
932001-12-10 Akim Demaille <akim@epita.fr>
94
95 * src/reader.c (reader): Calling symbols_output once is enough.
96
49701457
AD
972001-12-10 Akim Demaille <akim@epita.fr>
98
99 Now that states have a complete set of members, the linked list of
100 reductions is useless: just fill directly the state's reductions
101 member.
102
103 * src/state.h (struct reductions): Remove member `number' and
104 `next'.
105 * src/LR0.c (first_reduction, last_reduction): Remove.
106 (save_reductions): Don't link the new reductions, store them in
107 this_state.
108 * src/lalr.c (set_state_table): No need to attach reductions to
109 states, it's already done.
110 * src/output.c (output_actions): No longer free the shifts, then
111 the reductions, then the states: free all the states and their
112 members.
113
0edad749
AD
1142001-12-10 Akim Demaille <akim@epita.fr>
115
116 * src/options.c (OPTN, DRTV, BOTH): New.
117 (option_table): Use them.
118
0edad749
AD
119 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
120 the job of system.h.
121 * src/options.c: Don't include stdio.h and xalloc.h for the same
122 reasons.
123
5449dd0f
AD
1242001-12-10 Akim Demaille <akim@epita.fr>
125
126 * src/output.c (output, prepare): Make sure the values of the
127 muscles `action' and `prologue' are 0-terminated.
128
a870c567
AD
1292001-12-10 Akim Demaille <akim@epita.fr>
130
131 Clean up GCC warnings.
132
133 * src/reader.c (copy_action): `buf' is not used.
134 (parse_skel_decl): Be static.
135 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
136 * src/options.h (create_long_option_table): Have a real prototype.
137 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
138 (hash_delete_at): Return const void *.
139 Adjust casts to preserve the const.
140
80df8768
AD
1412001-12-10 Akim Demaille <akim@epita.fr>
142
143 * configure.in: Require 2.52g.
144 M4 is not needed, but AUTOM4TE is.
145 * m4/m4.m4: Remove.
146 * tests/Makefile.am: Adjust.
147
f693ad14
AD
1482001-12-10 Akim Demaille <akim@epita.fr>
149
150 One structure for states is enough, even though theoretically
151 there are LR(0) states and LALR(1) states.
152
153 * src/lalr.h (state_t): Remove.
154 (state_table): Be state_t **, not state_t *.
155 * src/state.h (core, CORE_ALLOC): Rename as...
156 (state_t, STATE_ALLOC): this.
157 Add the LALR(1) members: shifts, reductions, errs.
158 * src/LR0.c (state_table): Rename as...
159 (state_hash): this, to avoid name clashes with the global
160 `state_table'.
161 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
162 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
163
74ffbcb6
AD
1642001-12-10 Akim Demaille <akim@epita.fr>
165
166 Bison dumps core on bash.y.
167 Reported by Pascal Bart.
168
169 * src/warshall.c (bitmatrix_print): New.
170 (TC): Use it.
171 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
172 j must be the outer loop.
173 * tests/regression.at (Broken Closure): New.
174
07708e19
AD
1752001-12-05 Akim Demaille <akim@epita.fr>
176
177 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
178 its argument.
179