Lines Matching refs:yystack

585     YYSTACKDATA            yystack; /* saved parser stack */
594 static YYSTACKDATA yystack;
1200 #define yydepth (int)(yystack.s_mark - yystack.s_base)
1285 p->yystack.stacksize = size;
1288 p->yystack.s_base = NULL;
1289 p->yystack.l_base = NULL;
1291 p->yystack.p_base = NULL;
1295 p->yystack.s_base = (short *) malloc(size * sizeof(short));
1296 if (p->yystack.s_base == NULL) return NULL;
1297 p->yystack.l_base = (YYSTYPE *) malloc(size * sizeof(YYSTYPE));
1298 if (p->yystack.l_base == NULL) return NULL;
1299 memset(p->yystack.l_base, 0, size * sizeof(YYSTYPE));
1301 p->yystack.p_base = (YYLTYPE *) malloc(size * sizeof(YYLTYPE));
1302 if (p->yystack.p_base == NULL) return NULL;
1303 memset(p->yystack.p_base, 0, size * sizeof(YYLTYPE));
1312 yyfreestack(&p->yystack);
1361 memset(&yystack, 0, sizeof(yystack));
1364 if (yystack.s_base == NULL && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1365 yystack.s_mark = yystack.s_base;
1366 yystack.l_mark = yystack.l_base;
1368 yystack.p_mark = yystack.p_base;
1371 *yystack.s_mark = 0;
1485 save = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
1490 save->yystack.s_mark = save->yystack.s_base + (yystack.s_mark - yystack.s_base);
1491 memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1492 save->yystack.l_mark = save->yystack.l_base + (yystack.l_mark - yystack.l_base);
1493 memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1495 save->yystack.p_mark = save->yystack.p_base + (yystack.p_mark - yystack.p_base);
1496 memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1569 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM)
1572 *++yystack.s_mark = (short) yystate;
1573 *++yystack.l_mark = yylval;
1575 *++yystack.p_mark = yylloc;
1596 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1598 *++yystack.s_mark = yytable[yyn];
1599 *++yystack.l_mark = yylval;
1601 *++yystack.p_mark = yylloc;
1639 yyerrctx = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
1644 yyerrctx->yystack.s_mark = yyerrctx->yystack.s_base + (yystack.s_mark - yystack.s_base);
1645 memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1646 yyerrctx->yystack.l_mark = yyerrctx->yystack.l_base + (yystack.l_mark - yystack.l_base);
1647 memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1649 yyerrctx->yystack.p_mark = yyerrctx->yystack.p_base + (yystack.p_mark - yystack.p_base);
1650 memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1660 yystack.s_mark = yystack.s_base + (save->yystack.s_mark - save->yystack.s_base);
1661 memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1662 yystack.l_mark = yystack.l_base + (save->yystack.l_mark - save->yystack.l_base);
1663 memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1665 yystack.p_mark = yystack.p_base + (save->yystack.p_mark - save->yystack.p_base);
1666 memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1695 yystack.s_mark = yystack.s_base + (yyerrctx->yystack.s_mark - yyerrctx->yystack.s_base);
1696 memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1697 yystack.l_mark = yystack.l_base + (yyerrctx->yystack.l_mark - yyerrctx->yystack.l_base);
1698 memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1700 yystack.p_mark = yystack.p_base + (yyerrctx->yystack.p_mark - yyerrctx->yystack.p_base);
1701 memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1729 if (((yyn = yysindex[*yystack.s_mark]) != 0) && (yyn += YYERRCODE) >= 0 &&
1735 YYDEBUGSTR, yydepth, *yystack.s_mark, yytable[yyn]);
1737 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1739 *++yystack.s_mark = yytable[yyn];
1740 *++yystack.l_mark = yylval;
1745 *++yystack.p_mark = yyloc;
1754 YYDEBUGSTR, yydepth, *yystack.s_mark);
1756 if (yystack.s_mark <= yystack.s_base) goto yyabort;
1759 yyerror_loc_range[0] = *yystack.p_mark;
1767 yystos[*yystack.s_mark], yystack.l_mark, yystack.p_mark);
1770 yystos[*yystack.s_mark], yystack.l_mark);
1773 --yystack.s_mark;
1774 --yystack.l_mark;
1776 --yystack.p_mark;
1824 fputs(YYSTYPE_TOSTRING(yystos[yystack.s_mark[1-i]],
1825 yystack.l_mark[1-i]), stderr);
1834 yyval = yystack.l_mark[1-yym];
1845 YYLLOC_DEFAULT(yyloc, &yystack.p_mark[1-yym], yym);
1848 yyerror_loc_range[0] = yystack.p_mark[1-yym];
1856 { yyval.scope = yystack.l_mark[0].scope; }
1864 { Decl *d = lookup(yystack.l_mark[-2].scope, yystack.l_mark[-1].id);
1870 { Decl *d = lookup(yystack.l_mark[-1].scope, yystack.l_mark[0].id);
1880 yyval.scope = yystack.l_mark[-1].scope;
1884 yyval.type = yystack.l_mark[-1].type;
1892 yyval.scope = start_fn_def(yystack.l_mark[-4].scope, yystack.l_mark[0].decl);
1899 yyloc.first_line = yystack.p_mark[-5].first_line;
1900 yyloc.first_column = yystack.p_mark[-5].first_column;
1901 yyloc.last_line = yystack.p_mark[0].last_line;
1902 yyloc.last_column = yystack.p_mark[0].last_column;
1903 finish_fn_def(yystack.l_mark[-2].decl, yystack.l_mark[0].code); }
1907 { yyval.type = yystack.l_mark[0].type; }
1911 { yyval.type = type_combine(yystack.l_mark[-2].type, yystack.l_mark[0].type); }
1919 { yyval.type = type_combine(yystack.l_mark[-1].type, yystack.l_mark[0].type); }
1923 { yyval.type = yystack.l_mark[0].type; }
1927 { yyval.type = yystack.l_mark[0].type; }
1951 yyval.scope = yystack.l_mark[-3].scope;
1955 yyval.type = yystack.l_mark[-3].type;
1959 { if (!yystack.l_mark[0].type) YYERROR; } if (!yytrial)
1961 { yyval.decl = declare(yystack.l_mark[-1].scope, 0, yystack.l_mark[0].type); }
1966 { yyval.decl = declare(yystack.l_mark[-2].scope, yystack.l_mark[0].id, yystack.l_mark[-1].type); }
1970 yyval.scope = yystack.l_mark[-2].scope;
1974 yyval.type = yystack.l_mark[-2].type;
1979 { yyval.decl = yystack.l_mark[-1].decl; }
1984 { yyval.decl = make_pointer(yystack.l_mark[0].decl, yystack.l_mark[-3].type); }
1989 { yyval.decl = make_array(yystack.l_mark[-4].decl->type, yystack.l_mark[-1].expr); }
1994 { yyval.decl = build_function(yystack.l_mark[-5].decl, yystack.l_mark[-2].dlist, yystack.l_mark[0].type); }
2004 { yyval.dlist = yystack.l_mark[0].dlist; }
2009 { yyval.dlist = append_dlist(yystack.l_mark[-3].dlist, yystack.l_mark[0].decl); }
2014 { yyval.dlist = build_dlist(yystack.l_mark[0].decl); }
2019 { yyval.decl = yystack.l_mark[0].decl; }
2024 { yyval.expr = build_expr(yystack.l_mark[-3].expr, ADD, yystack.l_mark[0].expr); }
2029 { yyval.expr = build_expr(yystack.l_mark[-3].expr, SUB, yystack.l_mark[0].expr); }
2034 { yyval.expr = build_expr(yystack.l_mark[-3].expr, MUL, yystack.l_mark[0].expr); }
2039 { yyval.expr = build_expr(yystack.l_mark[-3].expr, MOD, yystack.l_mark[0].expr); }
2044 { yyval.expr = build_expr(yystack.l_mark[-3].expr, DIV, yystack.l_mark[0].expr); }
2049 { yyval.expr = build_expr(0, DEREF, yystack.l_mark[0].expr); }
2054 { yyval.expr = var_expr(yystack.l_mark[-1].scope, yystack.l_mark[0].id); }
2059 { yyval.expr = yystack.l_mark[0].expr; }
2068 yyval.scope = yystack.l_mark[0].scope;
2074 { yyval.code = build_expr_code(yystack.l_mark[-1].expr); }
2078 yyval.scope = yystack.l_mark[-6].scope;
2082 yyval.scope = yystack.l_mark[-9].scope;
2088 { yyval.code = build_if(yystack.l_mark[-7].expr, yystack.l_mark[-3].code, yystack.l_mark[0].code); }
2094 { yyval.code = build_if(yystack.l_mark[-4].expr, yystack.l_mark[0].code, 0); }
2098 yyval.scope = new_scope(yystack.l_mark[0].scope);
2104 { yyval.code = yystack.l_mark[0].code; }
2114 { yyval.code = code_append(yystack.l_mark[-2].code, yystack.l_mark[0].code); }
2119 { yyval.code = yystack.l_mark[-1].code; }
2125 yystack.s_mark -= yym;
2126 yystate = *yystack.s_mark;
2127 yystack.l_mark -= yym;
2129 yystack.p_mark -= yym;
2148 *++yystack.s_mark = YYFINAL;
2149 *++yystack.l_mark = yyval;
2151 *++yystack.p_mark = yyloc;
2237 fprintf(stderr, "shifting from state %d to state %d\n", *yystack.s_mark, yystate);
2240 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
2241 *++yystack.s_mark = (short) yystate;
2242 *++yystack.l_mark = yyval;
2244 *++yystack.p_mark = yyloc;
2275 yystack.s_mark = yystack.s_base + (yypath->yystack.s_mark - yypath->yystack.s_base);
2276 memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
2277 yystack.l_mark = yystack.l_base + (yypath->yystack.l_mark - yypath->yystack.l_base);
2278 memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
2280 yystack.p_mark = yystack.p_base + (yypath->yystack.p_mark - yypath->yystack.p_base);
2281 memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
2322 for (pv = yystack.l_base, pp = yystack.p_base; pv <= yystack.l_mark; ++pv, ++pp)
2324 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv, pp);
2326 for (pv = yystack.l_base; pv <= yystack.l_mark; ++pv)
2328 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv);
2354 yyfreestack(&yystack);