📄 swf4compiler.tab.cpp
字号:
/* A Bison parser, made from swf4compiler.y by GNU Bison version 1.28 */#define YYBISON 1 /* Identify Bison output. */#define yyparse swf4parse#define yylex swf4lex#define yyerror swf4error#define yylval swf4lval#define yychar swf4char#define yydebug swf4debug#define yynerrs swf4nerrs#define BREAK 257#define FOR 258#define CONTINUE 259#define IF 260#define ELSE 261#define DO 262#define WHILE 263#define THIS 264#define EVAL 265#define TIME 266#define RANDOM 267#define LENGTH 268#define INT 269#define CONCAT 270#define DUPLICATECLIP 271#define REMOVECLIP 272#define TRACE 273#define STARTDRAG 274#define STOPDRAG 275#define ORD 276#define CHR 277#define CALLFRAME 278#define GETURL 279#define GETURL1 280#define LOADMOVIE 281#define LOADVARIABLES 282#define POSTURL 283#define SUBSTR 284#define GETPROPERTY 285#define NEXTFRAME 286#define PREVFRAME 287#define PLAY 288#define STOP 289#define TOGGLEQUALITY 290#define STOPSOUNDS 291#define GOTOFRAME 292#define GOTOANDPLAY 293#define FRAMELOADED 294#define SETTARGET 295#define TELLTARGET 296#define STRING 297#define NUMBER 298#define IDENTIFIER 299#define PATH 300#define GETURL_METHOD 301#define EQ 302#define LE 303#define GE 304#define NE 305#define LAN 306#define LOR 307#define INC 308#define DEC 309#define IEQ 310#define DEQ 311#define MEQ 312#define SEQ 313#define STREQ 314#define STRNE 315#define STRCMP 316#define PARENT 317#define END 318#define UMINUS 319#define POSTFIX 320#define NEGATE 321#line 3 "swf4compiler.y"#include <time.h>#include <string.h>#include "compile.h"#define YYPARSE_PARAM buffer#line 13 "swf4compiler.y"typedef union { Buffer action; char *str; SWFActionFunction function; SWFGetUrl2Method getURLMethod;} YYSTYPE;#include <stdio.h>#ifndef __cplusplus#ifndef __STDC__#define const#endif#endif#define YYFINAL 369#define YYFLAG -32768#define YYNTBASE 86#define YYTRANSLATE(x) ((unsigned)(x) <= 321 ? yytranslate[x] : 107)static const char yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 77, 2, 2, 2, 2, 71, 2, 83, 84, 74, 72, 65, 73, 85, 75, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 68, 82, 69, 66, 70, 67, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 80, 2, 81, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 76, 78, 79};#if YYDEBUG != 0static const short yyprhs[] = { 0, 0, 2, 4, 7, 9, 12, 16, 18, 21, 23, 25, 27, 29, 31, 35, 36, 38, 41, 52, 61, 71, 82, 91, 101, 109, 115, 116, 118, 128, 134, 141, 151, 152, 154, 157, 160, 164, 169, 174, 179, 184, 191, 200, 207, 214, 223, 230, 239, 246, 261, 270, 274, 278, 282, 286, 290, 294, 299, 304, 309, 314, 319, 324, 330, 336, 341, 345, 350, 355, 360, 365, 370, 377, 386, 393, 396, 399, 401, 405, 407, 410, 412, 414, 416, 420, 425, 428, 433, 436, 439, 442, 446, 450, 454, 458, 462, 466, 470, 474, 478, 482, 486, 490, 494, 498, 502, 506, 510, 516, 518, 522, 524, 526, 528, 530, 532, 534, 536, 538, 542, 544, 546, 549, 552, 557, 562, 566, 570, 574, 578, 582, 588, 594, 600, 606, 612};static const short yyrhs[] = { 87, 0, 88, 0, 87, 88, 0, 89, 0, 80, 81, 0, 80, 91, 81, 0, 82, 0, 105, 82, 0, 92, 0, 94, 0, 96, 0, 97, 0, 105, 0, 90, 65, 105, 0, 0, 89, 0, 91, 89, 0, 6, 83, 40, 83, 44, 84, 84, 89, 7, 89, 0, 6, 83, 40, 83, 44, 84, 84, 89, 0, 6, 83, 77, 40, 83, 44, 84, 84, 89, 0, 6, 83, 40, 83, 106, 84, 84, 89, 7, 89, 0, 6, 83, 40, 83, 106, 84, 84, 89, 0, 6, 83, 77, 40, 83, 106, 84, 84, 89, 0, 6, 83, 106, 84, 89, 7, 89, 0, 6, 83, 106, 84, 89, 0, 0, 106, 0, 9, 83, 77, 40, 83, 44, 84, 84, 89, 0, 9, 83, 106, 84, 89, 0, 8, 89, 9, 83, 106, 84, 0, 4, 83, 95, 82, 93, 82, 95, 84, 89, 0, 0, 90, 0, 5, 82, 0, 3, 82, 0, 21, 83, 84, 0, 24, 83, 102, 84, 0, 24, 83, 43, 84, 0, 18, 83, 106, 84, 0, 19, 83, 106, 84, 0, 25, 83, 106, 65, 106, 84, 0, 25, 83, 106, 65, 106, 65, 47, 84, 0, 26, 83, 43, 65, 43, 84, 0, 27, 83, 106, 65, 106, 84, 0, 27, 83, 106, 65, 106, 65, 47, 84, 0, 28, 83, 106, 65, 106, 84, 0, 28, 83, 106, 65, 106, 65, 47, 84, 0, 20, 83, 106, 65, 106, 84, 0, 20, 83, 106, 65, 106, 65, 106, 65, 106, 65, 106, 65, 106, 84, 0, 17, 83, 106, 65, 106, 65, 106, 84, 0, 32, 83, 84, 0, 33, 83, 84, 0, 34, 83, 84, 0, 35, 83, 84, 0, 36, 83, 84, 0, 37, 83, 84, 0, 38, 83, 44, 84, 0, 38, 83, 43, 84, 0, 38, 83, 106, 84, 0, 39, 83, 106, 84, 0, 41, 83, 43, 84, 0, 41, 83, 106, 84, 0, 42, 83, 43, 84, 89, 0, 42, 83, 106, 84, 89, 0, 11, 83, 106, 84, 0, 12, 83, 84, 0, 13, 83, 106, 84, 0, 14, 83, 106, 84, 0, 15, 83, 106, 84, 0, 22, 83, 106, 84, 0, 23, 83, 106, 84, 0, 16, 83, 106, 65, 106, 84, 0, 30, 83, 106, 65, 106, 65, 106, 84, 0, 31, 83, 106, 65, 43, 84, 0, 104, 54, 0, 104, 55, 0, 99, 0, 83, 101, 84, 0, 44, 0, 73, 44, 0, 43, 0, 102, 0, 103, 0, 103, 85, 45, 0, 54, 103, 85, 45, 0, 54, 104, 0, 55, 103, 85, 45, 0, 55, 104, 0, 73, 101, 0, 77, 101, 0, 104, 66, 101, 0, 101, 74, 101, 0, 101, 75, 101, 0, 101, 72, 101, 0, 101, 73, 101, 0, 101, 71, 101, 0, 101, 69, 101, 0, 101, 70, 101, 0, 101, 49, 101, 0, 101, 50, 101, 0, 101, 61, 101, 0, 101, 60, 101, 0, 101, 62, 101, 0, 101, 48, 101, 0, 101, 51, 101, 0, 101, 52, 101, 0, 101, 53, 101, 0, 101, 67, 101, 68, 101, 0, 45, 0, 103, 68, 45, 0, 10, 0, 85, 0, 75, 0, 63, 0, 45, 0, 46, 0, 102, 0, 43, 0, 83, 101, 84, 0, 100, 0, 98, 0, 54, 104, 0, 55, 104, 0, 54, 103, 85, 45, 0, 55, 103, 85, 45, 0, 104, 66, 101, 0, 104, 58, 101, 0, 104, 57, 101, 0, 104, 56, 101, 0, 104, 59, 101, 0, 103, 85, 45, 66, 101, 0, 103, 85, 45, 58, 101, 0, 103, 85, 45, 57, 101, 0, 103, 85, 45, 56, 101, 0, 103, 85, 45, 59, 101, 0, 101, 0};#endif#if YYDEBUG != 0static const short yyrline[] = { 0, 141, 145, 146, 151, 155, 156, 157, 158, 159, 160, 161, 162, 166, 167, 171, 172, 173, 180, 196, 212, 224, 238, 252, 262, 273, 282, 283, 307, 322, 334, 342, 364, 365, 369, 377, 385, 389, 396, 403, 407, 412, 419, 426, 435, 442, 449, 456, 464, 471, 483, 492, 496, 500, 504, 508, 512, 516, 523, 530, 536, 542, 549, 553, 567, 580, 584, 588, 592, 596, 600, 604, 608, 613, 619, 628, 639, 653, 655, 658, 663, 669, 674, 680, 685, 693, 708, 718, 733, 743, 748, 752, 758, 763, 768, 773, 778, 783, 788, 793, 799, 804, 809, 813, 817, 821, 826, 830, 834, 846, 848, 855, 858, 861, 864, 867, 870, 875, 880, 885, 889, 891, 893, 901, 909, 922, 935, 939, 946, 953, 960, 967, 976, 989, 1002, 1015, 1030};#endif#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)static const char * const yytname[] = { "$","error","$undefined.","BREAK","FOR","CONTINUE","IF","ELSE","DO","WHILE","THIS","EVAL","TIME","RANDOM","LENGTH","INT","CONCAT","DUPLICATECLIP","REMOVECLIP","TRACE","STARTDRAG","STOPDRAG","ORD","CHR","CALLFRAME","GETURL","GETURL1","LOADMOVIE","LOADVARIABLES","POSTURL","SUBSTR","GETPROPERTY","NEXTFRAME","PREVFRAME","PLAY","STOP","TOGGLEQUALITY","STOPSOUNDS","GOTOFRAME","GOTOANDPLAY","FRAMELOADED","SETTARGET","TELLTARGET","STRING","NUMBER","IDENTIFIER","PATH","GETURL_METHOD","\"==\"","\"<=\"","\">=\"","\"!=\"","\"&&\"","\"||\"","\"++\"","\"--\"","\"+=\"","\"/=\"","\"*=\"","\"-=\"","\"===\"","\"!==\"","\"<=>\"","\"..\"","\"end\"","','","'='","'?'","':'","'<'","'>'","'&'","'+'","'-'","'*'","'/'","UMINUS","'!'","POSTFIX","NEGATE","'{'","'}'","';'","'('","')'","'.'","program","elems","elem","stmt","assign_stmts","statements","if_stmt","expr_opt","iter_stmt","assign_stmts_opt","cont_stmt","break_stmt","void_function_call","function_call","pf_expr","rhs_expr","variable","sprite","lhs_expr","assign_stmt","expr", NULL};#endifstatic const short yyr1[] = { 0, 86, 87, 87, 88, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 92, 93, 93, 94, 94, 94, 94, 95, 95, 96, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 103, 103, 103, 103, 103, 103, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106};static const short yyr2[] = { 0, 1, 1, 2, 1, 2, 3, 1, 2, 1, 1, 1, 1, 1, 3, 0, 1, 2, 10, 8, 9, 10, 8, 9, 7, 5, 0, 1, 9, 5, 6, 9, 0, 1, 2, 2, 3, 4, 4, 4, 4, 6, 8, 6, 6, 8, 6, 8, 6, 14, 8, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 4, 3, 4, 4, 4, 4, 4, 6, 8, 6, 2, 2, 1, 3, 1, 2, 1, 1, 1, 3, 4, 2, 4, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 2, 2, 4, 4, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 1};static const short yydefact[] = { 0, 0, 0, 0, 0, 0, 0, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -