MCPcopy Create free account
hub / github.com/amule-project/amule / yyparse

Function yyparse

src/webserver/src/php_parser.c:1942–3354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1940`----------*/
1941
1942int
1943yyparse (void)
1944{
1945 int yystate;
1946 /* Number of tokens to shift before error messages enabled. */
1947 int yyerrstatus;
1948
1949 /* The stacks and their tools:
1950 'yyss': related to states.
1951 'yyvs': related to semantic values.
1952
1953 Refer to the stacks through separate pointers, to allow yyoverflow
1954 to reallocate them elsewhere. */
1955
1956 /* The state stack. */
1957 yytype_int16 yyssa[YYINITDEPTH];
1958 yytype_int16 *yyss;
1959 yytype_int16 *yyssp;
1960
1961 /* The semantic value stack. */
1962 YYSTYPE yyvsa[YYINITDEPTH];
1963 YYSTYPE *yyvs;
1964 YYSTYPE *yyvsp;
1965
1966 YYSIZE_T yystacksize;
1967
1968 int yyn;
1969 int yyresult;
1970 /* Lookahead token as an internal (translated) token number. */
1971 int yytoken = 0;
1972 /* The variables used to return semantic value and location from the
1973 action routines. */
1974 YYSTYPE yyval;
1975
1976#if YYERROR_VERBOSE
1977 /* Buffer for error messages, and its allocated size. */
1978 char yymsgbuf[128];
1979 char *yymsg = yymsgbuf;
1980 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1981#endif
1982
1983#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1984
1985 /* The number of symbols on the RHS of the reduced rule.
1986 Keep to zero when no symbol should be popped. */
1987 int yylen = 0;
1988
1989 yyssp = yyss = yyssa;
1990 yyvsp = yyvs = yyvsa;
1991 yystacksize = YYINITDEPTH;
1992
1993 YYDPRINTF ((stderr, "Starting parse\n"));
1994
1995 yystate = 0;
1996 yyerrstatus = 0;
1997 yynerrs = 0;
1998 yychar = YYEMPTY; /* Cause a token to be read. */
1999 goto yysetstate;

Callers

nothing calls this directly

Calls 15

add_statement_2_listFunction · 0.85
make_expr_syn_nodeFunction · 0.85
make_ifelse_syn_nodeFunction · 0.85
make_while_loop_syn_nodeFunction · 0.85
make_for_syn_nodeFunction · 0.85
make_switch_syn_nodeFunction · 0.85
make_exp_1Function · 0.85
get_scope_var_nameFunction · 0.85
get_scope_itemFunction · 0.85
free_var_nodeFunction · 0.85
php_exp_tree_freeFunction · 0.85

Tested by

no test coverage detected