⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lex.yy.cpp

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 CPP
📖 第 1 页 / 共 5 页
字号:
/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * lex.yy.cpp,v 1.116 2004/01/07 02:53:51 parsons Exp
 */

#define FLEX_SCANNER
#define TAO_YY_FLEX_MAJOR_VERSION 2
#define TAO_YY_FLEX_MINOR_VERSION 5



/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif


#ifdef __cplusplus

#include "ace/os_include/os_stdio.h"

/* Use prototypes in function declarations. */
#define TAO_YY_USE_PROTOS

/* The "const" storage-class-modifier is valid. */
#define TAO_YY_USE_CONST

#else   /* ! __cplusplus */

#ifdef __STDC__

#define TAO_YY_USE_PROTOS
#define TAO_YY_USE_CONST

#endif  /* __STDC__ */
#endif  /* ! __cplusplus */

#ifdef __TURBOC__
 #pragma warn -rch
 #pragma warn -use
#define TAO_YY_USE_CONST
#define TAO_YY_USE_PROTOS
#endif

#ifdef TAO_YY_USE_CONST
#define tao_yyconst const
#else
#define tao_yyconst
#endif


#ifdef TAO_YY_USE_PROTOS
#define TAO_YY_PROTO(proto) proto
#else
#define TAO_YY_PROTO(proto) ()
#endif

/* Returned upon end-of-file. */
#define TAO_YY_NULL 0

/* Promotes a possibly negative, possibly signed char to an unsigned
 * integer for use as an array index.  If the signed char is negative,
 * we want to instead treat it as an 8-bit unsigned char, hence the
 * double cast.
 */
#define TAO_YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)

/* Enter a start condition.  This macro really ought to take a parameter,
 * but we do it the disgusting crufty way forced on us by the ()-less
 * definition of BEGIN.
 */
#define BEGIN tao_yy_start = 1 + 2 *

/* Translate the current start state into a value that can be later handed
 * to BEGIN to return to the state.  The TAO_YYSTATE alias is for lex
 * compatibility.
 */
#define TAO_YY_START ((tao_yy_start - 1) / 2)
#define TAO_YYSTATE TAO_YY_START

/* Action number for EOF rule of a given start state. */
#define TAO_YY_STATE_EOF(state) (TAO_YY_END_OF_BUFFER + state + 1)

/* Special action meaning "start processing a new file". */
#define TAO_YY_NEW_FILE tao_yyrestart( tao_yyin )

#define TAO_YY_END_OF_BUFFER_CHAR 0

/* Size of default input buffer. */
#define TAO_YY_BUF_SIZE 16384

typedef struct tao_yy_buffer_state *TAO_YY_BUFFER_STATE;

extern int tao_yyleng;
extern FILE *tao_yyin, *tao_yyout;

#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2

/* The funky do-while in the following #define is used to turn the definition
 * int a single C statement (which needs a semi-colon terminator).  This
 * avoids problems with code like:
 *
 *      if ( condition_holds )
 *              tao_yyless( 5 );
 *      else
 *              do_something_else();
 *
 * Prior to using the do-while the compiler would get upset at the
 * "else" because it interpreted the "if" statement as being all
 * done when it reached the ';' after the tao_yyless() call.
 */

/* Return all but the first 'n' matched characters back to the input stream. */

#define tao_yyless(n) \
        do \
                { \
                /* Undo effects of setting up tao_yytext. */ \
                *tao_yy_cp = tao_yy_hold_char; \
                TAO_YY_RESTORE_TAO_YY_MORE_OFFSET \
                tao_yy_c_buf_p = tao_yy_cp = tao_yy_bp + n - TAO_YY_MORE_ADJ; \
                TAO_YY_DO_BEFORE_ACTION; /* set up tao_yytext again */ \
                } \
        while ( 0 )

#define unput(c) tao_yyunput( c, tao_yytext_ptr )

/* The following is because we cannot portably get our hands on size_t
 * (without autoconf's help, which isn't available because we want
 * flex-generated scanners to compile on their own).
 */
typedef unsigned int tao_yy_size_t;


