MCPcopy Create free account
hub / github.com/Kitware/CMake / yyparse

Function yyparse

Source/LexerParser/cmDependsJavaParser.cxx:2213–6592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2211`----------*/
2212
2213int
2214yyparse (yyscan_t yyscanner)
2215{
2216/* Lookahead token kind. */
2217int yychar;
2218
2219
2220/* The semantic value of the lookahead symbol. */
2221/* Default value used for initialization, for pacifying older GCCs
2222 or non-GCC compilers. */
2223YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
2224YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
2225
2226 /* Number of syntax errors so far. */
2227 int yynerrs = 0;
2228
2229 yy_state_fast_t yystate = 0;
2230 /* Number of tokens to shift before error messages enabled. */
2231 int yyerrstatus = 0;
2232
2233 /* Refer to the stacks through separate pointers, to allow yyoverflow
2234 to reallocate them elsewhere. */
2235
2236 /* Their size. */
2237 YYPTRDIFF_T yystacksize = YYINITDEPTH;
2238
2239 /* The state stack: array, bottom, top. */
2240 yy_state_t yyssa[YYINITDEPTH];
2241 yy_state_t *yyss = yyssa;
2242 yy_state_t *yyssp = yyss;
2243
2244 /* The semantic value stack: array, bottom, top. */
2245 YYSTYPE yyvsa[YYINITDEPTH];
2246 YYSTYPE *yyvs = yyvsa;
2247 YYSTYPE *yyvsp = yyvs;
2248
2249 int yyn;
2250 /* The return value of yyparse. */
2251 int yyresult;
2252 /* Lookahead symbol kind. */
2253 yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
2254 /* The variables used to return semantic value and location from the
2255 action routines. */
2256 YYSTYPE yyval;
2257
2258 /* Buffer for error messages, and its allocated size. */
2259 char yymsgbuf[128];
2260 char *yymsg = yymsgbuf;
2261 YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
2262
2263#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
2264
2265 /* The number of symbols on the RHS of the reduced rule.
2266 Keep to zero when no symbol should be popped. */
2267 int yylen = 0;
2268
2269 YYDPRINTF ((stderr, "Starting parse\n"));
2270

Callers

nothing calls this directly

Calls 12

SetCurrentCombineMethod · 0.80
AddClassFoundMethod · 0.80
UpdateCombineMethod · 0.80
DeallocateParserTypeMethod · 0.80
GetCurrentCombineMethod · 0.80
SetCurrentPackageMethod · 0.80
AddPackagesImportMethod · 0.80
c_strMethod · 0.80
StartClassMethod · 0.80
EndClassMethod · 0.80
yysyntax_errorFunction · 0.70
yydestructFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…