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

Go to the source code of this file.

Macros

#define BEGIN   (yy_start) = 1 + 2 *
 
#define comment   2
 
#define ECHO   if (fwrite( he5ddstext, he5ddsleng, 1, he5ddsout )) {}
 
#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 he5ddswrap(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   he5dds_create_buffer
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_DECL   int he5ddslex YY_PROTO(( void ))
 
#define yy_delete_buffer   he5dds_delete_buffer
 
#define YY_DO_BEFORE_ACTION
 
#define YY_END_OF_BUFFER   46
 
#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   he5dds_flex_debug
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define yy_flush_buffer   he5dds_flush_buffer
 
#define YY_FLUSH_BUFFER   he5dds_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_init_buffer   he5dds_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   he5dds_load_buffer_state
 
#define YY_MORE_ADJ   (yy_more_len)
 
#define yy_new_buffer   he5dds_create_buffer
 
#define YY_NEW_FILE   he5ddsrestart(he5ddsin )
 
#define YY_NULL   0
 
#define YY_NUM_RULES   45
 
#define YY_PROTO(proto)   proto
 
#define YY_READ_BUF_SIZE   16384
 
#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   he5dds_switch_to_buffer
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_USER_ACTION
 
#define yyalloc   he5ddsalloc
 
#define yyconst
 
#define yyfree   he5ddsfree
 
#define yyin   he5ddsin
 
#define yyleng   he5ddsleng
 
#define yyless(n)
 
#define yyless(n)
 
#define yylex   he5ddslex
 
#define yylineno   he5ddslineno
 
#define yymore()   ((yy_more_flag) = 1)
 
#define yyout   he5ddsout
 
#define yyrealloc   he5ddsrealloc
 
#define yyrestart   he5ddsrestart
 
#define YYSTATE   YY_START
 
#define YYSTYPE   char *
 
#define YYTABLES_NAME   "yytables"
 
#define yyterminate()   return YY_NULL
 
#define yytext   he5ddstext
 
#define yytext_ptr   he5ddstext
 
#define yywrap   he5ddswrap
 

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 he5dds_create_buffer (FILE *file, int size)
 Allocate and initialize an input buffer state. More...
 
void he5dds_delete_buffer (YY_BUFFER_STATE b)
 Destroy the buffer. More...
 
void he5dds_flush_buffer (YY_BUFFER_STATE b)
 Discard all buffered characters. More...
 
YY_BUFFER_STATE he5dds_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 he5dds_scan_bytes (yyconst char *yybytes, yy_size_t _yybytes_len)
 Setup the input buffer state to scan the given bytes. More...
 
YY_BUFFER_STATE he5dds_scan_string (yyconst char *yystr)
 Setup the input buffer state to scan a string. More...
 
void he5dds_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 Switch to a different input buffer. More...
 
void * he5ddsalloc (yy_size_t)
 
void he5ddsfree (void *)
 
int he5ddsget_debug (void)
 
YY_EXTRA_TYPE he5ddsget_extra (void)
 
FILE * he5ddsget_in (void)
 Get the input stream. More...
 
yy_size_t he5ddsget_leng (void)
 Get the length of the current token. More...
 
int he5ddsget_lineno (void)
 Get the current line number. More...
 
FILE * he5ddsget_out (void)
 Get the output stream. More...
 
char * he5ddsget_text (void)
 Get the current token. More...
 
int he5ddslex_destroy (void)
 
void he5ddspop_buffer_state (void)
 Removes and deletes the top of the stack, if present. More...
 
void he5ddspush_buffer_state (YY_BUFFER_STATE new_buffer)
 Pushes the new state onto the stack. More...
 
void * he5ddsrealloc (void *, yy_size_t)
 
void he5ddsrestart (FILE *input_file)
 Immediately switch to a different input stream. More...
 
void he5ddsset_debug (int debug_flag)
 
void he5ddsset_extra (YY_EXTRA_TYPE user_defined)
 
void he5ddsset_in (FILE *in_str)
 Set the input stream. More...
 
void he5ddsset_lineno (int line_number)
 Set the current line number. More...
 
void he5ddsset_out (FILE *out_str)
 
 if (!(yy_init))
 
int isatty (int)
 
 while (1)
 

Variables

int he5dds_flex_debug = 0
 
FILE * he5ddsin = (FILE *) 0
 
yy_size_t he5ddsleng
 
int he5ddslineno = 1
 
FILE * he5ddsout = (FILE *) 0
 
char * he5ddstext
 
register int yy_act
 
register char * yy_bp
 
register char * yy_cp
 
 YY_DECL
 The main scanner function which does all the work. More...
 
int yy_line_num = 1
 

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *

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

Referenced by while().

#define comment   2

Definition at line 722 of file lex.he5dds.cc.

Referenced by while().

#define ECHO   if (fwrite( he5ddstext, he5ddsleng, 1, he5ddsout )) {}

Definition at line 709 of file lex.he5dds.cc.

Referenced by while().

#define EOB_ACT_CONTINUE_SCAN   0

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

Referenced by while().

#define EOB_ACT_END_OF_FILE   1

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

Referenced by while().

#define EOB_ACT_LAST_MATCH   2

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

Referenced by while().

#define FLEX_BETA

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

#define FLEX_SCANNER

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

#define FLEXINT_H

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

#define he5ddswrap (   n)    1

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

Referenced by while().

#define INITIAL   0

Definition at line 720 of file lex.he5dds.cc.

Referenced by while().

#define INT16_MAX   (32767)

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

#define INT16_MIN   (-32767-1)

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

#define INT32_MAX   (2147483647)

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

#define INT32_MIN   (-2147483647-1)

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

#define INT8_MAX   (127)

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

#define INT8_MIN   (-128)

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

#define quote   1

Definition at line 721 of file lex.he5dds.cc.

Referenced by while().

#define REJECT   reject_used_but_not_detected

Definition at line 689 of file lex.he5dds.cc.

#define UINT16_MAX   (65535U)

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

#define UINT32_MAX   (4294967295U)

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

#define UINT8_MAX   (255U)

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

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

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

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

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

#define YY_BREAK   break;

Definition at line 888 of file lex.he5dds.cc.

Referenced by while().

#define YY_BUF_SIZE   16384

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

Referenced by he5ddsrestart(), and if().

#define YY_BUFFER_EOF_PENDING   2

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

#define YY_BUFFER_NEW   0

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

Referenced by he5dds_flush_buffer(), he5dds_scan_buffer(), and while().

#define YY_BUFFER_NORMAL   1

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

Referenced by while().

#define yy_create_buffer   he5dds_create_buffer

Definition at line 9 of file lex.he5dds.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.he5dds.cc.

Referenced by he5dds_delete_buffer(), he5dds_flush_buffer(), he5dds_switch_to_buffer(), he5ddslex_destroy(), he5ddspop_buffer_state(), he5ddspush_buffer_state(), he5ddsrestart(), and if().

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

Definition at line 707 of file lex.he5dds.cc.

#define yy_delete_buffer   he5dds_delete_buffer

Definition at line 10 of file lex.he5dds.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.he5dds.cc:178
#define yytext_ptr
Definition: lex.he5dds.cc:369
register char * yy_bp
Definition: lex.he5dds.cc:899
register char * yy_cp
Definition: lex.he5dds.cc:899
yy_size_t he5ddsleng
Definition: lex.he5dds.cc:295

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

Referenced by while().

#define YY_END_OF_BUFFER   46

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

Referenced by while().

#define YY_END_OF_BUFFER_CHAR   0

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

Referenced by he5dds_flush_buffer(), he5dds_scan_buffer(), and he5dds_scan_bytes().

#define YY_EXIT_FAILURE   2

Definition at line 2052 of file lex.he5dds.cc.

#define YY_EXTRA_TYPE   void *

Definition at line 733 of file lex.he5dds.cc.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 863 of file lex.he5dds.cc.

Referenced by he5dds_create_buffer(), he5dds_scan_buffer(), he5dds_scan_bytes(), and while().

#define yy_flex_debug   he5dds_flex_debug

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

#define YY_FLEX_MAJOR_VERSION   2

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

#define YY_FLEX_MINOR_VERSION   5

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

#define YY_FLEX_SUBMINOR_VERSION   35

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

#define yy_flush_buffer   he5dds_flush_buffer

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

#define YY_FLUSH_BUFFER   he5dds_flush_buffer(YY_CURRENT_BUFFER )

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

#define yy_init_buffer   he5dds_init_buffer

Definition at line 12 of file lex.he5dds.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( he5ddsin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( he5ddsin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = fread(buf, 1, max_size, he5ddsin))==0 && ferror(he5ddsin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(he5ddsin); \
} \
}\
\
size_t yy_size_t
Definition: lex.he5dds.cc:178
#define YY_FATAL_ERROR(msg)
Definition: lex.he5dds.cc:863
if(!(yy_init))
Definition: lex.he5dds.cc:907
FILE * he5ddsin
Definition: lex.he5dds.cc:360
#define YY_CURRENT_BUFFER_LVALUE
Definition: lex.he5dds.cc:290
while(1)
Definition: lex.he5dds.cc:933

Definition at line 816 of file lex.he5dds.cc.

#define YY_INT_ALIGNED   short int

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

#define YY_LESS_LINENO (   n)

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

#define yy_load_buffer_state   he5dds_load_buffer_state

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

#define YY_MORE_ADJ   (yy_more_len)

Definition at line 693 of file lex.he5dds.cc.

Referenced by while().

#define yy_new_buffer   he5dds_create_buffer

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

#define YY_NEW_FILE   he5ddsrestart(he5ddsin )

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

Referenced by while().

#define YY_NULL   0

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

#define YY_NUM_RULES   45

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

#define YY_PROTO (   proto)    proto

Definition at line 702 of file lex.he5dds.cc.

#define YY_READ_BUF_SIZE   16384

Definition at line 708 of file lex.he5dds.cc.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 694 of file lex.he5dds.cc.

Referenced by while().

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 891 of file lex.he5dds.cc.

Referenced by while().

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

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

Referenced by while().

#define yy_set_bol (   at_bol)
Value:
{ \
he5ddsensure_buffer_stack (); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_BUF_SIZE
Definition: lex.he5dds.cc:164
YY_BUFFER_STATE he5dds_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
Definition: lex.he5dds.cc:1766
if(!(yy_init))
Definition: lex.he5dds.cc:907
FILE * he5ddsin
Definition: lex.he5dds.cc:360
#define YY_CURRENT_BUFFER_LVALUE
Definition: lex.he5dds.cc:290
#define YY_CURRENT_BUFFER
Definition: lex.he5dds.cc:283

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

#define yy_set_interactive (   is_interactive)
Value:
{ \
he5ddsensure_buffer_stack (); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define YY_BUF_SIZE
Definition: lex.he5dds.cc:164
YY_BUFFER_STATE he5dds_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
Definition: lex.he5dds.cc:1766
if(!(yy_init))
Definition: lex.he5dds.cc:907
FILE * he5ddsin
Definition: lex.he5dds.cc:360
#define YY_CURRENT_BUFFER_LVALUE
Definition: lex.he5dds.cc:290
#define YY_CURRENT_BUFFER
Definition: lex.he5dds.cc:283

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

#define YY_SKIP_YYWRAP

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

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

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

Referenced by while().

#define YY_START_STACK_INCR   25

Definition at line 858 of file lex.he5dds.cc.

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

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

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

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

Referenced by while().

#define YY_STRUCT_YY_BUFFER_STATE

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

#define yy_switch_to_buffer   he5dds_switch_to_buffer

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

#define YY_TYPEDEF_YY_BUFFER_STATE

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

#define YY_TYPEDEF_YY_SIZE_T

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

#define YY_USER_ACTION

Definition at line 883 of file lex.he5dds.cc.

#define yyalloc   he5ddsalloc

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

#define yyconst

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

#define yyfree   he5ddsfree

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

#define yyin   he5ddsin

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

#define yyleng   he5ddsleng

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

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up he5ddstext. */ \
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 he5ddstext again */ \
} \
while ( 0 )
register char * yy_bp
Definition: lex.he5dds.cc:899
#define YY_MORE_ADJ
Definition: lex.he5dds.cc:693
#define YY_LESS_LINENO(n)
Definition: lex.he5dds.cc:189
register char * yy_cp
Definition: lex.he5dds.cc:899
#define YY_DO_BEFORE_ACTION
Definition: lex.he5dds.cc:379
#define YY_RESTORE_YY_MORE_OFFSET
Definition: lex.he5dds.cc:694
while(1)
Definition: lex.he5dds.cc:933

Definition at line 2064 of file lex.he5dds.cc.

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

Definition at line 2064 of file lex.he5dds.cc.

#define yylex   he5ddslex

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

#define yylineno   he5ddslineno

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

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

Definition at line 692 of file lex.he5dds.cc.

Referenced by while().

#define yyout   he5ddsout

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

#define yyrealloc   he5ddsrealloc

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

#define yyrestart   he5ddsrestart

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

#define YYSTATE   YY_START

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

#define YYSTYPE   char *

Definition at line 706 of file lex.he5dds.cc.

#define YYTABLES_NAME   "yytables"

Definition at line 2254 of file lex.he5dds.cc.

#define yyterminate ( )    return YY_NULL

Definition at line 853 of file lex.he5dds.cc.

Referenced by while().

#define yytext   he5ddstext

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

#define yytext_ptr   he5ddstext

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

Referenced by while().

#define yywrap   he5ddswrap

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

Typedef Documentation

typedef short int flex_int16_t

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

typedef int flex_int32_t

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

typedef signed char flex_int8_t

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

typedef unsigned short int flex_uint16_t

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

typedef unsigned int flex_uint32_t

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

typedef unsigned char flex_uint8_t

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

typedef struct yy_buffer_state* YY_BUFFER_STATE

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

typedef unsigned char YY_CHAR

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

typedef size_t yy_size_t

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

typedef int yy_state_type

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

Function Documentation

YY_BUFFER_STATE he5dds_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 1766 of file lex.he5dds.cc.

References he5ddsalloc(), and YY_FATAL_ERROR.

Referenced by he5ddsrestart(), and if().

Here is the call graph for this function:

void he5dds_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with he5dds_create_buffer()

Definition at line 1794 of file lex.he5dds.cc.

References he5ddsfree(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by he5ddslex_destroy(), and he5ddspop_buffer_state().

Here is the call graph for this function:

void he5dds_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 1845 of file lex.he5dds.cc.

References YY_BUFFER_NEW, YY_CURRENT_BUFFER, and YY_END_OF_BUFFER_CHAR.

YY_BUFFER_STATE he5dds_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 1972 of file lex.he5dds.cc.

References he5dds_switch_to_buffer(), he5ddsalloc(), YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, and YY_FATAL_ERROR.

Referenced by he5dds_scan_bytes().

Here is the call graph for this function:

YY_BUFFER_STATE he5dds_scan_bytes ( yyconst char *  yybytes,
yy_size_t  _yybytes_len 
)

Setup the input buffer state to scan the given bytes.

The next call to he5ddslex() 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 2022 of file lex.he5dds.cc.

References he5dds_scan_buffer(), he5ddsalloc(), YY_END_OF_BUFFER_CHAR, and YY_FATAL_ERROR.

Referenced by he5dds_scan_string().

Here is the call graph for this function:

YY_BUFFER_STATE he5dds_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string.

The next call to he5ddslex() 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 he5dds_scan_bytes() instead.

Definition at line 2009 of file lex.he5dds.cc.

References he5dds_scan_bytes().

Here is the call graph for this function:

void he5dds_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1721 of file lex.he5dds.cc.

References YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by he5dds_scan_buffer().

void * he5ddsalloc ( yy_size_t  size)

Definition at line 2232 of file lex.he5dds.cc.

References malloc().

Referenced by he5dds_create_buffer(), he5dds_scan_buffer(), and he5dds_scan_bytes().

Here is the call graph for this function:

void he5ddsfree ( void *  ptr)

Definition at line 2249 of file lex.he5dds.cc.

References free().

Referenced by he5dds_delete_buffer(), and he5ddslex_destroy().

Here is the call graph for this function:

int he5ddsget_debug ( void  )

Definition at line 2148 of file lex.he5dds.cc.

References he5dds_flex_debug.

YY_EXTRA_TYPE he5ddsget_extra ( void  )
FILE * he5ddsget_in ( void  )

Get the input stream.

Definition at line 2092 of file lex.he5dds.cc.

References he5ddsin.

yy_size_t he5ddsget_leng ( void  )

Get the length of the current token.

Definition at line 2108 of file lex.he5dds.cc.

References he5ddsleng.

int he5ddsget_lineno ( void  )

Get the current line number.

Definition at line 2083 of file lex.he5dds.cc.

References he5ddslineno.

FILE * he5ddsget_out ( void  )

Get the output stream.

Definition at line 2100 of file lex.he5dds.cc.

References he5ddsout.

char * he5ddsget_text ( void  )

Get the current token.

Definition at line 2117 of file lex.he5dds.cc.

References he5ddstext.

int he5ddslex_destroy ( void  )

Definition at line 2187 of file lex.he5dds.cc.

References he5dds_delete_buffer(), he5ddsfree(), he5ddspop_buffer_state(), NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by map_eos5_cfdas(), and map_eos5_cfdds().

Here is the call graph for this function:

void he5ddspop_buffer_state ( void  )

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

The next element becomes the new top.

Definition at line 1904 of file lex.he5dds.cc.

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

Referenced by he5ddslex_destroy().

Here is the call graph for this function:

void he5ddspush_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 1874 of file lex.he5dds.cc.

References NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

void * he5ddsrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2237 of file lex.he5dds.cc.

void he5ddsrestart ( 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 1704 of file lex.he5dds.cc.

References he5dds_create_buffer(), he5ddsin, YY_BUF_SIZE, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Here is the call graph for this function:

void he5ddsset_debug ( int  debug_flag)

Definition at line 2153 of file lex.he5dds.cc.

void he5ddsset_extra ( YY_EXTRA_TYPE  user_defined)
void he5ddsset_in ( FILE *  in_str)

Set the input stream.

This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
he5dds_switch_to_buffer

Definition at line 2138 of file lex.he5dds.cc.

References he5ddsin.

void he5ddsset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 2126 of file lex.he5dds.cc.

void he5ddsset_out ( FILE *  out_str)

Definition at line 2143 of file lex.he5dds.cc.

References he5ddsout.

if ( yy_init)

Definition at line 907 of file lex.he5dds.cc.

References he5dds_create_buffer(), he5ddsin, he5ddsout, 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 he5dds_flex_debug = 0

Definition at line 684 of file lex.he5dds.cc.

Referenced by he5ddsget_debug().

FILE * he5ddsin = (FILE *) 0

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

Referenced by he5ddsget_in(), he5ddsrestart(), he5ddsset_in(), if(), and while().

yy_size_t he5ddsleng

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

Referenced by he5ddsget_leng().

int he5ddslineno = 1

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

Referenced by he5ddsget_lineno().

FILE * he5ddsout = (FILE *) 0

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

Referenced by he5ddsget_out(), he5ddsset_out(), and if().

char * he5ddstext

Definition at line 695 of file lex.he5dds.cc.

Referenced by he5ddsget_text(), and while().

register int yy_act

Definition at line 900 of file lex.he5dds.cc.

register char * yy_bp

Definition at line 899 of file lex.he5dds.cc.

register char* yy_cp

Definition at line 899 of file lex.he5dds.cc.

Referenced by while().

YY_DECL
Initial value:
{
int yy_state_type
Definition: lex.gse.cc:362
YY_DECL register yy_state_type yy_current_state
The main scanner function which does all the work.
Definition: lex.gse.cc:743

The main scanner function which does all the work.

Definition at line 897 of file lex.he5dds.cc.

int yy_line_num = 1

Definition at line 713 of file lex.he5dds.cc.

Referenced by while().