struct tao_yy_buffer_state
        {
        FILE *tao_yy_input_file;

        char *tao_yy_ch_buf;            /* input buffer */
        char *tao_yy_buf_pos;           /* current position in input buffer */

        /* Size of input buffer in bytes, not including room for EOB
         * characters.
         */
        tao_yy_size_t tao_yy_buf_size;

        /* Number of characters read into tao_yy_ch_buf, not including EOB
         * characters.
         */
        int tao_yy_n_chars;

        /* Whether we "own" the buffer - i.e., we know we created it,
         * and can realloc() it to grow it, and should free() it to
         * delete it.
         */
        int tao_yy_is_our_buffer;

        /* Whether this is an "interactive" input source; if so, and
         * if we're using stdio for input, then we want to use getc()
         * instead of fread(), to make sure we stop fetching input after
         * each newline.
         */
        int tao_yy_is_interactive;

        /* Whether we're considered to be at the beginning of a line.
         * If so, '^' rules will be active on the next match, otherwise
         * not.
         */
        int tao_yy_at_bol;

        /* Whether to try to fill the input buffer when we reach the
         * end of it.
         */
        int tao_yy_fill_buffer;

        int tao_yy_buffer_status;
#define TAO_YY_BUFFER_NEW 0
#define TAO_YY_BUFFER_NORMAL 1
        /* When an EOF's been seen but there's still some text to process
         * then we mark the buffer as TAO_YY_EOF_PENDING, to indicate that we
         * shouldn't try reading from the input source any more.  We might
         * still have a bunch of tokens to match, though, because of
         * possible backing-up.
         *
         * When we actually see the EOF, we change the status to "new"
         * (via tao_yyrestart()), so that the user can continue scanning by
         * just pointing tao_yyin at a new input file.
         */
#define TAO_YY_BUFFER_EOF_PENDING 2
        };

static TAO_YY_BUFFER_STATE tao_yy_current_buffer = 0;

/* We provide macros for accessing buffer states in case in the
 * future we want to put the buffer states in a more general
 * "scanner state".
 */
#define TAO_YY_CURRENT_BUFFER tao_yy_current_buffer


/* tao_yy_hold_char holds the character lost when tao_yytext is formed. */
static char tao_yy_hold_char;

static int tao_yy_n_chars;              /* number of characters read into tao_yy_ch_buf */


int tao_yyleng;

/* Points to current character in buffer. */
static char *tao_yy_c_buf_p = (char *) 0;
static int tao_yy_init = 1;             /* whether we need to initialize */
static int tao_yy_start = 0;    /* start state number */

/* Flag which is used to allow tao_yywrap()'s to do buffer switches
 * instead of setting up a fresh tao_yyin.  A bit of a hack ...
 */
static int tao_yy_did_buffer_switch_on_eof;

void tao_yyrestart TAO_YY_PROTO(( FILE *input_file ));

void tao_yy_switch_to_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE new_buffer ));
void tao_yy_load_buffer_state TAO_YY_PROTO(( void ));
TAO_YY_BUFFER_STATE tao_yy_create_buffer TAO_YY_PROTO(( FILE *file, int size ));
void tao_yy_delete_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b ));
void tao_yy_init_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b, FILE *file ));
void tao_yy_flush_buffer TAO_YY_PROTO(( TAO_YY_BUFFER_STATE b ));
#define TAO_YY_FLUSH_BUFFER tao_yy_flush_buffer( tao_yy_current_buffer )

TAO_YY_BUFFER_STATE tao_yy_scan_buffer TAO_YY_PROTO(( char *base, tao_yy_size_t size ));
TAO_YY_BUFFER_STATE tao_yy_scan_string TAO_YY_PROTO(( tao_yyconst char *tao_yy_str ));
TAO_YY_BUFFER_STATE tao_yy_scan_bytes TAO_YY_PROTO(( tao_yyconst char *bytes, int len ));

static void *tao_yy_flex_alloc TAO_YY_PROTO(( tao_yy_size_t ));
static void *tao_yy_flex_realloc TAO_YY_PROTO(( void *, tao_yy_size_t ));
static void tao_yy_flex_free TAO_YY_PROTO(( void * ));

#define tao_yy_new_buffer tao_yy_create_buffer

#define tao_yy_set_interactive(is_interactive) \
        { \
        if ( ! tao_yy_current_buffer ) \
                tao_yy_current_buffer = tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE ); \
        tao_yy_current_buffer->tao_yy_is_interactive = is_interactive; \
        }

#define tao_yy_set_bol(at_bol) \
        { \
        if ( ! tao_yy_current_buffer ) \
                tao_yy_current_buffer = tao_yy_create_buffer( tao_yyin, TAO_YY_BUF_SIZE ); \
        tao_yy_current_buffer->tao_yy_at_bol = at_bol; \
        }

#define TAO_YY_AT_BOL() (tao_yy_current_buffer->tao_yy_at_bol)

typedef unsigned char TAO_YY_CHAR;
FILE *tao_yyin = (FILE *) 0, *tao_yyout = (FILE *) 0;
typedef int tao_yy_state_type;
extern char tao_yytext[];


