Home
last modified time | relevance | path

Searched refs:jtype (Results 1 – 11 of 11) sorted by relevance

/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/
Dfset.c126 if ( p->jtype == RuleBlk ) fprintf(stderr, "FIRST(%s,%d) \n",((Junction *)p)->rname,k);
128 decodeJType[p->jtype], ((Junction *)p)->rname);
151 if ( p->jtype==aLoopBlk || p->jtype==RuleBlk ||
152 p->jtype==aPlusBlk || p->jtype==EndRule )
157 if ( p->jtype == EndRule ) /* FOLLOW cycle? */
167 if ( p->jtype == RuleBlk &&
179 if ( p->jtype == EndRule &&
204 if ( p->jtype == EndRule )
238 if ( p->jtype == RuleBlk && p->end->halt && ! MR_AmbSourceSearch) /* can save FIRST set? */
247 if ( p->jtype == EndRule &&
[all …]
Dmisc.c371 if ( j->jtype == EndRule ) return;
1028 if ( p->jtype==EndBlk || p->jtype==EndRule )
1058 switch ( q->jtype )
1061 if ( PrintAnnotate ) First(q, 1, q->jtype, &dum_k);
1063 ((Junction *)q->end->p1)->jtype == EndRule ) doing_rule = 1;
1075 pBlk(q,q->jtype);
1080 pBlk(q,q->jtype);
1090 if ( PrintAnnotate ) First(q, 1, q->jtype, &dum_k);
1100 pBlk(q,q->jtype);
1109 if ( PrintAnnotate ) First(q, 1, q->jtype, &dum_k);
[all …]
Dpred.c168 ((Junction *)p->p1)->jtype != EndBlk )
273 switch ( j->jtype )
326 if ( p->jtype==aLoopBlk || p->jtype==RuleBlk ||
327 p->jtype==aPlusBlk || p->jtype==EndRule )
337 switch ( p->jtype )
512 /* MR10 */ (MR_RuleBlkWithHalt->jtype == RuleBlk && MR_RuleBlkWithHalt->end->halt == TRUE),
542 /* MR10 */ (MR_RuleBlkWithHalt->jtype == RuleBlk && MR_RuleBlkWithHalt->end->halt == FALSE…
Ddumpnode.c43 ( (Junction *) p)->jtype == EndRule) {
178 switch (j->jtype ) {
390 if (j->jtype == EndRule) return NULL;
391 if (j->jtype != RuleBlk && j->jtype != EndBlk) {
415 require (j->ntype == nJunction && j->jtype == RuleBlk,"Not a rule block");
Dfset2.c546 decodeJType[p->jtype], ((Junction *)p)->rname);
560 if ( p->jtype==aLoopBlk || p->jtype==RuleBlk ||
561 p->jtype==aPlusBlk || p->jtype==aSubBlk || p->jtype==aOptBlk )
563 if ( p->jtype!=aSubBlk && p->jtype!=aOptBlk ) {
570 /* MR10 */ if (p->jtype != Generic) MR_pointerStackPush(&MR_BackTraceStack,p);
576 /* MR10 */ if (p->jtype != Generic) MR_pointerStackPop(&MR_BackTraceStack);
579 if ( p->jtype==RuleBlk ) {p->lock[k] = FALSE; return tail;}
590 /* MR10 */ if (p->jtype != Generic) MR_pointerStackPush(&MR_BackTraceStack,p);
596 /* MR10 */ if (p->jtype != Generic) MR_pointerStackPop(&MR_BackTraceStack);
601 if ( p->jtype!=aSubBlk && p->jtype!=aOptBlk ) p->lock[k] = FALSE;
[all …]
Dbuild.c42 ((Junction *)g.left)->jtype = t; \
46 ((Junction *)g.right)->jtype = EndBlk;}
484 ((Junction *)g1.right)->jtype = EndBlk; /* mark 1st EndBlk node */
485 ((Junction *)g1.left)->jtype = aLoopBlk; /* mark 2nd aLoopBlk node */
538 ((Junction *)g1.right)->jtype = EndBlk; /* mark 1st EndBlk node */
555 ((Junction *)p->p1)->jtype==Generic &&
557 ((Junction *)((Junction *)p->p1)->p1)->jtype==EndBlk )
731 p->jtype = Generic; in newJunction()
Dgen.c522 if ( q->jtype == aPlusBlk ) gen("int zzcnt=1;\n");
526 if ( q->jtype == aLoopBegin ) begin = (Junction *) ((Junction *)q->p1);
532 if ( q->jtype == aLoopBegin )
1542 genBlk( Junction *q, int jtype, int *max_k, int *need_right_curly, int * lastAltEmpty /* MR23 */) in genBlk() argument
1544 genBlk( q, jtype, max_k, need_right_curly, lastAltEmpty /* MR23 */) in genBlk()
1546 int jtype;
1563 if (jtype != aLoopBlk && jtype != aOptBlk && jtype != aPlusBlk) {
1574 f = First(q, 1, jtype, max_k);
1606 /* MR23 */ if ( a_guess_in_block && jtype != aPlusBlk) {
1611 /* MR28 */ if (jtype == aPlusBlk) {
[all …]
Dsyn.h166 if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\
341 int jtype; /* annotation for code-gen/FIRST/FOLLOW. variable
Dmrhoist.c544 ( (Junction *) next)->jtype == EndRule) {
942 (MR_RuleBlkWithHalt->jtype == RuleBlk && MR_RuleBlkWithHalt->end->halt == TRUE),
1008 (MR_RuleBlkWithHalt->jtype == RuleBlk && MR_RuleBlkWithHalt->end->halt == TRUE),
1457 ((Junction *)p->p1)->jtype != EndBlk ) {
1469 if (alt->jtype == aPlusBlk) {
1499 ((Junction *)p->p1)->jtype != EndBlk ) {
2143 if (j->jtype == EndRule) return;
2144 if (j->jtype != RuleBlk && j->jtype != EndBlk) {
2185 require (j->ntype == nJunction && j->jtype == RuleBlk,"Not a rule block");
2950 switch (j->jtype) {
Dantlr.c655 CurRuleBlk->jtype = RuleBlk; in rule()
668 p->jtype = EndRule; in rule()
Dantlr.g905 CurRuleBlk->jtype = RuleBlk;
918 p->jtype = EndRule;