📄 lex.swf4.cpp
字号:
{ count(); return WHILE; } YY_BREAKcase 11:YY_RULE_SETUP#line 97 "swf4compiler.flex"{ count(); return DO; } YY_BREAKcase 12:YY_RULE_SETUP#line 98 "swf4compiler.flex"{ count(); return EVAL; } YY_BREAK/* functions */case 13:YY_RULE_SETUP#line 101 "swf4compiler.flex"{ count(); return RANDOM; } YY_BREAKcase 14:YY_RULE_SETUP#line 102 "swf4compiler.flex"{ count(); return TIME; } YY_BREAKcase 15:YY_RULE_SETUP#line 103 "swf4compiler.flex"{ count(); return LENGTH; } YY_BREAKcase 16:YY_RULE_SETUP#line 104 "swf4compiler.flex"{ count(); return INT; } YY_BREAKcase 17:YY_RULE_SETUP#line 105 "swf4compiler.flex"{ count(); return CONCAT; } YY_BREAKcase 18:YY_RULE_SETUP#line 106 "swf4compiler.flex"{ count(); return DUPLICATECLIP; } YY_BREAKcase 19:YY_RULE_SETUP#line 107 "swf4compiler.flex"{ count(); return REMOVECLIP; } YY_BREAKcase 20:YY_RULE_SETUP#line 108 "swf4compiler.flex"{ count(); return TRACE; } YY_BREAKcase 21:YY_RULE_SETUP#line 109 "swf4compiler.flex"{ count(); return STARTDRAG; } YY_BREAKcase 22:YY_RULE_SETUP#line 110 "swf4compiler.flex"{ count(); return STOPDRAG; } YY_BREAKcase 23:YY_RULE_SETUP#line 111 "swf4compiler.flex"{ count(); return ORD; } YY_BREAKcase 24:YY_RULE_SETUP#line 112 "swf4compiler.flex"{ count(); return CHR; } YY_BREAKcase 25:YY_RULE_SETUP#line 113 "swf4compiler.flex"{ count(); return CALLFRAME; } YY_BREAKcase 26:YY_RULE_SETUP#line 114 "swf4compiler.flex"{ count(); return GETURL; } YY_BREAKcase 27:YY_RULE_SETUP#line 115 "swf4compiler.flex"{ count(); return GETURL1; } YY_BREAKcase 28:YY_RULE_SETUP#line 116 "swf4compiler.flex"{ count(); return LOADMOVIE; } YY_BREAKcase 29:YY_RULE_SETUP#line 117 "swf4compiler.flex"{ count(); return LOADVARIABLES; } YY_BREAKcase 30:YY_RULE_SETUP#line 118 "swf4compiler.flex"{ count(); return SUBSTR; } YY_BREAKcase 31:YY_RULE_SETUP#line 120 "swf4compiler.flex"{ count(); return GETPROPERTY; } YY_BREAK/* getURL2 methods */case 32:YY_RULE_SETUP#line 123 "swf4compiler.flex"{ count(); swf4lval.getURLMethod = GETURL_METHOD_POST; return GETURL_METHOD; } YY_BREAKcase 33:YY_RULE_SETUP#line 125 "swf4compiler.flex"{ count(); swf4lval.getURLMethod = GETURL_METHOD_GET; return GETURL_METHOD; } YY_BREAKcase 34:YY_RULE_SETUP#line 127 "swf4compiler.flex"{ count(); swf4lval.getURLMethod = GETURL_METHOD_NOSEND; return GETURL_METHOD; } YY_BREAK/* v3 functions */case 35:YY_RULE_SETUP#line 132 "swf4compiler.flex"{ count(); return NEXTFRAME; } YY_BREAKcase 36:YY_RULE_SETUP#line 133 "swf4compiler.flex"{ count(); return PREVFRAME; } YY_BREAKcase 37:YY_RULE_SETUP#line 134 "swf4compiler.flex"{ count(); return PLAY; } YY_BREAKcase 38:YY_RULE_SETUP#line 135 "swf4compiler.flex"{ count(); return STOP; } YY_BREAKcase 39:YY_RULE_SETUP#line 136 "swf4compiler.flex"{ count(); return TOGGLEQUALITY; } YY_BREAKcase 40:YY_RULE_SETUP#line 137 "swf4compiler.flex"{ count(); return STOPSOUNDS; } YY_BREAKcase 41:YY_RULE_SETUP#line 138 "swf4compiler.flex"{ count(); return GOTOFRAME; } YY_BREAKcase 42:YY_RULE_SETUP#line 139 "swf4compiler.flex"{ count(); return GOTOANDPLAY; } YY_BREAKcase 43:YY_RULE_SETUP#line 140 "swf4compiler.flex"{ count(); return FRAMELOADED; } YY_BREAKcase 44:YY_RULE_SETUP#line 141 "swf4compiler.flex"{ count(); return SETTARGET; } YY_BREAK/* high level functions */case 45:YY_RULE_SETUP#line 144 "swf4compiler.flex"{ count(); return TELLTARGET; } YY_BREAKcase 46:YY_RULE_SETUP#line 147 "swf4compiler.flex"{ count(); return THIS; } YY_BREAKcase 47:YY_RULE_SETUP#line 149 "swf4compiler.flex"{ count(); swf4lval.str = strdup(yytext); return IDENTIFIER; } YY_BREAKcase 48:YY_RULE_SETUP#line 152 "swf4compiler.flex"{ count(); swf4lval.str = strdup(yytext); return PATH; } YY_BREAKcase 49:YY_RULE_SETUP#line 155 "swf4compiler.flex"{ count(); swf4lval.str = strdup(yytext); return PATH; } YY_BREAKcase 50:YY_RULE_SETUP#line 158 "swf4compiler.flex"{ count(); swf4lval.str = strdup(yytext+1); swf4lval.str[strlen(swf4lval.str)-1]=0; unescape(swf4lval.str); return STRING; } YY_BREAKcase 51:YY_RULE_SETUP#line 163 "swf4compiler.flex"{ count(); swf4lval.str = strdup(yytext+1); swf4lval.str[strlen(swf4lval.str)-1]=0; unescape(swf4lval.str); return STRING; } YY_BREAKcase 52:*yy_cp = yy_hold_char; /* undo effects of setting up yytext */yy_c_buf_p = yy_cp -= 1;YY_DO_BEFORE_ACTION; /* set up yytext again */YY_RULE_SETUP#line 168 "swf4compiler.flex"{ count(); swf4lval.str = strdup(""); warning("Unterminated string!"); return STRING; } YY_BREAKcase 53:*yy_cp = yy_hold_char; /* undo effects of setting up yytext */yy_c_buf_p = yy_cp -= 1;YY_DO_BEFORE_ACTION; /* set up yytext again */YY_RULE_SETUP#line 172 "swf4compiler.flex"{ count(); swf4lval.str = strdup(""); warning("Unterminated string!"); return STRING; } YY_BREAKcase 54:YY_RULE_SETUP#line 176 "swf4compiler.flex"{ count(); comment(); } YY_BREAKcase 55:YY_RULE_SETUP#line 177 "swf4compiler.flex"{ count(); comment1(); } YY_BREAKcase 56:YY_RULE_SETUP#line 178 "swf4compiler.flex"{ count(); } YY_BREAKcase 57:YY_RULE_SETUP#line 180 "swf4compiler.flex"{ count(); return INC; } YY_BREAKcase 58:YY_RULE_SETUP#line 181 "swf4compiler.flex"{ count(); return DEC; } YY_BREAKcase 59:YY_RULE_SETUP#line 182 "swf4compiler.flex"{ count(); return '<'; } YY_BREAKcase 60:YY_RULE_SETUP#line 183 "swf4compiler.flex"{ count(); return '>'; } YY_BREAKcase 61:YY_RULE_SETUP#line 184 "swf4compiler.flex"{ count(); return LE; } YY_BREAKcase 62:YY_RULE_SETUP#line 185 "swf4compiler.flex"{ count(); return GE; } YY_BREAKcase 63:YY_RULE_SETUP#line 186 "swf4compiler.flex"{ count(); return EQ; } YY_BREAKcase 64:YY_RULE_SETUP#line 187 "swf4compiler.flex"{ count(); return NE; } YY_BREAKcase 65:YY_RULE_SETUP#line 188 "swf4compiler.flex"{ count(); return LAN; } YY_BREAKcase 66:YY_RULE_SETUP#line 189 "swf4compiler.flex"{ count(); return LOR; } YY_BREAKcase 67:YY_RULE_SETUP#line 190 "swf4compiler.flex"{ count(); return MEQ; } YY_BREAKcase 68:YY_RULE_SETUP#line 191 "swf4compiler.flex"{ count(); return DEQ; } YY_BREAKcase 69:YY_RULE_SETUP#line 192 "swf4compiler.flex"{ count(); return IEQ; } YY_BREAKcase 70:YY_RULE_SETUP#line 193 "swf4compiler.flex"{ count(); return SEQ; } YY_BREAKcase 71:YY_RULE_SETUP#line 194 "swf4compiler.flex"{ count(); return STREQ; } YY_BREAKcase 72:YY_RULE_SETUP#line 195 "swf4compiler.flex"{ count(); return STRNE; } YY_BREAKcase 73:YY_RULE_SETUP#line 196 "swf4compiler.flex"{ count(); return STRCMP; } YY_BREAKcase 74:YY_RULE_SETUP#line 197 "swf4compiler.flex"{ count(); return PARENT; } YY_BREAKcase 75:YY_RULE_SETUP#line 199 "swf4compiler.flex"{ count(); return ';'; } YY_BREAKcase 76:YY_RULE_SETUP#line 200 "swf4compiler.flex"{ count(); return '='; } YY_BREAKcase 77:YY_RULE_SETUP#line 201 "swf4compiler.flex"{ count(); return '+'; } YY_BREAKcase 78:YY_RULE_SETUP#line 202 "swf4compiler.flex"{ count(); return '-'; } YY_BREAKcase 79:YY_RULE_SETUP#line 203 "swf4compiler.flex"{ count(); return '&'; } YY_BREAKcase 80:YY_RULE_SETUP#line 204 "swf4compiler.flex"{ count(); return '*'; } YY_BREAKcase 81:YY_RULE_SETUP#line 205 "swf4compiler.flex"{ count(); return '/'; } YY_BREAKcase 82:YY_RULE_SETUP#line 206 "swf4compiler.flex"{ count(); return '!'; } YY_BREAKcase 83:YY_RULE_SETUP#line 207 "swf4compiler.flex"{ count(); return '('; } YY_BREAKcase 84:YY_RULE_SETUP#line 208 "swf4compiler.flex"{ count(); return ')'; } YY_BREAKcase 85:YY_RULE_SETUP#line 209 "swf4compiler.flex"{ count(); return '['; } YY_BREAKcase 86:YY_RULE_SETUP#line 210 "swf4compiler.flex"{ count(); return ']'; } YY_BREAKcase 87:YY_RULE_SETUP#line 211 "swf4compiler.flex"{ count(); return '{'; } YY_BREAKcase 88:YY_RULE_SETUP#line 212 "swf4compiler.flex"{ count(); return '}'; } YY_BREAKcase 89:YY_RULE_SETUP#line 213 "swf4compiler.flex"{ count(); return ','; } YY_BREAKcase 90:YY_RULE_SETUP#line 214 "swf4compiler.flex"{ count(); return '.'; } YY_BREAKcase 91:YY_RULE_SETUP#line 215 "swf4compiler.flex"{ count(); return '?'; } YY_BREAKcase 92:YY_RULE_SETUP#line 216 "swf4compiler.flex"{ count(); return ':'; } YY_BREAKcase 93:YY_RULE_SETUP#line 218 "swf4compiler.flex"{ count(); column = 0; strcpy(szLine, yytext + 1); ++sLineNumber; yyless(1); } YY_BREAKcase 94:YY_RULE_SETUP#line 222 "swf4compiler.flex"printf( "Unrecognized character: %s\n", yytext ); YY_BREAKcase 95:YY_RULE_SETUP#line 224 "swf4compiler.flex"ECHO; YY_BREAK#line 1454 "lex.swf4.c"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 ) { /* 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -