]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
[bison.git] / ChangeLog
CommitLineData
74392f6a
AD
12001-12-10 Akim Demaille <akim@epita.fr>
2
3 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
4 only when appropriate: when insert_start_shifting_state' is not
5 invoked.
6 * tests/regression.at (Rule Line Numbers): Adjust.
7
8
37c82725
AD
92001-12-10 Akim Demaille <akim@epita.fr>
10
11 * src/LR0.c (augment_automaton): Now that all states have shifts,
12 merge the two cases addition shifts to the initial state.
13
14
6a164e0c
AD
152001-12-10 Akim Demaille <akim@epita.fr>
16
17 * src/lalr.c (set_state_table): Move to...
18 * src/LR0.c: here.
19 * src/lalr.c (lalr): Don't call it...
20 * src/LR0.c (generate_states): do it.
21 * src/LR0.h (first_state): Remove, only the table is used.
22
23
7215de24
AD
242001-12-10 Akim Demaille <akim@epita.fr>
25
26 * src/LR0.h (first_shift, first_reduction): Remove.
27 * src/lalr.c: Don't use first_shift: find shifts through the
28 states.
29
30
80e25d4d
AD
312001-12-10 Akim Demaille <akim@epita.fr>
32
33 * src/LR0.c: Attach shifts to states as soon as they are
34 computed.
35 * src/lalr.c (set_state_table): Instead of assigning shifts to
36 state, just assert that the mapping was properly done.
37
38
0ab3728b
AD
392001-12-10 Akim Demaille <akim@epita.fr>
40
41 * src/LR0.c (insert_start_shift): Rename as...
42 (insert_start_shifting_state): this.
43 (insert_eof_shifting_state, insert_accepting_state): New.
44 (augment_automaton): Adjust.
45 Better locality of the variables.
46 When looking if the start_symbol is shifted from the initial
47 state, using `while (... symbol != start_symbol ...)' sounds
48 better than `while (... symbol < start_symbol ...)': If fail
49 to see how the order between symbols could be relevant!
50
78af9bbc
AD
512001-12-10 Akim Demaille <akim@epita.fr>
52
53 * src/getargs.h: Don't declare `spec_name_prefix' and
54 `spec_file_prefix', declared by src/files.h.
55 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
56 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
57 * src/output.c (prepare): Adjust.
58 * src/reader.c (symbols_output): Likewise.
59 * src/vmsgetargs.c: Vaguely adjust, but who cares?
60
61
bdef2a41
AD
622001-12-10 Akim Demaille <akim@epita.fr>
63
64 * src/muscle_tab.c (muscle_init): NULL is a better default than
65 `"0"'.
66
67
3735969c
AD
682001-12-10 Akim Demaille <akim@epita.fr>
69
70 * src/reader.c (reader): Calling symbols_output once is enough.
71
72
49701457
AD
732001-12-10 Akim Demaille <akim@epita.fr>
74
75 Now that states have a complete set of members, the linked list of
76 reductions is useless: just fill directly the state's reductions
77 member.
78
79 * src/state.h (struct reductions): Remove member `number' and
80 `next'.
81 * src/LR0.c (first_reduction, last_reduction): Remove.
82 (save_reductions): Don't link the new reductions, store them in
83 this_state.
84 * src/lalr.c (set_state_table): No need to attach reductions to
85 states, it's already done.
86 * src/output.c (output_actions): No longer free the shifts, then
87 the reductions, then the states: free all the states and their
88 members.
89
90
0edad749
AD
912001-12-10 Akim Demaille <akim@epita.fr>
92
93 * src/options.c (OPTN, DRTV, BOTH): New.
94 (option_table): Use them.
95
96
97 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
98 the job of system.h.
99 * src/options.c: Don't include stdio.h and xalloc.h for the same
100 reasons.
101
102
5449dd0f
AD
1032001-12-10 Akim Demaille <akim@epita.fr>
104
105 * src/output.c (output, prepare): Make sure the values of the
106 muscles `action' and `prologue' are 0-terminated.
107
a870c567
AD
1082001-12-10 Akim Demaille <akim@epita.fr>
109
110 Clean up GCC warnings.
111
112 * src/reader.c (copy_action): `buf' is not used.
113 (parse_skel_decl): Be static.
114 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
115 * src/options.h (create_long_option_table): Have a real prototype.
116 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
117 (hash_delete_at): Return const void *.
118 Adjust casts to preserve the const.
119
80df8768
AD
1202001-12-10 Akim Demaille <akim@epita.fr>
121
122 * configure.in: Require 2.52g.
123 M4 is not needed, but AUTOM4TE is.
124 * m4/m4.m4: Remove.
125 * tests/Makefile.am: Adjust.
126
127
f693ad14
AD
1282001-12-10 Akim Demaille <akim@epita.fr>
129
130 One structure for states is enough, even though theoretically
131 there are LR(0) states and LALR(1) states.
132
133 * src/lalr.h (state_t): Remove.
134 (state_table): Be state_t **, not state_t *.
135 * src/state.h (core, CORE_ALLOC): Rename as...
136 (state_t, STATE_ALLOC): this.
137 Add the LALR(1) members: shifts, reductions, errs.
138 * src/LR0.c (state_table): Rename as...
139 (state_hash): this, to avoid name clashes with the global
140 `state_table'.
141 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
142 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
143
144
74ffbcb6
AD
1452001-12-10 Akim Demaille <akim@epita.fr>
146
147 Bison dumps core on bash.y.
148 Reported by Pascal Bart.
149
150 * src/warshall.c (bitmatrix_print): New.
151 (TC): Use it.
152 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
153 j must be the outer loop.
154 * tests/regression.at (Broken Closure): New.
155
07708e19
AD
1562001-12-05 Akim Demaille <akim@epita.fr>
157
158 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
159 its argument.
160