MCPcopy Create free account
hub / github.com/crawl/crawl / yyparse

Function yyparse

crawl-ref/source/prebuilt/levcomp.tab.cc:1158–2455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156`----------*/
1157
1158int
1159yyparse (void)
1160{
1161 yy_state_fast_t yystate = 0;
1162 /* Number of tokens to shift before error messages enabled. */
1163 int yyerrstatus = 0;
1164
1165 /* Refer to the stacks through separate pointers, to allow yyoverflow
1166 to reallocate them elsewhere. */
1167
1168 /* Their size. */
1169 YYPTRDIFF_T yystacksize = YYINITDEPTH;
1170
1171 /* The state stack: array, bottom, top. */
1172 yy_state_t yyssa[YYINITDEPTH];
1173 yy_state_t *yyss = yyssa;
1174 yy_state_t *yyssp = yyss;
1175
1176 /* The semantic value stack: array, bottom, top. */
1177 YYSTYPE yyvsa[YYINITDEPTH];
1178 YYSTYPE *yyvs = yyvsa;
1179 YYSTYPE *yyvsp = yyvs;
1180
1181 int yyn;
1182 /* The return value of yyparse. */
1183 int yyresult;
1184 /* Lookahead symbol kind. */
1185 yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
1186 /* The variables used to return semantic value and location from the
1187 action routines. */
1188 YYSTYPE yyval;
1189
1190
1191
1192#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1193
1194 /* The number of symbols on the RHS of the reduced rule.
1195 Keep to zero when no symbol should be popped. */
1196 int yylen = 0;
1197
1198 YYDPRINTF ((stderr, "Starting parse\n"));
1199
1200 yychar = YYEMPTY; /* Cause a token to be read. */
1201
1202 goto yysetstate;
1203
1204
1205/*------------------------------------------------------------.
1206| yynewstate -- push a new state, which is found in yystate. |
1207`------------------------------------------------------------*/
1208yynewstate:
1209 /* In all cases, when you get here, the value and location stacks
1210 have just been pushed. So pushing a state here evens the stacks. */
1211 yyssp++;
1212
1213
1214/*--------------------------------------------------------------------.
1215| yysetstate -- set current state (the top of the stack) to yystate. |

Callers 1

_parse_mapsFunction · 0.85

Calls 15

yyerrorFunction · 0.85
dgn_reset_default_depthFunction · 0.85
dgn_set_default_depthFunction · 0.85
make_stringfFunction · 0.85
add_parsed_mapFunction · 0.85
quote_lua_stringFunction · 0.85
mapdef_split_key_itemFunction · 0.85
yydestructFunction · 0.85
load_callMethod · 0.80
orig_errorMethod · 0.80
validate_map_defMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected