X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=inline;f=lib%2Faction%2Fswf4compiler.tab.c;h=e792a9d9bda76ba7e7d3f7da296b2c83b12af59b;hb=3e8c263456822a1f6d47ac7ac2133b2d631f2431;hp=8598a4fe2a76b37b9c2fdec6b86b0c253d316400;hpb=ccbf4a94af93cd878643409fa21948f635baa082;p=swftools.git
diff --git a/lib/action/swf4compiler.tab.c b/lib/action/swf4compiler.tab.c
index 8598a4f..e792a9d 100644
--- a/lib/action/swf4compiler.tab.c
+++ b/lib/action/swf4compiler.tab.c
@@ -1,30 +1,39 @@
-/* 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.
+/* A Bison parser, made by GNU Bison 2.4. */
- This program is free software; you can redistribute it and/or modify
+/* Skeleton implementation for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ 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.
-
+ the Free Software Foundation, either version 3 of the License, 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. */
+ along with this program. If not, see . */
+
+/* As a special exception, you may create a larger work that contains
+ part or all of the Bison parser skeleton and distribute that work
+ under terms of your choice, so long as that work isn't itself a
+ parser generator using the skeleton or a modified version thereof
+ as a parser skeleton. Alternatively, if you modify or redistribute
+ the parser skeleton itself, you may (at your option) remove this
+ special exception, which will cause the skeleton and the resulting
+ Bison output files to be licensed under the GNU General Public
+ License without this special exception.
+
+ This special exception was added by the Free Software Foundation in
+ version 2.2 of Bison. */
+
+/* C LALR(1) parser skeleton 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
@@ -36,24 +45,70 @@
/* Identify Bison output. */
#define YYBISON 1
+/* Bison version. */
+#define YYBISON_VERSION "2.4"
+
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 0
+/* Push parsers. */
+#define YYPUSH 0
+
+/* Pull parsers. */
+#define YYPULL 1
+
/* 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
+/* Substitute the variable and function names. */
+#define yyparse swf4parse
+#define yylex swf4lex
+#define yyerror swf4error
+#define yylval swf4lval
+#define yychar swf4char
+#define yydebug swf4debug
+#define yynerrs swf4nerrs
+
+
+/* Copy the first part of user declarations. */
+
+/* Line 189 of yacc.c */
+#line 5 "swf4compiler.y"
+
+
+#include
+#include
+#include
+#include "compile.h"
+#include "action.h"
+
+#define YYPARSE_PARAM buffer
+
+
+
+/* Line 189 of yacc.c */
+#line 94 "swf4compiler.tab.c"
+
+/* 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
+
+/* Enabling the token table. */
+#ifndef YYTOKEN_TABLE
+# define YYTOKEN_TABLE 0
+#endif
/* Tokens. */
@@ -129,167 +184,202 @@
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
+typedef union YYSTYPE
+{
-/* Copy the first part of user declarations. */
-#line 5 "swf4compiler.y"
+/* Line 214 of yacc.c */
+#line 17 "swf4compiler.y"
+ Buffer action;
+ char *str;
+ SWFActionFunction function;
+ SWFGetUrl2Method getURLMethod;
-#include
-#include
-#include
-#include "compile.h"
-#include "action.h"
-#define YYPARSE_PARAM buffer
+
+/* Line 214 of yacc.c */
+#line 206 "swf4compiler.tab.c"
+} YYSTYPE;
+# define YYSTYPE_IS_TRIVIAL 1
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+#endif
+/* Copy the second part of user declarations. */
-/* Enabling traces. */
-#ifndef YYDEBUG
-# define YYDEBUG 0
+
+/* Line 264 of yacc.c */
+#line 218 "swf4compiler.tab.c"
+
+#ifdef short
+# undef short
#endif
-/* Enabling verbose error messages. */
-#ifdef YYERROR_VERBOSE
-# undef YYERROR_VERBOSE
-# define YYERROR_VERBOSE 1
+#ifdef YYTYPE_UINT8
+typedef YYTYPE_UINT8 yytype_uint8;
#else
-# define YYERROR_VERBOSE 0
+typedef unsigned char yytype_uint8;
#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
+#ifdef YYTYPE_INT8
+typedef YYTYPE_INT8 yytype_int8;
+#elif (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+typedef signed char yytype_int8;
+#else
+typedef short int yytype_int8;
#endif
+#ifdef YYTYPE_UINT16
+typedef YYTYPE_UINT16 yytype_uint16;
+#else
+typedef unsigned short int yytype_uint16;
+#endif
+#ifdef YYTYPE_INT16
+typedef YYTYPE_INT16 yytype_int16;
+#else
+typedef short int yytype_int16;
+#endif
-/* Copy the second part of user declarations. */
+#ifndef YYSIZE_T
+# ifdef __SIZE_TYPE__
+# define YYSIZE_T __SIZE_TYPE__
+# elif defined size_t
+# define YYSIZE_T size_t
+# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# else
+# define YYSIZE_T unsigned int
+# endif
+#endif
+
+#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
+
+#ifndef YY_
+# if YYENABLE_NLS
+# if ENABLE_NLS
+# include /* INFRINGES ON USER NAME SPACE */
+# define YY_(msgid) dgettext ("bison-runtime", msgid)
+# endif
+# endif
+# ifndef YY_
+# define YY_(msgid) msgid
+# endif
+#endif
+/* Suppress unused-variable warnings by "using" E. */
+#if ! defined lint || defined __GNUC__
+# define YYUSE(e) ((void) (e))
+#else
+# define YYUSE(e) /* empty */
+#endif
-/* Line 214 of yacc.c. */
-#line 249 "swf4compiler.tab.c"
+/* Identity function, used to suppress warnings about constant conditions. */
+#ifndef lint
+# define YYID(n) (n)
+#else
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static int
+YYID (int yyi)
+#else
+static int
+YYID (yyi)
+ int yyi;
+#endif
+{
+ return yyi;
+}
+#endif
-#if ! defined (yyoverflow) || YYERROR_VERBOSE
+#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
+# ifdef YYSTACK_USE_ALLOCA
+# if YYSTACK_USE_ALLOCA
+# ifdef __GNUC__
+# define YYSTACK_ALLOC __builtin_alloca
+# elif defined __BUILTIN_VA_ARG_INCR
+# include /* INFRINGES ON USER NAME SPACE */
+# elif defined _AIX
+# define YYSTACK_ALLOC __alloca
+# elif defined _MSC_VER
+# include /* INFRINGES ON USER NAME SPACE */
+# define alloca _alloca
# else
-# ifdef __GNUC__
-# define YYSTACK_ALLOC __builtin_alloca
+# define YYSTACK_ALLOC alloca
+# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include /* INFRINGES ON USER NAME SPACE */
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
+ /* Pacify GCC's `empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
+# ifndef YYSTACK_ALLOC_MAXIMUM
+ /* The OS might guarantee only one guard page at the bottom of the stack,
+ and a page size can be as small as 4096 bytes. So we cannot safely
+ invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
+ to allow for a few compiler-allocated temporary stack slots. */
+# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
+# endif
# else
-# if defined (__STDC__) || defined (__cplusplus)
+# define YYSTACK_ALLOC YYMALLOC
+# define YYSTACK_FREE YYFREE
+# ifndef YYSTACK_ALLOC_MAXIMUM
+# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
+# endif
+# if (defined __cplusplus && ! defined _STDLIB_H \
+ && ! ((defined YYMALLOC || defined malloc) \
+ && (defined YYFREE || defined free)))
# include /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
+# endif
+# ifndef YYMALLOC
+# define YYMALLOC malloc
+# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# ifndef YYFREE
+# define YYFREE free
+# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+void free (void *); /* INFRINGES ON USER NAME SPACE */
+# endif
# endif
-# define YYSTACK_ALLOC malloc
-# define YYSTACK_FREE free
# endif
-#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
+#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
-#if (! defined (yyoverflow) \
- && (! defined (__cplusplus) \
- || (YYSTYPE_IS_TRIVIAL)))
+#if (! defined yyoverflow \
+ && (! defined __cplusplus \
+ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
- short yyss;
- YYSTYPE yyvs;
- };
+ yytype_int16 yyss_alloc;
+ YYSTYPE yyvs_alloc;
+};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
@@ -297,24 +387,24 @@ union yyalloc
/* 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)) \
+ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
/* Copy COUNT objects from FROM to TO. The source and destination do
not overlap. */
# ifndef YYCOPY
-# if 1 < __GNUC__
+# if defined __GNUC__ && 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; \
+ YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
- while (0)
+ while (YYID (0))
# endif
# endif
@@ -323,48 +413,42 @@ union yyalloc
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) \
+# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack, Stack, yysize); \
- Stack = &yyptr->Stack; \
+ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
+ Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
- while (0)
-
-#endif
+ while (YYID (0))
-#if defined (__STDC__) || defined (__cplusplus)
- typedef signed char yysigned_char;
-#else
- typedef short yysigned_char;
#endif
-/* YYFINAL -- State number of the termination state. */
+/* YYFINAL -- State number of the termination state. */
#define YYFINAL 108
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 1341
-/* YYNTOKENS -- Number of terminals. */
+/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 86
-/* YYNNTS -- Number of nonterminals. */
+/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 22
-/* YYNRULES -- Number of rules. */
+/* YYNRULES -- Number of rules. */
#define YYNRULES 137
-/* YYNRULES -- Number of states. */
+/* YYNRULES -- Number of states. */
#define YYNSTATES 369
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 322
-#define YYTRANSLATE(YYX) \
+#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
-static const unsigned char yytranslate[] =
+static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -404,7 +488,7 @@ static const unsigned char yytranslate[] =
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
-static const unsigned short yyprhs[] =
+static const yytype_uint16 yyprhs[] =
{
0, 0, 3, 5, 7, 10, 12, 15, 19, 21,
24, 26, 28, 30, 32, 34, 38, 39, 41, 44,
@@ -422,8 +506,8 @@ static const unsigned short yyprhs[] =
577, 581, 585, 591, 597, 603, 609, 615
};
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yysigned_char yyrhs[] =
+/* YYRHS -- A `-1'-separated list of the rules' RHS. */
+static const yytype_int8 yyrhs[] =
{
87, 0, -1, 88, -1, 89, -1, 88, 89, -1,
90, -1, 80, 81, -1, 80, 92, 81, -1, 82,
@@ -490,7 +574,7 @@ static const yysigned_char yyrhs[] =
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
-static const unsigned short yyrline[] =
+static const yytype_uint16 yyrline[] =
{
0, 144, 144, 150, 151, 156, 160, 161, 162, 163,
164, 165, 166, 167, 171, 172, 176, 177, 178, 185,
@@ -509,35 +593,35 @@ static const unsigned short yyrline[] =
};
#endif
-#if YYDEBUG || YYERROR_VERBOSE
-/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
- First, the terminals, then, starting at YYNTOKENS, nonterminals. */
+#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
+/* YYTNAME[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
+ "$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[] =
+static const yytype_uint16 yytoknum[] =
{
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
@@ -552,7 +636,7 @@ static const unsigned short yytoknum[] =
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const unsigned char yyr1[] =
+static const yytype_uint8 yyr1[] =
{
0, 86, 87, 88, 88, 89, 90, 90, 90, 90,
90, 90, 90, 90, 91, 91, 92, 92, 92, 93,
@@ -571,7 +655,7 @@ static const unsigned char yyr1[] =
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const unsigned char yyr2[] =
+static const yytype_uint8 yyr2[] =
{
0, 2, 1, 1, 2, 1, 2, 3, 1, 2,
1, 1, 1, 1, 1, 3, 0, 1, 2, 10,
@@ -592,7 +676,7 @@ static const unsigned char yyr2[] =
/* 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[] =
+static const yytype_uint8 yydefact[] =
{
0, 0, 0, 0, 0, 0, 0, 112, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -633,8 +717,8 @@ static const unsigned char yydefact[] =
0, 74, 19, 22, 0, 0, 0, 0, 50
};
-/* YYDEFGOTO[NTERM-NUM]. */
-static const short yydefgoto[] =
+/* YYDEFGOTO[NTERM-NUM]. */
+static const yytype_int16 yydefgoto[] =
{
-1, 39, 40, 41, 42, 120, 85, 43, 271, 44,
121, 45, 46, 47, 103, 48, 125, 105, 106, 107,
@@ -644,7 +728,7 @@ static const short yydefgoto[] =
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
#define YYPACT_NINF -70
-static const short yypact[] =
+static const yytype_int16 yypact[] =
{
780, -69, -64, -60, -49, 780, -28, -70, -22, -14,
-2, 3, 4, 11, 13, 17, 19, 20, 23, 25,
@@ -686,7 +770,7 @@ static const short yypact[] =
};
/* YYPGOTO[NTERM-NUM]. */
-static const short yypgoto[] =
+static const yytype_int16 yypgoto[] =
{
-70, -70, -70, 285, 53, -70, -70, -70, -70, -70,
21, -70, -70, -70, -70, -70, 346, 0, 6, 12,
@@ -698,7 +782,7 @@ static const short yypgoto[] =
number is the opposite. If zero, do what YYDEFACT says.
If YYTABLE_NINF, syntax error. */
#define YYTABLE_NINF -121
-static const short yytable[] =
+static const yytype_int16 yytable[] =
{
49, 122, 314, 179, 180, 49, 50, 191, 192, 193,
194, 50, 51, 53, 316, 7, 186, 51, -119, 54,
@@ -837,7 +921,7 @@ static const short yytable[] =
0, 245
};
-static const short yycheck[] =
+static const yytype_int16 yycheck[] =
{
0, 54, 65, 49, 50, 5, 0, 72, 73, 74,
75, 5, 0, 82, 65, 10, 62, 5, 66, 83,
@@ -978,7 +1062,7 @@ static const short yycheck[] =
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
-static const unsigned char yystos[] =
+static const yytype_uint8 yystos[] =
{
0, 3, 4, 5, 6, 8, 9, 10, 17, 18,
19, 20, 21, 24, 25, 26, 27, 28, 32, 33,
@@ -1019,22 +1103,6 @@ static const unsigned char yystos[] =
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 /* 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)
@@ -1042,7 +1110,7 @@ static const unsigned char yystos[] =
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrlab1
+#define YYERROR goto yyerrorlab
/* Like YYERROR except do call yyerror. This remains here temporarily
@@ -1060,30 +1128,63 @@ do \
yychar = (Token); \
yylval = (Value); \
yytoken = YYTRANSLATE (yychar); \
- YYPOPSTACK; \
+ YYPOPSTACK (1); \
goto yybackup; \
} \
else \
- { \
- yyerror ("syntax error: cannot back up");\
+ { \
+ yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
-while (0)
+while (YYID (0))
+
#define YYTERROR 1
#define YYERRCODE 256
-/* YYLLOC_DEFAULT -- Compute the default location (before the actions
- are run). */
+/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
+ If N is 0, then set CURRENT to the empty location which ends
+ the previous symbol: RHS[0] (always defined). */
+
+#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#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;
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do \
+ if (YYID (N)) \
+ { \
+ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
+ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
+ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
+ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
+ } \
+ else \
+ { \
+ (Current).first_line = (Current).last_line = \
+ YYRHSLOC (Rhs, 0).last_line; \
+ (Current).first_column = (Current).last_column = \
+ YYRHSLOC (Rhs, 0).last_column; \
+ } \
+ while (YYID (0))
+#endif
+
+
+/* YY_LOCATION_PRINT -- Print the location on the stream.
+ This macro was not mandated originally: define only if we know
+ we won't break user code: when these are the locations we know. */
+
+#ifndef YY_LOCATION_PRINT
+# if YYLTYPE_IS_TRIVIAL
+# define YY_LOCATION_PRINT(File, Loc) \
+ fprintf (File, "%d.%d-%d.%d", \
+ (Loc).first_line, (Loc).first_column, \
+ (Loc).last_line, (Loc).last_column)
+# else
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+# endif
#endif
+
/* YYLEX -- calling `yylex' with the right arguments. */
#ifdef YYLEX_PARAM
@@ -1104,43 +1205,100 @@ while (0)
do { \
if (yydebug) \
YYFPRINTF Args; \
-} while (0)
+} while (YYID (0))
-# define YYDSYMPRINT(Args) \
-do { \
- if (yydebug) \
- yysymprint Args; \
-} while (0)
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
+do { \
+ if (yydebug) \
+ { \
+ YYFPRINTF (stderr, "%s ", Title); \
+ yy_symbol_print (stderr, \
+ Type, Value); \
+ YYFPRINTF (stderr, "\n"); \
+ } \
+} while (YYID (0))
-# define YYDSYMPRINTF(Title, Token, Value, Location) \
-do { \
- if (yydebug) \
- { \
- YYFPRINTF (stderr, "%s ", Title); \
- yysymprint (stderr, \
- Token, Value); \
- YYFPRINTF (stderr, "\n"); \
- } \
-} while (0)
+
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+
+/*ARGSUSED*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
+static void
+yy_symbol_value_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
+#endif
+{
+ if (!yyvaluep)
+ return;
+# ifdef YYPRINT
+ if (yytype < YYNTOKENS)
+ YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+# else
+ YYUSE (yyoutput);
+# endif
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+}
+
+
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
+static void
+yy_symbol_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
+#endif
+{
+ if (yytype < YYNTOKENS)
+ YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+ else
+ YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
+
+ yy_symbol_value_print (yyoutput, yytype, yyvaluep);
+ YYFPRINTF (yyoutput, ")");
+}
/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
-| TOP (cinluded). |
+| TOP (included). |
`------------------------------------------------------------------*/
-#if defined (__STDC__) || defined (__cplusplus)
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
static void
-yy_stack_print (short *bottom, short *top)
+yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
static void
-yy_stack_print (bottom, top)
- short *bottom;
- short *top;
+yy_stack_print (yybottom, yytop)
+ yytype_int16 *yybottom;
+ yytype_int16 *yytop;
#endif
{
YYFPRINTF (stderr, "Stack now");
- for (/* Nothing. */; bottom <= top; ++bottom)
- YYFPRINTF (stderr, " %d", *bottom);
+ for (; yybottom <= yytop; yybottom++)
+ {
+ int yybot = *yybottom;
+ YYFPRINTF (stderr, " %d", yybot);
+ }
YYFPRINTF (stderr, "\n");
}
@@ -1148,45 +1306,52 @@ yy_stack_print (bottom, top)
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
-} while (0)
+} while (YYID (0))
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
-#if defined (__STDC__) || defined (__cplusplus)
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
static void
-yy_reduce_print (int yyrule)
+yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
#else
static void
-yy_reduce_print (yyrule)
+yy_reduce_print (yyvsp, yyrule)
+ YYSTYPE *yyvsp;
int yyrule;
#endif
{
+ int yynrhs = yyr2[yyrule];
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]]);
+ unsigned long int yylno = yyrline[yyrule];
+ YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
+ yyrule - 1, yylno);
+ /* The symbols being reduced. */
+ for (yyi = 0; yyi < yynrhs; yyi++)
+ {
+ YYFPRINTF (stderr, " $%d = ", yyi + 1);
+ yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
+ &(yyvsp[(yyi + 1) - (yynrhs)])
+ );
+ YYFPRINTF (stderr, "\n");
+ }
}
# define YY_REDUCE_PRINT(Rule) \
do { \
if (yydebug) \
- yy_reduce_print (Rule); \
-} while (0)
+ yy_reduce_print (yyvsp, Rule); \
+} while (YYID (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_SYMBOL_PRINT(Title, Type, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */
@@ -1201,13 +1366,9 @@ int yydebug;
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)
+ YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
evaluated with infinite-precision integer arithmetic. */
-#if YYMAXDEPTH == 0
-# undef YYMAXDEPTH
-#endif
-
#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif
@@ -1217,45 +1378,47 @@ int yydebug;
#if YYERROR_VERBOSE
# ifndef yystrlen
-# if defined (__GLIBC__) && defined (_STRING_H)
+# if defined __GLIBC__ && defined _STRING_H
# define yystrlen strlen
# else
/* Return the length of YYSTR. */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
-# if defined (__STDC__) || defined (__cplusplus)
yystrlen (const char *yystr)
-# else
+#else
+static YYSIZE_T
yystrlen (yystr)
- const char *yystr;
-# endif
+ const char *yystr;
+#endif
{
- register const char *yys = yystr;
-
- while (*yys++ != '\0')
+ YYSIZE_T yylen;
+ for (yylen = 0; yystr[yylen]; yylen++)
continue;
-
- return yys - yystr - 1;
+ return yylen;
}
# endif
# endif
# ifndef yystpcpy
-# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
+# 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. */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
static char *
-# if defined (__STDC__) || defined (__cplusplus)
yystpcpy (char *yydest, const char *yysrc)
-# else
+#else
+static char *
yystpcpy (yydest, yysrc)
- char *yydest;
- const char *yysrc;
-# endif
+ char *yydest;
+ const char *yysrc;
+#endif
{
- register char *yyd = yydest;
- register const char *yys = yysrc;
+ char *yyd = yydest;
+ const char *yys = yysrc;
while ((*yyd++ = *yys++) != '\0')
continue;
@@ -1265,84 +1428,204 @@ yystpcpy (yydest, yysrc)
# endif
# endif
-#endif /* !YYERROR_VERBOSE */
+# ifndef yytnamerr
+/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
+ quotes and backslashes, so that it's suitable for yyerror. The
+ heuristic is that double-quoting is unnecessary unless the string
+ contains an apostrophe, a comma, or backslash (other than
+ backslash-backslash). YYSTR is taken from yytname. If YYRES is
+ null, do not copy; instead, return the length of what the result
+ would have been. */
+static YYSIZE_T
+yytnamerr (char *yyres, const char *yystr)
+{
+ if (*yystr == '"')
+ {
+ YYSIZE_T yyn = 0;
+ char const *yyp = yystr;
+
+ for (;;)
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ /* Fall through. */
+ default:
+ if (yyres)
+ yyres[yyn] = *yyp;
+ yyn++;
+ break;
+
+ case '"':
+ if (yyres)
+ yyres[yyn] = '\0';
+ return yyn;
+ }
+ do_not_strip_quotes: ;
+ }
-
+ if (! yyres)
+ return yystrlen (yystr);
-#if YYDEBUG
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
+ return yystpcpy (yyres, yystr) - yyres;
+}
+# endif
-#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
+/* Copy into YYRESULT an error message about the unexpected token
+ YYCHAR while in state YYSTATE. Return the number of bytes copied,
+ including the terminating null byte. If YYRESULT is null, do not
+ copy anything; just return the number of bytes that would be
+ copied. As a special case, return 0 if an ordinary "syntax error"
+ message will do. Return YYSIZE_MAXIMUM if overflow occurs during
+ size calculation. */
+static YYSIZE_T
+yysyntax_error (char *yyresult, int yystate, int yychar)
{
- /* Pacify ``unused variable'' warnings. */
- (void) yyvaluep;
+ int yyn = yypact[yystate];
- if (yytype < YYNTOKENS)
- {
- YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
-# ifdef YYPRINT
- YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
-# endif
- }
+ if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
+ return 0;
else
- YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
-
- switch (yytype)
{
- default:
- break;
+ int yytype = YYTRANSLATE (yychar);
+ YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
+ YYSIZE_T yysize = yysize0;
+ YYSIZE_T yysize1;
+ int yysize_overflow = 0;
+ enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
+ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
+ int yyx;
+
+# if 0
+ /* This is so xgettext sees the translatable formats that are
+ constructed on the fly. */
+ YY_("syntax error, unexpected %s");
+ YY_("syntax error, unexpected %s, expecting %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
+# endif
+ char *yyfmt;
+ char const *yyf;
+ static char const yyunexpected[] = "syntax error, unexpected %s";
+ static char const yyexpecting[] = ", expecting %s";
+ static char const yyor[] = " or %s";
+ char yyformat[sizeof yyunexpected
+ + sizeof yyexpecting - 1
+ + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
+ * (sizeof yyor - 1))];
+ char const *yyprefix = yyexpecting;
+
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. */
+ int yyxbegin = yyn < 0 ? -yyn : 0;
+
+ /* Stay within bounds of both yycheck and yytname. */
+ int yychecklim = YYLAST - yyn + 1;
+ int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
+ int yycount = 1;
+
+ yyarg[0] = yytname[yytype];
+ yyfmt = yystpcpy (yyformat, yyunexpected);
+
+ for (yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+ {
+ if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
+ {
+ yycount = 1;
+ yysize = yysize0;
+ yyformat[sizeof yyunexpected - 1] = '\0';
+ break;
+ }
+ yyarg[yycount++] = yytname[yyx];
+ yysize1 = yysize + yytnamerr (0, yytname[yyx]);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+ yyfmt = yystpcpy (yyfmt, yyprefix);
+ yyprefix = yyor;
+ }
+
+ yyf = YY_(yyformat);
+ yysize1 = yysize + yystrlen (yyf);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+
+ if (yysize_overflow)
+ return YYSIZE_MAXIMUM;
+
+ if (yyresult)
+ {
+ /* Avoid sprintf, as that infringes on the user's name space.
+ Don't have undefined behavior even if the translation
+ produced a string with the wrong number of "%s"s. */
+ char *yyp = yyresult;
+ int yyi = 0;
+ while ((*yyp = *yyf) != '\0')
+ {
+ if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
+ {
+ yyp += yytnamerr (yyp, yyarg[yyi++]);
+ yyf += 2;
+ }
+ else
+ {
+ yyp++;
+ yyf++;
+ }
+ }
+ }
+ return yysize;
}
- YYFPRINTF (yyoutput, ")");
}
+#endif /* YYERROR_VERBOSE */
+
-#endif /* ! YYDEBUG */
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
-#if defined (__STDC__) || defined (__cplusplus)
+/*ARGSUSED*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
static void
-yydestruct (int yytype, YYSTYPE *yyvaluep)
+yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
#else
static void
-yydestruct (yytype, yyvaluep)
+yydestruct (yymsg, yytype, yyvaluep)
+ const char *yymsg;
int yytype;
YYSTYPE *yyvaluep;
#endif
{
- /* Pacify ``unused variable'' warnings. */
- (void) yyvaluep;
+ YYUSE (yyvaluep);
+
+ if (!yymsg)
+ yymsg = "Deleting";
+ YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
switch (yytype)
{
default:
- break;
+ break;
}
}
-
/* Prevent warnings from -Wmissing-prototypes. */
-
#ifdef YYPARSE_PARAM
-# if defined (__STDC__) || defined (__cplusplus)
+#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
-# else
+#else
int yyparse ();
-# endif
+#endif
#else /* ! YYPARSE_PARAM */
-#if defined (__STDC__) || defined (__cplusplus)
+#if defined __STDC__ || defined __cplusplus
int yyparse (void);
#else
int yyparse ();
@@ -1350,7 +1633,6 @@ int yyparse ();
#endif /* ! YYPARSE_PARAM */
-
/* The lookahead symbol. */
int yychar;
@@ -1362,19 +1644,23 @@ int yynerrs;
-/*----------.
-| yyparse. |
-`----------*/
+/*-------------------------.
+| yyparse or yypush_parse. |
+`-------------------------*/
#ifdef YYPARSE_PARAM
-# if defined (__STDC__) || defined (__cplusplus)
-int yyparse (void *YYPARSE_PARAM)
-# else
-int yyparse (YYPARSE_PARAM)
- void *YYPARSE_PARAM;
-# endif
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+int
+yyparse (void *YYPARSE_PARAM)
+#else
+int
+yyparse (YYPARSE_PARAM)
+ void *YYPARSE_PARAM;
+#endif
#else /* ! YYPARSE_PARAM */
-#if defined (__STDC__) || defined (__cplusplus)
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
#else
@@ -1384,60 +1670,68 @@ 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. */
+ int yystate;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
- /* The state stack. */
- short yyssa[YYINITDEPTH];
- short *yyss = yyssa;
- register short *yyssp;
+ /* The stacks and their tools:
+ `yyss': related to states.
+ `yyvs': related to semantic values.
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs = yyvsa;
- register YYSTYPE *yyvsp;
+ Refer to the stacks thru separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+ /* The state stack. */
+ yytype_int16 yyssa[YYINITDEPTH];
+ yytype_int16 *yyss;
+ yytype_int16 *yyssp;
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs;
+ YYSTYPE *yyvsp;
-#define YYPOPSTACK (yyvsp--, yyssp--)
-
- YYSIZE_T yystacksize = YYINITDEPTH;
+ YYSIZE_T yystacksize;
+ int yyn;
+ int yyresult;
+ /* Lookahead token as an internal (translated) token number. */
+ int yytoken;
/* The variables used to return semantic value and location from the
action routines. */
YYSTYPE yyval;
+#if YYERROR_VERBOSE
+ /* Buffer for error messages, and its allocated size. */
+ char yymsgbuf[128];
+ char *yymsg = yymsgbuf;
+ YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
+#endif
+
+#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
+
+ /* The number of symbols on the RHS of the reduced rule.
+ Keep to zero when no symbol should be popped. */
+ int yylen = 0;
- /* When reducing, the number of symbols on the RHS of the reduced
- rule. */
- int yylen;
+ yytoken = 0;
+ yyss = yyssa;
+ yyvs = yyvsa;
+ yystacksize = YYINITDEPTH;
YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
+ 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;
@@ -1448,8 +1742,7 @@ yyparse ()
`------------------------------------------------------------*/
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.
- */
+ have just been pushed. So pushing a state here evens the stacks. */
yyssp++;
yysetstate:
@@ -1462,21 +1755,19 @@ yyparse ()
#ifdef yyoverflow
{
- /* Give user a chance to reallocate the stack. Use copies of
+ /* 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;
-
+ yytype_int16 *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",
+ yyoverflow (YY_("memory exhausted"),
&yyss1, yysize * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
-
&yystacksize);
yyss = yyss1;
@@ -1484,24 +1775,23 @@ yyparse ()
}
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
- goto yyoverflowlab;
+ goto yyexhaustedlab;
# else
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
- goto yyoverflowlab;
+ goto yyexhaustedlab;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
yystacksize = YYMAXDEPTH;
{
- short *yyss1 = yyss;
+ yytype_int16 *yyss1 = yyss;
union yyalloc *yyptr =
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
if (! yyptr)
- goto yyoverflowlab;
- YYSTACK_RELOCATE (yyss);
- YYSTACK_RELOCATE (yyvs);
-
+ goto yyexhaustedlab;
+ YYSTACK_RELOCATE (yyss_alloc, yyss);
+ YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# undef YYSTACK_RELOCATE
if (yyss1 != yyssa)
YYSTACK_FREE (yyss1);
@@ -1512,7 +1802,6 @@ yyparse ()
yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1;
-
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
(unsigned long int) yystacksize));
@@ -1522,6 +1811,9 @@ yyparse ()
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+ if (yystate == YYFINAL)
+ YYACCEPT;
+
goto yybackup;
/*-----------.
@@ -1529,12 +1821,10 @@ yyparse ()
`-----------*/
yybackup:
-/* Do appropriate processing given the current state. */
-/* Read a lookahead token if we need one and don't already have one. */
-/* yyresume: */
+ /* Do appropriate processing given the current state. Read a
+ lookahead token if we need one and don't already have one. */
/* First try to decide what to do without reference to lookahead token. */
-
yyn = yypact[yystate];
if (yyn == YYPACT_NINF)
goto yydefault;
@@ -1556,7 +1846,7 @@ yybackup:
else
{
yytoken = YYTRANSLATE (yychar);
- YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
+ YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
}
/* If the proper action on seeing token YYTOKEN is to reduce or to
@@ -1573,25 +1863,20 @@ yybackup:
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--;
+ /* Shift the lookahead token. */
+ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
+
+ /* Discard the shifted token. */
+ yychar = YYEMPTY;
+
yystate = yyn;
+ *++yyvsp = yylval;
+
goto yynewstate;
@@ -1627,1078 +1912,1319 @@ yyreduce:
switch (yyn)
{
case 2:
+
+/* Line 1455 of yacc.c */
#line 145 "swf4compiler.y"
- { *((Buffer *)buffer) = yyvsp[0].action; ;}
+ { *((Buffer *)buffer) = (yyvsp[(1) - (1)].action); ;}
break;
case 4:
+
+/* Line 1455 of yacc.c */
#line 152 "swf4compiler.y"
- { bufferConcat(yyvsp[-1].action, yyvsp[0].action); ;}
+ { bufferConcat((yyvsp[(1) - (2)].action), (yyvsp[(2) - (2)].action)); ;}
break;
case 6:
+
+/* Line 1455 of yacc.c */
#line 160 "swf4compiler.y"
- { yyval.action = NULL; ;}
+ { (yyval.action) = NULL; ;}
break;
case 7:
+
+/* Line 1455 of yacc.c */
#line 161 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action; ;}
+ { (yyval.action) = (yyvsp[(2) - (3)].action); ;}
break;
case 8:
+
+/* Line 1455 of yacc.c */
#line 162 "swf4compiler.y"
- { yyval.action = NULL; ;}
+ { (yyval.action) = NULL; ;}
break;
case 15:
+
+/* Line 1455 of yacc.c */
#line 172 "swf4compiler.y"
- { bufferConcat(yyvsp[-2].action, yyvsp[0].action); ;}
+ { bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action)); ;}
break;
case 16:
+
+/* Line 1455 of yacc.c */
#line 176 "swf4compiler.y"
- { yyval.action = NULL; ;}
+ { (yyval.action) = NULL; ;}
break;
case 18:
+
+/* Line 1455 of yacc.c */
#line 179 "swf4compiler.y"
- { bufferConcat(yyvsp[-1].action, yyvsp[0].action); ;}
+ { bufferConcat((yyvsp[(1) - (2)].action), (yyvsp[(2) - (2)].action)); ;}
break;
case 19:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_WAITFORFRAME);
+ bufferWriteS16((yyval.action), 3);
+ bufferWriteS16((yyval.action), atoi((yyvsp[(5) - (10)].str)));
+ free((yyvsp[(5) - (10)].str));
+ bufferWriteU8((yyval.action), 1); /* if not loaded, jump to.. */
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), bufferLength((yyvsp[(10) - (10)].action))+5);
+ bufferConcat((yyval.action), (yyvsp[(10) - (10)].action)); /* ..here */
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), bufferLength((yyvsp[(8) - (10)].action)));
+ bufferConcat((yyval.action), (yyvsp[(8) - (10)].action)); ;}
break;
case 20:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_WAITFORFRAME);
+ bufferWriteS16((yyval.action), 3);
+ bufferWriteS16((yyval.action), atoi((yyvsp[(5) - (8)].str)));
+ free((yyvsp[(5) - (8)].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[(8) - (8)].action))); /* ..and then out */
+ bufferConcat((yyval.action), (yyvsp[(8) - (8)].action)); ;}
break;
case 21:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_WAITFORFRAME);
+ bufferWriteS16((yyval.action), 3);
+ bufferWriteS16((yyval.action), atoi((yyvsp[(6) - (9)].str)));
+ free((yyvsp[(6) - (9)].str));
+ bufferWriteU8((yyval.action), 1); /* if not loaded, jump to.. */
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), bufferLength((yyvsp[(9) - (9)].action)));
+ bufferConcat((yyval.action), (yyvsp[(9) - (9)].action)); ;}
break;
case 22:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(5) - (10)].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[(10) - (10)].action))+5);
+ bufferConcat((yyval.action), (yyvsp[(10) - (10)].action)); /* ..here */
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), bufferLength((yyvsp[(8) - (10)].action)));
+ bufferConcat((yyval.action), (yyvsp[(8) - (10)].action)); ;}
break;
case 23:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(5) - (8)].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[(8) - (8)].action))); /* ..and then out */
+ bufferConcat((yyval.action), (yyvsp[(8) - (8)].action)); ;}
break;
case 24:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(6) - (9)].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[(9) - (9)].action)));
+ bufferConcat((yyval.action), (yyvsp[(9) - (9)].action)); ;}
break;
case 25:
+
+/* Line 1455 of yacc.c */
#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; ;}
+ { bufferWriteU8((yyvsp[(3) - (7)].action), SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16((yyvsp[(3) - (7)].action), 2);
+ bufferWriteS16((yyvsp[(3) - (7)].action), bufferLength((yyvsp[(7) - (7)].action))+5);
+ bufferConcat((yyvsp[(3) - (7)].action), (yyvsp[(7) - (7)].action));
+ bufferWriteU8((yyvsp[(3) - (7)].action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyvsp[(3) - (7)].action), 2);
+ bufferWriteS16((yyvsp[(3) - (7)].action), bufferLength((yyvsp[(5) - (7)].action)));
+ bufferConcat((yyvsp[(3) - (7)].action), (yyvsp[(5) - (7)].action));
+ (yyval.action) = (yyvsp[(3) - (7)].action); ;}
break;
case 26:
+
+/* Line 1455 of yacc.c */
#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; ;}
+ { bufferWriteU8((yyvsp[(3) - (5)].action), SWFACTION_LOGICALNOT);
+ bufferWriteU8((yyvsp[(3) - (5)].action), SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16((yyvsp[(3) - (5)].action), 2);
+ bufferWriteS16((yyvsp[(3) - (5)].action), bufferLength((yyvsp[(5) - (5)].action)));
+ bufferConcat((yyvsp[(3) - (5)].action), (yyvsp[(5) - (5)].action));
+ (yyval.action) = (yyvsp[(3) - (5)].action); ;}
break;
case 27:
+
+/* Line 1455 of yacc.c */
#line 288 "swf4compiler.y"
- { yyval.action = NULL; ;}
+ { (yyval.action) = NULL; ;}
break;
case 28:
+
+/* Line 1455 of yacc.c */
#line 289 "swf4compiler.y"
- { yyval.action = yyvsp[0].action; ;}
+ { (yyval.action) = (yyvsp[(1) - (1)].action); ;}
break;
case 29:
+
+/* Line 1455 of yacc.c */
#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)); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_WAITFORFRAME);
+ bufferWriteS16((yyval.action), 3);
+ bufferWriteS16((yyval.action), atoi((yyvsp[(6) - (9)].str)));
+ free((yyvsp[(6) - (9)].str));
+ bufferWriteU8((yyval.action), 1); /* if not loaded, jump to.. */
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), bufferLength((yyvsp[(9) - (9)].action))+5);
+ bufferConcat((yyval.action), (yyvsp[(9) - (9)].action)); /* ..here */
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), -(bufferLength((yyval.action))+2)); ;}
break;
case 30:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(3) - (5)].action);
+ bufferWriteU8((yyval.action), SWFACTION_LOGICALNOT);
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), bufferLength((yyvsp[(5) - (5)].action))+5);
+ bufferConcat((yyval.action), (yyvsp[(5) - (5)].action));
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), -(bufferLength((yyval.action))+2));
+ bufferResolveJumps((yyval.action)); ;}
break;
case 31:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(2) - (6)].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (6)].action));
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), -(bufferLength((yyval.action))+2));
+ bufferResolveJumps((yyval.action)); ;}
break;
case 32:
+
+/* Line 1455 of yacc.c */
#line 349 "swf4compiler.y"
- { if (!yyvsp[-4].action)
- yyvsp[-4].action = newBuffer();
+ { if (!(yyvsp[(5) - (9)].action))
+ (yyvsp[(5) - (9)].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);
+ bufferWriteU8((yyvsp[(5) - (9)].action), SWFACTION_LOGICALNOT);
+ bufferWriteU8((yyvsp[(5) - (9)].action), SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16((yyvsp[(5) - (9)].action), 2);
+ bufferWriteS16((yyvsp[(5) - (9)].action), bufferLength((yyvsp[(9) - (9)].action))+bufferLength((yyvsp[(7) - (9)].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);
+ bufferConcat((yyvsp[(5) - (9)].action), (yyvsp[(9) - (9)].action));
+ bufferConcat((yyvsp[(5) - (9)].action), (yyvsp[(7) - (9)].action));
+ bufferWriteU8((yyvsp[(5) - (9)].action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyvsp[(5) - (9)].action), 2);
+ bufferWriteS16((yyvsp[(5) - (9)].action), -(bufferLength((yyvsp[(5) - (9)].action))+2));
+ bufferResolveJumps((yyvsp[(5) - (9)].action));
+ (yyval.action) = (yyvsp[(3) - (9)].action);
+ if(!(yyval.action)) (yyval.action) = newBuffer();
+ bufferConcat((yyval.action), (yyvsp[(5) - (9)].action));
;}
break;
case 33:
+
+/* Line 1455 of yacc.c */
#line 370 "swf4compiler.y"
- { yyval.action = NULL; ;}
+ { (yyval.action) = NULL; ;}
break;
case 35:
+
+/* Line 1455 of yacc.c */
#line 376 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
- bufferWriteS16(yyval.action, 2);
- bufferWriteS16(yyval.action, MAGIC_CONTINUE_NUMBER); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), MAGIC_CONTINUE_NUMBER); ;}
break;
case 36:
+
+/* Line 1455 of yacc.c */
#line 384 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteU8(yyval.action, SWFACTION_BRANCHALWAYS);
- bufferWriteS16(yyval.action, 2);
- bufferWriteS16(yyval.action, MAGIC_BREAK_NUMBER); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), MAGIC_BREAK_NUMBER); ;}
break;
case 37:
+
+/* Line 1455 of yacc.c */
#line 392 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteU8(yyval.action, SWFACTION_STOPDRAGMOVIE); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_STOPDRAGMOVIE); ;}
break;
case 38:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(3) - (4)].str), strlen((yyvsp[(3) - (4)].str))+1);
+ bufferWriteU8((yyval.action), SWFACTION_CALLFRAME);
+ bufferWriteS16((yyval.action), 0);
+ free((yyvsp[(3) - (4)].str)); ;}
break;
case 39:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(3) - (4)].str), strlen((yyvsp[(3) - (4)].str))+1);
+ bufferWriteU8((yyval.action), SWFACTION_CALLFRAME);
+ bufferWriteS16((yyval.action), 0);
+ free((yyvsp[(3) - (4)].str)); ;}
break;
case 40:
+
+/* Line 1455 of yacc.c */
#line 410 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_REMOVECLIP); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_REMOVECLIP); ;}
break;
case 41:
+
+/* Line 1455 of yacc.c */
#line 414 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_TRACE); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_TRACE); ;}
break;
case 42:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(3) - (6)].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (6)].action));
+ bufferWriteU8((yyval.action), SWFACTION_GETURL2);
+ bufferWriteS16((yyval.action), 1);
+ bufferWriteU8((yyval.action), GETURL_METHOD_NOSEND); ;}
break;
case 43:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(3) - (8)].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (8)].action));
+ bufferWriteU8((yyval.action), SWFACTION_GETURL2);
+ bufferWriteS16((yyval.action), 1);
+ bufferWriteU8((yyval.action), (yyvsp[(7) - (8)].getURLMethod)); ;}
break;
case 44:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_GETURL);
+ bufferWriteS16((yyval.action), strlen((yyvsp[(3) - (6)].str)) + strlen((yyvsp[(5) - (6)].str)) + 2);
+ bufferWriteHardString((yyval.action), (byte*)(yyvsp[(3) - (6)].str), strlen((yyvsp[(3) - (6)].str)));
+ bufferWriteU8((yyval.action), 0);
+ bufferWriteHardString((yyval.action), (byte*)(yyvsp[(5) - (6)].str), strlen((yyvsp[(5) - (6)].str)));
+ bufferWriteU8((yyval.action), 0); ;}
break;
case 45:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(3) - (6)].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (6)].action));
+ bufferWriteU8((yyval.action), SWFACTION_GETURL2);
+ bufferWriteS16((yyval.action), 1);
+ bufferWriteU8((yyval.action), GETURL_METHOD_NOSEND | GETURL_LOADMOVIE); ;}
break;
case 46:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(3) - (8)].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (8)].action));
+ bufferWriteU8((yyval.action), SWFACTION_GETURL2);
+ bufferWriteS16((yyval.action), 1);
+ bufferWriteU8((yyval.action), (yyvsp[(7) - (8)].getURLMethod) | GETURL_LOADMOVIE); ;}
break;
case 47:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(3) - (6)].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (6)].action));
+ bufferWriteU8((yyval.action), SWFACTION_GETURL2);
+ bufferWriteS16((yyval.action), 1);
+ bufferWriteU8((yyval.action), GETURL_METHOD_NOSEND | GETURL_LOADVARIABLES); ;}
break;
case 48:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(3) - (8)].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (8)].action));
+ bufferWriteU8((yyval.action), SWFACTION_GETURL2);
+ bufferWriteS16((yyval.action), 1);
+ bufferWriteU8((yyval.action), (yyvsp[(7) - (8)].getURLMethod) | GETURL_LOADVARIABLES); ;}
break;
case 49:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), "0", 2); /* no constraint */
+ bufferConcat((yyval.action), (yyvsp[(5) - (6)].action));
+ bufferConcat((yyval.action), (yyvsp[(3) - (6)].action));
+ bufferWriteU8((yyval.action), SWFACTION_STARTDRAGMOVIE); ;}
break;
case 50:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferConcat((yyval.action), (yyvsp[(7) - (14)].action));
+ bufferConcat((yyval.action), (yyvsp[(11) - (14)].action));
+ bufferConcat((yyval.action), (yyvsp[(9) - (14)].action));
+ bufferConcat((yyval.action), (yyvsp[(13) - (14)].action));
+ bufferWriteString((yyval.action), "1", 2); /* has constraint */
+ bufferConcat((yyval.action), (yyvsp[(5) - (14)].action));
+ bufferConcat((yyval.action), (yyvsp[(3) - (14)].action));
+ bufferWriteU8((yyval.action), SWFACTION_STARTDRAGMOVIE); ;}
break;
case 51:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(3) - (8)].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (8)].action));
+ bufferConcat((yyval.action), (yyvsp[(7) - (8)].action));
+ bufferWriteWTHITProperty((yyval.action));
+ bufferWriteU8((yyval.action), SWFACTION_ADD); /* see docs for explanation */
+ bufferWriteU8((yyval.action), SWFACTION_DUPLICATECLIP); ;}
break;
case 52:
+
+/* Line 1455 of yacc.c */
#line 499 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteU8(yyval.action, SWFACTION_NEXTFRAME); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_NEXTFRAME); ;}
break;
case 53:
+
+/* Line 1455 of yacc.c */
#line 503 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteU8(yyval.action, SWFACTION_PREVFRAME); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_PREVFRAME); ;}
break;
case 54:
+
+/* Line 1455 of yacc.c */
#line 507 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteU8(yyval.action, SWFACTION_PLAY); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_PLAY); ;}
break;
case 55:
+
+/* Line 1455 of yacc.c */
#line 511 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteU8(yyval.action, SWFACTION_STOP); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_STOP); ;}
break;
case 56:
+
+/* Line 1455 of yacc.c */
#line 515 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteU8(yyval.action, SWFACTION_TOGGLEQUALITY); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_TOGGLEQUALITY); ;}
break;
case 57:
+
+/* Line 1455 of yacc.c */
#line 519 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteU8(yyval.action, SWFACTION_STOPSOUNDS); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_STOPSOUNDS); ;}
break;
case 58:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_GOTOFRAME);
+ bufferWriteS16((yyval.action), 2);
+ bufferWriteS16((yyval.action), atoi((yyvsp[(3) - (4)].str)));
+ free((yyvsp[(3) - (4)].str)); ;}
break;
case 59:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_GOTOLABEL);
+ bufferWriteS16((yyval.action), strlen((yyvsp[(3) - (4)].str))+1);
+ bufferWriteHardString((yyval.action), (byte*)(yyvsp[(3) - (4)].str), strlen((yyvsp[(3) - (4)].str))+1);
+ free((yyvsp[(3) - (4)].str)); ;}
break;
case 60:
+
+/* Line 1455 of yacc.c */
#line 537 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_GOTOEXPRESSION);
- bufferWriteS16(yyval.action, 1);
- bufferWriteU8(yyval.action, 0); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_GOTOEXPRESSION);
+ bufferWriteS16((yyval.action), 1);
+ bufferWriteU8((yyval.action), 0); ;}
break;
case 61:
+
+/* Line 1455 of yacc.c */
#line 543 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_GOTOEXPRESSION);
- bufferWriteS16(yyval.action, 1);
- bufferWriteU8(yyval.action, 1); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_GOTOEXPRESSION);
+ bufferWriteS16((yyval.action), 1);
+ bufferWriteU8((yyval.action), 1); ;}
break;
case 62:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_SETTARGET);
+ bufferWriteS16((yyval.action), strlen((yyvsp[(3) - (4)].str))+1);
+ bufferWriteHardString((yyval.action), (byte*)(yyvsp[(3) - (4)].str), strlen((yyvsp[(3) - (4)].str))+1);
+ free((yyvsp[(3) - (4)].str)); ;}
break;
case 63:
+
+/* Line 1455 of yacc.c */
#line 556 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_SETTARGETEXPRESSION); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_SETTARGETEXPRESSION); ;}
break;
case 64:
+
+/* Line 1455 of yacc.c */
#line 560 "swf4compiler.y"
- { yyval.action = newBuffer();
+ { (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);
+ bufferWriteU8((yyval.action), SWFACTION_SETTARGET);
+ bufferWriteS16((yyval.action), strlen((yyvsp[(3) - (5)].str))+1);
+ bufferWriteHardString((yyval.action), (byte*)(yyvsp[(3) - (5)].str), strlen((yyvsp[(3) - (5)].str))+1);
/* stmt */
- bufferConcat(yyval.action, yyvsp[0].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (5)].action));
/* SetTarget('') */
- bufferWriteU8(yyval.action, SWFACTION_SETTARGET);
- bufferWriteS16(yyval.action, 1);
- bufferWriteU8(yyval.action, 0);
- free(yyvsp[-2].str); ;}
+ bufferWriteU8((yyval.action), SWFACTION_SETTARGET);
+ bufferWriteS16((yyval.action), 1);
+ bufferWriteU8((yyval.action), 0);
+ free((yyvsp[(3) - (5)].str)); ;}
break;
case 65:
+
+/* Line 1455 of yacc.c */
#line 574 "swf4compiler.y"
- { yyval.action = yyvsp[-2].action;
+ { (yyval.action) = (yyvsp[(3) - (5)].action);
/* SetTarget(expr) */
- bufferWriteU8(yyval.action, SWFACTION_SETTARGETEXPRESSION);
+ bufferWriteU8((yyval.action), SWFACTION_SETTARGETEXPRESSION);
/* stmt */
- bufferConcat(yyval.action, yyvsp[0].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (5)].action));
/* SetTarget('') */
- bufferWriteU8(yyval.action, SWFACTION_SETTARGET);
- bufferWriteS16(yyval.action, 1);
- bufferWriteU8(yyval.action, 0); ;}
+ bufferWriteU8((yyval.action), SWFACTION_SETTARGET);
+ bufferWriteS16((yyval.action), 1);
+ bufferWriteU8((yyval.action), 0); ;}
break;
case 66:
+
+/* Line 1455 of yacc.c */
#line 587 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_GETVARIABLE); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_GETVARIABLE); ;}
break;
case 67:
+
+/* Line 1455 of yacc.c */
#line 591 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteU8(yyval.action, SWFACTION_GETTIMER); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteU8((yyval.action), SWFACTION_GETTIMER); ;}
break;
case 68:
+
+/* Line 1455 of yacc.c */
#line 595 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_RANDOM); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_RANDOM); ;}
break;
case 69:
+
+/* Line 1455 of yacc.c */
#line 599 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_STRINGLENGTH); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_STRINGLENGTH); ;}
break;
case 70:
+
+/* Line 1455 of yacc.c */
#line 603 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_INT); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_INT); ;}
break;
case 71:
+
+/* Line 1455 of yacc.c */
#line 607 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_ORD); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_ORD); ;}
break;
case 72:
+
+/* Line 1455 of yacc.c */
#line 611 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action;
- bufferWriteU8(yyval.action, SWFACTION_CHR); ;}
+ { (yyval.action) = (yyvsp[(3) - (4)].action);
+ bufferWriteU8((yyval.action), SWFACTION_CHR); ;}
break;
case 73:
+
+/* Line 1455 of yacc.c */
#line 615 "swf4compiler.y"
- { yyval.action = yyvsp[-3].action;
- bufferConcat(yyval.action, yyvsp[-1].action);
- bufferWriteU8(yyval.action, SWFACTION_STRINGCONCAT); ;}
+ { (yyval.action) = (yyvsp[(3) - (6)].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (6)].action));
+ bufferWriteU8((yyval.action), SWFACTION_STRINGCONCAT); ;}
break;
case 74:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(3) - (8)].action);
+ bufferConcat((yyval.action), (yyvsp[(5) - (8)].action));
+ bufferConcat((yyval.action), (yyvsp[(7) - (8)].action));
+ bufferWriteU8((yyval.action), SWFACTION_SUBSTRING); ;}
break;
case 75:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferConcat((yyval.action), (yyvsp[(3) - (6)].action));
+ bufferWriteGetProperty((yyval.action), (yyvsp[(5) - (6)].str));
+ bufferWriteU8((yyval.action), SWFACTION_GETPROPERTY);
+ free((yyvsp[(5) - (6)].str)); ;}
break;
case 76:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteBuffer((yyval.action), (yyvsp[(1) - (2)].action));
+ bufferWriteU8((yyval.action), SWFACTION_GETVARIABLE);
+ bufferWriteBuffer((yyval.action), (yyvsp[(1) - (2)].action));
+ bufferConcat((yyval.action), (yyvsp[(1) - (2)].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 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteBuffer((yyval.action), (yyvsp[(1) - (2)].action));
+ bufferWriteU8((yyval.action), SWFACTION_GETVARIABLE);
+ bufferWriteBuffer((yyval.action), (yyvsp[(1) - (2)].action));
+ bufferConcat((yyval.action), (yyvsp[(1) - (2)].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 1455 of yacc.c */
#line 662 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action; ;}
+ { (yyval.action) = (yyvsp[(2) - (3)].action); ;}
break;
case 80:
+
+/* Line 1455 of yacc.c */
#line 665 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
- free(yyvsp[0].str); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (1)].str), strlen((yyvsp[(1) - (1)].str))+1);
+ free((yyvsp[(1) - (1)].str)); ;}
break;
case 81:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), "-", 2);
+ bufferWriteString((yyval.action), (yyvsp[(2) - (2)].str), strlen((yyvsp[(2) - (2)].str))+1);
+ free((yyvsp[(2) - (2)].str)); ;}
break;
case 82:
+
+/* Line 1455 of yacc.c */
#line 676 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
- free(yyvsp[0].str); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (1)].str), strlen((yyvsp[(1) - (1)].str))+1);
+ free((yyvsp[(1) - (1)].str)); ;}
break;
case 83:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (1)].str), strlen((yyvsp[(1) - (1)].str))+1);
+ bufferWriteU8((yyval.action), SWFACTION_GETVARIABLE);
+ free((yyvsp[(1) - (1)].str)); ;}
break;
case 84:
+
+/* Line 1455 of yacc.c */
#line 687 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
- free(yyvsp[0].str); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (1)].str), strlen((yyvsp[(1) - (1)].str))+1);
+ free((yyvsp[(1) - (1)].str)); ;}
break;
case 85:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (3)].str), strlen((yyvsp[(1) - (3)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(3) - (3)].str));
+ bufferWriteU8((yyval.action), SWFACTION_GETPROPERTY);
+ free((yyvsp[(3) - (3)].str));
+ free((yyvsp[(1) - (3)].str)); ;}
break;
case 86:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(2) - (4)].str), strlen((yyvsp[(2) - (4)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(4) - (4)].str));
+ bufferWriteString((yyval.action), (yyvsp[(2) - (4)].str), strlen((yyvsp[(2) - (4)].str))+1);
+ bufferWriteSetProperty((yyval.action), (yyvsp[(4) - (4)].str));
+ bufferWriteString((yyval.action), (yyvsp[(2) - (4)].str), strlen((yyvsp[(2) - (4)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(4) - (4)].str));
+ bufferWriteString((yyval.action), "1", 2);
+ bufferWriteU8((yyval.action), SWFACTION_ADD);
+ bufferWriteU8((yyval.action), SWFACTION_SETPROPERTY);
+ bufferWriteU8((yyval.action), SWFACTION_GETPROPERTY);
+ free((yyvsp[(2) - (4)].str));
+ free((yyvsp[(4) - (4)].str)); ;}
break;
case 87:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(2) - (2)].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 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(2) - (4)].str), strlen((yyvsp[(2) - (4)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(4) - (4)].str));
+ bufferWriteString((yyval.action), (yyvsp[(2) - (4)].str), strlen((yyvsp[(2) - (4)].str))+1);
+ bufferWriteSetProperty((yyval.action), (yyvsp[(4) - (4)].str));
+ bufferWriteString((yyval.action), (yyvsp[(2) - (4)].str), strlen((yyvsp[(2) - (4)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(4) - (4)].str));
+ bufferWriteString((yyval.action), "1", 2);
+ bufferWriteU8((yyval.action), SWFACTION_ADD);
+ bufferWriteU8((yyval.action), SWFACTION_SETPROPERTY);
+ bufferWriteU8((yyval.action), SWFACTION_GETPROPERTY);
+ free((yyvsp[(2) - (4)].str));
+ free((yyvsp[(4) - (4)].str)); ;}
break;
case 89:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(2) - (2)].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 1455 of yacc.c */
#line 750 "swf4compiler.y"
- { yyval.action = yyvsp[0].action;
- bufferWriteString(yyvsp[0].action, "-1", 3);
- bufferWriteU8(yyvsp[0].action, SWFACTION_MULTIPLY); ;}
+ { (yyval.action) = (yyvsp[(2) - (2)].action);
+ bufferWriteString((yyvsp[(2) - (2)].action), "-1", 3);
+ bufferWriteU8((yyvsp[(2) - (2)].action), SWFACTION_MULTIPLY); ;}
break;
case 91:
+
+/* Line 1455 of yacc.c */
#line 755 "swf4compiler.y"
- { yyval.action = yyvsp[0].action;
- bufferWriteU8(yyvsp[0].action, SWFACTION_LOGICALNOT); ;}
+ { (yyval.action) = (yyvsp[(2) - (2)].action);
+ bufferWriteU8((yyvsp[(2) - (2)].action), SWFACTION_LOGICALNOT); ;}
break;
case 92:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(1) - (3)].action);
+ bufferConcat((yyval.action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyval.action), SWFACTION_DUP);
+ bufferWriteU8((yyval.action), SWFACTION_SETVARIABLE); ;}
break;
case 93:
+
+/* Line 1455 of yacc.c */
#line 765 "swf4compiler.y"
- { yyval.action = yyvsp[-2].action;
- bufferConcat(yyval.action, yyvsp[0].action);
- bufferWriteU8(yyval.action, SWFACTION_MULTIPLY); ;}
+ { (yyval.action) = (yyvsp[(1) - (3)].action);
+ bufferConcat((yyval.action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyval.action), SWFACTION_MULTIPLY); ;}
break;
case 94:
+
+/* Line 1455 of yacc.c */
#line 770 "swf4compiler.y"
- { yyval.action = yyvsp[-2].action;
- bufferConcat(yyval.action, yyvsp[0].action);
- bufferWriteU8(yyval.action, SWFACTION_DIVIDE); ;}
+ { (yyval.action) = (yyvsp[(1) - (3)].action);
+ bufferConcat((yyval.action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyval.action), SWFACTION_DIVIDE); ;}
break;
case 95:
+
+/* Line 1455 of yacc.c */
#line 775 "swf4compiler.y"
- { yyval.action = yyvsp[-2].action;
- bufferConcat(yyval.action, yyvsp[0].action);
- bufferWriteU8(yyval.action, SWFACTION_ADD); ;}
+ { (yyval.action) = (yyvsp[(1) - (3)].action);
+ bufferConcat((yyval.action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyval.action), SWFACTION_ADD); ;}
break;
case 96:
+
+/* Line 1455 of yacc.c */
#line 780 "swf4compiler.y"
- { yyval.action = yyvsp[-2].action;
- bufferConcat(yyval.action, yyvsp[0].action);
- bufferWriteU8(yyval.action, SWFACTION_SUBTRACT); ;}
+ { (yyval.action) = (yyvsp[(1) - (3)].action);
+ bufferConcat((yyval.action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyval.action), SWFACTION_SUBTRACT); ;}
break;
case 97:
+
+/* Line 1455 of yacc.c */
#line 785 "swf4compiler.y"
- { yyval.action = yyvsp[-2].action;
- bufferConcat(yyval.action, yyvsp[0].action);
- bufferWriteU8(yyval.action, SWFACTION_STRINGCONCAT); ;}
+ { (yyval.action) = (yyvsp[(1) - (3)].action);
+ bufferConcat((yyval.action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyval.action), SWFACTION_STRINGCONCAT); ;}
break;
case 98:
+
+/* Line 1455 of yacc.c */
#line 790 "swf4compiler.y"
- { yyval.action = yyvsp[-2].action;
- bufferConcat(yyval.action, yyvsp[0].action);
- bufferWriteU8(yyval.action, SWFACTION_LESSTHAN); ;}
+ { (yyval.action) = (yyvsp[(1) - (3)].action);
+ bufferConcat((yyval.action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyval.action), SWFACTION_LESSTHAN); ;}
break;
case 99:
+
+/* Line 1455 of yacc.c */
#line 795 "swf4compiler.y"
- { yyval.action = yyvsp[0].action;
- bufferConcat(yyval.action, yyvsp[-2].action);
- bufferWriteU8(yyval.action, SWFACTION_LESSTHAN); ;}
+ { (yyval.action) = (yyvsp[(3) - (3)].action);
+ bufferConcat((yyval.action), (yyvsp[(1) - (3)].action));
+ bufferWriteU8((yyval.action), SWFACTION_LESSTHAN); ;}
break;
case 100:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(3) - (3)].action);
+ bufferConcat((yyval.action), (yyvsp[(1) - (3)].action));
+ bufferWriteU8((yyval.action), SWFACTION_LESSTHAN);
+ bufferWriteU8((yyval.action), SWFACTION_LOGICALNOT); ;}
break;
case 101:
+
+/* Line 1455 of yacc.c */
#line 806 "swf4compiler.y"
- { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_LESSTHAN);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALNOT); ;}
+ { bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_LESSTHAN);
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_LOGICALNOT); ;}
break;
case 102:
+
+/* Line 1455 of yacc.c */
#line 811 "swf4compiler.y"
- { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_STRINGEQ);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALNOT); ;}
+ { bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_STRINGEQ);
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_LOGICALNOT); ;}
break;
case 103:
+
+/* Line 1455 of yacc.c */
#line 816 "swf4compiler.y"
- { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_STRINGEQ); ;}
+ { bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_STRINGEQ); ;}
break;
case 104:
+
+/* Line 1455 of yacc.c */
#line 820 "swf4compiler.y"
- { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_STRINGCOMPARE); ;}
+ { bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_STRINGCOMPARE); ;}
break;
case 105:
+
+/* Line 1455 of yacc.c */
#line 824 "swf4compiler.y"
- { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_EQUAL); ;}
+ { bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_EQUAL); ;}
break;
case 106:
+
+/* Line 1455 of yacc.c */
#line 828 "swf4compiler.y"
- { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_EQUAL);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALNOT); ;}
+ { bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_EQUAL);
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_LOGICALNOT); ;}
break;
case 107:
+
+/* Line 1455 of yacc.c */
#line 833 "swf4compiler.y"
- { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALAND); ;}
+ { bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_LOGICALAND); ;}
break;
case 108:
+
+/* Line 1455 of yacc.c */
#line 837 "swf4compiler.y"
- { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_LOGICALOR); ;}
+ { bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_LOGICALOR); ;}
break;
case 109:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { bufferWriteU8((yyvsp[(1) - (5)].action), SWFACTION_BRANCHIFTRUE);
+ bufferWriteS16((yyvsp[(1) - (5)].action), 2);
+ bufferWriteS16((yyvsp[(1) - (5)].action), bufferLength((yyvsp[(5) - (5)].action))+5);
+ bufferConcat((yyvsp[(1) - (5)].action), (yyvsp[(5) - (5)].action));
+ bufferWriteU8((yyvsp[(1) - (5)].action), SWFACTION_BRANCHALWAYS);
+ bufferWriteS16((yyvsp[(1) - (5)].action), 2);
+ bufferWriteS16((yyvsp[(1) - (5)].action), bufferLength((yyvsp[(3) - (5)].action)));
+ bufferConcat((yyvsp[(1) - (5)].action), (yyvsp[(3) - (5)].action)); ;}
break;
case 111:
+
+/* Line 1455 of yacc.c */
#line 855 "swf4compiler.y"
- { yyval.str = yyvsp[-2].str;
- yyval.str = stringConcat(yyval.str, strdup(":"));
- yyval.str = stringConcat(yyval.str, yyvsp[0].str); ;}
+ { (yyval.str) = (yyvsp[(1) - (3)].str);
+ (yyval.str) = stringConcat((yyval.str), strdup(":"));
+ (yyval.str) = stringConcat((yyval.str), (yyvsp[(3) - (3)].str)); ;}
break;
case 112:
+
+/* Line 1455 of yacc.c */
#line 862 "swf4compiler.y"
- { yyval.str = strdup(""); ;}
+ { (yyval.str) = strdup(""); ;}
break;
case 113:
+
+/* Line 1455 of yacc.c */
#line 865 "swf4compiler.y"
- { yyval.str = strdup(""); ;}
+ { (yyval.str) = strdup(""); ;}
break;
case 114:
+
+/* Line 1455 of yacc.c */
#line 868 "swf4compiler.y"
- { yyval.str = strdup("/"); ;}
+ { (yyval.str) = strdup("/"); ;}
break;
case 115:
+
+/* Line 1455 of yacc.c */
#line 871 "swf4compiler.y"
- { yyval.str = strdup(".."); ;}
+ { (yyval.str) = strdup(".."); ;}
break;
case 116:
+
+/* Line 1455 of yacc.c */
#line 874 "swf4compiler.y"
- { yyval.str = yyvsp[0].str; ;}
+ { (yyval.str) = (yyvsp[(1) - (1)].str); ;}
break;
case 117:
+
+/* Line 1455 of yacc.c */
#line 877 "swf4compiler.y"
- { yyval.str = yyvsp[0].str; ;}
+ { (yyval.str) = (yyvsp[(1) - (1)].str); ;}
break;
case 118:
+
+/* Line 1455 of yacc.c */
#line 882 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
- free(yyvsp[0].str); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (1)].str), strlen((yyvsp[(1) - (1)].str))+1);
+ free((yyvsp[(1) - (1)].str)); ;}
break;
case 119:
+
+/* Line 1455 of yacc.c */
#line 887 "swf4compiler.y"
- { yyval.action = newBuffer();
- bufferWriteString(yyval.action, yyvsp[0].str, strlen(yyvsp[0].str)+1);
- free(yyvsp[0].str); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (1)].str), strlen((yyvsp[(1) - (1)].str))+1);
+ free((yyvsp[(1) - (1)].str)); ;}
break;
case 120:
+
+/* Line 1455 of yacc.c */
#line 891 "swf4compiler.y"
- { yyval.action = yyvsp[-1].action; ;}
+ { (yyval.action) = (yyvsp[(2) - (3)].action); ;}
break;
case 123:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(2) - (2)].action);
+ bufferWriteBuffer((yyval.action), (yyvsp[(2) - (2)].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 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = (yyvsp[(2) - (2)].action);
+ bufferWriteBuffer((yyval.action), (yyvsp[(2) - (2)].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 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(2) - (4)].str), strlen((yyvsp[(2) - (4)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(4) - (4)].str));
+ bufferWriteU8((yyval.action), SWFACTION_GETPROPERTY);
+ bufferWriteString((yyval.action), "1", 2);
+ bufferWriteU8((yyval.action), SWFACTION_ADD);
+ bufferWriteString((yyval.action), (yyvsp[(2) - (4)].str), strlen((yyvsp[(2) - (4)].str))+1);
+ bufferWriteSetProperty((yyval.action), (yyvsp[(4) - (4)].str));
+ bufferWriteU8((yyval.action), SWFACTION_SETPROPERTY);
+ free((yyvsp[(2) - (4)].str));
+ free((yyvsp[(4) - (4)].str)); ;}
break;
case 126:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(2) - (4)].str), strlen((yyvsp[(2) - (4)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(4) - (4)].str));
+ bufferWriteU8((yyval.action), SWFACTION_GETPROPERTY);
+ bufferWriteString((yyval.action), "1", 2);
+ bufferWriteU8((yyval.action), SWFACTION_SUBTRACT);
+ bufferWriteString((yyval.action), (yyvsp[(2) - (4)].str), strlen((yyvsp[(2) - (4)].str))+1);
+ bufferWriteSetProperty((yyval.action), (yyvsp[(4) - (4)].str));
+ bufferWriteU8((yyval.action), SWFACTION_SETPROPERTY);
+ free((yyvsp[(2) - (4)].str));
+ free((yyvsp[(4) - (4)].str)); ;}
break;
case 127:
+
+/* Line 1455 of yacc.c */
#line 942 "swf4compiler.y"
- { bufferConcat(yyvsp[-2].action, yyvsp[0].action);
- bufferWriteU8(yyvsp[-2].action, SWFACTION_SETVARIABLE); ;}
+ { bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_SETVARIABLE); ;}
break;
case 128:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { bufferWriteBuffer((yyvsp[(1) - (3)].action), (yyvsp[(1) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_GETVARIABLE);
+ bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_MULTIPLY);
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_SETVARIABLE); ;}
break;
case 129:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { bufferWriteBuffer((yyvsp[(1) - (3)].action), (yyvsp[(1) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_GETVARIABLE);
+ bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_DIVIDE);
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_SETVARIABLE); ;}
break;
case 130:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { bufferWriteBuffer((yyvsp[(1) - (3)].action), (yyvsp[(1) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_GETVARIABLE);
+ bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_ADD);
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_SETVARIABLE); ;}
break;
case 131:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { bufferWriteBuffer((yyvsp[(1) - (3)].action), (yyvsp[(1) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_GETVARIABLE);
+ bufferConcat((yyvsp[(1) - (3)].action), (yyvsp[(3) - (3)].action));
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_SUBTRACT);
+ bufferWriteU8((yyvsp[(1) - (3)].action), SWFACTION_SETVARIABLE); ;}
break;
case 132:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (5)].str), strlen((yyvsp[(1) - (5)].str))+1);
+ bufferWriteSetProperty((yyval.action), (yyvsp[(3) - (5)].str));
+ bufferConcat((yyval.action),(yyvsp[(5) - (5)].action));
+ bufferWriteU8((yyval.action), SWFACTION_SETPROPERTY);
+ free((yyvsp[(1) - (5)].str));
+ free((yyvsp[(3) - (5)].str)); ;}
break;
case 133:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (5)].str), strlen((yyvsp[(1) - (5)].str))+1);
+ bufferWriteSetProperty((yyval.action), (yyvsp[(3) - (5)].str));
+ bufferWriteString((yyval.action), (yyvsp[(1) - (5)].str), strlen((yyvsp[(1) - (5)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(3) - (5)].str));
+ bufferWriteU8((yyval.action), SWFACTION_GETPROPERTY);
+ bufferConcat((yyval.action), (yyvsp[(5) - (5)].action));
+ bufferWriteU8((yyval.action), SWFACTION_MULTIPLY);
+ bufferWriteU8((yyval.action), SWFACTION_SETPROPERTY);
+ free((yyvsp[(1) - (5)].str));
+ free((yyvsp[(3) - (5)].str)); ;}
break;
case 134:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (5)].str), strlen((yyvsp[(1) - (5)].str))+1);
+ bufferWriteSetProperty((yyval.action), (yyvsp[(3) - (5)].str));
+ bufferWriteString((yyval.action), (yyvsp[(1) - (5)].str), strlen((yyvsp[(1) - (5)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(3) - (5)].str));
+ bufferWriteU8((yyval.action), SWFACTION_GETPROPERTY);
+ bufferConcat((yyval.action), (yyvsp[(5) - (5)].action));
+ bufferWriteU8((yyval.action), SWFACTION_DIVIDE);
+ bufferWriteU8((yyval.action), SWFACTION_SETPROPERTY);
+ free((yyvsp[(1) - (5)].str));
+ free((yyvsp[(3) - (5)].str)); ;}
break;
case 135:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (5)].str), strlen((yyvsp[(1) - (5)].str))+1);
+ bufferWriteSetProperty((yyval.action), (yyvsp[(3) - (5)].str));
+ bufferWriteString((yyval.action), (yyvsp[(1) - (5)].str), strlen((yyvsp[(1) - (5)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(3) - (5)].str));
+ bufferWriteU8((yyval.action), SWFACTION_GETPROPERTY);
+ bufferConcat((yyval.action), (yyvsp[(5) - (5)].action));
+ bufferWriteU8((yyval.action), SWFACTION_ADD);
+ bufferWriteU8((yyval.action), SWFACTION_SETPROPERTY);
+ free((yyvsp[(1) - (5)].str));
+ free((yyvsp[(3) - (5)].str)); ;}
break;
case 136:
+
+/* Line 1455 of yacc.c */
#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); ;}
+ { (yyval.action) = newBuffer();
+ bufferWriteString((yyval.action), (yyvsp[(1) - (5)].str), strlen((yyvsp[(1) - (5)].str))+1);
+ bufferWriteSetProperty((yyval.action), (yyvsp[(3) - (5)].str));
+ bufferWriteString((yyval.action), (yyvsp[(1) - (5)].str), strlen((yyvsp[(1) - (5)].str))+1);
+ bufferWriteGetProperty((yyval.action), (yyvsp[(3) - (5)].str));
+ bufferWriteU8((yyval.action), SWFACTION_GETPROPERTY);
+ bufferConcat((yyval.action), (yyvsp[(5) - (5)].action));
+ bufferWriteU8((yyval.action), SWFACTION_SUBTRACT);
+ bufferWriteU8((yyval.action), SWFACTION_SETPROPERTY);
+ free((yyvsp[(1) - (5)].str));
+ free((yyvsp[(3) - (5)].str)); ;}
break;
- }
-
-/* Line 999 of yacc.c. */
-#line 2691 "swf4compiler.tab.c"
-
- yyvsp -= yylen;
- yyssp -= yylen;
+/* Line 1455 of yacc.c */
+#line 3218 "swf4compiler.tab.c"
+ default: break;
+ }
+ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
+ YYPOPSTACK (yylen);
+ yylen = 0;
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. */
@@ -2722,54 +3248,41 @@ yyerrlab:
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);
+#if ! YYERROR_VERBOSE
+ yyerror (YY_("syntax error"));
+#else
+ {
+ YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
+ if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
+ {
+ YYSIZE_T yyalloc = 2 * yysize;
+ if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
+ yyalloc = YYSTACK_ALLOC_MAXIMUM;
+ if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
- }
- else
- yyerror ("syntax error; also virtual memory exhausted");
- }
- else
-#endif /* YYERROR_VERBOSE */
- yyerror ("syntax error");
+ yymsg = (char *) YYSTACK_ALLOC (yyalloc);
+ if (yymsg)
+ yymsg_alloc = yyalloc;
+ else
+ {
+ yymsg = yymsgbuf;
+ yymsg_alloc = sizeof yymsgbuf;
+ }
+ }
+
+ if (0 < yysize && yysize <= yymsg_alloc)
+ {
+ (void) yysyntax_error (yymsg, yystate, yychar);
+ yyerror (yymsg);
+ }
+ else
+ {
+ yyerror (YY_("syntax error"));
+ if (yysize != 0)
+ goto yyexhaustedlab;
+ }
+ }
+#endif
}
@@ -2779,25 +3292,18 @@ yyerrlab:
/* 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;
-
+ if (yychar <= YYEOF)
+ {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ YYABORT;
+ }
+ else
+ {
+ yydestruct ("Error: discarding",
+ yytoken, &yylval);
+ yychar = YYEMPTY;
+ }
}
/* Else will try to reuse lookahead token after shifting the error
@@ -2805,9 +3311,29 @@ yyerrlab:
goto yyerrlab1;
-/*----------------------------------------------------.
-| yyerrlab1 -- error raised explicitly by an action. |
-`----------------------------------------------------*/
+/*---------------------------------------------------.
+| yyerrorlab -- error raised explicitly by YYERROR. |
+`---------------------------------------------------*/
+yyerrorlab:
+
+ /* Pacify compilers like GCC when the user code never invokes
+ YYERROR and the label yyerrorlab therefore never appears in user
+ code. */
+ if (/*CONSTCOND*/ 0)
+ goto yyerrorlab;
+
+ /* Do not reclaim the symbols of the rule which action triggered
+ this YYERROR. */
+ YYPOPSTACK (yylen);
+ yylen = 0;
+ YY_STACK_PRINT (yyss, yyssp);
+ yystate = *yyssp;
+ goto yyerrlab1;
+
+
+/*-------------------------------------------------------------.
+| yyerrlab1 -- common code for both syntax error and YYERROR. |
+`-------------------------------------------------------------*/
yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */
@@ -2829,22 +3355,20 @@ yyerrlab1:
if (yyssp == yyss)
YYABORT;
- YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
- yydestruct (yystos[yystate], yyvsp);
- yyvsp--;
- yystate = *--yyssp;
+ yydestruct ("Error: popping",
+ yystos[yystate], yyvsp);
+ YYPOPSTACK (1);
+ yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp);
}
- if (yyn == YYFINAL)
- YYACCEPT;
-
- YYDPRINTF ((stderr, "Shifting error token, "));
-
*++yyvsp = yylval;
+ /* Shift the error token. */
+ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
+
yystate = yyn;
goto yynewstate;
@@ -2863,25 +3387,45 @@ yyabortlab:
yyresult = 1;
goto yyreturn;
-#ifndef yyoverflow
-/*----------------------------------------------.
-| yyoverflowlab -- parser overflow comes here. |
-`----------------------------------------------*/
-yyoverflowlab:
- yyerror ("parser stack overflow");
+#if !defined(yyoverflow) || YYERROR_VERBOSE
+/*-------------------------------------------------.
+| yyexhaustedlab -- memory exhaustion comes here. |
+`-------------------------------------------------*/
+yyexhaustedlab:
+ yyerror (YY_("memory exhausted"));
yyresult = 2;
/* Fall through. */
#endif
yyreturn:
+ if (yychar != YYEMPTY)
+ yydestruct ("Cleanup: discarding lookahead",
+ yytoken, &yylval);
+ /* Do not reclaim the symbols of the rule which action triggered
+ this YYABORT or YYACCEPT. */
+ YYPOPSTACK (yylen);
+ YY_STACK_PRINT (yyss, yyssp);
+ while (yyssp != yyss)
+ {
+ yydestruct ("Cleanup: popping",
+ yystos[*yyssp], yyvsp);
+ YYPOPSTACK (1);
+ }
#ifndef yyoverflow
if (yyss != yyssa)
YYSTACK_FREE (yyss);
#endif
- return yyresult;
+#if YYERROR_VERBOSE
+ if (yymsg != yymsgbuf)
+ YYSTACK_FREE (yymsg);
+#endif
+ /* Make sure YYID is used. */
+ return YYID (yyresult);
}
+
+/* Line 1675 of yacc.c */
#line 1039 "swf4compiler.y"