lex.yy.c

来自「java interpreter in formal language and 」· C语言 代码 · 共 2,178 行 · 第 1/4 页

C
2,178
字号
      173,  216,  216,  216,  216,  216,  216,  216,  150,  145,      146,  147,  145,  145,  216,  216,  216,  216,  216,  174,      216,  216,  169,  216,  216,  216,  216,  216,  216,  216,      150,  145,  146,  147,  145,  145,  216,  216,  216,  216,      216,  148,  216,  216,  149,  216,  216,  216,  216,  216,      216,  216,  150,  145,  146,  147,  145,  145,  216,  216,      216,  216,  216,  174,  216,  216,  169,  216,  216,  216,      216,  216,  216,  216,  150,  147,  170,  147,  147,  147,      216,  216,  216,  216,  216,  119,  216,  216,  187,  216,      216,  216,  216,  216,  216,  216,  172,  113,  114,   53,      113,  113,  216,  216,  216,  216,  216,  115,  216,  216,      116,  216,  216,  216,  216,  216,  216,  216,  117,  191,      192,  193,  191,  191,  216,  216,  216,  216,  216,  194,      216,  216,  195,  216,  216,  216,  216,  216,  216,  216,      196,  145,  146,  147,  145,  145,  216,  216,  216,  216,      216,  174,  216,  216,  169,  216,  216,  216,  216,  216,      216,  216,  150,  145,  146,  147,  145,  145,  216,  216,      216,  216,  216,  148,  216,  216,  149,  216,  216,  216,      216,  216,  216,  216,  150,  145,  146,  147,  145,  145,      216,  216,  216,  216,  216,  148,  216,  216,  149,  216,      216,  216,  216,  216,  216,  216,  150,  145,  146,  147,      145,  145,  216,  216,  216,  216,  216,  148,  216,  216,      149,  216,  216,  216,  216,  216,  216,  216,  150,  145,      146,  147,  145,  145,  216,  216,  216,  216,  216,  148,      216,  216,  169,  216,  216,  216,  216,  216,  216,  216,      150,  147,  170,  147,  147,  147,  216,  216,  216,  216,      216,  119,  216,  216,  171,  216,  216,  216,  216,  216,      216,  216,  172,  191,  192,  193,  191,  191,  216,  216,      216,  216,  216,  194,  216,  216,  195,  216,  216,  216,      216,  216,  216,  216,  196,  145,  146,  147,  145,  145,      216,  216,  216,  216,  216,  174,  216,  216,  169,  216,      216,  216,  216,  216,  216,  216,  150,  145,  146,  147,      145,  145,  216,  216,  216,  216,  216,  148,  216,  216,      149,  216,  216,  216,  216,  216,  216,  216,  150,  147,      170,  147,  147,  147,  216,  216,  216,  216,  216,  119,      216,  216,  171,  216,  216,  216,  216,  216,  216,  216,      172,   39,   39,   39,   39,   43,   43,  216,   43,   82,      216,   82,   82,   83,   83,   83,   83,  112,  112,  112,      112,  118,  118,  118,  118,  144,  144,  144,  144,  190,      190,  190,  190,  205,  205,  205,  205,    3,  216,  216,      216,  216,  216,  216,  216,  216,  216,  216,  216,  216,      216,  216,  216,  216,  216,  216,  216,  216,  216,  216,      216,  216,  216,  216,  216,  216,  216,  216,  216,  216,      216,  216,  216,  216,  216,  216,  216,  216,  216,  216,      216,  216,  216,  216    } ;static yyconst flex_int16_t yy_chk[845] =    {   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,    8,   15,   24,   55,       15,   24,   55,   30,  219,   26,   32,   32,  212,   27,        8,   21,   21,   21,   21,   21,   26,   27,   30,   28,       33,   30,   27,   39,   21,   28,   28,   41,   33,  211,       41,   44,   21,   72,   44,  210,   97,   39,   72,   97,      171,   41,  209,  171,   41,   44,   41,  205,   44,  204,       44,   85,   85,   85,   85,   85,  188,  206,  201,  188,      206,   85,  200,  197,   85,  183,  182,  181,  180,  178,      177,  176,   85,   87,   87,   87,   87,   87,  175,  172,      166,  165,  164,  163,  162,  161,   87,  160,  159,  158,      155,  153,  152,  143,   87,  112,  112,  112,  112,  112,      139,  138,  137,  136,  135,  134,  133,  131,  112,  130,      129,  128,  127,  126,  124,  122,  112,  113,  113,  113,      113,  113,  121,  119,  118,  110,  109,  108,  107,  106,      113,  105,  104,  103,  102,  101,  100,   99,  113,  114,      114,  114,  114,  114,   98,   95,   94,   93,   92,   91,       90,   89,  114,   88,   86,   84,   83,   80,   79,   78,      114,  115,  115,  115,  115,  115,   77,   76,   75,   74,       73,  115,   71,   70,  115,   69,   68,   66,   65,   64,       63,   62,  115,  116,  116,  116,  116,  116,   60,   59,       58,   57,   54,  116,   48,   47,  116,   43,   36,   35,       34,   31,   29,   25,  116,  117,  117,  117,  117,  117,       23,   22,   19,   18,   17,   16,   14,   13,  117,   10,        9,    7,    6,    3,    0,    0,  117,  120,  120,  120,      120,  120,    0,    0,    0,    0,    0,  120,    0,    0,      120,    0,    0,    0,    0,    0,    0,    0,  120,  144,      144,  144,  144,  144,    0,    0,    0,    0,    0,  144,        0,    0,  144,    0,    0,    0,    0,    0,    0,    0,      144,  145,  145,  145,  145,  145,    0,    0,    0,    0,        0,  145,    0,    0,  145,    0,    0,    0,    0,    0,        0,    0,  145,  146,  146,  146,  146,  146,    0,    0,        0,    0,    0,  146,    0,    0,  146,    0,    0,    0,        0,    0,    0,    0,  146,  147,  147,  147,  147,  147,        0,    0,    0,    0,    0,  147,    0,    0,  147,    0,        0,    0,    0,    0,    0,    0,  147,  148,  148,  148,      148,  148,    0,    0,    0,    0,    0,    0,    0,    0,      148,    0,    0,    0,    0,    0,    0,    0,  148,  149,      149,  149,  149,  149,    0,    0,    0,    0,    0,  149,        0,    0,  149,    0,    0,    0,    0,    0,    0,    0,      149,  150,  150,  150,  150,  150,    0,    0,    0,    0,        0,  150,    0,    0,  150,    0,    0,    0,    0,    0,        0,    0,  150,  169,  169,  169,  169,  169,    0,    0,        0,    0,    0,  169,    0,    0,  169,    0,    0,    0,        0,    0,    0,    0,  169,  170,  170,  170,  170,  170,        0,    0,    0,    0,    0,  170,    0,    0,  170,    0,        0,    0,    0,    0,    0,    0,  170,  173,  173,  173,      173,  173,    0,    0,    0,    0,    0,  173,    0,    0,      173,    0,    0,    0,    0,    0,    0,    0,  173,  174,      174,  174,  174,  174,    0,    0,    0,    0,    0,  174,        0,    0,  174,    0,    0,    0,    0,    0,    0,    0,      174,  187,  187,  187,  187,  187,    0,    0,    0,    0,        0,  187,    0,    0,  187,    0,    0,    0,    0,    0,        0,    0,  187,  189,  189,  189,  189,  189,    0,    0,        0,    0,    0,  189,    0,    0,  189,    0,    0,    0,        0,    0,    0,    0,  189,  190,  190,  190,  190,  190,        0,    0,    0,    0,    0,  190,    0,    0,  190,    0,        0,    0,    0,    0,    0,    0,  190,  191,  191,  191,      191,  191,    0,    0,    0,    0,    0,  191,    0,    0,      191,    0,    0,    0,    0,    0,    0,    0,  191,  192,      192,  192,  192,  192,    0,    0,    0,    0,    0,  192,        0,    0,  192,    0,    0,    0,    0,    0,    0,    0,      192,  193,  193,  193,  193,  193,    0,    0,    0,    0,        0,  193,    0,    0,  193,    0,    0,    0,    0,    0,        0,    0,  193,  194,  194,  194,  194,  194,    0,    0,        0,    0,    0,  194,    0,    0,  194,    0,    0,    0,        0,    0,    0,    0,  194,  195,  195,  195,  195,  195,        0,    0,    0,    0,    0,  195,    0,    0,  195,    0,        0,    0,    0,    0,    0,    0,  195,  196,  196,  196,      196,  196,    0,    0,    0,    0,    0,  196,    0,    0,      196,    0,    0,    0,    0,    0,    0,    0,  196,  207,      207,  207,  207,  207,    0,    0,    0,    0,    0,  207,        0,    0,  207,    0,    0,    0,    0,    0,    0,    0,      207,  217,  217,  217,  217,  218,  218,    0,  218,  220,        0,  220,  220,  221,  221,  221,  221,  222,  222,  222,      222,  223,  223,  223,  223,  224,  224,  224,  224,  225,      225,  225,  225,  226,  226,  226,  226,  216,  216,  216,      216,  216,  216,  216,  216,  216,  216,  216,  216,  216,      216,  216,  216,  216,  216,  216,  216,  216,  216,  216,      216,  216,  216,  216,  216,  216,  216,  216,  216,  216,      216,  216,  216,  216,  216,  216,  216,  216,  216,  216,      216,  216,  216,  216    } ;static yy_state_type yy_last_accepting_state;static char *yy_last_accepting_cpos;extern int yy_flex_debug;int yy_flex_debug = 0;/* 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_OFFSETchar *yytext;#line 1 "java.l"#line 2 "java.l"#include <stdlib.h>//#include "types.h"#include "y.tab.h"#line 714 "lex.yy.c"#define INITIAL 0#ifndef YY_NO_UNISTD_H/* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */#include <unistd.h>#endif#ifndef YY_EXTRA_TYPE#define YY_EXTRA_TYPE void *#endifstatic int yy_init_globals (void );/* Macros after this point can all be overridden by user definitions in * section 1. */#ifndef YY_SKIP_YYWRAP#ifdef __cplusplusextern "C" int yywrap (void );#elseextern int yywrap (void );#endif#endif    static void yyunput (int c,char *buf_ptr  );    #ifndef yytext_ptrstatic void yy_flex_strncpy (char *,yyconst char *,int );#endif#ifdef YY_NEED_STRLENstatic int yy_flex_strlen (yyconst char * );#endif#ifndef YY_NO_INPUT#ifdef __cplusplusstatic int yyinput (void );#elsestatic int input (void );#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_LVALUE->yy_is_interactive ) \		{ \		int c = '*'; \		size_t 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 \		{ \		errno=0; \		while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \			{ \			if( errno != EINTR) \				{ \				YY_FATAL_ERROR( "input in flex scanner failed" ); \				break; \				} \			errno=0; \			clearerr(yyin); \			} \		}\\#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/* end tables serialization structures and prototypes *//* Default declaration of generated scanner - a define so the user can * easily add parameters. */#ifndef YY_DECL#define YY_DECL_IS_OURS 1extern int yylex (void);#define YY_DECL int yylex (void)#endif /* !YY_DECL *//* 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/** The main scanner function which does all the work. */YY_DECL{	register yy_state_type yy_current_state;	register char *yy_cp, *yy_bp;	register int yy_act;    #line 59 "java.l"#line 870 "lex.yy.c"	if ( !(yy_init) )		{		(yy_init) = 1;#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 ) {			yyensure_buffer_stack ();			YY_CURRENT_BUFFER_LVALUE =				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 >= 217 )					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] != 798 );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 61 "java.l"{return LITERAL;}	YY_BREAKcase 2:YY_RULE_SETUP#line 62 "java.l"{return LITERAL;}	YY_BREAKcase 3:YY_RULE_SETUP#line 64 "java.l"{return yytext[0];}	YY_BREAKcase 4:YY_RULE_SETUP#line 66 "java.l"{return yytext[0];}	YY_BREAKcase 5:YY_RULE_SETUP#line 68 "java.l"{return OP_ADD;}	YY_BREAKcase 6:YY_RULE_SETUP#line 69 "java.l"{return OP_SUB;}	YY_BREAKcase 7:YY_RULE_SETUP#line 70 "java.l"{return OP_MUL;}	YY_BREAKcase 8:YY_RULE_SETUP#line 71 "java.l"{return OP_DIV;}	YY_BREAKcase 9:YY_RULE_SETUP#line 73 "java.l"{return OP_EQ;}	YY_BREAKcase 10:YY_RULE_SETUP#line 74 "java.l"{return OP_LE;}	YY_BREAKcase 11:YY_RULE_SETUP#line 75 "java.l"{return OP_GE;}	YY_BREAKcase 12:YY_RULE_SETUP#line 76 "java.l"{return OP_NE;}	YY_BREAKcase 13:YY_RULE_SETUP#line 77 "java.l"{return OP_Logical_OR;}	YY_BREAKcase 14:YY_RULE_SETUP#line 78 "java.l"{return OP_Logical_AND;}	YY_BREAKcase 15:YY_RULE_SETUP#line 79 "java.l"{return OP_INC;}	YY_BREAKcase 16:YY_RULE_SETUP#line 80 "java.l"{return OP_DEC;}	YY_BREAKcase 17:YY_RULE_SETUP#line 83 "java.l"{return CLASS;}	YY_BREAKcase 18:YY_RULE_SETUP#line 84 "java.l"{return ABSTRACT;}	YY_BREAKcase 19:YY_RULE_SETUP#line 85 "java.l"{return IMPLEMENTS;}	YY_BREAKcase 20:YY_RULE_SETUP#line 86 "java.l"{return INTERFACE;}	YY_BREAKcase 21:YY_RULE_SETUP#line 87 "java.l"{return EXTENDS;}	YY_BREAKcase 22:YY_RULE_SETUP#line 89 "java.l"{return PACKAGE;}	YY_BREAKcase 23:YY_RULE_SETUP#line 90 "java.l"{return IMPORT;}	YY_BREAKcase 24:YY_RULE_SETUP#line 92 "java.l"{return PUBLIC;}	YY_BREAKcase 25:YY_RULE_SETUP#line 93 "java.l"{return STATIC;}	YY_BREAKcase 26:YY_RULE_SETUP#line 94 "java.l"{return PRIVATE;}	YY_BREAKcase 27:YY_RULE_SETUP#line 95 "java.l"{return PROTECTED;}	YY_BREAKcase 28:YY_RULE_SETUP#line 96 "java.l"{return FINAL;}

⌨️ 快捷键说明

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