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

Function yyparse

utils/dasFormatter/ds_parser.cpp:6200–12969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6198`----------*/
6199
6200int
6201yyparse (yyscan_t scanner)
6202{
6203/* Lookahead token kind. */
6204int yychar;
6205
6206
6207/* The semantic value of the lookahead symbol. */
6208/* Default value used for initialization, for pacifying older GCCs
6209 or non-GCC compilers. */
6210YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
6211YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
6212
6213/* Location data for the lookahead symbol. */
6214static YYLTYPE yyloc_default
6215# if defined DAS_YYLTYPE_IS_TRIVIAL && DAS_YYLTYPE_IS_TRIVIAL
6216 = { 1, 1, 1, 1 }
6217# endif
6218;
6219YYLTYPE yylloc = yyloc_default;
6220
6221 /* Number of syntax errors so far. */
6222 int yynerrs = 0;
6223
6224 yy_state_fast_t yystate = 0;
6225 /* Number of tokens to shift before error messages enabled. */
6226 int yyerrstatus = 0;
6227
6228 /* Refer to the stacks through separate pointers, to allow yyoverflow
6229 to reallocate them elsewhere. */
6230
6231 /* Their size. */
6232 YYPTRDIFF_T yystacksize = YYINITDEPTH;
6233
6234 /* The state stack: array, bottom, top. */
6235 yy_state_t yyssa[YYINITDEPTH];
6236 yy_state_t *yyss = yyssa;
6237 yy_state_t *yyssp = yyss;
6238
6239 /* The semantic value stack: array, bottom, top. */
6240 YYSTYPE yyvsa[YYINITDEPTH];
6241 YYSTYPE *yyvs = yyvsa;
6242 YYSTYPE *yyvsp = yyvs;
6243
6244 /* The location stack: array, bottom, top. */
6245 YYLTYPE yylsa[YYINITDEPTH];
6246 YYLTYPE *yyls = yylsa;
6247 YYLTYPE *yylsp = yyls;
6248
6249 int yyn;
6250 /* The return value of yyparse. */
6251 int yyresult;
6252 /* Lookahead symbol kind. */
6253 yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
6254 /* The variables used to return semantic value and location from the
6255 action routines. */
6256 YYSTYPE yyval;
6257 YYLTYPE yyloc;

Callers

nothing calls this directly

Calls 15

try_semicolon_at_eolFunction · 0.85
das_strfmtFunction · 0.85
unescapeStringFunction · 0.85
das_yyend_readerFunction · 0.85
das_yybegin_readerFunction · 0.85
is_formatter_enabledFunction · 0.85
das_accept_sequenceFunction · 0.85
ast_requireModuleFunction · 0.85
CompilationErrorEnum · 0.85
wrap_par_exprFunction · 0.85
is_else_newlineFunction · 0.85
skip_spaces_or_printFunction · 0.85

Tested by

no test coverage detected