OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
gse.tab.cc File Reference
#include "config.h"
#include <iostream>
#include "Error.h"
#include "GSEClause.h"
#include "gse_parser.h"
#include <stddef.h>
#include <stdio.h>
Include dependency graph for gse.tab.cc:

Go to the source code of this file.

Macros

#define _Noreturn   YY_ATTRIBUTE ((__noreturn__))
 
#define gse_arg(arg)   ((gse_arg *)(arg))
 
#define YY_(Msgid)   Msgid
 
#define YY_ATTRIBUTE(Spec)   /* empty */
 
#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
 
#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))
 
#define YY_GSE_GSE_TAB_HH_INCLUDED
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#define YY_INITIAL_VALUE(Value)   Value
 
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
 
#define YY_NULLPTR   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   "3.0.1"
 
#define yychar   gse_char
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYCOPY_NEEDED   1
 
#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 YYFINAL   7
 
#define YYFPRINTF   fprintf
 
#define YYFREE   free
 
#define YYINITDEPTH   200
 
#define YYLAST   17
 
#define yylex   gse_lex
 
#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 yypact_value_is_default(Yystate)   (!!((Yystate) == (-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 YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
 
#define YYSIZE_T   size_t
 
#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_IS_DECLARED   1
 
#define YYSTYPE_IS_TRIVIAL   1
 
#define YYTABLE_NINF   -1
 
#define yytable_value_is_error(Yytable_value)   0
 
#define YYTERROR   1
 
#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 signed char 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, GROUP = 258, END_GROUP = 259,
  OBJECT = 260, END_OBJECT = 261, END = 262, INT = 263,
  FLOAT = 264, STR = 265, COMMENT = 266, DAS_GROUP = 258,
  DAS_END_GROUP = 259, DAS_OBJECT = 260, DAS_END_OBJECT = 261, DAS_INT = 262,
  DAS_FLOAT = 263, DAS_STR = 264, DAS_COMMENT = 265, GROUP = 258,
  END_GROUP = 259, OBJECT = 260, END_OBJECT = 261, GRID_NAME = 262,
  SWATH_NAME = 263, ZA_NAME = 264, DEFAULT = 265, XDIM = 266,
  YDIM = 267, UPPERLEFTPT = 268, LOWERRIGHTPT = 269, PIXELREGISTRATION = 270,
  PROJECTION = 271, GRIDORIGIN = 272, DIMENSION_NAME = 273, DIMENSION_SIZE = 274,
  DATA_FIELD_NAME = 275, GEO_FIELD_NAME = 276, DATA_TYPE = 277, DIMENSION_LIST = 278,
  COMPRESSION_TYPE = 279, INT = 280, FLOAT = 281, STR = 282
}
 

Functions

GSEClausebuild_dual_gse_clause (gse_arg *arg, char id[ID_MAX], int op1, double val1, int op2, double val2)
 
GSEClausebuild_gse_clause (gse_arg *arg, char id[ID_MAX], int op, double val)
 
GSEClausebuild_rev_gse_clause (gse_arg *arg, char id[ID_MAX], int op, double val)
 
void free (void *)
 
void gse_error (gse_arg *arg, const char *str)
 
int gse_lex (void)
 
int gse_parse (gse_arg *arg)
 
void * malloc (YYSIZE_T)
 
int yyparse (gse_arg *arg)
 

Variables

int gse_debug
 
YYSTYPE gse_lval
 
int yychar
 
int yydebug
 
YYSTYPE yylval
 
int yynerrs
 

Macro Definition Documentation

#define _Noreturn   YY_ATTRIBUTE ((__noreturn__))

Definition at line 271 of file gse.tab.cc.

#define gse_arg (   arg)    ((gse_arg *)(arg))

Definition at line 122 of file gse.tab.cc.

Referenced by libdap::function_geogrid(), and libdap::function_grid().

#define YY_ (   Msgid)    Msgid

Definition at line 244 of file gse.tab.cc.

Referenced by yyparse().

#define YY_ATTRIBUTE (   Spec)    /* empty */

Definition at line 254 of file gse.tab.cc.

#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))

Definition at line 259 of file gse.tab.cc.

#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))

Definition at line 263 of file gse.tab.cc.

#define YY_GSE_GSE_TAB_HH_INCLUDED

Definition at line 95 of file gse.tab.cc.

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

Definition at line 294 of file gse.tab.cc.

Referenced by yyparse().

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

Definition at line 295 of file gse.tab.cc.

Referenced by yyparse().

#define YY_INITIAL_VALUE (   Value)    Value

Definition at line 291 of file gse.tab.cc.

#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)

Definition at line 644 of file gse.tab.cc.

#define YY_NULLPTR   0

Definition at line 80 of file gse.tab.cc.

#define YY_REDUCE_PRINT (   Rule)
Value:
do { \
yy_reduce_print (yyssp, yyvsp, Rule, arg); \
} while (0)
if(!(yy_init))
Definition: lex.gse.cc:752
#define yydebug
Definition: gse.tab.cc:66

Definition at line 742 of file gse.tab.cc.

Referenced by yyparse().

#define YY_STACK_PRINT (   Bottom,
  Top 
)
Value:
do { \
yy_stack_print ((Bottom), (Top)); \
} while (0)
if(!(yy_init))
Definition: lex.gse.cc:752
#define yydebug
Definition: gse.tab.cc:66

Definition at line 711 of file gse.tab.cc.

Referenced by yyparse().

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)
Value:
do { \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \
Type, Value, arg); \
YYFPRINTF (stderr, "\n"); \
} \
} while (0)
if(!(yy_init))
Definition: lex.gse.cc:752
#define YYFPRINTF
Definition: gse.tab.cc:633
#define yydebug
Definition: gse.tab.cc:66

Definition at line 648 of file gse.tab.cc.

Referenced by yyparse().

#define YYABORT   goto yyabortlab

Definition at line 599 of file gse.tab.cc.

Referenced by yyparse().

#define YYACCEPT   goto yyacceptlab

Definition at line 598 of file gse.tab.cc.

Referenced by yyparse().

#define YYBACKUP (   Token,
  Value 
)
Value:
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (arg, YY_("syntax error: cannot back up")); \
} \
while (0)
if(!(yy_init))
Definition: lex.gse.cc:752
#define yychar
Definition: gse.tab.cc:70
#define YYPOPSTACK(N)
#define yyerror
Definition: gse.tab.cc:65
while(1)
Definition: lex.gse.cc:778
#define YYEMPTY
Definition: gse.tab.cc:595
#define YY_(Msgid)
Definition: gse.tab.cc:244
#define YYERROR
Definition: gse.tab.cc:600
#define yylval
Definition: gse.tab.cc:69

Definition at line 605 of file gse.tab.cc.

#define YYBISON   1

Definition at line 44 of file gse.tab.cc.

#define YYBISON_VERSION   "3.0.1"

Definition at line 47 of file gse.tab.cc.

#define yychar   gse_char

Definition at line 70 of file gse.tab.cc.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 594 of file gse.tab.cc.

#define YYCOPY (   Dst,
  Src,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)
#define YYSIZE_T
Definition: gse.tab.cc:228
while(1)
Definition: lex.gse.cc:778

Definition at line 418 of file gse.tab.cc.

#define YYCOPY_NEEDED   1

Definition at line 390 of file gse.tab.cc.

#define yydebug   gse_debug

Definition at line 66 of file gse.tab.cc.

#define YYDEBUG   1

Definition at line 98 of file gse.tab.cc.

#define YYDPRINTF (   Args)
Value:
do { \
YYFPRINTF Args; \
} while (0)
if(!(yy_init))
Definition: lex.gse.cc:752
#define YYFPRINTF
Definition: gse.tab.cc:633
#define yydebug
Definition: gse.tab.cc:66

Definition at line 636 of file gse.tab.cc.

Referenced by yyparse().

#define YYEMPTY   (-2)

Definition at line 595 of file gse.tab.cc.

Referenced by yyparse().

#define YYEOF   0

Definition at line 596 of file gse.tab.cc.

Referenced by yyparse().

#define YYERRCODE   256

Definition at line 624 of file gse.tab.cc.

#define yyerrok   (yyerrstatus = 0)

Definition at line 593 of file gse.tab.cc.

#define yyerror   gse_error

Definition at line 65 of file gse.tab.cc.

Referenced by yyparse().

#define YYERROR   goto yyerrorlab

Definition at line 600 of file gse.tab.cc.

#define YYERROR_VERBOSE   0

Definition at line 89 of file gse.tab.cc.

#define YYFINAL   7

Definition at line 431 of file gse.tab.cc.

Referenced by yyparse().

#define YYFPRINTF   fprintf

Definition at line 633 of file gse.tab.cc.

#define YYFREE   free

Definition at line 361 of file gse.tab.cc.

#define YYINITDEPTH   200

Definition at line 761 of file gse.tab.cc.

Referenced by yyparse().

#define YYLAST   17

Definition at line 433 of file gse.tab.cc.

Referenced by yyparse().

#define yylex   gse_lex

Definition at line 64 of file gse.tab.cc.

Referenced by yyparse().

#define yylval   gse_lval

Definition at line 69 of file gse.tab.cc.

Referenced by yyparse().

#define YYMALLOC   malloc

Definition at line 355 of file gse.tab.cc.

#define YYMAXDEPTH   10000

Definition at line 772 of file gse.tab.cc.

Referenced by yyparse().

#define YYMAXUTOK   267

Definition at line 447 of file gse.tab.cc.

#define yynerrs   gse_nerrs

Definition at line 67 of file gse.tab.cc.

Referenced by yyparse().

#define YYNNTS   5

Definition at line 438 of file gse.tab.cc.

#define YYNRULES   13

Definition at line 440 of file gse.tab.cc.

#define YYNSTATES   20

Definition at line 442 of file gse.tab.cc.

#define YYNTOKENS   13

Definition at line 436 of file gse.tab.cc.

Referenced by yyparse().

#define YYPACT_NINF   -7

Definition at line 516 of file gse.tab.cc.

#define yypact_value_is_default (   Yystate)    (!!((Yystate) == (-7)))

Definition at line 518 of file gse.tab.cc.

Referenced by yyparse().

#define yyparse   gse_parse

Definition at line 63 of file gse.tab.cc.

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))

Referenced by yyparse().

#define YYPULL   1

Definition at line 59 of file gse.tab.cc.

#define YYPURE   0

Definition at line 53 of file gse.tab.cc.

#define YYPUSH   0

Definition at line 56 of file gse.tab.cc.

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 603 of file gse.tab.cc.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 234 of file gse.tab.cc.

#define YYSIZE_T   size_t

Definition at line 228 of file gse.tab.cc.

Referenced by yyparse().

#define YYSKELETON_NAME   "yacc.c"

Definition at line 50 of file gse.tab.cc.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 341 of file gse.tab.cc.

Referenced by yyparse().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 344 of file gse.tab.cc.

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
#define YYSTACK_GAP_MAXIMUM
Definition: gse.tab.cc:382
union YYSTYPE YYSTYPE
Definition: gse.tab.cc:150
short int yytype_int16
Definition: gse.tab.cc:218

Definition at line 386 of file gse.tab.cc.

Referenced by yyparse().

#define YYSTACK_FREE   YYFREE

Definition at line 342 of file gse.tab.cc.

Referenced by yyparse().

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

Definition at line 382 of file gse.tab.cc.

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (0)
#define YYSIZE_T
Definition: gse.tab.cc:228
#define YYSTACK_GAP_MAXIMUM
Definition: gse.tab.cc:382
#define YYCOPY(Dst, Src, Count)
Definition: gse.tab.cc:418
while(1)
Definition: lex.gse.cc:778

Definition at line 397 of file gse.tab.cc.

Referenced by yyparse().

#define YYSTYPE_IS_DECLARED   1

Definition at line 164 of file gse.tab.cc.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 163 of file gse.tab.cc.

#define YYTABLE_NINF   -1

Definition at line 521 of file gse.tab.cc.

#define yytable_value_is_error (   Yytable_value)    0

Definition at line 523 of file gse.tab.cc.

Referenced by yyparse().

#define YYTERROR   1

Definition at line 623 of file gse.tab.cc.

Referenced by yyparse().

#define YYTOKENTYPE

Definition at line 132 of file gse.tab.cc.

#define YYTRANSLATE (   YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Definition at line 449 of file gse.tab.cc.

Referenced by yyparse().

#define YYUNDEFTOK   2

Definition at line 446 of file gse.tab.cc.

#define YYUSE (   E)    ((void) (E))

Definition at line 277 of file gse.tab.cc.

Typedef Documentation

typedef union YYSTYPE YYSTYPE

Definition at line 150 of file gse.tab.cc.

typedef short int yytype_int16

Definition at line 218 of file gse.tab.cc.

typedef signed char yytype_int8

Definition at line 206 of file gse.tab.cc.

typedef unsigned short int yytype_uint16

Definition at line 212 of file gse.tab.cc.

typedef unsigned char yytype_uint8

Definition at line 200 of file gse.tab.cc.

Enumeration Type Documentation

Enumerator
SCAN_INT 
SCAN_FLOAT 
SCAN_WORD 
SCAN_FIELD 
SCAN_EQUAL 
SCAN_NOT_EQUAL 
SCAN_GREATER 
SCAN_GREATER_EQL 
SCAN_LESS 
SCAN_LESS_EQL 
GROUP 
END_GROUP 
OBJECT 
END_OBJECT 
END 
INT 
FLOAT 
STR 
COMMENT 
DAS_GROUP 
DAS_END_GROUP 
DAS_OBJECT 
DAS_END_OBJECT 
DAS_INT 
DAS_FLOAT 
DAS_STR 
DAS_COMMENT 
GROUP 
END_GROUP 
OBJECT 
END_OBJECT 
GRID_NAME 
SWATH_NAME 
ZA_NAME 
DEFAULT 
XDIM 
YDIM 
UPPERLEFTPT 
LOWERRIGHTPT 
PIXELREGISTRATION 
PROJECTION 
GRIDORIGIN 
DIMENSION_NAME 
DIMENSION_SIZE 
DATA_FIELD_NAME 
GEO_FIELD_NAME 
DATA_TYPE 
DIMENSION_LIST 
COMPRESSION_TYPE 
INT 
FLOAT 
STR 

Definition at line 133 of file gse.tab.cc.

Function Documentation

GSEClause * build_dual_gse_clause ( gse_arg arg,
char  id[ID_MAX],
int  op1,
double  val1,
int  op2,
double  val2 
)

Definition at line 1593 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 yyparse().

Here is the call graph for this function:

GSEClause * build_gse_clause ( gse_arg arg,
char  id[ID_MAX],
int  op,
double  val 
)

Definition at line 1578 of file gse.tab.cc.

References libdap::gse_arg::get_grid().

Referenced by yyparse().

Here is the call graph for this function:

GSEClause * build_rev_gse_clause ( gse_arg arg,
char  id[ID_MAX],
int  op,
double  val 
)

Definition at line 1586 of file gse.tab.cc.

References libdap::gse_arg::get_grid().

Referenced by yyparse().

Here is the call graph for this function:

void gse_error ( gse_arg arg,
const char *  str 
)

Definition at line 1531 of file gse.tab.cc.

int gse_lex ( void  )
int gse_parse ( gse_arg arg)

Variable Documentation

int gse_debug
YYSTYPE gse_lval
int yychar

Definition at line 1020 of file gse.tab.cc.

int yydebug

Definition at line 750 of file gse.tab.cc.

YYSTYPE yylval

Definition at line 1023 of file gse.tab.cc.

int yynerrs

Definition at line 1025 of file gse.tab.cc.