1 /* A Bison parser, made by GNU Bison 2.3. */ 2 3 /* Skeleton interface for Bison's Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 6 Free Software Foundation, Inc. 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 2, or (at your option) 11 any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 Boston, MA 02110-1301, USA. */ 22 23 /* As a special exception, you may create a larger work that contains 24 part or all of the Bison parser skeleton and distribute that work 25 under terms of your choice, so long as that work isn't itself a 26 parser generator using the skeleton or a modified version thereof 27 as a parser skeleton. Alternatively, if you modify or redistribute 28 the parser skeleton itself, you may (at your option) remove this 29 special exception, which will cause the skeleton and the resulting 30 Bison output files to be licensed under the GNU General Public 31 License without this special exception. 32 33 This special exception was added by the Free Software Foundation in 34 version 2.2 of Bison. */ 35 36 /* Tokens. */ 37 #ifndef YYTOKENTYPE 38 # define YYTOKENTYPE 39 /* Put the tokens into the symbol table, so that GDB and other debuggers 40 know about them. */ 41 enum yytokentype { 42 BREAK = 258, 43 FOR = 259, 44 CONTINUE = 260, 45 IF = 261, 46 ELSE = 262, 47 DO = 263, 48 WHILE = 264, 49 THIS = 265, 50 EVAL = 266, 51 TIME = 267, 52 RANDOM = 268, 53 LENGTH = 269, 54 INT = 270, 55 CONCAT = 271, 56 DUPLICATECLIP = 272, 57 REMOVECLIP = 273, 58 TRACE = 274, 59 STARTDRAG = 275, 60 STOPDRAG = 276, 61 ORD = 277, 62 CHR = 278, 63 CALLFRAME = 279, 64 GETURL = 280, 65 GETURL1 = 281, 66 LOADMOVIE = 282, 67 LOADMOVIENUM = 283, 68 LOADVARIABLES = 284, 69 POSTURL = 285, 70 SUBSTR = 286, 71 GETPROPERTY = 287, 72 NEXTFRAME = 288, 73 PREVFRAME = 289, 74 PLAY = 290, 75 STOP = 291, 76 TOGGLEQUALITY = 292, 77 STOPSOUNDS = 293, 78 GOTOFRAME = 294, 79 GOTOANDPLAY = 295, 80 FRAMELOADED = 296, 81 SETTARGET = 297, 82 ASM = 298, 83 ASMADD = 299, 84 ASMDIVIDE = 300, 85 ASMMULTIPLY = 301, 86 ASMEQUALS = 302, 87 ASMLESS = 303, 88 ASMLOGICALAND = 304, 89 ASMLOGICALOR = 305, 90 ASMLOGICALNOT = 306, 91 ASMSTRINGAND = 307, 92 ASMSTRINGEQUALS = 308, 93 ASMSTRINGEXTRACT = 309, 94 ASMSTRINGLENGTH = 310, 95 ASMMBSTRINGEXTRACT = 311, 96 ASMMBSTRINGLENGTH = 312, 97 ASMPOP = 313, 98 ASMPUSH = 314, 99 ASMASCIITOCHAR = 315, 100 ASMCHARTOASCII = 316, 101 ASMTOINTEGER = 317, 102 ASMCALL = 318, 103 ASMIF = 319, 104 ASMJUMP = 320, 105 ASMGETVARIABLE = 321, 106 ASMSETVARIABLE = 322, 107 ASMGETURL2 = 323, 108 ASMGETPROPERTY = 324, 109 ASMGOTOFRAME2 = 325, 110 ASMREMOVESPRITE = 326, 111 ASMSETPROPERTY = 327, 112 ASMSETTARGET2 = 328, 113 ASMSTARTDRAG = 329, 114 ASMWAITFORFRAME2 = 330, 115 ASMCLONESPRITE = 331, 116 ASMENDDRAG = 332, 117 ASMGETTIME = 333, 118 ASMRANDOMNUMBER = 334, 119 ASMTRACE = 335, 120 ASMMBASCIITOCHAR = 336, 121 ASMMBCHARTOASCII = 337, 122 ASMSUBSTRACT = 338, 123 ASMSTRINGLESS = 339, 124 TELLTARGET = 340, 125 BROKENSTRING = 341, 126 STRING = 342, 127 NUMBER = 343, 128 IDENTIFIER = 344, 129 PATH = 345, 130 EQ = 346, 131 LE = 347, 132 GE = 348, 133 NE = 349, 134 LAN = 350, 135 LOR = 351, 136 INC = 352, 137 DEC = 353, 138 IEQ = 354, 139 DEQ = 355, 140 MEQ = 356, 141 SEQ = 357, 142 STREQ = 358, 143 STRNE = 359, 144 STRCMP = 360, 145 PARENT = 361, 146 END = 362, 147 UMINUS = 363, 148 POSTFIX = 364, 149 NEGATE = 365 150 }; 151 #endif 152 /* Tokens. */ 153 #define BREAK 258 154 #define FOR 259 155 #define CONTINUE 260 156 #define IF 261 157 #define ELSE 262 158 #define DO 263 159 #define WHILE 264 160 #define THIS 265 161 #define EVAL 266 162 #define TIME 267 163 #define RANDOM 268 164 #define LENGTH 269 165 #define INT 270 166 #define CONCAT 271 167 #define DUPLICATECLIP 272 168 #define REMOVECLIP 273 169 #define TRACE 274 170 #define STARTDRAG 275 171 #define STOPDRAG 276 172 #define ORD 277 173 #define CHR 278 174 #define CALLFRAME 279 175 #define GETURL 280 176 #define GETURL1 281 177 #define LOADMOVIE 282 178 #define LOADMOVIENUM 283 179 #define LOADVARIABLES 284 180 #define POSTURL 285 181 #define SUBSTR 286 182 #define GETPROPERTY 287 183 #define NEXTFRAME 288 184 #define PREVFRAME 289 185 #define PLAY 290 186 #define STOP 291 187 #define TOGGLEQUALITY 292 188 #define STOPSOUNDS 293 189 #define GOTOFRAME 294 190 #define GOTOANDPLAY 295 191 #define FRAMELOADED 296 192 #define SETTARGET 297 193 #define ASM 298 194 #define ASMADD 299 195 #define ASMDIVIDE 300 196 #define ASMMULTIPLY 301 197 #define ASMEQUALS 302 198 #define ASMLESS 303 199 #define ASMLOGICALAND 304 200 #define ASMLOGICALOR 305 201 #define ASMLOGICALNOT 306 202 #define ASMSTRINGAND 307 203 #define ASMSTRINGEQUALS 308 204 #define ASMSTRINGEXTRACT 309 205 #define ASMSTRINGLENGTH 310 206 #define ASMMBSTRINGEXTRACT 311 207 #define ASMMBSTRINGLENGTH 312 208 #define ASMPOP 313 209 #define ASMPUSH 314 210 #define ASMASCIITOCHAR 315 211 #define ASMCHARTOASCII 316 212 #define ASMTOINTEGER 317 213 #define ASMCALL 318 214 #define ASMIF 319 215 #define ASMJUMP 320 216 #define ASMGETVARIABLE 321 217 #define ASMSETVARIABLE 322 218 #define ASMGETURL2 323 219 #define ASMGETPROPERTY 324 220 #define ASMGOTOFRAME2 325 221 #define ASMREMOVESPRITE 326 222 #define ASMSETPROPERTY 327 223 #define ASMSETTARGET2 328 224 #define ASMSTARTDRAG 329 225 #define ASMWAITFORFRAME2 330 226 #define ASMCLONESPRITE 331 227 #define ASMENDDRAG 332 228 #define ASMGETTIME 333 229 #define ASMRANDOMNUMBER 334 230 #define ASMTRACE 335 231 #define ASMMBASCIITOCHAR 336 232 #define ASMMBCHARTOASCII 337 233 #define ASMSUBSTRACT 338 234 #define ASMSTRINGLESS 339 235 #define TELLTARGET 340 236 #define BROKENSTRING 341 237 #define STRING 342 238 #define NUMBER 343 239 #define IDENTIFIER 344 240 #define PATH 345 241 #define EQ 346 242 #define LE 347 243 #define GE 348 244 #define NE 349 245 #define LAN 350 246 #define LOR 351 247 #define INC 352 248 #define DEC 353 249 #define IEQ 354 250 #define DEQ 355 251 #define MEQ 356 252 #define SEQ 357 253 #define STREQ 358 254 #define STRNE 359 255 #define STRCMP 360 256 #define PARENT 361 257 #define END 362 258 #define UMINUS 363 259 #define POSTFIX 364 260 #define NEGATE 365 261 262 263 264 265 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 266 typedef union YYSTYPE 267 #line 19 "./swf4compiler.y" 268 { 269 Buffer action; 270 char *str; 271 SWFActionFunction function; 272 SWFGetUrl2Method getURLMethod; 273 int len; 274 } 275 /* Line 1489 of yacc.c. */ 276 #line 277 "swf4compiler.tab.h" 277 YYSTYPE; 278 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 279 # define YYSTYPE_IS_DECLARED 1 280 # define YYSTYPE_IS_TRIVIAL 1 281 #endif 282 283 extern YYSTYPE swf4lval; 284 285