FrontISTR  5.2.0
Large-scale structural analysis program with finit element method
hecmw_heclex.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "hecmw_heclex.h"
#include "hecmw_util.h"
#include <unistd.h>
Include dependency graph for hecmw_heclex.c:

Go to the source code of this file.

Data Structures

struct  yy_buffer_state
 
struct  yy_trans_info
 
union  YYSTYPE
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   HECMW_hec_create_buffer
 
#define yy_delete_buffer   HECMW_hec_delete_buffer
 
#define yy_flex_debug   HECMW_hec_flex_debug
 
#define yy_init_buffer   HECMW_hec_init_buffer
 
#define yy_flush_buffer   HECMW_hec_flush_buffer
 
#define yy_load_buffer_state   HECMW_hec_load_buffer_state
 
#define yy_switch_to_buffer   HECMW_hec_switch_to_buffer
 
#define yyin   HECMW_hecin
 
#define yyleng   HECMW_hecleng
 
#define yylex   HECMW_heclex
 
#define yylineno   HECMW_heclineno
 
#define yyout   HECMW_hecout
 
#define yyrestart   HECMW_hecrestart
 
#define yytext   HECMW_hectext
 
#define yywrap   HECMW_hecwrap
 
#define yyalloc   HECMW_hecalloc
 
#define yyrealloc   HECMW_hecrealloc
 
#define yyfree   HECMW_hecfree
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define FLEX_BETA
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767 - 1)
 
#define INT32_MIN   (-2147483647 - 1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define yyconst
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((unsigned int)(unsigned char)c)
 
#define BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start)-1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   HECMW_hecrestart(HECMW_hecin)
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define yyless(n)
 
#define unput(c)   yyunput(c, (yytext_ptr))
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER    ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL)
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   HECMW_hec_flush_buffer(YY_CURRENT_BUFFER)
 
#define yy_new_buffer   HECMW_hec_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define yytext_ptr   HECMW_hectext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   99
 
#define YY_END_OF_BUFFER   100
 
#define REJECT   reject_used_but_not_detected
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define INITIAL   0
 
#define HEADER   1
 
#define INCLUDE   2
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   fwrite(HECMW_hectext, HECMW_hecleng, 1, HECMW_hecout)
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error(msg)
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int HECMW_heclex(void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   break;
 
#define YY_RULE_SETUP
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

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

Functions

void HECMW_hecrestart (FILE *input_file)
 
void HECMW_hec_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE HECMW_hec_create_buffer (FILE *file, int size)
 
void HECMW_hec_delete_buffer (YY_BUFFER_STATE b)
 
void HECMW_hec_flush_buffer (YY_BUFFER_STATE b)
 
void HECMW_hecpush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void HECMW_hecpop_buffer_state (void)
 
YY_BUFFER_STATE HECMW_hec_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE HECMW_hec_scan_string (yyconst char *yy_str)
 
YY_BUFFER_STATE HECMW_hec_scan_bytes (yyconst char *bytes, yy_size_t len)
 
void * HECMW_hecalloc (yy_size_t)
 
void * HECMW_hecrealloc (void *, yy_size_t)
 
void HECMW_hecfree (void *)
 
int HECMW_heclex_destroy (void)
 
int HECMW_hecget_debug (void)
 
void HECMW_hecset_debug (int debug_flag)
 
YY_EXTRA_TYPE HECMW_hecget_extra (void)
 
void HECMW_hecset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * HECMW_hecget_in (void)
 
void HECMW_hecset_in (FILE *in_str)
 
FILE * HECMW_hecget_out (void)
 
void HECMW_hecset_out (FILE *out_str)
 
yy_size_t HECMW_hecget_leng (void)
 
char * HECMW_hecget_text (void)
 
int HECMW_hecget_lineno (void)
 
void HECMW_hecset_lineno (int line_number)
 
int HECMW_hecwrap (void)
 
int HECMW_heclex (void)
 
 if (!(yy_init))
 
 while (1)
 
int isatty (int)
 
int HECMW_heclex_get_lineno (void)
 
double HECMW_heclex_get_number (void)
 
char * HECMW_heclex_get_text (void)
 
int HECMW_heclex_is_including (void)
 
int HECMW_heclex_next_token (void)
 
int HECMW_heclex_next_token_skip (int skip_token)
 
int HECMW_heclex_set_input (FILE *fp)
 
int HECMW_heclex_skip_line (void)
 
int HECMW_heclex_switch_to_include (const char *filename)
 
int HECMW_heclex_unput_token (void)
 

Variables

yy_size_t HECMW_hecleng
 
FILE * HECMW_hecin = (FILE *)0
 
FILE * HECMW_hecout = (FILE *)0
 
int HECMW_heclineno = 1
 
char * HECMW_hectext
 
int HECMW_hec_flex_debug = 0
 
 YY_DECL
 
register char * yy_cp
 
register char * yy_bp
 
register int yy_act
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 144 of file hecmw_heclex.c.

◆ ECHO

#define ECHO   fwrite(HECMW_hectext, HECMW_hecleng, 1, HECMW_hecout)

Definition at line 884 of file hecmw_heclex.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 185 of file hecmw_heclex.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 186 of file hecmw_heclex.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 187 of file hecmw_heclex.c.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 32 of file hecmw_heclex.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 27 of file hecmw_heclex.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 48 of file hecmw_heclex.c.

◆ HEADER

#define HEADER   1

Definition at line 798 of file hecmw_heclex.c.

◆ INCLUDE

#define INCLUDE   2

Definition at line 799 of file hecmw_heclex.c.

◆ INITIAL

#define INITIAL   0

Definition at line 797 of file hecmw_heclex.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 92 of file hecmw_heclex.c.

◆ INT16_MIN

#define INT16_MIN   (-32767 - 1)

Definition at line 83 of file hecmw_heclex.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 95 of file hecmw_heclex.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647 - 1)

