MCPcopy Create free account
hub / github.com/Gecode/gecode / yyparse

Function yyparse

gecode/flatzinc/parser.tab.cpp:2026–4363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2024`----------*/
2025
2026int
2027yyparse (void *parm)
2028{
2029/* Lookahead token kind. */
2030int yychar;
2031
2032
2033/* The semantic value of the lookahead symbol. */
2034/* Default value used for initialization, for pacifying older GCCs
2035 or non-GCC compilers. */
2036YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
2037YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
2038
2039 /* Number of syntax errors so far. */
2040 int yynerrs = 0;
2041
2042 yy_state_fast_t yystate = 0;
2043 /* Number of tokens to shift before error messages enabled. */
2044 int yyerrstatus = 0;
2045
2046 /* Refer to the stacks through separate pointers, to allow yyoverflow
2047 to reallocate them elsewhere. */
2048
2049 /* Their size. */
2050 YYPTRDIFF_T yystacksize = YYINITDEPTH;
2051
2052 /* The state stack: array, bottom, top. */
2053 yy_state_t yyssa[YYINITDEPTH];
2054 yy_state_t *yyss = yyssa;
2055 yy_state_t *yyssp = yyss;
2056
2057 /* The semantic value stack: array, bottom, top. */
2058 YYSTYPE yyvsa[YYINITDEPTH];
2059 YYSTYPE *yyvs = yyvsa;
2060 YYSTYPE *yyvsp = yyvs;
2061
2062 int yyn;
2063 /* The return value of yyparse. */
2064 int yyresult;
2065 /* Lookahead symbol kind. */
2066 yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
2067 /* The variables used to return semantic value and location from the
2068 action routines. */
2069 YYSTYPE yyval;
2070
2071 /* Buffer for error messages, and its allocated size. */
2072 char yymsgbuf[128];
2073 char *yymsg = yymsgbuf;
2074 YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
2075
2076#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
2077
2078 /* The number of symbols on the RHS of the reduced rule.
2079 Keep to zero when no symbol should be popped. */
2080 int yylen = 0;
2081
2082 YYDPRINTF ((stderr, "Starting parse\n"));
2083

Callers 1

parseFunction · 0.85

Calls 15

yyassertFunction · 0.85
AliasClass · 0.85
addDomainConstraintFunction · 0.85
arrayOutputFunction · 0.85
yyget_linenoFunction · 0.85
getBaseIntVarFunction · 0.85
getBaseBoolVarFunction · 0.85
getBaseSetVarFunction · 0.85
getBaseFloatVarFunction · 0.85
initfgFunction · 0.85
yyerrorFunction · 0.85
getVarRefArgFunction · 0.85

Tested by

no test coverage detected