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

Subversion Repositories openrisc_me

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

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 330 Rev 342
/* 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.
 
 
/* Written by Richard Stallman by simplifying the original so called
   This special exception was added by the Free Software Foundation in
   ``semantic'' parser.  */
   version 2.2 of Bison.  */
 
 
 
/* C LALR(1) parser skeleton written by Richard Stallman, by
 
   simplifying the original so-called "semantic" parser.  */
 
 
/* All symbols defined below should begin with yy or YY, to avoid
/* 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
   define necessary library symbols; they are noted "INFRINGES ON
   define necessary library symbols; they are noted "INFRINGES ON
   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
 
 
 
 
 
 
/* Tokens.  */
/* Pull parsers.  */
#ifndef YYTOKENTYPE
#define YYPULL 1
# 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_LITERAL = 260,
 
     BOOLEAN_LITERAL = 261,
 
     NAME = 262,
 
     TYPENAME = 263,
 
     NAME_OR_INT = 264,
 
     SIZEOF = 265,
 
     ERROR = 266,
 
     INT_KEYWORD = 267,
 
     INT_S2_KEYWORD = 268,
 
     LOGICAL_S1_KEYWORD = 269,
 
     LOGICAL_S2_KEYWORD = 270,
 
     LOGICAL_S8_KEYWORD = 271,
 
     LOGICAL_KEYWORD = 272,
 
     REAL_KEYWORD = 273,
 
     REAL_S8_KEYWORD = 274,
 
     REAL_S16_KEYWORD = 275,
 
     COMPLEX_S8_KEYWORD = 276,
 
     COMPLEX_S16_KEYWORD = 277,
 
     COMPLEX_S32_KEYWORD = 278,
 
     BOOL_AND = 279,
 
     BOOL_OR = 280,
 
     BOOL_NOT = 281,
 
     CHARACTER = 282,
 
     VARIABLE = 283,
 
     ASSIGN_MODIFY = 284,
 
     ABOVE_COMMA = 285,
 
     NOTEQUAL = 286,
 
     EQUAL = 287,
 
     GEQ = 288,
 
     LEQ = 289,
 
     GREATERTHAN = 290,
 
     LESSTHAN = 291,
 
     RSH = 292,
 
     LSH = 293,
 
     STARSTAR = 294,
 
     UNARY = 295
 
   };
 
#endif
 
#define INT 258
 
#define FLOAT 259
 
#define STRING_LITERAL 260
 
#define BOOLEAN_LITERAL 261
 
#define NAME 262
 
#define TYPENAME 263
 
#define NAME_OR_INT 264
 
#define SIZEOF 265
 
#define ERROR 266
 
#define INT_KEYWORD 267
 
#define INT_S2_KEYWORD 268
 
#define LOGICAL_S1_KEYWORD 269
 
#define LOGICAL_S2_KEYWORD 270
 
#define LOGICAL_S8_KEYWORD 271
 
#define LOGICAL_KEYWORD 272
 
#define REAL_KEYWORD 273
 
#define REAL_S8_KEYWORD 274
 
#define REAL_S16_KEYWORD 275
 
#define COMPLEX_S8_KEYWORD 276
 
#define COMPLEX_S16_KEYWORD 277
 
#define COMPLEX_S32_KEYWORD 278
 
#define BOOL_AND 279
 
#define BOOL_OR 280
 
#define BOOL_NOT 281
 
#define CHARACTER 282
 
#define VARIABLE 283
 
#define ASSIGN_MODIFY 284
 
#define ABOVE_COMMA 285
 
#define NOTEQUAL 286
 
#define EQUAL 287
 
#define GEQ 288
 
#define LEQ 289
 
#define GREATERTHAN 290
 
#define LESSTHAN 291
 
#define RSH 292
 
#define LSH 293
 
#define STARSTAR 294
 
#define UNARY 295
 
 
 
 
/* Using locations.  */
 
#define YYLSP_NEEDED 0
 
 
 
 
 
 
/* Copy the first part of user declarations.  */
/* Copy the first part of user declarations.  */
 
 
 
/* Line 189 of yacc.c  */
#line 44 "f-exp.y"
#line 44 "f-exp.y"
 
 
 
 
#include "defs.h"
#include "defs.h"
#include "gdb_string.h"
#include "gdb_string.h"
#include "expression.h"
#include "expression.h"
#include "value.h"
#include "value.h"
#include "parser-defs.h"
#include "parser-defs.h"
#include "language.h"
#include "language.h"
#include "f-lang.h"
#include "f-lang.h"
#include "bfd.h" /* Required by objfiles.h.  */
#include "bfd.h" /* Required by objfiles.h.  */
#include "symfile.h" /* Required by objfiles.h.  */
#include "symfile.h" /* Required by objfiles.h.  */
#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
#include "block.h"
#include "block.h"
#include <ctype.h>
#include <ctype.h>
 
 
#define parse_type builtin_type (parse_gdbarch)
#define parse_type builtin_type (parse_gdbarch)
#define parse_f_type builtin_f_type (parse_gdbarch)
#define parse_f_type builtin_f_type (parse_gdbarch)
 
 
/* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc),
/* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc),
   as well as gratuitiously global symbol names, so we can have multiple
   as well as gratuitiously global symbol names, so we can have multiple
   yacc generated parsers in gdb.  Note that these are only the variables
   yacc generated parsers in gdb.  Note that these are only the variables
   produced by yacc.  If other parser generators (bison, byacc, etc) produce
   produced by yacc.  If other parser generators (bison, byacc, etc) produce
   additional global names that conflict at link time, then those parser
   additional global names that conflict at link time, then those parser
   generators need to be fixed instead of adding those names to this list. */
   generators need to be fixed instead of adding those names to this list. */
 
 
#define yymaxdepth f_maxdepth
#define yymaxdepth f_maxdepth
#define yyparse f_parse
#define yyparse f_parse
#define yylex   f_lex
#define yylex   f_lex
#define yyerror f_error
#define yyerror f_error
#define yylval  f_lval
#define yylval  f_lval
#define yychar  f_char
#define yychar  f_char
#define yydebug f_debug
#define yydebug f_debug
#define yypact  f_pact  
#define yypact  f_pact  
#define yyr1    f_r1                    
#define yyr1    f_r1                    
#define yyr2    f_r2                    
#define yyr2    f_r2                    
#define yydef   f_def           
#define yydef   f_def           
#define yychk   f_chk           
#define yychk   f_chk           
#define yypgo   f_pgo           
#define yypgo   f_pgo           
#define yyact   f_act           
#define yyact   f_act           
#define yyexca  f_exca
#define yyexca  f_exca
#define yyerrflag f_errflag
#define yyerrflag f_errflag
#define yynerrs f_nerrs
#define yynerrs f_nerrs
#define yyps    f_ps
#define yyps    f_ps
#define yypv    f_pv
#define yypv    f_pv
#define yys     f_s
#define yys     f_s
#define yy_yys  f_yys
#define yy_yys  f_yys
#define yystate f_state
#define yystate f_state
#define yytmp   f_tmp
#define yytmp   f_tmp
#define yyv     f_v
#define yyv     f_v
#define yy_yyv  f_yyv
#define yy_yyv  f_yyv
#define yyval   f_val
#define yyval   f_val
#define yylloc  f_lloc
#define yylloc  f_lloc
#define yyreds  f_reds          /* With YYDEBUG defined */
#define yyreds  f_reds          /* With YYDEBUG defined */
#define yytoks  f_toks          /* With YYDEBUG defined */
#define yytoks  f_toks          /* With YYDEBUG defined */
#define yyname  f_name          /* With YYDEBUG defined */
#define yyname  f_name          /* With YYDEBUG defined */
#define yyrule  f_rule          /* With YYDEBUG defined */
#define yyrule  f_rule          /* With YYDEBUG defined */
#define yylhs   f_yylhs
#define yylhs   f_yylhs
#define yylen   f_yylen
#define yylen   f_yylen
#define yydefred f_yydefred
#define yydefred f_yydefred
#define yydgoto f_yydgoto
#define yydgoto f_yydgoto
#define yysindex f_yysindex
#define yysindex f_yysindex
#define yyrindex f_yyrindex
#define yyrindex f_yyrindex
#define yygindex f_yygindex
#define yygindex f_yygindex
#define yytable  f_yytable
#define yytable  f_yytable
#define yycheck  f_yycheck
#define yycheck  f_yycheck
 
 
#ifndef YYDEBUG
#ifndef YYDEBUG
#define YYDEBUG 1               /* Default to yydebug support */
#define YYDEBUG 1               /* Default to yydebug support */
#endif
#endif
 
 
#define YYFPRINTF parser_fprintf
#define YYFPRINTF parser_fprintf
 
 
int yyparse (void);
int yyparse (void);
 
 
static int yylex (void);
static int yylex (void);
 
 
void yyerror (char *);
void yyerror (char *);
 
 
static void growbuf_by_size (int);
static void growbuf_by_size (int);
 
 
static int match_string_literal (void);
static int match_string_literal (void);
 
 
 
 
 
 
 
/* Line 189 of yacc.c  */
 
#line 158 "f-exp.c.tmp"
 
 
/* Enabling traces.  */
/* Enabling traces.  */
#ifndef YYDEBUG
#ifndef YYDEBUG
# define YYDEBUG 0
# define YYDEBUG 0
#endif
#endif
 
 
/* Enabling verbose error messages.  */
/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# 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_LITERAL = 260,
 
     BOOLEAN_LITERAL = 261,
 
     NAME = 262,
 
     TYPENAME = 263,
 
     NAME_OR_INT = 264,
 
     SIZEOF = 265,
 
     ERROR = 266,
 
     INT_KEYWORD = 267,
 
     INT_S2_KEYWORD = 268,
 
     LOGICAL_S1_KEYWORD = 269,
 
     LOGICAL_S2_KEYWORD = 270,
 
     LOGICAL_S8_KEYWORD = 271,
 
     LOGICAL_KEYWORD = 272,
 
     REAL_KEYWORD = 273,
 
     REAL_S8_KEYWORD = 274,
 
     REAL_S16_KEYWORD = 275,
 
     COMPLEX_S8_KEYWORD = 276,
 
     COMPLEX_S16_KEYWORD = 277,
 
     COMPLEX_S32_KEYWORD = 278,
 
     BOOL_AND = 279,
 
     BOOL_OR = 280,
 
     BOOL_NOT = 281,
 
     CHARACTER = 282,
 
     VARIABLE = 283,
 
     ASSIGN_MODIFY = 284,
 
     ABOVE_COMMA = 285,
 
     NOTEQUAL = 286,
 
     EQUAL = 287,
 
     GEQ = 288,
 
     LEQ = 289,
 
     GREATERTHAN = 290,
 
     LESSTHAN = 291,
 
     RSH = 292,
 
     LSH = 293,
 
     STARSTAR = 294,
 
     UNARY = 295
 
   };
 
#endif
 
/* Tokens.  */
 
#define INT 258
 
#define FLOAT 259
 
#define STRING_LITERAL 260
 
#define BOOLEAN_LITERAL 261
 
#define NAME 262
 
#define TYPENAME 263
 
#define NAME_OR_INT 264
 
#define SIZEOF 265
 
#define ERROR 266
 
#define INT_KEYWORD 267
 
#define INT_S2_KEYWORD 268
 
#define LOGICAL_S1_KEYWORD 269
 
#define LOGICAL_S2_KEYWORD 270
 
#define LOGICAL_S8_KEYWORD 271
 
#define LOGICAL_KEYWORD 272
 
#define REAL_KEYWORD 273
 
#define REAL_S8_KEYWORD 274
 
#define REAL_S16_KEYWORD 275
 
#define COMPLEX_S8_KEYWORD 276
 
#define COMPLEX_S16_KEYWORD 277
 
#define COMPLEX_S32_KEYWORD 278
 
#define BOOL_AND 279
 
#define BOOL_OR 280
 
#define BOOL_NOT 281
 
#define CHARACTER 282
 
#define VARIABLE 283
 
#define ASSIGN_MODIFY 284
 
#define ABOVE_COMMA 285
 
#define NOTEQUAL 286
 
#define EQUAL 287
 
#define GEQ 288
 
#define LEQ 289
 
#define GREATERTHAN 290
 
#define LESSTHAN 291
 
#define RSH 292
 
#define LSH 293
 
#define STARSTAR 294
 
#define UNARY 295
 
 
 
 
 
 
 
 
 
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
 
typedef union YYSTYPE
 
{
 
 
 
/* Line 214 of yacc.c  */
#line 133 "f-exp.y"
#line 133 "f-exp.y"
typedef union YYSTYPE {
 
    LONGEST lval;
    LONGEST lval;
    struct {
    struct {
      LONGEST val;
      LONGEST val;
      struct type *type;
      struct type *type;
    } typed_val;
    } typed_val;
    DOUBLEST dval;
    DOUBLEST dval;
    struct symbol *sym;
    struct symbol *sym;
    struct type *tval;
    struct type *tval;
    struct stoken sval;
    struct stoken sval;
    struct ttype tsym;
    struct ttype tsym;
    struct symtoken ssym;
    struct symtoken ssym;
    int voidval;
    int voidval;
    struct block *bval;
    struct block *bval;
    enum exp_opcode opcode;
    enum exp_opcode opcode;
    struct internalvar *ivar;
    struct internalvar *ivar;
 
 
    struct type **tvec;
    struct type **tvec;
    int *ivec;
    int *ivec;
 
 
 
 
 
 
 
/* Line 214 of yacc.c  */
 
#line 297 "f-exp.c.tmp"
  } YYSTYPE;
  } YYSTYPE;
/* Line 191 of yacc.c.  */
# define YYSTYPE_IS_TRIVIAL 1
#line 261 "f-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 154 "f-exp.y"
#line 154 "f-exp.y"
 
 
/* YYSTYPE gets defined by %union */
/* YYSTYPE gets defined by %union */
static int parse_number (char *, int, int, YYSTYPE *);
static int parse_number (char *, int, int, YYSTYPE *);
 
 
 
 
/* Line 214 of yacc.c.  */
/* Line 264 of yacc.c  */
#line 277 "f-exp.c.tmp"
#line 315 "f-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
#  else
 
# define YYUSE(e) /* empty */
 
#endif
 
 
 
/* Identity function, used to suppress warnings about constant conditions.  */
 
#ifndef lint
 
# define YYID(n) (n)
 
#else
 
#if (defined __STDC__ || defined __C99__FUNC__ \
 
     || defined __cplusplus || defined _MSC_VER)
 
static int
 
YYID (int yyi)
 
#else
 
static int
 
YYID (yyi)
 
    int yyi;
 
#endif
 
{
 
  return yyi;
 
}
 
#endif
 
 
 
#if ! defined yyoverflow || YYERROR_VERBOSE
 
 
 
/* The parser invokes alloca or 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
 
#  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
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
#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
#endif
 
 
#if defined (__STDC__) || defined (__cplusplus)
 
   typedef signed char yysigned_char;
 
#else
 
   typedef short yysigned_char;
 
#endif
 
 
 
/* YYFINAL -- State number of the termination state. */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL  47
#define YYFINAL  47
/* YYLAST -- Last index in YYTABLE.  */
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   529
#define YYLAST   529
 
 
/* YYNTOKENS -- Number of terminals. */
/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  57
#define YYNTOKENS  57
/* YYNNTS -- Number of nonterminals. */
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  18
#define YYNNTS  18
/* YYNRULES -- Number of rules. */
/* YYNRULES -- Number of rules.  */
#define YYNRULES  86
#define YYNRULES  86
/* YYNRULES -- Number of states. */
/* YYNRULES -- Number of states.  */
#define YYNSTATES  131
#define YYNSTATES  131
 
 
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
#define YYUNDEFTOK  2
#define YYMAXUTOK   295
#define YYMAXUTOK   295
 
 
#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,     2,     2,     2,     2,    51,    36,     2,
       2,     2,     2,     2,     2,     2,     2,    51,    36,     2,
      53,    54,    48,    46,    30,    47,     2,    49,     2,     2,
      53,    54,    48,    46,    30,    47,     2,    49,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,    56,     2,
       2,     2,     2,     2,     2,     2,     2,     2,    56,     2,
       2,    32,     2,    33,    45,     2,     2,     2,     2,     2,
       2,    32,     2,    33,    45,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,    35,     2,     2,     2,     2,     2,
       2,     2,     2,     2,    35,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,    34,     2,    55,     2,     2,     2,
       2,     2,     2,     2,    34,     2,    55,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    31,    37,    38,    39,    40,
      25,    26,    27,    28,    29,    31,    37,    38,    39,    40,
      41,    42,    43,    44,    50,    52
      41,    42,    43,    44,    50,    52
};
};
 
 
#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 char yyprhs[] =
static const yytype_uint8 yyprhs[] =
{
{
       0,     0,     3,     5,     7,     9,    13,    16,    19,    22,
       0,     0,     3,     5,     7,     9,    13,    16,    19,    22,
      25,    28,    31,    32,    38,    39,    41,    43,    47,    51,
      25,    28,    31,    32,    38,    39,    41,    43,    47,    51,
      54,    57,    59,    63,    67,    72,    76,    80,    84,    88,
      54,    57,    59,    63,    67,    72,    76,    80,    84,    88,
      92,    96,   100,   104,   108,   112,   116,   120,   124,   128,
      92,    96,   100,   104,   108,   112,   116,   120,   124,   128,
     132,   136,   140,   144,   148,   152,   156,   160,   162,   164,
     132,   136,   140,   144,   148,   152,   156,   160,   162,   164,
     166,   168,   170,   175,   177,   179,   181,   183,   185,   188,
     166,   168,   170,   175,   177,   179,   181,   183,   185,   188,
     190,   193,   195,   198,   200,   204,   207,   209,   212,   216,
     190,   193,   195,   198,   200,   204,   207,   209,   212,   216,
     218,   220,   222,   224,   226,   228,   230,   232,   234,   236,
     218,   220,   222,   224,   226,   228,   230,   232,   234,   236,
     238,   240,   242,   244,   246,   250,   252
     238,   240,   242,   244,   246,   250,   252
};
};
 
 
/* 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[] =
{
{
      58,     0,    -1,    60,    -1,    59,    -1,    66,    -1,    53,
      58,     0,    -1,    60,    -1,    59,    -1,    66,    -1,    53,
      60,    54,    -1,    48,    60,    -1,    36,    60,    -1,    47,
      60,    54,    -1,    48,    60,    -1,    36,    60,    -1,    47,
      60,    -1,    26,    60,    -1,    55,    60,    -1,    10,    60,
      60,    -1,    26,    60,    -1,    55,    60,    -1,    10,    60,
      -1,    -1,    60,    53,    61,    62,    54,    -1,    -1,    60,
      -1,    -1,    60,    53,    61,    62,    54,    -1,    -1,    60,
      -1,    63,    -1,    62,    30,    60,    -1,    60,    56,    60,
      -1,    63,    -1,    62,    30,    60,    -1,    60,    56,    60,
      -1,    60,    56,    -1,    56,    60,    -1,    56,    -1,    60,
      -1,    60,    56,    -1,    56,    60,    -1,    56,    -1,    60,
      30,    60,    -1,    53,    64,    54,    -1,    53,    66,    54,
      30,    60,    -1,    53,    64,    54,    -1,    53,    66,    54,
      60,    -1,    60,    51,    73,    -1,    60,    45,    60,    -1,
      60,    -1,    60,    51,    73,    -1,    60,    45,    60,    -1,
      60,    50,    60,    -1,    60,    48,    60,    -1,    60,    49,
      60,    50,    60,    -1,    60,    48,    60,    -1,    60,    49,
      60,    -1,    60,    46,    60,    -1,    60,    47,    60,    -1,
      60,    -1,    60,    46,    60,    -1,    60,    47,    60,    -1,
      60,    44,    60,    -1,    60,    43,    60,    -1,    60,    38,
      60,    44,    60,    -1,    60,    43,    60,    -1,    60,    38,
      60,    -1,    60,    37,    60,    -1,    60,    40,    60,    -1,
      60,    -1,    60,    37,    60,    -1,    60,    40,    60,    -1,
      60,    39,    60,    -1,    60,    42,    60,    -1,    60,    41,
      60,    39,    60,    -1,    60,    42,    60,    -1,    60,    41,
      60,    -1,    60,    36,    60,    -1,    60,    35,    60,    -1,
      60,    -1,    60,    36,    60,    -1,    60,    35,    60,    -1,
      60,    34,    60,    -1,    60,    24,    60,    -1,    60,    25,
      60,    34,    60,    -1,    60,    24,    60,    -1,    60,    25,
      60,    -1,    60,    32,    60,    -1,    60,    29,    60,    -1,
      60,    -1,    60,    32,    60,    -1,    60,    29,    60,    -1,
       3,    -1,     9,    -1,     4,    -1,    65,    -1,    28,    -1,
       3,    -1,     9,    -1,     4,    -1,    65,    -1,    28,    -1,
      10,    53,    66,    54,    -1,     6,    -1,     5,    -1,    74,
      10,    53,    66,    54,    -1,     6,    -1,     5,    -1,    74,
      -1,    67,    -1,    71,    -1,    71,    68,    -1,    48,    -1,
      -1,    67,    -1,    71,    -1,    71,    68,    -1,    48,    -1,
      48,    68,    -1,    36,    -1,    36,    68,    -1,    69,    -1,
      48,    68,    -1,    36,    -1,    36,    68,    -1,    69,    -1,
      53,    68,    54,    -1,    69,    70,    -1,    70,    -1,    53,
      53,    68,    54,    -1,    69,    70,    -1,    70,    -1,    53,
      54,    -1,    53,    72,    54,    -1,     8,    -1,    12,    -1,
      54,    -1,    53,    72,    54,    -1,     8,    -1,    12,    -1,
      13,    -1,    27,    -1,    16,    -1,    17,    -1,    15,    -1,
      13,    -1,    27,    -1,    16,    -1,    17,    -1,    15,    -1,
      14,    -1,    18,    -1,    19,    -1,    20,    -1,    21,    -1,
      14,    -1,    18,    -1,    19,    -1,    20,    -1,    21,    -1,
      22,    -1,    23,    -1,    66,    -1,    72,    30,    66,    -1,
      22,    -1,    23,    -1,    66,    -1,    72,    30,    66,    -1,
       7,    -1,     7,    -1
       7,    -1,     7,    -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,   233,   233,   234,   237,   243,   248,   252,   256,   260,
       0,   233,   233,   234,   237,   243,   248,   252,   256,   260,
     264,   268,   278,   277,   285,   288,   292,   296,   302,   308,
     264,   268,   278,   277,   285,   288,   292,   296,   302,   308,
     314,   320,   326,   330,   336,   342,   350,   354,   358,   362,
     314,   320,   326,   330,   336,   342,   350,   354,   358,   362,
     366,   370,   374,   378,   382,   386,   390,   394,   398,   402,
     366,   370,   374,   378,   382,   386,   390,   394,   398,   402,
     406,   410,   414,   418,   423,   427,   431,   437,   444,   453,
     406,   410,   414,   418,   423,   427,   431,   437,   444,   453,
     460,   463,   466,   474,   481,   489,   529,   532,   533,   576,
     460,   463,   466,   474,   481,   489,   529,   532,   533,   576,
     578,   580,   582,   584,   587,   589,   591,   595,   597,   602,
     578,   580,   582,   584,   587,   589,   591,   595,   597,   602,
     604,   606,   608,   610,   612,   614,   616,   618,   620,   622,
     604,   606,   608,   610,   612,   614,   616,   618,   620,   622,
     624,   626,   628,   633,   638,   645,   649
     624,   626,   628,   633,   638,   645,   649
};
};
#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_LITERAL",
  "$end", "error", "$undefined", "INT", "FLOAT", "STRING_LITERAL",
  "BOOLEAN_LITERAL", "NAME", "TYPENAME", "NAME_OR_INT", "SIZEOF", "ERROR",
  "BOOLEAN_LITERAL", "NAME", "TYPENAME", "NAME_OR_INT", "SIZEOF", "ERROR",
  "INT_KEYWORD", "INT_S2_KEYWORD", "LOGICAL_S1_KEYWORD",
  "INT_KEYWORD", "INT_S2_KEYWORD", "LOGICAL_S1_KEYWORD",
  "LOGICAL_S2_KEYWORD", "LOGICAL_S8_KEYWORD", "LOGICAL_KEYWORD",
  "LOGICAL_S2_KEYWORD", "LOGICAL_S8_KEYWORD", "LOGICAL_KEYWORD",
  "REAL_KEYWORD", "REAL_S8_KEYWORD", "REAL_S16_KEYWORD",
  "REAL_KEYWORD", "REAL_S8_KEYWORD", "REAL_S16_KEYWORD",
  "COMPLEX_S8_KEYWORD", "COMPLEX_S16_KEYWORD", "COMPLEX_S32_KEYWORD",
  "COMPLEX_S8_KEYWORD", "COMPLEX_S16_KEYWORD", "COMPLEX_S32_KEYWORD",
  "BOOL_AND", "BOOL_OR", "BOOL_NOT", "CHARACTER", "VARIABLE",
  "BOOL_AND", "BOOL_OR", "BOOL_NOT", "CHARACTER", "VARIABLE",
  "ASSIGN_MODIFY", "','", "ABOVE_COMMA", "'='", "'?'", "'|'", "'^'", "'&'",
  "ASSIGN_MODIFY", "','", "ABOVE_COMMA", "'='", "'?'", "'|'", "'^'", "'&'",
  "NOTEQUAL", "EQUAL", "GEQ", "LEQ", "GREATERTHAN", "LESSTHAN", "RSH",
  "NOTEQUAL", "EQUAL", "GEQ", "LEQ", "GREATERTHAN", "LESSTHAN", "RSH",
  "LSH", "'@'", "'+'", "'-'", "'*'", "'/'", "STARSTAR", "'%'", "UNARY",
  "LSH", "'@'", "'+'", "'-'", "'*'", "'/'", "STARSTAR", "'%'", "UNARY",
  "'('", "')'", "'~'", "':'", "$accept", "start", "type_exp", "exp", "@1",
  "'('", "')'", "'~'", "':'", "$accept", "start", "type_exp", "exp", "$@1",
  "arglist", "subrange", "complexnum", "variable", "type", "ptype",
  "arglist", "subrange", "complexnum", "variable", "type", "ptype",
  "abs_decl", "direct_abs_decl", "func_mod", "typebase",
  "abs_decl", "direct_abs_decl", "func_mod", "typebase",
  "nonempty_typelist", "name", "name_not_typename", 0
  "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,   124,    94,    38,   286,   287,   288,
      44,   285,    61,    63,   124,    94,    38,   286,   287,   288,
     289,   290,   291,   292,   293,    64,    43,    45,    42,    47,
     289,   290,   291,   292,   293,    64,    43,    45,    42,    47,
     294,    37,   295,    40,    41,   126,    58
     294,    37,   295,    40,    41,   126,    58
};
};
# 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,    57,    58,    58,    59,    60,    60,    60,    60,    60,
       0,    57,    58,    58,    59,    60,    60,    60,    60,    60,
      60,    60,    61,    60,    62,    62,    62,    62,    63,    63,
      60,    60,    61,    60,    62,    62,    62,    62,    63,    63,
      63,    63,    64,    60,    60,    60,    60,    60,    60,    60,
      63,    63,    64,    60,    60,    60,    60,    60,    60,    60,
      60,    60,    60,    60,    60,    60,    60,    60,    60,    60,
      60,    60,    60,    60,    60,    60,    60,    60,    60,    60,
      60,    60,    60,    60,    60,    60,    60,    60,    60,    60,
      60,    60,    60,    60,    60,    60,    60,    60,    60,    60,
      60,    60,    60,    60,    60,    65,    66,    67,    67,    68,
      60,    60,    60,    60,    60,    65,    66,    67,    67,    68,
      68,    68,    68,    68,    69,    69,    69,    70,    70,    71,
      68,    68,    68,    68,    69,    69,    69,    70,    70,    71,
      71,    71,    71,    71,    71,    71,    71,    71,    71,    71,
      71,    71,    71,    71,    71,    71,    71,    71,    71,    71,
      71,    71,    71,    72,    72,    73,    74
      71,    71,    71,    72,    72,    73,    74
};
};
 
 
/* 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,     3,     2,     2,     2,     2,
       0,     2,     1,     1,     1,     3,     2,     2,     2,     2,
       2,     2,     0,     5,     0,     1,     1,     3,     3,     2,
       2,     2,     0,     5,     0,     1,     1,     3,     3,     2,
       2,     1,     3,     3,     4,     3,     3,     3,     3,     3,
       2,     1,     3,     3,     4,     3,     3,     3,     3,     3,
       3,     3,     3,     3,     3,     3,     3,     3,     3,     3,
       3,     3,     3,     3,     3,     3,     3,     3,     3,     3,
       3,     3,     3,     3,     3,     3,     3,     1,     1,     1,
       3,     3,     3,     3,     3,     3,     3,     1,     1,     1,
       1,     1,     4,     1,     1,     1,     1,     1,     2,     1,
       1,     1,     4,     1,     1,     1,     1,     1,     2,     1,
       2,     1,     2,     1,     3,     2,     1,     2,     3,     1,
       2,     1,     2,     1,     3,     2,     1,     2,     3,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     3,     1,     1
       1,     1,     1,     1,     3,     1,     1
};
};
 
 
/* 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,    47,    49,    54,    53,    86,    69,    48,     0,    70,
       0,    47,    49,    54,    53,    86,    69,    48,     0,    70,
      71,    76,    75,    73,    74,    77,    78,    79,    80,    81,
      71,    76,    75,    73,    74,    77,    78,    79,    80,    81,
      82,     0,    72,    51,     0,     0,     0,     0,     0,     0,
      82,     0,    72,    51,     0,     0,     0,     0,     0,     0,
       3,     2,    50,     4,    56,    57,    55,     0,    11,     9,
       3,     2,    50,     4,    56,    57,    55,     0,    11,     9,
       7,     8,     6,     0,     0,     0,    10,     1,     0,     0,
       7,     8,     6,     0,     0,     0,    10,     1,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      12,    61,    59,     0,    58,    63,    66,     0,     0,     5,
      12,    61,    59,     0,    58,    63,    66,     0,     0,     5,
      23,     0,    43,    44,    46,    45,    42,    41,    40,    35,
      23,     0,    43,    44,    46,    45,    42,    41,    40,    35,
      34,    37,    36,    39,    38,    33,    32,    26,    30,    31,
      34,    37,    36,    39,    38,    33,    32,    26,    30,    31,
      28,    29,    27,    85,    25,    14,    62,    60,    67,    83,
      28,    29,    27,    85,    25,    14,    62,    60,    67,    83,
       0,     0,     0,    65,    52,    22,    24,    21,    15,     0,
       0,     0,     0,    65,    52,    22,    24,    21,    15,     0,
      16,    64,     0,    68,    20,    19,     0,    13,    84,    18,
      16,    64,     0,    68,    20,    19,     0,    13,    84,    18,
      17
      17
};
};
 
 
/* YYDEFGOTO[NTERM-NUM]. */
/* YYDEFGOTO[NTERM-NUM]. */
static const yysigned_char yydefgoto[] =
static const yytype_int8 yydefgoto[] =
{
{
      -1,    29,    30,    43,   105,   119,   120,    44,    32,   109,
      -1,    29,    30,    43,   105,   119,   120,    44,    32,   109,
      34,    74,    75,    76,    35,   111,   104,    36
      34,    74,    75,    76,    35,   111,   104,    36
};
};
 
 
/* 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 -57
#define YYPACT_NINF -57
static const short yypact[] =
static const yytype_int16 yypact[] =
{
{
     134,   -57,   -57,   -57,   -57,   -57,   -57,   -57,   162,   -57,
     134,   -57,   -57,   -57,   -57,   -57,   -57,   -57,   162,   -57,
     -57,   -57,   -57,   -57,   -57,   -57,   -57,   -57,   -57,   -57,
     -57,   -57,   -57,   -57,   -57,   -57,   -57,   -57,   -57,   -57,
     -57,   190,   -57,   -57,   190,   190,   190,   134,   190,    19,
     -57,   190,   -57,   -57,   190,   190,   190,   134,   190,    19,
     -57,   359,   -57,   -57,   -57,   -35,   -57,   134,   -33,   -33,
     -57,   359,   -57,   -57,   -57,   -35,   -57,   134,   -33,   -33,
     -33,   -33,   -33,   328,   -32,   -31,   -33,   -57,   190,   190,
     -33,   -33,   -33,   328,   -32,   -31,   -33,   -57,   190,   190,
     190,   190,   190,   190,   190,   190,   190,   190,   190,   190,
     190,   190,   190,   190,   190,   190,   190,   190,   190,   190,
     190,   190,   190,   190,   190,   190,   190,   190,   190,    24,
     190,   190,   190,   190,   190,   190,   190,   190,   190,    24,
     -57,   -35,   -35,   234,   -57,   -12,   -57,   -11,   190,   -57,
     -57,   -35,   -35,   234,   -57,   -12,   -57,   -11,   190,   -57,
     -57,   190,   407,   387,   359,   359,   426,   444,   461,   476,
     -57,   190,   407,   387,   359,   359,   426,   444,   461,   476,
     476,   228,   228,   228,   228,   -13,   -13,    49,   -39,   -39,
     476,   228,   228,   228,   228,   -13,   -13,    49,   -39,   -39,
     -46,   -46,   -46,   -57,   -57,    80,   -57,   -57,   -57,   -57,
     -46,   -46,   -46,   -57,   -57,    80,   -57,   -57,   -57,   -57,
     -10,   -27,   277,   -57,    66,   359,   -33,   190,   298,   -24,
     -10,   -27,   277,   -57,    66,   359,   -33,   190,   298,   -24,
     -57,   -57,   293,   -57,   359,   190,   190,   -57,   -57,   359,
     -57,   -57,   293,   -57,   359,   190,   190,   -57,   -57,   359,
     359
     359
};
};
 
 
/* YYPGOTO[NTERM-NUM].  */
/* YYPGOTO[NTERM-NUM].  */
static const yysigned_char yypgoto[] =
static const yytype_int8 yypgoto[] =
{
{
     -57,   -57,   -57,     0,   -57,   -57,   -57,   -57,   -57,     2,
     -57,   -57,   -57,     0,   -57,   -57,   -57,   -57,   -57,     2,
     -57,   -56,   -57,   -30,   -57,   -57,   -57,   -57
     -57,   -56,   -57,   -30,   -57,   -57,   -57,   -57
};
};
 
 
/* 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 -1
#define YYTABLE_NINF -1
static const unsigned char yytable[] =
static const yytype_uint8 yytable[] =
{
{
      31,    71,    33,   122,    68,    69,   126,    70,    38,    66,
      31,    71,    33,   122,    68,    69,   126,    70,    38,    66,
      67,    68,    69,    72,    70,   106,   107,   110,    73,    47,
      67,    68,    69,    72,    70,   106,   107,   110,    73,    47,
      70,    39,    80,    81,    40,    41,    42,   123,    46,    45,
      70,    39,    80,    81,    40,    41,    42,   123,    46,    45,
     127,   103,    63,    64,    65,    66,    67,    68,    69,    77,
     127,   103,    63,    64,    65,    66,    67,    68,    69,    77,
      70,   112,     0,   114,   121,   113,     0,     0,    82,    83,
      70,   112,     0,   114,   121,   113,     0,     0,    82,    83,
      84,    85,    86,    87,    88,    89,    90,    91,    92,    93,
      84,    85,    86,    87,    88,    89,    90,    91,    92,    93,
      94,    95,    96,    97,    98,    99,   100,   101,   102,     1,
      94,    95,    96,    97,    98,    99,   100,   101,   102,     1,
       2,     3,     4,     5,     0,     7,     8,     0,   115,     0,
       2,     3,     4,     5,     0,     7,     8,     0,   115,     0,
       0,   116,     0,     1,     2,     3,     4,     5,     0,     7,
       0,   116,     0,     1,     2,     3,     4,     5,     0,     7,
       8,     0,    21,     0,    23,    64,    65,    66,    67,    68,
       8,     0,    21,     0,    23,    64,    65,    66,    67,    68,
      69,     0,    70,     0,     0,   118,    21,     0,    23,     0,
      69,     0,    70,     0,     0,   118,    21,     0,    23,     0,
       0,     0,     0,     0,   116,     0,    24,   124,     0,    27,
       0,     0,     0,     0,   116,     0,    24,   124,     0,    27,
       0,    28,     0,     0,   128,   129,   130,    25,    26,     0,
       0,    28,     0,     0,   128,   129,   130,    25,    26,     0,
       0,     0,     0,    27,     0,    28,   117,     1,     2,     3,
       0,     0,     0,    27,     0,    28,   117,     1,     2,     3,
       4,     5,     6,     7,     8,     0,     9,    10,    11,    12,
       4,     5,     6,     7,     8,     0,     9,    10,    11,    12,
      13,    14,    15,    16,    17,    18,    19,    20,     0,     0,
      13,    14,    15,    16,    17,    18,    19,    20,     0,     0,
      21,    22,    23,     0,     0,     1,     2,     3,     4,     5,
      21,    22,    23,     0,     0,     1,     2,     3,     4,     5,
      24,     7,     8,     0,     0,     0,     0,     0,     0,     0,
      24,     7,     8,     0,     0,     0,     0,     0,     0,     0,
       0,    25,    26,     0,     0,     0,     0,    27,    21,    28,
       0,    25,    26,     0,     0,     0,     0,    27,    21,    28,
      23,     0,     0,     1,     2,     3,     4,     5,    24,     7,
      23,     0,     0,     1,     2,     3,     4,     5,    24,     7,
       8,     0,     0,     0,     0,     0,     0,     0,     0,    25,
       8,     0,     0,     0,     0,     0,     0,     0,     0,    25,
      26,     0,     0,     0,     0,    37,    21,    28,    23,     0,
      26,     0,     0,     0,     0,    37,    21,    28,    23,     0,
       0,     0,     0,     0,     0,     0,    24,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    24,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    25,    26,     0,
       0,     0,     0,     0,     0,     0,     0,    25,    26,     0,
       0,     0,     6,    27,     0,    28,     9,    10,    11,    12,
       0,     0,     6,    27,     0,    28,     9,    10,    11,    12,
      13,    14,    15,    16,    17,    18,    19,    20,     0,     0,
      13,    14,    15,    16,    17,    18,    19,    20,     0,     0,
       0,    22,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    22,     0,     0,     0,     0,     0,     0,     0,     0,
      71,    61,    62,    63,    64,    65,    66,    67,    68,    69,
      71,    61,    62,    63,    64,    65,    66,    67,    68,    69,
       0,    70,    72,     0,     0,     6,     0,    73,   108,     9,
       0,    70,    72,     0,     0,     6,     0,    73,   108,     9,
      10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
      10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
      20,     6,     0,     0,    22,     9,    10,    11,    12,    13,
      20,     6,     0,     0,    22,     9,    10,    11,    12,    13,
      14,    15,    16,    17,    18,    19,    20,     0,     0,     0,
      14,    15,    16,    17,    18,    19,    20,     0,     0,     0,
      22,     0,    48,    49,     0,     0,     0,    50,     0,     0,
      22,     0,    48,    49,     0,     0,     0,    50,     0,     0,
      51,   108,    52,    53,    54,    55,    56,    57,    58,    59,
      51,   108,    52,    53,    54,    55,    56,    57,    58,    59,
      60,    61,    62,    63,    64,    65,    66,    67,    68,    69,
      60,    61,    62,    63,    64,    65,    66,    67,    68,    69,
       0,    70,    48,    49,   125,     0,     0,    50,    78,     0,
       0,    70,    48,    49,   125,     0,     0,    50,    78,     0,
      51,     0,    52,    53,    54,    55,    56,    57,    58,    59,
      51,     0,    52,    53,    54,    55,    56,    57,    58,    59,
      60,    61,    62,    63,    64,    65,    66,    67,    68,    69,
      60,    61,    62,    63,    64,    65,    66,    67,    68,    69,
       0,    70,    79,    48,    49,     0,     0,     0,    50,     0,
       0,    70,    79,    48,    49,     0,     0,     0,    50,     0,
       0,    51,     0,    52,    53,    54,    55,    56,    57,    58,
       0,    51,     0,    52,    53,    54,    55,    56,    57,    58,
      59,    60,    61,    62,    63,    64,    65,    66,    67,    68,
      59,    60,    61,    62,    63,    64,    65,    66,    67,    68,
      69,    48,    70,     0,     0,     0,     0,     0,     0,     0,
      69,    48,    70,     0,     0,     0,     0,     0,     0,     0,
       0,    52,    53,    54,    55,    56,    57,    58,    59,    60,
       0,    52,    53,    54,    55,    56,    57,    58,    59,    60,
      61,    62,    63,    64,    65,    66,    67,    68,    69,     0,
      61,    62,    63,    64,    65,    66,    67,    68,    69,     0,
      70,    52,    53,    54,    55,    56,    57,    58,    59,    60,
      70,    52,    53,    54,    55,    56,    57,    58,    59,    60,
      61,    62,    63,    64,    65,    66,    67,    68,    69,     0,
      61,    62,    63,    64,    65,    66,    67,    68,    69,     0,
      70,    53,    54,    55,    56,    57,    58,    59,    60,    61,
      70,    53,    54,    55,    56,    57,    58,    59,    60,    61,
      62,    63,    64,    65,    66,    67,    68,    69,     0,    70,
      62,    63,    64,    65,    66,    67,    68,    69,     0,    70,
      54,    55,    56,    57,    58,    59,    60,    61,    62,    63,
      54,    55,    56,    57,    58,    59,    60,    61,    62,    63,
      64,    65,    66,    67,    68,    69,     0,    70,    55,    56,
      64,    65,    66,    67,    68,    69,     0,    70,    55,    56,
      57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
      57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
      67,    68,    69,     0,    70,    57,    58,    59,    60,    61,
      67,    68,    69,     0,    70,    57,    58,    59,    60,    61,
      62,    63,    64,    65,    66,    67,    68,    69,     0,    70
      62,    63,    64,    65,    66,    67,    68,    69,     0,    70
};
};
 
 
static const yysigned_char yycheck[] =
static const yytype_int8 yycheck[] =
{
{
       0,    36,     0,    30,    50,    51,    30,    53,     8,    48,
       0,    36,     0,    30,    50,    51,    30,    53,     8,    48,
      49,    50,    51,    48,    53,    71,    72,    73,    53,     0,
      49,    50,    51,    48,    53,    71,    72,    73,    53,     0,
      53,    21,    54,    54,    24,    25,    26,    54,    28,    27,
      53,    21,    54,    54,    24,    25,    26,    54,    28,    27,
      54,     7,    45,    46,    47,    48,    49,    50,    51,    37,
      54,     7,    45,    46,    47,    48,    49,    50,    51,    37,
      53,    53,    -1,    54,    54,    75,    -1,    -1,    48,    49,
      53,    53,    -1,    54,    54,    75,    -1,    -1,    48,    49,
      50,    51,    52,    53,    54,    55,    56,    57,    58,    59,
      50,    51,    52,    53,    54,    55,    56,    57,    58,    59,
      60,    61,    62,    63,    64,    65,    66,    67,    68,     3,
      60,    61,    62,    63,    64,    65,    66,    67,    68,     3,
       4,     5,     6,     7,    -1,     9,    10,    -1,    78,    -1,
       4,     5,     6,     7,    -1,     9,    10,    -1,    78,    -1,
      -1,    81,    -1,     3,     4,     5,     6,     7,    -1,     9,
      -1,    81,    -1,     3,     4,     5,     6,     7,    -1,     9,
      10,    -1,    26,    -1,    28,    46,    47,    48,    49,    50,
      10,    -1,    26,    -1,    28,    46,    47,    48,    49,    50,
      51,    -1,    53,    -1,    -1,   105,    26,    -1,    28,    -1,
      51,    -1,    53,    -1,    -1,   105,    26,    -1,    28,    -1,
      -1,    -1,    -1,    -1,   114,    -1,    36,   117,    -1,    53,
      -1,    -1,    -1,    -1,   114,    -1,    36,   117,    -1,    53,
      -1,    55,    -1,    -1,   122,   125,   126,    47,    48,    -1,
      -1,    55,    -1,    -1,   122,   125,   126,    47,    48,    -1,
      -1,    -1,    -1,    53,    -1,    55,    56,     3,     4,     5,
      -1,    -1,    -1,    53,    -1,    55,    56,     3,     4,     5,
       6,     7,     8,     9,    10,    -1,    12,    13,    14,    15,
       6,     7,     8,     9,    10,    -1,    12,    13,    14,    15,
      16,    17,    18,    19,    20,    21,    22,    23,    -1,    -1,
      16,    17,    18,    19,    20,    21,    22,    23,    -1,    -1,
      26,    27,    28,    -1,    -1,     3,     4,     5,     6,     7,
      26,    27,    28,    -1,    -1,     3,     4,     5,     6,     7,
      36,     9,    10,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      36,     9,    10,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    47,    48,    -1,    -1,    -1,    -1,    53,    26,    55,
      -1,    47,    48,    -1,    -1,    -1,    -1,    53,    26,    55,
      28,    -1,    -1,     3,     4,     5,     6,     7,    36,     9,
      28,    -1,    -1,     3,     4,     5,     6,     7,    36,     9,
      10,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    47,
      10,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    47,
      48,    -1,    -1,    -1,    -1,    53,    26,    55,    28,    -1,
      48,    -1,    -1,    -1,    -1,    53,    26,    55,    28,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    36,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    36,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    47,    48,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    47,    48,    -1,
      -1,    -1,     8,    53,    -1,    55,    12,    13,    14,    15,
      -1,    -1,     8,    53,    -1,    55,    12,    13,    14,    15,
      16,    17,    18,    19,    20,    21,    22,    23,    -1,    -1,
      16,    17,    18,    19,    20,    21,    22,    23,    -1,    -1,
      -1,    27,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    27,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      36,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      36,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      -1,    53,    48,    -1,    -1,     8,    -1,    53,    54,    12,
      -1,    53,    48,    -1,    -1,     8,    -1,    53,    54,    12,
      13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
      13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
      23,     8,    -1,    -1,    27,    12,    13,    14,    15,    16,
      23,     8,    -1,    -1,    27,    12,    13,    14,    15,    16,
      17,    18,    19,    20,    21,    22,    23,    -1,    -1,    -1,
      17,    18,    19,    20,    21,    22,    23,    -1,    -1,    -1,
      27,    -1,    24,    25,    -1,    -1,    -1,    29,    -1,    -1,
      27,    -1,    24,    25,    -1,    -1,    -1,    29,    -1,    -1,
      32,    54,    34,    35,    36,    37,    38,    39,    40,    41,
      32,    54,    34,    35,    36,    37,    38,    39,    40,    41,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      -1,    53,    24,    25,    56,    -1,    -1,    29,    30,    -1,
      -1,    53,    24,    25,    56,    -1,    -1,    29,    30,    -1,
      32,    -1,    34,    35,    36,    37,    38,    39,    40,    41,
      32,    -1,    34,    35,    36,    37,    38,    39,    40,    41,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      -1,    53,    54,    24,    25,    -1,    -1,    -1,    29,    -1,
      -1,    53,    54,    24,    25,    -1,    -1,    -1,    29,    -1,
      -1,    32,    -1,    34,    35,    36,    37,    38,    39,    40,
      -1,    32,    -1,    34,    35,    36,    37,    38,    39,    40,
      41,    42,    43,    44,    45,    46,    47,    48,    49,    50,
      41,    42,    43,    44,    45,    46,    47,    48,    49,    50,
      51,    24,    53,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      51,    24,    53,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      -1,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      43,    44,    45,    46,    47,    48,    49,    50,    51,    -1,
      43,    44,    45,    46,    47,    48,    49,    50,    51,    -1,
      53,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      53,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      43,    44,    45,    46,    47,    48,    49,    50,    51,    -1,
      43,    44,    45,    46,    47,    48,    49,    50,    51,    -1,
      53,    35,    36,    37,    38,    39,    40,    41,    42,    43,
      53,    35,    36,    37,    38,    39,    40,    41,    42,    43,
      44,    45,    46,    47,    48,    49,    50,    51,    -1,    53,
      44,    45,    46,    47,    48,    49,    50,    51,    -1,    53,
      36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
      36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
      46,    47,    48,    49,    50,    51,    -1,    53,    37,    38,
      46,    47,    48,    49,    50,    51,    -1,    53,    37,    38,
      39,    40,    41,    42,    43,    44,    45,    46,    47,    48,
      39,    40,    41,    42,    43,    44,    45,    46,    47,    48,
      49,    50,    51,    -1,    53,    39,    40,    41,    42,    43,
      49,    50,    51,    -1,    53,    39,    40,    41,    42,    43,
      44,    45,    46,    47,    48,    49,    50,    51,    -1,    53
      44,    45,    46,    47,    48,    49,    50,    51,    -1,    53
};
};
 
 
/* 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,    12,
       0,     3,     4,     5,     6,     7,     8,     9,    10,    12,
      13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
      13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
      23,    26,    27,    28,    36,    47,    48,    53,    55,    58,
      23,    26,    27,    28,    36,    47,    48,    53,    55,    58,
      59,    60,    65,    66,    67,    71,    74,    53,    60,    60,
      59,    60,    65,    66,    67,    71,    74,    53,    60,    60,
      60,    60,    60,    60,    64,    66,    60,     0,    24,    25,
      60,    60,    60,    60,    64,    66,    60,     0,    24,    25,
      29,    32,    34,    35,    36,    37,    38,    39,    40,    41,
      29,    32,    34,    35,    36,    37,    38,    39,    40,    41,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      53,    36,    48,    53,    68,    69,    70,    66,    30,    54,
      53,    36,    48,    53,    68,    69,    70,    66,    30,    54,
      54,    54,    60,    60,    60,    60,    60,    60,    60,    60,
      54,    54,    60,    60,    60,    60,    60,    60,    60,    60,
      60,    60,    60,    60,    60,    60,    60,    60,    60,    60,
      60,    60,    60,    60,    60,    60,    60,    60,    60,    60,
      60,    60,    60,     7,    73,    61,    68,    68,    54,    66,
      60,    60,    60,     7,    73,    61,    68,    68,    54,    66,
      68,    72,    53,    70,    54,    60,    60,    56,    60,    62,
      68,    72,    53,    70,    54,    60,    60,    56,    60,    62,
      63,    54,    30,    54,    60,    56,    30,    54,    66,    60,
      63,    54,    30,    54,    60,    56,    30,    54,    66,    60,
      60
      60
};
};
 
 
#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
 
 
#define YYACCEPT        goto yyacceptlab
#define YYACCEPT        goto yyacceptlab
#define YYABORT         goto yyabortlab
#define YYABORT         goto yyabortlab
#define YYERROR         goto yyerrorlab
#define YYERROR         goto yyerrorlab
 
 
 
 
/* Like YYERROR except do call yyerror.  This remains here temporarily
/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */
   Once GCC version 2 has supplanted version 1, this can go.  */
 
 
#define YYFAIL          goto yyerrlab
#define YYFAIL          goto yyerrlab
 
 
#define YYRECOVERING()  (!!yyerrstatus)
#define YYRECOVERING()  (!!yyerrstatus)
 
 
#define YYBACKUP(Token, Value)                                  \
#define YYBACKUP(Token, Value)                                  \
do                                                              \
do                                                              \
  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
# define YYLEX yylex ()
# define YYLEX yylex ()
#endif
#endif
 
 
/* Enable debugging if requested.  */
/* Enable debugging if requested.  */
#if YYDEBUG
#if YYDEBUG
 
 
# ifndef YYFPRINTF
# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
#  define YYFPRINTF fprintf
# endif
# endif
 
 
# define YYDPRINTF(Args)                        \
# define YYDPRINTF(Args)                        \
do {                                            \
do {                                            \
  if (yydebug)                                  \
  if (yydebug)                                  \
    YYFPRINTF Args;                             \
    YYFPRINTF Args;                             \
} while (0)
} while (YYID (0))
 
 
# define YYDSYMPRINT(Args)                      \
 
do {                                            \
 
  if (yydebug)                                  \
 
    yysymprint Args;                            \
 
} while (0)
 
 
 
# define YYDSYMPRINTF(Title, Token, Value, Location)            \
# define YY_SYMBOL_PRINT(Title, Type, 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 */
 
 
 
 
/* YYINITDEPTH -- initial size of the parser's stacks.  */
/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef YYINITDEPTH
#ifndef YYINITDEPTH
# define YYINITDEPTH 200
# define YYINITDEPTH 200
#endif
#endif
 
 
/* 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;
 
 
#if YYDEBUG
          case '\\':
/*--------------------------------.
            if (*++yyp != '\\')
| Print this symbol on YYOUTPUT.  |
              goto do_not_strip_quotes;
`--------------------------------*/
            /* Fall through.  */
 
          default:
 
            if (yyres)
 
              yyres[yyn] = *yyp;
 
            yyn++;
 
            break;
 
 
#if defined (__STDC__) || defined (__cplusplus)
          case '"':
static void
            if (yyres)
yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
              yyres[yyn] = '\0';
#else
            return yyn;
static void
          }
yysymprint (yyoutput, yytype, yyvaluep)
    do_not_strip_quotes: ;
    FILE *yyoutput;
    }
    int yytype;
 
    YYSTYPE *yyvaluep;
  if (! yyres)
 
    return yystrlen (yystr);
 
 
 
  return yystpcpy (yyres, yystr) - yyres;
 
}
#endif
#endif
{
 
  /* Pacify ``unused variable'' warnings.  */
 
  (void) yyvaluep;
 
 
 
  if (yytype < YYNTOKENS)
/* 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)
    {
    {
      YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  int yyn = yypact[yystate];
# ifdef YYPRINT
 
      YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
# endif
    return 0;
    }
 
  else
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
    {
 
      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;
 
 
  switch (yytype)
# 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)
    {
    {
      default:
            if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
 
              {
 
                yycount = 1;
 
                yysize = yysize0;
 
                yyformat[sizeof yyunexpected - 1] = '\0';
        break;
        break;
    }
    }
  YYFPRINTF (yyoutput, ")");
            yyarg[yycount++] = yytname[yyx];
 
            yysize1 = yysize + yytnamerr (0, yytname[yyx]);
 
            yysize_overflow |= (yysize1 < yysize);
 
            yysize = yysize1;
 
            yyfmt = yystpcpy (yyfmt, yyprefix);
 
            yyprefix = yyor;
}
}
 
 
#endif /* ! YYDEBUG */
      yyf = YY_(yyformat);
 
      yysize1 = yysize + yystrlen (yyf);
 
      yysize_overflow |= (yysize1 < yysize);
 
      yysize = yysize1;
 
 
 
      if (yysize_overflow)
 
        return YYSIZE_MAXIMUM;
 
 
 
      if (yyresult)
 
        {
 
          /* Avoid sprintf, as that infringes on the user's name space.
 
             Don't have undefined behavior even if the translation
 
             produced a string with the wrong number of "%s"s.  */
 
          char *yyp = yyresult;
 
          int yyi = 0;
 
          while ((*yyp = *yyf) != '\0')
 
            {
 
              if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
 
                {
 
                  yyp += yytnamerr (yyp, yyarg[yyi++]);
 
                  yyf += 2;
 
                }
 
              else
 
                {
 
                  yyp++;
 
                  yyf++;
 
                }
 
            }
 
        }
 
      return yysize;
 
    }
 
}
 
#endif /* YYERROR_VERBOSE */
 

 
 
/*-----------------------------------------------.
/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
| 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;
 
 
/* 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 = YYINITDEPTH;
    YYSIZE_T yystacksize;
 
 
 
  int yyn;
 
  int yyresult;
 
  /* Lookahead token as an internal (translated) token number.  */
 
  int yytoken;
  /* The variables used to return semantic value and location from the
  /* 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;
  yynerrs = 0;
  yynerrs = 0;
  yychar = YYEMPTY;             /* Cause a token to be read.  */
  yychar = YYEMPTY; /* Cause a token to be read.  */
 
 
  /* 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;
 
 
  if (yyss + yystacksize - 1 <= yyssp)
  if (yyss + yystacksize - 1 <= yyssp)
    {
    {
      /* Get the current used size of the three stacks, in elements.  */
      /* Get the current used size of the three stacks, in elements.  */
      YYSIZE_T yysize = yyssp - yyss + 1;
      YYSIZE_T yysize = yyssp - yyss + 1;
 
 
#ifdef yyoverflow
#ifdef yyoverflow
      {
      {
        /* 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.  */
 
 
  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
  if (yychar == YYEMPTY)
  if (yychar == YYEMPTY)
    {
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar = YYLEX;
      yychar = YYLEX;
    }
    }
 
 
  if (yychar <= YYEOF)
  if (yychar <= YYEOF)
    {
    {
      yychar = yytoken = YYEOF;
      yychar = yytoken = YYEOF;
      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;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
    goto yydefault;
  yyn = yytable[yyn];
  yyn = yytable[yyn];
  if (yyn <= 0)
  if (yyn <= 0)
    {
    {
      if (yyn == 0 || yyn == YYTABLE_NINF)
      if (yyn == 0 || yyn == YYTABLE_NINF)
        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.  |
`-----------------------------------------------------------*/
`-----------------------------------------------------------*/
yydefault:
yydefault:
  yyn = yydefact[yystate];
  yyn = yydefact[yystate];
  if (yyn == 0)
  if (yyn == 0)
    goto yyerrlab;
    goto yyerrlab;
  goto yyreduce;
  goto yyreduce;
 
 
 
 
/*-----------------------------.
/*-----------------------------.
| yyreduce -- Do a reduction.  |
| yyreduce -- Do a reduction.  |
`-----------------------------*/
`-----------------------------*/
yyreduce:
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];
  yylen = yyr2[yyn];
 
 
  /* If YYLEN is nonzero, implement the default value of the action:
  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ = $1'.
     `$$ = $1'.
 
 
     Otherwise, the following line sets YYVAL to garbage.
     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];
  yyval = yyvsp[1-yylen];
 
 
 
 
  YY_REDUCE_PRINT (yyn);
  YY_REDUCE_PRINT (yyn);
  switch (yyn)
  switch (yyn)
    {
    {
        case 4:
        case 4:
 
 
 
/* Line 1455 of yacc.c  */
#line 238 "f-exp.y"
#line 238 "f-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 5:
  case 5:
 
 
 
/* Line 1455 of yacc.c  */
#line 244 "f-exp.y"
#line 244 "f-exp.y"
    { }
    { }
    break;
    break;
 
 
  case 6:
  case 6:
 
 
 
/* Line 1455 of yacc.c  */
#line 249 "f-exp.y"
#line 249 "f-exp.y"
    { write_exp_elt_opcode (UNOP_IND); }
    { write_exp_elt_opcode (UNOP_IND); }
    break;
    break;
 
 
  case 7:
  case 7:
 
 
 
/* Line 1455 of yacc.c  */
#line 253 "f-exp.y"
#line 253 "f-exp.y"
    { write_exp_elt_opcode (UNOP_ADDR); }
    { write_exp_elt_opcode (UNOP_ADDR); }
    break;
    break;
 
 
  case 8:
  case 8:
 
 
 
/* Line 1455 of yacc.c  */
#line 257 "f-exp.y"
#line 257 "f-exp.y"
    { write_exp_elt_opcode (UNOP_NEG); }
    { write_exp_elt_opcode (UNOP_NEG); }
    break;
    break;
 
 
  case 9:
  case 9:
 
 
 
/* Line 1455 of yacc.c  */
#line 261 "f-exp.y"
#line 261 "f-exp.y"
    { write_exp_elt_opcode (UNOP_LOGICAL_NOT); }
    { write_exp_elt_opcode (UNOP_LOGICAL_NOT); }
    break;
    break;
 
 
  case 10:
  case 10:
 
 
 
/* Line 1455 of yacc.c  */
#line 265 "f-exp.y"
#line 265 "f-exp.y"
    { write_exp_elt_opcode (UNOP_COMPLEMENT); }
    { write_exp_elt_opcode (UNOP_COMPLEMENT); }
    break;
    break;
 
 
  case 11:
  case 11:
 
 
 
/* Line 1455 of yacc.c  */
#line 269 "f-exp.y"
#line 269 "f-exp.y"
    { write_exp_elt_opcode (UNOP_SIZEOF); }
    { write_exp_elt_opcode (UNOP_SIZEOF); }
    break;
    break;
 
 
  case 12:
  case 12:
 
 
 
/* Line 1455 of yacc.c  */
#line 278 "f-exp.y"
#line 278 "f-exp.y"
    { start_arglist (); }
    { start_arglist (); }
    break;
    break;
 
 
  case 13:
  case 13:
 
 
 
/* Line 1455 of yacc.c  */
#line 280 "f-exp.y"
#line 280 "f-exp.y"
    { write_exp_elt_opcode (OP_F77_UNDETERMINED_ARGLIST);
    { write_exp_elt_opcode (OP_F77_UNDETERMINED_ARGLIST);
                          write_exp_elt_longcst ((LONGEST) end_arglist ());
                          write_exp_elt_longcst ((LONGEST) end_arglist ());
                          write_exp_elt_opcode (OP_F77_UNDETERMINED_ARGLIST); }
                          write_exp_elt_opcode (OP_F77_UNDETERMINED_ARGLIST); }
    break;
    break;
 
 
  case 15:
  case 15:
 
 
 
/* Line 1455 of yacc.c  */
#line 289 "f-exp.y"
#line 289 "f-exp.y"
    { arglist_len = 1; }
    { arglist_len = 1; }
    break;
    break;
 
 
  case 16:
  case 16:
 
 
 
/* Line 1455 of yacc.c  */
#line 293 "f-exp.y"
#line 293 "f-exp.y"
    { arglist_len = 1; }
    { arglist_len = 1; }
    break;
    break;
 
 
  case 17:
  case 17:
 
 
 
/* Line 1455 of yacc.c  */
#line 297 "f-exp.y"
#line 297 "f-exp.y"
    { arglist_len++; }
    { arglist_len++; }
    break;
    break;
 
 
  case 18:
  case 18:
 
 
 
/* Line 1455 of yacc.c  */
#line 303 "f-exp.y"
#line 303 "f-exp.y"
    { write_exp_elt_opcode (OP_F90_RANGE);
    { write_exp_elt_opcode (OP_F90_RANGE);
                          write_exp_elt_longcst (NONE_BOUND_DEFAULT);
                          write_exp_elt_longcst (NONE_BOUND_DEFAULT);
                          write_exp_elt_opcode (OP_F90_RANGE); }
                          write_exp_elt_opcode (OP_F90_RANGE); }
    break;
    break;
 
 
  case 19:
  case 19:
 
 
 
/* Line 1455 of yacc.c  */
#line 309 "f-exp.y"
#line 309 "f-exp.y"
    { write_exp_elt_opcode (OP_F90_RANGE);
    { write_exp_elt_opcode (OP_F90_RANGE);
                          write_exp_elt_longcst (HIGH_BOUND_DEFAULT);
                          write_exp_elt_longcst (HIGH_BOUND_DEFAULT);
                          write_exp_elt_opcode (OP_F90_RANGE); }
                          write_exp_elt_opcode (OP_F90_RANGE); }
    break;
    break;
 
 
  case 20:
  case 20:
 
 
 
/* Line 1455 of yacc.c  */
#line 315 "f-exp.y"
#line 315 "f-exp.y"
    { write_exp_elt_opcode (OP_F90_RANGE);
    { write_exp_elt_opcode (OP_F90_RANGE);
                          write_exp_elt_longcst (LOW_BOUND_DEFAULT);
                          write_exp_elt_longcst (LOW_BOUND_DEFAULT);
                          write_exp_elt_opcode (OP_F90_RANGE); }
                          write_exp_elt_opcode (OP_F90_RANGE); }
    break;
    break;
 
 
  case 21:
  case 21:
 
 
 
/* Line 1455 of yacc.c  */
#line 321 "f-exp.y"
#line 321 "f-exp.y"
    { write_exp_elt_opcode (OP_F90_RANGE);
    { write_exp_elt_opcode (OP_F90_RANGE);
                          write_exp_elt_longcst (BOTH_BOUND_DEFAULT);
                          write_exp_elt_longcst (BOTH_BOUND_DEFAULT);
                          write_exp_elt_opcode (OP_F90_RANGE); }
                          write_exp_elt_opcode (OP_F90_RANGE); }
    break;
    break;
 
 
  case 22:
  case 22:
 
 
 
/* Line 1455 of yacc.c  */
#line 327 "f-exp.y"
#line 327 "f-exp.y"
    { }
    { }
    break;
    break;
 
 
  case 23:
  case 23:
 
 
 
/* Line 1455 of yacc.c  */
#line 331 "f-exp.y"
#line 331 "f-exp.y"
    { write_exp_elt_opcode(OP_COMPLEX);
    { write_exp_elt_opcode(OP_COMPLEX);
                          write_exp_elt_type (parse_f_type->builtin_complex_s16);
                          write_exp_elt_type (parse_f_type->builtin_complex_s16);
                          write_exp_elt_opcode(OP_COMPLEX); }
                          write_exp_elt_opcode(OP_COMPLEX); }
    break;
    break;
 
 
  case 24:
  case 24:
 
 
 
/* Line 1455 of yacc.c  */
#line 337 "f-exp.y"
#line 337 "f-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 25:
  case 25:
 
 
 
/* Line 1455 of yacc.c  */
#line 343 "f-exp.y"
#line 343 "f-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 26:
  case 26:
 
 
 
/* Line 1455 of yacc.c  */
#line 351 "f-exp.y"
#line 351 "f-exp.y"
    { write_exp_elt_opcode (BINOP_REPEAT); }
    { write_exp_elt_opcode (BINOP_REPEAT); }
    break;
    break;
 
 
  case 27:
  case 27:
 
 
 
/* Line 1455 of yacc.c  */
#line 355 "f-exp.y"
#line 355 "f-exp.y"
    { write_exp_elt_opcode (BINOP_EXP); }
    { write_exp_elt_opcode (BINOP_EXP); }
    break;
    break;
 
 
  case 28:
  case 28:
 
 
 
/* Line 1455 of yacc.c  */
#line 359 "f-exp.y"
#line 359 "f-exp.y"
    { write_exp_elt_opcode (BINOP_MUL); }
    { write_exp_elt_opcode (BINOP_MUL); }
    break;
    break;
 
 
  case 29:
  case 29:
 
 
 
/* Line 1455 of yacc.c  */
#line 363 "f-exp.y"
#line 363 "f-exp.y"
    { write_exp_elt_opcode (BINOP_DIV); }
    { write_exp_elt_opcode (BINOP_DIV); }
    break;
    break;
 
 
  case 30:
  case 30:
 
 
 
/* Line 1455 of yacc.c  */
#line 367 "f-exp.y"
#line 367 "f-exp.y"
    { write_exp_elt_opcode (BINOP_ADD); }
    { write_exp_elt_opcode (BINOP_ADD); }
    break;
    break;
 
 
  case 31:
  case 31:
 
 
 
/* Line 1455 of yacc.c  */
#line 371 "f-exp.y"
#line 371 "f-exp.y"
    { write_exp_elt_opcode (BINOP_SUB); }
    { write_exp_elt_opcode (BINOP_SUB); }
    break;
    break;
 
 
  case 32:
  case 32:
 
 
 
/* Line 1455 of yacc.c  */
#line 375 "f-exp.y"
#line 375 "f-exp.y"
    { write_exp_elt_opcode (BINOP_LSH); }
    { write_exp_elt_opcode (BINOP_LSH); }
    break;
    break;
 
 
  case 33:
  case 33:
 
 
 
/* Line 1455 of yacc.c  */
#line 379 "f-exp.y"
#line 379 "f-exp.y"
    { write_exp_elt_opcode (BINOP_RSH); }
    { write_exp_elt_opcode (BINOP_RSH); }
    break;
    break;
 
 
  case 34:
  case 34:
 
 
 
/* Line 1455 of yacc.c  */
#line 383 "f-exp.y"
#line 383 "f-exp.y"
    { write_exp_elt_opcode (BINOP_EQUAL); }
    { write_exp_elt_opcode (BINOP_EQUAL); }
    break;
    break;
 
 
  case 35:
  case 35:
 
 
 
/* Line 1455 of yacc.c  */
#line 387 "f-exp.y"
#line 387 "f-exp.y"
    { write_exp_elt_opcode (BINOP_NOTEQUAL); }
    { write_exp_elt_opcode (BINOP_NOTEQUAL); }
    break;
    break;
 
 
  case 36:
  case 36:
 
 
 
/* Line 1455 of yacc.c  */
#line 391 "f-exp.y"
#line 391 "f-exp.y"
    { write_exp_elt_opcode (BINOP_LEQ); }
    { write_exp_elt_opcode (BINOP_LEQ); }
    break;
    break;
 
 
  case 37:
  case 37:
 
 
 
/* Line 1455 of yacc.c  */
#line 395 "f-exp.y"
#line 395 "f-exp.y"
    { write_exp_elt_opcode (BINOP_GEQ); }
    { write_exp_elt_opcode (BINOP_GEQ); }
    break;
    break;
 
 
  case 38:
  case 38:
 
 
 
/* Line 1455 of yacc.c  */
#line 399 "f-exp.y"
#line 399 "f-exp.y"
    { write_exp_elt_opcode (BINOP_LESS); }
    { write_exp_elt_opcode (BINOP_LESS); }
    break;
    break;
 
 
  case 39:
  case 39:
 
 
 
/* Line 1455 of yacc.c  */
#line 403 "f-exp.y"
#line 403 "f-exp.y"
    { write_exp_elt_opcode (BINOP_GTR); }
    { write_exp_elt_opcode (BINOP_GTR); }
    break;
    break;
 
 
  case 40:
  case 40:
 
 
 
/* Line 1455 of yacc.c  */
#line 407 "f-exp.y"
#line 407 "f-exp.y"
    { write_exp_elt_opcode (BINOP_BITWISE_AND); }
    { write_exp_elt_opcode (BINOP_BITWISE_AND); }
    break;
    break;
 
 
  case 41:
  case 41:
 
 
 
/* Line 1455 of yacc.c  */
#line 411 "f-exp.y"
#line 411 "f-exp.y"
    { write_exp_elt_opcode (BINOP_BITWISE_XOR); }
    { write_exp_elt_opcode (BINOP_BITWISE_XOR); }
    break;
    break;
 
 
  case 42:
  case 42:
 
 
 
/* Line 1455 of yacc.c  */
#line 415 "f-exp.y"
#line 415 "f-exp.y"
    { write_exp_elt_opcode (BINOP_BITWISE_IOR); }
    { write_exp_elt_opcode (BINOP_BITWISE_IOR); }
    break;
    break;
 
 
  case 43:
  case 43:
 
 
 
/* Line 1455 of yacc.c  */
#line 419 "f-exp.y"
#line 419 "f-exp.y"
    { write_exp_elt_opcode (BINOP_LOGICAL_AND); }
    { write_exp_elt_opcode (BINOP_LOGICAL_AND); }
    break;
    break;
 
 
  case 44:
  case 44:
 
 
 
/* Line 1455 of yacc.c  */
#line 424 "f-exp.y"
#line 424 "f-exp.y"
    { write_exp_elt_opcode (BINOP_LOGICAL_OR); }
    { write_exp_elt_opcode (BINOP_LOGICAL_OR); }
    break;
    break;
 
 
  case 45:
  case 45:
 
 
 
/* Line 1455 of yacc.c  */
#line 428 "f-exp.y"
#line 428 "f-exp.y"
    { write_exp_elt_opcode (BINOP_ASSIGN); }
    { write_exp_elt_opcode (BINOP_ASSIGN); }
    break;
    break;
 
 
  case 46:
  case 46:
 
 
 
/* Line 1455 of yacc.c  */
#line 432 "f-exp.y"
#line 432 "f-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 47:
  case 47:
 
 
 
/* Line 1455 of yacc.c  */
#line 438 "f-exp.y"
#line 438 "f-exp.y"
    { write_exp_elt_opcode (OP_LONG);
    { write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (yyvsp[0].typed_val.type);
                          write_exp_elt_type ((yyvsp[(1) - (1)].typed_val).type);
                          write_exp_elt_longcst ((LONGEST)(yyvsp[0].typed_val.val));
                          write_exp_elt_longcst ((LONGEST)((yyvsp[(1) - (1)].typed_val).val));
                          write_exp_elt_opcode (OP_LONG); }
                          write_exp_elt_opcode (OP_LONG); }
    break;
    break;
 
 
  case 48:
  case 48:
 
 
 
/* Line 1455 of yacc.c  */
#line 445 "f-exp.y"
#line 445 "f-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.type);
                          write_exp_elt_type (val.typed_val.type);
                          write_exp_elt_longcst ((LONGEST)val.typed_val.val);
                          write_exp_elt_longcst ((LONGEST)val.typed_val.val);
                          write_exp_elt_opcode (OP_LONG); }
                          write_exp_elt_opcode (OP_LONG); }
    break;
    break;
 
 
  case 49:
  case 49:
 
 
 
/* Line 1455 of yacc.c  */
#line 454 "f-exp.y"
#line 454 "f-exp.y"
    { write_exp_elt_opcode (OP_DOUBLE);
    { write_exp_elt_opcode (OP_DOUBLE);
                          write_exp_elt_type (parse_f_type->builtin_real_s8);
                          write_exp_elt_type (parse_f_type->builtin_real_s8);
                          write_exp_elt_dblcst (yyvsp[0].dval);
                          write_exp_elt_dblcst ((yyvsp[(1) - (1)].dval));
                          write_exp_elt_opcode (OP_DOUBLE); }
                          write_exp_elt_opcode (OP_DOUBLE); }
    break;
    break;
 
 
  case 52:
  case 52:
 
 
 
/* Line 1455 of yacc.c  */
#line 467 "f-exp.y"
#line 467 "f-exp.y"
    { write_exp_elt_opcode (OP_LONG);
    { write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (parse_f_type->builtin_integer);
                          write_exp_elt_type (parse_f_type->builtin_integer);
                          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 53:
  case 53:
 
 
 
/* Line 1455 of yacc.c  */
#line 475 "f-exp.y"
#line 475 "f-exp.y"
    { write_exp_elt_opcode (OP_BOOL);
    { write_exp_elt_opcode (OP_BOOL);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].lval);
                          write_exp_elt_longcst ((LONGEST) (yyvsp[(1) - (1)].lval));
                          write_exp_elt_opcode (OP_BOOL);
                          write_exp_elt_opcode (OP_BOOL);
                        }
                        }
    break;
    break;
 
 
  case 54:
  case 54:
 
 
 
/* Line 1455 of yacc.c  */
#line 482 "f-exp.y"
#line 482 "f-exp.y"
    {
    {
                          write_exp_elt_opcode (OP_STRING);
                          write_exp_elt_opcode (OP_STRING);
                          write_exp_string (yyvsp[0].sval);
                          write_exp_string ((yyvsp[(1) - (1)].sval));
                          write_exp_elt_opcode (OP_STRING);
                          write_exp_elt_opcode (OP_STRING);
                        }
                        }
    break;
    break;
 
 
  case 55:
  case 55:
 
 
 
/* Line 1455 of yacc.c  */
#line 490 "f-exp.y"
#line 490 "f-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))
                                {
                                {
                                  if (innermost_block == 0
                                  if (innermost_block == 0
                                      || contained_in (block_found,
                                      || contained_in (block_found,
                                                       innermost_block))
                                                       innermost_block))
                                    innermost_block = block_found;
                                    innermost_block = block_found;
                                }
                                }
                              write_exp_elt_opcode (OP_VAR_VALUE);
                              write_exp_elt_opcode (OP_VAR_VALUE);
                              /* We want to use the selected frame, not
                              /* We want to use the selected frame, not
                                 another more inner frame which happens to
                                 another more inner frame which happens to
                                 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);
                              break;
                              break;
                            }
                            }
                          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 () && !have_partial_symbols ())
                              else if (!have_full_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 58:
  case 58:
 
 
 
/* Line 1455 of yacc.c  */
#line 534 "f-exp.y"
#line 534 "f-exp.y"
    {
    {
                  /* This is where the interesting stuff happens.  */
                  /* This is where the interesting stuff happens.  */
                  int done = 0;
                  int done = 0;
                  int array_size;
                  int array_size;
                  struct type *follow_type = yyvsp[-1].tval;
                  struct type *follow_type = (yyvsp[(1) - (2)].tval);
                  struct type *range_type;
                  struct type *range_type;
 
 
                  while (!done)
                  while (!done)
                    switch (pop_type ())
                    switch (pop_type ())
                      {
                      {
                      case tp_end:
                      case tp_end:
                        done = 1;
                        done = 1;
                        break;
                        break;
                      case tp_pointer:
                      case tp_pointer:
                        follow_type = lookup_pointer_type (follow_type);
                        follow_type = lookup_pointer_type (follow_type);
                        break;
                        break;
                      case tp_reference:
                      case tp_reference:
                        follow_type = lookup_reference_type (follow_type);
                        follow_type = lookup_reference_type (follow_type);
                        break;
                        break;
                      case tp_array:
                      case tp_array:
                        array_size = pop_type_int ();
                        array_size = pop_type_int ();
                        if (array_size != -1)
                        if (array_size != -1)
                          {
                          {
                            range_type =
                            range_type =
                              create_range_type ((struct type *) NULL,
                              create_range_type ((struct type *) NULL,
                                                 parse_f_type->builtin_integer,
                                                 parse_f_type->builtin_integer,
                                                 0, array_size - 1);
                                                 0, array_size - 1);
                            follow_type =
                            follow_type =
                              create_array_type ((struct type *) NULL,
                              create_array_type ((struct type *) NULL,
                                                 follow_type, range_type);
                                                 follow_type, range_type);
                          }
                          }
                        else
                        else
                          follow_type = lookup_pointer_type (follow_type);
                          follow_type = lookup_pointer_type (follow_type);
                        break;
                        break;
                      case tp_function:
                      case tp_function:
                        follow_type = lookup_function_type (follow_type);
                        follow_type = lookup_function_type (follow_type);
                        break;
                        break;
                      }
                      }
                  yyval.tval = follow_type;
                  (yyval.tval) = follow_type;
                }
                }
    break;
    break;
 
 
  case 59:
  case 59:
 
 
 
/* Line 1455 of yacc.c  */
#line 577 "f-exp.y"
#line 577 "f-exp.y"
    { push_type (tp_pointer); yyval.voidval = 0; }
    { push_type (tp_pointer); (yyval.voidval) = 0; }
    break;
    break;
 
 
  case 60:
  case 60:
 
 
 
/* Line 1455 of yacc.c  */
#line 579 "f-exp.y"
#line 579 "f-exp.y"
    { push_type (tp_pointer); yyval.voidval = yyvsp[0].voidval; }
    { push_type (tp_pointer); (yyval.voidval) = (yyvsp[(2) - (2)].voidval); }
    break;
    break;
 
 
  case 61:
  case 61:
 
 
 
/* Line 1455 of yacc.c  */
#line 581 "f-exp.y"
#line 581 "f-exp.y"
    { push_type (tp_reference); yyval.voidval = 0; }
    { push_type (tp_reference); (yyval.voidval) = 0; }
    break;
    break;
 
 
  case 62:
  case 62:
 
 
 
/* Line 1455 of yacc.c  */
#line 583 "f-exp.y"
#line 583 "f-exp.y"
    { push_type (tp_reference); yyval.voidval = yyvsp[0].voidval; }
    { push_type (tp_reference); (yyval.voidval) = (yyvsp[(2) - (2)].voidval); }
    break;
    break;
 
 
  case 64:
  case 64:
 
 
 
/* Line 1455 of yacc.c  */
#line 588 "f-exp.y"
#line 588 "f-exp.y"
    { yyval.voidval = yyvsp[-1].voidval; }
    { (yyval.voidval) = (yyvsp[(2) - (3)].voidval); }
    break;
    break;
 
 
  case 65:
  case 65:
 
 
 
/* Line 1455 of yacc.c  */
#line 590 "f-exp.y"
#line 590 "f-exp.y"
    { push_type (tp_function); }
    { push_type (tp_function); }
    break;
    break;
 
 
  case 66:
  case 66:
 
 
 
/* Line 1455 of yacc.c  */
#line 592 "f-exp.y"
#line 592 "f-exp.y"
    { push_type (tp_function); }
    { push_type (tp_function); }
    break;
    break;
 
 
  case 67:
  case 67:
 
 
 
/* Line 1455 of yacc.c  */
#line 596 "f-exp.y"
#line 596 "f-exp.y"
    { yyval.voidval = 0; }
    { (yyval.voidval) = 0; }
    break;
    break;
 
 
  case 68:
  case 68:
 
 
 
/* Line 1455 of yacc.c  */
#line 598 "f-exp.y"
#line 598 "f-exp.y"
    { xfree (yyvsp[-1].tvec); yyval.voidval = 0; }
    { xfree ((yyvsp[(2) - (3)].tvec)); (yyval.voidval) = 0; }
    break;
    break;
 
 
  case 69:
  case 69:
 
 
 
/* Line 1455 of yacc.c  */
#line 603 "f-exp.y"
#line 603 "f-exp.y"
    { yyval.tval = yyvsp[0].tsym.type; }
    { (yyval.tval) = (yyvsp[(1) - (1)].tsym).type; }
    break;
    break;
 
 
  case 70:
  case 70:
 
 
 
/* Line 1455 of yacc.c  */
#line 605 "f-exp.y"
#line 605 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_integer; }
    { (yyval.tval) = parse_f_type->builtin_integer; }
    break;
    break;
 
 
  case 71:
  case 71:
 
 
 
/* Line 1455 of yacc.c  */
#line 607 "f-exp.y"
#line 607 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_integer_s2; }
    { (yyval.tval) = parse_f_type->builtin_integer_s2; }
    break;
    break;
 
 
  case 72:
  case 72:
 
 
 
/* Line 1455 of yacc.c  */
#line 609 "f-exp.y"
#line 609 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_character; }
    { (yyval.tval) = parse_f_type->builtin_character; }
    break;
    break;
 
 
  case 73:
  case 73:
 
 
 
/* Line 1455 of yacc.c  */
#line 611 "f-exp.y"
#line 611 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_logical_s8; }
    { (yyval.tval) = parse_f_type->builtin_logical_s8; }
    break;
    break;
 
 
  case 74:
  case 74:
 
 
 
/* Line 1455 of yacc.c  */
#line 613 "f-exp.y"
#line 613 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_logical; }
    { (yyval.tval) = parse_f_type->builtin_logical; }
    break;
    break;
 
 
  case 75:
  case 75:
 
 
 
/* Line 1455 of yacc.c  */
#line 615 "f-exp.y"
#line 615 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_logical_s2; }
    { (yyval.tval) = parse_f_type->builtin_logical_s2; }
    break;
    break;
 
 
  case 76:
  case 76:
 
 
 
/* Line 1455 of yacc.c  */
#line 617 "f-exp.y"
#line 617 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_logical_s1; }
    { (yyval.tval) = parse_f_type->builtin_logical_s1; }
    break;
    break;
 
 
  case 77:
  case 77:
 
 
 
/* Line 1455 of yacc.c  */
#line 619 "f-exp.y"
#line 619 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_real; }
    { (yyval.tval) = parse_f_type->builtin_real; }
    break;
    break;
 
 
  case 78:
  case 78:
 
 
 
/* Line 1455 of yacc.c  */
#line 621 "f-exp.y"
#line 621 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_real_s8; }
    { (yyval.tval) = parse_f_type->builtin_real_s8; }
    break;
    break;
 
 
  case 79:
  case 79:
 
 
 
/* Line 1455 of yacc.c  */
#line 623 "f-exp.y"
#line 623 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_real_s16; }
    { (yyval.tval) = parse_f_type->builtin_real_s16; }
    break;
    break;
 
 
  case 80:
  case 80:
 
 
 
/* Line 1455 of yacc.c  */
#line 625 "f-exp.y"
#line 625 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_complex_s8; }
    { (yyval.tval) = parse_f_type->builtin_complex_s8; }
    break;
    break;
 
 
  case 81:
  case 81:
 
 
 
/* Line 1455 of yacc.c  */
#line 627 "f-exp.y"
#line 627 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_complex_s16; }
    { (yyval.tval) = parse_f_type->builtin_complex_s16; }
    break;
    break;
 
 
  case 82:
  case 82:
 
 
 
/* Line 1455 of yacc.c  */
#line 629 "f-exp.y"
#line 629 "f-exp.y"
    { yyval.tval = parse_f_type->builtin_complex_s32; }
    { (yyval.tval) = parse_f_type->builtin_complex_s32; }
    break;
    break;
 
 
  case 83:
  case 83:
 
 
 
/* Line 1455 of yacc.c  */
#line 634 "f-exp.y"
#line 634 "f-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 84:
  case 84:
 
 
 
/* Line 1455 of yacc.c  */
#line 639 "f-exp.y"
#line 639 "f-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 85:
  case 85:
 
 
 
/* Line 1455 of yacc.c  */
#line 646 "f-exp.y"
#line 646 "f-exp.y"
    {  yyval.sval = yyvsp[0].ssym.stoken; }
    {  (yyval.sval) = (yyvsp[(1) - (1)].ssym).stoken; }
    break;
    break;
 
 
 
 
    }
 
 
 
/* Line 1000 of yacc.c.  */
 
#line 1870 "f-exp.c.tmp"
 

 
  yyvsp -= yylen;
 
  yyssp -= yylen;
 
 
 
 
/* Line 1455 of yacc.c  */
 
#line 2369 "f-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];
 
 
  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
    yystate = yytable[yystate];
  else
  else
    yystate = yydefgoto[yyn - YYNTOKENS];
    yystate = yydefgoto[yyn - YYNTOKENS];
 
 
  goto yynewstate;
  goto yynewstate;
 
 
 
 
/*------------------------------------.
/*------------------------------------.
| yyerrlab -- here on detecting error |
| yyerrlab -- here on detecting error |
`------------------------------------*/
`------------------------------------*/
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)
    {
    {
      /* 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.  */
  goto yyerrlab1;
  goto yyerrlab1;
 
 
 
 
/*---------------------------------------------------.
/*---------------------------------------------------.
| 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;
 
 
 
 
/*-------------------------------------------------------------.
/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
`-------------------------------------------------------------*/
yyerrlab1:
yyerrlab1:
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */
 
 
  for (;;)
  for (;;)
    {
    {
      yyn = yypact[yystate];
      yyn = yypact[yystate];
      if (yyn != YYPACT_NINF)
      if (yyn != YYPACT_NINF)
        {
        {
          yyn += YYTERROR;
          yyn += YYTERROR;
          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
            {
            {
              yyn = yytable[yyn];
              yyn = yytable[yyn];
              if (0 < yyn)
              if (0 < yyn)
                break;
                break;
            }
            }
        }
        }
 
 
      /* 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;
 
 
 
 
/*-------------------------------------.
/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
`-------------------------------------*/
yyacceptlab:
yyacceptlab:
  yyresult = 0;
  yyresult = 0;
  goto yyreturn;
  goto yyreturn;
 
 
/*-----------------------------------.
/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
`-----------------------------------*/
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 659 "f-exp.y"
#line 659 "f-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.
   Set yylval and return the token type; update lexptr.
   LEN is the number of characters in it.  */
   LEN is the number of characters in it.  */
 
 
/*** Needs some error checking for the float case ***/
/*** Needs some error checking for the float case ***/
 
 
static int
static int
parse_number (p, len, parsed_float, putithere)
parse_number (p, len, parsed_float, putithere)
     char *p;
     char *p;
     int len;
     int len;
     int parsed_float;
     int parsed_float;
     YYSTYPE *putithere;
     YYSTYPE *putithere;
{
{
  LONGEST n = 0;
  LONGEST n = 0;
  LONGEST prevn = 0;
  LONGEST prevn = 0;
  int c;
  int c;
  int base = input_radix;
  int base = input_radix;
  int unsigned_p = 0;
  int unsigned_p = 0;
  int long_p = 0;
  int long_p = 0;
  ULONGEST high_bit;
  ULONGEST high_bit;
  struct type *signed_type;
  struct type *signed_type;
  struct type *unsigned_type;
  struct type *unsigned_type;
 
 
  if (parsed_float)
  if (parsed_float)
    {
    {
      /* It's a float since it contains a point or an exponent.  */
      /* It's a float since it contains a point or an exponent.  */
      /* [dD] is not understood as an exponent by atof, change it to 'e'.  */
      /* [dD] is not understood as an exponent by atof, change it to 'e'.  */
      char *tmp, *tmp2;
      char *tmp, *tmp2;
 
 
      tmp = xstrdup (p);
      tmp = xstrdup (p);
      for (tmp2 = tmp; *tmp2; ++tmp2)
      for (tmp2 = tmp; *tmp2; ++tmp2)
        if (*tmp2 == 'd' || *tmp2 == 'D')
        if (*tmp2 == 'd' || *tmp2 == 'D')
          *tmp2 = 'e';
          *tmp2 = 'e';
      putithere->dval = atof (tmp);
      putithere->dval = atof (tmp);
      xfree (tmp);
      xfree (tmp);
      return FLOAT;
      return FLOAT;
    }
    }
 
 
  /* Handle base-switching prefixes 0x, 0t, 0d, 0 */
  /* Handle base-switching prefixes 0x, 0t, 0d, 0 */
  if (p[0] == '0')
  if (p[0] == '0')
    switch (p[1])
    switch (p[1])
      {
      {
      case 'x':
      case 'x':
      case 'X':
      case 'X':
        if (len >= 3)
        if (len >= 3)
          {
          {
            p += 2;
            p += 2;
            base = 16;
            base = 16;
            len -= 2;
            len -= 2;
          }
          }
        break;
        break;
 
 
      case 't':
      case 't':
      case 'T':
      case 'T':
      case 'd':
      case 'd':
      case 'D':
      case 'D':
        if (len >= 3)
        if (len >= 3)
          {
          {
            p += 2;
            p += 2;
            base = 10;
            base = 10;
            len -= 2;
            len -= 2;
          }
          }
        break;
        break;
 
 
      default:
      default:
        base = 8;
        base = 8;
        break;
        break;
      }
      }
 
 
  while (len-- > 0)
  while (len-- > 0)
    {
    {
      c = *p++;
      c = *p++;
      if (isupper (c))
      if (isupper (c))
        c = tolower (c);
        c = tolower (c);
      if (len == 0 && c == 'l')
      if (len == 0 && c == 'l')
        long_p = 1;
        long_p = 1;
      else if (len == 0 && c == 'u')
      else if (len == 0 && c == 'u')
        unsigned_p = 1;
        unsigned_p = 1;
      else
      else
        {
        {
          int i;
          int i;
          if (c >= '0' && c <= '9')
          if (c >= '0' && c <= '9')
            i = c - '0';
            i = c - '0';
          else if (c >= 'a' && c <= 'f')
          else if (c >= 'a' && c <= 'f')
            i = c - 'a' + 10;
            i = c - 'a' + 10;
          else
          else
            return ERROR;       /* Char not a digit */
            return ERROR;       /* Char not a digit */
          if (i >= base)
          if (i >= base)
            return ERROR;               /* Invalid digit in this base */
            return ERROR;               /* Invalid digit in this base */
          n *= base;
          n *= base;
          n += i;
          n += i;
        }
        }
      /* Portably test for overflow (only works for nonzero values, so make
      /* Portably test for overflow (only works for nonzero values, so make
         a second check for zero).  */
         a second check for zero).  */
      if ((prevn >= n) && n != 0)
      if ((prevn >= n) && n != 0)
        unsigned_p=1;           /* Try something unsigned */
        unsigned_p=1;           /* Try something unsigned */
      /* If range checking enabled, portably test for unsigned overflow.  */
      /* If range checking enabled, portably test for unsigned overflow.  */
      if (RANGE_CHECK && n != 0)
      if (RANGE_CHECK && n != 0)
        {
        {
          if ((unsigned_p && (unsigned)prevn >= (unsigned)n))
          if ((unsigned_p && (unsigned)prevn >= (unsigned)n))
            range_error("Overflow on numeric constant.");
            range_error("Overflow on numeric constant.");
        }
        }
      prevn = n;
      prevn = n;
    }
    }
 
 
  /* If the number is too big to be an int, or it's got an l suffix
  /* If the number is too big to be an int, or it's got an l suffix
     then it's a long.  Work out if this has to be a long by
     then it's a long.  Work out if this has to be a long by
     shifting right and and seeing if anything remains, and the
     shifting right and and seeing if anything remains, and the
     target int size is different to the target long size.
     target int size is different to the target long size.
 
 
     In the expression below, we could have tested
     In the expression below, we could have tested
     (n >> gdbarch_int_bit (parse_gdbarch))
     (n >> gdbarch_int_bit (parse_gdbarch))
     to see if it was zero,
     to see if it was zero,
     but too many compilers warn about that, when ints and longs
     but too many compilers warn about that, when ints and longs
     are the same size.  So we shift it twice, with fewer bits
     are the same size.  So we shift it twice, with fewer bits
     each time, for the same result.  */
     each time, for the same result.  */
 
 
  if ((gdbarch_int_bit (parse_gdbarch) != gdbarch_long_bit (parse_gdbarch)
  if ((gdbarch_int_bit (parse_gdbarch) != gdbarch_long_bit (parse_gdbarch)
       && ((n >> 2)
       && ((n >> 2)
           >> (gdbarch_int_bit (parse_gdbarch)-2))) /* Avoid shift warning */
           >> (gdbarch_int_bit (parse_gdbarch)-2))) /* Avoid shift warning */
      || long_p)
      || long_p)
    {
    {
      high_bit = ((ULONGEST)1) << (gdbarch_long_bit (parse_gdbarch)-1);
      high_bit = ((ULONGEST)1) << (gdbarch_long_bit (parse_gdbarch)-1);
      unsigned_type = parse_type->builtin_unsigned_long;
      unsigned_type = parse_type->builtin_unsigned_long;
      signed_type = parse_type->builtin_long;
      signed_type = parse_type->builtin_long;
    }
    }
  else
  else
    {
    {
      high_bit = ((ULONGEST)1) << (gdbarch_int_bit (parse_gdbarch)-1);
      high_bit = ((ULONGEST)1) << (gdbarch_int_bit (parse_gdbarch)-1);
      unsigned_type = parse_type->builtin_unsigned_int;
      unsigned_type = parse_type->builtin_unsigned_int;
      signed_type = parse_type->builtin_int;
      signed_type = parse_type->builtin_int;
    }
    }
 
 
  putithere->typed_val.val = n;
  putithere->typed_val.val = n;
 
 
  /* If the high bit of the worked out type is set then this number
  /* If the high bit of the worked out type is set then this number
     has to be unsigned. */
     has to be unsigned. */
 
 
  if (unsigned_p || (n & high_bit))
  if (unsigned_p || (n & high_bit))
    putithere->typed_val.type = unsigned_type;
    putithere->typed_val.type = unsigned_type;
  else
  else
    putithere->typed_val.type = signed_type;
    putithere->typed_val.type = signed_type;
 
 
  return INT;
  return INT;
}
}
 
 
struct token
struct token
{
{
  char *operator;
  char *operator;
  int token;
  int token;
  enum exp_opcode opcode;
  enum exp_opcode opcode;
};
};
 
 
static const struct token dot_ops[] =
static const struct token dot_ops[] =
{
{
  { ".and.", BOOL_AND, BINOP_END },
  { ".and.", BOOL_AND, BINOP_END },
  { ".AND.", BOOL_AND, BINOP_END },
  { ".AND.", BOOL_AND, BINOP_END },
  { ".or.", BOOL_OR, BINOP_END },
  { ".or.", BOOL_OR, BINOP_END },
  { ".OR.", BOOL_OR, BINOP_END },
  { ".OR.", BOOL_OR, BINOP_END },
  { ".not.", BOOL_NOT, BINOP_END },
  { ".not.", BOOL_NOT, BINOP_END },
  { ".NOT.", BOOL_NOT, BINOP_END },
  { ".NOT.", BOOL_NOT, BINOP_END },
  { ".eq.", EQUAL, BINOP_END },
  { ".eq.", EQUAL, BINOP_END },
  { ".EQ.", EQUAL, BINOP_END },
  { ".EQ.", EQUAL, BINOP_END },
  { ".eqv.", EQUAL, BINOP_END },
  { ".eqv.", EQUAL, BINOP_END },
  { ".NEQV.", NOTEQUAL, BINOP_END },
  { ".NEQV.", NOTEQUAL, BINOP_END },
  { ".neqv.", NOTEQUAL, BINOP_END },
  { ".neqv.", NOTEQUAL, BINOP_END },
  { ".EQV.", EQUAL, BINOP_END },
  { ".EQV.", EQUAL, BINOP_END },
  { ".ne.", NOTEQUAL, BINOP_END },
  { ".ne.", NOTEQUAL, BINOP_END },
  { ".NE.", NOTEQUAL, BINOP_END },
  { ".NE.", NOTEQUAL, BINOP_END },
  { ".le.", LEQ, BINOP_END },
  { ".le.", LEQ, BINOP_END },
  { ".LE.", LEQ, BINOP_END },
  { ".LE.", LEQ, BINOP_END },
  { ".ge.", GEQ, BINOP_END },
  { ".ge.", GEQ, BINOP_END },
  { ".GE.", GEQ, BINOP_END },
  { ".GE.", GEQ, BINOP_END },
  { ".gt.", GREATERTHAN, BINOP_END },
  { ".gt.", GREATERTHAN, BINOP_END },
  { ".GT.", GREATERTHAN, BINOP_END },
  { ".GT.", GREATERTHAN, BINOP_END },
  { ".lt.", LESSTHAN, BINOP_END },
  { ".lt.", LESSTHAN, BINOP_END },
  { ".LT.", LESSTHAN, BINOP_END },
  { ".LT.", LESSTHAN, BINOP_END },
  { NULL, 0, 0 }
  { NULL, 0, 0 }
};
};
 
 
struct f77_boolean_val
struct f77_boolean_val
{
{
  char *name;
  char *name;
  int value;
  int value;
};
};
 
 
static const struct f77_boolean_val boolean_values[]  =
static const struct f77_boolean_val boolean_values[]  =
{
{
  { ".true.", 1 },
  { ".true.", 1 },
  { ".TRUE.", 1 },
  { ".TRUE.", 1 },
  { ".false.", 0 },
  { ".false.", 0 },
  { ".FALSE.", 0 },
  { ".FALSE.", 0 },
  { NULL, 0 }
  { NULL, 0 }
};
};
 
 
static const struct token f77_keywords[] =
static const struct token f77_keywords[] =
{
{
  { "complex_16", COMPLEX_S16_KEYWORD, BINOP_END },
  { "complex_16", COMPLEX_S16_KEYWORD, BINOP_END },
  { "complex_32", COMPLEX_S32_KEYWORD, BINOP_END },
  { "complex_32", COMPLEX_S32_KEYWORD, BINOP_END },
  { "character", CHARACTER, BINOP_END },
  { "character", CHARACTER, BINOP_END },
  { "integer_2", INT_S2_KEYWORD, BINOP_END },
  { "integer_2", INT_S2_KEYWORD, BINOP_END },
  { "logical_1", LOGICAL_S1_KEYWORD, BINOP_END },
  { "logical_1", LOGICAL_S1_KEYWORD, BINOP_END },
  { "logical_2", LOGICAL_S2_KEYWORD, BINOP_END },
  { "logical_2", LOGICAL_S2_KEYWORD, BINOP_END },
  { "logical_8", LOGICAL_S8_KEYWORD, BINOP_END },
  { "logical_8", LOGICAL_S8_KEYWORD, BINOP_END },
  { "complex_8", COMPLEX_S8_KEYWORD, BINOP_END },
  { "complex_8", COMPLEX_S8_KEYWORD, BINOP_END },
  { "integer", INT_KEYWORD, BINOP_END },
  { "integer", INT_KEYWORD, BINOP_END },
  { "logical", LOGICAL_KEYWORD, BINOP_END },
  { "logical", LOGICAL_KEYWORD, BINOP_END },
  { "real_16", REAL_S16_KEYWORD, BINOP_END },
  { "real_16", REAL_S16_KEYWORD, BINOP_END },
  { "complex", COMPLEX_S8_KEYWORD, BINOP_END },
  { "complex", COMPLEX_S8_KEYWORD, BINOP_END },
  { "sizeof", SIZEOF, BINOP_END },
  { "sizeof", SIZEOF, BINOP_END },
  { "real_8", REAL_S8_KEYWORD, BINOP_END },
  { "real_8", REAL_S8_KEYWORD, BINOP_END },
  { "real", REAL_KEYWORD, BINOP_END },
  { "real", REAL_KEYWORD, BINOP_END },
  { NULL, 0, 0 }
  { NULL, 0, 0 }
};
};
 
 
/* Implementation of a dynamically expandable buffer for processing input
/* Implementation of a dynamically expandable buffer for processing input
   characters acquired through lexptr and building a value to return in
   characters acquired through lexptr and building a value to return in
   yylval. Ripped off from ch-exp.y */
   yylval. Ripped off from ch-exp.y */
 
 
static char *tempbuf;           /* Current buffer contents */
static char *tempbuf;           /* Current buffer contents */
static int tempbufsize;         /* Size of allocated buffer */
static int tempbufsize;         /* Size of allocated buffer */
static int tempbufindex;        /* Current index into buffer */
static int tempbufindex;        /* Current index into buffer */
 
 
#define GROWBY_MIN_SIZE 64      /* Minimum amount to grow buffer by */
#define GROWBY_MIN_SIZE 64      /* Minimum amount to grow buffer by */
 
 
#define CHECKBUF(size) \
#define CHECKBUF(size) \
  do { \
  do { \
    if (tempbufindex + (size) >= tempbufsize) \
    if (tempbufindex + (size) >= tempbufsize) \
      { \
      { \
        growbuf_by_size (size); \
        growbuf_by_size (size); \
      } \
      } \
  } while (0);
  } while (0);
 
 
 
 
/* Grow the static temp buffer if necessary, including allocating the first one
/* Grow the static temp buffer if necessary, including allocating the first one
   on demand. */
   on demand. */
 
 
static void
static void
growbuf_by_size (count)
growbuf_by_size (count)
     int count;
     int count;
{
{
  int growby;
  int growby;
 
 
  growby = max (count, GROWBY_MIN_SIZE);
  growby = max (count, GROWBY_MIN_SIZE);
  tempbufsize += growby;
  tempbufsize += growby;
  if (tempbuf == NULL)
  if (tempbuf == NULL)
    tempbuf = (char *) xmalloc (tempbufsize);
    tempbuf = (char *) xmalloc (tempbufsize);
  else
  else
    tempbuf = (char *) xrealloc (tempbuf, tempbufsize);
    tempbuf = (char *) xrealloc (tempbuf, tempbufsize);
}
}
 
 
/* Blatantly ripped off from ch-exp.y. This routine recognizes F77
/* Blatantly ripped off from ch-exp.y. This routine recognizes F77
   string-literals.
   string-literals.
 
 
   Recognize a string literal.  A string literal is a nonzero sequence
   Recognize a string literal.  A string literal is a nonzero sequence
   of characters enclosed in matching single quotes, except that
   of characters enclosed in matching single quotes, except that
   a single character inside single quotes is a character literal, which
   a single character inside single quotes is a character literal, which
   we reject as a string literal.  To embed the terminator character inside
   we reject as a string literal.  To embed the terminator character inside
   a string, it is simply doubled (I.E. 'this''is''one''string') */
   a string, it is simply doubled (I.E. 'this''is''one''string') */
 
 
static int
static int
match_string_literal ()
match_string_literal ()
{
{
  char *tokptr = lexptr;
  char *tokptr = lexptr;
 
 
  for (tempbufindex = 0, tokptr++; *tokptr != '\0'; tokptr++)
  for (tempbufindex = 0, tokptr++; *tokptr != '\0'; tokptr++)
    {
    {
      CHECKBUF (1);
      CHECKBUF (1);
      if (*tokptr == *lexptr)
      if (*tokptr == *lexptr)
        {
        {
          if (*(tokptr + 1) == *lexptr)
          if (*(tokptr + 1) == *lexptr)
            tokptr++;
            tokptr++;
          else
          else
            break;
            break;
        }
        }
      tempbuf[tempbufindex++] = *tokptr;
      tempbuf[tempbufindex++] = *tokptr;
    }
    }
  if (*tokptr == '\0'                                   /* no terminator */
  if (*tokptr == '\0'                                   /* no terminator */
      || tempbufindex == 0)                              /* no string */
      || tempbufindex == 0)                              /* no string */
    return 0;
    return 0;
  else
  else
    {
    {
      tempbuf[tempbufindex] = '\0';
      tempbuf[tempbufindex] = '\0';
      yylval.sval.ptr = tempbuf;
      yylval.sval.ptr = tempbuf;
      yylval.sval.length = tempbufindex;
      yylval.sval.length = tempbufindex;
      lexptr = ++tokptr;
      lexptr = ++tokptr;
      return STRING_LITERAL;
      return STRING_LITERAL;
    }
    }
}
}
 
 
/* Read one token, getting characters through lexptr.  */
/* Read one token, getting characters through lexptr.  */
 
 
static int
static int
yylex ()
yylex ()
{
{
  int c;
  int c;
  int namelen;
  int namelen;
  unsigned int i,token;
  unsigned int i,token;
  char *tokstart;
  char *tokstart;
 
 
 retry:
 retry:
 
 
  prev_lexptr = lexptr;
  prev_lexptr = lexptr;
 
 
  tokstart = lexptr;
  tokstart = lexptr;
 
 
  /* First of all, let us make sure we are not dealing with the
  /* First of all, let us make sure we are not dealing with the
     special tokens .true. and .false. which evaluate to 1 and 0.  */
     special tokens .true. and .false. which evaluate to 1 and 0.  */
 
 
  if (*lexptr == '.')
  if (*lexptr == '.')
    {
    {
      for (i = 0; boolean_values[i].name != NULL; i++)
      for (i = 0; boolean_values[i].name != NULL; i++)
        {
        {
          if (strncmp (tokstart, boolean_values[i].name,
          if (strncmp (tokstart, boolean_values[i].name,
                       strlen (boolean_values[i].name)) == 0)
                       strlen (boolean_values[i].name)) == 0)
            {
            {
              lexptr += strlen (boolean_values[i].name);
              lexptr += strlen (boolean_values[i].name);
              yylval.lval = boolean_values[i].value;
              yylval.lval = boolean_values[i].value;
              return BOOLEAN_LITERAL;
              return BOOLEAN_LITERAL;
            }
            }
        }
        }
    }
    }
 
 
  /* See if it is a special .foo. operator.  */
  /* See if it is a special .foo. operator.  */
 
 
  for (i = 0; dot_ops[i].operator != NULL; i++)
  for (i = 0; dot_ops[i].operator != NULL; i++)
    if (strncmp (tokstart, dot_ops[i].operator, strlen (dot_ops[i].operator)) == 0)
    if (strncmp (tokstart, dot_ops[i].operator, strlen (dot_ops[i].operator)) == 0)
      {
      {
        lexptr += strlen (dot_ops[i].operator);
        lexptr += strlen (dot_ops[i].operator);
        yylval.opcode = dot_ops[i].opcode;
        yylval.opcode = dot_ops[i].opcode;
        return dot_ops[i].token;
        return dot_ops[i].token;
      }
      }
 
 
  /* See if it is an exponentiation operator.  */
  /* See if it is an exponentiation operator.  */
 
 
  if (strncmp (tokstart, "**", 2) == 0)
  if (strncmp (tokstart, "**", 2) == 0)
    {
    {
      lexptr += 2;
      lexptr += 2;
      yylval.opcode = BINOP_EXP;
      yylval.opcode = BINOP_EXP;
      return STARSTAR;
      return STARSTAR;
    }
    }
 
 
  switch (c = *tokstart)
  switch (c = *tokstart)
    {
    {
    case 0:
    case 0:
      return 0;
      return 0;
 
 
    case ' ':
    case ' ':
    case '\t':
    case '\t':
    case '\n':
    case '\n':
      lexptr++;
      lexptr++;
      goto retry;
      goto retry;
 
 
    case '\'':
    case '\'':
      token = match_string_literal ();
      token = match_string_literal ();
      if (token != 0)
      if (token != 0)
        return (token);
        return (token);
      break;
      break;
 
 
    case '(':
    case '(':
      paren_depth++;
      paren_depth++;
      lexptr++;
      lexptr++;
      return c;
      return c;
 
 
    case ')':
    case ')':
      if (paren_depth == 0)
      if (paren_depth == 0)
        return 0;
        return 0;
      paren_depth--;
      paren_depth--;
      lexptr++;
      lexptr++;
      return c;
      return c;
 
 
    case ',':
    case ',':
      if (comma_terminates && paren_depth == 0)
      if (comma_terminates && paren_depth == 0)
        return 0;
        return 0;
      lexptr++;
      lexptr++;
      return c;
      return c;
 
 
    case '.':
    case '.':
      /* Might be a floating point number.  */
      /* Might be a floating point number.  */
      if (lexptr[1] < '0' || lexptr[1] > '9')
      if (lexptr[1] < '0' || lexptr[1] > '9')
        goto symbol;            /* Nope, must be a symbol. */
        goto symbol;            /* Nope, must be a symbol. */
      /* FALL THRU into number case.  */
      /* FALL THRU into number case.  */
 
 
    case '0':
    case '0':
    case '1':
    case '1':
    case '2':
    case '2':
    case '3':
    case '3':
    case '4':
    case '4':
    case '5':
    case '5':
    case '6':
    case '6':
    case '7':
    case '7':
    case '8':
    case '8':
    case '9':
    case '9':
      {
      {
        /* It's a number.  */
        /* It's a number.  */
        int got_dot = 0, got_e = 0, got_d = 0, toktype;
        int got_dot = 0, got_e = 0, got_d = 0, toktype;
        char *p = tokstart;
        char *p = tokstart;
        int hex = input_radix > 10;
        int hex = input_radix > 10;
 
 
        if (c == '0' && (p[1] == 'x' || p[1] == 'X'))
        if (c == '0' && (p[1] == 'x' || p[1] == 'X'))
          {
          {
            p += 2;
            p += 2;
            hex = 1;
            hex = 1;
          }
          }
        else if (c == '0' && (p[1]=='t' || p[1]=='T' || p[1]=='d' || p[1]=='D'))
        else if (c == '0' && (p[1]=='t' || p[1]=='T' || p[1]=='d' || p[1]=='D'))
          {
          {
            p += 2;
            p += 2;
            hex = 0;
            hex = 0;
          }
          }
 
 
        for (;; ++p)
        for (;; ++p)
          {
          {
            if (!hex && !got_e && (*p == 'e' || *p == 'E'))
            if (!hex && !got_e && (*p == 'e' || *p == 'E'))
              got_dot = got_e = 1;
              got_dot = got_e = 1;
            else if (!hex && !got_d && (*p == 'd' || *p == 'D'))
            else if (!hex && !got_d && (*p == 'd' || *p == 'D'))
              got_dot = got_d = 1;
              got_dot = got_d = 1;
            else if (!hex && !got_dot && *p == '.')
            else if (!hex && !got_dot && *p == '.')
              got_dot = 1;
              got_dot = 1;
            else if (((got_e && (p[-1] == 'e' || p[-1] == 'E'))
            else if (((got_e && (p[-1] == 'e' || p[-1] == 'E'))
                     || (got_d && (p[-1] == 'd' || p[-1] == 'D')))
                     || (got_d && (p[-1] == 'd' || p[-1] == 'D')))
                     && (*p == '-' || *p == '+'))
                     && (*p == '-' || *p == '+'))
              /* This is the sign of the exponent, not the end of the
              /* This is the sign of the exponent, not the end of the
                 number.  */
                 number.  */
              continue;
              continue;
            /* We will take any letters or digits.  parse_number will
            /* We will take any letters or digits.  parse_number will
               complain if past the radix, or if L or U are not final.  */
               complain if past the radix, or if L or U are not final.  */
            else if ((*p < '0' || *p > '9')
            else if ((*p < '0' || *p > '9')
                     && ((*p < 'a' || *p > 'z')
                     && ((*p < 'a' || *p > 'z')
                         && (*p < 'A' || *p > 'Z')))
                         && (*p < 'A' || *p > 'Z')))
              break;
              break;
          }
          }
        toktype = parse_number (tokstart, p - tokstart, got_dot|got_e|got_d,
        toktype = parse_number (tokstart, p - tokstart, got_dot|got_e|got_d,
                                &yylval);
                                &yylval);
        if (toktype == ERROR)
        if (toktype == ERROR)
          {
          {
            char *err_copy = (char *) alloca (p - tokstart + 1);
            char *err_copy = (char *) alloca (p - tokstart + 1);
 
 
            memcpy (err_copy, tokstart, p - tokstart);
            memcpy (err_copy, tokstart, p - tokstart);
            err_copy[p - tokstart] = 0;
            err_copy[p - tokstart] = 0;
            error ("Invalid number \"%s\".", err_copy);
            error ("Invalid number \"%s\".", err_copy);
          }
          }
        lexptr = p;
        lexptr = p;
        return toktype;
        return toktype;
      }
      }
 
 
    case '+':
    case '+':
    case '-':
    case '-':
    case '*':
    case '*':
    case '/':
    case '/':
    case '%':
    case '%':
    case '|':
    case '|':
    case '&':
    case '&':
    case '^':
    case '^':
    case '~':
    case '~':
    case '!':
    case '!':
    case '@':
    case '@':
    case '<':
    case '<':
    case '>':
    case '>':
    case '[':
    case '[':
    case ']':
    case ']':
    case '?':
    case '?':
    case ':':
    case ':':
    case '=':
    case '=':
    case '{':
    case '{':
    case '}':
    case '}':
    symbol:
    symbol:
      lexptr++;
      lexptr++;
      return c;
      return c;
    }
    }
 
 
  if (!(c == '_' || c == '$' || c ==':'
  if (!(c == '_' || c == '$' || c ==':'
        || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')))
        || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')))
    /* We must have come across a bad character (e.g. ';').  */
    /* We must have come across a bad character (e.g. ';').  */
    error ("Invalid character '%c' in expression.", c);
    error ("Invalid character '%c' in expression.", c);
 
 
  namelen = 0;
  namelen = 0;
  for (c = tokstart[namelen];
  for (c = tokstart[namelen];
       (c == '_' || c == '$' || c == ':' || (c >= '0' && c <= '9')
       (c == '_' || c == '$' || c == ':' || (c >= '0' && c <= '9')
        || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
        || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
       c = tokstart[++namelen]);
       c = tokstart[++namelen]);
 
 
  /* The token "if" terminates the expression and is NOT
  /* The token "if" terminates the expression and is NOT
     removed from the input stream.  */
     removed from the input stream.  */
 
 
  if (namelen == 2 && tokstart[0] == 'i' && tokstart[1] == 'f')
  if (namelen == 2 && tokstart[0] == 'i' && tokstart[1] == 'f')
    return 0;
    return 0;
 
 
  lexptr += namelen;
  lexptr += namelen;
 
 
  /* Catch specific keywords.  */
  /* Catch specific keywords.  */
 
 
  for (i = 0; f77_keywords[i].operator != NULL; i++)
  for (i = 0; f77_keywords[i].operator != NULL; i++)
    if (strncmp (tokstart, f77_keywords[i].operator,
    if (strncmp (tokstart, f77_keywords[i].operator,
                 strlen(f77_keywords[i].operator)) == 0)
                 strlen(f77_keywords[i].operator)) == 0)
      {
      {
        /*      lexptr += strlen(f77_keywords[i].operator); */
        /*      lexptr += strlen(f77_keywords[i].operator); */
        yylval.opcode = f77_keywords[i].opcode;
        yylval.opcode = f77_keywords[i].opcode;
        return f77_keywords[i].token;
        return f77_keywords[i].token;
      }
      }
 
 
  yylval.sval.ptr = tokstart;
  yylval.sval.ptr = tokstart;
  yylval.sval.length = namelen;
  yylval.sval.length = namelen;
 
 
  if (*tokstart == '$')
  if (*tokstart == '$')
    {
    {
      write_dollar_variable (yylval.sval);
      write_dollar_variable (yylval.sval);
      return VARIABLE;
      return VARIABLE;
    }
    }
 
 
  /* Use token-type TYPENAME for symbols that happen to be defined
  /* Use token-type TYPENAME for symbols that happen to be defined
     currently as names of types; NAME for other symbols.
     currently as names of types; NAME for other symbols.
     The caller is not constrained to care about the distinction.  */
     The caller is not constrained to care about the distinction.  */
  {
  {
    char *tmp = copy_name (yylval.sval);
    char *tmp = copy_name (yylval.sval);
    struct symbol *sym;
    struct symbol *sym;
    int is_a_field_of_this = 0;
    int is_a_field_of_this = 0;
    int hextype;
    int hextype;
 
 
    sym = lookup_symbol (tmp, expression_context_block,
    sym = lookup_symbol (tmp, expression_context_block,
                         VAR_DOMAIN,
                         VAR_DOMAIN,
                         parse_language->la_language == language_cplus
                         parse_language->la_language == language_cplus
                         ? &is_a_field_of_this : NULL);
                         ? &is_a_field_of_this : NULL);
    if (sym && SYMBOL_CLASS (sym) == LOC_TYPEDEF)
    if (sym && SYMBOL_CLASS (sym) == LOC_TYPEDEF)
      {
      {
        yylval.tsym.type = SYMBOL_TYPE (sym);
        yylval.tsym.type = SYMBOL_TYPE (sym);
        return TYPENAME;
        return TYPENAME;
      }
      }
    yylval.tsym.type
    yylval.tsym.type
      = language_lookup_primitive_type_by_name (parse_language,
      = language_lookup_primitive_type_by_name (parse_language,
                                                parse_gdbarch, tmp);
                                                parse_gdbarch, tmp);
    if (yylval.tsym.type != NULL)
    if (yylval.tsym.type != NULL)
      return TYPENAME;
      return TYPENAME;
 
 
    /* Input names that aren't symbols but ARE valid hex numbers,
    /* Input names that aren't symbols but ARE valid hex numbers,
       when the input radix permits them, can be names or numbers
       when the input radix permits them, can be names or numbers
       depending on the parse.  Note we support radixes > 16 here.  */
       depending on the parse.  Note we support radixes > 16 here.  */
    if (!sym
    if (!sym
        && ((tokstart[0] >= 'a' && tokstart[0] < 'a' + input_radix - 10)
        && ((tokstart[0] >= 'a' && tokstart[0] < 'a' + input_radix - 10)
            || (tokstart[0] >= 'A' && tokstart[0] < 'A' + input_radix - 10)))
            || (tokstart[0] >= 'A' && tokstart[0] < 'A' + input_radix - 10)))
      {
      {
        YYSTYPE newlval;        /* Its value is ignored.  */
        YYSTYPE newlval;        /* Its value is ignored.  */
        hextype = parse_number (tokstart, namelen, 0, &newlval);
        hextype = parse_number (tokstart, namelen, 0, &newlval);
        if (hextype == INT)
        if (hextype == INT)
          {
          {
            yylval.ssym.sym = sym;
            yylval.ssym.sym = sym;
            yylval.ssym.is_a_field_of_this = is_a_field_of_this;
            yylval.ssym.is_a_field_of_this = is_a_field_of_this;
            return NAME_OR_INT;
            return NAME_OR_INT;
          }
          }
      }
      }
 
 
    /* Any other kind of symbol */
    /* Any other kind of symbol */
    yylval.ssym.sym = sym;
    yylval.ssym.sym = sym;
    yylval.ssym.is_a_field_of_this = is_a_field_of_this;
    yylval.ssym.is_a_field_of_this = is_a_field_of_this;
    return NAME;
    return NAME;
  }
  }
}
}
 
 
void
void
yyerror (msg)
yyerror (msg)
     char *msg;
     char *msg;
{
{
  if (prev_lexptr)
  if (prev_lexptr)
    lexptr = prev_lexptr;
    lexptr = prev_lexptr;
 
 
  error ("A %s in expression, near `%s'.", (msg ? msg : "error"), lexptr);
  error ("A %s in expression, near `%s'.", (msg ? msg : "error"), 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.