OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
#include "config.h"
#include <iostream>
#include "Error.h"
#include "GSEClause.h"
#include "gse_parser.h"
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | gse_arg(arg) ((gse_arg *)(arg)) |
#define | YY_(msgid) msgid |
#define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
#define | YYABORT goto yyabortlab |
#define | YYACCEPT goto yyacceptlab |
#define | YYBACKUP(Token, Value) |
#define | YYBISON 1 |
#define | YYBISON_VERSION "2.4.1" |
#define | yychar gse_char |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYCOPY(To, From, Count) |
#define | yydebug gse_debug |
#define | YYDEBUG 1 |
#define | YYDPRINTF(Args) |
#define | YYEMPTY (-2) |
#define | YYEOF 0 |
#define | YYERRCODE 256 |
#define | yyerrok (yyerrstatus = 0) |
#define | yyerror gse_error |
#define | YYERROR goto yyerrorlab |
#define | YYERROR_VERBOSE 0 |
#define | YYFAIL goto yyerrlab |
#define | YYFINAL 7 |
#define | YYFPRINTF fprintf |
#define | YYFREE free |
#define | YYID(n) (n) |
#define | YYINITDEPTH 200 |
#define | YYLAST 17 |
#define | yylex gse_lex |
#define | YYLEX yylex () |
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
#define | YYLSP_NEEDED 0 |
#define | yylval gse_lval |
#define | YYMALLOC malloc |
#define | YYMAXDEPTH 10000 |
#define | YYMAXUTOK 267 |
#define | yynerrs gse_nerrs |
#define | YYNNTS 5 |
#define | YYNRULES 13 |
#define | YYNSTATES 20 |
#define | YYNTOKENS 13 |
#define | YYPACT_NINF -7 |
#define | yyparse gse_parse |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
#define | YYPULL 1 |
#define | YYPURE 0 |
#define | YYPUSH 0 |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define | YYSIZE_T unsigned int |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYSTACK_BYTES(N) |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
#define | yystype YYSTYPE /* obsolescent; will be withdrawn */ |
#define | YYSTYPE_IS_DECLARED 1 |
#define | YYSTYPE_IS_TRIVIAL 1 |
#define | YYTABLE_NINF -1 |
#define | YYTERROR 1 |
#define | YYTOKEN_TABLE 0 |
#define | YYTOKENTYPE |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYUNDEFTOK 2 |
#define | YYUSE(e) ((void) (e)) |
Typedefs | |
typedef union YYSTYPE | YYSTYPE |
typedef short int | yytype_int16 |
typedef short int | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef unsigned char | yytype_uint8 |
Enumerations | |
enum | yytokentype { SCAN_INT = 258, SCAN_FLOAT = 259, SCAN_WORD = 260, SCAN_FIELD = 261, SCAN_EQUAL = 262, SCAN_NOT_EQUAL = 263, SCAN_GREATER = 264, SCAN_GREATER_EQL = 265, SCAN_LESS = 266, SCAN_LESS_EQL = 267 } |
Functions | |
GSEClause * | build_dual_gse_clause (gse_arg *arg, char id[ID_MAX], int op1, double val1, int op2, double val2) |
GSEClause * | build_gse_clause (gse_arg *arg, char id[ID_MAX], int op, double val) |
GSEClause * | build_rev_gse_clause (gse_arg *arg, char id[ID_MAX], int op, double val) |
for (;yybottom<=yytop;yybottom++) | |
for (yyi=0;yyi< yynrhs;yyi++) | |
for (;;) | |
void | gse_error (gse_arg *arg, const char *str) |
int | gse_lex (void) |
if (!yyvaluep) return = "Deleting" | |
if (yyss+yystacksize-1<=yyssp) | |
if (yystate==YYFINAL) YYACCEPT | |
if (yyn==YYPACT_NINF) goto yydefault | |
if (yychar==YYEMPTY) | |
if (yychar<=YYEOF) | |
if (yyn< 0||YYLAST< yyn||yycheck[yyn]!=yytoken) goto yydefault | |
if (yyn<=0) | |
if (yyerrstatus) yyerrstatus-- | |
if (0<=yystate &&yystate<=YYLAST &&yycheck[yystate]==*yyssp) yystate | |
if (yyss!=yyssa) YYSTACK_FREE(yyss) | |
switch (yytype) | |
switch (yyn) | |
while (yyssp!=yyss) | |
yyexhaustedlab | YY_ ("memory exhausted")) |
YY_REDUCE_PRINT (yyn) | |
YY_STACK_PRINT (yyss, yyssp) | |
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp) | |
YY_SYMBOL_PRINT ("Next token is", yytoken,&yylval,&yylloc) | |
YY_SYMBOL_PRINT ("Shifting", yytoken,&yylval,&yylloc) | |
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn],&yyval,&yyloc) | |
YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp) | |
YYDPRINTF ((stderr,"Starting parse\n")) | |
YYDPRINTF ((stderr,"Entering state %d\n", yystate)) | |
yyerror (arg, YY_("syntax error")) | |
else | YYFPRINTF (yyoutput,"nterm %s (", yytname[yytype]) |
YYFPRINTF (yyoutput,")") | |
YYFPRINTF (stderr,"\n") | |
YYFPRINTF (stderr,"Reducing stack by rule %d (line %lu):\n", yyrule-1, yylno) | |
return | YYID (yyresult) |
int | yyparse () |
int | yyparse (arg) gse_arg *arg |
YYPOPSTACK (yylen) | |
YYUSE (arg) | |
YYUSE (yyoutput) | |
Variables | |
yynewstate | __pad0__ |
yyexhaustedlab | __pad10__ |
yyreturn | __pad11__ |
yysetstate | __pad1__ |
yybackup | __pad2__ |
yydefault | __pad3__ |
yyreduce | __pad4__ |
yyerrlab | __pad5__ |
yyerrorlab | __pad6__ |
yyerrlab1 | __pad7__ |
yyacceptlab | __pad8__ |
yyabortlab | __pad9__ |
gse_arg * | arg |
else | |
goto | yybackup |
int | yychar = YYEMPTY |
int | yydebug |
goto | yyerrlab1 |
int | yyerrstatus |
int | yyi |
int | yylen = 0 |
unsigned long int | yylno = yyrline[yyrule] |
YYSTYPE | yylval |
int | yyn = yytoken |
int | yynerrs = 0 |
goto | yynewstate |
goto | yyreduce |
int | yyresult = 2 |
goto | yyreturn |
int | yyrule |
goto | yysetstate |
yytype_int16 * | yyss = yyssa |
yytype_int16 | yyssa [YYINITDEPTH] |
yytype_int16 * | yyssp = yyss |
YYSIZE_T | yystacksize = YYINITDEPTH |
yystate = 0 | |
int | yytoken = 0 |
yytype_int16 * | yytop |
int | yytype |
YYSTYPE | yyval = yyvsp[1-yylen] |
YYSTYPE const *const | yyvaluep |
YYSTYPE * | yyvs = yyvsa |
YYSTYPE | yyvsa [YYINITDEPTH] |
YYSTYPE * | yyvsp = yyvs |
Definition at line 121 of file gse.tab.cc.
Referenced by libdap::function_geogrid(), and libdap::function_grid().
#define YY_ | ( | msgid | ) | msgid |
Definition at line 258 of file gse.tab.cc.
Referenced by if().
#define YY_LOCATION_PRINT | ( | File, | |
Loc | |||
) | ((void) 0) |
Definition at line 660 of file gse.tab.cc.
#define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 824 of file gse.tab.cc.
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
Definition at line 785 of file gse.tab.cc.
Referenced by for().
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
#define YYABORT goto yyabortlab |
Definition at line 589 of file gse.tab.cc.
#define YYACCEPT goto yyacceptlab |
Definition at line 588 of file gse.tab.cc.
#define YYBACKUP | ( | Token, | |
Value | |||
) |
Definition at line 601 of file gse.tab.cc.
#define YYBISON 1 |
Definition at line 46 of file gse.tab.cc.
#define YYBISON_VERSION "2.4.1" |
Definition at line 49 of file gse.tab.cc.
#define yychar gse_char |
Definition at line 71 of file gse.tab.cc.
Definition at line 584 of file gse.tab.cc.
#define YYCOPY | ( | To, | |
From, | |||
Count | |||
) |
#define yydebug gse_debug |
Definition at line 72 of file gse.tab.cc.
#define YYDEBUG 1 |
Definition at line 84 of file gse.tab.cc.
#define YYDPRINTF | ( | Args | ) |
#define YYEMPTY (-2) |
Definition at line 585 of file gse.tab.cc.
Referenced by if().
#define YYEOF 0 |
Definition at line 586 of file gse.tab.cc.
Referenced by if().
#define YYERRCODE 256 |
Definition at line 620 of file gse.tab.cc.
#define yyerrok (yyerrstatus = 0) |
Definition at line 583 of file gse.tab.cc.
#define yyerror gse_error |
Definition at line 69 of file gse.tab.cc.
#define YYERROR goto yyerrorlab |
Definition at line 590 of file gse.tab.cc.
#define YYERROR_VERBOSE 0 |
Definition at line 92 of file gse.tab.cc.
#define YYFAIL goto yyerrlab |
Definition at line 597 of file gse.tab.cc.
#define YYFINAL 7 |
Definition at line 414 of file gse.tab.cc.
#define YYFPRINTF fprintf |
Definition at line 678 of file gse.tab.cc.
Referenced by for().
#define YYFREE free |
Definition at line 347 of file gse.tab.cc.
#define YYID | ( | n | ) | (n) |
Definition at line 271 of file gse.tab.cc.
#define YYINITDEPTH 200 |
Definition at line 843 of file gse.tab.cc.
#define YYLAST 17 |
Definition at line 416 of file gse.tab.cc.
Referenced by for().
#define yylex gse_lex |
Definition at line 68 of file gse.tab.cc.
#define YYLEX yylex () |
Definition at line 670 of file gse.tab.cc.
Referenced by if().
#define YYLLOC_DEFAULT | ( | Current, | |
Rhs, | |||
N | |||
) |
Definition at line 629 of file gse.tab.cc.
#define YYLSP_NEEDED 0 |
Definition at line 64 of file gse.tab.cc.
yyreturn & yylval gse_lval |
Definition at line 70 of file gse.tab.cc.
Referenced by if().
#define YYMALLOC malloc |
Definition at line 340 of file gse.tab.cc.
#define YYMAXDEPTH 10000 |
Definition at line 854 of file gse.tab.cc.
Referenced by if().
#define YYMAXUTOK 267 |
Definition at line 429 of file gse.tab.cc.
#define yynerrs gse_nerrs |
Definition at line 73 of file gse.tab.cc.
#define YYNNTS 5 |
Definition at line 421 of file gse.tab.cc.
#define YYNRULES 13 |
Definition at line 423 of file gse.tab.cc.
#define YYNSTATES 20 |
Definition at line 425 of file gse.tab.cc.
#define YYNTOKENS 13 |
Definition at line 419 of file gse.tab.cc.
#define YYPACT_NINF -7 |
Definition at line 545 of file gse.tab.cc.
Referenced by for().
#define yyparse gse_parse |
Definition at line 67 of file gse.tab.cc.
Definition at line 1196 of file gse.tab.cc.
#define YYPULL 1 |
Definition at line 61 of file gse.tab.cc.
#define YYPURE 0 |
Definition at line 55 of file gse.tab.cc.
#define YYPUSH 0 |
Definition at line 58 of file gse.tab.cc.
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 599 of file gse.tab.cc.
#define YYRHSLOC | ( | Rhs, | |
K | |||
) | ((Rhs)[K]) |
Definition at line 627 of file gse.tab.cc.
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 248 of file gse.tab.cc.
#define YYSIZE_T unsigned int |
Definition at line 244 of file gse.tab.cc.
Referenced by if().
#define YYSKELETON_NAME "yacc.c" |
Definition at line 52 of file gse.tab.cc.
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 326 of file gse.tab.cc.
Referenced by if().
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 329 of file gse.tab.cc.
#define YYSTACK_BYTES | ( | N | ) |
#define YYSTACK_FREE YYFREE |
Definition at line 327 of file gse.tab.cc.
Referenced by if().
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Definition at line 369 of file gse.tab.cc.
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
#define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
Definition at line 172 of file gse.tab.cc.
#define YYSTYPE_IS_DECLARED 1 |
Definition at line 173 of file gse.tab.cc.
#define YYSTYPE_IS_TRIVIAL 1 |
Definition at line 171 of file gse.tab.cc.
#define YYTABLE_NINF -1 |
Definition at line 562 of file gse.tab.cc.
Referenced by if().
#define YYTERROR 1 |
Definition at line 619 of file gse.tab.cc.
Referenced by for().
#define YYTOKEN_TABLE 0 |
Definition at line 97 of file gse.tab.cc.
#define YYTOKENTYPE |
Definition at line 134 of file gse.tab.cc.
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 431 of file gse.tab.cc.
#define YYUNDEFTOK 2 |
Definition at line 428 of file gse.tab.cc.
#define YYUSE | ( | e | ) | ((void) (e)) |
Definition at line 264 of file gse.tab.cc.
typedef union YYSTYPE YYSTYPE |
typedef short int yytype_int16 |
Definition at line 231 of file gse.tab.cc.
typedef short int yytype_int8 |
Definition at line 219 of file gse.tab.cc.
typedef unsigned short int yytype_uint16 |
Definition at line 225 of file gse.tab.cc.
typedef unsigned char yytype_uint8 |
Definition at line 210 of file gse.tab.cc.
enum yytokentype |
Enumerator | |
---|---|
SCAN_INT | |
SCAN_FLOAT | |
SCAN_WORD | |
SCAN_FIELD | |
SCAN_EQUAL | |
SCAN_NOT_EQUAL | |
SCAN_GREATER | |
SCAN_GREATER_EQL | |
SCAN_LESS | |
SCAN_LESS_EQL |
Definition at line 137 of file gse.tab.cc.
GSEClause * build_dual_gse_clause | ( | gse_arg * | arg, |
char | id[ID_MAX], | ||
int | op1, | ||
double | val1, | ||
int | op2, | ||
double | val2 | ||
) |
Definition at line 1712 of file gse.tab.cc.
References libdap::dods_equal_op, libdap::dods_greater_equal_op, libdap::dods_greater_op, libdap::dods_less_equal_op, libdap::dods_less_op, and libdap::gse_arg::get_grid().
Referenced by switch().
Definition at line 1697 of file gse.tab.cc.
References libdap::gse_arg::get_grid().
Referenced by switch().
Definition at line 1705 of file gse.tab.cc.
References libdap::gse_arg::get_grid().
Referenced by switch().
for | ( | ;yybottom<=yytop;yybottom++ | ) |
Definition at line 777 of file gse.tab.cc.
References YYFPRINTF.
for | ( | ) |
Definition at line 814 of file gse.tab.cc.
References YYFPRINTF.
for | ( | ;; | ) |
Definition at line 1557 of file gse.tab.cc.
References YY_STACK_PRINT, YYABORT, YYLAST, yyn, YYPACT_NINF, YYPOPSTACK, yyssp, yystate, and YYTERROR.
void gse_error | ( | gse_arg * | arg, |
const char * | str | ||
) |
Definition at line 1650 of file gse.tab.cc.
int gse_lex | ( | void | ) |
if | ( | ! | yyvaluep | ) | = "Deleting" |
Referenced by BESUtil::url_create().
if | ( | yyss+yystacksize-1<= | yyssp | ) |
Definition at line 1234 of file gse.tab.cc.
References YY_, YYABORT, yyalloc, YYDPRINTF, YYMAXDEPTH, YYSIZE_T, yyss, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, and yyvs.
if | ( | yyn | = =YYPACT_NINF | ) |
Definition at line 1318 of file gse.tab.cc.
if | ( | yychar<= | YYEOF | ) |
Definition at line 1324 of file gse.tab.cc.
if | ( | ) |
if | ( | yyn<= | 0 | ) |
Definition at line 1341 of file gse.tab.cc.
References yyn, yyreduce, and YYTABLE_NINF.
if | ( | yyerrstatus | = = 3 | ) |
if | ( | yyss! | = yyssa | ) |
switch | ( | yytype | ) |
Definition at line 726 of file gse.tab.cc.
switch | ( | yyn | ) |
Definition at line 1395 of file gse.tab.cc.
References build_dual_gse_clause(), build_gse_clause(), and build_rev_gse_clause().
while | ( | yyssp! | = yyss | ) |
Definition at line 1625 of file gse.tab.cc.
References YYPOPSTACK.
yyexhaustedlab YY_ | ( | "memory exhausted" | ) |
YY_REDUCE_PRINT | ( | yyn | ) |
YY_SYMBOL_PRINT | ( | "Next token is" | , |
yytoken | , | ||
& | yylval, | ||
& | yylloc | ||
) |
YY_SYMBOL_PRINT | ( | "Shifting" | , |
yytoken | , | ||
& | yylval, | ||
& | yylloc | ||
) |
YY_SYMBOL_PRINT | ( | ) |
YY_SYMBOL_PRINT | ( | "Shifting" | , |
yystos | [yyn], | ||
yyvsp | , | ||
yylsp | |||
) |
YYDPRINTF | ( | (stderr,"Starting parse\n") | ) |
YYDPRINTF | ( | (stderr,"Entering state %d\n", yystate) | ) |
else YYFPRINTF | ( | yyoutput | ) |
YYFPRINTF | ( | yyoutput | , |
" | |||
) |
YYFPRINTF | ( | stderr | , |
"\n" | |||
) |
return YYID | ( | yyresult | ) |
int yyparse | ( | ) |
int yyparse | ( | arg | ) |
YYPOPSTACK | ( | yylen | ) |
YYUSE | ( | arg | ) |
YYUSE | ( | yyoutput | ) |
yynewstate __pad0__ |
Definition at line 1229 of file gse.tab.cc.
yyexhaustedlab __pad10__ |
Definition at line 1612 of file gse.tab.cc.
yyreturn __pad11__ |
Definition at line 1619 of file gse.tab.cc.
yysetstate __pad1__ |
Definition at line 1232 of file gse.tab.cc.
yybackup __pad2__ |
Definition at line 1311 of file gse.tab.cc.
yydefault __pad3__ |
Definition at line 1370 of file gse.tab.cc.
yyreduce __pad4__ |
Definition at line 1381 of file gse.tab.cc.
yyerrlab __pad5__ |
Definition at line 1467 of file gse.tab.cc.
yyerrorlab __pad6__ |
Definition at line 1540 of file gse.tab.cc.
yyerrlab1 __pad7__ |
Definition at line 1555 of file gse.tab.cc.
yyacceptlab __pad8__ |
Definition at line 1597 of file gse.tab.cc.
yyabortlab __pad9__ |
Definition at line 1604 of file gse.tab.cc.
yyreturn arg |
Definition at line 714 of file gse.tab.cc.
Referenced by libdap::function_geogrid(), and libdap::function_grid().
else |
Definition at line 1330 of file gse.tab.cc.
goto yybackup |
Definition at line 1300 of file gse.tab.cc.
yychar = YYEMPTY |
Definition at line 1120 of file gse.tab.cc.
int yydebug |
Definition at line 832 of file gse.tab.cc.
goto yyerrlab1 |
Definition at line 1528 of file gse.tab.cc.
yyerrstatus |
Definition at line 1155 of file gse.tab.cc.
int yyi |
Definition at line 807 of file gse.tab.cc.
yylen = 0 |
Definition at line 1200 of file gse.tab.cc.
unsigned long int yylno = yyrline[yyrule] |
Definition at line 810 of file gse.tab.cc.
yyreturn & yylval |
Definition at line 1123 of file gse.tab.cc.
yyn = yytoken |
Definition at line 1181 of file gse.tab.cc.
yynerrs = 0 |
Definition at line 1126 of file gse.tab.cc.
goto yynewstate |
Definition at line 1363 of file gse.tab.cc.
goto yyreduce |
Definition at line 1373 of file gse.tab.cc.
Referenced by if().
yyresult = 2 |
Definition at line 1182 of file gse.tab.cc.
goto yyreturn |
Definition at line 1598 of file gse.tab.cc.
int yyrule |
Definition at line 804 of file gse.tab.cc.
goto yysetstate |
Definition at line 1221 of file gse.tab.cc.
yyss = yyssa |
Definition at line 1171 of file gse.tab.cc.
Referenced by if().
yytype_int16 yyssa[YYINITDEPTH] |
Definition at line 1170 of file gse.tab.cc.
yyssp = yyss |
Definition at line 1172 of file gse.tab.cc.
Referenced by for().
yystacksize = YYINITDEPTH |
Definition at line 1179 of file gse.tab.cc.
else yystate = 0 |
Definition at line 1209 of file gse.tab.cc.
Referenced by for().
yyreturn yytoken = 0 |
Definition at line 1184 of file gse.tab.cc.
yytype_int16* yytop |
Definition at line 773 of file gse.tab.cc.
int yytype |
Definition at line 712 of file gse.tab.cc.
Definition at line 1187 of file gse.tab.cc.
YYSTYPE * yyvaluep |
Definition at line 713 of file gse.tab.cc.
yyvs = yyvsa |
Definition at line 1176 of file gse.tab.cc.
Referenced by if().
YYSTYPE yyvsa[YYINITDEPTH] |
Definition at line 1175 of file gse.tab.cc.
* yyvsp = yyvs |
Definition at line 1177 of file gse.tab.cc.