OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
he5das.tab.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string>
#include <sstream>
#include <iostream>
#include <vector>
#include "DAS.h"
#include "Error.h"
#include "debug.h"
#include "parser.h"
#include <stddef.h>
Include dependency graph for he5das.tab.cc:

Go to the source code of this file.

Macros

#define _Noreturn   YY_ATTRIBUTE ((__noreturn__))
 
#define ATTR_OBJ(arg)   ((AttrTable *)((parser_arg *)(arg))->_object)
 
#define POP   (attr_tab_stack->pop_back())
 
#define PUSH(x)   (attr_tab_stack->push_back(x))
 
#define STACK_EMPTY   (attr_tab_stack->empty())
 
#define TOP_OF_STACK   (attr_tab_stack->back())
 
#define TYPE_NAME_VALUE(x)   type << " " << name << " " << (x)
 
#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_HE5DAS_HE5DAS_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   he5daschar
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYCOPY_NEEDED   1
 
#define yydebug   he5dasdebug
 
#define YYDEBUG   1
 
#define YYDEBUG   1
 
#define YYDPRINTF(Args)
 
#define YYEMPTY   (-2)
 
#define YYEOF   0
 
#define YYERRCODE   256
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyerror   he5daserror
 
#define YYERROR   goto yyerrorlab
 
#define YYERROR_VERBOSE   0
 
#define YYFINAL   3
 
#define YYFPRINTF   fprintf
 
#define YYFREE   free
 
#define YYINITDEPTH   200
 
#define YYLAST   72
 
#define yylex   he5daslex
 
#define yylval   he5daslval
 
#define YYMALLOC   malloc
 
#define YYMAXDEPTH   10000
 
#define YYMAXUTOK   265
 
#define yynerrs   he5dasnerrs
 
#define YYNNTS   17
 
#define YYNRULES   33
 
#define YYNSTATES   54
 
#define YYNTOKENS   15
 
#define YYPACT_NINF   -8
 
#define yypact_value_is_default(Yystate)   (!!((Yystate) == (-8)))
 
#define yyparse   he5dasparse
 
#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   char *
 
#define YYTABLE_NINF   -16
 
#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 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

void free (void *)
 
void he5daserror (parser_arg *arg, char *s)
 
int he5daslex (void)
 
int he5dasparse (parser_arg *arg)
 
void * malloc (YYSIZE_T)
 
int yyparse (parser_arg *arg)
 

Variables

int he5dasdebug
 
YYSTYPE he5daslval
 
int yychar
 
int yydebug
 
YYSTYPE yylval
 
int yynerrs
 

Macro Definition Documentation

#define _Noreturn   YY_ATTRIBUTE ((__noreturn__))

Definition at line 274 of file he5das.tab.cc.

#define ATTR_OBJ (   arg)    ((AttrTable *)((parser_arg *)(arg))->_object)

Definition at line 115 of file he5das.tab.cc.

Referenced by yyparse().

#define POP   (attr_tab_stack->pop_back())

Definition at line 116 of file he5das.tab.cc.

Referenced by yyparse().

#define PUSH (   x)    (attr_tab_stack->push_back(x))

Definition at line 117 of file he5das.tab.cc.

#define STACK_EMPTY   (attr_tab_stack->empty())

Definition at line 118 of file he5das.tab.cc.

Referenced by yyparse().

#define TOP_OF_STACK   (attr_tab_stack->back())

Definition at line 120 of file he5das.tab.cc.

Referenced by yyparse().

#define TYPE_NAME_VALUE (   x)    type << " " << name << " " << (x)

Definition at line 119 of file he5das.tab.cc.

Referenced by yyparse().

#define YY_ (   Msgid)    Msgid

Definition at line 247 of file he5das.tab.cc.

Referenced by yyparse().

#define YY_ATTRIBUTE (   Spec)    /* empty */

Definition at line 257 of file he5das.tab.cc.

#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))

Definition at line 262 of file he5das.tab.cc.

#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))

Definition at line 266 of file he5das.tab.cc.

#define YY_HE5DAS_HE5DAS_TAB_HH_INCLUDED

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

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

Definition at line 297 of file he5das.tab.cc.

Referenced by yyparse().

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

Definition at line 298 of file he5das.tab.cc.

Referenced by yyparse().

#define YY_INITIAL_VALUE (   Value)    Value

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

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

Definition at line 680 of file he5das.tab.cc.

#define YY_NULLPTR   0

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

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

Definition at line 778 of file he5das.tab.cc.

Referenced by yyparse().

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

Definition at line 747 of file he5das.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)
#define yydebug
Definition: he5das.tab.cc:66
if(!(yy_init))
Definition: lex.gse.cc:752
#define YYFPRINTF
Definition: he5das.tab.cc:669

Definition at line 684 of file he5das.tab.cc.

Referenced by yyparse().

#define YYABORT   goto yyabortlab

Definition at line 635 of file he5das.tab.cc.

Referenced by yyparse().

#define YYACCEPT   goto yyacceptlab

Definition at line 634 of file he5das.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)
#define YYEMPTY
Definition: he5das.tab.cc:631
if(!(yy_init))
Definition: lex.gse.cc:752
#define YYPOPSTACK(N)
#define YYERROR
Definition: he5das.tab.cc:636
while(1)
Definition: lex.gse.cc:778
#define yychar
Definition: he5das.tab.cc:70
#define yyerror
Definition: he5das.tab.cc:65
#define yylval
Definition: he5das.tab.cc:69
#define YY_(Msgid)
Definition: he5das.tab.cc:247

Definition at line 641 of file he5das.tab.cc.

#define YYBISON   1

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

#define YYBISON_VERSION   "3.0.1"

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

#define yychar   he5daschar

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

#define yyclearin   (yychar = YYEMPTY)

Definition at line 630 of file he5das.tab.cc.

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

Definition at line 421 of file he5das.tab.cc.

#define YYCOPY_NEEDED   1

Definition at line 393 of file he5das.tab.cc.

#define yydebug   he5dasdebug

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

#define YYDEBUG   1

Definition at line 107 of file he5das.tab.cc.

#define YYDEBUG   1

Definition at line 107 of file he5das.tab.cc.

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

Definition at line 672 of file he5das.tab.cc.

Referenced by yyparse().

#define YYEMPTY   (-2)

Definition at line 631 of file he5das.tab.cc.

Referenced by yyparse().

#define YYEOF   0

Definition at line 632 of file he5das.tab.cc.

Referenced by yyparse().

#define YYERRCODE   256

Definition at line 660 of file he5das.tab.cc.

#define yyerrok   (yyerrstatus = 0)

Definition at line 629 of file he5das.tab.cc.

#define yyerror   he5daserror

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

Referenced by yyparse().

#define YYERROR   goto yyerrorlab

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

#define YYERROR_VERBOSE   0

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

#define YYFINAL   3

Definition at line 434 of file he5das.tab.cc.

Referenced by yyparse().

#define YYFPRINTF   fprintf

Definition at line 669 of file he5das.tab.cc.

#define YYFREE   free

Definition at line 364 of file he5das.tab.cc.

#define YYINITDEPTH   200

Definition at line 797 of file he5das.tab.cc.

Referenced by yyparse().

#define YYLAST   72

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

Referenced by yyparse().

#define yylex   he5daslex

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

Referenced by yyparse().

#define yylval   he5daslval

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

Referenced by yyparse().

#define YYMALLOC   malloc

Definition at line 358 of file he5das.tab.cc.

#define YYMAXDEPTH   10000

Definition at line 808 of file he5das.tab.cc.

Referenced by yyparse().

#define YYMAXUTOK   265

Definition at line 450 of file he5das.tab.cc.

#define yynerrs   he5dasnerrs

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

Referenced by yyparse().

#define YYNNTS   17

Definition at line 441 of file he5das.tab.cc.

#define YYNRULES   33

Definition at line 443 of file he5das.tab.cc.

#define YYNSTATES   54

Definition at line 445 of file he5das.tab.cc.

#define YYNTOKENS   15

Definition at line 439 of file he5das.tab.cc.

Referenced by yyparse().

#define YYPACT_NINF   -8

Definition at line 522 of file he5das.tab.cc.

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

Definition at line 524 of file he5das.tab.cc.

Referenced by yyparse().

#define yyparse   he5dasparse

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

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

Referenced by yyparse().

#define YYPULL   1

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

#define YYPURE   0

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

#define YYPUSH   0

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

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 639 of file he5das.tab.cc.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 237 of file he5das.tab.cc.

#define YYSIZE_T   size_t

Definition at line 231 of file he5das.tab.cc.

Referenced by yyparse().

#define YYSKELETON_NAME   "yacc.c"

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

#define YYSTACK_ALLOC   YYMALLOC

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

Referenced by yyparse().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 347 of file he5das.tab.cc.

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
#define YYSTACK_GAP_MAXIMUM
Definition: he5das.tab.cc:385
short int yytype_int16
Definition: gse.tab.cc:218
#define YYSTYPE
Definition: he5das.tab.cc:106

Definition at line 389 of file he5das.tab.cc.

Referenced by yyparse().

#define YYSTACK_FREE   YYFREE

Definition at line 345 of file he5das.tab.cc.

Referenced by yyparse().

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

Definition at line 385 of file he5das.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 YYSTACK_GAP_MAXIMUM
Definition: he5das.tab.cc:385
while(1)
Definition: lex.gse.cc:778
#define YYCOPY(Dst, Src, Count)
Definition: he5das.tab.cc:421
#define YYSIZE_T
Definition: he5das.tab.cc:231

Definition at line 400 of file he5das.tab.cc.

Referenced by yyparse().

#define YYSTYPE   char *

Definition at line 106 of file he5das.tab.cc.

Referenced by yyparse().

#define YYTABLE_NINF   -16

Definition at line 527 of file he5das.tab.cc.

#define yytable_value_is_error (   Yytable_value)    0

Definition at line 529 of file he5das.tab.cc.

Referenced by yyparse().

#define YYTERROR   1

Definition at line 659 of file he5das.tab.cc.

Referenced by yyparse().

#define YYTOKENTYPE

Definition at line 145 of file he5das.tab.cc.

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

Definition at line 452 of file he5das.tab.cc.

Referenced by yyparse().

#define YYUNDEFTOK   2

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

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

Definition at line 280 of file he5das.tab.cc.

Typedef Documentation

typedef short int yytype_int16

Definition at line 221 of file he5das.tab.cc.

typedef signed char yytype_int8

Definition at line 209 of file he5das.tab.cc.

typedef unsigned short int yytype_uint16

Definition at line 215 of file he5das.tab.cc.

typedef unsigned char yytype_uint8

Definition at line 203 of file he5das.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 146 of file he5das.tab.cc.

Function Documentation

void free ( void *  )
void he5daserror ( parser_arg *  arg,
char *  s 
)

Definition at line 1799 of file he5das.tab.cc.

int he5daslex ( void  )
int he5dasparse ( parser_arg *  arg)
void* malloc ( YYSIZE_T  )

Variable Documentation

int he5dasdebug
YYSTYPE he5daslval

Referenced by while().

int yychar

Definition at line 1056 of file he5das.tab.cc.

int yydebug

Definition at line 786 of file he5das.tab.cc.

YYSTYPE yylval

Definition at line 1059 of file he5das.tab.cc.

int yynerrs

Definition at line 1061 of file he5das.tab.cc.