Lines Matching refs:Junction
47 (Junction *, Junction *, char *, Tree *);
53 * What tokens are k tokens away from junction q?
57 * We lock the junction according to k--the lookahead. If we have been at this
58 * junction before looking for the same, k, number of lookahead tokens, we will
69 * junction yields an empty set, replace the empty set with EOF. No FOLLOW means that
112 rJunc( Junction *p, int k, set *rk )
115 Junction *p;
123 require(p->ntype==nJunction, "rJunc: not junction");
126 if ( p->jtype == RuleBlk ) fprintf(stderr, "FIRST(%s,%d) \n",((Junction *)p)->rname,k);
128 decodeJType[p->jtype], ((Junction *)p)->rname);
302 Junction *r;
580 ( Junction *alt1, Junction *alt2, char *sub, Tree *ambig )
583 Junction *alt1;
584 Junction *alt2;
674 void MR_doPredicatesHelp(int inGuessBlock,Junction *alt1,Junction *alt2,int jtype,char *sub)
678 Junction *alt1;
679 Junction *alt2;
687 Junction *parentRule=MR_nameToRuleBlk(alt1->rname);
923 HandleAmbiguity( Junction *block, Junction *alt1, Junction *alt2, int jtype )
926 Junction *block;
927 Junction *alt1;
928 Junction *alt2;
1066 if ( first_item_is_guess_block_extra((Junction *)alt1->p1)!=NULL )
1199 if ( first_item_is_guess_block_extra((Junction *)alt1->p1)!=NULL )
1385 Junction *
1387 analysis_point( Junction *j )
1390 Junction *j;
1393 Junction *gblock;
1399 despite the fact that the formal is a junction. But
1406 gblock = first_item_is_guess_block((Junction *)j);
1410 Junction *past = gblock->end;
1411 Junction *p;
1414 for (p=(Junction *)past->p1; p!=NULL; )
1418 p=(Junction *)((ActionNode *)p)->next;
1424 return (Junction *)past->p1;
1440 /* MR6 block itself thereby reusing the junction tree. */
1448 /* MR6 junction of type EndBlk or EndRule and says to its caller: nothing */
1457 return (Junction *)past->p1; /* MR6 */
1459 p=(Junction *)p->p1;
1467 First( Junction *j, int k, int jtype, int *max_k )
1470 Junction *j;
1476 Junction *alt1, *alt2;
1483 require(j->ntype==nJunction, "First: non junction passed");
1487 for (alt1=j; alt1!=NULL; alt1 = (Junction *)alt1->p2 )
1489 Junction * p = NULL;
1490 Junction * p1junction = NULL;
1491 p = analysis_point((Junction *)alt1->p1);
1492 p1junction = (Junction *) (alt1->p1);
1506 for (p1=1,alt1=j; alt1!=NULL; alt1 = (Junction *)alt1->p2, p1++)
1508 for (p2=1,alt2=(Junction *)alt1->p2; alt2!=NULL; alt2 = (Junction *)alt2->p2, p2++)
1536 Junction *p = analysis_point((Junction *)alt1->p1);
1537 Junction *q = analysis_point((Junction *)alt2->p1);