MCPcopy Create free account
hub / github.com/boostorg/build / yyparse

Function yyparse

src/engine/jamgram.cpp:1140–2287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

parse_implFunction · 0.85

Calls 5

yylexFunction · 0.85
parse_saveFunction · 0.85
yymodeFunction · 0.85
yyerrorFunction · 0.85
yydestructFunction · 0.85

Tested by

no test coverage detected