OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
lex.hdfeos.cc File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "config_hdf.h"
#include <assert.h>
#include <parser.h>
#include "hdfeos.tab.hh"
#include <unistd.h>
Include dependency graph for lex.hdfeos.cc:

Go to the source code of this file.

Macros

#define BEGIN   (yy_start) = 1 + 2 *
 
#define comment   2
 
#define ECHO   fwrite( hdfeostext, hdfeosleng, 1, hdfeosout )
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define FLEX_BETA
 
#define FLEX_SCANNER
 
#define FLEXINT_H
 
#define hdfeoswrap(n)   1
 
#define INITIAL   0
 
#define INT16_MAX   (32767)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MAX   (2147483647)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT8_MIN   (-128)
 
#define quote   1
 
#define REJECT   reject_used_but_not_detected
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define UINT8_MAX   (255U)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define YY_BREAK   break;
 
#define YY_BUF_SIZE   16384
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define yy_create_buffer   hdfeos_create_buffer
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_DECL   int hdfeoslex YY_PROTO(( void ))
 
#define yy_delete_buffer   hdfeos_delete_buffer
 
#define YY_DO_BEFORE_ACTION
 
#define YY_END_OF_BUFFER   30
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_EXIT_FAILURE   2
 
#define YY_EXTRA_TYPE   void *
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define yy_flex_debug   hdfeos_flex_debug
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define yy_flush_buffer   hdfeos_flush_buffer
 
#define YY_FLUSH_BUFFER   hdfeos_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_init_buffer   hdfeos_init_buffer
 
#define YY_INPUT(buf, result, max_size)
 
#define YY_INT_ALIGNED   short int
 
#define YY_LESS_LINENO(n)
 
#define yy_load_buffer_state   hdfeos_load_buffer_state
 
#define YY_MORE_ADJ   (yy_more_len)
 
#define yy_new_buffer   hdfeos_create_buffer
 
#define YY_NEW_FILE   hdfeosrestart(hdfeosin )
 
#define YY_NULL   0
 
#define YY_NUM_RULES   29
 
#define YY_PROTO(proto)   proto
 
#define YY_READ_BUF_SIZE   8192
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_RULE_SETUP   YY_USER_ACTION
 
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
 
#define yy_set_bol(at_bol)
 
#define yy_set_interactive(is_interactive)
 
#define YY_SKIP_YYWRAP
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YY_START_STACK_INCR   25
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define yy_switch_to_buffer   hdfeos_switch_to_buffer
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_USER_ACTION
 
#define yyalloc   hdfeosalloc
 
#define yyconst
 
#define yyfree   hdfeosfree
 
#define yyin   hdfeosin
 
#define yyleng   hdfeosleng
 
#define yyless(n)
 
#define yyless(n)
 
#define yylex   hdfeoslex
 
#define yylineno   hdfeoslineno
 
#define yymore()   ((yy_more_flag) = 1)
 
#define yyout   hdfeosout
 
#define yyrealloc   hdfeosrealloc
 
#define yyrestart   hdfeosrestart
 
#define YYSTATE   YY_START
 
#define YYSTYPE   char *
 
#define YYTABLES_NAME   "yytables"
 
#define yyterminate()   return YY_NULL
 
#define yytext   hdfeostext
 
#define yytext_ptr   hdfeostext
 
#define yywrap   hdfeoswrap
 

Typedefs

typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef signed char flex_int8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef unsigned char flex_uint8_t
 
typedef struct yy_buffer_state * YY_BUFFER_STATE
 
typedef unsigned char YY_CHAR
 
typedef size_t yy_size_t
 
typedef int yy_state_type
 

Functions

YY_BUFFER_STATE hdfeos_create_buffer (FILE *file, int size)
 Allocate and initialize an input buffer state. More...
 
void hdfeos_delete_buffer (YY_BUFFER_STATE b)
 Destroy the buffer. More...
 
void hdfeos_delete_buffer (void *buf)
 
void hdfeos_flush_buffer (YY_BUFFER_STATE b)
 Discard all buffered characters. More...
 
YY_BUFFER_STATE hdfeos_scan_buffer (char *base, yy_size_t size)
 Setup the input buffer state to scan directly from a user-specified character buffer. More...
 
YY_BUFFER_STATE hdfeos_scan_bytes (yyconst char *yybytes, yy_size_t _yybytes_len)
 Setup the input buffer state to scan the given bytes. More...
 
YY_BUFFER_STATE hdfeos_scan_string (yyconst char *yystr)
 Setup the input buffer state to scan a string. More...
 
void * hdfeos_string (const char *str)
 
void hdfeos_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 Switch to a different input buffer. More...
 
void hdfeos_switch_to_buffer (void *buf)
 
void * hdfeosalloc (yy_size_t)
 
void hdfeosfree (void *)
 
int hdfeosget_debug (void)
 
YY_EXTRA_TYPE hdfeosget_extra (void)
 
FILE * hdfeosget_in (void)
 Get the input stream. More...
 
yy_size_t hdfeosget_leng (void)
 Get the length of the current token. More...
 
int hdfeosget_lineno (void)
 Get the current line number. More...
 
FILE * hdfeosget_out (void)
 Get the output stream. More...
 
char * hdfeosget_text (void)
 Get the current token. More...
 
int hdfeoslex_destroy (void)
 
void hdfeospop_buffer_state (void)
 Removes and deletes the top of the stack, if present. More...
 
void hdfeospush_buffer_state (YY_BUFFER_STATE new_buffer)
 Pushes the new state onto the stack. More...
 
void * hdfeosrealloc (void *, yy_size_t)
 
void hdfeosrestart (FILE *input_file)
 Immediately switch to a different input stream. More...
 
void hdfeosset_debug (int debug_flag)
 
void hdfeosset_extra (YY_EXTRA_TYPE user_defined)
 
void hdfeosset_in (FILE *in_str)
 Set the input stream. More...
 
void hdfeosset_lineno (int line_number)
 Set the current line number. More...
 
void hdfeosset_out (FILE *out_str)
 
 if (!(yy_init))
 
int isatty (int)
 
 while (1)
 

Variables

int hdfeos_flex_debug = 0
 
int hdfeos_line_num = 1
 
FILE * hdfeosin = (FILE *) 0
 
yy_size_t hdfeosleng
 
int hdfeoslineno = 1
 
FILE * hdfeosout = (FILE *) 0
 
char * hdfeostext
 
register int yy_act
 
register char * yy_bp
 
register char * yy_cp
 
YY_DECL register yy_state_type yy_current_state
 The main scanner function which does all the work. More...
 

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 145 of file lex.hdfeos.cc.

Referenced by while().

#define comment   2
#define ECHO   fwrite( hdfeostext, hdfeosleng, 1, hdfeosout )

Definition at line 691 of file lex.hdfeos.cc.

Referenced by while().

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 185 of file lex.hdfeos.cc.

Referenced by while().

#define EOB_ACT_END_OF_FILE   1

Definition at line 186 of file lex.hdfeos.cc.

Referenced by while().

#define EOB_ACT_LAST_MATCH   2

Definition at line 187 of file lex.hdfeos.cc.

Referenced by while().

#define FLEX_BETA

Definition at line 33 of file lex.hdfeos.cc.

#define FLEX_SCANNER

Definition at line 28 of file lex.hdfeos.cc.

#define FLEXINT_H

Definition at line 49 of file lex.hdfeos.cc.

#define hdfeoswrap (   n)    1

Definition at line 355 of file lex.hdfeos.cc.

Referenced by while().

#define INITIAL   0

Definition at line 604 of file lex.hdfeos.cc.

Referenced by while().

#define INT16_MAX   (32767)

Definition at line 93 of file lex.hdfeos.cc.

#define INT16_MIN   (-32767-1)

Definition at line 84 of file lex.hdfeos.cc.

#define INT32_MAX   (2147483647)

Definition at line 96 of file lex.hdfeos.cc.

#define INT32_MIN   (-2147483647-1)

Definition at line 87 of file lex.hdfeos.cc.

#define INT8_MAX   (127)

Definition at line 90 of file lex.hdfeos.cc.

#define INT8_MIN   (-128)

Definition at line 81 of file lex.hdfeos.cc.

#define quote   1

Definition at line 605 of file lex.hdfeos.cc.

Referenced by while().

#define REJECT   reject_used_but_not_detected

Definition at line 525 of file lex.hdfeos.cc.

#define UINT16_MAX   (65535U)

Definition at line 102 of file lex.hdfeos.cc.

#define UINT32_MAX   (4294967295U)

Definition at line 105 of file lex.hdfeos.cc.

#define UINT8_MAX   (255U)

Definition at line 99 of file lex.hdfeos.cc.

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 205 of file lex.hdfeos.cc.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 351 of file lex.hdfeos.cc.

#define YY_BREAK   break;

Definition at line 770 of file lex.hdfeos.cc.

Referenced by while().

#define YY_BUF_SIZE   16384

Definition at line 164 of file lex.hdfeos.cc.

Referenced by hdfeosrestart(), and if().

#define YY_BUFFER_EOF_PENDING   2

Definition at line 267 of file lex.hdfeos.cc.

#define YY_BUFFER_NEW   0

Definition at line 255 of file lex.hdfeos.cc.

Referenced by hdfeos_flush_buffer(), hdfeos_scan_buffer(), and while().

#define YY_BUFFER_NORMAL   1

Definition at line 256 of file lex.hdfeos.cc.

Referenced by while().

#define yy_create_buffer   hdfeos_create_buffer

Definition at line 9 of file lex.hdfeos.cc.

#define YY_CURRENT_BUFFER
Value:
( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
#define NULL
Definition: wcsUtil.h:65

Definition at line 283 of file lex.hdfeos.cc.

Referenced by hdfeos_delete_buffer(), hdfeos_flush_buffer(), hdfeos_switch_to_buffer(), hdfeoslex_destroy(), hdfeospop_buffer_state(), hdfeospush_buffer_state(), hdfeosrestart(), and if().

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
#define YY_DECL   int hdfeoslex YY_PROTO(( void ))

Definition at line 593 of file lex.hdfeos.cc.

#define yy_delete_buffer   hdfeos_delete_buffer

Definition at line 10 of file lex.hdfeos.cc.

#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) -= (yy_more_len); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
size_t yy_size_t
Definition: lex.hdfeos.cc:178
register char * yy_cp
Definition: lex.hdfeos.cc:781
#define yytext_ptr
Definition: lex.hdfeos.cc:369
yy_size_t hdfeosleng
Definition: lex.hdfeos.cc:295
register char * yy_bp
Definition: lex.hdfeos.cc:781

Definition at line 379 of file lex.hdfeos.cc.

Referenced by while().

#define YY_END_OF_BUFFER   30

Definition at line 388 of file lex.hdfeos.cc.

Referenced by while().

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 160 of file lex.hdfeos.cc.

Referenced by hdfeos_flush_buffer(), hdfeos_scan_buffer(), and hdfeos_scan_bytes().

#define YY_EXIT_FAILURE   2

Definition at line 1822 of file lex.hdfeos.cc.

#define YY_EXTRA_TYPE   void *

Definition at line 617 of file lex.hdfeos.cc.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 745 of file lex.hdfeos.cc.

Referenced by hdfeos_create_buffer(), hdfeos_scan_buffer(), hdfeos_scan_bytes(), and while().

#define yy_flex_debug   hdfeos_flex_debug

Definition at line 11 of file lex.hdfeos.cc.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 29 of file lex.hdfeos.cc.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 30 of file lex.hdfeos.cc.

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 31 of file lex.hdfeos.cc.

#define yy_flush_buffer   hdfeos_flush_buffer

Definition at line 13 of file lex.hdfeos.cc.

#define YY_FLUSH_BUFFER   hdfeos_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 319 of file lex.hdfeos.cc.

#define yy_init_buffer   hdfeos_init_buffer

Definition at line 12 of file lex.hdfeos.cc.

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
for ( n = 0; n < max_size && \
(c = getc( hdfeosin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( hdfeosin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = fread(buf, 1, max_size, hdfeosin))==0 && ferror(hdfeosin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(hdfeosin); \
} \
}\
\
size_t yy_size_t
Definition: lex.hdfeos.cc:178
FILE * hdfeosin
Definition: lex.hdfeos.cc:360
if(!(yy_init))
Definition: lex.hdfeos.cc:789
while(1)
Definition: lex.hdfeos.cc:815
#define YY_FATAL_ERROR(msg)
Definition: lex.hdfeos.cc:745
#define YY_CURRENT_BUFFER_LVALUE
Definition: lex.hdfeos.cc:290

Definition at line 698 of file lex.hdfeos.cc.

#define YY_INT_ALIGNED   short int

Definition at line 5 of file lex.hdfeos.cc.

#define YY_LESS_LINENO (   n)

Definition at line 189 of file lex.hdfeos.cc.

#define yy_load_buffer_state   hdfeos_load_buffer_state

Definition at line 14 of file lex.hdfeos.cc.

#define YY_MORE_ADJ   (yy_more_len)

Definition at line 529 of file lex.hdfeos.cc.

Referenced by while().

#define yy_new_buffer   hdfeos_create_buffer

Definition at line 329 of file lex.hdfeos.cc.

#define YY_NEW_FILE   hdfeosrestart(hdfeosin )

Definition at line 158 of file lex.hdfeos.cc.

Referenced by while().

#define YY_NULL   0

Definition at line 132 of file lex.hdfeos.cc.

#define YY_NUM_RULES   29

Definition at line 387 of file lex.hdfeos.cc.

#define YY_PROTO (   proto)    proto

Definition at line 589 of file lex.hdfeos.cc.

#define YY_READ_BUF_SIZE   8192

Definition at line 683 of file lex.hdfeos.cc.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 530 of file lex.hdfeos.cc.

Referenced by while().

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 773 of file lex.hdfeos.cc.

Referenced by while().

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 139 of file lex.hdfeos.cc.

Referenced by while().

#define yy_set_bol (   at_bol)
Value:
{ \
hdfeosensure_buffer_stack (); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
YY_BUFFER_STATE hdfeos_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
Definition: lex.hdfeos.cc:1536
#define YY_BUF_SIZE
Definition: lex.hdfeos.cc:164
FILE * hdfeosin
Definition: lex.hdfeos.cc:360
if(!(yy_init))
Definition: lex.hdfeos.cc:789
#define YY_CURRENT_BUFFER
Definition: lex.hdfeos.cc:283
#define YY_CURRENT_BUFFER_LVALUE
Definition: lex.hdfeos.cc:290

Definition at line 341 of file lex.hdfeos.cc.

#define yy_set_interactive (   is_interactive)
Value:
{ \
hdfeosensure_buffer_stack (); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
YY_BUFFER_STATE hdfeos_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
Definition: lex.hdfeos.cc:1536
#define YY_BUF_SIZE
Definition: lex.hdfeos.cc:164
FILE * hdfeosin
Definition: lex.hdfeos.cc:360
if(!(yy_init))
Definition: lex.hdfeos.cc:789
#define YY_CURRENT_BUFFER
Definition: lex.hdfeos.cc:283
#define YY_CURRENT_BUFFER_LVALUE
Definition: lex.hdfeos.cc:290

Definition at line 331 of file lex.hdfeos.cc.

#define YY_SKIP_YYWRAP

Definition at line 356 of file lex.hdfeos.cc.

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 151 of file lex.hdfeos.cc.

Referenced by while().

#define YY_START_STACK_INCR   25

Definition at line 740 of file lex.hdfeos.cc.

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 169 of file lex.hdfeos.cc.

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 155 of file lex.hdfeos.cc.

Referenced by while().

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 208 of file lex.hdfeos.cc.

#define yy_switch_to_buffer   hdfeos_switch_to_buffer

Definition at line 15 of file lex.hdfeos.cc.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 172 of file lex.hdfeos.cc.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 177 of file lex.hdfeos.cc.

#define YY_USER_ACTION

Definition at line 765 of file lex.hdfeos.cc.

#define yyalloc   hdfeosalloc

Definition at line 24 of file lex.hdfeos.cc.

#define yyconst

Definition at line 128 of file lex.hdfeos.cc.

#define yyfree   hdfeosfree

Definition at line 26 of file lex.hdfeos.cc.

#define yyin   hdfeosin

Definition at line 16 of file lex.hdfeos.cc.

#define yyleng   hdfeosleng

Definition at line 17 of file lex.hdfeos.cc.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up hdfeostext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = (yy_hold_char); \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up hdfeostext again */ \
} \
while ( 0 )
register char * yy_cp
Definition: lex.hdfeos.cc:781
#define YY_MORE_ADJ
Definition: lex.hdfeos.cc:529
while(1)
Definition: lex.hdfeos.cc:815
#define YY_DO_BEFORE_ACTION
Definition: lex.hdfeos.cc:379
#define YY_RESTORE_YY_MORE_OFFSET
Definition: lex.hdfeos.cc:530
#define YY_LESS_LINENO(n)
Definition: lex.hdfeos.cc:189
register char * yy_bp
Definition: lex.hdfeos.cc:781

Definition at line 1834 of file lex.hdfeos.cc.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up hdfeostext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
hdfeostext[hdfeosleng] = (yy_hold_char); \
(yy_c_buf_p) = hdfeostext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
hdfeosleng = yyless_macro_arg; \
} \
while ( 0 )
char * hdfeostext
Definition: lex.hdfeos.cc:531
while(1)
Definition: lex.hdfeos.cc:815
yy_size_t hdfeosleng
Definition: lex.hdfeos.cc:295
#define YY_LESS_LINENO(n)
Definition: lex.hdfeos.cc:189

Definition at line 1834 of file lex.hdfeos.cc.

#define yylex   hdfeoslex

Definition at line 18 of file lex.hdfeos.cc.

#define yylineno   hdfeoslineno

Definition at line 19 of file lex.hdfeos.cc.

#define yymore ( )    ((yy_more_flag) = 1)

Definition at line 528 of file lex.hdfeos.cc.

Referenced by while().

#define yyout   hdfeosout

Definition at line 20 of file lex.hdfeos.cc.

#define yyrealloc   hdfeosrealloc

Definition at line 25 of file lex.hdfeos.cc.

#define yyrestart   hdfeosrestart

Definition at line 21 of file lex.hdfeos.cc.

#define YYSTATE   YY_START

Definition at line 152 of file lex.hdfeos.cc.

#define YYSTYPE   char *

Definition at line 592 of file lex.hdfeos.cc.

#define YYTABLES_NAME   "yytables"

Definition at line 2024 of file lex.hdfeos.cc.

#define yyterminate ( )    return YY_NULL

Definition at line 735 of file lex.hdfeos.cc.

Referenced by while().

#define yytext   hdfeostext

Definition at line 22 of file lex.hdfeos.cc.

#define yytext_ptr   hdfeostext

Definition at line 369 of file lex.hdfeos.cc.

Referenced by while().

#define yywrap   hdfeoswrap

Definition at line 23 of file lex.hdfeos.cc.

Typedef Documentation

typedef short int flex_int16_t

Definition at line 72 of file lex.hdfeos.cc.

typedef int flex_int32_t

Definition at line 73 of file lex.hdfeos.cc.

typedef signed char flex_int8_t

Definition at line 71 of file lex.hdfeos.cc.

typedef unsigned short int flex_uint16_t

Definition at line 75 of file lex.hdfeos.cc.

typedef unsigned int flex_uint32_t

Definition at line 76 of file lex.hdfeos.cc.

typedef unsigned char flex_uint8_t

Definition at line 74 of file lex.hdfeos.cc.

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 173 of file lex.hdfeos.cc.

typedef unsigned char YY_CHAR

Definition at line 358 of file lex.hdfeos.cc.

typedef size_t yy_size_t

Definition at line 178 of file lex.hdfeos.cc.

typedef int yy_state_type

Definition at line 362 of file lex.hdfeos.cc.

Function Documentation

YY_BUFFER_STATE hdfeos_create_buffer ( FILE *  file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 1536 of file lex.hdfeos.cc.

References hdfeosalloc(), and YY_FATAL_ERROR.

Referenced by hdfeosrestart(), and if().

Here is the call graph for this function:

void hdfeos_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with hdfeos_create_buffer()

Definition at line 1564 of file lex.hdfeos.cc.

References hdfeosfree(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by hdfeos_delete_buffer(), hdfeoslex_destroy(), and hdfeospop_buffer_state().

Here is the call graph for this function:

void hdfeos_delete_buffer ( void *  buf)

Definition at line 2045 of file lex.hdfeos.cc.

References hdfeos_delete_buffer().

Referenced by AddHDFAttr(), read_das_hdfsp(), and read_das_special_eos2_core().

Here is the call graph for this function:

void hdfeos_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1615 of file lex.hdfeos.cc.

References YY_BUFFER_NEW, YY_CURRENT_BUFFER, and YY_END_OF_BUFFER_CHAR.

YY_BUFFER_STATE hdfeos_scan_buffer ( char *  base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 1742 of file lex.hdfeos.cc.

References hdfeos_switch_to_buffer(), hdfeosalloc(), YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, and YY_FATAL_ERROR.

Referenced by hdfeos_scan_bytes().

Here is the call graph for this function:

YY_BUFFER_STATE hdfeos_scan_bytes ( yyconst char *  yybytes,
yy_size_t  _yybytes_len 
)

Setup the input buffer state to scan the given bytes.

The next call to hdfeoslex() will scan from a copy of bytes.

Parameters
bytesthe byte buffer to scan
lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 1792 of file lex.hdfeos.cc.

References hdfeos_scan_buffer(), hdfeosalloc(), YY_END_OF_BUFFER_CHAR, and YY_FATAL_ERROR.

Referenced by hdfeos_scan_string().

Here is the call graph for this function:

YY_BUFFER_STATE hdfeos_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string.

The next call to hdfeoslex() will scan from a copy of str.

Parameters
yystra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use hdfeos_scan_bytes() instead.

Definition at line 1779 of file lex.hdfeos.cc.

References hdfeos_scan_bytes().

Referenced by hdfeos_string().

Here is the call graph for this function:

void* hdfeos_string ( const char *  str)

Definition at line 2033 of file lex.hdfeos.cc.

References hdfeos_scan_string().

Referenced by AddHDFAttr(), read_das_hdfsp(), and read_das_special_eos2_core().

Here is the call graph for this function:

void hdfeos_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1491 of file lex.hdfeos.cc.

References YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by hdfeos_scan_buffer(), and hdfeos_switch_to_buffer().

void hdfeos_switch_to_buffer ( void *  buf)

Definition at line 2039 of file lex.hdfeos.cc.

References hdfeos_switch_to_buffer().

Here is the call graph for this function:

void * hdfeosalloc ( yy_size_t  size)

Definition at line 2002 of file lex.hdfeos.cc.

References malloc().

Referenced by hdfeos_create_buffer(), hdfeos_scan_buffer(), and hdfeos_scan_bytes().

Here is the call graph for this function:

void hdfeosfree ( void *  ptr)

Definition at line 2019 of file lex.hdfeos.cc.

References free().

Referenced by hdfeos_delete_buffer(), and hdfeoslex_destroy().

Here is the call graph for this function:

int hdfeosget_debug ( void  )

Definition at line 1918 of file lex.hdfeos.cc.

References hdfeos_flex_debug.

YY_EXTRA_TYPE hdfeosget_extra ( void  )
FILE * hdfeosget_in ( void  )

Get the input stream.

Definition at line 1862 of file lex.hdfeos.cc.

References hdfeosin.

yy_size_t hdfeosget_leng ( void  )

Get the length of the current token.

Definition at line 1878 of file lex.hdfeos.cc.

References hdfeosleng.

int hdfeosget_lineno ( void  )

Get the current line number.

Definition at line 1853 of file lex.hdfeos.cc.

References hdfeoslineno.

FILE * hdfeosget_out ( void  )

Get the output stream.

Definition at line 1870 of file lex.hdfeos.cc.

References hdfeosout.

char * hdfeosget_text ( void  )

Get the current token.

Definition at line 1887 of file lex.hdfeos.cc.

References hdfeostext.

int hdfeoslex_destroy ( void  )

Definition at line 1957 of file lex.hdfeos.cc.

References hdfeos_delete_buffer(), hdfeosfree(), hdfeospop_buffer_state(), NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Here is the call graph for this function:

void hdfeospop_buffer_state ( void  )

Removes and deletes the top of the stack, if present.

The next element becomes the new top.

Definition at line 1674 of file lex.hdfeos.cc.

References hdfeos_delete_buffer(), NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by hdfeoslex_destroy().

Here is the call graph for this function:

void hdfeospush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack.

The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 1644 of file lex.hdfeos.cc.

References NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

void * hdfeosrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2007 of file lex.hdfeos.cc.

void hdfeosrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 1474 of file lex.hdfeos.cc.

References hdfeos_create_buffer(), hdfeosin, YY_BUF_SIZE, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Here is the call graph for this function:

void hdfeosset_debug ( int  debug_flag)

Definition at line 1923 of file lex.hdfeos.cc.

void hdfeosset_extra ( YY_EXTRA_TYPE  user_defined)
void hdfeosset_in ( FILE *  in_str)

Set the input stream.

This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
hdfeos_switch_to_buffer

Definition at line 1908 of file lex.hdfeos.cc.

References hdfeosin.

void hdfeosset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 1896 of file lex.hdfeos.cc.

void hdfeosset_out ( FILE *  out_str)

Definition at line 1913 of file lex.hdfeos.cc.

References hdfeosout.

if ( yy_init)

Definition at line 789 of file lex.hdfeos.cc.

References hdfeos_create_buffer(), hdfeosin, hdfeosout, YY_BUF_SIZE, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Here is the call graph for this function:

int isatty ( int  )

Variable Documentation

int hdfeos_flex_debug = 0

Definition at line 520 of file lex.hdfeos.cc.

Referenced by hdfeosget_debug().

int hdfeos_line_num = 1

Definition at line 597 of file lex.hdfeos.cc.

Referenced by while().

FILE * hdfeosin = (FILE *) 0

Definition at line 360 of file lex.hdfeos.cc.

Referenced by hdfeosget_in(), hdfeosrestart(), hdfeosset_in(), if(), and while().

yy_size_t hdfeosleng

Definition at line 295 of file lex.hdfeos.cc.

Referenced by hdfeosget_leng().

int hdfeoslineno = 1

Definition at line 366 of file lex.hdfeos.cc.

Referenced by hdfeosget_lineno().

FILE * hdfeosout = (FILE *) 0

Definition at line 360 of file lex.hdfeos.cc.

Referenced by hdfeosget_out(), hdfeosset_out(), and if().

char * hdfeostext

Definition at line 531 of file lex.hdfeos.cc.

Referenced by hdfeosget_text(), and while().

register int yy_act

Definition at line 782 of file lex.hdfeos.cc.

register char * yy_bp

Definition at line 781 of file lex.hdfeos.cc.

register char* yy_cp

Definition at line 781 of file lex.hdfeos.cc.

Referenced by while().

YY_DECL register yy_state_type yy_current_state

The main scanner function which does all the work.

Definition at line 780 of file lex.hdfeos.cc.

Referenced by while().