📄 lex.yy.c
字号:
56, 59, 56, 124, 125, 56, 73, 129, 159, 56,
143, 130, 56, 57, 58, 56, 117, 59, 56, 56,
56, 42, 56, 120, 56, 73, 42, 56, 131, 56,
56, 48, 48, 56, 56, 56, 45, 56, 45, 85,
132, 56, 56, 56, 56, 133, 134, 56, 135, 56,
41, 56, 41, 56, 42, 56, 56, 56, 39, 136,
56, 56, 42, 56, 45, 139, 56, 42, 56, 56,
56, 137, 56, 138, 56, 56, 91, 56, 73, 56,
141, 41, 56, 140, 39, 56, 142, 58, 56, 144,
59, 148, 58, 57, 58, 59, 209, 59, 57, 58,
144, 209, 59, 57, 58, 145, 209, 59, 73, 57,
58, 57, 58, 59, 146, 59, 57, 58, 73, 90,
59, 57, 58, 56, 56, 59, 56, 56, 209, 147,
56, 56, 56, 209, 56, 56, 56, 56, 149, 56,
56, 73, 56, 150, 209, 209, 56, 56, 56, 209,
151, 152, 56, 209, 56, 56, 73, 56, 209, 56,
56, 155, 56, 209, 56, 154, 56, 56, 153, 156,
56, 209, 56, 209, 56, 56, 209, 56, 157, 56,
56, 209, 56, 209, 56, 158, 56, 56, 56, 73,
56, 73, 56, 209, 56, 56, 56, 209, 56, 209,
89, 209, 56, 56, 209, 56, 209, 209, 56, 56,
161, 56, 56, 160, 162, 58, 73, 56, 59, 56,
56, 209, 209, 209, 56, 89, 209, 56, 56, 73,
56, 56, 209, 56, 73, 56, 209, 163, 56, 209,
73, 56, 56, 56, 56, 73, 56, 164, 209, 56,
56, 56, 209, 56, 209, 56, 56, 209, 73, 56,
56, 56, 209, 73, 56, 165, 209, 56, 56, 56,
56, 56, 166, 56, 56, 144, 56, 56, 56, 209,
209, 209, 56, 56, 89, 56, 56, 168, 73, 169,
56, 209, 56, 56, 209, 73, 209, 56, 56, 56,
56, 56, 56, 56, 170, 73, 209, 56, 56, 56,
209, 209, 209, 56, 56, 56, 56, 73, 209, 73,
209, 209, 209, 56, 209, 209, 209, 209, 209, 56,
40, 40, 40, 40, 44, 44, 44, 44, 47, 47,
47, 47, 47, 52, 52, 56, 56, 3, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209
} ;
static yyconst short int yy_chk[765] =
{ 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,
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, 5, 9, 13, 207,
16, 14, 16, 16, 14, 14, 15, 13, 14, 14,
17, 15, 17, 17, 18, 18, 20, 20, 21, 21,
23, 23, 21, 206, 23, 205, 24, 24, 23, 9,
24, 24, 25, 204, 26, 16, 88, 88, 26, 25,
38, 26, 25, 25, 203, 25, 25, 26, 5, 27,
27, 27, 29, 27, 28, 28, 30, 28, 28, 29,
27, 30, 202, 30, 32, 29, 31, 33, 30, 30,
31, 32, 32, 31, 33, 34, 37, 32, 35, 31,
33, 32, 34, 36, 32, 35, 201, 34, 34, 33,
36, 35, 38, 118, 118, 37, 36, 46, 200, 46,
46, 50, 50, 51, 199, 51, 51, 52, 50, 52,
52, 53, 56, 53, 53, 198, 57, 58, 197, 56,
59, 119, 119, 57, 58, 56, 196, 59, 37, 57,
58, 60, 61, 59, 62, 59, 61, 195, 60, 61,
194, 62, 63, 193, 60, 61, 64, 62, 60, 63,
62, 192, 191, 64, 190, 63, 65, 66, 64, 64,
67, 65, 189, 65, 66, 68, 84, 67, 188, 65,
66, 187, 68, 67, 69, 66, 67, 70, 68, 71,
186, 69, 72, 68, 70, 185, 71, 69, 184, 72,
70, 69, 71, 73, 71, 72, 74, 183, 75, 72,
73, 76, 182, 74, 75, 75, 73, 181, 76, 74,
77, 75, 78, 74, 76, 75, 77, 77, 84, 78,
180, 79, 179, 77, 178, 78, 177, 78, 79, 79,
176, 80, 80, 77, 79, 80, 81, 175, 81, 81,
86, 86, 81, 82, 81, 82, 82, 86, 83, 82,
83, 83, 174, 87, 83, 87, 173, 172, 87, 87,
89, 89, 89, 90, 89, 90, 90, 171, 91, 90,
91, 91, 92, 93, 91, 97, 95, 94, 167, 92,
93, 94, 97, 95, 94, 92, 93, 96, 97, 95,
94, 95, 98, 98, 96, 87, 159, 100, 100, 98,
96, 100, 99, 96, 96, 98, 99, 101, 143, 99,
117, 102, 103, 101, 101, 99, 85, 101, 102, 103,
104, 55, 105, 102, 102, 103, 54, 104, 104, 105,
106, 49, 47, 104, 107, 105, 45, 106, 44, 43,
105, 107, 109, 106, 108, 106, 107, 107, 108, 109,
41, 108, 40, 110, 22, 109, 111, 108, 19, 109,
110, 112, 12, 111, 10, 112, 110, 8, 112, 111,
113, 110, 114, 111, 112, 115, 112, 113, 115, 114,
114, 7, 115, 113, 6, 114, 116, 116, 115, 120,
116, 127, 127, 120, 120, 127, 3, 120, 121, 121,
121, 0, 121, 122, 122, 122, 0, 122, 123, 123,
123, 124, 124, 123, 125, 124, 125, 125, 124, 128,
125, 126, 126, 129, 130, 126, 128, 131, 0, 126,
129, 130, 128, 0, 131, 132, 129, 130, 129, 133,
131, 130, 132, 131, 0, 0, 133, 134, 132, 0,
132, 134, 133, 0, 134, 135, 133, 136, 0, 137,
134, 137, 135, 0, 136, 136, 137, 138, 135, 138,
136, 0, 137, 0, 138, 139, 0, 140, 139, 141,
138, 0, 139, 0, 140, 141, 141, 142, 139, 140,
140, 142, 141, 0, 142, 144, 145, 0, 146, 0,
142, 0, 144, 145, 0, 146, 0, 0, 144, 145,
146, 146, 148, 145, 147, 147, 148, 149, 147, 148,
150, 0, 0, 0, 149, 148, 0, 150, 151, 149,
149, 152, 0, 150, 152, 151, 0, 150, 152, 0,
151, 151, 153, 154, 152, 154, 155, 153, 0, 153,
154, 156, 0, 155, 0, 153, 154, 0, 156, 155,
158, 157, 0, 155, 156, 157, 0, 158, 157, 161,
160, 162, 158, 158, 157, 160, 161, 160, 162, 0,
0, 0, 161, 160, 162, 163, 164, 161, 162, 163,
165, 0, 163, 164, 0, 165, 0, 165, 163, 164,
166, 168, 169, 165, 166, 168, 0, 166, 168, 169,
0, 0, 0, 166, 168, 169, 170, 169, 0, 170,
0, 0, 0, 170, 0, 0, 0, 0, 0, 170,
210, 210, 210, 210, 211, 211, 211, 211, 212, 212,
212, 212, 212, 213, 213, 214, 214, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209
} ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
*/
#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
char *yytext;
#line 1 "lex.txt"
#define INITIAL 0
#line 602 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif
#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif
#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif
#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* Just try to get by without declaring the routines. This will fail
* miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
* or sizeof(void*) != sizeof(int).
*/
#endif
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif
/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
if ( yy_current_buffer->yy_is_interactive ) \
{ \
int c = '*', n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
&& ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" );
#endif
/* No semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
*/
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif
/* Code executed at the beginning of each rule, after yytext and yyleng
* have been set up.
*/
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif
#define YY_RULE_SETUP \
YY_USER_ACTION
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
#line 11 "lex.txt"
#line 755 "lex.yy.c"
if ( yy_init )
{
yy_init = 0;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! yy_start )
yy_start = 1; /* first start state */
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( ! yy_current_buffer )
yy_current_buffer =
yy_create_buffer( yyin, YY_BUF_SIZE );
yy_load_buffer_state();
}
while ( 1 ) /* loops until end-of-file is reached */
{
yy_cp = yy_c_buf_p;
/* Support of yytext. */
*yy_cp = yy_hold_char;
/* yy_bp points to the position in yy_ch_buf of the start of
* the current run.
*/
yy_bp = yy_cp;
yy_current_state = yy_start;
yy_match:
do
{
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 210 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
while ( yy_base[yy_current_state] != 708 );
yy_find_action:
yy_act = yy_accept[yy_current_state];
if ( yy_act == 0 )
{ /* have to back up */
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
yy_act = yy_accept[yy_current_state];
}
YY_DO_BEFORE_ACTION;
do_action: /* This label is used only to access EOF actions. */
switch ( yy_act )
{ /* beginning of action switch */
case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = yy_hold_char;
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
goto yy_find_action;
case 1:
YY_RULE_SETUP
#line 12 "lex.txt"
YY_BREAK
case 2:
YY_RULE_SETUP
#line 13 "lex.txt"
YY_BREAK
case 3:
YY_RULE_SETUP
#line 14 "lex.txt"
{printf("STRING %s\n",yytext);}
YY_BREAK
case 4:
YY_RULE_SETUP
#line 15 "lex.txt"
{printf("CHAR_CONST %s\n",yytext);}
YY_BREAK
case 5:
YY_RULE_SETUP
#line 17 "lex.txt"
{printf("KEYWORD %s\n",yytext);}
YY_BREAK
case 6:
YY_RULE_SETUP
#line 18 "lex.txt"
{printf("STRING %s\n",yytext);}
YY_BREAK
case 7:
YY_RULE_SETUP
#line 19 "lex.txt"
{printf("CONST_real %s\n",yytext);}
YY_BREAK
case 8:
YY_RULE_SETUP
#line 20 "lex.txt"
{printf("NUM %s\n",yytext);}
YY_BREAK
case 9:
YY_RULE_SETUP
#line 21 "lex.txt"
{printf("PUN %s\n",yytext);}
YY_BREAK
case 10:
YY_RULE_SETUP
#line 22 "lex.txt"
{printf("ID %s\n",yytext);}
YY_BREAK
case 11:
YY_RULE_SETUP
#line 23 "lex.txt"
{printf("REL_OP %s\n",yytext);}
YY_BREAK
case 12:
YY_RULE_SETUP
#line 24 "lex.txt"
{printf("error1:%s\n",yytext);}
YY_BREAK
case 13:
YY_RULE_SETUP
#line 25 "lex.txt"
ECHO;
YY_BREAK
#line 903 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
yyterminate();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -