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

📄 flex.c

📁 Linux下VB解释器
💻 C
📖 第 1 页 / 共 5 页
字号:
/* 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 YY_FLEX_MAJOR_VERSION 2#define YY_FLEX_MINOR_VERSION 5#include <stdio.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 YY_USE_PROTOS/* The "const" storage-class-modifier is valid. */#define YY_USE_CONST#else /* ! __cplusplus */#if __STDC__#define YY_USE_PROTOS#define YY_USE_CONST#endif /* __STDC__ */#endif /* ! __cplusplus */#ifdef __TURBOC__#pragma warn -rch#pragma warn -use#include <io.h>#include <stdlib.h>#define YY_USE_CONST#define YY_USE_PROTOS#endif#ifdef YY_USE_CONST#define yyconst const#else#define yyconst#endif#ifdef YY_USE_PROTOS#define YY_PROTO(proto) proto#else#define YY_PROTO(proto) ()#endif/* Returned upon end-of-file. */#define 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 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 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 YYSTATE alias is for lex * compatibility. */#define YY_START ((yy_start - 1) / 2)#define YYSTATE YY_START/* Action number for EOF rule of a given start state. */#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)/* Special action meaning "start processing a new file". */#define YY_NEW_FILE yyrestart( yyin )#define YY_END_OF_BUFFER_CHAR 0/* Size of default input buffer. */#define YY_BUF_SIZE 16384typedef struct yy_buffer_state *YY_BUFFER_STATE;extern int yyleng;extern FILE *yyin, *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 ) *		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 yyless() call. *//* Return all but the first 'n' matched characters back to the input stream. */#define yyless(n) \	do \		{ \		/* Undo effects of setting up yytext. */ \		*yy_cp = yy_hold_char; \		YY_RESTORE_YY_MORE_OFFSET \		yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \		YY_DO_BEFORE_ACTION; /* set up yytext again */ \		} \	while ( 0 )#define unput(c) yyunput( c, 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 yy_size_t;struct yy_buffer_state{  FILE *yy_input_file;  char *yy_ch_buf;		/* input buffer */  char *yy_buf_pos;		/* current position in input buffer */  /* Size of input buffer in bytes, not including room for EOB   * characters.   */  yy_size_t yy_buf_size;  /* Number of characters read into yy_ch_buf, not including EOB   * characters.   */  int 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 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 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 yy_at_bol;  /* Whether to try to fill the input buffer when we reach the   * end of it.   */  int yy_fill_buffer;  int yy_buffer_status;#define YY_BUFFER_NEW 0#define YY_BUFFER_NORMAL 1  /* When an EOF's been seen but there's still some text to process   * then we mark the buffer as 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 yyrestart()), so that the user can continue scanning by   * just pointing yyin at a new input file.   */#define YY_BUFFER_EOF_PENDING 2};static YY_BUFFER_STATE 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 YY_CURRENT_BUFFER yy_current_buffer/* yy_hold_char holds the character lost when yytext is formed. */static char yy_hold_char;static int yy_n_chars;		/* number of characters read into yy_ch_buf */int yyleng;/* Points to current character in buffer. */static char *yy_c_buf_p = (char *) 0;static int yy_init = 1;		/* whether we need to initialize */static int yy_start = 0;	/* start state number *//* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin.  A bit of a hack ... */static int yy_did_buffer_switch_on_eof;void yyrestart YY_PROTO ((FILE * input_file));void yy_switch_to_buffer YY_PROTO ((YY_BUFFER_STATE new_buffer));void yy_load_buffer_state YY_PROTO ((void));YY_BUFFER_STATE yy_create_buffer YY_PROTO ((FILE * file, int size));void yy_delete_buffer YY_PROTO ((YY_BUFFER_STATE b));void yy_init_buffer YY_PROTO ((YY_BUFFER_STATE b, FILE * file));void yy_flush_buffer YY_PROTO ((YY_BUFFER_STATE b));#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )YY_BUFFER_STATE yy_scan_buffer YY_PROTO ((char *base, yy_size_t size));YY_BUFFER_STATE yy_scan_string YY_PROTO ((yyconst char *yy_str));YY_BUFFER_STATE yy_scan_bytes YY_PROTO ((yyconst char *bytes, int len));static void *yy_flex_alloc YY_PROTO ((yy_size_t));static void *yy_flex_realloc YY_PROTO ((void *, yy_size_t));static void yy_flex_free YY_PROTO ((void *));#define yy_new_buffer yy_create_buffer#define yy_set_interactive(is_interactive) \	{ \	if ( ! yy_current_buffer ) \		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \	yy_current_buffer->yy_is_interactive = is_interactive; \	}#define yy_set_bol(at_bol) \	{ \	if ( ! yy_current_buffer ) \		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \	yy_current_buffer->yy_at_bol = at_bol; \	}#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)#define YY_USES_REJECT#define yywrap() 1#define YY_SKIP_YYWRAPtypedef unsigned char YY_CHAR;FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;typedef int yy_state_type;extern char *yytext;#define yytext_ptr yytextstatic yy_state_type yy_get_previous_state YY_PROTO ((void));static yy_state_type yy_try_NUL_transYY_PROTO ((yy_state_type current_state));static int yy_get_next_buffer YY_PROTO ((void));static void yy_fatal_error YY_PROTO ((yyconst char msg[]));/* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */#define YY_DO_BEFORE_ACTION \	yytext_ptr = yy_bp; \	yytext_ptr -= yy_more_len; \	yyleng = (int) (yy_cp - yytext_ptr); \	yy_hold_char = *yy_cp; \	*yy_cp = '\0'; \	yy_c_buf_p = yy_cp;#define YY_NUM_RULES 208#define YY_END_OF_BUFFER 209static yyconst short int yy_acclist[889] = { 0,  16386, 4, 4, 209, 207, 208, 1, 207, 208, 7,  208, 196, 207, 208, 207, 208, 197, 207, 208, 197,  207, 208, 197, 199, 207, 208, 197, 207, 208, 198,  199, 207, 208, 8, 197, 207, 208, 194, 207, 208,  193, 207, 208, 195, 207, 208, 79, 207, 208, 174,  207, 208, 188, 207, 208, 204, 207, 208, 204, 207,  208, 204, 207, 208, 204, 207, 208, 204, 207, 208,  204, 207, 208, 204, 207, 208, 204, 207, 208, 204,  207, 208, 204, 207, 208, 204, 207, 208, 204, 207,  208, 204, 207, 208, 204, 207, 208, 204, 207, 208,  204, 207, 208, 204, 207, 208, 204, 207, 208, 204,  207, 208, 204, 207, 208, 204, 207, 208, 204, 207,  208, 1, 207, 208, 16386, 207, 208, 207, 208, 8194,  198, 199, 207, 208, 208, 3, 208, 4, 208, 5,  208, 208, 15, 208, 1, 6, 206, 206, 189, 199,  10, 199, 198, 199, 191, 190, 192, 205, 204, 204,  204, 204, 204, 42, 204, 173, 204, 204, 204, 204,  204, 204, 204, 204, 204, 204, 204, 204, 204, 204,  204, 40, 204, 204, 204, 204, 204, 204, 204, 204,  67, 204, 204, 204, 204, 204, 204, 204, 61, 204,  204, 204, 204, 204, 204, 204, 204, 204, 204, 204,  204, 204, 204, 57, 204, 204, 90, 204, 204, 204,  200, 204, 204, 204, 204, 204, 204, 204, 204, 204,  204, 204, 204, 204, 204, 204, 204, 204, 204, 204,  204, 204, 204, 204, 41, 204, 204, 204, 204, 204,  204, 204, 204, 204, 204, 204, 204, 1, 16386, 8194,  17, 18, 8194, 198, 199, 3, 4, 14, 199, 10,  204, 141, 204, 204, 89, 204, 204, 169, 204, 204,  204, 204, 204, 204, 204, 204, 108, 204, 204, 204,  204, 204, 204, 204, 204, 204, 204, 131, 204, 204,  204, 172, 204, 204, 82, 204, 16, 204, 97, 204,  204, 84, 204, 159, 204, 92, 204, 204, 204, 204,  204, 135, 204, 204, 204, 34, 204, 204, 204, 204,  204, 204, 204, 204, 204, 204, 204, 139, 204, 204,  204, 157, 204, 123, 204, 204, 204, 136, 204, 204,  204, 204, 146, 204, 204, 145, 204, 143, 204, 204,  117, 204, 204, 91, 204, 204, 204, 204, 204, 204,  204, 204, 204, 144, 204, 204, 204, 204, 12, 204,  204, 204, 204, 204, 204, 204, 204, 204, 204, 204,  142, 204, 129, 204, 204, 204, 138, 204, 204, 204,  204, 53, 204, 204, 204, 133, 204, 204, 204, 204,  204, 204, 204, 204, 204, 204, 204, 158, 204, 204,  204, 204, 204, 204, 93, 204, 14, 204, 132, 204,  204, 130, 204, 134, 204, 204, 122, 204, 121, 204,  171, 205, 128, 204, 204, 204, 37, 204, 168, 205,  204, 204, 204, 204, 204, 204, 204, 87, 204, 204,  204, 16, 16, 204, 63, 204, 204, 204, 204, 204,  204, 85, 204, 204, 204, 103, 204, 140, 204, 204,  204, 187, 204, 204, 51, 204, 170, 205, 204, 204,  204, 204, 204, 204, 204, 98, 204, 204, 39, 204,  204, 204, 149, 205, 204, 46, 204, 204, 68, 204,  204, 204, 180, 204, 182, 204, 204, 204, 204, 86,  204, 107, 204, 204, 9, 11, 204, 204, 204, 204,  204, 204, 204, 204, 204, 70, 204, 204, 204, 137,  204, 204, 45, 204, 160, 205, 204, 204, 204, 71,  204, 105, 204, 62, 204, 204, 204, 204, 204, 202,  204, 204, 204, 204, 118, 204, 48, 204, 204, 204,  204, 14, 204, 204, 204, 35, 204, 204, 102, 204,  69, 204, 75, 204, 204, 204, 204, 99, 204, 178,  205, 204, 16, 16, 204, 204, 64, 204, 66, 204,  33, 204, 201, 204, 204, 204, 203, 204, 204, 204,  204, 52, 204, 204, 204, 80, 204, 155, 204, 204,  60, 204, 147, 205, 55, 204, 204, 204, 204, 204,  204, 119, 204, 181, 205, 72, 204, 204, 204, 204,  204, 83, 204, 9, 9, 204, 204, 204, 204, 204,  204, 204, 204, 204, 120, 204, 185, 204, 204, 204,  204, 204, 179, 205, 183, 204, 204, 154, 205, 50,  204, 204, 73, 204, 47, 204, 204, 204, 14, 204,  204, 204, 204, 110, 204, 100, 204, 76, 204, 204,  204, 204, 204, 65, 204, 24, 25, 204, 32, 204,  104, 204, 204, 204, 13, 204, 161, 205, 204, 150,  205, 152, 205, 164, 204, 204, 162, 204, 163, 204,  204, 95, 204, 204, 111, 204, 204, 204, 204, 49,  204, 204, 81, 204, 204, 148, 205, 156, 204, 153,  205, 204, 175, 204, 186, 205, 56, 204, 204, 36,  204, 177, 204, 184, 205, 204, 151, 205, 94, 204,  204, 204, 204, 204, 109, 204, 112, 205, 21, 204,  204, 38, 204, 204, 23, 19, 204, 114, 205, 204,  204, 204, 204, 204, 96, 204, 204, 43, 204, 204,  88, 204, 74, 204, 204, 204, 176, 205, 204, 44,  204, 124, 204, 204, 204, 113, 205, 59, 204, 204,  20, 205, 204, 204, 204, 166, 204, 127, 204, 204,  204, 204, 204, 101, 204, 204, 126, 204, 77, 204,  204, 204, 26, 27, 204, 58, 204, 204, 204, 127,  204, 115, 204, 106, 204, 204, 204, 204, 78, 204,  204, 28, 29, 116, 205, 204, 204, 127, 204, 54,  204, 204, 204, 30, 31, 165, 204, 204, 204, 204,  204, 204, 204, 204, 16, 204, 167, 204, 204, 125,  204, 204, 204, 204, 204, 204, 22, 204};static yyconst short int yy_accept[669] = { 0,  1, 1, 2, 2, 2, 3, 4, 4, 4, 4,  4, 5, 7, 10, 12, 15, 17, 20, 23, 27,  30, 34, 38, 41, 44, 47, 50, 53, 56, 59,  62, 65, 68, 71, 74, 77, 80, 83, 86, 89,  92, 95, 98, 101, 104, 107, 110, 113, 116, 119,  122, 126, 128, 130, 135, 136, 138, 140, 142, 143,  145, 146, 147, 147, 148, 149, 150, 151, 151, 152,  153, 155, 156, 157, 158, 159, 159, 160, 161, 162,  163, 164, 166, 168, 169, 170, 171, 172, 173, 174,  175, 176, 177, 178, 179, 180, 181, 182, 184, 185,  186, 187, 188, 189, 190, 191, 193, 194, 195, 196,  197, 198, 199, 201, 202, 203, 204, 205, 206, 207,  208, 209, 210, 211, 212, 213, 214, 216, 217, 219,  220, 221, 223, 224, 225, 226, 227, 228, 229, 230,  231, 232, 233, 234, 235, 236, 237, 238, 239, 240,

⌨️ 快捷键说明

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