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

Function yyparse

scripts/config/parser.tab.c:1108–1932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1106`----------*/
1107
1108int
1109yyparse (void)
1110{
1111 yy_state_fast_t yystate = 0;
1112 /* Number of tokens to shift before error messages enabled. */
1113 int yyerrstatus = 0;
1114
1115 /* Refer to the stacks through separate pointers, to allow yyoverflow
1116 to reallocate them elsewhere. */
1117
1118 /* Their size. */
1119 YYPTRDIFF_T yystacksize = YYINITDEPTH;
1120
1121 /* The state stack: array, bottom, top. */
1122 yy_state_t yyssa[YYINITDEPTH];
1123 yy_state_t *yyss = yyssa;
1124 yy_state_t *yyssp = yyss;
1125
1126 /* The semantic value stack: array, bottom, top. */
1127 YYSTYPE yyvsa[YYINITDEPTH];
1128 YYSTYPE *yyvs = yyvsa;
1129 YYSTYPE *yyvsp = yyvs;
1130
1131 int yyn;
1132 /* The return value of yyparse. */
1133 int yyresult;
1134 /* Lookahead symbol kind. */
1135 yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
1136 /* The variables used to return semantic value and location from the
1137 action routines. */
1138 YYSTYPE yyval;
1139
1140
1141
1142#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1143
1144 /* The number of symbols on the RHS of the reduced rule.
1145 Keep to zero when no symbol should be popped. */
1146 int yylen = 0;
1147
1148 YYDPRINTF ((stderr, "Starting parse\n"));
1149
1150 yychar = YYEMPTY; /* Cause a token to be read. */
1151
1152 goto yysetstate;
1153
1154
1155/*------------------------------------------------------------.
1156| yynewstate -- push a new state, which is found in yystate. |
1157`------------------------------------------------------------*/
1158yynewstate:
1159 /* In all cases, when you get here, the value and location stacks
1160 have just been pushed. So pushing a state here evens the stacks. */
1161 yyssp++;
1162
1163
1164/*--------------------------------------------------------------------.
1165| yysetstate -- set current state (the top of the stack) to yystate. |

Callers 1

conf_parseFunction · 0.85

Calls 15

yylexFunction · 0.85
menu_add_promptFunction · 0.85
zconf_errorFunction · 0.85
menu_add_entryFunction · 0.85
zconf_curnameFunction · 0.85
zconf_linenoFunction · 0.85
zconfprintFunction · 0.85
menu_set_typeFunction · 0.85
menu_add_exprFunction · 0.85
menu_add_symbolFunction · 0.85
expr_alloc_compFunction · 0.85
sym_lookupFunction · 0.85

Tested by

no test coverage detected