FrontISTR  5.2.0
Large-scale structural analysis program with finit element method
hecmw_ctrllex.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "hecmw_ctrllex.h"
#include "hecmw_util.h"
#include <unistd.h>
Include dependency graph for hecmw_ctrllex.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_ctrl_create_buffer
 
#define yy_delete_buffer   HECMW_ctrl_delete_buffer
 
#define yy_flex_debug   HECMW_ctrl_flex_debug
 
#define yy_init_buffer   HECMW_ctrl_init_buffer
 
#define yy_flush_buffer   HECMW_ctrl_flush_buffer
 
#define yy_load_buffer_state   HECMW_ctrl_load_buffer_state
 
#define yy_switch_to_buffer   HECMW_ctrl_switch_to_buffer
 
#define yyin   HECMW_ctrlin
 
#define yyleng   HECMW_ctrlleng
 
#define yylex   HECMW_ctrllex
 
#define yylineno   HECMW_ctrllineno
 
#define yyout   HECMW_ctrlout
 
#define yyrestart   HECMW_ctrlrestart
 
#define yytext   HECMW_ctrltext
 
#define yywrap   HECMW_ctrlwrap
 
#define yyalloc   HECMW_ctrlalloc
 
#define yyrealloc   HECMW_ctrlrealloc
 
#define yyfree   HECMW_ctrlfree
 
#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_ctrlrestart(HECMW_ctrlin)
 
#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_ctrl_flush_buffer(YY_CURRENT_BUFFER)
 
#define yy_new_buffer   HECMW_ctrl_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_ctrltext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   40
 
#define YY_END_OF_BUFFER   41
 
#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 YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   fwrite(HECMW_ctrltext, HECMW_ctrlleng, 1, HECMW_ctrlout)
 
#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_ctrllex(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_ctrlrestart (FILE *input_file)
 
void HECMW_ctrl_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE HECMW_ctrl_create_buffer (FILE *file, int size)
 
void HECMW_ctrl_delete_buffer (YY_BUFFER_STATE b)
 
void HECMW_ctrl_flush_buffer (YY_BUFFER_STATE b)
 
void HECMW_ctrlpush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void HECMW_ctrlpop_buffer_state (void)
 
YY_BUFFER_STATE HECMW_ctrl_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE HECMW_ctrl_scan_string (yyconst char *yy_str)
 
YY_BUFFER_STATE HECMW_ctrl_scan_bytes (yyconst char *bytes, yy_size_t len)
 
void * HECMW_ctrlalloc (yy_size_t)
 
void * HECMW_ctrlrealloc (void *, yy_size_t)
 
void HECMW_ctrlfree (void *)
 
int HECMW_ctrllex_destroy (void)
 
int HECMW_ctrlget_debug (void)
 
void HECMW_ctrlset_debug (int debug_flag)
 
YY_EXTRA_TYPE HECMW_ctrlget_extra (void)
 
void HECMW_ctrlset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * HECMW_ctrlget_in (void)
 
void HECMW_ctrlset_in (FILE *in_str)
 
FILE * HECMW_ctrlget_out (void)
 
void HECMW_ctrlset_out (FILE *out_str)
 
yy_size_t HECMW_ctrlget_leng (void)
 
char * HECMW_ctrlget_text (void)
 
int HECMW_ctrlget_lineno (void)
 
void HECMW_ctrlset_lineno (int line_number)
 
int HECMW_ctrlwrap (void)
 
int HECMW_ctrllex (void)
 
 if (!(yy_init))
 
 while (1)
 
int isatty (int)
 
int HECMW_ctrllex_get_lineno (void)
 
double HECMW_ctrllex_get_number (void)
 
char * HECMW_ctrllex_get_text (void)
 
int HECMW_ctrllex_next_token (void)
 
int HECMW_ctrllex_next_token_skip (int skip_token)
 
int HECMW_ctrllex_set_input (FILE *fp)
 
int HECMW_ctrllex_skip_line (void)
 
int HECMW_ctrllex_unput_token (void)
 

Variables

yy_size_t HECMW_ctrlleng
 
FILE * HECMW_ctrlin = (FILE *)0
 
FILE * HECMW_ctrlout = (FILE *)0
 
int HECMW_ctrllineno = 1
 
char * HECMW_ctrltext
 
int HECMW_ctrl_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 143 of file hecmw_ctrllex.c.

