Lines Matching refs:yystack

434     YYSTACKDATA            yystack; /* saved parser stack */
443 static YYSTACKDATA yystack;
527 #define yydepth (int)(yystack.s_mark - yystack.s_base)
612 p->yystack.stacksize = size;
615 p->yystack.s_base = NULL;
616 p->yystack.l_base = NULL;
618 p->yystack.p_base = NULL;
622 p->yystack.s_base = (short *) malloc(size * sizeof(short));
623 if (p->yystack.s_base == NULL) return NULL;
624 p->yystack.l_base = (YYSTYPE *) malloc(size * sizeof(YYSTYPE));
625 if (p->yystack.l_base == NULL) return NULL;
626 memset(p->yystack.l_base, 0, size * sizeof(YYSTYPE));
628 p->yystack.p_base = (YYLTYPE *) malloc(size * sizeof(YYLTYPE));
629 if (p->yystack.p_base == NULL) return NULL;
630 memset(p->yystack.p_base, 0, size * sizeof(YYLTYPE));
639 yyfreestack(&p->yystack);
688 memset(&yystack, 0, sizeof(yystack));
691 if (yystack.s_base == NULL && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
692 yystack.s_mark = yystack.s_base;
693 yystack.l_mark = yystack.l_base;
695 yystack.p_mark = yystack.p_base;
698 *yystack.s_mark = 0;
812 save = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
817 save->yystack.s_mark = save->yystack.s_base + (yystack.s_mark - yystack.s_base);
818 memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
819 save->yystack.l_mark = save->yystack.l_base + (yystack.l_mark - yystack.l_base);
820 memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
822 save->yystack.p_mark = save->yystack.p_base + (yystack.p_mark - yystack.p_base);
823 memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
896 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM)
899 *++yystack.s_mark = (short) yystate;
900 *++yystack.l_mark = yylval;
902 *++yystack.p_mark = yylloc;
923 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
925 *++yystack.s_mark = yytable[yyn];
926 *++yystack.l_mark = yylval;
928 *++yystack.p_mark = yylloc;
966 yyerrctx = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
971 yyerrctx->yystack.s_mark = yyerrctx->yystack.s_base + (yystack.s_mark - yystack.s_base);
972 memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
973 yyerrctx->yystack.l_mark = yyerrctx->yystack.l_base + (yystack.l_mark - yystack.l_base);
974 memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
976 yyerrctx->yystack.p_mark = yyerrctx->yystack.p_base + (yystack.p_mark - yystack.p_base);
977 memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
987 yystack.s_mark = yystack.s_base + (save->yystack.s_mark - save->yystack.s_base);
988 memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
989 yystack.l_mark = yystack.l_base + (save->yystack.l_mark - save->yystack.l_base);
990 memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
992 yystack.p_mark = yystack.p_base + (save->yystack.p_mark - save->yystack.p_base);
993 memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1022 yystack.s_mark = yystack.s_base + (yyerrctx->yystack.s_mark - yyerrctx->yystack.s_base);
1023 memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1024 yystack.l_mark = yystack.l_base + (yyerrctx->yystack.l_mark - yyerrctx->yystack.l_base);
1025 memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1027 yystack.p_mark = yystack.p_base + (yyerrctx->yystack.p_mark - yyerrctx->yystack.p_base);
1028 memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1056 if (((yyn = yysindex[*yystack.s_mark]) != 0) && (yyn += YYERRCODE) >= 0 &&
1062 YYDEBUGSTR, yydepth, *yystack.s_mark, yytable[yyn]);
1064 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1066 *++yystack.s_mark = yytable[yyn];
1067 *++yystack.l_mark = yylval;
1072 *++yystack.p_mark = yyloc;
1081 YYDEBUGSTR, yydepth, *yystack.s_mark);
1083 if (yystack.s_mark <= yystack.s_base) goto yyabort;
1086 yyerror_loc_range[0] = *yystack.p_mark;
1094 yystos[*yystack.s_mark], yystack.l_mark, yystack.p_mark);
1097 yystos[*yystack.s_mark], yystack.l_mark);
1100 --yystack.s_mark;
1101 --yystack.l_mark;
1103 --yystack.p_mark;
1151 fputs(YYSTYPE_TOSTRING(yystos[yystack.s_mark[1-i]],
1152 yystack.l_mark[1-i]), stderr);
1161 yyval = yystack.l_mark[1-yym];
1172 YYLLOC_DEFAULT(yyloc, &yystack.p_mark[1-yym], yym);
1175 yyerror_loc_range[0] = yystack.p_mark[1-yym];
1187 { printf("%d\n",yystack.l_mark[0]);}
1191 { regs[yystack.l_mark[-2]] = yystack.l_mark[0]; }
1195 { yyval = yystack.l_mark[-1]; }
1199 { yyval = yystack.l_mark[-2] + yystack.l_mark[0]; }
1203 { yyval = yystack.l_mark[-2] - yystack.l_mark[0]; }
1207 { yyval = yystack.l_mark[-2] * yystack.l_mark[0]; }
1211 { yyval = yystack.l_mark[-2] / yystack.l_mark[0]; }
1215 { yyval = yystack.l_mark[-2] % yystack.l_mark[0]; }
1219 { yyval = yystack.l_mark[-2] & yystack.l_mark[0]; }
1223 { yyval = yystack.l_mark[-2] | yystack.l_mark[0]; }
1227 { yyval = - yystack.l_mark[0]; }
1231 { yyval = regs[yystack.l_mark[0]]; }
1235 { yyval = yystack.l_mark[0]; base = (yystack.l_mark[0]==0) ? 8 : 10; }
1239 { yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
1245 yystack.s_mark -= yym;
1246 yystate = *yystack.s_mark;
1247 yystack.l_mark -= yym;
1249 yystack.p_mark -= yym;
1268 *++yystack.s_mark = YYFINAL;
1269 *++yystack.l_mark = yyval;
1271 *++yystack.p_mark = yyloc;
1357 fprintf(stderr, "shifting from state %d to state %d\n", *yystack.s_mark, yystate);
1360 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1361 *++yystack.s_mark = (short) yystate;
1362 *++yystack.l_mark = yyval;
1364 *++yystack.p_mark = yyloc;
1395 yystack.s_mark = yystack.s_base + (yypath->yystack.s_mark - yypath->yystack.s_base);
1396 memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1397 yystack.l_mark = yystack.l_base + (yypath->yystack.l_mark - yypath->yystack.l_base);
1398 memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1400 yystack.p_mark = yystack.p_base + (yypath->yystack.p_mark - yypath->yystack.p_base);
1401 memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1442 for (pv = yystack.l_base, pp = yystack.p_base; pv <= yystack.l_mark; ++pv, ++pp)
1444 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv, pp);
1446 for (pv = yystack.l_base; pv <= yystack.l_mark; ++pv)
1448 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv);
1474 yyfreestack(&yystack);