static tao_yy_state_type tao_yy_get_previous_state TAO_YY_PROTO(( void ));
static tao_yy_state_type tao_yy_try_NUL_trans TAO_YY_PROTO(( tao_yy_state_type current_state ));
static int tao_yy_get_next_buffer TAO_YY_PROTO(( void ));
static void tao_yy_fatal_error TAO_YY_PROTO(( tao_yyconst char msg[] ));

/* Done after the current pattern has been matched and before the
 * corresponding action - sets up tao_yytext.
 */
#define TAO_YY_DO_BEFORE_ACTION \
        tao_yytext_ptr = tao_yy_bp; \
        tao_yyleng = (int) (tao_yy_cp - tao_yy_bp); \
        tao_yy_hold_char = *tao_yy_cp; \
        *tao_yy_cp = '\0'; \
        if ( tao_yyleng >= TAO_YYLMAX ) \
                TAO_YY_FATAL_ERROR( "token too large, exceeds TAO_YYLMAX" ); \
        tao_yy_flex_strncpy( tao_yytext, tao_yytext_ptr, tao_yyleng + 1 ); \
        tao_yy_c_buf_p = tao_yy_cp;

#define TAO_YY_NUM_RULES 104
#define TAO_YY_END_OF_BUFFER 105
static tao_yyconst short int tao_yy_accept[549] =
    {   0,
      101,  101,  105,  103,  101,  102,  102,  103,  103,  103,
      103,  103,   76,   72,  103,  103,  103,   68,   68,   68,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
       68,   68,  101,  103,  102,  101,    0,   77,    0,    0,
        0,    0,   75,   71,   69,  100,    0,   69,   76,    0,
        0,    0,   72,   67,   65,   66,   68,   68,    0,    0,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
       68,   68,   62,   68,   68,   68,   68,   68,   68,   68,

       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
       68,   68,   68,   68,   68,   68,   68,   68,  101,    0,
        0,   95,    0,    0,    0,    0,    0,    0,    0,   77,
        0,    0,   79,    0,   79,    0,    0,   75,    0,   71,
        0,   69,    0,   99,   99,   69,    0,   70,   74,   68,
        0,   78,    0,    0,    0,   68,   68,   68,    1,   68,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   63,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,

       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
        0,    0,    0,    0,    0,    0,    0,   82,   80,    0,
        0,   73,    0,   69,   70,   68,    0,   83,    0,   68,
       59,   68,   68,   68,   20,   27,   68,   68,   68,   68,
       68,   68,   68,   13,   68,   68,   68,   68,   68,   68,
       68,   48,   68,   68,   68,   68,   24,   68,   68,   68,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
       57,   68,   31,   68,   68,    0,    0,    0,    0,    0,
        0,    0,   96,    0,    0,    0,    0,    0,    0,   80,

        0,   81,    0,   60,    0,    0,   68,   68,   68,   68,
       68,   10,   68,   68,   68,   68,   68,   44,   68,   68,
       68,   68,   18,   22,   68,   68,   61,   68,   33,   68,
       68,   68,   68,   30,   68,   68,   68,   68,   68,   68,
       68,   68,   68,   25,   68,   68,   68,   68,   68,   68,
       68,   68,   17,   68,   68,   28,   68,   91,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
       84,    0,    2,   68,   68,   68,   68,   68,   68,   35,
       68,   23,   68,   68,   68,   46,   68,   49,   68,   68,
        3,   68,   32,   64,   68,   68,   68,   38,   68,    4,

       68,   68,   68,   14,   12,   68,   19,   68,   68,   55,
       68,   68,   68,   68,    0,   89,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
       68,   68,   29,   68,   68,    8,   21,   68,   68,   36,
       68,   68,   58,   68,   68,   37,   68,   68,   68,   68,
       68,   68,   68,   11,   68,   68,   68,   15,    0,    0,
       87,   87,    0,    0,   93,    0,    0,   92,    0,    0,
        0,    0,    0,    0,    0,   34,   68,   68,   43,   68,
       68,   68,   68,   50,   68,   52,   68,    5,   16,   68,
       39,   68,   68,   26,   68,    0,   97,   97,    0,    0,

        0,    0,   90,    0,    0,    0,    0,    0,    0,    0,
        6,   42,   45,    7,   47,    9,   68,   53,   54,   68,
       68,   41,    0,   85,   85,    0,    0,   88,   88,    0,
        0,    0,    0,   51,   68,   56,    0,   98,   98,    0,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -