summaryrefslogtreecommitdiff
path: root/lib/action
diff options
context:
space:
mode:
authorkramm <kramm>2009-01-13 22:17:17 +0000
committerkramm <kramm>2009-01-13 22:17:17 +0000
commitccbf4a94af93cd878643409fa21948f635baa082 (patch)
treee8c6c919cbc48e1cdf9410b21e12cf12fc452c6d /lib/action
parent8ce5e77faca24be91bf192076ff48caeca6150f2 (diff)
added lexed/yacc'ed C files to CVS
Diffstat (limited to 'lib/action')
-rw-r--r--lib/action/lex.swf4.c2514
-rw-r--r--lib/action/lex.swf5.c3007
-rw-r--r--lib/action/swf4compiler.tab.c2887
-rw-r--r--lib/action/swf4compiler.tab.h186
-rw-r--r--lib/action/swf5compiler.tab.c5337
-rw-r--r--lib/action/swf5compiler.tab.h333
6 files changed, 14264 insertions, 0 deletions
diff --git a/lib/action/lex.swf4.c b/lib/action/lex.swf4.c
new file mode 100644
index 00000000..b296ae54
--- /dev/null
+++ b/lib/action/lex.swf4.c
@@ -0,0 +1,2514 @@
+#define yy_create_buffer swf4_create_buffer
+#define yy_delete_buffer swf4_delete_buffer
+#define yy_scan_buffer swf4_scan_buffer
+#define yy_scan_string swf4_scan_string
+#define yy_scan_bytes swf4_scan_bytes
+#define yy_flex_debug swf4_flex_debug
+#define yy_init_buffer swf4_init_buffer
+#define yy_flush_buffer swf4_flush_buffer
+#define yy_load_buffer_state swf4_load_buffer_state
+#define yy_switch_to_buffer swf4_switch_to_buffer
+#define yyin swf4in
+#define yyleng swf4leng
+#define yylex swf4lex
+#define yyout swf4out
+#define yyrestart swf4restart
+#define yytext swf4text
+#define yywrap swf4wrap
+
+/* A lexical scanner generated by flex */
+
+/* Scanner skeleton version:
+ * $Header: /cvsroot/swftools/swftools/lib/action/lex.swf4.c,v 1.4 2009/01/13 22:17:17 kramm Exp $
+ */
+
+#define FLEX_SCANNER
+#define YY_FLEX_MAJOR_VERSION 2
+#define YY_FLEX_MINOR_VERSION 5
+
+#include <stdio.h>
+#include <unistd.h>
+
+
+/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
+#ifdef c_plusplus
+#ifndef __cplusplus
+#define __cplusplus
+#endif
+#endif
+
+
+#ifdef __cplusplus
+
+#include <stdlib.h>
+
+/* Use prototypes in function declarations. */
+#define YY_USE_PROTOS
+
+/* The "const" storage-class-modifier is valid. */
+#define YY_USE_CONST
+
+#else /* ! __cplusplus */
+
+#if __STDC__
+
+#define YY_USE_PROTOS
+#define YY_USE_CONST
+
+#endif /* __STDC__ */
+#endif /* ! __cplusplus */
+
+#ifdef __TURBOC__
+ #pragma warn -rch
+ #pragma warn -use
+#include <io.h>
+#include <stdlib.h>
+#define YY_USE_CONST
+#define YY_USE_PROTOS
+#endif
+
+#ifdef YY_USE_CONST
+#define yyconst const
+#else
+#define yyconst
+#endif
+
+
+#ifdef YY_USE_PROTOS
+#define YY_PROTO(proto) proto
+#else
+#define YY_PROTO(proto) ()
+#endif
+
+/* Returned upon end-of-file. */
+#define YY_NULL 0
+
+/* Promotes a possibly negative, possibly signed char to an unsigned
+ * integer for use as an array index. If the signed char is negative,
+ * we want to instead treat it as an 8-bit unsigned char, hence the
+ * double cast.
+ */
+#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
+
+/* Enter a start condition. This macro really ought to take a parameter,
+ * but we do it the disgusting crufty way forced on us by the ()-less
+ * definition of BEGIN.
+ */
+#define BEGIN yy_start = 1 + 2 *
+
+/* Translate the current start state into a value that can be later handed
+ * to BEGIN to return to the state. The YYSTATE alias is for lex
+ * compatibility.
+ */
+#define YY_START ((yy_start - 1) / 2)
+#define YYSTATE YY_START
+
+/* Action number for EOF rule of a given start state. */
+#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
+
+/* Special action meaning "start processing a new file". */
+#define YY_NEW_FILE yyrestart( yyin )
+
+#define YY_END_OF_BUFFER_CHAR 0
+
+/* Size of default input buffer. */
+#define YY_BUF_SIZE 16384
+
+typedef struct yy_buffer_state *YY_BUFFER_STATE;
+
+extern int yyleng;
+extern FILE *yyin, *yyout;
+
+#define EOB_ACT_CONTINUE_SCAN 0
+#define EOB_ACT_END_OF_FILE 1
+#define EOB_ACT_LAST_MATCH 2
+
+/* The funky do-while in the following #define is used to turn the definition
+ * int a single C statement (which needs a semi-colon terminator). This
+ * avoids problems with code like:
+ *
+ * if ( condition_holds )
+ * yyless( 5 );
+ * else
+ * do_something_else();
+ *
+ * Prior to using the do-while the compiler would get upset at the
+ * "else" because it interpreted the "if" statement as being all
+ * done when it reached the ';' after the yyless() call.
+ */
+
+/* Return all but the first 'n' matched characters back to the input stream. */
+
+#define yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up yytext. */ \
+ *yy_cp = yy_hold_char; \
+ YY_RESTORE_YY_MORE_OFFSET \
+ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
+ YY_DO_BEFORE_ACTION; /* set up yytext again */ \
+ } \
+ while ( 0 )
+
+#define unput(c) yyunput( c, yytext_ptr )
+
+/* The following is because we cannot portably get our hands on size_t
+ * (without autoconf's help, which isn't available because we want
+ * flex-generated scanners to compile on their own).
+ */
+typedef unsigned int yy_size_t;
+
+
+struct yy_buffer_state
+ {
+ FILE *yy_input_file;
+
+ char *yy_ch_buf; /* input buffer */
+ char *yy_buf_pos; /* current position in input buffer */
+
+ /* Size of input buffer in bytes, not including room for EOB
+ * characters.
+ */
+ yy_size_t yy_buf_size;
+
+ /* Number of characters read into yy_ch_buf, not including EOB
+ * characters.
+ */
+ int yy_n_chars;
+
+ /* Whether we "own" the buffer - i.e., we know we created it,
+ * and can realloc() it to grow it, and should free() it to
+ * delete it.
+ */
+ int yy_is_our_buffer;
+
+ /* Whether this is an "interactive" input source; if so, and
+ * if we're using stdio for input, then we want to use getc()
+ * instead of fread(), to make sure we stop fetching input after
+ * each newline.
+ */
+ int yy_is_interactive;
+
+ /* Whether we're considered to be at the beginning of a line.
+ * If so, '^' rules will be active on the next match, otherwise
+ * not.
+ */
+ int yy_at_bol;
+
+ /* Whether to try to fill the input buffer when we reach the
+ * end of it.
+ */
+ int yy_fill_buffer;
+
+ int yy_buffer_status;
+#define YY_BUFFER_NEW 0
+#define YY_BUFFER_NORMAL 1
+ /* When an EOF's been seen but there's still some text to process
+ * then we mark the buffer as YY_EOF_PENDING, to indicate that we
+ * shouldn't try reading from the input source any more. We might
+ * still have a bunch of tokens to match, though, because of
+ * possible backing-up.
+ *
+ * When we actually see the EOF, we change the status to "new"
+ * (via yyrestart()), so that the user can continue scanning by
+ * just pointing yyin at a new input file.
+ */
+#define YY_BUFFER_EOF_PENDING 2
+ };
+
+static YY_BUFFER_STATE yy_current_buffer = 0;
+
+/* We provide macros for accessing buffer states in case in the
+ * future we want to put the buffer states in a more general
+ * "scanner state".
+ */
+#define YY_CURRENT_BUFFER yy_current_buffer
+
+
+/* yy_hold_char holds the character lost when yytext is formed. */
+static char yy_hold_char;
+
+static int yy_n_chars; /* number of characters read into yy_ch_buf */
+
+
+int yyleng;
+
+/* Points to current character in buffer. */
+static char *yy_c_buf_p = (char *) 0;
+static int yy_init = 1; /* whether we need to initialize */
+static int yy_start = 0; /* start state number */
+
+/* Flag which is used to allow yywrap()'s to do buffer switches
+ * instead of setting up a fresh yyin. A bit of a hack ...
+ */
+static int yy_did_buffer_switch_on_eof;
+
+void yyrestart YY_PROTO(( FILE *input_file ));
+
+void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
+void yy_load_buffer_state YY_PROTO(( void ));
+YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
+void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
+void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
+void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
+#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
+
+YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
+YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
+YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
+
+static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
+static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
+static void yy_flex_free YY_PROTO(( void * ));
+
+#define yy_new_buffer yy_create_buffer
+
+#define yy_set_interactive(is_interactive) \
+ { \
+ if ( ! yy_current_buffer ) \
+ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
+ yy_current_buffer->yy_is_interactive = is_interactive; \
+ }
+
+#define yy_set_bol(at_bol) \
+ { \
+ if ( ! yy_current_buffer ) \
+ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
+ yy_current_buffer->yy_at_bol = at_bol; \
+ }
+
+#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
+
+typedef unsigned char YY_CHAR;
+FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
+typedef int yy_state_type;
+extern char *yytext;
+#define yytext_ptr yytext
+
+static yy_state_type yy_get_previous_state YY_PROTO(( void ));
+static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
+static int yy_get_next_buffer YY_PROTO(( void ));
+static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
+
+/* Done after the current pattern has been matched and before the
+ * corresponding action - sets up yytext.
+ */
+#define YY_DO_BEFORE_ACTION \
+ yytext_ptr = yy_bp; \
+ yyleng = (int) (yy_cp - yy_bp); \
+ yy_hold_char = *yy_cp; \
+ *yy_cp = '\0'; \
+ yy_c_buf_p = yy_cp;
+
+#define YY_NUM_RULES 95
+#define YY_END_OF_BUFFER 96
+static yyconst short int yy_accept[320] =
+ { 0,
+ 0, 0, 96, 94, 56, 93, 94, 82, 94, 79,
+ 94, 83, 84, 80, 77, 89, 78, 90, 81, 1,
+ 92, 75, 59, 76, 60, 91, 85, 86, 47, 47,
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
+ 47, 47, 47, 47, 47, 87, 94, 88, 93, 64,
+ 0, 52, 50, 0, 65, 0, 53, 51, 0, 67,
+ 57, 69, 58, 70, 74, 0, 54, 48, 55, 68,
+ 48, 2, 1, 61, 63, 62, 0, 47, 47, 47,
+ 47, 47, 11, 47, 47, 47, 47, 47, 47, 47,
+ 9, 47, 47, 47, 47, 47, 47, 47, 47, 47,
+
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
+ 47, 47, 66, 72, 48, 48, 2, 73, 71, 49,
+ 49, 47, 47, 24, 47, 47, 47, 47, 8, 47,
+ 33, 47, 16, 47, 47, 47, 47, 23, 47, 47,
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
+ 47, 47, 47, 47, 47, 49, 49, 47, 47, 47,
+ 47, 47, 7, 47, 47, 47, 47, 47, 47, 47,
+ 47, 47, 37, 32, 47, 47, 47, 47, 47, 38,
+ 47, 47, 46, 14, 47, 47, 3, 47, 47, 5,
+ 47, 47, 47, 47, 4, 47, 47, 47, 47, 47,
+
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
+ 47, 47, 47, 47, 47, 20, 47, 10, 47, 17,
+ 47, 47, 47, 47, 26, 47, 47, 15, 47, 47,
+ 47, 34, 47, 13, 47, 47, 47, 47, 47, 30,
+ 47, 47, 47, 47, 47, 47, 47, 47, 27, 47,
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
+ 47, 47, 12, 47, 6, 47, 47, 47, 47, 47,
+ 47, 47, 47, 47, 47, 47, 47, 22, 47, 47,
+ 47, 25, 47, 47, 47, 47, 41, 28, 47, 35,
+ 36, 47, 44, 21, 47, 47, 47, 47, 47, 47,
+
+ 47, 47, 19, 40, 45, 47, 47, 43, 31, 42,
+ 47, 47, 47, 47, 47, 18, 29, 39, 0
+ } ;
+
+static yyconst int yy_ec[256] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
+ 2, 2, 4, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 2, 5, 6, 1, 1, 1, 7, 8, 9,
+ 10, 11, 12, 13, 14, 15, 16, 17, 18, 17,
+ 17, 17, 17, 17, 17, 17, 17, 19, 20, 21,
+ 22, 23, 24, 1, 29, 30, 31, 32, 33, 34,
+ 35, 36, 37, 28, 38, 39, 40, 41, 42, 43,
+ 44, 45, 46, 47, 48, 49, 50, 51, 52, 28,
+ 25, 26, 27, 1, 28, 1, 29, 30, 31, 32,
+
+ 33, 34, 35, 36, 37, 28, 38, 39, 40, 41,
+ 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
+ 52, 28, 53, 54, 55, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1
+ } ;
+
+static yyconst int yy_meta[56] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 2, 1, 1, 1, 3, 4, 5, 5, 1, 1,
+ 1, 2, 1, 1, 1, 1, 1, 6, 6, 6,
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+ 6, 6, 1, 1, 1
+ } ;
+
+static yyconst short int yy_base[327] =
+ { 0,
+ 0, 0, 626, 627, 627, 627, 622, 602, 53, 616,
+ 54, 627, 627, 600, 46, 627, 47, 48, 55, 57,
+ 627, 627, 599, 598, 597, 627, 627, 627, 602, 44,
+ 49, 51, 57, 65, 67, 70, 72, 79, 68, 81,
+ 86, 85, 92, 74, 100, 627, 563, 627, 627, 594,
+ 121, 132, 627, 612, 627, 114, 136, 627, 611, 627,
+ 627, 627, 627, 627, 597, 130, 627, 115, 627, 627,
+ 596, 125, 133, 588, 588, 627, 594, 592, 133, 137,
+ 138, 139, 591, 141, 60, 140, 143, 144, 145, 147,
+ 590, 148, 149, 152, 151, 153, 66, 156, 154, 158,
+
+ 155, 161, 159, 181, 173, 166, 170, 171, 177, 188,
+ 182, 192, 627, 627, 589, 588, 196, 627, 627, 200,
+ 587, 193, 202, 586, 203, 204, 209, 208, 585, 211,
+ 210, 214, 584, 212, 216, 215, 219, 583, 217, 221,
+ 222, 223, 224, 228, 229, 230, 233, 241, 243, 244,
+ 247, 245, 248, 249, 251, 582, 581, 254, 262, 256,
+ 267, 268, 580, 270, 275, 271, 272, 277, 278, 279,
+ 284, 282, 579, 578, 286, 285, 283, 293, 291, 294,
+ 296, 297, 577, 576, 298, 308, 575, 313, 314, 574,
+ 305, 315, 317, 318, 573, 320, 319, 326, 323, 329,
+
+ 332, 335, 337, 336, 338, 339, 340, 353, 344, 341,
+ 347, 351, 355, 356, 362, 572, 359, 571, 367, 566,
+ 360, 374, 363, 366, 381, 372, 378, 565, 371, 382,
+ 386, 556, 390, 539, 394, 395, 396, 397, 375, 538,
+ 398, 400, 401, 402, 405, 406, 408, 412, 537, 413,
+ 415, 417, 420, 418, 423, 430, 416, 431, 424, 432,
+ 435, 434, 535, 445, 533, 446, 436, 448, 449, 450,
+ 451, 456, 458, 459, 460, 455, 461, 530, 471, 465,
+ 470, 529, 464, 473, 474, 478, 527, 526, 484, 525,
+ 524, 485, 519, 517, 488, 489, 492, 493, 494, 495,
+
+ 496, 499, 513, 511, 509, 500, 502, 508, 507, 299,
+ 497, 503, 501, 506, 504, 162, 76, 71, 627, 556,
+ 562, 567, 570, 573, 577, 580
+ } ;
+
+static yyconst short int yy_def[327] =
+ { 0,
+ 319, 1, 319, 319, 319, 319, 319, 319, 320, 319,
+ 321, 319, 319, 319, 319, 319, 319, 319, 322, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 319, 319, 319, 319, 319,
+ 320, 320, 319, 320, 319, 321, 321, 319, 321, 319,
+ 319, 319, 319, 319, 319, 322, 319, 319, 319, 319,
+ 324, 319, 319, 319, 319, 319, 325, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 319, 319, 319, 324, 319, 319, 319, 319,
+ 326, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 319, 326, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 0, 319,
+ 319, 319, 319, 319, 319, 319
+ } ;
+
+static yyconst short int yy_nxt[683] =
+ { 0,
+ 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
+ 14, 15, 16, 17, 18, 19, 20, 20, 21, 22,
+ 23, 24, 25, 26, 27, 4, 28, 29, 29, 30,
+ 31, 32, 33, 34, 35, 29, 36, 29, 37, 29,
+ 38, 39, 40, 29, 41, 42, 43, 29, 44, 45,
+ 29, 29, 46, 47, 48, 52, 57, 61, 53, 77,
+ 63, 58, 65, 66, 77, 67, 77, 62, 64, 68,
+ 69, 72, 77, 73, 73, 77, 70, 80, 54, 59,
+ 77, 77, 77, 77, 81, 77, 77, 77, 79, 77,
+ 82, 77, 83, 86, 77, 85, 77, 138, 84, 89,
+
+ 77, 77, 111, 91, 93, 127, 87, 77, 90, 88,
+ 92, 95, 97, 94, 101, 77, 57, 103, 102, 98,
+ 96, 58, 99, 52, 106, 100, 53, 107, 108, 115,
+ 66, 104, 105, 109, 52, 112, 110, 53, 57, 59,
+ 319, 117, 117, 58, 68, 319, 54, 72, 77, 73,
+ 73, 319, 77, 77, 77, 77, 77, 54, 77, 77,
+ 77, 59, 77, 77, 77, 122, 77, 77, 77, 77,
+ 77, 77, 130, 77, 77, 123, 77, 77, 128, 125,
+ 135, 77, 124, 126, 139, 77, 77, 129, 77, 134,
+ 141, 131, 77, 132, 133, 142, 77, 77, 137, 140,
+
+ 143, 136, 147, 77, 148, 144, 149, 77, 77, 145,
+ 150, 151, 117, 117, 156, 77, 152, 77, 77, 77,
+ 154, 158, 146, 77, 77, 77, 77, 77, 155, 77,
+ 77, 77, 77, 160, 77, 153, 77, 77, 77, 77,
+ 159, 163, 162, 77, 77, 77, 169, 170, 77, 161,
+ 165, 172, 166, 164, 176, 168, 77, 167, 77, 77,
+ 77, 171, 77, 77, 77, 177, 77, 174, 173, 77,
+ 175, 77, 180, 179, 178, 186, 184, 77, 181, 182,
+ 187, 185, 77, 77, 192, 77, 77, 77, 183, 189,
+ 77, 190, 77, 77, 77, 191, 188, 77, 77, 77,
+
+ 77, 77, 195, 193, 194, 199, 77, 196, 77, 77,
+ 200, 77, 77, 77, 77, 197, 198, 204, 202, 206,
+ 77, 209, 205, 77, 201, 211, 207, 203, 77, 77,
+ 77, 208, 77, 77, 77, 77, 215, 210, 77, 212,
+ 216, 77, 213, 214, 77, 217, 218, 77, 222, 219,
+ 77, 77, 77, 77, 77, 77, 77, 221, 223, 77,
+ 224, 220, 77, 226, 225, 230, 77, 228, 77, 232,
+ 77, 77, 237, 227, 77, 77, 229, 77, 77, 234,
+ 231, 77, 77, 233, 241, 235, 77, 77, 236, 77,
+ 77, 238, 239, 77, 242, 244, 77, 77, 249, 240,
+
+ 243, 77, 246, 250, 247, 77, 251, 245, 248, 77,
+ 77, 77, 77, 77, 254, 77, 77, 77, 255, 252,
+ 77, 77, 260, 77, 256, 259, 253, 77, 77, 257,
+ 77, 77, 77, 77, 263, 77, 267, 265, 77, 77,
+ 258, 264, 261, 262, 268, 77, 77, 77, 276, 77,
+ 77, 77, 266, 271, 270, 269, 272, 273, 278, 277,
+ 77, 77, 274, 77, 77, 77, 77, 284, 275, 280,
+ 77, 77, 279, 77, 77, 77, 77, 282, 283, 77,
+ 77, 281, 287, 288, 289, 77, 77, 286, 77, 77,
+ 290, 291, 285, 77, 298, 294, 292, 296, 297, 77,
+
+ 77, 293, 295, 77, 77, 299, 301, 77, 77, 77,
+ 77, 77, 77, 302, 77, 77, 77, 77, 77, 77,
+ 300, 77, 77, 77, 77, 308, 77, 303, 77, 314,
+ 306, 307, 77, 304, 77, 305, 312, 311, 313, 77,
+ 77, 77, 77, 316, 77, 77, 309, 310, 77, 315,
+ 77, 317, 77, 77, 77, 318, 51, 51, 51, 51,
+ 51, 51, 56, 56, 56, 56, 56, 56, 71, 71,
+ 71, 77, 71, 78, 78, 78, 116, 116, 116, 121,
+ 77, 77, 121, 157, 157, 157, 77, 77, 77, 77,
+ 77, 77, 77, 77, 77, 77, 77, 77, 77, 77,
+
+ 77, 77, 77, 66, 66, 77, 77, 77, 120, 119,
+ 118, 66, 66, 319, 319, 114, 113, 77, 76, 75,
+ 74, 60, 55, 50, 49, 319, 3, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319
+ } ;
+
+static yyconst short int yy_chk[683] =
+ { 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, 9, 11, 15, 9, 30,
+ 17, 11, 18, 18, 31, 19, 32, 15, 17, 19,
+ 19, 20, 33, 20, 20, 85, 19, 31, 9, 11,
+ 34, 97, 35, 39, 31, 36, 318, 37, 30, 44,
+ 31, 317, 32, 34, 38, 33, 40, 97, 32, 35,
+
+ 42, 41, 44, 36, 37, 85, 34, 43, 35, 34,
+ 36, 38, 39, 37, 41, 45, 56, 42, 41, 40,
+ 38, 56, 40, 51, 43, 40, 51, 43, 43, 68,
+ 68, 42, 42, 43, 52, 45, 43, 52, 57, 56,
+ 66, 72, 72, 57, 66, 66, 51, 73, 79, 73,
+ 73, 66, 80, 81, 82, 86, 84, 52, 87, 88,
+ 89, 57, 90, 92, 93, 79, 95, 94, 96, 99,
+ 101, 98, 88, 100, 103, 80, 102, 316, 86, 82,
+ 94, 106, 81, 84, 98, 107, 108, 87, 105, 93,
+ 100, 89, 109, 90, 92, 101, 104, 111, 96, 99,
+
+ 102, 95, 105, 110, 106, 103, 107, 112, 122, 104,
+ 108, 109, 117, 117, 120, 120, 110, 123, 125, 126,
+ 111, 122, 104, 128, 127, 131, 130, 134, 112, 132,
+ 136, 135, 139, 125, 137, 110, 140, 141, 142, 143,
+ 123, 127, 126, 144, 145, 146, 134, 135, 147, 125,
+ 130, 137, 131, 128, 142, 132, 148, 131, 149, 150,
+ 152, 136, 151, 153, 154, 143, 155, 140, 139, 158,
+ 141, 160, 146, 145, 144, 152, 150, 159, 147, 148,
+ 153, 151, 161, 162, 160, 164, 166, 167, 149, 155,
+ 165, 158, 168, 169, 170, 159, 154, 172, 177, 171,
+
+ 176, 175, 164, 161, 162, 168, 179, 165, 178, 180,
+ 168, 181, 182, 185, 310, 166, 167, 171, 170, 175,
+ 191, 178, 172, 186, 169, 180, 176, 170, 188, 189,
+ 192, 177, 193, 194, 197, 196, 185, 179, 199, 180,
+ 186, 198, 181, 182, 200, 188, 189, 201, 194, 191,
+ 202, 204, 203, 205, 206, 207, 210, 193, 196, 209,
+ 197, 192, 211, 199, 198, 203, 212, 201, 208, 205,
+ 213, 214, 210, 200, 217, 221, 202, 215, 223, 207,
+ 204, 224, 219, 206, 214, 208, 229, 226, 209, 222,
+ 239, 211, 212, 227, 215, 219, 225, 230, 225, 213,
+
+ 217, 231, 222, 226, 223, 233, 227, 221, 224, 235,
+ 236, 237, 238, 241, 231, 242, 243, 244, 233, 229,
+ 245, 246, 239, 247, 235, 238, 230, 248, 250, 236,
+ 251, 257, 252, 254, 243, 253, 247, 245, 255, 259,
+ 237, 244, 241, 242, 248, 256, 258, 260, 257, 262,
+ 261, 267, 246, 252, 251, 250, 253, 254, 259, 258,
+ 264, 266, 255, 268, 269, 270, 271, 267, 256, 261,
+ 276, 272, 260, 273, 274, 275, 277, 264, 266, 283,
+ 280, 262, 270, 271, 272, 281, 279, 269, 284, 285,
+ 273, 274, 268, 286, 283, 277, 275, 280, 281, 289,
+
+ 292, 276, 279, 295, 296, 284, 286, 297, 298, 299,
+ 300, 301, 311, 289, 302, 306, 313, 307, 312, 315,
+ 285, 314, 309, 308, 305, 299, 304, 292, 303, 311,
+ 297, 298, 294, 295, 293, 296, 306, 302, 307, 291,
+ 290, 288, 287, 313, 282, 278, 300, 301, 265, 312,
+ 263, 314, 249, 240, 234, 315, 320, 320, 320, 320,
+ 320, 320, 321, 321, 321, 321, 321, 321, 322, 322,
+ 322, 232, 322, 323, 323, 323, 324, 324, 324, 325,
+ 228, 220, 325, 326, 326, 326, 218, 216, 195, 190,
+ 187, 184, 183, 174, 173, 163, 157, 156, 138, 133,
+
+ 129, 124, 121, 116, 115, 91, 83, 78, 77, 75,
+ 74, 71, 65, 59, 54, 50, 47, 29, 25, 24,
+ 23, 14, 10, 8, 7, 3, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
+ 319, 319
+ } ;
+
+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_OFFSET
+char *yytext;
+#line 1 "swf4compiler.flex"
+#define INITIAL 0
+#line 2 "swf4compiler.flex"
+
+#include <math.h>
+#include <string.h>
+
+#include "compile.h"
+#include "action.h"
+#include "blocks/error.h"
+#include "swf4compiler.tab.h" /* defines token types */
+
+static int swf4debug;
+
+static const 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 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 swf4ParseInit(const char *script, int debug)
+{
+ checkByteOrder();
+ yyrestart(NULL);
+
+ swf4debug = debug;
+
+ lexBuffer = script;
+ lexBufferLen = strlen(script);
+ sLineNumber = 0;
+ column = 0;
+ msgline = msgbufs[0];
+}
+
+#line 79 "swf4compiler.flex"
+ // forward declaration needed by the following function
+#ifndef YY_PROTO
+#ifdef YY_USE_PROTOS
+#define YY_PROTO(proto) proto
+#else
+#define YY_PROTO(proto) ()
+#endif
+#endif
+ static void yyunput YY_PROTO(( int c, char *buf_ptr ));
+
+ void do_unput4(const char c) { unput(c); }
+#line 725 "lex.swf4.c"
+
+/* Macros after this point can all be overridden by user definitions in
+ * section 1.
+ */
+
+#ifndef YY_SKIP_YYWRAP
+#ifdef __cplusplus
+extern "C" int yywrap YY_PROTO(( void ));
+#else
+extern int yywrap YY_PROTO(( void ));
+#endif
+#endif
+
+#ifndef YY_NO_UNPUT
+static void yyunput YY_PROTO(( int c, char *buf_ptr ));
+#endif
+
+#ifndef yytext_ptr
+static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
+#endif
+
+#ifdef YY_NEED_STRLEN
+static int yy_flex_strlen YY_PROTO(( yyconst char * ));
+#endif
+
+#ifndef YY_NO_INPUT
+#ifdef __cplusplus
+static int yyinput YY_PROTO(( void ));
+#else
+static int input YY_PROTO(( void ));
+#endif
+#endif
+
+#if YY_STACK_USED
+static int yy_start_stack_ptr = 0;
+static int yy_start_stack_depth = 0;
+static int *yy_start_stack = 0;
+#ifndef YY_NO_PUSH_STATE
+static void yy_push_state YY_PROTO(( int new_state ));
+#endif
+#ifndef YY_NO_POP_STATE
+static void yy_pop_state YY_PROTO(( void ));
+#endif
+#ifndef YY_NO_TOP_STATE
+static 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_DECL
+YY_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;
+#endif
+
+#define YY_RULE_SETUP \
+ YY_USER_ACTION
+
+YY_DECL
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp = NULL, *yy_bp = NULL;
+ register int yy_act;
+
+#line 96 "swf4compiler.flex"
+
+
+#line 879 "lex.swf4.c"
+
+ if ( yy_init )
+ {
+ yy_init = 0;
+
+#ifdef YY_USER_INIT
+ YY_USER_INIT;
+#endif
+
+ if ( ! yy_start )
+ yy_start = 1; /* first start state */
+
+ if ( ! yyin )
+ yyin = stdin;
+
+ if ( ! yyout )
+ yyout = stdout;
+
+ if ( ! yy_current_buffer )
+ yy_current_buffer =
+ yy_create_buffer( yyin, YY_BUF_SIZE );
+
+ yy_load_buffer_state();
+ }
+
+ while ( 1 ) /* loops until end-of-file is reached */
+ {
+ yy_cp = yy_c_buf_p;
+
+ /* Support of yytext. */
+ *yy_cp = yy_hold_char;
+
+ /* yy_bp points to the position in yy_ch_buf of the start of
+ * the current run.
+ */
+ yy_bp = yy_cp;
+
+ yy_current_state = yy_start;
+yy_match:
+ do
+ {
+ register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+ if ( yy_accept[yy_current_state] )
+ {
+ yy_last_accepting_state = yy_current_state;
+ yy_last_accepting_cpos = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 320 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ ++yy_cp;
+ }
+ while ( yy_base[yy_current_state] != 627 );
+
+yy_find_action:
+ yy_act = yy_accept[yy_current_state];
+ if ( yy_act == 0 )
+ { /* have to back up */
+ yy_cp = yy_last_accepting_cpos;
+ yy_current_state = yy_last_accepting_state;
+ yy_act = yy_accept[yy_current_state];
+ }
+
+ YY_DO_BEFORE_ACTION;
+
+
+do_action: /* This label is used only to access EOF actions. */
+
+
+ switch ( yy_act )
+ { /* beginning of action switch */
+ case 0: /* must back up */
+ /* undo the effects of YY_DO_BEFORE_ACTION */
+ *yy_cp = yy_hold_char;
+ yy_cp = yy_last_accepting_cpos;
+ yy_current_state = yy_last_accepting_state;
+ goto yy_find_action;
+
+case 1:
+YY_RULE_SETUP
+#line 98 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup(yytext);
+ return NUMBER; }
+ YY_BREAK
+case 2:
+YY_RULE_SETUP
+#line 100 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup(yytext);
+ return NUMBER; }
+ YY_BREAK
+case 3:
+YY_RULE_SETUP
+#line 102 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup("1");
+ return NUMBER; }
+ YY_BREAK
+case 4:
+YY_RULE_SETUP
+#line 104 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup("0");
+ return NUMBER; }
+ YY_BREAK
+case 5:
+YY_RULE_SETUP
+#line 106 "swf4compiler.flex"
+{ count(); return BREAK; }
+ YY_BREAK
+case 6:
+YY_RULE_SETUP
+#line 107 "swf4compiler.flex"
+{ count(); return CONTINUE; }
+ YY_BREAK
+case 7:
+YY_RULE_SETUP
+#line 108 "swf4compiler.flex"
+{ count(); return ELSE; }
+ YY_BREAK
+case 8:
+YY_RULE_SETUP
+#line 109 "swf4compiler.flex"
+{ count(); return FOR; }
+ YY_BREAK
+case 9:
+YY_RULE_SETUP
+#line 110 "swf4compiler.flex"
+{ count(); return IF; }
+ YY_BREAK
+case 10:
+YY_RULE_SETUP
+#line 111 "swf4compiler.flex"
+{ count(); return WHILE; }
+ YY_BREAK
+case 11:
+YY_RULE_SETUP
+#line 112 "swf4compiler.flex"
+{ count(); return DO; }
+ YY_BREAK
+case 12:
+YY_RULE_SETUP
+#line 113 "swf4compiler.flex"
+{ count(); return EVAL; }
+ YY_BREAK
+/* functions */
+case 13:
+YY_RULE_SETUP
+#line 116 "swf4compiler.flex"
+{ count(); return RANDOM; }
+ YY_BREAK
+case 14:
+YY_RULE_SETUP
+#line 117 "swf4compiler.flex"
+{ count(); return TIME; }
+ YY_BREAK
+case 15:
+YY_RULE_SETUP
+#line 118 "swf4compiler.flex"
+{ count(); return LENGTH; }
+ YY_BREAK
+case 16:
+YY_RULE_SETUP
+#line 119 "swf4compiler.flex"
+{ count(); return INT; }
+ YY_BREAK
+case 17:
+YY_RULE_SETUP
+#line 120 "swf4compiler.flex"
+{ count(); return CONCAT; }
+ YY_BREAK
+case 18:
+YY_RULE_SETUP
+#line 121 "swf4compiler.flex"
+{ count(); return DUPLICATECLIP; }
+ YY_BREAK
+case 19:
+YY_RULE_SETUP
+#line 122 "swf4compiler.flex"
+{ count(); return REMOVECLIP; }
+ YY_BREAK
+case 20:
+YY_RULE_SETUP
+#line 123 "swf4compiler.flex"
+{ count(); return TRACE; }
+ YY_BREAK
+case 21:
+YY_RULE_SETUP
+#line 124 "swf4compiler.flex"
+{ count(); return STARTDRAG; }
+ YY_BREAK
+case 22:
+YY_RULE_SETUP
+#line 125 "swf4compiler.flex"
+{ count(); return STOPDRAG; }
+ YY_BREAK
+case 23:
+YY_RULE_SETUP
+#line 126 "swf4compiler.flex"
+{ count(); return ORD; }
+ YY_BREAK
+case 24:
+YY_RULE_SETUP
+#line 127 "swf4compiler.flex"
+{ count(); return CHR; }
+ YY_BREAK
+case 25:
+YY_RULE_SETUP
+#line 128 "swf4compiler.flex"
+{ count(); return CALLFRAME; }
+ YY_BREAK
+case 26:
+YY_RULE_SETUP
+#line 129 "swf4compiler.flex"
+{ count(); return GETURL; }
+ YY_BREAK
+case 27:
+YY_RULE_SETUP
+#line 130 "swf4compiler.flex"
+{ count(); return GETURL1; }
+ YY_BREAK
+case 28:
+YY_RULE_SETUP
+#line 131 "swf4compiler.flex"
+{ count(); return LOADMOVIE; }
+ YY_BREAK
+case 29:
+YY_RULE_SETUP
+#line 132 "swf4compiler.flex"
+{ count(); return LOADVARIABLES; }
+ YY_BREAK
+case 30:
+YY_RULE_SETUP
+#line 133 "swf4compiler.flex"
+{ count(); return SUBSTR; }
+ YY_BREAK
+case 31:
+YY_RULE_SETUP
+#line 135 "swf4compiler.flex"
+{ count(); return GETPROPERTY; }
+ YY_BREAK
+/* getURL2 methods */
+case 32:
+YY_RULE_SETUP
+#line 138 "swf4compiler.flex"
+{ count(); swf4lval.getURLMethod = GETURL_METHOD_POST;
+ return GETURL_METHOD; }
+ YY_BREAK
+case 33:
+YY_RULE_SETUP
+#line 140 "swf4compiler.flex"
+{ count(); swf4lval.getURLMethod = GETURL_METHOD_GET;
+ return GETURL_METHOD; }
+ YY_BREAK
+case 34:
+YY_RULE_SETUP
+#line 142 "swf4compiler.flex"
+{ count(); swf4lval.getURLMethod = GETURL_METHOD_NOSEND;
+ return GETURL_METHOD; }
+ YY_BREAK
+/* v3 functions */
+case 35:
+YY_RULE_SETUP
+#line 147 "swf4compiler.flex"
+{ count(); return NEXTFRAME; }
+ YY_BREAK
+case 36:
+YY_RULE_SETUP
+#line 148 "swf4compiler.flex"
+{ count(); return PREVFRAME; }
+ YY_BREAK
+case 37:
+YY_RULE_SETUP
+#line 149 "swf4compiler.flex"
+{ count(); return PLAY; }
+ YY_BREAK
+case 38:
+YY_RULE_SETUP
+#line 150 "swf4compiler.flex"
+{ count(); return STOP; }
+ YY_BREAK
+case 39:
+YY_RULE_SETUP
+#line 151 "swf4compiler.flex"
+{ count(); return TOGGLEQUALITY; }
+ YY_BREAK
+case 40:
+YY_RULE_SETUP
+#line 152 "swf4compiler.flex"
+{ count(); return STOPSOUNDS; }
+ YY_BREAK
+case 41:
+YY_RULE_SETUP
+#line 153 "swf4compiler.flex"
+{ count(); return GOTOFRAME; }
+ YY_BREAK
+case 42:
+YY_RULE_SETUP
+#line 154 "swf4compiler.flex"
+{ count(); return GOTOANDPLAY; }
+ YY_BREAK
+case 43:
+YY_RULE_SETUP
+#line 155 "swf4compiler.flex"
+{ count(); return FRAMELOADED; }
+ YY_BREAK
+case 44:
+YY_RULE_SETUP
+#line 156 "swf4compiler.flex"
+{ count(); return SETTARGET; }
+ YY_BREAK
+/* high level functions */
+case 45:
+YY_RULE_SETUP
+#line 159 "swf4compiler.flex"
+{ count(); return TELLTARGET; }
+ YY_BREAK
+case 46:
+YY_RULE_SETUP
+#line 162 "swf4compiler.flex"
+{ count(); return THIS; }
+ YY_BREAK
+case 47:
+YY_RULE_SETUP
+#line 164 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup(yytext);
+ return IDENTIFIER; }
+ YY_BREAK
+case 48:
+YY_RULE_SETUP
+#line 167 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup(yytext);
+ return PATH; }
+ YY_BREAK
+case 49:
+YY_RULE_SETUP
+#line 170 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup(yytext);
+ return PATH; }
+ YY_BREAK
+case 50:
+YY_RULE_SETUP
+#line 173 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup(yytext+1);
+ swf4lval.str[strlen(swf4lval.str)-1]=0;
+ unescape(swf4lval.str);
+ return STRING; }
+ YY_BREAK
+case 51:
+YY_RULE_SETUP
+#line 178 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup(yytext+1);
+ swf4lval.str[strlen(swf4lval.str)-1]=0;
+ unescape(swf4lval.str);
+ return STRING; }
+ YY_BREAK
+case 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 183 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup("");
+ warning("Unterminated string!");
+ return STRING; }
+ YY_BREAK
+case 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 187 "swf4compiler.flex"
+{ count(); swf4lval.str = strdup("");
+ warning("Unterminated string!");
+ return STRING; }
+ YY_BREAK
+case 54:
+YY_RULE_SETUP
+#line 191 "swf4compiler.flex"
+{ count(); comment(); }
+ YY_BREAK
+case 55:
+YY_RULE_SETUP
+#line 192 "swf4compiler.flex"
+{ count(); comment1(); }
+ YY_BREAK
+case 56:
+YY_RULE_SETUP
+#line 193 "swf4compiler.flex"
+{ count(); }
+ YY_BREAK
+case 57:
+YY_RULE_SETUP
+#line 195 "swf4compiler.flex"
+{ count(); return INC; }
+ YY_BREAK
+case 58:
+YY_RULE_SETUP
+#line 196 "swf4compiler.flex"
+{ count(); return DEC; }
+ YY_BREAK
+case 59:
+YY_RULE_SETUP
+#line 197 "swf4compiler.flex"
+{ count(); return '<'; }
+ YY_BREAK
+case 60:
+YY_RULE_SETUP
+#line 198 "swf4compiler.flex"
+{ count(); return '>'; }
+ YY_BREAK
+case 61:
+YY_RULE_SETUP
+#line 199 "swf4compiler.flex"
+{ count(); return LE; }
+ YY_BREAK
+case 62:
+YY_RULE_SETUP
+#line 200 "swf4compiler.flex"
+{ count(); return GE; }
+ YY_BREAK
+case 63:
+YY_RULE_SETUP
+#line 201 "swf4compiler.flex"
+{ count(); return EQ; }
+ YY_BREAK
+case 64:
+YY_RULE_SETUP
+#line 202 "swf4compiler.flex"
+{ count(); return NE; }
+ YY_BREAK
+case 65:
+YY_RULE_SETUP
+#line 203 "swf4compiler.flex"
+{ count(); return LAN; }
+ YY_BREAK
+case 66:
+YY_RULE_SETUP
+#line 204 "swf4compiler.flex"
+{ count(); return LOR; }
+ YY_BREAK
+case 67:
+YY_RULE_SETUP
+#line 205 "swf4compiler.flex"
+{ count(); return MEQ; }
+ YY_BREAK
+case 68:
+YY_RULE_SETUP
+#line 206 "swf4compiler.flex"
+{ count(); return DEQ; }
+ YY_BREAK
+case 69:
+YY_RULE_SETUP
+#line 207 "swf4compiler.flex"
+{ count(); return IEQ; }
+ YY_BREAK
+case 70:
+YY_RULE_SETUP
+#line 208 "swf4compiler.flex"
+{ count(); return SEQ; }
+ YY_BREAK
+case 71:
+YY_RULE_SETUP
+#line 209 "swf4compiler.flex"
+{ count(); return STREQ; }
+ YY_BREAK
+case 72:
+YY_RULE_SETUP
+#line 210 "swf4compiler.flex"
+{ count(); return STRNE; }
+ YY_BREAK
+case 73:
+YY_RULE_SETUP
+#line 211 "swf4compiler.flex"
+{ count(); return STRCMP; }
+ YY_BREAK
+case 74:
+YY_RULE_SETUP
+#line 212 "swf4compiler.flex"
+{ count(); return PARENT; }
+ YY_BREAK
+case 75:
+YY_RULE_SETUP
+#line 214 "swf4compiler.flex"
+{ count(); return ';'; }
+ YY_BREAK
+case 76:
+YY_RULE_SETUP
+#line 215 "swf4compiler.flex"
+{ count(); return '='; }
+ YY_BREAK
+case 77:
+YY_RULE_SETUP
+#line 216 "swf4compiler.flex"
+{ count(); return '+'; }
+ YY_BREAK
+case 78:
+YY_RULE_SETUP
+#line 217 "swf4compiler.flex"
+{ count(); return '-'; }
+ YY_BREAK
+case 79:
+YY_RULE_SETUP
+#line 218 "swf4compiler.flex"
+{ count(); return '&'; }
+ YY_BREAK
+case 80:
+YY_RULE_SETUP
+#line 219 "swf4compiler.flex"
+{ count(); return '*'; }
+ YY_BREAK
+case 81:
+YY_RULE_SETUP
+#line 220 "swf4compiler.flex"
+{ count(); return '/'; }
+ YY_BREAK
+case 82:
+YY_RULE_SETUP
+#line 221 "swf4compiler.flex"
+{ count(); return '!'; }
+ YY_BREAK
+case 83:
+YY_RULE_SETUP
+#line 222 "swf4compiler.flex"
+{ count(); return '('; }
+ YY_BREAK
+case 84:
+YY_RULE_SETUP
+#line 223 "swf4compiler.flex"
+{ count(); return ')'; }
+ YY_BREAK
+case 85:
+YY_RULE_SETUP
+#line 224 "swf4compiler.flex"
+{ count(); return '['; }
+ YY_BREAK
+case 86:
+YY_RULE_SETUP
+#line 225 "swf4compiler.flex"
+{ count(); return ']'; }
+ YY_BREAK
+case 87:
+YY_RULE_SETUP
+#line 226 "swf4compiler.flex"
+{ count(); return '{'; }
+ YY_BREAK
+case 88:
+YY_RULE_SETUP
+#line 227 "swf4compiler.flex"
+{ count(); return '}'; }
+ YY_BREAK
+case 89:
+YY_RULE_SETUP
+#line 228 "swf4compiler.flex"
+{ count(); return ','; }
+ YY_BREAK
+case 90:
+YY_RULE_SETUP
+#line 229 "swf4compiler.flex"
+{ count(); return '.'; }
+ YY_BREAK
+case 91:
+YY_RULE_SETUP
+#line 230 "swf4compiler.flex"
+{ count(); return '?'; }
+ YY_BREAK
+case 92:
+YY_RULE_SETUP
+#line 231 "swf4compiler.flex"
+{ count(); return ':'; }
+ YY_BREAK
+case 93:
+YY_RULE_SETUP
+#line 233 "swf4compiler.flex"
+{ count(); column = 0;
+ strcpy(szLine, yytext + 1);
+ ++sLineNumber; yyless(1); }
+ YY_BREAK
+case 94:
+YY_RULE_SETUP
+#line 237 "swf4compiler.flex"
+printf( "Unrecognized character: %s\n", yytext );
+ YY_BREAK
+case 95:
+YY_RULE_SETUP
+#line 239 "swf4compiler.flex"
+ECHO;
+ YY_BREAK
+#line 1469 "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
+ * yy_get_previous_state() go ahead and do it
+ * for us because it doesn't know how to deal
+ * with the possibility of jamming (and we don't
+ * want to build jamming into it because then it
+ * will run more slowly).
+ */
+
+ yy_next_state = yy_try_NUL_trans( yy_current_state );
+
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+
+ if ( yy_next_state )
+ {
+ /* Consume the NUL. */
+ yy_cp = ++yy_c_buf_p;
+ yy_current_state = yy_next_state;
+ goto yy_match;
+ }
+
+ else
+ {
+ yy_cp = yy_c_buf_p;
+ goto yy_find_action;
+ }
+ }
+
+ else switch ( yy_get_next_buffer() )
+ {
+ case EOB_ACT_END_OF_FILE:
+ {
+ yy_did_buffer_switch_on_eof = 0;
+
+ if ( yywrap() )
+ {
+ /* Note: because we've taken care in
+ * yy_get_next_buffer() to have set up
+ * yytext, we can now set up
+ * yy_c_buf_p so that if some total
+ * hoser (like flex itself) wants to
+ * call the scanner after we return the
+ * YY_NULL, it'll still work - another
+ * YY_NULL will get returned.
+ */
+ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
+
+ yy_act = YY_STATE_EOF(YY_START);
+ goto do_action;
+ }
+
+ else
+ {
+ if ( ! yy_did_buffer_switch_on_eof )
+ YY_NEW_FILE;
+ }
+ break;
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ yy_c_buf_p =
+ yytext_ptr + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state();
+
+ yy_cp = yy_c_buf_p;
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+ goto yy_match;
+
+ case EOB_ACT_LAST_MATCH:
+ yy_c_buf_p =
+ &yy_current_buffer->yy_ch_buf[yy_n_chars];
+
+ yy_current_state = yy_get_previous_state();
+
+ yy_cp = yy_c_buf_p;
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+ goto yy_find_action;
+ }
+ break;
+ }
+
+ default:
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--no action found" );
+ } /* end of action switch */
+ } /* end of scanning one token */
+ } /* end of yylex */
+
+
+/* yy_get_next_buffer - try to read in a new buffer
+ *
+ * Returns a code representing an action:
+ * EOB_ACT_LAST_MATCH -
+ * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
+ * EOB_ACT_END_OF_FILE - end of file
+ */
+
+static int yy_get_next_buffer()
+ {
+ register char *dest = yy_current_buffer->yy_ch_buf;
+ register char *source = yytext_ptr;
+ register int number_to_move, i;
+ int ret_val;
+
+ if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--end of buffer missed" );
+
+ if ( yy_current_buffer->yy_fill_buffer == 0 )
+ { /* Don't try to fill the buffer, so this is an EOF. */
+ if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
+ {
+ /* We matched a single character, the EOB, so
+ * treat this as a final EOF.
+ */
+ return EOB_ACT_END_OF_FILE;
+ }
+
+ else
+ {
+ /* We matched some text prior to the EOB, first
+ * process it.
+ */
+ return EOB_ACT_LAST_MATCH;
+ }
+ }
+
+ /* Try to read more data. */
+
+ /* First move last chars to start of buffer. */
+ number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
+
+ for ( i = 0; i < number_to_move; ++i )
+ *(dest++) = *(source++);
+
+ if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
+ /* don't do the read, it's not guaranteed to return an EOF,
+ * just force an EOF
+ */
+ yy_current_buffer->yy_n_chars = yy_n_chars = 0;
+
+ else
+ {
+ int num_to_read =
+ yy_current_buffer->yy_buf_size - number_to_move - 1;
+
+ while ( num_to_read <= 0 )
+ { /* Not enough room in the buffer - grow it. */
+#ifdef YY_USES_REJECT
+ YY_FATAL_ERROR(
+"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
+#else
+
+ /* just a shorter name for the current buffer */
+ YY_BUFFER_STATE b = yy_current_buffer;
+
+ int yy_c_buf_p_offset =
+ (int) (yy_c_buf_p - b->yy_ch_buf);
+
+ if ( b->yy_is_our_buffer )
+ {
+ int new_size = b->yy_buf_size * 2;
+
+ if ( new_size <= 0 )
+ b->yy_buf_size += b->yy_buf_size / 8;
+ else
+ b->yy_buf_size *= 2;
+
+ b->yy_ch_buf = (char *)
+ /* Include room in for 2 EOB chars. */
+ yy_flex_realloc( (void *) b->yy_ch_buf,
+ b->yy_buf_size + 2 );
+ }
+ else
+ /* Can't grow it, we don't own it. */
+ b->yy_ch_buf = 0;
+
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR(
+ "fatal error - scanner input buffer overflow" );
+
+ yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
+
+ num_to_read = yy_current_buffer->yy_buf_size -
+ number_to_move - 1;
+#endif
+ }
+
+ if ( num_to_read > YY_READ_BUF_SIZE )
+ num_to_read = YY_READ_BUF_SIZE;
+
+ /* Read in more data. */
+ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
+ yy_n_chars, num_to_read );
+
+ yy_current_buffer->yy_n_chars = yy_n_chars;
+ }
+
+ if ( yy_n_chars == 0 )
+ {
+ if ( number_to_move == YY_MORE_ADJ )
+ {
+ ret_val = EOB_ACT_END_OF_FILE;
+ yyrestart( yyin );
+ }
+
+ else
+ {
+ ret_val = EOB_ACT_LAST_MATCH;
+ yy_current_buffer->yy_buffer_status =
+ YY_BUFFER_EOF_PENDING;
+ }
+ }
+
+ else
+ ret_val = EOB_ACT_CONTINUE_SCAN;
+
+ yy_n_chars += number_to_move;
+ yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
+ yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
+
+ yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
+
+ return ret_val;
+ }
+
+
+/* yy_get_previous_state - get the state just before the EOB char was reached */
+
+static yy_state_type yy_get_previous_state()
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp;
+
+ yy_current_state = yy_start;
+
+ for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
+ {
+ register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ if ( yy_accept[yy_current_state] )
+ {
+ yy_last_accepting_state = yy_current_state;
+ yy_last_accepting_cpos = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 320 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ }
+
+ return yy_current_state;
+ }
+
+
+/* yy_try_NUL_trans - try to make a transition on the NUL character
+ *
+ * synopsis
+ * next_state = yy_try_NUL_trans( current_state );
+ */
+
+#ifdef YY_USE_PROTOS
+static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
+#else
+static yy_state_type yy_try_NUL_trans( yy_current_state )
+yy_state_type yy_current_state;
+#endif
+ {
+ register int yy_is_jam;
+ register char *yy_cp = yy_c_buf_p;
+
+ register YY_CHAR yy_c = 1;
+ if ( yy_accept[yy_current_state] )
+ {
+ yy_last_accepting_state = yy_current_state;
+ yy_last_accepting_cpos = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 320 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ yy_is_jam = (yy_current_state == 319);
+
+ return yy_is_jam ? 0 : yy_current_state;
+ }
+
+
+#ifndef YY_NO_UNPUT
+#ifdef YY_USE_PROTOS
+static void yyunput( int c, register char *yy_bp )
+#else
+static void yyunput( c, yy_bp )
+int c;
+register char *yy_bp;
+#endif
+ {
+ register char *yy_cp = yy_c_buf_p;
+
+ /* undo effects of setting up yytext */
+ *yy_cp = yy_hold_char;
+
+ if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
+ { /* need to shift things up to make room */
+ /* +2 for EOB chars. */
+ register int number_to_move = yy_n_chars + 2;
+ register char *dest = &yy_current_buffer->yy_ch_buf[
+ yy_current_buffer->yy_buf_size + 2];
+ register char *source =
+ &yy_current_buffer->yy_ch_buf[number_to_move];
+
+ while ( source > yy_current_buffer->yy_ch_buf )
+ *--dest = *--source;
+
+ yy_cp += (int) (dest - source);
+ yy_bp += (int) (dest - source);
+ yy_current_buffer->yy_n_chars =
+ yy_n_chars = yy_current_buffer->yy_buf_size;
+
+ if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
+ YY_FATAL_ERROR( "flex scanner push-back overflow" );
+ }
+
+ *--yy_cp = (char) c;
+
+
+ yytext_ptr = yy_bp;
+ yy_hold_char = *yy_cp;
+ yy_c_buf_p = yy_cp;
+ }
+#endif /* ifndef YY_NO_UNPUT */
+
+
+#ifdef __cplusplus
+static int yyinput()
+#else
+static int input()
+#endif
+ {
+ int c;
+
+ *yy_c_buf_p = yy_hold_char;
+
+ if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
+ {
+ /* yy_c_buf_p now points to the character we want to return.
+ * If this occurs *before* the EOB characters, then it's a
+ * valid NUL; if not, then we've hit the end of the buffer.
+ */
+ if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
+ /* This was really a NUL. */
+ *yy_c_buf_p = '\0';
+
+ else
+ { /* need more input */
+ int offset = yy_c_buf_p - yytext_ptr;
+ ++yy_c_buf_p;
+
+ switch ( yy_get_next_buffer() )
+ {
+ case EOB_ACT_LAST_MATCH:
+ /* This happens because yy_g_n_b()
+ * sees that we've accumulated a
+ * token and flags that we need to
+ * try matching the token before
+ * proceeding. But for input(),
+ * there's no matching to consider.
+ * So convert the EOB_ACT_LAST_MATCH
+ * to EOB_ACT_END_OF_FILE.
+ */
+
+ /* Reset buffer status. */
+ yyrestart( yyin );
+
+ /* fall through */
+
+ case EOB_ACT_END_OF_FILE:
+ {
+ if ( yywrap() )
+ return EOF;
+
+ if ( ! yy_did_buffer_switch_on_eof )
+ YY_NEW_FILE;
+#ifdef __cplusplus
+ return yyinput();
+#else
+ return input();
+#endif
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ yy_c_buf_p = yytext_ptr + offset;
+ break;
+ }
+ }
+ }
+
+ c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
+ *yy_c_buf_p = '\0'; /* preserve yytext */
+ yy_hold_char = *++yy_c_buf_p;
+
+
+ return c;
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yyrestart( FILE *input_file )
+#else
+void yyrestart( input_file )
+FILE *input_file;
+#endif
+ {
+ if ( ! yy_current_buffer )
+ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
+
+ yy_init_buffer( yy_current_buffer, input_file );
+ yy_load_buffer_state();
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
+#else
+void yy_switch_to_buffer( new_buffer )
+YY_BUFFER_STATE new_buffer;
+#endif
+ {
+ if ( yy_current_buffer == new_buffer )
+ return;
+
+ if ( yy_current_buffer )
+ {
+ /* Flush out information for old buffer. */
+ *yy_c_buf_p = yy_hold_char;
+ yy_current_buffer->yy_buf_pos = yy_c_buf_p;
+ yy_current_buffer->yy_n_chars = yy_n_chars;
+ }
+
+ yy_current_buffer = new_buffer;
+ yy_load_buffer_state();
+
+ /* We don't actually know whether we did this switch during
+ * EOF (yywrap()) processing, but the only time this flag
+ * is looked at is after yywrap() is called, so it's safe
+ * to go ahead and always set it.
+ */
+ yy_did_buffer_switch_on_eof = 1;
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_load_buffer_state( void )
+#else
+void yy_load_buffer_state()
+#endif
+ {
+ yy_n_chars = yy_current_buffer->yy_n_chars;
+ yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
+ yyin = yy_current_buffer->yy_input_file;
+ yy_hold_char = *yy_c_buf_p;
+ }
+
+
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
+#else
+YY_BUFFER_STATE yy_create_buffer( file, size )
+FILE *file;
+int size;
+#endif
+ {
+ YY_BUFFER_STATE b;
+
+ b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
+ if ( ! b )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+
+ b->yy_buf_size = size;
+
+ /* yy_ch_buf has to be 2 characters longer than the size given because
+ * we need to put in 2 end-of-buffer characters.
+ */
+ b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+
+ b->yy_is_our_buffer = 1;
+
+ yy_init_buffer( b, file );
+
+ return b;
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_delete_buffer( YY_BUFFER_STATE b )
+#else
+void yy_delete_buffer( b )
+YY_BUFFER_STATE b;
+#endif
+ {
+ if ( ! b )
+ return;
+
+ if ( b == yy_current_buffer )
+ yy_current_buffer = (YY_BUFFER_STATE) 0;
+
+ if ( b->yy_is_our_buffer )
+ yy_flex_free( (void *) b->yy_ch_buf );
+
+ yy_flex_free( (void *) b );
+ }
+
+
+
+#ifdef YY_USE_PROTOS
+void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
+#else
+void yy_init_buffer( b, file )
+YY_BUFFER_STATE b;
+FILE *file;
+#endif
+
+
+ {
+ yy_flush_buffer( b );
+
+ b->yy_input_file = file;
+ b->yy_fill_buffer = 1;
+
+#if YY_ALWAYS_INTERACTIVE
+ b->yy_is_interactive = 1;
+#else
+#if YY_NEVER_INTERACTIVE
+ b->yy_is_interactive = 0;
+#else
+ b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
+#endif
+#endif
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_flush_buffer( YY_BUFFER_STATE b )
+#else
+void yy_flush_buffer( b )
+YY_BUFFER_STATE b;
+#endif
+
+ {
+ if ( ! b )
+ return;
+
+ b->yy_n_chars = 0;
+
+ /* We always need two end-of-buffer characters. The first causes
+ * a transition to the end-of-buffer state. The second causes
+ * a jam in that state.
+ */
+ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
+ b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
+
+ b->yy_buf_pos = &b->yy_ch_buf[0];
+
+ b->yy_at_bol = 1;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ if ( b == yy_current_buffer )
+ yy_load_buffer_state();
+ }
+
+
+#ifndef YY_NO_SCAN_BUFFER
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
+#else
+YY_BUFFER_STATE yy_scan_buffer( base, size )
+char *base;
+yy_size_t size;
+#endif
+ {
+ YY_BUFFER_STATE b;
+
+ if ( size < 2 ||
+ base[size-2] != YY_END_OF_BUFFER_CHAR ||
+ base[size-1] != YY_END_OF_BUFFER_CHAR )
+ /* They forgot to leave room for the EOB's. */
+ return 0;
+
+ b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
+ if ( ! b )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
+
+ b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
+ b->yy_buf_pos = b->yy_ch_buf = base;
+ b->yy_is_our_buffer = 0;
+ b->yy_input_file = 0;
+ b->yy_n_chars = b->yy_buf_size;
+ b->yy_is_interactive = 0;
+ b->yy_at_bol = 1;
+ b->yy_fill_buffer = 0;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ yy_switch_to_buffer( b );
+
+ return b;
+ }
+#endif
+
+
+#ifndef YY_NO_SCAN_STRING
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
+#else
+YY_BUFFER_STATE yy_scan_string( yy_str )
+yyconst char *yy_str;
+#endif
+ {
+ int len;
+ for ( len = 0; yy_str[len]; ++len )
+ ;
+
+ return yy_scan_bytes( yy_str, len );
+ }
+#endif
+
+
+#ifndef YY_NO_SCAN_BYTES
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
+#else
+YY_BUFFER_STATE yy_scan_bytes( bytes, len )
+yyconst char *bytes;
+int len;
+#endif
+ {
+ YY_BUFFER_STATE b;
+ char *buf;
+ yy_size_t n;
+ int i;
+
+ /* Get memory for full buffer, including space for trailing EOB's. */
+ n = len + 2;
+ buf = (char *) yy_flex_alloc( n );
+ if ( ! buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
+
+ for ( i = 0; i < len; ++i )
+ buf[i] = bytes[i];
+
+ buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
+
+ b = yy_scan_buffer( buf, n );
+ if ( ! b )
+ YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
+
+ /* It's okay to grow etc. this buffer, and we should throw it
+ * away when we're done.
+ */
+ b->yy_is_our_buffer = 1;
+
+ return b;
+ }
+#endif
+
+
+#ifndef YY_NO_PUSH_STATE
+#ifdef YY_USE_PROTOS
+static void yy_push_state( int new_state )
+#else
+static void yy_push_state( new_state )
+int new_state;
+#endif
+ {
+ if ( yy_start_stack_ptr >= yy_start_stack_depth )
+ {
+ yy_size_t new_size;
+
+ yy_start_stack_depth += YY_START_STACK_INCR;
+ new_size = yy_start_stack_depth * sizeof( int );
+
+ if ( ! yy_start_stack )
+ yy_start_stack = (int *) yy_flex_alloc( new_size );
+
+ else
+ yy_start_stack = (int *) yy_flex_realloc(
+ (void *) yy_start_stack, new_size );
+
+ if ( ! yy_start_stack )
+ YY_FATAL_ERROR(
+ "out of memory expanding start-condition stack" );
+ }
+
+ yy_start_stack[yy_start_stack_ptr++] = YY_START;
+
+ BEGIN(new_state);
+ }
+#endif
+
+
+#ifndef YY_NO_POP_STATE
+static void yy_pop_state()
+ {
+ if ( --yy_start_stack_ptr < 0 )
+ YY_FATAL_ERROR( "start-condition stack underflow" );
+
+ BEGIN(yy_start_stack[yy_start_stack_ptr]);
+ }
+#endif
+
+
+#ifndef YY_NO_TOP_STATE
+static int yy_top_state()
+ {
+ return yy_start_stack[yy_start_stack_ptr - 1];
+ }
+#endif
+
+#ifndef YY_EXIT_FAILURE
+#define YY_EXIT_FAILURE 2
+#endif
+
+#ifdef YY_USE_PROTOS
+static void yy_fatal_error( yyconst char msg[] )
+#else
+static void yy_fatal_error( msg )
+char msg[];
+#endif
+ {
+ (void) fprintf( stderr, "%s\n", msg );
+ exit( YY_EXIT_FAILURE );
+ }
+
+
+
+/* Redefine yyless() so it works in section 3 code. */
+
+#undef yyless
+#define yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up yytext. */ \
+ yytext[yyleng] = yy_hold_char; \
+ yy_c_buf_p = yytext + n; \
+ yy_hold_char = *yy_c_buf_p; \
+ *yy_c_buf_p = '\0'; \
+ yyleng = n; \
+ } \
+ while ( 0 )
+
+
+/* Internal utility routines. */
+
+#ifndef yytext_ptr
+#ifdef YY_USE_PROTOS
+static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
+#else
+static void yy_flex_strncpy( s1, s2, n )
+char *s1;
+yyconst char *s2;
+int n;
+#endif
+ {
+ register int i;
+ for ( i = 0; i < n; ++i )
+ s1[i] = s2[i];
+ }
+#endif
+
+#ifdef YY_NEED_STRLEN
+#ifdef YY_USE_PROTOS
+static int yy_flex_strlen( yyconst char *s )
+#else
+static int yy_flex_strlen( s )
+yyconst char *s;
+#endif
+ {
+ register int n;
+ for ( n = 0; s[n]; ++n )
+ ;
+
+ return n;
+ }
+#endif
+
+
+#ifdef YY_USE_PROTOS
+static void *yy_flex_alloc( yy_size_t size )
+#else
+static void *yy_flex_alloc( size )
+yy_size_t size;
+#endif
+ {
+ return (void *) malloc( size );
+ }
+
+#ifdef YY_USE_PROTOS
+static void *yy_flex_realloc( void *ptr, yy_size_t size )
+#else
+static void *yy_flex_realloc( ptr, size )
+void *ptr;
+yy_size_t size;
+#endif
+ {
+ /* The cast to (char *) in the following accommodates both
+ * implementations that use char* generic pointers, and those
+ * that use void* generic pointers. It works with the latter
+ * because both ANSI C and C++ allow castless assignment from
+ * any pointer type to void*, and deal with argument conversions
+ * as though doing an assignment.
+ */
+ return (void *) realloc( (char *) ptr, size );
+ }
+
+#ifdef YY_USE_PROTOS
+static void yy_flex_free( void *ptr )
+#else
+static void yy_flex_free( ptr )
+void *ptr;
+#endif
+ {
+ free( ptr );
+ }
+
+#if YY_MAIN
+int main()
+ {
+ yylex();
+ return 0;
+ }
+#endif
+#line 239 "swf4compiler.flex"
+
+static int getinput() {
+#ifdef __cplusplus
+ return yyinput();
+#else
+ return input();
+#endif
+}
+
+int swf4wrap()
+{
+ return 1;
+}
+
+static void countline()
+{
+ if(sLineNumber != 0)
+ msgline[column] = 0;
+
+ ++sLineNumber;
+ column = 0;
+ msgline = msgbufs[sLineNumber & 1];
+}
+
+static int LineNumber(void)
+{
+ return (sLineNumber + 1);
+}
+
+static int ColumnNumber(void)
+{
+ return column;
+}
+
+static char *LineText(void)
+{
+ msgline[column] = 0;
+ return msgline;
+}
+
+static void comment(void)
+{
+ // Handle block comments
+
+ int c, c1;
+
+loop:
+ // We have the start of a comment so look skip everything up to the
+ // end of the comment character
+ while ((c = getinput()) != '*' && c != EOF)
+ {
+ if(column < 1023)
+ msgline[column] = c;
+
+ ++column;
+
+ // keep the line number in synch
+ if (c == '\n')
+ {
+ // start the output (matches the algorithim in the lexx above)
+ countline();
+ }
+
+ if (swf4debug) putchar(c);
+ }
+
+ // is this the end of comment character
+ if ((c1 = getinput()) != '/' && c != EOF)
+ {
+ // false start as this was no end of comment
+ do_unput4(c1);
+ goto loop;
+ }
+
+ // write out the start of the end of comment
+ if (c != EOF)
+ if (swf4debug) putchar(c);
+
+ // write out the end of the end of comment
+ if (c1 != EOF)
+ if (swf4debug) putchar(c1);
+}
+
+static void comment1(void)
+{
+ // Handle comment of type 1 (ie '//')
+
+ int c;
+
+ // this is a line comment
+ while ((c = getinput()) != '\n' && c != EOF)
+ {
+ if (swf4debug) putchar(c);
+
+ if(column < 1023)
+ msgline[column] = c;
+
+ ++column;
+ };
+
+ // keep the line number in synch
+ if (c == '\n')
+ {
+ if (swf4debug) putchar(c);
+
+ countline();
+ }
+}
+
+static void count(void)
+{
+ int n;
+
+ // Count the characters to maintain the current column position
+ if (yytext[0] == '\n')
+ {
+ if (swf4debug) printf("\n");
+ }
+ else
+ {
+ if (swf4debug) printf("%s", yytext);
+
+ for(n=0; n<yyleng; ++n, ++column)
+ {
+ if(column < 1023)
+ msgline[column] = yytext[n];
+ }
+
+ //-- keep writing the stuff to standard output
+ //column += yyleng;
+ }
+}
+
+static void printprog()
+{
+ if(sLineNumber)
+ SWF_warn("\n%s", msgbufs[(sLineNumber-1)&1]);
+
+ if(column < 1023)
+ msgline[column] = 0;
+
+ SWF_warn("\n%s", msgline);
+}
+
+static void warning(char *msg)
+{
+ // print a warning message
+ printprog();
+ SWF_warn("\n%*s", ColumnNumber(), "^");
+ SWF_warn("\nLine %4.4d: Reason: '%s' \n", LineNumber(), msg);
+}
+
+void swf4error(char *msg)
+{
+ // report a error
+ if(strlen(yytext))
+ {
+ SWF_error("\n%s\n%*s\nLine %i: Reason: '%s'\n",
+ LineText(), ColumnNumber(), "^", LineNumber(), msg);
+ }
+ else
+ {
+ SWF_error("\nLine %d: Reason: 'Unexpected EOF found while looking for input.'\n", LineNumber());
+ }
+}
diff --git a/lib/action/lex.swf5.c b/lib/action/lex.swf5.c
new file mode 100644
index 00000000..5d724b7c
--- /dev/null
+++ b/lib/action/lex.swf5.c
@@ -0,0 +1,3007 @@
+#define yy_create_buffer swf5_create_buffer
+#define yy_delete_buffer swf5_delete_buffer
+#define yy_scan_buffer swf5_scan_buffer
+#define yy_scan_string swf5_scan_string
+#define yy_scan_bytes swf5_scan_bytes
+#define yy_flex_debug swf5_flex_debug
+#define yy_init_buffer swf5_init_buffer
+#define yy_flush_buffer swf5_flush_buffer
+#define yy_load_buffer_state swf5_load_buffer_state
+#define yy_switch_to_buffer swf5_switch_to_buffer
+#define yyin swf5in
+#define yyleng swf5leng
+#define yylex swf5lex
+#define yyout swf5out
+#define yyrestart swf5restart
+#define yytext swf5text
+#define yywrap swf5wrap
+
+/* A lexical scanner generated by flex */
+
+/* Scanner skeleton version:
+ * $Header: /cvsroot/swftools/swftools/lib/action/lex.swf5.c,v 1.4 2009/01/13 22:17:55 kramm Exp $
+ */
+
+#define FLEX_SCANNER
+#define YY_FLEX_MAJOR_VERSION 2
+#define YY_FLEX_MINOR_VERSION 5
+
+#include <stdio.h>
+#include <unistd.h>
+
+
+/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
+#ifdef c_plusplus
+#ifndef __cplusplus
+#define __cplusplus
+#endif
+#endif
+
+
+#ifdef __cplusplus
+
+#include <stdlib.h>
+
+/* Use prototypes in function declarations. */
+#define YY_USE_PROTOS
+
+/* The "const" storage-class-modifier is valid. */
+#define YY_USE_CONST
+
+#else /* ! __cplusplus */
+
+#if __STDC__
+
+#define YY_USE_PROTOS
+#define YY_USE_CONST
+
+#endif /* __STDC__ */
+#endif /* ! __cplusplus */
+
+#ifdef __TURBOC__
+ #pragma warn -rch
+ #pragma warn -use
+#include <io.h>
+#include <stdlib.h>
+#define YY_USE_CONST
+#define YY_USE_PROTOS
+#endif
+
+#ifdef YY_USE_CONST
+#define yyconst const
+#else
+#define yyconst
+#endif
+
+
+#ifdef YY_USE_PROTOS
+#define YY_PROTO(proto) proto
+#else
+#define YY_PROTO(proto) ()
+#endif
+
+/* Returned upon end-of-file. */
+#define YY_NULL 0
+
+/* Promotes a possibly negative, possibly signed char to an unsigned
+ * integer for use as an array index. If the signed char is negative,
+ * we want to instead treat it as an 8-bit unsigned char, hence the
+ * double cast.
+ */
+#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
+
+/* Enter a start condition. This macro really ought to take a parameter,
+ * but we do it the disgusting crufty way forced on us by the ()-less
+ * definition of BEGIN.
+ */
+#define BEGIN yy_start = 1 + 2 *
+
+/* Translate the current start state into a value that can be later handed
+ * to BEGIN to return to the state. The YYSTATE alias is for lex
+ * compatibility.
+ */
+#define YY_START ((yy_start - 1) / 2)
+#define YYSTATE YY_START
+
+/* Action number for EOF rule of a given start state. */
+#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
+
+/* Special action meaning "start processing a new file". */
+#define YY_NEW_FILE yyrestart( yyin )
+
+#define YY_END_OF_BUFFER_CHAR 0
+
+/* Size of default input buffer. */
+#define YY_BUF_SIZE 16384
+
+typedef struct yy_buffer_state *YY_BUFFER_STATE;
+
+extern int yyleng;
+extern FILE *yyin, *yyout;
+
+#define EOB_ACT_CONTINUE_SCAN 0
+#define EOB_ACT_END_OF_FILE 1
+#define EOB_ACT_LAST_MATCH 2
+
+/* The funky do-while in the following #define is used to turn the definition
+ * int a single C statement (which needs a semi-colon terminator). This
+ * avoids problems with code like:
+ *
+ * if ( condition_holds )
+ * yyless( 5 );
+ * else
+ * do_something_else();
+ *
+ * Prior to using the do-while the compiler would get upset at the
+ * "else" because it interpreted the "if" statement as being all
+ * done when it reached the ';' after the yyless() call.
+ */
+
+/* Return all but the first 'n' matched characters back to the input stream. */
+
+#define yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up yytext. */ \
+ *yy_cp = yy_hold_char; \
+ YY_RESTORE_YY_MORE_OFFSET \
+ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
+ YY_DO_BEFORE_ACTION; /* set up yytext again */ \
+ } \
+ while ( 0 )
+
+#define unput(c) yyunput( c, yytext_ptr )
+
+/* The following is because we cannot portably get our hands on size_t
+ * (without autoconf's help, which isn't available because we want
+ * flex-generated scanners to compile on their own).
+ */
+typedef unsigned int yy_size_t;
+
+
+struct yy_buffer_state
+ {
+ FILE *yy_input_file;
+
+ char *yy_ch_buf; /* input buffer */
+ char *yy_buf_pos; /* current position in input buffer */
+
+ /* Size of input buffer in bytes, not including room for EOB
+ * characters.
+ */
+ yy_size_t yy_buf_size;
+
+ /* Number of characters read into yy_ch_buf, not including EOB
+ * characters.
+ */
+ int yy_n_chars;
+
+ /* Whether we "own" the buffer - i.e., we know we created it,
+ * and can realloc() it to grow it, and should free() it to
+ * delete it.
+ */
+ int yy_is_our_buffer;
+
+ /* Whether this is an "interactive" input source; if so, and
+ * if we're using stdio for input, then we want to use getc()
+ * instead of fread(), to make sure we stop fetching input after
+ * each newline.
+ */
+ int yy_is_interactive;
+
+ /* Whether we're considered to be at the beginning of a line.
+ * If so, '^' rules will be active on the next match, otherwise
+ * not.
+ */
+ int yy_at_bol;
+
+ /* Whether to try to fill the input buffer when we reach the
+ * end of it.
+ */
+ int yy_fill_buffer;
+
+ int yy_buffer_status;
+#define YY_BUFFER_NEW 0
+#define YY_BUFFER_NORMAL 1
+ /* When an EOF's been seen but there's still some text to process
+ * then we mark the buffer as YY_EOF_PENDING, to indicate that we
+ * shouldn't try reading from the input source any more. We might
+ * still have a bunch of tokens to match, though, because of
+ * possible backing-up.
+ *
+ * When we actually see the EOF, we change the status to "new"
+ * (via yyrestart()), so that the user can continue scanning by
+ * just pointing yyin at a new input file.
+ */
+#define YY_BUFFER_EOF_PENDING 2
+ };
+
+static YY_BUFFER_STATE yy_current_buffer = 0;
+
+/* We provide macros for accessing buffer states in case in the
+ * future we want to put the buffer states in a more general
+ * "scanner state".
+ */
+#define YY_CURRENT_BUFFER yy_current_buffer
+
+
+/* yy_hold_char holds the character lost when yytext is formed. */
+static char yy_hold_char;
+
+static int yy_n_chars; /* number of characters read into yy_ch_buf */
+
+
+int yyleng;
+
+/* Points to current character in buffer. */
+static char *yy_c_buf_p = (char *) 0;
+static int yy_init = 1; /* whether we need to initialize */
+static int yy_start = 0; /* start state number */
+
+/* Flag which is used to allow yywrap()'s to do buffer switches
+ * instead of setting up a fresh yyin. A bit of a hack ...
+ */
+static int yy_did_buffer_switch_on_eof;
+
+void yyrestart YY_PROTO(( FILE *input_file ));
+
+void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
+void yy_load_buffer_state YY_PROTO(( void ));
+YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
+void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
+void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
+void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
+#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
+
+YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
+YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
+YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
+
+static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
+static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
+static void yy_flex_free YY_PROTO(( void * ));
+
+#define yy_new_buffer yy_create_buffer
+
+#define yy_set_interactive(is_interactive) \
+ { \
+ if ( ! yy_current_buffer ) \
+ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
+ yy_current_buffer->yy_is_interactive = is_interactive; \
+ }
+
+#define yy_set_bol(at_bol) \
+ { \
+ if ( ! yy_current_buffer ) \
+ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
+ yy_current_buffer->yy_at_bol = at_bol; \
+ }
+
+#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
+
+typedef unsigned char YY_CHAR;
+FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
+typedef int yy_state_type;
+extern char *yytext;
+#define yytext_ptr yytext
+
+static yy_state_type yy_get_previous_state YY_PROTO(( void ));
+static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
+static int yy_get_next_buffer YY_PROTO(( void ));
+static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
+
+/* Done after the current pattern has been matched and before the
+ * corresponding action - sets up yytext.
+ */
+#define YY_DO_BEFORE_ACTION \
+ yytext_ptr = yy_bp; \
+ yyleng = (int) (yy_cp - yy_bp); \
+ yy_hold_char = *yy_cp; \
+ *yy_cp = '\0'; \
+ yy_c_buf_p = yy_cp;
+
+#define YY_NUM_RULES 166
+#define YY_END_OF_BUFFER 167
+static yyconst short int yy_accept[650] =
+ { 0,
+ 0, 0, 0, 0, 167, 165, 119, 164, 165, 152,
+ 165, 151, 146, 165, 153, 154, 149, 144, 159, 145,
+ 160, 150, 3, 3, 162, 142, 140, 143, 141, 161,
+ 155, 156, 148, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 157, 147, 158, 163, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 164, 125, 0, 115, 113, 0, 126, 132, 0, 116,
+ 114, 0, 128, 120, 130, 121, 131, 117, 118, 129,
+ 4, 2, 3, 0, 134, 122, 124, 123, 135, 112,
+
+ 112, 112, 112, 112, 112, 112, 19, 112, 112, 112,
+ 112, 112, 112, 112, 112, 17, 16, 112, 112, 112,
+ 112, 112, 112, 112, 0, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 133, 127, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 16,
+ 112, 112, 112, 112, 112, 112, 112, 112, 63, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 4, 1,
+ 137, 138, 136, 25, 112, 112, 112, 37, 112, 112,
+ 112, 112, 112, 112, 112, 15, 112, 112, 112, 112,
+ 35, 112, 112, 21, 112, 112, 36, 112, 112, 111,
+
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 20, 112, 112, 66, 62, 112, 112, 73, 112,
+ 55, 110, 112, 112, 109, 72, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 21, 91, 112, 57, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 20, 64,
+ 139, 112, 112, 13, 112, 112, 112, 112, 112, 11,
+ 26, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 7, 42, 112, 112, 112, 112, 112, 43, 112, 112,
+ 112, 112, 5, 112, 112, 24, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+
+ 112, 112, 112, 112, 112, 112, 112, 112, 108, 58,
+ 112, 112, 112, 112, 112, 112, 43, 112, 112, 112,
+ 56, 112, 8, 112, 112, 112, 112, 112, 112, 6,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 34, 112,
+ 18, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 104, 112, 103, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 32, 112, 112,
+ 22, 112, 112, 112, 38, 112, 112, 31, 112, 112,
+
+ 112, 112, 29, 112, 23, 112, 112, 33, 12, 112,
+ 27, 105, 112, 112, 86, 112, 70, 112, 112, 112,
+ 112, 112, 112, 112, 112, 65, 112, 67, 112, 112,
+ 83, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 33, 112, 112, 112, 112, 14, 112, 112,
+ 112, 39, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 9, 112, 10, 30, 112, 112,
+
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 68, 112, 112,
+ 101, 112, 85, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 99, 92, 112, 112, 84, 112,
+ 46, 112, 47, 112, 50, 112, 40, 41, 112, 48,
+ 112, 112, 112, 112, 112, 112, 74, 77, 112, 76,
+ 112, 112, 90, 112, 71, 112, 87, 112, 78, 112,
+ 48, 112, 79, 112, 98, 112, 112, 94, 82, 112,
+ 28, 112, 112, 112, 45, 112, 112, 112, 112, 61,
+ 112, 75, 89, 112, 112, 112, 112, 112, 112, 80,
+
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 95, 102, 69, 88, 59, 112, 96, 81, 112, 112,
+ 112, 52, 112, 112, 112, 106, 107, 60, 112, 93,
+ 112, 112, 49, 112, 44, 97, 112, 112, 112, 112,
+ 100, 112, 112, 54, 112, 51, 112, 53, 0
+ } ;
+
+static yyconst int yy_ec[256] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
+ 2, 2, 4, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 2, 5, 6, 1, 1, 7, 8, 9, 10,
+ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
+ 21, 21, 21, 21, 21, 22, 22, 23, 24, 25,
+ 26, 27, 28, 1, 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, 33,
+ 29, 30, 31, 32, 33, 1, 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, 33, 59, 60, 61, 62, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1
+ } ;
+
+static yyconst int yy_meta[63] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2,
+ 2, 2, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 3, 2, 2, 2, 2, 2, 2, 3,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 3, 3, 3, 3, 3, 1, 1,
+ 1, 1
+ } ;
+
+static yyconst short int yy_base[654] =
+ { 0,
+ 0, 0, 29, 0, 741, 742, 742, 742, 737, 713,
+ 67, 742, 64, 76, 742, 742, 712, 67, 742, 68,
+ 742, 70, 82, 89, 742, 742, 63, 711, 65, 742,
+ 742, 742, 742, 0, 684, 684, 78, 75, 69, 82,
+ 77, 81, 79, 80, 683, 86, 109, 95, 87, 699,
+ 80, 742, 114, 742, 742, 105, 681, 112, 116, 116,
+ 117, 120, 124, 121, 130, 99, 128, 139, 697, 682,
+ 742, 742, 180, 182, 742, 726, 742, 742, 178, 187,
+ 742, 725, 742, 742, 742, 742, 742, 742, 742, 742,
+ 179, 200, 207, 0, 701, 742, 742, 742, 176, 0,
+
+ 680, 687, 159, 673, 676, 168, 0, 673, 669, 686,
+ 674, 667, 670, 663, 662, 0, 153, 667, 679, 158,
+ 667, 674, 676, 671, 212, 661, 189, 654, 658, 670,
+ 662, 663, 155, 653, 650, 658, 646, 742, 742, 661,
+ 660, 61, 191, 201, 641, 646, 187, 640, 640, 202,
+ 198, 213, 212, 655, 646, 195, 637, 652, 651, 142,
+ 635, 633, 643, 215, 649, 225, 632, 631, 250, 0,
+ 742, 742, 655, 0, 646, 634, 640, 0, 203, 643,
+ 638, 630, 636, 628, 620, 0, 635, 208, 622, 616,
+ 0, 628, 630, 0, 613, 620, 0, 606, 608, 255,
+
+ 625, 613, 606, 606, 609, 605, 603, 615, 618, 615,
+ 614, 0, 606, 609, 0, 0, 602, 603, 0, 605,
+ 601, 0, 599, 610, 232, 0, 590, 590, 599, 599,
+ 601, 587, 583, 582, 582, 245, 0, 246, 0, 581,
+ 592, 242, 593, 580, 581, 587, 229, 579, 589, 0,
+ 742, 582, 586, 0, 590, 581, 568, 568, 578, 0,
+ 0, 581, 565, 575, 565, 576, 580, 560, 243, 573,
+ 0, 0, 572, 562, 554, 557, 573, 554, 552, 568,
+ 558, 564, 0, 553, 562, 0, 563, 219, 561, 559,
+ 551, 557, 560, 258, 540, 556, 540, 543, 552, 553,
+
+ 542, 544, 548, 534, 545, 545, 531, 542, 0, 0,
+ 541, 540, 543, 542, 522, 521, 257, 526, 519, 520,
+ 0, 520, 0, 518, 515, 520, 521, 527, 528, 0,
+ 521, 516, 516, 509, 512, 517, 509, 522, 504, 503,
+ 507, 514, 504, 499, 501, 497, 506, 508, 0, 506,
+ 0, 503, 245, 505, 504, 490, 488, 493, 487, 486,
+ 501, 494, 500, 0, 493, 0, 480, 483, 481, 492,
+ 474, 475, 489, 471, 472, 477, 482, 470, 469, 256,
+ 482, 467, 477, 465, 481, 460, 479, 0, 458, 458,
+ 0, 476, 461, 470, 488, 472, 469, 0, 449, 452,
+
+ 468, 467, 0, 454, 0, 459, 444, 0, 0, 447,
+ 0, 266, 449, 442, 0, 460, 0, 458, 450, 440,
+ 447, 455, 443, 434, 433, 0, 440, 0, 450, 431,
+ 0, 448, 429, 445, 437, 438, 435, 438, 433, 423,
+ 439, 265, 430, 435, 436, 423, 430, 0, 414, 419,
+ 414, 0, 418, 425, 420, 419, 414, 413, 410, 419,
+ 409, 401, 409, 414, 416, 410, 397, 411, 414, 413,
+ 408, 398, 268, 403, 392, 384, 396, 387, 394, 385,
+ 399, 384, 397, 400, 394, 392, 397, 390, 379, 390,
+ 380, 373, 380, 386, 0, 385, 0, 0, 384, 373,
+
+ 382, 385, 380, 379, 361, 362, 377, 379, 356, 358,
+ 357, 361, 370, 356, 371, 347, 368, 0, 356, 351,
+ 0, 359, 0, 348, 358, 346, 356, 345, 342, 341,
+ 358, 339, 350, 350, 0, 0, 265, 349, 0, 336,
+ 0, 341, 0, 347, 338, 349, 0, 0, 341, 0,
+ 330, 336, 346, 328, 336, 340, 0, 0, 331, 0,
+ 322, 337, 0, 326, 0, 338, 0, 337, 0, 332,
+ 331, 323, 0, 314, 0, 326, 313, 0, 0, 316,
+ 0, 309, 317, 323, 0, 318, 301, 304, 309, 0,
+ 318, 0, 0, 315, 307, 306, 301, 294, 312, 329,
+
+ 295, 294, 291, 299, 306, 307, 289, 289, 302, 292,
+ 0, 0, 0, 0, 0, 289, 0, 0, 296, 295,
+ 293, 0, 282, 288, 274, 0, 0, 0, 280, 0,
+ 296, 291, 281, 285, 0, 0, 279, 279, 260, 264,
+ 0, 266, 259, 0, 262, 0, 92, 0, 742, 317,
+ 320, 322, 66
+ } ;
+
+static yyconst short int yy_def[654] =
+ { 0,
+ 649, 1, 1, 3, 649, 649, 649, 649, 649, 649,
+ 650, 649, 649, 651, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 649, 649, 649, 649, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 649, 649, 650, 650, 649, 650, 649, 649, 651, 651,
+ 649, 651, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 653, 649, 649, 649, 649, 649, 652,
+
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 649, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 649, 649, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 649, 653,
+ 649, 649, 649, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 649,
+
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 649, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
+ 652, 652, 652, 652, 652, 652, 652, 652, 0, 649,
+ 649, 649, 649
+ } ;
+
+static yyconst short int yy_nxt[805] =
+ { 0,
+ 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 16, 17, 18, 19, 20, 21, 22, 23, 24, 24,
+ 24, 24, 25, 26, 27, 28, 29, 30, 31, 6,
+ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
+ 34, 42, 34, 34, 43, 34, 44, 45, 46, 34,
+ 47, 48, 49, 34, 50, 51, 34, 34, 52, 53,
+ 54, 55, 56, 57, 58, 59, 60, 170, 61, 74,
+ 62, 77, 75, 63, 64, 65, 66, 67, 80, 84,
+ 68, 88, 86, 69, 81, 70, 89, 95, 96, 78,
+ 98, 99, 85, 87, 217, 90, 76, 91, 175, 92,
+
+ 92, 92, 92, 93, 91, 82, 93, 93, 93, 93,
+ 93, 103, 106, 109, 114, 111, 118, 120, 104, 116,
+ 136, 137, 107, 110, 115, 105, 119, 117, 108, 112,
+ 123, 125, 128, 121, 132, 113, 124, 133, 94, 138,
+ 648, 140, 126, 158, 134, 143, 127, 129, 130, 159,
+ 131, 141, 104, 144, 149, 153, 101, 145, 116, 105,
+ 109, 151, 147, 107, 115, 148, 150, 156, 154, 146,
+ 110, 152, 123, 139, 155, 160, 162, 157, 124, 163,
+ 80, 161, 74, 121, 74, 75, 81, 75, 209, 80,
+ 239, 164, 165, 240, 166, 81, 169, 169, 169, 169,
+
+ 169, 172, 173, 176, 190, 191, 180, 82, 210, 76,
+ 177, 76, 181, 194, 195, 91, 82, 92, 92, 92,
+ 92, 93, 91, 222, 93, 93, 93, 93, 93, 200,
+ 200, 200, 200, 200, 202, 218, 219, 226, 255, 180,
+ 223, 203, 177, 227, 192, 181, 193, 230, 244, 228,
+ 236, 195, 229, 190, 191, 256, 231, 353, 248, 232,
+ 264, 265, 245, 233, 354, 246, 207, 169, 169, 169,
+ 169, 169, 200, 200, 200, 200, 200, 292, 303, 306,
+ 319, 320, 304, 307, 264, 265, 293, 311, 337, 305,
+ 308, 360, 312, 382, 313, 387, 314, 338, 413, 463,
+
+ 438, 519, 489, 647, 646, 361, 439, 464, 345, 490,
+ 645, 576, 644, 643, 642, 520, 577, 73, 73, 73,
+ 79, 79, 79, 100, 100, 641, 640, 639, 638, 637,
+ 636, 635, 634, 633, 632, 631, 630, 629, 628, 627,
+ 626, 625, 624, 623, 622, 621, 620, 619, 618, 617,
+ 616, 615, 614, 613, 612, 611, 610, 609, 608, 607,
+ 606, 605, 604, 603, 602, 601, 600, 599, 598, 597,
+ 596, 595, 594, 593, 592, 591, 590, 589, 588, 587,
+ 586, 585, 584, 583, 582, 581, 580, 579, 578, 575,
+ 574, 573, 572, 571, 570, 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, 518, 517, 516, 515, 514, 513,
+ 512, 511, 510, 509, 508, 507, 506, 505, 504, 503,
+ 502, 501, 500, 499, 498, 497, 496, 495, 494, 493,
+ 492, 491, 488, 487, 486, 485, 484, 483, 482, 481,
+ 480, 479, 478, 477, 476, 475, 474, 473, 472, 471,
+ 470, 469, 468, 467, 466, 465, 462, 461, 460, 459,
+
+ 458, 457, 456, 455, 454, 453, 452, 451, 450, 449,
+ 448, 447, 446, 445, 444, 443, 442, 441, 440, 437,
+ 436, 435, 434, 433, 432, 431, 430, 429, 428, 427,
+ 426, 425, 424, 423, 422, 421, 420, 419, 418, 417,
+ 416, 415, 414, 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, 383, 381, 380, 379, 378, 377, 376, 375,
+ 374, 373, 372, 371, 370, 369, 368, 367, 366, 365,
+ 364, 363, 362, 359, 358, 357, 356, 355, 352, 351,
+
+ 350, 349, 348, 347, 346, 345, 344, 343, 342, 341,
+ 340, 339, 336, 335, 334, 333, 332, 331, 330, 329,
+ 328, 327, 326, 325, 324, 323, 322, 321, 318, 317,
+ 316, 315, 310, 309, 302, 301, 300, 299, 298, 297,
+ 296, 295, 294, 291, 290, 259, 289, 288, 287, 286,
+ 285, 284, 283, 282, 281, 280, 279, 278, 277, 276,
+ 275, 274, 273, 272, 271, 270, 269, 268, 267, 266,
+ 263, 262, 261, 260, 259, 258, 257, 254, 253, 252,
+ 251, 250, 249, 247, 243, 242, 241, 197, 238, 237,
+ 235, 234, 225, 224, 221, 220, 216, 215, 214, 213,
+
+ 212, 211, 208, 207, 206, 205, 204, 201, 199, 198,
+ 197, 196, 193, 192, 189, 188, 187, 186, 185, 184,
+ 183, 182, 179, 178, 175, 174, 171, 649, 649, 168,
+ 167, 142, 135, 122, 102, 101, 97, 83, 72, 71,
+ 649, 5, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+
+ 649, 649, 649, 649
+ } ;
+
+static yyconst short int yy_chk[805] =
+ { 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, 1, 1,
+ 1, 1, 3, 3, 3, 3, 3, 653, 3, 11,
+ 3, 13, 11, 3, 3, 3, 3, 3, 14, 18,
+ 3, 22, 20, 3, 14, 3, 22, 27, 27, 13,
+ 29, 29, 18, 20, 142, 22, 11, 23, 142, 23,
+
+ 23, 23, 23, 23, 24, 14, 24, 24, 24, 24,
+ 24, 37, 38, 39, 41, 40, 43, 44, 37, 42,
+ 51, 51, 38, 39, 41, 37, 43, 42, 38, 40,
+ 46, 47, 48, 44, 49, 40, 46, 49, 23, 53,
+ 647, 56, 47, 66, 49, 58, 47, 48, 48, 66,
+ 48, 56, 58, 59, 61, 64, 56, 59, 62, 58,
+ 60, 63, 60, 59, 61, 60, 62, 65, 64, 59,
+ 60, 63, 67, 53, 64, 67, 68, 65, 67, 68,
+ 79, 67, 73, 65, 74, 73, 79, 74, 133, 80,
+ 160, 68, 68, 160, 68, 80, 91, 91, 91, 91,
+
+ 91, 99, 99, 103, 117, 117, 106, 79, 133, 73,
+ 103, 74, 106, 120, 120, 92, 80, 92, 92, 92,
+ 92, 92, 93, 147, 93, 93, 93, 93, 93, 125,
+ 125, 125, 125, 125, 127, 143, 144, 150, 179, 144,
+ 147, 127, 143, 150, 151, 144, 152, 153, 164, 151,
+ 156, 156, 152, 150, 150, 179, 153, 288, 166, 153,
+ 188, 188, 164, 153, 288, 164, 166, 169, 169, 169,
+ 169, 169, 200, 200, 200, 200, 200, 225, 236, 238,
+ 247, 247, 236, 238, 225, 225, 225, 242, 269, 236,
+ 238, 294, 242, 317, 242, 353, 242, 269, 353, 412,
+
+ 380, 473, 442, 645, 643, 294, 380, 412, 317, 442,
+ 642, 537, 640, 639, 638, 473, 537, 650, 650, 650,
+ 651, 651, 651, 652, 652, 637, 634, 633, 632, 631,
+ 629, 625, 624, 623, 621, 620, 619, 616, 610, 609,
+ 608, 607, 606, 605, 604, 603, 602, 601, 600, 599,
+ 598, 597, 596, 595, 594, 591, 589, 588, 587, 586,
+ 584, 583, 582, 580, 577, 576, 574, 572, 571, 570,
+ 568, 566, 564, 562, 561, 559, 556, 555, 554, 553,
+ 552, 551, 549, 546, 545, 544, 542, 540, 538, 534,
+ 533, 532, 531, 530, 529, 528, 527, 526, 525, 524,
+
+ 522, 520, 519, 517, 516, 515, 514, 513, 512, 511,
+ 510, 509, 508, 507, 506, 505, 504, 503, 502, 501,
+ 500, 499, 496, 494, 493, 492, 491, 490, 489, 488,
+ 487, 486, 485, 484, 483, 482, 481, 480, 479, 478,
+ 477, 476, 475, 474, 472, 471, 470, 469, 468, 467,
+ 466, 465, 464, 463, 462, 461, 460, 459, 458, 457,
+ 456, 455, 454, 453, 451, 450, 449, 447, 446, 445,
+ 444, 443, 441, 440, 439, 438, 437, 436, 435, 434,
+ 433, 432, 430, 429, 427, 425, 424, 423, 422, 421,
+ 420, 419, 418, 416, 414, 413, 410, 407, 406, 404,
+
+ 402, 401, 400, 399, 397, 396, 395, 394, 393, 392,
+ 390, 389, 387, 386, 385, 384, 383, 382, 381, 379,
+ 378, 377, 376, 375, 374, 373, 372, 371, 370, 369,
+ 368, 367, 365, 363, 362, 361, 360, 359, 358, 357,
+ 356, 355, 354, 352, 350, 348, 347, 346, 345, 344,
+ 343, 342, 341, 340, 339, 338, 337, 336, 335, 334,
+ 333, 332, 331, 329, 328, 327, 326, 325, 324, 322,
+ 320, 319, 318, 316, 315, 314, 313, 312, 311, 308,
+ 307, 306, 305, 304, 303, 302, 301, 300, 299, 298,
+ 297, 296, 295, 293, 292, 291, 290, 289, 287, 285,
+
+ 284, 282, 281, 280, 279, 278, 277, 276, 275, 274,
+ 273, 270, 268, 267, 266, 265, 264, 263, 262, 259,
+ 258, 257, 256, 255, 253, 252, 249, 248, 246, 245,
+ 244, 243, 241, 240, 235, 234, 233, 232, 231, 230,
+ 229, 228, 227, 224, 223, 221, 220, 218, 217, 214,
+ 213, 211, 210, 209, 208, 207, 206, 205, 204, 203,
+ 202, 201, 199, 198, 196, 195, 193, 192, 190, 189,
+ 187, 185, 184, 183, 182, 181, 180, 177, 176, 175,
+ 173, 168, 167, 165, 163, 162, 161, 159, 158, 157,
+ 155, 154, 149, 148, 146, 145, 141, 140, 137, 136,
+
+ 135, 134, 132, 131, 130, 129, 128, 126, 124, 123,
+ 122, 121, 119, 118, 115, 114, 113, 112, 111, 110,
+ 109, 108, 105, 104, 102, 101, 95, 82, 76, 70,
+ 69, 57, 50, 45, 36, 35, 28, 17, 10, 9,
+ 5, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+ 649, 649, 649, 649, 649, 649, 649, 649, 649, 649,
+
+ 649, 649, 649, 649
+ } ;
+
+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_OFFSET
+char *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 "blocks/error.h"
+#include "swf5compiler.tab.h" /* defines token types */
+
+static int swf5debug;
+
+static const 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(const char *script, int debug)
+{
+ checkByteOrder();
+ yyrestart(NULL);
+
+ swf5debug = debug;
+
+ lexBuffer = script;
+ lexBufferLen = strlen(script);
+ sLineNumber = 0;
+ column = 0;
+ msgline = msgbufs[0];
+}
+
+#define asm 1
+
+#line 82 "swf5compiler.flex"
+ // forward declaration needed by the following function
+#ifndef YY_PROTO
+#ifdef YY_USE_PROTOS
+#define YY_PROTO(proto) proto
+#else
+#define YY_PROTO(proto) ()
+#endif
+#endif
+ static void yyunput YY_PROTO(( int c, char *buf_ptr ));
+
+ void do_unput5(const char c) { unput(c); }
+#line 865 "lex.swf5.c"
+
+/* Macros after this point can all be overridden by user definitions in
+ * section 1.
+ */
+
+#ifndef YY_SKIP_YYWRAP
+#ifdef __cplusplus
+extern "C" int yywrap YY_PROTO(( void ));
+#else
+extern int yywrap YY_PROTO(( void ));
+#endif
+#endif
+
+#ifndef YY_NO_UNPUT
+static void yyunput YY_PROTO(( int c, char *buf_ptr ));
+#endif
+
+#ifndef yytext_ptr
+static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
+#endif
+
+#ifdef YY_NEED_STRLEN
+static int yy_flex_strlen YY_PROTO(( yyconst char * ));
+#endif
+
+#ifndef YY_NO_INPUT
+#ifdef __cplusplus
+static int yyinput YY_PROTO(( void ));
+#else
+static int input YY_PROTO(( void ));
+#endif
+#endif
+
+#if YY_STACK_USED
+static int yy_start_stack_ptr = 0;
+static int yy_start_stack_depth = 0;
+static int *yy_start_stack = 0;
+#ifndef YY_NO_PUSH_STATE
+static void yy_push_state YY_PROTO(( int new_state ));
+#endif
+#ifndef YY_NO_POP_STATE
+static void yy_pop_state YY_PROTO(( void ));
+#endif
+#ifndef YY_NO_TOP_STATE
+static 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_DECL
+YY_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;
+#endif
+
+#define YY_RULE_SETUP \
+ YY_USER_ACTION
+
+YY_DECL
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp = NULL, *yy_bp = NULL;
+ register int yy_act;
+
+#line 98 "swf5compiler.flex"
+
+
+#line 1019 "lex.swf5.c"
+
+ if ( yy_init )
+ {
+ yy_init = 0;
+
+#ifdef YY_USER_INIT
+ YY_USER_INIT;
+#endif
+
+ if ( ! yy_start )
+ yy_start = 1; /* first start state */
+
+ if ( ! yyin )
+ yyin = stdin;
+
+ if ( ! yyout )
+ yyout = stdout;
+
+ if ( ! yy_current_buffer )
+ yy_current_buffer =
+ yy_create_buffer( yyin, YY_BUF_SIZE );
+
+ yy_load_buffer_state();
+ }
+
+ while ( 1 ) /* loops until end-of-file is reached */
+ {
+ yy_cp = yy_c_buf_p;
+
+ /* Support of yytext. */
+ *yy_cp = yy_hold_char;
+
+ /* yy_bp points to the position in yy_ch_buf of the start of
+ * the current run.
+ */
+ yy_bp = yy_cp;
+
+ yy_current_state = yy_start;
+yy_match:
+ do
+ {
+ register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+ if ( yy_accept[yy_current_state] )
+ {
+ yy_last_accepting_state = yy_current_state;
+ yy_last_accepting_cpos = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 650 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ ++yy_cp;
+ }
+ while ( yy_base[yy_current_state] != 742 );
+
+yy_find_action:
+ yy_act = yy_accept[yy_current_state];
+ if ( yy_act == 0 )
+ { /* have to back up */
+ yy_cp = yy_last_accepting_cpos;
+ yy_current_state = yy_last_accepting_state;
+ yy_act = yy_accept[yy_current_state];
+ }
+
+ YY_DO_BEFORE_ACTION;
+
+
+do_action: /* This label is used only to access EOF actions. */
+
+
+ switch ( yy_act )
+ { /* beginning of action switch */
+ case 0: /* must back up */
+ /* undo the effects of YY_DO_BEFORE_ACTION */
+ *yy_cp = yy_hold_char;
+ yy_cp = yy_last_accepting_cpos;
+ yy_current_state = yy_last_accepting_state;
+ goto yy_find_action;
+
+case 1:
+YY_RULE_SETUP
+#line 100 "swf5compiler.flex"
+{ count(); swf5lval.intVal = strtoul(yytext, NULL, 0);
+ return INTEGER; }
+ YY_BREAK
+case 2:
+YY_RULE_SETUP
+#line 102 "swf5compiler.flex"
+{ count(); swf5lval.intVal = strtoul(yytext, NULL, 0);
+ return INTEGER; }
+ YY_BREAK
+case 3:
+YY_RULE_SETUP
+#line 104 "swf5compiler.flex"
+{ count(); swf5lval.intVal = atoi(yytext);
+ return INTEGER; }
+ YY_BREAK
+case 4:
+YY_RULE_SETUP
+#line 106 "swf5compiler.flex"
+{ count(); swf5lval.doubleVal = atof(yytext);
+ return DOUBLE; }
+ YY_BREAK
+case 5:
+YY_RULE_SETUP
+#line 108 "swf5compiler.flex"
+{ count(); swf5lval.intVal = 1;
+ return BOOLEAN; }
+ YY_BREAK
+case 6:
+YY_RULE_SETUP
+#line 110 "swf5compiler.flex"
+{ count(); swf5lval.intVal = 0;
+ return BOOLEAN; }
+ YY_BREAK
+case 7:
+YY_RULE_SETUP
+#line 112 "swf5compiler.flex"
+{ count(); return NULLVAL; }
+ YY_BREAK
+case 8:
+YY_RULE_SETUP
+#line 113 "swf5compiler.flex"
+{ count(); return BREAK; }
+ YY_BREAK
+case 9:
+YY_RULE_SETUP
+#line 114 "swf5compiler.flex"
+{ count(); return CONTINUE; }
+ YY_BREAK
+case 10:
+YY_RULE_SETUP
+#line 115 "swf5compiler.flex"
+{ count(); return FUNCTION; }
+ YY_BREAK
+case 11:
+YY_RULE_SETUP
+#line 116 "swf5compiler.flex"
+{ count(); return ELSE; }
+ YY_BREAK
+case 12:
+YY_RULE_SETUP
+#line 117 "swf5compiler.flex"
+{ count(); return SWITCH; }
+ YY_BREAK
+case 13:
+YY_RULE_SETUP
+#line 118 "swf5compiler.flex"
+{ count(); return CASE; }
+ YY_BREAK
+case 14:
+YY_RULE_SETUP
+#line 119 "swf5compiler.flex"
+{ count(); return DEFAULT; }
+ YY_BREAK
+case 15:
+YY_RULE_SETUP
+#line 120 "swf5compiler.flex"
+{ count(); return FOR; }
+ YY_BREAK
+case 16:
+YY_RULE_SETUP
+#line 121 "swf5compiler.flex"
+{ count(); return IN; }
+ YY_BREAK
+case 17:
+YY_RULE_SETUP
+#line 122 "swf5compiler.flex"
+{ count(); return IF; }
+ YY_BREAK
+case 18:
+YY_RULE_SETUP
+#line 123 "swf5compiler.flex"
+{ count(); return WHILE; }
+ YY_BREAK
+case 19:
+YY_RULE_SETUP
+#line 124 "swf5compiler.flex"
+{ count(); return DO; }
+ YY_BREAK
+case 20:
+YY_RULE_SETUP
+#line 125 "swf5compiler.flex"
+{ count(); return VAR; }
+ YY_BREAK
+case 21:
+YY_RULE_SETUP
+#line 126 "swf5compiler.flex"
+{ count(); return NEW; }
+ YY_BREAK
+case 22:
+YY_RULE_SETUP
+#line 127 "swf5compiler.flex"
+{ count(); return DELETE; }
+ YY_BREAK
+case 23:
+YY_RULE_SETUP
+#line 128 "swf5compiler.flex"
+{ count(); return RETURN; }
+ YY_BREAK
+case 24:
+YY_RULE_SETUP
+#line 129 "swf5compiler.flex"
+{ count(); return WITH; }
+ YY_BREAK
+case 25:
+YY_RULE_SETUP
+#line 130 "swf5compiler.flex"
+{ count(); BEGIN(asm); return ASM; }
+ YY_BREAK
+case 26:
+YY_RULE_SETUP
+#line 131 "swf5compiler.flex"
+{ count(); return EVAL; }
+ YY_BREAK
+case 27:
+YY_RULE_SETUP
+#line 132 "swf5compiler.flex"
+{ count(); return TYPEOF; }
+ YY_BREAK
+case 28:
+YY_RULE_SETUP
+#line 133 "swf5compiler.flex"
+{ count(); return INSTANCEOF; }
+ YY_BREAK
+/* legacy functions */
+case 29:
+YY_RULE_SETUP
+#line 136 "swf5compiler.flex"
+{ count(); return RANDOM; }
+ YY_BREAK
+case 30:
+YY_RULE_SETUP
+#line 137 "swf5compiler.flex"
+{ count(); return GETTIMER; }
+ YY_BREAK
+case 31:
+YY_RULE_SETUP
+#line 138 "swf5compiler.flex"
+{ count(); return LENGTH; }
+ YY_BREAK
+case 32:
+YY_RULE_SETUP
+#line 139 "swf5compiler.flex"
+{ count(); return CONCAT; }
+ YY_BREAK
+case 33:
+YY_RULE_SETUP
+#line 140 "swf5compiler.flex"
+{ count(); return SUBSTR; }
+ YY_BREAK
+case 34:
+YY_RULE_SETUP
+#line 141 "swf5compiler.flex"
+{ count(); return TRACE; }
+ YY_BREAK
+case 35:
+YY_RULE_SETUP
+#line 142 "swf5compiler.flex"
+{ count(); return INT; }
+ YY_BREAK
+case 36:
+YY_RULE_SETUP
+#line 143 "swf5compiler.flex"
+{ count(); return ORD; }
+ YY_BREAK
+case 37:
+YY_RULE_SETUP
+#line 144 "swf5compiler.flex"
+{ count(); return CHR; }
+ YY_BREAK
+case 38:
+YY_RULE_SETUP
+#line 145 "swf5compiler.flex"
+{ count(); return GETURL; }
+ YY_BREAK
+case 39:
+YY_RULE_SETUP
+#line 146 "swf5compiler.flex"
+{ count(); return GETURL1; }
+ YY_BREAK
+case 40:
+YY_RULE_SETUP
+#line 147 "swf5compiler.flex"
+{ count(); return NEXTFRAME; }
+ YY_BREAK
+case 41:
+YY_RULE_SETUP
+#line 148 "swf5compiler.flex"
+{ count(); return PREVFRAME; }
+ YY_BREAK
+case 42:
+YY_RULE_SETUP
+#line 149 "swf5compiler.flex"
+{ count(); return PLAY; }
+ YY_BREAK
+case 43:
+YY_RULE_SETUP
+#line 150 "swf5compiler.flex"
+{ count(); return STOP; }
+ YY_BREAK
+case 44:
+YY_RULE_SETUP
+#line 151 "swf5compiler.flex"
+{ count(); return TOGGLEQUALITY; }
+ YY_BREAK
+case 45:
+YY_RULE_SETUP
+#line 152 "swf5compiler.flex"
+{ count(); return STOPSOUNDS; }
+ YY_BREAK
+case 46:
+YY_RULE_SETUP
+#line 153 "swf5compiler.flex"
+{ count(); return CALLFRAME; }
+ YY_BREAK
+case 47:
+YY_RULE_SETUP
+#line 154 "swf5compiler.flex"
+{ count(); return GOTOFRAME; }
+ YY_BREAK
+case 48:
+YY_RULE_SETUP
+#line 155 "swf5compiler.flex"
+{ count(); return SETTARGET; }
+ YY_BREAK
+case 49:
+YY_RULE_SETUP
+#line 156 "swf5compiler.flex"
+{ count(); return LOADVARIABLES; }
+ YY_BREAK
+case 50:
+YY_RULE_SETUP
+#line 157 "swf5compiler.flex"
+{ count(); return LOADMOVIE; }
+ YY_BREAK
+case 51:
+YY_RULE_SETUP
+#line 158 "swf5compiler.flex"
+{ count(); return LOADVARIABLESNUM; }
+ YY_BREAK
+case 52:
+YY_RULE_SETUP
+#line 159 "swf5compiler.flex"
+{ count(); return LOADMOVIENUM; }
+ YY_BREAK
+case 53:
+YY_RULE_SETUP
+#line 160 "swf5compiler.flex"
+{ count(); return DUPLICATEMOVIECLIP; }
+ YY_BREAK
+case 54:
+YY_RULE_SETUP
+#line 161 "swf5compiler.flex"
+{ count(); return REMOVEMOVIECLIP; }
+ YY_BREAK
+/* assembler ops */
+
+case 55:
+YY_RULE_SETUP
+#line 165 "swf5compiler.flex"
+{ count(); return DUP; }
+ YY_BREAK
+case 56:
+YY_RULE_SETUP
+#line 166 "swf5compiler.flex"
+{ count(); return SWAP; }
+ YY_BREAK
+case 57:
+YY_RULE_SETUP
+#line 167 "swf5compiler.flex"
+{ count(); return POP; }
+ YY_BREAK
+case 58:
+YY_RULE_SETUP
+#line 168 "swf5compiler.flex"
+{ count(); return PUSH; }
+ YY_BREAK
+case 59:
+YY_RULE_SETUP
+#line 169 "swf5compiler.flex"
+{ count(); return SETREGISTER; }
+ YY_BREAK
+case 60:
+YY_RULE_SETUP
+#line 170 "swf5compiler.flex"
+{ count(); return CALLFUNCTION; }
+ YY_BREAK
+case 61:
+YY_RULE_SETUP
+#line 171 "swf5compiler.flex"
+{ count(); return CALLMETHOD; }
+ YY_BREAK
+case 62:
+YY_RULE_SETUP
+#line 172 "swf5compiler.flex"
+{ count(); return AND; }
+ YY_BREAK
+case 63:
+YY_RULE_SETUP
+#line 173 "swf5compiler.flex"
+{ count(); return OR; }
+ YY_BREAK
+case 64:
+YY_RULE_SETUP
+#line 174 "swf5compiler.flex"
+{ count(); return XOR; }
+ YY_BREAK
+case 65:
+YY_RULE_SETUP
+#line 175 "swf5compiler.flex"
+{ count(); return MODULO; }
+ YY_BREAK
+case 66:
+YY_RULE_SETUP
+#line 176 "swf5compiler.flex"
+{ count(); return ADD; }
+ YY_BREAK
+case 67:
+YY_RULE_SETUP
+#line 177 "swf5compiler.flex"
+{ count(); return ADD; }
+ YY_BREAK
+case 68:
+YY_RULE_SETUP
+#line 178 "swf5compiler.flex"
+{ count(); return LESSTHAN; }
+ YY_BREAK
+case 69:
+YY_RULE_SETUP
+#line 179 "swf5compiler.flex"
+{ count(); return LESSTHAN; }
+ YY_BREAK
+case 70:
+YY_RULE_SETUP
+#line 180 "swf5compiler.flex"
+{ count(); return EQUALS; }
+ YY_BREAK
+case 71:
+YY_RULE_SETUP
+#line 181 "swf5compiler.flex"
+{ count(); return EQUALS; }
+ YY_BREAK
+case 72:
+YY_RULE_SETUP
+#line 182 "swf5compiler.flex"
+{ count(); return INC; }
+ YY_BREAK
+case 73:
+YY_RULE_SETUP
+#line 183 "swf5compiler.flex"
+{ count(); return DEC; }
+ YY_BREAK
+case 74:
+YY_RULE_SETUP
+#line 184 "swf5compiler.flex"
+{ count(); return ENUMERATE; }
+ YY_BREAK
+case 75:
+YY_RULE_SETUP
+#line 185 "swf5compiler.flex"
+{ count(); return INITOBJECT; }
+ YY_BREAK
+case 76:
+YY_RULE_SETUP
+#line 186 "swf5compiler.flex"
+{ count(); return INITARRAY; }
+ YY_BREAK
+case 77:
+YY_RULE_SETUP
+#line 187 "swf5compiler.flex"
+{ count(); return GETMEMBER; }
+ YY_BREAK
+case 78:
+YY_RULE_SETUP
+#line 188 "swf5compiler.flex"
+{ count(); return SETMEMBER; }
+ YY_BREAK
+case 79:
+YY_RULE_SETUP
+#line 189 "swf5compiler.flex"
+{ count(); return SHIFTLEFT; }
+ YY_BREAK
+case 80:
+YY_RULE_SETUP
+#line 190 "swf5compiler.flex"
+{ count(); return SHIFTRIGHT; }
+ YY_BREAK
+case 81:
+YY_RULE_SETUP
+#line 191 "swf5compiler.flex"
+{ count(); return SHIFTRIGHT2; }
+ YY_BREAK
+case 82:
+YY_RULE_SETUP
+#line 192 "swf5compiler.flex"
+{ count(); return VAREQUALS; }
+ YY_BREAK
+case 83:
+YY_RULE_SETUP
+#line 193 "swf5compiler.flex"
+{ count(); return OLDADD; }
+ YY_BREAK
+case 84:
+YY_RULE_SETUP
+#line 194 "swf5compiler.flex"
+{ count(); return SUBTRACT; }
+ YY_BREAK
+case 85:
+YY_RULE_SETUP
+#line 195 "swf5compiler.flex"
+{ count(); return MULTIPLY; }
+ YY_BREAK
+case 86:
+YY_RULE_SETUP
+#line 196 "swf5compiler.flex"
+{ count(); return DIVIDE; }
+ YY_BREAK
+case 87:
+YY_RULE_SETUP
+#line 197 "swf5compiler.flex"
+{ count(); return OLDEQUALS; }
+ YY_BREAK
+case 88:
+YY_RULE_SETUP
+#line 198 "swf5compiler.flex"
+{ count(); return OLDLESSTHAN; }
+ YY_BREAK
+case 89:
+YY_RULE_SETUP
+#line 199 "swf5compiler.flex"
+{ count(); return LOGICALAND; }
+ YY_BREAK
+case 90:
+YY_RULE_SETUP
+#line 200 "swf5compiler.flex"
+{ count(); return LOGICALOR; }
+ YY_BREAK
+case 91:
+YY_RULE_SETUP
+#line 201 "swf5compiler.flex"
+{ count(); return NOT; }
+ YY_BREAK
+case 92:
+YY_RULE_SETUP
+#line 202 "swf5compiler.flex"
+{ count(); return STRINGEQ; }
+ YY_BREAK
+case 93:
+YY_RULE_SETUP
+#line 203 "swf5compiler.flex"
+{ count(); return STRINGLENGTH; }
+ YY_BREAK
+case 94:
+YY_RULE_SETUP
+#line 204 "swf5compiler.flex"
+{ count(); return SUBSTRING; }
+ YY_BREAK
+case 95:
+YY_RULE_SETUP
+#line 205 "swf5compiler.flex"
+{ count(); return GETVARIABLE; }
+ YY_BREAK
+case 96:
+YY_RULE_SETUP
+#line 206 "swf5compiler.flex"
+{ count(); return SETVARIABLE; }
+ YY_BREAK
+case 97:
+YY_RULE_SETUP
+#line 207 "swf5compiler.flex"
+{ count(); return SETTARGETEXPRESSION; }
+ YY_BREAK
+case 98:
+YY_RULE_SETUP
+#line 208 "swf5compiler.flex"
+{ count(); return STARTDRAG; }
+ YY_BREAK
+case 99:
+YY_RULE_SETUP
+#line 209 "swf5compiler.flex"
+{ count(); return STOPDRAG; }
+ YY_BREAK
+case 100:
+YY_RULE_SETUP
+#line 210 "swf5compiler.flex"
+{ count(); return STRINGLESSTHAN; }
+ YY_BREAK
+case 101:
+YY_RULE_SETUP
+#line 211 "swf5compiler.flex"
+{ count(); return MBLENGTH; }
+ YY_BREAK
+case 102:
+YY_RULE_SETUP
+#line 212 "swf5compiler.flex"
+{ count(); return MBSUBSTRING; }
+ YY_BREAK
+case 103:
+YY_RULE_SETUP
+#line 213 "swf5compiler.flex"
+{ count(); return MBORD; }
+ YY_BREAK
+case 104:
+YY_RULE_SETUP
+#line 214 "swf5compiler.flex"
+{ count(); return MBCHR; }
+ YY_BREAK
+case 105:
+YY_RULE_SETUP
+#line 215 "swf5compiler.flex"
+{ count(); return BRANCHALWAYS; }
+ YY_BREAK
+case 106:
+YY_RULE_SETUP
+#line 216 "swf5compiler.flex"
+{ count(); return BRANCHALWAYS; }
+ YY_BREAK
+case 107:
+YY_RULE_SETUP
+#line 217 "swf5compiler.flex"
+{ count(); return BRANCHIFTRUE; }
+ YY_BREAK
+case 108:
+YY_RULE_SETUP
+#line 218 "swf5compiler.flex"
+{ count(); return POST; }
+ YY_BREAK
+case 109:
+YY_RULE_SETUP
+#line 219 "swf5compiler.flex"
+{ count(); return GET; }
+ YY_BREAK
+case 110:
+YY_RULE_SETUP
+#line 220 "swf5compiler.flex"
+{ count(); return END; }
+ YY_BREAK
+
+case 111:
+YY_RULE_SETUP
+#line 223 "swf5compiler.flex"
+{ count(); swf5lval.str = strdup(yytext+2);
+ return REGISTER; }
+ YY_BREAK
+case 112:
+YY_RULE_SETUP
+#line 227 "swf5compiler.flex"
+{ count(); swf5lval.str = strdup(yytext);
+ return IDENTIFIER; }
+ YY_BREAK
+case 113:
+YY_RULE_SETUP
+#line 230 "swf5compiler.flex"
+{ count(); swf5lval.str = strdup(yytext+1);
+ swf5lval.str[strlen(swf5lval.str)-1]=0;
+ unescape(swf5lval.str);
+ return STRING; }
+ YY_BREAK
+case 114:
+YY_RULE_SETUP
+#line 235 "swf5compiler.flex"
+{ count(); swf5lval.str = strdup(yytext+1);
+ swf5lval.str[strlen(swf5lval.str)-1]=0;
+ unescape(swf5lval.str);
+ return STRING; }
+ YY_BREAK
+case 115:
+*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 240 "swf5compiler.flex"
+{ count(); swf5lval.str = strdup("");
+ warning("Unterminated string!");
+ return STRING; }
+ YY_BREAK
+case 116:
+*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 244 "swf5compiler.flex"
+{ count(); swf5lval.str = strdup("");
+ warning("Unterminated string!");
+ return STRING; }
+ YY_BREAK
+case 117:
+YY_RULE_SETUP
+#line 248 "swf5compiler.flex"
+{ count(); comment(); }
+ YY_BREAK
+case 118:
+YY_RULE_SETUP
+#line 249 "swf5compiler.flex"
+{ count(); comment1(); }
+ YY_BREAK
+case 119:
+YY_RULE_SETUP
+#line 250 "swf5compiler.flex"
+{ count(); }
+ YY_BREAK
+case 120:
+YY_RULE_SETUP
+#line 252 "swf5compiler.flex"
+{ count(); return INCR; }
+ YY_BREAK
+case 121:
+YY_RULE_SETUP
+#line 253 "swf5compiler.flex"
+{ count(); return DECR; }
+ YY_BREAK
+case 122:
+YY_RULE_SETUP
+#line 254 "swf5compiler.flex"
+{ count(); return LE; }
+ YY_BREAK
+case 123:
+YY_RULE_SETUP
+#line 255 "swf5compiler.flex"
+{ count(); return GE; }
+ YY_BREAK
+case 124:
+YY_RULE_SETUP
+#line 256 "swf5compiler.flex"
+{ count(); return EQ; }
+ YY_BREAK
+case 125:
+YY_RULE_SETUP
+#line 257 "swf5compiler.flex"
+{ count(); return NE; }
+ YY_BREAK
+case 126:
+YY_RULE_SETUP
+#line 258 "swf5compiler.flex"
+{ count(); return LAN; }
+ YY_BREAK
+case 127:
+YY_RULE_SETUP
+#line 259 "swf5compiler.flex"
+{ count(); return LOR; }
+ YY_BREAK
+case 128:
+YY_RULE_SETUP
+#line 260 "swf5compiler.flex"
+{ count(); return MEQ; }
+ YY_BREAK
+case 129:
+YY_RULE_SETUP
+#line 261 "swf5compiler.flex"
+{ count(); return DEQ; }
+ YY_BREAK
+case 130:
+YY_RULE_SETUP
+#line 262 "swf5compiler.flex"
+{ count(); return IEQ; }
+ YY_BREAK
+case 131:
+YY_RULE_SETUP
+#line 263 "swf5compiler.flex"
+{ count(); return SEQ; }
+ YY_BREAK
+case 132:
+YY_RULE_SETUP
+#line 264 "swf5compiler.flex"
+{ count(); return AEQ; }
+ YY_BREAK
+case 133:
+YY_RULE_SETUP
+#line 265 "swf5compiler.flex"
+{ count(); return OEQ; }
+ YY_BREAK
+case 134:
+YY_RULE_SETUP
+#line 266 "swf5compiler.flex"
+{ count(); return SHL; }
+ YY_BREAK
+case 135:
+YY_RULE_SETUP
+#line 267 "swf5compiler.flex"
+{ count(); return SHR; }
+ YY_BREAK
+case 136:
+YY_RULE_SETUP
+#line 268 "swf5compiler.flex"
+{ count(); return SHR2; }
+ YY_BREAK
+case 137:
+YY_RULE_SETUP
+#line 269 "swf5compiler.flex"
+{ count(); return SHLEQ; }
+ YY_BREAK
+case 138:
+YY_RULE_SETUP
+#line 270 "swf5compiler.flex"
+{ count(); return SHREQ; }
+ YY_BREAK
+case 139:
+YY_RULE_SETUP
+#line 271 "swf5compiler.flex"
+{ count(); return SHR2EQ; }
+ YY_BREAK
+case 140:
+YY_RULE_SETUP
+#line 273 "swf5compiler.flex"
+{ count(); return '<'; }
+ YY_BREAK
+case 141:
+YY_RULE_SETUP
+#line 274 "swf5compiler.flex"
+{ count(); return '>'; }
+ YY_BREAK
+case 142:
+YY_RULE_SETUP
+#line 275 "swf5compiler.flex"
+{ count(); return ';'; }
+ YY_BREAK
+case 143:
+YY_RULE_SETUP
+#line 276 "swf5compiler.flex"
+{ count(); return '='; }
+ YY_BREAK
+case 144:
+YY_RULE_SETUP
+#line 277 "swf5compiler.flex"
+{ count(); return '+'; }
+ YY_BREAK
+case 145:
+YY_RULE_SETUP
+#line 278 "swf5compiler.flex"
+{ count(); return '-'; }
+ YY_BREAK
+case 146:
+YY_RULE_SETUP
+#line 279 "swf5compiler.flex"
+{ count(); return '&'; }
+ YY_BREAK
+case 147:
+YY_RULE_SETUP
+#line 280 "swf5compiler.flex"
+{ count(); return '|'; }
+ YY_BREAK
+case 148:
+YY_RULE_SETUP
+#line 281 "swf5compiler.flex"
+{ count(); return '^'; }
+ YY_BREAK
+case 149:
+YY_RULE_SETUP
+#line 282 "swf5compiler.flex"
+{ count(); return '*'; }
+ YY_BREAK
+case 150:
+YY_RULE_SETUP
+#line 283 "swf5compiler.flex"
+{ count(); return '/'; }
+ YY_BREAK
+case 151:
+YY_RULE_SETUP
+#line 284 "swf5compiler.flex"
+{ count(); return '%'; }
+ YY_BREAK
+case 152:
+YY_RULE_SETUP
+#line 285 "swf5compiler.flex"
+{ count(); return '!'; }
+ YY_BREAK
+case 153:
+YY_RULE_SETUP
+#line 286 "swf5compiler.flex"
+{ count(); return '('; }
+ YY_BREAK
+case 154:
+YY_RULE_SETUP
+#line 287 "swf5compiler.flex"
+{ count(); return ')'; }
+ YY_BREAK
+case 155:
+YY_RULE_SETUP
+#line 288 "swf5compiler.flex"
+{ count(); return '['; }
+ YY_BREAK
+case 156:
+YY_RULE_SETUP
+#line 289 "swf5compiler.flex"
+{ count(); return ']'; }
+ YY_BREAK
+case 157:
+YY_RULE_SETUP
+#line 290 "swf5compiler.flex"
+{ count(); return '{'; }
+ YY_BREAK
+case 158:
+YY_RULE_SETUP
+#line 291 "swf5compiler.flex"
+{ count(); BEGIN(0); return '}'; }
+ YY_BREAK
+case 159:
+YY_RULE_SETUP
+#line 292 "swf5compiler.flex"
+{ count(); return ','; }
+ YY_BREAK
+case 160:
+YY_RULE_SETUP
+#line 293 "swf5compiler.flex"
+{ count(); return '.'; }
+ YY_BREAK
+case 161:
+YY_RULE_SETUP
+#line 294 "swf5compiler.flex"
+{ count(); return '?'; }
+ YY_BREAK
+case 162:
+YY_RULE_SETUP
+#line 295 "swf5compiler.flex"
+{ count(); return ':'; }
+ YY_BREAK
+case 163:
+YY_RULE_SETUP
+#line 296 "swf5compiler.flex"
+{ count(); return '~'; }
+ YY_BREAK
+case 164:
+YY_RULE_SETUP
+#line 298 "swf5compiler.flex"
+{ count(); strcpy(szLine, yytext + 1);
+ countline(); yyless(1); }
+ YY_BREAK
+case 165:
+YY_RULE_SETUP
+#line 301 "swf5compiler.flex"
+SWF_error("Unrecognized character: %s\n", yytext);
+ YY_BREAK
+case 166:
+YY_RULE_SETUP
+#line 303 "swf5compiler.flex"
+ECHO;
+ YY_BREAK
+#line 1961 "lex.swf5.c"
+case YY_STATE_EOF(INITIAL):
+case YY_STATE_EOF(asm):
+ 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
+ * yy_get_previous_state() go ahead and do it
+ * for us because it doesn't know how to deal
+ * with the possibility of jamming (and we don't
+ * want to build jamming into it because then it
+ * will run more slowly).
+ */
+
+ yy_next_state = yy_try_NUL_trans( yy_current_state );
+
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+
+ if ( yy_next_state )
+ {
+ /* Consume the NUL. */
+ yy_cp = ++yy_c_buf_p;
+ yy_current_state = yy_next_state;
+ goto yy_match;
+ }
+
+ else
+ {
+ yy_cp = yy_c_buf_p;
+ goto yy_find_action;
+ }
+ }
+
+ else switch ( yy_get_next_buffer() )
+ {
+ case EOB_ACT_END_OF_FILE:
+ {
+ yy_did_buffer_switch_on_eof = 0;
+
+ if ( yywrap() )
+ {
+ /* Note: because we've taken care in
+ * yy_get_next_buffer() to have set up
+ * yytext, we can now set up
+ * yy_c_buf_p so that if some total
+ * hoser (like flex itself) wants to
+ * call the scanner after we return the
+ * YY_NULL, it'll still work - another
+ * YY_NULL will get returned.
+ */
+ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
+
+ yy_act = YY_STATE_EOF(YY_START);
+ goto do_action;
+ }
+
+ else
+ {
+ if ( ! yy_did_buffer_switch_on_eof )
+ YY_NEW_FILE;
+ }
+ break;
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ yy_c_buf_p =
+ yytext_ptr + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state();
+
+ yy_cp = yy_c_buf_p;
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+ goto yy_match;
+
+ case EOB_ACT_LAST_MATCH:
+ yy_c_buf_p =
+ &yy_current_buffer->yy_ch_buf[yy_n_chars];
+
+ yy_current_state = yy_get_previous_state();
+
+ yy_cp = yy_c_buf_p;
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+ goto yy_find_action;
+ }
+ break;
+ }
+
+ default:
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--no action found" );
+ } /* end of action switch */
+ } /* end of scanning one token */
+ } /* end of yylex */
+
+
+/* yy_get_next_buffer - try to read in a new buffer
+ *
+ * Returns a code representing an action:
+ * EOB_ACT_LAST_MATCH -
+ * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
+ * EOB_ACT_END_OF_FILE - end of file
+ */
+
+static int yy_get_next_buffer()
+ {
+ register char *dest = yy_current_buffer->yy_ch_buf;
+ register char *source = yytext_ptr;
+ register int number_to_move, i;
+ int ret_val;
+
+ if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--end of buffer missed" );
+
+ if ( yy_current_buffer->yy_fill_buffer == 0 )
+ { /* Don't try to fill the buffer, so this is an EOF. */
+ if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
+ {
+ /* We matched a single character, the EOB, so
+ * treat this as a final EOF.
+ */
+ return EOB_ACT_END_OF_FILE;
+ }
+
+ else
+ {
+ /* We matched some text prior to the EOB, first
+ * process it.
+ */
+ return EOB_ACT_LAST_MATCH;
+ }
+ }
+
+ /* Try to read more data. */
+
+ /* First move last chars to start of buffer. */
+ number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
+
+ for ( i = 0; i < number_to_move; ++i )
+ *(dest++) = *(source++);
+
+ if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
+ /* don't do the read, it's not guaranteed to return an EOF,
+ * just force an EOF
+ */
+ yy_current_buffer->yy_n_chars = yy_n_chars = 0;
+
+ else
+ {
+ int num_to_read =
+ yy_current_buffer->yy_buf_size - number_to_move - 1;
+
+ while ( num_to_read <= 0 )
+ { /* Not enough room in the buffer - grow it. */
+#ifdef YY_USES_REJECT
+ YY_FATAL_ERROR(
+"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
+#else
+
+ /* just a shorter name for the current buffer */
+ YY_BUFFER_STATE b = yy_current_buffer;
+
+ int yy_c_buf_p_offset =
+ (int) (yy_c_buf_p - b->yy_ch_buf);
+
+ if ( b->yy_is_our_buffer )
+ {
+ int new_size = b->yy_buf_size * 2;
+
+ if ( new_size <= 0 )
+ b->yy_buf_size += b->yy_buf_size / 8;
+ else
+ b->yy_buf_size *= 2;
+
+ b->yy_ch_buf = (char *)
+ /* Include room in for 2 EOB chars. */
+ yy_flex_realloc( (void *) b->yy_ch_buf,
+ b->yy_buf_size + 2 );
+ }
+ else
+ /* Can't grow it, we don't own it. */
+ b->yy_ch_buf = 0;
+
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR(
+ "fatal error - scanner input buffer overflow" );
+
+ yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
+
+ num_to_read = yy_current_buffer->yy_buf_size -
+ number_to_move - 1;
+#endif
+ }
+
+ if ( num_to_read > YY_READ_BUF_SIZE )
+ num_to_read = YY_READ_BUF_SIZE;
+
+ /* Read in more data. */
+ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
+ yy_n_chars, num_to_read );
+
+ yy_current_buffer->yy_n_chars = yy_n_chars;
+ }
+
+ if ( yy_n_chars == 0 )
+ {
+ if ( number_to_move == YY_MORE_ADJ )
+ {
+ ret_val = EOB_ACT_END_OF_FILE;
+ yyrestart( yyin );
+ }
+
+ else
+ {
+ ret_val = EOB_ACT_LAST_MATCH;
+ yy_current_buffer->yy_buffer_status =
+ YY_BUFFER_EOF_PENDING;
+ }
+ }
+
+ else
+ ret_val = EOB_ACT_CONTINUE_SCAN;
+
+ yy_n_chars += number_to_move;
+ yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
+ yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
+
+ yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
+
+ return ret_val;
+ }
+
+
+/* yy_get_previous_state - get the state just before the EOB char was reached */
+
+static yy_state_type yy_get_previous_state()
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp;
+
+ yy_current_state = yy_start;
+
+ for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
+ {
+ register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ if ( yy_accept[yy_current_state] )
+ {
+ yy_last_accepting_state = yy_current_state;
+ yy_last_accepting_cpos = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 650 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ }
+
+ return yy_current_state;
+ }
+
+
+/* yy_try_NUL_trans - try to make a transition on the NUL character
+ *
+ * synopsis
+ * next_state = yy_try_NUL_trans( current_state );
+ */
+
+#ifdef YY_USE_PROTOS
+static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
+#else
+static yy_state_type yy_try_NUL_trans( yy_current_state )
+yy_state_type yy_current_state;
+#endif
+ {
+ register int yy_is_jam;
+ register char *yy_cp = yy_c_buf_p;
+
+ register YY_CHAR yy_c = 1;
+ if ( yy_accept[yy_current_state] )
+ {
+ yy_last_accepting_state = yy_current_state;
+ yy_last_accepting_cpos = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 650 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ yy_is_jam = (yy_current_state == 649);
+
+ return yy_is_jam ? 0 : yy_current_state;
+ }
+
+
+#ifndef YY_NO_UNPUT
+#ifdef YY_USE_PROTOS
+static void yyunput( int c, register char *yy_bp )
+#else
+static void yyunput( c, yy_bp )
+int c;
+register char *yy_bp;
+#endif
+ {
+ register char *yy_cp = yy_c_buf_p;
+
+ /* undo effects of setting up yytext */
+ *yy_cp = yy_hold_char;
+
+ if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
+ { /* need to shift things up to make room */
+ /* +2 for EOB chars. */
+ register int number_to_move = yy_n_chars + 2;
+ register char *dest = &yy_current_buffer->yy_ch_buf[
+ yy_current_buffer->yy_buf_size + 2];
+ register char *source =
+ &yy_current_buffer->yy_ch_buf[number_to_move];
+
+ while ( source > yy_current_buffer->yy_ch_buf )
+ *--dest = *--source;
+
+ yy_cp += (int) (dest - source);
+ yy_bp += (int) (dest - source);
+ yy_current_buffer->yy_n_chars =
+ yy_n_chars = yy_current_buffer->yy_buf_size;
+
+ if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
+ YY_FATAL_ERROR( "flex scanner push-back overflow" );
+ }
+
+ *--yy_cp = (char) c;
+
+
+ yytext_ptr = yy_bp;
+ yy_hold_char = *yy_cp;
+ yy_c_buf_p = yy_cp;
+ }
+#endif /* ifndef YY_NO_UNPUT */
+
+
+#ifdef __cplusplus
+static int yyinput()
+#else
+static int input()
+#endif
+ {
+ int c;
+
+ *yy_c_buf_p = yy_hold_char;
+
+ if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
+ {
+ /* yy_c_buf_p now points to the character we want to return.
+ * If this occurs *before* the EOB characters, then it's a
+ * valid NUL; if not, then we've hit the end of the buffer.
+ */
+ if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
+ /* This was really a NUL. */
+ *yy_c_buf_p = '\0';
+
+ else
+ { /* need more input */
+ int offset = yy_c_buf_p - yytext_ptr;
+ ++yy_c_buf_p;
+
+ switch ( yy_get_next_buffer() )
+ {
+ case EOB_ACT_LAST_MATCH:
+ /* This happens because yy_g_n_b()
+ * sees that we've accumulated a
+ * token and flags that we need to
+ * try matching the token before
+ * proceeding. But for input(),
+ * there's no matching to consider.
+ * So convert the EOB_ACT_LAST_MATCH
+ * to EOB_ACT_END_OF_FILE.
+ */
+
+ /* Reset buffer status. */
+ yyrestart( yyin );
+
+ /* fall through */
+
+ case EOB_ACT_END_OF_FILE:
+ {
+ if ( yywrap() )
+ return EOF;
+
+ if ( ! yy_did_buffer_switch_on_eof )
+ YY_NEW_FILE;
+#ifdef __cplusplus
+ return yyinput();
+#else
+ return input();
+#endif
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ yy_c_buf_p = yytext_ptr + offset;
+ break;
+ }
+ }
+ }
+
+ c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
+ *yy_c_buf_p = '\0'; /* preserve yytext */
+ yy_hold_char = *++yy_c_buf_p;
+
+
+ return c;
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yyrestart( FILE *input_file )
+#else
+void yyrestart( input_file )
+FILE *input_file;
+#endif
+ {
+ if ( ! yy_current_buffer )
+ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
+
+ yy_init_buffer( yy_current_buffer, input_file );
+ yy_load_buffer_state();
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
+#else
+void yy_switch_to_buffer( new_buffer )
+YY_BUFFER_STATE new_buffer;
+#endif
+ {
+ if ( yy_current_buffer == new_buffer )
+ return;
+
+ if ( yy_current_buffer )
+ {
+ /* Flush out information for old buffer. */
+ *yy_c_buf_p = yy_hold_char;
+ yy_current_buffer->yy_buf_pos = yy_c_buf_p;
+ yy_current_buffer->yy_n_chars = yy_n_chars;
+ }
+
+ yy_current_buffer = new_buffer;
+ yy_load_buffer_state();
+
+ /* We don't actually know whether we did this switch during
+ * EOF (yywrap()) processing, but the only time this flag
+ * is looked at is after yywrap() is called, so it's safe
+ * to go ahead and always set it.
+ */
+ yy_did_buffer_switch_on_eof = 1;
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_load_buffer_state( void )
+#else
+void yy_load_buffer_state()
+#endif
+ {
+ yy_n_chars = yy_current_buffer->yy_n_chars;
+ yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
+ yyin = yy_current_buffer->yy_input_file;
+ yy_hold_char = *yy_c_buf_p;
+ }
+
+
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
+#else
+YY_BUFFER_STATE yy_create_buffer( file, size )
+FILE *file;
+int size;
+#endif
+ {
+ YY_BUFFER_STATE b;
+
+ b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
+ if ( ! b )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+
+ b->yy_buf_size = size;
+
+ /* yy_ch_buf has to be 2 characters longer than the size given because
+ * we need to put in 2 end-of-buffer characters.
+ */
+ b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+
+ b->yy_is_our_buffer = 1;
+
+ yy_init_buffer( b, file );
+
+ return b;
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_delete_buffer( YY_BUFFER_STATE b )
+#else
+void yy_delete_buffer( b )
+YY_BUFFER_STATE b;
+#endif
+ {
+ if ( ! b )
+ return;
+
+ if ( b == yy_current_buffer )
+ yy_current_buffer = (YY_BUFFER_STATE) 0;
+
+ if ( b->yy_is_our_buffer )
+ yy_flex_free( (void *) b->yy_ch_buf );
+
+ yy_flex_free( (void *) b );
+ }
+
+
+
+#ifdef YY_USE_PROTOS
+void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
+#else
+void yy_init_buffer( b, file )
+YY_BUFFER_STATE b;
+FILE *file;
+#endif
+
+
+ {
+ yy_flush_buffer( b );
+
+ b->yy_input_file = file;
+ b->yy_fill_buffer = 1;
+
+#if YY_ALWAYS_INTERACTIVE
+ b->yy_is_interactive = 1;
+#else
+#if YY_NEVER_INTERACTIVE
+ b->yy_is_interactive = 0;
+#else
+ b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
+#endif
+#endif
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yy_flush_buffer( YY_BUFFER_STATE b )
+#else
+void yy_flush_buffer( b )
+YY_BUFFER_STATE b;
+#endif
+
+ {
+ if ( ! b )
+ return;
+
+ b->yy_n_chars = 0;
+
+ /* We always need two end-of-buffer characters. The first causes
+ * a transition to the end-of-buffer state. The second causes
+ * a jam in that state.
+ */
+ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
+ b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
+
+ b->yy_buf_pos = &b->yy_ch_buf[0];
+
+ b->yy_at_bol = 1;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ if ( b == yy_current_buffer )
+ yy_load_buffer_state();
+ }
+
+
+#ifndef YY_NO_SCAN_BUFFER
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
+#else
+YY_BUFFER_STATE yy_scan_buffer( base, size )
+char *base;
+yy_size_t size;
+#endif
+ {
+ YY_BUFFER_STATE b;
+
+ if ( size < 2 ||
+ base[size-2] != YY_END_OF_BUFFER_CHAR ||
+ base[size-1] != YY_END_OF_BUFFER_CHAR )
+ /* They forgot to leave room for the EOB's. */
+ return 0;
+
+ b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
+ if ( ! b )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
+
+ b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
+ b->yy_buf_pos = b->yy_ch_buf = base;
+ b->yy_is_our_buffer = 0;
+ b->yy_input_file = 0;
+ b->yy_n_chars = b->yy_buf_size;
+ b->yy_is_interactive = 0;
+ b->yy_at_bol = 1;
+ b->yy_fill_buffer = 0;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ yy_switch_to_buffer( b );
+
+ return b;
+ }
+#endif
+
+
+#ifndef YY_NO_SCAN_STRING
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
+#else
+YY_BUFFER_STATE yy_scan_string( yy_str )
+yyconst char *yy_str;
+#endif
+ {
+ int len;
+ for ( len = 0; yy_str[len]; ++len )
+ ;
+
+ return yy_scan_bytes( yy_str, len );
+ }
+#endif
+
+
+#ifndef YY_NO_SCAN_BYTES
+#ifdef YY_USE_PROTOS
+YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
+#else
+YY_BUFFER_STATE yy_scan_bytes( bytes, len )
+yyconst char *bytes;
+int len;
+#endif
+ {
+ YY_BUFFER_STATE b;
+ char *buf;
+ yy_size_t n;
+ int i;
+
+ /* Get memory for full buffer, including space for trailing EOB's. */
+ n = len + 2;
+ buf = (char *) yy_flex_alloc( n );
+ if ( ! buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
+
+ for ( i = 0; i < len; ++i )
+ buf[i] = bytes[i];
+
+ buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
+
+ b = yy_scan_buffer( buf, n );
+ if ( ! b )
+ YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
+
+ /* It's okay to grow etc. this buffer, and we should throw it
+ * away when we're done.
+ */
+ b->yy_is_our_buffer = 1;
+
+ return b;
+ }
+#endif
+
+
+#ifndef YY_NO_PUSH_STATE
+#ifdef YY_USE_PROTOS
+static void yy_push_state( int new_state )
+#else
+static void yy_push_state( new_state )
+int new_state;
+#endif
+ {
+ if ( yy_start_stack_ptr >= yy_start_stack_depth )
+ {
+ yy_size_t new_size;
+
+ yy_start_stack_depth += YY_START_STACK_INCR;
+ new_size = yy_start_stack_depth * sizeof( int );
+
+ if ( ! yy_start_stack )
+ yy_start_stack = (int *) yy_flex_alloc( new_size );
+
+ else
+ yy_start_stack = (int *) yy_flex_realloc(
+ (void *) yy_start_stack, new_size );
+
+ if ( ! yy_start_stack )
+ YY_FATAL_ERROR(
+ "out of memory expanding start-condition stack" );
+ }
+
+ yy_start_stack[yy_start_stack_ptr++] = YY_START;
+
+ BEGIN(new_state);
+ }
+#endif
+
+
+#ifndef YY_NO_POP_STATE
+static void yy_pop_state()
+ {
+ if ( --yy_start_stack_ptr < 0 )
+ YY_FATAL_ERROR( "start-condition stack underflow" );
+
+ BEGIN(yy_start_stack[yy_start_stack_ptr]);
+ }
+#endif
+
+
+#ifndef YY_NO_TOP_STATE
+static int yy_top_state()
+ {
+ return yy_start_stack[yy_start_stack_ptr - 1];
+ }
+#endif
+
+#ifndef YY_EXIT_FAILURE
+#define YY_EXIT_FAILURE 2
+#endif
+
+#ifdef YY_USE_PROTOS
+static void yy_fatal_error( yyconst char msg[] )
+#else
+static void yy_fatal_error( msg )
+char msg[];
+#endif
+ {
+ (void) fprintf( stderr, "%s\n", msg );
+ exit( YY_EXIT_FAILURE );
+ }
+
+
+
+/* Redefine yyless() so it works in section 3 code. */
+
+#undef yyless
+#define yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up yytext. */ \
+ yytext[yyleng] = yy_hold_char; \
+ yy_c_buf_p = yytext + n; \
+ yy_hold_char = *yy_c_buf_p; \
+ *yy_c_buf_p = '\0'; \
+ yyleng = n; \
+ } \
+ while ( 0 )
+
+
+/* Internal utility routines. */
+
+#ifndef yytext_ptr
+#ifdef YY_USE_PROTOS
+static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
+#else
+static void yy_flex_strncpy( s1, s2, n )
+char *s1;
+yyconst char *s2;
+int n;
+#endif
+ {
+ register int i;
+ for ( i = 0; i < n; ++i )
+ s1[i] = s2[i];
+ }
+#endif
+
+#ifdef YY_NEED_STRLEN
+#ifdef YY_USE_PROTOS
+static int yy_flex_strlen( yyconst char *s )
+#else
+static int yy_flex_strlen( s )
+yyconst char *s;
+#endif
+ {
+ register int n;
+ for ( n = 0; s[n]; ++n )
+ ;
+
+ return n;
+ }
+#endif
+
+
+#ifdef YY_USE_PROTOS
+static void *yy_flex_alloc( yy_size_t size )
+#else
+static void *yy_flex_alloc( size )
+yy_size_t size;
+#endif
+ {
+ return (void *) malloc( size );
+ }
+
+#ifdef YY_USE_PROTOS
+static void *yy_flex_realloc( void *ptr, yy_size_t size )
+#else
+static void *yy_flex_realloc( ptr, size )
+void *ptr;
+yy_size_t size;
+#endif
+ {
+ /* The cast to (char *) in the following accommodates both
+ * implementations that use char* generic pointers, and those
+ * that use void* generic pointers. It works with the latter
+ * because both ANSI C and C++ allow castless assignment from
+ * any pointer type to void*, and deal with argument conversions
+ * as though doing an assignment.
+ */
+ return (void *) realloc( (char *) ptr, size );
+ }
+
+#ifdef YY_USE_PROTOS
+static void yy_flex_free( void *ptr )
+#else
+static void yy_flex_free( ptr )
+void *ptr;
+#endif
+ {
+ free( ptr );
+ }
+
+#if YY_MAIN
+int main()
+ {
+ yylex();
+ return 0;
+ }
+#endif
+#line 303 "swf5compiler.flex"
+
+static int getinput() {
+#ifdef __cplusplus
+ return yyinput();
+#else
+ return input();
+#endif
+}
+
+int swf5wrap()
+{
+ return 1;
+}
+
+static void countline()
+{
+ if(sLineNumber != 0)
+ msgline[column] = 0;
+
+ ++sLineNumber;
+ column = 0;
+ msgline = msgbufs[sLineNumber & 1];
+}
+
+static int LineNumber(void)
+{
+ return (sLineNumber + 1);
+}
+
+static int ColumnNumber(void)
+{
+ return column;
+}
+
+static char *LineText(void)
+{
+ msgline[column] = 0;
+ return msgline;
+}
+
+static void comment()
+{
+ // Handle block comments
+
+ int c, c1;
+
+loop:
+ // We have the start of a comment so look skip everything up to the
+ // end of the comment character
+ while ((c = getinput()) != '*' && c != EOF)
+ {
+ if(column < 1023)
+ msgline[column] = c;
+
+ ++column;
+
+ // keep the line number in synch
+ if (c == '\n')
+ {
+ // start the output (matches the algorithim in the lexx above)
+ countline();
+ }
+
+ if (swf5debug) putchar(c);
+ }
+
+ // is this the end of comment character
+ if ((c1 = getinput()) != '/' && c != EOF)
+ {
+ // false start as this was no end of comment
+ do_unput5(c1);
+ goto loop;
+ }
+
+ // write out the start of the end of comment
+ if (c != EOF)
+ if (swf5debug) putchar(c);
+
+ // write out the end of the end of comment
+ if (c1 != EOF)
+ if (swf5debug) putchar(c1);
+}
+
+static void comment1()
+{
+ // Handle comment of type 1 (ie '//')
+
+ int c;
+
+ // this is a line comment
+ while ((c = getinput()) != '\n' && c != EOF)
+ {
+ if (swf5debug) putchar(c);
+
+ if(column < 1023)
+ msgline[column] = c;
+
+ ++column;
+ };
+
+ // keep the line number in synch
+ if (c == '\n')
+ {
+ if (swf5debug) putchar(c);
+
+ countline();
+ }
+}
+
+static void count(void)
+{
+ int n;
+
+ // Count the characters to maintain the current column position
+ if (yytext[0] == '\n')
+ {
+ if (swf5debug) printf("\n");
+ }
+ else
+ {
+ if (swf5debug) printf("%s", yytext);
+
+ for(n=0; n<yyleng; ++n, ++column)
+ {
+ if(column < 1023)
+ msgline[column] = yytext[n];
+ }
+
+ //-- keep writing the stuff to standard output
+ //column += yyleng;
+ }
+}
+
+static void printprog()
+{
+ if(sLineNumber)
+ SWF_warn("\n%s", msgbufs[(sLineNumber-1)&1]);
+
+ if(column < 1023)
+ msgline[column] = 0;
+
+ SWF_warn("\n%s", msgline);
+}
+
+static void warning(char *msg)
+{
+ // print a warning message
+ printprog();
+ SWF_warn("\n%*s", ColumnNumber(), "^");
+ SWF_warn("\nLine %4.4d: Reason: '%s' \n", LineNumber(), msg);
+}
+
+void swf5error(char *msg)
+{
+ // report a error
+ if(strlen(yytext))
+ {
+ SWF_error("\n%s\n%*s\nLine %i: Reason: '%s'\n",
+ LineText(), ColumnNumber(), "^", LineNumber(), msg);
+ }
+ else
+ {
+ SWF_error("\nLine %d: Reason: 'Unexpected EOF found while looking for input.'\n", LineNumber());
+ }
+}
diff --git a/lib/action/swf4compiler.tab.c b/lib/action/swf4compiler.tab.c
new file mode 100644
index 00000000..8598a4fe
--- /dev/null
+++ b/lib/action/swf4compiler.tab.c
@@ -0,0 +1,2887 @@
+/* A Bison parser, made by GNU Bison 1.875. */
+
+/* Skeleton parser for Yacc-like parsing with Bison,
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/* As a special exception, when this file is copied by Bison into a
+ Bison output file, you may use that output file without restriction.
+ This special exception was added by the Free Software Foundation
+ in version 1.24 of Bison. */
+
+/* Written by Richard Stallman by simplifying the original so called
+ ``semantic'' parser. */
+
+/* All symbols defined below should begin with yy or YY, to avoid
+ infringing on user name space. This should be done even for local
+ variables, as they might otherwise be expanded by user macros.
+ There are some unavoidable exceptions within include files to
+ define necessary library symbols; they are noted "INFRINGES ON
+ USER NAME SPACE" below. */
+
+/* Identify Bison output. */
+#define YYBISON 1
+
+/* Skeleton name. */
+#define YYSKELETON_NAME "yacc.c"
+
+/* Pure parsers. */
+#define YYPURE 0
+
+/* Using locations. */
+#define YYLSP_NEEDED 0
+
+/* If NAME_PREFIX is specified substitute the variables and functions
+ names. */
+#define yyparse swf4parse
+#define yylex swf4lex
+#define yyerror swf4error
+#define yylval swf4lval
+#define yychar swf4char
+#define yydebug swf4debug
+#define yynerrs swf4nerrs
+
+
+/* Tokens. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {
+ BREAK = 258,
+ FOR = 259,
+ CONTINUE = 260,
+ IF = 261,
+ ELSE = 262,
+ DO = 263,
+ WHILE = 264,
+ THIS = 265,
+ EVAL = 266,
+ TIME = 267,
+ RANDOM = 268,
+ LENGTH = 269,
+ INT = 270,
+ CONCAT = 271,
+ DUPLICATECLIP = 272,
+ REMOVECLIP = 273,
+ TRACE = 274,
+ STARTDRAG = 275,
+ STOPDRAG = 276,
+ ORD = 277,
+ CHR = 278,
+ CALLFRAME = 279,
+ GETURL = 280,
+ GETURL1 = 281,
+ LOADMOVIE = 282,
+ LOADVARIABLES = 283,
+ POSTURL = 284,
+ SUBSTR = 285,
+ GETPROPERTY = 286,
+ NEXTFRAME = 287,
+ PREVFRAME = 288,
+ PLAY = 289,
+ STOP = 290,
+ TOGGLEQUALITY = 291,
+ STOPSOUNDS = 292,
+ GOTOFRAME = 293,
+ GOTOANDPLAY = 294,
+ FRAMELOADED = 295,
+ SETTARGET = 296,
+ TELLTARGET = 297,
+ STRING = 298,
+ NUMBER = 299,
+ IDENTIFIER = 300,
+ PATH = 301,
+ GETURL_METHOD = 302,
+ EQ = 303,
+ LE = 304,
+ GE = 305,
+ NE = 306,
+ LAN = 307,
+ LOR = 308,
+ INC = 309,
+ DEC = 310,
+ IEQ = 311,
+ DEQ = 312,
+ MEQ = 313,
+ SEQ = 314,
+ STREQ = 315,
+ STRNE = 316,
+ STRCMP = 317,
+ PARENT = 318,
+ END = 319,
+ UMINUS = 320,
+ POSTFIX = 321,
+ NEGATE = 322
+ };
+#endif
+#define BREAK 258
+#define FOR 259
+#define CONTINUE 260
+#define IF 261
+#define ELSE 262
+#define DO 263
+#define WHILE 264
+#define THIS 265
+#define EVAL 266
+#define TIME 267
+#define RANDOM 268
+#define LENGTH 269
+#define INT 270
+#define CONCAT 271
+#define DUPLICATECLIP 272
+#define REMOVECLIP 273
+#define TRACE 274
+#define STARTDRAG 275
+#define STOPDRAG 276
+#define ORD 277
+#define CHR 278
+#define CALLFRAME 279
+#define GETURL 280
+#define GETURL1 281
+#define LOADMOVIE 282
+#define LOADVARIABLES 283
+#define POSTURL 284
+#define SUBSTR 285
+#define GETPROPERTY 286
+#define NEXTFRAME 287
+#define PREVFRAME 288
+#define PLAY 289
+#define STOP 290
+#define TOGGLEQUALITY 291
+#define STOPSOUNDS 292
+#define GOTOFRAME 293
+#define GOTOANDPLAY 294
+#define FRAMELOADED 295
+#define SETTARGET 296
+#define TELLTARGET 297
+#define STRING 298
+#define NUMBER 299
+#define IDENTIFIER 300
+#define PATH 301
+#define GETURL_METHOD 302
+#define EQ 303
+#define LE 304
+#define GE 305
+#define NE 306
+#define LAN 307
+#define LOR 308
+#define INC 309
+#define DEC 310
+#define IEQ 311
+#define DEQ 312
+#define MEQ 313
+#define SEQ 314
+#define STREQ 315
+#define STRNE 316
+#define STRCMP 317
+#define PARENT 318
+#define END 319
+#define UMINUS 320
+#define POSTFIX 321
+#define NEGATE 322
+
+
+
+
+/* Copy the first part of user declarations. */
+#line 5 "swf4compiler.y"
+
+
+#include <time.h>
+#include <string.h>
+#include <stdlib.h>
+#include "compile.h"
+#include "action.h"
+
+#define YYPARSE_PARAM buffer
+
+
+
+/* Enabling traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 0
+#endif
+
+/* Enabling verbose error messages. */
+#ifdef YYERROR_VERBOSE
+# undef YYERROR_VERBOSE
+# define YYERROR_VERBOSE 1
+#else
+# define YYERROR_VERBOSE 0
+#endif
+
+#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
+#line 17 "swf4compiler.y"
+typedef union YYSTYPE {
+ Buffer action;
+ char *str;
+ SWFActionFunction function;
+ SWFGetUrl2Method getURLMethod;
+} YYSTYPE;
+/* Line 191 of yacc.c. */
+#line 237 "swf4compiler.tab.c"
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
+#endif
+
+
+
+/* Copy the second part of user declarations. */
+
+
+/* Line 214 of yacc.c. */
+#line 249 "swf4compiler.tab.c"
+
+#if ! defined (yyoverflow) || YYERROR_VERBOSE
+
+/* The parser invokes alloca or malloc; define the necessary symbols. */
+
+# if YYSTACK_USE_ALLOCA
+# define YYSTACK_ALLOC alloca
+# else
+# ifndef YYSTACK_USE_ALLOCA
+# if defined (alloca) || defined (_ALLOCA_H)
+# define YYSTACK_ALLOC alloca
+# else
+# ifdef __GNUC__
+# define YYSTACK_ALLOC __builtin_alloca
+# endif
+# endif
+# endif
+# endif
+
+# ifdef YYSTACK_ALLOC
+ /* Pacify GCC's `empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
+# else
+# if defined (__STDC__) || defined (__cplusplus)
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# endif
+# define YYSTACK_ALLOC malloc
+# define YYSTACK_FREE free
+# endif
+#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
+
+
+#if (! defined (yyoverflow) \
+ && (! defined (__cplusplus) \
+ || (YYSTYPE_IS_TRIVIAL)))
+
+/* A type that is properly aligned for any stack member. */
+union yyalloc
+{
+ short yyss;
+ YYSTYPE yyvs;
+ };
+
+/* The size of the maximum gap between one aligned stack and the next. */
+# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
+
+/* The size of an array large to enough to hold all stacks, each with
+ N elements. */
+# define YYSTACK_BYTES(N) \
+ ((N) * (sizeof (short) + sizeof (YYSTYPE)) \
+ + YYSTACK_GAP_MAXIMUM)
+
+/* Copy COUNT objects from FROM to TO. The source and destination do
+ not overlap. */
+# ifndef YYCOPY
+# if 1 < __GNUC__
+# define YYCOPY(To, From, Count) \
+ __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
+# else
+# define YYCOPY(To, From, Count) \
+ do \
+ { \
+ register YYSIZE_T yyi; \
+ for (yyi = 0; yyi < (Count); yyi++) \
+ (To)[yyi] = (From)[yyi]; \
+ } \
+ while (0)
+# endif
+# endif
+
+/* Relocate STACK from its old location to the new one. The
+ local variables YYSIZE and YYSTACKSIZE give the old and new number of
+ elements in the stack, and YYPTR gives the new location of the
+ stack. Advance YYPTR to a properly aligned location for the next
+ stack. */
+# define YYSTACK_RELOCATE(Stack) \
+ do \
+ { \
+ YYSIZE_T yynewbytes; \
+ YYCOPY (&yyptr->Stack, Stack, yysize); \
+ Stack = &yyptr->Stack; \
+ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / sizeof (*yyptr); \
+ } \
+ while (0)
+
+#endif
+
+#if defined (__STDC__) || defined (__cplusplus)
+ typedef signed char yysigned_char;
+#else
+ typedef short yysigned_char;
+#endif
+
+/* YYFINAL -- State number of the termination state. */
+#define YYFINAL 108
+/* YYLAST -- Last index in YYTABLE. */
+#define YYLAST 1341
+
+/* YYNTOKENS -- Number of terminals. */
+#define YYNTOKENS 86
+/* YYNNTS -- Number of nonterminals. */
+#define YYNNTS 22
+/* YYNRULES -- Number of rules. */
+#define YYNRULES 137
+/* YYNRULES -- Number of states. */
+#define YYNSTATES 369
+
+/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
+#define YYUNDEFTOK 2
+#define YYMAXUTOK 322
+
+#define YYTRANSLATE(YYX) \
+ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+
+/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
+static const unsigned 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, 76, 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, 2, 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,
+ 77, 78, 79
+};
+
+#if YYDEBUG
+/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
+ YYRHS. */
+static const unsigned short yyprhs[] =
+{
+ 0, 0, 3, 5, 7, 10, 12, 15, 19, 21,
+ 24, 26, 28, 30, 32, 34, 38, 39, 41, 44,
+ 55, 64, 74, 85, 94, 104, 112, 118, 119, 121,
+ 131, 137, 144, 154, 155, 157, 160, 163, 167, 172,
+ 177, 182, 187, 194, 203, 210, 217, 226, 233, 242,
+ 249, 264, 273, 277, 281, 285, 289, 293, 297, 302,
+ 307, 312, 317, 322, 327, 333, 339, 344, 348, 353,
+ 358, 363, 368, 373, 380, 389, 396, 399, 402, 404,
+ 408, 410, 413, 415, 417, 419, 423, 428, 431, 436,
+ 439, 442, 445, 449, 453, 457, 461, 465, 469, 473,
+ 477, 481, 485, 489, 493, 497, 501, 505, 509, 513,
+ 519, 521, 525, 527, 529, 531, 533, 535, 537, 539,
+ 541, 545, 547, 549, 552, 555, 560, 565, 569, 573,
+ 577, 581, 585, 591, 597, 603, 609, 615
+};
+
+/* YYRHS -- A `-1'-separated list of the rules' RHS. */
+static const yysigned_char yyrhs[] =
+{
+ 87, 0, -1, 88, -1, 89, -1, 88, 89, -1,
+ 90, -1, 80, 81, -1, 80, 92, 81, -1, 82,
+ -1, 106, 82, -1, 93, -1, 95, -1, 97, -1,
+ 98, -1, 106, -1, 91, 65, 106, -1, -1, 90,
+ -1, 92, 90, -1, 6, 83, 40, 83, 44, 84,
+ 84, 90, 7, 90, -1, 6, 83, 40, 83, 44,
+ 84, 84, 90, -1, 6, 83, 76, 40, 83, 44,
+ 84, 84, 90, -1, 6, 83, 40, 83, 107, 84,
+ 84, 90, 7, 90, -1, 6, 83, 40, 83, 107,
+ 84, 84, 90, -1, 6, 83, 76, 40, 83, 107,
+ 84, 84, 90, -1, 6, 83, 107, 84, 90, 7,
+ 90, -1, 6, 83, 107, 84, 90, -1, -1, 107,
+ -1, 9, 83, 76, 40, 83, 44, 84, 84, 90,
+ -1, 9, 83, 107, 84, 90, -1, 8, 90, 9,
+ 83, 107, 84, -1, 4, 83, 96, 82, 94, 82,
+ 96, 84, 90, -1, -1, 91, -1, 5, 82, -1,
+ 3, 82, -1, 21, 83, 84, -1, 24, 83, 103,
+ 84, -1, 24, 83, 43, 84, -1, 18, 83, 107,
+ 84, -1, 19, 83, 107, 84, -1, 25, 83, 107,
+ 65, 107, 84, -1, 25, 83, 107, 65, 107, 65,
+ 47, 84, -1, 26, 83, 43, 65, 43, 84, -1,
+ 27, 83, 107, 65, 107, 84, -1, 27, 83, 107,
+ 65, 107, 65, 47, 84, -1, 28, 83, 107, 65,
+ 107, 84, -1, 28, 83, 107, 65, 107, 65, 47,
+ 84, -1, 20, 83, 107, 65, 107, 84, -1, 20,
+ 83, 107, 65, 107, 65, 107, 65, 107, 65, 107,
+ 65, 107, 84, -1, 17, 83, 107, 65, 107, 65,
+ 107, 84, -1, 32, 83, 84, -1, 33, 83, 84,
+ -1, 34, 83, 84, -1, 35, 83, 84, -1, 36,
+ 83, 84, -1, 37, 83, 84, -1, 38, 83, 44,
+ 84, -1, 38, 83, 43, 84, -1, 38, 83, 107,
+ 84, -1, 39, 83, 107, 84, -1, 41, 83, 43,
+ 84, -1, 41, 83, 107, 84, -1, 42, 83, 43,
+ 84, 90, -1, 42, 83, 107, 84, 90, -1, 11,
+ 83, 107, 84, -1, 12, 83, 84, -1, 13, 83,
+ 107, 84, -1, 14, 83, 107, 84, -1, 15, 83,
+ 107, 84, -1, 22, 83, 107, 84, -1, 23, 83,
+ 107, 84, -1, 16, 83, 107, 65, 107, 84, -1,
+ 30, 83, 107, 65, 107, 65, 107, 84, -1, 31,
+ 83, 107, 65, 43, 84, -1, 105, 54, -1, 105,
+ 55, -1, 100, -1, 83, 102, 84, -1, 44, -1,
+ 73, 44, -1, 43, -1, 103, -1, 104, -1, 104,
+ 85, 45, -1, 54, 104, 85, 45, -1, 54, 105,
+ -1, 55, 104, 85, 45, -1, 55, 105, -1, 73,
+ 102, -1, 76, 102, -1, 105, 66, 102, -1, 102,
+ 74, 102, -1, 102, 75, 102, -1, 102, 72, 102,
+ -1, 102, 73, 102, -1, 102, 71, 102, -1, 102,
+ 69, 102, -1, 102, 70, 102, -1, 102, 49, 102,
+ -1, 102, 50, 102, -1, 102, 61, 102, -1, 102,
+ 60, 102, -1, 102, 62, 102, -1, 102, 48, 102,
+ -1, 102, 51, 102, -1, 102, 52, 102, -1, 102,
+ 53, 102, -1, 102, 67, 102, 68, 102, -1, 45,
+ -1, 104, 68, 45, -1, 10, -1, 85, -1, 75,
+ -1, 63, -1, 45, -1, 46, -1, 103, -1, 43,
+ -1, 83, 102, 84, -1, 101, -1, 99, -1, 54,
+ 105, -1, 55, 105, -1, 54, 104, 85, 45, -1,
+ 55, 104, 85, 45, -1, 105, 66, 102, -1, 105,
+ 58, 102, -1, 105, 57, 102, -1, 105, 56, 102,
+ -1, 105, 59, 102, -1, 104, 85, 45, 66, 102,
+ -1, 104, 85, 45, 58, 102, -1, 104, 85, 45,
+ 57, 102, -1, 104, 85, 45, 56, 102, -1, 104,
+ 85, 45, 59, 102, -1, 102, -1
+};
+
+/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
+static const unsigned short yyrline[] =
+{
+ 0, 144, 144, 150, 151, 156, 160, 161, 162, 163,
+ 164, 165, 166, 167, 171, 172, 176, 177, 178, 185,
+ 201, 217, 229, 243, 257, 267, 278, 288, 289, 313,
+ 328, 340, 348, 370, 371, 375, 383, 391, 395, 402,
+ 409, 413, 418, 425, 432, 441, 448, 455, 462, 470,
+ 477, 489, 498, 502, 506, 510, 514, 518, 522, 529,
+ 536, 542, 548, 555, 559, 573, 586, 590, 594, 598,
+ 602, 606, 610, 614, 619, 625, 634, 645, 659, 661,
+ 664, 669, 675, 680, 686, 691, 699, 714, 724, 739,
+ 749, 754, 758, 764, 769, 774, 779, 784, 789, 794,
+ 799, 805, 810, 815, 819, 823, 827, 832, 836, 840,
+ 852, 854, 861, 864, 867, 870, 873, 876, 881, 886,
+ 891, 895, 897, 899, 907, 915, 928, 941, 945, 952,
+ 959, 966, 973, 982, 995, 1008, 1021, 1036
+};
+#endif
+
+#if YYDEBUG || YYERROR_VERBOSE
+/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
+ First, the terminals, then, starting at YYNTOKENS, nonterminals. */
+static const char *const yytname[] =
+{
+ "$end", "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", "'{'", "'}'",
+ "';'", "'('", "')'", "'.'", "$accept", "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", 0
+};
+#endif
+
+# ifdef YYPRINT
+/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
+ token YYLEX-NUM. */
+static const unsigned short yytoknum[] =
+{
+ 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
+ 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
+ 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
+ 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 44, 61, 63, 58, 60,
+ 62, 38, 43, 45, 42, 47, 33, 320, 321, 322,
+ 123, 125, 59, 40, 41, 46
+};
+# endif
+
+/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const unsigned char yyr1[] =
+{
+ 0, 86, 87, 88, 88, 89, 90, 90, 90, 90,
+ 90, 90, 90, 90, 91, 91, 92, 92, 92, 93,
+ 93, 93, 93, 93, 93, 93, 93, 94, 94, 95,
+ 95, 95, 95, 96, 96, 97, 98, 99, 99, 99,
+ 99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
+ 99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
+ 99, 99, 99, 99, 99, 99, 100, 100, 100, 100,
+ 100, 100, 100, 100, 100, 100, 101, 101, 102, 102,
+ 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
+ 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
+ 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
+ 103, 103, 104, 104, 104, 104, 104, 104, 105, 105,
+ 105, 106, 106, 106, 106, 106, 106, 106, 106, 106,
+ 106, 106, 106, 106, 106, 106, 106, 107
+};
+
+/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
+static const unsigned char yyr2[] =
+{
+ 0, 2, 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
+};
+
+/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
+ STATE-NUM when YYTABLE doesn't specify something else to do. Zero
+ means the default is an error. */
+static const unsigned char yydefact[] =
+{
+ 0, 0, 0, 0, 0, 0, 0, 112, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 119, 110,
+ 117, 0, 0, 115, 114, 0, 8, 0, 113, 0,
+ 2, 3, 5, 10, 11, 12, 13, 122, 121, 118,
+ 0, 0, 0, 36, 33, 35, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 123, 0, 124, 6, 17, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 82, 80, 0, 0,
+ 0, 0, 0, 78, 0, 83, 84, 0, 1, 4,
+ 0, 0, 76, 77, 0, 0, 0, 0, 0, 9,
+ 34, 0, 14, 0, 0, 137, 0, 0, 0, 0,
+ 0, 0, 0, 0, 37, 0, 0, 0, 0, 0,
+ 0, 0, 52, 53, 54, 55, 56, 57, 82, 80,
+ 0, 0, 82, 0, 82, 0, 0, 0, 7, 18,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 87, 0, 89, 80, 90, 91, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 120, 0, 0, 111, 0,
+ 130, 129, 128, 131, 127, 0, 27, 0, 0, 0,
+ 0, 0, 0, 0, 40, 41, 0, 39, 38, 0,
+ 0, 0, 0, 59, 58, 60, 61, 62, 63, 0,
+ 0, 125, 126, 0, 67, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 79, 105, 100, 101, 106,
+ 107, 108, 103, 102, 104, 0, 98, 99, 97, 95,
+ 96, 93, 94, 85, 92, 0, 0, 0, 0, 0,
+ 15, 0, 28, 80, 0, 0, 26, 0, 0, 30,
+ 0, 0, 0, 0, 0, 0, 64, 65, 66, 68,
+ 69, 70, 0, 71, 72, 0, 0, 86, 88, 0,
+ 135, 134, 133, 136, 132, 33, 0, 0, 80, 0,
+ 0, 31, 0, 0, 0, 49, 0, 42, 44, 0,
+ 45, 0, 47, 0, 0, 0, 109, 0, 0, 0,
+ 0, 0, 25, 0, 0, 0, 0, 0, 0, 73,
+ 0, 75, 0, 20, 23, 0, 0, 0, 51, 0,
+ 43, 46, 48, 0, 32, 0, 0, 21, 24, 29,
+ 0, 74, 19, 22, 0, 0, 0, 0, 50
+};
+
+/* YYDEFGOTO[NTERM-NUM]. */
+static const short yydefgoto[] =
+{
+ -1, 39, 40, 41, 42, 120, 85, 43, 271, 44,
+ 121, 45, 46, 47, 103, 48, 125, 105, 106, 107,
+ 52, 126
+};
+
+/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ STATE-NUM. */
+#define YYPACT_NINF -70
+static const short yypact[] =
+{
+ 780, -69, -64, -60, -49, 780, -28, -70, -22, -14,
+ -2, 3, 4, 11, 13, 17, 19, 20, 23, 25,
+ 26, 29, 30, 31, 33, 47, 54, 56, -70, 16,
+ -70, 32, 32, -70, -70, 614, -70, 422, -70, 72,
+ 780, -70, -70, -70, -70, -70, -70, -70, -70, -70,
+ -12, 65, 1, -70, 108, -70, 826, 80, 994, 422,
+ 422, 422, 422, 64, 5, 422, 118, 422, 422, 81,
+ 82, 86, 88, 89, 104, 1020, 422, 1076, 1102, -11,
+ -70, -9, -70, -70, -70, 697, 106, 109, 117, 119,
+ 120, 121, 123, 125, 127, 130, 98, -70, 32, 32,
+ 1158, 422, 422, -70, 516, 135, -6, 141, -70, -70,
+ 145, 169, -70, -70, 422, 422, 422, 422, 422, -70,
+ 151, 137, -70, 139, 882, 613, 136, 140, 938, 142,
+ 160, 143, 144, 166, -70, 148, 149, 170, 172, 174,
+ 175, 178, -70, -70, -70, -70, -70, -70, -48, 150,
+ 161, 162, -21, 163, -13, 164, 199, 204, -70, -70,
+ 422, 167, 422, 422, 422, 422, 422, 422, 422, 422,
+ -3, -70, -1, -70, -70, -70, -70, 1257, 422, 422,
+ 422, 422, 422, 422, 422, 422, 422, 422, 422, 422,
+ 422, 422, 422, 422, 422, -70, 205, 422, -70, 128,
+ 613, 613, 613, 613, 613, 108, 422, 1184, 171, 780,
+ 422, 173, 780, 422, -70, -70, 422, -70, -70, 422,
+ 210, 422, 422, -70, -70, -70, -70, -70, -70, 780,
+ 780, -70, -70, 176, -70, 177, 179, 180, 190, 182,
+ 188, 192, 193, 214, 228, 212, -46, 124, 124, -46,
+ 696, 696, -46, -46, 124, 107, 124, 124, -65, 18,
+ 18, -70, -70, -70, 613, 422, 422, 422, 422, 422,
+ -70, 197, -70, 191, 196, 1240, 274, 206, 244, -70,
+ 224, -63, -51, 207, -45, -35, -70, -70, -70, -70,
+ -70, -70, 422, -70, -70, 422, 249, -70, -70, 422,
+ 613, 613, 613, 613, 613, 108, 211, 213, 215, 216,
+ 780, -70, 217, 422, 422, -70, 246, -70, -70, 247,
+ -70, 251, -70, 218, 231, 219, 613, 220, 780, 780,
+ 222, 223, -70, 225, 229, 243, 230, 234, 235, -70,
+ 422, -70, 780, 305, 308, 780, 780, 780, -70, 422,
+ -70, -70, -70, 236, -70, 780, 780, -70, -70, -70,
+ 256, -70, -70, -70, 422, 258, 422, 240, -70
+};
+
+/* YYPGOTO[NTERM-NUM]. */
+static const short yypgoto[] =
+{
+ -70, -70, -70, 285, 53, -70, -70, -70, -70, -70,
+ 21, -70, -70, -70, -70, -70, 346, 0, 6, 12,
+ -53, 209
+};
+
+/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
+ positive, shift that token. If negative, reduce the rule which
+ number is the opposite. If zero, do what YYDEFACT says.
+ If YYTABLE_NINF, syntax error. */
+#define YYTABLE_NINF -121
+static const short yytable[] =
+{
+ 49, 122, 314, 179, 180, 49, 50, 191, 192, 193,
+ 194, 50, 51, 53, 316, 7, 186, 51, -119, 54,
+ 319, 315, 55, 188, 189, 190, 191, 192, 193, 194,
+ 321, 49, 49, 317, 56, 49, 223, 79, 81, 320,
+ 49, 50, 7, 80, 82, -119, 50, 51, 135, 322,
+ 29, 30, 51, -119, 49, 58, 110, 110, 57, 110,
+ 50, 59, 110, 227, 136, 110, 51, 110, 33, 60,
+ 137, 229, 108, 111, 156, 28, 157, 29, 30, 196,
+ 34, 61, 243, 119, 244, 49, 62, 63, 84, 127,
+ 38, 50, 193, 194, 64, 33, 65, 51, 49, 49,
+ 66, -116, 67, 68, 170, 172, 69, 34, 70, 71,
+ 171, 173, 72, 73, 74, 37, 75, 38, 7, 112,
+ 113, 114, 115, 116, 117, 8, 9, 10, 11, 12,
+ 76, 118, 13, 14, 15, 16, 17, 77, 159, 78,
+ 18, 19, 20, 21, 22, 23, 24, 25, 134, 26,
+ 27, 28, 270, 29, 30, 178, 179, 180, 181, 182,
+ 183, 139, 31, 32, -119, 142, 143, 184, 185, 186,
+ 144, 33, 145, 146, 187, 299, 188, 189, 190, 191,
+ 192, 193, 194, 34, 265, 266, 267, 268, 147, 160,
+ 198, 37, 161, 38, 269, 190, 191, 192, 193, 194,
+ 162, -118, 163, 164, 165, 49, 166, 197, 167, 49,
+ 168, 50, 49, 169, 199, 50, 205, 51, 50, 206,
+ 209, 51, 207, 210, 51, 213, 212, 214, 215, 49,
+ 49, 216, 217, 218, 224, 50, 50, 219, 110, 220,
+ 221, 51, 51, 222, 231, 225, 226, 228, 230, 232,
+ 263, 234, 122, 283, 275, 292, 278, 295, 296, 297,
+ 288, 289, 276, 290, 291, 279, 293, 129, 130, 131,
+ 132, 133, 294, 298, 138, 306, 140, 141, -120, 305,
+ 307, 310, 286, 287, 150, 151, 153, 155, 312, 313,
+ 311, 318, 325, 336, 337, 328, 340, 329, 338, 330,
+ 331, 333, 339, 341, 342, 49, 345, 346, 349, 347,
+ 49, 50, 355, 348, 350, 356, 50, 51, 351, 352,
+ 361, 364, 51, 366, 368, 109, 327, 0, 49, 49,
+ 0, 0, 0, 0, 50, 50, 0, 0, 0, 0,
+ 51, 51, 49, 0, 0, 49, 49, 49, 50, 0,
+ 0, 50, 50, 50, 51, 49, 49, 51, 51, 51,
+ 0, 50, 50, 332, 0, 0, 0, 51, 51, 233,
+ 0, 235, 236, 237, 238, 239, 240, 241, 242, 0,
+ 0, 343, 344, 104, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 354, 0, 0, 357, 358,
+ 359, 0, 0, 0, 0, 0, 0, 0, 362, 363,
+ 0, 0, 0, 0, 0, 272, 274, 0, 0, 277,
+ 0, 0, 280, 0, 0, 281, 0, 0, 282, 0,
+ 284, 285, 7, 86, 87, 88, 89, 90, 91, 0,
+ 0, 0, 0, 0, 92, 93, 175, 176, 177, 0,
+ 0, 0, 94, 95, 0, 0, 0, 0, 0, 0,
+ 200, 201, 202, 203, 204, 96, 97, 29, 30, 0,
+ 176, 0, 0, 0, 176, 0, 98, 99, 0, 0,
+ 0, 0, 0, 0, 309, 33, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 100, 0, 34, 101, 0,
+ 0, 323, 0, 0, 324, 102, 0, 38, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 334, 335, 246, 247, 248, 249, 250, 251,
+ 252, 253, 254, 255, 256, 257, 258, 259, 260, 261,
+ 262, 0, 0, 264, 0, 0, 0, 0, 0, 353,
+ 0, 0, 0, 0, 0, 0, 0, 0, 360, 0,
+ 0, 0, 0, 0, 178, 179, 180, 181, 182, 183,
+ 0, 0, 0, 365, 0, 367, 184, 185, 186, 0,
+ 0, 0, 0, 187, 0, 188, 189, 190, 191, 192,
+ 193, 194, 0, 0, 0, 0, 0, 0, 0, 0,
+ 195, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 300, 301, 302, 303, 304, 0, 1, 2, 3,
+ 4, 0, 5, 6, 7, 0, 0, 0, 0, 0,
+ 0, 8, 9, 10, 11, 12, 0, 0, 13, 14,
+ 15, 16, 17, 0, 0, 326, 18, 19, 20, 21,
+ 22, 23, 24, 25, 0, 26, 27, 28, 0, 29,
+ 30, 178, 179, 180, 181, 182, 183, 0, 31, 32,
+ 0, 0, 0, 184, 185, 186, 0, 33, 0, 0,
+ 187, 0, 188, 189, 190, 191, 192, 193, 194, 34,
+ 0, 0, 0, 0, 35, 83, 36, 37, 0, 38,
+ 1, 2, 3, 4, 0, 5, 6, 7, 0, 0,
+ 0, 0, 0, 0, 8, 9, 10, 11, 12, 0,
+ 0, 13, 14, 15, 16, 17, 0, 0, 0, 18,
+ 19, 20, 21, 22, 23, 24, 25, 0, 26, 27,
+ 28, 0, 29, 30, 178, 179, 180, 181, 0, 0,
+ 0, 31, 32, 0, 0, 0, 184, 185, 186, 0,
+ 33, 0, 0, 0, 0, 188, 189, 190, 191, 192,
+ 193, 194, 34, 0, 0, 0, 0, 35, 158, 36,
+ 37, 0, 38, 1, 2, 3, 4, 0, 5, 6,
+ 7, 0, 0, 0, 0, 0, 0, 8, 9, 10,
+ 11, 12, 0, 0, 13, 14, 15, 16, 17, 0,
+ 0, 0, 18, 19, 20, 21, 22, 23, 24, 25,
+ 0, 26, 27, 28, 0, 29, 30, 0, 0, 0,
+ 0, 0, 0, 0, 31, 32, 7, 86, 87, 88,
+ 89, 90, 91, 33, 0, 0, 0, 0, 92, 93,
+ 0, 0, 0, 0, 0, 34, 94, 95, 0, 0,
+ 35, 0, 36, 37, 0, 38, 123, 0, 0, 96,
+ 97, 29, 30, 0, 0, 0, 0, 0, 0, 0,
+ 98, 99, 0, 0, 0, 0, 0, 0, 0, 33,
+ 0, 0, 7, 86, 87, 88, 89, 90, 91, 100,
+ 0, 34, 124, 0, 92, 93, 0, 0, 0, 102,
+ 0, 38, 94, 95, 0, 0, 0, 0, 0, 0,
+ 0, 0, 208, 0, 0, 96, 97, 29, 30, 0,
+ 0, 0, 0, 0, 0, 0, 98, 99, 0, 0,
+ 0, 0, 0, 0, 0, 33, 0, 0, 7, 86,
+ 87, 88, 89, 90, 91, 100, 0, 34, 101, 0,
+ 92, 93, 0, 0, 0, 102, 0, 38, 94, 95,
+ 0, 0, 0, 0, 0, 0, 0, 0, 211, 0,
+ 0, 96, 97, 29, 30, 0, 0, 0, 0, 0,
+ 0, 0, 98, 99, 0, 0, 0, 0, 0, 0,
+ 0, 33, 0, 0, 7, 86, 87, 88, 89, 90,
+ 91, 100, 0, 34, 101, 0, 92, 93, 0, 0,
+ 0, 102, 0, 38, 94, 95, 0, 0, 0, 0,
+ 7, 86, 87, 88, 89, 90, 91, 96, 97, 29,
+ 30, 0, 92, 93, 0, 0, 0, 0, 98, 99,
+ 94, 95, 0, 0, 0, 0, 0, 33, 0, 0,
+ 0, 0, 0, 148, 149, 29, 30, 100, 0, 34,
+ 128, 0, 0, 0, 98, 99, 0, 102, 0, 38,
+ 0, 0, 0, 33, 0, 0, 7, 86, 87, 88,
+ 89, 90, 91, 100, 0, 34, 101, 0, 92, 93,
+ 0, 0, 0, 102, 0, 38, 94, 95, 0, 0,
+ 0, 0, 7, 86, 87, 88, 89, 90, 91, 152,
+ 97, 29, 30, 0, 92, 93, 0, 0, 0, 0,
+ 98, 99, 94, 95, 0, 0, 0, 0, 0, 33,
+ 0, 0, 0, 0, 0, 154, 97, 29, 30, 100,
+ 0, 34, 101, 0, 0, 0, 98, 99, 0, 102,
+ 0, 38, 0, 0, 0, 33, 0, 0, 7, 86,
+ 87, 88, 89, 90, 91, 100, 0, 34, 101, 0,
+ 92, 93, 0, 0, 0, 102, 0, 38, 94, 95,
+ 0, 0, 0, 0, 7, 86, 87, 88, 89, 90,
+ 91, 96, 174, 29, 30, 0, 92, 93, 0, 0,
+ 0, 0, 98, 99, 94, 95, 0, 0, 0, 0,
+ 0, 33, 0, 0, 0, 0, 0, 96, 273, 29,
+ 30, 100, 0, 34, 101, 0, 0, 0, 98, 99,
+ 0, 102, 0, 38, 0, 0, 0, 33, 0, 0,
+ 7, 86, 87, 88, 89, 90, 91, 100, 0, 34,
+ 101, 0, 92, 93, 0, 0, 0, 102, 0, 38,
+ 94, 95, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 96, 308, 29, 30, 0, 0, 0,
+ 0, 0, 0, 0, 98, 99, 0, 0, 0, 0,
+ 0, 0, 0, 33, 0, 178, 179, 180, 181, 182,
+ 183, 0, 0, 100, 0, 34, 101, 184, 185, 186,
+ 0, 0, 0, 102, 187, 38, 188, 189, 190, 191,
+ 192, 193, 194, 0, 0, 0, 0, 0, 0, 0,
+ 0, 245
+};
+
+static const short yycheck[] =
+{
+ 0, 54, 65, 49, 50, 5, 0, 72, 73, 74,
+ 75, 5, 0, 82, 65, 10, 62, 5, 66, 83,
+ 65, 84, 82, 69, 70, 71, 72, 73, 74, 75,
+ 65, 31, 32, 84, 83, 35, 84, 31, 32, 84,
+ 40, 35, 10, 31, 32, 66, 40, 35, 43, 84,
+ 45, 46, 40, 66, 54, 83, 68, 68, 5, 68,
+ 54, 83, 68, 84, 64, 68, 54, 68, 63, 83,
+ 64, 84, 0, 85, 85, 43, 85, 45, 46, 85,
+ 75, 83, 85, 82, 85, 85, 83, 83, 35, 9,
+ 85, 85, 74, 75, 83, 63, 83, 85, 98, 99,
+ 83, 85, 83, 83, 98, 99, 83, 75, 83, 83,
+ 98, 99, 83, 83, 83, 83, 83, 85, 10, 54,
+ 55, 56, 57, 58, 59, 17, 18, 19, 20, 21,
+ 83, 66, 24, 25, 26, 27, 28, 83, 85, 83,
+ 32, 33, 34, 35, 36, 37, 38, 39, 84, 41,
+ 42, 43, 205, 45, 46, 48, 49, 50, 51, 52,
+ 53, 43, 54, 55, 66, 84, 84, 60, 61, 62,
+ 84, 63, 84, 84, 67, 68, 69, 70, 71, 72,
+ 73, 74, 75, 75, 56, 57, 58, 59, 84, 83,
+ 45, 83, 83, 85, 66, 71, 72, 73, 74, 75,
+ 83, 66, 83, 83, 83, 205, 83, 66, 83, 209,
+ 83, 205, 212, 83, 45, 209, 65, 205, 212, 82,
+ 84, 209, 83, 83, 212, 65, 84, 84, 84, 229,
+ 230, 65, 84, 84, 84, 229, 230, 65, 68, 65,
+ 65, 229, 230, 65, 45, 84, 84, 84, 84, 45,
+ 45, 84, 305, 43, 83, 65, 83, 65, 65, 45,
+ 84, 84, 209, 84, 84, 212, 84, 58, 59, 60,
+ 61, 62, 84, 45, 65, 84, 67, 68, 66, 82,
+ 84, 7, 229, 230, 75, 76, 77, 78, 44, 65,
+ 84, 84, 43, 47, 47, 84, 65, 84, 47, 84,
+ 84, 84, 84, 84, 84, 305, 84, 84, 65, 84,
+ 310, 305, 7, 84, 84, 7, 310, 305, 84, 84,
+ 84, 65, 310, 65, 84, 40, 305, -1, 328, 329,
+ -1, -1, -1, -1, 328, 329, -1, -1, -1, -1,
+ 328, 329, 342, -1, -1, 345, 346, 347, 342, -1,
+ -1, 345, 346, 347, 342, 355, 356, 345, 346, 347,
+ -1, 355, 356, 310, -1, -1, -1, 355, 356, 160,
+ -1, 162, 163, 164, 165, 166, 167, 168, 169, -1,
+ -1, 328, 329, 37, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 342, -1, -1, 345, 346,
+ 347, -1, -1, -1, -1, -1, -1, -1, 355, 356,
+ -1, -1, -1, -1, -1, 206, 207, -1, -1, 210,
+ -1, -1, 213, -1, -1, 216, -1, -1, 219, -1,
+ 221, 222, 10, 11, 12, 13, 14, 15, 16, -1,
+ -1, -1, -1, -1, 22, 23, 100, 101, 102, -1,
+ -1, -1, 30, 31, -1, -1, -1, -1, -1, -1,
+ 114, 115, 116, 117, 118, 43, 44, 45, 46, -1,
+ 124, -1, -1, -1, 128, -1, 54, 55, -1, -1,
+ -1, -1, -1, -1, 275, 63, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 73, -1, 75, 76, -1,
+ -1, 292, -1, -1, 295, 83, -1, 85, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 313, 314, 178, 179, 180, 181, 182, 183,
+ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
+ 194, -1, -1, 197, -1, -1, -1, -1, -1, 340,
+ -1, -1, -1, -1, -1, -1, -1, -1, 349, -1,
+ -1, -1, -1, -1, 48, 49, 50, 51, 52, 53,
+ -1, -1, -1, 364, -1, 366, 60, 61, 62, -1,
+ -1, -1, -1, 67, -1, 69, 70, 71, 72, 73,
+ 74, 75, -1, -1, -1, -1, -1, -1, -1, -1,
+ 84, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 265, 266, 267, 268, 269, -1, 3, 4, 5,
+ 6, -1, 8, 9, 10, -1, -1, -1, -1, -1,
+ -1, 17, 18, 19, 20, 21, -1, -1, 24, 25,
+ 26, 27, 28, -1, -1, 299, 32, 33, 34, 35,
+ 36, 37, 38, 39, -1, 41, 42, 43, -1, 45,
+ 46, 48, 49, 50, 51, 52, 53, -1, 54, 55,
+ -1, -1, -1, 60, 61, 62, -1, 63, -1, -1,
+ 67, -1, 69, 70, 71, 72, 73, 74, 75, 75,
+ -1, -1, -1, -1, 80, 81, 82, 83, -1, 85,
+ 3, 4, 5, 6, -1, 8, 9, 10, -1, -1,
+ -1, -1, -1, -1, 17, 18, 19, 20, 21, -1,
+ -1, 24, 25, 26, 27, 28, -1, -1, -1, 32,
+ 33, 34, 35, 36, 37, 38, 39, -1, 41, 42,
+ 43, -1, 45, 46, 48, 49, 50, 51, -1, -1,
+ -1, 54, 55, -1, -1, -1, 60, 61, 62, -1,
+ 63, -1, -1, -1, -1, 69, 70, 71, 72, 73,
+ 74, 75, 75, -1, -1, -1, -1, 80, 81, 82,
+ 83, -1, 85, 3, 4, 5, 6, -1, 8, 9,
+ 10, -1, -1, -1, -1, -1, -1, 17, 18, 19,
+ 20, 21, -1, -1, 24, 25, 26, 27, 28, -1,
+ -1, -1, 32, 33, 34, 35, 36, 37, 38, 39,
+ -1, 41, 42, 43, -1, 45, 46, -1, -1, -1,
+ -1, -1, -1, -1, 54, 55, 10, 11, 12, 13,
+ 14, 15, 16, 63, -1, -1, -1, -1, 22, 23,
+ -1, -1, -1, -1, -1, 75, 30, 31, -1, -1,
+ 80, -1, 82, 83, -1, 85, 40, -1, -1, 43,
+ 44, 45, 46, -1, -1, -1, -1, -1, -1, -1,
+ 54, 55, -1, -1, -1, -1, -1, -1, -1, 63,
+ -1, -1, 10, 11, 12, 13, 14, 15, 16, 73,
+ -1, 75, 76, -1, 22, 23, -1, -1, -1, 83,
+ -1, 85, 30, 31, -1, -1, -1, -1, -1, -1,
+ -1, -1, 40, -1, -1, 43, 44, 45, 46, -1,
+ -1, -1, -1, -1, -1, -1, 54, 55, -1, -1,
+ -1, -1, -1, -1, -1, 63, -1, -1, 10, 11,
+ 12, 13, 14, 15, 16, 73, -1, 75, 76, -1,
+ 22, 23, -1, -1, -1, 83, -1, 85, 30, 31,
+ -1, -1, -1, -1, -1, -1, -1, -1, 40, -1,
+ -1, 43, 44, 45, 46, -1, -1, -1, -1, -1,
+ -1, -1, 54, 55, -1, -1, -1, -1, -1, -1,
+ -1, 63, -1, -1, 10, 11, 12, 13, 14, 15,
+ 16, 73, -1, 75, 76, -1, 22, 23, -1, -1,
+ -1, 83, -1, 85, 30, 31, -1, -1, -1, -1,
+ 10, 11, 12, 13, 14, 15, 16, 43, 44, 45,
+ 46, -1, 22, 23, -1, -1, -1, -1, 54, 55,
+ 30, 31, -1, -1, -1, -1, -1, 63, -1, -1,
+ -1, -1, -1, 43, 44, 45, 46, 73, -1, 75,
+ 76, -1, -1, -1, 54, 55, -1, 83, -1, 85,
+ -1, -1, -1, 63, -1, -1, 10, 11, 12, 13,
+ 14, 15, 16, 73, -1, 75, 76, -1, 22, 23,
+ -1, -1, -1, 83, -1, 85, 30, 31, -1, -1,
+ -1, -1, 10, 11, 12, 13, 14, 15, 16, 43,
+ 44, 45, 46, -1, 22, 23, -1, -1, -1, -1,
+ 54, 55, 30, 31, -1, -1, -1, -1, -1, 63,
+ -1, -1, -1, -1, -1, 43, 44, 45, 46, 73,
+ -1, 75, 76, -1, -1, -1, 54, 55, -1, 83,
+ -1, 85, -1, -1, -1, 63, -1, -1, 10, 11,
+ 12, 13, 14, 15, 16, 73, -1, 75, 76, -1,
+ 22, 23, -1, -1, -1, 83, -1, 85, 30, 31,
+ -1, -1, -1, -1, 10, 11, 12, 13, 14, 15,
+ 16, 43, 44, 45, 46, -1, 22, 23, -1, -1,
+ -1, -1, 54, 55, 30, 31, -1, -1, -1, -1,
+ -1, 63, -1, -1, -1, -1, -1, 43, 44, 45,
+ 46, 73, -1, 75, 76, -1, -1, -1, 54, 55,
+ -1, 83, -1, 85, -1, -1, -1, 63, -1, -1,
+ 10, 11, 12, 13, 14, 15, 16, 73, -1, 75,
+ 76, -1, 22, 23, -1, -1, -1, 83, -1, 85,
+ 30, 31, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 43, 44, 45, 46, -1, -1, -1,
+ -1, -1, -1, -1, 54, 55, -1, -1, -1, -1,
+ -1, -1, -1, 63, -1, 48, 49, 50, 51, 52,
+ 53, -1, -1, 73, -1, 75, 76, 60, 61, 62,
+ -1, -1, -1, 83, 67, 85, 69, 70, 71, 72,
+ 73, 74, 75, -1, -1, -1, -1, -1, -1, -1,
+ -1, 84
+};
+
+/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+ symbol of state STATE-NUM. */
+static const unsigned char yystos[] =
+{
+ 0, 3, 4, 5, 6, 8, 9, 10, 17, 18,
+ 19, 20, 21, 24, 25, 26, 27, 28, 32, 33,
+ 34, 35, 36, 37, 38, 39, 41, 42, 43, 45,
+ 46, 54, 55, 63, 75, 80, 82, 83, 85, 87,
+ 88, 89, 90, 93, 95, 97, 98, 99, 101, 103,
+ 104, 105, 106, 82, 83, 82, 83, 90, 83, 83,
+ 83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
+ 83, 83, 83, 83, 83, 83, 83, 83, 83, 104,
+ 105, 104, 105, 81, 90, 92, 11, 12, 13, 14,
+ 15, 16, 22, 23, 30, 31, 43, 44, 54, 55,
+ 73, 76, 83, 100, 102, 103, 104, 105, 0, 89,
+ 68, 85, 54, 55, 56, 57, 58, 59, 66, 82,
+ 91, 96, 106, 40, 76, 102, 107, 9, 76, 107,
+ 107, 107, 107, 107, 84, 43, 103, 104, 107, 43,
+ 107, 107, 84, 84, 84, 84, 84, 84, 43, 44,
+ 107, 107, 43, 107, 43, 107, 85, 85, 81, 90,
+ 83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
+ 104, 105, 104, 105, 44, 102, 102, 102, 48, 49,
+ 50, 51, 52, 53, 60, 61, 62, 67, 69, 70,
+ 71, 72, 73, 74, 75, 84, 85, 66, 45, 45,
+ 102, 102, 102, 102, 102, 65, 82, 83, 40, 84,
+ 83, 40, 84, 65, 84, 84, 65, 84, 84, 65,
+ 65, 65, 65, 84, 84, 84, 84, 84, 84, 84,
+ 84, 45, 45, 107, 84, 107, 107, 107, 107, 107,
+ 107, 107, 107, 85, 85, 84, 102, 102, 102, 102,
+ 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
+ 102, 102, 102, 45, 102, 56, 57, 58, 59, 66,
+ 106, 94, 107, 44, 107, 83, 90, 107, 83, 90,
+ 107, 107, 107, 43, 107, 107, 90, 90, 84, 84,
+ 84, 84, 65, 84, 84, 65, 65, 45, 45, 68,
+ 102, 102, 102, 102, 102, 82, 84, 84, 44, 107,
+ 7, 84, 44, 65, 65, 84, 65, 84, 84, 65,
+ 84, 65, 84, 107, 107, 43, 102, 96, 84, 84,
+ 84, 84, 90, 84, 107, 107, 47, 47, 47, 84,
+ 65, 84, 84, 90, 90, 84, 84, 84, 84, 65,
+ 84, 84, 84, 107, 90, 7, 7, 90, 90, 90,
+ 107, 84, 90, 90, 65, 107, 65, 107, 84
+};
+
+#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
+# define YYSIZE_T __SIZE_TYPE__
+#endif
+#if ! defined (YYSIZE_T) && defined (size_t)
+# define YYSIZE_T size_t
+#endif
+#if ! defined (YYSIZE_T)
+# if defined (__STDC__) || defined (__cplusplus)
+# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# endif
+#endif
+#if ! defined (YYSIZE_T)
+# define YYSIZE_T unsigned int
+#endif
+
+#define yyerrok (yyerrstatus = 0)
+#define yyclearin (yychar = YYEMPTY)
+#define YYEMPTY (-2)
+#define YYEOF 0
+
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrlab1
+
+
+/* Like YYERROR except do call yyerror. This remains here temporarily
+ to ease the transition to the new meaning of YYERROR, for GCC.
+ Once GCC version 2 has supplanted version 1, this can go. */
+
+#define YYFAIL goto yyerrlab
+
+#define YYRECOVERING() (!!yyerrstatus)
+
+#define YYBACKUP(Token, Value) \
+do \
+ if (yychar == YYEMPTY && yylen == 1) \
+ { \
+ yychar = (Token); \
+ yylval = (Value); \
+ yytoken = YYTRANSLATE (yychar); \
+ YYPOPSTACK; \
+ goto yybackup; \
+ } \
+ else \
+ { \
+ yyerror ("syntax error: cannot back up");\
+ YYERROR; \
+ } \
+while (0)
+
+#define YYTERROR 1
+#define YYERRCODE 256
+
+/* YYLLOC_DEFAULT -- Compute the default location (before the actions
+ are run). */
+
+#ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ Current.first_line = Rhs[1].first_line; \
+ Current.first_column = Rhs[1].first_column; \
+ Current.last_line = Rhs[N].last_line; \
+ Current.last_column = Rhs[N].last_column;
+#endif
+
+/* YYLEX -- calling `yylex' with the right arguments. */
+
+#ifdef YYLEX_PARAM
+# define YYLEX yylex (YYLEX_PARAM)
+#else
+# define YYLEX yylex ()
+#endif
+
+/* Enable debugging if requested. */
+#if YYDEBUG
+
+# ifndef YYFPRINTF
+# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
+# define YYFPRINTF fprintf
+# endif
+
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (0)
+
+# define YYDSYMPRINT(Args) \
+do { \
+ if (yydebug) \
+ yysymprint Args; \
+} while (0)
+
+# define YYDSYMPRINTF(Title, Token, Value, Location) \
+do { \
+ if (yydebug) \
+ { \
+ YYFPRINTF (stderr, "%s ", Title); \
+ yysymprint (stderr, \
+ Token, Value); \
+ YYFPRINTF (stderr, "\n"); \
+ } \
+} while (0)
+
+/*------------------------------------------------------------------.
+| yy_stack_print -- Print the state stack from its BOTTOM up to its |
+| TOP (cinluded). |
+`------------------------------------------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yy_stack_print (short *bottom, short *top)
+#else
+static void
+yy_stack_print (bottom, top)
+ short *bottom;
+ short *top;
+#endif
+{
+ YYFPRINTF (stderr, "Stack now");
+ for (/* Nothing. */; bottom <= top; ++bottom)
+ YYFPRINTF (stderr, " %d", *bottom);
+ YYFPRINTF (stderr, "\n");
+}
+
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (0)
+
+
+/*------------------------------------------------.
+| Report that the YYRULE is going to be reduced. |
+`------------------------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yy_reduce_print (int yyrule)
+#else
+static void
+yy_reduce_print (yyrule)
+ int yyrule;
+#endif
+{
+ int yyi;
+ unsigned int yylineno = yyrline[yyrule];
+ YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
+ yyrule - 1, yylineno);
+ /* Print the symbols being reduced, and their result. */
+ for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
+ YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
+ YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
+}
+
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (Rule); \
+} while (0)
+
+/* Nonzero means print parse trace. It is left uninitialized so that
+ multiple parsers can coexist. */
+int yydebug;
+#else /* !YYDEBUG */
+# define YYDPRINTF(Args)
+# define YYDSYMPRINT(Args)
+# define YYDSYMPRINTF(Title, Token, Value, Location)
+# define YY_STACK_PRINT(Bottom, Top)
+# define YY_REDUCE_PRINT(Rule)
+#endif /* !YYDEBUG */
+
+
+/* YYINITDEPTH -- initial size of the parser's stacks. */
+#ifndef YYINITDEPTH
+# define YYINITDEPTH 200
+#endif
+
+/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
+ if the built-in stack extension method is used).
+
+ Do not make this value too large; the results are undefined if
+ SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
+ evaluated with infinite-precision integer arithmetic. */
+
+#if YYMAXDEPTH == 0
+# undef YYMAXDEPTH
+#endif
+
+#ifndef YYMAXDEPTH
+# define YYMAXDEPTH 10000
+#endif
+
+
+
+#if YYERROR_VERBOSE
+
+# ifndef yystrlen
+# if defined (__GLIBC__) && defined (_STRING_H)
+# define yystrlen strlen
+# else
+/* Return the length of YYSTR. */
+static YYSIZE_T
+# if defined (__STDC__) || defined (__cplusplus)
+yystrlen (const char *yystr)
+# else
+yystrlen (yystr)
+ const char *yystr;
+# endif
+{
+ register const char *yys = yystr;
+
+ while (*yys++ != '\0')
+ continue;
+
+ return yys - yystr - 1;
+}
+# endif
+# endif
+
+# ifndef yystpcpy
+# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
+# define yystpcpy stpcpy
+# else
+/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
+ YYDEST. */
+static char *
+# if defined (__STDC__) || defined (__cplusplus)
+yystpcpy (char *yydest, const char *yysrc)
+# else
+yystpcpy (yydest, yysrc)
+ char *yydest;
+ const char *yysrc;
+# endif
+{
+ register char *yyd = yydest;
+ register const char *yys = yysrc;
+
+ while ((*yyd++ = *yys++) != '\0')
+ continue;
+
+ return yyd - 1;
+}
+# endif
+# endif
+
+#endif /* !YYERROR_VERBOSE */
+
+
+
+#if YYDEBUG
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
+#else
+static void
+yysymprint (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE *yyvaluep;
+#endif
+{
+ /* Pacify ``unused variable'' warnings. */
+ (void) yyvaluep;
+
+ if (yytype < YYNTOKENS)
+ {
+ YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+# ifdef YYPRINT
+ YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+# endif
+ }
+ else
+ YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
+
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+ YYFPRINTF (yyoutput, ")");
+}
+
+#endif /* ! YYDEBUG */
+/*-----------------------------------------------.
+| Release the memory associated to this symbol. |
+`-----------------------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yydestruct (int yytype, YYSTYPE *yyvaluep)
+#else
+static void
+yydestruct (yytype, yyvaluep)
+ int yytype;
+ YYSTYPE *yyvaluep;
+#endif
+{
+ /* Pacify ``unused variable'' warnings. */
+ (void) yyvaluep;
+
+ switch (yytype)
+ {
+
+ default:
+ break;
+ }
+}
+
+
+/* Prevent warnings from -Wmissing-prototypes. */
+
+#ifdef YYPARSE_PARAM
+# if defined (__STDC__) || defined (__cplusplus)
+int yyparse (void *YYPARSE_PARAM);
+# else
+int yyparse ();
+# endif
+#else /* ! YYPARSE_PARAM */
+#if defined (__STDC__) || defined (__cplusplus)
+int yyparse (void);
+#else
+int yyparse ();
+#endif
+#endif /* ! YYPARSE_PARAM */
+
+
+
+/* The lookahead symbol. */
+int yychar;
+
+/* The semantic value of the lookahead symbol. */
+YYSTYPE yylval;
+
+/* Number of syntax errors so far. */
+int yynerrs;
+
+
+
+/*----------.
+| yyparse. |
+`----------*/
+
+#ifdef YYPARSE_PARAM
+# if defined (__STDC__) || defined (__cplusplus)
+int yyparse (void *YYPARSE_PARAM)
+# else
+int yyparse (YYPARSE_PARAM)
+ void *YYPARSE_PARAM;
+# endif
+#else /* ! YYPARSE_PARAM */
+#if defined (__STDC__) || defined (__cplusplus)
+int
+yyparse (void)
+#else
+int
+yyparse ()
+
+#endif
+#endif
+{
+
+ register int yystate;
+ register int yyn;
+ int yyresult;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
+ /* Lookahead token as an internal (translated) token number. */
+ int yytoken = 0;
+
+ /* Three stacks and their tools:
+ `yyss': related to states,
+ `yyvs': related to semantic values,
+ `yyls': related to locations.
+
+ Refer to the stacks thru separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+
+ /* The state stack. */
+ short yyssa[YYINITDEPTH];
+ short *yyss = yyssa;
+ register short *yyssp;
+
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs = yyvsa;
+ register YYSTYPE *yyvsp;
+
+
+
+#define YYPOPSTACK (yyvsp--, yyssp--)
+
+ YYSIZE_T yystacksize = YYINITDEPTH;
+
+ /* The variables used to return semantic value and location from the
+ action routines. */
+ YYSTYPE yyval;
+
+
+ /* When reducing, the number of symbols on the RHS of the reduced
+ rule. */
+ int yylen;
+
+ YYDPRINTF ((stderr, "Starting parse\n"));
+
+ yystate = 0;
+ yyerrstatus = 0;
+ yynerrs = 0;
+ yychar = YYEMPTY; /* Cause a token to be read. */
+
+ /* Initialize stack pointers.
+ Waste one element of value and location stack
+ so that they stay on the same level as the state stack.
+ The wasted elements are never initialized. */
+
+ yyssp = yyss;
+ yyvsp = yyvs;
+
+ goto yysetstate;
+
+/*------------------------------------------------------------.
+| yynewstate -- Push a new state, which is found in yystate. |
+`------------------------------------------------------------*/
+ yynewstate:
+ /* In all cases, when you get here, the value and location stacks
+ have just been pushed. so pushing a state here evens the stacks.
+ */
+ yyssp++;
+
+ yysetstate:
+ *yyssp = yystate;
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ {
+ /* Get the current used size of the three stacks, in elements. */
+ YYSIZE_T yysize = yyssp - yyss + 1;
+
+#ifdef yyoverflow
+ {
+ /* Give user a chance to reallocate the stack. Use copies of
+ these so that the &'s don't force the real ones into
+ memory. */
+ YYSTYPE *yyvs1 = yyvs;
+ short *yyss1 = yyss;
+
+
+ /* Each stack pointer address is followed by the size of the
+ data in use in that stack, in bytes. This used to be a
+ conditional around just the two extra args, but that might
+ be undefined if yyoverflow is a macro. */
+ yyoverflow ("parser stack overflow",
+ &yyss1, yysize * sizeof (*yyssp),
+ &yyvs1, yysize * sizeof (*yyvsp),
+
+ &yystacksize);
+
+ yyss = yyss1;
+ yyvs = yyvs1;
+ }
+#else /* no yyoverflow */
+# ifndef YYSTACK_RELOCATE
+ goto yyoverflowlab;
+# else
+ /* Extend the stack our own way. */
+ if (YYMAXDEPTH <= yystacksize)
+ goto yyoverflowlab;
+ yystacksize *= 2;
+ if (YYMAXDEPTH < yystacksize)
+ yystacksize = YYMAXDEPTH;
+
+ {
+ short *yyss1 = yyss;
+ union yyalloc *yyptr =
+ (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
+ if (! yyptr)
+ goto yyoverflowlab;
+ YYSTACK_RELOCATE (yyss);
+ YYSTACK_RELOCATE (yyvs);
+
+# undef YYSTACK_RELOCATE
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
+ }
+# endif
+#endif /* no yyoverflow */
+
+ yyssp = yyss + yysize - 1;
+ yyvsp = yyvs + yysize - 1;
+
+
+ YYDPRINTF ((stderr, "Stack size increased to %lu\n",
+ (unsigned long int) yystacksize));
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ YYABORT;
+ }
+
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+
+ goto yybackup;
+
+/*-----------.
+| yybackup. |
+`-----------*/
+yybackup:
+
+/* Do appropriate processing given the current state. */
+/* Read a lookahead token if we need one and don't already have one. */
+/* yyresume: */
+
+ /* First try to decide what to do without reference to lookahead token. */
+
+ yyn = yypact[yystate];
+ if (yyn == YYPACT_NINF)
+ goto yydefault;
+
+ /* Not known => get a lookahead token if don't already have one. */
+
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
+ if (yychar == YYEMPTY)
+ {
+ YYDPRINTF ((stderr, "Reading a token: "));
+ yychar = YYLEX;
+ }
+
+ if (yychar <= YYEOF)
+ {
+ yychar = yytoken = YYEOF;
+ YYDPRINTF ((stderr, "Now at end of input.\n"));
+ }
+ else
+ {
+ yytoken = YYTRANSLATE (yychar);
+ YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
+ }
+
+ /* If the proper action on seeing token YYTOKEN is to reduce or to
+ detect an error, take that action. */
+ yyn += yytoken;
+ if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
+ goto yydefault;
+ yyn = yytable[yyn];
+ if (yyn <= 0)
+ {
+ if (yyn == 0 || yyn == YYTABLE_NINF)
+ goto yyerrlab;
+ yyn = -yyn;
+ goto yyreduce;
+ }
+
+ if (yyn == YYFINAL)
+ YYACCEPT;
+
+ /* Shift the lookahead token. */
+ YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
+
+ /* Discard the token being shifted unless it is eof. */
+ if (yychar != YYEOF)
+ yychar = YYEMPTY;
+
+ *++yyvsp = yylval;
+
+
+ /* Count tokens shifted since error; after three, turn off error
+ status. */
+ if (yyerrstatus)
+ yyerrstatus--;
+
+ yystate = yyn;
+ goto yynewstate;
+
+
+/*-----------------------------------------------------------.
+| yydefault -- do the default action for the current state. |
+`-----------------------------------------------------------*/
+yydefault:
+ yyn = yydefact[yystate];
+ if (yyn == 0)
+ goto yyerrlab;
+ goto yyreduce;
+
+
+/*-----------------------------.
+| yyreduce -- Do a reduction. |
+`-----------------------------*/
+yyreduce:
+ /* yyn is the number of a rule to reduce with. */
+ yylen = yyr2[yyn];
+
+ /* If YYLEN is nonzero, implement the default value of the action:
+ `$$ = $1'.
+
+ Otherwise, the following line sets YYVAL to garbage.
+ This behavior is undocumented and Bison
+ users should not rely upon it. Assigning to YYVAL
+ unconditionally makes the parser a bit smaller, and it avoids a
+ GCC warning that YYVAL may be used uninitialized. */
+ yyval = yyvsp[1-yylen];
+
+
+ YY_REDUCE_PRINT (yyn);
+ switch (yyn)
+ {
+ case 2:
+#line 145 "swf4compiler.y"
+ { *((Buffer *)buffer) = yyvsp[0].action; ;}
+ break;
+
+ case 4:
+#line 152 "swf4compiler.y"
+ { bufferConcat(yyvsp[-1].action, yyvsp[0].action); ;}
+ break;
+
+ case 6:
+#line 160 "swf4compiler.y"
+ { yyval.action = NULL; ;}
+ break;
+
+ case 7:
+#line 161 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action; ;}
+ break;
+
+ case 8:
+#line 162 "swf4compiler.y"
+ { yyval.action = NULL; ;}
+ break;
+
+ case 15:
+#line 172 "swf4compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action); ;}
+ break;
+
+ case 16:
+#line 176 "swf4compiler.y"
+ { yyval.action = NULL; ;}
+ break;
+
+ case 18:
+#line 179 "swf4compiler.y"
+ { bufferConcat(yyvsp[-1].action, yyvsp[0].action); ;}
+ break;
+
+ case 19:
+#line 186 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_WAITFORFRAME);
+ bufferWriteS16(yyval.action, 3);
+ bufferWriteS16(yyval.action, atoi(yyvsp[-5].str));
+ free(yyvsp[-5].str);
+ bufferWriteU8(yyval.action, 1); /* if not loaded, jump to.. */
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action)+5);
+ bufferConcat(yyval.action, yyvsp[0].action); /* ..here */
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[-2].action));
+ bufferConcat(yyval.action, yyvsp[-2].action); ;}
+ break;
+
+ case 20:
+#line 202 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_WAITFORFRAME);
+ bufferWriteS16(yyval.action, 3);
+ bufferWriteS16(yyval.action, atoi(yyvsp[-3].str));
+ free(yyvsp[-3].str);
+ bufferWriteU8(yyval.action, 1); /* if not loaded, jump to.. */
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, 5);
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS); /* ..here */
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action)); /* ..and then out */
+ bufferConcat(yyval.action, yyvsp[0].action); ;}
+ break;
+
+ case 21:
+#line 218 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_WAITFORFRAME);
+ bufferWriteS16(yyval.action, 3);
+ bufferWriteS16(yyval.action, atoi(yyvsp[-3].str));
+ free(yyvsp[-3].str);
+ bufferWriteU8(yyval.action, 1); /* if not loaded, jump to.. */
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action));
+ bufferConcat(yyval.action, yyvsp[0].action); ;}
+ break;
+
+ case 22:
+#line 230 "swf4compiler.y"
+ { yyval.action = yyvsp[-5].action;
+ bufferWriteU8(yyval.action, SWFACTION_WAITFORFRAMEEXPRESSION);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 1); /* if not loaded, jump to.. */
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action)+5);
+ bufferConcat(yyval.action, yyvsp[0].action); /* ..here */
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[-2].action));
+ bufferConcat(yyval.action, yyvsp[-2].action); ;}
+ break;
+
+ case 23:
+#line 244 "swf4compiler.y"
+ { yyval.action = yyvsp[-3].action;
+ bufferWriteU8(yyval.action, SWFACTION_WAITFORFRAMEEXPRESSION);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 1); /* if not loaded, jump to.. */
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, 5);
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS); /* ..here */
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action)); /* ..and then out */
+ bufferConcat(yyval.action, yyvsp[0].action); ;}
+ break;
+
+ case 24:
+#line 258 "swf4compiler.y"
+ { yyval.action = yyvsp[-3].action;
+ bufferWriteU8(yyval.action, SWFACTION_WAITFORFRAMEEXPRESSION);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 1); /* if not loaded, jump to.. */
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action));
+ bufferConcat(yyval.action, yyvsp[0].action); ;}
+ break;
+
+ case 25:
+#line 268 "swf4compiler.y"
+ { bufferWriteU8(yyvsp[-4].action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyvsp[-4].action, 2);
+ bufferWriteS16(yyvsp[-4].action, bufferLength(yyvsp[0].action)+5);
+ bufferConcat(yyvsp[-4].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-4].action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyvsp[-4].action, 2);
+ bufferWriteS16(yyvsp[-4].action, bufferLength(yyvsp[-2].action));
+ bufferConcat(yyvsp[-4].action, yyvsp[-2].action);
+ yyval.action = yyvsp[-4].action; ;}
+ break;
+
+ case 26:
+#line 279 "swf4compiler.y"
+ { bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALNOT);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyvsp[-2].action, 2);
+ bufferWriteS16(yyvsp[-2].action, bufferLength(yyvsp[0].action));
+ bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ yyval.action = yyvsp[-2].action; ;}
+ break;
+
+ case 27:
+#line 288 "swf4compiler.y"
+ { yyval.action = NULL; ;}
+ break;
+
+ case 28:
+#line 289 "swf4compiler.y"
+ { yyval.action = yyvsp[0].action; ;}
+ break;
+
+ case 29:
+#line 314 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_WAITFORFRAME);
+ bufferWriteS16(yyval.action, 3);
+ bufferWriteS16(yyval.action, atoi(yyvsp[-3].str));
+ free(yyvsp[-3].str);
+ bufferWriteU8(yyval.action, 1); /* if not loaded, jump to.. */
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action)+5);
+ bufferConcat(yyval.action, yyvsp[0].action); /* ..here */
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, -(bufferLength(yyval.action)+2)); ;}
+ break;
+
+ case 30:
+#line 329 "swf4compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferWriteU8(yyval.action, SWFACTION_LOGICALNOT);
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action)+5);
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, -(bufferLength(yyval.action)+2));
+ bufferResolveJumps(yyval.action); ;}
+ break;
+
+ case 31:
+#line 341 "swf4compiler.y"
+ { yyval.action = yyvsp[-4].action;
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, -(bufferLength(yyval.action)+2));
+ bufferResolveJumps(yyval.action); ;}
+ break;
+
+ case 32:
+#line 349 "swf4compiler.y"
+ { if (!yyvsp[-4].action)
+ yyvsp[-4].action = newBuffer();
+ else {
+ bufferWriteU8(yyvsp[-4].action, SWFACTION_LOGICALNOT);
+ bufferWriteU8(yyvsp[-4].action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyvsp[-4].action, 2);
+ bufferWriteS16(yyvsp[-4].action, bufferLength(yyvsp[0].action)+bufferLength(yyvsp[-2].action)+5);
+ }
+ bufferConcat(yyvsp[-4].action, yyvsp[0].action);
+ bufferConcat(yyvsp[-4].action, yyvsp[-2].action);
+ bufferWriteU8(yyvsp[-4].action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyvsp[-4].action, 2);
+ bufferWriteS16(yyvsp[-4].action, -(bufferLength(yyvsp[-4].action)+2));
+ bufferResolveJumps(yyvsp[-4].action);
+ yyval.action = yyvsp[-6].action;
+ if(!yyval.action) yyval.action = newBuffer();
+ bufferConcat(yyval.action, yyvsp[-4].action);
+ ;}
+ break;
+
+ case 33:
+#line 370 "swf4compiler.y"
+ { yyval.action = NULL; ;}
+ break;
+
+ case 35:
+#line 376 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, MAGIC_CONTINUE_NUMBER); ;}
+ break;
+
+ case 36:
+#line 384 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, MAGIC_BREAK_NUMBER); ;}
+ break;
+
+ case 37:
+#line 392 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_STOPDRAGMOVIE); ;}
+ break;
+
+ case 38:
+#line 396 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-1].str, strlen(yyvsp[-1].str)+1);
+ bufferWriteU8(yyval.action, SWFACTION_CALLFRAME);
+ bufferWriteS16(yyval.action, 0);
+ free(yyvsp[-1].str); ;}
+ break;
+
+ case 39:
+#line 403 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-1].str, strlen(yyvsp[-1].str)+1);
+ bufferWriteU8(yyval.action, SWFACTION_CALLFRAME);
+ bufferWriteS16(yyval.action, 0);
+ free(yyvsp[-1].str); ;}
+ break;
+
+ case 40:
+#line 410 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_REMOVECLIP); ;}
+ break;
+
+ case 41:
+#line 414 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_TRACE); ;}
+ break;
+
+ case 42:
+#line 419 "swf4compiler.y"
+ { yyval.action = yyvsp[-3].action;
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, GETURL_METHOD_NOSEND); ;}
+ break;
+
+ case 43:
+#line 426 "swf4compiler.y"
+ { yyval.action = yyvsp[-5].action;
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, yyvsp[-1].getURLMethod); ;}
+ break;
+
+ case 44:
+#line 433 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_GETURL);
+ bufferWriteS16(yyval.action, strlen(yyvsp[-3].str) + strlen(yyvsp[-1].str) + 2);
+ bufferWriteHardString(yyval.action, (byte*)yyvsp[-3].str, strlen(yyvsp[-3].str));
+ bufferWriteU8(yyval.action, 0);
+ bufferWriteHardString(yyval.action, (byte*)yyvsp[-1].str, strlen(yyvsp[-1].str));
+ bufferWriteU8(yyval.action, 0); ;}
+ break;
+
+ case 45:
+#line 442 "swf4compiler.y"
+ { yyval.action = yyvsp[-3].action;
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, GETURL_METHOD_NOSEND | GETURL_LOADMOVIE); ;}
+ break;
+
+ case 46:
+#line 449 "swf4compiler.y"
+ { yyval.action = yyvsp[-5].action;
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, yyvsp[-1].getURLMethod | GETURL_LOADMOVIE); ;}
+ break;
+
+ case 47:
+#line 456 "swf4compiler.y"
+ { yyval.action = yyvsp[-3].action;
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, GETURL_METHOD_NOSEND | GETURL_LOADVARIABLES); ;}
+ break;
+
+ case 48:
+#line 463 "swf4compiler.y"
+ { yyval.action = yyvsp[-5].action;
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, yyvsp[-1].getURLMethod | GETURL_LOADVARIABLES); ;}
+ break;
+
+ case 49:
+#line 471 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, "0", 2); /* no constraint */
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferWriteU8(yyval.action, SWFACTION_STARTDRAGMOVIE); ;}
+ break;
+
+ case 50:
+#line 478 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferConcat(yyval.action, yyvsp[-7].action);
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferConcat(yyval.action, yyvsp[-5].action);
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteString(yyval.action, "1", 2); /* has constraint */
+ bufferConcat(yyval.action, yyvsp[-9].action);
+ bufferConcat(yyval.action, yyvsp[-11].action);
+ bufferWriteU8(yyval.action, SWFACTION_STARTDRAGMOVIE); ;}
+ break;
+
+ case 51:
+#line 490 "swf4compiler.y"
+ { yyval.action = yyvsp[-5].action;
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteWTHITProperty(yyval.action);
+ bufferWriteU8(yyval.action, SWFACTION_ADD); /* see docs for explanation */
+ bufferWriteU8(yyval.action, SWFACTION_DUPLICATECLIP); ;}
+ break;
+
+ case 52:
+#line 499 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_NEXTFRAME); ;}
+ break;
+
+ case 53:
+#line 503 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_PREVFRAME); ;}
+ break;
+
+ case 54:
+#line 507 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_PLAY); ;}
+ break;
+
+ case 55:
+#line 511 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_STOP); ;}
+ break;
+
+ case 56:
+#line 515 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_TOGGLEQUALITY); ;}
+ break;
+
+ case 57:
+#line 519 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_STOPSOUNDS); ;}
+ break;
+
+ case 58:
+#line 523 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_GOTOFRAME);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, atoi(yyvsp[-1].str));
+ free(yyvsp[-1].str); ;}
+ break;
+
+ case 59:
+#line 530 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_GOTOLABEL);
+ bufferWriteS16(yyval.action, strlen(yyvsp[-1].str)+1);
+ bufferWriteHardString(yyval.action, (byte*)yyvsp[-1].str, strlen(yyvsp[-1].str)+1);
+ free(yyvsp[-1].str); ;}
+ break;
+
+ case 60:
+#line 537 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_GOTOEXPRESSION);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 0); ;}
+ break;
+
+ case 61:
+#line 543 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_GOTOEXPRESSION);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 1); ;}
+ break;
+
+ case 62:
+#line 549 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_SETTARGET);
+ bufferWriteS16(yyval.action, strlen(yyvsp[-1].str)+1);
+ bufferWriteHardString(yyval.action, (byte*)yyvsp[-1].str, strlen(yyvsp[-1].str)+1);
+ free(yyvsp[-1].str); ;}
+ break;
+
+ case 63:
+#line 556 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_SETTARGETEXPRESSION); ;}
+ break;
+
+ case 64:
+#line 560 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ /* SetTarget(STRING) */
+ bufferWriteU8(yyval.action, SWFACTION_SETTARGET);
+ bufferWriteS16(yyval.action, strlen(yyvsp[-2].str)+1);
+ bufferWriteHardString(yyval.action, (byte*)yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ /* stmt */
+ bufferConcat(yyval.action, yyvsp[0].action);
+ /* SetTarget('') */
+ bufferWriteU8(yyval.action, SWFACTION_SETTARGET);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 0);
+ free(yyvsp[-2].str); ;}
+ break;
+
+ case 65:
+#line 574 "swf4compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ /* SetTarget(expr) */
+ bufferWriteU8(yyval.action, SWFACTION_SETTARGETEXPRESSION);
+ /* stmt */
+ bufferConcat(yyval.action, yyvsp[0].action);
+ /* SetTarget('') */
+ bufferWriteU8(yyval.action, SWFACTION_SETTARGET);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 0); ;}
+ break;
+
+ case 66:
+#line 587 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE); ;}
+ break;
+
+ case 67:
+#line 591 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteU8(yyval.action, SWFACTION_GETTIMER); ;}
+ break;
+
+ case 68:
+#line 595 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_RANDOM); ;}
+ break;
+
+ case 69:
+#line 599 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_STRINGLENGTH); ;}
+ break;
+
+ case 70:
+#line 603 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_INT); ;}
+ break;
+
+ case 71:
+#line 607 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_ORD); ;}
+ break;
+
+ case 72:
+#line 611 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteU8(yyval.action, SWFACTION_CHR); ;}
+ break;
+
+ case 73:
+#line 615 "swf4compiler.y"
+ { yyval.action = yyvsp[-3].action;
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteU8(yyval.action, SWFACTION_STRINGCONCAT); ;}
+ break;
+
+ case 74:
+#line 620 "swf4compiler.y"
+ { yyval.action = yyvsp[-5].action;
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteU8(yyval.action, SWFACTION_SUBSTRING); ;}
+ break;
+
+ case 75:
+#line 626 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferWriteGetProperty(yyval.action, yyvsp[-1].str);
+ bufferWriteU8(yyval.action, SWFACTION_GETPROPERTY);
+ free(yyvsp[-1].str); ;}
+ break;
+
+ case 76:
+#line 635 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteBuffer(yyval.action, yyvsp[-1].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteBuffer(yyval.action, yyvsp[-1].action);
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteString(yyval.action, "1", 2);
+ bufferWriteU8(yyval.action, SWFACTION_ADD);
+ bufferWriteU8(yyval.action, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 77:
+#line 646 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteBuffer(yyval.action, yyvsp[-1].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteBuffer(yyval.action, yyvsp[-1].action);
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteString(yyval.action, "1", 2);
+ bufferWriteU8(yyval.action, SWFACTION_SUBTRACT);
+ bufferWriteU8(yyval.action, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 79:
+#line 662 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action; ;}
+ break;
+
+ case 80:
+#line 665 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 81:
+#line 670 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, "-", 2);
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 82:
+#line 676 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 83:
+#line 681 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 84:
+#line 687 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 85:
+#line 692 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteU8(yyval.action, SWFACTION_GETPROPERTY);
+ free(yyvsp[0].str);
+ free(yyvsp[-2].str); ;}
+ break;
+
+ case 86:
+#line 700 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteSetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteString(yyval.action, "1", 2);
+ bufferWriteU8(yyval.action, SWFACTION_ADD);
+ bufferWriteU8(yyval.action, SWFACTION_SETPROPERTY);
+ bufferWriteU8(yyval.action, SWFACTION_GETPROPERTY);
+ free(yyvsp[-2].str);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 87:
+#line 715 "swf4compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteU8(yyval.action, SWFACTION_DUP);
+ bufferWriteU8(yyval.action, SWFACTION_DUP);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteString(yyval.action, "1", 2);
+ bufferWriteU8(yyval.action, SWFACTION_ADD);
+ bufferWriteU8(yyval.action, SWFACTION_SETVARIABLE);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE); ;}
+ break;
+
+ case 88:
+#line 725 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteSetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteString(yyval.action, "1", 2);
+ bufferWriteU8(yyval.action, SWFACTION_ADD);
+ bufferWriteU8(yyval.action, SWFACTION_SETPROPERTY);
+ bufferWriteU8(yyval.action, SWFACTION_GETPROPERTY);
+ free(yyvsp[-2].str);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 89:
+#line 740 "swf4compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteU8(yyval.action, SWFACTION_DUP);
+ bufferWriteU8(yyval.action, SWFACTION_DUP);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteString(yyval.action, "1", 2);
+ bufferWriteU8(yyval.action, SWFACTION_SUBTRACT);
+ bufferWriteU8(yyval.action, SWFACTION_SETVARIABLE);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE); ;}
+ break;
+
+ case 90:
+#line 750 "swf4compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteString(yyvsp[0].action, "-1", 3);
+ bufferWriteU8(yyvsp[0].action, SWFACTION_MULTIPLY); ;}
+ break;
+
+ case 91:
+#line 755 "swf4compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteU8(yyvsp[0].action, SWFACTION_LOGICALNOT); ;}
+ break;
+
+ case 92:
+#line 759 "swf4compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_DUP);
+ bufferWriteU8(yyval.action, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 93:
+#line 765 "swf4compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_MULTIPLY); ;}
+ break;
+
+ case 94:
+#line 770 "swf4compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_DIVIDE); ;}
+ break;
+
+ case 95:
+#line 775 "swf4compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_ADD); ;}
+ break;
+
+ case 96:
+#line 780 "swf4compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_SUBTRACT); ;}
+ break;
+
+ case 97:
+#line 785 "swf4compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_STRINGCONCAT); ;}
+ break;
+
+ case 98:
+#line 790 "swf4compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_LESSTHAN); ;}
+ break;
+
+ case 99:
+#line 795 "swf4compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferConcat(yyval.action, yyvsp[-2].action);
+ bufferWriteU8(yyval.action, SWFACTION_LESSTHAN); ;}
+ break;
+
+ case 100:
+#line 800 "swf4compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferConcat(yyval.action, yyvsp[-2].action);
+ bufferWriteU8(yyval.action, SWFACTION_LESSTHAN);
+ bufferWriteU8(yyval.action, SWFACTION_LOGICALNOT); ;}
+ break;
+
+ case 101:
+#line 806 "swf4compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_LESSTHAN);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALNOT); ;}
+ break;
+
+ case 102:
+#line 811 "swf4compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_STRINGEQ);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALNOT); ;}
+ break;
+
+ case 103:
+#line 816 "swf4compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_STRINGEQ); ;}
+ break;
+
+ case 104:
+#line 820 "swf4compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_STRINGCOMPARE); ;}
+ break;
+
+ case 105:
+#line 824 "swf4compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_EQUAL); ;}
+ break;
+
+ case 106:
+#line 828 "swf4compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_EQUAL);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALNOT); ;}
+ break;
+
+ case 107:
+#line 833 "swf4compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALAND); ;}
+ break;
+
+ case 108:
+#line 837 "swf4compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALOR); ;}
+ break;
+
+ case 109:
+#line 841 "swf4compiler.y"
+ { bufferWriteU8(yyvsp[-4].action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyvsp[-4].action, 2);
+ bufferWriteS16(yyvsp[-4].action, bufferLength(yyvsp[0].action)+5);
+ bufferConcat(yyvsp[-4].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-4].action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyvsp[-4].action, 2);
+ bufferWriteS16(yyvsp[-4].action, bufferLength(yyvsp[-2].action));
+ bufferConcat(yyvsp[-4].action, yyvsp[-2].action); ;}
+ break;
+
+ case 111:
+#line 855 "swf4compiler.y"
+ { yyval.str = yyvsp[-2].str;
+ yyval.str = stringConcat(yyval.str, strdup(":"));
+ yyval.str = stringConcat(yyval.str, yyvsp[0].str); ;}
+ break;
+
+ case 112:
+#line 862 "swf4compiler.y"
+ { yyval.str = strdup(""); ;}
+ break;
+
+ case 113:
+#line 865 "swf4compiler.y"
+ { yyval.str = strdup(""); ;}
+ break;
+
+ case 114:
+#line 868 "swf4compiler.y"
+ { yyval.str = strdup("/"); ;}
+ break;
+
+ case 115:
+#line 871 "swf4compiler.y"
+ { yyval.str = strdup(".."); ;}
+ break;
+
+ case 116:
+#line 874 "swf4compiler.y"
+ { yyval.str = yyvsp[0].str; ;}
+ break;
+
+ case 117:
+#line 877 "swf4compiler.y"
+ { yyval.str = yyvsp[0].str; ;}
+ break;
+
+ case 118:
+#line 882 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 119:
+#line 887 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 120:
+#line 891 "swf4compiler.y"
+ { yyval.action = yyvsp[-1].action; ;}
+ break;
+
+ case 123:
+#line 900 "swf4compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteBuffer(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteString(yyval.action, "1", 2);
+ bufferWriteU8(yyval.action, SWFACTION_ADD);
+ bufferWriteU8(yyval.action, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 124:
+#line 908 "swf4compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteBuffer(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteString(yyval.action, "1", 2);
+ bufferWriteU8(yyval.action, SWFACTION_SUBTRACT);
+ bufferWriteU8(yyval.action, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 125:
+#line 916 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteU8(yyval.action, SWFACTION_GETPROPERTY);
+ bufferWriteString(yyval.action, "1", 2);
+ bufferWriteU8(yyval.action, SWFACTION_ADD);
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteSetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteU8(yyval.action, SWFACTION_SETPROPERTY);
+ free(yyvsp[-2].str);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 126:
+#line 929 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteU8(yyval.action, SWFACTION_GETPROPERTY);
+ bufferWriteString(yyval.action, "1", 2);
+ bufferWriteU8(yyval.action, SWFACTION_SUBTRACT);
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferWriteSetProperty(yyval.action, yyvsp[0].str);
+ bufferWriteU8(yyval.action, SWFACTION_SETPROPERTY);
+ free(yyvsp[-2].str);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 127:
+#line 942 "swf4compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 128:
+#line 946 "swf4compiler.y"
+ { bufferWriteBuffer(yyvsp[-2].action, yyvsp[-2].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_GETVARIABLE);
+ bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_MULTIPLY);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 129:
+#line 953 "swf4compiler.y"
+ { bufferWriteBuffer(yyvsp[-2].action, yyvsp[-2].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_GETVARIABLE);
+ bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_DIVIDE);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 130:
+#line 960 "swf4compiler.y"
+ { bufferWriteBuffer(yyvsp[-2].action, yyvsp[-2].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_GETVARIABLE);
+ bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_ADD);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 131:
+#line 967 "swf4compiler.y"
+ { bufferWriteBuffer(yyvsp[-2].action, yyvsp[-2].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_GETVARIABLE);
+ bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_SUBTRACT);
+ bufferWriteU8(yyvsp[-2].action, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 132:
+#line 974 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-4].str, strlen(yyvsp[-4].str)+1);
+ bufferWriteSetProperty(yyval.action, yyvsp[-2].str);
+ bufferConcat(yyval.action,yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_SETPROPERTY);
+ free(yyvsp[-4].str);
+ free(yyvsp[-2].str); ;}
+ break;
+
+ case 133:
+#line 983 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-4].str, strlen(yyvsp[-4].str)+1);
+ bufferWriteSetProperty(yyval.action, yyvsp[-2].str);
+ bufferWriteString(yyval.action, yyvsp[-4].str, strlen(yyvsp[-4].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[-2].str);
+ bufferWriteU8(yyval.action, SWFACTION_GETPROPERTY);
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_MULTIPLY);
+ bufferWriteU8(yyval.action, SWFACTION_SETPROPERTY);
+ free(yyvsp[-4].str);
+ free(yyvsp[-2].str); ;}
+ break;
+
+ case 134:
+#line 996 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-4].str, strlen(yyvsp[-4].str)+1);
+ bufferWriteSetProperty(yyval.action, yyvsp[-2].str);
+ bufferWriteString(yyval.action, yyvsp[-4].str, strlen(yyvsp[-4].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[-2].str);
+ bufferWriteU8(yyval.action, SWFACTION_GETPROPERTY);
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_DIVIDE);
+ bufferWriteU8(yyval.action, SWFACTION_SETPROPERTY);
+ free(yyvsp[-4].str);
+ free(yyvsp[-2].str); ;}
+ break;
+
+ case 135:
+#line 1009 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-4].str, strlen(yyvsp[-4].str)+1);
+ bufferWriteSetProperty(yyval.action, yyvsp[-2].str);
+ bufferWriteString(yyval.action, yyvsp[-4].str, strlen(yyvsp[-4].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[-2].str);
+ bufferWriteU8(yyval.action, SWFACTION_GETPROPERTY);
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_ADD);
+ bufferWriteU8(yyval.action, SWFACTION_SETPROPERTY);
+ free(yyvsp[-4].str);
+ free(yyvsp[-2].str); ;}
+ break;
+
+ case 136:
+#line 1022 "swf4compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-4].str, strlen(yyvsp[-4].str)+1);
+ bufferWriteSetProperty(yyval.action, yyvsp[-2].str);
+ bufferWriteString(yyval.action, yyvsp[-4].str, strlen(yyvsp[-4].str)+1);
+ bufferWriteGetProperty(yyval.action, yyvsp[-2].str);
+ bufferWriteU8(yyval.action, SWFACTION_GETPROPERTY);
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteU8(yyval.action, SWFACTION_SUBTRACT);
+ bufferWriteU8(yyval.action, SWFACTION_SETPROPERTY);
+ free(yyvsp[-4].str);
+ free(yyvsp[-2].str); ;}
+ break;
+
+
+ }
+
+/* Line 999 of yacc.c. */
+#line 2691 "swf4compiler.tab.c"
+
+ yyvsp -= yylen;
+ yyssp -= yylen;
+
+
+ YY_STACK_PRINT (yyss, yyssp);
+
+ *++yyvsp = yyval;
+
+
+ /* Now `shift' the result of the reduction. Determine what state
+ that goes to, based on the state we popped back to and the rule
+ number reduced by. */
+
+ yyn = yyr1[yyn];
+
+ yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
+ if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
+ yystate = yytable[yystate];
+ else
+ yystate = yydefgoto[yyn - YYNTOKENS];
+
+ goto yynewstate;
+
+
+/*------------------------------------.
+| yyerrlab -- here on detecting error |
+`------------------------------------*/
+yyerrlab:
+ /* If not already recovering from an error, report this error. */
+ if (!yyerrstatus)
+ {
+ ++yynerrs;
+#if YYERROR_VERBOSE
+ yyn = yypact[yystate];
+
+ if (YYPACT_NINF < yyn && yyn < YYLAST)
+ {
+ YYSIZE_T yysize = 0;
+ int yytype = YYTRANSLATE (yychar);
+ char *yymsg;
+ int yyx, yycount;
+
+ yycount = 0;
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. */
+ for (yyx = yyn < 0 ? -yyn : 0;
+ yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+ yysize += yystrlen (yytname[yyx]) + 15, yycount++;
+ yysize += yystrlen ("syntax error, unexpected ") + 1;
+ yysize += yystrlen (yytname[yytype]);
+ yymsg = (char *) YYSTACK_ALLOC (yysize);
+ if (yymsg != 0)
+ {
+ char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
+ yyp = yystpcpy (yyp, yytname[yytype]);
+
+ if (yycount < 5)
+ {
+ yycount = 0;
+ for (yyx = yyn < 0 ? -yyn : 0;
+ yyx < (int) (sizeof (yytname) / sizeof (char *));
+ yyx++)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+ {
+ const char *yyq = ! yycount ? ", expecting " : " or ";
+ yyp = yystpcpy (yyp, yyq);
+ yyp = yystpcpy (yyp, yytname[yyx]);
+ yycount++;
+ }
+ }
+ yyerror (yymsg);
+ YYSTACK_FREE (yymsg);
+ }
+ else
+ yyerror ("syntax error; also virtual memory exhausted");
+ }
+ else
+#endif /* YYERROR_VERBOSE */
+ yyerror ("syntax error");
+ }
+
+
+
+ if (yyerrstatus == 3)
+ {
+ /* If just tried and failed to reuse lookahead token after an
+ error, discard it. */
+
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ {
+ /* Pop the error token. */
+ YYPOPSTACK;
+ /* Pop the rest of the stack. */
+ while (yyss < yyssp)
+ {
+ YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
+ yydestruct (yystos[*yyssp], yyvsp);
+ YYPOPSTACK;
+ }
+ YYABORT;
+ }
+
+ YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
+ yydestruct (yytoken, &yylval);
+ yychar = YYEMPTY;
+
+ }
+
+ /* Else will try to reuse lookahead token after shifting the error
+ token. */
+ goto yyerrlab1;
+
+
+/*----------------------------------------------------.
+| yyerrlab1 -- error raised explicitly by an action. |
+`----------------------------------------------------*/
+yyerrlab1:
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
+
+ for (;;)
+ {
+ yyn = yypact[yystate];
+ if (yyn != YYPACT_NINF)
+ {
+ yyn += YYTERROR;
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
+ {
+ yyn = yytable[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
+
+ /* Pop the current state because it cannot handle the error token. */
+ if (yyssp == yyss)
+ YYABORT;
+
+ YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
+ yydestruct (yystos[yystate], yyvsp);
+ yyvsp--;
+ yystate = *--yyssp;
+
+ YY_STACK_PRINT (yyss, yyssp);
+ }
+
+ if (yyn == YYFINAL)
+ YYACCEPT;
+
+ YYDPRINTF ((stderr, "Shifting error token, "));
+
+ *++yyvsp = yylval;
+
+
+ yystate = yyn;
+ goto yynewstate;
+
+
+/*-------------------------------------.
+| yyacceptlab -- YYACCEPT comes here. |
+`-------------------------------------*/
+yyacceptlab:
+ yyresult = 0;
+ goto yyreturn;
+
+/*-----------------------------------.
+| yyabortlab -- YYABORT comes here. |
+`-----------------------------------*/
+yyabortlab:
+ yyresult = 1;
+ goto yyreturn;
+
+#ifndef yyoverflow
+/*----------------------------------------------.
+| yyoverflowlab -- parser overflow comes here. |
+`----------------------------------------------*/
+yyoverflowlab:
+ yyerror ("parser stack overflow");
+ yyresult = 2;
+ /* Fall through. */
+#endif
+
+yyreturn:
+#ifndef yyoverflow
+ if (yyss != yyssa)
+ YYSTACK_FREE (yyss);
+#endif
+ return yyresult;
+}
+
+
+#line 1039 "swf4compiler.y"
+
+
diff --git a/lib/action/swf4compiler.tab.h b/lib/action/swf4compiler.tab.h
new file mode 100644
index 00000000..0ee0a394
--- /dev/null
+++ b/lib/action/swf4compiler.tab.h
@@ -0,0 +1,186 @@
+/* A Bison parser, made by GNU Bison 1.875. */
+
+/* Skeleton parser for Yacc-like parsing with Bison,
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/* As a special exception, when this file is copied by Bison into a
+ Bison output file, you may use that output file without restriction.
+ This special exception was added by the Free Software Foundation
+ in version 1.24 of Bison. */
+
+/* Tokens. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {
+ BREAK = 258,
+ FOR = 259,
+ CONTINUE = 260,
+ IF = 261,
+ ELSE = 262,
+ DO = 263,
+ WHILE = 264,
+ THIS = 265,
+ EVAL = 266,
+ TIME = 267,
+ RANDOM = 268,
+ LENGTH = 269,
+ INT = 270,
+ CONCAT = 271,
+ DUPLICATECLIP = 272,
+ REMOVECLIP = 273,
+ TRACE = 274,
+ STARTDRAG = 275,
+ STOPDRAG = 276,
+ ORD = 277,
+ CHR = 278,
+ CALLFRAME = 279,
+ GETURL = 280,
+ GETURL1 = 281,
+ LOADMOVIE = 282,
+ LOADVARIABLES = 283,
+ POSTURL = 284,
+ SUBSTR = 285,
+ GETPROPERTY = 286,
+ NEXTFRAME = 287,
+ PREVFRAME = 288,
+ PLAY = 289,
+ STOP = 290,
+ TOGGLEQUALITY = 291,
+ STOPSOUNDS = 292,
+ GOTOFRAME = 293,
+ GOTOANDPLAY = 294,
+ FRAMELOADED = 295,
+ SETTARGET = 296,
+ TELLTARGET = 297,
+ STRING = 298,
+ NUMBER = 299,
+ IDENTIFIER = 300,
+ PATH = 301,
+ GETURL_METHOD = 302,
+ EQ = 303,
+ LE = 304,
+ GE = 305,
+ NE = 306,
+ LAN = 307,
+ LOR = 308,
+ INC = 309,
+ DEC = 310,
+ IEQ = 311,
+ DEQ = 312,
+ MEQ = 313,
+ SEQ = 314,
+ STREQ = 315,
+ STRNE = 316,
+ STRCMP = 317,
+ PARENT = 318,
+ END = 319,
+ UMINUS = 320,
+ POSTFIX = 321,
+ NEGATE = 322
+ };
+#endif
+#define BREAK 258
+#define FOR 259
+#define CONTINUE 260
+#define IF 261
+#define ELSE 262
+#define DO 263
+#define WHILE 264
+#define THIS 265
+#define EVAL 266
+#define TIME 267
+#define RANDOM 268
+#define LENGTH 269
+#define INT 270
+#define CONCAT 271
+#define DUPLICATECLIP 272
+#define REMOVECLIP 273
+#define TRACE 274
+#define STARTDRAG 275
+#define STOPDRAG 276
+#define ORD 277
+#define CHR 278
+#define CALLFRAME 279
+#define GETURL 280
+#define GETURL1 281
+#define LOADMOVIE 282
+#define LOADVARIABLES 283
+#define POSTURL 284
+#define SUBSTR 285
+#define GETPROPERTY 286
+#define NEXTFRAME 287
+#define PREVFRAME 288
+#define PLAY 289
+#define STOP 290
+#define TOGGLEQUALITY 291
+#define STOPSOUNDS 292
+#define GOTOFRAME 293
+#define GOTOANDPLAY 294
+#define FRAMELOADED 295
+#define SETTARGET 296
+#define TELLTARGET 297
+#define STRING 298
+#define NUMBER 299
+#define IDENTIFIER 300
+#define PATH 301
+#define GETURL_METHOD 302
+#define EQ 303
+#define LE 304
+#define GE 305
+#define NE 306
+#define LAN 307
+#define LOR 308
+#define INC 309
+#define DEC 310
+#define IEQ 311
+#define DEQ 312
+#define MEQ 313
+#define SEQ 314
+#define STREQ 315
+#define STRNE 316
+#define STRCMP 317
+#define PARENT 318
+#define END 319
+#define UMINUS 320
+#define POSTFIX 321
+#define NEGATE 322
+
+
+
+
+#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
+#line 17 "swf4compiler.y"
+typedef union YYSTYPE {
+ Buffer action;
+ char *str;
+ SWFActionFunction function;
+ SWFGetUrl2Method getURLMethod;
+} YYSTYPE;
+/* Line 1240 of yacc.c. */
+#line 177 "swf4compiler.tab.h"
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
+#endif
+
+extern YYSTYPE swf4lval;
+
+
+
diff --git a/lib/action/swf5compiler.tab.c b/lib/action/swf5compiler.tab.c
new file mode 100644
index 00000000..c1cc0077
--- /dev/null
+++ b/lib/action/swf5compiler.tab.c
@@ -0,0 +1,5337 @@
+/* A Bison parser, made by GNU Bison 1.875. */
+
+/* Skeleton parser for Yacc-like parsing with Bison,
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/* As a special exception, when this file is copied by Bison into a
+ Bison output file, you may use that output file without restriction.
+ This special exception was added by the Free Software Foundation
+ in version 1.24 of Bison. */
+
+/* Written by Richard Stallman by simplifying the original so called
+ ``semantic'' parser. */
+
+/* All symbols defined below should begin with yy or YY, to avoid
+ infringing on user name space. This should be done even for local
+ variables, as they might otherwise be expanded by user macros.
+ There are some unavoidable exceptions within include files to
+ define necessary library symbols; they are noted "INFRINGES ON
+ USER NAME SPACE" below. */
+
+/* Identify Bison output. */
+#define YYBISON 1
+
+/* Skeleton name. */
+#define YYSKELETON_NAME "yacc.c"
+
+/* Pure parsers. */
+#define YYPURE 0
+
+/* Using locations. */
+#define YYLSP_NEEDED 0
+
+/* If NAME_PREFIX is specified substitute the variables and functions
+ names. */
+#define yyparse swf5parse
+#define yylex swf5lex
+#define yyerror swf5error
+#define yylval swf5lval
+#define yychar swf5char
+#define yydebug swf5debug
+#define yynerrs swf5nerrs
+
+
+/* Tokens. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {
+ BREAK = 258,
+ CONTINUE = 259,
+ FUNCTION = 260,
+ ELSE = 261,
+ SWITCH = 262,
+ CASE = 263,
+ DEFAULT = 264,
+ FOR = 265,
+ IN = 266,
+ IF = 267,
+ WHILE = 268,
+ DO = 269,
+ VAR = 270,
+ NEW = 271,
+ DELETE = 272,
+ RETURN = 273,
+ END = 274,
+ WITH = 275,
+ ASM = 276,
+ EVAL = 277,
+ RANDOM = 278,
+ GETTIMER = 279,
+ LENGTH = 280,
+ CONCAT = 281,
+ SUBSTR = 282,
+ TRACE = 283,
+ INT = 284,
+ ORD = 285,
+ CHR = 286,
+ GETURL = 287,
+ GETURL1 = 288,
+ NEXTFRAME = 289,
+ PREVFRAME = 290,
+ PLAY = 291,
+ STOP = 292,
+ TOGGLEQUALITY = 293,
+ STOPSOUNDS = 294,
+ DUP = 295,
+ SWAP = 296,
+ POP = 297,
+ PUSH = 298,
+ SETREGISTER = 299,
+ CALLFUNCTION = 300,
+ CALLMETHOD = 301,
+ AND = 302,
+ OR = 303,
+ XOR = 304,
+ MODULO = 305,
+ ADD = 306,
+ LESSTHAN = 307,
+ EQUALS = 308,
+ INC = 309,
+ DEC = 310,
+ TYPEOF = 311,
+ INSTANCEOF = 312,
+ ENUMERATE = 313,
+ INITOBJECT = 314,
+ INITARRAY = 315,
+ GETMEMBER = 316,
+ SETMEMBER = 317,
+ SHIFTLEFT = 318,
+ SHIFTRIGHT = 319,
+ SHIFTRIGHT2 = 320,
+ VAREQUALS = 321,
+ OLDADD = 322,
+ SUBTRACT = 323,
+ MULTIPLY = 324,
+ DIVIDE = 325,
+ OLDEQUALS = 326,
+ OLDLESSTHAN = 327,
+ LOGICALAND = 328,
+ LOGICALOR = 329,
+ NOT = 330,
+ STRINGEQ = 331,
+ STRINGLENGTH = 332,
+ SUBSTRING = 333,
+ GETVARIABLE = 334,
+ SETVARIABLE = 335,
+ SETTARGETEXPRESSION = 336,
+ DUPLICATEMOVIECLIP = 337,
+ REMOVEMOVIECLIP = 338,
+ STRINGLESSTHAN = 339,
+ MBLENGTH = 340,
+ MBSUBSTRING = 341,
+ MBORD = 342,
+ MBCHR = 343,
+ BRANCHALWAYS = 344,
+ BRANCHIFTRUE = 345,
+ GETURL2 = 346,
+ POST = 347,
+ GET = 348,
+ LOADVARIABLES = 349,
+ LOADMOVIE = 350,
+ LOADVARIABLESNUM = 351,
+ LOADMOVIENUM = 352,
+ CALLFRAME = 353,
+ STARTDRAG = 354,
+ STOPDRAG = 355,
+ GOTOFRAME = 356,
+ SETTARGET = 357,
+ NULLVAL = 358,
+ INTEGER = 359,
+ DOUBLE = 360,
+ BOOLEAN = 361,
+ REGISTER = 362,
+ STRING = 363,
+ IDENTIFIER = 364,
+ EQ = 365,
+ LE = 366,
+ GE = 367,
+ NE = 368,
+ LAN = 369,
+ LOR = 370,
+ INCR = 371,
+ DECR = 372,
+ IEQ = 373,
+ DEQ = 374,
+ MEQ = 375,
+ SEQ = 376,
+ REQ = 377,
+ AEQ = 378,
+ OEQ = 379,
+ SHL = 380,
+ SHR = 381,
+ SHR2 = 382,
+ SHLEQ = 383,
+ SHREQ = 384,
+ SHR2EQ = 385,
+ NOELSE = 386,
+ UMINUS = 388,
+ POSTFIX = 389
+ };
+#endif
+#define BREAK 258
+#define CONTINUE 259
+#define FUNCTION 260
+#define ELSE 261
+#define SWITCH 262
+#define CASE 263
+#define DEFAULT 264
+#define FOR 265
+#define IN 266
+#define IF 267
+#define WHILE 268
+#define DO 269
+#define VAR 270
+#define NEW 271
+#define DELETE 272
+#define RETURN 273
+#define END 274
+#define WITH 275
+#define ASM 276
+#define EVAL 277
+#define RANDOM 278
+#define GETTIMER 279
+#define LENGTH 280
+#define CONCAT 281
+#define SUBSTR 282
+#define TRACE 283
+#define INT 284
+#define ORD 285
+#define CHR 286
+#define GETURL 287
+#define GETURL1 288
+#define NEXTFRAME 289
+#define PREVFRAME 290
+#define PLAY 291
+#define STOP 292
+#define TOGGLEQUALITY 293
+#define STOPSOUNDS 294
+#define DUP 295
+#define SWAP 296
+#define POP 297
+#define PUSH 298
+#define SETREGISTER 299
+#define CALLFUNCTION 300
+#define CALLMETHOD 301
+#define AND 302
+#define OR 303
+#define XOR 304
+#define MODULO 305
+#define ADD 306
+#define LESSTHAN 307
+#define EQUALS 308
+#define INC 309
+#define DEC 310
+#define TYPEOF 311
+#define INSTANCEOF 312
+#define ENUMERATE 313
+#define INITOBJECT 314
+#define INITARRAY 315
+#define GETMEMBER 316
+#define SETMEMBER 317
+#define SHIFTLEFT 318
+#define SHIFTRIGHT 319
+#define SHIFTRIGHT2 320
+#define VAREQUALS 321
+#define OLDADD 322
+#define SUBTRACT 323
+#define MULTIPLY 324
+#define DIVIDE 325
+#define OLDEQUALS 326
+#define OLDLESSTHAN 327
+#define LOGICALAND 328
+#define LOGICALOR 329
+#define NOT 330
+#define STRINGEQ 331
+#define STRINGLENGTH 332
+#define SUBSTRING 333
+#define GETVARIABLE 334
+#define SETVARIABLE 335
+#define SETTARGETEXPRESSION 336
+#define DUPLICATEMOVIECLIP 337
+#define REMOVEMOVIECLIP 338
+#define STRINGLESSTHAN 339
+#define MBLENGTH 340
+#define MBSUBSTRING 341
+#define MBORD 342
+#define MBCHR 343
+#define BRANCHALWAYS 344
+#define BRANCHIFTRUE 345
+#define GETURL2 346
+#define POST 347
+#define GET 348
+#define LOADVARIABLES 349
+#define LOADMOVIE 350
+#define LOADVARIABLESNUM 351
+#define LOADMOVIENUM 352
+#define CALLFRAME 353
+#define STARTDRAG 354
+#define STOPDRAG 355
+#define GOTOFRAME 356
+#define SETTARGET 357
+#define NULLVAL 358
+#define INTEGER 359
+#define DOUBLE 360
+#define BOOLEAN 361
+#define REGISTER 362
+#define STRING 363
+#define IDENTIFIER 364
+#define EQ 365
+#define LE 366
+#define GE 367
+#define NE 368
+#define LAN 369
+#define LOR 370
+#define INCR 371
+#define DECR 372
+#define IEQ 373
+#define DEQ 374
+#define MEQ 375
+#define SEQ 376
+#define REQ 377
+#define AEQ 378
+#define OEQ 379
+#define SHL 380
+#define SHR 381
+#define SHR2 382
+#define SHLEQ 383
+#define SHREQ 384
+#define SHR2EQ 385
+#define NOELSE 386
+#define UMINUS 388
+#define POSTFIX 389
+
+
+
+
+/* Copy the first part of user declarations. */
+#line 5 "swf5compiler.y"
+
+
+#include <time.h>
+#include <string.h>
+#include <stdlib.h>
+#include "compile.h"
+#include "action.h"
+#include "assembler.h"
+
+#define YYPARSE_PARAM buffer
+
+Buffer bf, bc;
+
+
+
+/* Enabling traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 0
+#endif
+
+/* Enabling verbose error messages. */
+#ifdef YYERROR_VERBOSE
+# undef YYERROR_VERBOSE
+# define YYERROR_VERBOSE 1
+#else
+# define YYERROR_VERBOSE 0
+#endif
+
+#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
+#line 21 "swf5compiler.y"
+typedef union YYSTYPE {
+ Buffer action;
+ char *str;
+ SWFGetUrl2Method getURLMethod;
+ int op;
+ int intVal;
+ int len;
+ double doubleVal;
+
+ struct
+ {
+ Buffer buffer;
+ int count;
+ } exprlist;
+ struct switchcase switchcase;
+ struct switchcases switchcases;
+ struct
+ {
+ Buffer obj, ident, memexpr;
+ } lval;
+} YYSTYPE;
+/* Line 191 of yacc.c. */
+#line 387 "swf5compiler.tab.c"
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
+#endif
+
+
+
+/* Copy the second part of user declarations. */
+
+
+/* Line 214 of yacc.c. */
+#line 399 "swf5compiler.tab.c"
+
+#if ! defined (yyoverflow) || YYERROR_VERBOSE
+
+/* The parser invokes alloca or malloc; define the necessary symbols. */
+
+# if YYSTACK_USE_ALLOCA
+# define YYSTACK_ALLOC alloca
+# else
+# ifndef YYSTACK_USE_ALLOCA
+# if defined (alloca) || defined (_ALLOCA_H)
+# define YYSTACK_ALLOC alloca
+# else
+# ifdef __GNUC__
+# define YYSTACK_ALLOC __builtin_alloca
+# endif
+# endif
+# endif
+# endif
+
+# ifdef YYSTACK_ALLOC
+ /* Pacify GCC's `empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
+# else
+# if defined (__STDC__) || defined (__cplusplus)
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# endif
+# define YYSTACK_ALLOC malloc
+# define YYSTACK_FREE free
+# endif
+#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
+
+
+#if (! defined (yyoverflow) \
+ && (! defined (__cplusplus) \
+ || (YYSTYPE_IS_TRIVIAL)))
+
+/* A type that is properly aligned for any stack member. */
+union yyalloc
+{
+ short yyss;
+ YYSTYPE yyvs;
+ };
+
+/* The size of the maximum gap between one aligned stack and the next. */
+# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
+
+/* The size of an array large to enough to hold all stacks, each with
+ N elements. */
+# define YYSTACK_BYTES(N) \
+ ((N) * (sizeof (short) + sizeof (YYSTYPE)) \
+ + YYSTACK_GAP_MAXIMUM)
+
+/* Copy COUNT objects from FROM to TO. The source and destination do
+ not overlap. */
+# ifndef YYCOPY
+# if 1 < __GNUC__
+# define YYCOPY(To, From, Count) \
+ __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
+# else
+# define YYCOPY(To, From, Count) \
+ do \
+ { \
+ register YYSIZE_T yyi; \
+ for (yyi = 0; yyi < (Count); yyi++) \
+ (To)[yyi] = (From)[yyi]; \
+ } \
+ while (0)
+# endif
+# endif
+
+/* Relocate STACK from its old location to the new one. The
+ local variables YYSIZE and YYSTACKSIZE give the old and new number of
+ elements in the stack, and YYPTR gives the new location of the
+ stack. Advance YYPTR to a properly aligned location for the next
+ stack. */
+# define YYSTACK_RELOCATE(Stack) \
+ do \
+ { \
+ YYSIZE_T yynewbytes; \
+ YYCOPY (&yyptr->Stack, Stack, yysize); \
+ Stack = &yyptr->Stack; \
+ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / sizeof (*yyptr); \
+ } \
+ while (0)
+
+#endif
+
+#if defined (__STDC__) || defined (__cplusplus)
+ typedef signed char yysigned_char;
+#else
+ typedef short yysigned_char;
+#endif
+
+/* YYFINAL -- State number of the termination state. */
+#define YYFINAL 3
+/* YYLAST -- Last index in YYTABLE. */
+#define YYLAST 5253
+
+/* YYNTOKENS -- Number of terminals. */
+#define YYNTOKENS 159
+/* YYNNTS -- Number of nonterminals. */
+#define YYNNTS 57
+/* YYNRULES -- Number of rules. */
+#define YYNRULES 348
+/* YYNRULES -- Number of states. */
+#define YYNSTATES 616
+
+/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
+#define YYUNDEFTOK 2
+#define YYMAXUTOK 389
+
+#define YYTRANSLATE(YYX) \
+ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+
+/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
+static const unsigned 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, 147, 2, 2, 2, 146, 139, 2,
+ 157, 158, 144, 142, 132, 143, 151, 145, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 136, 156,
+ 137, 133, 138, 135, 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, 152, 2, 153, 141, 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, 154, 140, 155, 148, 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, 2, 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,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
+ 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
+ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
+ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
+ 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
+ 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
+ 125, 126, 127, 128, 129, 130, 131, 134, 149, 150
+};
+
+#if YYDEBUG
+/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
+ YYRHS. */
+static const unsigned short yyprhs[] =
+{
+ 0, 0, 3, 4, 7, 8, 10, 13, 15, 17,
+ 19, 22, 25, 27, 31, 33, 36, 38, 40, 42,
+ 44, 46, 48, 50, 58, 61, 65, 67, 71, 79,
+ 85, 86, 88, 90, 98, 99, 102, 109, 114, 118,
+ 120, 122, 124, 126, 128, 130, 132, 134, 136, 138,
+ 140, 142, 144, 146, 148, 150, 152, 154, 156, 158,
+ 160, 162, 164, 166, 168, 170, 172, 174, 176, 178,
+ 180, 182, 184, 186, 188, 190, 192, 194, 196, 198,
+ 200, 202, 204, 206, 208, 210, 212, 214, 216, 218,
+ 220, 222, 224, 226, 228, 230, 232, 234, 236, 238,
+ 240, 242, 244, 246, 248, 250, 252, 254, 256, 258,
+ 260, 262, 264, 266, 268, 270, 272, 274, 275, 277,
+ 281, 283, 290, 292, 296, 301, 303, 305, 307, 309,
+ 310, 311, 317, 324, 335, 344, 354, 355, 357, 360,
+ 363, 364, 367, 370, 373, 375, 377, 382, 385, 390,
+ 396, 401, 409, 417, 425, 433, 441, 446, 453, 468,
+ 472, 481, 486, 493, 497, 501, 505, 509, 513, 517,
+ 522, 527, 532, 537, 542, 547, 552, 556, 561, 566,
+ 571, 576, 581, 588, 597, 602, 603, 605, 609, 615,
+ 622, 630, 634, 636, 640, 642, 644, 646, 648, 650,
+ 652, 654, 656, 658, 660, 662, 664, 666, 668, 670,
+ 672, 674, 678, 683, 685, 688, 691, 694, 698, 702,
+ 706, 710, 714, 718, 722, 726, 730, 734, 738, 742,
+ 746, 750, 754, 758, 762, 766, 770, 776, 780, 784,
+ 786, 789, 795, 799, 801, 805, 807, 809, 811, 813,
+ 816, 819, 823, 826, 828, 831, 833, 835, 837, 839,
+ 841, 845, 849, 851, 852, 858, 861, 863, 865, 867,
+ 870, 873, 877, 881, 883, 886, 887, 892, 894, 896,
+ 898, 900, 902, 904, 906, 910, 911, 915, 917, 920,
+ 922, 924, 926, 928, 930, 932, 934, 936, 938, 940,
+ 942, 944, 946, 948, 950, 952, 954, 956, 958, 960,
+ 962, 964, 966, 968, 970, 972, 974, 976, 978, 980,
+ 982, 984, 986, 988, 990, 992, 994, 996, 998, 1000,
+ 1002, 1004, 1006, 1008, 1010, 1012, 1014, 1016, 1018, 1020,
+ 1022, 1024, 1026, 1028, 1030, 1032, 1034, 1036, 1039
+};
+
+/* YYRHS -- A `-1'-separated list of the rules' RHS. */
+static const short yyrhs[] =
+{
+ 160, 0, -1, -1, 161, 162, -1, -1, 163, -1,
+ 162, 163, -1, 166, -1, 179, -1, 166, -1, 164,
+ 166, -1, 154, 155, -1, 165, -1, 154, 164, 155,
+ -1, 156, -1, 207, 156, -1, 170, -1, 185, -1,
+ 187, -1, 188, -1, 173, -1, 168, -1, 167, -1,
+ 20, 157, 202, 158, 154, 164, 155, -1, 18, 156,
+ -1, 18, 203, 156, -1, 207, -1, 169, 132, 207,
+ -1, 12, 157, 202, 158, 166, 6, 166, -1, 12,
+ 157, 202, 158, 166, -1, -1, 202, -1, 7, -1,
+ 172, 157, 202, 158, 154, 174, 155, -1, -1, 174,
+ 175, -1, 8, 202, 136, 164, 3, 156, -1, 8,
+ 202, 136, 164, -1, 9, 136, 164, -1, 109, -1,
+ 16, -1, 17, -1, 23, -1, 24, -1, 25, -1,
+ 26, -1, 27, -1, 28, -1, 29, -1, 30, -1,
+ 31, -1, 32, -1, 33, -1, 34, -1, 35, -1,
+ 36, -1, 37, -1, 38, -1, 39, -1, 40, -1,
+ 41, -1, 42, -1, 43, -1, 44, -1, 45, -1,
+ 46, -1, 47, -1, 48, -1, 49, -1, 50, -1,
+ 51, -1, 52, -1, 53, -1, 54, -1, 55, -1,
+ 56, -1, 57, -1, 58, -1, 59, -1, 60, -1,
+ 61, -1, 62, -1, 63, -1, 64, -1, 65, -1,
+ 66, -1, 67, -1, 68, -1, 69, -1, 70, -1,
+ 71, -1, 72, -1, 73, -1, 74, -1, 75, -1,
+ 76, -1, 77, -1, 78, -1, 79, -1, 80, -1,
+ 81, -1, 82, -1, 83, -1, 99, -1, 100, -1,
+ 84, -1, 85, -1, 86, -1, 87, -1, 88, -1,
+ 89, -1, 90, -1, 91, -1, 92, -1, 93, -1,
+ 94, -1, 95, -1, -1, 176, -1, 177, 132, 176,
+ -1, 5, -1, 178, 176, 157, 177, 158, 166, -1,
+ 176, -1, 202, 151, 176, -1, 202, 152, 202, 153,
+ -1, 192, -1, 195, -1, 13, -1, 14, -1, -1,
+ -1, 181, 157, 202, 158, 166, -1, 182, 166, 13,
+ 157, 202, 158, -1, 10, 157, 186, 156, 171, 156,
+ 186, 158, 183, 166, -1, 10, 157, 176, 11, 180,
+ 158, 184, 166, -1, 10, 157, 15, 176, 11, 180,
+ 158, 184, 166, -1, -1, 169, -1, 4, 156, -1,
+ 3, 156, -1, -1, 132, 93, -1, 132, 92, -1,
+ 132, 108, -1, 104, -1, 202, -1, 109, 157, 193,
+ 158, -1, 17, 109, -1, 17, 200, 151, 109, -1,
+ 17, 200, 152, 202, 153, -1, 28, 157, 203, 158,
+ -1, 32, 157, 202, 132, 202, 189, 158, -1, 94,
+ 157, 202, 132, 202, 189, 158, -1, 96, 157, 202,
+ 132, 190, 189, 158, -1, 95, 157, 202, 132, 202,
+ 189, 158, -1, 97, 157, 202, 132, 190, 189, 158,
+ -1, 98, 157, 202, 158, -1, 99, 157, 202, 132,
+ 202, 158, -1, 99, 157, 202, 132, 202, 132, 202,
+ 132, 202, 132, 202, 132, 202, 158, -1, 100, 157,
+ 158, -1, 82, 157, 202, 132, 202, 132, 202, 158,
+ -1, 83, 157, 202, 158, -1, 33, 157, 108, 132,
+ 108, 158, -1, 34, 157, 158, -1, 35, 157, 158,
+ -1, 36, 157, 158, -1, 37, 157, 158, -1, 39,
+ 157, 158, -1, 38, 157, 158, -1, 101, 157, 104,
+ 158, -1, 101, 157, 108, 158, -1, 101, 157, 202,
+ 158, -1, 102, 157, 108, 158, -1, 102, 157, 202,
+ 158, -1, 109, 157, 193, 158, -1, 22, 157, 202,
+ 158, -1, 24, 157, 158, -1, 23, 157, 202, 158,
+ -1, 25, 157, 203, 158, -1, 29, 157, 202, 158,
+ -1, 30, 157, 202, 158, -1, 31, 157, 202, 158,
+ -1, 26, 157, 202, 132, 202, 158, -1, 78, 157,
+ 202, 132, 202, 132, 202, 158, -1, 56, 157, 203,
+ 158, -1, -1, 203, -1, 193, 132, 203, -1, 178,
+ 157, 177, 158, 166, -1, 200, 151, 176, 157, 193,
+ 158, -1, 200, 152, 202, 153, 157, 193, 158, -1,
+ 176, 136, 203, -1, 196, -1, 197, 132, 196, -1,
+ 118, -1, 121, -1, 120, -1, 119, -1, 122, -1,
+ 123, -1, 124, -1, 134, -1, 128, -1, 129, -1,
+ 130, -1, 116, -1, 117, -1, 201, -1, 192, -1,
+ 195, -1, 176, -1, 200, 151, 176, -1, 200, 152,
+ 202, 153, -1, 204, -1, 143, 202, -1, 148, 202,
+ -1, 147, 202, -1, 202, 115, 202, -1, 202, 114,
+ 202, -1, 202, 144, 202, -1, 202, 145, 202, -1,
+ 202, 146, 202, -1, 202, 142, 202, -1, 202, 143,
+ 202, -1, 202, 139, 202, -1, 202, 140, 202, -1,
+ 202, 141, 202, -1, 202, 137, 202, -1, 202, 138,
+ 202, -1, 202, 111, 202, -1, 202, 112, 202, -1,
+ 202, 110, 202, -1, 202, 113, 202, -1, 202, 125,
+ 202, -1, 202, 126, 202, -1, 202, 127, 202, -1,
+ 202, 135, 202, 136, 202, -1, 201, 133, 203, -1,
+ 202, 57, 200, -1, 202, -1, 16, 176, -1, 16,
+ 176, 157, 193, 158, -1, 152, 193, 153, -1, 165,
+ -1, 154, 197, 155, -1, 192, -1, 194, -1, 195,
+ -1, 200, -1, 199, 201, -1, 201, 199, -1, 157,
+ 202, 158, -1, 143, 104, -1, 104, -1, 143, 105,
+ -1, 105, -1, 106, -1, 103, -1, 108, -1, 206,
+ -1, 205, 132, 206, -1, 176, 133, 203, -1, 176,
+ -1, -1, 21, 154, 208, 209, 155, -1, 15, 205,
+ -1, 191, -1, 192, -1, 195, -1, 199, 201, -1,
+ 201, 199, -1, 201, 133, 203, -1, 201, 198, 202,
+ -1, 214, -1, 209, 214, -1, -1, 20, 211, 209,
+ 19, -1, 108, -1, 104, -1, 105, -1, 106, -1,
+ 103, -1, 107, -1, 212, -1, 213, 132, 212, -1,
+ -1, 43, 215, 213, -1, 210, -1, 44, 107, -1,
+ 45, -1, 18, -1, 46, -1, 47, -1, 48, -1,
+ 49, -1, 50, -1, 51, -1, 52, -1, 53, -1,
+ 54, -1, 55, -1, 56, -1, 57, -1, 58, -1,
+ 17, -1, 16, -1, 60, -1, 59, -1, 61, -1,
+ 62, -1, 63, -1, 64, -1, 65, -1, 15, -1,
+ 66, -1, 67, -1, 68, -1, 69, -1, 70, -1,
+ 71, -1, 72, -1, 73, -1, 74, -1, 75, -1,
+ 76, -1, 77, -1, 78, -1, 29, -1, 40, -1,
+ 41, -1, 42, -1, 79, -1, 80, -1, 81, -1,
+ 26, -1, 82, -1, 83, -1, 28, -1, 84, -1,
+ 23, -1, 85, -1, 30, -1, 31, -1, 24, -1,
+ 86, -1, 87, -1, 88, -1, 89, 108, -1, 90,
+ 108, -1
+};
+
+/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
+static const unsigned short yyrline[] =
+{
+ 0, 152, 152, 152, 160, 164, 165, 169, 171, 176,
+ 179, 185, 189, 190, 191, 192, 193, 194, 195, 196,
+ 197, 198, 199, 203, 214, 224, 236, 237, 241, 252,
+ 262, 263, 267, 272, 286, 289, 297, 302, 307, 317,
+ 318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
+ 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
+ 338, 339, 340, 341, 342, 343, 344, 345, 346, 347,
+ 348, 349, 350, 351, 352, 353, 354, 355, 356, 357,
+ 358, 359, 360, 361, 362, 363, 364, 365, 366, 367,
+ 368, 369, 370, 371, 372, 373, 374, 375, 376, 377,
+ 378, 379, 380, 381, 382, 383, 384, 385, 386, 387,
+ 388, 389, 390, 391, 392, 393, 394, 399, 402, 407,
+ 414, 419, 433, 438, 444, 449, 451, 455, 460, 466,
+ 471, 475, 488, 501, 536, 569, 603, 604, 610, 621,
+ 634, 636, 638, 640, 647, 654, 662, 670, 676, 683,
+ 690, 694, 701, 708, 715, 722, 729, 735, 742, 753,
+ 758, 766, 770, 780, 784, 788, 792, 796, 800, 804,
+ 810, 817, 823, 830, 839, 846, 850, 854, 858, 862,
+ 866, 870, 874, 879, 885, 894, 897, 902, 911, 924,
+ 932, 941, 948, 952, 958, 959, 960, 961, 962, 963,
+ 964, 965, 966, 967, 968, 972, 973, 991, 1009, 1010,
+ 1015, 1022, 1028, 1037, 1039, 1044, 1049, 1053, 1062, 1072,
+ 1077, 1082, 1087, 1092, 1097, 1102, 1107, 1112, 1117, 1122,
+ 1128, 1133, 1137, 1142, 1146, 1150, 1154, 1164, 1191, 1199,
+ 1201, 1207, 1213, 1218, 1223, 1231, 1233, 1235, 1237, 1239,
+ 1284, 1329, 1332, 1336, 1340, 1344, 1348, 1352, 1356, 1363,
+ 1365, 1371, 1377, 1385, 1384, 1389, 1392, 1394, 1398, 1402,
+ 1441, 1480, 1501, 1546, 1547, 1552, 1551, 1559, 1562, 1565,
+ 1568, 1571, 1573, 1580, 1581, 1585, 1585, 1591, 1593, 1600,
+ 1602, 1604, 1606, 1608, 1610, 1612, 1614, 1616, 1618, 1620,
+ 1622, 1624, 1626, 1628, 1630, 1632, 1634, 1636, 1638, 1640,
+ 1642, 1644, 1646, 1648, 1650, 1654, 1655, 1656, 1657, 1658,
+ 1659, 1660, 1661, 1662, 1663, 1664, 1665, 1666, 1667, 1668,
+ 1669, 1670, 1671, 1672, 1673, 1674, 1675, 1676, 1677, 1678,
+ 1679, 1680, 1681, 1682, 1683, 1684, 1685, 1688, 1692
+};
+#endif
+
+#if YYDEBUG || YYERROR_VERBOSE
+/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
+ First, the terminals, then, starting at YYNTOKENS, nonterminals. */
+static const char *const yytname[] =
+{
+ "$end", "error", "$undefined", "BREAK", "CONTINUE", "FUNCTION", "ELSE",
+ "SWITCH", "CASE", "DEFAULT", "FOR", "IN", "IF", "WHILE", "DO", "VAR",
+ "NEW", "DELETE", "RETURN", "END", "WITH", "ASM", "EVAL", "RANDOM",
+ "GETTIMER", "LENGTH", "CONCAT", "SUBSTR", "TRACE", "INT", "ORD", "CHR",
+ "GETURL", "GETURL1", "NEXTFRAME", "PREVFRAME", "PLAY", "STOP",
+ "TOGGLEQUALITY", "STOPSOUNDS", "DUP", "SWAP", "POP", "PUSH",
+ "SETREGISTER", "CALLFUNCTION", "CALLMETHOD", "AND", "OR", "XOR",
+ "MODULO", "ADD", "LESSTHAN", "EQUALS", "INC", "DEC", "TYPEOF",
+ "INSTANCEOF", "ENUMERATE", "INITOBJECT", "INITARRAY", "GETMEMBER",
+ "SETMEMBER", "SHIFTLEFT", "SHIFTRIGHT", "SHIFTRIGHT2", "VAREQUALS",
+ "OLDADD", "SUBTRACT", "MULTIPLY", "DIVIDE", "OLDEQUALS", "OLDLESSTHAN",
+ "LOGICALAND", "LOGICALOR", "NOT", "STRINGEQ", "STRINGLENGTH",
+ "SUBSTRING", "GETVARIABLE", "SETVARIABLE", "SETTARGETEXPRESSION",
+ "DUPLICATEMOVIECLIP", "REMOVEMOVIECLIP", "STRINGLESSTHAN", "MBLENGTH",
+ "MBSUBSTRING", "MBORD", "MBCHR", "BRANCHALWAYS", "BRANCHIFTRUE",
+ "GETURL2", "POST", "GET", "LOADVARIABLES", "LOADMOVIE",
+ "LOADVARIABLESNUM", "LOADMOVIENUM", "CALLFRAME", "STARTDRAG",
+ "STOPDRAG", "GOTOFRAME", "SETTARGET", "NULLVAL", "INTEGER", "DOUBLE",
+ "BOOLEAN", "REGISTER", "STRING", "IDENTIFIER", "\"==\"", "\"<=\"",
+ "\">=\"", "\"!=\"", "\"&&\"", "\"||\"", "\"++\"", "\"--\"", "\"+=\"",
+ "\"/=\"", "\"*=\"", "\"-=\"", "\"%=\"", "\"&=\"", "\"|=\"", "\"<<\"",
+ "\">>\"", "\">>>\"", "\"<<=\"", "\">>=\"", "\">>>=\"", "NOELSE", "','",
+ "'='", "\"^=\"", "'?'", "':'", "'<'", "'>'", "'&'", "'|'", "'^'", "'+'",
+ "'-'", "'*'", "'/'", "'%'", "'!'", "'~'", "UMINUS", "POSTFIX", "'.'",
+ "'['", "']'", "'{'", "'}'", "';'", "'('", "')'", "$accept", "program",
+ "@1", "code", "anycode", "stmts", "emptybraces", "stmt", "with_stmt",
+ "return_stmt", "assign_stmts", "if_stmt", "expr_opt", "switch_init",
+ "switch_stmt", "switch_cases", "switch_case", "identifier",
+ "formals_list", "function_init", "function_decl", "obj_ref",
+ "while_init", "do_init", "for_init", "for_in_init", "iter_stmt",
+ "assign_stmts_opt", "cont_stmt", "break_stmt", "urlmethod", "level",
+ "void_function_call", "function_call", "expr_list",
+ "anon_function_decl", "method_call", "objexpr", "objexpr_list",
+ "assignop", "incdecop", "lvalue_expr", "lvalue", "expr", "expr_or_obj",
+ "primary", "init_vars", "init_var", "assign_stmt", "@2", "opcode_list",
+ "with", "@3", "push_item", "push_list", "opcode", "@4", 0
+};
+#endif
+
+# ifdef YYPRINT
+/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
+ token YYLEX-NUM. */
+static const unsigned short yytoknum[] =
+{
+ 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
+ 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
+ 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
+ 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
+ 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
+ 355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
+ 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
+ 385, 386, 44, 61, 387, 63, 58, 60, 62, 38,
+ 124, 94, 43, 45, 42, 47, 37, 33, 126, 388,
+ 389, 46, 91, 93, 123, 125, 59, 40, 41
+};
+# endif
+
+/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const unsigned char yyr1[] =
+{
+ 0, 159, 161, 160, 160, 162, 162, 163, 163, 164,
+ 164, 165, 166, 166, 166, 166, 166, 166, 166, 166,
+ 166, 166, 166, 167, 168, 168, 169, 169, 170, 170,
+ 171, 171, 172, 173, 174, 174, 175, 175, 175, 176,
+ 176, 176, 176, 176, 176, 176, 176, 176, 176, 176,
+ 176, 176, 176, 176, 176, 176, 176, 176, 176, 176,
+ 176, 176, 176, 176, 176, 176, 176, 176, 176, 176,
+ 176, 176, 176, 176, 176, 176, 176, 176, 176, 176,
+ 176, 176, 176, 176, 176, 176, 176, 176, 176, 176,
+ 176, 176, 176, 176, 176, 176, 176, 176, 176, 176,
+ 176, 176, 176, 176, 176, 176, 176, 176, 176, 176,
+ 176, 176, 176, 176, 176, 176, 176, 177, 177, 177,
+ 178, 179, 180, 180, 180, 180, 180, 181, 182, 183,
+ 184, 185, 185, 185, 185, 185, 186, 186, 187, 188,
+ 189, 189, 189, 189, 190, 190, 191, 191, 191, 191,
+ 191, 191, 191, 191, 191, 191, 191, 191, 191, 191,
+ 191, 191, 191, 191, 191, 191, 191, 191, 191, 191,
+ 191, 191, 191, 191, 192, 192, 192, 192, 192, 192,
+ 192, 192, 192, 192, 192, 193, 193, 193, 194, 195,
+ 195, 196, 197, 197, 198, 198, 198, 198, 198, 198,
+ 198, 198, 198, 198, 198, 199, 199, 200, 200, 200,
+ 201, 201, 201, 202, 202, 202, 202, 202, 202, 202,
+ 202, 202, 202, 202, 202, 202, 202, 202, 202, 202,
+ 202, 202, 202, 202, 202, 202, 202, 202, 202, 203,
+ 203, 203, 203, 203, 203, 204, 204, 204, 204, 204,
+ 204, 204, 204, 204, 204, 204, 204, 204, 204, 205,
+ 205, 206, 206, 208, 207, 207, 207, 207, 207, 207,
+ 207, 207, 207, 209, 209, 211, 210, 212, 212, 212,
+ 212, 212, 212, 213, 213, 215, 214, 214, 214, 214,
+ 214, 214, 214, 214, 214, 214, 214, 214, 214, 214,
+ 214, 214, 214, 214, 214, 214, 214, 214, 214, 214,
+ 214, 214, 214, 214, 214, 214, 214, 214, 214, 214,
+ 214, 214, 214, 214, 214, 214, 214, 214, 214, 214,
+ 214, 214, 214, 214, 214, 214, 214, 214, 214, 214,
+ 214, 214, 214, 214, 214, 214, 214, 214, 214
+};
+
+/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
+static const unsigned char yyr2[] =
+{
+ 0, 2, 0, 2, 0, 1, 2, 1, 1, 1,
+ 2, 2, 1, 3, 1, 2, 1, 1, 1, 1,
+ 1, 1, 1, 7, 2, 3, 1, 3, 7, 5,
+ 0, 1, 1, 7, 0, 2, 6, 4, 3, 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, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 0, 1, 3,
+ 1, 6, 1, 3, 4, 1, 1, 1, 1, 0,
+ 0, 5, 6, 10, 8, 9, 0, 1, 2, 2,
+ 0, 2, 2, 2, 1, 1, 4, 2, 4, 5,
+ 4, 7, 7, 7, 7, 7, 4, 6, 14, 3,
+ 8, 4, 6, 3, 3, 3, 3, 3, 3, 4,
+ 4, 4, 4, 4, 4, 4, 3, 4, 4, 4,
+ 4, 4, 6, 8, 4, 0, 1, 3, 5, 6,
+ 7, 3, 1, 3, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 3, 4, 1, 2, 2, 2, 3, 3, 3,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 3, 3, 3, 5, 3, 3, 1,
+ 2, 5, 3, 1, 3, 1, 1, 1, 1, 2,
+ 2, 3, 2, 1, 2, 1, 1, 1, 1, 1,
+ 3, 3, 1, 0, 5, 2, 1, 1, 1, 2,
+ 2, 3, 3, 1, 2, 0, 4, 1, 1, 1,
+ 1, 1, 1, 1, 3, 0, 3, 1, 2, 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, 2, 2
+};
+
+/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
+ STATE-NUM when YYTABLE doesn't specify something else to do. Zero
+ means the default is an error. */
+static const unsigned short yydefact[] =
+{
+ 2, 0, 0, 1, 0, 0, 120, 32, 0, 0,
+ 127, 128, 0, 40, 41, 0, 0, 0, 0, 42,
+ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
+ 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
+ 63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
+ 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
+ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
+ 93, 94, 95, 96, 97, 98, 99, 100, 101, 102,
+ 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
+ 115, 116, 0, 0, 0, 103, 104, 0, 0, 39,
+ 205, 206, 0, 14, 3, 5, 12, 7, 22, 21,
+ 16, 0, 20, 210, 0, 8, 0, 0, 17, 18,
+ 19, 266, 267, 268, 0, 0, 207, 0, 139, 138,
+ 136, 0, 41, 42, 43, 44, 45, 47, 48, 49,
+ 50, 51, 52, 53, 54, 55, 56, 57, 58, 75,
+ 97, 101, 102, 115, 116, 103, 104, 39, 262, 265,
+ 259, 147, 208, 209, 0, 207, 40, 257, 253, 255,
+ 256, 258, 39, 0, 0, 0, 185, 0, 24, 0,
+ 243, 0, 208, 246, 209, 0, 248, 207, 239, 0,
+ 213, 0, 263, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 185, 11, 0, 9, 6, 0, 0,
+ 0, 0, 269, 0, 0, 194, 197, 196, 195, 198,
+ 199, 200, 202, 203, 204, 0, 201, 0, 270, 15,
+ 0, 137, 210, 0, 26, 0, 0, 0, 185, 0,
+ 0, 240, 252, 254, 214, 216, 215, 0, 186, 0,
+ 192, 0, 0, 117, 249, 0, 250, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 25, 0,
+ 0, 0, 0, 176, 0, 0, 0, 0, 0, 0,
+ 0, 0, 163, 164, 165, 166, 168, 167, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 159, 253,
+ 258, 0, 258, 0, 0, 13, 10, 0, 117, 0,
+ 0, 211, 0, 271, 272, 262, 0, 0, 30, 0,
+ 261, 260, 0, 39, 0, 185, 0, 242, 0, 0,
+ 244, 251, 118, 0, 237, 238, 231, 229, 230, 232,
+ 218, 217, 233, 234, 235, 0, 227, 228, 224, 225,
+ 226, 222, 223, 219, 220, 221, 0, 313, 305, 304,
+ 290, 275, 339, 343, 334, 337, 327, 341, 342, 328,
+ 329, 330, 285, 0, 289, 291, 292, 293, 294, 295,
+ 296, 297, 298, 299, 300, 301, 302, 303, 307, 306,
+ 308, 309, 310, 311, 312, 314, 315, 316, 317, 318,
+ 319, 320, 321, 322, 323, 324, 325, 326, 331, 332,
+ 333, 335, 336, 338, 340, 344, 345, 346, 0, 0,
+ 0, 287, 273, 175, 177, 178, 0, 150, 179, 180,
+ 181, 0, 0, 184, 0, 0, 161, 0, 0, 0,
+ 0, 156, 0, 169, 170, 171, 172, 173, 146, 0,
+ 0, 0, 0, 185, 212, 0, 27, 210, 0, 208,
+ 209, 0, 0, 31, 29, 174, 149, 0, 187, 191,
+ 193, 0, 0, 0, 0, 0, 0, 288, 347, 348,
+ 264, 274, 0, 140, 0, 0, 0, 140, 140, 253,
+ 140, 145, 140, 0, 34, 0, 131, 0, 0, 185,
+ 0, 130, 0, 0, 136, 0, 241, 119, 188, 236,
+ 0, 0, 281, 278, 279, 280, 282, 277, 283, 286,
+ 182, 0, 0, 162, 0, 0, 0, 0, 0, 0,
+ 0, 157, 0, 121, 132, 189, 0, 130, 0, 123,
+ 0, 0, 28, 23, 276, 0, 142, 141, 143, 151,
+ 0, 0, 152, 154, 153, 155, 0, 0, 0, 33,
+ 35, 190, 0, 134, 124, 129, 284, 183, 160, 0,
+ 0, 0, 135, 0, 0, 0, 38, 133, 0, 37,
+ 0, 0, 0, 139, 0, 158
+};
+
+/* YYDEFGOTO[NTERM-NUM]. */
+static const short yydefgoto[] =
+{
+ -1, 1, 2, 104, 105, 225, 106, 226, 108, 109,
+ 251, 110, 492, 111, 112, 562, 590, 113, 363, 181,
+ 115, 488, 116, 117, 603, 568, 118, 253, 119, 120,
+ 552, 520, 121, 182, 267, 183, 184, 270, 271, 247,
+ 185, 186, 187, 188, 268, 190, 159, 160, 127, 300,
+ 450, 451, 505, 548, 549, 452, 506
+};
+
+/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ STATE-NUM. */
+#define YYPACT_NINF -496
+static const short yypact[] =
+{
+ 17, 30, 908, -496, -136, -123, -496, -496, -126, -105,
+ -496, -496, 4178, -496, 4003, 1907, -101, -120, -88, -80,
+ -75, -72, -65, -496, -62, -50, -43, -40, -38, -31,
+ -30, -28, -27, -25, -24, -21, -496, -496, -496, -496,
+ -496, -496, -496, -496, -496, -496, -496, -496, -496, -496,
+ -496, -496, -20, -496, -496, -496, -496, -496, -496, -496,
+ -496, -496, -496, -496, -496, -496, -496, -496, -496, -496,
+ -496, -496, -496, -496, -18, -496, -496, -496, -17, -16,
+ -496, -496, -496, -496, -496, -496, -496, -496, -496, -496,
+ -15, -11, -8, -5, 5, 6, 7, 8, 9, 22,
+ -496, -496, 1165, -496, 908, -496, -496, -496, -496, -496,
+ -496, 23, -496, -496, 4178, -496, 24, 1627, -496, -496,
+ -496, -496, -125, -97, 4091, -78, -58, -57, -496, -496,
+ 3137, 2190, -496, -496, -496, -496, -496, -496, -496, -496,
+ -496, -496, -496, -496, -496, -496, -496, -496, -496, -496,
+ -496, -496, -496, -496, -496, -496, -496, -496, 49, -96,
+ -496, -71, -496, -496, -64, -496, 4178, -496, -496, -496,
+ -496, -496, 27, 2326, 2190, 2190, 2051, 3002, -496, 2190,
+ -496, 37, -496, -496, -496, 4091, -78, -49, 4896, -47,
+ -496, 2190, -496, 2190, 2190, -3, 2051, 2190, 2051, 2190,
+ 2190, 2190, 2190, 45, 40, 42, 47, 48, 51, 52,
+ 2051, 2190, 2190, 2190, 2190, 2190, 2190, 2190, 2190, 2190,
+ 53, 2462, 2598, 2051, -496, 1319, -496, -496, 2190, 39,
+ 2190, 143, -54, 4178, 2190, -496, -496, -496, -496, -496,
+ -496, -496, -496, -496, -496, 2051, -496, 2190, -496, -496,
+ 4178, 69, 174, 46, -496, 331, 2051, 4178, 2051, 4265,
+ 2190, 50, -496, -496, 146, 146, 146, -103, -496, 76,
+ -496, -113, 576, 4178, -54, 2051, -496, 4091, 2190, 2190,
+ 2190, 2190, 2190, 2190, 2190, 2190, 2190, 2190, 2190, 2190,
+ 2190, 2190, 2190, 2190, 2190, 2190, 2190, 2190, -496, 750,
+ 5163, 962, 999, -496, 55, 688, 56, 2850, 3280, 3317,
+ 4304, 86, -496, -496, -496, -496, -496, -496, 58, 4341,
+ 4378, 3354, 4415, 4452, 4489, 4526, 3391, 4563, -496, 61,
+ 62, 3428, 64, 3465, -119, -496, -496, 3502, 4178, 3539,
+ 68, 70, 3761, -496, 4896, -9, 3234, 2190, 2190, 1627,
+ -496, -496, -118, -121, 3798, 2051, 2051, -496, 2051, 4178,
+ -496, -496, -496, -117, -496, -78, 4955, 192, 192, 4955,
+ 4933, 4933, 26, 26, 26, 4600, 192, 192, 32, 32,
+ 32, -33, -33, 146, 146, 146, 75, -496, -496, -496,
+ -496, -496, -496, -496, -496, -496, -496, -496, -496, -496,
+ -496, -496, -496, 123, -496, -496, -496, -496, -496, -496,
+ -496, -496, -496, -496, -496, -496, -496, -496, -496, -496,
+ -496, -496, -496, -496, -496, -496, -496, -496, -496, -496,
+ -496, -496, -496, -496, -496, -496, -496, -496, -496, -496,
+ -496, -496, -496, -496, -496, -496, -496, -496, 124, 125,
+ 2869, -496, -496, -496, -496, -496, 2190, -496, -496, -496,
+ -496, 2190, 127, -496, 2190, 2190, -496, 2190, 2190, 2734,
+ 2734, -496, 2190, -496, -496, -496, -496, -496, -48, 77,
+ -114, 1627, 2190, 2051, 80, 2190, -496, 82, 83, 88,
+ 89, 3872, 94, 4896, 236, -496, -61, -111, -496, -496,
+ -496, 4178, 1627, 2190, 1627, 5163, 84, -496, -496, -496,
+ -496, -496, 3576, 4637, 96, 4674, 4711, 4637, 4637, -110,
+ 112, 4896, 112, 289, -496, 1627, -496, 3613, -109, 2051,
+ 97, -496, 4178, 2190, 3234, 1627, -496, -496, -496, 4896,
+ 1473, 5087, -496, -496, -496, -496, -496, -496, -496, 120,
+ -496, -14, 98, -496, 2190, 2190, 99, 101, 102, 103,
+ 2190, -496, -4, -496, -496, -496, -107, -496, 1627, -496,
+ 3835, 104, -496, -496, -496, 84, -496, -496, -496, -496,
+ 3650, 3687, -496, -496, -496, -496, 4748, 2190, 128, -496,
+ -496, -496, 1627, -496, -496, -496, -496, -496, -496, 2190,
+ 4785, 1627, -496, 1627, 4822, 1627, 1627, -496, 2190, 1772,
+ 4859, 109, 2190, -1, 3724, -496
+};
+
+/* YYPGOTO[NTERM-NUM]. */
+static const short yypgoto[] =
+{
+ -496, -496, -496, -496, 162, -495, 28, 44, -496, -496,
+ -496, -496, -496, -496, -496, -496, -496, 20, -66, 4,
+ -496, -211, -496, -496, -496, -289, -496, -254, -496, -496,
+ -397, -189, -496, -2, -220, -496, 14, -77, -496, -496,
+ 141, 43, 91, 562, 38, -496, -496, 31, -129, -496,
+ -218, -496, -496, -290, -496, -440, -496
+};
+
+/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
+ positive, shift that token. If negative, reduce the rule which
+ number is the opposite. If zero, do what YYDEFACT says.
+ If YYTABLE_NINF, syntax error. */
+#define YYTABLE_NINF -213
+static const short yytable[] =
+{
+ 122, 254, 485, 334, 587, 588, 114, -36, -36, 540,
+ 511, -148, 162, 356, 356, 501, 123, -4, 501, 359,
+ 128, 356, -144, 356, 277, 356, -208, -208, 163, 356,
+ 3, 130, 158, 129, 192, -148, 257, -148, 352, 478,
+ 495, 502, 360, 180, 525, 125, 107, 536, -144, 565,
+ 357, 591, 131, 189, -209, -209, 191, 164, 100, 101,
+ 235, 236, 237, 238, 239, 240, 241, 100, 101, 193,
+ 242, 243, 244, 233, 234, 245, 246, 194, 576, 577,
+ -39, -39, 195, 277, 275, 196, 258, 259, 260, 277,
+ -212, -212, 197, 126, 578, 198, 529, -207, -207, 249,
+ 122, 511, 122, -174, -174, 165, 606, 199, 114, 298,
+ 609, 295, 296, 297, 200, 122, 123, 201, 123, 202,
+ 556, 557, 162, 558, 256, 559, 203, 204, 122, 205,
+ 206, 123, 207, 208, 229, 497, 209, 210, 163, 211,
+ 212, 213, 214, 124, 123, 125, 215, 125, 107, 216,
+ 252, 589, 217, 311, -36, 303, 340, 284, 285, 286,
+ 125, 231, 218, 219, 220, 221, 222, 125, 293, 294,
+ 295, 296, 297, 125, 293, 294, 295, 296, 297, 223,
+ 228, 230, 256, 162, 258, 347, 261, 542, 543, 544,
+ 545, 546, 547, 126, 273, 126, 338, 269, 312, 163,
+ 313, 346, 348, 277, 180, 314, 315, 355, 126, 316,
+ 317, 328, 358, 455, 457, 232, 463, 486, 462, 473,
+ 474, 126, 476, 122, 180, 482, 180, 483, 125, 504,
+ 507, 524, 508, 509, 304, 514, 306, 529, 180, 123,
+ -122, 531, 535, 124, 551, 124, -125, -126, 318, 277,
+ 534, 180, 575, 341, 553, 567, 579, 582, 124, 583,
+ 584, 585, 595, 528, 601, 613, 227, 248, 125, 336,
+ 345, 124, 480, 180, 530, 162, 274, 158, 592, 341,
+ 571, 522, 500, 343, 180, 596, 180, 541, 351, 0,
+ 0, 163, 0, 362, 350, 0, 0, 0, 0, 0,
+ 0, 0, 0, 180, 0, 0, 0, 0, 0, 566,
+ 0, 0, 0, 364, 0, 0, 126, 284, 285, 286,
+ 365, 0, 0, 0, 0, 0, 0, 0, 276, 0,
+ 0, 290, 291, 292, 293, 294, 295, 296, 297, 0,
+ 0, 0, 0, 0, 122, 489, 277, 122, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 362, 0,
+ 123, 490, 0, 123, 0, 0, 124, 487, 165, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 269,
+ 0, 0, 0, 180, 180, 0, 180, 0, 277, 125,
+ 0, 0, 125, 494, 498, 0, 499, 0, 0, 278,
+ 279, 280, 281, 282, 283, 254, 0, 0, 0, 0,
+ 0, 0, 0, 0, 284, 285, 286, 0, 0, 0,
+ 0, 560, 0, 0, 287, 0, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, 297, 0, 126, 0, 0,
+ 126, 278, 279, 280, 281, 282, 283, 561, 0, 0,
+ 0, 0, 0, 0, 0, 0, 284, 285, 286, 0,
+ 0, 0, 0, 0, 0, 0, 287, 0, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, 297, 0, 122,
+ 0, 0, 0, 489, 0, 0, 0, 124, 0, 349,
+ 124, 0, 0, 0, 0, 123, 0, 0, 0, 490,
+ 122, 0, 122, 0, 0, 487, 0, 0, 0, 0,
+ 0, 180, 0, 0, 0, 0, 123, 0, 123, 0,
+ 0, 537, 0, 122, 125, 526, 0, 0, 0, 0,
+ 0, 0, 122, 122, 0, 0, 0, 0, 122, 123,
+ 0, 0, 0, 0, 0, 125, 538, 125, 123, 123,
+ 0, 0, 569, 0, 123, 0, 0, 180, 0, 0,
+ 0, 0, 0, 0, 0, 0, 122, 0, 125, 563,
+ 0, 0, 126, 0, 0, 0, 0, 125, 125, 572,
+ 0, 0, 123, 125, 336, 0, 0, 0, 0, 0,
+ 122, 0, 0, 126, 0, 126, 0, 0, 0, 122,
+ 0, 122, 0, 122, 122, 0, 123, 122, 0, 0,
+ 0, 125, 593, 0, 0, 123, 126, 123, 0, 123,
+ 123, 0, 124, 123, 0, 126, 126, 0, 0, 0,
+ 0, 126, 0, 277, 0, 125, 602, 0, 0, 0,
+ 0, 0, 0, 124, 125, 124, 125, 607, 125, 125,
+ 336, 0, 125, 336, 0, 0, 0, 0, 0, 126,
+ 0, 0, 0, 0, 0, 0, 124, 0, 0, 0,
+ 0, 0, 0, 0, 0, 124, 124, 0, 0, 0,
+ 0, 124, 0, 126, 0, 0, 278, 279, 280, 281,
+ 282, 283, 126, 255, 126, 0, 126, 126, 0, 0,
+ 126, 284, 285, 286, 0, 0, 0, 0, 0, 124,
+ 0, 287, 0, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 124, 361, 264, 265, 266, 0, 0,
+ 0, 272, 124, 0, 124, 277, 124, 124, 0, 0,
+ 124, 0, 0, 299, 0, 301, 302, 0, 0, 305,
+ 0, 307, 308, 309, 310, 0, 0, 0, 0, 0,
+ 0, 0, 0, 319, 320, 321, 322, 323, 324, 325,
+ 326, 327, 0, 331, 333, 0, 0, 0, 0, 0,
+ 337, 0, 339, 0, 0, 0, 342, 0, 278, 279,
+ 280, 281, 282, 283, 0, 0, 0, 277, 0, 344,
+ 0, 0, 0, 284, 285, 286, 0, 0, 0, 0,
+ 456, 0, 354, 287, 0, 288, 289, 290, 291, 292,
+ 293, 294, 295, 296, 297, 0, 0, 0, 0, 0,
+ 366, 367, 368, 369, 370, 371, 372, 373, 374, 375,
+ 376, 377, 378, 379, 380, 381, 382, 383, 384, 385,
+ 278, 279, 280, 281, 282, 283, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 284, 285, 286, 0, 0,
+ 0, 0, 0, 0, 0, 287, 0, 288, 289, 290,
+ 291, 292, 293, 294, 295, 296, 297, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 386, 491,
+ 493, 4, 5, 6, 0, 7, 0, 0, 8, 0,
+ 9, 10, 11, 12, 13, 14, 15, 0, 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, 65, 66, 67,
+ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
+ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
+ 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
+ 98, 0, 0, 0, 0, 0, 0, 99, 512, 277,
+ 0, 0, 0, 513, 100, 101, 515, 516, 0, 517,
+ 518, 521, 521, 0, 523, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 527, 0, 0, 491, 0, 0,
+ 0, 0, 0, 0, 0, 0, 277, 0, 0, 0,
+ 0, 0, 102, 0, 103, 539, 0, 0, 0, 0,
+ 0, 0, 278, 279, 280, 281, 282, 283, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 284, 285, 286,
+ 0, 0, 0, 0, 0, 570, 0, 287, 0, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, 297, 278,
+ 279, 280, 281, 282, 283, 0, 580, 581, 0, 0,
+ 453, 0, 586, 0, 284, 285, 286, 0, 0, 0,
+ 0, 0, 0, 0, 287, 0, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, 297, 0, 0, 0, 600,
+ 0, 0, 0, 0, 0, 0, 0, 454, 0, 0,
+ 0, 604, 0, 0, 0, 0, 0, 0, 4, 5,
+ 610, 0, 7, 0, 614, 8, 0, 9, 10, 11,
+ 12, 13, 14, 15, 0, 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, 65, 66, 67, 68, 69, 70,
+ 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
+ 91, 92, 93, 94, 95, 96, 97, 98, 0, 0,
+ 0, 0, 0, 0, 99, 0, 0, 0, 0, 0,
+ 0, 100, 101, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 102,
+ 224, 103, 4, 5, 0, 0, 7, 0, 0, 8,
+ 0, 9, 10, 11, 12, 13, 14, 15, 0, 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, 65, 66,
+ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
+ 77, 78, 79, 80, 81, 82, 83, 84, 85, 86,
+ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 0, 0, 0, 0, 0, 0, 99, 0,
+ 0, 0, 0, 0, 0, 100, 101, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 102, 335, 103, 4, 5, 0, 0,
+ 7, 0, 0, 8, 0, 9, 10, 11, 12, 13,
+ 14, 15, 0, 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, 65, 66, 67, 68, 69, 70, 71, 72,
+ 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
+ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
+ 93, 94, 95, 96, 97, 98, 0, 0, 0, 0,
+ 0, 0, 99, 0, 0, 0, 0, 0, 0, 100,
+ 101, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 102, 573, 103,
+ 4, 5, 0, 0, 7, 0, 0, 8, 0, 9,
+ 10, 11, 12, 13, 14, 15, 0, 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, 65, 66, 67, 68,
+ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
+ 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
+ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
+ 0, 0, 0, 0, 0, 0, 99, 0, 0, 0,
+ 0, 0, 0, 100, 101, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 611, 5, 0, 0, 7,
+ 0, 102, 8, 103, 9, 10, 11, 12, 13, 14,
+ 15, 0, 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, 65, 66, 67, 68, 69, 70, 71, 72, 73,
+ 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
+ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
+ 94, 95, 96, 97, 98, 0, 0, 0, 0, 0,
+ 0, 99, 0, 0, 0, 0, 0, 0, 100, 101,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 6, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 166, 132, 0, 102, 0, 103, 18,
+ 19, 20, 21, 22, 23, 137, 25, 26, 27, 141,
+ 142, 143, 144, 145, 146, 147, 148, 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, 65, 66, 67, 68,
+ 69, 70, 71, 72, 73, 74, 75, 76, 77, 151,
+ 152, 80, 81, 82, 83, 84, 85, 86, 87, 88,
+ 89, 153, 154, 0, 0, 0, 155, 156, 0, 0,
+ 167, 168, 169, 170, 0, 171, 172, 0, 0, 0,
+ 0, 0, 0, 100, 101, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 173, 0, 0, 0, 174, 175, 6, 0, 0, 176,
+ 0, 177, 0, 178, 179, 0, 0, 166, 132, 0,
+ 0, 0, 0, 18, 19, 20, 21, 22, 23, 137,
+ 25, 26, 27, 141, 142, 143, 144, 145, 146, 147,
+ 148, 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,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
+ 75, 76, 77, 151, 152, 80, 81, 82, 83, 84,
+ 85, 86, 87, 88, 89, 153, 154, 0, 0, 0,
+ 155, 156, 0, 0, 167, 168, 169, 170, 0, 171,
+ 172, 0, 0, 0, 0, 0, 0, 100, 101, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 173, 6, 0, 0, 174, 175,
+ 0, 0, 0, 176, 0, 177, 13, 132, 179, 0,
+ 0, 0, 18, 19, 20, 21, 22, 23, 137, 25,
+ 26, 27, 141, 142, 143, 144, 145, 146, 147, 148,
+ 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, 65,
+ 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
+ 76, 77, 151, 152, 80, 81, 82, 83, 84, 85,
+ 86, 87, 88, 89, 153, 154, 0, 0, 0, 155,
+ 156, 0, 0, 167, 168, 169, 170, 0, 171, 172,
+ 0, 0, 0, 0, 0, 0, 100, 101, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 6, 0, 173, 0, 0, 0, 174, 175, 0,
+ 0, 0, 13, 132, 0, 0, 0, 179, 18, 19,
+ 20, 21, 22, 23, 137, 25, 26, 27, 141, 142,
+ 143, 144, 145, 146, 147, 148, 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, 65, 66, 67, 68, 69,
+ 70, 71, 72, 73, 74, 75, 76, 77, 151, 152,
+ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
+ 153, 154, 0, 0, 0, 155, 156, 0, 0, 167,
+ 262, 263, 170, 0, 171, 172, 0, 0, 0, 0,
+ 0, 0, 100, 101, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 6, 0, 173,
+ 0, 0, 0, 174, 175, 0, 0, 0, 13, 132,
+ 0, 0, 0, 179, 18, 19, 20, 21, 22, 23,
+ 137, 25, 26, 27, 141, 142, 143, 144, 145, 146,
+ 147, 148, 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, 65, 66, 67, 68, 69, 70, 71, 72, 73,
+ 74, 75, 76, 77, 151, 152, 80, 81, 82, 83,
+ 84, 85, 86, 87, 88, 89, 153, 154, 0, 0,
+ 0, 155, 156, 0, 0, 167, 329, 169, 170, 0,
+ 330, 172, 0, 0, 0, 0, 0, 0, 100, 101,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 6, 0, 173, 0, 0, 0, 174,
+ 175, 0, 0, 0, 13, 132, 0, 0, 0, 179,
+ 18, 19, 20, 21, 22, 23, 137, 25, 26, 27,
+ 141, 142, 143, 144, 145, 146, 147, 148, 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, 65, 66, 67,
+ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
+ 151, 152, 80, 81, 82, 83, 84, 85, 86, 87,
+ 88, 89, 153, 154, 0, 0, 0, 155, 156, 0,
+ 0, 167, 168, 169, 170, 0, 332, 172, 0, 0,
+ 0, 0, 0, 0, 100, 101, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 6,
+ 0, 173, 0, 0, 0, 174, 175, 0, 0, 0,
+ 13, 132, 0, 0, 0, 179, 18, 19, 20, 21,
+ 22, 23, 137, 25, 26, 27, 141, 142, 143, 144,
+ 145, 146, 147, 148, 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, 65, 66, 67, 68, 69, 70, 71,
+ 72, 73, 74, 75, 76, 77, 151, 152, 80, 81,
+ 82, 83, 84, 85, 86, 87, 88, 89, 153, 154,
+ 0, 0, 0, 155, 156, 0, 0, 167, 519, 169,
+ 170, 0, 171, 172, 0, 0, 0, 0, 0, 0,
+ 100, 101, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 173, 0, 0,
+ 0, 174, 175, 0, 387, 388, 389, 390, 0, 391,
+ 0, 179, 392, 393, 0, 394, 0, 395, 396, 397,
+ 398, 0, 0, 0, 0, 0, 0, 277, 0, 399,
+ 400, 401, 402, 403, 404, 405, 406, 407, 408, 409,
+ 410, 411, 412, 413, 414, 415, 416, 417, 418, 419,
+ 420, 421, 422, 423, 424, 425, 426, 427, 428, 429,
+ 430, 431, 432, 433, 434, 435, 436, 437, 438, 439,
+ 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
+ 278, 279, 280, 281, 282, 283, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 284, 285, 286, 0, 0,
+ 0, 0, 0, 0, 0, 287, 0, 288, 289, 290,
+ 291, 292, 293, 294, 295, 296, 297, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 458, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 13, 132,
+ 0, 0, 0, 0, 510, 133, 134, 135, 136, 23,
+ 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
+ 147, 148, 36, 37, 38, 39, 40, 41, 42, 43,
+ 44, 45, 46, 47, 48, 49, 50, 51, 149, 53,
+ 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
+ 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,
+ 150, 75, 76, 77, 151, 152, 80, 81, 82, 83,
+ 84, 85, 86, 87, 88, 89, 153, 154, 0, 0,
+ 0, 155, 156, 0, 0, 0, 0, 0, 0, 0,
+ 0, 157, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 250, 13, 14, 0, 0, 224, 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, 65, 66, 67, 68,
+ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
+ 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
+ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
+ 0, 0, 0, 0, 0, 0, 99, 0, 0, 12,
+ 13, 14, 0, 100, 101, 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, 65, 66, 67, 68, 69, 70, 71,
+ 72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
+ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
+ 92, 93, 94, 95, 96, 97, 98, 277, 0, 0,
+ 0, 0, 0, 99, 0, 0, 0, 0, 0, 0,
+ 100, 101, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 277, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 278, 279, 280, 281, 282, 283, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 284, 285, 286, 0, 0,
+ 0, 277, 0, 0, 0, 287, 0, 288, 289, 290,
+ 291, 292, 293, 294, 295, 296, 297, 278, 279, 280,
+ 281, 282, 283, 0, 0, 0, 0, 0, 459, 0,
+ 0, 0, 284, 285, 286, 0, 0, 0, 277, 0,
+ 0, 0, 287, 0, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, 297, 278, 279, 280, 281, 282, 283,
+ 0, 0, 0, 0, 0, 460, 0, 0, 0, 284,
+ 285, 286, 0, 0, 0, 277, 0, 0, 0, 287,
+ 0, 288, 289, 290, 291, 292, 293, 294, 295, 296,
+ 297, 278, 279, 280, 281, 282, 283, 0, 0, 0,
+ 0, 0, 466, 0, 0, 0, 284, 285, 286, 0,
+ 0, 0, 277, 0, 0, 0, 287, 0, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, 297, 278, 279,
+ 280, 281, 282, 283, 0, 0, 0, 0, 0, 471,
+ 0, 0, 0, 284, 285, 286, 0, 0, 0, 277,
+ 0, 0, 0, 287, 0, 288, 289, 290, 291, 292,
+ 293, 294, 295, 296, 297, 278, 279, 280, 281, 282,
+ 283, 0, 0, 0, 0, 0, 475, 0, 0, 0,
+ 284, 285, 286, 0, 0, 0, 277, 0, 0, 0,
+ 287, 0, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, 297, 278, 279, 280, 281, 282, 283, 0, 0,
+ 0, 0, 0, 477, 0, 0, 0, 284, 285, 286,
+ 0, 0, 0, 277, 0, 0, 0, 287, 0, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, 297, 278,
+ 279, 280, 281, 282, 283, 0, 0, 0, 0, 0,
+ 479, 0, 0, 0, 284, 285, 286, 0, 0, 0,
+ 277, 0, 0, 0, 287, 0, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, 297, 278, 279, 280, 281,
+ 282, 283, 0, 0, 0, 0, 0, 481, 0, 0,
+ 0, 284, 285, 286, 0, 0, 0, 277, 0, 0,
+ 0, 287, 0, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 278, 279, 280, 281, 282, 283, 0,
+ 0, 0, 0, 0, 550, 0, 0, 0, 284, 285,
+ 286, 0, 0, 0, 277, 0, 0, 0, 287, 0,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, 297,
+ 278, 279, 280, 281, 282, 283, 0, 0, 0, 0,
+ 0, 564, 0, 0, 0, 284, 285, 286, 0, 0,
+ 0, 277, 0, 0, 0, 287, 0, 288, 289, 290,
+ 291, 292, 293, 294, 295, 296, 297, 278, 279, 280,
+ 281, 282, 283, 0, 0, 0, 0, 0, 597, 0,
+ 0, 0, 284, 285, 286, 0, 0, 0, 277, 0,
+ 0, 0, 287, 0, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, 297, 278, 279, 280, 281, 282, 283,
+ 0, 0, 0, 0, 0, 598, 0, 0, 0, 284,
+ 285, 286, 0, 0, 0, 277, 0, 0, 0, 287,
+ 0, 288, 289, 290, 291, 292, 293, 294, 295, 296,
+ 297, 278, 279, 280, 281, 282, 283, 0, 0, 0,
+ 0, 0, 615, 0, 0, 0, 284, 285, 286, 0,
+ 0, 0, 277, 0, 0, 0, 287, 0, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, 297, 278, 279,
+ 280, 281, 282, 283, 484, 0, 0, 0, 0, 0,
+ 0, 0, 0, 284, 285, 286, 0, 0, 0, 277,
+ 0, 0, 0, 287, 0, 288, 289, 290, 291, 292,
+ 293, 294, 295, 296, 297, 278, 279, 280, 281, 282,
+ 283, 496, 0, 0, 0, 0, 0, 0, 0, 0,
+ 284, 285, 286, 0, 0, 0, 0, 0, 0, 0,
+ 287, 0, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, 297, 278, 279, 280, 281, 282, 283, 594, 0,
+ 0, 0, 0, 0, 0, 0, 0, 284, 285, 286,
+ 0, 0, 0, 0, 0, 0, 0, 287, 0, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, 297, 13,
+ 132, 0, 0, 532, 533, 18, 19, 20, 21, 22,
+ 23, 137, 25, 26, 27, 141, 142, 143, 144, 145,
+ 146, 147, 148, 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, 65, 66, 67, 68, 69, 70, 71, 72,
+ 73, 74, 75, 76, 77, 151, 152, 80, 81, 82,
+ 83, 84, 85, 86, 87, 88, 89, 153, 154, 0,
+ 0, 0, 155, 156, 0, 0, 0, 13, 132, 0,
+ 0, 0, 161, 18, 19, 20, 21, 22, 23, 137,
+ 25, 26, 27, 141, 142, 143, 144, 145, 146, 147,
+ 148, 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,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
+ 75, 76, 77, 151, 152, 80, 81, 82, 83, 84,
+ 85, 86, 87, 88, 89, 153, 154, 0, 0, 0,
+ 155, 156, 0, 0, 13, 132, 0, 0, 0, 0,
+ 172, 133, 134, 135, 136, 23, 137, 138, 139, 140,
+ 141, 142, 143, 144, 145, 146, 147, 148, 36, 37,
+ 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
+ 48, 49, 50, 51, 149, 53, 54, 55, 56, 57,
+ 58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
+ 68, 69, 70, 71, 72, 73, 150, 75, 76, 77,
+ 151, 152, 80, 81, 82, 83, 84, 85, 86, 87,
+ 88, 89, 153, 154, 0, 0, 0, 155, 156, 0,
+ 0, 13, 132, 0, 0, 0, 0, 157, 133, 134,
+ 135, 136, 23, 137, 138, 139, 140, 141, 142, 143,
+ 144, 145, 146, 147, 148, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
+ 51, 149, 53, 54, 55, 56, 57, 58, 59, 60,
+ 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
+ 71, 72, 73, 150, 75, 76, 77, 151, 152, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 153,
+ 154, 277, 0, 0, 155, 156, 0, 0, 0, 0,
+ 0, 0, 0, 0, 353, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 277, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 278, 279, 280, 281, 282, 283,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 284,
+ 285, 286, 0, 0, 0, 277, 461, 0, 0, 287,
+ 0, 288, 289, 290, 291, 292, 293, 294, 295, 296,
+ 297, 278, 279, 280, 281, 282, 283, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 284, 285, 286, 0,
+ 0, 0, 277, 464, 0, 0, 287, 0, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, 297, 278, 279,
+ 280, 281, 282, 283, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 284, 285, 286, 0, 0, 0, 277,
+ 465, 0, 0, 287, 0, 288, 289, 290, 291, 292,
+ 293, 294, 295, 296, 297, 278, 279, 280, 281, 282,
+ 283, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 284, 285, 286, 0, 0, 0, 277, 467, 0, 0,
+ 287, 0, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, 297, 278, 279, 280, 281, 282, 283, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 284, 285, 286,
+ 0, 0, 0, 277, 468, 0, 0, 287, 0, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, 297, 278,
+ 279, 280, 281, 282, 283, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 284, 285, 286, 0, 0, 0,
+ 277, 469, 0, 0, 287, 0, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, 297, 278, 279, 280, 281,
+ 282, 283, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 284, 285, 286, 0, 0, 0, 277, 470, 0,
+ 0, 287, 0, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 278, 279, 280, 281, 282, 283, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 284, 285,
+ 286, 0, 0, 0, 277, 472, 0, 0, 287, 0,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, 297,
+ 278, 279, 280, 281, 282, 283, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 284, 285, 286, 0, 0,
+ 0, 277, 0, 0, 0, 287, 503, 288, 289, 290,
+ 291, 292, 293, 294, 295, 296, 297, 278, 279, 280,
+ 281, 282, 283, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 284, 285, 286, 0, 0, 0, 277, 551,
+ 0, 0, 287, 0, 288, 289, 290, 291, 292, 293,
+ 294, 295, 296, 297, 278, 279, 280, 281, 282, 283,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 284,
+ 285, 286, 0, 0, 0, 277, 554, 0, 0, 287,
+ 0, 288, 289, 290, 291, 292, 293, 294, 295, 296,
+ 297, 278, 279, 280, 281, 282, 283, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 284, 285, 286, 0,
+ 0, 0, 277, 555, 0, 0, 287, 0, 288, 289,
+ 290, 291, 292, 293, 294, 295, 296, 297, 278, 279,
+ 280, 281, 282, 283, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 284, 285, 286, 0, 0, 0, 277,
+ 599, 0, 0, 287, 0, 288, 289, 290, 291, 292,
+ 293, 294, 295, 296, 297, 278, 279, 280, 281, 282,
+ 283, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 284, 285, 286, 0, 0, 0, 277, 0, 0, 0,
+ 287, 605, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, 297, 278, 279, 280, 281, 282, 283, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 284, 285, 286,
+ 0, 0, 0, 277, 608, 0, 0, 287, 0, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, 297, 278,
+ 279, 280, 281, 282, 283, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 284, 285, 286, 0, 0, 0,
+ 277, 612, 0, 0, 287, 0, 288, 289, 290, 291,
+ 292, 293, 294, 295, 296, 297, 278, 279, 280, 281,
+ 282, 283, 277, 0, 0, 0, 0, 0, 0, 0,
+ 0, 284, 285, 286, 0, 0, 0, 0, 0, 0,
+ 0, 287, 0, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 278, 279, 280, 281, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 284, 285,
+ 286, 0, 0, 0, 0, 0, 279, 280, 0, 0,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, 297,
+ 284, 285, 286, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 288, 289, 290, 291, 292, 293, 294, 295,
+ 296, 297, 387, 388, 389, 390, 574, 391, 0, 0,
+ 392, 393, 0, 394, 0, 395, 396, 397, 398, 0,
+ 0, 0, 0, 0, 0, 0, 0, 399, 400, 401,
+ 402, 403, 404, 405, 406, 407, 408, 409, 410, 411,
+ 412, 413, 414, 415, 416, 417, 418, 419, 420, 421,
+ 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
+ 432, 433, 434, 435, 436, 437, 438, 439, 440, 441,
+ 442, 443, 444, 445, 446, 447, 448, 449, 387, 388,
+ 389, 390, 0, 391, 0, 0, 392, 393, 0, 394,
+ 0, 395, 396, 397, 398, 0, 0, 0, 0, 0,
+ 0, 0, 0, 399, 400, 401, 402, 403, 404, 405,
+ 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
+ 416, 417, 418, 419, 420, 421, 422, 423, 424, 425,
+ 426, 427, 428, 429, 430, 431, 432, 433, 434, 435,
+ 436, 437, 438, 439, 440, 441, 442, 443, 444, 445,
+ 446, 447, 448, 449
+};
+
+static const short yycheck[] =
+{
+ 2, 130, 11, 223, 8, 9, 2, 8, 9, 504,
+ 450, 132, 14, 132, 132, 132, 2, 0, 132, 132,
+ 156, 132, 132, 132, 57, 132, 151, 152, 14, 132,
+ 0, 157, 12, 156, 154, 156, 132, 158, 258, 158,
+ 158, 158, 155, 15, 158, 2, 2, 158, 158, 158,
+ 153, 158, 157, 15, 151, 152, 157, 14, 116, 117,
+ 118, 119, 120, 121, 122, 123, 124, 116, 117, 157,
+ 128, 129, 130, 151, 152, 133, 134, 157, 92, 93,
+ 151, 152, 157, 57, 133, 157, 157, 151, 152, 57,
+ 151, 152, 157, 2, 108, 157, 157, 151, 152, 156,
+ 102, 541, 104, 151, 152, 14, 601, 157, 104, 156,
+ 605, 144, 145, 146, 157, 117, 102, 157, 104, 157,
+ 517, 518, 124, 520, 133, 522, 157, 157, 130, 157,
+ 157, 117, 157, 157, 114, 355, 157, 157, 124, 157,
+ 157, 157, 157, 2, 130, 102, 157, 104, 104, 157,
+ 130, 155, 157, 108, 155, 158, 13, 125, 126, 127,
+ 117, 117, 157, 157, 157, 157, 157, 124, 142, 143,
+ 144, 145, 146, 130, 142, 143, 144, 145, 146, 157,
+ 157, 157, 133, 185, 157, 11, 166, 103, 104, 105,
+ 106, 107, 108, 102, 157, 104, 157, 177, 158, 185,
+ 158, 132, 156, 57, 176, 158, 158, 157, 117, 158,
+ 158, 158, 136, 158, 158, 124, 158, 346, 132, 158,
+ 158, 130, 158, 225, 196, 157, 198, 157, 185, 154,
+ 107, 154, 108, 108, 196, 108, 198, 157, 210, 225,
+ 158, 158, 6, 102, 132, 104, 158, 158, 210, 57,
+ 156, 223, 132, 233, 158, 158, 158, 158, 117, 158,
+ 158, 158, 158, 483, 136, 156, 104, 126, 225, 225,
+ 250, 130, 338, 245, 485, 277, 185, 257, 567, 259,
+ 534, 470, 359, 245, 256, 575, 258, 505, 257, -1,
+ -1, 277, -1, 273, 256, -1, -1, -1, -1, -1,
+ -1, -1, -1, 275, -1, -1, -1, -1, -1, 529,
+ -1, -1, -1, 275, -1, -1, 225, 125, 126, 127,
+ 277, -1, -1, -1, -1, -1, -1, -1, 187, -1,
+ -1, 139, 140, 141, 142, 143, 144, 145, 146, -1,
+ -1, -1, -1, -1, 346, 347, 57, 349, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 338, -1,
+ 346, 347, -1, 349, -1, -1, 225, 347, 277, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 359,
+ -1, -1, -1, 355, 356, -1, 358, -1, 57, 346,
+ -1, -1, 349, 349, 356, -1, 358, -1, -1, 110,
+ 111, 112, 113, 114, 115, 534, -1, -1, -1, -1,
+ -1, -1, -1, -1, 125, 126, 127, -1, -1, -1,
+ -1, 132, -1, -1, 135, -1, 137, 138, 139, 140,
+ 141, 142, 143, 144, 145, 146, -1, 346, -1, -1,
+ 349, 110, 111, 112, 113, 114, 115, 158, -1, -1,
+ -1, -1, -1, -1, -1, -1, 125, 126, 127, -1,
+ -1, -1, -1, -1, -1, -1, 135, -1, 137, 138,
+ 139, 140, 141, 142, 143, 144, 145, 146, -1, 481,
+ -1, -1, -1, 485, -1, -1, -1, 346, -1, 158,
+ 349, -1, -1, -1, -1, 481, -1, -1, -1, 485,
+ 502, -1, 504, -1, -1, 485, -1, -1, -1, -1,
+ -1, 483, -1, -1, -1, -1, 502, -1, 504, -1,
+ -1, 501, -1, 525, 481, 481, -1, -1, -1, -1,
+ -1, -1, 534, 535, -1, -1, -1, -1, 540, 525,
+ -1, -1, -1, -1, -1, 502, 502, 504, 534, 535,
+ -1, -1, 532, -1, 540, -1, -1, 529, -1, -1,
+ -1, -1, -1, -1, -1, -1, 568, -1, 525, 525,
+ -1, -1, 481, -1, -1, -1, -1, 534, 535, 535,
+ -1, -1, 568, 540, 540, -1, -1, -1, -1, -1,
+ 592, -1, -1, 502, -1, 504, -1, -1, -1, 601,
+ -1, 603, -1, 605, 606, -1, 592, 609, -1, -1,
+ -1, 568, 568, -1, -1, 601, 525, 603, -1, 605,
+ 606, -1, 481, 609, -1, 534, 535, -1, -1, -1,
+ -1, 540, -1, 57, -1, 592, 592, -1, -1, -1,
+ -1, -1, -1, 502, 601, 504, 603, 603, 605, 606,
+ 606, -1, 609, 609, -1, -1, -1, -1, -1, 568,
+ -1, -1, -1, -1, -1, -1, 525, -1, -1, -1,
+ -1, -1, -1, -1, -1, 534, 535, -1, -1, -1,
+ -1, 540, -1, 592, -1, -1, 110, 111, 112, 113,
+ 114, 115, 601, 131, 603, -1, 605, 606, -1, -1,
+ 609, 125, 126, 127, -1, -1, -1, -1, -1, 568,
+ -1, 135, -1, 137, 138, 139, 140, 141, 142, 143,
+ 144, 145, 146, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 592, 158, 173, 174, 175, -1, -1,
+ -1, 179, 601, -1, 603, 57, 605, 606, -1, -1,
+ 609, -1, -1, 191, -1, 193, 194, -1, -1, 197,
+ -1, 199, 200, 201, 202, -1, -1, -1, -1, -1,
+ -1, -1, -1, 211, 212, 213, 214, 215, 216, 217,
+ 218, 219, -1, 221, 222, -1, -1, -1, -1, -1,
+ 228, -1, 230, -1, -1, -1, 234, -1, 110, 111,
+ 112, 113, 114, 115, -1, -1, -1, 57, -1, 247,
+ -1, -1, -1, 125, 126, 127, -1, -1, -1, -1,
+ 132, -1, 260, 135, -1, 137, 138, 139, 140, 141,
+ 142, 143, 144, 145, 146, -1, -1, -1, -1, -1,
+ 278, 279, 280, 281, 282, 283, 284, 285, 286, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, 297,
+ 110, 111, 112, 113, 114, 115, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 125, 126, 127, -1, -1,
+ -1, -1, -1, -1, -1, 135, -1, 137, 138, 139,
+ 140, 141, 142, 143, 144, 145, 146, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 158, 347,
+ 348, 3, 4, 5, -1, 7, -1, -1, 10, -1,
+ 12, 13, 14, 15, 16, 17, 18, -1, 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, 65, 66, 67, 68, 69, 70, 71,
+ 72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
+ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
+ 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
+ 102, -1, -1, -1, -1, -1, -1, 109, 456, 57,
+ -1, -1, -1, 461, 116, 117, 464, 465, -1, 467,
+ 468, 469, 470, -1, 472, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 482, -1, -1, 485, -1, -1,
+ -1, -1, -1, -1, -1, -1, 57, -1, -1, -1,
+ -1, -1, 154, -1, 156, 503, -1, -1, -1, -1,
+ -1, -1, 110, 111, 112, 113, 114, 115, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 125, 126, 127,
+ -1, -1, -1, -1, -1, 533, -1, 135, -1, 137,
+ 138, 139, 140, 141, 142, 143, 144, 145, 146, 110,
+ 111, 112, 113, 114, 115, -1, 554, 555, -1, -1,
+ 158, -1, 560, -1, 125, 126, 127, -1, -1, -1,
+ -1, -1, -1, -1, 135, -1, 137, 138, 139, 140,
+ 141, 142, 143, 144, 145, 146, -1, -1, -1, 587,
+ -1, -1, -1, -1, -1, -1, -1, 158, -1, -1,
+ -1, 599, -1, -1, -1, -1, -1, -1, 3, 4,
+ 608, -1, 7, -1, 612, 10, -1, 12, 13, 14,
+ 15, 16, 17, 18, -1, 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,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
+ 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
+ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
+ 95, 96, 97, 98, 99, 100, 101, 102, -1, -1,
+ -1, -1, -1, -1, 109, -1, -1, -1, -1, -1,
+ -1, 116, 117, -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, 154,
+ 155, 156, 3, 4, -1, -1, 7, -1, -1, 10,
+ -1, 12, 13, 14, 15, 16, 17, 18, -1, 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, 65, 66, 67, 68, 69, 70,
+ 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
+ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
+ 101, 102, -1, -1, -1, -1, -1, -1, 109, -1,
+ -1, -1, -1, -1, -1, 116, 117, -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, 154, 155, 156, 3, 4, -1, -1,
+ 7, -1, -1, 10, -1, 12, 13, 14, 15, 16,
+ 17, 18, -1, 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, 65, 66,
+ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
+ 77, 78, 79, 80, 81, 82, 83, 84, 85, 86,
+ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99, 100, 101, 102, -1, -1, -1, -1,
+ -1, -1, 109, -1, -1, -1, -1, -1, -1, 116,
+ 117, -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, 154, 155, 156,
+ 3, 4, -1, -1, 7, -1, -1, 10, -1, 12,
+ 13, 14, 15, 16, 17, 18, -1, 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, 65, 66, 67, 68, 69, 70, 71, 72,
+ 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
+ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
+ 93, 94, 95, 96, 97, 98, 99, 100, 101, 102,
+ -1, -1, -1, -1, -1, -1, 109, -1, -1, -1,
+ -1, -1, -1, 116, 117, -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, 3, 4, -1, -1, 7,
+ -1, 154, 10, 156, 12, 13, 14, 15, 16, 17,
+ 18, -1, 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, 65, 66, 67,
+ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
+ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
+ 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
+ 98, 99, 100, 101, 102, -1, -1, -1, -1, -1,
+ -1, 109, -1, -1, -1, -1, -1, -1, 116, 117,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 5, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 16, 17, -1, 154, -1, 156, 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, 65, 66, 67, 68, 69, 70, 71, 72,
+ 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
+ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
+ 93, 94, 95, -1, -1, -1, 99, 100, -1, -1,
+ 103, 104, 105, 106, -1, 108, 109, -1, -1, -1,
+ -1, -1, -1, 116, 117, -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,
+ 143, -1, -1, -1, 147, 148, 5, -1, -1, 152,
+ -1, 154, -1, 156, 157, -1, -1, 16, 17, -1,
+ -1, -1, -1, 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, 65, 66, 67, 68,
+ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
+ 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
+ 89, 90, 91, 92, 93, 94, 95, -1, -1, -1,
+ 99, 100, -1, -1, 103, 104, 105, 106, -1, 108,
+ 109, -1, -1, -1, -1, -1, -1, 116, 117, -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, 143, 5, -1, -1, 147, 148,
+ -1, -1, -1, 152, -1, 154, 16, 17, 157, -1,
+ -1, -1, 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, 65, 66, 67, 68, 69,
+ 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
+ 90, 91, 92, 93, 94, 95, -1, -1, -1, 99,
+ 100, -1, -1, 103, 104, 105, 106, -1, 108, 109,
+ -1, -1, -1, -1, -1, -1, 116, 117, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 5, -1, 143, -1, -1, -1, 147, 148, -1,
+ -1, -1, 16, 17, -1, -1, -1, 157, 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, 65, 66, 67, 68, 69, 70, 71, 72, 73,
+ 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
+ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
+ 94, 95, -1, -1, -1, 99, 100, -1, -1, 103,
+ 104, 105, 106, -1, 108, 109, -1, -1, -1, -1,
+ -1, -1, 116, 117, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 5, -1, 143,
+ -1, -1, -1, 147, 148, -1, -1, -1, 16, 17,
+ -1, -1, -1, 157, 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, 65, 66, 67,
+ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
+ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
+ 88, 89, 90, 91, 92, 93, 94, 95, -1, -1,
+ -1, 99, 100, -1, -1, 103, 104, 105, 106, -1,
+ 108, 109, -1, -1, -1, -1, -1, -1, 116, 117,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 5, -1, 143, -1, -1, -1, 147,
+ 148, -1, -1, -1, 16, 17, -1, -1, -1, 157,
+ 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, 65, 66, 67, 68, 69, 70, 71,
+ 72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
+ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
+ 92, 93, 94, 95, -1, -1, -1, 99, 100, -1,
+ -1, 103, 104, 105, 106, -1, 108, 109, -1, -1,
+ -1, -1, -1, -1, 116, 117, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 5,
+ -1, 143, -1, -1, -1, 147, 148, -1, -1, -1,
+ 16, 17, -1, -1, -1, 157, 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, 65,
+ 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
+ 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
+ 86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
+ -1, -1, -1, 99, 100, -1, -1, 103, 104, 105,
+ 106, -1, 108, 109, -1, -1, -1, -1, -1, -1,
+ 116, 117, -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, 143, -1, -1,
+ -1, 147, 148, -1, 15, 16, 17, 18, -1, 20,
+ -1, 157, 23, 24, -1, 26, -1, 28, 29, 30,
+ 31, -1, -1, -1, -1, -1, -1, 57, -1, 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, 65, 66, 67, 68, 69, 70,
+ 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
+ 110, 111, 112, 113, 114, 115, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 125, 126, 127, -1, -1,
+ -1, -1, -1, -1, -1, 135, -1, 137, 138, 139,
+ 140, 141, 142, 143, 144, 145, 146, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 158, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 16, 17,
+ -1, -1, -1, -1, 155, 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, 65, 66, 67,
+ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
+ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
+ 88, 89, 90, 91, 92, 93, 94, 95, -1, -1,
+ -1, 99, 100, -1, -1, -1, -1, -1, -1, -1,
+ -1, 109, -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, 15, 16, 17, -1, -1, 155, 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, 65, 66, 67, 68, 69, 70, 71, 72,
+ 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
+ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
+ 93, 94, 95, 96, 97, 98, 99, 100, 101, 102,
+ -1, -1, -1, -1, -1, -1, 109, -1, -1, 15,
+ 16, 17, -1, 116, 117, 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, 65,
+ 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
+ 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
+ 86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
+ 96, 97, 98, 99, 100, 101, 102, 57, -1, -1,
+ -1, -1, -1, 109, -1, -1, -1, -1, -1, -1,
+ 116, 117, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 57, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 110, 111, 112, 113, 114, 115, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 125, 126, 127, -1, -1,
+ -1, 57, -1, -1, -1, 135, -1, 137, 138, 139,
+ 140, 141, 142, 143, 144, 145, 146, 110, 111, 112,
+ 113, 114, 115, -1, -1, -1, -1, -1, 158, -1,
+ -1, -1, 125, 126, 127, -1, -1, -1, 57, -1,
+ -1, -1, 135, -1, 137, 138, 139, 140, 141, 142,
+ 143, 144, 145, 146, 110, 111, 112, 113, 114, 115,
+ -1, -1, -1, -1, -1, 158, -1, -1, -1, 125,
+ 126, 127, -1, -1, -1, 57, -1, -1, -1, 135,
+ -1, 137, 138, 139, 140, 141, 142, 143, 144, 145,
+ 146, 110, 111, 112, 113, 114, 115, -1, -1, -1,
+ -1, -1, 158, -1, -1, -1, 125, 126, 127, -1,
+ -1, -1, 57, -1, -1, -1, 135, -1, 137, 138,
+ 139, 140, 141, 142, 143, 144, 145, 146, 110, 111,
+ 112, 113, 114, 115, -1, -1, -1, -1, -1, 158,
+ -1, -1, -1, 125, 126, 127, -1, -1, -1, 57,
+ -1, -1, -1, 135, -1, 137, 138, 139, 140, 141,
+ 142, 143, 144, 145, 146, 110, 111, 112, 113, 114,
+ 115, -1, -1, -1, -1, -1, 158, -1, -1, -1,
+ 125, 126, 127, -1, -1, -1, 57, -1, -1, -1,
+ 135, -1, 137, 138, 139, 140, 141, 142, 143, 144,
+ 145, 146, 110, 111, 112, 113, 114, 115, -1, -1,
+ -1, -1, -1, 158, -1, -1, -1, 125, 126, 127,
+ -1, -1, -1, 57, -1, -1, -1, 135, -1, 137,
+ 138, 139, 140, 141, 142, 143, 144, 145, 146, 110,
+ 111, 112, 113, 114, 115, -1, -1, -1, -1, -1,
+ 158, -1, -1, -1, 125, 126, 127, -1, -1, -1,
+ 57, -1, -1, -1, 135, -1, 137, 138, 139, 140,
+ 141, 142, 143, 144, 145, 146, 110, 111, 112, 113,
+ 114, 115, -1, -1, -1, -1, -1, 158, -1, -1,
+ -1, 125, 126, 127, -1, -1, -1, 57, -1, -1,
+ -1, 135, -1, 137, 138, 139, 140, 141, 142, 143,
+ 144, 145, 146, 110, 111, 112, 113, 114, 115, -1,
+ -1, -1, -1, -1, 158, -1, -1, -1, 125, 126,
+ 127, -1, -1, -1, 57, -1, -1, -1, 135, -1,
+ 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
+ 110, 111, 112, 113, 114, 115, -1, -1, -1, -1,
+ -1, 158, -1, -1, -1, 125, 126, 127, -1, -1,
+ -1, 57, -1, -1, -1, 135, -1, 137, 138, 139,
+ 140, 141, 142, 143, 144, 145, 146, 110, 111, 112,
+ 113, 114, 115, -1, -1, -1, -1, -1, 158, -1,
+ -1, -1, 125, 126, 127, -1, -1, -1, 57, -1,
+ -1, -1, 135, -1, 137, 138, 139, 140, 141, 142,
+ 143, 144, 145, 146, 110, 111, 112, 113, 114, 115,
+ -1, -1, -1, -1, -1, 158, -1, -1, -1, 125,
+ 126, 127, -1, -1, -1, 57, -1, -1, -1, 135,
+ -1, 137, 138, 139, 140, 141, 142, 143, 144, 145,
+ 146, 110, 111, 112, 113, 114, 115, -1, -1, -1,
+ -1, -1, 158, -1, -1, -1, 125, 126, 127, -1,
+ -1, -1, 57, -1, -1, -1, 135, -1, 137, 138,
+ 139, 140, 141, 142, 143, 144, 145, 146, 110, 111,
+ 112, 113, 114, 115, 153, -1, -1, -1, -1, -1,
+ -1, -1, -1, 125, 126, 127, -1, -1, -1, 57,
+ -1, -1, -1, 135, -1, 137, 138, 139, 140, 141,
+ 142, 143, 144, 145, 146, 110, 111, 112, 113, 114,
+ 115, 153, -1, -1, -1, -1, -1, -1, -1, -1,
+ 125, 126, 127, -1, -1, -1, -1, -1, -1, -1,
+ 135, -1, 137, 138, 139, 140, 141, 142, 143, 144,
+ 145, 146, 110, 111, 112, 113, 114, 115, 153, -1,
+ -1, -1, -1, -1, -1, -1, -1, 125, 126, 127,
+ -1, -1, -1, -1, -1, -1, -1, 135, -1, 137,
+ 138, 139, 140, 141, 142, 143, 144, 145, 146, 16,
+ 17, -1, -1, 151, 152, 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, 65, 66,
+ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
+ 77, 78, 79, 80, 81, 82, 83, 84, 85, 86,
+ 87, 88, 89, 90, 91, 92, 93, 94, 95, -1,
+ -1, -1, 99, 100, -1, -1, -1, 16, 17, -1,
+ -1, -1, 109, 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, 65, 66, 67, 68,
+ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
+ 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
+ 89, 90, 91, 92, 93, 94, 95, -1, -1, -1,
+ 99, 100, -1, -1, 16, 17, -1, -1, -1, -1,
+ 109, 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, 65, 66, 67, 68, 69, 70, 71,
+ 72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
+ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
+ 92, 93, 94, 95, -1, -1, -1, 99, 100, -1,
+ -1, 16, 17, -1, -1, -1, -1, 109, 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,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
+ 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
+ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
+ 95, 57, -1, -1, 99, 100, -1, -1, -1, -1,
+ -1, -1, -1, -1, 109, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 57, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 110, 111, 112, 113, 114, 115,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 125,
+ 126, 127, -1, -1, -1, 57, 132, -1, -1, 135,
+ -1, 137, 138, 139, 140, 141, 142, 143, 144, 145,
+ 146, 110, 111, 112, 113, 114, 115, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 125, 126, 127, -1,
+ -1, -1, 57, 132, -1, -1, 135, -1, 137, 138,
+ 139, 140, 141, 142, 143, 144, 145, 146, 110, 111,
+ 112, 113, 114, 115, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 125, 126, 127, -1, -1, -1, 57,
+ 132, -1, -1, 135, -1, 137, 138, 139, 140, 141,
+ 142, 143, 144, 145, 146, 110, 111, 112, 113, 114,
+ 115, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 125, 126, 127, -1, -1, -1, 57, 132, -1, -1,
+ 135, -1, 137, 138, 139, 140, 141, 142, 143, 144,
+ 145, 146, 110, 111, 112, 113, 114, 115, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 125, 126, 127,
+ -1, -1, -1, 57, 132, -1, -1, 135, -1, 137,
+ 138, 139, 140, 141, 142, 143, 144, 145, 146, 110,
+ 111, 112, 113, 114, 115, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 125, 126, 127, -1, -1, -1,
+ 57, 132, -1, -1, 135, -1, 137, 138, 139, 140,
+ 141, 142, 143, 144, 145, 146, 110, 111, 112, 113,
+ 114, 115, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 125, 126, 127, -1, -1, -1, 57, 132, -1,
+ -1, 135, -1, 137, 138, 139, 140, 141, 142, 143,
+ 144, 145, 146, 110, 111, 112, 113, 114, 115, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 125, 126,
+ 127, -1, -1, -1, 57, 132, -1, -1, 135, -1,
+ 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
+ 110, 111, 112, 113, 114, 115, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 125, 126, 127, -1, -1,
+ -1, 57, -1, -1, -1, 135, 136, 137, 138, 139,
+ 140, 141, 142, 143, 144, 145, 146, 110, 111, 112,
+ 113, 114, 115, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 125, 126, 127, -1, -1, -1, 57, 132,
+ -1, -1, 135, -1, 137, 138, 139, 140, 141, 142,
+ 143, 144, 145, 146, 110, 111, 112, 113, 114, 115,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 125,
+ 126, 127, -1, -1, -1, 57, 132, -1, -1, 135,
+ -1, 137, 138, 139, 140, 141, 142, 143, 144, 145,
+ 146, 110, 111, 112, 113, 114, 115, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 125, 126, 127, -1,
+ -1, -1, 57, 132, -1, -1, 135, -1, 137, 138,
+ 139, 140, 141, 142, 143, 144, 145, 146, 110, 111,
+ 112, 113, 114, 115, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 125, 126, 127, -1, -1, -1, 57,
+ 132, -1, -1, 135, -1, 137, 138, 139, 140, 141,
+ 142, 143, 144, 145, 146, 110, 111, 112, 113, 114,
+ 115, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 125, 126, 127, -1, -1, -1, 57, -1, -1, -1,
+ 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
+ 145, 146, 110, 111, 112, 113, 114, 115, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 125, 126, 127,
+ -1, -1, -1, 57, 132, -1, -1, 135, -1, 137,
+ 138, 139, 140, 141, 142, 143, 144, 145, 146, 110,
+ 111, 112, 113, 114, 115, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 125, 126, 127, -1, -1, -1,
+ 57, 132, -1, -1, 135, -1, 137, 138, 139, 140,
+ 141, 142, 143, 144, 145, 146, 110, 111, 112, 113,
+ 114, 115, 57, -1, -1, -1, -1, -1, -1, -1,
+ -1, 125, 126, 127, -1, -1, -1, -1, -1, -1,
+ -1, 135, -1, 137, 138, 139, 140, 141, 142, 143,
+ 144, 145, 146, 110, 111, 112, 113, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 125, 126,
+ 127, -1, -1, -1, -1, -1, 111, 112, -1, -1,
+ 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
+ 125, 126, 127, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 137, 138, 139, 140, 141, 142, 143, 144,
+ 145, 146, 15, 16, 17, 18, 19, 20, -1, -1,
+ 23, 24, -1, 26, -1, 28, 29, 30, 31, -1,
+ -1, -1, -1, -1, -1, -1, -1, 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, 65, 66, 67, 68, 69, 70, 71, 72,
+ 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
+ 83, 84, 85, 86, 87, 88, 89, 90, 15, 16,
+ 17, 18, -1, 20, -1, -1, 23, 24, -1, 26,
+ -1, 28, 29, 30, 31, -1, -1, -1, -1, -1,
+ -1, -1, -1, 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, 65, 66,
+ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
+ 77, 78, 79, 80, 81, 82, 83, 84, 85, 86,
+ 87, 88, 89, 90
+};
+
+/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+ symbol of state STATE-NUM. */
+static const unsigned char yystos[] =
+{
+ 0, 160, 161, 0, 3, 4, 5, 7, 10, 12,
+ 13, 14, 15, 16, 17, 18, 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, 65, 66, 67, 68, 69, 70, 71, 72, 73,
+ 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
+ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
+ 94, 95, 96, 97, 98, 99, 100, 101, 102, 109,
+ 116, 117, 154, 156, 162, 163, 165, 166, 167, 168,
+ 170, 172, 173, 176, 178, 179, 181, 182, 185, 187,
+ 188, 191, 192, 195, 199, 200, 201, 207, 156, 156,
+ 157, 157, 17, 23, 24, 25, 26, 28, 29, 30,
+ 31, 32, 33, 34, 35, 36, 37, 38, 39, 56,
+ 78, 82, 83, 94, 95, 99, 100, 109, 176, 205,
+ 206, 109, 192, 195, 200, 201, 16, 103, 104, 105,
+ 106, 108, 109, 143, 147, 148, 152, 154, 156, 157,
+ 165, 178, 192, 194, 195, 199, 200, 201, 202, 203,
+ 204, 157, 154, 157, 157, 157, 157, 157, 157, 157,
+ 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
+ 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
+ 157, 157, 157, 157, 155, 164, 166, 163, 157, 176,
+ 157, 166, 201, 151, 152, 118, 119, 120, 121, 122,
+ 123, 124, 128, 129, 130, 133, 134, 198, 199, 156,
+ 15, 169, 176, 186, 207, 202, 133, 132, 157, 151,
+ 152, 176, 104, 105, 202, 202, 202, 193, 203, 176,
+ 196, 197, 202, 157, 201, 133, 199, 57, 110, 111,
+ 112, 113, 114, 115, 125, 126, 127, 135, 137, 138,
+ 139, 140, 141, 142, 143, 144, 145, 146, 156, 202,
+ 208, 202, 202, 158, 203, 202, 203, 202, 202, 202,
+ 202, 108, 158, 158, 158, 158, 158, 158, 203, 202,
+ 202, 202, 202, 202, 202, 202, 202, 202, 158, 104,
+ 108, 202, 108, 202, 193, 155, 166, 202, 157, 202,
+ 13, 176, 202, 203, 202, 176, 132, 11, 156, 158,
+ 203, 206, 193, 109, 202, 157, 132, 153, 136, 132,
+ 155, 158, 176, 177, 203, 200, 202, 202, 202, 202,
+ 202, 202, 202, 202, 202, 202, 202, 202, 202, 202,
+ 202, 202, 202, 202, 202, 202, 158, 15, 16, 17,
+ 18, 20, 23, 24, 26, 28, 29, 30, 31, 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, 65, 66, 67, 68, 69, 70,
+ 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
+ 209, 210, 214, 158, 158, 158, 132, 158, 158, 158,
+ 158, 132, 132, 158, 132, 132, 158, 132, 132, 132,
+ 132, 158, 132, 158, 158, 158, 158, 158, 158, 158,
+ 177, 158, 157, 157, 153, 11, 207, 176, 180, 192,
+ 195, 202, 171, 202, 166, 158, 153, 193, 203, 203,
+ 196, 132, 158, 136, 154, 211, 215, 107, 108, 108,
+ 155, 214, 202, 202, 108, 202, 202, 202, 202, 104,
+ 190, 202, 190, 202, 154, 158, 166, 202, 193, 157,
+ 180, 158, 151, 152, 156, 6, 158, 176, 166, 202,
+ 164, 209, 103, 104, 105, 106, 107, 108, 212, 213,
+ 158, 132, 189, 158, 132, 132, 189, 189, 189, 189,
+ 132, 158, 174, 166, 158, 158, 193, 158, 184, 176,
+ 202, 186, 166, 155, 19, 132, 92, 93, 108, 158,
+ 202, 202, 158, 158, 158, 158, 202, 8, 9, 155,
+ 175, 158, 184, 166, 153, 158, 212, 158, 158, 132,
+ 202, 136, 166, 183, 202, 136, 164, 166, 132, 164,
+ 202, 3, 132, 156, 202, 158
+};
+
+#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
+# define YYSIZE_T __SIZE_TYPE__
+#endif
+#if ! defined (YYSIZE_T) && defined (size_t)
+# define YYSIZE_T size_t
+#endif
+#if ! defined (YYSIZE_T)
+# if defined (__STDC__) || defined (__cplusplus)
+# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# endif
+#endif
+#if ! defined (YYSIZE_T)
+# define YYSIZE_T unsigned int
+#endif
+
+#define yyerrok (yyerrstatus = 0)
+#define yyclearin (yychar = YYEMPTY)
+#define YYEMPTY (-2)
+#define YYEOF 0
+
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrlab1
+
+
+/* Like YYERROR except do call yyerror. This remains here temporarily
+ to ease the transition to the new meaning of YYERROR, for GCC.
+ Once GCC version 2 has supplanted version 1, this can go. */
+
+#define YYFAIL goto yyerrlab
+
+#define YYRECOVERING() (!!yyerrstatus)
+
+#define YYBACKUP(Token, Value) \
+do \
+ if (yychar == YYEMPTY && yylen == 1) \
+ { \
+ yychar = (Token); \
+ yylval = (Value); \
+ yytoken = YYTRANSLATE (yychar); \
+ YYPOPSTACK; \
+ goto yybackup; \
+ } \
+ else \
+ { \
+ yyerror ("syntax error: cannot back up");\
+ YYERROR; \
+ } \
+while (0)
+
+#define YYTERROR 1
+#define YYERRCODE 256
+
+/* YYLLOC_DEFAULT -- Compute the default location (before the actions
+ are run). */
+
+#ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ Current.first_line = Rhs[1].first_line; \
+ Current.first_column = Rhs[1].first_column; \
+ Current.last_line = Rhs[N].last_line; \
+ Current.last_column = Rhs[N].last_column;
+#endif
+
+/* YYLEX -- calling `yylex' with the right arguments. */
+
+#ifdef YYLEX_PARAM
+# define YYLEX yylex (YYLEX_PARAM)
+#else
+# define YYLEX yylex ()
+#endif
+
+/* Enable debugging if requested. */
+#if YYDEBUG
+
+# ifndef YYFPRINTF
+# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
+# define YYFPRINTF fprintf
+# endif
+
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (0)
+
+# define YYDSYMPRINT(Args) \
+do { \
+ if (yydebug) \
+ yysymprint Args; \
+} while (0)
+
+# define YYDSYMPRINTF(Title, Token, Value, Location) \
+do { \
+ if (yydebug) \
+ { \
+ YYFPRINTF (stderr, "%s ", Title); \
+ yysymprint (stderr, \
+ Token, Value); \
+ YYFPRINTF (stderr, "\n"); \
+ } \
+} while (0)
+
+/*------------------------------------------------------------------.
+| yy_stack_print -- Print the state stack from its BOTTOM up to its |
+| TOP (cinluded). |
+`------------------------------------------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yy_stack_print (short *bottom, short *top)
+#else
+static void
+yy_stack_print (bottom, top)
+ short *bottom;
+ short *top;
+#endif
+{
+ YYFPRINTF (stderr, "Stack now");
+ for (/* Nothing. */; bottom <= top; ++bottom)
+ YYFPRINTF (stderr, " %d", *bottom);
+ YYFPRINTF (stderr, "\n");
+}
+
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (0)
+
+
+/*------------------------------------------------.
+| Report that the YYRULE is going to be reduced. |
+`------------------------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yy_reduce_print (int yyrule)
+#else
+static void
+yy_reduce_print (yyrule)
+ int yyrule;
+#endif
+{
+ int yyi;
+ unsigned int yylineno = yyrline[yyrule];
+ YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
+ yyrule - 1, yylineno);
+ /* Print the symbols being reduced, and their result. */
+ for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
+ YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
+ YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
+}
+
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (Rule); \
+} while (0)
+
+/* Nonzero means print parse trace. It is left uninitialized so that
+ multiple parsers can coexist. */
+int yydebug;
+#else /* !YYDEBUG */
+# define YYDPRINTF(Args)
+# define YYDSYMPRINT(Args)
+# define YYDSYMPRINTF(Title, Token, Value, Location)
+# define YY_STACK_PRINT(Bottom, Top)
+# define YY_REDUCE_PRINT(Rule)
+#endif /* !YYDEBUG */
+
+
+/* YYINITDEPTH -- initial size of the parser's stacks. */
+#ifndef YYINITDEPTH
+# define YYINITDEPTH 200
+#endif
+
+/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
+ if the built-in stack extension method is used).
+
+ Do not make this value too large; the results are undefined if
+ SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
+ evaluated with infinite-precision integer arithmetic. */
+
+#if YYMAXDEPTH == 0
+# undef YYMAXDEPTH
+#endif
+
+#ifndef YYMAXDEPTH
+# define YYMAXDEPTH 10000
+#endif
+
+
+
+#if YYERROR_VERBOSE
+
+# ifndef yystrlen
+# if defined (__GLIBC__) && defined (_STRING_H)
+# define yystrlen strlen
+# else
+/* Return the length of YYSTR. */
+static YYSIZE_T
+# if defined (__STDC__) || defined (__cplusplus)
+yystrlen (const char *yystr)
+# else
+yystrlen (yystr)
+ const char *yystr;
+# endif
+{
+ register const char *yys = yystr;
+
+ while (*yys++ != '\0')
+ continue;
+
+ return yys - yystr - 1;
+}
+# endif
+# endif
+
+# ifndef yystpcpy
+# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
+# define yystpcpy stpcpy
+# else
+/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
+ YYDEST. */
+static char *
+# if defined (__STDC__) || defined (__cplusplus)
+yystpcpy (char *yydest, const char *yysrc)
+# else
+yystpcpy (yydest, yysrc)
+ char *yydest;
+ const char *yysrc;
+# endif
+{
+ register char *yyd = yydest;
+ register const char *yys = yysrc;
+
+ while ((*yyd++ = *yys++) != '\0')
+ continue;
+
+ return yyd - 1;
+}
+# endif
+# endif
+
+#endif /* !YYERROR_VERBOSE */
+
+
+
+#if YYDEBUG
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
+#else
+static void
+yysymprint (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE *yyvaluep;
+#endif
+{
+ /* Pacify ``unused variable'' warnings. */
+ (void) yyvaluep;
+
+ if (yytype < YYNTOKENS)
+ {
+ YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+# ifdef YYPRINT
+ YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+# endif
+ }
+ else
+ YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
+
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+ YYFPRINTF (yyoutput, ")");
+}
+
+#endif /* ! YYDEBUG */
+/*-----------------------------------------------.
+| Release the memory associated to this symbol. |
+`-----------------------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yydestruct (int yytype, YYSTYPE *yyvaluep)
+#else
+static void
+yydestruct (yytype, yyvaluep)
+ int yytype;
+ YYSTYPE *yyvaluep;
+#endif
+{
+ /* Pacify ``unused variable'' warnings. */
+ (void) yyvaluep;
+
+ switch (yytype)
+ {
+
+ default:
+ break;
+ }
+}
+
+
+/* Prevent warnings from -Wmissing-prototypes. */
+
+#ifdef YYPARSE_PARAM
+# if defined (__STDC__) || defined (__cplusplus)
+int yyparse (void *YYPARSE_PARAM);
+# else
+int yyparse ();
+# endif
+#else /* ! YYPARSE_PARAM */
+#if defined (__STDC__) || defined (__cplusplus)
+int yyparse (void);
+#else
+int yyparse ();
+#endif
+#endif /* ! YYPARSE_PARAM */
+
+
+
+/* The lookahead symbol. */
+int yychar;
+
+/* The semantic value of the lookahead symbol. */
+YYSTYPE yylval;
+
+/* Number of syntax errors so far. */
+int yynerrs;
+
+
+
+/*----------.
+| yyparse. |
+`----------*/
+
+#ifdef YYPARSE_PARAM
+# if defined (__STDC__) || defined (__cplusplus)
+int yyparse (void *YYPARSE_PARAM)
+# else
+int yyparse (YYPARSE_PARAM)
+ void *YYPARSE_PARAM;
+# endif
+#else /* ! YYPARSE_PARAM */
+#if defined (__STDC__) || defined (__cplusplus)
+int
+yyparse (void)
+#else
+int
+yyparse ()
+
+#endif
+#endif
+{
+
+ register int yystate;
+ register int yyn;
+ int yyresult;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
+ /* Lookahead token as an internal (translated) token number. */
+ int yytoken = 0;
+
+ /* Three stacks and their tools:
+ `yyss': related to states,
+ `yyvs': related to semantic values,
+ `yyls': related to locations.
+
+ Refer to the stacks thru separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+
+ /* The state stack. */
+ short yyssa[YYINITDEPTH];
+ short *yyss = yyssa;
+ register short *yyssp;
+
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs = yyvsa;
+ register YYSTYPE *yyvsp;
+
+
+
+#define YYPOPSTACK (yyvsp--, yyssp--)
+
+ YYSIZE_T yystacksize = YYINITDEPTH;
+
+ /* The variables used to return semantic value and location from the
+ action routines. */
+ YYSTYPE yyval;
+
+
+ /* When reducing, the number of symbols on the RHS of the reduced
+ rule. */
+ int yylen;
+
+ YYDPRINTF ((stderr, "Starting parse\n"));
+
+ yystate = 0;
+ yyerrstatus = 0;
+ yynerrs = 0;
+ yychar = YYEMPTY; /* Cause a token to be read. */
+
+ /* Initialize stack pointers.
+ Waste one element of value and location stack
+ so that they stay on the same level as the state stack.
+ The wasted elements are never initialized. */
+
+ yyssp = yyss;
+ yyvsp = yyvs;
+
+ goto yysetstate;
+
+/*------------------------------------------------------------.
+| yynewstate -- Push a new state, which is found in yystate. |
+`------------------------------------------------------------*/
+ yynewstate:
+ /* In all cases, when you get here, the value and location stacks
+ have just been pushed. so pushing a state here evens the stacks.
+ */
+ yyssp++;
+
+ yysetstate:
+ *yyssp = yystate;
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ {
+ /* Get the current used size of the three stacks, in elements. */
+ YYSIZE_T yysize = yyssp - yyss + 1;
+
+#ifdef yyoverflow
+ {
+ /* Give user a chance to reallocate the stack. Use copies of
+ these so that the &'s don't force the real ones into
+ memory. */
+ YYSTYPE *yyvs1 = yyvs;
+ short *yyss1 = yyss;
+
+
+ /* Each stack pointer address is followed by the size of the
+ data in use in that stack, in bytes. This used to be a
+ conditional around just the two extra args, but that might
+ be undefined if yyoverflow is a macro. */
+ yyoverflow ("parser stack overflow",
+ &yyss1, yysize * sizeof (*yyssp),
+ &yyvs1, yysize * sizeof (*yyvsp),
+
+ &yystacksize);
+
+ yyss = yyss1;
+ yyvs = yyvs1;
+ }
+#else /* no yyoverflow */
+# ifndef YYSTACK_RELOCATE
+ goto yyoverflowlab;
+# else
+ /* Extend the stack our own way. */
+ if (YYMAXDEPTH <= yystacksize)
+ goto yyoverflowlab;
+ yystacksize *= 2;
+ if (YYMAXDEPTH < yystacksize)
+ yystacksize = YYMAXDEPTH;
+
+ {
+ short *yyss1 = yyss;
+ union yyalloc *yyptr =
+ (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
+ if (! yyptr)
+ goto yyoverflowlab;
+ YYSTACK_RELOCATE (yyss);
+ YYSTACK_RELOCATE (yyvs);
+
+# undef YYSTACK_RELOCATE
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
+ }
+# endif
+#endif /* no yyoverflow */
+
+ yyssp = yyss + yysize - 1;
+ yyvsp = yyvs + yysize - 1;
+
+
+ YYDPRINTF ((stderr, "Stack size increased to %lu\n",
+ (unsigned long int) yystacksize));
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ YYABORT;
+ }
+
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+
+ goto yybackup;
+
+/*-----------.
+| yybackup. |
+`-----------*/
+yybackup:
+
+/* Do appropriate processing given the current state. */
+/* Read a lookahead token if we need one and don't already have one. */
+/* yyresume: */
+
+ /* First try to decide what to do without reference to lookahead token. */
+
+ yyn = yypact[yystate];
+ if (yyn == YYPACT_NINF)
+ goto yydefault;
+
+ /* Not known => get a lookahead token if don't already have one. */
+
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
+ if (yychar == YYEMPTY)
+ {
+ YYDPRINTF ((stderr, "Reading a token: "));
+ yychar = YYLEX;
+ }
+
+ if (yychar <= YYEOF)
+ {
+ yychar = yytoken = YYEOF;
+ YYDPRINTF ((stderr, "Now at end of input.\n"));
+ }
+ else
+ {
+ yytoken = YYTRANSLATE (yychar);
+ YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
+ }
+
+ /* If the proper action on seeing token YYTOKEN is to reduce or to
+ detect an error, take that action. */
+ yyn += yytoken;
+ if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
+ goto yydefault;
+ yyn = yytable[yyn];
+ if (yyn <= 0)
+ {
+ if (yyn == 0 || yyn == YYTABLE_NINF)
+ goto yyerrlab;
+ yyn = -yyn;
+ goto yyreduce;
+ }
+
+ if (yyn == YYFINAL)
+ YYACCEPT;
+
+ /* Shift the lookahead token. */
+ YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
+
+ /* Discard the token being shifted unless it is eof. */
+ if (yychar != YYEOF)
+ yychar = YYEMPTY;
+
+ *++yyvsp = yylval;
+
+
+ /* Count tokens shifted since error; after three, turn off error
+ status. */
+ if (yyerrstatus)
+ yyerrstatus--;
+
+ yystate = yyn;
+ goto yynewstate;
+
+
+/*-----------------------------------------------------------.
+| yydefault -- do the default action for the current state. |
+`-----------------------------------------------------------*/
+yydefault:
+ yyn = yydefact[yystate];
+ if (yyn == 0)
+ goto yyerrlab;
+ goto yyreduce;
+
+
+/*-----------------------------.
+| yyreduce -- Do a reduction. |
+`-----------------------------*/
+yyreduce:
+ /* yyn is the number of a rule to reduce with. */
+ yylen = yyr2[yyn];
+
+ /* If YYLEN is nonzero, implement the default value of the action:
+ `$$ = $1'.
+
+ Otherwise, the following line sets YYVAL to garbage.
+ This behavior is undocumented and Bison
+ users should not rely upon it. Assigning to YYVAL
+ unconditionally makes the parser a bit smaller, and it avoids a
+ GCC warning that YYVAL may be used uninitialized. */
+ yyval = yyvsp[1-yylen];
+
+
+ YY_REDUCE_PRINT (yyn);
+ switch (yyn)
+ {
+ case 2:
+#line 152 "swf5compiler.y"
+ { bf = newBuffer();
+ bc = newBuffer();
+ ;}
+ break;
+
+ case 3:
+#line 155 "swf5compiler.y"
+ { Buffer b = newBuffer();
+ bufferWriteConstants(b);
+ bufferConcat(b, bf);
+ bufferConcat(b, bc);
+ *((Buffer *)buffer) = b; ;}
+ break;
+
+ case 4:
+#line 160 "swf5compiler.y"
+ { Buffer b = newBuffer(); *((Buffer *)buffer) = b; ;}
+ break;
+
+ case 7:
+#line 170 "swf5compiler.y"
+ { bufferConcat(bc, yyvsp[0].action); ;}
+ break;
+
+ case 8:
+#line 172 "swf5compiler.y"
+ { bufferConcat(bf, yyvsp[0].action); ;}
+ break;
+
+ case 9:
+#line 177 "swf5compiler.y"
+ { yyval.action = yyvsp[0].action; ;}
+ break;
+
+ case 10:
+#line 180 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferConcat(yyval.action, yyvsp[0].action); ;}
+ break;
+
+ case 11:
+#line 185 "swf5compiler.y"
+ { ;}
+ break;
+
+ case 12:
+#line 189 "swf5compiler.y"
+ { yyval.action = NULL; ;}
+ break;
+
+ case 13:
+#line 190 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action; ;}
+ break;
+
+ case 14:
+#line 191 "swf5compiler.y"
+ { yyval.action = NULL; ;}
+ break;
+
+ case 15:
+#line 192 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action; ;}
+ break;
+
+ case 23:
+#line 204 "swf5compiler.y"
+ { yyval.action = yyvsp[-4].action;
+ bufferWriteOp(yyval.action, SWFACTION_WITH);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[-1].action));
+ bufferConcat(yyval.action, yyvsp[-1].action); ;}
+ break;
+
+ case 24:
+#line 215 "swf5compiler.y"
+ { int tmp = chkctx(CTX_FUNCTION);
+ if(tmp < 0)
+ swf5error("return outside function");
+ yyval.action = newBuffer();
+ while(--tmp >= 0)
+ bufferWriteOp(yyval.action, SWFACTION_POP);
+ bufferWriteNull(yyval.action);
+ bufferWriteOp(yyval.action, SWFACTION_RETURN); ;}
+ break;
+
+ case 25:
+#line 225 "swf5compiler.y"
+ { int tmp = chkctx(CTX_FUNCTION);
+ if(tmp < 0)
+ swf5error("return outside function");
+ yyval.action = newBuffer();
+ while(--tmp >= 0)
+ bufferWriteOp(yyval.action, SWFACTION_POP);
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteOp(yyval.action, SWFACTION_RETURN); ;}
+ break;
+
+ case 27:
+#line 237 "swf5compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action); ;}
+ break;
+
+ case 28:
+#line 242 "swf5compiler.y"
+ { yyval.action = yyvsp[-4].action;
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action)+5);
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[-2].action));
+ bufferConcat(yyval.action, yyvsp[-2].action); ;}
+ break;
+
+ case 29:
+#line 253 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferWriteOp(yyval.action, SWFACTION_LOGICALNOT);
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action));
+ bufferConcat(yyval.action, yyvsp[0].action); ;}
+ break;
+
+ case 30:
+#line 262 "swf5compiler.y"
+ { yyval.action = NULL; ;}
+ break;
+
+ case 31:
+#line 263 "swf5compiler.y"
+ { yyval.action = yyvsp[0].action; ;}
+ break;
+
+ case 32:
+#line 268 "swf5compiler.y"
+ { addctx(CTX_SWITCH); ;}
+ break;
+
+ case 33:
+#line 274 "swf5compiler.y"
+ { yyval.action = yyvsp[-4].action;
+ bufferResolveSwitch(yyval.action, &yyvsp[-1].switchcases);
+ bufferResolveJumps(yyval.action);
+ bufferWriteOp(yyval.action, SWFACTION_POP);
+ delctx(CTX_SWITCH);
+ /* FIXME: continue in switch continues surrounding loop, if any */
+ ;}
+ break;
+
+ case 34:
+#line 286 "swf5compiler.y"
+ { yyval.switchcases.count = 0;
+ yyval.switchcases.list = 0; ;}
+ break;
+
+ case 35:
+#line 290 "swf5compiler.y"
+ { yyval.switchcases = yyvsp[-1].switchcases;
+ yyval.switchcases.list = (struct switchcase*) realloc(yyval.switchcases.list, (yyval.switchcases.count+1) * sizeof(struct switchcase));
+ yyval.switchcases.list[yyval.switchcases.count] = yyvsp[0].switchcase;
+ yyval.switchcases.count++; ;}
+ break;
+
+ case 36:
+#line 298 "swf5compiler.y"
+ { yyval.switchcase.cond = yyvsp[-4].action;
+ yyval.switchcase.action = yyvsp[-2].action;
+ yyval.switchcase.isbreak = 1; ;}
+ break;
+
+ case 37:
+#line 303 "swf5compiler.y"
+ { yyval.switchcase.cond = yyvsp[-2].action;
+ yyval.switchcase.action = yyvsp[0].action;
+ yyval.switchcase.isbreak = 0; ;}
+ break;
+
+ case 38:
+#line 308 "swf5compiler.y"
+ { yyval.switchcase.cond = NULL;
+ yyval.switchcase.action = yyvsp[0].action;
+ yyval.switchcase.isbreak = 0; ;}
+ break;
+
+ case 40:
+#line 318 "swf5compiler.y"
+ { yyval.str = strdup("new"); ;}
+ break;
+
+ case 41:
+#line 319 "swf5compiler.y"
+ { yyval.str = strdup("delete"); ;}
+ break;
+
+ case 42:
+#line 320 "swf5compiler.y"
+ { yyval.str = strdup("random"); ;}
+ break;
+
+ case 43:
+#line 321 "swf5compiler.y"
+ { yyval.str = strdup("getTimer"); ;}
+ break;
+
+ case 44:
+#line 322 "swf5compiler.y"
+ { yyval.str = strdup("length"); ;}
+ break;
+
+ case 45:
+#line 323 "swf5compiler.y"
+ { yyval.str = strdup("concat"); ;}
+ break;
+
+ case 46:
+#line 324 "swf5compiler.y"
+ { yyval.str = strdup("substr"); ;}
+ break;
+
+ case 47:
+#line 325 "swf5compiler.y"
+ { yyval.str = strdup("trace"); ;}
+ break;
+
+ case 48:
+#line 326 "swf5compiler.y"
+ { yyval.str = strdup("int"); ;}
+ break;
+
+ case 49:
+#line 327 "swf5compiler.y"
+ { yyval.str = strdup("ord"); ;}
+ break;
+
+ case 50:
+#line 328 "swf5compiler.y"
+ { yyval.str = strdup("chr"); ;}
+ break;
+
+ case 51:
+#line 329 "swf5compiler.y"
+ { yyval.str = strdup("getURL"); ;}
+ break;
+
+ case 52:
+#line 330 "swf5compiler.y"
+ { yyval.str = strdup("getURL1"); ;}
+ break;
+
+ case 53:
+#line 331 "swf5compiler.y"
+ { yyval.str = strdup("nextFrame"); ;}
+ break;
+
+ case 54:
+#line 332 "swf5compiler.y"
+ { yyval.str = strdup("prevFrame"); ;}
+ break;
+
+ case 55:
+#line 333 "swf5compiler.y"
+ { yyval.str = strdup("play"); ;}
+ break;
+
+ case 56:
+#line 334 "swf5compiler.y"
+ { yyval.str = strdup("stop"); ;}
+ break;
+
+ case 57:
+#line 335 "swf5compiler.y"
+ { yyval.str = strdup("toggleQuality"); ;}
+ break;
+
+ case 58:
+#line 336 "swf5compiler.y"
+ { yyval.str = strdup("stopSounds"); ;}
+ break;
+
+ case 59:
+#line 337 "swf5compiler.y"
+ { yyval.str = strdup("dup"); ;}
+ break;
+
+ case 60:
+#line 338 "swf5compiler.y"
+ { yyval.str = strdup("swap"); ;}
+ break;
+
+ case 61:
+#line 339 "swf5compiler.y"
+ { yyval.str = strdup("pop"); ;}
+ break;
+
+ case 62:
+#line 340 "swf5compiler.y"
+ { yyval.str = strdup("push"); ;}
+ break;
+
+ case 63:
+#line 341 "swf5compiler.y"
+ { yyval.str = strdup("setRegister"); ;}
+ break;
+
+ case 64:
+#line 342 "swf5compiler.y"
+ { yyval.str = strdup("callFunction"); ;}
+ break;
+
+ case 65:
+#line 343 "swf5compiler.y"
+ { yyval.str = strdup("callMethod"); ;}
+ break;
+
+ case 66:
+#line 344 "swf5compiler.y"
+ { yyval.str = strdup("and"); ;}
+ break;
+
+ case 67:
+#line 345 "swf5compiler.y"
+ { yyval.str = strdup("or"); ;}
+ break;
+
+ case 68:
+#line 346 "swf5compiler.y"
+ { yyval.str = strdup("xor"); ;}
+ break;
+
+ case 69:
+#line 347 "swf5compiler.y"
+ { yyval.str = strdup("modulo"); ;}
+ break;
+
+ case 70:
+#line 348 "swf5compiler.y"
+ { yyval.str = strdup("add"); ;}
+ break;
+
+ case 71:
+#line 349 "swf5compiler.y"
+ { yyval.str = strdup("lessThan"); ;}
+ break;
+
+ case 72:
+#line 350 "swf5compiler.y"
+ { yyval.str = strdup("equals"); ;}
+ break;
+
+ case 73:
+#line 351 "swf5compiler.y"
+ { yyval.str = strdup("inc"); ;}
+ break;
+
+ case 74:
+#line 352 "swf5compiler.y"
+ { yyval.str = strdup("dec"); ;}
+ break;
+
+ case 75:
+#line 353 "swf5compiler.y"
+ { yyval.str = strdup("typeof"); ;}
+ break;
+
+ case 76:
+#line 354 "swf5compiler.y"
+ { yyval.str = strdup("instanceof"); ;}
+ break;
+
+ case 77:
+#line 355 "swf5compiler.y"
+ { yyval.str = strdup("enumerate"); ;}
+ break;
+
+ case 78:
+#line 356 "swf5compiler.y"
+ { yyval.str = strdup("initobject"); ;}
+ break;
+
+ case 79:
+#line 357 "swf5compiler.y"
+ { yyval.str = strdup("initarray"); ;}
+ break;
+
+ case 80:
+#line 358 "swf5compiler.y"
+ { yyval.str = strdup("getmember"); ;}
+ break;
+
+ case 81:
+#line 359 "swf5compiler.y"
+ { yyval.str = strdup("setmember"); ;}
+ break;
+
+ case 82:
+#line 360 "swf5compiler.y"
+ { yyval.str = strdup("shiftleft"); ;}
+ break;
+
+ case 83:
+#line 361 "swf5compiler.y"
+ { yyval.str = strdup("shiftright"); ;}
+ break;
+
+ case 84:
+#line 362 "swf5compiler.y"
+ { yyval.str = strdup("shiftright2"); ;}
+ break;
+
+ case 85:
+#line 363 "swf5compiler.y"
+ { yyval.str = strdup("varequals"); ;}
+ break;
+
+ case 86:
+#line 364 "swf5compiler.y"
+ { yyval.str = strdup("oldAdd"); ;}
+ break;
+
+ case 87:
+#line 365 "swf5compiler.y"
+ { yyval.str = strdup("subtract"); ;}
+ break;
+
+ case 88:
+#line 366 "swf5compiler.y"
+ { yyval.str = strdup("multiply"); ;}
+ break;
+
+ case 89:
+#line 367 "swf5compiler.y"
+ { yyval.str = strdup("divide"); ;}
+ break;
+
+ case 90:
+#line 368 "swf5compiler.y"
+ { yyval.str = strdup("oldequals"); ;}
+ break;
+
+ case 91:
+#line 369 "swf5compiler.y"
+ { yyval.str = strdup("oldlessthan"); ;}
+ break;
+
+ case 92:
+#line 370 "swf5compiler.y"
+ { yyval.str = strdup("logicaland"); ;}
+ break;
+
+ case 93:
+#line 371 "swf5compiler.y"
+ { yyval.str = strdup("logicalor"); ;}
+ break;
+
+ case 94:
+#line 372 "swf5compiler.y"
+ { yyval.str = strdup("not"); ;}
+ break;
+
+ case 95:
+#line 373 "swf5compiler.y"
+ { yyval.str = strdup("stringeq"); ;}
+ break;
+
+ case 96:
+#line 374 "swf5compiler.y"
+ { yyval.str = strdup("stringlength"); ;}
+ break;
+
+ case 97:
+#line 375 "swf5compiler.y"
+ { yyval.str = strdup("substring"); ;}
+ break;
+
+ case 98:
+#line 376 "swf5compiler.y"
+ { yyval.str = strdup("getvariable"); ;}
+ break;
+
+ case 99:
+#line 377 "swf5compiler.y"
+ { yyval.str = strdup("setvariable"); ;}
+ break;
+
+ case 100:
+#line 378 "swf5compiler.y"
+ { yyval.str = strdup("settargetexpression"); ;}
+ break;
+
+ case 101:
+#line 379 "swf5compiler.y"
+ { yyval.str = strdup("duplicatemovieclip"); ;}
+ break;
+
+ case 102:
+#line 380 "swf5compiler.y"
+ { yyval.str = strdup("removemovieclip"); ;}
+ break;
+
+ case 103:
+#line 381 "swf5compiler.y"
+ { yyval.str = strdup("startdrag"); ;}
+ break;
+
+ case 104:
+#line 382 "swf5compiler.y"
+ { yyval.str = strdup("stopdrag"); ;}
+ break;
+
+ case 105:
+#line 383 "swf5compiler.y"
+ { yyval.str = strdup("stringlessthan"); ;}
+ break;
+
+ case 106:
+#line 384 "swf5compiler.y"
+ { yyval.str = strdup("mblength"); ;}
+ break;
+
+ case 107:
+#line 385 "swf5compiler.y"
+ { yyval.str = strdup("mbsubstring"); ;}
+ break;
+
+ case 108:
+#line 386 "swf5compiler.y"
+ { yyval.str = strdup("mbord"); ;}
+ break;
+
+ case 109:
+#line 387 "swf5compiler.y"
+ { yyval.str = strdup("mbchr"); ;}
+ break;
+
+ case 110:
+#line 388 "swf5compiler.y"
+ { yyval.str = strdup("branchalways"); ;}
+ break;
+
+ case 111:
+#line 389 "swf5compiler.y"
+ { yyval.str = strdup("branchiftrue"); ;}
+ break;
+
+ case 112:
+#line 390 "swf5compiler.y"
+ { yyval.str = strdup("getURL2"); ;}
+ break;
+
+ case 113:
+#line 391 "swf5compiler.y"
+ { yyval.str = strdup("post"); ;}
+ break;
+
+ case 114:
+#line 392 "swf5compiler.y"
+ { yyval.str = strdup("get"); ;}
+ break;
+
+ case 115:
+#line 393 "swf5compiler.y"
+ { yyval.str = strdup("loadvariables"); ;}
+ break;
+
+ case 116:
+#line 394 "swf5compiler.y"
+ { yyval.str = strdup("loadmovie"); ;}
+ break;
+
+ case 117:
+#line 399 "swf5compiler.y"
+ { yyval.exprlist.buffer = newBuffer();
+ yyval.exprlist.count = 0; ;}
+ break;
+
+ case 118:
+#line 403 "swf5compiler.y"
+ { yyval.exprlist.buffer = newBuffer();
+ bufferWriteHardString(yyval.exprlist.buffer, (byte*)yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ yyval.exprlist.count = 1; ;}
+ break;
+
+ case 119:
+#line 408 "swf5compiler.y"
+ { yyval.exprlist = yyvsp[-2].exprlist;
+ bufferWriteHardString(yyval.exprlist.buffer, (byte*)yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ ++yyval.exprlist.count; ;}
+ break;
+
+ case 120:
+#line 415 "swf5compiler.y"
+ { addctx(CTX_FUNCTION); ;}
+ break;
+
+ case 121:
+#line 420 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_DEFINEFUNCTION);
+ bufferWriteS16(yyval.action, strlen(yyvsp[-4].str) +
+ bufferLength(yyvsp[-2].exprlist.buffer) + 5);
+ bufferWriteHardString(yyval.action, (byte*) yyvsp[-4].str, strlen(yyvsp[-4].str)+1);
+ bufferWriteS16(yyval.action, yyvsp[-2].exprlist.count);
+ bufferConcat(yyval.action, yyvsp[-2].exprlist.buffer);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action));
+ bufferConcat(yyval.action, yyvsp[0].action);
+ delctx(CTX_FUNCTION); ;}
+ break;
+
+ case 122:
+#line 434 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 123:
+#line 439 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 124:
+#line 445 "swf5compiler.y"
+ { yyval.action = yyvsp[-3].action;
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER); ;}
+ break;
+
+ case 127:
+#line 456 "swf5compiler.y"
+ { addctx(CTX_LOOP); ;}
+ break;
+
+ case 128:
+#line 461 "swf5compiler.y"
+ { addctx(CTX_LOOP); ;}
+ break;
+
+ case 129:
+#line 466 "swf5compiler.y"
+ { addctx(CTX_LOOP); ;}
+ break;
+
+ case 130:
+#line 471 "swf5compiler.y"
+ { addctx(CTX_FOR_IN); ;}
+ break;
+
+ case 131:
+#line 476 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferWriteOp(yyval.action, SWFACTION_LOGICALNOT);
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action)+5);
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, -(bufferLength(yyval.action)+2));
+ bufferResolveJumps(yyval.action);
+ delctx(CTX_LOOP); ;}
+ break;
+
+ case 132:
+#line 489 "swf5compiler.y"
+ { if(yyvsp[-4].action)
+ { yyval.action = yyvsp[-4].action;
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ }
+ else
+ yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, -(bufferLength(yyval.action)+2));
+ bufferResolveJumps(yyval.action);
+ delctx(CTX_LOOP); ;}
+ break;
+
+ case 133:
+#line 502 "swf5compiler.y"
+ {
+ if(yyvsp[-7].action)
+ yyval.action = yyvsp[-7].action;
+ else
+ yyval.action = newBuffer();
+
+ if(yyvsp[-3].action)
+ {
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[-3].action));
+ }
+ else
+ yyvsp[-3].action = newBuffer();
+
+ if(yyvsp[-5].action)
+ {
+ bufferConcat(yyvsp[-3].action, yyvsp[-5].action);
+ bufferWriteOp(yyvsp[-3].action, SWFACTION_LOGICALNOT);
+ bufferWriteOp(yyvsp[-3].action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyvsp[-3].action, 2);
+ bufferWriteS16(yyvsp[-3].action, bufferLength(yyvsp[0].action)+5);
+ }
+
+ bufferConcat(yyvsp[-3].action, yyvsp[0].action);
+ bufferWriteOp(yyvsp[-3].action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyvsp[-3].action, 2);
+ bufferWriteS16(yyvsp[-3].action, -(bufferLength(yyvsp[-3].action)+2));
+ bufferResolveJumps(yyvsp[-3].action);
+
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ delctx(CTX_LOOP);
+ ;}
+ break;
+
+ case 134:
+#line 537 "swf5compiler.y"
+ { Buffer b2, b3;
+ int tmp;
+
+ yyval.action = yyvsp[-3].action;
+ bufferWriteOp(yyval.action, SWFACTION_ENUMERATE);
+
+ b2 = newBuffer();
+ bufferWriteSetRegister(b2, 0);
+ bufferWriteOp(b2, SWFACTION_PUSHDATA);
+ bufferWriteS16(b2, 1);
+ bufferWriteU8(b2, 2);
+ bufferWriteOp(b2, SWFACTION_NEWEQUALS);
+ bufferWriteOp(b2, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(b2, 2);
+
+ b3 = newBuffer();
+/* basically a lvalue could be used here rather than an ident !!! */
+/* probably by using reg1 for the test rather than reg0 */
+ bufferWriteString(b3, yyvsp[-5].str, strlen(yyvsp[-5].str)+1);
+ bufferWriteRegister(b3, 0);
+ bufferWriteOp(b3, SWFACTION_SETVARIABLE);
+ bufferConcat(b3, yyvsp[0].action);
+ bufferWriteS16(b2, bufferLength(b3) + 5);
+ tmp = bufferLength(b2) + bufferLength(b3) + 5;
+ bufferConcat(yyval.action, b2);
+ bufferWriteOp(b3, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(b3, 2);
+ bufferWriteS16(b3, -tmp);
+ bufferResolveJumps(b3);
+ bufferConcat(yyval.action, b3);
+ delctx(CTX_FOR_IN); ;}
+ break;
+
+ case 135:
+#line 570 "swf5compiler.y"
+ { Buffer b2, b3;
+ int tmp;
+
+ yyval.action = yyvsp[-3].action;
+ bufferWriteOp(yyval.action, SWFACTION_ENUMERATE);
+
+ b2 = newBuffer();
+ bufferWriteSetRegister(b2, 0);
+ bufferWriteOp(b2, SWFACTION_PUSHDATA);
+ bufferWriteS16(b2, 1);
+ bufferWriteU8(b2, 2);
+ bufferWriteOp(b2, SWFACTION_NEWEQUALS);
+ bufferWriteOp(b2, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(b2, 2);
+ // add size later
+
+ b3 = newBuffer();
+ bufferWriteString(b3, yyvsp[-5].str, strlen(yyvsp[-5].str)+1);
+ bufferWriteRegister(b3, 0);
+ bufferWriteOp(b3, SWFACTION_VAREQUALS);
+ bufferConcat(b3, yyvsp[0].action);
+ bufferWriteS16(b2, bufferLength(b3) + 5);
+ tmp = bufferLength(b2) + bufferLength(b3) + 5;
+ bufferConcat(yyval.action, b2);
+ bufferWriteOp(b3, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(b3, 2);
+ bufferWriteS16(b3, -tmp);
+ bufferResolveJumps(b3);
+ bufferConcat(yyval.action, b3);
+ delctx(CTX_FOR_IN); ;}
+ break;
+
+ case 136:
+#line 603 "swf5compiler.y"
+ { yyval.action = NULL; ;}
+ break;
+
+ case 138:
+#line 611 "swf5compiler.y"
+ { if(chkctx(CTX_CONTINUE) < 0)
+ swf5error("continue outside loop");
+ yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, MAGIC_CONTINUE_NUMBER); ;}
+ break;
+
+ case 139:
+#line 622 "swf5compiler.y"
+ { int tmp = chkctx(CTX_BREAK);
+ if(tmp < 0)
+ swf5error("break outside switch / loop");
+ yyval.action = newBuffer();
+ if(tmp) /* break out of a for .. in */
+ bufferWriteOp(yyval.action, SWFACTION_POP);
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, MAGIC_BREAK_NUMBER); ;}
+ break;
+
+ case 140:
+#line 634 "swf5compiler.y"
+ { yyval.getURLMethod = GETURL_METHOD_NOSEND; ;}
+ break;
+
+ case 141:
+#line 636 "swf5compiler.y"
+ { yyval.getURLMethod = GETURL_METHOD_GET; ;}
+ break;
+
+ case 142:
+#line 638 "swf5compiler.y"
+ { yyval.getURLMethod = GETURL_METHOD_POST; ;}
+ break;
+
+ case 143:
+#line 640 "swf5compiler.y"
+ { if(strcmp(yyvsp[0].str, "GET") == 0)
+ yyval.getURLMethod = GETURL_METHOD_GET;
+ else if(strcmp(yyvsp[0].str, "POST") == 0)
+ yyval.getURLMethod = GETURL_METHOD_POST; ;}
+ break;
+
+ case 144:
+#line 648 "swf5compiler.y"
+ { char *lvlstring = (char*) malloc(12*sizeof(char));
+ sprintf(lvlstring, "_level%d", yyvsp[0].intVal);
+ yyval.action = newBuffer();
+ bufferWriteString(yyval.action, lvlstring, strlen(lvlstring)+1);
+ free(lvlstring); ;}
+ break;
+
+ case 145:
+#line 655 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, "_level", 7);
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_STRINGCONCAT); ;}
+ break;
+
+ case 146:
+#line 663 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].exprlist.buffer;
+ bufferWriteInt(yyval.action, yyvsp[-1].exprlist.count);
+ bufferWriteString(yyval.action, yyvsp[-3].str, strlen(yyvsp[-3].str)+1);
+ bufferWriteOp(yyval.action, SWFACTION_CALLFUNCTION);
+ bufferWriteOp(yyval.action, SWFACTION_POP);
+ free(yyvsp[-3].str); ;}
+ break;
+
+ case 147:
+#line 671 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str);
+ bufferWriteOp(yyval.action, SWFACTION_DELETE); ;}
+ break;
+
+ case 148:
+#line 677 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ // bufferWriteOp($$, SWFACTION_GETVARIABLE);
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str);
+ bufferWriteOp(yyval.action, SWFACTION_DELETEVAR); ;}
+ break;
+
+ case 149:
+#line 684 "swf5compiler.y"
+ { yyval.action = yyvsp[-3].action;
+ // bufferWriteOp($$, SWFACTION_GETVARIABLE);
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ // bufferWriteOp($$, SWFACTION_GETVARIABLE);
+ bufferWriteOp(yyval.action, SWFACTION_DELETEVAR); ;}
+ break;
+
+ case 150:
+#line 691 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_TRACE); ;}
+ break;
+
+ case 151:
+#line 695 "swf5compiler.y"
+ { yyval.action = yyvsp[-4].action;
+ bufferConcat(yyval.action, yyvsp[-2].action);
+ bufferWriteOp(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, yyvsp[-1].getURLMethod); ;}
+ break;
+
+ case 152:
+#line 702 "swf5compiler.y"
+ { yyval.action = yyvsp[-4].action;
+ bufferConcat(yyval.action, yyvsp[-2].action);
+ bufferWriteOp(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 0xc0+yyvsp[-1].getURLMethod); ;}
+ break;
+
+ case 153:
+#line 709 "swf5compiler.y"
+ { yyval.action = yyvsp[-4].action;
+ bufferConcat(yyval.action, yyvsp[-2].action);
+ bufferWriteOp(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 0x80+yyvsp[-1].getURLMethod); ;}
+ break;
+
+ case 154:
+#line 716 "swf5compiler.y"
+ { yyval.action = yyvsp[-4].action;
+ bufferConcat(yyval.action, yyvsp[-2].action);
+ bufferWriteOp(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 0x40+yyvsp[-1].getURLMethod); ;}
+ break;
+
+ case 155:
+#line 723 "swf5compiler.y"
+ { yyval.action = yyvsp[-4].action;
+ bufferConcat(yyval.action, yyvsp[-2].action);
+ bufferWriteOp(yyval.action, SWFACTION_GETURL2);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, yyvsp[-1].getURLMethod); ;}
+ break;
+
+ case 156:
+#line 730 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_CALLFRAME);
+ bufferWriteS16(yyval.action, 0); ;}
+ break;
+
+ case 157:
+#line 736 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, "0", 2); /* no constraint */
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferWriteOp(yyval.action, SWFACTION_STARTDRAGMOVIE); ;}
+ break;
+
+ case 158:
+#line 743 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferConcat(yyval.action, yyvsp[-7].action);
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferConcat(yyval.action, yyvsp[-5].action);
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteString(yyval.action, "1", 2); /* has constraint */
+ bufferConcat(yyval.action, yyvsp[-9].action);
+ bufferConcat(yyval.action, yyvsp[-11].action);
+ bufferWriteOp(yyval.action, SWFACTION_STARTDRAGMOVIE); ;}
+ break;
+
+ case 159:
+#line 754 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_STOPDRAGMOVIE); ;}
+ break;
+
+ case 160:
+#line 759 "swf5compiler.y"
+ { yyval.action = yyvsp[-5].action;
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteInt(yyval.action, 16384); /* magic number */
+ bufferWriteOp(yyval.action, SWFACTION_ADD);
+ bufferWriteOp(yyval.action, SWFACTION_DUPLICATECLIP); ;}
+ break;
+
+ case 161:
+#line 767 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_REMOVECLIP); ;}
+ break;
+
+ case 162:
+#line 771 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_GETURL);
+ bufferWriteS16(yyval.action, strlen(yyvsp[-3].str) + strlen(yyvsp[-1].str) + 2);
+ bufferWriteHardString(yyval.action, (byte*)yyvsp[-3].str, strlen(yyvsp[-3].str));
+ bufferWriteU8(yyval.action, 0);
+ bufferWriteHardString(yyval.action, (byte*)yyvsp[-1].str, strlen(yyvsp[-1].str));
+ bufferWriteU8(yyval.action, 0); ;}
+ break;
+
+ case 163:
+#line 781 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_NEXTFRAME); ;}
+ break;
+
+ case 164:
+#line 785 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_PREVFRAME); ;}
+ break;
+
+ case 165:
+#line 789 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_PLAY); ;}
+ break;
+
+ case 166:
+#line 793 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_STOP); ;}
+ break;
+
+ case 167:
+#line 797 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_STOPSOUNDS); ;}
+ break;
+
+ case 168:
+#line 801 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_TOGGLEQUALITY); ;}
+ break;
+
+ case 169:
+#line 805 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_GOTOFRAME);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, yyvsp[-1].intVal); ;}
+ break;
+
+ case 170:
+#line 811 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_GOTOLABEL);
+ bufferWriteS16(yyval.action, strlen(yyvsp[-1].str)+1);
+ bufferWriteHardString(yyval.action, (byte*)yyvsp[-1].str, strlen(yyvsp[-1].str)+1);
+ free(yyvsp[-1].str); ;}
+ break;
+
+ case 171:
+#line 818 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_GOTOEXPRESSION);
+ bufferWriteS16(yyval.action, 1);
+ bufferWriteU8(yyval.action, 0); ;}
+ break;
+
+ case 172:
+#line 824 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_SETTARGET);
+ bufferWriteS16(yyval.action, strlen(yyvsp[-1].str)+1);
+ bufferWriteHardString(yyval.action, (byte*)yyvsp[-1].str, strlen(yyvsp[-1].str)+1);
+ free(yyvsp[-1].str); ;}
+ break;
+
+ case 173:
+#line 831 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_SETTARGETEXPRESSION); ;}
+ break;
+
+ case 174:
+#line 840 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].exprlist.buffer;
+ bufferWriteInt(yyval.action, yyvsp[-1].exprlist.count);
+ bufferWriteString(yyval.action, yyvsp[-3].str, strlen(yyvsp[-3].str)+1);
+ bufferWriteOp(yyval.action, SWFACTION_CALLFUNCTION);
+ free(yyvsp[-3].str); ;}
+ break;
+
+ case 175:
+#line 847 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_GETVARIABLE); ;}
+ break;
+
+ case 176:
+#line 851 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_GETTIMER); ;}
+ break;
+
+ case 177:
+#line 855 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_RANDOM); ;}
+ break;
+
+ case 178:
+#line 859 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_STRINGLENGTH); ;}
+ break;
+
+ case 179:
+#line 863 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_INT); ;}
+ break;
+
+ case 180:
+#line 867 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_ORD); ;}
+ break;
+
+ case 181:
+#line 871 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_CHR); ;}
+ break;
+
+ case 182:
+#line 875 "swf5compiler.y"
+ { yyval.action = yyvsp[-3].action;
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteOp(yyval.action, SWFACTION_STRINGCONCAT); ;}
+ break;
+
+ case 183:
+#line 880 "swf5compiler.y"
+ { yyval.action = yyvsp[-5].action;
+ bufferConcat(yyval.action, yyvsp[-3].action);
+ bufferConcat(yyval.action, yyvsp[-1].action);
+ bufferWriteOp(yyval.action, SWFACTION_SUBSTRING); ;}
+ break;
+
+ case 184:
+#line 886 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action;
+ bufferWriteOp(yyval.action, SWFACTION_TYPEOF); ;}
+ break;
+
+ case 185:
+#line 894 "swf5compiler.y"
+ { yyval.exprlist.buffer = newBuffer();
+ yyval.exprlist.count = 0; ;}
+ break;
+
+ case 186:
+#line 898 "swf5compiler.y"
+ { yyval.exprlist.buffer = yyvsp[0].action;
+ yyval.exprlist.count = 1; ;}
+ break;
+
+ case 187:
+#line 903 "swf5compiler.y"
+ { Buffer tmp = newBuffer();
+ bufferConcat(tmp, yyvsp[0].action);
+ bufferConcat(tmp, yyval.exprlist.buffer);
+ yyval.exprlist.buffer = tmp;
+ ++yyval.exprlist.count; ;}
+ break;
+
+ case 188:
+#line 912 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteOp(yyval.action, SWFACTION_DEFINEFUNCTION);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[-2].exprlist.buffer) + 5);
+ bufferWriteU8(yyval.action, 0); /* empty function name */
+ bufferWriteS16(yyval.action, yyvsp[-2].exprlist.count);
+ bufferConcat(yyval.action, yyvsp[-2].exprlist.buffer);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action));
+ bufferConcat(yyval.action, yyvsp[0].action);
+ delctx(CTX_FUNCTION); ;}
+ break;
+
+ case 189:
+#line 925 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].exprlist.buffer;
+ bufferWriteInt(yyval.action, yyvsp[-1].exprlist.count);
+ bufferConcat(yyval.action, yyvsp[-5].action);
+ bufferWriteString(yyval.action, yyvsp[-3].str, strlen(yyvsp[-3].str)+1);
+ bufferWriteOp(yyval.action, SWFACTION_CALLMETHOD);
+ free(yyvsp[-3].str); ;}
+ break;
+
+ case 190:
+#line 933 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].exprlist.buffer;
+ bufferWriteInt(yyval.action, yyvsp[-1].exprlist.count);
+ bufferConcat(yyval.action, yyvsp[-6].action);
+ bufferConcat(yyval.action, yyvsp[-4].action);
+ bufferWriteOp(yyval.action, SWFACTION_CALLMETHOD); ;}
+ break;
+
+ case 191:
+#line 942 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferConcat(yyval.action, yyvsp[0].action); ;}
+ break;
+
+ case 192:
+#line 949 "swf5compiler.y"
+ { yyval.exprlist.buffer = yyvsp[0].action;
+ yyval.exprlist.count = 1; ;}
+ break;
+
+ case 193:
+#line 953 "swf5compiler.y"
+ { bufferConcat(yyval.exprlist.buffer, yyvsp[0].action);
+ ++yyval.exprlist.count; ;}
+ break;
+
+ case 194:
+#line 958 "swf5compiler.y"
+ { yyval.op = SWFACTION_NEWADD; ;}
+ break;
+
+ case 195:
+#line 959 "swf5compiler.y"
+ { yyval.op = SWFACTION_SUBTRACT; ;}
+ break;
+
+ case 196:
+#line 960 "swf5compiler.y"
+ { yyval.op = SWFACTION_MULTIPLY; ;}
+ break;
+
+ case 197:
+#line 961 "swf5compiler.y"
+ { yyval.op = SWFACTION_DIVIDE; ;}
+ break;
+
+ case 198:
+#line 962 "swf5compiler.y"
+ { yyval.op = SWFACTION_MODULO; ;}
+ break;
+
+ case 199:
+#line 963 "swf5compiler.y"
+ { yyval.op = SWFACTION_BITWISEAND; ;}
+ break;
+
+ case 200:
+#line 964 "swf5compiler.y"
+ { yyval.op = SWFACTION_BITWISEOR; ;}
+ break;
+
+ case 201:
+#line 965 "swf5compiler.y"
+ { yyval.op = SWFACTION_BITWISEXOR; ;}
+ break;
+
+ case 202:
+#line 966 "swf5compiler.y"
+ { yyval.op = SWFACTION_SHIFTLEFT; ;}
+ break;
+
+ case 203:
+#line 967 "swf5compiler.y"
+ { yyval.op = SWFACTION_SHIFTRIGHT; ;}
+ break;
+
+ case 204:
+#line 968 "swf5compiler.y"
+ { yyval.op = SWFACTION_SHIFTRIGHT2; ;}
+ break;
+
+ case 205:
+#line 972 "swf5compiler.y"
+ { yyval.op = SWFACTION_INCREMENT; ;}
+ break;
+
+ case 206:
+#line 973 "swf5compiler.y"
+ { yyval.op = SWFACTION_DECREMENT; ;}
+ break;
+
+ case 207:
+#line 992 "swf5compiler.y"
+ { if(yyvsp[0].lval.obj)
+ {
+ yyval.action = yyvsp[0].lval.obj;
+
+ if(yyvsp[0].lval.ident)
+ bufferConcat(yyval.action, yyvsp[0].lval.ident);
+ else
+ bufferConcat(yyval.action, yyvsp[0].lval.memexpr);
+
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER);
+ }
+ else
+ {
+ yyval.action = yyvsp[0].lval.ident;
+ bufferWriteOp(yyval.action, SWFACTION_GETVARIABLE);
+ }
+ ;}
+ break;
+
+ case 210:
+#line 1016 "swf5compiler.y"
+ { yyval.lval.ident = newBuffer();
+ bufferWriteString(yyval.lval.ident, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str);
+ yyval.lval.obj = 0;
+ yyval.lval.memexpr = 0; ;}
+ break;
+
+ case 211:
+#line 1023 "swf5compiler.y"
+ { yyval.lval.obj = yyvsp[-2].action;
+ yyval.lval.ident = newBuffer();
+ bufferWriteString(yyval.lval.ident, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ yyval.lval.memexpr = 0; ;}
+ break;
+
+ case 212:
+#line 1029 "swf5compiler.y"
+ { yyval.lval.obj = yyvsp[-3].action;
+ yyval.lval.memexpr = yyvsp[-1].action;
+ yyval.lval.ident = 0; ;}
+ break;
+
+ case 214:
+#line 1040 "swf5compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteInt(yyvsp[0].action, -1);
+ bufferWriteOp(yyvsp[0].action, SWFACTION_MULTIPLY); ;}
+ break;
+
+ case 215:
+#line 1045 "swf5compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteInt(yyvsp[0].action, 0xffffffff);
+ bufferWriteOp(yyvsp[0].action, SWFACTION_BITWISEXOR); ;}
+ break;
+
+ case 216:
+#line 1050 "swf5compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteOp(yyvsp[0].action, SWFACTION_LOGICALNOT); ;}
+ break;
+
+ case 217:
+#line 1054 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferWriteOp(yyval.action, SWFACTION_DUP);
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action)+1);
+ bufferWriteOp(yyval.action, SWFACTION_POP);
+ bufferConcat(yyval.action, yyvsp[0].action); ;}
+ break;
+
+ case 218:
+#line 1063 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferWriteOp(yyval.action, SWFACTION_DUP);
+ bufferWriteOp(yyval.action, SWFACTION_LOGICALNOT);
+ bufferWriteOp(yyval.action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyval.action, 2);
+ bufferWriteS16(yyval.action, bufferLength(yyvsp[0].action)+1);
+ bufferWriteOp(yyval.action, SWFACTION_POP);
+ bufferConcat(yyval.action, yyvsp[0].action); ;}
+ break;
+
+ case 219:
+#line 1073 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_MULTIPLY); ;}
+ break;
+
+ case 220:
+#line 1078 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_DIVIDE); ;}
+ break;
+
+ case 221:
+#line 1083 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_MODULO); ;}
+ break;
+
+ case 222:
+#line 1088 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_NEWADD); ;}
+ break;
+
+ case 223:
+#line 1093 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_SUBTRACT); ;}
+ break;
+
+ case 224:
+#line 1098 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_BITWISEAND); ;}
+ break;
+
+ case 225:
+#line 1103 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_BITWISEOR); ;}
+ break;
+
+ case 226:
+#line 1108 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_BITWISEXOR); ;}
+ break;
+
+ case 227:
+#line 1113 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_NEWLESSTHAN); ;}
+ break;
+
+ case 228:
+#line 1118 "swf5compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferConcat(yyval.action, yyvsp[-2].action);
+ bufferWriteOp(yyval.action, SWFACTION_NEWLESSTHAN); ;}
+ break;
+
+ case 229:
+#line 1123 "swf5compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferConcat(yyval.action, yyvsp[-2].action);
+ bufferWriteOp(yyval.action, SWFACTION_NEWLESSTHAN);
+ bufferWriteOp(yyval.action, SWFACTION_LOGICALNOT); ;}
+ break;
+
+ case 230:
+#line 1129 "swf5compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteOp(yyvsp[-2].action, SWFACTION_NEWLESSTHAN);
+ bufferWriteOp(yyvsp[-2].action, SWFACTION_LOGICALNOT); ;}
+ break;
+
+ case 231:
+#line 1134 "swf5compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteOp(yyvsp[-2].action, SWFACTION_NEWEQUALS); ;}
+ break;
+
+ case 232:
+#line 1138 "swf5compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteOp(yyvsp[-2].action, SWFACTION_NEWEQUALS);
+ bufferWriteOp(yyvsp[-2].action, SWFACTION_LOGICALNOT); ;}
+ break;
+
+ case 233:
+#line 1143 "swf5compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteOp(yyvsp[-2].action, SWFACTION_SHIFTLEFT); ;}
+ break;
+
+ case 234:
+#line 1147 "swf5compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteOp(yyvsp[-2].action, SWFACTION_SHIFTRIGHT); ;}
+ break;
+
+ case 235:
+#line 1151 "swf5compiler.y"
+ { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
+ bufferWriteOp(yyvsp[-2].action, SWFACTION_SHIFTRIGHT2); ;}
+ break;
+
+ case 236:
+#line 1155 "swf5compiler.y"
+ { bufferWriteOp(yyvsp[-4].action, SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16(yyvsp[-4].action, 2);
+ bufferWriteS16(yyvsp[-4].action, bufferLength(yyvsp[0].action)+5);
+ bufferConcat(yyvsp[-4].action, yyvsp[0].action);
+ bufferWriteOp(yyvsp[-4].action, SWFACTION_BRANCHALWAYS);
+ bufferWriteS16(yyvsp[-4].action, 2);
+ bufferWriteS16(yyvsp[-4].action, bufferLength(yyvsp[-2].action));
+ bufferConcat(yyvsp[-4].action, yyvsp[-2].action); ;}
+ break;
+
+ case 237:
+#line 1165 "swf5compiler.y"
+ { if(yyvsp[-2].lval.obj) /* obj[memexpr] or obj.ident */
+ {
+ yyval.action = yyvsp[-2].lval.obj;
+
+ if(yyvsp[-2].lval.ident)
+ bufferConcat(yyval.action, yyvsp[-2].lval.ident);
+ else
+ bufferConcat(yyval.action, yyvsp[-2].lval.memexpr);
+
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteSetRegister(yyval.action, 0);
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER);
+ bufferWriteRegister(yyval.action, 0);
+ }
+ else /* just ident */
+ {
+ yyval.action = yyvsp[0].action;
+ bufferWriteOp(yyval.action, SWFACTION_DUP);
+ bufferConcat(yyval.action, yyvsp[-2].lval.ident);
+ bufferWriteOp(yyval.action, SWFACTION_SWAP);
+ bufferWriteOp(yyval.action, SWFACTION_SETVARIABLE);
+ }
+/* tricky case missing here: lvalue ASSIGN expr */
+/* like in x = y += z; */
+ ;}
+ break;
+
+ case 238:
+#line 1192 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_INSTANCEOF); ;}
+ break;
+
+ case 240:
+#line 1202 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteInt(yyval.action, 0);
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ bufferWriteOp(yyval.action, SWFACTION_NEW); ;}
+ break;
+
+ case 241:
+#line 1208 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].exprlist.buffer;
+ bufferWriteInt(yyval.action, yyvsp[-1].exprlist.count);
+ bufferWriteString(yyval.action, yyvsp[-3].str, strlen(yyvsp[-3].str)+1);
+ bufferWriteOp(yyval.action, SWFACTION_NEW); ;}
+ break;
+
+ case 242:
+#line 1214 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].exprlist.buffer;
+ bufferWriteInt(yyval.action, yyvsp[-1].exprlist.count);
+ bufferWriteOp(yyval.action, SWFACTION_INITARRAY); ;}
+ break;
+
+ case 243:
+#line 1219 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteInt(yyval.action, 0);
+ bufferWriteOp(yyval.action, SWFACTION_INITOBJECT); ;}
+ break;
+
+ case 244:
+#line 1224 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].exprlist.buffer;
+ bufferWriteInt(yyval.action, yyvsp[-1].exprlist.count);
+ bufferWriteOp(yyval.action, SWFACTION_INITOBJECT); ;}
+ break;
+
+ case 249:
+#line 1240 "swf5compiler.y"
+ { if(yyvsp[0].lval.obj)
+ {
+ if(yyvsp[0].lval.ident) // expr . identifier
+ {
+ yyval.action = yyvsp[0].lval.obj;
+ bufferWriteOp(yyval.action, SWFACTION_DUP); /* a, a */
+ bufferWriteBuffer(yyval.action, yyvsp[0].lval.ident); /* a, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i, a */
+ bufferConcat(yyval.action, yyvsp[0].lval.ident); /* a, i, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER);
+ bufferWriteOp(yyval.action, yyvsp[-1].op);
+ bufferWriteSetRegister(yyval.action, 0);
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER); /* a.i = a.i+1 */
+ bufferWriteRegister(yyval.action, 0); /* a.i+1 */
+ }
+ else // expr [ expr ]
+ {
+ yyval.action = yyvsp[0].lval.memexpr; /* i */
+ bufferConcat(yyval.action, yyvsp[0].lval.obj); /* i, a */
+ bufferWriteSetRegister(yyval.action, 0); /* ($2.memexpr can use reg0) */
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i */
+ bufferWriteOp(yyval.action, SWFACTION_DUP); /* a, i, i */
+ bufferWriteRegister(yyval.action, 0); /* a, i, i, a */
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER); /* a, i, a[i] */
+ bufferWriteOp(yyval.action, yyvsp[-1].op); /* a, i, a[i]+1 */
+ bufferWriteSetRegister(yyval.action, 0);
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER); /* a[i] = a[i]+1 */
+ bufferWriteRegister(yyval.action, 0); /* a[i]+1 */
+ }
+ }
+ else // identifier
+ {
+ yyval.action = newBuffer();
+ bufferWriteBuffer(yyval.action, yyvsp[0].lval.ident);
+ bufferWriteOp(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteOp(yyval.action, yyvsp[-1].op);
+ bufferWriteOp(yyval.action, SWFACTION_DUP);
+ bufferConcat(yyval.action, yyvsp[0].lval.ident);
+ bufferWriteOp(yyval.action, SWFACTION_SWAP);
+ bufferWriteOp(yyval.action, SWFACTION_SETVARIABLE);
+ }
+ ;}
+ break;
+
+ case 250:
+#line 1285 "swf5compiler.y"
+ { if(yyvsp[-1].lval.obj)
+ {
+ if(yyvsp[-1].lval.ident)
+ {
+ yyval.action = yyvsp[-1].lval.obj; /* a */
+ bufferWriteOp(yyval.action, SWFACTION_DUP); /* a, a */
+ bufferWriteBuffer(yyval.action, yyvsp[-1].lval.ident); /* a, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER); /* a, a.i */
+ bufferWriteSetRegister(yyval.action, 0);
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a.i, a */
+ bufferConcat(yyval.action, yyvsp[-1].lval.ident); /* a.i, a, i */
+ bufferWriteRegister(yyval.action, 0); /* a.i, a, i, a.i */
+ bufferWriteOp(yyval.action, yyvsp[0].op); /* a.i, a, i, a.i+1 */
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER);
+ }
+ else
+ {
+ yyval.action = yyvsp[-1].lval.memexpr;
+ bufferConcat(yyval.action, yyvsp[-1].lval.obj); /* i, a */
+ bufferWriteSetRegister(yyval.action, 0);
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i */
+ bufferWriteOp(yyval.action, SWFACTION_DUP); /* a, i, i */
+ bufferWriteRegister(yyval.action, 0); /* a, i, i, a */
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER); /* a, i, a[i] */
+ bufferWriteSetRegister(yyval.action, 0);
+ bufferWriteOp(yyval.action, yyvsp[0].op); /* a, i, a[i]+1 */
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER);
+ bufferWriteRegister(yyval.action, 0); /* a[i] */
+ }
+ }
+ else
+ {
+ yyval.action = newBuffer();
+ bufferWriteBuffer(yyval.action, yyvsp[-1].lval.ident);
+ bufferWriteOp(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteOp(yyval.action, SWFACTION_DUP);
+ bufferWriteOp(yyval.action, yyvsp[0].op);
+ bufferConcat(yyval.action, yyvsp[-1].lval.ident);
+ bufferWriteOp(yyval.action, SWFACTION_SWAP);
+ bufferWriteOp(yyval.action, SWFACTION_SETVARIABLE);
+ }
+ ;}
+ break;
+
+ case 251:
+#line 1330 "swf5compiler.y"
+ { yyval.action = yyvsp[-1].action; ;}
+ break;
+
+ case 252:
+#line 1333 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteInt(yyval.action, -yyvsp[0].intVal); ;}
+ break;
+
+ case 253:
+#line 1337 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteInt(yyval.action, yyvsp[0].intVal); ;}
+ break;
+
+ case 254:
+#line 1341 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteDouble(yyval.action, -yyvsp[0].doubleVal); ;}
+ break;
+
+ case 255:
+#line 1345 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteDouble(yyval.action, yyvsp[0].doubleVal); ;}
+ break;
+
+ case 256:
+#line 1349 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteBoolean(yyval.action, yyvsp[0].intVal); ;}
+ break;
+
+ case 257:
+#line 1353 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteNull(yyval.action); ;}
+ break;
+
+ case 258:
+#line 1357 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ free(yyvsp[0].str); ;}
+ break;
+
+ case 260:
+#line 1366 "swf5compiler.y"
+ { yyval.action = yyvsp[-2].action;
+ bufferConcat(yyval.action, yyvsp[0].action); ;}
+ break;
+
+ case 261:
+#line 1372 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[-2].str, strlen(yyvsp[-2].str)+1);
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_VAREQUALS); ;}
+ break;
+
+ case 262:
+#line 1378 "swf5compiler.y"
+ { yyval.action = newBuffer();
+ bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
+ bufferWriteOp(yyval.action, SWFACTION_VAR); ;}
+ break;
+
+ case 263:
+#line 1385 "swf5compiler.y"
+ { asmBuffer = newBuffer(); ;}
+ break;
+
+ case 264:
+#line 1387 "swf5compiler.y"
+ { yyval.action = asmBuffer; ;}
+ break;
+
+ case 265:
+#line 1390 "swf5compiler.y"
+ { yyval.action = yyvsp[0].action; ;}
+ break;
+
+ case 267:
+#line 1395 "swf5compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteOp(yyval.action, SWFACTION_POP); ;}
+ break;
+
+ case 268:
+#line 1399 "swf5compiler.y"
+ { yyval.action = yyvsp[0].action;
+ bufferWriteOp(yyval.action, SWFACTION_POP); ;}
+ break;
+
+ case 269:
+#line 1403 "swf5compiler.y"
+ { if(yyvsp[0].lval.obj)
+ {
+ if(yyvsp[0].lval.ident)
+ {
+ yyval.action = yyvsp[0].lval.obj; /* a */
+ bufferWriteOp(yyval.action, SWFACTION_DUP); /* a, a */
+ bufferWriteBuffer(yyval.action, yyvsp[0].lval.ident); /* a, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER); /* a, a.i */
+ bufferWriteOp(yyval.action, yyvsp[-1].op); /* a, a.i+1 */
+ bufferConcat(yyval.action, yyvsp[0].lval.ident); /* a, a.i+1, i */
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i, a.i+1 */
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER); /* a.i = a.i+1 */
+ }
+ else
+ {
+ /* weird contortions so that $2.memexpr can use reg 0 */
+ yyval.action = yyvsp[0].lval.memexpr; /* i */
+ bufferConcat(yyval.action, yyvsp[0].lval.obj); /* i, a */
+ bufferWriteSetRegister(yyval.action, 0);
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i */
+ bufferWriteOp(yyval.action, SWFACTION_DUP); /* a, i, i */
+ bufferWriteRegister(yyval.action, 0); /* a, i, i, a */
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER); /* a, i, a[i] */
+ bufferWriteOp(yyval.action, yyvsp[-1].op); /* a, i, a[i]+1 */
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER); /* a[i] = a[i]+1 */
+ }
+ }
+ else
+ {
+ yyval.action = yyvsp[0].lval.ident;
+ bufferWriteOp(yyval.action, SWFACTION_DUP);
+ bufferWriteOp(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteOp(yyval.action, yyvsp[-1].op);
+ bufferWriteOp(yyval.action, SWFACTION_SETVARIABLE);
+ }
+ ;}
+ break;
+
+ case 270:
+#line 1442 "swf5compiler.y"
+ { if(yyvsp[-1].lval.obj)
+ {
+ if(yyvsp[-1].lval.ident)
+ {
+ yyval.action = yyvsp[-1].lval.obj; /* a */
+ bufferWriteOp(yyval.action, SWFACTION_DUP); /* a, a */
+ bufferWriteBuffer(yyval.action, yyvsp[-1].lval.ident); /* a, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER); /* a, a.i */
+ bufferWriteOp(yyval.action, yyvsp[0].op); /* a, a.i+1 */
+ bufferConcat(yyval.action, yyvsp[-1].lval.ident); /* a, a.i+1, i */
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i, a.i+1 */
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER); /* a.i = a.i+1 */
+ }
+ else
+ {
+ /* weird contortions so that $1.memexpr can use reg 0 */
+ yyval.action = yyvsp[-1].lval.memexpr; /* i */
+ bufferConcat(yyval.action, yyvsp[-1].lval.obj); /* i, a */
+ bufferWriteSetRegister(yyval.action, 0);
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i */
+ bufferWriteOp(yyval.action, SWFACTION_DUP); /* a, i, i */
+ bufferWriteRegister(yyval.action, 0); /* a, i, i, a */
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER); /* a, i, a[i] */
+ bufferWriteOp(yyval.action, yyvsp[0].op); /* a, i, a[i]+1 */
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER); /* a[i] = a[i]+1 */
+ }
+ }
+ else
+ {
+ yyval.action = yyvsp[-1].lval.ident;
+ bufferWriteOp(yyval.action, SWFACTION_DUP);
+ bufferWriteOp(yyval.action, SWFACTION_GETVARIABLE);
+ bufferWriteOp(yyval.action, yyvsp[0].op);
+ bufferWriteOp(yyval.action, SWFACTION_SETVARIABLE);
+ }
+ ;}
+ break;
+
+ case 271:
+#line 1481 "swf5compiler.y"
+ { if(yyvsp[-2].lval.obj)
+ {
+ yyval.action = yyvsp[-2].lval.obj;
+
+ if(yyvsp[-2].lval.ident)
+ bufferConcat(yyval.action, yyvsp[-2].lval.ident);
+ else
+ bufferConcat(yyval.action, yyvsp[-2].lval.memexpr);
+
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER);
+ }
+ else
+ {
+ yyval.action = yyvsp[-2].lval.ident;
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, SWFACTION_SETVARIABLE);
+ }
+ ;}
+ break;
+
+ case 272:
+#line 1502 "swf5compiler.y"
+ { if(yyvsp[-2].lval.obj)
+ {
+ if(yyvsp[-2].lval.ident)
+ {
+ yyval.action = yyvsp[-2].lval.obj; /* a */
+ bufferWriteOp(yyval.action, SWFACTION_DUP); /* a, a */
+ bufferWriteBuffer(yyval.action, yyvsp[-2].lval.ident); /* a, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER); /* a, a.i */
+ bufferConcat(yyval.action, yyvsp[0].action); /* a, a.i, v */
+ bufferWriteOp(yyval.action, yyvsp[-1].op); /* a, a.i+v */
+ bufferConcat(yyval.action, yyvsp[-2].lval.ident); /* a, a.i+v, i */
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i, a.i+v */
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER); /* a.i = a.i+v */
+ }
+ else
+ {
+ yyval.action = yyvsp[-2].lval.memexpr; /* i */
+ bufferConcat(yyval.action, yyvsp[-2].lval.obj); /* i, a */
+ bufferWriteSetRegister(yyval.action, 0);
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i */
+ bufferWriteOp(yyval.action, SWFACTION_DUP); /* a, i, i */
+ bufferWriteRegister(yyval.action, 0); /* a, i, i, a */
+ bufferWriteOp(yyval.action, SWFACTION_SWAP); /* a, i, a, i */
+ bufferWriteOp(yyval.action, SWFACTION_GETMEMBER); /* a, i, a[i] */
+ bufferConcat(yyval.action, yyvsp[0].action); /* a, i, a[i], v */
+ bufferWriteOp(yyval.action, yyvsp[-1].op); /* a, i, a[i]+v */
+ bufferWriteOp(yyval.action, SWFACTION_SETMEMBER); /* a[i] = a[i]+v */
+ }
+ }
+ else
+ {
+ yyval.action = yyvsp[-2].lval.ident;
+ bufferWriteOp(yyval.action, SWFACTION_DUP);
+ bufferWriteOp(yyval.action, SWFACTION_GETVARIABLE);
+ bufferConcat(yyval.action, yyvsp[0].action);
+ bufferWriteOp(yyval.action, yyvsp[-1].op);
+ bufferWriteOp(yyval.action, SWFACTION_SETVARIABLE);
+ }
+ ;}
+ break;
+
+ case 274:
+#line 1547 "swf5compiler.y"
+ { yyval.len = yyvsp[-1].len + yyvsp[0].len; ;}
+ break;
+
+ case 275:
+#line 1552 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_WITH); ;}
+ break;
+
+ case 276:
+#line 1554 "swf5compiler.y"
+ { yyval.len = yyvsp[-2].len + yyvsp[-1].len;
+ bufferPatchLength(asmBuffer, yyvsp[-1].len); ;}
+ break;
+
+ case 277:
+#line 1559 "swf5compiler.y"
+ { yyval.len = bufferWriteConstantString(asmBuffer,(byte*) yyvsp[0].str,
+ strlen(yyvsp[0].str)+1); ;}
+ break;
+
+ case 278:
+#line 1562 "swf5compiler.y"
+ { bufferWriteU8(asmBuffer, PUSH_INT);
+ yyval.len = bufferWriteInt(asmBuffer, yyvsp[0].intVal)+1; ;}
+ break;
+
+ case 279:
+#line 1565 "swf5compiler.y"
+ { bufferWriteU8(asmBuffer, PUSH_DOUBLE);
+ yyval.len = bufferWriteDouble(asmBuffer, yyvsp[0].doubleVal)+1; ;}
+ break;
+
+ case 280:
+#line 1568 "swf5compiler.y"
+ { bufferWriteU8(asmBuffer, PUSH_BOOLEAN);
+ yyval.len = bufferWriteU8(asmBuffer, yyvsp[0].intVal)+1; ;}
+ break;
+
+ case 281:
+#line 1571 "swf5compiler.y"
+ { yyval.len = bufferWriteU8(asmBuffer, PUSH_NULL); ;}
+ break;
+
+ case 282:
+#line 1573 "swf5compiler.y"
+ { bufferWriteU8(asmBuffer, PUSH_REGISTER);
+ yyval.len = bufferWriteU8(asmBuffer,
+ (char)atoi(yyvsp[0].str))+1; ;}
+ break;
+
+ case 283:
+#line 1580 "swf5compiler.y"
+ { yyval.len = yyvsp[0].len; ;}
+ break;
+
+ case 284:
+#line 1581 "swf5compiler.y"
+ { yyval.len += yyvsp[0].len; ;}
+ break;
+
+ case 285:
+#line 1585 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_PUSHDATA);
+ yyval.len += bufferWriteS16(asmBuffer, 0); ;}
+ break;
+
+ case 286:
+#line 1588 "swf5compiler.y"
+ { yyval.len = yyvsp[-1].len + yyvsp[0].len;
+ bufferPatchLength(asmBuffer, yyvsp[0].len); ;}
+ break;
+
+ case 288:
+#line 1594 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_SETREGISTER);
+ yyval.len += bufferWriteS16(asmBuffer, 1);
+ yyval.len += bufferWriteU8(asmBuffer,
+ (char)atoi(yyvsp[0].str)); ;}
+ break;
+
+ case 289:
+#line 1600 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_CALLFUNCTION); ;}
+ break;
+
+ case 290:
+#line 1602 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_RETURN); ;}
+ break;
+
+ case 291:
+#line 1604 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_CALLMETHOD); ;}
+ break;
+
+ case 292:
+#line 1606 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_BITWISEAND); ;}
+ break;
+
+ case 293:
+#line 1608 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_BITWISEOR); ;}
+ break;
+
+ case 294:
+#line 1610 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_BITWISEXOR); ;}
+ break;
+
+ case 295:
+#line 1612 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_MODULO); ;}
+ break;
+
+ case 296:
+#line 1614 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_NEWADD); ;}
+ break;
+
+ case 297:
+#line 1616 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_NEWLESSTHAN); ;}
+ break;
+
+ case 298:
+#line 1618 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_NEWEQUALS); ;}
+ break;
+
+ case 299:
+#line 1620 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_INCREMENT); ;}
+ break;
+
+ case 300:
+#line 1622 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_DECREMENT); ;}
+ break;
+
+ case 301:
+#line 1624 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_TYPEOF); ;}
+ break;
+
+ case 302:
+#line 1626 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_INSTANCEOF); ;}
+ break;
+
+ case 303:
+#line 1628 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_ENUMERATE); ;}
+ break;
+
+ case 304:
+#line 1630 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_DELETE); ;}
+ break;
+
+ case 305:
+#line 1632 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_NEW); ;}
+ break;
+
+ case 306:
+#line 1634 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_INITARRAY); ;}
+ break;
+
+ case 307:
+#line 1636 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_INITOBJECT); ;}
+ break;
+
+ case 308:
+#line 1638 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_GETMEMBER); ;}
+ break;
+
+ case 309:
+#line 1640 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_SETMEMBER); ;}
+ break;
+
+ case 310:
+#line 1642 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_SHIFTLEFT); ;}
+ break;
+
+ case 311:
+#line 1644 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_SHIFTRIGHT); ;}
+ break;
+
+ case 312:
+#line 1646 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_SHIFTRIGHT2); ;}
+ break;
+
+ case 313:
+#line 1648 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_VAR); ;}
+ break;
+
+ case 314:
+#line 1650 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer,
+ SWFACTION_VAREQUALS); ;}
+ break;
+
+ case 315:
+#line 1654 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_ADD); ;}
+ break;
+
+ case 316:
+#line 1655 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_SUBTRACT); ;}
+ break;
+
+ case 317:
+#line 1656 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_MULTIPLY); ;}
+ break;
+
+ case 318:
+#line 1657 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_DIVIDE); ;}
+ break;
+
+ case 319:
+#line 1658 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_EQUAL); ;}
+ break;
+
+ case 320:
+#line 1659 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_LESSTHAN); ;}
+ break;
+
+ case 321:
+#line 1660 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_LOGICALAND); ;}
+ break;
+
+ case 322:
+#line 1661 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_LOGICALOR); ;}
+ break;
+
+ case 323:
+#line 1662 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_LOGICALNOT); ;}
+ break;
+
+ case 324:
+#line 1663 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_STRINGEQ); ;}
+ break;
+
+ case 325:
+#line 1664 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_STRINGLENGTH); ;}
+ break;
+
+ case 326:
+#line 1665 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_SUBSTRING); ;}
+ break;
+
+ case 327:
+#line 1666 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_INT); ;}
+ break;
+
+ case 328:
+#line 1667 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_DUP); ;}
+ break;
+
+ case 329:
+#line 1668 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_SWAP); ;}
+ break;
+
+ case 330:
+#line 1669 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_POP); ;}
+ break;
+
+ case 331:
+#line 1670 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_GETVARIABLE); ;}
+ break;
+
+ case 332:
+#line 1671 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_SETVARIABLE); ;}
+ break;
+
+ case 333:
+#line 1672 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_SETTARGETEXPRESSION); ;}
+ break;
+
+ case 334:
+#line 1673 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_STRINGCONCAT); ;}
+ break;
+
+ case 335:
+#line 1674 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_DUPLICATECLIP); ;}
+ break;
+
+ case 336:
+#line 1675 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_REMOVECLIP); ;}
+ break;
+
+ case 337:
+#line 1676 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_TRACE); ;}
+ break;
+
+ case 338:
+#line 1677 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_STRINGCOMPARE); ;}
+ break;
+
+ case 339:
+#line 1678 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_RANDOM); ;}
+ break;
+
+ case 340:
+#line 1679 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_MBLENGTH); ;}
+ break;
+
+ case 341:
+#line 1680 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_ORD); ;}
+ break;
+
+ case 342:
+#line 1681 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_CHR); ;}
+ break;
+
+ case 343:
+#line 1682 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_GETTIMER); ;}
+ break;
+
+ case 344:
+#line 1683 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_MBSUBSTRING); ;}
+ break;
+
+ case 345:
+#line 1684 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_MBORD); ;}
+ break;
+
+ case 346:
+#line 1685 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_MBCHR); ;}
+ break;
+
+ case 347:
+#line 1688 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_BRANCHALWAYS);
+ yyval.len += bufferWriteS16(asmBuffer, 2);
+ yyval.len += bufferBranchTarget(asmBuffer, yyvsp[0].str); ;}
+ break;
+
+ case 348:
+#line 1692 "swf5compiler.y"
+ { yyval.len = bufferWriteOp(asmBuffer, SWFACTION_BRANCHIFTRUE);
+ yyval.len += bufferWriteS16(asmBuffer, 2);
+ yyval.len += bufferBranchTarget(asmBuffer, yyvsp[0].str); ;}
+ break;
+
+
+ }
+
+/* Line 999 of yacc.c. */
+#line 5140 "swf5compiler.tab.c"
+
+ yyvsp -= yylen;
+ yyssp -= yylen;
+
+
+ YY_STACK_PRINT (yyss, yyssp);
+
+ *++yyvsp = yyval;
+
+
+ /* Now `shift' the result of the reduction. Determine what state
+ that goes to, based on the state we popped back to and the rule
+ number reduced by. */
+
+ yyn = yyr1[yyn];
+
+ yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
+ if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
+ yystate = yytable[yystate];
+ else
+ yystate = yydefgoto[yyn - YYNTOKENS];
+
+ goto yynewstate;
+
+
+/*------------------------------------.
+| yyerrlab -- here on detecting error |
+`------------------------------------*/
+yyerrlab:
+ /* If not already recovering from an error, report this error. */
+ if (!yyerrstatus)
+ {
+ ++yynerrs;
+#if YYERROR_VERBOSE
+ yyn = yypact[yystate];
+
+ if (YYPACT_NINF < yyn && yyn < YYLAST)
+ {
+ YYSIZE_T yysize = 0;
+ int yytype = YYTRANSLATE (yychar);
+ char *yymsg;
+ int yyx, yycount;
+
+ yycount = 0;
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. */
+ for (yyx = yyn < 0 ? -yyn : 0;
+ yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+ yysize += yystrlen (yytname[yyx]) + 15, yycount++;
+ yysize += yystrlen ("syntax error, unexpected ") + 1;
+ yysize += yystrlen (yytname[yytype]);
+ yymsg = (char *) YYSTACK_ALLOC (yysize);
+ if (yymsg != 0)
+ {
+ char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
+ yyp = yystpcpy (yyp, yytname[yytype]);
+
+ if (yycount < 5)
+ {
+ yycount = 0;
+ for (yyx = yyn < 0 ? -yyn : 0;
+ yyx < (int) (sizeof (yytname) / sizeof (char *));
+ yyx++)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+ {
+ const char *yyq = ! yycount ? ", expecting " : " or ";
+ yyp = yystpcpy (yyp, yyq);
+ yyp = yystpcpy (yyp, yytname[yyx]);
+ yycount++;
+ }
+ }
+ yyerror (yymsg);
+ YYSTACK_FREE (yymsg);
+ }
+ else
+ yyerror ("syntax error; also virtual memory exhausted");
+ }
+ else
+#endif /* YYERROR_VERBOSE */
+ yyerror ("syntax error");
+ }
+
+
+
+ if (yyerrstatus == 3)
+ {
+ /* If just tried and failed to reuse lookahead token after an
+ error, discard it. */
+
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ {
+ /* Pop the error token. */
+ YYPOPSTACK;
+ /* Pop the rest of the stack. */
+ while (yyss < yyssp)
+ {
+ YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
+ yydestruct (yystos[*yyssp], yyvsp);
+ YYPOPSTACK;
+ }
+ YYABORT;
+ }
+
+ YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
+ yydestruct (yytoken, &yylval);
+ yychar = YYEMPTY;
+
+ }
+
+ /* Else will try to reuse lookahead token after shifting the error
+ token. */
+ goto yyerrlab1;
+
+
+/*----------------------------------------------------.
+| yyerrlab1 -- error raised explicitly by an action. |
+`----------------------------------------------------*/
+yyerrlab1:
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
+
+ for (;;)
+ {
+ yyn = yypact[yystate];
+ if (yyn != YYPACT_NINF)
+ {
+ yyn += YYTERROR;
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
+ {
+ yyn = yytable[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
+
+ /* Pop the current state because it cannot handle the error token. */
+ if (yyssp == yyss)
+ YYABORT;
+
+ YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
+ yydestruct (yystos[yystate], yyvsp);
+ yyvsp--;
+ yystate = *--yyssp;
+
+ YY_STACK_PRINT (yyss, yyssp);
+ }
+
+ if (yyn == YYFINAL)
+ YYACCEPT;
+
+ YYDPRINTF ((stderr, "Shifting error token, "));
+
+ *++yyvsp = yylval;
+
+
+ yystate = yyn;
+ goto yynewstate;
+
+
+/*-------------------------------------.
+| yyacceptlab -- YYACCEPT comes here. |
+`-------------------------------------*/
+yyacceptlab:
+ yyresult = 0;
+ goto yyreturn;
+
+/*-----------------------------------.
+| yyabortlab -- YYABORT comes here. |
+`-----------------------------------*/
+yyabortlab:
+ yyresult = 1;
+ goto yyreturn;
+
+#ifndef yyoverflow
+/*----------------------------------------------.
+| yyoverflowlab -- parser overflow comes here. |
+`----------------------------------------------*/
+yyoverflowlab:
+ yyerror ("parser stack overflow");
+ yyresult = 2;
+ /* Fall through. */
+#endif
+
+yyreturn:
+#ifndef yyoverflow
+ if (yyss != yyssa)
+ YYSTACK_FREE (yyss);
+#endif
+ return yyresult;
+}
+
+
+#line 1697 "swf5compiler.y"
+
+
+
diff --git a/lib/action/swf5compiler.tab.h b/lib/action/swf5compiler.tab.h
new file mode 100644
index 00000000..8edd84bd
--- /dev/null
+++ b/lib/action/swf5compiler.tab.h
@@ -0,0 +1,333 @@
+/* A Bison parser, made by GNU Bison 1.875. */
+
+/* Skeleton parser for Yacc-like parsing with Bison,
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/* As a special exception, when this file is copied by Bison into a
+ Bison output file, you may use that output file without restriction.
+ This special exception was added by the Free Software Foundation
+ in version 1.24 of Bison. */
+
+/* Tokens. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {
+ BREAK = 258,
+ CONTINUE = 259,
+ FUNCTION = 260,
+ ELSE = 261,
+ SWITCH = 262,
+ CASE = 263,
+ DEFAULT = 264,
+ FOR = 265,
+ IN = 266,
+ IF = 267,
+ WHILE = 268,
+ DO = 269,
+ VAR = 270,
+ NEW = 271,
+ DELETE = 272,
+ RETURN = 273,
+ END = 274,
+ WITH = 275,
+ ASM = 276,
+ EVAL = 277,
+ RANDOM = 278,
+ GETTIMER = 279,
+ LENGTH = 280,
+ CONCAT = 281,
+ SUBSTR = 282,
+ TRACE = 283,
+ INT = 284,
+ ORD = 285,
+ CHR = 286,
+ GETURL = 287,
+ GETURL1 = 288,
+ NEXTFRAME = 289,
+ PREVFRAME = 290,
+ PLAY = 291,
+ STOP = 292,
+ TOGGLEQUALITY = 293,
+ STOPSOUNDS = 294,
+ DUP = 295,
+ SWAP = 296,
+ POP = 297,
+ PUSH = 298,
+ SETREGISTER = 299,
+ CALLFUNCTION = 300,
+ CALLMETHOD = 301,
+ AND = 302,
+ OR = 303,
+ XOR = 304,
+ MODULO = 305,
+ ADD = 306,
+ LESSTHAN = 307,
+ EQUALS = 308,
+ INC = 309,
+ DEC = 310,
+ TYPEOF = 311,
+ INSTANCEOF = 312,
+ ENUMERATE = 313,
+ INITOBJECT = 314,
+ INITARRAY = 315,
+ GETMEMBER = 316,
+ SETMEMBER = 317,
+ SHIFTLEFT = 318,
+ SHIFTRIGHT = 319,
+ SHIFTRIGHT2 = 320,
+ VAREQUALS = 321,
+ OLDADD = 322,
+ SUBTRACT = 323,
+ MULTIPLY = 324,
+ DIVIDE = 325,
+ OLDEQUALS = 326,
+ OLDLESSTHAN = 327,
+ LOGICALAND = 328,
+ LOGICALOR = 329,
+ NOT = 330,
+ STRINGEQ = 331,
+ STRINGLENGTH = 332,
+ SUBSTRING = 333,
+ GETVARIABLE = 334,
+ SETVARIABLE = 335,
+ SETTARGETEXPRESSION = 336,
+ DUPLICATEMOVIECLIP = 337,
+ REMOVEMOVIECLIP = 338,
+ STRINGLESSTHAN = 339,
+ MBLENGTH = 340,
+ MBSUBSTRING = 341,
+ MBORD = 342,
+ MBCHR = 343,
+ BRANCHALWAYS = 344,
+ BRANCHIFTRUE = 345,
+ GETURL2 = 346,
+ POST = 347,
+ GET = 348,
+ LOADVARIABLES = 349,
+ LOADMOVIE = 350,
+ LOADVARIABLESNUM = 351,
+ LOADMOVIENUM = 352,
+ CALLFRAME = 353,
+ STARTDRAG = 354,
+ STOPDRAG = 355,
+ GOTOFRAME = 356,
+ SETTARGET = 357,
+ NULLVAL = 358,
+ INTEGER = 359,
+ DOUBLE = 360,
+ BOOLEAN = 361,
+ REGISTER = 362,
+ STRING = 363,
+ IDENTIFIER = 364,
+ EQ = 365,
+ LE = 366,
+ GE = 367,
+ NE = 368,
+ LAN = 369,
+ LOR = 370,
+ INCR = 371,
+ DECR = 372,
+ IEQ = 373,
+ DEQ = 374,
+ MEQ = 375,
+ SEQ = 376,
+ REQ = 377,
+ AEQ = 378,
+ OEQ = 379,
+ SHL = 380,
+ SHR = 381,
+ SHR2 = 382,
+ SHLEQ = 383,
+ SHREQ = 384,
+ SHR2EQ = 385,
+ NOELSE = 386,
+ UMINUS = 388,
+ POSTFIX = 389
+ };
+#endif
+#define BREAK 258
+#define CONTINUE 259
+#define FUNCTION 260
+#define ELSE 261
+#define SWITCH 262
+#define CASE 263
+#define DEFAULT 264
+#define FOR 265
+#define IN 266
+#define IF 267
+#define WHILE 268
+#define DO 269
+#define VAR 270
+#define NEW 271
+#define DELETE 272
+#define RETURN 273
+#define END 274
+#define WITH 275
+#define ASM 276
+#define EVAL 277
+#define RANDOM 278
+#define GETTIMER 279
+#define LENGTH 280
+#define CONCAT 281
+#define SUBSTR 282
+#define TRACE 283
+#define INT 284
+#define ORD 285
+#define CHR 286
+#define GETURL 287
+#define GETURL1 288
+#define NEXTFRAME 289
+#define PREVFRAME 290
+#define PLAY 291
+#define STOP 292
+#define TOGGLEQUALITY 293
+#define STOPSOUNDS 294
+#define DUP 295
+#define SWAP 296
+#define POP 297
+#define PUSH 298
+#define SETREGISTER 299
+#define CALLFUNCTION 300
+#define CALLMETHOD 301
+#define AND 302
+#define OR 303
+#define XOR 304
+#define MODULO 305
+#define ADD 306
+#define LESSTHAN 307
+#define EQUALS 308
+#define INC 309
+#define DEC 310
+#define TYPEOF 311
+#define INSTANCEOF 312
+#define ENUMERATE 313
+#define INITOBJECT 314
+#define INITARRAY 315
+#define GETMEMBER 316
+#define SETMEMBER 317
+#define SHIFTLEFT 318
+#define SHIFTRIGHT 319
+#define SHIFTRIGHT2 320
+#define VAREQUALS 321
+#define OLDADD 322
+#define SUBTRACT 323
+#define MULTIPLY 324
+#define DIVIDE 325
+#define OLDEQUALS 326
+#define OLDLESSTHAN 327
+#define LOGICALAND 328
+#define LOGICALOR 329
+#define NOT 330
+#define STRINGEQ 331
+#define STRINGLENGTH 332
+#define SUBSTRING 333
+#define GETVARIABLE 334
+#define SETVARIABLE 335
+#define SETTARGETEXPRESSION 336
+#define DUPLICATEMOVIECLIP 337
+#define REMOVEMOVIECLIP 338
+#define STRINGLESSTHAN 339
+#define MBLENGTH 340
+#define MBSUBSTRING 341
+#define MBORD 342
+#define MBCHR 343
+#define BRANCHALWAYS 344
+#define BRANCHIFTRUE 345
+#define GETURL2 346
+#define POST 347
+#define GET 348
+#define LOADVARIABLES 349
+#define LOADMOVIE 350
+#define LOADVARIABLESNUM 351
+#define LOADMOVIENUM 352
+#define CALLFRAME 353
+#define STARTDRAG 354
+#define STOPDRAG 355
+#define GOTOFRAME 356
+#define SETTARGET 357
+#define NULLVAL 358
+#define INTEGER 359
+#define DOUBLE 360
+#define BOOLEAN 361
+#define REGISTER 362
+#define STRING 363
+#define IDENTIFIER 364
+#define EQ 365
+#define LE 366
+#define GE 367
+#define NE 368
+#define LAN 369
+#define LOR 370
+#define INCR 371
+#define DECR 372
+#define IEQ 373
+#define DEQ 374
+#define MEQ 375
+#define SEQ 376
+#define REQ 377
+#define AEQ 378
+#define OEQ 379
+#define SHL 380
+#define SHR 381
+#define SHR2 382
+#define SHLEQ 383
+#define SHREQ 384
+#define SHR2EQ 385
+#define NOELSE 386
+#define UMINUS 388
+#define POSTFIX 389
+
+
+
+
+#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
+#line 21 "swf5compiler.y"
+typedef union YYSTYPE {
+ Buffer action;
+ char *str;
+ SWFGetUrl2Method getURLMethod;
+ int op;
+ int intVal;
+ int len;
+ double doubleVal;
+
+ struct
+ {
+ Buffer buffer;
+ int count;
+ } exprlist;
+ struct switchcase switchcase;
+ struct switchcases switchcases;
+ struct
+ {
+ Buffer obj, ident, memexpr;
+ } lval;
+} YYSTYPE;
+/* Line 1240 of yacc.c. */
+#line 324 "swf5compiler.tab.h"
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
+#endif
+
+extern YYSTYPE swf5lval;
+
+
+