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

Function yyparse

src/Parser.cpp:1002–1638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1000`----------*/
1001
1002int
1003yyparse (void)
1004{
1005 int yystate;
1006 /* Number of tokens to shift before error messages enabled. */
1007 int yyerrstatus;
1008
1009 /* The stacks and their tools:
1010 'yyss': related to states.
1011 'yyvs': related to semantic values.
1012
1013 Refer to the stacks through separate pointers, to allow yyoverflow
1014 to reallocate them elsewhere. */
1015
1016 /* The state stack. */
1017 yytype_int16 yyssa[YYINITDEPTH];
1018 yytype_int16 *yyss;
1019 yytype_int16 *yyssp;
1020
1021 /* The semantic value stack. */
1022 YYSTYPE yyvsa[YYINITDEPTH];
1023 YYSTYPE *yyvs;
1024 YYSTYPE *yyvsp;
1025
1026 YYSIZE_T yystacksize;
1027
1028 int yyn;
1029 int yyresult;
1030 /* Lookahead token as an internal (translated) token number. */
1031 int yytoken = 0;
1032 /* The variables used to return semantic value and location from the
1033 action routines. */
1034 YYSTYPE yyval;
1035
1036#if YYERROR_VERBOSE
1037 /* Buffer for error messages, and its allocated size. */
1038 char yymsgbuf[128];
1039 char *yymsg = yymsgbuf;
1040 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1041#endif
1042
1043#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1044
1045 /* The number of symbols on the RHS of the reduced rule.
1046 Keep to zero when no symbol should be popped. */
1047 int yylen = 0;
1048
1049 yyssp = yyss = yyssa;
1050 yyvsp = yyvs = yyvsa;
1051 yystacksize = YYINITDEPTH;
1052
1053 YYDPRINTF ((stderr, "Starting parse\n"));
1054
1055 yystate = 0;
1056 yyerrstatus = 0;
1057 yynerrs = 0;
1058 yychar = YYEMPTY; /* Cause a token to be read. */
1059 goto yysetstate;

Callers 1

CreateSearchDataMethod · 0.70

Calls 4

ParsedSearchExpressionFunction · 0.85
yyerrorFunction · 0.85
yydestructFunction · 0.70
AddMethod · 0.45

Tested by

no test coverage detected