◆ ECHO

#define ECHO   fwrite(HECMW_ctrltext, HECMW_ctrlleng, 1, HECMW_ctrlout)

Definition at line 660 of file hecmw_ctrllex.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 184 of file hecmw_ctrllex.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 185 of file hecmw_ctrllex.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 186 of file hecmw_ctrllex.c.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 31 of file hecmw_ctrllex.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 26 of file hecmw_ctrllex.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 47 of file hecmw_ctrllex.c.

◆ INITIAL

#define INITIAL   0

Definition at line 575 of file hecmw_ctrllex.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 91 of file hecmw_ctrllex.c.

◆ INT16_MIN

#define INT16_MIN   (-32767 - 1)

Definition at line 82 of file hecmw_ctrllex.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 94 of file hecmw_ctrllex.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647 - 1)

Definition at line 85 of file hecmw_ctrllex.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 88 of file hecmw_ctrllex.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 79 of file hecmw_ctrllex.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 551 of file hecmw_ctrllex.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 100 of file hecmw_ctrllex.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 103 of file hecmw_ctrllex.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 97 of file hecmw_ctrllex.c.

◆ unput

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

Definition at line 202 of file hecmw_ctrllex.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 345 of file hecmw_ctrllex.c.

◆ YY_BREAK

#define YY_BREAK   break;

Definition at line 734 of file hecmw_ctrllex.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 162 of file hecmw_ctrllex.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 263 of file hecmw_ctrllex.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 251 of file hecmw_ctrllex.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 252 of file hecmw_ctrllex.c.

◆ yy_create_buffer

#define yy_create_buffer   HECMW_ctrl_create_buffer

Definition at line 7 of file hecmw_ctrllex.c.

◆ YY_CURRENT_BUFFER

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

Definition at line 278 of file hecmw_ctrllex.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 284 of file hecmw_ctrllex.c.

◆ YY_DECL

#define YY_DECL   int HECMW_ctrllex(void)

Definition at line 721 of file hecmw_ctrllex.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 717 of file hecmw_ctrllex.c.

◆ yy_delete_buffer

#define yy_delete_buffer   HECMW_ctrl_delete_buffer

Definition at line 8 of file hecmw_ctrllex.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
HECMW_ctrlleng = (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
#define yytext_ptr
register char * yy_cp
size_t yy_size_t

Definition at line 370 of file hecmw_ctrllex.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   41

Definition at line 378 of file hecmw_ctrllex.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 158 of file hecmw_ctrllex.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

Definition at line 1854 of file hecmw_ctrllex.c.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 586 of file hecmw_ctrllex.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error(msg)

Definition at line 708 of file hecmw_ctrllex.c.

◆ yy_flex_debug

#define yy_flex_debug   HECMW_ctrl_flex_debug

Definition at line 9 of file hecmw_ctrllex.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 27 of file hecmw_ctrllex.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   5

Definition at line 28 of file hecmw_ctrllex.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 29 of file hecmw_ctrllex.c.

◆ yy_flush_buffer

#define yy_flush_buffer   HECMW_ctrl_flush_buffer

Definition at line 11 of file hecmw_ctrllex.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   HECMW_ctrl_flush_buffer(YY_CURRENT_BUFFER)

Definition at line 313 of file hecmw_ctrllex.c.

◆ yy_init_buffer

#define yy_init_buffer   HECMW_ctrl_init_buffer

Definition at line 10 of file hecmw_ctrllex.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_ctrlin)) != EOF && c != '\n'; \
++n) \
buf[n] = (char)c; \
if (c == '\n') buf[n++] = (char)c; \
if (c == EOF && ferror(HECMW_ctrlin)) \
YY_FATAL_ERROR("input in flex scanner failed"); \
result = n; \
} else { \
errno = 0; \
while ((result = fread(buf, 1, max_size, HECMW_ctrlin)) == 0 && \
ferror(HECMW_ctrlin)) { \
if (errno != EINTR) { \
YY_FATAL_ERROR("input in flex scanner failed"); \
break; \
} \
errno = 0; \
clearerr(HECMW_ctrlin); \
} \
}
FILE * HECMW_ctrlin
#define YY_CURRENT_BUFFER_LVALUE
#define YY_FATAL_ERROR(msg)
if(!(yy_init))

