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

📄 _ts1.0_lexer.cpp

📁 使用stl技术,(还没看,是听说的)
💻 CPP
📖 第 1 页 / 共 5 页
字号:


#line 898 "_ts1.0_lexer.cpp"

	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_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 >= 404 )
					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] != 845 );

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 36 "ts1.0_tokens.l"
{
			    A:
				switch (yyinput()) {
				  case '*': goto B;
				  case 0: errors.set("end-of-file in comment", line_number); break;
				  case '\n': line_number++;
				  default:  goto A;
				}
			    B:
				switch (yyinput()) {
				  case '*': goto B;
				  case '/': break;
				  case 0: errors.set("end-of-file in comment", line_number); break;
				  case '\n': line_number++;
				  default:  goto A;
				}
			}
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 54 "ts1.0_tokens.l"
{
			    char ch;
			    while ((ch = yyinput()) != '\n');
			    if (ch == '\n') line_number++;
			}
	YY_BREAK
case 3:
YY_RULE_SETUP
#line 60 "ts1.0_tokens.l"
{
			    char ch;
			    while ((ch = yyinput()) != '\n');
			    if (ch == '\n') line_number++;
			}
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 66 "ts1.0_tokens.l"
return(openParen);
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 67 "ts1.0_tokens.l"
return(closeParen);
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 68 "ts1.0_tokens.l"
return(semicolon);
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 69 "ts1.0_tokens.l"
return(comma);
	YY_BREAK
case 8:
YY_RULE_SETUP
#line 71 "ts1.0_tokens.l"
{ /* eat header */ }
	YY_BREAK
case 9:
YY_RULE_SETUP
#line 73 "ts1.0_tokens.l"
{
			    ts10_lval.fval = (float)0;
			    return(texVariable);
			}
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 78 "ts1.0_tokens.l"
{
			    ts10_lval.fval = (float)1;
			    return(texVariable);
			}
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 83 "ts1.0_tokens.l"
{
			    ts10_lval.fval = (float)2;
			    return(texVariable);
			}
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 88 "ts1.0_tokens.l"
return(expandString);
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 90 "ts1.0_tokens.l"
{
				ts10_lval.fval = (float)GL_GEQUAL;
				return (gequal);
			}
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 95 "ts1.0_tokens.l"
{
				ts10_lval.fval = (float)GL_LESS;
				return(less);
			}
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 100 "ts1.0_tokens.l"
return(nop);
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 101 "ts1.0_tokens.l"
return(texture_1d);
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 102 "ts1.0_tokens.l"
return(texture_2d);
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 103 "ts1.0_tokens.l"
return(texture_rectangle);
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 104 "ts1.0_tokens.l"
return(texture_3d);
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 105 "ts1.0_tokens.l"
return(texture_cube_map);
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 106 "ts1.0_tokens.l"
return(cull_fragment);
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 107 "ts1.0_tokens.l"
return(pass_through);
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 108 "ts1.0_tokens.l"
return(offset_2d_scale);
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 109 "ts1.0_tokens.l"
return(offset_2d);
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 110 "ts1.0_tokens.l"
return(offset_rectangle_scale);
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 111 "ts1.0_tokens.l"
return(offset_rectangle);
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 112 "ts1.0_tokens.l"
return(dependent_ar);
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 113 "ts1.0_tokens.l"
return(dependent_gb);
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 115 "ts1.0_tokens.l"
return(dot_product_2d_1of2);
	YY_BREAK
case 30:
YY_RULE_SETUP
#line 116 "ts1.0_tokens.l"
return(dot_product_2d_2of2);
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 118 "ts1.0_tokens.l"
return(dot_product_rectangle_1of2);
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 119 "ts1.0_tokens.l"
return(dot_product_rectangle_2of2);
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 121 "ts1.0_tokens.l"
return(dot_product_depth_replace_1of2);
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 122 "ts1.0_tokens.l"
return(dot_product_depth_replace_2of2);
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 124 "ts1.0_tokens.l"
return(dot_product_3d_1of3);
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 125 "ts1.0_tokens.l"
return(dot_product_3d_2of3);
	YY_BREAK
case 37:
YY_RULE_SETUP
#line 126 "ts1.0_tokens.l"
return(dot_product_3d_3of3);
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 128 "ts1.0_tokens.l"
return(dot_product_cube_map_1of3);
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 129 "ts1.0_tokens.l"
return(dot_product_cube_map_2of3);
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 130 "ts1.0_tokens.l"
return(dot_product_cube_map_3of3);
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 132 "ts1.0_tokens.l"
return(dot_product_reflect_cube_map_eye_from_qs_1of3);
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 133 "ts1.0_tokens.l"
return(dot_product_reflect_cube_map_eye_from_qs_2of3);
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 134 "ts1.0_tokens.l"
return(dot_product_reflect_cube_map_eye_from_qs_3of3);
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 136 "ts1.0_tokens.l"
return(dot_product_reflect_cube_map_const_eye_1of3);
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 137 "ts1.0_tokens.l"
return(dot_product_reflect_cube_map_const_eye_2of3);
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 138 "ts1.0_tokens.l"
return(dot_product_reflect_cube_map_const_eye_3of3);
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 140 "ts1.0_tokens.l"
return(dot_product_cube_map_and_reflect_cube_map_eye_from_qs_1of3);
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 141 "ts1.0_tokens.l"
return(dot_product_cube_map_and_reflect_cube_map_eye_from_qs_2of3);
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 142 "ts1.0_tokens.l"
return(dot_product_cube_map_and_reflect_cube_map_eye_from_qs_3of3);
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 144 "ts1.0_tokens.l"
return(dot_product_cube_map_and_reflect_cube_map_const_eye_1of3);
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 145 "ts1.0_tokens.l"
return(dot_product_cube_map_and_reflect_cube_map_const_eye_2of3);
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 146 "ts1.0_tokens.l"
return(dot_product_cube_map_and_reflect_cube_map_const_eye_3of3);
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 148 "ts1.0_tokens.l"
{
				ts10_lval.fval = (float)atof(yytext);
				return(floatValue);
			}
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 153 "ts1.0_tokens.l"
{
				ts10_lval.fval = (float)atof(yytext);
				return(floatValue);
			}
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 158 "ts1.0_tokens.l"
{
				ts10_lval.fval = (float)atof(yytext);
				return(floatValue);
			}
	YY_BREAK
case 56:
YY_RULE_SETUP
#line 163 "ts1.0_tokens.l"
{
				line_number++;
			}
	YY_BREAK
case 57:
YY_RULE_SETUP
#line 167 "ts1.0_tokens.l"
{}
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 169 "ts1.0_tokens.l"
{
				errors.set("unrecognized token", line_number);
			}
	YY_BREAK
case 59:
YY_RULE_SETUP
#line 174 "ts1.0_tokens.l"
ECHO;
	YY_BREAK
#line 1328 "_ts1.0_lexer.cpp"
case YY_STATE_EOF(INITIAL):
	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;
		YY_RESTORE_YY_MORE_OFFSET

		if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
			{

⌨️ 快捷键说明

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