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

Function yyparse

src/parser/ds2_parser.cpp:5213–11438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5211`----------*/
5212
5213int
5214yyparse (yyscan_t scanner)
5215{
5216/* Lookahead token kind. */
5217int yychar;
5218
5219
5220/* The semantic value of the lookahead symbol. */
5221/* Default value used for initialization, for pacifying older GCCs
5222 or non-GCC compilers. */
5223YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
5224YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
5225
5226/* Location data for the lookahead symbol. */
5227static YYLTYPE yyloc_default
5228# if defined DAS2_YYLTYPE_IS_TRIVIAL && DAS2_YYLTYPE_IS_TRIVIAL
5229 = { 1, 1, 1, 1 }
5230# endif
5231;
5232YYLTYPE yylloc = yyloc_default;
5233
5234 /* Number of syntax errors so far. */
5235 int yynerrs = 0;
5236
5237 yy_state_fast_t yystate = 0;
5238 /* Number of tokens to shift before error messages enabled. */
5239 int yyerrstatus = 0;
5240
5241 /* Refer to the stacks through separate pointers, to allow yyoverflow
5242 to reallocate them elsewhere. */
5243
5244 /* Their size. */
5245 YYPTRDIFF_T yystacksize = YYINITDEPTH;
5246
5247 /* The state stack: array, bottom, top. */
5248 yy_state_t yyssa[YYINITDEPTH];
5249 yy_state_t *yyss = yyssa;
5250 yy_state_t *yyssp = yyss;
5251
5252 /* The semantic value stack: array, bottom, top. */
5253 YYSTYPE yyvsa[YYINITDEPTH];
5254 YYSTYPE *yyvs = yyvsa;
5255 YYSTYPE *yyvsp = yyvs;
5256
5257 /* The location stack: array, bottom, top. */
5258 YYLTYPE yylsa[YYINITDEPTH];
5259 YYLTYPE *yyls = yylsa;
5260 YYLTYPE *yylsp = yyls;
5261
5262 int yyn;
5263 /* The return value of yyparse. */
5264 int yyresult;
5265 /* Lookahead symbol kind. */
5266 yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
5267 /* The variables used to return semantic value and location from the
5268 action routines. */
5269 YYSTYPE yyval;
5270 YYLTYPE yyloc;

Callers

nothing calls this directly

Calls 15

das2_strfmtFunction · 0.85
unescapeStringFunction · 0.85
das2_yyend_readerFunction · 0.85
das2_yybegin_readerFunction · 0.85
das2_accept_sequenceFunction · 0.85
ast_requireModuleFunction · 0.85
CompilationErrorEnum · 0.85
ast_wrapInBlockFunction · 0.85
das_checkNameFunction · 0.85
ast_forLoopFunction · 0.85

Tested by

no test coverage detected