Go to the source code of this file.
void closure |
( |
short int * |
nucleus, |
|
|
int |
n |
|
) |
| |
Definition at line 120 of file closure.c.
138 for (rsp =
ruleset; rsp < rsend; rsp++)
142 for (csp = nucleus; csp < csend; ++csp)
144 symbol =
ritem[*csp];
147 dsp = first_derives + symbol * rulesetsize;
157 for (rsp =
ruleset; rsp < rsend; ++rsp)
166 itemno =
rrhs[ruleno+
i];
167 while (csp < csend && *csp < itemno)
170 while (csp < csend && *csp == itemno)
void finalize_closure |
( |
void |
| ) |
|
void set_first_derives |
( |
void |
| ) |
|
Definition at line 64 of file closure.c.
84 rrow = first_derives +
ntokens * rulesetsize;
87 vrow = EFF + ((i -
ntokens) * varsetsize);
100 while ((rule = *rp++) >= 0)
112 print_first_derives();