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

📄 css_lex.c

📁 著名的标准C++的html解析器
💻 C
📖 第 1 页 / 共 5 页
字号:
      173,  173,  173,  173,  173,  173,  173,  173,  173,  173,      173,  173,  173,  173,  173,  173,  173,  173,  173,  173,      173,  173,  173,  173,  173,  173,  173,  173,  173,  173,      173,  173,  173,  173,  173,  173,  173,  173,  174,  174,      174,  174,  174,  174,  174,  174,  174,  174,  174,  174,      174,  174,  174,  174,    0,  174,  174,    0,  174,  174,      174,  174,  235,  235,  235,  235,    0,    0,    0,    0,      235,    0,    0,    0,    0,    0,  235,    0,    0,    0,      235,    0,    0,    0,  174,  175,  175,  175,  175,  175,      175,  175,  175,  175,  175,  175,  175,  175,  175,  175,      175,    0,  175,  175,    0,  175,  175,  175,  175,  238,      238,  238,  238,  283,  279,  279,  279,  279,    0,  283,      283,  283,  283,  283,  283,  238,    0,  238,  279,    0,        0,  175,  176,  176,  176,  176,  176,  176,  176,  176,      176,  176,  176,  176,  176,  176,  176,  176,    0,  176,      176,    0,  176,  176,  176,  176,  258,  258,  258,  258,      286,    0,    0,    0,    0,    0,  286,  286,  286,  286,      286,  286,  258,    0,  258,    0,    0,    0,  176,  177,      177,  177,  177,  177,  177,  177,  177,  177,  177,  177,      177,  177,  177,  177,  177,    0,  177,  177,    0,  177,      177,  177,  177,  277,  277,  277,  277,    0,    0,    0,        0,  277,    0,    0,    0,    0,    0,  277,    0,    0,        0,  277,    0,    0,    0,  177,  178,  178,  178,  178,      178,  178,  178,  178,  178,  178,  178,  178,  178,  178,      178,  178,    0,  178,  178,    0,  178,  178,  178,  178,      280,  280,  280,  280,  295,    0,    0,    0,    0,    0,      295,  295,  295,  295,  295,  295,  280,    0,  280,    0,        0,    0,  178,  179,  179,  179,  179,  179,  179,  179,      179,  179,  179,  179,  179,  179,  179,  179,  179,    0,      179,  179,    0,  179,  179,  179,  179,  292,  292,  292,      292,  296,    0,    0,    0,    0,    0,  296,  296,  296,      296,  296,  296,  292,    0,  292,    0,    0,    0,  179,      180,  180,  180,  180,  180,  180,  180,  180,  180,  180,      180,  180,  180,  180,  180,  180,    0,  180,  180,    0,      180,  180,  180,  180,    0,    0,    0,    0,  264,  264,      264,  264,    0,  264,  268,  268,  268,  268,    0,  264,        0,    0,    0,  268,    0,  268,  180,  208,  208,  208,      208,  264,    0,    0,    0,  208,    0,  268,    0,    0,        0,  208,    0,  208,    0,  208,  209,  209,  209,  209,        0,  209,    0,    0,    0,  209,    0,  209,    0,    0,        0,    0,    0,  281,  281,  281,  281,    0,  281,  209,      210,  210,  210,  210,  281,  210,    0,    0,    0,  210,        0,  210,    0,    0,    0,    0,  281,    0,    0,  284,      284,  284,  284,  210,  239,  239,  239,  239,  284,  239,      284,    0,    0,  239,    0,  239,    0,    0,    0,    0,        0,    0,  284,    0,    0,    0,    0,  239,  242,  242,      242,  242,    0,  242,    0,    0,    0,  242,    0,  242,        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,  242,  243,  243,  243,  243,    0,  243,    0,    0,        0,  243,    0,  243,    0,    0,  302,  302,  302,  302,        0,    0,    0,    0,  302,  243,  246,  302,    0,    0,        0,    0,    0,    0,  302,    0,    0,    0,    0,  246,        0,    0,    0,    0,  246,  246,  246,  246,  246,  246,      246,  248,    0,    0,    0,    0,    0,    0,    0,    0,      248,    0,    0,    0,    0,  248,  248,  248,  248,  248,      248,  248,  249,  249,  249,  249,    0,  249,    0,    0,        0,  249,    0,  249,    0,    0,    0,    0,    0,    0,        0,    0,    0,    0,    0,  249,  260,  260,  260,  260,        0,    0,    0,    0,  260,    0,    0,    0,    0,    0,      260,    0,  260,    0,  260,  265,    0,    0,    0,    0,        0,    0,    0,    0,    0,    0,    0,    0,  265,    0,        0,    0,    0,  265,  265,  265,  265,  265,  265,  265,      266,    0,    0,    0,    0,    0,    0,    0,    0,    0,        0,    0,    0,  266,    0,    0,    0,    0,  266,  266,      266,  266,  266,  266,  266,  269,    0,    0,    0,    0,        0,    0,    0,    0,  269,    0,    0,    0,    0,  269,      269,  269,  269,  269,  269,  269,  270,    0,    0,    0,        0,    0,    0,    0,    0,  270,    0,    0,    0,    0,      270,  270,  270,  270,  270,  270,  270,  294,  294,  294,      294,    0,    0,    0,    0,  294,    0,    0,  294,    0,        0,    0,    0,  294,    0,  294,  317,  317,  317,  317,      317,  317,  318,  318,  318,  318,  318,  319,  319,  320,      320,  320,  320,  320,  321,  321,  322,  322,  322,  322,      322,  323,  323,  324,  324,  324,    0,  324,  324,  325,      325,  325,  325,  325,  325,  326,  326,  327,  327,  328,      328,  328,  328,  328,  329,  329,  329,  329,  329,  330,      330,  330,  330,  330,  331,  331,  331,  331,  331,  332,      332,  332,  332,  332,  333,  333,  333,  333,  333,  334,      334,  334,  334,  334,  335,  335,  335,  335,    0,  335,      336,  336,  336,  336,    0,  336,  337,  337,  337,  337,        0,  337,  338,  338,  338,  338,    0,  338,  339,  339,      339,  339,    0,  339,  340,  340,  340,  340,    0,  340,      341,  341,  341,  341,    0,  341,  342,  342,  342,  342,        0,  342,  343,  343,    0,  343,  343,  343,  344,  344,      344,  344,  344,  345,  345,  345,  345,  345,  346,  346,      346,  346,  346,  347,  347,  347,  347,  347,  316,  316,      316,  316,  316,  316,  316,  316,  316,  316,  316,  316,      316,  316,  316,  316,  316,  316,  316,  316,  316,  316,      316,  316,  316,  316,  316,  316,  316,  316,  316,  316,      316,  316,  316,  316,  316,  316,  316,  316,  316,  316,      316,  316,  316,  316,  316,  316    } ;static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;static char *yy_full_match;static int yy_lp;static int yy_looking_for_trail_begin = 0;static int yy_full_lp;static int *yy_full_state;#define YY_TRAILING_MASK 0x2000#define YY_TRAILING_HEAD_MASK 0x4000#define REJECT \{ \*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \yy_cp = yy_full_match; /* restore poss. backed-over text */ \yy_lp = yy_full_lp; /* restore orig. accepting pos. */ \yy_state_ptr = yy_full_state; /* restore orig. state */ \yy_current_state = *yy_state_ptr; /* restore curr. state */ \++yy_lp; \goto find_rule; \}#define yymore() yymore_used_but_not_detected#define YY_MORE_ADJ 0#define YY_RESTORE_YY_MORE_OFFSETchar *yytext;#line 1 "css_lex.l"#define INITIAL 0#line 2 "css_lex.l"#include <string.h>#include "css_syntax.h"#define YY_DECL int yylex(YYSTYPE *lvalp)#define COMMENT 1#define AFTER_IDENT 2#line 923 "css_lex.c"/* Macros after this point can all be overridden by user definitions in * section 1. */#ifndef YY_SKIP_YYWRAP#ifdef __cplusplusextern "C" int yywrap YY_PROTO(( void ));#elseextern int yywrap YY_PROTO(( void ));#endif#endif#ifndef YY_NO_UNPUTstatic void yyunput YY_PROTO(( int c, char *buf_ptr ));#endif#ifndef yytext_ptrstatic void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));#endif#ifdef YY_NEED_STRLENstatic int yy_flex_strlen YY_PROTO(( yyconst char * ));#endif#ifndef YY_NO_INPUT#ifdef __cplusplusstatic int yyinput YY_PROTO(( void ));#elsestatic int input YY_PROTO(( void ));#endif#endif#if YY_STACK_USEDstatic int yy_start_stack_ptr = 0;static int yy_start_stack_depth = 0;static int *yy_start_stack = 0;#ifndef YY_NO_PUSH_STATEstatic void yy_push_state YY_PROTO(( int new_state ));#endif#ifndef YY_NO_POP_STATEstatic void yy_pop_state YY_PROTO(( void ));#endif#ifndef YY_NO_TOP_STATEstatic 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_DECLYY_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_ACTIONYY_DECL	{	register yy_state_type yy_current_state;	register char *yy_cp = NULL, *yy_bp = NULL;	register int yy_act;#line 29 "css_lex.l"#line 1077 "css_lex.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_state_ptr = yy_state_buf;		*yy_state_ptr++ = yy_current_state;yy_match:		do			{			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*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 >= 317 )					yy_c = yy_meta[(unsigned int) yy_c];				}			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];			*yy_state_ptr++ = yy_current_state;			++yy_cp;			}		while ( yy_base[yy_current_state] != 1729 );yy_find_action:		yy_current_state = *--yy_state_ptr;		yy_lp = yy_accept[yy_current_state];find_rule: /* we branch to this label when backing up */		for ( ; ; ) /* until we find what rule we matched */			{			if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )				{				yy_act = yy_acclist[yy_lp];				if ( yy_act & YY_TRAILING_HEAD_MASK ||				     yy_looking_for_trail_begin )					{					if ( yy_act == yy_looking_for_trail_begin )						{						yy_looking_for_trail_begin = 0;						yy_act &= ~YY_TRAILING_HEAD_MASK;						break;						}					}				else if ( yy_act & YY_TRAILING_MASK )					{					yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK;					yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK;					}				else					{					yy_full_match = yy_cp;					yy_full_state = yy_state_ptr;					yy_full_lp = yy_lp;					break;					}				++yy_lp;				goto find_rule;				}			--yy_cp;			yy_current_state = *--yy_state_ptr;			yy_lp = yy_accept[yy_current_state];			}		YY_DO_BEFORE_ACTION;do_action:	/* This label is used only to access EOF actions. */

⌨️ 快捷键说明

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