MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / yyparse

Function yyparse

src/parser/ds_parser.cpp:6323–12634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6321`----------*/
6322
6323int
6324yyparse (yyscan_t scanner)
6325{
6326/* Lookahead token kind. */
6327int yychar;
6328
6329
6330/* The semantic value of the lookahead symbol. */
6331/* Default value used for initialization, for pacifying older GCCs
6332 or non-GCC compilers. */
6333YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
6334YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
6335
6336/* Location data for the lookahead symbol. */
6337static YYLTYPE yyloc_default
6338# if defined DAS_YYLTYPE_IS_TRIVIAL && DAS_YYLTYPE_IS_TRIVIAL
6339 = { 1, 1, 1, 1 }
6340# endif
6341;
6342YYLTYPE yylloc = yyloc_default;
6343
6344 /* Number of syntax errors so far. */
6345 int yynerrs = 0;
6346
6347 yy_state_fast_t yystate = 0;
6348 /* Number of tokens to shift before error messages enabled. */
6349 int yyerrstatus = 0;
6350
6351 /* Refer to the stacks through separate pointers, to allow yyoverflow
6352 to reallocate them elsewhere. */
6353
6354 /* Their size. */
6355 YYPTRDIFF_T yystacksize = YYINITDEPTH;
6356
6357 /* The state stack: array, bottom, top. */
6358 yy_state_t yyssa[YYINITDEPTH];
6359 yy_state_t *yyss = yyssa;
6360 yy_state_t *yyssp = yyss;
6361
6362 /* The semantic value stack: array, bottom, top. */
6363 YYSTYPE yyvsa[YYINITDEPTH];
6364 YYSTYPE *yyvs = yyvsa;
6365 YYSTYPE *yyvsp = yyvs;
6366
6367 /* The location stack: array, bottom, top. */
6368 YYLTYPE yylsa[YYINITDEPTH];
6369 YYLTYPE *yyls = yylsa;
6370 YYLTYPE *yylsp = yyls;
6371
6372 int yyn;
6373 /* The return value of yyparse. */
6374 int yyresult;
6375 /* Lookahead symbol kind. */
6376 yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
6377 /* The variables used to return semantic value and location from the
6378 action routines. */
6379 YYSTYPE yyval;
6380 YYLTYPE yyloc;

Callers

nothing calls this directly

Calls 15

das_strfmtFunction · 0.85
unescapeStringFunction · 0.85
das_yyend_readerFunction · 0.85
das_yybegin_readerFunction · 0.85
das_accept_sequenceFunction · 0.85
ast_requireModuleFunction · 0.85
CompilationErrorEnum · 0.85
ast_wrapInBlockFunction · 0.85
ast_forLoopFunction · 0.85
findAnnotationFunction · 0.85
newLogicAnnotationFunction · 0.85

Tested by

no test coverage detected