Definition at line 667 of file hecmw_ctrllex.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 3 of file hecmw_ctrllex.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 188 of file hecmw_ctrllex.c.

◆ yy_load_buffer_state

#define yy_load_buffer_state (   void)    HECMW_ctrl_load_buffer_state

Definition at line 12 of file hecmw_ctrllex.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 553 of file hecmw_ctrllex.c.

◆ yy_new_buffer

#define yy_new_buffer   HECMW_ctrl_create_buffer

Definition at line 323 of file hecmw_ctrllex.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   HECMW_ctrlrestart(HECMW_ctrlin)

Definition at line 156 of file hecmw_ctrllex.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 130 of file hecmw_ctrllex.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   40

Definition at line 377 of file hecmw_ctrllex.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 652 of file hecmw_ctrllex.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 554 of file hecmw_ctrllex.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP
Value:
if (HECMW_ctrlleng > 0) \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
(HECMW_ctrltext[HECMW_ctrlleng - 1] == '\n'); \
YY_USER_ACTION
yy_size_t HECMW_ctrlleng
char * HECMW_ctrltext

Definition at line 737 of file hecmw_ctrllex.c.

◆ YY_SC_TO_UI

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

Definition at line 137 of file hecmw_ctrllex.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
HECMW_ctrlensure_buffer_stack(); \
YY_CURRENT_BUFFER_LVALUE = \
HECMW_ctrl_create_buffer(HECMW_ctrlin, YY_BUF_SIZE); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER
#define YY_BUF_SIZE

Definition at line 335 of file hecmw_ctrllex.c.

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
HECMW_ctrlensure_buffer_stack(); \
YY_CURRENT_BUFFER_LVALUE = \
HECMW_ctrl_create_buffer(HECMW_ctrlin, YY_BUF_SIZE); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}

Definition at line 325 of file hecmw_ctrllex.c.

◆ YY_START

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

Definition at line 149 of file hecmw_ctrllex.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 703 of file hecmw_ctrllex.c.

◆ YY_STATE_BUF_SIZE

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

Definition at line 168 of file hecmw_ctrllex.c.

◆ YY_STATE_EOF

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

Definition at line 153 of file hecmw_ctrllex.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 205 of file hecmw_ctrllex.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   HECMW_ctrl_switch_to_buffer

Definition at line 13 of file hecmw_ctrllex.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 171 of file hecmw_ctrllex.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 176 of file hecmw_ctrllex.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 729 of file hecmw_ctrllex.c.

◆ yyalloc

#define yyalloc   HECMW_ctrlalloc

Definition at line 22 of file hecmw_ctrllex.c.

◆ yyconst

#define yyconst

Definition at line 126 of file hecmw_ctrllex.c.

◆ yyfree

#define yyfree   HECMW_ctrlfree

Definition at line 24 of file hecmw_ctrllex.c.

◆ yyin

#define yyin   HECMW_ctrlin

Definition at line 14 of file hecmw_ctrllex.c.

◆ yyleng

#define yyleng   HECMW_ctrlleng

Definition at line 15 of file hecmw_ctrllex.c.

◆ yyless [1/2]

#define yyless (   n)
Value:
do { \
/* Undo effects of setting up HECMW_ctrltext. */ \
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_ctrltext again */ \
} while (0)
#define YY_MORE_ADJ

Definition at line 1865 of file hecmw_ctrllex.c.

◆ yyless [2/2]

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

Definition at line 1865 of file hecmw_ctrllex.c.

◆ yylex

#define yylex (   void)    HECMW_ctrllex

Definition at line 16 of file hecmw_ctrllex.c.

◆ yylineno

#define yylineno   HECMW_ctrllineno

Definition at line 17 of file hecmw_ctrllex.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 552 of file hecmw_ctrllex.c.

◆ yyout

#define yyout   HECMW_ctrlout

Definition at line 18 of file hecmw_ctrllex.c.

◆ yyrealloc

#define yyrealloc   HECMW_ctrlrealloc

Definition at line 23 of file hecmw_ctrllex.c.

◆ yyrestart

#define yyrestart   HECMW_ctrlrestart

Definition at line 19 of file hecmw_ctrllex.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 150 of file hecmw_ctrllex.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Definition at line 2009 of file hecmw_ctrllex.c.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 698 of file hecmw_ctrllex.c.

◆ yytext

#define yytext   HECMW_ctrltext

Definition at line 20 of file hecmw_ctrllex.c.

◆ yytext_ptr

#define yytext_ptr   HECMW_ctrltext

Definition at line 360 of file hecmw_ctrllex.c.

◆ yywrap

#define yywrap (   void)    HECMW_ctrlwrap

Definition at line 21 of file hecmw_ctrllex.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 70 of file hecmw_ctrllex.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 71 of file hecmw_ctrllex.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 69 of file hecmw_ctrllex.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 73 of file hecmw_ctrllex.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 74 of file hecmw_ctrllex.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 72 of file hecmw_ctrllex.c.

◆ YY_BUFFER_STATE

Definition at line 172 of file hecmw_ctrllex.c.

◆ YY_CHAR

typedef unsigned char YY_CHAR

Definition at line 349 of file hecmw_ctrllex.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 177 of file hecmw_ctrllex.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 353 of file hecmw_ctrllex.c.

Function Documentation

◆ HECMW_ctrl_create_buffer()

YY_BUFFER_STATE HECMW_ctrl_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 1600 of file hecmw_ctrllex.c.

Here is the call graph for this function:

◆ HECMW_ctrl_delete_buffer()

void HECMW_ctrl_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with HECMW_ctrl_create_buffer()

Definition at line 1624 of file hecmw_ctrllex.c.

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

◆ HECMW_ctrl_flush_buffer()

void HECMW_ctrl_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 1668 of file hecmw_ctrllex.c.

◆ HECMW_ctrl_scan_buffer()

YY_BUFFER_STATE HECMW_ctrl_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 1782 of file hecmw_ctrllex.c.

Here is the call graph for this function:

◆ HECMW_ctrl_scan_bytes()

YY_BUFFER_STATE HECMW_ctrl_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_ctrllex() 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 1828 of file hecmw_ctrllex.c.

Here is the caller graph for this function:

◆ HECMW_ctrl_scan_string()

YY_BUFFER_STATE HECMW_ctrl_scan_string ( yyconst char *  yystr)

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

Definition at line 1816 of file hecmw_ctrllex.c.

Here is the call graph for this function:

◆ HECMW_ctrl_switch_to_buffer()

void HECMW_ctrl_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1559 of file hecmw_ctrllex.c.

Here is the caller graph for this function:

◆ HECMW_ctrlalloc()

void * HECMW_ctrlalloc ( yy_size_t  size)

Definition at line 1992 of file hecmw_ctrllex.c.

Here is the caller graph for this function:

◆ HECMW_ctrlfree()

void HECMW_ctrlfree ( void *  ptr)

Definition at line 2005 of file hecmw_ctrllex.c.

Here is the caller graph for this function:

◆ HECMW_ctrlget_debug()

int HECMW_ctrlget_debug ( void  )

Definition at line 1921 of file hecmw_ctrllex.c.

◆ HECMW_ctrlget_extra()

YY_EXTRA_TYPE HECMW_ctrlget_extra ( void  )

◆ HECMW_ctrlget_in()

FILE * HECMW_ctrlget_in ( void  )

Get the input stream.

Definition at line 1887 of file hecmw_ctrllex.c.

◆ HECMW_ctrlget_leng()

yy_size_t HECMW_ctrlget_leng ( void  )

Get the length of the current token.

Definition at line 1897 of file hecmw_ctrllex.c.

◆ HECMW_ctrlget_lineno()

int HECMW_ctrlget_lineno ( void  )

Get the current line number.

Definition at line 1882 of file hecmw_ctrllex.c.

◆ HECMW_ctrlget_out()

FILE * HECMW_ctrlget_out ( void  )

Get the output stream.

Definition at line 1892 of file hecmw_ctrllex.c.

◆ HECMW_ctrlget_text()

char * HECMW_ctrlget_text ( void  )

Get the current token.

Definition at line 1903 of file hecmw_ctrllex.c.

◆ HECMW_ctrllex()

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

◆ HECMW_ctrllex_destroy()

int HECMW_ctrllex_destroy ( void  )

Definition at line 1951 of file hecmw_ctrllex.c.

Here is the call graph for this function:

◆ HECMW_ctrllex_get_lineno()

int HECMW_ctrllex_get_lineno ( void  )

Definition at line 2015 of file hecmw_ctrllex.c.

◆ HECMW_ctrllex_get_number()

double HECMW_ctrllex_get_number ( void  )

Definition at line 2017 of file hecmw_ctrllex.c.

◆ HECMW_ctrllex_get_text()

char* HECMW_ctrllex_get_text ( void  )

Definition at line 2019 of file hecmw_ctrllex.c.

◆ HECMW_ctrllex_next_token()

int HECMW_ctrllex_next_token ( void  )

Definition at line 2021 of file hecmw_ctrllex.c.

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

◆ HECMW_ctrllex_next_token_skip()

int HECMW_ctrllex_next_token_skip ( int  skip_token)

Definition at line 2023 of file hecmw_ctrllex.c.

Here is the call graph for this function:

◆ HECMW_ctrllex_set_input()

int HECMW_ctrllex_set_input ( FILE *  fp)

Definition at line 2033 of file hecmw_ctrllex.c.

Here is the call graph for this function:

◆ HECMW_ctrllex_skip_line()

int HECMW_ctrllex_skip_line ( void  )

Definition at line 2050 of file hecmw_ctrllex.c.

Here is the call graph for this function:

◆ HECMW_ctrllex_unput_token()

int HECMW_ctrllex_unput_token ( void  )

Definition at line 2060 of file hecmw_ctrllex.c.

◆ HECMW_ctrlpop_buffer_state()

void HECMW_ctrlpop_buffer_state ( void  )

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

Definition at line 1717 of file hecmw_ctrllex.c.

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

◆ HECMW_ctrlpush_buffer_state()

void HECMW_ctrlpush_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 1691 of file hecmw_ctrllex.c.

◆ HECMW_ctrlrealloc()

void * HECMW_ctrlrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 1994 of file hecmw_ctrllex.c.

◆ HECMW_ctrlrestart()

void HECMW_ctrlrestart ( 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 1544 of file hecmw_ctrllex.c.

Here is the caller graph for this function:

◆ HECMW_ctrlset_debug()

void HECMW_ctrlset_debug ( int  debug_flag)

Definition at line 1923 of file hecmw_ctrllex.c.

◆ HECMW_ctrlset_extra()

void HECMW_ctrlset_extra ( YY_EXTRA_TYPE  user_defined)

◆ HECMW_ctrlset_in()

void HECMW_ctrlset_in ( FILE *  in_str)

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

Parameters
in_strA readable stream.
See also
HECMW_ctrl_switch_to_buffer

Definition at line 1917 of file hecmw_ctrllex.c.

◆ HECMW_ctrlset_lineno()

void HECMW_ctrlset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 1909 of file hecmw_ctrllex.c.

◆ HECMW_ctrlset_out()

void HECMW_ctrlset_out ( FILE *  out_str)

Definition at line 1919 of file hecmw_ctrllex.c.

◆ HECMW_ctrlwrap()

int HECMW_ctrlwrap ( void  )

Definition at line 2075 of file hecmw_ctrllex.c.

◆ if()

if ( yy_init)

Definition at line 754 of file hecmw_ctrllex.c.

◆ isatty()

int isatty ( int  )

◆ while()

while ( )

Definition at line 775 of file hecmw_ctrllex.c.

Variable Documentation

◆ HECMW_ctrl_flex_debug

int HECMW_ctrl_flex_debug = 0

Definition at line 546 of file hecmw_ctrllex.c.

◆ HECMW_ctrlin

FILE * HECMW_ctrlin = (FILE *)0

Definition at line 351 of file hecmw_ctrllex.c.

◆ HECMW_ctrlleng

yy_size_t HECMW_ctrlleng

Definition at line 289 of file hecmw_ctrllex.c.

◆ HECMW_ctrllineno

int HECMW_ctrllineno = 1

Definition at line 357 of file hecmw_ctrllex.c.

◆ HECMW_ctrlout

FILE * HECMW_ctrlout = (FILE *)0

Definition at line 182 of file hecmw_ctrllex.c.

◆ HECMW_ctrltext

char * HECMW_ctrltext

Definition at line 555 of file hecmw_ctrllex.c.

◆ yy_act

register int yy_act

Definition at line 748 of file hecmw_ctrllex.c.

◆ yy_bp

register char * yy_bp

Definition at line 747 of file hecmw_ctrllex.c.

◆ yy_cp

register char* yy_cp

Definition at line 747 of file hecmw_ctrllex.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 745 of file hecmw_ctrllex.c.