Definition at line 86 of file hecmw_heclex.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 89 of file hecmw_heclex.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 80 of file hecmw_heclex.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 767 of file hecmw_heclex.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 101 of file hecmw_heclex.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 104 of file hecmw_heclex.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 98 of file hecmw_heclex.c.

◆ unput

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

Definition at line 203 of file hecmw_heclex.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 346 of file hecmw_heclex.c.

◆ YY_BREAK

#define YY_BREAK   break;

Definition at line 958 of file hecmw_heclex.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 163 of file hecmw_heclex.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 264 of file hecmw_heclex.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 252 of file hecmw_heclex.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 253 of file hecmw_heclex.c.

◆ yy_create_buffer

#define yy_create_buffer   HECMW_hec_create_buffer

Definition at line 8 of file hecmw_heclex.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER    ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL)

Definition at line 279 of file hecmw_heclex.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 285 of file hecmw_heclex.c.

◆ YY_DECL

#define YY_DECL   int HECMW_heclex(void)

Definition at line 945 of file hecmw_heclex.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 941 of file hecmw_heclex.c.

◆ yy_delete_buffer

#define yy_delete_buffer   HECMW_hec_delete_buffer

Definition at line 9 of file hecmw_heclex.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
HECMW_hecleng = (yy_size_t)(yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
register char * yy_bp
Definition: hecmw_heclex.c:971
#define yytext_ptr
Definition: hecmw_heclex.c:361
register char * yy_cp
Definition: hecmw_heclex.c:971
size_t yy_size_t
Definition: hecmw_heclex.c:178

Definition at line 371 of file hecmw_heclex.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   100

Definition at line 379 of file hecmw_heclex.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 159 of file hecmw_heclex.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

Definition at line 2532 of file hecmw_heclex.c.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 810 of file hecmw_heclex.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error(msg)

Definition at line 932 of file hecmw_heclex.c.

◆ yy_flex_debug

#define yy_flex_debug   HECMW_hec_flex_debug

Definition at line 10 of file hecmw_heclex.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 28 of file hecmw_heclex.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   5

Definition at line 29 of file hecmw_heclex.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 30 of file hecmw_heclex.c.

◆ yy_flush_buffer

#define yy_flush_buffer   HECMW_hec_flush_buffer

Definition at line 12 of file hecmw_heclex.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   HECMW_hec_flush_buffer(YY_CURRENT_BUFFER)

Definition at line 314 of file hecmw_heclex.c.

◆ yy_init_buffer

#define yy_init_buffer   HECMW_hec_init_buffer

Definition at line 11 of file hecmw_heclex.c.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if (YY_CURRENT_BUFFER_LVALUE->yy_is_interactive) { \
int c = '*'; \
yy_size_t n; \
for (n = 0; n < max_size && (c = getc(HECMW_hecin)) != EOF && c != '\n'; \
++n) \
buf[n] = (char)c; \
if (c == '\n') buf[n++] = (char)c; \
if (c == EOF && ferror(HECMW_hecin)) \
YY_FATAL_ERROR("input in flex scanner failed"); \
result = n; \
} else { \
errno = 0; \
while ((result = fread(buf, 1, max_size, HECMW_hecin)) == 0 && \
ferror(HECMW_hecin)) { \
if (errno != EINTR) { \
YY_FATAL_ERROR("input in flex scanner failed"); \
break; \
} \
errno = 0; \
clearerr(HECMW_hecin); \
} \
}
FILE * HECMW_hecin
Definition: hecmw_heclex.c:352
#define YY_CURRENT_BUFFER_LVALUE
Definition: hecmw_heclex.c:285
#define YY_FATAL_ERROR(msg)
Definition: hecmw_heclex.c:932
if(!(yy_init))
Definition: hecmw_heclex.c:978

Definition at line 891 of file hecmw_heclex.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 4 of file hecmw_heclex.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 189 of file hecmw_heclex.c.

◆ yy_load_buffer_state

#define yy_load_buffer_state (   void)    HECMW_hec_load_buffer_state

Definition at line 13 of file hecmw_heclex.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 769 of file hecmw_heclex.c.

◆ yy_new_buffer

#define yy_new_buffer   HECMW_hec_create_buffer

Definition at line 324 of file hecmw_heclex.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   HECMW_hecrestart(HECMW_hecin)

Definition at line 157 of file hecmw_heclex.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 131 of file hecmw_heclex.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   99

Definition at line 378 of file hecmw_heclex.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 876 of file hecmw_heclex.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 770 of file hecmw_heclex.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP
Value:
if (HECMW_hecleng > 0) \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
(HECMW_hectext[HECMW_hecleng - 1] == '\n'); \
YY_USER_ACTION
yy_size_t HECMW_hecleng
Definition: hecmw_heclex.c:290
char * HECMW_hectext
Definition: hecmw_heclex.c:771

Definition at line 961 of file hecmw_heclex.c.

◆ YY_SC_TO_UI

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

Definition at line 138 of file hecmw_heclex.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
HECMW_hecensure_buffer_stack(); \
YY_CURRENT_BUFFER_LVALUE = \
HECMW_hec_create_buffer(HECMW_hecin, YY_BUF_SIZE); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER
Definition: hecmw_heclex.c:279
#define YY_BUF_SIZE
Definition: hecmw_heclex.c:163

Definition at line 336 of file hecmw_heclex.c.

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
HECMW_hecensure_buffer_stack(); \
YY_CURRENT_BUFFER_LVALUE = \
HECMW_hec_create_buffer(HECMW_hecin, YY_BUF_SIZE); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}

Definition at line 326 of file hecmw_heclex.c.

◆ YY_START

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

Definition at line 150 of file hecmw_heclex.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 927 of file hecmw_heclex.c.

◆ YY_STATE_BUF_SIZE

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

Definition at line 169 of file hecmw_heclex.c.

◆ YY_STATE_EOF

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

Definition at line 154 of file hecmw_heclex.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 206 of file hecmw_heclex.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   HECMW_hec_switch_to_buffer

Definition at line 14 of file hecmw_heclex.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 172 of file hecmw_heclex.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 177 of file hecmw_heclex.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 953 of file hecmw_heclex.c.

◆ yyalloc

#define yyalloc   HECMW_hecalloc

Definition at line 23 of file hecmw_heclex.c.

◆ yyconst

#define yyconst

Definition at line 127 of file hecmw_heclex.c.

◆ yyfree

#define yyfree   HECMW_hecfree

Definition at line 25 of file hecmw_heclex.c.

◆ yyin

#define yyin   HECMW_hecin

Definition at line 15 of file hecmw_heclex.c.

◆ yyleng

#define yyleng   HECMW_hecleng

Definition at line 16 of file hecmw_heclex.c.

◆ yyless [1/2]

#define yyless (   n)
Value:
do { \
/* Undo effects of setting up HECMW_hectext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg); \
*yy_cp = (yy_hold_char); \
YY_RESTORE_YY_MORE_OFFSET(yy_c_buf_p) = yy_cp = \
yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up HECMW_hectext again */ \
} while (0)
#define YY_MORE_ADJ
Definition: hecmw_heclex.c:769

Definition at line 2543 of file hecmw_heclex.c.

◆ yyless [2/2]

#define yyless (   n)
Value:
do { \
/* Undo effects of setting up HECMW_hectext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg); \
HECMW_hectext[HECMW_hecleng] = (yy_hold_char); \
(yy_c_buf_p) = HECMW_hectext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
HECMW_hecleng = yyless_macro_arg; \
} while (0)

Definition at line 2543 of file hecmw_heclex.c.

◆ yylex

#define yylex (   void)    HECMW_heclex

Definition at line 17 of file hecmw_heclex.c.

◆ yylineno

#define yylineno   HECMW_heclineno

Definition at line 18 of file hecmw_heclex.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 768 of file hecmw_heclex.c.

◆ yyout

#define yyout   HECMW_hecout

Definition at line 19 of file hecmw_heclex.c.

◆ yyrealloc

#define yyrealloc   HECMW_hecrealloc

Definition at line 24 of file hecmw_heclex.c.

◆ yyrestart

#define yyrestart   HECMW_hecrestart

Definition at line 20 of file hecmw_heclex.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 151 of file hecmw_heclex.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Definition at line 2689 of file hecmw_heclex.c.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 922 of file hecmw_heclex.c.

◆ yytext

#define yytext   HECMW_hectext

Definition at line 21 of file hecmw_heclex.c.

◆ yytext_ptr

#define yytext_ptr   HECMW_hectext

Definition at line 361 of file hecmw_heclex.c.

◆ yywrap

#define yywrap (   void)    HECMW_hecwrap

Definition at line 22 of file hecmw_heclex.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 71 of file hecmw_heclex.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 72 of file hecmw_heclex.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 70 of file hecmw_heclex.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 74 of file hecmw_heclex.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 75 of file hecmw_heclex.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 73 of file hecmw_heclex.c.

◆ YY_BUFFER_STATE

Definition at line 173 of file hecmw_heclex.c.

◆ YY_CHAR

typedef unsigned char YY_CHAR

Definition at line 350 of file hecmw_heclex.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 178 of file hecmw_heclex.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 354 of file hecmw_heclex.c.

Function Documentation

◆ HECMW_hec_create_buffer()

YY_BUFFER_STATE HECMW_hec_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 2271 of file hecmw_heclex.c.

Here is the call graph for this function:

◆ HECMW_hec_delete_buffer()

void HECMW_hec_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with HECMW_hec_create_buffer()

Definition at line 2297 of file hecmw_heclex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_hec_flush_buffer()

void HECMW_hec_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 2344 of file hecmw_heclex.c.

◆ HECMW_hec_scan_buffer()

YY_BUFFER_STATE HECMW_hec_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 2458 of file hecmw_heclex.c.

Here is the call graph for this function:

◆ HECMW_hec_scan_bytes()

YY_BUFFER_STATE HECMW_hec_scan_bytes ( yyconst char *  yybytes,
yy_size_t  _yybytes_len 
)

Setup the input buffer state to scan the given bytes. The next call to HECMW_heclex() 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 2505 of file hecmw_heclex.c.

Here is the caller graph for this function:

◆ HECMW_hec_scan_string()

YY_BUFFER_STATE HECMW_hec_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string. The next call to HECMW_heclex() 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 HECMW_hec_scan_bytes() instead.

Definition at line 2493 of file hecmw_heclex.c.

Here is the call graph for this function:

◆ HECMW_hec_switch_to_buffer()

void HECMW_hec_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 2230 of file hecmw_heclex.c.

Here is the caller graph for this function:

◆ HECMW_hecalloc()

void * HECMW_hecalloc ( yy_size_t  size)

Definition at line 2672 of file hecmw_heclex.c.

Here is the caller graph for this function:

◆ HECMW_hecfree()

void HECMW_hecfree ( void *  ptr)

Definition at line 2685 of file hecmw_heclex.c.

Here is the caller graph for this function:

◆ HECMW_hecget_debug()

int HECMW_hecget_debug ( void  )

Definition at line 2599 of file hecmw_heclex.c.

◆ HECMW_hecget_extra()

YY_EXTRA_TYPE HECMW_hecget_extra ( void  )

◆ HECMW_hecget_in()

FILE * HECMW_hecget_in ( void  )

Get the input stream.

Definition at line 2565 of file hecmw_heclex.c.

◆ HECMW_hecget_leng()

yy_size_t HECMW_hecget_leng ( void  )

Get the length of the current token.

Definition at line 2575 of file hecmw_heclex.c.

◆ HECMW_hecget_lineno()

int HECMW_hecget_lineno ( void  )

Get the current line number.

Definition at line 2560 of file hecmw_heclex.c.

◆ HECMW_hecget_out()

FILE * HECMW_hecget_out ( void  )

Get the output stream.

Definition at line 2570 of file hecmw_heclex.c.

◆ HECMW_hecget_text()

char * HECMW_hecget_text ( void  )

Get the current token.

Definition at line 2581 of file hecmw_heclex.c.

◆ HECMW_heclex()

int HECMW_heclex ( void  )
Here is the caller graph for this function:

◆ HECMW_heclex_destroy()

int HECMW_heclex_destroy ( void  )

Definition at line 2631 of file hecmw_heclex.c.

Here is the call graph for this function:

◆ HECMW_heclex_get_lineno()

int HECMW_heclex_get_lineno ( void  )

Definition at line 2695 of file hecmw_heclex.c.

◆ HECMW_heclex_get_number()

double HECMW_heclex_get_number ( void  )

Definition at line 2699 of file hecmw_heclex.c.

◆ HECMW_heclex_get_text()

char* HECMW_heclex_get_text ( void  )

Definition at line 2701 of file hecmw_heclex.c.

◆ HECMW_heclex_is_including()

int HECMW_heclex_is_including ( void  )

Definition at line 2703 of file hecmw_heclex.c.

◆ HECMW_heclex_next_token()

int HECMW_heclex_next_token ( void  )

Definition at line 2705 of file hecmw_heclex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_heclex_next_token_skip()

int HECMW_heclex_next_token_skip ( int  skip_token)

Definition at line 2707 of file hecmw_heclex.c.

Here is the call graph for this function:

◆ HECMW_heclex_set_input()

int HECMW_heclex_set_input ( FILE *  fp)

Definition at line 2715 of file hecmw_heclex.c.

Here is the call graph for this function:

◆ HECMW_heclex_skip_line()

int HECMW_heclex_skip_line ( void  )

Definition at line 2728 of file hecmw_heclex.c.

Here is the call graph for this function:

◆ HECMW_heclex_switch_to_include()

int HECMW_heclex_switch_to_include ( const char *  filename)

Definition at line 2736 of file hecmw_heclex.c.

◆ HECMW_heclex_unput_token()

int HECMW_heclex_unput_token ( void  )

Definition at line 2755 of file hecmw_heclex.c.

◆ HECMW_hecpop_buffer_state()

void HECMW_hecpop_buffer_state ( void  )

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Definition at line 2396 of file hecmw_heclex.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_hecpush_buffer_state()

void HECMW_hecpush_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 2370 of file hecmw_heclex.c.

◆ HECMW_hecrealloc()

void * HECMW_hecrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2674 of file hecmw_heclex.c.

◆ HECMW_hecrestart()

void HECMW_hecrestart ( 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 2215 of file hecmw_heclex.c.

Here is the caller graph for this function:

◆ HECMW_hecset_debug()

void HECMW_hecset_debug ( int  debug_flag)

Definition at line 2601 of file hecmw_heclex.c.

◆ HECMW_hecset_extra()

void HECMW_hecset_extra ( YY_EXTRA_TYPE  user_defined)

◆ HECMW_hecset_in()

void HECMW_hecset_in ( FILE *  in_str)

Set the input stream. This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
HECMW_hec_switch_to_buffer

Definition at line 2595 of file hecmw_heclex.c.

◆ HECMW_hecset_lineno()

void HECMW_hecset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 2587 of file hecmw_heclex.c.

◆ HECMW_hecset_out()

void HECMW_hecset_out ( FILE *  out_str)

Definition at line 2597 of file hecmw_heclex.c.

◆ HECMW_hecwrap()

int HECMW_hecwrap ( void  )

Definition at line 2771 of file hecmw_heclex.c.

◆ if()

if ( yy_init)

Definition at line 978 of file hecmw_heclex.c.

◆ isatty()

int isatty ( int  )

◆ while()

while ( )

Definition at line 1000 of file hecmw_heclex.c.

Variable Documentation

◆ HECMW_hec_flex_debug

int HECMW_hec_flex_debug = 0

Definition at line 762 of file hecmw_heclex.c.

◆ HECMW_hecin

FILE * HECMW_hecin = (FILE *)0

Definition at line 352 of file hecmw_heclex.c.

◆ HECMW_hecleng

yy_size_t HECMW_hecleng

Definition at line 290 of file hecmw_heclex.c.

◆ HECMW_heclineno

int HECMW_heclineno = 1

Definition at line 358 of file hecmw_heclex.c.

◆ HECMW_hecout

FILE * HECMW_hecout = (FILE *)0

Definition at line 183 of file hecmw_heclex.c.

◆ HECMW_hectext

char * HECMW_hectext

Definition at line 771 of file hecmw_heclex.c.

◆ yy_act

register int yy_act

Definition at line 972 of file hecmw_heclex.c.

◆ yy_bp

register char * yy_bp

Definition at line 971 of file hecmw_heclex.c.

◆ yy_cp

register char* yy_cp

Definition at line 971 of file hecmw_heclex.c.

◆ YY_DECL

YY_DECL
Initial value:
{
register yy_state_type yy_current_state
int yy_state_type
Definition: hecmw_ablex.c:353

The main scanner function which does all the work.

Definition at line 969 of file hecmw_heclex.c.