📄 lex.cc_command.cpp
字号:
// lex.CC_command.cpp,v 1.14 2003/11/05 03:59:58 dhinton Exp
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp
*/
#define FLEX_SCANNER
#define ACE_CC_YY_FLEX_MAJOR_VERSION 2
#define ACE_CC_YY_FLEX_MINOR_VERSION 5
#include "ace/OS_NS_string.h"
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif
#ifdef __cplusplus
#include /**/ <stdlib.h>
/* Use prototypes in function declarations. */
#define ACE_CC_YY_USE_PROTOS
/* The "const" storage-class-modifier is valid. */
#define ACE_CC_YY_USE_CONST
#else /* ! __cplusplus */
#if __STDC__
#define ACE_CC_YY_USE_PROTOS
#define ACE_CC_YY_USE_CONST
#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef __TURBOC__
#pragma warn -rch
#pragma warn -use
#include /**/ <io.h>
#include /**/ <stdlib.h>
#define ACE_CC_YY_USE_CONST
#define ACE_CC_YY_USE_PROTOS
#endif
#ifdef ACE_CC_YY_USE_CONST
#define ace_cc_yyconst const
#else
#define ace_cc_yyconst
#endif
#ifdef ACE_CC_YY_USE_PROTOS
#define ACE_CC_YY_PROTO(proto) proto
#else
#define ACE_CC_YY_PROTO(proto) ()
#endif
/* Returned upon end-of-file. */
#define ACE_CC_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 ACE_CC_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 ace_cc_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 ACE_CC_YYSTATE alias is for lex
* compatibility.
*/
#define ACE_CC_YY_START ((ace_cc_yy_start - 1) / 2)
#define ACE_CC_YYSTATE ACE_CC_YY_START
/* Action number for EOF rule of a given start state. */
#define ACE_CC_YY_STATE_EOF(state) (ACE_CC_YY_END_OF_BUFFER + state + 1)
/* Special action meaning "start processing a new file". */
#define ACE_CC_YY_NEW_FILE ace_cc_yyrestart( ace_cc_yyin )
#define ACE_CC_YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#define ACE_CC_YY_BUF_SIZE 16384
typedef struct ace_cc_yy_buffer_state *ACE_CC_YY_BUFFER_STATE;
extern int ace_cc_yyleng;
extern FILE *ace_cc_yyin, *ace_cc_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 )
* ace_cc_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 ace_cc_yyless() call.
*/
/* Return all but the first 'n' matched characters back to the input stream. */
#define ace_cc_yyless(n) \
do \
{ \
/* Undo effects of setting up ace_cc_yytext. */ \
*ace_cc_yy_cp = ace_cc_yy_hold_char; \
ACE_CC_YY_RESTORE_ACE_CC_YY_MORE_OFFSET \
ace_cc_yy_c_buf_p = ace_cc_yy_cp = ace_cc_yy_bp + n - ACE_CC_YY_MORE_ADJ; \
ACE_CC_YY_DO_BEFORE_ACTION; /* set up ace_cc_yytext again */ \
} \
while ( 0 )
#define unput(c) ace_cc_yyunput( c, ace_cc_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 ace_cc_yy_size_t;
struct ace_cc_yy_buffer_state
{
FILE *ace_cc_yy_input_file;
char *ace_cc_yy_ch_buf; /* input buffer */
char *ace_cc_yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
ace_cc_yy_size_t ace_cc_yy_buf_size;
/* Number of characters read into ace_cc_yy_ch_buf, not including EOB
* characters.
*/
int ace_cc_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 ace_cc_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 ace_cc_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 ace_cc_yy_at_bol;
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int ace_cc_yy_fill_buffer;
int ace_cc_yy_buffer_status;
#define ACE_CC_YY_BUFFER_NEW 0
#define ACE_CC_YY_BUFFER_NORMAL 1
/* When an EOF's been seen but there's still some text to process
* then we mark the buffer as ACE_CC_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 ace_cc_yyrestart()), so that the user can continue scanning by
* just pointing ace_cc_yyin at a new input file.
*/
#define ACE_CC_YY_BUFFER_EOF_PENDING 2
};
static ACE_CC_YY_BUFFER_STATE ace_cc_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 ACE_CC_YY_CURRENT_BUFFER ace_cc_yy_current_buffer
/* ace_cc_yy_hold_char holds the character lost when ace_cc_yytext is formed. */
static char ace_cc_yy_hold_char;
static int ace_cc_yy_n_chars; /* number of characters read into ace_cc_yy_ch_buf */
int ace_cc_yyleng;
/* Points to current character in buffer. */
static char *ace_cc_yy_c_buf_p = (char *) 0;
static int ace_cc_yy_init = 1; /* whether we need to initialize */
static int ace_cc_yy_start = 0; /* start state number */
#define ace_cc_yywrap() 1
/* Flag which is used to allow ace_cc_yywrap()'s to do buffer switches
* instead of setting up a fresh ace_cc_yyin. A bit of a hack ...
*/
#if (ace_cc_yywrap() != 1)
static int ace_cc_yy_did_buffer_switch_on_eof;
#endif
void ace_cc_yyrestart ACE_CC_YY_PROTO(( FILE *input_file ));
void ace_cc_yy_switch_to_buffer ACE_CC_YY_PROTO(( ACE_CC_YY_BUFFER_STATE new_buffer ));
void ace_cc_yy_load_buffer_state ACE_CC_YY_PROTO(( void ));
ACE_CC_YY_BUFFER_STATE ace_cc_yy_create_buffer ACE_CC_YY_PROTO(( FILE *file, int size ));
void ace_cc_yy_delete_buffer ACE_CC_YY_PROTO(( ACE_CC_YY_BUFFER_STATE b ));
void ace_cc_yy_init_buffer ACE_CC_YY_PROTO(( ACE_CC_YY_BUFFER_STATE b, FILE *file ));
void ace_cc_yy_flush_buffer ACE_CC_YY_PROTO(( ACE_CC_YY_BUFFER_STATE b ));
#define ACE_CC_YY_FLUSH_BUFFER ace_cc_yy_flush_buffer( ace_cc_yy_current_buffer )
ACE_CC_YY_BUFFER_STATE ace_cc_yy_scan_buffer ACE_CC_YY_PROTO(( char *base, ace_cc_yy_size_t size ));
ACE_CC_YY_BUFFER_STATE ace_cc_yy_scan_string ACE_CC_YY_PROTO(( ace_cc_yyconst char *ace_cc_yy_str ));
ACE_CC_YY_BUFFER_STATE ace_cc_yy_scan_bytes ACE_CC_YY_PROTO(( ace_cc_yyconst char *bytes, int len ));
static void *ace_cc_yy_flex_alloc ACE_CC_YY_PROTO(( ace_cc_yy_size_t ));
static void *ace_cc_yy_flex_realloc ACE_CC_YY_PROTO(( void *, ace_cc_yy_size_t ));
static void ace_cc_yy_flex_free ACE_CC_YY_PROTO(( void * ));
#define ace_cc_yy_new_buffer ace_cc_yy_create_buffer
#define ace_cc_yy_set_interactive(is_interactive) \
{ \
if ( ! ace_cc_yy_current_buffer ) \
ace_cc_yy_current_buffer = ace_cc_yy_create_buffer( ace_cc_yyin, ACE_CC_YY_BUF_SIZE ); \
ace_cc_yy_current_buffer->ace_cc_yy_is_interactive = is_interactive; \
}
#define ace_cc_yy_set_bol(at_bol) \
{ \
if ( ! ace_cc_yy_current_buffer ) \
ace_cc_yy_current_buffer = ace_cc_yy_create_buffer( ace_cc_yyin, ACE_CC_YY_BUF_SIZE ); \
ace_cc_yy_current_buffer->ace_cc_yy_at_bol = at_bol; \
}
#define ACE_CC_YY_AT_BOL() (ace_cc_yy_current_buffer->ace_cc_yy_at_bol)
#define ACE_CC_YY_SKIP_ACE_CC_YYWRAP
typedef unsigned char ACE_CC_YY_CHAR;
FILE *ace_cc_yyin = (FILE *) 0, *ace_cc_yyout = (FILE *) 0;
typedef int ace_cc_yy_state_type;
extern char *ace_cc_yytext;
#define ace_cc_yytext_ptr ace_cc_yytext
static ace_cc_yy_state_type ace_cc_yy_get_previous_state ACE_CC_YY_PROTO(( void ));
static ace_cc_yy_state_type ace_cc_yy_try_NUL_trans ACE_CC_YY_PROTO(( ace_cc_yy_state_type current_state ));
static int ace_cc_yy_get_next_buffer ACE_CC_YY_PROTO(( void ));
static void ace_cc_yy_fatal_error ACE_CC_YY_PROTO(( ace_cc_yyconst char msg[] ));
/* Done after the current pattern has been matched and before the
* corresponding action - sets up ace_cc_yytext.
*/
#define ACE_CC_YY_DO_BEFORE_ACTION \
ace_cc_yytext_ptr = ace_cc_yy_bp; \
ace_cc_yyleng = (int) (ace_cc_yy_cp - ace_cc_yy_bp); \
ace_cc_yy_hold_char = *ace_cc_yy_cp; \
*ace_cc_yy_cp = '\0'; \
ace_cc_yy_c_buf_p = ace_cc_yy_cp;
#define ACE_CC_YY_NUM_RULES 25
#define ACE_CC_YY_END_OF_BUFFER 26
static ace_cc_yyconst short int ace_cc_yy_accept[124] =
{ 0,
0, 0, 26, 25, 24, 23, 25, 20, 1, 21,
21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
25, 24, 23, 0, 19, 20, 21, 21, 21, 21,
21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
21, 0, 21, 21, 21, 21, 21, 21, 21, 21,
21, 21, 21, 21, 21, 21, 21, 21, 0, 22,
21, 21, 21, 21, 4, 21, 21, 14, 21, 21,
21, 21, 21, 21, 9, 21, 21, 21, 21, 21,
21, 10, 21, 8, 2, 21, 21, 21, 17, 21,
3, 21, 21, 13, 11, 21, 5, 21, 21, 21,
21, 21, 16, 21, 21, 21, 6, 21, 12, 21,
21, 21, 7, 21, 21, 21, 21, 21, 21, 15,
21, 18, 0
} ;
static ace_cc_yyconst int ace_cc_yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 3, 1, 4, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 5, 6, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 5, 8, 1,
1, 1, 1, 1, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
1, 1, 1, 1, 10, 1, 11, 9, 12, 13,
14, 9, 15, 16, 17, 9, 18, 19, 20, 21,
22, 23, 9, 24, 25, 26, 27, 9, 28, 29,
30, 9, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
static ace_cc_yyconst int ace_cc_yy_meta[31] =
{ 0,
1, 2, 1, 1, 3, 3, 3, 1, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3
} ;
static ace_cc_yyconst short int ace_cc_yy_base[128] =
{ 0,
0, 136, 141, 143, 0, 137, 135, 131, 143, 0,
15, 108, 115, 113, 110, 119, 14, 108, 11, 24,
125, 0, 127, 125, 124, 120, 0, 115, 111, 112,
97, 24, 105, 26, 107, 109, 89, 99, 102, 99,
98, 112, 92, 101, 97, 96, 91, 90, 86, 93,
91, 90, 79, 92, 79, 76, 73, 72, 95, 143,
81, 69, 71, 72, 0, 65, 65, 0, 79, 66,
62, 68, 74, 74, 0, 70, 69, 68, 55, 54,
56, 0, 52, 0, 0, 55, 58, 62, 0, 64,
0, 56, 55, 0, 0, 59, 0, 56, 49, 46,
45, 48, 0, 43, 43, 42, 0, 49, 0, 51,
46, 14, 0, 45, 30, 40, 30, 32, 18, 0,
29, 0, 143, 49, 52, 38, 55
} ;
static ace_cc_yyconst short int ace_cc_yy_def[128] =
{ 0,
123, 1, 123, 123, 124, 123, 125, 123, 123, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
123, 124, 123, 125, 125, 123, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 127, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 127, 123,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 0, 123, 123, 123, 123
} ;
static ace_cc_yyconst short int ace_cc_yy_nxt[174] =
{ 0,
4, 5, 6, 7, 4, 4, 8, 9, 10, 4,
10, 11, 10, 12, 10, 10, 13, 10, 14, 10,
10, 10, 15, 16, 17, 18, 19, 20, 10, 10,
28, 38, 35, 39, 40, 47, 50, 114, 29, 36,
27, 115, 122, 121, 120, 48, 119, 41, 51, 22,
118, 22, 24, 117, 24, 59, 59, 59, 116, 113,
112, 111, 110, 109, 108, 107, 106, 105, 104, 103,
102, 101, 100, 99, 98, 97, 96, 95, 94, 93,
92, 91, 90, 89, 88, 87, 86, 85, 84, 83,
82, 81, 80, 79, 78, 77, 60, 76, 75, 74,
73, 72, 71, 70, 69, 68, 67, 66, 65, 64,
63, 62, 61, 60, 58, 57, 56, 55, 54, 53,
52, 49, 46, 45, 44, 43, 26, 25, 25, 23,
42, 37, 34, 33, 32, 31, 30, 26, 25, 23,
123, 21, 3, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123
} ;
static ace_cc_yyconst short int ace_cc_yy_chk[174] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
11, 19, 17, 19, 20, 32, 34, 112, 11, 17,
126, 112, 121, 119, 118, 32, 117, 20, 34, 124,
116, 124, 125, 115, 125, 127, 127, 127, 114, 111,
110, 108, 106, 105, 104, 102, 101, 100, 99, 98,
96, 93, 92, 90, 88, 87, 86, 83, 81, 80,
79, 78, 77, 76, 74, 73, 72, 71, 70, 69,
67, 66, 64, 63, 62, 61, 59, 58, 57, 56,
55, 54, 53, 52, 51, 50, 49, 48, 47, 46,
45, 44, 43, 42, 41, 40, 39, 38, 37, 36,
35, 33, 31, 30, 29, 28, 26, 25, 24, 23,
21, 18, 16, 15, 14, 13, 12, 8, 7, 6,
3, 2, 123, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -