Home | History | Annotate | Download | only in tool

Lines Matching defs:REDUCE

230   REDUCE,
233 SRCONFLICT, /* Was a reduce, but part of a conflict */
234 RRCONFLICT, /* Was a reduce, but part of a conflict */
236 RD_RESOLVED, /* Was reduce. Precedence resolved conflict */
240 /* Every shift or reduce operation is stored as one of the following */
246 struct rule *rp; /* The rule, if a reduce */
404 if( rc==0 && ap1->type==REDUCE ){
990 /* Compute the reduce actions, and resolve conflicts.
1000 /* Add all of the reduce actions
1001 ** A reduce action is added for each element of the followset of
1010 /* Add a reduce action to the state "stp" which will reduce by the
1012 Action_add(&stp->ap,REDUCE,lemp->symbols[j],(char *)cfp->rp);
1052 if( ap->type==REDUCE ) ap->x.rp->canReduce = LEMON_TRUE;
1073 ** function won't work if apx->type==REDUCE and apy->type==SHIFT.
1087 if( apx->type==SHIFT && apy->type==REDUCE ){
1107 }else if( apx->type==REDUCE && apy->type==REDUCE ){
1132 /* The REDUCE/SHIFT case cannot happen because SHIFTs come before
2896 case REDUCE:
2897 fprintf(fp,"%*s reduce %d",indent,ap->sp->name,ap->x.rp->index);
2907 fprintf(fp,"%*s reduce %-3d ** Parsing conflict **",
2924 fprintf(fp,"%*s reduce %-3d -- dropped by precedence",
3057 case REDUCE: act = ap->x.rp->index + lemp->nstate; break;
3364 ** reduce code */
3398 /* Generate code to do the reduce action */
3712 ** shifting non-terminals after a reduce.
3901 ** when tracing REDUCE actions.
3987 /* Generate code which execution during each REDUCE action */
4077 /* Reduce the size of the action tables, if possible, by making use
4080 ** In this version, we take the most frequent REDUCE action and make
4103 if( ap->type!=REDUCE ) continue;
4109 if( ap2->type!=REDUCE ) continue;
4127 /* Combine matching REDUCE actions into a single default */
4129 if( ap->type==REDUCE && ap->x.rp==rbest ) break;
4134 if( ap->type==REDUCE && ap->x.rp==rbest ) ap->type = NOT_USED;