Subversion Repositories Exult

Compare Revisions

Rev 2 → Rev 3

src/tools/splitshp.cc
28,6 → 28,8
# include <string>
#endif
 
#include <cstdlib>
 
#include "exult_types.h"
 
 
src/tools/cmanip.cc
28,8 → 28,10
#include <iostream>
#include <string>
#include "exult_constants.h"
 
#include <vector>
#include <cassert>
#include <cstdlib>
 
const std::string c_empty_string;
 
src/audio/xmidi.cc
30,7 → 30,10
# include <iostream>
# include <cmath>
#endif
 
#include <cstdlib>
#include <unistd.h>
 
#include "../files/utils.h"
#include "xmidi.h"
#include "../conf/Configuration.h"
src/files/U7file.cc
23,6 → 23,7
#ifndef ALPHA_LINUX_CXX
# include <cstdio>
#endif
#include <cstdlib>
#include <iostream>
 
#include "U7file.h"
src/files/listfiles.cc
29,6 → 29,7
#include <vector>
#include <string>
#include <iostream>
#include <cstring>
 
#ifndef UNDER_CE
using std::vector;
src/files/Flex.h
24,6 → 24,8
#include <vector>
#include <string>
#include <iosfwd>
#include <cstring>
 
#include "common_types.h"
#include "U7file.h"
 
src/files/IFF.h
21,6 → 21,8
 
#include <vector>
#include <string>
#include <cstring>
 
#include "common_types.h"
#include "U7file.h"
 
src/files/msgfile.cc
24,6 → 24,8
 
#include <iostream>
#include <vector>
#include <cstdlib>
 
#include "utils.h"
 
using std::istream;
src/files/Table.cc
25,6 → 25,7
#ifndef ALPHA_LINUX_CXX
# include <cstdio>
#endif
#include <cstdlib>
#include <iostream>
#include "exceptions.h"
#include "utils.h"
src/conf/xmain.cc
28,6 → 28,7
#include <iostream>
#include <string>
#include <cassert>
#include <cstring>
#include "common_types.h"
 
using std::string;
src/conf/Configuration.cc
29,6 → 29,7
# include <cassert>
# include <cstdio>
#endif
#include <cstdlib>
#include <stdio.h>
#include <iostream>
#include <fstream>
src/hash_utils.h
19,6 → 19,8
#ifndef _HASH_UTILS_H_
#define _HASH_UTILS_H_
 
#include <cstring>
 
#include "exult_types.h"
 
#ifdef DONT_HAVE_HASH_MAP
src/imagewin/ibuf8.cc
29,6 → 29,9
# include <iostream>
#endif
 
#include <cstring>
#include <cstdlib>
 
#include "exult_types.h"
#include "utils.h"
 
src/shapes/shapeinf.cc
27,6 → 27,8
# include <config.h>
#endif
 
#include <cstring>
 
#include "shapeinf.h"
#include "monstinf.h"
 
src/shapes/shapewrite.cc
24,6 → 24,8
# include <config.h>
#endif
 
#include <cstring>
 
#include "shapevga.h"
#include "shapeinf.h"
#include "monstinf.h"
src/usecode/compiler/ucparse.cc
1,84 → 1,73
/* A Bison parser, made from ucparse.yy
by GNU bison 1.35. */
 
#define YYBISON 1 /* Identify Bison output. */
/* A Bison parser, made by GNU Bison 2.4.1. */
 
# define IF 257
# define ELSE 258
# define RETURN 259
# define WHILE 260
# define FOR 261
# define UCC_IN 262
# define WITH 263
# define TO 264
# define EXTERN 265
# define BREAK 266
# define GOTO 267
# define CASE 268
# define VAR 269
# define UCC_INT 270
# define UCC_CONST 271
# define STRING 272
# define ENUM 273
# define CONVERSE 274
# define SAY 275
# define MESSAGE 276
# define RESPONSE 277
# define EVENT 278
# define FLAG 279
# define ITEM 280
# define UCTRUE 281
# define UCFALSE 282
# define REMOVE 283
# define ADD 284
# define HIDE 285
# define SCRIPT 286
# define AFTER 287
# define TICKS 288
# define STATIC_ 289
# define ORIGINAL 290
# define CONTINUE 291
# define REPEAT 292
# define NOP 293
# define NOHALT 294
# define WAIT 295
# define RISE 296
# define DESCEND 297
# define FRAME 298
# define HATCH 299
# define NEXT 300
# define PREVIOUS 301
# define CYCLE 302
# define STEP 303
# define MUSIC 304
# define CALL 305
# define SPEECH 306
# define SFX 307
# define FACE 308
# define HIT 309
# define HOURS 310
# define ACTOR 311
# define NORTH 312
# define SOUTH 313
# define EAST 314
# define WEST 315
# define NE 316
# define NW 317
# define SE 318
# define SW 319
# define STRING_LITERAL 320
# define STRING_PREFIX 321
# define IDENTIFIER 322
# define INT_LITERAL 323
# define AND 324
# define OR 325
# define EQUALS 326
# define NEQUALS 327
# define LTEQUALS 328
# define GTEQUALS 329
# define NOT 330
# define UCC_POINTS 331
/* 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 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, see <http://www.gnu.org/licenses/>. */
 
/* 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
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
 
/* Identify Bison output. */
#define YYBISON 1
 
/* Bison version. */
#define YYBISON_VERSION "2.4.1"
 
/* 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
 
 
 
/* Copy the first part of user declarations. */
 
/* Line 189 of yacc.c */
#line 1 "ucparse.yy"
 
/**
113,6 → 102,7
#include <stdlib.h>
#include <string.h>
#include <vector>
#include <cstring>
 
#include "ucfun.h"
#include "ucexpr.h"
139,10 → 129,199
static int enum_val = -1; // Keeps track of enum elements.
 
 
#line 61 "ucparse.yy"
#ifndef YYSTYPE
typedef union
{
 
/* Line 189 of yacc.c */
#line 135 "ucparse.cc"
 
/* 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. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
IF = 258,
ELSE = 259,
RETURN = 260,
WHILE = 261,
FOR = 262,
UCC_IN = 263,
WITH = 264,
TO = 265,
EXTERN = 266,
BREAK = 267,
GOTO = 268,
CASE = 269,
VAR = 270,
UCC_INT = 271,
UCC_CONST = 272,
STRING = 273,
ENUM = 274,
CONVERSE = 275,
SAY = 276,
MESSAGE = 277,
RESPONSE = 278,
EVENT = 279,
FLAG = 280,
ITEM = 281,
UCTRUE = 282,
UCFALSE = 283,
REMOVE = 284,
ADD = 285,
HIDE = 286,
SCRIPT = 287,
AFTER = 288,
TICKS = 289,
STATIC_ = 290,
ORIGINAL = 291,
CONTINUE = 292,
REPEAT = 293,
NOP = 294,
NOHALT = 295,
WAIT = 296,
RISE = 297,
DESCEND = 298,
FRAME = 299,
HATCH = 300,
NEXT = 301,
PREVIOUS = 302,
CYCLE = 303,
STEP = 304,
MUSIC = 305,
CALL = 306,
SPEECH = 307,
SFX = 308,
FACE = 309,
HIT = 310,
HOURS = 311,
ACTOR = 312,
NORTH = 313,
SOUTH = 314,
EAST = 315,
WEST = 316,
NE = 317,
NW = 318,
SE = 319,
SW = 320,
STRING_LITERAL = 321,
STRING_PREFIX = 322,
IDENTIFIER = 323,
INT_LITERAL = 324,
OR = 325,
AND = 326,
GTEQUALS = 327,
LTEQUALS = 328,
NEQUALS = 329,
EQUALS = 330,
NOT = 331,
UCC_POINTS = 332
};
#endif
/* Tokens. */
#define IF 258
#define ELSE 259
#define RETURN 260
#define WHILE 261
#define FOR 262
#define UCC_IN 263
#define WITH 264
#define TO 265
#define EXTERN 266
#define BREAK 267
#define GOTO 268
#define CASE 269
#define VAR 270
#define UCC_INT 271
#define UCC_CONST 272
#define STRING 273
#define ENUM 274
#define CONVERSE 275
#define SAY 276
#define MESSAGE 277
#define RESPONSE 278
#define EVENT 279
#define FLAG 280
#define ITEM 281
#define UCTRUE 282
#define UCFALSE 283
#define REMOVE 284
#define ADD 285
#define HIDE 286
#define SCRIPT 287
#define AFTER 288
#define TICKS 289
#define STATIC_ 290
#define ORIGINAL 291
#define CONTINUE 292
#define REPEAT 293
#define NOP 294
#define NOHALT 295
#define WAIT 296
#define RISE 297
#define DESCEND 298
#define FRAME 299
#define HATCH 300
#define NEXT 301
#define PREVIOUS 302
#define CYCLE 303
#define STEP 304
#define MUSIC 305
#define CALL 306
#define SPEECH 307
#define SFX 308
#define FACE 309
#define HIT 310
#define HOURS 311
#define ACTOR 312
#define NORTH 313
#define SOUTH 314
#define EAST 315
#define WEST 316
#define NE 317
#define NW 318
#define SE 319
#define SW 320
#define STRING_LITERAL 321
#define STRING_PREFIX 322
#define IDENTIFIER 323
#define INT_LITERAL 324
#define OR 325
#define AND 326
#define GTEQUALS 327
#define LTEQUALS 328
#define NEQUALS 329
#define EQUALS 330
#define NOT 331
#define UCC_POINTS 332
 
 
 
 
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
 
/* Line 214 of yacc.c */
#line 63 "ucparse.yy"
 
class Uc_symbol *sym;
class Uc_var_symbol *var;
class Uc_expression *expr;
155,26 → 334,258
class Uc_array_expression *exprlist;
int intval;
char *strval;
} yystype;
# define YYSTYPE yystype
 
 
 
/* Line 214 of yacc.c */
#line 342 "ucparse.cc"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
#ifndef YYDEBUG
# define YYDEBUG 0
 
 
/* Copy the second part of user declarations. */
 
 
/* Line 264 of yacc.c */
#line 354 "ucparse.cc"
 
#ifdef short
# undef short
#endif
 
#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif
 
#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
 
#define YYFINAL 374
#define YYFLAG -32768
#define YYNTBASE 97
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif
 
/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */
#define YYTRANSLATE(x) ((unsigned)(x) <= 331 ? yytranslate[x] : 167)
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif
 
/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */
static const char yytranslate[] =
#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 <stddef.h> /* 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 <libintl.h> /* 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
 
/* 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
 
/* The parser invokes alloca or malloc; define the necessary symbols. */
 
# ifdef YYSTACK_USE_ALLOCA
# if YYSTACK_USE_ALLOCA
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
# elif defined __BUILTIN_VA_ARG_INCR
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
# elif defined _AIX
# define YYSTACK_ALLOC __alloca
# elif defined _MSC_VER
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stdlib.h> /* 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 (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
# 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 <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# 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
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
 
 
#if (! defined yyoverflow \
&& (! defined __cplusplus \
|| (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
 
/* A type that is properly aligned for any stack member. */
union yyalloc
{
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)
 
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
((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 defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(To, From, Count) \
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
# else
# define YYCOPY(To, From, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (YYID (0))
# endif
# endif
 
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
 
#endif
 
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 19
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 1110
 
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 97
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 71
/* YYNRULES -- Number of rules. */
#define YYNRULES 190
/* YYNRULES -- Number of states. */
#define YYNSTATES 374
 
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 332
 
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
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,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
181,7 → 592,7
2, 2, 2, 2, 2, 2, 2, 83, 80, 2,
86, 87, 81, 79, 91, 78, 96, 82, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 93, 90,
76, 92, 77, 2, 2, 2, 2, 2, 2, 2,
72, 92, 73, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 94, 2, 95, 2, 2, 2, 2, 2, 2,
200,487 → 611,518
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
84, 85
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 74, 75, 76,
77, 84, 85
};
 
#if YYDEBUG
static const short yyprhs[] =
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
static const yytype_uint16 yyprhs[] =
{
0, 0, 3, 5, 7, 9, 11, 13, 15, 16,
20, 27, 29, 30, 31, 36, 39, 40, 42, 44,
46, 48, 50, 52, 54, 56, 58, 60, 62, 64,
66, 68, 70, 76, 82, 84, 86, 90, 94, 96,
98, 100, 102, 106, 108, 109, 117, 121, 123, 125,
127, 132, 136, 138, 142, 144, 148, 153, 155, 159,
161, 165, 167, 171, 175, 180, 186, 194, 200, 204,
205, 212, 213, 214, 224, 229, 232, 235, 243, 250,
254, 257, 260, 268, 271, 272, 278, 282, 283, 288,
290, 293, 295, 298, 303, 306, 309, 313, 318, 321,
324, 327, 331, 336, 339, 343, 348, 352, 357, 361,
365, 369, 373, 377, 383, 387, 391, 395, 399, 403,
405, 407, 409, 411, 413, 415, 417, 419, 421, 425,
426, 429, 432, 435, 441, 447, 449, 453, 457, 461,
465, 469, 473, 477, 481, 485, 489, 493, 497, 501,
505, 509, 513, 516, 519, 523, 525, 527, 529, 530,
534, 536, 538, 540, 545, 550, 552, 554, 556, 558,
560, 564, 566, 568, 572, 574, 576, 582, 584, 585,
587, 588, 593, 596, 598, 600, 602, 603, 605, 607
0, 0, 3, 6, 8, 10, 12, 14, 16, 18,
19, 23, 30, 32, 33, 34, 39, 42, 43, 45,
47, 49, 51, 53, 55, 57, 59, 61, 63, 65,
67, 69, 71, 73, 79, 85, 87, 89, 93, 97,
99, 101, 103, 105, 109, 111, 112, 120, 124, 126,
128, 130, 135, 139, 141, 145, 147, 151, 156, 158,
162, 164, 168, 170, 174, 178, 183, 189, 197, 203,
207, 208, 215, 216, 217, 227, 232, 235, 238, 246,
253, 257, 260, 263, 271, 274, 275, 281, 285, 286,
291, 293, 296, 298, 301, 306, 309, 312, 316, 321,
324, 327, 330, 334, 339, 342, 346, 351, 355, 360,
364, 368, 372, 376, 380, 386, 390, 394, 398, 402,
406, 408, 410, 412, 414, 416, 418, 420, 422, 424,
428, 429, 432, 435, 438, 444, 450, 452, 456, 460,
464, 468, 472, 476, 480, 484, 488, 492, 496, 500,
504, 508, 512, 516, 519, 522, 526, 528, 530, 532,
533, 537, 539, 541, 543, 548, 553, 555, 557, 559,
561, 563, 567, 569, 571, 575, 577, 579, 585, 587,
588, 590, 591, 596, 599, 601, 603, 605, 606, 608,
610
};
static const short yyrhs[] =
 
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int16 yyrhs[] =
{
97, 98, 0, 98, 0, 99, 0, 122, 0, 113,
0, 109, 0, 117, 0, 0, 101, 100, 103, 0,
163, 68, 102, 86, 160, 87, 0, 162, 0, 0,
0, 88, 104, 105, 89, 0, 105, 106, 0, 0,
107, 0, 123, 0, 124, 0, 125, 0, 126, 0,
132, 0, 133, 0, 134, 0, 103, 0, 135, 0,
136, 0, 140, 0, 147, 0, 148, 0, 149, 0,
21, 86, 152, 87, 90, 0, 22, 86, 152, 87,
90, 0, 150, 0, 90, 0, 15, 108, 90, 0,
18, 120, 90, 0, 113, 0, 109, 0, 122, 0,
117, 0, 108, 91, 116, 0, 116, 0, 0, 19,
68, 110, 88, 111, 89, 90, 0, 111, 91, 112,
0, 112, 0, 115, 0, 68, 0, 17, 16, 114,
90, 0, 114, 91, 115, 0, 115, 0, 68, 92,
151, 0, 68, 0, 68, 92, 151, 0, 35, 15,
118, 90, 0, 119, 0, 118, 91, 119, 0, 68,
0, 120, 91, 121, 0, 121, 0, 68, 92, 66,
0, 11, 101, 90, 0, 151, 92, 151, 90, 0,
3, 86, 151, 87, 106, 0, 3, 86, 151, 87,
106, 4, 106, 0, 6, 86, 151, 87, 106, 0,
130, 87, 106, 0, 0, 130, 9, 68, 127, 87,
106, 0, 0, 0, 130, 9, 68, 128, 10, 68,
129, 87, 106, 0, 131, 68, 8, 165, 0, 7,
86, 0, 155, 90, 0, 154, 157, 21, 86, 152,
87, 90, 0, 154, 157, 31, 86, 87, 90, 0,
5, 151, 90, 0, 5, 90, 0, 20, 106, 0,
20, 86, 151, 87, 88, 137, 89, 0, 137, 138,
0, 0, 14, 66, 139, 93, 105, 0, 86, 29,
87, 0, 0, 32, 141, 146, 143, 0, 151, 0,
142, 143, 0, 143, 0, 37, 90, 0, 38, 151,
143, 90, 0, 39, 90, 0, 40, 90, 0, 41,
151, 90, 0, 41, 151, 56, 90, 0, 29, 90,
0, 42, 90, 0, 43, 90, 0, 44, 151, 90,
0, 57, 44, 162, 90, 0, 45, 90, 0, 46,
44, 90, 0, 46, 44, 48, 90, 0, 47, 44,
90, 0, 47, 44, 48, 90, 0, 21, 151, 90,
0, 49, 151, 90, 0, 49, 144, 90, 0, 50,
151, 90, 0, 51, 151, 90, 0, 51, 151, 91,
145, 90, 0, 52, 151, 90, 0, 53, 151, 90,
0, 54, 151, 90, 0, 55, 151, 90, 0, 88,
142, 89, 0, 58, 0, 62, 0, 60, 0, 64,
0, 59, 0, 65, 0, 61, 0, 63, 0, 162,
0, 33, 151, 34, 0, 0, 12, 90, 0, 68,
93, 0, 13, 68, 0, 30, 86, 153, 87, 90,
0, 29, 86, 153, 87, 90, 0, 154, 0, 151,
79, 151, 0, 151, 78, 151, 0, 151, 81, 151,
0, 151, 82, 151, 0, 151, 83, 151, 0, 151,
72, 151, 0, 23, 72, 151, 0, 151, 73, 151,
0, 151, 76, 151, 0, 151, 74, 151, 0, 151,
77, 151, 0, 151, 75, 151, 0, 151, 70, 151,
0, 151, 71, 151, 0, 151, 8, 151, 0, 151,
80, 151, 0, 78, 154, 0, 84, 154, 0, 94,
153, 95, 0, 66, 0, 67, 0, 153, 0, 0,
153, 91, 151, 0, 151, 0, 69, 0, 164, 0,
165, 94, 151, 95, 0, 25, 94, 162, 95, 0,
155, 0, 27, 0, 28, 0, 24, 0, 26, 0,
86, 151, 87, 0, 158, 0, 156, 0, 154, 157,
158, 0, 85, 0, 96, 0, 68, 159, 86, 152,
87, 0, 36, 0, 0, 161, 0, 0, 161, 91,
163, 68, 0, 163, 68, 0, 69, 0, 166, 0,
15, 0, 0, 166, 0, 166, 0, 68, 0
98, 0, -1, 98, 99, -1, 99, -1, 100, -1,
123, -1, 114, -1, 110, -1, 118, -1, -1, 102,
101, 104, -1, 164, 68, 103, 86, 161, 87, -1,
163, -1, -1, -1, 88, 105, 106, 89, -1, 106,
107, -1, -1, 108, -1, 124, -1, 125, -1, 126,
-1, 127, -1, 133, -1, 134, -1, 135, -1, 104,
-1, 136, -1, 137, -1, 141, -1, 148, -1, 149,
-1, 150, -1, 21, 86, 153, 87, 90, -1, 22,
86, 153, 87, 90, -1, 151, -1, 90, -1, 15,
109, 90, -1, 18, 121, 90, -1, 114, -1, 110,
-1, 123, -1, 118, -1, 109, 91, 117, -1, 117,
-1, -1, 19, 68, 111, 88, 112, 89, 90, -1,
112, 91, 113, -1, 113, -1, 116, -1, 68, -1,
17, 16, 115, 90, -1, 115, 91, 116, -1, 116,
-1, 68, 92, 152, -1, 68, -1, 68, 92, 152,
-1, 35, 15, 119, 90, -1, 120, -1, 119, 91,
120, -1, 68, -1, 121, 91, 122, -1, 122, -1,
68, 92, 66, -1, 11, 102, 90, -1, 152, 92,
152, 90, -1, 3, 86, 152, 87, 107, -1, 3,
86, 152, 87, 107, 4, 107, -1, 6, 86, 152,
87, 107, -1, 131, 87, 107, -1, -1, 131, 9,
68, 128, 87, 107, -1, -1, -1, 131, 9, 68,
129, 10, 68, 130, 87, 107, -1, 132, 68, 8,
166, -1, 7, 86, -1, 156, 90, -1, 155, 158,
21, 86, 153, 87, 90, -1, 155, 158, 31, 86,
87, 90, -1, 5, 152, 90, -1, 5, 90, -1,
20, 107, -1, 20, 86, 152, 87, 88, 138, 89,
-1, 138, 139, -1, -1, 14, 66, 140, 93, 106,
-1, 86, 29, 87, -1, -1, 32, 142, 147, 144,
-1, 152, -1, 143, 144, -1, 144, -1, 37, 90,
-1, 38, 152, 144, 90, -1, 39, 90, -1, 40,
90, -1, 41, 152, 90, -1, 41, 152, 56, 90,
-1, 29, 90, -1, 42, 90, -1, 43, 90, -1,
44, 152, 90, -1, 57, 44, 163, 90, -1, 45,
90, -1, 46, 44, 90, -1, 46, 44, 48, 90,
-1, 47, 44, 90, -1, 47, 44, 48, 90, -1,
21, 152, 90, -1, 49, 152, 90, -1, 49, 145,
90, -1, 50, 152, 90, -1, 51, 152, 90, -1,
51, 152, 91, 146, 90, -1, 52, 152, 90, -1,
53, 152, 90, -1, 54, 152, 90, -1, 55, 152,
90, -1, 88, 143, 89, -1, 58, -1, 62, -1,
60, -1, 64, -1, 59, -1, 65, -1, 61, -1,
63, -1, 163, -1, 33, 152, 34, -1, -1, 12,
90, -1, 68, 93, -1, 13, 68, -1, 30, 86,
154, 87, 90, -1, 29, 86, 154, 87, 90, -1,
155, -1, 152, 79, 152, -1, 152, 78, 152, -1,
152, 81, 152, -1, 152, 82, 152, -1, 152, 83,
152, -1, 152, 77, 152, -1, 23, 77, 152, -1,
152, 76, 152, -1, 152, 72, 152, -1, 152, 75,
152, -1, 152, 73, 152, -1, 152, 74, 152, -1,
152, 71, 152, -1, 152, 70, 152, -1, 152, 8,
152, -1, 152, 80, 152, -1, 78, 155, -1, 84,
155, -1, 94, 154, 95, -1, 66, -1, 67, -1,
154, -1, -1, 154, 91, 152, -1, 152, -1, 69,
-1, 165, -1, 166, 94, 152, 95, -1, 25, 94,
163, 95, -1, 156, -1, 27, -1, 28, -1, 24,
-1, 26, -1, 86, 152, 87, -1, 159, -1, 157,
-1, 155, 158, 159, -1, 85, -1, 96, -1, 68,
160, 86, 153, 87, -1, 36, -1, -1, 162, -1,
-1, 162, 91, 164, 68, -1, 164, 68, -1, 69,
-1, 167, -1, 15, -1, -1, 167, -1, 167, -1,
68, -1
};
 
#endif
 
#if YYDEBUG
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const short yyrline[] =
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
0, 140, 142, 145, 147, 152, 153, 154, 157, 157,
169, 177, 179, 183, 183, 193, 199, 203, 205, 206,
0, 142, 142, 143, 147, 148, 153, 154, 155, 160,
159, 171, 179, 181, 186, 185, 195, 201, 205, 206,
207, 208, 209, 210, 211, 212, 213, 214, 215, 216,
217, 218, 219, 221, 223, 224, 228, 231, 233, 235,
237, 243, 247, 267, 271, 271, 275, 277, 280, 282,
292, 296, 298, 301, 317, 323, 331, 335, 337, 340,
350, 352, 355, 362, 367, 372, 375, 379, 384, 391,
391, 399, 399, 399, 410, 418, 423, 428, 441, 449,
452, 456, 461, 466, 472, 476, 484, 487, 491, 507,
511, 514, 521, 524, 536, 538, 540, 542, 544, 546,
548, 550, 552, 554, 556, 558, 560, 562, 564, 566,
568, 570, 572, 574, 577, 579, 581, 583, 585, 589,
592, 594, 596, 598, 600, 602, 604, 608, 612, 615,
619, 624, 642, 647, 654, 662, 665, 667, 669, 671,
673, 675, 677, 679, 681, 683, 685, 687, 689, 691,
693, 695, 697, 700, 702, 704, 706, 710, 712, 716,
719, 726, 729, 731, 733, 735, 737, 739, 741, 743,
745, 749, 751, 754, 762, 764, 767, 784, 787, 791,
793, 797, 800, 807, 809, 825, 827, 830, 844, 860
217, 218, 219, 220, 222, 224, 225, 230, 232, 234,
236, 238, 244, 249, 268, 273, 273, 277, 278, 282,
283, 294, 298, 299, 303, 319, 324, 333, 337, 338,
342, 352, 353, 357, 364, 369, 374, 376, 381, 386,
393, 392, 401, 403, 400, 412, 420, 425, 431, 442,
451, 453, 458, 463, 468, 474, 478, 486, 489, 493,
509, 513, 515, 523, 525, 537, 539, 541, 543, 545,
547, 549, 551, 553, 555, 557, 559, 561, 563, 565,
567, 569, 571, 573, 575, 578, 580, 582, 584, 586,
591, 593, 595, 597, 599, 601, 603, 605, 610, 614,
617, 621, 626, 644, 649, 655, 664, 666, 668, 670,
672, 674, 676, 678, 680, 682, 684, 686, 688, 690,
692, 694, 696, 698, 701, 703, 705, 707, 712, 714,
718, 720, 728, 730, 732, 734, 736, 738, 740, 742,
744, 746, 751, 752, 756, 764, 765, 769, 786, 789,
793, 795, 799, 801, 809, 810, 827, 828, 832, 846,
862
};
#endif
 
 
#if (YYDEBUG) || defined YYERROR_VERBOSE
 
/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */
#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[] =
{
"$", "error", "$undefined.", "IF", "ELSE", "RETURN", "WHILE", "FOR",
"UCC_IN", "WITH", "TO", "EXTERN", "BREAK", "GOTO", "CASE", "VAR",
"UCC_INT", "UCC_CONST", "STRING", "ENUM", "CONVERSE", "SAY", "MESSAGE",
"RESPONSE", "EVENT", "FLAG", "ITEM", "UCTRUE", "UCFALSE", "REMOVE",
"ADD", "HIDE", "SCRIPT", "AFTER", "TICKS", "STATIC_", "ORIGINAL",
"CONTINUE", "REPEAT", "NOP", "NOHALT", "WAIT", "RISE", "DESCEND",
"FRAME", "HATCH", "NEXT", "PREVIOUS", "CYCLE", "STEP", "MUSIC", "CALL",
"SPEECH", "SFX", "FACE", "HIT", "HOURS", "ACTOR", "NORTH", "SOUTH",
"EAST", "WEST", "NE", "NW", "SE", "SW", "STRING_LITERAL",
"STRING_PREFIX", "IDENTIFIER", "INT_LITERAL", "AND", "OR", "EQUALS",
"NEQUALS", "LTEQUALS", "GTEQUALS", "'<'", "'>'", "'-'", "'+'", "'&'",
"'*'", "'/'", "'%'", "NOT", "UCC_POINTS", "'('", "')'", "'{'", "'}'",
"';'", "','", "'='", "':'", "'['", "']'", "'.'", "design",
"global_decl", "function", "@1", "function_proto", "opt_int",
"statement_block", "@2", "statement_list", "statement", "declaration",
"var_decl_list", "enum_decl", "@3", "enum_item_list", "enum_item",
"const_int_decl", "const_int_decl_list", "const_int", "var_decl",
"static_decl", "static_var_decl_list", "static_var", "string_decl_list",
"string_decl", "function_decl", "assignment_statement", "if_statement",
"while_statement", "array_loop_statement", "@4", "@5", "@6",
"start_array_loop", "start_for", "function_call_statement",
"special_method_call_statement", "return_statement",
"converse_statement", "converse2_statement", "converse_case_list",
"converse_case", "converse_options", "script_statement", "item",
"script_command_list", "script_command", "direction", "eventid",
"opt_script_delay", "break_statement", "label_statement",
"goto_statement", "answer_statement", "expression",
"opt_expression_list", "expression_list", "primary", "function_call",
"method_call", "hierarchy_tok", "routine_call", "opt_original",
"opt_identifier_list", "identifier_list", "int_literal", "opt_var",
"$end", "error", "$undefined", "IF", "ELSE", "RETURN", "WHILE", "FOR",
"UCC_IN", "WITH", "TO", "EXTERN", "BREAK", "GOTO", "CASE", "VAR",
"UCC_INT", "UCC_CONST", "STRING", "ENUM", "CONVERSE", "SAY", "MESSAGE",
"RESPONSE", "EVENT", "FLAG", "ITEM", "UCTRUE", "UCFALSE", "REMOVE",
"ADD", "HIDE", "SCRIPT", "AFTER", "TICKS", "STATIC_", "ORIGINAL",
"CONTINUE", "REPEAT", "NOP", "NOHALT", "WAIT", "RISE", "DESCEND",
"FRAME", "HATCH", "NEXT", "PREVIOUS", "CYCLE", "STEP", "MUSIC", "CALL",
"SPEECH", "SFX", "FACE", "HIT", "HOURS", "ACTOR", "NORTH", "SOUTH",
"EAST", "WEST", "NE", "NW", "SE", "SW", "STRING_LITERAL",
"STRING_PREFIX", "IDENTIFIER", "INT_LITERAL", "OR", "AND", "'<'", "'>'",
"GTEQUALS", "LTEQUALS", "NEQUALS", "EQUALS", "'-'", "'+'", "'&'", "'*'",
"'/'", "'%'", "NOT", "UCC_POINTS", "'('", "')'", "'{'", "'}'", "';'",
"','", "'='", "':'", "'['", "']'", "'.'", "$accept", "design",
"global_decl", "function", "$@1", "function_proto", "opt_int",
"statement_block", "$@2", "statement_list", "statement", "declaration",
"var_decl_list", "enum_decl", "$@3", "enum_item_list", "enum_item",
"const_int_decl", "const_int_decl_list", "const_int", "var_decl",
"static_decl", "static_var_decl_list", "static_var", "string_decl_list",
"string_decl", "function_decl", "assignment_statement", "if_statement",
"while_statement", "array_loop_statement", "$@4", "$@5", "$@6",
"start_array_loop", "start_for", "function_call_statement",
"special_method_call_statement", "return_statement",
"converse_statement", "converse2_statement", "converse_case_list",
"converse_case", "converse_options", "script_statement", "item",
"script_command_list", "script_command", "direction", "eventid",
"opt_script_delay", "break_statement", "label_statement",
"goto_statement", "answer_statement", "expression",
"opt_expression_list", "expression_list", "primary", "function_call",
"method_call", "hierarchy_tok", "routine_call", "opt_original",
"opt_identifier_list", "identifier_list", "int_literal", "opt_var",
"declared_var_value", "declared_var", "declared_sym", 0
};
#endif
 
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const short yyr1[] =
# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
token YYLEX-NUM. */
static const yytype_uint16 yytoknum[] =
{
0, 97, 97, 98, 98, 98, 98, 98, 100, 99,
101, 102, 102, 104, 103, 105, 105, 106, 106, 106,
106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
106, 106, 106, 106, 106, 106, 107, 107, 107, 107,
107, 107, 108, 108, 110, 109, 111, 111, 112, 112,
113, 114, 114, 115, 116, 116, 117, 118, 118, 119,
120, 120, 121, 122, 123, 124, 124, 125, 126, 127,
126, 128, 129, 126, 130, 131, 132, 133, 133, 134,
134, 135, 136, 137, 137, 138, 139, 139, 140, 141,
142, 142, 143, 143, 143, 143, 143, 143, 143, 143,
143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
143, 143, 143, 143, 143, 143, 143, 143, 143, 144,
144, 144, 144, 144, 144, 144, 144, 145, 146, 146,
147, 148, 149, 150, 150, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 152, 152, 153,
153, 154, 154, 154, 154, 154, 154, 154, 154, 154,
154, 155, 155, 156, 157, 157, 158, 159, 159, 160,
160, 161, 161, 162, 162, 163, 163, 164, 165, 166
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 60, 62, 327, 328, 329, 330, 45, 43,
38, 42, 47, 37, 331, 332, 40, 41, 123, 125,
59, 44, 61, 58, 91, 93, 46
};
# endif
 
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const short yyr2[] =
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint8 yyr1[] =
{
0, 2, 1, 1, 1, 1, 1, 1, 0, 3,
6, 1, 0, 0, 4, 2, 0, 1, 1, 1,
0, 97, 98, 98, 99, 99, 99, 99, 99, 101,
100, 102, 103, 103, 105, 104, 106, 106, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 108, 108, 108,
108, 108, 108, 109, 109, 111, 110, 112, 112, 113,
113, 114, 115, 115, 116, 117, 117, 118, 119, 119,
120, 121, 121, 122, 123, 124, 125, 125, 126, 127,
128, 127, 129, 130, 127, 131, 132, 133, 134, 134,
135, 135, 136, 137, 138, 138, 139, 140, 140, 141,
142, 143, 143, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
145, 145, 145, 145, 145, 145, 145, 145, 146, 147,
147, 148, 149, 150, 151, 151, 152, 152, 152, 152,
152, 152, 152, 152, 152, 152, 152, 152, 152, 152,
152, 152, 152, 152, 152, 152, 152, 152, 153, 153,
154, 154, 155, 155, 155, 155, 155, 155, 155, 155,
155, 155, 156, 156, 157, 158, 158, 159, 160, 160,
161, 161, 162, 162, 163, 163, 164, 164, 165, 166,
167
};
 
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const yytype_uint8 yyr2[] =
{
0, 2, 2, 1, 1, 1, 1, 1, 1, 0,
3, 6, 1, 0, 0, 4, 2, 0, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 5, 5, 1, 1, 3, 3, 1, 1,
1, 1, 3, 1, 0, 7, 3, 1, 1, 1,
4, 3, 1, 3, 1, 3, 4, 1, 3, 1,
3, 1, 3, 3, 4, 5, 7, 5, 3, 0,
6, 0, 0, 9, 4, 2, 2, 7, 6, 3,
2, 2, 7, 2, 0, 5, 3, 0, 4, 1,
2, 1, 2, 4, 2, 2, 3, 4, 2, 2,
2, 3, 4, 2, 3, 4, 3, 4, 3, 3,
3, 3, 3, 5, 3, 3, 3, 3, 3, 1,
1, 1, 1, 1, 1, 1, 1, 1, 3, 0,
2, 2, 2, 5, 5, 1, 3, 3, 3, 3,
1, 1, 1, 5, 5, 1, 1, 3, 3, 1,
1, 1, 1, 3, 1, 0, 7, 3, 1, 1,
1, 4, 3, 1, 3, 1, 3, 4, 1, 3,
1, 3, 1, 3, 3, 4, 5, 7, 5, 3,
0, 6, 0, 0, 9, 4, 2, 2, 7, 6,
3, 2, 2, 7, 2, 0, 5, 3, 0, 4,
1, 2, 1, 2, 4, 2, 2, 3, 4, 2,
2, 2, 3, 4, 2, 3, 4, 3, 4, 3,
3, 3, 3, 3, 5, 3, 3, 3, 3, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 3,
0, 2, 2, 2, 5, 5, 1, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 2, 2, 3, 1, 1, 1, 0, 3,
1, 1, 1, 4, 4, 1, 1, 1, 1, 1,
3, 1, 1, 3, 1, 1, 5, 1, 0, 1,
0, 4, 2, 1, 1, 1, 0, 1, 1, 1
3, 3, 3, 2, 2, 3, 1, 1, 1, 0,
3, 1, 1, 1, 4, 4, 1, 1, 1, 1,
1, 3, 1, 1, 3, 1, 1, 5, 1, 0,
1, 0, 4, 2, 1, 1, 1, 0, 1, 1,
1
};
 
/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
doesn't specify something else to do. Zero means the default is an
error. */
static const short yydefact[] =
/* 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 yytype_uint8 yydefact[] =
{
186, 186, 185, 0, 0, 0, 186, 2, 3, 8,
6, 5, 7, 4, 0, 0, 0, 44, 0, 1,
0, 12, 63, 0, 0, 52, 0, 59, 0, 57,
13, 9, 189, 183, 0, 11, 184, 0, 50, 0,
0, 56, 0, 16, 180, 0, 168, 0, 169, 166,
167, 155, 156, 189, 161, 0, 0, 0, 0, 53,
135, 165, 172, 171, 162, 0, 187, 51, 49, 0,
47, 48, 58, 0, 0, 179, 0, 0, 0, 177,
0, 152, 153, 0, 160, 0, 0, 0, 0, 0,
187, 187, 186, 0, 0, 0, 187, 3, 4, 9,
7, 6, 8, 5, 0, 0, 0, 45, 0, 1,
2, 0, 13, 64, 0, 0, 53, 0, 60, 0,
58, 14, 10, 190, 184, 0, 12, 185, 0, 51,
0, 0, 57, 0, 17, 181, 0, 169, 0, 170,
167, 168, 156, 157, 190, 162, 0, 0, 0, 0,
54, 136, 166, 173, 172, 163, 0, 188, 52, 50,
0, 48, 49, 59, 0, 0, 180, 0, 0, 0,
178, 0, 153, 154, 0, 161, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 174, 175, 0, 0, 0, 0, 0, 0, 0,
0, 0, 175, 176, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 189, 14, 35, 25, 15, 17, 39, 38, 41,
40, 18, 19, 20, 21, 0, 0, 22, 23, 24,
26, 27, 28, 29, 30, 31, 34, 0, 135, 165,
10, 186, 182, 142, 0, 158, 170, 0, 154, 150,
148, 149, 141, 143, 145, 147, 144, 146, 137, 136,
151, 138, 139, 140, 178, 173, 0, 45, 46, 0,
80, 0, 0, 75, 130, 132, 54, 0, 43, 0,
0, 61, 0, 81, 158, 158, 0, 0, 129, 89,
131, 0, 0, 0, 0, 0, 76, 0, 164, 0,
157, 159, 163, 0, 79, 0, 0, 36, 0, 0,
37, 0, 0, 0, 0, 0, 0, 0, 0, 69,
68, 0, 0, 0, 0, 181, 176, 0, 0, 55,
42, 62, 60, 170, 0, 0, 0, 0, 0, 0,
0, 0, 190, 15, 36, 26, 16, 18, 40, 39,
42, 41, 19, 20, 21, 22, 0, 0, 23, 24,
25, 27, 28, 29, 30, 31, 32, 35, 0, 136,
166, 11, 187, 183, 143, 0, 159, 171, 0, 155,
151, 150, 149, 145, 147, 148, 146, 144, 142, 138,
137, 152, 139, 140, 141, 179, 174, 0, 46, 47,
0, 81, 0, 0, 76, 131, 133, 55, 0, 44,
0, 0, 62, 0, 82, 159, 159, 0, 0, 130,
90, 132, 0, 0, 0, 0, 0, 77, 0, 165,
0, 158, 160, 164, 0, 80, 0, 0, 37, 0,
0, 38, 0, 0, 0, 0, 0, 0, 0, 0,
70, 69, 0, 0, 0, 0, 182, 177, 0, 0,
56, 43, 63, 61, 171, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 88, 0, 0, 74, 188, 64, 158, 0, 65,
67, 84, 32, 33, 134, 133, 128, 0, 98, 92,
0, 94, 95, 0, 99, 100, 0, 103, 0, 0,
119, 123, 121, 125, 120, 126, 122, 124, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 91, 0,
0, 0, 0, 0, 0, 108, 0, 0, 96, 101,
0, 104, 0, 106, 110, 109, 111, 112, 0, 114,
115, 116, 117, 0, 118, 90, 70, 72, 0, 78,
66, 0, 82, 83, 93, 97, 105, 107, 0, 127,
102, 0, 77, 87, 113, 0, 0, 0, 73, 0,
16, 86, 85, 0, 0
0, 0, 89, 0, 0, 75, 189, 65, 159, 0,
66, 68, 85, 33, 34, 135, 134, 129, 0, 99,
93, 0, 95, 96, 0, 100, 101, 0, 104, 0,
0, 120, 124, 122, 126, 121, 127, 123, 125, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 92,
0, 0, 0, 0, 0, 0, 109, 0, 0, 97,
102, 0, 105, 0, 107, 111, 110, 112, 113, 0,
115, 116, 117, 118, 0, 119, 91, 71, 73, 0,
79, 67, 0, 83, 84, 94, 98, 106, 108, 0,
128, 103, 0, 78, 88, 114, 0, 0, 0, 74,
0, 17, 87, 86
};
 
static const short yydefgoto[] =
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
6, 7, 8, 20, 9, 34, 124, 43, 73, 125,
126, 187, 127, 26, 69, 70, 128, 24, 71, 188,
129, 28, 29, 190, 191, 130, 131, 132, 133, 134,
272, 273, 361, 135, 136, 137, 138, 139, 140, 141,
324, 353, 367, 142, 198, 317, 271, 308, 358, 228,
143, 144, 145, 146, 147, 209, 210, 60, 61, 62,
103, 63, 80, 74, 75, 35, 14, 64, 65, 66
-1, 6, 7, 8, 21, 9, 35, 125, 44, 74,
126, 127, 188, 128, 27, 70, 71, 129, 25, 72,
189, 130, 29, 30, 191, 192, 131, 132, 133, 134,
135, 273, 274, 362, 136, 137, 138, 139, 140, 141,
142, 325, 354, 368, 143, 199, 318, 272, 309, 359,
229, 144, 145, 146, 147, 148, 210, 211, 61, 62,
63, 104, 64, 81, 75, 76, 36, 14, 65, 66,
67
};
 
static const short yypact[] =
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
#define YYPACT_NINF -248
static const yytype_int16 yypact[] =
{
98, 53,-32768, 91, 14, 99, 101,-32768,-32768,-32768,
-32768,-32768,-32768,-32768, 51, 32, 76,-32768, 103,-32768,
81, -3,-32768, 35, 40,-32768, 84,-32768, 44,-32768,
-32768,-32768,-32768,-32768, 87,-32768,-32768, 936,-32768, 76,
107,-32768, 103,-32768, 27, 104,-32768, 85,-32768,-32768,
-32768,-32768,-32768, -14,-32768, 22, 22, 936, 936, 868,
-33,-32768,-32768,-32768,-32768, 86, 90,-32768, 35, -35,
-32768,-32768,-32768, 8, 94, 96, 109, 936, -3,-32768,
92, -33, -33, 788, 868, -38, 936, 936, 936, 936,
98, 41, -248, 49, 11, 92, 101, -248, -248, -248,
-248, -248, -248, -248, 14, 24, 51, -248, 54, -248,
-248, 39, 62, -248, 52, 44, -248, 85, -248, 58,
-248, -248, -248, -248, -248, 89, -248, -248, 936, -248,
51, 108, -248, 54, -248, 27, 100, -248, 75, -248,
-248, -248, -248, -248, -14, -248, 22, 22, 936, 936,
868, -33, -248, -248, -248, -248, 84, 86, -248, 52,
-23, -248, -248, -248, 8, 94, 88, 116, 936, 62,
-248, 99, -33, -33, 788, 868, -38, 936, 936, 936,
936, 936, 936, 936, 936, 936, 936, 936, 936, 936,
936,-32768,-32768, 117, 936, 112, 107, 119, 206, 120,
121, 113, 136, 140, 141, 333, 125, 129, 130, 131,
936, -24,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768, 0, 150,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768, 299, -33, 132,
-32768, 53,-32768, 59, 124, 936,-32768, 936,-32768, 59,
581, 581, 59, 59, 59, 59, 59, 59, 23, 23,
23,-32768,-32768,-32768, 184,-32768, 118,-32768,-32768, 936,
-32768, 465, 936,-32768,-32768,-32768, 133, 58,-32768, 134,
60,-32768, 936,-32768, 936, 936, 936, 936, 191, 868,
-32768, 159, 419, 220, 936, 20,-32768, 167,-32768, 149,
146, 868,-32768, 809,-32768, 827, 936,-32768, 140, 172,
-32768, 141, 845, 152, 153, -7, 34, 936, 1022, 231,
-32768, 174, 486, 158, 160,-32768,-32768, 419, 419, 868,
-32768,-32768,-32768, 162, 157, 161, 164, 165, 903, 936,
169, 176, 936, 177, 179, 936, 181, 186, 936, 187,
208, 213, 929, 936, 936, 936, 936, 936, 936, 234,
1022,-32768, 192, 270,-32768,-32768,-32768, 936, 194, 279,
-32768,-32768,-32768,-32768,-32768,-32768,-32768, 520,-32768,-32768,
769,-32768,-32768, 444,-32768,-32768, 541,-32768, -9, 10,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 195, 562,
596, 385, 617, 638, 672, 693, -3, 995,-32768, 419,
218, 200, 198, 419, -4,-32768, 199, 201,-32768,-32768,
204,-32768, 209,-32768,-32768,-32768,-32768,-32768, -3,-32768,
-32768,-32768,-32768, 211,-32768,-32768,-32768,-32768, 214,-32768,
-32768, 232,-32768,-32768,-32768,-32768,-32768,-32768, 215,-32768,
-32768, 216,-32768, 222,-32768, 419, 277, 219,-32768, 224,
-32768,-32768, 419, 309,-32768
936, 936, -248, -248, 119, 936, 112, 108, 117, 206,
120, 121, 114, 137, 140, 141, 333, 125, 129, 130,
131, 936, -24, -248, -248, -248, -248, -248, -248, -248,
-248, -248, -248, -248, -248, -248, 0, 150, -248, -248,
-248, -248, -248, -248, -248, -248, -248, -248, 299, -33,
132, -248, 41, -248, 59, 124, 936, -248, 936, -248,
59, 581, 581, 59, 59, 59, 59, 59, 59, 23,
23, 23, -248, -248, -248, 184, -248, 118, -248, -248,
936, -248, 465, 936, -248, -248, -248, 133, 60, -248,
134, 81, -248, 936, -248, 936, 936, 936, 936, 191,
868, -248, 159, 419, 220, 936, 20, -248, 167, -248,
149, 146, 868, -248, 809, -248, 827, 936, -248, 140,
172, -248, 141, 845, 152, 153, -7, 34, 936, 1022,
231, -248, 174, 486, 158, 160, -248, -248, 419, 419,
868, -248, -248, -248, 162, 157, 161, 164, 165, 903,
936, 169, 176, 936, 177, 179, 936, 181, 186, 936,
187, 208, 213, 929, 936, 936, 936, 936, 936, 936,
234, 1022, -248, 192, 270, -248, -248, -248, 936, 194,
279, -248, -248, -248, -248, -248, -248, -248, 520, -248,
-248, 769, -248, -248, 444, -248, -248, 541, -248, -9,
10, -248, -248, -248, -248, -248, -248, -248, -248, 195,
562, 596, 385, 617, 638, 672, 693, 62, 995, -248,
419, 218, 200, 198, 419, -4, -248, 199, 201, -248,
-248, 204, -248, 209, -248, -248, -248, -248, -248, 62,
-248, -248, -248, -248, 211, -248, -248, -248, -248, 214,
-248, -248, 232, -248, -248, -248, -248, -248, -248, 215,
-248, -248, 216, -248, 222, -248, 419, 277, 219, -248,
224, -248, -248, 419
};
 
static const short yypgoto[] =
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
-32768, 307,-32768,-32768, 313,-32768, 296,-32768, -50, -109,
-32768,-32768, 61,-32768,-32768, 217, 64,-32768, 39, 108,
73,-32768, 280,-32768, 106, 83,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768, -246,-32768,-32768,-32768,
-32768,-32768,-32768,-32768, 66, -178, -51, -55, -70,-32768,
189, -95,-32768,-32768,-32768, -73, -40,-32768, 110, -19
-248, -248, 303, -248, -248, 312, -248, 293, -248, -55,
-110, -248, -248, 55, -248, -248, 228, 64, -248, 38,
103, 67, -248, 280, -248, 104, 83, -248, -248, -248,
-248, -248, -248, -248, -248, -248, -248, -248, -248, -248,
-248, -248, -248, -248, -248, -248, -248, -247, -248, -248,
-248, -248, -248, -248, -248, 65, -179, -52, -56, -71,
-248, 171, -96, -248, -248, -248, -74, -41, -248, 93,
-20
};
 
 
#define YYLAST 1110
 
 
static const short yytable[] =
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule which
number is the opposite. If zero, do what YYDEFACT says.
If YYTABLE_NINF, syntax error. */
#define YYTABLE_NINF -190
static const yytype_int16 yytable[] =
{
81, 82, 36, 149, 76, 154, 193, 85, 175, 201,
351, 107, 79, 108, 109, 110, 223, 224, 148, 1,
111, 112, 79, 113, 318, 3, 114, 4, 115, 116,
117, 45, 46, 47, 48, 49, 50, 118, 119, 330,
120, 233, 2, 5, 326, 149, 46, 47, 48, 49,
50, 234, 101, 157, 105, 25, 106, 158, 332, 36,
148, 10, -178, 102, 11, 32, 33, 10, 2, 200,
11, 345, -178, 12, 51, 52, 121, 54, 67, 12,
246, 331, 17, 13, 157, 352, 55, 202, 174, 13,
53, 54, 56, 230, 57, -186, 30, 122, 123, 321,
333, 373, 58, 59, 98, 99, 100, 16, 57, 1,
175, 207, 1, 2, 18, 3, 2, 4, 3, 21,
4, 247, 22, 83, 84, 157, 86, 37, 279, 280,
38, 39, 149, 5, 41, 42, 5, 95, 96, 97,
98, 99, 100, 153, 23, 225, 226, 148, 217, 218,
220, 221, 159, 160, 161, 162, 163, 164, 165, 166,
167, 168, 169, 170, 171, 172, 173, 149, 149, 30,
176, 27, 40, 44, 181, 68, 77, 152, 155, 78,
104, 150, 148, 148, -188, 174, 199, 151, 87, 88,
82, 83, 37, 150, 77, 155, 194, 86, 176, 202,
352, 108, 80, 109, 110, 111, 224, 225, 149, 1,
112, 113, 80, 114, 319, 3, 115, 4, 116, 117,
118, 46, 47, 48, 49, 50, 51, 119, 120, 331,
121, 234, 2, 5, 327, 150, 47, 48, 49, 50,
51, 235, 102, 158, 26, 10, 2, 159, 333, 37,
149, 10, -179, 103, 11, 16, 106, 12, 107, 201,
11, 346, -179, 12, 52, 53, 122, 55, 68, 17,
247, 332, 22, 13, 158, 353, 56, 203, 175, 13,
54, 55, 57, 231, 58, -187, 31, 123, 124, 322,
334, 19, 59, 60, 99, 100, 101, 18, 58, 1,
176, 208, 1, 2, 23, 3, 2, 4, 3, 24,
4, 248, 28, 84, 85, 158, 87, 31, 280, 281,
33, 34, 150, 5, 39, 40, 5, 96, 97, 98,
99, 100, 101, 154, 38, 226, 227, 149, 42, 43,
218, 219, 160, 161, 162, 163, 164, 165, 166, 167,
168, 169, 170, 171, 172, 173, 174, 150, 150, 79,
177, 221, 222, 41, 182, 45, 69, 78, 105, 152,
-189, 151, 149, 149, 153, 156, 200, 175, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
100, 101, 178, 180, 185, 186, 183, 184, 187, 190,
347, 195, 276, 213, 351, 196, 197, 198, 204, 209,
80, 85, 207, 212, 228, 217, 220, 230, 232, 46,
47, 48, 49, 50, 51, 236, 237, 158, 242, 245,
246, -72, 33, 344, 278, 214, 279, 283, 216, 150,
282, 284, 299, 150, 285, 286, 369, 300, 223, 289,
85, 85, 85, 85, 149, 360, 290, 292, 149, 293,
233, 295, 52, 53, 54, 55, 296, 298, 317, 320,
321, 323, 240, 324, 56, 335, 348, 349, 350, 355,
57, 356, 58, 249, 357, 150, 181, 37, 364, 358,
59, 361, 150, 366, 363, 365, 370, 87, 367, 20,
149, 372, 371, 15, 32, 288, 373, 149, 291, 37,
206, 294, 241, 73, 297, 275, 243, 0, 310, 311,
312, 313, 314, 315, 316, 179, 108, 0, 109, 110,
111, 0, 0, 85, 1, 112, 113, 0, 114, 0,
3, 115, 4, 116, 117, 118, 46, 47, 48, 49,
50, 51, 119, 120, 0, 121, 0, 0, 5, 88,
89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
99, 100, 177, 184, 185, 179, 182, 183, 186, 189,
346, 194, 275, 212, 350, 195, 196, 197, 203, 208,
79, 84, 206, 211, 227, 216, 219, 229, 231, 45,
46, 47, 48, 49, 50, 235, 236, 157, 241, 244,
245, -71, 32, 343, 277, 213, 278, 282, 215, 149,
281, 283, 298, 149, 284, 285, 368, 299, 222, 288,
84, 84, 84, 84, 148, 359, 289, 291, 148, 292,
232, 294, 51, 52, 53, 54, 295, 297, 316, 319,
320, 322, 239, 323, 55, 334, 347, 348, 349, 354,
56, 355, 57, 248, 356, 149, 180, 36, 363, 357,
58, 360, 149, 365, 362, 364, 369, 86, 366, 374,
148, 371, 370, 19, 15, 287, 31, 148, 290, 36,
372, 293, 72, 178, 296, 0, 240, 242, 309, 310,
311, 312, 313, 314, 315, 0, 107, 205, 108, 109,
110, 274, 0, 84, 1, 111, 112, 0, 113, 0,
3, 114, 4, 115, 116, 117, 45, 46, 47, 48,
49, 50, 118, 119, 0, 120, 0, 0, 5, 87,
99, 100, 101, 0, 0, 0, 0, 0, 0, 0,
0, 205, 0, 87, 0, 0, 0, 0, 0, 52,
53, 122, 55, 0, 0, 0, 0, 0, 0, 0,
0, 56, 0, 0, 0, 0, 0, 57, 0, 193,
0, 31, 108, 124, 109, 110, 111, 59, 0, 0,
1, 112, 113, 0, 114, 0, 3, 115, 4, 116,
117, 118, 46, 47, 48, 49, 50, 51, 119, 120,
0, 121, 87, 0, 5, 88, 89, 90, 91, 92,
93, 94, 95, 96, 97, 98, 99, 100, 101, 0,
0, 0, 0, 87, 0, 338, 339, 0, 0, 0,
0, 0, 0, 0, 0, 52, 53, 122, 55, 0,
0, 0, 0, 0, 87, 0, 0, 56, 0, 0,
328, 0, 0, 57, 0, 58, 0, 31, 0, 124,
0, 0, 0, 59, 88, 89, 90, 91, 92, 93,
94, 95, 96, 97, 98, 99, 100, 101, 87, 0,
0, 0, 0, 0, 329, 88, 89, 90, 91, 92,
93, 94, 95, 96, 97, 98, 99, 100, 101, 87,
0, 0, 0, 0, 0, 215, 88, 89, 90, 91,
92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
87, 0, 0, 0, 0, 0, 277, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 87,
88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
98, 99, 100, 0, 0, 0, 0, 0, 0, 0,
0, 204, 0, 86, 0, 0, 0, 0, 0, 51,
52, 121, 54, 0, 0, 0, 0, 0, 0, 0,
0, 55, 0, 0, 0, 0, 0, 56, 0, 192,
0, 30, 107, 123, 108, 109, 110, 58, 0, 0,
1, 111, 112, 0, 113, 0, 3, 114, 4, 115,
116, 117, 45, 46, 47, 48, 49, 50, 118, 119,
0, 120, 86, 0, 5, 87, 88, 89, 90, 91,
92, 93, 94, 95, 96, 97, 98, 99, 100, 0,
0, 0, 0, 86, 0, 337, 338, 0, 0, 0,
0, 0, 0, 0, 0, 51, 52, 121, 54, 0,
0, 0, 0, 0, 86, 0, 0, 55, 0, 0,
327, 0, 0, 56, 0, 57, 0, 30, 0, 123,
0, 0, 0, 58, 87, 88, 89, 90, 91, 92,
93, 94, 95, 96, 97, 98, 99, 100, 86, 0,
0, 0, 0, 0, 328, 87, 88, 89, 90, 91,
92, 93, 94, 95, 96, 97, 98, 99, 100, 86,
0, 0, 0, 0, 0, 214, 87, 88, 89, 90,
98, 99, 100, 101, 87, 0, 0, 0, 0, 0,
326, 88, 89, 90, 91, 92, 93, 94, 95, 96,
97, 98, 99, 100, 101, 87, 0, 0, 0, 0,
0, 330, 88, 89, 90, 91, 92, 93, 94, 95,
96, 97, 98, 99, 100, 101, 87, 0, 0, 0,
0, 0, 336, 90, 91, 92, 93, 94, 95, 96,
97, 98, 99, 100, 101, 0, 88, 89, 90, 91,
92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
87, 0, 0, 0, 0, 0, 337, 88, 89, 90,
91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
86, 0, 0, 0, 0, 0, 276, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 86,
87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
97, 98, 99, 100, 86, 0, 0, 0, 0, 0,
325, 87, 88, 89, 90, 91, 92, 93, 94, 95,
96, 97, 98, 99, 100, 86, 0, 0, 0, 0,
0, 329, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 86, 0, 0, 0,
0, 0, 335, 89, 90, 91, 92, 93, 94, 95,
96, 97, 98, 99, 100, 0, 87, 88, 89, 90,
91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
86, 0, 0, 0, 0, 0, 336, 87, 88, 89,
101, 87, 0, 0, 0, 0, 0, 340, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
100, 86, 0, 0, 0, 0, 0, 339, 87, 88,
89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
99, 100, 0, 0, 0, 0, 0, 0, 340, 0,
100, 101, 0, 0, 0, 0, 0, 0, 341, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 0, 0, 0, 0,
0, 0, 341, 87, 88, 89, 90, 91, 92, 93,
94, 95, 96, 97, 98, 99, 100, 86, 0, 0,
0, 0, 0, 342, 0, 0, 0, 0, 0, 0,
249, 0, 0, 0, 0, 0, 86, 0, 250, 0,
0, 0, 0, 0, 0, 0, 251, 252, 253, 254,
255, 256, 257, 258, 259, 260, 261, 86, 262, 263,
264, 265, 266, 267, 268, 0, 269, 0, 0, 0,
0, 0, 0, 0, 0, 86, 0, 0, 0, 87,
88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
98, 99, 100, 86, 0, 0, 0, 270, 87, 88,
0, 0, 88, 89, 90, 91, 92, 93, 94, 95,
96, 97, 98, 99, 100, 101, 0, 0, 0, 0,
0, 0, 342, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 101, 87, 0, 0,
0, 0, 0, 343, 0, 0, 0, 0, 0, 0,
250, 0, 0, 0, 0, 0, 87, 0, 251, 0,
0, 0, 0, 0, 0, 0, 252, 253, 254, 255,
256, 257, 258, 259, 260, 261, 262, 87, 263, 264,
265, 266, 267, 268, 269, 0, 270, 0, 0, 0,
0, 0, 0, 0, 0, 87, 0, 0, 0, 88,
89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
99, 100, 0, 0, 0, 156, 86, 0, 0, 87,
88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
98, 99, 100, 0, 0, 0, 237, 87, 88, 89,
99, 100, 101, 87, 0, 0, 0, 271, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
100, 86, 0, 0, 238, 87, 88, 89, 90, 91,
92, 93, 94, 95, 96, 97, 98, 99, 100, 0,
0, 0, 243, 0, 0, 0, 0, 286, 87, 88,
100, 101, 0, 0, 0, 157, 87, 0, 0, 88,
89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
99, 100, 45, 46, 47, 48, 49, 50, 0, 45,
46, 47, 48, 49, 50, 0, 0, 0, 0, 0,
0, 0, 0, 87, 88, 89, 90, 91, 92, 93,
94, 95, 96, 97, 98, 99, 100, 300, 301, 302,
303, 304, 305, 306, 307, 51, 52, 53, 54, 0,
0, 0, 51, 52, 53, 54, 0, 55, 0, 0,
0, 0, 0, 56, 55, 57, 249, 0, 0, 0,
56, 0, 57, 58, 250, 0, 0, 0, 0, 0,
58, 0, 251, 252, 253, 254, 255, 256, 257, 258,
259, 260, 261, 249, 262, 263, 264, 265, 266, 267,
268, 250, 269, 0, 0, 0, 0, 0, 0, 251,
252, 253, 254, 255, 256, 257, 258, 259, 260, 261,
0, 262, 263, 264, 265, 266, 267, 268, 0, 269,
0, 0, 0, 270, 344, 0, 0, 0, 0, 0,
99, 100, 101, 0, 0, 0, 238, 88, 89, 90,
91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
101, 87, 0, 0, 239, 88, 89, 90, 91, 92,
93, 94, 95, 96, 97, 98, 99, 100, 101, 0,
0, 0, 244, 0, 0, 0, 0, 287, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
100, 101, 46, 47, 48, 49, 50, 51, 0, 46,
47, 48, 49, 50, 51, 0, 0, 0, 0, 0,
0, 0, 0, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 101, 301, 302, 303,
304, 305, 306, 307, 308, 52, 53, 54, 55, 0,
0, 0, 52, 53, 54, 55, 0, 56, 0, 0,
0, 0, 0, 57, 56, 58, 250, 0, 0, 0,
57, 0, 58, 59, 251, 0, 0, 0, 0, 0,
59, 0, 252, 253, 254, 255, 256, 257, 258, 259,
260, 261, 262, 250, 263, 264, 265, 266, 267, 268,
269, 251, 270, 0, 0, 0, 0, 0, 0, 252,
253, 254, 255, 256, 257, 258, 259, 260, 261, 262,
0, 263, 264, 265, 266, 267, 268, 269, 0, 270,
0, 0, 0, 271, 345, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
270
271
};
 
static const short yycheck[] =
static const yytype_int16 yycheck[] =
{
55, 56, 21, 73, 44, 78, 115, 58, 103, 9,
14, 3, 36, 5, 6, 7, 194, 195, 73, 11,
12, 13, 36, 15, 270, 17, 18, 19, 20, 21,
56, 57, 22, 74, 45, 79, 116, 59, 104, 9,
14, 3, 36, 5, 6, 7, 195, 196, 74, 11,
12, 13, 36, 15, 271, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 27, 28, 29, 30, 48,
32, 21, 15, 35, 290, 115, 24, 25, 26, 27,
28, 31, 85, 91, 89, 16, 91, 95, 48, 78,
115, 0, 86, 96, 0, 68, 69, 6, 15, 93,
6, 317, 86, 0, 66, 67, 68, 69, 39, 6,
32, 21, 15, 35, 291, 116, 24, 25, 26, 27,
28, 31, 85, 91, 16, 0, 15, 95, 48, 79,
116, 6, 86, 96, 0, 16, 89, 0, 91, 93,
6, 318, 86, 6, 66, 67, 68, 69, 40, 68,
87, 90, 68, 0, 91, 89, 78, 87, 68, 6,
68, 69, 84, 202, 86, 68, 88, 89, 90, 277,
90, 0, 94, 37, 81, 82, 83, 16, 86, 11,
205, 151, 11, 15, 15, 17, 15, 19, 17, 68,
19, 87, 90, 57, 58, 91, 8, 92, 237, 238,
90, 91, 202, 35, 90, 91, 35, 78, 79, 80,
81, 82, 83, 77, 68, 196, 197, 202, 90, 91,
90, 91, 86, 87, 88, 89, 90, 91, 92, 93,
94, 95, 96, 97, 98, 99, 100, 237, 238, 88,
104, 68, 88, 86, 108, 68, 72, 68, 86, 94,
94, 87, 237, 238, 94, 68, 120, 91, 70, 71,
68, 69, 84, 203, 86, 68, 88, 89, 90, 278,
90, 0, 94, 38, 81, 82, 83, 15, 86, 11,
206, 152, 11, 15, 90, 17, 15, 19, 17, 68,
19, 87, 68, 58, 59, 91, 8, 88, 238, 239,
68, 69, 203, 35, 90, 91, 35, 78, 79, 80,
81, 82, 83, 78, 92, 197, 198, 203, 90, 91,
90, 91, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 101, 238, 239, 94,
105, 90, 91, 88, 109, 86, 68, 77, 94, 91,
94, 87, 238, 239, 68, 86, 121, 68, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
82, 83, 90, 90, 68, 86, 86, 86, 68, 68,
319, 86, 231, 95, 323, 86, 86, 86, 68, 95,
36, 155, 90, 157, 33, 92, 92, 68, 8, 23,
82, 83, 90, 86, 90, 68, 86, 86, 68, 68,
320, 86, 232, 95, 324, 86, 86, 86, 68, 95,
36, 156, 90, 158, 33, 92, 92, 68, 8, 23,
24, 25, 26, 27, 28, 68, 87, 91, 66, 87,
87, 10, 68, 316, 86, 179, 86, 90, 182, 319,
88, 90, 44, 323, 90, 90, 365, 44, 192, 90,
194, 195, 196, 197, 319, 338, 90, 90, 323, 90,
204, 90, 66, 67, 68, 69, 90, 90, 44, 87,
10, 87, 216, 4, 78, 90, 68, 87, 90, 90,
84, 90, 86, 227, 90, 365, 90, 316, 66, 90,
94, 90, 372, 87, 90, 90, 29, 8, 86, 0,
365, 87, 93, 6, 1, 249, 20, 372, 252, 338,
370, 255, 42, 106, 258, -1, 218, 221, 262, 263,
264, 265, 266, 267, 268, -1, 3, 148, 5, 6,
7, 231, -1, 277, 11, 12, 13, -1, 15, -1,
87, 10, 68, 317, 86, 180, 86, 90, 183, 320,
88, 90, 44, 324, 90, 90, 366, 44, 193, 90,
195, 196, 197, 198, 320, 339, 90, 90, 324, 90,
205, 90, 66, 67, 68, 69, 90, 90, 44, 87,
10, 87, 217, 4, 78, 90, 68, 87, 90, 90,
84, 90, 86, 228, 90, 366, 90, 317, 66, 90,
94, 90, 373, 87, 90, 90, 29, 8, 86, 6,
366, 87, 93, 1, 21, 250, 371, 373, 253, 339,
149, 256, 219, 43, 259, 232, 222, -1, 263, 264,
265, 266, 267, 268, 269, 107, 3, -1, 5, 6,
7, -1, -1, 278, 11, 12, 13, -1, 15, -1,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, -1, 32, -1, -1, 35, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
759,172 → 1201,69
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
88
};
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
#line 3 "/usr/share/bison/bison.simple"
 
/* Skeleton output parser for bison,
 
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software
Foundation, Inc.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
/* As a special exception, when this file is copied by Bison into a
Bison output file, you may use that output file without restriction.
This special exception was added by the Free Software Foundation
in version 1.24 of Bison. */
 
/* This is the parser code that is written into each bison parser when
the %semantic_parser declaration is not specified in the grammar.
It was written by Richard Stallman by simplifying the hairy parser
used when %semantic_parser is specified. */
 
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
 
#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
 
/* The parser invokes alloca or malloc; define the necessary symbols. */
 
# if YYSTACK_USE_ALLOCA
# define YYSTACK_ALLOC alloca
# else
# ifndef YYSTACK_USE_ALLOCA
# if defined (alloca) || defined (_ALLOCA_H)
# define YYSTACK_ALLOC alloca
# else
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
# endif
# endif
# endif
# endif
 
# ifdef YYSTACK_ALLOC
/* Pacify GCC's `empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# else
# if defined (__STDC__) || defined (__cplusplus)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# endif
# define YYSTACK_ALLOC malloc
# define YYSTACK_FREE free
# endif
#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */
 
 
#if (! defined (yyoverflow) \
&& (! defined (__cplusplus) \
|| (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
 
/* A type that is properly aligned for any stack member. */
union yyalloc
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
static const yytype_uint8 yystos[] =
{
short yyss;
YYSTYPE yyvs;
# if YYLSP_NEEDED
YYLTYPE yyls;
# endif
0, 11, 15, 17, 19, 35, 98, 99, 100, 102,
110, 114, 118, 123, 164, 102, 16, 68, 15, 0,
99, 101, 68, 90, 68, 115, 116, 111, 68, 119,
120, 88, 104, 68, 69, 103, 163, 167, 92, 90,
91, 88, 90, 91, 105, 86, 23, 24, 25, 26,
27, 28, 66, 67, 68, 69, 78, 84, 86, 94,
152, 155, 156, 157, 159, 165, 166, 167, 116, 68,
112, 113, 116, 120, 106, 161, 162, 164, 77, 94,
36, 160, 155, 155, 152, 152, 154, 8, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
82, 83, 85, 96, 158, 94, 89, 91, 3, 5,
6, 7, 12, 13, 15, 18, 20, 21, 22, 29,
30, 32, 68, 89, 90, 104, 107, 108, 110, 114,
118, 123, 124, 125, 126, 127, 131, 132, 133, 134,
135, 136, 137, 141, 148, 149, 150, 151, 152, 155,
156, 87, 91, 68, 152, 163, 86, 87, 91, 95,
152, 152, 152, 152, 152, 152, 152, 152, 152, 152,
152, 152, 152, 152, 152, 68, 159, 152, 90, 113,
86, 90, 152, 86, 86, 90, 68, 68, 109, 117,
68, 121, 122, 86, 107, 86, 86, 86, 86, 142,
152, 93, 9, 87, 68, 92, 158, 90, 164, 95,
153, 154, 152, 95, 152, 90, 152, 92, 90, 91,
92, 90, 91, 152, 153, 153, 154, 154, 33, 147,
68, 107, 8, 152, 21, 31, 68, 87, 87, 87,
152, 117, 66, 122, 87, 87, 87, 87, 87, 152,
21, 29, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 49, 50, 51, 52, 53, 54, 55,
57, 88, 144, 128, 129, 166, 167, 90, 86, 86,
107, 107, 88, 90, 90, 90, 90, 34, 152, 90,
90, 152, 90, 90, 152, 90, 90, 152, 90, 44,
44, 58, 59, 60, 61, 62, 63, 64, 65, 145,
152, 152, 152, 152, 152, 152, 152, 44, 143, 144,
87, 10, 153, 87, 4, 138, 90, 144, 56, 90,
90, 48, 90, 48, 90, 90, 90, 90, 90, 91,
90, 90, 90, 90, 163, 89, 144, 107, 68, 87,
90, 107, 14, 89, 139, 90, 90, 90, 90, 146,
163, 90, 130, 90, 66, 90, 87, 86, 140, 107,
29, 93, 87, 106
};
 
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
 
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# if YYLSP_NEEDED
# define YYSTACK_BYTES(N) \
((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
+ 2 * YYSTACK_GAP_MAX)
# else
# define YYSTACK_BYTES(N) \
((N) * (sizeof (short) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAX)
# endif
 
/* Copy COUNT objects from FROM to TO. The source and destination do
not overlap. */
# ifndef YYCOPY
# if 1 < __GNUC__
# define YYCOPY(To, From, Count) \
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
# else
# define YYCOPY(To, From, Count) \
do \
{ \
register YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (0)
# endif
# endif
 
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
# define YYSTACK_RELOCATE(Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack, Stack, yysize); \
Stack = &yyptr->Stack; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (0)
 
#endif
 
 
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# define YYSIZE_T __SIZE_TYPE__
#endif
#if ! defined (YYSIZE_T) && defined (size_t)
# define YYSIZE_T size_t
#endif
#if ! defined (YYSIZE_T)
# if defined (__STDC__) || defined (__cplusplus)
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# endif
#endif
#if ! defined (YYSIZE_T)
# define YYSIZE_T unsigned int
#endif
 
#define yyerrok (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY)
#define YYEMPTY -2
#define YYEMPTY (-2)
#define YYEOF 0
 
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrlab1
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrorlab
 
 
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
Once GCC version 2 has supplanted version 1, this can go. */
 
#define YYFAIL goto yyerrlab
 
#define YYRECOVERING() (!!yyerrstatus)
 
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY && yylen == 1) \
931,56 → 1270,72
{ \
yychar = (Token); \
yylval = (Value); \
yychar1 = YYTRANSLATE (yychar); \
YYPOPSTACK; \
yytoken = YYTRANSLATE (yychar); \
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). */
 
When YYLLOC_DEFAULT is run, CURRENT is set the location of the
first token. By default, to implement support for ranges, extend
its range to the last symbol. */
 
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N) \
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. */
 
#if YYPURE
# if YYLSP_NEEDED
# ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
# else
# define YYLEX yylex (&yylval, &yylloc)
# endif
# else /* !YYLSP_NEEDED */
# ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, YYLEX_PARAM)
# else
# define YYLEX yylex (&yylval)
# endif
# endif /* !YYLSP_NEEDED */
#else /* !YYPURE */
# define YYLEX yylex ()
#endif /* !YYPURE */
#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
#else
# define YYLEX yylex ()
#endif
 
 
/* Enable debugging if requested. */
#if YYDEBUG
 
993,14 → 1348,158
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (0)
} while (YYID (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))
 
 
/*--------------------------------.
| 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 (included). |
`------------------------------------------------------------------*/
 
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
static void
yy_stack_print (yybottom, yytop)
yytype_int16 *yybottom;
yytype_int16 *yytop;
#endif
{
YYFPRINTF (stderr, "Stack now");
for (; yybottom <= yytop; yybottom++)
{
int yybot = *yybottom;
YYFPRINTF (stderr, " %d", yybot);
}
YYFPRINTF (stderr, "\n");
}
 
# define YY_STACK_PRINT(Bottom, Top) \
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (YYID (0))
 
 
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
 
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
#else
static void
yy_reduce_print (yyvsp, yyrule)
YYSTYPE *yyvsp;
int yyrule;
#endif
{
int yynrhs = yyr2[yyrule];
int yyi;
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 (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 YY_SYMBOL_PRINT(Title, Type, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */
 
 
/* YYINITDEPTH -- initial size of the parser's stacks. */
#ifndef YYINITDEPTH
# define YYINITDEPTH 200
1010,59 → 1509,59
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
 
#ifdef YYERROR_VERBOSE
 
#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;
1071,149 → 1570,314
}
# endif
# endif
#endif
#line 315 "/usr/share/bison/bison.simple"
 
# 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;
 
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
into yyparse. The argument should have type void *.
It should actually point to an object.
Grammar actions can access the variable by casting it
to the proper pointer type. */
for (;;)
switch (*++yyp)
{
case '\'':
case ',':
goto do_not_strip_quotes;
 
#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
# define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
# define YYPARSE_PARAM_DECL
# else
# define YYPARSE_PARAM_ARG YYPARSE_PARAM
# define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
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);
 
return yystpcpy (yyres, yystr) - yyres;
}
# endif
#else /* !YYPARSE_PARAM */
# define YYPARSE_PARAM_ARG
# define YYPARSE_PARAM_DECL
#endif /* !YYPARSE_PARAM */
 
/* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__
# ifdef YYPARSE_PARAM
int yyparse (void *);
# else
int yyparse (void);
/* 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)
{
int yyn = yypact[yystate];
 
if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
return 0;
else
{
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
#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;
 
/* YY_DECL_VARIABLES -- depending whether we use a pure parser,
variables are global, or local to YYPARSE. */
/* Start YYX at -YYN if negative to avoid negative indexes in
YYCHECK. */
int yyxbegin = yyn < 0 ? -yyn : 0;
 
#define YY_DECL_NON_LSP_VARIABLES \
/* The lookahead symbol. */ \
int yychar; \
\
/* The semantic value of the lookahead symbol. */ \
YYSTYPE yylval; \
\
/* Number of parse errors so far. */ \
int yynerrs;
/* Stay within bounds of both yycheck and yytname. */
int yychecklim = YYLAST - yyn + 1;
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
int yycount = 1;
 
#if YYLSP_NEEDED
# define YY_DECL_VARIABLES \
YY_DECL_NON_LSP_VARIABLES \
\
/* Location data for the lookahead symbol. */ \
YYLTYPE yylloc;
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;
}
}
#endif /* YYERROR_VERBOSE */
 
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
 
/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
#else
# define YY_DECL_VARIABLES \
YY_DECL_NON_LSP_VARIABLES
static void
yydestruct (yymsg, yytype, yyvaluep)
const char *yymsg;
int yytype;
YYSTYPE *yyvaluep;
#endif
{
YYUSE (yyvaluep);
 
if (!yymsg)
yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
 
/* If nonreentrant, generate the variables here. */
switch (yytype)
{
 
#if !YYPURE
YY_DECL_VARIABLES
#endif /* !YYPURE */
default:
break;
}
}
 
int
yyparse (YYPARSE_PARAM_ARG)
YYPARSE_PARAM_DECL
{
/* If reentrant, generate the variables here. */
#if YYPURE
YY_DECL_VARIABLES
#endif /* !YYPURE */
/* Prevent warnings from -Wmissing-prototypes. */
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
#else
int yyparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int yyparse (void);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */
 
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 yychar1 = 0;
 
/* Three stacks and their tools:
`yyss': related to states,
`yyvs': related to semantic values,
`yyls': related to locations.
/* The lookahead symbol. */
int yychar;
 
Refer to the stacks thru separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
 
/* The state stack. */
short yyssa[YYINITDEPTH];
short *yyss = yyssa;
register short *yyssp;
/* Number of syntax errors so far. */
int yynerrs;
 
/* The semantic value stack. */
YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs = yyvsa;
register YYSTYPE *yyvsp;
 
#if YYLSP_NEEDED
/* The location stack. */
YYLTYPE yylsa[YYINITDEPTH];
YYLTYPE *yyls = yylsa;
YYLTYPE *yylsp;
#endif
 
#if YYLSP_NEEDED
# define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
/*-------------------------.
| yyparse or yypush_parse. |
`-------------------------*/
 
#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
int
yyparse (void *YYPARSE_PARAM)
#else
# define YYPOPSTACK (yyvsp--, yyssp--)
int
yyparse (YYPARSE_PARAM)
void *YYPARSE_PARAM;
#endif
#else /* ! YYPARSE_PARAM */
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
#else
int
yyparse ()
 
YYSIZE_T yystacksize = YYINITDEPTH;
#endif
#endif
{
 
 
int yystate;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
 
/* The stacks and their tools:
`yyss': related to states.
`yyvs': related to semantic values.
 
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;
 
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 YYLSP_NEEDED
YYLTYPE yyloc;
 
#if YYERROR_VERBOSE
/* Buffer for error messages, and its allocated size. */
char yymsgbuf[128];
char *yymsg = yymsgbuf;
YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif
 
/* When reducing, the number of symbols on the RHS of the reduced
rule. */
int yylen;
#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;
 
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;
#if YYLSP_NEEDED
yylsp = yyls;
#endif
 
goto yysetstate;
 
/*------------------------------------------------------------.
1221,14 → 1885,13
`------------------------------------------------------------*/
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:
*yyssp = yystate;
 
if (yyssp >= yyss + yystacksize - 1)
if (yyss + yystacksize - 1 <= yyssp)
{
/* Get the current used size of the three stacks, in elements. */
YYSIZE_T yysize = yyssp - yyss + 1;
1235,56 → 1898,44
 
#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. */
# if YYLSP_NEEDED
YYLTYPE *yyls1 = yyls;
/* 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",
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 (YY_("memory exhausted"),
&yyss1, yysize * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
&yyls1, yysize * sizeof (*yylsp),
&yystacksize);
yyls = yyls1;
# else
yyoverflow ("parser stack overflow",
&yyss1, yysize * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
&yystacksize);
# endif
 
yyss = yyss1;
yyvs = yyvs1;
}
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
goto yyoverflowlab;
goto yyexhaustedlab;
# else
/* Extend the stack our own way. */
if (yystacksize >= YYMAXDEPTH)
goto yyoverflowlab;
if (YYMAXDEPTH <= yystacksize)
goto yyexhaustedlab;
yystacksize *= 2;
if (yystacksize > YYMAXDEPTH)
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);
# if YYLSP_NEEDED
YYSTACK_RELOCATE (yyls);
# endif
# undef YYSTACK_RELOCATE
goto yyexhaustedlab;
YYSTACK_RELOCATE (yyss_alloc, yyss);
YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# undef YYSTACK_RELOCATE
if (yyss1 != yyssa)
YYSTACK_FREE (yyss1);
}
1293,42 → 1944,37
 
yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1;
#if YYLSP_NEEDED
yylsp = yyls + yysize - 1;
#endif
 
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
(unsigned long int) yystacksize));
 
if (yyssp >= yyss + yystacksize - 1)
if (yyss + yystacksize - 1 <= yyssp)
YYABORT;
}
 
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
 
if (yystate == YYFINAL)
YYACCEPT;
 
goto yybackup;
 
 
/*-----------.
| yybackup. |
`-----------*/
yybackup:
 
/* Do appropriate processing given the current state. */
/* Read a lookahead token if we need one and don't already have one. */
/* yyresume: */
/* 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 == YYFLAG)
if (yyn == YYPACT_NINF)
goto yydefault;
 
/* Not known => get a lookahead token if don't already have one. */
 
/* yychar is either YYEMPTY or YYEOF
or a valid token in external form. */
 
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
1335,81 → 1981,45
yychar = YYLEX;
}
 
/* Convert token to internal form (in yychar1) for indexing tables with */
 
if (yychar <= 0) /* This means end of input. */
if (yychar <= YYEOF)
{
yychar1 = 0;
yychar = YYEOF; /* Don't call YYLEX any more */
 
yychar = yytoken = YYEOF;
YYDPRINTF ((stderr, "Now at end of input.\n"));
}
else
{
yychar1 = YYTRANSLATE (yychar);
 
#if YYDEBUG
/* We have to keep this `#if YYDEBUG', since we use variables
which are defined only if `YYDEBUG' is set. */
if (yydebug)
{
YYFPRINTF (stderr, "Next token is %d (%s",
yychar, yytname[yychar1]);
/* Give the individual parser a way to print the precise
meaning of a token, for further debugging info. */
# ifdef YYPRINT
YYPRINT (stderr, yychar, yylval);
# endif
YYFPRINTF (stderr, ")\n");
}
#endif
yytoken = YYTRANSLATE (yychar);
YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
}
 
yyn += yychar1;
if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
/* If the proper action on seeing token YYTOKEN is to reduce or to
detect an error, take that action. */
yyn += yytoken;
if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
goto yydefault;
 
yyn = yytable[yyn];
 
/* yyn is what to do for this token type in this state.
Negative => reduce, -yyn is rule number.
Positive => shift, yyn is new state.
New state is final state => don't bother to shift,
just return success.
0, or most negative number => error. */
 
if (yyn < 0)
if (yyn <= 0)
{
if (yyn == YYFLAG)
if (yyn == 0 || yyn == YYTABLE_NINF)
goto yyerrlab;
yyn = -yyn;
goto yyreduce;
}
else if (yyn == 0)
goto yyerrlab;
 
if (yyn == YYFINAL)
YYACCEPT;
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
 
/* Shift the lookahead token. */
YYDPRINTF ((stderr, "Shifting token %d (%s), ",
yychar, yytname[yychar1]));
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
 
/* Discard the token being shifted unless it is eof. */
if (yychar != YYEOF)
yychar = YYEMPTY;
/* Discard the shifted token. */
yychar = YYEMPTY;
 
yystate = yyn;
*++yyvsp = yylval;
#if YYLSP_NEEDED
*++yylsp = yylloc;
#endif
 
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
 
yystate = yyn;
goto yynewstate;
 
 
1433,847 → 2043,1241
/* If YYLEN is nonzero, implement the default value of the action:
`$$ = $1'.
 
Otherwise, the following line sets YYVAL to the semantic value of
the lookahead token. This behavior is undocumented and Bison
Otherwise, the following line sets YYVAL to garbage.
This behavior is undocumented and Bison
users should not rely upon it. Assigning to YYVAL
unconditionally makes the parser a bit smaller, and it avoids a
GCC warning that YYVAL may be used uninitialized. */
yyval = yyvsp[1-yylen];
 
#if YYLSP_NEEDED
/* Similarly for the default location. Let the user run additional
commands if for instance locations are ranges. */
yyloc = yylsp[1-yylen];
YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
#endif
 
#if YYDEBUG
/* We have to keep this `#if YYDEBUG', since we use variables which
are defined only if `YYDEBUG' is set. */
if (yydebug)
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
int yyi;
case 5:
 
YYFPRINTF (stderr, "Reducing via rule %d (line %d), ",
yyn, yyrline[yyn]);
/* Line 1455 of yacc.c */
#line 149 "ucparse.yy"
{
if (!Uc_function::add_global_function_symbol((yyvsp[(1) - (1)].funsym)))
delete (yyvsp[(1) - (1)].funsym);
}
break;
 
/* Print the symbols being reduced, and their result. */
for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++)
YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]);
}
#endif
case 9:
 
