Lines Matching refs:nrhs
151 int nrhs; /* Number of RHS symbols */ member
588 for(i=0; i<rp->nrhs; i++){
623 for(i=0; i<rp->nrhs; i++){
626 if( i==rp->nrhs ){
639 for(i=0; i<rp->nrhs; i++){
689 for(i=0; i<rp->nrhs; i++){
783 if( cfp->dot>=cfp->rp->nrhs ) continue; /* Can't shift this config */
792 if( bcfp->dot>=bcfp->rp->nrhs ) continue; /* Can't shift this one */
902 if( cfp->rp->nrhs==cfp->dot ){ /* Is dot at extreme right? */
1154 if( dot>=rp->nrhs ) continue;
1164 for(i=dot+1; i<rp->nrhs; i++){
1174 if( i==rp->nrhs ) Plink_add(&cfp->fplp,newcfp);
1886 int nrhs; /* Number of right-hand side symbols seen */ member
1921 psp->nrhs = 0;
2025 sizeof(struct symbol*)*psp->nrhs + sizeof(char*)*psp->nrhs );
2035 rp->rhsalias = (char**)&(rp->rhs[psp->nrhs]);
2036 for(i=0; i<psp->nrhs; i++){
2042 rp->nrhs = psp->nrhs;
2059 if( psp->nrhs>=MAXRHS ){
2066 psp->rhs[psp->nrhs] = Symbol_new(x);
2067 psp->alias[psp->nrhs] = 0;
2068 psp->nrhs++;
2070 }else if( x[0]=='(' && psp->nrhs>0 ){
2081 psp->alias[psp->nrhs-1] = x;
2086 x,psp->rhs[psp->nrhs-1]->name);
2564 for(i=0; i<rp->nrhs; i++){
2583 for(i=0; i<=rp->nrhs; i++){
2585 if( i==rp->nrhs ) break;
2677 if( cfp->dot==cfp->rp->nrhs ){
2935 for(i=0; i<rp->nrhs; i++) used[i] = 0;
2952 for(i=0; i<rp->nrhs; i++){
2954 fprintf(out,"yymsp[%d].minor.yy%d",i-rp->nrhs+1,rp->rhs[i]->dtnum);
2980 for(i=0; i<rp->nrhs; i++){
2989 rp->rhs[i]->index,i-rp->nrhs+1); (*lineno)++;
3464 for(j=0; j<rp->nrhs; j++) fprintf(out," %s",rp->rhs[j]->name);
3518 fprintf(out," { %d, %d },\n",rp->lhs->index,rp->nrhs); lineno++;