Lines Matching refs:type

198   enum option_type type;  member
258 enum symbol_type type; /* Symbols are all either TERMINALS or NTs */ member
347 enum e_action type; member
522 rc = (int)ap1->type - (int)ap2->type; in actioncmp()
524 if( rc==0 && (ap1->type==REDUCE || ap1->type==SHIFTREDUCE) ){ in actioncmp()
544 enum e_action type, in Action_add() argument
552 newaction->type = type; in Action_add()
555 if( type==SHIFT ){ in Action_add()
819 if( sp->type==MULTITERMINAL ){ in FindRulePrecedences()
860 assert( sp->type==NONTERMINAL || sp->lambda==LEMON_FALSE ); in FindFirstSets()
878 if( s2->type==TERMINAL ){ in FindFirstSets()
881 }else if( s2->type==MULTITERMINAL ){ in FindFirstSets()
1013 if( a->type!=MULTITERMINAL ) return 0; in same_symbol()
1014 if( b->type!=MULTITERMINAL ) return 0; in same_symbol()
1064 if( sp->type==MULTITERMINAL ){ in buildshifts()
1217 if( ap->type==REDUCE ) ap->x.rp->canReduce = LEMON_TRUE; in FindActions()
1247 if( apx->type==SHIFT && apy->type==SHIFT ){ in resolve_conflict()
1248 apy->type = SSCONFLICT; in resolve_conflict()
1251 if( apx->type==SHIFT && apy->type==REDUCE ){ in resolve_conflict()
1256 apy->type = SRCONFLICT; in resolve_conflict()
1259 apy->type = RD_RESOLVED; in resolve_conflict()
1261 apx->type = SH_RESOLVED; in resolve_conflict()
1263 apy->type = RD_RESOLVED; /* associativity */ in resolve_conflict()
1265 apx->type = SH_RESOLVED; in resolve_conflict()
1268 apx->type = ERROR; in resolve_conflict()
1270 }else if( apx->type==REDUCE && apy->type==REDUCE ){ in resolve_conflict()
1275 apy->type = RRCONFLICT; in resolve_conflict()
1278 apy->type = RD_RESOLVED; in resolve_conflict()
1280 apx->type = RD_RESOLVED; in resolve_conflict()
1284 apx->type==SH_RESOLVED || in resolve_conflict()
1285 apx->type==RD_RESOLVED || in resolve_conflict()
1286 apx->type==SSCONFLICT || in resolve_conflict()
1287 apx->type==SRCONFLICT || in resolve_conflict()
1288 apx->type==RRCONFLICT || in resolve_conflict()
1289 apy->type==SH_RESOLVED || in resolve_conflict()
1290 apy->type==RD_RESOLVED || in resolve_conflict()
1291 apy->type==SSCONFLICT || in resolve_conflict()
1292 apy->type==SRCONFLICT || in resolve_conflict()
1293 apy->type==RRCONFLICT in resolve_conflict()
1414 if( sp->type==NONTERMINAL ){ in Configlist_closure()
1424 if( xsp->type==TERMINAL ){ in Configlist_closure()
1427 }else if( xsp->type==MULTITERMINAL ){ in Configlist_closure()
1710 while( lem.symbols[i-1]->type==MULTITERMINAL ){ i--; } in main()
1995 }else if( op[j].type==OPT_FLAG ){ in handleflags()
1997 }else if( op[j].type==OPT_FFLAG ){ in handleflags()
1999 }else if( op[j].type==OPT_FSTR ){ in handleflags()
2037 switch( op[j].type ){ in handleswitch()
2074 switch( op[j].type ){ in handleswitch()
2158 switch( op[i].type ){ in OptPrint()
2178 switch( op[i].type ){ in OptPrint()
2434 if( msp->type!=MULTITERMINAL ){ in parseonetoken()
2438 msp->type = MULTITERMINAL; in parseonetoken()
2760 psp->tkclass->type = MULTITERMINAL; in parseonetoken()
3241 if( sp->type==MULTITERMINAL ){ in rule_print()
3298 if( sp->type==MULTITERMINAL ){ in RulePrint()
3360 switch( ap->type ){ in PrintAction()
3469 if( sp->type==NONTERMINAL ){ in ReportOutput()
3571 switch( ap->type ){ in compute_action()
3737 if( sp->type==TERMINAL ){ in emit_destructor_code()
3778 if( sp->type==TERMINAL ){ in has_destructor()
3954 if( sp->type==MULTITERMINAL ){ in translate_code()
4145 if( sp->type!=NONTERMINAL || (sp->datatype==0 && lemp->vartype==0) ){ in print_stack_union()
4274 if( sp->type!=MULTITERMINAL ){ in writeRuleText()
4377 if( sp->type!=MULTITERMINAL ){ in ReportTable()
4580 if( ap->type==REDUCE || ap->type==SHIFTREDUCE ){ in ReportTable()
4792 if( sp==0 || sp->type!=TERMINAL ) continue; in ReportTable()
4799 for(i=0; i<lemp->nsymbol && lemp->symbols[i]->type!=TERMINAL; i++); in ReportTable()
4810 if( sp==0 || sp->type==TERMINAL || in ReportTable()
4826 if( sp==0 || sp->type==TERMINAL || sp->destructor==0 ) continue; in ReportTable()
4833 if( sp2 && sp2->type!=TERMINAL && sp2->destructor in ReportTable()
5004 if( ap->type==SHIFT && ap->sp==lemp->wildcard ){ in CompressTables()
5007 if( ap->type!=REDUCE ) continue; in CompressTables()
5013 if( ap2->type!=REDUCE ) continue; in CompressTables()
5033 if( ap->type==REDUCE && ap->x.rp==rbest ) break; in CompressTables()
5038 if( ap->type==REDUCE && ap->x.rp==rbest ) ap->type = NOT_USED; in CompressTables()
5043 if( ap->type==SHIFT ) break; in CompressTables()
5044 if( ap->type==REDUCE && ap->x.rp!=rbest ) break; in CompressTables()
5060 if( ap->type!=SHIFT ) continue; in CompressTables()
5063 ap->type = SHIFTREDUCE; in CompressTables()
5079 if( ap->type!=SHIFTREDUCE ) continue; in CompressTables()
5094 ap->type = ap2->type; in CompressTables()
5387 sp->type = ISUPPER(*x) ? TERMINAL : NONTERMINAL; in Symbol_new()
5422 int i1 = a->type==MULTITERMINAL ? 3 : a->name[0]>'Z' ? 2 : 1; in Symbolcmpp()
5423 int i2 = b->type==MULTITERMINAL ? 3 : b->name[0]>'Z' ? 2 : 1; in Symbolcmpp()