Lines Matching refs:type
198 enum option_type type; member
257 enum symbol_type type; /* Symbols are all either TERMINALS or NTs */ member
346 enum e_action type; member
521 rc = (int)ap1->type - (int)ap2->type; in actioncmp()
523 if( rc==0 && (ap1->type==REDUCE || ap1->type==SHIFTREDUCE) ){ in actioncmp()
543 enum e_action type, in Action_add() argument
551 newaction->type = type; in Action_add()
554 if( type==SHIFT ){ in Action_add()
818 if( sp->type==MULTITERMINAL ){ in FindRulePrecedences()
859 assert( sp->type==NONTERMINAL || sp->lambda==LEMON_FALSE ); in FindFirstSets()
877 if( s2->type==TERMINAL ){ in FindFirstSets()
880 }else if( s2->type==MULTITERMINAL ){ in FindFirstSets()
1012 if( a->type!=MULTITERMINAL ) return 0; in same_symbol()
1013 if( b->type!=MULTITERMINAL ) return 0; in same_symbol()
1063 if( sp->type==MULTITERMINAL ){ in buildshifts()
1216 if( ap->type==REDUCE ) ap->x.rp->canReduce = LEMON_TRUE; in FindActions()
1246 if( apx->type==SHIFT && apy->type==SHIFT ){ in resolve_conflict()
1247 apy->type = SSCONFLICT; in resolve_conflict()
1250 if( apx->type==SHIFT && apy->type==REDUCE ){ in resolve_conflict()
1255 apy->type = SRCONFLICT; in resolve_conflict()
1258 apy->type = RD_RESOLVED; in resolve_conflict()
1260 apx->type = SH_RESOLVED; in resolve_conflict()
1262 apy->type = RD_RESOLVED; /* associativity */ in resolve_conflict()
1264 apx->type = SH_RESOLVED; in resolve_conflict()
1267 apx->type = ERROR; in resolve_conflict()
1269 }else if( apx->type==REDUCE && apy->type==REDUCE ){ in resolve_conflict()
1274 apy->type = RRCONFLICT; in resolve_conflict()
1277 apy->type = RD_RESOLVED; in resolve_conflict()
1279 apx->type = RD_RESOLVED; in resolve_conflict()
1283 apx->type==SH_RESOLVED || in resolve_conflict()
1284 apx->type==RD_RESOLVED || in resolve_conflict()
1285 apx->type==SSCONFLICT || in resolve_conflict()
1286 apx->type==SRCONFLICT || in resolve_conflict()
1287 apx->type==RRCONFLICT || in resolve_conflict()
1288 apy->type==SH_RESOLVED || in resolve_conflict()
1289 apy->type==RD_RESOLVED || in resolve_conflict()
1290 apy->type==SSCONFLICT || in resolve_conflict()
1291 apy->type==SRCONFLICT || in resolve_conflict()
1292 apy->type==RRCONFLICT in resolve_conflict()
1413 if( sp->type==NONTERMINAL ){ in Configlist_closure()
1423 if( xsp->type==TERMINAL ){ in Configlist_closure()
1426 }else if( xsp->type==MULTITERMINAL ){ in Configlist_closure()
1709 while( lem.symbols[i-1]->type==MULTITERMINAL ){ i--; } in main()
1994 }else if( op[j].type==OPT_FLAG ){ in handleflags()
1996 }else if( op[j].type==OPT_FFLAG ){ in handleflags()
1998 }else if( op[j].type==OPT_FSTR ){ in handleflags()
2036 switch( op[j].type ){ in handleswitch()
2073 switch( op[j].type ){ in handleswitch()
2157 switch( op[i].type ){ in OptPrint()
2177 switch( op[i].type ){ in OptPrint()
2433 if( msp->type!=MULTITERMINAL ){ in parseonetoken()
2437 msp->type = MULTITERMINAL; in parseonetoken()
2759 psp->tkclass->type = MULTITERMINAL; in parseonetoken()
3240 if( sp->type==MULTITERMINAL ){ in rule_print()
3297 if( sp->type==MULTITERMINAL ){ in RulePrint()
3359 switch( ap->type ){ in PrintAction()
3468 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()