Lines Matching refs:action
166 struct action;
168 static struct action *Action_new(void);
169 static struct action *Action_sort(struct action *);
345 struct action { struct
353 struct action *next; /* Next action for this state */ argument
354 struct action *collide; /* Next action with the same hash */ argument
363 struct action *ap; /* List of actions for this state */
491 static struct action *Action_new(void){ in Action_new()
492 static struct action *actionfreelist = 0; in Action_new()
493 struct action *newaction; in Action_new()
498 actionfreelist = (struct action *)calloc(amt, sizeof(struct action)); in Action_new()
516 struct action *ap1, in actioncmp()
517 struct action *ap2 in actioncmp()
534 static struct action *Action_sort( in Action_sort()
535 struct action *ap in Action_sort()
537 ap = (struct action *)msort((char *)ap,(char **)&ap->next, in Action_sort()
543 struct action **app, in Action_add()
548 struct action *newaction; in Action_add()
588 int action; /* Action to take on the given lookahead */ member
610 #define acttab_yyaction(X,N) ((X)->aAction[N].action)
640 void acttab_action(acttab *p, int lookahead, int action){ in acttab_action() argument
653 p->mnAction = action; in acttab_action()
658 p->mnAction = action; in acttab_action()
662 p->aLookahead[p->nLookahead].action = action; in acttab_action()
701 p->aAction[i].action = -1; in acttab_insert()
716 if( p->aAction[i].action!=p->mnAction ) continue; in acttab_insert()
721 if( p->aLookahead[j].action!=p->aAction[k].action ) break; in acttab_insert()
1147 static int resolve_conflict(struct action *,struct action *);
1199 struct action *ap, *nap; in FindActions()
1215 struct action *ap; in FindActions()
1241 struct action *apx, in resolve_conflict()
1242 struct action *apy in resolve_conflict()
3355 struct action *ap, /* The action to print */ in PrintAction()
3425 struct action *ap; in ReportOutput()
3568 PRIVATE int compute_action(struct lemon *lemp, struct action *ap) in compute_action()
4296 struct action *ap; in ReportTable()
4539 int action; in ReportTable() local
4541 action = compute_action(lemp, ap); in ReportTable()
4542 if( action<0 ) continue; in ReportTable()
4543 acttab_action(pActtab, ap->sp->index, action); in ReportTable()
4550 int action; in ReportTable() local
4553 action = compute_action(lemp, ap); in ReportTable()
4554 if( action<0 ) continue; in ReportTable()
4555 acttab_action(pActtab, ap->sp->index, action); in ReportTable()
4564 if( pActtab->aAction[jj].action<0 ) nn++; in ReportTable()
4624 int action = acttab_yyaction(pActtab, i); in ReportTable() local
4625 if( action<0 ) action = lemp->noAction; in ReportTable()
4627 fprintf(out, " %4d,", action); in ReportTable()
4991 struct action *ap, *ap2, *nextap; in CompressTables()
5132 struct action *ap; in ResortStates()