php_lexer.c

来自「wxWidgets写的电驴」· C语言 代码 · 共 2,192 行 · 第 1/4 页

C
2,192
字号
#line 2 "php_lexer.c"/* 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 YY_FLEX_MAJOR_VERSION 2#define YY_FLEX_MINOR_VERSION 5#include <stdio.h>#include <unistd.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_REJECTtypedef unsigned char YY_CHAR;FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;typedef int yy_state_type;extern int yylineno;int yylineno = 1;extern char *yytext;#define yytext_ptr yytextstatic yy_state_type yy_get_previous_state YY_PROTO(( void ));static yy_state_type yy_try_NUL_trans YY_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 76#define YY_END_OF_BUFFER 77static yyconst short int yy_acclist[303] =    {   0,       77,   75,   76,   74,   75,   76,   74,   76,   75,   76,       75,   76,   62,   75,   76,   75,   76,   75,   76,   75,       76,   75,   76,   75,   76,   75,   76,   75,   76,   75,       76,   75,   76,   75,   76,   70,   75,   76,   70,   75,       76,   75,   76,   75,   76,   75,   76,   75,   76,   68,       75,   76,   75,   76,   68,   75,   76,   68,   75,   76,       68,   75,   76,   68,   75,   76,   68,   75,   76,   68,       75,   76,   68,   75,   76,   68,   75,   76,   68,   75,       76,   68,   75,   76,   68,   75,   76,   68,   75,   76,       68,   75,   76,   68,   75,   76,   68,   75,   76,   68,       75,   76,   75,   76,   76,   76,   63,   76,   64,   76,       64,   76,   53,   72,   67,   44,   38,   45,   73,   41,       31,   39,   32,   40,   28,   71,   43,   65,   62,   42,       71,   70,   54,   52,   33,   55,    2,   68,   47,   68,       68,   17,   68,   68,   68,   68,   68,   68,   13,   68,       68,   68,   68,   68,   68,   68,   68,    7,   68,   68,       68,   34,   68,   68,   68,   68,   68,   68,   68,   46,       37,   66,   63,   64,   67,   71,   69,   48,   50,   49,       36,   68,   68,   68,   68,   68,   68,    3,   68,   68,       68,   68,   68,   14,   68,   68,   68,   68,   27,   68,       68,   68,   68,   68,   68,   35,   68,   51,   68,   68,       21,   68,   68,   68,   68,   25,   68,    8,   68,   68,       68,   68,   68,   68,   68,   68,   29,   68,   68,   68,       68,   68,   68,   58,    1,   30,   68,   23,   68,    5,       68,   68,   68,   68,   68,   10,   68,   68,   68,   68,       68,   68,   26,   68,   68,   68,   68,   11,   68,   61,       59,   68,   68,    9,   68,   15,   68,   68,   68,   68,       68,   56,   68,    6,   68,   57,   68,   19,   68,   68,       22,   68,   68,   68,   68,   16,   68,   68,   60,   24,       68,   68,   68,   12,   68,    4,   68,   68,   20,   68,       18,   68    } ;static yyconst short int yy_accept[263] =    {   0,        1,    1,    1,    1,    1,    1,    1,    2,    4,    7,        9,   11,   13,   16,   18,   20,   22,   24,   26,   28,       30,   32,   34,   36,   39,   42,   44,   46,   48,   50,       53,   55,   58,   61,   64,   67,   70,   73,   76,   79,       82,   85,   88,   91,   94,   97,  100,  103,  105,  106,      107,  109,  111,  113,  114,  114,  115,  115,  116,  117,      118,  119,  119,  120,  120,  120,  120,  120,  120,  120,      120,  120,  121,  122,  123,  124,  125,  126,  127,  128,      129,  130,  131,  132,  133,  133,  133,  134,  134,  135,      136,  137,  137,  138,  139,  140,  141,  142,  144,  145,      146,  147,  148,  149,  151,  152,  153,  154,  155,  156,      157,  158,  160,  161,  162,  164,  165,  166,  167,  168,      169,  170,  171,  172,  173,  174,  175,  175,  176,  176,      176,  176,  176,  176,  176,  177,  178,  179,  179,  180,      181,  183,  184,  185,  186,  187,  188,  190,  191,  192,      193,  194,  196,  197,  198,  199,  201,  202,  203,  204,      205,  206,  208,  209,  209,  209,  209,  209,  209,  209,      209,  210,  211,  213,  214,  215,  216,  218,  220,  221,      222,  223,  224,  225,  226,  227,  229,  230,  231,  232,      233,  234,  234,  234,  234,  234,  235,  235,  235,  235,      236,  238,  240,  242,  243,  244,  245,  246,  248,  249,      250,  251,  252,  253,  255,  256,  257,  258,  260,  260,      261,  261,  261,  261,  261,  262,  262,  263,  264,  266,      268,  269,  270,  271,  272,  274,  276,  278,  280,  280,      280,  280,  281,  283,  284,  285,  286,  288,  289,  289,      289,  289,  290,  292,  293,  294,  296,  298,  299,  301,      303,  303    } ;static yyconst int yy_ec[256] =    {   0,        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,        4,    4,    5,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    2,    6,    7,    8,    9,   10,   11,   12,   13,       14,   15,   16,    1,   17,   18,   19,   20,   21,   21,       21,   21,   21,   21,   21,   21,   21,    1,    1,   22,       23,   24,   25,    1,   26,   26,   26,   26,   26,   26,       27,   27,   27,   27,   27,   27,   27,   27,   27,   27,       27,   27,   27,   27,   27,   27,   27,   27,   27,   27,        1,   28,    1,   29,   27,    1,   30,   31,   32,   33,       34,   35,   36,   37,   38,   27,   39,   40,   27,   41,       42,   43,   27,   44,   45,   46,   47,   27,   48,   49,       50,   27,    1,   51,    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 yyconst int yy_meta[52] =    {   0,        1,    1,    2,    1,    2,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    3,        3,    1,    1,    1,    1,    4,    5,    1,    1,    4,        4,    4,    4,    4,    4,    5,    5,    5,    5,    5,        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,        1    } ;static yyconst short int yy_base[271] =    {   0,        0,    0,  318,  317,   49,   50,  331,  334,  334,  334,      307,   49,  334,    0,  306,   46,   46,   57,  305,   44,       47,   42,   53,   60,   64,   64,   70,   73,  303,    0,      303,   59,  281,   31,   41,   66,   63,  284,  288,  284,      287,  276,  275,  284,   65,  280,  274,   68,  334,  296,        0,  334,  311,  290,   92,  334,  309,    0,  334,  334,      334,   96,  334,  308,  110,  268,  267,  268,  266,  272,      259,  334,  334,  334,  334,  334,  334,   96,  334,  334,      334,  334,  101,  105,    0,  281,  334,  260,  279,  334,      334,  278,  334,    0,  334,  267,  255,    0,  264,  252,      255,  260,  260,    0,  256,  247,  258,  252,  245,  247,      245,    0,  241,  237,    0,  246,  237,  252,  243,  242,      235,  334,  334,  334,    0,  334,  255,    0,  235,  229,      233,  228,  243,  228,  107,    0,  334,  234,  334,  334,        0,  240,  239,  234,   84,  237,    0,  224,  231,   99,      218,  229,  230,  230,  214,    0,  218,  211,  211,  210,      215,    0,  334,  214,  222,  222,  136,  211,  212,  206,      198,  208,    0,  200,  207,  197,    0,  205,  200,  206,      192,  202,  208,  191,  206,    0,  189,  190,  195,  200,      197,  137,  190,  183,  138,  334,  192,  144,  186,  334,        0,    0,    0,  185,  185,  189,  179,    0,  184,  183,      188,  181,  178,    0,  176,  184,  178,    0,  147,  334,      184,  179,  178,  151,  334,  175,  163,  155,    0,  139,      121,  126,  127,  121,    0,    0,    0,    0,  118,   98,      154,  102,    0,  105,  101,   98,    0,   90,  155,  158,      160,  334,    0,   86,   77,    0,    0,   29,    0,    0,      334,  174,  179,  184,  186,  191,  194,  199,  202,  205    } ;static yyconst short int yy_def[271] =    {   0,      261,    1,  262,  262,  263,  263,  261,  261,  261,  261,      261,  264,  261,  265,  261,  261,  266,  261,  261,  261,      261,  261,  261,  261,  261,  261,  261,  261,  261,  267,      261,  267,  267,  267,  267,  267,  267,  267,  267,  267,      267,  267,  267,  267,  267,  267,  267,  261,  261,  261,      268,  261,  261,  261,  264,  261,  264,  269,  261,  261,      261,  266,  261,  266,  261,  261,  261,  261,  261,  261,      261,  261,  261,  261,  261,  261,  261,  261,  261,  261,      261,  261,  261,  261,  270,  261,  261,  261,  261,  261,      261,  261,  261,  267,  261,  267,  267,  267,  267,  267,      267,  267,  267,  267,  267,  267,  267,  267,  267,  267,      267,  267,  267,  267,  267,  267,  267,  267,  267,  267,      267,  261,  261,  261,  268,  261,  261,  269,  261,  261,      261,  261,  261,  261,  261,  270,  261,  261,  261,  261,      267,  267,  267,  267,  267,  267,  267,  267,  267,  267,      267,  267,  267,  267,  267,  267,  267,  267,  267,  267,      267,  267,  261,  261,  261,  261,  261,  261,  261,  261,      267,  267,  267,  267,  267,  267,  267,  267,  267,  267,      267,  267,  267,  267,  267,  267,  267,  267,  267,  267,      267,  261,  261,  261,  261,  261,  261,  261,  261,  261,      267,  267,  267,  267,  267,  267,  267,  267,  267,  267,      267,  267,  267,  267,  267,  267,  267,  267,  261,  261,      261,  261,  261,  261,  261,  261,  267,  267,  267,  267,      267,  267,  267,  267,  267,  267,  267,  267,  261,  261,      261,  267,  267,  267,  267,  267,  267,  267,  261,  261,      261,  261,  267,  267,  267,  267,  267,  267,  267,  267,        0,  261,  261,  261,  261,  261,  261,  261,  261,  261    } ;static yyconst short int yy_nxt[386] =    {   0,        8,    9,   10,    9,    9,   11,   12,   13,   14,   15,       16,   17,   18,    8,   19,   20,   21,   22,   23,   24,       25,   26,   27,   28,   29,   30,   30,    8,   31,   32,       33,   34,   35,   36,   37,   38,   30,   39,   30,   40,       41,   42,   43,   44,   45,   30,   30,   46,   47,   30,       48,   52,   52,   53,   53,   56,   60,   63,   65,   73,      100,   78,   78,   75,   79,  260,   74,   80,   61,   76,       77,   81,  101,   64,  102,   82,   57,   83,  103,   84,       84,   83,  104,   84,   84,   86,   87,   66,   88,   67,      122,   68,   89,   90,   69,   91,   92,  105,   56,   96,       70,   71,   97,   98,  109,  106,  107,   63,   85,  110,      118,   65,  119,  259,  108,   78,   78,  258,  123,   57,      135,  135,   83,   64,   84,   84,  135,  135,  174,  175,      257,  256,  255,  179,  254,  253,  180,  195,  219,  195,       66,  250,   67,  181,   68,  224,  182,   69,  219,  196,      220,  196,  224,   70,   71,  251,  219,  225,  249,  195,      220,  251,  248,  247,  225,  246,  245,  252,  220,  197,      221,  196,  244,  252,   49,   49,   49,   49,   49,   51,       51,   51,   51,   51,   55,   55,   55,   55,   55,   58,       58,   62,   62,   62,   62,   62,   94,   94,   94,  125,      243,  125,  125,  125,  128,  128,  128,  136,  136,  242,      241,  240,  198,  239,  238,  237,  236,  235,  234,  233,      232,  231,  230,  229,  228,  227,  226,  223,  198,  222,      218,  217,  216,  215,  214,  213,  212,  211,  210,  209,      208,  207,  206,  205,  204,  203,  202,  201,  200,  199,      198,  194,  193,  192,  191,  190,  189,  188,  187,  186,      185,  184,  183,  147,  178,  177,  176,  173,  172,  171,      170,  169,  168,  167,  166,  165,  164,  163,  162,  161,      160,  159,  158,  157,  156,  155,  154,  153,  152,  151,      150,  149,  148,  147,  146,  145,  144,  143,  142,  141,      140,  139,  138,  137,  134,  133,  132,  131,  130,  129,      261,  261,  127,  126,  124,  121,  120,  117,  116,  115,      114,  113,  112,  111,   99,   95,   93,   72,   59,   54,      261,   50,   50,    7,  261,  261,  261,  261,  261,  261,      261,  261,  261,  261,  261,  261,  261,  261,  261,  261,      261,  261,  261,  261,  261,  261,  261,  261,  261,  261,      261,  261,  261,  261,  261,  261,  261,  261,  261,  261,      261,  261,  261,  261,  261,  261,  261,  261,  261,  261,      261,  261,  261,  261,  261    } ;static yyconst short int yy_chk[386] =    {   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,    5,    6,    5,    6,   12,   16,   17,   18,   20,       34,   22,   22,   21,   22,  258,   20,   23,   16,   21,       21,   23,   34,   17,   35,   23,   12,   24,   35,   24,       24,   25,   35,   25,   25,   26,   26,   18,   26,   18,       48,   18,   27,   27,   18,   28,   28,   36,   55,   32,       18,   18,   32,   32,   37,   36,   36,   62,   24,   37,       45,   65,   45,  255,   36,   78,   78,  254,   48,   55,       83,   83,   84,   62,   84,   84,  135,  135,  145,  145,      248,  246,  245,  150,  244,  242,  150,  167,  192,  195,       65,  240,   65,  150,   65,  198,  150,   65,  219,  167,      192,  195,  224,   65,   65,  241,  249,  198,  239,  250,      219,  251,  234,  233,  224,  232,  231,  241,  249,  167,      192,  250,  230,  251,  262,  262,  262,  262,  262,  263,      263,  263,  263,  263,  264,  264,  264,  264,  264,  265,      265,  266,  266,  266,  266,  266,  267,  267,  267,  268,      228,  268,  268,  268,  269,  269,  269,  270,  270,  227,      226,  223,  222,  221,  217,  216,  215,  213,  212,  211,      210,  209,  207,  206,  205,  204,  199,  197,  194,  193,      191,  190,  189,  188,  187,  185,  184,  183,  182,  181,      180,  179,  178,  176,  175,  174,  172,  171,  170,  169,      168,  166,  165,  164,  161,  160,  159,  158,  157,  155,      154,  153,  152,  151,  149,  148,  146,  144,  143,  142,

⌨️ 快捷键说明

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