switch (yyn) {
/* Line 1455 of yacc.c */
#line 160 "ucparse.yy"
{ function = new Uc_function((yyvsp[(1) - (1)].funsym)); }
break;
 
case 4:
#line 148 "ucparse.yy"
{
if (!Uc_function::add_global_function_symbol(yyvsp[0].funsym))
delete yyvsp[0].funsym;
}
break;
case 8:
#line 159 "ucparse.yy"
{ function = new Uc_function(yyvsp[0].funsym); }
break;
case 9:
#line 161 "ucparse.yy"
{
function->set_statement(yyvsp[0].stmt);
case 10:
 
/* Line 1455 of yacc.c */
#line 162 "ucparse.yy"
{
function->set_statement((yyvsp[(3) - (3)].stmt));
functions.push_back(function);
function = 0;
}
break;
case 10:
#line 171 "ucparse.yy"
{
yyval.funsym = new Uc_function_symbol(yyvsp[-4].strval, yyvsp[-3].intval, *yyvsp[-1].strvec);
delete yyvsp[-1].strvec; // A copy was made.
 
case 11:
 
/* Line 1455 of yacc.c */
#line 172 "ucparse.yy"
{
(yyval.funsym) = new Uc_function_symbol((yyvsp[(2) - (6)].strval), (yyvsp[(3) - (6)].intval), *(yyvsp[(5) - (6)].strvec));
delete (yyvsp[(5) - (6)].strvec); // A copy was made.
}
break;
case 12:
#line 180 "ucparse.yy"
{ yyval.intval = -1; }
 
case 13:
 
/* Line 1455 of yacc.c */
#line 181 "ucparse.yy"
{ (yyval.intval) = -1; }
break;
case 13:
#line 185 "ucparse.yy"
{ function->push_scope(); }
 
case 14:
 
/* Line 1455 of yacc.c */
#line 186 "ucparse.yy"
{ function->push_scope(); }
break;
case 14:
#line 187 "ucparse.yy"
{
yyval.stmt = yyvsp[-1].block;
 
case 15:
 
/* Line 1455 of yacc.c */
#line 188 "ucparse.yy"
{
(yyval.stmt) = (yyvsp[(3) - (4)].block);
function->pop_scope();
}
break;
case 15:
#line 195 "ucparse.yy"
{
if (yyvsp[0].stmt)
yyval.block->add(yyvsp[0].stmt);
 
case 16:
 
/* Line 1455 of yacc.c */
#line 196 "ucparse.yy"
{
if ((yyvsp[(2) - (2)].stmt))
(yyval.block)->add((yyvsp[(2) - (2)].stmt));
}
break;
case 16:
#line 200 "ucparse.yy"
{ yyval.block = new Uc_block_statement(); }
 
case 17:
 
/* Line 1455 of yacc.c */
#line 201 "ucparse.yy"
{ (yyval.block) = new Uc_block_statement(); }
break;
case 32:
#line 220 "ucparse.yy"
{ yyval.stmt = new Uc_say_statement(yyvsp[-2].exprlist); }
 
case 33:
 
/* Line 1455 of yacc.c */
#line 221 "ucparse.yy"
{ (yyval.stmt) = new Uc_say_statement((yyvsp[(3) - (5)].exprlist)); }
break;
case 33:
#line 222 "ucparse.yy"
{ yyval.stmt = new Uc_message_statement(yyvsp[-2].exprlist); }
 
case 34:
 
/* Line 1455 of yacc.c */
#line 223 "ucparse.yy"
{ (yyval.stmt) = new Uc_message_statement((yyvsp[(3) - (5)].exprlist)); }
break;
case 35:
#line 225 "ucparse.yy"
{ yyval.stmt = 0; }
 
case 36:
 
/* Line 1455 of yacc.c */
#line 226 "ucparse.yy"
{ (yyval.stmt) = 0; }
break;
case 36:
#line 230 "ucparse.yy"
{ yyval.stmt = yyvsp[-1].stmt; }
 
case 37:
 
/* Line 1455 of yacc.c */
#line 231 "ucparse.yy"
{ (yyval.stmt) = (yyvsp[(2) - (3)].stmt); }
break;
case 37:
#line 232 "ucparse.yy"
{ yyval.stmt = 0; }
 
case 38:
 
/* Line 1455 of yacc.c */
#line 233 "ucparse.yy"
{ (yyval.stmt) = 0; }
break;
case 38:
#line 234 "ucparse.yy"
{ yyval.stmt = 0; }
 
case 39:
 
/* Line 1455 of yacc.c */
#line 235 "ucparse.yy"
{ (yyval.stmt) = 0; }
break;
case 39:
#line 236 "ucparse.yy"
{ yyval.stmt = 0; }
 
case 40:
 
/* Line 1455 of yacc.c */
#line 237 "ucparse.yy"
{ (yyval.stmt) = 0; }
break;
case 40:
#line 238 "ucparse.yy"
{
if (!function->add_function_symbol(yyvsp[0].funsym))
delete yyvsp[0].funsym;
yyval.stmt = 0;
 
case 41:
 
/* Line 1455 of yacc.c */
#line 239 "ucparse.yy"
{
if (!function->add_function_symbol((yyvsp[(1) - (1)].funsym)))
delete (yyvsp[(1) - (1)].funsym);
(yyval.stmt) = 0;
}
break;
case 41:
#line 244 "ucparse.yy"
{ yyval.stmt = 0; }
 
case 42:
 
/* Line 1455 of yacc.c */
#line 245 "ucparse.yy"
{ (yyval.stmt) = 0; }
break;
case 42:
#line 249 "ucparse.yy"
{
if (!yyvsp[0].stmt)
yyval.stmt = yyvsp[-2].stmt;
else if (!yyvsp[-2].stmt)
yyval.stmt = yyvsp[0].stmt;
 
case 43:
 
/* Line 1455 of yacc.c */
#line 250 "ucparse.yy"
{
if (!(yyvsp[(3) - (3)].stmt))
(yyval.stmt) = (yyvsp[(1) - (3)].stmt);
else if (!(yyvsp[(1) - (3)].stmt))
(yyval.stmt) = (yyvsp[(3) - (3)].stmt);
else /* Both nonzero. Need a list. */
{
Uc_block_statement *b =
dynamic_cast<Uc_block_statement *>(yyvsp[-2].stmt);
dynamic_cast<Uc_block_statement *>((yyvsp[(1) - (3)].stmt));
if (!b)
{
b = new Uc_block_statement();
b->add(yyvsp[-2].stmt);
b->add((yyvsp[(1) - (3)].stmt));
}
b->add(yyvsp[0].stmt);
yyval.stmt = b;
b->add((yyvsp[(3) - (3)].stmt));
(yyval.stmt) = b;
}
}
break;
case 43:
#line 268 "ucparse.yy"
{ yyval.stmt = yyvsp[0].stmt; }
 
case 44:
 
/* Line 1455 of yacc.c */
#line 269 "ucparse.yy"
{ (yyval.stmt) = (yyvsp[(1) - (1)].stmt); }
break;
case 44:
#line 272 "ucparse.yy"
{ enum_val = -1; }
 
case 45:
 
/* Line 1455 of yacc.c */
#line 273 "ucparse.yy"
{ enum_val = -1; }
break;
case 49:
#line 283 "ucparse.yy"
{ /* Increment last value. */
 
case 50:
 
/* Line 1455 of yacc.c */
#line 284 "ucparse.yy"
{ /* Increment last value. */
++enum_val;
if (function)
function->add_int_const_symbol(yyvsp[0].strval, enum_val);
function->add_int_const_symbol((yyvsp[(1) - (1)].strval), enum_val);
else // Global.
Uc_function::add_global_int_const_symbol(yyvsp[0].strval, enum_val);
Uc_function::add_global_int_const_symbol((yyvsp[(1) - (1)].strval), enum_val);
}
break;
case 53:
#line 303 "ucparse.yy"
{
 
case 54:
 
/* Line 1455 of yacc.c */
#line 304 "ucparse.yy"
{
int val; // Get constant.
if (yyvsp[0].expr->eval_const(val))
if ((yyvsp[(3) - (3)].expr)->eval_const(val))
{
if (function)
function->add_int_const_symbol(yyvsp[-2].strval, val);
function->add_int_const_symbol((yyvsp[(1) - (3)].strval), val);
else // Global.
Uc_function::add_global_int_const_symbol(
yyvsp[-2].strval, val);
(yyvsp[(1) - (3)].strval), val);
enum_val = val; // In case we're in an enum.
}
}
break;
case 54:
#line 319 "ucparse.yy"
{
function->add_symbol(yyvsp[0].strval);
yyval.stmt = 0;
 
case 55:
 
/* Line 1455 of yacc.c */
#line 320 "ucparse.yy"
{
function->add_symbol((yyvsp[(1) - (1)].strval));
(yyval.stmt) = 0;
}
break;
case 55:
#line 324 "ucparse.yy"
{
Uc_var_symbol *var = function->add_symbol(yyvsp[-2].strval);
yyval.stmt = new Uc_assignment_statement(
new Uc_var_expression(var), yyvsp[0].expr);
 
case 56:
 
/* Line 1455 of yacc.c */
#line 325 "ucparse.yy"
{
Uc_var_symbol *var = function->add_symbol((yyvsp[(1) - (3)].strval));
(yyval.stmt) = new Uc_assignment_statement(
new Uc_var_expression(var), (yyvsp[(3) - (3)].expr));
}
break;
case 59:
#line 342 "ucparse.yy"
{
 
case 60:
 
/* Line 1455 of yacc.c */
#line 343 "ucparse.yy"
{
if (function)
function->add_static(yyvsp[0].strval);
function->add_static((yyvsp[(1) - (1)].strval));
else
Uc_function::add_global_static(yyvsp[0].strval);
Uc_function::add_global_static((yyvsp[(1) - (1)].strval));
}
break;
case 62:
#line 357 "ucparse.yy"
{
function->add_string_symbol(yyvsp[-2].strval, yyvsp[0].strval);
 
case 63:
 
/* Line 1455 of yacc.c */
#line 358 "ucparse.yy"
{
function->add_string_symbol((yyvsp[(1) - (3)].strval), (yyvsp[(3) - (3)].strval));
}
break;
case 63:
#line 364 "ucparse.yy"
{ yyval.funsym = yyvsp[-1].funsym; }
 
case 64:
 
/* Line 1455 of yacc.c */
#line 365 "ucparse.yy"
{ (yyval.funsym) = (yyvsp[(2) - (3)].funsym); }
break;
case 64:
#line 369 "ucparse.yy"
{ yyval.stmt = new Uc_assignment_statement(yyvsp[-3].expr, yyvsp[-1].expr); }
 
case 65:
 
/* Line 1455 of yacc.c */
#line 370 "ucparse.yy"
{ (yyval.stmt) = new Uc_assignment_statement((yyvsp[(1) - (4)].expr), (yyvsp[(3) - (4)].expr)); }
break;
case 65:
#line 374 "ucparse.yy"
{ yyval.stmt = new Uc_if_statement(yyvsp[-2].expr, yyvsp[0].stmt, 0); }
 
case 66:
 
/* Line 1455 of yacc.c */
#line 375 "ucparse.yy"
{ (yyval.stmt) = new Uc_if_statement((yyvsp[(3) - (5)].expr), (yyvsp[(5) - (5)].stmt), 0); }
break;
case 66:
#line 376 "ucparse.yy"
{ yyval.stmt = new Uc_if_statement(yyvsp[-4].expr, yyvsp[-2].stmt, yyvsp[0].stmt); }
 
case 67:
 
/* Line 1455 of yacc.c */
#line 377 "ucparse.yy"
{ (yyval.stmt) = new Uc_if_statement((yyvsp[(3) - (7)].expr), (yyvsp[(5) - (7)].stmt), (yyvsp[(7) - (7)].stmt)); }
break;
case 67:
#line 381 "ucparse.yy"
{ yyval.stmt = new Uc_while_statement(yyvsp[-2].expr, yyvsp[0].stmt); }
 
case 68:
 
/* Line 1455 of yacc.c */
#line 382 "ucparse.yy"
{ (yyval.stmt) = new Uc_while_statement((yyvsp[(3) - (5)].expr), (yyvsp[(5) - (5)].stmt)); }
break;
case 68:
#line 386 "ucparse.yy"
{
yyvsp[-2].arrayloop->set_statement(yyvsp[0].stmt);
yyvsp[-2].arrayloop->finish(function);
 
case 69:
 
/* Line 1455 of yacc.c */
#line 387 "ucparse.yy"
{
(yyvsp[(1) - (3)].arrayloop)->set_statement((yyvsp[(3) - (3)].stmt));
(yyvsp[(1) - (3)].arrayloop)->finish(function);
function->pop_scope();
}
break;
case 69:
#line 392 "ucparse.yy"
{ yyvsp[-2].arrayloop->set_index(function->add_symbol(yyvsp[0].strval)); }
 
case 70:
 
/* Line 1455 of yacc.c */
#line 393 "ucparse.yy"
{ (yyvsp[(1) - (3)].arrayloop)->set_index(function->add_symbol((yyvsp[(3) - (3)].strval))); }
break;
case 70:
#line 394 "ucparse.yy"
{
yyvsp[-5].arrayloop->set_statement(yyvsp[0].stmt);
yyvsp[-5].arrayloop->finish(function);
 
case 71:
 
/* Line 1455 of yacc.c */
#line 395 "ucparse.yy"
{
(yyvsp[(1) - (6)].arrayloop)->set_statement((yyvsp[(6) - (6)].stmt));
(yyvsp[(1) - (6)].arrayloop)->finish(function);
function->pop_scope();
}
break;
case 71:
#line 400 "ucparse.yy"
{ yyvsp[-2].arrayloop->set_index(function->add_symbol(yyvsp[0].strval)); }
 
case 72:
 
/* Line 1455 of yacc.c */
#line 401 "ucparse.yy"
{ (yyvsp[(1) - (3)].arrayloop)->set_index(function->add_symbol((yyvsp[(3) - (3)].strval))); }
break;
case 72:
#line 402 "ucparse.yy"
{ yyvsp[-5].arrayloop->set_array_size(function->add_symbol(yyvsp[0].strval)); }
 
case 73:
 
/* Line 1455 of yacc.c */
#line 403 "ucparse.yy"
{ (yyvsp[(1) - (6)].arrayloop)->set_array_size(function->add_symbol((yyvsp[(6) - (6)].strval))); }
break;
case 73:
#line 404 "ucparse.yy"
{
yyvsp[-8].arrayloop->set_statement(yyvsp[0].stmt);
 
case 74:
 
/* Line 1455 of yacc.c */
#line 405 "ucparse.yy"
{
(yyvsp[(1) - (9)].arrayloop)->set_statement((yyvsp[(9) - (9)].stmt));
function->pop_scope();
}
break;
case 74:
#line 412 "ucparse.yy"
{
Uc_var_symbol *var = function->add_symbol(yyvsp[-2].strval);
yyval.arrayloop = new Uc_arrayloop_statement(var, yyvsp[0].var);
 
case 75:
 
/* Line 1455 of yacc.c */
#line 413 "ucparse.yy"
{
Uc_var_symbol *var = function->add_symbol((yyvsp[(2) - (4)].strval));
(yyval.arrayloop) = new Uc_arrayloop_statement(var, (yyvsp[(4) - (4)].var));
}
break;
case 75:
#line 420 "ucparse.yy"
{ function->push_scope(); }
 
case 76:
 
/* Line 1455 of yacc.c */
#line 421 "ucparse.yy"
{ function->push_scope(); }
break;
case 76:
#line 425 "ucparse.yy"
{ yyval.stmt = new Uc_call_statement(yyvsp[-1].funcall); }
 
case 77:
 
/* Line 1455 of yacc.c */
#line 426 "ucparse.yy"
{ (yyval.stmt) = new Uc_call_statement((yyvsp[(1) - (2)].funcall)); }
break;
case 77:
#line 431 "ucparse.yy"
{
 
case 78:
 
/* Line 1455 of yacc.c */
#line 432 "ucparse.yy"
{
Uc_block_statement *stmts = new Uc_block_statement();
/* Set up 'show' call. */
stmts->add(new Uc_call_statement(
new Uc_call_expression(Uc_function::get_show_face(),
new Uc_array_expression(yyvsp[-6].expr, new Uc_int_expression(0)),
new Uc_array_expression((yyvsp[(1) - (7)].expr), new Uc_int_expression(0)),
function)));
stmts->add(new Uc_say_statement(yyvsp[-2].exprlist));
yyval.stmt = stmts;
stmts->add(new Uc_say_statement((yyvsp[(5) - (7)].exprlist)));
(yyval.stmt) = stmts;
}
break;
case 78:
#line 442 "ucparse.yy"
{
yyval.stmt = new Uc_call_statement(
 
case 79:
 
/* Line 1455 of yacc.c */
#line 443 "ucparse.yy"
{
(yyval.stmt) = new Uc_call_statement(
new Uc_call_expression(Uc_function::get_remove_face(),
new Uc_array_expression(yyvsp[-5].expr), function));
new Uc_array_expression((yyvsp[(1) - (6)].expr)), function));
}
break;
case 79:
#line 451 "ucparse.yy"
{ yyval.stmt = new Uc_return_statement(yyvsp[-1].expr); }
 
case 80:
 
/* Line 1455 of yacc.c */
#line 452 "ucparse.yy"
{ (yyval.stmt) = new Uc_return_statement((yyvsp[(2) - (3)].expr)); }
break;
case 80:
#line 453 "ucparse.yy"
{ yyval.stmt = new Uc_return_statement(); }
 
case 81:
 
/* Line 1455 of yacc.c */
#line 454 "ucparse.yy"
{ (yyval.stmt) = new Uc_return_statement(); }
break;
case 81:
#line 458 "ucparse.yy"
{ yyval.stmt = new Uc_converse_statement(yyvsp[0].stmt); }
 
case 82:
 
/* Line 1455 of yacc.c */
#line 459 "ucparse.yy"
{ (yyval.stmt) = new Uc_converse_statement((yyvsp[(2) - (2)].stmt)); }
break;
case 82:
#line 463 "ucparse.yy"
{ yyval.stmt = new Uc_converse2_statement(yyvsp[-4].expr, yyvsp[-1].block); }
 
case 83:
 
/* Line 1455 of yacc.c */
#line 464 "ucparse.yy"
{ (yyval.stmt) = new Uc_converse2_statement((yyvsp[(3) - (7)].expr), (yyvsp[(6) - (7)].block)); }
break;
case 83:
#line 468 "ucparse.yy"
{
if (yyvsp[0].stmt)
yyval.block->add(yyvsp[0].stmt);
 
case 84:
 
/* Line 1455 of yacc.c */
#line 469 "ucparse.yy"
{
if ((yyvsp[(2) - (2)].stmt))
(yyval.block)->add((yyvsp[(2) - (2)].stmt));
}
break;
case 84:
#line 473 "ucparse.yy"
{ yyval.block = new Uc_block_statement(); }
 
case 85:
 
/* Line 1455 of yacc.c */
#line 474 "ucparse.yy"
{ (yyval.block) = new Uc_block_statement(); }
break;
case 85:
#line 478 "ucparse.yy"
{
yyval.stmt = new Uc_converse_case_statement(function->add_string(yyvsp[-3].strval),
(yyvsp[-2].intval ? true : false), yyvsp[0].block);
 
case 86:
 
/* Line 1455 of yacc.c */
#line 479 "ucparse.yy"
{
(yyval.stmt) = new Uc_converse_case_statement(function->add_string((yyvsp[(2) - (5)].strval)),
((yyvsp[(3) - (5)].intval) ? true : false), (yyvsp[(5) - (5)].block));
}
break;
case 86:
#line 486 "ucparse.yy"
{ yyval.intval = 1; }
 
case 87:
 
/* Line 1455 of yacc.c */
#line 487 "ucparse.yy"
{ (yyval.intval) = 1; }
break;
case 87:
#line 488 "ucparse.yy"
{ yyval.intval = 0; }
 
case 88:
 
/* Line 1455 of yacc.c */
#line 489 "ucparse.yy"
{ (yyval.intval) = 0; }
break;
case 88:
#line 493 "ucparse.yy"
{
 
case 89:
 
/* Line 1455 of yacc.c */
#line 494 "ucparse.yy"
{
Uc_array_expression *parms = new Uc_array_expression();
parms->add(yyvsp[-2].expr); // Itemref.
parms->add(yyvsp[0].expr); // Script.
if (yyvsp[-1].expr) // Delay?
parms->add(yyvsp[-1].expr);
parms->add((yyvsp[(2) - (4)].expr)); // Itemref.
parms->add((yyvsp[(4) - (4)].expr)); // Script.
if ((yyvsp[(3) - (4)].expr)) // Delay?
parms->add((yyvsp[(3) - (4)].expr));
// Get the script intrinsic.
Uc_symbol *sym = Uc_function::get_intrinsic(yyvsp[-1].expr ? 2 : 1);
Uc_symbol *sym = Uc_function::get_intrinsic((yyvsp[(3) - (4)].expr) ? 2 : 1);
Uc_call_expression *fcall =
new Uc_call_expression(sym, parms, function);
yyval.stmt = new Uc_call_statement(fcall);
(yyval.stmt) = new Uc_call_statement(fcall);
}
break;
case 90:
#line 513 "ucparse.yy"
{ yyval.exprlist->concat(yyvsp[0].expr); }
 
case 91:
 
/* Line 1455 of yacc.c */
#line 514 "ucparse.yy"
{ (yyval.exprlist)->concat((yyvsp[(2) - (2)].expr)); }
break;
case 91:
#line 515 "ucparse.yy"
{
yyval.exprlist = new Uc_array_expression();
yyval.exprlist->concat(yyvsp[0].expr);
 
case 92:
 
/* Line 1455 of yacc.c */
#line 516 "ucparse.yy"
{
(yyval.exprlist) = new Uc_array_expression();
(yyval.exprlist)->concat((yyvsp[(1) - (1)].expr));
}
break;
case 92:
#line 523 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::cont); }
 
case 93:
 
/* Line 1455 of yacc.c */
#line 524 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::cont); }
break;
case 93:
#line 525 "ucparse.yy"
{
 
case 94:
 
/* Line 1455 of yacc.c */
#line 526 "ucparse.yy"
{
Uc_array_expression *result = new Uc_array_expression();
result->concat(yyvsp[-1].expr); // Start with cmnds. to repeat.
result->concat((yyvsp[(3) - (4)].expr)); // Start with cmnds. to repeat.
int sz = result->get_exprs().size();
result->add(new Uc_int_expression(Ucscript::repeat));
// Then -offset to start.
result->add(new Uc_int_expression(-sz));
result->add(yyvsp[-2].expr); // Then #times to repeat.
yyval.expr = result;
result->add((yyvsp[(2) - (4)].expr)); // Then #times to repeat.
(yyval.expr) = result;
}
break;
case 94:
#line 537 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::nop); }
 
case 95:
 
/* Line 1455 of yacc.c */
#line 538 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::nop); }
break;
case 95:
#line 539 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::dont_halt); }
 
case 96:
 
/* Line 1455 of yacc.c */
#line 540 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::dont_halt); }
break;
case 96:
#line 541 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::delay_ticks, yyvsp[-1].expr); }
 
case 97:
 
/* Line 1455 of yacc.c */
#line 542 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::delay_ticks, (yyvsp[(2) - (3)].expr)); }
break;
case 97:
#line 543 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::delay_hours, yyvsp[-2].expr); }
 
case 98:
 
/* Line 1455 of yacc.c */
#line 544 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::delay_hours, (yyvsp[(2) - (4)].expr)); }
break;
case 98:
#line 545 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::remove); }
 
case 99:
 
/* Line 1455 of yacc.c */
#line 546 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::remove); }
break;
case 99:
#line 547 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::rise); }
 
case 100:
 
/* Line 1455 of yacc.c */
#line 548 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::rise); }
break;
case 100:
#line 549 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::descend); }
 
case 101:
 
/* Line 1455 of yacc.c */
#line 550 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::descend); }
break;
case 101:
#line 551 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::frame, yyvsp[-1].expr); }
 
case 102:
 
/* Line 1455 of yacc.c */
#line 552 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::frame, (yyvsp[(2) - (3)].expr)); }
break;
case 102:
#line 553 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(0x61 + (yyvsp[-1].intval & 15)); }
 
case 103:
 
/* Line 1455 of yacc.c */
#line 554 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(0x61 + ((yyvsp[(3) - (4)].intval) & 15)); }
break;
case 103:
#line 555 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::egg); }
 
case 104:
 
/* Line 1455 of yacc.c */
#line 556 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::egg); }
break;
case 104:
#line 557 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::next_frame_max); }
 
case 105:
 
/* Line 1455 of yacc.c */
#line 558 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::next_frame_max); }
break;
case 105:
#line 559 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::next_frame); }
 
case 106:
 
/* Line 1455 of yacc.c */
#line 560 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::next_frame); }
break;
case 106:
#line 561 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::prev_frame_min); }
 
case 107:
 
/* Line 1455 of yacc.c */
#line 562 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::prev_frame_min); }
break;
case 107:
#line 563 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::prev_frame); }
 
case 108:
 
/* Line 1455 of yacc.c */
#line 564 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::prev_frame); }
break;
case 108:
#line 565 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::say, yyvsp[-1].expr); }
 
case 109:
 
/* Line 1455 of yacc.c */
#line 566 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::say, (yyvsp[(2) - (3)].expr)); }
break;
case 109:
#line 567 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::step, yyvsp[-1].expr); }
 
case 110:
 
/* Line 1455 of yacc.c */
#line 568 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::step, (yyvsp[(2) - (3)].expr)); }
break;
case 110:
#line 569 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(Ucscript::step_n + yyvsp[-1].intval); }
 
case 111:
 
/* Line 1455 of yacc.c */
#line 570 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression(Ucscript::step_n + (yyvsp[(2) - (3)].intval)); }
break;
case 111:
#line 571 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::music, yyvsp[-1].expr); }
 
case 112:
 
/* Line 1455 of yacc.c */
#line 572 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::music, (yyvsp[(2) - (3)].expr)); }
break;
case 112:
#line 573 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::usecode, yyvsp[-1].expr); }
 
case 113:
 
/* Line 1455 of yacc.c */
#line 574 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::usecode, (yyvsp[(2) - (3)].expr)); }
break;
case 113:
#line 575 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::usecode2, yyvsp[-3].expr,
new Uc_int_expression(yyvsp[-1].intval)); }
 
case 114:
 
/* Line 1455 of yacc.c */
#line 576 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::usecode2, (yyvsp[(2) - (5)].expr),
new Uc_int_expression((yyvsp[(4) - (5)].intval))); }
break;
case 114:
#line 578 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::speech, yyvsp[-1].expr); }
 
case 115:
 
/* Line 1455 of yacc.c */
#line 579 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::speech, (yyvsp[(2) - (3)].expr)); }
break;
case 115:
#line 580 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::sfx, yyvsp[-1].expr); }
 
case 116:
 
/* Line 1455 of yacc.c */
#line 581 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::sfx, (yyvsp[(2) - (3)].expr)); }
break;
case 116:
#line 582 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::face_dir, yyvsp[-1].expr); }
 
case 117:
 
/* Line 1455 of yacc.c */
#line 583 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::face_dir, (yyvsp[(2) - (3)].expr)); }
break;
case 117:
#line 584 "ucparse.yy"
{ yyval.expr = Create_array(Ucscript::hit, yyvsp[-1].expr); }
 
case 118:
 
/* Line 1455 of yacc.c */
#line 585 "ucparse.yy"
{ (yyval.expr) = Create_array(Ucscript::hit, (yyvsp[(2) - (3)].expr)); }
break;
case 118:
#line 586 "ucparse.yy"
{ yyval.expr = yyvsp[-1].exprlist; }
 
case 119:
 
/* Line 1455 of yacc.c */
#line 587 "ucparse.yy"
{ (yyval.expr) = (yyvsp[(2) - (3)].exprlist); }
break;
case 119:
#line 591 "ucparse.yy"
{ yyval.intval = 0; }
 
case 120:
 
/* Line 1455 of yacc.c */
#line 592 "ucparse.yy"
{ (yyval.intval) = 0; }
break;
case 120:
#line 593 "ucparse.yy"
{ yyval.intval = 1; }
 
case 121:
 
/* Line 1455 of yacc.c */
#line 594 "ucparse.yy"
{ (yyval.intval) = 1; }
break;
case 121:
#line 595 "ucparse.yy"
{ yyval.intval = 2; }
 
case 122:
 
/* Line 1455 of yacc.c */
#line 596 "ucparse.yy"
{ (yyval.intval) = 2; }
break;
case 122:
#line 597 "ucparse.yy"
{ yyval.intval = 3; }
 
case 123:
 
/* Line 1455 of yacc.c */
#line 598 "ucparse.yy"
{ (yyval.intval) = 3; }
break;
case 123:
#line 599 "ucparse.yy"
{ yyval.intval = 4; }
 
case 124:
 
/* Line 1455 of yacc.c */
#line 600 "ucparse.yy"
{ (yyval.intval) = 4; }
break;
case 124:
#line 601 "ucparse.yy"
{ yyval.intval = 5; }
 
case 125:
 
/* Line 1455 of yacc.c */
#line 602 "ucparse.yy"
{ (yyval.intval) = 5; }
break;
case 125:
#line 603 "ucparse.yy"
{ yyval.intval = 6; }
 
case 126:
 
/* Line 1455 of yacc.c */
#line 604 "ucparse.yy"
{ (yyval.intval) = 6; }
break;
case 126:
#line 605 "ucparse.yy"
{ yyval.intval = 7; }
 
case 127:
 
/* Line 1455 of yacc.c */
#line 606 "ucparse.yy"
{ (yyval.intval) = 7; }
break;
case 128:
#line 614 "ucparse.yy"
{ yyval.expr = yyvsp[-1].expr; }
 
case 129:
 
/* Line 1455 of yacc.c */
#line 615 "ucparse.yy"
{ (yyval.expr) = (yyvsp[(2) - (3)].expr); }
break;
case 129:
#line 616 "ucparse.yy"
{ yyval.expr = 0; }
 
case 130:
 
/* Line 1455 of yacc.c */
#line 617 "ucparse.yy"
{ (yyval.expr) = 0; }
break;
case 130:
#line 621 "ucparse.yy"
{ yyval.stmt = new Uc_break_statement(); }
 
case 131:
 
/* Line 1455 of yacc.c */
#line 622 "ucparse.yy"
{ (yyval.stmt) = new Uc_break_statement(); }
break;
case 131:
#line 626 "ucparse.yy"
{
Uc_label *label = function->search_label(yyvsp[-1].strval);
 
case 132:
 
/* Line 1455 of yacc.c */
#line 627 "ucparse.yy"
{
Uc_label *label = function->search_label((yyvsp[(1) - (2)].strval));
if (label) {
char buf[150];
sprintf(buf, "duplicate label: '%s'", yyvsp[-1].strval);
sprintf(buf, "duplicate label: '%s'", (yyvsp[(1) - (2)].strval));
yyerror(buf);
yyval.stmt = 0;
(yyval.stmt) = 0;
}
else {
label = new Uc_label(yyvsp[-1].strval);
label = new Uc_label((yyvsp[(1) - (2)].strval));
function->add_label(label);
yyval.stmt = new Uc_label_statement(label);
(yyval.stmt) = new Uc_label_statement(label);
}
}
break;
case 132:
#line 644 "ucparse.yy"
{ yyval.stmt = new Uc_goto_statement(yyvsp[0].strval); }
 
case 133:
 
/* Line 1455 of yacc.c */
#line 645 "ucparse.yy"
{ (yyval.stmt) = new Uc_goto_statement((yyvsp[(2) - (2)].strval)); }
break;
case 133:
#line 649 "ucparse.yy"
{
yyval.stmt = new Uc_call_statement(
 
case 134:
 
/* Line 1455 of yacc.c */
#line 650 "ucparse.yy"
{
(yyval.stmt) = new Uc_call_statement(
new Uc_call_expression(Uc_function::get_add_answer(),
yyvsp[-2].exprlist, function));
(yyvsp[(3) - (5)].exprlist), function));
}
break;
case 134:
#line 655 "ucparse.yy"
{
yyval.stmt = new Uc_call_statement(new Uc_call_expression(
 
case 135:
 
/* Line 1455 of yacc.c */
#line 656 "ucparse.yy"
{
(yyval.stmt) = new Uc_call_statement(new Uc_call_expression(
Uc_function::get_remove_answer(),
yyvsp[-2].exprlist, function));
(yyvsp[(3) - (5)].exprlist), function));
}
break;
case 135:
#line 664 "ucparse.yy"
{ yyval.expr = yyvsp[0].expr; }
 
case 136:
 
/* Line 1455 of yacc.c */
#line 665 "ucparse.yy"
{ (yyval.expr) = (yyvsp[(1) - (1)].expr); }
break;
case 136:
#line 666 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_ADD, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 137:
 
/* Line 1455 of yacc.c */
#line 667 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_ADD, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 137:
#line 668 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_SUB, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 138:
 
/* Line 1455 of yacc.c */
#line 669 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_SUB, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 138:
#line 670 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_MUL, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 139:
 
/* Line 1455 of yacc.c */
#line 671 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_MUL, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 139:
#line 672 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_DIV, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 140:
 
/* Line 1455 of yacc.c */
#line 673 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_DIV, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 140:
#line 674 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_MOD, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 141:
 
/* Line 1455 of yacc.c */
#line 675 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_MOD, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 141:
#line 676 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_CMPEQ, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 142:
 
/* Line 1455 of yacc.c */
#line 677 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_CMPEQ, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 142:
#line 678 "ucparse.yy"
{ yyval.expr = new Uc_response_expression(yyvsp[0].expr); }
 
case 143:
 
/* Line 1455 of yacc.c */
#line 679 "ucparse.yy"
{ (yyval.expr) = new Uc_response_expression((yyvsp[(3) - (3)].expr)); }
break;
case 143:
#line 680 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_CMPNE, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 144:
 
/* Line 1455 of yacc.c */
#line 681 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_CMPNE, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 144:
#line 682 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_CMPL, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 145:
 
/* Line 1455 of yacc.c */
#line 683 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_CMPL, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 145:
#line 684 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_CMPLE, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 146:
 
/* Line 1455 of yacc.c */
#line 685 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_CMPLE, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 146:
#line 686 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_CMPG, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 147:
 
/* Line 1455 of yacc.c */
#line 687 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_CMPG, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 147:
#line 688 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_CMPGE, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 148:
 
/* Line 1455 of yacc.c */
#line 689 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_CMPGE, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 148:
#line 690 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_AND, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 149:
 
/* Line 1455 of yacc.c */
#line 691 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_AND, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 149:
#line 692 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_OR, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 150:
 
/* Line 1455 of yacc.c */
#line 693 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_OR, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 150:
#line 694 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_IN, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 151:
 
/* Line 1455 of yacc.c */
#line 695 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_IN, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 151:
#line 696 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_ARRA, yyvsp[-2].expr, yyvsp[0].expr); }
 
case 152:
 
/* Line 1455 of yacc.c */
#line 697 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_ARRA, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); }
break;
case 152:
#line 698 "ucparse.yy"
{ yyval.expr = new Uc_binary_expression(UC_SUB,
new Uc_int_expression(0), yyvsp[0].expr); }
 
case 153:
 
/* Line 1455 of yacc.c */
#line 699 "ucparse.yy"
{ (yyval.expr) = new Uc_binary_expression(UC_SUB,
new Uc_int_expression(0), (yyvsp[(2) - (2)].expr)); }
break;
case 153:
#line 701 "ucparse.yy"
{ yyval.expr = new Uc_unary_expression(UC_NOT, yyvsp[0].expr); }
 
case 154:
 
/* Line 1455 of yacc.c */
#line 702 "ucparse.yy"
{ (yyval.expr) = new Uc_unary_expression(UC_NOT, (yyvsp[(2) - (2)].expr)); }
break;
case 154:
#line 703 "ucparse.yy"
{ yyval.expr = yyvsp[-1].exprlist; }
 
case 155:
 
/* Line 1455 of yacc.c */
#line 704 "ucparse.yy"
{ (yyval.expr) = (yyvsp[(2) - (3)].exprlist); }
break;
case 155:
#line 705 "ucparse.yy"
{ yyval.expr = new Uc_string_expression(function->add_string(yyvsp[0].strval)); }
 
case 156:
 
/* Line 1455 of yacc.c */
#line 706 "ucparse.yy"
{ (yyval.expr) = new Uc_string_expression(function->add_string((yyvsp[(1) - (1)].strval))); }
break;
case 156:
#line 707 "ucparse.yy"
{ yyval.expr = new Uc_string_prefix_expression(function, yyvsp[0].strval); }
 
case 157:
 
/* Line 1455 of yacc.c */
#line 708 "ucparse.yy"
{ (yyval.expr) = new Uc_string_prefix_expression(function, (yyvsp[(1) - (1)].strval)); }
break;
case 158:
#line 713 "ucparse.yy"
{ yyval.exprlist = new Uc_array_expression(); }
 
case 159:
 
/* Line 1455 of yacc.c */
#line 714 "ucparse.yy"
{ (yyval.exprlist) = new Uc_array_expression(); }
break;
case 159:
#line 718 "ucparse.yy"
{ yyval.exprlist->add(yyvsp[0].expr); }
 
case 160:
 
/* Line 1455 of yacc.c */
#line 719 "ucparse.yy"
{ (yyval.exprlist)->add((yyvsp[(3) - (3)].expr)); }
break;
case 160:
#line 720 "ucparse.yy"
{
yyval.exprlist = new Uc_array_expression();
yyval.exprlist->add(yyvsp[0].expr);
 
case 161:
 
/* Line 1455 of yacc.c */
#line 721 "ucparse.yy"
{
(yyval.exprlist) = new Uc_array_expression();
(yyval.exprlist)->add((yyvsp[(1) - (1)].expr));
}
break;
case 161:
#line 728 "ucparse.yy"
{ yyval.expr = new Uc_int_expression(yyvsp[0].intval); }
 
case 162:
 
/* Line 1455 of yacc.c */
#line 729 "ucparse.yy"
{ (yyval.expr) = new Uc_int_expression((yyvsp[(1) - (1)].intval)); }
break;
case 162:
#line 730 "ucparse.yy"
{ yyval.expr = yyvsp[0].expr; }
 
case 163:
 
/* Line 1455 of yacc.c */
#line 731 "ucparse.yy"
{ (yyval.expr) = (yyvsp[(1) - (1)].expr); }
break;
case 163:
#line 732 "ucparse.yy"
{ yyval.expr = new Uc_arrayelem_expression(yyvsp[-3].var, yyvsp[-1].expr); }
 
case 164:
 
/* Line 1455 of yacc.c */
#line 733 "ucparse.yy"
{ (yyval.expr) = new Uc_arrayelem_expression((yyvsp[(1) - (4)].var), (yyvsp[(3) - (4)].expr)); }
break;
case 164:
#line 734 "ucparse.yy"
{ yyval.expr = new Uc_flag_expression(yyvsp[-1].intval); }
 
case 165:
 
/* Line 1455 of yacc.c */
#line 735 "ucparse.yy"
{ (yyval.expr) = new Uc_flag_expression((yyvsp[(3) - (4)].intval)); }
break;
case 165:
#line 736 "ucparse.yy"
{ yyval.expr = yyvsp[0].funcall; }
 
case 166:
 
/* Line 1455 of yacc.c */
#line 737 "ucparse.yy"
{ (yyval.expr) = (yyvsp[(1) - (1)].funcall); }
break;
case 166:
#line 738 "ucparse.yy"
{ yyval.expr = new Uc_bool_expression(true); }
 
case 167:
 
/* Line 1455 of yacc.c */
#line 739 "ucparse.yy"
{ (yyval.expr) = new Uc_bool_expression(true); }
break;
case 167:
#line 740 "ucparse.yy"
{ yyval.expr = new Uc_bool_expression(false); }
 
case 168:
 
/* Line 1455 of yacc.c */
#line 741 "ucparse.yy"
{ (yyval.expr) = new Uc_bool_expression(false); }
break;
case 168:
#line 742 "ucparse.yy"
{ yyval.expr = new Uc_event_expression(); }
 
case 169:
 
/* Line 1455 of yacc.c */
#line 743 "ucparse.yy"
{ (yyval.expr) = new Uc_event_expression(); }
break;
case 169:
#line 744 "ucparse.yy"
{ yyval.expr = new Uc_item_expression(); }
 
case 170:
 
/* Line 1455 of yacc.c */
#line 745 "ucparse.yy"
{ (yyval.expr) = new Uc_item_expression(); }
break;
case 170:
#line 746 "ucparse.yy"
{ yyval.expr = yyvsp[-1].expr; }
 
case 171:
 
/* Line 1455 of yacc.c */
#line 747 "ucparse.yy"
{ (yyval.expr) = (yyvsp[(2) - (3)].expr); }
break;
case 173:
#line 756 "ucparse.yy"
{
yyvsp[0].funcall->set_itemref(yyvsp[-2].expr);
yyval.funcall = yyvsp[0].funcall;
 
case 174:
 
/* Line 1455 of yacc.c */
#line 757 "ucparse.yy"
{
(yyvsp[(3) - (3)].funcall)->set_itemref((yyvsp[(1) - (3)].expr));
(yyval.funcall) = (yyvsp[(3) - (3)].funcall);
}
break;
case 176:
#line 769 "ucparse.yy"
{
Uc_symbol *sym = function->search_up(yyvsp[-4].strval);
 
case 177:
 
/* Line 1455 of yacc.c */
#line 770 "ucparse.yy"
{
Uc_symbol *sym = function->search_up((yyvsp[(1) - (5)].strval));
if (!sym)
{
char buf[150];
sprintf(buf, "'%s' not declared", yyvsp[-4].strval);
sprintf(buf, "'%s' not declared", (yyvsp[(1) - (5)].strval));
yyerror(buf);
yyval.funcall = 0;
(yyval.funcall) = 0;
}
else
yyval.funcall = new Uc_call_expression(sym, yyvsp[-1].exprlist, function,
yyvsp[-3].intval ? true : false);
(yyval.funcall) = new Uc_call_expression(sym, (yyvsp[(4) - (5)].exprlist), function,
(yyvsp[(2) - (5)].intval) ? true : false);
}
break;
case 177:
#line 786 "ucparse.yy"
{ yyval.intval = 1; }
 
case 178:
 
/* Line 1455 of yacc.c */
#line 787 "ucparse.yy"
{ (yyval.intval) = 1; }
break;
case 178:
#line 788 "ucparse.yy"
{ yyval.intval = 0; }
 
case 179:
 
/* Line 1455 of yacc.c */
#line 789 "ucparse.yy"
{ (yyval.intval) = 0; }
break;
case 180:
#line 794 "ucparse.yy"
{ yyval.strvec = new std::vector<char *>; }
 
case 181:
 
/* Line 1455 of yacc.c */
#line 795 "ucparse.yy"
{ (yyval.strvec) = new std::vector<char *>; }
break;
case 181:
#line 799 "ucparse.yy"
{ yyvsp[-3].strvec->push_back(yyvsp[0].strval); }
 
case 182:
 
/* Line 1455 of yacc.c */
#line 800 "ucparse.yy"
{ (yyvsp[(1) - (4)].strvec)->push_back((yyvsp[(4) - (4)].strval)); }
break;
case 182:
#line 801 "ucparse.yy"
{
yyval.strvec = new std::vector<char *>;
yyval.strvec->push_back(yyvsp[0].strval);
 
case 183:
 
/* Line 1455 of yacc.c */
#line 802 "ucparse.yy"
{
(yyval.strvec) = new std::vector<char *>;
(yyval.strvec)->push_back((yyvsp[(2) - (2)].strval));
}
break;
case 184:
#line 810 "ucparse.yy"
{
 
case 185:
 
/* Line 1455 of yacc.c */
#line 811 "ucparse.yy"
{
Uc_const_int_symbol *sym =
dynamic_cast<Uc_const_int_symbol *>(yyvsp[0].sym);
dynamic_cast<Uc_const_int_symbol *>((yyvsp[(1) - (1)].sym));
if (!sym)
{
char buf[150];
sprintf(buf, "'%s' is not a const int");
yyerror(buf);
yyval.intval = 0;
(yyval.intval) = 0;
}
else
yyval.intval = sym->get_value();
(yyval.intval) = sym->get_value();
}
break;
case 187:
#line 832 "ucparse.yy"
{
yyval.expr = yyvsp[0].sym->create_expression();
if (!yyval.expr)
 
case 188:
 
/* Line 1455 of yacc.c */
#line 833 "ucparse.yy"
{
(yyval.expr) = (yyvsp[(1) - (1)].sym)->create_expression();
if (!(yyval.expr))
{
char buf[150];
sprintf(buf, "Can't use '%s' here", yyvsp[0].sym->get_name());
sprintf(buf, "Can't use '%s' here", (yyvsp[(1) - (1)].sym)->get_name());
yyerror(buf);
yyval.expr = new Uc_int_expression(0);
(yyval.expr) = new Uc_int_expression(0);
}
}
break;
case 188:
#line 846 "ucparse.yy"
{
Uc_var_symbol *var = dynamic_cast<Uc_var_symbol *>(yyvsp[0].sym);
 
case 189:
 
/* Line 1455 of yacc.c */
#line 847 "ucparse.yy"
{
Uc_var_symbol *var = dynamic_cast<Uc_var_symbol *>((yyvsp[(1) - (1)].sym));
if (!var)
{
char buf[150];
sprintf(buf, "'%s' not a 'var'", yyvsp[0].sym);
sprintf(buf, "'%s' not a 'var'", (yyvsp[(1) - (1)].sym));
yyerror(buf);
sprintf(buf, "%s_needvar", yyvsp[0].sym->get_name());
sprintf(buf, "%s_needvar", (yyvsp[(1) - (1)].sym)->get_name());
var = function->add_symbol(buf);
}
yyval.var = var;
(yyval.var) = var;
}
break;
case 189:
#line 862 "ucparse.yy"
{
Uc_symbol *sym = function->search_up(yyvsp[0].strval);
 
case 190:
 
/* Line 1455 of yacc.c */
#line 863 "ucparse.yy"
{
Uc_symbol *sym = function->search_up((yyvsp[(1) - (1)].strval));
if (!sym)
{
char buf[150];
sprintf(buf, "'%s' not declared", yyvsp[0].strval);
sprintf(buf, "'%s' not declared", (yyvsp[(1) - (1)].strval));
yyerror(buf);
sym = function->add_symbol(yyvsp[0].strval);
sym = function->add_symbol((yyvsp[(1) - (1)].strval));
}
yyval.sym = sym;
(yyval.sym) = sym;
}
break;
}
 
#line 705 "/usr/share/bison/bison.simple"
 
yyvsp -= yylen;
yyssp -= yylen;
#if YYLSP_NEEDED
yylsp -= yylen;
#endif
 
#if YYDEBUG
if (yydebug)
{
short *yyssp1 = yyss - 1;
YYFPRINTF (stderr, "state stack now");
while (yyssp1 != yyssp)
YYFPRINTF (stderr, " %d", *++yyssp1);
YYFPRINTF (stderr, "\n");
/* Line 1455 of yacc.c */
#line 3272 "ucparse.cc"
default: break;
}
#endif
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
 
YYPOPSTACK (yylen);
yylen = 0;
YY_STACK_PRINT (yyss, yyssp);
 
*++yyvsp = yyval;
#if YYLSP_NEEDED
*++yylsp = yyloc;
#endif
 
/* Now `shift' the result of the reduction. Determine what state
that goes to, based on the state we popped back to and the rule
2281,11 → 3285,11
 
yyn = yyr1[yyn];
 
yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
yystate = yytable[yystate];
else
yystate = yydefgoto[yyn - YYNTBASE];
yystate = yydefgoto[yyn - YYNTOKENS];
 
goto yynewstate;
 
2298,155 → 3302,126
if (!yyerrstatus)
{
++yynerrs;
#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);
yymsg = (char *) YYSTACK_ALLOC (yyalloc);
if (yymsg)
yymsg_alloc = yyalloc;
else
{
yymsg = yymsgbuf;
yymsg_alloc = sizeof yymsgbuf;
}
}
 
#ifdef YYERROR_VERBOSE
yyn = yypact[yystate];
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
}
 
if (yyn > YYFLAG && yyn < YYLAST)
{
YYSIZE_T yysize = 0;
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)
yysize += yystrlen (yytname[yyx]) + 15, yycount++;
yysize += yystrlen ("parse error, unexpected ") + 1;
yysize += yystrlen (yytname[YYTRANSLATE (yychar)]);
yymsg = (char *) YYSTACK_ALLOC (yysize);
if (yymsg != 0)
{
char *yyp = yystpcpy (yymsg, "parse error, unexpected ");
yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]);
 
if (yycount < 5)
{
yycount = 0;
for (yyx = yyn < 0 ? -yyn : 0;
yyx < (int) (sizeof (yytname) / sizeof (char *));
yyx++)
if (yycheck[yyx + yyn] == yyx)
{
const char *yyq = ! yycount ? ", expecting " : " or ";
yyp = yystpcpy (yyp, yyq);
yyp = yystpcpy (yyp, yytname[yyx]);
yycount++;
}
}
yyerror (yymsg);
YYSTACK_FREE (yymsg);
}
else
yyerror ("parse error; also virtual memory exhausted");
}
else
#endif /* defined (YYERROR_VERBOSE) */
yyerror ("parse error");
}
goto yyerrlab1;
 
 
/*--------------------------------------------------.
| yyerrlab1 -- error raised explicitly by an action |
`--------------------------------------------------*/
yyerrlab1:
if (yyerrstatus == 3)
{
/* If just tried and failed to reuse lookahead token after an
error, discard it. */
 
/* return failure if at end of input */
if (yychar == YYEOF)
YYABORT;
YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
yychar, yytname[yychar1]));
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
token. */
goto yyerrlab1;
 
yyerrstatus = 3; /* Each real token shifted decrements this */
 
goto yyerrhandle;
/*---------------------------------------------------.
| 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;
 
/*-------------------------------------------------------------------.
| yyerrdefault -- current state does not do anything special for the |
| error token. |
`-------------------------------------------------------------------*/
yyerrdefault:
#if 0
/* This is wrong; only states that explicitly want error tokens
should shift them. */
/* 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;
 
/* If its default is to accept any token, ok. Otherwise pop it. */
yyn = yydefact[yystate];
if (yyn)
goto yydefault;
#endif
 
/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */
 
/*---------------------------------------------------------------.
| yyerrpop -- pop the current state because it cannot handle the |
| error token |
`---------------------------------------------------------------*/
yyerrpop:
if (yyssp == yyss)
YYABORT;
yyvsp--;
yystate = *--yyssp;
#if YYLSP_NEEDED
yylsp--;
#endif
 
#if YYDEBUG
if (yydebug)
for (;;)
{
short *yyssp1 = yyss - 1;
YYFPRINTF (stderr, "Error: state stack now");
while (yyssp1 != yyssp)
YYFPRINTF (stderr, " %d", *++yyssp1);
YYFPRINTF (stderr, "\n");
}
#endif
yyn = yypact[yystate];
if (yyn != YYPACT_NINF)
{
yyn += YYTERROR;
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
{
yyn = yytable[yyn];
if (0 < yyn)
break;
}
}
 
/*--------------.
| yyerrhandle. |
`--------------*/
yyerrhandle:
yyn = yypact[yystate];
if (yyn == YYFLAG)
goto yyerrdefault;
/* Pop the current state because it cannot handle the error token. */
if (yyssp == yyss)
YYABORT;
 
yyn += YYTERROR;
if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
goto yyerrdefault;
 
yyn = yytable[yyn];
if (yyn < 0)
{
if (yyn == YYFLAG)
goto yyerrpop;
yyn = -yyn;
goto yyreduce;
yydestruct ("Error: popping",
yystos[yystate], yyvsp);
YYPOPSTACK (1);
yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp);
}
else if (yyn == 0)
goto yyerrpop;
 
if (yyn == YYFINAL)
YYACCEPT;
*++yyvsp = yylval;
 
YYDPRINTF ((stderr, "Shifting error token, "));
 
*++yyvsp = yylval;
#if YYLSP_NEEDED
*++yylsp = yylloc;
#endif
/* Shift the error token. */
YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
 
yystate = yyn;
goto yynewstate;
2466,24 → 3441,48
yyresult = 1;
goto yyreturn;
 
/*---------------------------------------------.
| yyoverflowab -- 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 875 "ucparse.yy"
 
 
 
/* Line 1675 of yacc.c */
#line 876 "ucparse.yy"
 
 
/*
* Create an array with an integer as the first element.
*/
2512,3 → 3511,4
arr->add(e3);
return arr;
}
 
src/usecode/compiler/ucparse.h
1,9 → 1,208
#ifndef BISON_Y_TAB_H
# define BISON_Y_TAB_H
 
#ifndef YYSTYPE
typedef union
{
/* A Bison parser, made by GNU Bison 2.4.1. */
 
/* Skeleton interface 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 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, see <http://www.gnu.org/licenses/>. */
 
/* 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. */
 
 
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
IF = 258,
ELSE = 259,
RETURN = 260,
WHILE = 261,
FOR = 262,
UCC_IN = 263,
WITH = 264,
TO = 265,
EXTERN = 266,
BREAK = 267,
GOTO = 268,
CASE = 269,
VAR = 270,
UCC_INT = 271,
UCC_CONST = 272,
STRING = 273,
ENUM = 274,
CONVERSE = 275,
SAY = 276,
MESSAGE = 277,
RESPONSE = 278,
EVENT = 279,
FLAG = 280,
ITEM = 281,
UCTRUE = 282,
UCFALSE = 283,
REMOVE = 284,
ADD = 285,
HIDE = 286,
SCRIPT = 287,
AFTER = 288,
TICKS = 289,
STATIC_ = 290,
ORIGINAL = 291,
CONTINUE = 292,
REPEAT = 293,
NOP = 294,
NOHALT = 295,
WAIT = 296,
RISE = 297,
DESCEND = 298,
FRAME = 299,
HATCH = 300,
NEXT = 301,
PREVIOUS = 302,
CYCLE = 303,
STEP = 304,
MUSIC = 305,
CALL = 306,
SPEECH = 307,
SFX = 308,
FACE = 309,
HIT = 310,
HOURS = 311,
ACTOR = 312,
NORTH = 313,
SOUTH = 314,
EAST = 315,
WEST = 316,
NE = 317,
NW = 318,
SE = 319,
SW = 320,
STRING_LITERAL = 321,
STRING_PREFIX = 322,
IDENTIFIER = 323,
INT_LITERAL = 324,
OR = 325,
AND = 326,
GTEQUALS = 327,
LTEQUALS = 328,
NEQUALS = 329,
EQUALS = 330,
NOT = 331,
UCC_POINTS = 332
};
#endif
/* Tokens. */
#define IF 258
#define ELSE 259
#define RETURN 260
#define WHILE 261
#define FOR 262
#define UCC_IN 263
#define WITH 264
#define TO 265
#define EXTERN 266
#define BREAK 267
#define GOTO 268
#define CASE 269
#define VAR 270
#define UCC_INT 271
#define UCC_CONST 272
#define STRING 273
#define ENUM 274
#define CONVERSE 275
#define SAY 276
#define MESSAGE 277
#define RESPONSE 278
#define EVENT 279
#define FLAG 280
#define ITEM 281
#define UCTRUE 282
#define UCFALSE 283
#define REMOVE 284
#define ADD 285
#define HIDE 286
#define SCRIPT 287
#define AFTER 288
#define TICKS 289
#define STATIC_ 290
#define ORIGINAL 291
#define CONTINUE 292
#define REPEAT 293
#define NOP 294
#define NOHALT 295
#define WAIT 296
#define RISE 297
#define DESCEND 298
#define FRAME 299
#define HATCH 300
#define NEXT 301
#define PREVIOUS 302
#define CYCLE 303
#define STEP 304
#define MUSIC 305
#define CALL 306
#define SPEECH 307
#define SFX 308
#define FACE 309
#define HIT 310
#define HOURS 311
#define ACTOR 312
#define NORTH 313
#define SOUTH 314
#define EAST 315
#define WEST 316
#define NE 317
#define NW 318
#define SE 319
#define SW 320
#define STRING_LITERAL 321
#define STRING_PREFIX 322
#define IDENTIFIER 323
#define INT_LITERAL 324
#define OR 325
#define AND 326
#define GTEQUALS 327
#define LTEQUALS 328
#define NEQUALS 329
#define EQUALS 330
#define NOT 331
#define UCC_POINTS 332
 
 
 
 
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
 
/* Line 1676 of yacc.c */
#line 63 "ucparse.yy"
 
class Uc_symbol *sym;
class Uc_var_symbol *var;
class Uc_expression *expr;
16,87 → 215,17
class Uc_array_expression *exprlist;
int intval;
char *strval;
} yystype;
# define YYSTYPE yystype
 
 
 
/* Line 1676 of yacc.c */
#line 223 "ucparse.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
# define IF 257
# define ELSE 258
# define RETURN 259
# define WHILE 260
# define FOR 261
# define UCC_IN 262
# define WITH 263
# define TO 264
# define EXTERN 265
# define BREAK 266
# define GOTO 267
# define CASE 268
# define VAR 269
# define UCC_INT 270
# define UCC_CONST 271
# define STRING 272
# define ENUM 273
# define CONVERSE 274
# define SAY 275
# define MESSAGE 276
# define RESPONSE 277
# define EVENT 278
# define FLAG 279
# define ITEM 280
# define UCTRUE 281
# define UCFALSE 282
# define REMOVE 283
# define ADD 284
# define HIDE 285
# define SCRIPT 286
# define AFTER 287
# define TICKS 288
# define STATIC_ 289
# define ORIGINAL 290
# define CONTINUE 291
# define REPEAT 292
# define NOP 293
# define NOHALT 294
# define WAIT 295
# define RISE 296
# define DESCEND 297
# define FRAME 298
# define HATCH 299
# define NEXT 300
# define PREVIOUS 301
# define CYCLE 302
# define STEP 303
# define MUSIC 304
# define CALL 305
# define SPEECH 306
# define SFX 307
# define FACE 308
# define HIT 309
# define HOURS 310
# define ACTOR 311
# define NORTH 312
# define SOUTH 313
# define EAST 314
# define WEST 315
# define NE 316
# define NW 317
# define SE 318
# define SW 319
# define STRING_LITERAL 320
# define STRING_PREFIX 321
# define IDENTIFIER 322
# define INT_LITERAL 323
# define AND 324
# define OR 325
# define EQUALS 326
# define NEQUALS 327
# define LTEQUALS 328
# define GTEQUALS 329
# define NOT 330
# define UCC_POINTS 331
 
 
extern YYSTYPE yylval;
 
#endif /* not BISON_Y_TAB_H */
 
src/usecode/compiler/ucparse.yy
31,6 → 31,7
#include <stdlib.h>
#include <string.h>
#include <vector>
#include <cstring>
 
#include "ucfun.h"
#include "ucexpr.h"