103 |
set of all productions which have a RHS all in N. */ |
set of all productions which have a RHS all in N. */ |
104 |
|
|
105 |
Np = bitset_create (nvars, BITSET_FIXED); |
Np = bitset_create (nvars, BITSET_FIXED); |
|
bitset_zero (Np); |
|
106 |
|
|
107 |
|
|
108 |
/* The set being computed is a set of nonterminals which can derive |
/* The set being computed is a set of nonterminals which can derive |
174 |
user can know. */ |
user can know. */ |
175 |
|
|
176 |
Vp = bitset_create (nsyms, BITSET_FIXED); |
Vp = bitset_create (nsyms, BITSET_FIXED); |
|
bitset_zero (Vp); |
|
177 |
Pp = bitset_create (nrules + 1, BITSET_FIXED); |
Pp = bitset_create (nrules + 1, BITSET_FIXED); |
|
bitset_zero (Pp); |
|
178 |
|
|
179 |
/* If the start symbol isn't useful, then nothing will be useful. */ |
/* If the start symbol isn't useful, then nothing will be useful. */ |
180 |
if (bitset_test (N, start_symbol - ntokens)) |
if (bitset_test (N, start_symbol - ntokens)) |
492 |
/* Allocate the global sets used to compute the reduced grammar */ |
/* Allocate the global sets used to compute the reduced grammar */ |
493 |
|
|
494 |
N = bitset_create (nvars, BITSET_FIXED); |
N = bitset_create (nvars, BITSET_FIXED); |
|
bitset_zero (N); |
|
495 |
P = bitset_create (nrules + 1, BITSET_FIXED); |
P = bitset_create (nrules + 1, BITSET_FIXED); |
|
bitset_zero (P); |
|
496 |
V = bitset_create (nsyms, BITSET_FIXED); |
V = bitset_create (nsyms, BITSET_FIXED); |
|
bitset_zero (V); |
|
497 |
V1 = bitset_create (nsyms, BITSET_FIXED); |
V1 = bitset_create (nsyms, BITSET_FIXED); |
|
bitset_zero (V1); |
|
498 |
|
|
499 |
useless_nonterminals (); |
useless_nonterminals (); |
500 |
inaccessable_symbols (); |
inaccessable_symbols (); |