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

📄 lex.swf5.cpp

📁 flash文件的解码程序
💻 CPP
📖 第 1 页 / 共 5 页
字号:
      291,    0,  288,  291,  277,  272,    0,  280,    0,  269,      279,  281,  266,  276,  278,  260,  263,  260,  259,  276,      257,  268,  268,    0,  270,    0,  182,  266,    0,  271,      252,  269,  251,    0,  259,  263,  253,    0,    0,  253,        0,    0,  244,  249,  260,  257,    0,  246,    0,  258,        0,    0,  257,    0,  248,    0,  251,  250,  242,    0,      233,    0,  233,  244,  231,    0,  237,    0,  223,  226,      231,    0,  230,  239,    0,  222,  230,    0,  234,  226,      225,  233,  219,  212,  230,  245,    0,  213,  212,  222,      211,  224,  214,  205,    0,  213,  220,    0,    0,    0,      221,    0,  207,    0,    0,  214,  213,  200,    0,    0,        0,  210,    0,  199,  205,  198,    0,  214,  189,  208,      198,  202,    0,  196,    0,  201,  181,  184,    0,  185,      181,    0,  150,    0,  117,    0,  616,  235,  237,  124    } ;static yyconst short int yy_def[581] =    {   0,      577,    1,  577,  577,  577,  577,  577,  578,  577,  577,      579,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  577,      577,  577,  577,  578,  578,  577,  578,  577,  579,  579,      577,  579,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  577,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  577,      577,  577,  577,  577,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  577,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  577,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,  580,  580,  580,  580,      580,  580,  580,  580,  580,  580,    0,  577,  577,  577    } ;static yyconst short int yy_nxt[675] =    {   0,        4,    5,    6,    7,    8,    9,   10,   11,   12,   13,       14,   15,   16,   17,   18,   19,   20,   20,   20,   21,       22,   23,   24,   25,   26,   27,    4,   28,   29,   30,       31,   32,   33,   34,   35,   36,   37,   30,   38,   30,       30,   39,   40,   41,   42,   43,   30,   44,   45,   46,       30,   47,   48,   49,   30,   50,   51,   52,   55,   60,       56,   64,   66,   68,   61,   73,   74,  149,   69,   76,       77,   67,   65,   83,   71,   70,   72,   72,   72,   79,       84,   86,   57,   62,  150,   87,   94,   85,   90,   80,       91,   88,   97,   92,   81,   99,  115,   89,   93,  101,       95,  103,   98,  100,  109,  106,   96,  116,  138,  102,      110,  117,  139,  111,  104,  107,  112,  127,  128,  113,      105,  108,  114,  118,  123,   78,  119,  124,   55,   55,       56,   56,   60,  178,  125,   60,  179,   61,  120,  121,       61,  122,  131,  131,  131,   71,  144,   72,   72,   72,      133,  134,   57,   57,  140,  145,   62,  158,  163,   62,      161,  141,  576,  159,  164,  162,  165,  171,  172,  182,      182,  182,  184,  188,  160,  166,  192,  195,  167,  185,      328,  207,  168,  329,  193,  234,  286,  189,  575,  235,      190,  131,  131,  131,  218,  239,  236,  196,  208,  240,      287,  219,  220,  221,  270,  249,  241,  182,  182,  182,      250,  271,  251,  290,  252,  257,  258,  316,  370,  382,      445,  421,  291,  574,  371,  504,  573,  383,  422,  572,      505,  571,  317,  570,  446,   54,   54,   59,   59,  569,      568,  567,  566,  565,  564,  563,  562,  561,  560,  559,      558,  557,  556,  555,  554,  553,  552,  551,  550,  549,      548,  547,  546,  545,  544,  543,  542,  541,  540,  539,      538,  537,  536,  535,  534,  533,  532,  531,  530,  529,      528,  527,  526,  525,  524,  523,  522,  521,  520,  519,      518,  517,  516,  515,  514,  513,  512,  511,  510,  509,      508,  507,  506,  503,  502,  501,  500,  499,  498,  497,      496,  495,  494,  493,  492,  491,  490,  489,  488,  487,      486,  485,  484,  483,  482,  481,  480,  479,  478,  477,      476,  475,  474,  473,  472,  471,  470,  469,  468,  467,      466,  465,  464,  463,  462,  461,  460,  459,  458,  457,      456,  455,  454,  453,  452,  451,  450,  449,  448,  447,      444,  443,  442,  441,  440,  439,  438,  437,  436,  435,      434,  433,  432,  431,  430,  429,  428,  427,  426,  425,      424,  423,  420,  419,  418,  417,  416,  415,  414,  413,      412,  411,  410,  409,  408,  407,  406,  405,  404,  403,      402,  401,  400,  399,  398,  397,  396,  395,  394,  393,      392,  391,  390,  389,  388,  387,  386,  385,  384,  381,      380,  379,  378,  377,  376,  375,  374,  373,  372,  369,      368,  367,  366,  365,  364,  363,  362,  361,  360,  359,      358,  357,  356,  355,  354,  353,  352,  351,  350,  349,      348,  347,  346,  345,  344,  343,  342,  341,  340,  339,      338,  337,  336,  335,  334,  333,  332,  331,  330,  327,      326,  325,  324,  323,  322,  321,  320,  319,  318,  315,      314,  313,  312,  311,  310,  309,  308,  307,  306,  305,      304,  303,  302,  301,  300,  299,  298,  297,  296,  295,      294,  293,  292,  289,  288,  285,  284,  283,  282,  281,      280,  279,  278,  277,  276,  275,  274,  273,  272,  269,      268,  267,  266,  265,  264,  263,  262,  261,  260,  259,      256,  255,  254,  253,  248,  247,  246,  245,  244,  243,      242,  238,  237,  233,  232,  231,  230,  229,  228,  227,      226,  225,  224,  223,  222,  217,  216,  215,  214,  213,      212,  211,  210,  209,  206,  205,  204,  203,  202,  201,      200,  199,  198,  197,  194,  191,  187,  186,  183,  181,      180,  177,  176,  175,  174,  173,  170,  169,  157,  156,      155,  154,  153,  152,  151,  148,  147,  146,  143,  142,      137,  136,  135,  132,  577,  577,  130,  129,  126,   82,       75,   63,   58,   53,  577,    3,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577    } ;static yyconst short int yy_chk[675] =    {   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,    1,    1,    1,    1,    1,    1,    1,    8,   11,        8,   15,   17,   19,   11,   23,   23,   91,   19,   25,       25,   17,   15,   33,   20,   19,   20,   20,   20,   31,       33,   34,    8,   11,   91,   34,   36,   33,   35,   31,       35,   34,   37,   35,   31,   38,   44,   34,   35,   39,       36,   40,   37,   38,   42,   41,   36,   44,   82,   39,       42,   44,   82,   43,   40,   41,   43,   48,   48,   43,       40,   41,   43,   45,   46,  580,   45,   46,   54,   55,       54,   55,   59,  112,   46,   60,  112,   59,   45,   45,       60,   45,   71,   71,   71,   72,   86,   72,   72,   72,       77,   77,   54,   55,   83,   86,   59,  100,  102,   60,      101,   83,  575,  100,  102,  101,  103,  106,  106,  115,      115,  115,  117,  120,  100,  103,  122,  124,  103,  117,      270,  143,  103,  270,  122,  171,  223,  120,  573,  171,      120,  131,  131,  131,  156,  175,  171,  124,  143,  175,      223,  156,  156,  156,  205,  186,  175,  182,  182,  182,      186,  205,  186,  226,  186,  191,  191,  255,  314,  327,      401,  375,  226,  571,  314,  467,  570,  327,  375,  568,      467,  567,  255,  566,  401,  578,  578,  579,  579,  564,      562,  561,  560,  559,  558,  556,  555,  554,  552,  548,      547,  546,  543,  541,  537,  536,  534,  533,  532,  531,      530,  529,  528,  526,  525,  524,  523,  522,  521,  520,      519,  517,  516,  514,  513,  511,  510,  509,  507,  505,      504,  503,  501,  499,  498,  497,  495,  493,  490,  488,      486,  485,  484,  483,  480,  477,  476,  475,  473,  472,      471,  470,  468,  465,  463,  462,  461,  460,  459,  458,      457,  456,  455,  454,  453,  452,  451,  450,  448,  446,      445,  444,  443,  441,  440,  439,  438,  436,  434,  433,      431,  430,  429,  428,  427,  426,  425,  424,  423,  422,      421,  420,  419,  418,  417,  416,  415,  414,  413,  412,      411,  410,  409,  408,  407,  406,  405,  404,  403,  402,      400,  399,  398,  397,  396,  395,  394,  392,  391,  390,      389,  388,  387,  386,  385,  384,  383,  382,  381,  379,      377,  376,  374,  373,  372,  371,  370,  369,  368,  367,      366,  364,  362,  361,  360,  358,  357,  356,  354,  352,      351,  350,  349,  348,  347,  345,  344,  343,  342,  341,      340,  339,  338,  336,  335,  332,  330,  329,  328,  325,      324,  322,  321,  320,  319,  318,  317,  316,  315,  313,      312,  311,  310,  309,  308,  307,  306,  305,  304,  303,      302,  301,  300,  299,  298,  297,  296,  294,  292,  291,      290,  289,  288,  287,  286,  285,  284,  283,  282,  281,      280,  278,  277,  276,  275,  274,  273,  272,  271,  268,      266,  265,  264,  262,  261,  260,  258,  257,  256,  254,      253,  252,  251,  250,  249,  248,  247,  246,  244,  241,      240,  239,  237,  236,  235,  234,  233,  232,  231,  230,      229,  228,  227,  225,  224,  222,  221,  220,  219,  218,      217,  216,  214,  213,  211,  210,  209,  208,  207,  204,      203,  200,  199,  198,  197,  196,  195,  194,  193,  192,      190,  189,  188,  187,  185,  184,  183,  181,  180,  179,      177,  174,  172,  170,  169,  168,  167,  166,  165,  164,      163,  162,  161,  159,  157,  155,  153,  152,  151,  150,      148,  147,  146,  145,  141,  140,  139,  138,  134,  129,      128,  127,  126,  125,  123,  121,  119,  118,  116,  114,      113,  111,  110,  109,  108,  107,  105,  104,   98,   97,       96,   95,   94,   93,   92,   90,   89,   87,   85,   84,       81,   80,   79,   73,   62,   57,   51,   49,   47,   32,       24,   14,   10,    7,    3,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577,  577,  577,  577,  577,  577,  577,      577,  577,  577,  577    } ;static yy_state_type yy_last_accepting_state;static char *yy_last_accepting_cpos;/* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */#define REJECT reject_used_but_not_detected#define yymore() yymore_used_but_not_detected#define YY_MORE_ADJ 0#define YY_RESTORE_YY_MORE_OFFSETchar *yytext;#line 1 "swf5compiler.flex"#define INITIAL 0#line 2 "swf5compiler.flex"#include <math.h>#include <string.h>#include "compile.h"#include "action.h"#include "swf5compiler.tab.h" /* defines token types */int swf5debug;static char *lexBuffer = NULL;static int lexBufferLen = 0;static int  sLineNumber = 0;static char szLine[1024];static char msgbufs[2][1024] = { {0}, {0} }, *msgline = {0};static int  column = 0;static void comment();static void comment1();static void count();static void countline();static void warning(char *msg);#define YY_INPUT(buf,result,max_size) result=lexBufferInput(buf, max_size)/* thanks to the prolific and brilliant Raff: */static int lexBufferInput(char *buf, int max_size){  int l = lexBufferLen > max_size ? max_size : lexBufferLen;  if (lexBufferLen <= 0)    return YY_NULL;  memcpy(buf, lexBuffer, l);  lexBuffer += l;  lexBufferLen -= l;  return l;}        /* very inefficient method of unescaping strings */static void unescape(char *buf){  char *p, *p1;  for (p1=buf; (p=strchr(p1, '\\')) != 0; p1 = p+1) {    switch(p[1])    {    case 'b' : p[1] = '\b'; break;    case 'f' : p[1] = '\f'; break;    case 'n' : p[1] = '\n'; break;    case 'r' : p[1] = '\r'; break;    case 't' : p[1] = '\t'; break;    case 'x' :    case 'u' : warning("unsupported escape sequence");    }    strcpy(p, p+1);  }}void swf5ParseInit(char *script, int debug){  checksbyteOrder();  yyrestart(NULL);  swf5debug = debug;  lexBuffer = script;  lexBufferLen = strlen(script);  sLineNumber = 0;  column = 0;  msgline = msgbufs[0];}#line 793 "lex.swf5.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;

⌨️ 快捷键说明

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