nextlhs
static char *nextlhs(struct parsestate *ps);
while ((lhsp = nextlhs(&pstate)) != NULL) {
for(newrp=sp->rule; newrp; newrp=newrp->nextlhs){
struct rule *nextlhs; /* Next rule with the same LHS */
rp->nextlhs = rp->lhs->rule;
for(rp=sp->rule; rp; rp=rp->nextlhs){