PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ yypcontext_expected_tokens()

static int yypcontext_expected_tokens ( const yypcontext_t yyctx,
yysymbol_kind_t  yyarg[],
int  yyargn 
)
static

Definition at line 1245 of file lwin_wkt_parse.c.

1247{
1248 /* Actual size of YYARG. */
1249 int yycount = 0;
1250 int yyn = yypact[+*yyctx->yyssp];
1251 if (!yypact_value_is_default (yyn))
1252 {
1253 /* Start YYX at -YYN if negative to avoid negative indexes in
1254 YYCHECK. In other words, skip the first -YYN actions for
1255 this state because they are default actions. */
1256 int yyxbegin = yyn < 0 ? -yyn : 0;
1257 /* Stay within bounds of both yycheck and yytname. */
1258 int yychecklim = YYLAST - yyn + 1;
1259 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1260 int yyx;
1261 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1262 if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror
1263 && !yytable_value_is_error (yytable[yyx + yyn]))
1264 {
1265 if (!yyarg)
1266 ++yycount;
1267 else if (yycount == yyargn)
1268 return 0;
1269 else
1270 yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx);
1271 }
1272 }
1273 if (yyarg && yycount == 0 && 0 < yyargn)
1274 yyarg[0] = YYSYMBOL_YYEMPTY;
1275 return yycount;
1276}
yysymbol_kind_t
@ YYSYMBOL_YYerror
@ YYSYMBOL_YYEMPTY
#define YY_CAST(Type, Val)
static const yytype_int16 yypact[]
#define YYNTOKENS
static const yytype_int16 yytable[]
#define yytable_value_is_error(Yyn)
#define YYLAST
#define yypact_value_is_default(Yyn)
static const yytype_uint8 yycheck[]
yy_state_t * yyssp

References YY_CAST, yycheck, YYLAST, YYNTOKENS, yypact, yypact_value_is_default, yypcontext_t::yyssp, YYSYMBOL_YYEMPTY, YYSYMBOL_YYerror, yytable, and yytable_value_is_error.

Referenced by yy_syntax_error_arguments().

Here is the caller graph for this function: