OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [gdb/] [objc-exp.c] - Diff between revs 330 and 342

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 330 Rev 342
Line 1... Line 1...
/* A Bison parser, made by GNU Bison 1.875c.  */
 
 
 
/* Skeleton parser for Yacc-like parsing with Bison,
/* A Bison parser, made by GNU Bison 2.4.1.  */
   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
 
 
 
   This program is free software; you can redistribute it and/or modify
/* Skeleton implementation for Bison's Yacc-like parsers in C
 
 
 
      Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
   Free Software Foundation, Inc.
 
 
 
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   the Free Software Foundation, either version 3 of the License, or
   any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
   Foundation, Inc., 59 Temple Place - Suite 330,
 
   Boston, MA 02111-1307, USA.  */
/* As a special exception, you may create a larger work that contains
 
   part or all of the Bison parser skeleton and distribute that work
/* As a special exception, when this file is copied by Bison into a
   under terms of your choice, so long as that work isn't itself a
   Bison output file, you may use that output file without restriction.
   parser generator using the skeleton or a modified version thereof
   This special exception was added by the Free Software Foundation
   as a parser skeleton.  Alternatively, if you modify or redistribute
   in version 1.24 of Bison.  */
   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.  */
 
 
/* Written by Richard Stallman by simplifying the original so called
/* C LALR(1) parser skeleton written by Richard Stallman, by
   ``semantic'' parser.  */
   simplifying the original so-called "semantic" parser.  */
 
 
/* All symbols defined below should begin with yy or YY, to avoid
/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   There are some unavoidable exceptions within include files to
Line 34... Line 43...
   USER NAME SPACE" below.  */
   USER NAME SPACE" below.  */
 
 
/* Identify Bison output.  */
/* Identify Bison output.  */
#define YYBISON 1
#define YYBISON 1
 
 
 
/* Bison version.  */
 
#define YYBISON_VERSION "2.4.1"
 
 
/* Skeleton name.  */
/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"
#define YYSKELETON_NAME "yacc.c"
 
 
/* Pure parsers.  */
/* Pure parsers.  */
#define YYPURE 0
#define YYPURE 0
 
 
/* Using locations.  */
/* Push parsers.  */
#define YYLSP_NEEDED 0
#define YYPUSH 0
 
 
 
/* Pull parsers.  */
 
#define YYPULL 1
 
 
 
/* Using locations.  */
/* Tokens.  */
#define YYLSP_NEEDED 0
#ifndef YYTOKENTYPE
 
# define YYTOKENTYPE
 
   /* Put the tokens into the symbol table, so that GDB and other debuggers
 
      know about them.  */
 
   enum yytokentype {
 
     INT = 258,
 
     FLOAT = 259,
 
     STRING = 260,
 
     NSSTRING = 261,
 
     SELECTOR = 262,
 
     NAME = 263,
 
     TYPENAME = 264,
 
     CLASSNAME = 265,
 
     NAME_OR_INT = 266,
 
     STRUCT = 267,
 
     CLASS = 268,
 
     UNION = 269,
 
     ENUM = 270,
 
     SIZEOF = 271,
 
     UNSIGNED = 272,
 
     COLONCOLON = 273,
 
     TEMPLATE = 274,
 
     ERROR = 275,
 
     SIGNED_KEYWORD = 276,
 
     LONG = 277,
 
     SHORT = 278,
 
     INT_KEYWORD = 279,
 
     CONST_KEYWORD = 280,
 
     VOLATILE_KEYWORD = 281,
 
     DOUBLE_KEYWORD = 282,
 
     VARIABLE = 283,
 
     ASSIGN_MODIFY = 284,
 
     ABOVE_COMMA = 285,
 
     OROR = 286,
 
     ANDAND = 287,
 
     NOTEQUAL = 288,
 
     EQUAL = 289,
 
     GEQ = 290,
 
     LEQ = 291,
 
     RSH = 292,
 
     LSH = 293,
 
     DECREMENT = 294,
 
     INCREMENT = 295,
 
     UNARY = 296,
 
     ARROW = 297,
 
     BLOCKNAME = 298
 
   };
 
#endif
 
#define INT 258
 
#define FLOAT 259
 
#define STRING 260
 
#define NSSTRING 261
 
#define SELECTOR 262
 
#define NAME 263
 
#define TYPENAME 264
 
#define CLASSNAME 265
 
#define NAME_OR_INT 266
 
#define STRUCT 267
 
#define CLASS 268
 
#define UNION 269
 
#define ENUM 270
 
#define SIZEOF 271
 
#define UNSIGNED 272
 
#define COLONCOLON 273
 
#define TEMPLATE 274
 
#define ERROR 275
 
#define SIGNED_KEYWORD 276
 
#define LONG 277
 
#define SHORT 278
 
#define INT_KEYWORD 279
 
#define CONST_KEYWORD 280
 
#define VOLATILE_KEYWORD 281
 
#define DOUBLE_KEYWORD 282
 
#define VARIABLE 283
 
#define ASSIGN_MODIFY 284
 
#define ABOVE_COMMA 285
 
#define OROR 286
 
#define ANDAND 287
 
#define NOTEQUAL 288
 
#define EQUAL 289
 
#define GEQ 290
 
#define LEQ 291
 
#define RSH 292
 
#define LSH 293
 
#define DECREMENT 294
 
#define INCREMENT 295
 
#define UNARY 296
 
#define ARROW 297
 
#define BLOCKNAME 298
 
 
 
 
 
 
 
 
 
/* Copy the first part of user declarations.  */
/* Copy the first part of user declarations.  */
 
 
 
/* Line 189 of yacc.c  */
#line 35 "objc-exp.y"
#line 35 "objc-exp.y"
 
 
 
 
#include "defs.h"
#include "defs.h"
#include "gdb_string.h"
#include "gdb_string.h"
Line 227... Line 153...
void
void
yyerror (char *);
yyerror (char *);
 
 
 
 
 
 
 
/* Line 189 of yacc.c  */
 
#line 160 "objc-exp.c.tmp"
 
 
/* Enabling traces.  */
/* Enabling traces.  */
#ifndef YYDEBUG
#ifndef YYDEBUG
# define YYDEBUG 0
# define YYDEBUG 0
#endif
#endif
 
 
Line 240... Line 169...
# define YYERROR_VERBOSE 1
# define YYERROR_VERBOSE 1
#else
#else
# define YYERROR_VERBOSE 0
# define YYERROR_VERBOSE 0
#endif
#endif
 
 
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
/* 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 {
 
     INT = 258,
 
     FLOAT = 259,
 
     STRING = 260,
 
     NSSTRING = 261,
 
     SELECTOR = 262,
 
     NAME = 263,
 
     TYPENAME = 264,
 
     CLASSNAME = 265,
 
     NAME_OR_INT = 266,
 
     STRUCT = 267,
 
     CLASS = 268,
 
     UNION = 269,
 
     ENUM = 270,
 
     SIZEOF = 271,
 
     UNSIGNED = 272,
 
     COLONCOLON = 273,
 
     TEMPLATE = 274,
 
     ERROR = 275,
 
     SIGNED_KEYWORD = 276,
 
     LONG = 277,
 
     SHORT = 278,
 
     INT_KEYWORD = 279,
 
     CONST_KEYWORD = 280,
 
     VOLATILE_KEYWORD = 281,
 
     DOUBLE_KEYWORD = 282,
 
     VARIABLE = 283,
 
     ASSIGN_MODIFY = 284,
 
     ABOVE_COMMA = 285,
 
     OROR = 286,
 
     ANDAND = 287,
 
     NOTEQUAL = 288,
 
     EQUAL = 289,
 
     GEQ = 290,
 
     LEQ = 291,
 
     RSH = 292,
 
     LSH = 293,
 
     DECREMENT = 294,
 
     INCREMENT = 295,
 
     UNARY = 296,
 
     ARROW = 297,
 
     BLOCKNAME = 298
 
   };
 
#endif
 
/* Tokens.  */
 
#define INT 258
 
#define FLOAT 259
 
#define STRING 260
 
#define NSSTRING 261
 
#define SELECTOR 262
 
#define NAME 263
 
#define TYPENAME 264
 
#define CLASSNAME 265
 
#define NAME_OR_INT 266
 
#define STRUCT 267
 
#define CLASS 268
 
#define UNION 269
 
#define ENUM 270
 
#define SIZEOF 271
 
#define UNSIGNED 272
 
#define COLONCOLON 273
 
#define TEMPLATE 274
 
#define ERROR 275
 
#define SIGNED_KEYWORD 276
 
#define LONG 277
 
#define SHORT 278
 
#define INT_KEYWORD 279
 
#define CONST_KEYWORD 280
 
#define VOLATILE_KEYWORD 281
 
#define DOUBLE_KEYWORD 282
 
#define VARIABLE 283
 
#define ASSIGN_MODIFY 284
 
#define ABOVE_COMMA 285
 
#define OROR 286
 
#define ANDAND 287
 
#define NOTEQUAL 288
 
#define EQUAL 289
 
#define GEQ 290
 
#define LEQ 291
 
#define RSH 292
 
#define LSH 293
 
#define DECREMENT 294
 
#define INCREMENT 295
 
#define UNARY 296
 
#define ARROW 297
 
#define BLOCKNAME 298
 
 
 
 
 
 
 
 
 
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
 
typedef union YYSTYPE
 
{
 
 
 
/* Line 214 of yacc.c  */
#line 126 "objc-exp.y"
#line 126 "objc-exp.y"
typedef union YYSTYPE {
 
    LONGEST lval;
    LONGEST lval;
    struct {
    struct {
      LONGEST val;
      LONGEST val;
      struct type *type;
      struct type *type;
    } typed_val_int;
    } typed_val_int;
Line 265... Line 299...
    struct internalvar *ivar;
    struct internalvar *ivar;
    struct objc_class_str class;
    struct objc_class_str class;
 
 
    struct type **tvec;
    struct type **tvec;
    int *ivec;
    int *ivec;
 
 
 
 
 
 
 
/* Line 214 of yacc.c  */
 
#line 309 "objc-exp.c.tmp"
  } YYSTYPE;
  } YYSTYPE;
/* Line 191 of yacc.c.  */
# define YYSTYPE_IS_TRIVIAL 1
#line 273 "objc-exp.c.tmp"
 
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
 
#endif
#endif
 
 
 
 
 
 
/* Copy the second part of user declarations.  */
/* Copy the second part of user declarations.  */
 
 
 
/* Line 264 of yacc.c  */
#line 151 "objc-exp.y"
#line 151 "objc-exp.y"
 
 
/* YYSTYPE gets defined by %union.  */
/* YYSTYPE gets defined by %union.  */
static int
static int
parse_number (char *, int, int, YYSTYPE *);
parse_number (char *, int, int, YYSTYPE *);
 
 
 
 
/* Line 214 of yacc.c.  */
/* Line 264 of yacc.c  */
#line 290 "objc-exp.c.tmp"
#line 328 "objc-exp.c.tmp"
 
 
#if ! defined (yyoverflow) || YYERROR_VERBOSE
#ifdef short
 
# undef short
 
#endif
 
 
# ifndef YYFREE
#ifdef YYTYPE_UINT8
#  define YYFREE xfree
typedef YYTYPE_UINT8 yytype_uint8;
 
#else
 
typedef unsigned char yytype_uint8;
# endif
# endif
# ifndef YYMALLOC
 
#  define YYMALLOC xmalloc
#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
# endif
 
 
/* The parser invokes alloca or xmalloc; define the necessary symbols.  */
#ifdef YYTYPE_UINT16
 
typedef YYTYPE_UINT16 yytype_uint16;
 
#else
 
typedef unsigned short int yytype_uint16;
 
#endif
 
 
# ifdef YYSTACK_USE_ALLOCA
#ifdef YYTYPE_INT16
#  if YYSTACK_USE_ALLOCA
typedef YYTYPE_INT16 yytype_int16;
#   define YYSTACK_ALLOC alloca
#else
 
typedef short int yytype_int16;
#  endif
#  endif
 
 
 
#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
# else
#  if defined (alloca) || defined (_ALLOCA_H)
#  define YYSIZE_T unsigned int
#   define YYSTACK_ALLOC alloca
# 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
#  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 xmalloc; define the necessary symbols.  */
 
 
 
# ifdef YYSTACK_USE_ALLOCA
 
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#    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
 
#    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
#  endif
# endif
# endif
 
 
# ifdef YYSTACK_ALLOC
# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning. */
   /* Pacify GCC's `empty if-body' warning. */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
# else
#  ifndef YYSTACK_ALLOC_MAXIMUM
#  if defined (__STDC__) || defined (__cplusplus)
    /* The OS might guarantee only one guard page at the bottom of the stack,
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
       and a page size can be as small as 4096 bytes.  So we cannot safely
#   define YYSIZE_T size_t
       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
#  endif
 
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  define YYSTACK_FREE YYFREE
 
#  ifndef YYSTACK_ALLOC_MAXIMUM
 
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
 
#  endif
 
#  if (defined __cplusplus && ! defined _STDLIB_H \
 
       && ! ((defined YYMALLOC || defined xmalloc) \
 
             && (defined YYFREE || defined xfree)))
 
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
 
#   ifndef _STDLIB_H
 
#    define _STDLIB_H 1
 
#   endif
# endif
# endif
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
#  ifndef YYMALLOC
 
#   define YYMALLOC xmalloc
 
#   if ! defined xmalloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
 
     || defined __cplusplus || defined _MSC_VER)
 
void *xmalloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
 
#   endif
 
#  endif
 
#  ifndef YYFREE
 
#   define YYFREE xfree
 
#   if ! defined xfree && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
 
     || defined __cplusplus || defined _MSC_VER)
 
void xfree (void *); /* INFRINGES ON USER NAME SPACE */
 
#   endif
 
#  endif
 
# endif
 
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
 
 
 
 
#if (! defined (yyoverflow) \
#if (! defined yyoverflow \
     && (! defined (__cplusplus) \
     && (! defined __cplusplus \
         || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
         || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
 
 
/* A type that is properly aligned for any stack member.  */
/* A type that is properly aligned for any stack member.  */
union yyalloc
union yyalloc
{
{
  short yyss;
  yytype_int16 yyss_alloc;
  YYSTYPE yyvs;
  YYSTYPE yyvs_alloc;
  };
  };
 
 
/* The size of the maximum gap between one aligned stack and the next.  */
/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
 
 
/* The size of an array large to enough to hold all stacks, each with
/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
   N elements.  */
# define YYSTACK_BYTES(N) \
# define YYSTACK_BYTES(N) \
     ((N) * (sizeof (short) + sizeof (YYSTYPE))                         \
     ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)
      + YYSTACK_GAP_MAXIMUM)
 
 
/* Copy COUNT objects from FROM to TO.  The source and destination do
/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
   not overlap.  */
# ifndef YYCOPY
# ifndef YYCOPY
#  if defined (__GNUC__) && 1 < __GNUC__
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#  else
#   define YYCOPY(To, From, Count)              \
#   define YYCOPY(To, From, Count)              \
      do                                        \
      do                                        \
        {                                       \
        {                                       \
          register YYSIZE_T yyi;                \
          YYSIZE_T yyi;                         \
          for (yyi = 0; yyi < (Count); yyi++)    \
          for (yyi = 0; yyi < (Count); yyi++)    \
            (To)[yyi] = (From)[yyi];            \
            (To)[yyi] = (From)[yyi];            \
        }                                       \
        }                                       \
      while (0)
      while (YYID (0))
#  endif
#  endif
# endif
# endif
 
 
/* Relocate STACK from its old location to the new one.  The
/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
   stack.  */
# define YYSTACK_RELOCATE(Stack)                                        \
# define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
    do                                                                  \
    do                                                                  \
      {                                                                 \
      {                                                                 \
        YYSIZE_T yynewbytes;                                            \
        YYSIZE_T yynewbytes;                                            \
        YYCOPY (&yyptr->Stack, Stack, yysize);                          \
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
        Stack = &yyptr->Stack;                                          \
        Stack = &yyptr->Stack_alloc;                                    \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
      }                                                                 \
      }                                                                 \
    while (0)
    while (YYID (0))
 
 
#endif
 
 
 
#if defined (__STDC__) || defined (__cplusplus)
 
   typedef signed char yysigned_char;
 
#else
 
   typedef short yysigned_char;
 
#endif
#endif
 
 
/* YYFINAL -- State number of the termination state. */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL  89
#define YYFINAL  89
/* YYLAST -- Last index in YYTABLE.  */
/* YYLAST -- Last index in YYTABLE.  */
Line 409... Line 555...
 
 
#define YYTRANSLATE(YYX)                                                \
#define YYTRANSLATE(YYX)                                                \
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
 
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const unsigned char yytranslate[] =
static const yytype_uint8 yytranslate[] =
{
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,    61,     2,     2,     2,    52,    38,     2,
       2,     2,     2,    61,     2,     2,     2,    52,    38,     2,
Line 446... Line 592...
};
};
 
 
#if YYDEBUG
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
   YYRHS.  */
static const unsigned short yyprhs[] =
static const yytype_uint16 yyprhs[] =
{
{
       0,     0,     3,     5,     7,     9,    11,    15,    18,    21,
       0,     0,     3,     5,     7,     9,    11,    15,    18,    21,
      24,    27,    30,    33,    36,    39,    42,    45,    49,    53,
      24,    27,    30,    33,    36,    39,    42,    45,    49,    53,
      58,    62,    66,    71,    76,    77,    83,    84,    90,    91,
      58,    62,    66,    71,    76,    77,    83,    84,    90,    91,
      97,    99,   101,   103,   106,   110,   113,   116,   117,   123,
      97,    99,   101,   103,   106,   110,   113,   116,   117,   123,
Line 466... Line 612...
     415,   417,   423,   426,   429,   431,   433,   435,   437,   439,
     415,   417,   423,   426,   429,   431,   433,   435,   437,   439,
     443,   445,   447,   449,   451,   453,   455
     443,   445,   447,   449,   451,   453,   455
};
};
 
 
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yysigned_char yyrhs[] =
static const yytype_int8 yyrhs[] =
{
{
      69,     0,    -1,    71,    -1,    70,    -1,    91,    -1,    72,
      69,     0,    -1,    71,    -1,    70,    -1,    91,    -1,    72,
      -1,    71,    30,    72,    -1,    50,    72,    -1,    38,    72,
      -1,    71,    30,    72,    -1,    50,    72,    -1,    38,    72,
      -1,    49,    72,    -1,    61,    72,    -1,    62,    72,    -1,
      -1,    49,    72,    -1,    61,    72,    -1,    62,    72,    -1,
      54,    72,    -1,    53,    72,    -1,    72,    54,    -1,    72,
      54,    72,    -1,    53,    72,    -1,    72,    54,    -1,    72,
Line 517... Line 663...
      30,    91,    -1,     8,    -1,    60,    -1,     9,    -1,    10,
      30,    91,    -1,     8,    -1,    60,    -1,     9,    -1,    10,
      -1,    11,    -1,     8,    -1,    60,    -1
      -1,    11,    -1,     8,    -1,    60,    -1
};
};
 
 
/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const unsigned short yyrline[] =
static const yytype_uint16 yyrline[] =
{
{
       0,   231,   231,   232,   235,   242,   243,   248,   252,   256,
       0,   231,   231,   232,   235,   242,   243,   248,   252,   256,
     260,   264,   268,   272,   276,   280,   284,   288,   294,   301,
     260,   264,   268,   272,   276,   280,   284,   288,   294,   301,
     305,   312,   320,   324,   333,   332,   355,   354,   370,   369,
     305,   312,   320,   324,   333,   332,   355,   354,   370,   369,
     378,   380,   383,   384,   387,   389,   391,   398,   395,   405,
     378,   380,   383,   384,   387,   389,   391,   398,   395,   405,
Line 537... Line 683...
     911,   913,   920,   921,   924,   925,   931,   937,   946,   951,
     911,   913,   920,   921,   924,   925,   931,   937,   946,   951,
     958,   959,   960,   961,   962,   965,   966
     958,   959,   960,   961,   962,   965,   966
};
};
#endif
#endif
 
 
#if YYDEBUG || YYERROR_VERBOSE
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals. */
   First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
static const char *const yytname[] =
{
{
  "$end", "error", "$undefined", "INT", "FLOAT", "STRING", "NSSTRING",
  "$end", "error", "$undefined", "INT", "FLOAT", "STRING", "NSSTRING",
  "SELECTOR", "NAME", "TYPENAME", "CLASSNAME", "NAME_OR_INT", "STRUCT",
  "SELECTOR", "NAME", "TYPENAME", "CLASSNAME", "NAME_OR_INT", "STRUCT",
Line 552... Line 698...
  "ASSIGN_MODIFY", "','", "ABOVE_COMMA", "'='", "'?'", "OROR", "ANDAND",
  "ASSIGN_MODIFY", "','", "ABOVE_COMMA", "'='", "'?'", "OROR", "ANDAND",
  "'|'", "'^'", "'&'", "NOTEQUAL", "EQUAL", "'<'", "'>'", "GEQ", "LEQ",
  "'|'", "'^'", "'&'", "NOTEQUAL", "EQUAL", "'<'", "'>'", "GEQ", "LEQ",
  "RSH", "LSH", "'@'", "'+'", "'-'", "'*'", "'/'", "'%'", "DECREMENT",
  "RSH", "LSH", "'@'", "'+'", "'-'", "'*'", "'/'", "'%'", "DECREMENT",
  "INCREMENT", "UNARY", "'.'", "'['", "'('", "ARROW", "BLOCKNAME", "'!'",
  "INCREMENT", "UNARY", "'.'", "'['", "'('", "ARROW", "BLOCKNAME", "'!'",
  "'~'", "']'", "':'", "')'", "'{'", "'}'", "$accept", "start", "type_exp",
  "'~'", "']'", "':'", "')'", "'{'", "'}'", "$accept", "start", "type_exp",
  "exp1", "exp", "@1", "@2", "@3", "msglist", "msgarglist", "msgarg", "@4",
  "exp1", "exp", "$@1", "$@2", "$@3", "msglist", "msgarglist", "msgarg",
  "lcurly", "arglist", "rcurly", "block", "variable", "qualified_name",
  "$@4", "lcurly", "arglist", "rcurly", "block", "variable",
  "ptype", "abs_decl", "direct_abs_decl", "array_mod", "func_mod", "type",
  "qualified_name", "ptype", "abs_decl", "direct_abs_decl", "array_mod",
  "typebase", "typename", "nonempty_typelist", "name", "name_not_typename", 0
  "func_mod", "type", "typebase", "typename", "nonempty_typelist", "name",
 
  "name_not_typename", 0
};
};
#endif
#endif
 
 
# ifdef YYPRINT
# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
   token YYLEX-NUM.  */
static const unsigned short yytoknum[] =
static const yytype_uint16 yytoknum[] =
{
{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
      44,   285,    61,    63,   286,   287,   124,    94,    38,   288,
      44,   285,    61,    63,   286,   287,   124,    94,    38,   288,
Line 575... Line 722...
     298,    33,   126,    93,    58,    41,   123,   125
     298,    33,   126,    93,    58,    41,   123,   125
};
};
# endif
# endif
 
 
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const unsigned char yyr1[] =
static const yytype_uint8 yyr1[] =
{
{
       0,    68,    69,    69,    70,    71,    71,    72,    72,    72,
       0,    68,    69,    69,    70,    71,    71,    72,    72,    72,
      72,    72,    72,    72,    72,    72,    72,    72,    72,    72,
      72,    72,    72,    72,    72,    72,    72,    72,    72,    72,
      72,    72,    72,    72,    73,    72,    74,    72,    75,    72,
      72,    72,    72,    72,    73,    72,    74,    72,    75,    72,
      76,    76,    77,    77,    78,    78,    78,    79,    72,    80,
      76,    76,    77,    77,    78,    78,    78,    79,    72,    80,
Line 595... Line 742...
      92,    92,    92,    92,    93,    93,    93,    93,    94,    94,
      92,    92,    92,    92,    93,    93,    93,    93,    94,    94,
      95,    95,    95,    95,    95,    96,    96
      95,    95,    95,    95,    95,    96,    96
};
};
 
 
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const unsigned char yyr2[] =
static const yytype_uint8 yyr2[] =
{
{
       0,     2,     1,     1,     1,     1,     3,     2,     2,     2,
       0,     2,     1,     1,     1,     1,     3,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     3,     3,     4,
       2,     2,     2,     2,     2,     2,     2,     3,     3,     4,
       3,     3,     4,     4,     0,     5,     0,     5,     0,     5,
       3,     3,     4,     4,     0,     5,     0,     5,     0,     5,
       1,     1,     1,     2,     3,     2,     2,     0,     5,     1,
       1,     1,     1,     2,     3,     2,     2,     0,     5,     1,
Line 617... Line 764...
};
};
 
 
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero
   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero
   means the default is an error.  */
   means the default is an error.  */
static const unsigned char yydefact[] =
static const yytype_uint8 yydefact[] =
{
{
       0,    70,    72,    77,    78,    75,   145,   108,   109,    71,
       0,    70,    72,    77,    78,    75,   145,   108,   109,    71,
       0,     0,     0,     0,     0,   128,     0,     0,   130,   111,
       0,     0,     0,     0,     0,   128,     0,     0,   130,   111,
     112,   110,     0,     0,   121,    74,     0,     0,     0,     0,
     112,   110,     0,     0,   121,    74,     0,     0,     0,     0,
       0,     0,     0,   146,     0,     0,    39,     0,     3,     2,
       0,     0,     0,   146,     0,     0,    39,     0,     3,     2,
Line 646... Line 793...
      98,     0,   106,   131,    36,    35,    25,    33,     0,     0,
      98,     0,   106,   131,    36,    35,    25,    33,     0,     0,
      27,    29,    67,    38,   139,    34
      27,    29,    67,    38,   139,    34
};
};
 
 
/* YYDEFGOTO[NTERM-NUM]. */
/* YYDEFGOTO[NTERM-NUM]. */
static const short yydefgoto[] =
static const yytype_int16 yydefgoto[] =
{
{
      -1,    37,    38,    85,    40,   140,   141,   142,   204,   205,
      -1,    37,    38,    85,    40,   140,   141,   142,   204,   205,
     206,   174,    41,   120,   180,    42,    43,    44,    45,   130,
     206,   174,    41,   120,   180,    42,    43,    44,    45,   130,
     131,   132,   133,   193,    60,    65,   195,   207,    48
     131,   132,   133,   193,    60,    65,   195,   207,    48
};
};
 
 
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
   STATE-NUM.  */
#define YYPACT_NINF -86
#define YYPACT_NINF -86
static const short yypact[] =
static const yytype_int16 yypact[] =
{
{
     220,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,
     220,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,
      19,    19,    19,    19,   284,    28,    19,    19,   118,    16,
      19,    19,    19,    19,   284,    28,    19,    19,   118,    16,
      -9,   -86,   240,   240,   -86,   -86,   220,   220,   220,   220,
      -9,   -86,   240,   240,   -86,   -86,   220,   220,   220,   220,
     220,   348,   220,     8,   220,   220,   -86,    44,   -86,    23,
     220,   348,   220,     8,   220,   220,   -86,    44,   -86,    23,
Line 685... Line 832...
     -86,   240,   -86,   -86,   573,   573,   -86,   -86,    92,   220,
     -86,   240,   -86,   -86,   573,   573,   -86,   -86,    92,   220,
     -86,   -86,   600,   -86,   -86,   573
     -86,   -86,   600,   -86,   -86,   573
};
};
 
 
/* YYPGOTO[NTERM-NUM].  */
/* YYPGOTO[NTERM-NUM].  */
static const short yypgoto[] =
static const yytype_int16 yypgoto[] =
{
{
     -86,   -86,   -86,     3,   -10,   -86,   -86,   -86,   -85,   -86,
     -86,   -86,   -86,     3,   -10,   -86,   -86,   -86,   -85,   -86,
     -51,   -86,   -86,   -11,    37,   -86,   -86,   -79,   -86,     6,
     -51,   -86,   -86,   -11,    37,   -86,   -86,   -79,   -86,     6,
     -86,    36,    39,     1,     0,   161,   -86,    -5,   -86
     -86,    36,    39,     1,     0,   161,   -86,    -5,   -86
};
};
Line 697... Line 844...
/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -110
#define YYTABLE_NINF -110
static const short yytable[] =
static const yytype_int16 yytable[] =
{
{
      47,    46,   189,    39,    59,    54,    55,    56,    57,   178,
      47,    46,   189,    39,    59,    54,    55,    56,    57,   178,
      90,    66,    67,   221,   178,    74,    77,    78,    79,    80,
      90,    66,    67,   221,   178,    74,    77,    78,    79,    80,
      81,    84,    75,    76,    87,    88,   -79,    49,    50,    51,
      81,    84,    75,    76,    87,    88,   -79,    49,    50,    51,
      52,   119,    47,    86,    90,   126,   171,    61,    71,   176,
      52,   119,    47,    86,    90,   126,   171,    61,    71,   176,
Line 781... Line 928...
       0,   115,   116,   117,   118,   101,   102,   103,   104,   105,
       0,   115,   116,   117,   118,   101,   102,   103,   104,   105,
     106,   107,   108,   109,   110,   111,   112,   113,   114,     0,
     106,   107,   108,   109,   110,   111,   112,   113,   114,     0,
     115,   116,   117,   118
     115,   116,   117,   118
};
};
 
 
static const short yycheck[] =
static const yytype_int16 yycheck[] =
{
{
       0,     0,     3,     0,    14,    10,    11,    12,    13,    30,
       0,     0,     3,     0,    14,    10,    11,    12,    13,    30,
      30,    16,    17,    30,    30,    24,    26,    27,    28,    29,
      30,    16,    17,    30,    30,    24,    26,    27,    28,    29,
      30,    31,    22,    23,    34,    35,    18,     8,     9,    10,
      30,    31,    22,    23,    34,    35,    18,     8,     9,    10,
      11,    41,    32,    32,    30,    38,   115,     9,    22,   118,
      11,    41,    32,    32,    30,    38,   115,     9,    22,   118,
Line 867... Line 1014...
      56,    57,    58,    59
      56,    57,    58,    59
};
};
 
 
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
   symbol of state STATE-NUM.  */
static const unsigned char yystos[] =
static const yytype_uint8 yystos[] =
{
{
       0,     3,     4,     5,     6,     7,     8,     9,    10,    11,
       0,     3,     4,     5,     6,     7,     8,     9,    10,    11,
      12,    13,    14,    15,    16,    17,    18,    19,    21,    22,
      12,    13,    14,    15,    16,    17,    18,    19,    21,    22,
      23,    24,    25,    26,    27,    28,    38,    49,    50,    53,
      23,    24,    25,    26,    27,    28,    38,    49,    50,    53,
      54,    57,    58,    60,    61,    62,    66,    69,    70,    71,
      54,    57,    58,    60,    61,    62,    66,    69,    70,    71,
Line 895... Line 1042...
      72,    64,    72,    63,    81,    72,    72,    72,    95,    63,
      72,    64,    72,    63,    81,    72,    72,    72,    95,    63,
      65,    30,    65,    42,    72,    72,    63,    78,    95,    64,
      65,    30,    65,    42,    72,    72,    63,    78,    95,    64,
      63,    63,    72,    65,    91,    72
      63,    63,    72,    65,    91,    72
};
};
 
 
#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 yyerrok         (yyerrstatus = 0)
#define yyclearin       (yychar = YYEMPTY)
#define yyclearin       (yychar = YYEMPTY)
#define YYEMPTY         (-2)
#define YYEMPTY         (-2)
#define YYEOF           0
#define YYEOF           0
 
 
Line 936... Line 1067...
  if (yychar == YYEMPTY && yylen == 1)                          \
  if (yychar == YYEMPTY && yylen == 1)                          \
    {                                                           \
    {                                                           \
      yychar = (Token);                                         \
      yychar = (Token);                                         \
      yylval = (Value);                                         \
      yylval = (Value);                                         \
      yytoken = YYTRANSLATE (yychar);                           \
      yytoken = YYTRANSLATE (yychar);                           \
      YYPOPSTACK;                                               \
      YYPOPSTACK (1);                                           \
      goto yybackup;                                            \
      goto yybackup;                                            \
    }                                                           \
    }                                                           \
  else                                                          \
  else                                                          \
    {                                                           \
    {                                                           \
      yyerror ("syntax error: cannot back up");\
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;                                                  \
      YYERROR;                                                  \
    }                                                           \
    }                                                           \
while (0)
while (YYID (0))
 
 
 
 
#define YYTERROR        1
#define YYTERROR        1
#define YYERRCODE       256
#define YYERRCODE       256
 
 
/* YYLLOC_DEFAULT -- Compute the default location (before the actions
 
   are run).  */
 
 
 
 
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
 
   If N is 0, then set CURRENT to the empty location which ends
 
   the previous symbol: RHS[0] (always defined).  */
 
 
 
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)                \
# define YYLLOC_DEFAULT(Current, Rhs, N)                \
   ((Current).first_line   = (Rhs)[1].first_line,       \
    do                                                                  \
    (Current).first_column = (Rhs)[1].first_column,     \
      if (YYID (N))                                                    \
    (Current).last_line    = (Rhs)[N].last_line,        \
        {                                                               \
    (Current).last_column  = (Rhs)[N].last_column)
          (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
#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.  */
/* YYLEX -- calling `yylex' with the right arguments.  */
 
 
#ifdef YYLEX_PARAM
#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
# define YYLEX yylex (YYLEX_PARAM)
#else
#else
Line 980... Line 1144...
 
 
# define YYDPRINTF(Args)                        \
# define YYDPRINTF(Args)                        \
do {                                            \
do {                                            \
  if (yydebug)                                  \
  if (yydebug)                                  \
    YYFPRINTF Args;                             \
    YYFPRINTF Args;                             \
} while (0)
} while (YYID (0))
 
 
# define YYDSYMPRINT(Args)                      \
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)                    \
do {                                            \
 
  if (yydebug)                                  \
 
    yysymprint Args;                            \
 
} while (0)
 
 
 
# define YYDSYMPRINTF(Title, Token, Value, Location)            \
 
do {                                                            \
do {                                                            \
  if (yydebug)                                                  \
  if (yydebug)                                                  \
    {                                                           \
    {                                                           \
      YYFPRINTF (stderr, "%s ", Title);                         \
      YYFPRINTF (stderr, "%s ", Title);                         \
      yysymprint (stderr,                                       \
      yy_symbol_print (stderr,                                            \
                  Token, Value);        \
                  Type, Value); \
      YYFPRINTF (stderr, "\n");                                 \
      YYFPRINTF (stderr, "\n");                                 \
    }                                                           \
    }                                                           \
} while (0)
} 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 |
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
| TOP (included).                                                   |
`------------------------------------------------------------------*/
`------------------------------------------------------------------*/
 
 
#if defined (__STDC__) || defined (__cplusplus)
#if (defined __STDC__ || defined __C99__FUNC__ \
 
     || defined __cplusplus || defined _MSC_VER)
static void
static void
yy_stack_print (short *bottom, short *top)
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
#else
static void
static void
yy_stack_print (bottom, top)
yy_stack_print (yybottom, yytop)
    short *bottom;
    yytype_int16 *yybottom;
    short *top;
    yytype_int16 *yytop;
#endif
#endif
{
{
  YYFPRINTF (stderr, "Stack now");
  YYFPRINTF (stderr, "Stack now");
  for (/* Nothing. */; bottom <= top; ++bottom)
  for (; yybottom <= yytop; yybottom++)
    YYFPRINTF (stderr, " %d", *bottom);
    {
 
      int yybot = *yybottom;
 
      YYFPRINTF (stderr, " %d", yybot);
 
    }
  YYFPRINTF (stderr, "\n");
  YYFPRINTF (stderr, "\n");
}
}
 
 
# define YY_STACK_PRINT(Bottom, Top)                            \
# define YY_STACK_PRINT(Bottom, Top)                            \
do {                                                            \
do {                                                            \
  if (yydebug)                                                  \
  if (yydebug)                                                  \
    yy_stack_print ((Bottom), (Top));                           \
    yy_stack_print ((Bottom), (Top));                           \
} while (0)
} while (YYID (0))
 
 
 
 
/*------------------------------------------------.
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/
`------------------------------------------------*/
 
 
#if defined (__STDC__) || defined (__cplusplus)
#if (defined __STDC__ || defined __C99__FUNC__ \
 
     || defined __cplusplus || defined _MSC_VER)
static void
static void
yy_reduce_print (int yyrule)
yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
#else
#else
static void
static void
yy_reduce_print (yyrule)
yy_reduce_print (yyvsp, yyrule)
 
    YYSTYPE *yyvsp;
    int yyrule;
    int yyrule;
#endif
#endif
{
{
 
  int yynrhs = yyr2[yyrule];
  int yyi;
  int yyi;
  unsigned int yylno = yyrline[yyrule];
  unsigned long int yylno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
             yyrule - 1, yylno);
             yyrule - 1, yylno);
  /* Print the symbols being reduced, and their result.  */
  /* The symbols being reduced.  */
  for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
  for (yyi = 0; yyi < yynrhs; yyi++)
    YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
    {
  YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
      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)          \
# define YY_REDUCE_PRINT(Rule)          \
do {                                    \
do {                                    \
  if (yydebug)                          \
  if (yydebug)                          \
    yy_reduce_print (Rule);             \
    yy_reduce_print (yyvsp, Rule); \
} while (0)
} while (YYID (0))
 
 
/* Nonzero means print parse trace.  It is left uninitialized so that
/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
   multiple parsers can coexist.  */
int yydebug;
int yydebug;
#else /* !YYDEBUG */
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YYDPRINTF(Args)
# define YYDSYMPRINT(Args)
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
# define YYDSYMPRINTF(Title, Token, Value, Location)
 
# define YY_STACK_PRINT(Bottom, Top)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */
#endif /* !YYDEBUG */
 
 
 
 
Line 1077... Line 1305...
 
 
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).
   if the built-in stack extension method is used).
 
 
   Do not make this value too large; the results are undefined if
   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.  */
   evaluated with infinite-precision integer arithmetic.  */
 
 
#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
 
# undef YYMAXDEPTH
 
#endif
 
 
 
#ifndef YYMAXDEPTH
#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
# define YYMAXDEPTH 10000
#endif
#endif
 
 


 
 
#if YYERROR_VERBOSE
#if YYERROR_VERBOSE
 
 
# ifndef yystrlen
# ifndef yystrlen
#  if defined (__GLIBC__) && defined (_STRING_H)
#  if defined __GLIBC__ && defined _STRING_H
#   define yystrlen strlen
#   define yystrlen strlen
#  else
#  else
/* Return the length of YYSTR.  */
/* Return the length of YYSTR.  */
 
#if (defined __STDC__ || defined __C99__FUNC__ \
 
     || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
static YYSIZE_T
#   if defined (__STDC__) || defined (__cplusplus)
 
yystrlen (const char *yystr)
yystrlen (const char *yystr)
#   else
#   else
 
static YYSIZE_T
yystrlen (yystr)
yystrlen (yystr)
     const char *yystr;
     const char *yystr;
#   endif
#   endif
{
{
  register const char *yys = yystr;
  YYSIZE_T yylen;
 
  for (yylen = 0; yystr[yylen]; yylen++)
  while (*yys++ != '\0')
 
    continue;
    continue;
 
  return yylen;
  return yys - yystr - 1;
 
}
}
#  endif
#  endif
# endif
# endif
 
 
# ifndef yystpcpy
# ifndef yystpcpy
#  if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
#   define yystpcpy stpcpy
#   define yystpcpy stpcpy
#  else
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
   YYDEST.  */
 
#if (defined __STDC__ || defined __C99__FUNC__ \
 
     || defined __cplusplus || defined _MSC_VER)
static char *
static char *
#   if defined (__STDC__) || defined (__cplusplus)
 
yystpcpy (char *yydest, const char *yysrc)
yystpcpy (char *yydest, const char *yysrc)
#   else
#   else
 
static char *
yystpcpy (yydest, yysrc)
yystpcpy (yydest, yysrc)
     char *yydest;
     char *yydest;
     const char *yysrc;
     const char *yysrc;
#   endif
#   endif
{
{
  register char *yyd = yydest;
  char *yyd = yydest;
  register const char *yys = yysrc;
  const char *yys = yysrc;
 
 
  while ((*yyd++ = *yys++) != '\0')
  while ((*yyd++ = *yys++) != '\0')
    continue;
    continue;
 
 
  return yyd - 1;
  return yyd - 1;
}
}
#  endif
#  endif
# endif
# endif
 
 
#endif /* !YYERROR_VERBOSE */
# ifndef yytnamerr
 
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
 
   quotes and backslashes, so that it's suitable for yyerror.  The
 
   heuristic is that double-quoting is unnecessary unless the string
 
   contains an apostrophe, a comma, or backslash (other than
 
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
 
   null, do not copy; instead, return the length of what the result
 
   would have been.  */
 
static YYSIZE_T
 
yytnamerr (char *yyres, const char *yystr)
 
{
 
  if (*yystr == '"')
 
    {
 
      YYSIZE_T yyn = 0;
 
      char const *yyp = yystr;
 
 
 
      for (;;)
 
        switch (*++yyp)
 
          {
 
          case '\'':
 
          case ',':
 
            goto do_not_strip_quotes;
 
 
 
          case '\\':
 
            if (*++yyp != '\\')
 
              goto do_not_strip_quotes;
 
            /* Fall through.  */
 
          default:
 
            if (yyres)
 
              yyres[yyn] = *yyp;
 
            yyn++;
 
            break;
 
 
 
          case '"':
 
            if (yyres)
 
              yyres[yyn] = '\0';
 
            return yyn;
 
          }
 
    do_not_strip_quotes: ;
 
    }
 
 
 
  if (! yyres)
 
    return yystrlen (yystr);
 
 
 
  return yystpcpy (yyres, yystr) - yyres;
 
}
 
# endif
 
 
 
/* Copy into YYRESULT an error message about the unexpected token
 
   YYCHAR while in state YYSTATE.  Return the number of bytes copied,
 
   including the terminating null byte.  If YYRESULT is null, do not
 
   copy anything; just return the number of bytes that would be
 
   copied.  As a special case, return 0 if an ordinary "syntax error"
 
   message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
 
   size calculation.  */
 
static YYSIZE_T
 
yysyntax_error (char *yyresult, int yystate, int yychar)
 
{
 
  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
 
      char *yyfmt;
 
      char const *yyf;
 
      static char const yyunexpected[] = "syntax error, unexpected %s";
 
      static char const yyexpecting[] = ", expecting %s";
 
      static char const yyor[] = " or %s";
 
      char yyformat[sizeof yyunexpected
 
                    + sizeof yyexpecting - 1
 
                    + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
 
                       * (sizeof yyor - 1))];
 
      char const *yyprefix = yyexpecting;
 
 
 
      /* Start YYX at -YYN if negative to avoid negative indexes in
 
         YYCHECK.  */
 
      int yyxbegin = yyn < 0 ? -yyn : 0;
 
 
 
      /* Stay within bounds of both yycheck and yytname.  */
 
      int yychecklim = YYLAST - yyn + 1;
 
      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
 
      int yycount = 1;
 
 
 
      yyarg[0] = yytname[yytype];
 
      yyfmt = yystpcpy (yyformat, yyunexpected);
 
 
 
      for (yyx = yyxbegin; yyx < yyxend; ++yyx)
 
        if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
 
          {
 
            if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
 
              {
 
                yycount = 1;
 
                yysize = yysize0;
 
                yyformat[sizeof yyunexpected - 1] = '\0';
 
                break;
 
              }
 
            yyarg[yycount++] = yytname[yyx];
 
            yysize1 = yysize + yytnamerr (0, yytname[yyx]);
 
            yysize_overflow |= (yysize1 < yysize);
 
            yysize = yysize1;
 
            yyfmt = yystpcpy (yyfmt, yyprefix);
 
            yyprefix = yyor;
 
          }
 
 

      yyf = YY_(yyformat);
 
      yysize1 = yysize + yystrlen (yyf);
 
      yysize_overflow |= (yysize1 < yysize);
 
      yysize = yysize1;
 
 
#if YYDEBUG
      if (yysize_overflow)
/*--------------------------------.
        return YYSIZE_MAXIMUM;
| Print this symbol on YYOUTPUT.  |
 
`--------------------------------*/
 
 
 
#if defined (__STDC__) || defined (__cplusplus)
      if (yyresult)
static void
 
yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
 
#else
 
static void
 
yysymprint (yyoutput, yytype, yyvaluep)
 
    FILE *yyoutput;
 
    int yytype;
 
    YYSTYPE *yyvaluep;
 
#endif
 
{
{
  /* Pacify ``unused variable'' warnings.  */
          /* Avoid sprintf, as that infringes on the user's name space.
  (void) yyvaluep;
             Don't have undefined behavior even if the translation
 
             produced a string with the wrong number of "%s"s.  */
  if (yytype < YYNTOKENS)
          char *yyp = yyresult;
 
          int yyi = 0;
 
          while ((*yyp = *yyf) != '\0')
    {
    {
      YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
              if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
# ifdef YYPRINT
                {
      YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
                  yyp += yytnamerr (yyp, yyarg[yyi++]);
# endif
                  yyf += 2;
    }
    }
  else
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
 
 
 
  switch (yytype)
 
    {
    {
      default:
                  yyp++;
        break;
                  yyf++;
 
                }
    }
    }
  YYFPRINTF (yyoutput, ")");
 
}
}
 
      return yysize;
 
    }
 
}
 
#endif /* YYERROR_VERBOSE */
 

 
 
#endif /* ! YYDEBUG */
 
/*-----------------------------------------------.
/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/
`-----------------------------------------------*/
 
 
#if defined (__STDC__) || defined (__cplusplus)
/*ARGSUSED*/
 
#if (defined __STDC__ || defined __C99__FUNC__ \
 
     || defined __cplusplus || defined _MSC_VER)
static void
static void
yydestruct (int yytype, YYSTYPE *yyvaluep)
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
#else
#else
static void
static void
yydestruct (yytype, yyvaluep)
yydestruct (yymsg, yytype, yyvaluep)
 
    const char *yymsg;
    int yytype;
    int yytype;
    YYSTYPE *yyvaluep;
    YYSTYPE *yyvaluep;
#endif
#endif
{
{
  /* Pacify ``unused variable'' warnings.  */
  YYUSE (yyvaluep);
  (void) yyvaluep;
 
 
  if (!yymsg)
 
    yymsg = "Deleting";
 
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
 
 
  switch (yytype)
  switch (yytype)
    {
    {
 
 
      default:
      default:
        break;
        break;
    }
    }
}
}

 
 
 
/* Prevent warnings from -Wmissing-prototypes.  */
/* Prevent warnings from -Wmissing-prototypes.  */
 
 
#ifdef YYPARSE_PARAM
#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
int yyparse (void *YYPARSE_PARAM);
# else
# else
int yyparse ();
int yyparse ();
# endif
# endif
#else /* ! YYPARSE_PARAM */
#else /* ! YYPARSE_PARAM */
#if defined (__STDC__) || defined (__cplusplus)
#if defined __STDC__ || defined __cplusplus
int yyparse (void);
int yyparse (void);
#else
#else
int yyparse ();
int yyparse ();
#endif
#endif
#endif /* ! YYPARSE_PARAM */
#endif /* ! YYPARSE_PARAM */
 
 
 
 
 
 
/* The lookahead symbol.  */
/* The lookahead symbol.  */
int yychar;
int yychar;
 
 
/* The semantic value of the lookahead symbol.  */
/* The semantic value of the lookahead symbol.  */
YYSTYPE yylval;
YYSTYPE yylval;
Line 1238... Line 1583...
/* Number of syntax errors so far.  */
/* Number of syntax errors so far.  */
int yynerrs;
int yynerrs;
 
 
 
 
 
 
/*----------.
/*-------------------------.
| yyparse.  |
| yyparse or yypush_parse.  |
`----------*/
`-------------------------*/
 
 
#ifdef YYPARSE_PARAM
#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
#if (defined __STDC__ || defined __C99__FUNC__ \
int yyparse (void *YYPARSE_PARAM)
     || defined __cplusplus || defined _MSC_VER)
 
int
 
yyparse (void *YYPARSE_PARAM)
# else
# else
int yyparse (YYPARSE_PARAM)
int
 
yyparse (YYPARSE_PARAM)
  void *YYPARSE_PARAM;
  void *YYPARSE_PARAM;
# endif
# endif
#else /* ! YYPARSE_PARAM */
#else /* ! YYPARSE_PARAM */
#if defined (__STDC__) || defined (__cplusplus)
#if (defined __STDC__ || defined __C99__FUNC__ \
 
     || defined __cplusplus || defined _MSC_VER)
int
int
yyparse (void)
yyparse (void)
#else
#else
int
int
yyparse ()
yyparse ()
 
 
#endif
#endif
#endif
#endif
{
{
 
 
  register int yystate;
 
  register int yyn;
    int yystate;
  int yyresult;
 
  /* Number of tokens to shift before error messages enabled.  */
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  int yyerrstatus;
  /* Lookahead token as an internal (translated) token number.  */
 
  int yytoken = 0;
 
 
 
  /* Three stacks and their tools:
    /* The stacks and their tools:
     `yyss': related to states,
       `yyss': related to states.
     `yyvs': related to semantic values,
       `yyvs': related to semantic values.
     `yyls': related to locations.
 
 
 
     Refer to the stacks thru separate pointers, to allow yyoverflow
     Refer to the stacks thru separate pointers, to allow yyoverflow
     to xreallocate them elsewhere.  */
     to xreallocate them elsewhere.  */
 
 
  /* The state stack.  */
  /* The state stack.  */
  short yyssa[YYINITDEPTH];
    yytype_int16 yyssa[YYINITDEPTH];
  short *yyss = yyssa;
    yytype_int16 *yyss;
  register short *yyssp;
    yytype_int16 *yyssp;
 
 
  /* The semantic value stack.  */
  /* The semantic value stack.  */
  YYSTYPE yyvsa[YYINITDEPTH];
  YYSTYPE yyvsa[YYINITDEPTH];
  YYSTYPE *yyvs = yyvsa;
    YYSTYPE *yyvs;
  register YYSTYPE *yyvsp;
    YYSTYPE *yyvsp;
 
 
 
 
 
 
#define YYPOPSTACK   (yyvsp--, yyssp--)
    YYSIZE_T yystacksize;
 
 
  YYSIZE_T yystacksize = YYINITDEPTH;
 
 
 
 
  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
  /* The variables used to return semantic value and location from the
     action routines.  */
     action routines.  */
  YYSTYPE yyval;
  YYSTYPE yyval;
 
 
 
#if YYERROR_VERBOSE
  /* When reducing, the number of symbols on the RHS of the reduced
  /* Buffer for error messages, and its allocated size.  */
     rule.  */
  char yymsgbuf[128];
  int yylen;
  char *yymsg = yymsgbuf;
 
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
 
#endif
 
 
 
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 
 
 
  /* The number of symbols on the RHS of the reduced rule.
 
     Keep to zero when no symbol should be popped.  */
 
  int yylen = 0;
 
 
 
  yytoken = 0;
 
  yyss = yyssa;
 
  yyvs = yyvsa;
 
  yystacksize = YYINITDEPTH;
 
 
  YYDPRINTF ((stderr, "Starting parse\n"));
  YYDPRINTF ((stderr, "Starting parse\n"));
 
 
  yystate = 0;
  yystate = 0;
  yyerrstatus = 0;
  yyerrstatus = 0;
Line 1313... Line 1671...
 
 
  /* Initialize stack pointers.
  /* Initialize stack pointers.
     Waste one element of value and location stack
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */
     The wasted elements are never initialized.  */
 
 
  yyssp = yyss;
  yyssp = yyss;
  yyvsp = yyvs;
  yyvsp = yyvs;
 
 
  goto yysetstate;
  goto yysetstate;
 
 
/*------------------------------------------------------------.
/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate.  |
| yynewstate -- Push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
`------------------------------------------------------------*/
 yynewstate:
 yynewstate:
  /* In all cases, when you get here, the value and location stacks
  /* 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++;
  yyssp++;
 
 
 yysetstate:
 yysetstate:
  *yyssp = yystate;
  *yyssp = yystate;
 
 
Line 1342... Line 1698...
      {
      {
        /* Give user a chance to xreallocate the stack. Use copies of
        /* Give user a chance to xreallocate the stack. Use copies of
           these so that the &'s don't force the real ones into
           these so that the &'s don't force the real ones into
           memory.  */
           memory.  */
        YYSTYPE *yyvs1 = yyvs;
        YYSTYPE *yyvs1 = yyvs;
        short *yyss1 = yyss;
        yytype_int16 *yyss1 = yyss;
 
 
 
 
        /* Each stack pointer address is followed by the size of the
        /* Each stack pointer address is followed by the size of the
           data in use in that stack, in bytes.  This used to be a
           data in use in that stack, in bytes.  This used to be a
           conditional around just the two extra args, but that might
           conditional around just the two extra args, but that might
           be undefined if yyoverflow is a macro.  */
           be undefined if yyoverflow is a macro.  */
        yyoverflow ("parser stack overflow",
        yyoverflow (YY_("memory exhausted"),
                    &yyss1, yysize * sizeof (*yyssp),
                    &yyss1, yysize * sizeof (*yyssp),
                    &yyvs1, yysize * sizeof (*yyvsp),
                    &yyvs1, yysize * sizeof (*yyvsp),
 
 
                    &yystacksize);
                    &yystacksize);
 
 
        yyss = yyss1;
        yyss = yyss1;
        yyvs = yyvs1;
        yyvs = yyvs1;
      }
      }
#else /* no yyoverflow */
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
# ifndef YYSTACK_RELOCATE
      goto yyoverflowlab;
      goto yyexhaustedlab;
# else
# else
      /* Extend the stack our own way.  */
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
      if (YYMAXDEPTH <= yystacksize)
        goto yyoverflowlab;
        goto yyexhaustedlab;
      yystacksize *= 2;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
      if (YYMAXDEPTH < yystacksize)
        yystacksize = YYMAXDEPTH;
        yystacksize = YYMAXDEPTH;
 
 
      {
      {
        short *yyss1 = yyss;
        yytype_int16 *yyss1 = yyss;
        union yyalloc *yyptr =
        union yyalloc *yyptr =
          (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
          (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
        if (! yyptr)
        if (! yyptr)
          goto yyoverflowlab;
          goto yyexhaustedlab;
        YYSTACK_RELOCATE (yyss);
        YYSTACK_RELOCATE (yyss_alloc, yyss);
        YYSTACK_RELOCATE (yyvs);
        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
 
 
#  undef YYSTACK_RELOCATE
#  undef YYSTACK_RELOCATE
        if (yyss1 != yyssa)
        if (yyss1 != yyssa)
          YYSTACK_FREE (yyss1);
          YYSTACK_FREE (yyss1);
      }
      }
# endif
# endif
#endif /* no yyoverflow */
#endif /* no yyoverflow */
 
 
      yyssp = yyss + yysize - 1;
      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;
      yyvsp = yyvs + yysize - 1;
 
 
 
 
      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
                  (unsigned long int) yystacksize));
                  (unsigned long int) yystacksize));
 
 
      if (yyss + yystacksize - 1 <= yyssp)
      if (yyss + yystacksize - 1 <= yyssp)
        YYABORT;
        YYABORT;
    }
    }
 
 
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
 
 
 
  if (yystate == YYFINAL)
 
    YYACCEPT;
 
 
  goto yybackup;
  goto yybackup;
 
 
/*-----------.
/*-----------.
| yybackup.  |
| yybackup.  |
`-----------*/
`-----------*/
yybackup:
yybackup:
 
 
/* Do appropriate processing given the current state.  */
  /* Do appropriate processing given the current state.  Read a
/* Read a lookahead token if we need one and don't already have one.  */
     lookahead token if we need one and don't already have one.  */
/* yyresume: */
 
 
 
  /* First try to decide what to do without reference to lookahead token.  */
  /* First try to decide what to do without reference to lookahead token.  */
 
 
  yyn = yypact[yystate];
  yyn = yypact[yystate];
  if (yyn == YYPACT_NINF)
  if (yyn == YYPACT_NINF)
    goto yydefault;
    goto yydefault;
 
 
  /* Not known => get a lookahead token if don't already have one.  */
  /* Not known => get a lookahead token if don't already have one.  */
Line 1432... Line 1785...
      YYDPRINTF ((stderr, "Now at end of input.\n"));
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
    }
  else
  else
    {
    {
      yytoken = YYTRANSLATE (yychar);
      yytoken = YYTRANSLATE (yychar);
      YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    }
    }
 
 
  /* If the proper action on seeing token YYTOKEN is to reduce or to
  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
     detect an error, take that action.  */
  yyn += yytoken;
  yyn += yytoken;
Line 1449... Line 1802...
        goto yyerrlab;
        goto yyerrlab;
      yyn = -yyn;
      yyn = -yyn;
      goto yyreduce;
      goto yyreduce;
    }
    }
 
 
  if (yyn == YYFINAL)
  /* Count tokens shifted since error; after three, turn off error
    YYACCEPT;
     status.  */
 
  if (yyerrstatus)
 
    yyerrstatus--;
 
 
  /* Shift the lookahead token.  */
  /* Shift the lookahead token.  */
  YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
 
 
  /* Discard the token being shifted unless it is eof.  */
  /* Discard the shifted token.  */
  if (yychar != YYEOF)
 
    yychar = YYEMPTY;
    yychar = YYEMPTY;
 
 
 
  yystate = yyn;
  *++yyvsp = yylval;
  *++yyvsp = yylval;
 
 
 
 
  /* Count tokens shifted since error; after three, turn off error
 
     status.  */
 
  if (yyerrstatus)
 
    yyerrstatus--;
 
 
 
  yystate = yyn;
 
  goto yynewstate;
  goto yynewstate;
 
 
 
 
/*-----------------------------------------------------------.
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
| yydefault -- do the default action for the current state.  |
Line 1503... Line 1851...
 
 
  YY_REDUCE_PRINT (yyn);
  YY_REDUCE_PRINT (yyn);
  switch (yyn)
  switch (yyn)
    {
    {
        case 4:
        case 4:
 
 
 
/* Line 1455 of yacc.c  */
#line 236 "objc-exp.y"
#line 236 "objc-exp.y"
    { write_exp_elt_opcode(OP_TYPE);
    { write_exp_elt_opcode(OP_TYPE);
                          write_exp_elt_type(yyvsp[0].tval);
                          write_exp_elt_type((yyvsp[(1) - (1)].tval));
                          write_exp_elt_opcode(OP_TYPE);}
                          write_exp_elt_opcode(OP_TYPE);}
    break;
    break;
 
 
  case 6:
  case 6:
 
 
 
/* Line 1455 of yacc.c  */
#line 244 "objc-exp.y"
#line 244 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_COMMA); }
    { write_exp_elt_opcode (BINOP_COMMA); }
    break;
    break;
 
 
  case 7:
  case 7:
 
 
 
/* Line 1455 of yacc.c  */
#line 249 "objc-exp.y"
#line 249 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_IND); }
    { write_exp_elt_opcode (UNOP_IND); }
    break;
    break;
 
 
  case 8:
  case 8:
 
 
 
/* Line 1455 of yacc.c  */
#line 253 "objc-exp.y"
#line 253 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_ADDR); }
    { write_exp_elt_opcode (UNOP_ADDR); }
    break;
    break;
 
 
  case 9:
  case 9:
 
 
 
/* Line 1455 of yacc.c  */
#line 257 "objc-exp.y"
#line 257 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_NEG); }
    { write_exp_elt_opcode (UNOP_NEG); }
    break;
    break;
 
 
  case 10:
  case 10:
 
 
 
/* Line 1455 of yacc.c  */
#line 261 "objc-exp.y"
#line 261 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_LOGICAL_NOT); }
    { write_exp_elt_opcode (UNOP_LOGICAL_NOT); }
    break;
    break;
 
 
  case 11:
  case 11:
 
 
 
/* Line 1455 of yacc.c  */
#line 265 "objc-exp.y"
#line 265 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_COMPLEMENT); }
    { write_exp_elt_opcode (UNOP_COMPLEMENT); }
    break;
    break;
 
 
  case 12:
  case 12:
 
 
 
/* Line 1455 of yacc.c  */
#line 269 "objc-exp.y"
#line 269 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_PREINCREMENT); }
    { write_exp_elt_opcode (UNOP_PREINCREMENT); }
    break;
    break;
 
 
  case 13:
  case 13:
 
 
 
/* Line 1455 of yacc.c  */
#line 273 "objc-exp.y"
#line 273 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_PREDECREMENT); }
    { write_exp_elt_opcode (UNOP_PREDECREMENT); }
    break;
    break;
 
 
  case 14:
  case 14:
 
 
 
/* Line 1455 of yacc.c  */
#line 277 "objc-exp.y"
#line 277 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_POSTINCREMENT); }
    { write_exp_elt_opcode (UNOP_POSTINCREMENT); }
    break;
    break;
 
 
  case 15:
  case 15:
 
 
 
/* Line 1455 of yacc.c  */
#line 281 "objc-exp.y"
#line 281 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_POSTDECREMENT); }
    { write_exp_elt_opcode (UNOP_POSTDECREMENT); }
    break;
    break;
 
 
  case 16:
  case 16:
 
 
 
/* Line 1455 of yacc.c  */
#line 285 "objc-exp.y"
#line 285 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_SIZEOF); }
    { write_exp_elt_opcode (UNOP_SIZEOF); }
    break;
    break;
 
 
  case 17:
  case 17:
 
 
 
/* Line 1455 of yacc.c  */
#line 289 "objc-exp.y"
#line 289 "objc-exp.y"
    { write_exp_elt_opcode (STRUCTOP_PTR);
    { write_exp_elt_opcode (STRUCTOP_PTR);
                          write_exp_string (yyvsp[0].sval);
                          write_exp_string ((yyvsp[(3) - (3)].sval));
                          write_exp_elt_opcode (STRUCTOP_PTR); }
                          write_exp_elt_opcode (STRUCTOP_PTR); }
    break;
    break;
 
 
  case 18:
  case 18:
 
 
 
/* Line 1455 of yacc.c  */
#line 295 "objc-exp.y"
#line 295 "objc-exp.y"
    { /* exp->type::name becomes exp->*(&type::name) */
    { /* exp->type::name becomes exp->*(&type::name) */
                          /* Note: this doesn't work if name is a
                          /* Note: this doesn't work if name is a
                             static member!  FIXME */
                             static member!  FIXME */
                          write_exp_elt_opcode (UNOP_ADDR);
                          write_exp_elt_opcode (UNOP_ADDR);
                          write_exp_elt_opcode (STRUCTOP_MPTR); }
                          write_exp_elt_opcode (STRUCTOP_MPTR); }
    break;
    break;
 
 
  case 19:
  case 19:
 
 
 
/* Line 1455 of yacc.c  */
#line 302 "objc-exp.y"
#line 302 "objc-exp.y"
    { write_exp_elt_opcode (STRUCTOP_MPTR); }
    { write_exp_elt_opcode (STRUCTOP_MPTR); }
    break;
    break;
 
 
  case 20:
  case 20:
 
 
 
/* Line 1455 of yacc.c  */
#line 306 "objc-exp.y"
#line 306 "objc-exp.y"
    { write_exp_elt_opcode (STRUCTOP_STRUCT);
    { write_exp_elt_opcode (STRUCTOP_STRUCT);
                          write_exp_string (yyvsp[0].sval);
                          write_exp_string ((yyvsp[(3) - (3)].sval));
                          write_exp_elt_opcode (STRUCTOP_STRUCT); }
                          write_exp_elt_opcode (STRUCTOP_STRUCT); }
    break;
    break;
 
 
  case 21:
  case 21:
 
 
 
/* Line 1455 of yacc.c  */
#line 313 "objc-exp.y"
#line 313 "objc-exp.y"
    { /* exp.type::name becomes exp.*(&type::name) */
    { /* exp.type::name becomes exp.*(&type::name) */
                          /* Note: this doesn't work if name is a
                          /* Note: this doesn't work if name is a
                             static member!  FIXME */
                             static member!  FIXME */
                          write_exp_elt_opcode (UNOP_ADDR);
                          write_exp_elt_opcode (UNOP_ADDR);
                          write_exp_elt_opcode (STRUCTOP_MEMBER); }
                          write_exp_elt_opcode (STRUCTOP_MEMBER); }
    break;
    break;
 
 
  case 22:
  case 22:
 
 
 
/* Line 1455 of yacc.c  */
#line 321 "objc-exp.y"
#line 321 "objc-exp.y"
    { write_exp_elt_opcode (STRUCTOP_MEMBER); }
    { write_exp_elt_opcode (STRUCTOP_MEMBER); }
    break;
    break;
 
 
  case 23:
  case 23:
 
 
 
/* Line 1455 of yacc.c  */
#line 325 "objc-exp.y"
#line 325 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_SUBSCRIPT); }
    { write_exp_elt_opcode (BINOP_SUBSCRIPT); }
    break;
    break;
 
 
  case 24:
  case 24:
 
 
 
/* Line 1455 of yacc.c  */
#line 333 "objc-exp.y"
#line 333 "objc-exp.y"
    {
    {
                          CORE_ADDR class;
                          CORE_ADDR class;
 
 
                          class = lookup_objc_class (parse_gdbarch,
                          class = lookup_objc_class (parse_gdbarch,
                                                     copy_name (yyvsp[0].tsym.stoken));
                                                     copy_name ((yyvsp[(2) - (2)].tsym).stoken));
                          if (class == 0)
                          if (class == 0)
                            error ("%s is not an ObjC Class",
                            error ("%s is not an ObjC Class",
                                   copy_name (yyvsp[0].tsym.stoken));
                                   copy_name ((yyvsp[(2) - (2)].tsym).stoken));
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (parse_type->builtin_int);
                          write_exp_elt_type (parse_type->builtin_int);
                          write_exp_elt_longcst ((LONGEST) class);
                          write_exp_elt_longcst ((LONGEST) class);
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_opcode (OP_LONG);
                          start_msglist();
                          start_msglist();
                        }
                        }
    break;
    break;
 
 
  case 25:
  case 25:
 
 
 
/* Line 1455 of yacc.c  */
#line 348 "objc-exp.y"
#line 348 "objc-exp.y"
    { write_exp_elt_opcode (OP_OBJC_MSGCALL);
    { write_exp_elt_opcode (OP_OBJC_MSGCALL);
                          end_msglist();
                          end_msglist();
                          write_exp_elt_opcode (OP_OBJC_MSGCALL);
                          write_exp_elt_opcode (OP_OBJC_MSGCALL);
                        }
                        }
    break;
    break;
 
 
  case 26:
  case 26:
 
 
 
/* Line 1455 of yacc.c  */
#line 355 "objc-exp.y"
#line 355 "objc-exp.y"
    {
    {
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (parse_type->builtin_int);
                          write_exp_elt_type (parse_type->builtin_int);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].class.class);
                          write_exp_elt_longcst ((LONGEST) (yyvsp[(2) - (2)].class).class);
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_opcode (OP_LONG);
                          start_msglist();
                          start_msglist();
                        }
                        }
    break;
    break;
 
 
  case 27:
  case 27:
 
 
 
/* Line 1455 of yacc.c  */
#line 363 "objc-exp.y"
#line 363 "objc-exp.y"
    { write_exp_elt_opcode (OP_OBJC_MSGCALL);
    { write_exp_elt_opcode (OP_OBJC_MSGCALL);
                          end_msglist();
                          end_msglist();
                          write_exp_elt_opcode (OP_OBJC_MSGCALL);
                          write_exp_elt_opcode (OP_OBJC_MSGCALL);
                        }
                        }
    break;
    break;
 
 
  case 28:
  case 28:
 
 
 
/* Line 1455 of yacc.c  */
#line 370 "objc-exp.y"
#line 370 "objc-exp.y"
    { start_msglist(); }
    { start_msglist(); }
    break;
    break;
 
 
  case 29:
  case 29:
 
 
 
/* Line 1455 of yacc.c  */
#line 372 "objc-exp.y"
#line 372 "objc-exp.y"
    { write_exp_elt_opcode (OP_OBJC_MSGCALL);
    { write_exp_elt_opcode (OP_OBJC_MSGCALL);
                          end_msglist();
                          end_msglist();
                          write_exp_elt_opcode (OP_OBJC_MSGCALL);
                          write_exp_elt_opcode (OP_OBJC_MSGCALL);
                        }
                        }
    break;
    break;
 
 
  case 30:
  case 30:
 
 
 
/* Line 1455 of yacc.c  */
#line 379 "objc-exp.y"
#line 379 "objc-exp.y"
    { add_msglist(&yyvsp[0].sval, 0); }
    { add_msglist(&(yyvsp[(1) - (1)].sval), 0); }
    break;
    break;
 
 
  case 34:
  case 34:
 
 
 
/* Line 1455 of yacc.c  */
#line 388 "objc-exp.y"
#line 388 "objc-exp.y"
    { add_msglist(&yyvsp[-2].sval, 1); }
    { add_msglist(&(yyvsp[(1) - (3)].sval), 1); }
    break;
    break;
 
 
  case 35:
  case 35:
 
 
 
/* Line 1455 of yacc.c  */
#line 390 "objc-exp.y"
#line 390 "objc-exp.y"
    { add_msglist(0, 1);   }
    { add_msglist(0, 1);   }
    break;
    break;
 
 
  case 36:
  case 36:
 
 
 
/* Line 1455 of yacc.c  */
#line 392 "objc-exp.y"
#line 392 "objc-exp.y"
    { add_msglist(0, 0);   }
    { add_msglist(0, 0);   }
    break;
    break;
 
 
  case 37:
  case 37:
 
 
 
/* Line 1455 of yacc.c  */
#line 398 "objc-exp.y"
#line 398 "objc-exp.y"
    { start_arglist (); }
    { start_arglist (); }
    break;
    break;
 
 
  case 38:
  case 38:
 
 
 
/* Line 1455 of yacc.c  */
#line 400 "objc-exp.y"
#line 400 "objc-exp.y"
    { write_exp_elt_opcode (OP_FUNCALL);
    { write_exp_elt_opcode (OP_FUNCALL);
                          write_exp_elt_longcst ((LONGEST) end_arglist ());
                          write_exp_elt_longcst ((LONGEST) end_arglist ());
                          write_exp_elt_opcode (OP_FUNCALL); }
                          write_exp_elt_opcode (OP_FUNCALL); }
    break;
    break;
 
 
  case 39:
  case 39:
 
 
 
/* Line 1455 of yacc.c  */
#line 406 "objc-exp.y"
#line 406 "objc-exp.y"
    { start_arglist (); }
    { start_arglist (); }
    break;
    break;
 
 
  case 41:
  case 41:
 
 
 
/* Line 1455 of yacc.c  */
#line 413 "objc-exp.y"
#line 413 "objc-exp.y"
    { arglist_len = 1; }
    { arglist_len = 1; }
    break;
    break;
 
 
  case 42:
  case 42:
 
 
 
/* Line 1455 of yacc.c  */
#line 417 "objc-exp.y"
#line 417 "objc-exp.y"
    { arglist_len++; }
    { arglist_len++; }
    break;
    break;
 
 
  case 43:
  case 43:
 
 
 
/* Line 1455 of yacc.c  */
#line 421 "objc-exp.y"
#line 421 "objc-exp.y"
    { yyval.lval = end_arglist () - 1; }
    { (yyval.lval) = end_arglist () - 1; }
    break;
    break;
 
 
  case 44:
  case 44:
 
 
 
/* Line 1455 of yacc.c  */
#line 424 "objc-exp.y"
#line 424 "objc-exp.y"
    { write_exp_elt_opcode (OP_ARRAY);
    { write_exp_elt_opcode (OP_ARRAY);
                          write_exp_elt_longcst ((LONGEST) 0);
                          write_exp_elt_longcst ((LONGEST) 0);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].lval);
                          write_exp_elt_longcst ((LONGEST) (yyvsp[(3) - (3)].lval));
                          write_exp_elt_opcode (OP_ARRAY); }
                          write_exp_elt_opcode (OP_ARRAY); }
    break;
    break;
 
 
  case 45:
  case 45:
 
 
 
/* Line 1455 of yacc.c  */
#line 431 "objc-exp.y"
#line 431 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_MEMVAL);
    { write_exp_elt_opcode (UNOP_MEMVAL);
                          write_exp_elt_type (yyvsp[-2].tval);
                          write_exp_elt_type ((yyvsp[(2) - (4)].tval));
                          write_exp_elt_opcode (UNOP_MEMVAL); }
                          write_exp_elt_opcode (UNOP_MEMVAL); }
    break;
    break;
 
 
  case 46:
  case 46:
 
 
 
/* Line 1455 of yacc.c  */
#line 437 "objc-exp.y"
#line 437 "objc-exp.y"
    { write_exp_elt_opcode (UNOP_CAST);
    { write_exp_elt_opcode (UNOP_CAST);
                          write_exp_elt_type (yyvsp[-2].tval);
                          write_exp_elt_type ((yyvsp[(2) - (4)].tval));
                          write_exp_elt_opcode (UNOP_CAST); }
                          write_exp_elt_opcode (UNOP_CAST); }
    break;
    break;
 
 
  case 47:
  case 47:
 
 
 
/* Line 1455 of yacc.c  */
#line 443 "objc-exp.y"
#line 443 "objc-exp.y"
    { }
    { }
    break;
    break;
 
 
  case 48:
  case 48:
 
 
 
/* Line 1455 of yacc.c  */
#line 449 "objc-exp.y"
#line 449 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_REPEAT); }
    { write_exp_elt_opcode (BINOP_REPEAT); }
    break;
    break;
 
 
  case 49:
  case 49:
 
 
 
/* Line 1455 of yacc.c  */
#line 453 "objc-exp.y"
#line 453 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_MUL); }
    { write_exp_elt_opcode (BINOP_MUL); }
    break;
    break;
 
 
  case 50:
  case 50:
 
 
 
/* Line 1455 of yacc.c  */
#line 457 "objc-exp.y"
#line 457 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_DIV); }
    { write_exp_elt_opcode (BINOP_DIV); }
    break;
    break;
 
 
  case 51:
  case 51:
 
 
 
/* Line 1455 of yacc.c  */
#line 461 "objc-exp.y"
#line 461 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_REM); }
    { write_exp_elt_opcode (BINOP_REM); }
    break;
    break;
 
 
  case 52:
  case 52:
 
 
 
/* Line 1455 of yacc.c  */
#line 465 "objc-exp.y"
#line 465 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_ADD); }
    { write_exp_elt_opcode (BINOP_ADD); }
    break;
    break;
 
 
  case 53:
  case 53:
 
 
 
/* Line 1455 of yacc.c  */
#line 469 "objc-exp.y"
#line 469 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_SUB); }
    { write_exp_elt_opcode (BINOP_SUB); }
    break;
    break;
 
 
  case 54:
  case 54:
 
 
 
/* Line 1455 of yacc.c  */
#line 473 "objc-exp.y"
#line 473 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_LSH); }
    { write_exp_elt_opcode (BINOP_LSH); }
    break;
    break;
 
 
  case 55:
  case 55:
 
 
 
/* Line 1455 of yacc.c  */
#line 477 "objc-exp.y"
#line 477 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_RSH); }
    { write_exp_elt_opcode (BINOP_RSH); }
    break;
    break;
 
 
  case 56:
  case 56:
 
 
 
/* Line 1455 of yacc.c  */
#line 481 "objc-exp.y"
#line 481 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_EQUAL); }
    { write_exp_elt_opcode (BINOP_EQUAL); }
    break;
    break;
 
 
  case 57:
  case 57:
 
 
 
/* Line 1455 of yacc.c  */
#line 485 "objc-exp.y"
#line 485 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_NOTEQUAL); }
    { write_exp_elt_opcode (BINOP_NOTEQUAL); }
    break;
    break;
 
 
  case 58:
  case 58:
 
 
 
/* Line 1455 of yacc.c  */
#line 489 "objc-exp.y"
#line 489 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_LEQ); }
    { write_exp_elt_opcode (BINOP_LEQ); }
    break;
    break;
 
 
  case 59:
  case 59:
 
 
 
/* Line 1455 of yacc.c  */
#line 493 "objc-exp.y"
#line 493 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_GEQ); }
    { write_exp_elt_opcode (BINOP_GEQ); }
    break;
    break;
 
 
  case 60:
  case 60:
 
 
 
/* Line 1455 of yacc.c  */
#line 497 "objc-exp.y"
#line 497 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_LESS); }
    { write_exp_elt_opcode (BINOP_LESS); }
    break;
    break;
 
 
  case 61:
  case 61:
 
 
 
/* Line 1455 of yacc.c  */
#line 501 "objc-exp.y"
#line 501 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_GTR); }
    { write_exp_elt_opcode (BINOP_GTR); }
    break;
    break;
 
 
  case 62:
  case 62:
 
 
 
/* Line 1455 of yacc.c  */
#line 505 "objc-exp.y"
#line 505 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_BITWISE_AND); }
    { write_exp_elt_opcode (BINOP_BITWISE_AND); }
    break;
    break;
 
 
  case 63:
  case 63:
 
 
 
/* Line 1455 of yacc.c  */
#line 509 "objc-exp.y"
#line 509 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_BITWISE_XOR); }
    { write_exp_elt_opcode (BINOP_BITWISE_XOR); }
    break;
    break;
 
 
  case 64:
  case 64:
 
 
 
/* Line 1455 of yacc.c  */
#line 513 "objc-exp.y"
#line 513 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_BITWISE_IOR); }
    { write_exp_elt_opcode (BINOP_BITWISE_IOR); }
    break;
    break;
 
 
  case 65:
  case 65:
 
 
 
/* Line 1455 of yacc.c  */
#line 517 "objc-exp.y"
#line 517 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_LOGICAL_AND); }
    { write_exp_elt_opcode (BINOP_LOGICAL_AND); }
    break;
    break;
 
 
  case 66:
  case 66:
 
 
 
/* Line 1455 of yacc.c  */
#line 521 "objc-exp.y"
#line 521 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_LOGICAL_OR); }
    { write_exp_elt_opcode (BINOP_LOGICAL_OR); }
    break;
    break;
 
 
  case 67:
  case 67:
 
 
 
/* Line 1455 of yacc.c  */
#line 525 "objc-exp.y"
#line 525 "objc-exp.y"
    { write_exp_elt_opcode (TERNOP_COND); }
    { write_exp_elt_opcode (TERNOP_COND); }
    break;
    break;
 
 
  case 68:
  case 68:
 
 
 
/* Line 1455 of yacc.c  */
#line 529 "objc-exp.y"
#line 529 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_ASSIGN); }
    { write_exp_elt_opcode (BINOP_ASSIGN); }
    break;
    break;
 
 
  case 69:
  case 69:
 
 
 
/* Line 1455 of yacc.c  */
#line 533 "objc-exp.y"
#line 533 "objc-exp.y"
    { write_exp_elt_opcode (BINOP_ASSIGN_MODIFY);
    { write_exp_elt_opcode (BINOP_ASSIGN_MODIFY);
                          write_exp_elt_opcode (yyvsp[-1].opcode);
                          write_exp_elt_opcode ((yyvsp[(2) - (3)].opcode));
                          write_exp_elt_opcode (BINOP_ASSIGN_MODIFY); }
                          write_exp_elt_opcode (BINOP_ASSIGN_MODIFY); }
    break;
    break;
 
 
  case 70:
  case 70:
 
 
 
/* Line 1455 of yacc.c  */
#line 539 "objc-exp.y"
#line 539 "objc-exp.y"
    { write_exp_elt_opcode (OP_LONG);
    { write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (yyvsp[0].typed_val_int.type);
                          write_exp_elt_type ((yyvsp[(1) - (1)].typed_val_int).type);
                          write_exp_elt_longcst ((LONGEST)(yyvsp[0].typed_val_int.val));
                          write_exp_elt_longcst ((LONGEST)((yyvsp[(1) - (1)].typed_val_int).val));
                          write_exp_elt_opcode (OP_LONG); }
                          write_exp_elt_opcode (OP_LONG); }
    break;
    break;
 
 
  case 71:
  case 71:
 
 
 
/* Line 1455 of yacc.c  */
#line 546 "objc-exp.y"
#line 546 "objc-exp.y"
    { YYSTYPE val;
    { YYSTYPE val;
                          parse_number (yyvsp[0].ssym.stoken.ptr, yyvsp[0].ssym.stoken.length, 0, &val);
                          parse_number ((yyvsp[(1) - (1)].ssym).stoken.ptr, (yyvsp[(1) - (1)].ssym).stoken.length, 0, &val);
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (val.typed_val_int.type);
                          write_exp_elt_type (val.typed_val_int.type);
                          write_exp_elt_longcst ((LONGEST)val.typed_val_int.val);
                          write_exp_elt_longcst ((LONGEST)val.typed_val_int.val);
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_opcode (OP_LONG);
                        }
                        }
    break;
    break;
 
 
  case 72:
  case 72:
 
 
 
/* Line 1455 of yacc.c  */
#line 557 "objc-exp.y"
#line 557 "objc-exp.y"
    { write_exp_elt_opcode (OP_DOUBLE);
    { write_exp_elt_opcode (OP_DOUBLE);
                          write_exp_elt_type (yyvsp[0].typed_val_float.type);
                          write_exp_elt_type ((yyvsp[(1) - (1)].typed_val_float).type);
                          write_exp_elt_dblcst (yyvsp[0].typed_val_float.dval);
                          write_exp_elt_dblcst ((yyvsp[(1) - (1)].typed_val_float).dval);
                          write_exp_elt_opcode (OP_DOUBLE); }
                          write_exp_elt_opcode (OP_DOUBLE); }
    break;
    break;
 
 
  case 75:
  case 75:
 
 
 
/* Line 1455 of yacc.c  */
#line 571 "objc-exp.y"
#line 571 "objc-exp.y"
    {
    {
                          write_exp_elt_opcode (OP_OBJC_SELECTOR);
                          write_exp_elt_opcode (OP_OBJC_SELECTOR);
                          write_exp_string (yyvsp[0].sval);
                          write_exp_string ((yyvsp[(1) - (1)].sval));
                          write_exp_elt_opcode (OP_OBJC_SELECTOR); }
                          write_exp_elt_opcode (OP_OBJC_SELECTOR); }
    break;
    break;
 
 
  case 76:
  case 76:
 
 
 
/* Line 1455 of yacc.c  */
#line 578 "objc-exp.y"
#line 578 "objc-exp.y"
    { write_exp_elt_opcode (OP_LONG);
    { write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (parse_type->builtin_int);
                          write_exp_elt_type (parse_type->builtin_int);
                          CHECK_TYPEDEF (yyvsp[-1].tval);
                          CHECK_TYPEDEF ((yyvsp[(3) - (4)].tval));
                          write_exp_elt_longcst ((LONGEST) TYPE_LENGTH (yyvsp[-1].tval));
                          write_exp_elt_longcst ((LONGEST) TYPE_LENGTH ((yyvsp[(3) - (4)].tval)));
                          write_exp_elt_opcode (OP_LONG); }
                          write_exp_elt_opcode (OP_LONG); }
    break;
    break;
 
 
  case 77:
  case 77:
 
 
 
/* Line 1455 of yacc.c  */
#line 586 "objc-exp.y"
#line 586 "objc-exp.y"
    { /* C strings are converted into array
    { /* C strings are converted into array
                             constants with an explicit null byte
                             constants with an explicit null byte
                             added at the end.  Thus the array upper
                             added at the end.  Thus the array upper
                             bound is the string length.  There is no
                             bound is the string length.  There is no
                             such thing in C as a completely empty
                             such thing in C as a completely empty
                             string.  */
                             string.  */
                          char *sp = yyvsp[0].sval.ptr; int count = yyvsp[0].sval.length;
                          char *sp = (yyvsp[(1) - (1)].sval).ptr; int count = (yyvsp[(1) - (1)].sval).length;
                          while (count-- > 0)
                          while (count-- > 0)
                            {
                            {
                              write_exp_elt_opcode (OP_LONG);
                              write_exp_elt_opcode (OP_LONG);
                              write_exp_elt_type (parse_type->builtin_char);
                              write_exp_elt_type (parse_type->builtin_char);
                              write_exp_elt_longcst ((LONGEST)(*sp++));
                              write_exp_elt_longcst ((LONGEST)(*sp++));
Line 1926... Line 2408...
                          write_exp_elt_type (parse_type->builtin_char);
                          write_exp_elt_type (parse_type->builtin_char);
                          write_exp_elt_longcst ((LONGEST)'\0');
                          write_exp_elt_longcst ((LONGEST)'\0');
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_opcode (OP_ARRAY);
                          write_exp_elt_opcode (OP_ARRAY);
                          write_exp_elt_longcst ((LONGEST) 0);
                          write_exp_elt_longcst ((LONGEST) 0);
                          write_exp_elt_longcst ((LONGEST) (yyvsp[0].sval.length));
                          write_exp_elt_longcst ((LONGEST) ((yyvsp[(1) - (1)].sval).length));
                          write_exp_elt_opcode (OP_ARRAY); }
                          write_exp_elt_opcode (OP_ARRAY); }
    break;
    break;
 
 
  case 78:
  case 78:
 
 
 
/* Line 1455 of yacc.c  */
#line 613 "objc-exp.y"
#line 613 "objc-exp.y"
    { write_exp_elt_opcode (OP_OBJC_NSSTRING);
    { write_exp_elt_opcode (OP_OBJC_NSSTRING);
                          write_exp_string (yyvsp[0].sval);
                          write_exp_string ((yyvsp[(1) - (1)].sval));
                          write_exp_elt_opcode (OP_OBJC_NSSTRING); }
                          write_exp_elt_opcode (OP_OBJC_NSSTRING); }
    break;
    break;
 
 
  case 79:
  case 79:
 
 
 
/* Line 1455 of yacc.c  */
#line 619 "objc-exp.y"
#line 619 "objc-exp.y"
    {
    {
                          if (yyvsp[0].ssym.sym != 0)
                          if ((yyvsp[(1) - (1)].ssym).sym != 0)
                              yyval.bval = SYMBOL_BLOCK_VALUE (yyvsp[0].ssym.sym);
                              (yyval.bval) = SYMBOL_BLOCK_VALUE ((yyvsp[(1) - (1)].ssym).sym);
                          else
                          else
                            {
                            {
                              struct symtab *tem =
                              struct symtab *tem =
                                  lookup_symtab (copy_name (yyvsp[0].ssym.stoken));
                                  lookup_symtab (copy_name ((yyvsp[(1) - (1)].ssym).stoken));
                              if (tem)
                              if (tem)
                                yyval.bval = BLOCKVECTOR_BLOCK (BLOCKVECTOR (tem), STATIC_BLOCK);
                                (yyval.bval) = BLOCKVECTOR_BLOCK (BLOCKVECTOR (tem), STATIC_BLOCK);
                              else
                              else
                                error ("No file or function \"%s\".",
                                error ("No file or function \"%s\".",
                                       copy_name (yyvsp[0].ssym.stoken));
                                       copy_name ((yyvsp[(1) - (1)].ssym).stoken));
                            }
                            }
                        }
                        }
    break;
    break;
 
 
  case 80:
  case 80:
 
 
 
/* Line 1455 of yacc.c  */
#line 636 "objc-exp.y"
#line 636 "objc-exp.y"
    { struct symbol *tem
    { struct symbol *tem
                            = lookup_symbol (copy_name (yyvsp[0].sval), yyvsp[-2].bval,
                            = lookup_symbol (copy_name ((yyvsp[(3) - (3)].sval)), (yyvsp[(1) - (3)].bval),
                                             VAR_DOMAIN, (int *) NULL);
                                             VAR_DOMAIN, (int *) NULL);
                          if (!tem || SYMBOL_CLASS (tem) != LOC_BLOCK)
                          if (!tem || SYMBOL_CLASS (tem) != LOC_BLOCK)
                            error ("No function \"%s\" in specified context.",
                            error ("No function \"%s\" in specified context.",
                                   copy_name (yyvsp[0].sval));
                                   copy_name ((yyvsp[(3) - (3)].sval)));
                          yyval.bval = SYMBOL_BLOCK_VALUE (tem); }
                          (yyval.bval) = SYMBOL_BLOCK_VALUE (tem); }
    break;
    break;
 
 
  case 81:
  case 81:
 
 
 
/* Line 1455 of yacc.c  */
#line 646 "objc-exp.y"
#line 646 "objc-exp.y"
    { struct symbol *sym;
    { struct symbol *sym;
                          sym = lookup_symbol (copy_name (yyvsp[0].sval), yyvsp[-2].bval,
                          sym = lookup_symbol (copy_name ((yyvsp[(3) - (3)].sval)), (yyvsp[(1) - (3)].bval),
                                               VAR_DOMAIN, (int *) NULL);
                                               VAR_DOMAIN, (int *) NULL);
                          if (sym == 0)
                          if (sym == 0)
                            error ("No symbol \"%s\" in specified context.",
                            error ("No symbol \"%s\" in specified context.",
                                   copy_name (yyvsp[0].sval));
                                   copy_name ((yyvsp[(3) - (3)].sval)));
 
 
                          write_exp_elt_opcode (OP_VAR_VALUE);
                          write_exp_elt_opcode (OP_VAR_VALUE);
                          /* block_found is set by lookup_symbol.  */
                          /* block_found is set by lookup_symbol.  */
                          write_exp_elt_block (block_found);
                          write_exp_elt_block (block_found);
                          write_exp_elt_sym (sym);
                          write_exp_elt_sym (sym);
                          write_exp_elt_opcode (OP_VAR_VALUE); }
                          write_exp_elt_opcode (OP_VAR_VALUE); }
    break;
    break;
 
 
  case 82:
  case 82:
 
 
 
/* Line 1455 of yacc.c  */
#line 661 "objc-exp.y"
#line 661 "objc-exp.y"
    {
    {
                          struct type *type = yyvsp[-2].tval;
                          struct type *type = (yyvsp[(1) - (3)].tval);
                          if (TYPE_CODE (type) != TYPE_CODE_STRUCT
                          if (TYPE_CODE (type) != TYPE_CODE_STRUCT
                              && TYPE_CODE (type) != TYPE_CODE_UNION)
                              && TYPE_CODE (type) != TYPE_CODE_UNION)
                            error ("`%s' is not defined as an aggregate type.",
                            error ("`%s' is not defined as an aggregate type.",
                                   TYPE_NAME (type));
                                   TYPE_NAME (type));
 
 
                          write_exp_elt_opcode (OP_SCOPE);
                          write_exp_elt_opcode (OP_SCOPE);
                          write_exp_elt_type (type);
                          write_exp_elt_type (type);
                          write_exp_string (yyvsp[0].sval);
                          write_exp_string ((yyvsp[(3) - (3)].sval));
                          write_exp_elt_opcode (OP_SCOPE);
                          write_exp_elt_opcode (OP_SCOPE);
                        }
                        }
    break;
    break;
 
 
  case 83:
  case 83:
 
 
 
/* Line 1455 of yacc.c  */
#line 674 "objc-exp.y"
#line 674 "objc-exp.y"
    {
    {
                          struct type *type = yyvsp[-3].tval;
                          struct type *type = (yyvsp[(1) - (4)].tval);
                          struct stoken tmp_token;
                          struct stoken tmp_token;
                          if (TYPE_CODE (type) != TYPE_CODE_STRUCT
                          if (TYPE_CODE (type) != TYPE_CODE_STRUCT
                              && TYPE_CODE (type) != TYPE_CODE_UNION)
                              && TYPE_CODE (type) != TYPE_CODE_UNION)
                            error ("`%s' is not defined as an aggregate type.",
                            error ("`%s' is not defined as an aggregate type.",
                                   TYPE_NAME (type));
                                   TYPE_NAME (type));
 
 
                          if (strcmp (type_name_no_tag (type), yyvsp[0].sval.ptr) != 0)
                          if (strcmp (type_name_no_tag (type), (yyvsp[(4) - (4)].sval).ptr) != 0)
                            error ("invalid destructor `%s::~%s'",
                            error ("invalid destructor `%s::~%s'",
                                   type_name_no_tag (type), yyvsp[0].sval.ptr);
                                   type_name_no_tag (type), (yyvsp[(4) - (4)].sval).ptr);
 
 
                          tmp_token.ptr = (char*) alloca (yyvsp[0].sval.length + 2);
                          tmp_token.ptr = (char*) alloca ((yyvsp[(4) - (4)].sval).length + 2);
                          tmp_token.length = yyvsp[0].sval.length + 1;
                          tmp_token.length = (yyvsp[(4) - (4)].sval).length + 1;
                          tmp_token.ptr[0] = '~';
                          tmp_token.ptr[0] = '~';
                          memcpy (tmp_token.ptr+1, yyvsp[0].sval.ptr, yyvsp[0].sval.length);
                          memcpy (tmp_token.ptr+1, (yyvsp[(4) - (4)].sval).ptr, (yyvsp[(4) - (4)].sval).length);
                          tmp_token.ptr[tmp_token.length] = 0;
                          tmp_token.ptr[tmp_token.length] = 0;
                          write_exp_elt_opcode (OP_SCOPE);
                          write_exp_elt_opcode (OP_SCOPE);
                          write_exp_elt_type (type);
                          write_exp_elt_type (type);
                          write_exp_string (tmp_token);
                          write_exp_string (tmp_token);
                          write_exp_elt_opcode (OP_SCOPE);
                          write_exp_elt_opcode (OP_SCOPE);
                        }
                        }
    break;
    break;
 
 
  case 85:
  case 85:
 
 
 
/* Line 1455 of yacc.c  */
#line 700 "objc-exp.y"
#line 700 "objc-exp.y"
    {
    {
                          char *name = copy_name (yyvsp[0].sval);
                          char *name = copy_name ((yyvsp[(2) - (2)].sval));
                          struct symbol *sym;
                          struct symbol *sym;
                          struct minimal_symbol *msymbol;
                          struct minimal_symbol *msymbol;
 
 
                          sym =
                          sym =
                            lookup_symbol (name, (const struct block *) NULL,
                            lookup_symbol (name, (const struct block *) NULL,
Line 2054... Line 2550...
                            error ("No symbol \"%s\" in current context.", name);
                            error ("No symbol \"%s\" in current context.", name);
                        }
                        }
    break;
    break;
 
 
  case 86:
  case 86:
 
 
 
/* Line 1455 of yacc.c  */
#line 728 "objc-exp.y"
#line 728 "objc-exp.y"
    { struct symbol *sym = yyvsp[0].ssym.sym;
    { struct symbol *sym = (yyvsp[(1) - (1)].ssym).sym;
 
 
                          if (sym)
                          if (sym)
                            {
                            {
                              if (symbol_read_needs_frame (sym))
                              if (symbol_read_needs_frame (sym))
                                {
                                {
Line 2075... Line 2573...
                                 be in the same block.  */
                                 be in the same block.  */
                              write_exp_elt_block (NULL);
                              write_exp_elt_block (NULL);
                              write_exp_elt_sym (sym);
                              write_exp_elt_sym (sym);
                              write_exp_elt_opcode (OP_VAR_VALUE);
                              write_exp_elt_opcode (OP_VAR_VALUE);
                            }
                            }
                          else if (yyvsp[0].ssym.is_a_field_of_this)
                          else if ((yyvsp[(1) - (1)].ssym).is_a_field_of_this)
                            {
                            {
                              /* C++/ObjC: it hangs off of `this'/'self'.
                              /* C++/ObjC: it hangs off of `this'/'self'.
                                 Must not inadvertently convert from a
                                 Must not inadvertently convert from a
                                 method call to data ref.  */
                                 method call to data ref.  */
                              if (innermost_block == 0 ||
                              if (innermost_block == 0 ||
                                  contained_in (block_found, innermost_block))
                                  contained_in (block_found, innermost_block))
                                innermost_block = block_found;
                                innermost_block = block_found;
                              write_exp_elt_opcode (OP_OBJC_SELF);
                              write_exp_elt_opcode (OP_OBJC_SELF);
                              write_exp_elt_opcode (OP_OBJC_SELF);
                              write_exp_elt_opcode (OP_OBJC_SELF);
                              write_exp_elt_opcode (STRUCTOP_PTR);
                              write_exp_elt_opcode (STRUCTOP_PTR);
                              write_exp_string (yyvsp[0].ssym.stoken);
                              write_exp_string ((yyvsp[(1) - (1)].ssym).stoken);
                              write_exp_elt_opcode (STRUCTOP_PTR);
                              write_exp_elt_opcode (STRUCTOP_PTR);
                            }
                            }
                          else
                          else
                            {
                            {
                              struct minimal_symbol *msymbol;
                              struct minimal_symbol *msymbol;
                              char *arg = copy_name (yyvsp[0].ssym.stoken);
                              char *arg = copy_name ((yyvsp[(1) - (1)].ssym).stoken);
 
 
                              msymbol =
                              msymbol =
                                lookup_minimal_symbol (arg, NULL, NULL);
                                lookup_minimal_symbol (arg, NULL, NULL);
                              if (msymbol != NULL)
                              if (msymbol != NULL)
                                write_exp_msymbol (msymbol);
                                write_exp_msymbol (msymbol);
                              else if (!have_full_symbols () &&
                              else if (!have_full_symbols () &&
                                       !have_partial_symbols ())
                                       !have_partial_symbols ())
                                error ("No symbol table is loaded.  Use the \"file\" command.");
                                error ("No symbol table is loaded.  Use the \"file\" command.");
                              else
                              else
                                error ("No symbol \"%s\" in current context.",
                                error ("No symbol \"%s\" in current context.",
                                       copy_name (yyvsp[0].ssym.stoken));
                                       copy_name ((yyvsp[(1) - (1)].ssym).stoken));
                            }
                            }
                        }
                        }
    break;
    break;
 
 
  case 90:
  case 90:
 
 
 
/* Line 1455 of yacc.c  */
#line 791 "objc-exp.y"
#line 791 "objc-exp.y"
    { yyval.tval = follow_types (yyvsp[-1].tval); }
    { (yyval.tval) = follow_types ((yyvsp[(1) - (2)].tval)); }
    break;
    break;
 
 
  case 91:
  case 91:
 
 
 
/* Line 1455 of yacc.c  */
#line 793 "objc-exp.y"
#line 793 "objc-exp.y"
    { yyval.tval = follow_types (yyvsp[-2].tval); }
    { (yyval.tval) = follow_types ((yyvsp[(1) - (3)].tval)); }
    break;
    break;
 
 
  case 92:
  case 92:
 
 
 
/* Line 1455 of yacc.c  */
#line 795 "objc-exp.y"
#line 795 "objc-exp.y"
    { yyval.tval = follow_types (yyvsp[-2].tval); }
    { (yyval.tval) = follow_types ((yyvsp[(1) - (3)].tval)); }
    break;
    break;
 
 
  case 93:
  case 93:
 
 
 
/* Line 1455 of yacc.c  */
#line 799 "objc-exp.y"
#line 799 "objc-exp.y"
    { push_type (tp_pointer); yyval.voidval = 0; }
    { push_type (tp_pointer); (yyval.voidval) = 0; }
    break;
    break;
 
 
  case 94:
  case 94:
 
 
 
/* Line 1455 of yacc.c  */
#line 801 "objc-exp.y"
#line 801 "objc-exp.y"
    { push_type (tp_pointer); yyval.voidval = yyvsp[0].voidval; }
    { push_type (tp_pointer); (yyval.voidval) = (yyvsp[(2) - (2)].voidval); }
    break;
    break;
 
 
  case 95:
  case 95:
 
 
 
/* Line 1455 of yacc.c  */
#line 803 "objc-exp.y"
#line 803 "objc-exp.y"
    { push_type (tp_reference); yyval.voidval = 0; }
    { push_type (tp_reference); (yyval.voidval) = 0; }
    break;
    break;
 
 
  case 96:
  case 96:
 
 
 
/* Line 1455 of yacc.c  */
#line 805 "objc-exp.y"
#line 805 "objc-exp.y"
    { push_type (tp_reference); yyval.voidval = yyvsp[0].voidval; }
    { push_type (tp_reference); (yyval.voidval) = (yyvsp[(2) - (2)].voidval); }
    break;
    break;
 
 
  case 98:
  case 98:
 
 
 
/* Line 1455 of yacc.c  */
#line 810 "objc-exp.y"
#line 810 "objc-exp.y"
    { yyval.voidval = yyvsp[-1].voidval; }
    { (yyval.voidval) = (yyvsp[(2) - (3)].voidval); }
    break;
    break;
 
 
  case 99:
  case 99:
 
 
 
/* Line 1455 of yacc.c  */
#line 812 "objc-exp.y"
#line 812 "objc-exp.y"
    {
    {
                          push_type_int (yyvsp[0].lval);
                          push_type_int ((yyvsp[(2) - (2)].lval));
                          push_type (tp_array);
                          push_type (tp_array);
                        }
                        }
    break;
    break;
 
 
  case 100:
  case 100:
 
 
 
/* Line 1455 of yacc.c  */
#line 817 "objc-exp.y"
#line 817 "objc-exp.y"
    {
    {
                          push_type_int (yyvsp[0].lval);
                          push_type_int ((yyvsp[(1) - (1)].lval));
                          push_type (tp_array);
                          push_type (tp_array);
                          yyval.voidval = 0;
                          (yyval.voidval) = 0;
                        }
                        }
    break;
    break;
 
 
  case 101:
  case 101:
 
 
 
/* Line 1455 of yacc.c  */
#line 824 "objc-exp.y"
#line 824 "objc-exp.y"
    { push_type (tp_function); }
    { push_type (tp_function); }
    break;
    break;
 
 
  case 102:
  case 102:
 
 
 
/* Line 1455 of yacc.c  */
#line 826 "objc-exp.y"
#line 826 "objc-exp.y"
    { push_type (tp_function); }
    { push_type (tp_function); }
    break;
    break;
 
 
  case 103:
  case 103:
 
 
 
/* Line 1455 of yacc.c  */
#line 830 "objc-exp.y"
#line 830 "objc-exp.y"
    { yyval.lval = -1; }
    { (yyval.lval) = -1; }
    break;
    break;
 
 
  case 104:
  case 104:
 
 
 
/* Line 1455 of yacc.c  */
#line 832 "objc-exp.y"
#line 832 "objc-exp.y"
    { yyval.lval = yyvsp[-1].typed_val_int.val; }
    { (yyval.lval) = (yyvsp[(2) - (3)].typed_val_int).val; }
    break;
    break;
 
 
  case 105:
  case 105:
 
 
 
/* Line 1455 of yacc.c  */
#line 836 "objc-exp.y"
#line 836 "objc-exp.y"
    { yyval.voidval = 0; }
    { (yyval.voidval) = 0; }
    break;
    break;
 
 
  case 106:
  case 106:
 
 
 
/* Line 1455 of yacc.c  */
#line 838 "objc-exp.y"
#line 838 "objc-exp.y"
    { xfree (yyvsp[-1].tvec); yyval.voidval = 0; }
    { xfree ((yyvsp[(2) - (3)].tvec)); (yyval.voidval) = 0; }
    break;
    break;
 
 
  case 108:
  case 108:
 
 
 
/* Line 1455 of yacc.c  */
#line 854 "objc-exp.y"
#line 854 "objc-exp.y"
    { yyval.tval = yyvsp[0].tsym.type; }
    { (yyval.tval) = (yyvsp[(1) - (1)].tsym).type; }
    break;
    break;
 
 
  case 109:
  case 109:
 
 
 
/* Line 1455 of yacc.c  */
#line 856 "objc-exp.y"
#line 856 "objc-exp.y"
    {
    {
                          if (yyvsp[0].class.type == NULL)
                          if ((yyvsp[(1) - (1)].class).type == NULL)
                            error ("No symbol \"%s\" in current context.",
                            error ("No symbol \"%s\" in current context.",
                                   copy_name(yyvsp[0].class.stoken));
                                   copy_name((yyvsp[(1) - (1)].class).stoken));
                          else
                          else
                            yyval.tval = yyvsp[0].class.type;
                            (yyval.tval) = (yyvsp[(1) - (1)].class).type;
                        }
                        }
    break;
    break;
 
 
  case 110:
  case 110:
 
 
 
/* Line 1455 of yacc.c  */
#line 864 "objc-exp.y"
#line 864 "objc-exp.y"
    { yyval.tval = parse_type->builtin_int; }
    { (yyval.tval) = parse_type->builtin_int; }
    break;
    break;
 
 
  case 111:
  case 111:
 
 
 
/* Line 1455 of yacc.c  */
#line 866 "objc-exp.y"
#line 866 "objc-exp.y"
    { yyval.tval = parse_type->builtin_long; }
    { (yyval.tval) = parse_type->builtin_long; }
    break;
    break;
 
 
  case 112:
  case 112:
 
 
 
/* Line 1455 of yacc.c  */
#line 868 "objc-exp.y"
#line 868 "objc-exp.y"
    { yyval.tval = parse_type->builtin_short; }
    { (yyval.tval) = parse_type->builtin_short; }
    break;
    break;
 
 
  case 113:
  case 113:
 
 
 
/* Line 1455 of yacc.c  */
#line 870 "objc-exp.y"
#line 870 "objc-exp.y"
    { yyval.tval = parse_type->builtin_long; }
    { (yyval.tval) = parse_type->builtin_long; }
    break;
    break;
 
 
  case 114:
  case 114:
 
 
 
/* Line 1455 of yacc.c  */
#line 872 "objc-exp.y"
#line 872 "objc-exp.y"
    { yyval.tval = parse_type->builtin_unsigned_long; }
    { (yyval.tval) = parse_type->builtin_unsigned_long; }
    break;
    break;
 
 
  case 115:
  case 115:
 
 
 
/* Line 1455 of yacc.c  */
#line 874 "objc-exp.y"
#line 874 "objc-exp.y"
    { yyval.tval = parse_type->builtin_long_long; }
    { (yyval.tval) = parse_type->builtin_long_long; }
    break;
    break;
 
 
  case 116:
  case 116:
 
 
 
/* Line 1455 of yacc.c  */
#line 876 "objc-exp.y"
#line 876 "objc-exp.y"
    { yyval.tval = parse_type->builtin_long_long; }
    { (yyval.tval) = parse_type->builtin_long_long; }
    break;
    break;
 
 
  case 117:
  case 117:
 
 
 
/* Line 1455 of yacc.c  */
#line 878 "objc-exp.y"
#line 878 "objc-exp.y"
    { yyval.tval = parse_type->builtin_unsigned_long_long; }
    { (yyval.tval) = parse_type->builtin_unsigned_long_long; }
    break;
    break;
 
 
  case 118:
  case 118:
 
 
 
/* Line 1455 of yacc.c  */
#line 880 "objc-exp.y"
#line 880 "objc-exp.y"
    { yyval.tval = parse_type->builtin_unsigned_long_long; }
    { (yyval.tval) = parse_type->builtin_unsigned_long_long; }
    break;
    break;
 
 
  case 119:
  case 119:
 
 
 
/* Line 1455 of yacc.c  */
#line 882 "objc-exp.y"
#line 882 "objc-exp.y"
    { yyval.tval = parse_type->builtin_short; }
    { (yyval.tval) = parse_type->builtin_short; }
    break;
    break;
 
 
  case 120:
  case 120:
 
 
 
/* Line 1455 of yacc.c  */
#line 884 "objc-exp.y"
#line 884 "objc-exp.y"
    { yyval.tval = parse_type->builtin_unsigned_short; }
    { (yyval.tval) = parse_type->builtin_unsigned_short; }
    break;
    break;
 
 
  case 121:
  case 121:
 
 
 
/* Line 1455 of yacc.c  */
#line 886 "objc-exp.y"
#line 886 "objc-exp.y"
    { yyval.tval = parse_type->builtin_double; }
    { (yyval.tval) = parse_type->builtin_double; }
    break;
    break;
 
 
  case 122:
  case 122:
 
 
 
/* Line 1455 of yacc.c  */
#line 888 "objc-exp.y"
#line 888 "objc-exp.y"
    { yyval.tval = parse_type->builtin_long_double; }
    { (yyval.tval) = parse_type->builtin_long_double; }
    break;
    break;
 
 
  case 123:
  case 123:
 
 
 
/* Line 1455 of yacc.c  */
#line 890 "objc-exp.y"
#line 890 "objc-exp.y"
    { yyval.tval = lookup_struct (copy_name (yyvsp[0].sval),
    { (yyval.tval) = lookup_struct (copy_name ((yyvsp[(2) - (2)].sval)),
                                              expression_context_block); }
                                              expression_context_block); }
    break;
    break;
 
 
  case 124:
  case 124:
 
 
 
/* Line 1455 of yacc.c  */
#line 893 "objc-exp.y"
#line 893 "objc-exp.y"
    { yyval.tval = lookup_struct (copy_name (yyvsp[0].sval),
    { (yyval.tval) = lookup_struct (copy_name ((yyvsp[(2) - (2)].sval)),
                                              expression_context_block); }
                                              expression_context_block); }
    break;
    break;
 
 
  case 125:
  case 125:
 
 
 
/* Line 1455 of yacc.c  */
#line 896 "objc-exp.y"
#line 896 "objc-exp.y"
    { yyval.tval = lookup_union (copy_name (yyvsp[0].sval),
    { (yyval.tval) = lookup_union (copy_name ((yyvsp[(2) - (2)].sval)),
                                             expression_context_block); }
                                             expression_context_block); }
    break;
    break;
 
 
  case 126:
  case 126:
 
 
 
/* Line 1455 of yacc.c  */
#line 899 "objc-exp.y"
#line 899 "objc-exp.y"
    { yyval.tval = lookup_enum (copy_name (yyvsp[0].sval),
    { (yyval.tval) = lookup_enum (copy_name ((yyvsp[(2) - (2)].sval)),
                                            expression_context_block); }
                                            expression_context_block); }
    break;
    break;
 
 
  case 127:
  case 127:
 
 
 
/* Line 1455 of yacc.c  */
#line 902 "objc-exp.y"
#line 902 "objc-exp.y"
    { yyval.tval = lookup_unsigned_typename (parse_language,
    { (yyval.tval) = lookup_unsigned_typename (parse_language,
                                                         parse_gdbarch,
                                                         parse_gdbarch,
                                                         TYPE_NAME(yyvsp[0].tsym.type)); }
                                                         TYPE_NAME((yyvsp[(2) - (2)].tsym).type)); }
    break;
    break;
 
 
  case 128:
  case 128:
 
 
 
/* Line 1455 of yacc.c  */
#line 906 "objc-exp.y"
#line 906 "objc-exp.y"
    { yyval.tval = parse_type->builtin_unsigned_int; }
    { (yyval.tval) = parse_type->builtin_unsigned_int; }
    break;
    break;
 
 
  case 129:
  case 129:
 
 
 
/* Line 1455 of yacc.c  */
#line 908 "objc-exp.y"
#line 908 "objc-exp.y"
    { yyval.tval = lookup_signed_typename (parse_language,
    { (yyval.tval) = lookup_signed_typename (parse_language,
                                                       parse_gdbarch,
                                                       parse_gdbarch,
                                                       TYPE_NAME(yyvsp[0].tsym.type)); }
                                                       TYPE_NAME((yyvsp[(2) - (2)].tsym).type)); }
    break;
    break;
 
 
  case 130:
  case 130:
 
 
 
/* Line 1455 of yacc.c  */
#line 912 "objc-exp.y"
#line 912 "objc-exp.y"
    { yyval.tval = parse_type->builtin_int; }
    { (yyval.tval) = parse_type->builtin_int; }
    break;
    break;
 
 
  case 131:
  case 131:
 
 
 
/* Line 1455 of yacc.c  */
#line 914 "objc-exp.y"
#line 914 "objc-exp.y"
    { yyval.tval = lookup_template_type(copy_name(yyvsp[-3].sval), yyvsp[-1].tval,
    { (yyval.tval) = lookup_template_type(copy_name((yyvsp[(2) - (5)].sval)), (yyvsp[(4) - (5)].tval),
                                                    expression_context_block);
                                                    expression_context_block);
                        }
                        }
    break;
    break;
 
 
  case 132:
  case 132:
 
 
 
/* Line 1455 of yacc.c  */
#line 920 "objc-exp.y"
#line 920 "objc-exp.y"
    { yyval.tval = yyvsp[0].tval; }
    { (yyval.tval) = (yyvsp[(2) - (2)].tval); }
    break;
    break;
 
 
  case 133:
  case 133:
 
 
 
/* Line 1455 of yacc.c  */
#line 921 "objc-exp.y"
#line 921 "objc-exp.y"
    { yyval.tval = yyvsp[0].tval; }
    { (yyval.tval) = (yyvsp[(2) - (2)].tval); }
    break;
    break;
 
 
  case 135:
  case 135:
 
 
 
/* Line 1455 of yacc.c  */
#line 926 "objc-exp.y"
#line 926 "objc-exp.y"
    {
    {
                  yyval.tsym.stoken.ptr = "int";
                  (yyval.tsym).stoken.ptr = "int";
                  yyval.tsym.stoken.length = 3;
                  (yyval.tsym).stoken.length = 3;
                  yyval.tsym.type = parse_type->builtin_int;
                  (yyval.tsym).type = parse_type->builtin_int;
                }
                }
    break;
    break;
 
 
  case 136:
  case 136:
 
 
 
/* Line 1455 of yacc.c  */
#line 932 "objc-exp.y"
#line 932 "objc-exp.y"
    {
    {
                  yyval.tsym.stoken.ptr = "long";
                  (yyval.tsym).stoken.ptr = "long";
                  yyval.tsym.stoken.length = 4;
                  (yyval.tsym).stoken.length = 4;
                  yyval.tsym.type = parse_type->builtin_long;
                  (yyval.tsym).type = parse_type->builtin_long;
                }
                }
    break;
    break;
 
 
  case 137:
  case 137:
 
 
 
/* Line 1455 of yacc.c  */
#line 938 "objc-exp.y"
#line 938 "objc-exp.y"
    {
    {
                  yyval.tsym.stoken.ptr = "short";
                  (yyval.tsym).stoken.ptr = "short";
                  yyval.tsym.stoken.length = 5;
                  (yyval.tsym).stoken.length = 5;
                  yyval.tsym.type = parse_type->builtin_short;
                  (yyval.tsym).type = parse_type->builtin_short;
                }
                }
    break;
    break;
 
 
  case 138:
  case 138:
 
 
 
/* Line 1455 of yacc.c  */
#line 947 "objc-exp.y"
#line 947 "objc-exp.y"
    { yyval.tvec = (struct type **) xmalloc (sizeof (struct type *) * 2);
    { (yyval.tvec) = (struct type **) xmalloc (sizeof (struct type *) * 2);
                  yyval.ivec[0] = 1;     /* Number of types in vector.  */
                  (yyval.ivec)[0] = 1;   /* Number of types in vector.  */
                  yyval.tvec[1] = yyvsp[0].tval;
                  (yyval.tvec)[1] = (yyvsp[(1) - (1)].tval);
                }
                }
    break;
    break;
 
 
  case 139:
  case 139:
 
 
 
/* Line 1455 of yacc.c  */
#line 952 "objc-exp.y"
#line 952 "objc-exp.y"
    { int len = sizeof (struct type *) * (++(yyvsp[-2].ivec[0]) + 1);
    { int len = sizeof (struct type *) * (++((yyvsp[(1) - (3)].ivec)[0]) + 1);
                  yyval.tvec = (struct type **) xrealloc ((char *) yyvsp[-2].tvec, len);
                  (yyval.tvec) = (struct type **) xrealloc ((char *) (yyvsp[(1) - (3)].tvec), len);
                  yyval.tvec[yyval.ivec[0]] = yyvsp[0].tval;
                  (yyval.tvec)[(yyval.ivec)[0]] = (yyvsp[(3) - (3)].tval);
                }
                }
    break;
    break;
 
 
  case 140:
  case 140:
 
 
 
/* Line 1455 of yacc.c  */
#line 958 "objc-exp.y"
#line 958 "objc-exp.y"
    { yyval.sval = yyvsp[0].ssym.stoken; }
    { (yyval.sval) = (yyvsp[(1) - (1)].ssym).stoken; }
    break;
    break;
 
 
  case 141:
  case 141:
 
 
 
/* Line 1455 of yacc.c  */
#line 959 "objc-exp.y"
#line 959 "objc-exp.y"
    { yyval.sval = yyvsp[0].ssym.stoken; }
    { (yyval.sval) = (yyvsp[(1) - (1)].ssym).stoken; }
    break;
    break;
 
 
  case 142:
  case 142:
 
 
 
/* Line 1455 of yacc.c  */
#line 960 "objc-exp.y"
#line 960 "objc-exp.y"
    { yyval.sval = yyvsp[0].tsym.stoken; }
    { (yyval.sval) = (yyvsp[(1) - (1)].tsym).stoken; }
    break;
    break;
 
 
  case 143:
  case 143:
 
 
 
/* Line 1455 of yacc.c  */
#line 961 "objc-exp.y"
#line 961 "objc-exp.y"
    { yyval.sval = yyvsp[0].class.stoken; }
    { (yyval.sval) = (yyvsp[(1) - (1)].class).stoken; }
    break;
    break;
 
 
  case 144:
  case 144:
 
 
 
/* Line 1455 of yacc.c  */
#line 962 "objc-exp.y"
#line 962 "objc-exp.y"
    { yyval.sval = yyvsp[0].ssym.stoken; }
    { (yyval.sval) = (yyvsp[(1) - (1)].ssym).stoken; }
    break;
    break;
 
 
 
 
    }
 
 
 
/* Line 1000 of yacc.c.  */
 
#line 2419 "objc-exp.c.tmp"
 

 
  yyvsp -= yylen;
 
  yyssp -= yylen;
 
 
 
 
/* Line 1455 of yacc.c  */
 
#line 3021 "objc-exp.c.tmp"
 
      default: break;
 
    }
 
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
 
 
 
  YYPOPSTACK (yylen);
 
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  YY_STACK_PRINT (yyss, yyssp);
 
 
  *++yyvsp = yyval;
  *++yyvsp = yyval;
 
 
 
 
  /* Now `shift' the result of the reduction.  Determine what state
  /* Now `shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */
     number reduced by.  */
 
 
  yyn = yyr1[yyn];
  yyn = yyr1[yyn];
Line 2447... Line 3048...
yyerrlab:
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
  if (!yyerrstatus)
    {
    {
      ++yynerrs;
      ++yynerrs;
#if YYERROR_VERBOSE
#if ! YYERROR_VERBOSE
      yyn = yypact[yystate];
      yyerror (YY_("syntax error"));
 
#else
      if (YYPACT_NINF < yyn && yyn < YYLAST)
 
        {
        {
          YYSIZE_T yysize = 0;
        YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
          int yytype = YYTRANSLATE (yychar);
        if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
          const char* yyprefix;
 
          char *yymsg;
 
          int yyx;
 
 
 
          /* Start YYX at -YYN if negative to avoid negative indexes in
 
             YYCHECK.  */
 
          int yyxbegin = yyn < 0 ? -yyn : 0;
 
 
 
          /* Stay within bounds of both yycheck and yytname.  */
 
          int yychecklim = YYLAST - yyn;
 
          int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
 
          int yycount = 0;
 
 
 
          yyprefix = ", expecting ";
 
          for (yyx = yyxbegin; yyx < yyxend; ++yyx)
 
            if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
 
              {
              {
                yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
            YYSIZE_T yyalloc = 2 * yysize;
                yycount += 1;
            if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
                if (yycount == 5)
              yyalloc = YYSTACK_ALLOC_MAXIMUM;
 
            if (yymsg != yymsgbuf)
 
              YYSTACK_FREE (yymsg);
 
            yymsg = (char *) YYSTACK_ALLOC (yyalloc);
 
            if (yymsg)
 
              yymsg_alloc = yyalloc;
 
            else
                  {
                  {
                    yysize = 0;
                yymsg = yymsgbuf;
                    break;
                yymsg_alloc = sizeof yymsgbuf;
                  }
                  }
              }
              }
          yysize += (sizeof ("syntax error, unexpected ")
 
                     + yystrlen (yytname[yytype]));
 
          yymsg = (char *) YYSTACK_ALLOC (yysize);
 
          if (yymsg != 0)
 
            {
 
              char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
 
              yyp = yystpcpy (yyp, yytname[yytype]);
 
 
 
              if (yycount < 5)
        if (0 < yysize && yysize <= yymsg_alloc)
                {
 
                  yyprefix = ", expecting ";
 
                  for (yyx = yyxbegin; yyx < yyxend; ++yyx)
 
                    if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
 
                      {
                      {
                        yyp = yystpcpy (yyp, yyprefix);
            (void) yysyntax_error (yymsg, yystate, yychar);
                        yyp = yystpcpy (yyp, yytname[yyx]);
 
                        yyprefix = " or ";
 
                      }
 
                }
 
              yyerror (yymsg);
              yyerror (yymsg);
              YYSTACK_FREE (yymsg);
 
            }
            }
          else
          else
            yyerror ("syntax error; also virtual memory exhausted");
          {
 
            yyerror (YY_("syntax error"));
 
            if (yysize != 0)
 
              goto yyexhaustedlab;
        }
        }
      else
      }
#endif /* YYERROR_VERBOSE */
#endif
        yyerror ("syntax error");
 
    }
    }
 
 
 
 
 
 
  if (yyerrstatus == 3)
  if (yyerrstatus == 3)
Line 2518... Line 3094...
      /* If just tried and failed to reuse lookahead token after an
      /* If just tried and failed to reuse lookahead token after an
         error, discard it.  */
         error, discard it.  */
 
 
      if (yychar <= YYEOF)
      if (yychar <= YYEOF)
        {
        {
          /* If at end of input, pop the error token,
          /* Return failure if at end of input.  */
             then the rest of the stack, then return failure.  */
 
          if (yychar == YYEOF)
          if (yychar == YYEOF)
             for (;;)
 
               {
 
                 YYPOPSTACK;
 
                 if (yyssp == yyss)
 
                   YYABORT;
                   YYABORT;
                 YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
 
                 yydestruct (yystos[*yyssp], yyvsp);
 
               }
 
        }
        }
      else
      else
        {
        {
          YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
          yydestruct ("Error: discarding",
          yydestruct (yytoken, &yylval);
                      yytoken, &yylval);
          yychar = YYEMPTY;
          yychar = YYEMPTY;
 
 
        }
        }
    }
    }
 
 
  /* Else will try to reuse lookahead token after shifting the error
  /* Else will try to reuse lookahead token after shifting the error
     token.  */
     token.  */
Line 2549... Line 3116...
/*---------------------------------------------------.
/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
`---------------------------------------------------*/
yyerrorlab:
yyerrorlab:
 
 
#ifdef __GNUC__
  /* Pacify compilers like GCC when the user code never invokes
  /* Pacify GCC when the user code never invokes YYERROR and the label
     YYERROR and the label yyerrorlab therefore never appears in user
     yyerrorlab therefore never appears in user code.  */
     code.  */
  if (0)
  if (/*CONSTCOND*/ 0)
     goto yyerrorlab;
     goto yyerrorlab;
#endif
 
 
 
  yyvsp -= yylen;
  /* Do not reclaim the symbols of the rule which action triggered
  yyssp -= yylen;
     this YYERROR.  */
 
  YYPOPSTACK (yylen);
 
  yylen = 0;
 
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  yystate = *yyssp;
  goto yyerrlab1;
  goto yyerrlab1;
 
 
 
 
/*-------------------------------------------------------------.
/*-------------------------------------------------------------.
Line 2586... Line 3155...
 
 
      /* Pop the current state because it cannot handle the error token.  */
      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
      if (yyssp == yyss)
        YYABORT;
        YYABORT;
 
 
      YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
 
      yydestruct (yystos[yystate], yyvsp);
      yydestruct ("Error: popping",
      YYPOPSTACK;
                  yystos[yystate], yyvsp);
 
      YYPOPSTACK (1);
      yystate = *yyssp;
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
      YY_STACK_PRINT (yyss, yyssp);
    }
    }
 
 
  if (yyn == YYFINAL)
 
    YYACCEPT;
 
 
 
  YYDPRINTF ((stderr, "Shifting error token, "));
 
 
 
  *++yyvsp = yylval;
  *++yyvsp = yylval;
 
 
 
 
 
  /* Shift the error token.  */
 
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
 
 
  yystate = yyn;
  yystate = yyn;
  goto yynewstate;
  goto yynewstate;
 
 
 
 
/*-------------------------------------.
/*-------------------------------------.
Line 2619... Line 3187...
`-----------------------------------*/
`-----------------------------------*/
yyabortlab:
yyabortlab:
  yyresult = 1;
  yyresult = 1;
  goto yyreturn;
  goto yyreturn;
 
 
#ifndef yyoverflow
#if !defined(yyoverflow) || YYERROR_VERBOSE
/*----------------------------------------------.
/*-------------------------------------------------.
| yyoverflowlab -- parser overflow comes here.  |
| yyexhaustedlab -- memory exhaustion comes here.  |
`----------------------------------------------*/
`-------------------------------------------------*/
yyoverflowlab:
yyexhaustedlab:
  yyerror ("parser stack overflow");
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  yyresult = 2;
  /* Fall through.  */
  /* Fall through.  */
#endif
#endif
 
 
yyreturn:
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
#ifndef yyoverflow
  if (yyss != yyssa)
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
    YYSTACK_FREE (yyss);
#endif
#endif
  return yyresult;
#if YYERROR_VERBOSE
 
  if (yymsg != yymsgbuf)
 
    YYSTACK_FREE (yymsg);
 
#endif
 
  /* Make sure YYID is used.  */
 
  return YYID (yyresult);
}
}
 
 
 
 
 
 
 
/* Line 1675 of yacc.c  */
#line 976 "objc-exp.y"
#line 976 "objc-exp.y"
 
 
 
 
/* Take care of parsing a number (anything that starts with a digit).
/* Take care of parsing a number (anything that starts with a digit).
   Set yylval and return the token type; update lexptr.  LEN is the
   Set yylval and return the token type; update lexptr.  LEN is the
Line 3463... Line 4051...
    error ("A %s in expression, near `%s'.", (msg ? msg : "error"),
    error ("A %s in expression, near `%s'.", (msg ? msg : "error"),
           lexptr);
           lexptr);
}
}
 
 
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.