Lines Matching refs:yystack

415     YYSTACKDATA            yystack; /* saved parser stack */
472 #define yydepth (int)(yystack.s_mark - yystack.s_base)
557 p->yystack.stacksize = size;
560 p->yystack.s_base = NULL;
561 p->yystack.l_base = NULL;
563 p->yystack.p_base = NULL;
567 p->yystack.s_base = (short *) malloc(size * sizeof(short));
568 if (p->yystack.s_base == NULL) return NULL;
569 p->yystack.l_base = (YYSTYPE *) malloc(size * sizeof(YYSTYPE));
570 if (p->yystack.l_base == NULL) return NULL;
571 memset(p->yystack.l_base, 0, size * sizeof(YYSTYPE));
573 p->yystack.p_base = (YYLTYPE *) malloc(size * sizeof(YYLTYPE));
574 if (p->yystack.p_base == NULL) return NULL;
575 memset(p->yystack.p_base, 0, size * sizeof(YYLTYPE));
584 yyfreestack(&p->yystack);
612 YYSTACKDATA yystack;
683 memset(&yystack, 0, sizeof(yystack));
686 if (yystack.s_base == NULL && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
687 yystack.s_mark = yystack.s_base;
688 yystack.l_mark = yystack.l_base;
690 yystack.p_mark = yystack.p_base;
693 *yystack.s_mark = 0;
807 save = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
812 save->yystack.s_mark = save->yystack.s_base + (yystack.s_mark - yystack.s_base);
813 memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
814 save->yystack.l_mark = save->yystack.l_base + (yystack.l_mark - yystack.l_base);
815 memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
817 save->yystack.p_mark = save->yystack.p_base + (yystack.p_mark - yystack.p_base);
818 memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
891 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM)
894 *++yystack.s_mark = (short) yystate;
895 *++yystack.l_mark = yylval;
897 *++yystack.p_mark = yylloc;
918 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
920 *++yystack.s_mark = yytable[yyn];
921 *++yystack.l_mark = yylval;
923 *++yystack.p_mark = yylloc;
961 yyerrctx = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
966 yyerrctx->yystack.s_mark = yyerrctx->yystack.s_base + (yystack.s_mark - yystack.s_base);
967 memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
968 yyerrctx->yystack.l_mark = yyerrctx->yystack.l_base + (yystack.l_mark - yystack.l_base);
969 memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
971 yyerrctx->yystack.p_mark = yyerrctx->yystack.p_base + (yystack.p_mark - yystack.p_base);
972 memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
982 yystack.s_mark = yystack.s_base + (save->yystack.s_mark - save->yystack.s_base);
983 memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
984 yystack.l_mark = yystack.l_base + (save->yystack.l_mark - save->yystack.l_base);
985 memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
987 yystack.p_mark = yystack.p_base + (save->yystack.p_mark - save->yystack.p_base);
988 memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1017 yystack.s_mark = yystack.s_base + (yyerrctx->yystack.s_mark - yyerrctx->yystack.s_base);
1018 memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1019 yystack.l_mark = yystack.l_base + (yyerrctx->yystack.l_mark - yyerrctx->yystack.l_base);
1020 memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1022 yystack.p_mark = yystack.p_base + (yyerrctx->yystack.p_mark - yyerrctx->yystack.p_base);
1023 memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1051 if (((yyn = yysindex[*yystack.s_mark]) != 0) && (yyn += YYERRCODE) >= 0 &&
1057 YYDEBUGSTR, yydepth, *yystack.s_mark, yytable[yyn]);
1059 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1061 *++yystack.s_mark = yytable[yyn];
1062 *++yystack.l_mark = yylval;
1067 *++yystack.p_mark = yyloc;
1076 YYDEBUGSTR, yydepth, *yystack.s_mark);
1078 if (yystack.s_mark <= yystack.s_base) goto yyabort;
1081 yyerror_loc_range[0] = *yystack.p_mark;
1089 yystos[*yystack.s_mark], yystack.l_mark, yystack.p_mark);
1092 yystos[*yystack.s_mark], yystack.l_mark);
1095 --yystack.s_mark;
1096 --yystack.l_mark;
1098 --yystack.p_mark;
1146 fputs(YYSTYPE_TOSTRING(yystos[yystack.s_mark[1-i]],
1147 yystack.l_mark[1-i]), stderr);
1156 yyval = yystack.l_mark[1-yym];
1167 YYLLOC_DEFAULT(yyloc, &yystack.p_mark[1-yym], yym);
1170 yyerror_loc_range[0] = yystack.p_mark[1-yym];
1182 { printf("%d\n",yystack.l_mark[0]);}
1186 { regs[yystack.l_mark[-2]] = yystack.l_mark[0]; }
1190 { yyval = yystack.l_mark[-1]; }
1194 { yyval = yystack.l_mark[-2] + yystack.l_mark[0]; }
1198 { yyval = yystack.l_mark[-2] - yystack.l_mark[0]; }
1202 { yyval = yystack.l_mark[-2] * yystack.l_mark[0]; }
1206 { yyval = yystack.l_mark[-2] / yystack.l_mark[0]; }
1210 { yyval = yystack.l_mark[-2] % yystack.l_mark[0]; }
1214 { yyval = yystack.l_mark[-2] & yystack.l_mark[0]; }
1218 { yyval = yystack.l_mark[-2] | yystack.l_mark[0]; }
1222 { yyval = - yystack.l_mark[0]; }
1226 { yyval = regs[yystack.l_mark[0]]; }
1230 { yyval = yystack.l_mark[0]; base = (yystack.l_mark[0]==0) ? 8 : 10; }
1234 { yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
1240 yystack.s_mark -= yym;
1241 yystate = *yystack.s_mark;
1242 yystack.l_mark -= yym;
1244 yystack.p_mark -= yym;
1263 *++yystack.s_mark = YYFINAL;
1264 *++yystack.l_mark = yyval;
1266 *++yystack.p_mark = yyloc;
1352 fprintf(stderr, "shifting from state %d to state %d\n", *yystack.s_mark, yystate);
1355 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1356 *++yystack.s_mark = (short) yystate;
1357 *++yystack.l_mark = yyval;
1359 *++yystack.p_mark = yyloc;
1390 yystack.s_mark = yystack.s_base + (yypath->yystack.s_mark - yypath->yystack.s_base);
1391 memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1392 yystack.l_mark = yystack.l_base + (yypath->yystack.l_mark - yypath->yystack.l_base);
1393 memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1395 yystack.p_mark = yystack.p_base + (yypath->yystack.p_mark - yypath->yystack.p_base);
1396 memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1437 for (pv = yystack.l_base, pp = yystack.p_base; pv <= yystack.l_mark; ++pv, ++pp)
1439 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv, pp);
1441 for (pv = yystack.l_base; pv <= yystack.l_mark; ++pv)
1443 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv);
1469 yyfreestack(&yystack);