polygon intersector: added horizontal line reconstruction
[swftools.git] / lib / action / swf5compiler.tab.h
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      CONTINUE = 259,
44      FUNCTION = 260,
45      ELSE = 261,
46      SWITCH = 262,
47      CASE = 263,
48      DEFAULT = 264,
49      FOR = 265,
50      IN = 266,
51      IF = 267,
52      WHILE = 268,
53      DO = 269,
54      VAR = 270,
55      NEW = 271,
56      DELETE = 272,
57      RETURN = 273,
58      END = 274,
59      WITH = 275,
60      ASM = 276,
61      EVAL = 277,
62      RANDOM = 278,
63      GETTIMER = 279,
64      LENGTH = 280,
65      CONCAT = 281,
66      SUBSTR = 282,
67      TRACE = 283,
68      INT = 284,
69      ORD = 285,
70      CHR = 286,
71      GETURL = 287,
72      GETURL1 = 288,
73      NEXTFRAME = 289,
74      PREVFRAME = 290,
75      PLAY = 291,
76      STOP = 292,
77      TOGGLEQUALITY = 293,
78      STOPSOUNDS = 294,
79      DUP = 295,
80      SWAP = 296,
81      POP = 297,
82      PUSH = 298,
83      SETREGISTER = 299,
84      CALLFUNCTION = 300,
85      CALLMETHOD = 301,
86      AND = 302,
87      OR = 303,
88      XOR = 304,
89      MODULO = 305,
90      ADD = 306,
91      LESSTHAN = 307,
92      EQUALS = 308,
93      INC = 309,
94      DEC = 310,
95      TYPEOF = 311,
96      INSTANCEOF = 312,
97      ENUMERATE = 313,
98      INITOBJECT = 314,
99      INITARRAY = 315,
100      GETMEMBER = 316,
101      SETMEMBER = 317,
102      SHIFTLEFT = 318,
103      SHIFTRIGHT = 319,
104      SHIFTRIGHT2 = 320,
105      VAREQUALS = 321,
106      OLDADD = 322,
107      SUBTRACT = 323,
108      MULTIPLY = 324,
109      DIVIDE = 325,
110      OLDEQUALS = 326,
111      OLDLESSTHAN = 327,
112      LOGICALAND = 328,
113      LOGICALOR = 329,
114      NOT = 330,
115      STRINGEQ = 331,
116      STRINGLENGTH = 332,
117      SUBSTRING = 333,
118      GETVARIABLE = 334,
119      SETVARIABLE = 335,
120      SETTARGETEXPRESSION = 336,
121      DUPLICATEMOVIECLIP = 337,
122      REMOVEMOVIECLIP = 338,
123      STRINGLESSTHAN = 339,
124      MBLENGTH = 340,
125      MBSUBSTRING = 341,
126      MBORD = 342,
127      MBCHR = 343,
128      BRANCHALWAYS = 344,
129      BRANCHIFTRUE = 345,
130      GETURL2 = 346,
131      POST = 347,
132      GET = 348,
133      LOADVARIABLES = 349,
134      LOADMOVIE = 350,
135      LOADVARIABLESNUM = 351,
136      LOADMOVIENUM = 352,
137      CALLFRAME = 353,
138      STARTDRAG = 354,
139      STOPDRAG = 355,
140      GOTOFRAME = 356,
141      SETTARGET = 357,
142      NULLVAL = 358,
143      INTEGER = 359,
144      DOUBLE = 360,
145      BOOLEAN = 361,
146      REGISTER = 362,
147      STRING = 363,
148      IDENTIFIER = 364,
149      EQ = 365,
150      LE = 366,
151      GE = 367,
152      NE = 368,
153      LAN = 369,
154      LOR = 370,
155      INCR = 371,
156      DECR = 372,
157      IEQ = 373,
158      DEQ = 374,
159      MEQ = 375,
160      SEQ = 376,
161      REQ = 377,
162      AEQ = 378,
163      OEQ = 379,
164      SHL = 380,
165      SHR = 381,
166      SHR2 = 382,
167      SHLEQ = 383,
168      SHREQ = 384,
169      SHR2EQ = 385,
170      NOELSE = 386,
171      UMINUS = 388,
172      POSTFIX = 389
173    };
174 #endif
175 /* Tokens.  */
176 #define BREAK 258
177 #define CONTINUE 259
178 #define FUNCTION 260
179 #define ELSE 261
180 #define SWITCH 262
181 #define CASE 263
182 #define DEFAULT 264
183 #define FOR 265
184 #define IN 266
185 #define IF 267
186 #define WHILE 268
187 #define DO 269
188 #define VAR 270
189 #define NEW 271
190 #define DELETE 272
191 #define RETURN 273
192 #define END 274
193 #define WITH 275
194 #define ASM 276
195 #define EVAL 277
196 #define RANDOM 278
197 #define GETTIMER 279
198 #define LENGTH 280
199 #define CONCAT 281
200 #define SUBSTR 282
201 #define TRACE 283
202 #define INT 284
203 #define ORD 285
204 #define CHR 286
205 #define GETURL 287
206 #define GETURL1 288
207 #define NEXTFRAME 289
208 #define PREVFRAME 290
209 #define PLAY 291
210 #define STOP 292
211 #define TOGGLEQUALITY 293
212 #define STOPSOUNDS 294
213 #define DUP 295
214 #define SWAP 296
215 #define POP 297
216 #define PUSH 298
217 #define SETREGISTER 299
218 #define CALLFUNCTION 300
219 #define CALLMETHOD 301
220 #define AND 302
221 #define OR 303
222 #define XOR 304
223 #define MODULO 305
224 #define ADD 306
225 #define LESSTHAN 307
226 #define EQUALS 308
227 #define INC 309
228 #define DEC 310
229 #define TYPEOF 311
230 #define INSTANCEOF 312
231 #define ENUMERATE 313
232 #define INITOBJECT 314
233 #define INITARRAY 315
234 #define GETMEMBER 316
235 #define SETMEMBER 317
236 #define SHIFTLEFT 318
237 #define SHIFTRIGHT 319
238 #define SHIFTRIGHT2 320
239 #define VAREQUALS 321
240 #define OLDADD 322
241 #define SUBTRACT 323
242 #define MULTIPLY 324
243 #define DIVIDE 325
244 #define OLDEQUALS 326
245 #define OLDLESSTHAN 327
246 #define LOGICALAND 328
247 #define LOGICALOR 329
248 #define NOT 330
249 #define STRINGEQ 331
250 #define STRINGLENGTH 332
251 #define SUBSTRING 333
252 #define GETVARIABLE 334
253 #define SETVARIABLE 335
254 #define SETTARGETEXPRESSION 336
255 #define DUPLICATEMOVIECLIP 337
256 #define REMOVEMOVIECLIP 338
257 #define STRINGLESSTHAN 339
258 #define MBLENGTH 340
259 #define MBSUBSTRING 341
260 #define MBORD 342
261 #define MBCHR 343
262 #define BRANCHALWAYS 344
263 #define BRANCHIFTRUE 345
264 #define GETURL2 346
265 #define POST 347
266 #define GET 348
267 #define LOADVARIABLES 349
268 #define LOADMOVIE 350
269 #define LOADVARIABLESNUM 351
270 #define LOADMOVIENUM 352
271 #define CALLFRAME 353
272 #define STARTDRAG 354
273 #define STOPDRAG 355
274 #define GOTOFRAME 356
275 #define SETTARGET 357
276 #define NULLVAL 358
277 #define INTEGER 359
278 #define DOUBLE 360
279 #define BOOLEAN 361
280 #define REGISTER 362
281 #define STRING 363
282 #define IDENTIFIER 364
283 #define EQ 365
284 #define LE 366
285 #define GE 367
286 #define NE 368
287 #define LAN 369
288 #define LOR 370
289 #define INCR 371
290 #define DECR 372
291 #define IEQ 373
292 #define DEQ 374
293 #define MEQ 375
294 #define SEQ 376
295 #define REQ 377
296 #define AEQ 378
297 #define OEQ 379
298 #define SHL 380
299 #define SHR 381
300 #define SHR2 382
301 #define SHLEQ 383
302 #define SHREQ 384
303 #define SHR2EQ 385
304 #define NOELSE 386
305 #define UMINUS 388
306 #define POSTFIX 389
307
308
309
310
311 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
312 typedef union YYSTYPE
313 #line 21 "swf5compiler.y"
314 {
315   Buffer action;
316   char *str;
317   SWFGetUrl2Method getURLMethod;
318   int op;
319   int intVal;
320   int len;
321   double doubleVal;
322
323   struct
324   {
325     Buffer buffer;
326     int count;
327   } exprlist;
328   struct switchcase   switchcase;
329   struct switchcases switchcases;
330   struct
331   {
332         Buffer obj, ident, memexpr;
333   } lval;
334 }
335 /* Line 1489 of yacc.c.  */
336 #line 337 "swf5compiler.tab.h"
337         YYSTYPE;
338 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
339 # define YYSTYPE_IS_DECLARED 1
340 # define YYSTYPE_IS_TRIVIAL 1
341 #endif
342
343 extern YYSTYPE swf5lval;
344