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

📄 chsscan.cc

📁 五行MMORPG引擎系统V1.0
💻 CC
📖 第 1 页 / 共 5 页
字号:
case 60:
#line 178 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
case 61:
#line 179 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
case 62:
#line 180 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
case 63:
#line 181 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
case 64:
#line 182 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
case 65:
#line 183 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
case 66:
#line 184 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
case 67:
#line 185 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
case 68:
#line 186 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
case 69:
#line 187 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
case 70:
YY_RULE_SETUP
#line 187 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ return(CHSlval.i = CHStext[0]); }
	YY_BREAK
case 71:
YY_RULE_SETUP
#line 189 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{}
	YY_BREAK
case 72:
YY_RULE_SETUP
#line 190 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwCASEOR); }
	YY_BREAK
case 73:
YY_RULE_SETUP
#line 191 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwBREAK); }
	YY_BREAK
case 74:
YY_RULE_SETUP
#line 192 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwRETURN); }
	YY_BREAK
case 75:
YY_RULE_SETUP
#line 193 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwELSE); }
	YY_BREAK
case 76:
YY_RULE_SETUP
#line 194 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwWHILE); }
	YY_BREAK
case 77:
YY_RULE_SETUP
#line 195 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwDO); }
	YY_BREAK
case 78:
YY_RULE_SETUP
#line 196 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwIF); }
	YY_BREAK
case 79:
YY_RULE_SETUP
#line 197 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwFOR); }
	YY_BREAK
case 80:
YY_RULE_SETUP
#line 198 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwCONTINUE); }
	YY_BREAK
case 81:
YY_RULE_SETUP
#line 199 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwDEFINE); }
	YY_BREAK
case 82:
YY_RULE_SETUP
#line 200 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwDECLARE); }
	YY_BREAK
case 83:
YY_RULE_SETUP
#line 201 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwDATABLOCK); }
	YY_BREAK
case 84:
YY_RULE_SETUP
#line 202 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwCASE); }
	YY_BREAK
case 85:
YY_RULE_SETUP
#line 203 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwSWITCHSTR); }
	YY_BREAK
case 86:
YY_RULE_SETUP
#line 204 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwSWITCH); }
	YY_BREAK
case 87:
YY_RULE_SETUP
#line 205 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwDEFAULT); }
	YY_BREAK
case 88:
YY_RULE_SETUP
#line 206 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwPACKAGE); }
	YY_BREAK
case 89:
YY_RULE_SETUP
#line 207 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = lineIndex; return(rwNAMESPACE); }
	YY_BREAK
case 90:
YY_RULE_SETUP
#line 208 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = 1; return INTCONST; }
	YY_BREAK
case 91:
YY_RULE_SETUP
#line 209 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = 0; return INTCONST; }
	YY_BREAK
case 92:
YY_RULE_SETUP
#line 210 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.i = 0; return INTCONST; }
	YY_BREAK
case 93:
YY_RULE_SETUP
#line 211 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHSlval.str = (char*)consoleAlloc(1);CHSlval.str[0] =0; return STRATOM; }
	YY_BREAK
case 94:
YY_RULE_SETUP
#line 212 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{if(Sc_ScanVar())return (VAR);}
	YY_BREAK
case 95:
YY_RULE_SETUP
#line 213 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{if(Sc_ScanVar())return (IDENT); }
	YY_BREAK
case 96:
YY_RULE_SETUP
#line 214 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
return(Sc_ScanHex());
	YY_BREAK
case 97:
YY_RULE_SETUP
#line 215 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
{ CHStext[CHSleng] = 0; CHSlval.i = dAtoi(CHStext); return INTCONST; }
	YY_BREAK
case 98:
YY_RULE_SETUP
#line 216 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
return Sc_ScanNum();
	YY_BREAK
case 99:
YY_RULE_SETUP
#line 217 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
return(ILLEGAL_TOKEN);
	YY_BREAK
case 100:
YY_RULE_SETUP
#line 218 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
return(ILLEGAL_TOKEN);
	YY_BREAK
case 101:
YY_RULE_SETUP
#line 219 "f:\\Torque\\sdk14\\engine\\console\\CHSscan.l"
ECHO;
	YY_BREAK
#line 1439 "f:\\Torque\\sdk14\\engine\\console\\\\CHSscan.cc"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(commentBlock):
	yyterminate();

	case YY_END_OF_BUFFER:
		{
		/* Amount of text matched not including the EOB char. */
		int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;

		/* Undo the effects of YY_DO_BEFORE_ACTION. */
		*yy_cp = yy_hold_char;

		if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
			{
			/* We're scanning a new file or input source.  It's
			 * possible that this happened because the user
			 * just pointed yyin at a new source and called
			 * yylex().  If so, then we have to assure
			 * consistency between yy_current_buffer and our
			 * globals.  Here is the right place to do so, because
			 * this is the first action (other than possibly a
			 * back-up) that will match for the new input source.
			 */
			yy_n_chars = yy_current_buffer->yy_n_chars;
			yy_current_buffer->yy_input_file = yyin;
			yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
			}

		/* Note that here we test for yy_c_buf_p "<=" to the position
		 * of the first EOB in the buffer, since yy_c_buf_p will
		 * already have been incremented past the NUL character
		 * (since all states make transitions on EOB to the
		 * end-of-buffer state).  Contrast this with the test
		 * in input().
		 */
		if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			{ /* This was really a NUL. */
			yy_state_type yy_next_state;

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

			/* Okay, we're now positioned to make the NUL
			 * transition.  We couldn't have
			 * yy_get_previous_state() go ahead and do it
			 * for us because it doesn't know how to deal
			 * with the possibility of jamming (and we don't
			 * want to build jamming into it because then it
			 * will run more slowly).
			 */

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

			if ( yy_next_state )
				{
				/* Consume the NUL. */
				yy_cp = ++yy_c_buf_p;
				yy_current_state = yy_next_state;
				goto yy_match;
				}

			else
				{
				yy_cp = yy_c_buf_p;
				goto yy_find_action;
				}
			}

		else switch ( yy_get_next_buffer() )
			{
			case EOB_ACT_END_OF_FILE:
				{
				yy_did_buffer_switch_on_eof = 0;

				if ( yywrap() )
					{
					/* Note: because we've taken care in
					 * yy_get_next_buffer() to have set up
					 * yytext, we can now set up
					 * yy_c_buf_p so that if some total
					 * hoser (like flex itself) wants to
					 * call the scanner after we return the
					 * YY_NULL, it'll still work - another
					 * YY_NULL will get returned.
					 */
					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

				else
					{
					if ( ! yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
					}
				break;
				}

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_match;

			case EOB_ACT_LAST_MATCH:
				yy_c_buf_p =
				&yy_current_buffer->yy_ch_buf[yy_n_chars];

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_find_action;
			}
		break;
		}

	default:
		YY_FATAL_ERROR(
			"fatal flex scanner internal error--no action found" );
	} /* end of action switch */
		} /* end of scanning one token */
	} /* end of yylex */


/* yy_get_next_buffer - try to read in a new buffer
 *
 * Returns a code representing an action:
 *	EOB_ACT_LAST_MATCH -
 *	EOB_ACT_CONTINUE_SCAN - continue scanning from current position
 *	EOB_ACT_END_OF_FILE - end of file
 */

static int yy_get_next_buffer()
	{
	register char *dest = yy_current_buffer->yy_ch_buf;
	register char *source = yytext_ptr;
	register int number_to_move, i;
	int ret_val;

	if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
		YY_FATAL_ERROR(
		"fatal flex scanner internal error--end of buffer missed" );

	if ( yy_current_buffer->yy_fill_buffer == 0 )
		{ /* Don't try to fill the buffer, so this is an EOF. */
		if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
			{
			/* We matched a singled characater, the EOB, so
			 * treat this as a final EOF.
			 */
			return EOB_ACT_END_OF_FILE;
			}

		else
			{
			/* We matched some text prior to the EOB, first
			 * process it.
			 */
			return EOB_ACT_LAST_MATCH;
			}
		}

	/* Try to read more data. */

	/* First move last chars to start of buffer. */
	number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;

	for ( i = 0; i < number_to_move; ++i )
		*(dest++) = *(source++);

	if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		yy_n_chars = 0;

	else
		{
		int num_to_read =
			yy_current_buffer->yy_buf_size - number_to_move - 1;

		while ( num_to_read <= 0 )
			{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
			YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else

			/* just a shorter name for the current buffer */
			YY_BUFFER_STATE b = yy_current_buffer;

			int yy_c_buf_p_offset =
				(int) (yy_c_buf_p - b->yy_ch_buf);

			if ( b->yy_is_our_buffer )
				{
				int new_size = b->yy_buf_size * 2;

				if ( new_size <= 0 )
					b->yy_buf_size += b->yy_buf_size / 8;
				else
					b->yy_buf_size *= 2;

				b->yy_ch_buf = (char *)
					/* Include room in for 2 EOB chars. */
					yy_flex_realloc( (void *) b->yy_ch_buf,
							 b->yy_buf_size + 2 );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = 0;

			if ( ! b->yy_ch_buf )
				YY_FATAL_ERROR(
				"fatal error - scanner input buffer overflow" );

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

			num_to_read = yy_current_buffer->yy_buf_size -
						number_to_move - 1;
#endif
			}

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

		/* Read in more data. */
		YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
			yy_n_chars, num_to_read );

⌨️ 快捷键说明

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