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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [m2-exp.tab.c] - Diff between revs 105 and 1765

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

Rev 105 Rev 1765
 
 
/*  A Bison parser, made from m2-exp.y
/*  A Bison parser, made from m2-exp.y
 by  GNU Bison version 1.27
 by  GNU Bison version 1.27
  */
  */
 
 
#define YYBISON 1  /* Identify Bison output.  */
#define YYBISON 1  /* Identify Bison output.  */
 
 
#define INT     257
#define INT     257
#define HEX     258
#define HEX     258
#define ERROR   259
#define ERROR   259
#define UINT    260
#define UINT    260
#define M2_TRUE 261
#define M2_TRUE 261
#define M2_FALSE        262
#define M2_FALSE        262
#define CHAR    263
#define CHAR    263
#define FLOAT   264
#define FLOAT   264
#define STRING  265
#define STRING  265
#define NAME    266
#define NAME    266
#define BLOCKNAME       267
#define BLOCKNAME       267
#define IDENT   268
#define IDENT   268
#define VARNAME 269
#define VARNAME 269
#define TYPENAME        270
#define TYPENAME        270
#define SIZE    271
#define SIZE    271
#define CAP     272
#define CAP     272
#define ORD     273
#define ORD     273
#define HIGH    274
#define HIGH    274
#define ABS     275
#define ABS     275
#define MIN_FUNC        276
#define MIN_FUNC        276
#define MAX_FUNC        277
#define MAX_FUNC        277
#define FLOAT_FUNC      278
#define FLOAT_FUNC      278
#define VAL     279
#define VAL     279
#define CHR     280
#define CHR     280
#define ODD     281
#define ODD     281
#define TRUNC   282
#define TRUNC   282
#define INC     283
#define INC     283
#define DEC     284
#define DEC     284
#define INCL    285
#define INCL    285
#define EXCL    286
#define EXCL    286
#define COLONCOLON      287
#define COLONCOLON      287
#define INTERNAL_VAR    288
#define INTERNAL_VAR    288
#define ABOVE_COMMA     289
#define ABOVE_COMMA     289
#define ASSIGN  290
#define ASSIGN  290
#define LEQ     291
#define LEQ     291
#define GEQ     292
#define GEQ     292
#define NOTEQUAL        293
#define NOTEQUAL        293
#define IN      294
#define IN      294
#define OROR    295
#define OROR    295
#define LOGICAL_AND     296
#define LOGICAL_AND     296
#define DIV     297
#define DIV     297
#define MOD     298
#define MOD     298
#define UNARY   299
#define UNARY   299
#define DOT     300
#define DOT     300
#define NOT     301
#define NOT     301
#define QID     302
#define QID     302
 
 
#line 40 "m2-exp.y"
#line 40 "m2-exp.y"
 
 
 
 
#include "defs.h"
#include "defs.h"
#include "gdb_string.h"
#include "gdb_string.h"
#include "expression.h"
#include "expression.h"
#include "language.h"
#include "language.h"
#include "value.h"
#include "value.h"
#include "parser-defs.h"
#include "parser-defs.h"
#include "m2-lang.h"
#include "m2-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 */
 
 
/* 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 m2_maxdepth
#define yymaxdepth m2_maxdepth
#define yyparse m2_parse
#define yyparse m2_parse
#define yylex   m2_lex
#define yylex   m2_lex
#define yyerror m2_error
#define yyerror m2_error
#define yylval  m2_lval
#define yylval  m2_lval
#define yychar  m2_char
#define yychar  m2_char
#define yydebug m2_debug
#define yydebug m2_debug
#define yypact  m2_pact
#define yypact  m2_pact
#define yyr1    m2_r1
#define yyr1    m2_r1
#define yyr2    m2_r2
#define yyr2    m2_r2
#define yydef   m2_def
#define yydef   m2_def
#define yychk   m2_chk
#define yychk   m2_chk
#define yypgo   m2_pgo
#define yypgo   m2_pgo
#define yyact   m2_act
#define yyact   m2_act
#define yyexca  m2_exca
#define yyexca  m2_exca
#define yyerrflag m2_errflag
#define yyerrflag m2_errflag
#define yynerrs m2_nerrs
#define yynerrs m2_nerrs
#define yyps    m2_ps
#define yyps    m2_ps
#define yypv    m2_pv
#define yypv    m2_pv
#define yys     m2_s
#define yys     m2_s
#define yy_yys  m2_yys
#define yy_yys  m2_yys
#define yystate m2_state
#define yystate m2_state
#define yytmp   m2_tmp
#define yytmp   m2_tmp
#define yyv     m2_v
#define yyv     m2_v
#define yy_yyv  m2_yyv
#define yy_yyv  m2_yyv
#define yyval   m2_val
#define yyval   m2_val
#define yylloc  m2_lloc
#define yylloc  m2_lloc
#define yyreds  m2_reds         /* With YYDEBUG defined */
#define yyreds  m2_reds         /* With YYDEBUG defined */
#define yytoks  m2_toks         /* With YYDEBUG defined */
#define yytoks  m2_toks         /* With YYDEBUG defined */
#define yylhs   m2_yylhs
#define yylhs   m2_yylhs
#define yylen   m2_yylen
#define yylen   m2_yylen
#define yydefred m2_yydefred
#define yydefred m2_yydefred
#define yydgoto m2_yydgoto
#define yydgoto m2_yydgoto
#define yysindex m2_yysindex
#define yysindex m2_yysindex
#define yyrindex m2_yyrindex
#define yyrindex m2_yyrindex
#define yygindex m2_yygindex
#define yygindex m2_yygindex
#define yytable  m2_yytable
#define yytable  m2_yytable
#define yycheck  m2_yycheck
#define yycheck  m2_yycheck
 
 
#ifndef YYDEBUG
#ifndef YYDEBUG
#define YYDEBUG 0                /* Default to no yydebug support */
#define YYDEBUG 0                /* Default to no yydebug support */
#endif
#endif
 
 
int
int
yyparse PARAMS ((void));
yyparse PARAMS ((void));
 
 
static int
static int
yylex PARAMS ((void));
yylex PARAMS ((void));
 
 
void
void
yyerror PARAMS ((char *));
yyerror PARAMS ((char *));
 
 
#if 0
#if 0
static char *
static char *
make_qualname PARAMS ((char *, char *));
make_qualname PARAMS ((char *, char *));
#endif
#endif
 
 
static int
static int
parse_number PARAMS ((int));
parse_number PARAMS ((int));
 
 
/* The sign of the number being parsed. */
/* The sign of the number being parsed. */
static int number_sign = 1;
static int number_sign = 1;
 
 
/* The block that the module specified by the qualifer on an identifer is
/* The block that the module specified by the qualifer on an identifer is
   contained in, */
   contained in, */
#if 0
#if 0
static struct block *modblock=0;
static struct block *modblock=0;
#endif
#endif
 
 
 
 
#line 135 "m2-exp.y"
#line 135 "m2-exp.y"
typedef union
typedef union
  {
  {
    LONGEST lval;
    LONGEST lval;
    ULONGEST ulval;
    ULONGEST ulval;
    DOUBLEST dval;
    DOUBLEST dval;
    struct symbol *sym;
    struct symbol *sym;
    struct type *tval;
    struct type *tval;
    struct stoken sval;
    struct stoken sval;
    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;
  } YYSTYPE;
  } YYSTYPE;
#include <stdio.h>
#include <stdio.h>
 
 
#ifndef __cplusplus
#ifndef __cplusplus
#ifndef __STDC__
#ifndef __STDC__
#define const
#define const
#endif
#endif
#endif
#endif
 
 
 
 
 
 
#define YYFINAL         181
#define YYFINAL         181
#define YYFLAG          -32768
#define YYFLAG          -32768
#define YYNTBASE        68
#define YYNTBASE        68
 
 
#define YYTRANSLATE(x) ((unsigned)(x) <= 302 ? yytranslate[x] : 82)
#define YYTRANSLATE(x) ((unsigned)(x) <= 302 ? yytranslate[x] : 82)
 
 
static const char yytranslate[] = {     0,
static const char yytranslate[] = {     0,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,    44,     2,     2,    48,     2,    60,
     2,     2,     2,     2,    44,     2,     2,    48,     2,    60,
    64,    52,    50,    35,    51,     2,    53,     2,     2,     2,
    64,    52,    50,    35,    51,     2,    53,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,    38,
     2,     2,     2,     2,     2,     2,     2,     2,     2,    38,
    42,    39,     2,    49,     2,     2,     2,     2,     2,     2,
    42,    39,     2,    49,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
    59,     2,    67,    57,     2,     2,     2,     2,     2,     2,
    59,     2,    67,    57,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,    65,     2,    66,    62,     2,     2,     2,     2,
     2,     2,    65,     2,    66,    62,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     1,     3,     4,     5,     6,
     2,     2,     2,     2,     2,     1,     3,     4,     5,     6,
     7,     8,     9,    10,    11,    12,    13,    14,    15,    16,
     7,     8,     9,    10,    11,    12,    13,    14,    15,    16,
    17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
    17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
    27,    28,    29,    30,    31,    32,    33,    34,    36,    37,
    27,    28,    29,    30,    31,    32,    33,    34,    36,    37,
    40,    41,    43,    45,    46,    47,    54,    55,    56,    58,
    40,    41,    43,    45,    46,    47,    54,    55,    56,    58,
    61,    63
    61,    63
};
};
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
static const short yyprhs[] = {     0,
static const short yyprhs[] = {     0,
     0,     2,     4,     6,     9,    10,    14,    17,    20,    22,
     0,     2,     4,     6,     9,    10,    14,    17,    20,    22,
    24,    29,    34,    39,    44,    49,    54,    59,    66,    71,
    24,    29,    34,    39,    44,    49,    54,    59,    66,    71,
    76,    81,    84,    89,    96,   101,   108,   112,   114,   118,
    76,    81,    84,    89,    96,   101,   108,   112,   114,   118,
   125,   132,   136,   141,   142,   148,   149,   155,   156,   158,
   125,   132,   136,   141,   142,   148,   149,   155,   156,   158,
   162,   164,   168,   173,   178,   182,   186,   190,   194,   198,
   162,   164,   168,   173,   178,   182,   186,   190,   194,   198,
   202,   206,   210,   214,   218,   222,   226,   230,   234,   238,
   202,   206,   210,   214,   218,   222,   226,   230,   234,   238,
   242,   246,   250,   252,   254,   256,   258,   260,   262,   264,
   242,   246,   250,   252,   254,   256,   258,   260,   262,   264,
   269,   271,   273,   275,   279,   281,   283,   287,   289
   269,   271,   273,   275,   279,   281,   283,   287,   289
};
};
 
 
static const short yyrhs[] = {    70,
static const short yyrhs[] = {    70,
     0,    69,     0,    81,     0,    70,    57,     0,     0,    51,
     0,    69,     0,    81,     0,    70,    57,     0,     0,    51,
    71,    70,     0,    50,    70,     0,    72,    70,     0,    61,
    71,    70,     0,    50,    70,     0,    72,    70,     0,    61,
     0,    62,     0,    18,    60,    70,    64,     0,    19,    60,
     0,    62,     0,    18,    60,    70,    64,     0,    19,    60,
    70,    64,     0,    21,    60,    70,    64,     0,    20,    60,
    70,    64,     0,    21,    60,    70,    64,     0,    20,    60,
    70,    64,     0,    22,    60,    81,    64,     0,    23,    60,
    70,    64,     0,    22,    60,    81,    64,     0,    23,    60,
    81,    64,     0,    24,    60,    70,    64,     0,    25,    60,
    81,    64,     0,    24,    60,    70,    64,     0,    25,    60,
    81,    35,    70,    64,     0,    26,    60,    70,    64,     0,
    81,    35,    70,    64,     0,    26,    60,    70,    64,     0,
    27,    60,    70,    64,     0,    28,    60,    70,    64,     0,
    27,    60,    70,    64,     0,    28,    60,    70,    64,     0,
    17,    70,     0,    29,    60,    70,    64,     0,    29,    60,
    17,    70,     0,    29,    60,    70,    64,     0,    29,    60,
    70,    35,    70,    64,     0,    30,    60,    70,    64,     0,
    70,    35,    70,    64,     0,    30,    60,    70,    64,     0,
    30,    60,    70,    35,    70,    64,     0,    70,    58,    12,
    30,    60,    70,    35,    70,    64,     0,    70,    58,    12,
     0,    73,     0,    70,    45,    73,     0,    31,    60,    70,
     0,    73,     0,    70,    45,    73,     0,    31,    60,    70,
    35,    70,    64,     0,    32,    60,    70,    35,    70,    64,
    35,    70,    64,     0,    32,    60,    70,    35,    70,    64,
     0,    65,    76,    66,     0,    81,    65,    76,    66,     0,
     0,    65,    76,    66,     0,    81,    65,    76,    66,     0,
     0,    70,    59,    74,    77,    67,     0,     0,    70,    60,
     0,    70,    59,    74,    77,    67,     0,     0,    70,    60,
    75,    76,    64,     0,     0,    70,     0,    76,    35,    70,
    75,    76,    64,     0,     0,    70,     0,    76,    35,    70,
     0,    70,     0,    77,    35,    70,     0,    65,    81,    66,
     0,    70,     0,    77,    35,    70,     0,    65,    81,    66,
    70,     0,    81,    60,    70,    64,     0,    60,    70,    64,
    70,     0,    81,    60,    70,    64,     0,    60,    70,    64,
     0,    70,    49,    70,     0,    70,    52,    70,     0,    70,
     0,    70,    49,    70,     0,    70,    52,    70,     0,    70,
    53,    70,     0,    70,    54,    70,     0,    70,    55,    70,
    53,    70,     0,    70,    54,    70,     0,    70,    55,    70,
     0,    70,    50,    70,     0,    70,    51,    70,     0,    70,
     0,    70,    50,    70,     0,    70,    51,    70,     0,    70,
    42,    70,     0,    70,    43,    70,     0,    70,    44,    70,
    42,    70,     0,    70,    43,    70,     0,    70,    44,    70,
     0,    70,    40,    70,     0,    70,    41,    70,     0,    70,
     0,    70,    40,    70,     0,    70,    41,    70,     0,    70,
    38,    70,     0,    70,    39,    70,     0,    70,    47,    70,
    38,    70,     0,    70,    39,    70,     0,    70,    47,    70,
     0,    70,    46,    70,     0,    70,    37,    70,     0,     7,
     0,    70,    46,    70,     0,    70,    37,    70,     0,     7,
     0,     8,     0,     3,     0,     6,     0,     9,     0,    10,
     0,     8,     0,     3,     0,     6,     0,     9,     0,    10,
     0,    80,     0,    17,    60,    81,    64,     0,    11,     0,
     0,    80,     0,    17,    60,    81,    64,     0,    11,     0,
    79,     0,    13,     0,    78,    33,    13,     0,    79,     0,
    79,     0,    13,     0,    78,    33,    13,     0,    79,     0,
    34,     0,    78,    33,    12,     0,    12,     0,    16,     0
    34,     0,    78,    33,    12,     0,    12,     0,    16,     0
};
};
 
 
#endif
#endif
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
static const short yyrline[] = { 0,
static const short yyrline[] = { 0,
   204,   205,   208,   217,   220,   222,   227,   231,   235,   236,
   204,   205,   208,   217,   220,   222,   227,   231,   235,   236,
   239,   243,   247,   251,   255,   261,   267,   271,   277,   281,
   239,   243,   247,   251,   255,   261,   267,   271,   277,   281,
   285,   289,   294,   298,   304,   308,   314,   320,   323,   327,
   285,   289,   294,   298,   304,   308,   314,   320,   323,   327,
   331,   334,   336,   342,   347,   353,   357,   363,   366,   370,
   331,   334,   336,   342,   347,   353,   357,   363,   366,   370,
   375,   380,   385,   391,   397,   405,   409,   413,   417,   421,
   375,   380,   385,   391,   397,   405,   409,   413,   417,   421,
   425,   429,   433,   437,   439,   443,   447,   451,   455,   459,
   425,   429,   433,   437,   439,   443,   447,   451,   455,   459,
   463,   467,   474,   480,   486,   493,   502,   510,   517,   520,
   463,   467,   474,   480,   486,   493,   502,   510,   517,   520,
   527,   534,   538,   547,   559,   567,   571,   587,   638
   527,   534,   538,   547,   559,   567,   571,   587,   638
};
};
#endif
#endif
 
 
 
 
#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
 
 
static const char * const yytname[] = {   "$","error","$undefined.","INT","HEX",
static const char * const yytname[] = {   "$","error","$undefined.","INT","HEX",
"ERROR","UINT","M2_TRUE","M2_FALSE","CHAR","FLOAT","STRING","NAME","BLOCKNAME",
"ERROR","UINT","M2_TRUE","M2_FALSE","CHAR","FLOAT","STRING","NAME","BLOCKNAME",
"IDENT","VARNAME","TYPENAME","SIZE","CAP","ORD","HIGH","ABS","MIN_FUNC","MAX_FUNC",
"IDENT","VARNAME","TYPENAME","SIZE","CAP","ORD","HIGH","ABS","MIN_FUNC","MAX_FUNC",
"FLOAT_FUNC","VAL","CHR","ODD","TRUNC","INC","DEC","INCL","EXCL","COLONCOLON",
"FLOAT_FUNC","VAL","CHR","ODD","TRUNC","INC","DEC","INCL","EXCL","COLONCOLON",
"INTERNAL_VAR","','","ABOVE_COMMA","ASSIGN","'<'","'>'","LEQ","GEQ","'='","NOTEQUAL",
"INTERNAL_VAR","','","ABOVE_COMMA","ASSIGN","'<'","'>'","LEQ","GEQ","'='","NOTEQUAL",
"'#'","IN","OROR","LOGICAL_AND","'&'","'@'","'+'","'-'","'*'","'/'","DIV","MOD",
"'#'","IN","OROR","LOGICAL_AND","'&'","'@'","'+'","'-'","'*'","'/'","DIV","MOD",
"UNARY","'^'","DOT","'['","'('","NOT","'~'","QID","')'","'{'","'}'","']'","start",
"UNARY","'^'","DOT","'['","'('","NOT","'~'","QID","')'","'{'","'}'","']'","start",
"type_exp","exp","@1","not_exp","set","@2","@3","arglist","non_empty_arglist",
"type_exp","exp","@1","not_exp","set","@2","@3","arglist","non_empty_arglist",
"block","fblock","variable","type", NULL
"block","fblock","variable","type", NULL
};
};
#endif
#endif
 
 
static const short yyr1[] = {     0,
static const short yyr1[] = {     0,
    68,    68,    69,    70,    71,    70,    70,    70,    72,    72,
    68,    68,    69,    70,    71,    70,    70,    70,    72,    72,
    70,    70,    70,    70,    70,    70,    70,    70,    70,    70,
    70,    70,    70,    70,    70,    70,    70,    70,    70,    70,
    70,    70,    70,    70,    70,    70,    70,    70,    70,    70,
    70,    70,    70,    70,    70,    70,    70,    70,    70,    70,
    70,    73,    73,    74,    70,    75,    70,    76,    76,    76,
    70,    73,    73,    74,    70,    75,    70,    76,    76,    76,
    77,    77,    70,    70,    70,    70,    70,    70,    70,    70,
    77,    77,    70,    70,    70,    70,    70,    70,    70,    70,
    70,    70,    70,    70,    70,    70,    70,    70,    70,    70,
    70,    70,    70,    70,    70,    70,    70,    70,    70,    70,
    70,    70,    70,    70,    70,    70,    70,    70,    70,    70,
    70,    70,    70,    70,    70,    70,    70,    70,    70,    70,
    70,    78,    79,    79,    80,    80,    80,    80,    81
    70,    78,    79,    79,    80,    80,    80,    80,    81
};
};
 
 
static const short yyr2[] = {     0,
static const short yyr2[] = {     0,
     1,     1,     1,     2,     0,     3,     2,     2,     1,     1,
     1,     1,     1,     2,     0,     3,     2,     2,     1,     1,
     4,     4,     4,     4,     4,     4,     4,     6,     4,     4,
     4,     4,     4,     4,     4,     4,     4,     6,     4,     4,
     4,     2,     4,     6,     4,     6,     3,     1,     3,     6,
     4,     2,     4,     6,     4,     6,     3,     1,     3,     6,
     6,     3,     4,     0,     5,     0,     5,     0,     1,     3,
     6,     3,     4,     0,     5,     0,     5,     0,     1,     3,
     1,     3,     4,     4,     3,     3,     3,     3,     3,     3,
     1,     3,     4,     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,     1,     1,     1,     1,     1,     1,     1,     4,
     3,     3,     1,     1,     1,     1,     1,     1,     1,     4,
     1,     1,     1,     3,     1,     1,     3,     1,     1
     1,     1,     1,     3,     1,     1,     3,     1,     1
};
};
 
 
static const short yydefact[] = {     0,
static const short yydefact[] = {     0,
    65,    66,    63,    64,    67,    68,    71,    78,    73,    79,
    65,    66,    63,    64,    67,    68,    71,    78,    73,    79,
     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,    76,     0,     5,     0,
     0,     0,     0,     0,     0,     0,    76,     0,     5,     0,
     9,    10,    38,     2,     1,     0,    28,     0,    75,    69,
     9,    10,    38,     2,     1,     0,    28,     0,    75,    69,
     3,     0,    22,     0,     0,     0,     0,     0,     0,     0,
     3,     0,    22,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     7,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     7,
     0,     0,    39,     0,     0,     0,     0,     0,     0,     0,
     0,     0,    39,     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,     4,     0,    34,    36,     8,     0,     0,
     0,     0,     0,     4,     0,    34,    36,     8,     0,     0,
    38,     0,     0,     0,     0,     0,     0,     0,     0,     0,
    38,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     6,    45,     0,
     0,     0,     0,     0,     0,     0,     0,     6,    45,     0,
    32,     0,    62,    58,    59,    56,    57,    53,    54,    55,
    32,     0,    62,    58,    59,    56,    57,    53,    54,    55,
    38,    29,     0,    61,    60,    46,    51,    52,    47,    48,
    38,    29,     0,    61,    60,    46,    51,    52,    47,    48,
    49,    50,    27,     0,    38,    77,    74,     0,     0,    70,
    49,    50,    27,     0,    38,    77,    74,     0,     0,    70,
    11,    12,    14,    13,    15,    16,    17,     0,    19,    20,
    11,    12,    14,    13,    15,    16,    17,     0,    19,    20,
    21,     0,    23,     0,    25,     0,     0,    40,    43,    41,
    21,     0,    23,     0,    25,     0,     0,    40,    43,    41,
     0,     0,    44,    33,     0,     0,     0,     0,     0,     0,
     0,     0,    44,    33,     0,     0,     0,     0,     0,     0,
    35,    37,    18,    24,    26,    30,    31,    42,     0,     0,
    35,    37,    18,    24,    26,    30,    31,    42,     0,     0,
     0
     0
};
};
 
 
static const short yydefgoto[] = {   179,
static const short yydefgoto[] = {   179,
    34,    63,    61,    36,    37,   134,   135,    64,   161,    38,
    34,    63,    61,    36,    37,   134,   135,    64,   161,    38,
    39,    40,    44
    39,    40,    44
};
};
 
 
static const short yypact[] = {   155,
static const short yypact[] = {   155,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
   215,   -27,   -22,   -20,   -19,    14,    24,    26,    27,    28,
   215,   -27,   -22,   -20,   -19,    14,    24,    26,    27,    28,
    29,    31,    32,    33,    35,    36,-32768,   155,-32768,   155,
    29,    31,    32,    33,    35,    36,-32768,   155,-32768,   155,
-32768,-32768,   155,-32768,   742,   155,-32768,    -6,    -4,-32768,
-32768,-32768,   155,-32768,   742,   155,-32768,    -6,    -4,-32768,
   -34,   155,     5,   -34,   155,   155,   155,   155,    44,    44,
   -34,   155,     5,   -34,   155,   155,   155,   155,    44,    44,
   155,    44,   155,   155,   155,   155,   155,   155,   155,     5,
   155,    44,   155,   155,   155,   155,   155,   155,   155,     5,
   155,   272,   742,   -31,   -41,   155,   155,   155,   155,   155,
   155,   272,   742,   -31,   -41,   155,   155,   155,   155,   155,
   155,   155,   155,   -15,   155,   155,   155,   155,   155,   155,
   155,   155,   155,   -15,   155,   155,   155,   155,   155,   155,
   155,   155,   155,-32768,    85,-32768,-32768,     5,    -5,   155,
   155,   155,   155,-32768,    85,-32768,-32768,     5,    -5,   155,
   155,   -21,   300,   328,   356,   384,    34,    39,   412,    64,
   155,   -21,   300,   328,   356,   384,    34,    39,   412,    64,
   440,   468,   496,    78,   244,   692,   718,     5,-32768,   155,
   440,   468,   496,    78,   244,   692,   718,     5,-32768,   155,
-32768,   155,   766,   -37,   -37,   -37,   -37,   -37,   -37,   -37,
-32768,   155,   766,   -37,   -37,   -37,   -37,   -37,   -37,   -37,
   155,-32768,    40,   141,   201,   777,   786,   786,     5,     5,
   155,-32768,    40,   141,   201,   777,   786,   786,     5,     5,
     5,     5,-32768,   155,   155,-32768,-32768,   524,   -29,-32768,
     5,     5,-32768,   155,   155,-32768,-32768,   524,   -29,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,   155,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,   155,-32768,-32768,
-32768,   155,-32768,   155,-32768,   155,   155,   742,     5,   742,
-32768,   155,-32768,   155,-32768,   155,   155,   742,     5,   742,
   -33,   -32,-32768,-32768,   552,   580,   608,   636,   664,   155,
   -33,   -32,-32768,-32768,   552,   580,   608,   636,   664,   155,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,   742,   100,   106,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,   742,   100,   106,
-32768
-32768
};
};
 
 
static const short yypgoto[] = {-32768,
static const short yypgoto[] = {-32768,
-32768,     0,-32768,-32768,    37,-32768,-32768,   -86,-32768,-32768,
-32768,     0,-32768,-32768,    37,-32768,-32768,   -86,-32768,-32768,
-32768,-32768,    52
-32768,-32768,    52
};
};
 
 
 
 
#define YYLAST          846
#define YYLAST          846
 
 
 
 
static const short yytable[] = {    35,
static const short yytable[] = {    35,
    10,   170,   110,   110,   139,   110,   136,   137,    75,    76,
    10,   170,   110,   110,   139,   110,   136,   137,    75,    76,
    43,    77,    78,    79,    80,    81,    82,    83,    90,    84,
    43,    77,    78,    79,    80,    81,    82,    83,    90,    84,
    85,    86,    87,    91,   112,    90,    89,    60,   -72,    62,
    85,    86,    87,    91,   112,    90,    89,    60,   -72,    62,
    91,   172,    45,   171,   111,    88,   164,    46,    90,    47,
    91,   172,    45,   171,   111,    88,   164,    46,    90,    47,
    48,    62,   140,    91,    93,    94,    95,    96,   162,   121,
    48,    62,   140,    91,    93,    94,    95,    96,   162,   121,
    99,    41,   101,   102,   103,   104,   105,   106,   107,    10,
    99,    41,   101,   102,   103,   104,   105,   106,   107,    10,
   108,    84,    85,    86,    87,   113,   114,   115,   116,   117,
   108,    84,    85,    86,    87,   113,   114,   115,   116,   117,
   118,   119,   120,    49,   124,   125,   126,   127,   128,   129,
   118,   119,   120,    49,   124,   125,   126,   127,   128,   129,
   130,   131,   132,    50,    65,    51,    52,    53,    54,   138,
   130,   131,   132,    50,    65,    51,    52,    53,    54,   138,
    55,    56,    57,    92,    58,    59,   133,   145,   148,   180,
    55,    56,    57,    92,    58,    59,   133,   145,   148,   180,
    97,    98,   146,   100,    91,   181,     0,     0,     0,   158,
    97,    98,   146,   100,    91,   181,     0,     0,     0,   158,
   122,   159,   152,     0,    66,    67,    68,    69,    70,    71,
   122,   159,   152,     0,    66,    67,    68,    69,    70,    71,
    72,    73,    74,    75,    76,   123,    77,    78,    79,    80,
    72,    73,    74,    75,    76,   123,    77,    78,    79,    80,
    81,    82,    83,   160,    84,    85,    86,    87,     0,     0,
    81,    82,    83,   160,    84,    85,    86,    87,     0,     0,
     0,   153,     0,     0,     0,     0,     0,   165,     0,     0,
     0,   153,     0,     0,     0,     0,     0,   165,     0,     0,
     0,   166,     0,   167,     0,   168,   169,     1,     0,     0,
     0,   166,     0,   167,     0,   168,   169,     1,     0,     0,
     2,     3,     4,     5,     6,     7,     8,     9,     0,   178,
     2,     3,     4,     5,     6,     7,     8,     9,     0,   178,
    10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
    10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
    20,    21,    22,    23,    24,    25,    26,    76,    27,    77,
    20,    21,    22,    23,    24,    25,    26,    76,    27,    77,
    78,    79,    80,    81,    82,    83,     0,    84,    85,    86,
    78,    79,    80,    81,    82,    83,     0,    84,    85,    86,
    87,     0,     0,     0,    28,    29,     0,     0,     0,     0,
    87,     0,     0,     0,    28,    29,     0,     0,     0,     0,
     0,     0,     0,     0,    30,    31,    32,     1,     0,    33,
     0,     0,     0,     0,    30,    31,    32,     1,     0,    33,
     2,     3,     4,     5,     6,     7,     8,     9,     0,     0,
     2,     3,     4,     5,     6,     7,     8,     9,     0,     0,
    10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
    10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
    20,    21,    22,    23,    24,    25,    26,     0,    27,    77,
    20,    21,    22,    23,    24,    25,    26,     0,    27,    77,
    78,    79,    80,    81,    82,    83,     0,    84,    85,    86,
    78,    79,    80,    81,    82,    83,     0,    84,    85,    86,
    87,     0,     0,     0,    28,    29,     0,     0,     0,     0,
    87,     0,     0,     0,    28,    29,     0,     0,     0,     0,
     0,     0,     0,     0,    42,    31,    32,     0,   154,    33,
     0,     0,     0,     0,    42,    31,    32,     0,   154,    33,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    76,     0,    77,    78,    79,    80,    81,    82,    83,     0,
    76,     0,    77,    78,    79,    80,    81,    82,    83,     0,
    84,    85,    86,    87,     0,     0,     0,   155,    66,    67,
    84,    85,    86,    87,     0,     0,     0,   155,    66,    67,
    68,    69,    70,    71,    72,    73,    74,    75,    76,     0,
    68,    69,    70,    71,    72,    73,    74,    75,    76,     0,
    77,    78,    79,    80,    81,    82,    83,     0,    84,    85,
    77,    78,    79,    80,    81,    82,    83,     0,    84,    85,
    86,    87,     0,     0,     0,   109,    66,    67,    68,    69,
    86,    87,     0,     0,     0,   109,    66,    67,    68,    69,
    70,    71,    72,    73,    74,    75,    76,     0,    77,    78,
    70,    71,    72,    73,    74,    75,    76,     0,    77,    78,
    79,    80,    81,    82,    83,     0,    84,    85,    86,    87,
    79,    80,    81,    82,    83,     0,    84,    85,    86,    87,
     0,     0,     0,   141,    66,    67,    68,    69,    70,    71,
     0,     0,     0,   141,    66,    67,    68,    69,    70,    71,
    72,    73,    74,    75,    76,     0,    77,    78,    79,    80,
    72,    73,    74,    75,    76,     0,    77,    78,    79,    80,
    81,    82,    83,     0,    84,    85,    86,    87,     0,     0,
    81,    82,    83,     0,    84,    85,    86,    87,     0,     0,
     0,   142,    66,    67,    68,    69,    70,    71,    72,    73,
     0,   142,    66,    67,    68,    69,    70,    71,    72,    73,
    74,    75,    76,     0,    77,    78,    79,    80,    81,    82,
    74,    75,    76,     0,    77,    78,    79,    80,    81,    82,
    83,     0,    84,    85,    86,    87,     0,     0,     0,   143,
    83,     0,    84,    85,    86,    87,     0,     0,     0,   143,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    76,     0,    77,    78,    79,    80,    81,    82,    83,     0,
    76,     0,    77,    78,    79,    80,    81,    82,    83,     0,
    84,    85,    86,    87,     0,     0,     0,   144,    66,    67,
    84,    85,    86,    87,     0,     0,     0,   144,    66,    67,
    68,    69,    70,    71,    72,    73,    74,    75,    76,     0,
    68,    69,    70,    71,    72,    73,    74,    75,    76,     0,
    77,    78,    79,    80,    81,    82,    83,     0,    84,    85,
    77,    78,    79,    80,    81,    82,    83,     0,    84,    85,
    86,    87,     0,     0,     0,   147,    66,    67,    68,    69,
    86,    87,     0,     0,     0,   147,    66,    67,    68,    69,
    70,    71,    72,    73,    74,    75,    76,     0,    77,    78,
    70,    71,    72,    73,    74,    75,    76,     0,    77,    78,
    79,    80,    81,    82,    83,     0,    84,    85,    86,    87,
    79,    80,    81,    82,    83,     0,    84,    85,    86,    87,
     0,     0,     0,   149,    66,    67,    68,    69,    70,    71,
     0,     0,     0,   149,    66,    67,    68,    69,    70,    71,
    72,    73,    74,    75,    76,     0,    77,    78,    79,    80,
    72,    73,    74,    75,    76,     0,    77,    78,    79,    80,
    81,    82,    83,     0,    84,    85,    86,    87,     0,     0,
    81,    82,    83,     0,    84,    85,    86,    87,     0,     0,
     0,   150,    66,    67,    68,    69,    70,    71,    72,    73,
     0,   150,    66,    67,    68,    69,    70,    71,    72,    73,
    74,    75,    76,     0,    77,    78,    79,    80,    81,    82,
    74,    75,    76,     0,    77,    78,    79,    80,    81,    82,
    83,     0,    84,    85,    86,    87,     0,     0,     0,   151,
    83,     0,    84,    85,    86,    87,     0,     0,     0,   151,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    76,     0,    77,    78,    79,    80,    81,    82,    83,     0,
    76,     0,    77,    78,    79,    80,    81,    82,    83,     0,
    84,    85,    86,    87,     0,     0,     0,   163,    66,    67,
    84,    85,    86,    87,     0,     0,     0,   163,    66,    67,
    68,    69,    70,    71,    72,    73,    74,    75,    76,     0,
    68,    69,    70,    71,    72,    73,    74,    75,    76,     0,
    77,    78,    79,    80,    81,    82,    83,     0,    84,    85,
    77,    78,    79,    80,    81,    82,    83,     0,    84,    85,
    86,    87,     0,     0,     0,   173,    66,    67,    68,    69,
    86,    87,     0,     0,     0,   173,    66,    67,    68,    69,
    70,    71,    72,    73,    74,    75,    76,     0,    77,    78,
    70,    71,    72,    73,    74,    75,    76,     0,    77,    78,
    79,    80,    81,    82,    83,     0,    84,    85,    86,    87,
    79,    80,    81,    82,    83,     0,    84,    85,    86,    87,
     0,     0,     0,   174,    66,    67,    68,    69,    70,    71,
     0,     0,     0,   174,    66,    67,    68,    69,    70,    71,
    72,    73,    74,    75,    76,     0,    77,    78,    79,    80,
    72,    73,    74,    75,    76,     0,    77,    78,    79,    80,
    81,    82,    83,     0,    84,    85,    86,    87,     0,     0,
    81,    82,    83,     0,    84,    85,    86,    87,     0,     0,
     0,   175,    66,    67,    68,    69,    70,    71,    72,    73,
     0,   175,    66,    67,    68,    69,    70,    71,    72,    73,
    74,    75,    76,     0,    77,    78,    79,    80,    81,    82,
    74,    75,    76,     0,    77,    78,    79,    80,    81,    82,
    83,     0,    84,    85,    86,    87,     0,     0,     0,   176,
    83,     0,    84,    85,    86,    87,     0,     0,     0,   176,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    76,     0,    77,    78,    79,    80,    81,    82,    83,     0,
    76,     0,    77,    78,    79,    80,    81,    82,    83,     0,
    84,    85,    86,    87,     0,     0,   156,   177,    66,    67,
    84,    85,    86,    87,     0,     0,   156,   177,    66,    67,
    68,    69,    70,    71,    72,    73,    74,    75,    76,     0,
    68,    69,    70,    71,    72,    73,    74,    75,    76,     0,
    77,    78,    79,    80,    81,    82,    83,     0,    84,    85,
    77,    78,    79,    80,    81,    82,    83,     0,    84,    85,
    86,    87,   157,     0,    66,    67,    68,    69,    70,    71,
    86,    87,   157,     0,    66,    67,    68,    69,    70,    71,
    72,    73,    74,    75,    76,     0,    77,    78,    79,    80,
    72,    73,    74,    75,    76,     0,    77,    78,    79,    80,
    81,    82,    83,     0,    84,    85,    86,    87,    66,    67,
    81,    82,    83,     0,    84,    85,    86,    87,    66,    67,
    68,    69,    70,    71,    72,    73,    74,    75,    76,     0,
    68,    69,    70,    71,    72,    73,    74,    75,    76,     0,
    77,    78,    79,    80,    81,    82,    83,     0,    84,    85,
    77,    78,    79,    80,    81,    82,    83,     0,    84,    85,
    86,    87,-32768,    67,    68,    69,    70,    71,    72,    73,
    86,    87,-32768,    67,    68,    69,    70,    71,    72,    73,
    74,    75,    76,     0,    77,    78,    79,    80,    81,    82,
    74,    75,    76,     0,    77,    78,    79,    80,    81,    82,
    83,     0,    84,    85,    86,    87,    78,    79,    80,    81,
    83,     0,    84,    85,    86,    87,    78,    79,    80,    81,
    82,    83,     0,    84,    85,    86,    87,    80,    81,    82,
    82,    83,     0,    84,    85,    86,    87,    80,    81,    82,
    83,     0,    84,    85,    86,    87
    83,     0,    84,    85,    86,    87
};
};
 
 
static const short yycheck[] = {     0,
static const short yycheck[] = {     0,
    16,    35,    35,    35,    91,    35,    12,    13,    46,    47,
    16,    35,    35,    35,    91,    35,    12,    13,    46,    47,
    11,    49,    50,    51,    52,    53,    54,    55,    60,    57,
    11,    49,    50,    51,    52,    53,    54,    55,    60,    57,
    58,    59,    60,    65,    66,    60,    33,    28,    33,    30,
    58,    59,    60,    65,    66,    60,    33,    28,    33,    30,
    65,    64,    60,    67,    66,    36,    66,    60,    60,    60,
    65,    64,    60,    67,    66,    36,    66,    60,    60,    60,
    60,    42,    64,    65,    45,    46,    47,    48,   135,    65,
    60,    42,    64,    65,    45,    46,    47,    48,   135,    65,
    51,     0,    53,    54,    55,    56,    57,    58,    59,    16,
    51,     0,    53,    54,    55,    56,    57,    58,    59,    16,
    61,    57,    58,    59,    60,    66,    67,    68,    69,    70,
    61,    57,    58,    59,    60,    66,    67,    68,    69,    70,
    71,    72,    73,    60,    75,    76,    77,    78,    79,    80,
    71,    72,    73,    60,    75,    76,    77,    78,    79,    80,
    81,    82,    83,    60,    33,    60,    60,    60,    60,    90,
    81,    82,    83,    60,    33,    60,    60,    60,    60,    90,
    60,    60,    60,    42,    60,    60,    12,    64,    35,     0,
    60,    60,    60,    42,    60,    60,    12,    64,    35,     0,
    49,    50,    64,    52,    65,     0,    -1,    -1,    -1,   110,
    49,    50,    64,    52,    65,     0,    -1,    -1,    -1,   110,
    74,   112,    35,    -1,    37,    38,    39,    40,    41,    42,
    74,   112,    35,    -1,    37,    38,    39,    40,    41,    42,
    43,    44,    45,    46,    47,    74,    49,    50,    51,    52,
    43,    44,    45,    46,    47,    74,    49,    50,    51,    52,
    53,    54,    55,   134,    57,    58,    59,    60,    -1,    -1,
    53,    54,    55,   134,    57,    58,    59,    60,    -1,    -1,
    -1,    64,    -1,    -1,    -1,    -1,    -1,   148,    -1,    -1,
    -1,    64,    -1,    -1,    -1,    -1,    -1,   148,    -1,    -1,
    -1,   152,    -1,   154,    -1,   156,   157,     3,    -1,    -1,
    -1,   152,    -1,   154,    -1,   156,   157,     3,    -1,    -1,
     6,     7,     8,     9,    10,    11,    12,    13,    -1,   170,
     6,     7,     8,     9,    10,    11,    12,    13,    -1,   170,
    16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
    16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
    26,    27,    28,    29,    30,    31,    32,    47,    34,    49,
    26,    27,    28,    29,    30,    31,    32,    47,    34,    49,
    50,    51,    52,    53,    54,    55,    -1,    57,    58,    59,
    50,    51,    52,    53,    54,    55,    -1,    57,    58,    59,
    60,    -1,    -1,    -1,    50,    51,    -1,    -1,    -1,    -1,
    60,    -1,    -1,    -1,    50,    51,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    60,    61,    62,     3,    -1,    65,
    -1,    -1,    -1,    -1,    60,    61,    62,     3,    -1,    65,
     6,     7,     8,     9,    10,    11,    12,    13,    -1,    -1,
     6,     7,     8,     9,    10,    11,    12,    13,    -1,    -1,
    16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
    16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
    26,    27,    28,    29,    30,    31,    32,    -1,    34,    49,
    26,    27,    28,    29,    30,    31,    32,    -1,    34,    49,
    50,    51,    52,    53,    54,    55,    -1,    57,    58,    59,
    50,    51,    52,    53,    54,    55,    -1,    57,    58,    59,
    60,    -1,    -1,    -1,    50,    51,    -1,    -1,    -1,    -1,
    60,    -1,    -1,    -1,    50,    51,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    60,    61,    62,    -1,    35,    65,
    -1,    -1,    -1,    -1,    60,    61,    62,    -1,    35,    65,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    47,    -1,    49,    50,    51,    52,    53,    54,    55,    -1,
    47,    -1,    49,    50,    51,    52,    53,    54,    55,    -1,
    57,    58,    59,    60,    -1,    -1,    -1,    64,    37,    38,
    57,    58,    59,    60,    -1,    -1,    -1,    64,    37,    38,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    -1,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    -1,
    49,    50,    51,    52,    53,    54,    55,    -1,    57,    58,
    49,    50,    51,    52,    53,    54,    55,    -1,    57,    58,
    59,    60,    -1,    -1,    -1,    64,    37,    38,    39,    40,
    59,    60,    -1,    -1,    -1,    64,    37,    38,    39,    40,
    41,    42,    43,    44,    45,    46,    47,    -1,    49,    50,
    41,    42,    43,    44,    45,    46,    47,    -1,    49,    50,
    51,    52,    53,    54,    55,    -1,    57,    58,    59,    60,
    51,    52,    53,    54,    55,    -1,    57,    58,    59,    60,
    -1,    -1,    -1,    64,    37,    38,    39,    40,    41,    42,
    -1,    -1,    -1,    64,    37,    38,    39,    40,    41,    42,
    43,    44,    45,    46,    47,    -1,    49,    50,    51,    52,
    43,    44,    45,    46,    47,    -1,    49,    50,    51,    52,
    53,    54,    55,    -1,    57,    58,    59,    60,    -1,    -1,
    53,    54,    55,    -1,    57,    58,    59,    60,    -1,    -1,
    -1,    64,    37,    38,    39,    40,    41,    42,    43,    44,
    -1,    64,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    -1,    49,    50,    51,    52,    53,    54,
    45,    46,    47,    -1,    49,    50,    51,    52,    53,    54,
    55,    -1,    57,    58,    59,    60,    -1,    -1,    -1,    64,
    55,    -1,    57,    58,    59,    60,    -1,    -1,    -1,    64,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    47,    -1,    49,    50,    51,    52,    53,    54,    55,    -1,
    47,    -1,    49,    50,    51,    52,    53,    54,    55,    -1,
    57,    58,    59,    60,    -1,    -1,    -1,    64,    37,    38,
    57,    58,    59,    60,    -1,    -1,    -1,    64,    37,    38,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    -1,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    -1,
    49,    50,    51,    52,    53,    54,    55,    -1,    57,    58,
    49,    50,    51,    52,    53,    54,    55,    -1,    57,    58,
    59,    60,    -1,    -1,    -1,    64,    37,    38,    39,    40,
    59,    60,    -1,    -1,    -1,    64,    37,    38,    39,    40,
    41,    42,    43,    44,    45,    46,    47,    -1,    49,    50,
    41,    42,    43,    44,    45,    46,    47,    -1,    49,    50,
    51,    52,    53,    54,    55,    -1,    57,    58,    59,    60,
    51,    52,    53,    54,    55,    -1,    57,    58,    59,    60,
    -1,    -1,    -1,    64,    37,    38,    39,    40,    41,    42,
    -1,    -1,    -1,    64,    37,    38,    39,    40,    41,    42,
    43,    44,    45,    46,    47,    -1,    49,    50,    51,    52,
    43,    44,    45,    46,    47,    -1,    49,    50,    51,    52,
    53,    54,    55,    -1,    57,    58,    59,    60,    -1,    -1,
    53,    54,    55,    -1,    57,    58,    59,    60,    -1,    -1,
    -1,    64,    37,    38,    39,    40,    41,    42,    43,    44,
    -1,    64,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    -1,    49,    50,    51,    52,    53,    54,
    45,    46,    47,    -1,    49,    50,    51,    52,    53,    54,
    55,    -1,    57,    58,    59,    60,    -1,    -1,    -1,    64,
    55,    -1,    57,    58,    59,    60,    -1,    -1,    -1,    64,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    47,    -1,    49,    50,    51,    52,    53,    54,    55,    -1,
    47,    -1,    49,    50,    51,    52,    53,    54,    55,    -1,
    57,    58,    59,    60,    -1,    -1,    -1,    64,    37,    38,
    57,    58,    59,    60,    -1,    -1,    -1,    64,    37,    38,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    -1,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    -1,
    49,    50,    51,    52,    53,    54,    55,    -1,    57,    58,
    49,    50,    51,    52,    53,    54,    55,    -1,    57,    58,
    59,    60,    -1,    -1,    -1,    64,    37,    38,    39,    40,
    59,    60,    -1,    -1,    -1,    64,    37,    38,    39,    40,
    41,    42,    43,    44,    45,    46,    47,    -1,    49,    50,
    41,    42,    43,    44,    45,    46,    47,    -1,    49,    50,
    51,    52,    53,    54,    55,    -1,    57,    58,    59,    60,
    51,    52,    53,    54,    55,    -1,    57,    58,    59,    60,
    -1,    -1,    -1,    64,    37,    38,    39,    40,    41,    42,
    -1,    -1,    -1,    64,    37,    38,    39,    40,    41,    42,
    43,    44,    45,    46,    47,    -1,    49,    50,    51,    52,
    43,    44,    45,    46,    47,    -1,    49,    50,    51,    52,
    53,    54,    55,    -1,    57,    58,    59,    60,    -1,    -1,
    53,    54,    55,    -1,    57,    58,    59,    60,    -1,    -1,
    -1,    64,    37,    38,    39,    40,    41,    42,    43,    44,
    -1,    64,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    -1,    49,    50,    51,    52,    53,    54,
    45,    46,    47,    -1,    49,    50,    51,    52,    53,    54,
    55,    -1,    57,    58,    59,    60,    -1,    -1,    -1,    64,
    55,    -1,    57,    58,    59,    60,    -1,    -1,    -1,    64,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
    47,    -1,    49,    50,    51,    52,    53,    54,    55,    -1,
    47,    -1,    49,    50,    51,    52,    53,    54,    55,    -1,
    57,    58,    59,    60,    -1,    -1,    35,    64,    37,    38,
    57,    58,    59,    60,    -1,    -1,    35,    64,    37,    38,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    -1,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    -1,
    49,    50,    51,    52,    53,    54,    55,    -1,    57,    58,
    49,    50,    51,    52,    53,    54,    55,    -1,    57,    58,
    59,    60,    35,    -1,    37,    38,    39,    40,    41,    42,
    59,    60,    35,    -1,    37,    38,    39,    40,    41,    42,
    43,    44,    45,    46,    47,    -1,    49,    50,    51,    52,
    43,    44,    45,    46,    47,    -1,    49,    50,    51,    52,
    53,    54,    55,    -1,    57,    58,    59,    60,    37,    38,
    53,    54,    55,    -1,    57,    58,    59,    60,    37,    38,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    -1,
    39,    40,    41,    42,    43,    44,    45,    46,    47,    -1,
    49,    50,    51,    52,    53,    54,    55,    -1,    57,    58,
    49,    50,    51,    52,    53,    54,    55,    -1,    57,    58,
    59,    60,    37,    38,    39,    40,    41,    42,    43,    44,
    59,    60,    37,    38,    39,    40,    41,    42,    43,    44,
    45,    46,    47,    -1,    49,    50,    51,    52,    53,    54,
    45,    46,    47,    -1,    49,    50,    51,    52,    53,    54,
    55,    -1,    57,    58,    59,    60,    50,    51,    52,    53,
    55,    -1,    57,    58,    59,    60,    50,    51,    52,    53,
    54,    55,    -1,    57,    58,    59,    60,    52,    53,    54,
    54,    55,    -1,    57,    58,    59,    60,    52,    53,    54,
    55,    -1,    57,    58,    59,    60
    55,    -1,    57,    58,    59,    60
};
};
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
#line 3 "/usr/lib/bison.simple"
#line 3 "/usr/lib/bison.simple"
/* This file comes from bison-1.27.  */
/* This file comes from bison-1.27.  */
 
 
/* Skeleton output parser for bison,
/* Skeleton output parser for bison,
   Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
   Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
 
 
   This program is free software; you can redistribute it and/or modify
   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 2, or (at your option)
   any later version.
   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, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */
   Boston, MA 02111-1307, USA.  */
 
 
/* As a special exception, when this file is copied by Bison into a
/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */
   in version 1.24 of Bison.  */
 
 
/* This is the parser code that is written into each bison parser
/* This is the parser code that is written into each bison parser
  when the %semantic_parser declaration is not specified in the grammar.
  when the %semantic_parser declaration is not specified in the grammar.
  It was written by Richard Stallman by simplifying the hairy parser
  It was written by Richard Stallman by simplifying the hairy parser
  used when %semantic_parser is specified.  */
  used when %semantic_parser is specified.  */
 
 
#ifndef YYSTACK_USE_ALLOCA
#ifndef YYSTACK_USE_ALLOCA
#ifdef alloca
#ifdef alloca
#define YYSTACK_USE_ALLOCA
#define YYSTACK_USE_ALLOCA
#else /* alloca not defined */
#else /* alloca not defined */
#ifdef __GNUC__
#ifdef __GNUC__
#define YYSTACK_USE_ALLOCA
#define YYSTACK_USE_ALLOCA
#define alloca __builtin_alloca
#define alloca __builtin_alloca
#else /* not GNU C.  */
#else /* not GNU C.  */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
#define YYSTACK_USE_ALLOCA
#define YYSTACK_USE_ALLOCA
#include <alloca.h>
#include <alloca.h>
#else /* not sparc */
#else /* not sparc */
/* We think this test detects Watcom and Microsoft C.  */
/* We think this test detects Watcom and Microsoft C.  */
/* This used to test MSDOS, but that is a bad idea
/* This used to test MSDOS, but that is a bad idea
   since that symbol is in the user namespace.  */
   since that symbol is in the user namespace.  */
#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
#if 0 /* No need for xmalloc.h, which pollutes the namespace;
#if 0 /* No need for xmalloc.h, which pollutes the namespace;
         instead, just don't use alloca.  */
         instead, just don't use alloca.  */
#endif
#endif
#else /* not MSDOS, or __TURBOC__ */
#else /* not MSDOS, or __TURBOC__ */
#if defined(_AIX)
#if defined(_AIX)
/* I don't know what this was needed for, but it pollutes the namespace.
/* I don't know what this was needed for, but it pollutes the namespace.
   So I turned it off.   rms, 2 May 1997.  */
   So I turned it off.   rms, 2 May 1997.  */
 #pragma alloca
 #pragma alloca
#define YYSTACK_USE_ALLOCA
#define YYSTACK_USE_ALLOCA
#else /* not MSDOS, or __TURBOC__, or _AIX */
#else /* not MSDOS, or __TURBOC__, or _AIX */
#if 0
#if 0
#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
                 and on HPUX 10.  Eventually we can turn this on.  */
                 and on HPUX 10.  Eventually we can turn this on.  */
#define YYSTACK_USE_ALLOCA
#define YYSTACK_USE_ALLOCA
#define alloca __builtin_alloca
#define alloca __builtin_alloca
#endif /* __hpux */
#endif /* __hpux */
#endif
#endif
#endif /* not _AIX */
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc */
#endif /* not sparc */
#endif /* not GNU C */
#endif /* not GNU C */
#endif /* alloca not defined */
#endif /* alloca not defined */
#endif /* YYSTACK_USE_ALLOCA not defined */
#endif /* YYSTACK_USE_ALLOCA not defined */
 
 
#ifdef YYSTACK_USE_ALLOCA
#ifdef YYSTACK_USE_ALLOCA
#define YYSTACK_ALLOC alloca
#define YYSTACK_ALLOC alloca
#else
#else
#define YYSTACK_ALLOC xmalloc
#define YYSTACK_ALLOC xmalloc
#endif
#endif
 
 
/* Note: there must be only one dollar sign in this file.
/* Note: there must be only one dollar sign in this file.
   It is replaced by the list of actions, each action
   It is replaced by the list of actions, each action
   as one case of the switch.  */
   as one case of the switch.  */
 
 
#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 yyerrlab1
#define YYERROR         goto yyerrlab1
/* Like YYERROR except do call yyerror.
/* Like YYERROR except do call yyerror.
   This remains here temporarily to ease the
   This remains here temporarily to ease the
   transition to the new meaning of YYERROR, for GCC.
   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), yylval = (value);                       \
    { yychar = (token), yylval = (value);                       \
      yychar1 = YYTRANSLATE (yychar);                           \
      yychar1 = YYTRANSLATE (yychar);                           \
      YYPOPSTACK;                                               \
      YYPOPSTACK;                                               \
      goto yybackup;                                            \
      goto yybackup;                                            \
    }                                                           \
    }                                                           \
  else                                                          \
  else                                                          \
    { yyerror ("syntax error: cannot back up"); YYERROR; }      \
    { yyerror ("syntax error: cannot back up"); YYERROR; }      \
while (0)
while (0)
 
 
#define YYTERROR        1
#define YYTERROR        1
#define YYERRCODE       256
#define YYERRCODE       256
 
 
#ifndef YYPURE
#ifndef YYPURE
#define YYLEX           yylex()
#define YYLEX           yylex()
#endif
#endif
 
 
#ifdef YYPURE
#ifdef YYPURE
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
#ifdef YYLEX_PARAM
#ifdef YYLEX_PARAM
#define YYLEX           yylex(&yylval, &yylloc, YYLEX_PARAM)
#define YYLEX           yylex(&yylval, &yylloc, YYLEX_PARAM)
#else
#else
#define YYLEX           yylex(&yylval, &yylloc)
#define YYLEX           yylex(&yylval, &yylloc)
#endif
#endif
#else /* not YYLSP_NEEDED */
#else /* not YYLSP_NEEDED */
#ifdef YYLEX_PARAM
#ifdef YYLEX_PARAM
#define YYLEX           yylex(&yylval, YYLEX_PARAM)
#define YYLEX           yylex(&yylval, YYLEX_PARAM)
#else
#else
#define YYLEX           yylex(&yylval)
#define YYLEX           yylex(&yylval)
#endif
#endif
#endif /* not YYLSP_NEEDED */
#endif /* not YYLSP_NEEDED */
#endif
#endif
 
 
/* If nonreentrant, generate the variables here */
/* If nonreentrant, generate the variables here */
 
 
#ifndef YYPURE
#ifndef YYPURE
 
 
int     yychar;                 /*  the lookahead symbol                */
int     yychar;                 /*  the lookahead symbol                */
YYSTYPE yylval;                 /*  the semantic value of the           */
YYSTYPE yylval;                 /*  the semantic value of the           */
                                /*  lookahead symbol                    */
                                /*  lookahead symbol                    */
 
 
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
YYLTYPE yylloc;                 /*  location data for the lookahead     */
YYLTYPE yylloc;                 /*  location data for the lookahead     */
                                /*  symbol                              */
                                /*  symbol                              */
#endif
#endif
 
 
int yynerrs;                    /*  number of parse errors so far       */
int yynerrs;                    /*  number of parse errors so far       */
#endif  /* not YYPURE */
#endif  /* not YYPURE */
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
int yydebug;                    /*  nonzero means print parse trace     */
int yydebug;                    /*  nonzero means print parse trace     */
/* Since this is uninitialized, it does not stop multiple parsers
/* Since this is uninitialized, it does not stop multiple parsers
   from coexisting.  */
   from coexisting.  */
#endif
#endif
 
 
/*  YYINITDEPTH indicates the initial size of the parser's stacks       */
/*  YYINITDEPTH indicates the initial size of the parser's stacks       */
 
 
#ifndef YYINITDEPTH
#ifndef YYINITDEPTH
#define YYINITDEPTH 200
#define YYINITDEPTH 200
#endif
#endif
 
 
/*  YYMAXDEPTH is the maximum size the stacks can grow to
/*  YYMAXDEPTH is the maximum size the stacks can grow to
    (effective only if the built-in stack extension method is used).  */
    (effective only if the built-in stack extension method is used).  */
 
 
#if YYMAXDEPTH == 0
#if YYMAXDEPTH == 0
#undef YYMAXDEPTH
#undef YYMAXDEPTH
#endif
#endif
 
 
#ifndef YYMAXDEPTH
#ifndef YYMAXDEPTH
#define YYMAXDEPTH 10000
#define YYMAXDEPTH 10000
#endif
#endif


/* Define __yy_memcpy.  Note that the size argument
/* Define __yy_memcpy.  Note that the size argument
   should be passed with type unsigned int, because that is what the non-GCC
   should be passed with type unsigned int, because that is what the non-GCC
   definitions require.  With GCC, __builtin_memcpy takes an arg
   definitions require.  With GCC, __builtin_memcpy takes an arg
   of type size_t, but it can handle unsigned int.  */
   of type size_t, but it can handle unsigned int.  */
 
 
#if __GNUC__ > 1                /* GNU C and GNU C++ define this.  */
#if __GNUC__ > 1                /* GNU C and GNU C++ define this.  */
#define __yy_memcpy(TO,FROM,COUNT)      __builtin_memcpy(TO,FROM,COUNT)
#define __yy_memcpy(TO,FROM,COUNT)      __builtin_memcpy(TO,FROM,COUNT)
#else                           /* not GNU C or C++ */
#else                           /* not GNU C or C++ */
#ifndef __cplusplus
#ifndef __cplusplus
 
 
/* This is the most reliable way to avoid incompatibilities
/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
   in available built-in functions on various systems.  */
static void
static void
__yy_memcpy (to, from, count)
__yy_memcpy (to, from, count)
     char *to;
     char *to;
     char *from;
     char *from;
     unsigned int count;
     unsigned int count;
{
{
  register char *f = from;
  register char *f = from;
  register char *t = to;
  register char *t = to;
  register int i = count;
  register int i = count;
 
 
  while (i-- > 0)
  while (i-- > 0)
    *t++ = *f++;
    *t++ = *f++;
}
}
 
 
#else /* __cplusplus */
#else /* __cplusplus */
 
 
/* This is the most reliable way to avoid incompatibilities
/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
   in available built-in functions on various systems.  */
static void
static void
__yy_memcpy (char *to, char *from, unsigned int count)
__yy_memcpy (char *to, char *from, unsigned int count)
{
{
  register char *t = to;
  register char *t = to;
  register char *f = from;
  register char *f = from;
  register int i = count;
  register int i = count;
 
 
  while (i-- > 0)
  while (i-- > 0)
    *t++ = *f++;
    *t++ = *f++;
}
}
 
 
#endif
#endif
#endif
#endif


#line 216 "/usr/lib/bison.simple"
#line 216 "/usr/lib/bison.simple"
 
 
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
   into yyparse.  The argument should have type void *.
   into yyparse.  The argument should have type void *.
   It should actually point to an object.
   It should actually point to an object.
   Grammar actions can access the variable by casting it
   Grammar actions can access the variable by casting it
   to the proper pointer type.  */
   to the proper pointer type.  */
 
 
#ifdef YYPARSE_PARAM
#ifdef YYPARSE_PARAM
#ifdef __cplusplus
#ifdef __cplusplus
#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#define YYPARSE_PARAM_DECL
#define YYPARSE_PARAM_DECL
#else /* not __cplusplus */
#else /* not __cplusplus */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
#endif /* not __cplusplus */
#endif /* not __cplusplus */
#else /* not YYPARSE_PARAM */
#else /* not YYPARSE_PARAM */
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#define YYPARSE_PARAM_DECL
#endif /* not YYPARSE_PARAM */
#endif /* not YYPARSE_PARAM */
 
 
/* Prevent warning if -Wstrict-prototypes.  */
/* Prevent warning if -Wstrict-prototypes.  */
#ifdef __GNUC__
#ifdef __GNUC__
#ifdef YYPARSE_PARAM
#ifdef YYPARSE_PARAM
int yyparse (void *);
int yyparse (void *);
#else
#else
int yyparse (void);
int yyparse (void);
#endif
#endif
#endif
#endif
 
 
int
int
yyparse(YYPARSE_PARAM_ARG)
yyparse(YYPARSE_PARAM_ARG)
     YYPARSE_PARAM_DECL
     YYPARSE_PARAM_DECL
{
{
  register int yystate;
  register int yystate;
  register int yyn;
  register int yyn;
  register short *yyssp;
  register short *yyssp;
  register YYSTYPE *yyvsp;
  register YYSTYPE *yyvsp;
  int yyerrstatus;      /*  number of tokens to shift before error messages enabled */
  int yyerrstatus;      /*  number of tokens to shift before error messages enabled */
  int yychar1 = 0;               /*  lookahead token as an internal (translated) token number */
  int yychar1 = 0;               /*  lookahead token as an internal (translated) token number */
 
 
  short yyssa[YYINITDEPTH];     /*  the state stack                     */
  short yyssa[YYINITDEPTH];     /*  the state stack                     */
  YYSTYPE yyvsa[YYINITDEPTH];   /*  the semantic value stack            */
  YYSTYPE yyvsa[YYINITDEPTH];   /*  the semantic value stack            */
 
 
  short *yyss = yyssa;          /*  refer to the stacks thru separate pointers */
  short *yyss = yyssa;          /*  refer to the stacks thru separate pointers */
  YYSTYPE *yyvs = yyvsa;        /*  to allow yyoverflow to xreallocate them elsewhere */
  YYSTYPE *yyvs = yyvsa;        /*  to allow yyoverflow to xreallocate them elsewhere */
 
 
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
  YYLTYPE yylsa[YYINITDEPTH];   /*  the location stack                  */
  YYLTYPE yylsa[YYINITDEPTH];   /*  the location stack                  */
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yylsp;
  YYLTYPE *yylsp;
 
 
#define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
#define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
#else
#else
#define YYPOPSTACK   (yyvsp--, yyssp--)
#define YYPOPSTACK   (yyvsp--, yyssp--)
#endif
#endif
 
 
  int yystacksize = YYINITDEPTH;
  int yystacksize = YYINITDEPTH;
  int yyfree_stacks = 0;
  int yyfree_stacks = 0;
 
 
#ifdef YYPURE
#ifdef YYPURE
  int yychar;
  int yychar;
  YYSTYPE yylval;
  YYSTYPE yylval;
  int yynerrs;
  int yynerrs;
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
  YYLTYPE yylloc;
  YYLTYPE yylloc;
#endif
#endif
#endif
#endif
 
 
  YYSTYPE yyval;                /*  the variable used to return         */
  YYSTYPE yyval;                /*  the variable used to return         */
                                /*  semantic values from the action     */
                                /*  semantic values from the action     */
                                /*  routines                            */
                                /*  routines                            */
 
 
  int yylen;
  int yylen;
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
  if (yydebug)
  if (yydebug)
    fprintf(stderr, "Starting parse\n");
    fprintf(stderr, "Starting parse\n");
#endif
#endif
 
 
  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 - 1;
  yyssp = yyss - 1;
  yyvsp = yyvs;
  yyvsp = yyvs;
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
  yylsp = yyls;
  yylsp = yyls;
#endif
#endif
 
 
/* Push a new state, which is found in  yystate  .  */
/* Push a new state, which is found in  yystate  .  */
/* 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.  */
yynewstate:
yynewstate:
 
 
  *++yyssp = yystate;
  *++yyssp = yystate;
 
 
  if (yyssp >= yyss + yystacksize - 1)
  if (yyssp >= yyss + yystacksize - 1)
    {
    {
      /* Give user a chance to xreallocate the stack */
      /* Give user a chance to xreallocate the stack */
      /* Use copies of these so that the &'s don't force the real ones into memory. */
      /* Use copies of these so that the &'s don't force the real ones into memory. */
      YYSTYPE *yyvs1 = yyvs;
      YYSTYPE *yyvs1 = yyvs;
      short *yyss1 = yyss;
      short *yyss1 = yyss;
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
      YYLTYPE *yyls1 = yyls;
      YYLTYPE *yyls1 = yyls;
#endif
#endif
 
 
      /* Get the current used size of the three stacks, in elements.  */
      /* Get the current used size of the three stacks, in elements.  */
      int size = yyssp - yyss + 1;
      int size = yyssp - yyss + 1;
 
 
#ifdef yyoverflow
#ifdef yyoverflow
      /* Each stack pointer address is followed by the size of
      /* Each stack pointer address is followed by the size of
         the data in use in that stack, in bytes.  */
         the data in use in that stack, in bytes.  */
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
      /* This used to be a conditional around just the two extra args,
      /* This used to be a conditional around just the two extra args,
         but that might be undefined if yyoverflow is a macro.  */
         but that might be undefined if yyoverflow is a macro.  */
      yyoverflow("parser stack overflow",
      yyoverflow("parser stack overflow",
                 &yyss1, size * sizeof (*yyssp),
                 &yyss1, size * sizeof (*yyssp),
                 &yyvs1, size * sizeof (*yyvsp),
                 &yyvs1, size * sizeof (*yyvsp),
                 &yyls1, size * sizeof (*yylsp),
                 &yyls1, size * sizeof (*yylsp),
                 &yystacksize);
                 &yystacksize);
#else
#else
      yyoverflow("parser stack overflow",
      yyoverflow("parser stack overflow",
                 &yyss1, size * sizeof (*yyssp),
                 &yyss1, size * sizeof (*yyssp),
                 &yyvs1, size * sizeof (*yyvsp),
                 &yyvs1, size * sizeof (*yyvsp),
                 &yystacksize);
                 &yystacksize);
#endif
#endif
 
 
      yyss = yyss1; yyvs = yyvs1;
      yyss = yyss1; yyvs = yyvs1;
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
      yyls = yyls1;
      yyls = yyls1;
#endif
#endif
#else /* no yyoverflow */
#else /* no yyoverflow */
      /* Extend the stack our own way.  */
      /* Extend the stack our own way.  */
      if (yystacksize >= YYMAXDEPTH)
      if (yystacksize >= YYMAXDEPTH)
        {
        {
          yyerror("parser stack overflow");
          yyerror("parser stack overflow");
          if (yyfree_stacks)
          if (yyfree_stacks)
            {
            {
              free (yyss);
              free (yyss);
              free (yyvs);
              free (yyvs);
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
              free (yyls);
              free (yyls);
#endif
#endif
            }
            }
          return 2;
          return 2;
        }
        }
      yystacksize *= 2;
      yystacksize *= 2;
      if (yystacksize > YYMAXDEPTH)
      if (yystacksize > YYMAXDEPTH)
        yystacksize = YYMAXDEPTH;
        yystacksize = YYMAXDEPTH;
#ifndef YYSTACK_USE_ALLOCA
#ifndef YYSTACK_USE_ALLOCA
      yyfree_stacks = 1;
      yyfree_stacks = 1;
#endif
#endif
      yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
      yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
      __yy_memcpy ((char *)yyss, (char *)yyss1,
      __yy_memcpy ((char *)yyss, (char *)yyss1,
                   size * (unsigned int) sizeof (*yyssp));
                   size * (unsigned int) sizeof (*yyssp));
      yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
      yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
      __yy_memcpy ((char *)yyvs, (char *)yyvs1,
      __yy_memcpy ((char *)yyvs, (char *)yyvs1,
                   size * (unsigned int) sizeof (*yyvsp));
                   size * (unsigned int) sizeof (*yyvsp));
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
      yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
      yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
      __yy_memcpy ((char *)yyls, (char *)yyls1,
      __yy_memcpy ((char *)yyls, (char *)yyls1,
                   size * (unsigned int) sizeof (*yylsp));
                   size * (unsigned int) sizeof (*yylsp));
#endif
#endif
#endif /* no yyoverflow */
#endif /* no yyoverflow */
 
 
      yyssp = yyss + size - 1;
      yyssp = yyss + size - 1;
      yyvsp = yyvs + size - 1;
      yyvsp = yyvs + size - 1;
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
      yylsp = yyls + size - 1;
      yylsp = yyls + size - 1;
#endif
#endif
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
      if (yydebug)
      if (yydebug)
        fprintf(stderr, "Stack size increased to %d\n", yystacksize);
        fprintf(stderr, "Stack size increased to %d\n", yystacksize);
#endif
#endif
 
 
      if (yyssp >= yyss + yystacksize - 1)
      if (yyssp >= yyss + yystacksize - 1)
        YYABORT;
        YYABORT;
    }
    }
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
  if (yydebug)
  if (yydebug)
    fprintf(stderr, "Entering state %d\n", yystate);
    fprintf(stderr, "Entering state %d\n", yystate);
#endif
#endif
 
 
  goto yybackup;
  goto yybackup;
 yybackup:
 yybackup:
 
 
/* Do appropriate processing given the current state.  */
/* Do appropriate processing given the current state.  */
/* Read a lookahead token if we need one and don't already have one.  */
/* Read a lookahead token if we need one and don't already have one.  */
/* yyresume: */
/* 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 == YYFLAG)
  if (yyn == YYFLAG)
    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
  /* yychar is either YYEMPTY or YYEOF
     or a valid token in external form.  */
     or a valid token in external form.  */
 
 
  if (yychar == YYEMPTY)
  if (yychar == YYEMPTY)
    {
    {
#if YYDEBUG != 0
#if YYDEBUG != 0
      if (yydebug)
      if (yydebug)
        fprintf(stderr, "Reading a token: ");
        fprintf(stderr, "Reading a token: ");
#endif
#endif
      yychar = YYLEX;
      yychar = YYLEX;
    }
    }
 
 
  /* Convert token to internal form (in yychar1) for indexing tables with */
  /* Convert token to internal form (in yychar1) for indexing tables with */
 
 
  if (yychar <= 0)               /* This means end of input. */
  if (yychar <= 0)               /* This means end of input. */
    {
    {
      yychar1 = 0;
      yychar1 = 0;
      yychar = YYEOF;           /* Don't call YYLEX any more */
      yychar = YYEOF;           /* Don't call YYLEX any more */
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
      if (yydebug)
      if (yydebug)
        fprintf(stderr, "Now at end of input.\n");
        fprintf(stderr, "Now at end of input.\n");
#endif
#endif
    }
    }
  else
  else
    {
    {
      yychar1 = YYTRANSLATE(yychar);
      yychar1 = YYTRANSLATE(yychar);
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
      if (yydebug)
      if (yydebug)
        {
        {
          fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
          fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
          /* Give the individual parser a way to print the precise meaning
          /* Give the individual parser a way to print the precise meaning
             of a token, for further debugging info.  */
             of a token, for further debugging info.  */
#ifdef YYPRINT
#ifdef YYPRINT
          YYPRINT (stderr, yychar, yylval);
          YYPRINT (stderr, yychar, yylval);
#endif
#endif
          fprintf (stderr, ")\n");
          fprintf (stderr, ")\n");
        }
        }
#endif
#endif
    }
    }
 
 
  yyn += yychar1;
  yyn += yychar1;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
    goto yydefault;
    goto yydefault;
 
 
  yyn = yytable[yyn];
  yyn = yytable[yyn];
 
 
  /* yyn is what to do for this token type in this state.
  /* yyn is what to do for this token type in this state.
     Negative => reduce, -yyn is rule number.
     Negative => reduce, -yyn is rule number.
     Positive => shift, yyn is new state.
     Positive => shift, yyn is new state.
       New state is final state => don't bother to shift,
       New state is final state => don't bother to shift,
       just return success.
       just return success.
     0, or most negative number => error.  */
     0, or most negative number => error.  */
 
 
  if (yyn < 0)
  if (yyn < 0)
    {
    {
      if (yyn == YYFLAG)
      if (yyn == YYFLAG)
        goto yyerrlab;
        goto yyerrlab;
      yyn = -yyn;
      yyn = -yyn;
      goto yyreduce;
      goto yyreduce;
    }
    }
  else if (yyn == 0)
  else if (yyn == 0)
    goto yyerrlab;
    goto yyerrlab;
 
 
  if (yyn == YYFINAL)
  if (yyn == YYFINAL)
    YYACCEPT;
    YYACCEPT;
 
 
  /* Shift the lookahead token.  */
  /* Shift the lookahead token.  */
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
  if (yydebug)
  if (yydebug)
    fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
    fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
#endif
#endif
 
 
  /* Discard the token being shifted unless it is eof.  */
  /* Discard the token being shifted unless it is eof.  */
  if (yychar != YYEOF)
  if (yychar != YYEOF)
    yychar = YYEMPTY;
    yychar = YYEMPTY;
 
 
  *++yyvsp = yylval;
  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
  *++yylsp = yylloc;
#endif
#endif
 
 
  /* count tokens shifted since error; after three, turn off error status.  */
  /* count tokens shifted since error; after three, turn off error status.  */
  if (yyerrstatus) yyerrstatus--;
  if (yyerrstatus) yyerrstatus--;
 
 
  yystate = yyn;
  yystate = yyn;
  goto yynewstate;
  goto yynewstate;
 
 
/* Do the default action for the current state.  */
/* 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;
 
 
/* Do a reduction.  yyn is the number of a rule to reduce with.  */
/* Do a reduction.  yyn is the number of a rule to reduce with.  */
yyreduce:
yyreduce:
  yylen = yyr2[yyn];
  yylen = yyr2[yyn];
  if (yylen > 0)
  if (yylen > 0)
    yyval = yyvsp[1-yylen]; /* implement default value of the action */
    yyval = yyvsp[1-yylen]; /* implement default value of the action */
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
  if (yydebug)
  if (yydebug)
    {
    {
      int i;
      int i;
 
 
      fprintf (stderr, "Reducing via rule %d (line %d), ",
      fprintf (stderr, "Reducing via rule %d (line %d), ",
               yyn, yyrline[yyn]);
               yyn, yyrline[yyn]);
 
 
      /* Print the symbols being reduced, and their result.  */
      /* Print the symbols being reduced, and their result.  */
      for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
      for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
        fprintf (stderr, "%s ", yytname[yyrhs[i]]);
        fprintf (stderr, "%s ", yytname[yyrhs[i]]);
      fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
      fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
    }
    }
#endif
#endif
 
 
 
 
  switch (yyn) {
  switch (yyn) {
 
 
case 3:
case 3:
#line 209 "m2-exp.y"
#line 209 "m2-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[0].tval);
                  write_exp_elt_opcode(OP_TYPE);
                  write_exp_elt_opcode(OP_TYPE);
                ;
                ;
    break;}
    break;}
case 4:
case 4:
#line 218 "m2-exp.y"
#line 218 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_IND); ;
{ write_exp_elt_opcode (UNOP_IND); ;
    break;}
    break;}
case 5:
case 5:
#line 221 "m2-exp.y"
#line 221 "m2-exp.y"
{ number_sign = -1; ;
{ number_sign = -1; ;
    break;}
    break;}
case 6:
case 6:
#line 223 "m2-exp.y"
#line 223 "m2-exp.y"
{ number_sign = 1;
{ number_sign = 1;
                          write_exp_elt_opcode (UNOP_NEG); ;
                          write_exp_elt_opcode (UNOP_NEG); ;
    break;}
    break;}
case 7:
case 7:
#line 228 "m2-exp.y"
#line 228 "m2-exp.y"
{ write_exp_elt_opcode(UNOP_PLUS); ;
{ write_exp_elt_opcode(UNOP_PLUS); ;
    break;}
    break;}
case 8:
case 8:
#line 232 "m2-exp.y"
#line 232 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_LOGICAL_NOT); ;
{ write_exp_elt_opcode (UNOP_LOGICAL_NOT); ;
    break;}
    break;}
case 11:
case 11:
#line 240 "m2-exp.y"
#line 240 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_CAP); ;
{ write_exp_elt_opcode (UNOP_CAP); ;
    break;}
    break;}
case 12:
case 12:
#line 244 "m2-exp.y"
#line 244 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_ORD); ;
{ write_exp_elt_opcode (UNOP_ORD); ;
    break;}
    break;}
case 13:
case 13:
#line 248 "m2-exp.y"
#line 248 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_ABS); ;
{ write_exp_elt_opcode (UNOP_ABS); ;
    break;}
    break;}
case 14:
case 14:
#line 252 "m2-exp.y"
#line 252 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_HIGH); ;
{ write_exp_elt_opcode (UNOP_HIGH); ;
    break;}
    break;}
case 15:
case 15:
#line 256 "m2-exp.y"
#line 256 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_MIN);
{ write_exp_elt_opcode (UNOP_MIN);
                          write_exp_elt_type (yyvsp[-1].tval);
                          write_exp_elt_type (yyvsp[-1].tval);
                          write_exp_elt_opcode (UNOP_MIN); ;
                          write_exp_elt_opcode (UNOP_MIN); ;
    break;}
    break;}
case 16:
case 16:
#line 262 "m2-exp.y"
#line 262 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_MAX);
{ write_exp_elt_opcode (UNOP_MAX);
                          write_exp_elt_type (yyvsp[-1].tval);
                          write_exp_elt_type (yyvsp[-1].tval);
                          write_exp_elt_opcode (UNOP_MIN); ;
                          write_exp_elt_opcode (UNOP_MIN); ;
    break;}
    break;}
case 17:
case 17:
#line 268 "m2-exp.y"
#line 268 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_FLOAT); ;
{ write_exp_elt_opcode (UNOP_FLOAT); ;
    break;}
    break;}
case 18:
case 18:
#line 272 "m2-exp.y"
#line 272 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_VAL);
{ write_exp_elt_opcode (BINOP_VAL);
                          write_exp_elt_type (yyvsp[-3].tval);
                          write_exp_elt_type (yyvsp[-3].tval);
                          write_exp_elt_opcode (BINOP_VAL); ;
                          write_exp_elt_opcode (BINOP_VAL); ;
    break;}
    break;}
case 19:
case 19:
#line 278 "m2-exp.y"
#line 278 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_CHR); ;
{ write_exp_elt_opcode (UNOP_CHR); ;
    break;}
    break;}
case 20:
case 20:
#line 282 "m2-exp.y"
#line 282 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_ODD); ;
{ write_exp_elt_opcode (UNOP_ODD); ;
    break;}
    break;}
case 21:
case 21:
#line 286 "m2-exp.y"
#line 286 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_TRUNC); ;
{ write_exp_elt_opcode (UNOP_TRUNC); ;
    break;}
    break;}
case 22:
case 22:
#line 290 "m2-exp.y"
#line 290 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_SIZEOF); ;
{ write_exp_elt_opcode (UNOP_SIZEOF); ;
    break;}
    break;}
case 23:
case 23:
#line 295 "m2-exp.y"
#line 295 "m2-exp.y"
{ write_exp_elt_opcode(UNOP_PREINCREMENT); ;
{ write_exp_elt_opcode(UNOP_PREINCREMENT); ;
    break;}
    break;}
case 24:
case 24:
#line 299 "m2-exp.y"
#line 299 "m2-exp.y"
{ write_exp_elt_opcode(BINOP_ASSIGN_MODIFY);
{ write_exp_elt_opcode(BINOP_ASSIGN_MODIFY);
                          write_exp_elt_opcode(BINOP_ADD);
                          write_exp_elt_opcode(BINOP_ADD);
                          write_exp_elt_opcode(BINOP_ASSIGN_MODIFY); ;
                          write_exp_elt_opcode(BINOP_ASSIGN_MODIFY); ;
    break;}
    break;}
case 25:
case 25:
#line 305 "m2-exp.y"
#line 305 "m2-exp.y"
{ write_exp_elt_opcode(UNOP_PREDECREMENT);;
{ write_exp_elt_opcode(UNOP_PREDECREMENT);;
    break;}
    break;}
case 26:
case 26:
#line 309 "m2-exp.y"
#line 309 "m2-exp.y"
{ write_exp_elt_opcode(BINOP_ASSIGN_MODIFY);
{ write_exp_elt_opcode(BINOP_ASSIGN_MODIFY);
                          write_exp_elt_opcode(BINOP_SUB);
                          write_exp_elt_opcode(BINOP_SUB);
                          write_exp_elt_opcode(BINOP_ASSIGN_MODIFY); ;
                          write_exp_elt_opcode(BINOP_ASSIGN_MODIFY); ;
    break;}
    break;}
case 27:
case 27:
#line 315 "m2-exp.y"
#line 315 "m2-exp.y"
{ write_exp_elt_opcode (STRUCTOP_STRUCT);
{ write_exp_elt_opcode (STRUCTOP_STRUCT);
                          write_exp_string (yyvsp[0].sval);
                          write_exp_string (yyvsp[0].sval);
                          write_exp_elt_opcode (STRUCTOP_STRUCT); ;
                          write_exp_elt_opcode (STRUCTOP_STRUCT); ;
    break;}
    break;}
case 29:
case 29:
#line 324 "m2-exp.y"
#line 324 "m2-exp.y"
{ error("Sets are not implemented.");;
{ error("Sets are not implemented.");;
    break;}
    break;}
case 30:
case 30:
#line 328 "m2-exp.y"
#line 328 "m2-exp.y"
{ error("Sets are not implemented.");;
{ error("Sets are not implemented.");;
    break;}
    break;}
case 31:
case 31:
#line 332 "m2-exp.y"
#line 332 "m2-exp.y"
{ error("Sets are not implemented.");;
{ error("Sets are not implemented.");;
    break;}
    break;}
case 32:
case 32:
#line 335 "m2-exp.y"
#line 335 "m2-exp.y"
{ error("Sets are not implemented.");;
{ error("Sets are not implemented.");;
    break;}
    break;}
case 33:
case 33:
#line 337 "m2-exp.y"
#line 337 "m2-exp.y"
{ error("Sets are not implemented.");;
{ error("Sets are not implemented.");;
    break;}
    break;}
case 34:
case 34:
#line 346 "m2-exp.y"
#line 346 "m2-exp.y"
{ start_arglist(); ;
{ start_arglist(); ;
    break;}
    break;}
case 35:
case 35:
#line 348 "m2-exp.y"
#line 348 "m2-exp.y"
{ write_exp_elt_opcode (MULTI_SUBSCRIPT);
{ write_exp_elt_opcode (MULTI_SUBSCRIPT);
                          write_exp_elt_longcst ((LONGEST) end_arglist());
                          write_exp_elt_longcst ((LONGEST) end_arglist());
                          write_exp_elt_opcode (MULTI_SUBSCRIPT); ;
                          write_exp_elt_opcode (MULTI_SUBSCRIPT); ;
    break;}
    break;}
case 36:
case 36:
#line 356 "m2-exp.y"
#line 356 "m2-exp.y"
{ start_arglist (); ;
{ start_arglist (); ;
    break;}
    break;}
case 37:
case 37:
#line 358 "m2-exp.y"
#line 358 "m2-exp.y"
{ write_exp_elt_opcode (OP_FUNCALL);
{ write_exp_elt_opcode (OP_FUNCALL);
                          write_exp_elt_longcst ((LONGEST) end_arglist ());
                          write_exp_elt_longcst ((LONGEST) end_arglist ());
                          write_exp_elt_opcode (OP_FUNCALL); ;
                          write_exp_elt_opcode (OP_FUNCALL); ;
    break;}
    break;}
case 39:
case 39:
#line 367 "m2-exp.y"
#line 367 "m2-exp.y"
{ arglist_len = 1; ;
{ arglist_len = 1; ;
    break;}
    break;}
case 40:
case 40:
#line 371 "m2-exp.y"
#line 371 "m2-exp.y"
{ arglist_len++; ;
{ arglist_len++; ;
    break;}
    break;}
case 41:
case 41:
#line 376 "m2-exp.y"
#line 376 "m2-exp.y"
{ arglist_len = 1; ;
{ arglist_len = 1; ;
    break;}
    break;}
case 42:
case 42:
#line 381 "m2-exp.y"
#line 381 "m2-exp.y"
{ arglist_len++; ;
{ arglist_len++; ;
    break;}
    break;}
case 43:
case 43:
#line 386 "m2-exp.y"
#line 386 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_MEMVAL);
{ write_exp_elt_opcode (UNOP_MEMVAL);
                          write_exp_elt_type (yyvsp[-2].tval);
                          write_exp_elt_type (yyvsp[-2].tval);
                          write_exp_elt_opcode (UNOP_MEMVAL); ;
                          write_exp_elt_opcode (UNOP_MEMVAL); ;
    break;}
    break;}
case 44:
case 44:
#line 392 "m2-exp.y"
#line 392 "m2-exp.y"
{ write_exp_elt_opcode (UNOP_CAST);
{ write_exp_elt_opcode (UNOP_CAST);
                          write_exp_elt_type (yyvsp[-3].tval);
                          write_exp_elt_type (yyvsp[-3].tval);
                          write_exp_elt_opcode (UNOP_CAST); ;
                          write_exp_elt_opcode (UNOP_CAST); ;
    break;}
    break;}
case 45:
case 45:
#line 398 "m2-exp.y"
#line 398 "m2-exp.y"
{ ;
{ ;
    break;}
    break;}
case 46:
case 46:
#line 406 "m2-exp.y"
#line 406 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_REPEAT); ;
{ write_exp_elt_opcode (BINOP_REPEAT); ;
    break;}
    break;}
case 47:
case 47:
#line 410 "m2-exp.y"
#line 410 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_MUL); ;
{ write_exp_elt_opcode (BINOP_MUL); ;
    break;}
    break;}
case 48:
case 48:
#line 414 "m2-exp.y"
#line 414 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_DIV); ;
{ write_exp_elt_opcode (BINOP_DIV); ;
    break;}
    break;}
case 49:
case 49:
#line 418 "m2-exp.y"
#line 418 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_INTDIV); ;
{ write_exp_elt_opcode (BINOP_INTDIV); ;
    break;}
    break;}
case 50:
case 50:
#line 422 "m2-exp.y"
#line 422 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_REM); ;
{ write_exp_elt_opcode (BINOP_REM); ;
    break;}
    break;}
case 51:
case 51:
#line 426 "m2-exp.y"
#line 426 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_ADD); ;
{ write_exp_elt_opcode (BINOP_ADD); ;
    break;}
    break;}
case 52:
case 52:
#line 430 "m2-exp.y"
#line 430 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_SUB); ;
{ write_exp_elt_opcode (BINOP_SUB); ;
    break;}
    break;}
case 53:
case 53:
#line 434 "m2-exp.y"
#line 434 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_EQUAL); ;
{ write_exp_elt_opcode (BINOP_EQUAL); ;
    break;}
    break;}
case 54:
case 54:
#line 438 "m2-exp.y"
#line 438 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_NOTEQUAL); ;
{ write_exp_elt_opcode (BINOP_NOTEQUAL); ;
    break;}
    break;}
case 55:
case 55:
#line 440 "m2-exp.y"
#line 440 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_NOTEQUAL); ;
{ write_exp_elt_opcode (BINOP_NOTEQUAL); ;
    break;}
    break;}
case 56:
case 56:
#line 444 "m2-exp.y"
#line 444 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_LEQ); ;
{ write_exp_elt_opcode (BINOP_LEQ); ;
    break;}
    break;}
case 57:
case 57:
#line 448 "m2-exp.y"
#line 448 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_GEQ); ;
{ write_exp_elt_opcode (BINOP_GEQ); ;
    break;}
    break;}
case 58:
case 58:
#line 452 "m2-exp.y"
#line 452 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_LESS); ;
{ write_exp_elt_opcode (BINOP_LESS); ;
    break;}
    break;}
case 59:
case 59:
#line 456 "m2-exp.y"
#line 456 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_GTR); ;
{ write_exp_elt_opcode (BINOP_GTR); ;
    break;}
    break;}
case 60:
case 60:
#line 460 "m2-exp.y"
#line 460 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_LOGICAL_AND); ;
{ write_exp_elt_opcode (BINOP_LOGICAL_AND); ;
    break;}
    break;}
case 61:
case 61:
#line 464 "m2-exp.y"
#line 464 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_LOGICAL_OR); ;
{ write_exp_elt_opcode (BINOP_LOGICAL_OR); ;
    break;}
    break;}
case 62:
case 62:
#line 468 "m2-exp.y"
#line 468 "m2-exp.y"
{ write_exp_elt_opcode (BINOP_ASSIGN); ;
{ write_exp_elt_opcode (BINOP_ASSIGN); ;
    break;}
    break;}
case 63:
case 63:
#line 475 "m2-exp.y"
#line 475 "m2-exp.y"
{ write_exp_elt_opcode (OP_BOOL);
{ write_exp_elt_opcode (OP_BOOL);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].ulval);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].ulval);
                          write_exp_elt_opcode (OP_BOOL); ;
                          write_exp_elt_opcode (OP_BOOL); ;
    break;}
    break;}
case 64:
case 64:
#line 481 "m2-exp.y"
#line 481 "m2-exp.y"
{ write_exp_elt_opcode (OP_BOOL);
{ write_exp_elt_opcode (OP_BOOL);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].ulval);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].ulval);
                          write_exp_elt_opcode (OP_BOOL); ;
                          write_exp_elt_opcode (OP_BOOL); ;
    break;}
    break;}
case 65:
case 65:
#line 487 "m2-exp.y"
#line 487 "m2-exp.y"
{ write_exp_elt_opcode (OP_LONG);
{ write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (builtin_type_m2_int);
                          write_exp_elt_type (builtin_type_m2_int);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].lval);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].lval);
                          write_exp_elt_opcode (OP_LONG); ;
                          write_exp_elt_opcode (OP_LONG); ;
    break;}
    break;}
case 66:
case 66:
#line 494 "m2-exp.y"
#line 494 "m2-exp.y"
{
{
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (builtin_type_m2_card);
                          write_exp_elt_type (builtin_type_m2_card);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].ulval);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].ulval);
                          write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_opcode (OP_LONG);
                        ;
                        ;
    break;}
    break;}
case 67:
case 67:
#line 503 "m2-exp.y"
#line 503 "m2-exp.y"
{ write_exp_elt_opcode (OP_LONG);
{ write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (builtin_type_m2_char);
                          write_exp_elt_type (builtin_type_m2_char);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].ulval);
                          write_exp_elt_longcst ((LONGEST) yyvsp[0].ulval);
                          write_exp_elt_opcode (OP_LONG); ;
                          write_exp_elt_opcode (OP_LONG); ;
    break;}
    break;}
case 68:
case 68:
#line 511 "m2-exp.y"
#line 511 "m2-exp.y"
{ write_exp_elt_opcode (OP_DOUBLE);
{ write_exp_elt_opcode (OP_DOUBLE);
                          write_exp_elt_type (builtin_type_m2_real);
                          write_exp_elt_type (builtin_type_m2_real);
                          write_exp_elt_dblcst (yyvsp[0].dval);
                          write_exp_elt_dblcst (yyvsp[0].dval);
                          write_exp_elt_opcode (OP_DOUBLE); ;
                          write_exp_elt_opcode (OP_DOUBLE); ;
    break;}
    break;}
case 70:
case 70:
#line 521 "m2-exp.y"
#line 521 "m2-exp.y"
{ write_exp_elt_opcode (OP_LONG);
{ write_exp_elt_opcode (OP_LONG);
                          write_exp_elt_type (builtin_type_int);
                          write_exp_elt_type (builtin_type_int);
                          write_exp_elt_longcst ((LONGEST) TYPE_LENGTH (yyvsp[-1].tval));
                          write_exp_elt_longcst ((LONGEST) TYPE_LENGTH (yyvsp[-1].tval));
                          write_exp_elt_opcode (OP_LONG); ;
                          write_exp_elt_opcode (OP_LONG); ;
    break;}
    break;}
case 71:
case 71:
#line 528 "m2-exp.y"
#line 528 "m2-exp.y"
{ write_exp_elt_opcode (OP_M2_STRING);
{ write_exp_elt_opcode (OP_M2_STRING);
                          write_exp_string (yyvsp[0].sval);
                          write_exp_string (yyvsp[0].sval);
                          write_exp_elt_opcode (OP_M2_STRING); ;
                          write_exp_elt_opcode (OP_M2_STRING); ;
    break;}
    break;}
case 72:
case 72:
#line 535 "m2-exp.y"
#line 535 "m2-exp.y"
{ yyval.bval = SYMBOL_BLOCK_VALUE(yyvsp[0].sym); ;
{ yyval.bval = SYMBOL_BLOCK_VALUE(yyvsp[0].sym); ;
    break;}
    break;}
case 73:
case 73:
#line 539 "m2-exp.y"
#line 539 "m2-exp.y"
{ struct symbol *sym
{ struct symbol *sym
                            = lookup_symbol (copy_name (yyvsp[0].sval), expression_context_block,
                            = lookup_symbol (copy_name (yyvsp[0].sval), expression_context_block,
                                             VAR_NAMESPACE, 0, NULL);
                                             VAR_NAMESPACE, 0, NULL);
                          yyval.sym = sym;;
                          yyval.sym = sym;;
    break;}
    break;}
case 74:
case 74:
#line 548 "m2-exp.y"
#line 548 "m2-exp.y"
{ struct symbol *tem
{ struct symbol *tem
                            = lookup_symbol (copy_name (yyvsp[0].sval), yyvsp[-2].bval,
                            = lookup_symbol (copy_name (yyvsp[0].sval), yyvsp[-2].bval,
                                             VAR_NAMESPACE, 0, NULL);
                                             VAR_NAMESPACE, 0, NULL);
                          if (!tem || SYMBOL_CLASS (tem) != LOC_BLOCK)
                          if (!tem || SYMBOL_CLASS (tem) != LOC_BLOCK)
                            error ("No function \"%s\" in specified context.",
                            error ("No function \"%s\" in specified context.",
                                   copy_name (yyvsp[0].sval));
                                   copy_name (yyvsp[0].sval));
                          yyval.sym = tem;
                          yyval.sym = tem;
                        ;
                        ;
    break;}
    break;}
case 75:
case 75:
#line 560 "m2-exp.y"
#line 560 "m2-exp.y"
{ write_exp_elt_opcode(OP_VAR_VALUE);
{ write_exp_elt_opcode(OP_VAR_VALUE);
                          write_exp_elt_block (NULL);
                          write_exp_elt_block (NULL);
                          write_exp_elt_sym (yyvsp[0].sym);
                          write_exp_elt_sym (yyvsp[0].sym);
                          write_exp_elt_opcode (OP_VAR_VALUE); ;
                          write_exp_elt_opcode (OP_VAR_VALUE); ;
    break;}
    break;}
case 77:
case 77:
#line 572 "m2-exp.y"
#line 572 "m2-exp.y"
{ struct symbol *sym;
{ struct symbol *sym;
                          sym = lookup_symbol (copy_name (yyvsp[0].sval), yyvsp[-2].bval,
                          sym = lookup_symbol (copy_name (yyvsp[0].sval), yyvsp[-2].bval,
                                               VAR_NAMESPACE, 0, NULL);
                                               VAR_NAMESPACE, 0, NULL);
                          if (sym == 0)
                          if (sym == 0)
                            error ("No symbol \"%s\" in specified context.",
                            error ("No symbol \"%s\" in specified context.",
                                   copy_name (yyvsp[0].sval));
                                   copy_name (yyvsp[0].sval));
 
 
                          write_exp_elt_opcode (OP_VAR_VALUE);
                          write_exp_elt_opcode (OP_VAR_VALUE);
                          /* block_found is set by lookup_symbol.  */
                          /* block_found is set by lookup_symbol.  */
                          write_exp_elt_block (block_found);
                          write_exp_elt_block (block_found);
                          write_exp_elt_sym (sym);
                          write_exp_elt_sym (sym);
                          write_exp_elt_opcode (OP_VAR_VALUE); ;
                          write_exp_elt_opcode (OP_VAR_VALUE); ;
    break;}
    break;}
case 78:
case 78:
#line 588 "m2-exp.y"
#line 588 "m2-exp.y"
{ struct symbol *sym;
{ struct symbol *sym;
                          int is_a_field_of_this;
                          int is_a_field_of_this;
 
 
                          sym = lookup_symbol (copy_name (yyvsp[0].sval),
                          sym = lookup_symbol (copy_name (yyvsp[0].sval),
                                               expression_context_block,
                                               expression_context_block,
                                               VAR_NAMESPACE,
                                               VAR_NAMESPACE,
                                               &is_a_field_of_this,
                                               &is_a_field_of_this,
                                               NULL);
                                               NULL);
                          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);
                            }
                            }
                          else
                          else
                            {
                            {
                              struct minimal_symbol *msymbol;
                              struct minimal_symbol *msymbol;
                              register char *arg = copy_name (yyvsp[0].sval);
                              register char *arg = copy_name (yyvsp[0].sval);
 
 
                              msymbol =
                              msymbol =
                                lookup_minimal_symbol (arg, NULL, NULL);
                                lookup_minimal_symbol (arg, NULL, NULL);
                              if (msymbol != NULL)
                              if (msymbol != NULL)
                                {
                                {
                                  write_exp_msymbol
                                  write_exp_msymbol
                                    (msymbol,
                                    (msymbol,
                                     lookup_function_type (builtin_type_int),
                                     lookup_function_type (builtin_type_int),
                                     builtin_type_int);
                                     builtin_type_int);
                                }
                                }
                              else if (!have_full_symbols () && !have_partial_symbols ())
                              else if (!have_full_symbols () && !have_partial_symbols ())
                                error ("No symbol table is loaded.  Use the \"symbol-file\" command.");
                                error ("No symbol table is loaded.  Use the \"symbol-file\" command.");
                              else
                              else
                                error ("No symbol \"%s\" in current context.",
                                error ("No symbol \"%s\" in current context.",
                                       copy_name (yyvsp[0].sval));
                                       copy_name (yyvsp[0].sval));
                            }
                            }
                        ;
                        ;
    break;}
    break;}
case 79:
case 79:
#line 639 "m2-exp.y"
#line 639 "m2-exp.y"
{ yyval.tval = lookup_typename (copy_name (yyvsp[0].sval),
{ yyval.tval = lookup_typename (copy_name (yyvsp[0].sval),
                                                expression_context_block, 0); ;
                                                expression_context_block, 0); ;
    break;}
    break;}
}
}
   /* the action file gets copied in in place of this dollarsign */
   /* the action file gets copied in in place of this dollarsign */
#line 542 "/usr/lib/bison.simple"
#line 542 "/usr/lib/bison.simple"


  yyvsp -= yylen;
  yyvsp -= yylen;
  yyssp -= yylen;
  yyssp -= yylen;
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
  yylsp -= yylen;
  yylsp -= yylen;
#endif
#endif
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
  if (yydebug)
  if (yydebug)
    {
    {
      short *ssp1 = yyss - 1;
      short *ssp1 = yyss - 1;
      fprintf (stderr, "state stack now");
      fprintf (stderr, "state stack now");
      while (ssp1 != yyssp)
      while (ssp1 != yyssp)
        fprintf (stderr, " %d", *++ssp1);
        fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
      fprintf (stderr, "\n");
    }
    }
#endif
#endif
 
 
  *++yyvsp = yyval;
  *++yyvsp = yyval;
 
 
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
  yylsp++;
  yylsp++;
  if (yylen == 0)
  if (yylen == 0)
    {
    {
      yylsp->first_line = yylloc.first_line;
      yylsp->first_line = yylloc.first_line;
      yylsp->first_column = yylloc.first_column;
      yylsp->first_column = yylloc.first_column;
      yylsp->last_line = (yylsp-1)->last_line;
      yylsp->last_line = (yylsp-1)->last_line;
      yylsp->last_column = (yylsp-1)->last_column;
      yylsp->last_column = (yylsp-1)->last_column;
      yylsp->text = 0;
      yylsp->text = 0;
    }
    }
  else
  else
    {
    {
      yylsp->last_line = (yylsp+yylen-1)->last_line;
      yylsp->last_line = (yylsp+yylen-1)->last_line;
      yylsp->last_column = (yylsp+yylen-1)->last_column;
      yylsp->last_column = (yylsp+yylen-1)->last_column;
    }
    }
#endif
#endif
 
 
  /* Now "shift" the result of the reduction.
  /* Now "shift" the result of the reduction.
     Determine what state that goes to,
     Determine what state that goes to,
     based on the state we popped back to
     based on the state we popped back to
     and the rule number reduced by.  */
     and the rule number reduced by.  */
 
 
  yyn = yyr1[yyn];
  yyn = yyr1[yyn];
 
 
  yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
    yystate = yytable[yystate];
  else
  else
    yystate = yydefgoto[yyn - YYNTBASE];
    yystate = yydefgoto[yyn - YYNTBASE];
 
 
  goto yynewstate;
  goto yynewstate;
 
 
yyerrlab:   /* here on detecting error */
yyerrlab:   /* here on detecting error */
 
 
  if (! yyerrstatus)
  if (! yyerrstatus)
    /* If not already recovering from an error, report this error.  */
    /* If not already recovering from an error, report this error.  */
    {
    {
      ++yynerrs;
      ++yynerrs;
 
 
#ifdef YYERROR_VERBOSE
#ifdef YYERROR_VERBOSE
      yyn = yypact[yystate];
      yyn = yypact[yystate];
 
 
      if (yyn > YYFLAG && yyn < YYLAST)
      if (yyn > YYFLAG && yyn < YYLAST)
        {
        {
          int size = 0;
          int size = 0;
          char *msg;
          char *msg;
          int x, count;
          int x, count;
 
 
          count = 0;
          count = 0;
          /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
          /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
          for (x = (yyn < 0 ? -yyn : 0);
          for (x = (yyn < 0 ? -yyn : 0);
               x < (sizeof(yytname) / sizeof(char *)); x++)
               x < (sizeof(yytname) / sizeof(char *)); x++)
            if (yycheck[x + yyn] == x)
            if (yycheck[x + yyn] == x)
              size += strlen(yytname[x]) + 15, count++;
              size += strlen(yytname[x]) + 15, count++;
          msg = (char *) xmalloc(size + 15);
          msg = (char *) xmalloc(size + 15);
          if (msg != 0)
          if (msg != 0)
            {
            {
              strcpy(msg, "parse error");
              strcpy(msg, "parse error");
 
 
              if (count < 5)
              if (count < 5)
                {
                {
                  count = 0;
                  count = 0;
                  for (x = (yyn < 0 ? -yyn : 0);
                  for (x = (yyn < 0 ? -yyn : 0);
                       x < (sizeof(yytname) / sizeof(char *)); x++)
                       x < (sizeof(yytname) / sizeof(char *)); x++)
                    if (yycheck[x + yyn] == x)
                    if (yycheck[x + yyn] == x)
                      {
                      {
                        strcat(msg, count == 0 ? ", expecting `" : " or `");
                        strcat(msg, count == 0 ? ", expecting `" : " or `");
                        strcat(msg, yytname[x]);
                        strcat(msg, yytname[x]);
                        strcat(msg, "'");
                        strcat(msg, "'");
                        count++;
                        count++;
                      }
                      }
                }
                }
              yyerror(msg);
              yyerror(msg);
              free(msg);
              free(msg);
            }
            }
          else
          else
            yyerror ("parse error; also virtual memory exceeded");
            yyerror ("parse error; also virtual memory exceeded");
        }
        }
      else
      else
#endif /* YYERROR_VERBOSE */
#endif /* YYERROR_VERBOSE */
        yyerror("parse error");
        yyerror("parse error");
    }
    }
 
 
  goto yyerrlab1;
  goto yyerrlab1;
yyerrlab1:   /* here on error raised explicitly by an action */
yyerrlab1:   /* here on error raised explicitly by an action */
 
 
  if (yyerrstatus == 3)
  if (yyerrstatus == 3)
    {
    {
      /* if just tried and failed to reuse lookahead token after an error, discard it.  */
      /* if just tried and failed to reuse lookahead token after an error, discard it.  */
 
 
      /* return failure if at end of input */
      /* return failure if at end of input */
      if (yychar == YYEOF)
      if (yychar == YYEOF)
        YYABORT;
        YYABORT;
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
      if (yydebug)
      if (yydebug)
        fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
        fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
#endif
#endif
 
 
      yychar = YYEMPTY;
      yychar = YYEMPTY;
    }
    }
 
 
  /* Else will try to reuse lookahead token
  /* Else will try to reuse lookahead token
     after shifting the error token.  */
     after shifting the error token.  */
 
 
  yyerrstatus = 3;              /* Each real token shifted decrements this */
  yyerrstatus = 3;              /* Each real token shifted decrements this */
 
 
  goto yyerrhandle;
  goto yyerrhandle;
 
 
yyerrdefault:  /* current state does not do anything special for the error token. */
yyerrdefault:  /* current state does not do anything special for the error token. */
 
 
#if 0
#if 0
  /* This is wrong; only states that explicitly want error tokens
  /* This is wrong; only states that explicitly want error tokens
     should shift them.  */
     should shift them.  */
  yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  if (yyn) goto yydefault;
  if (yyn) goto yydefault;
#endif
#endif
 
 
yyerrpop:   /* pop the current state because it cannot handle the error token */
yyerrpop:   /* pop the current state because it cannot handle the error token */
 
 
  if (yyssp == yyss) YYABORT;
  if (yyssp == yyss) YYABORT;
  yyvsp--;
  yyvsp--;
  yystate = *--yyssp;
  yystate = *--yyssp;
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
  yylsp--;
  yylsp--;
#endif
#endif
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
  if (yydebug)
  if (yydebug)
    {
    {
      short *ssp1 = yyss - 1;
      short *ssp1 = yyss - 1;
      fprintf (stderr, "Error: state stack now");
      fprintf (stderr, "Error: state stack now");
      while (ssp1 != yyssp)
      while (ssp1 != yyssp)
        fprintf (stderr, " %d", *++ssp1);
        fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
      fprintf (stderr, "\n");
    }
    }
#endif
#endif
 
 
yyerrhandle:
yyerrhandle:
 
 
  yyn = yypact[yystate];
  yyn = yypact[yystate];
  if (yyn == YYFLAG)
  if (yyn == YYFLAG)
    goto yyerrdefault;
    goto yyerrdefault;
 
 
  yyn += YYTERROR;
  yyn += YYTERROR;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
    goto yyerrdefault;
    goto yyerrdefault;
 
 
  yyn = yytable[yyn];
  yyn = yytable[yyn];
  if (yyn < 0)
  if (yyn < 0)
    {
    {
      if (yyn == YYFLAG)
      if (yyn == YYFLAG)
        goto yyerrpop;
        goto yyerrpop;
      yyn = -yyn;
      yyn = -yyn;
      goto yyreduce;
      goto yyreduce;
    }
    }
  else if (yyn == 0)
  else if (yyn == 0)
    goto yyerrpop;
    goto yyerrpop;
 
 
  if (yyn == YYFINAL)
  if (yyn == YYFINAL)
    YYACCEPT;
    YYACCEPT;
 
 
#if YYDEBUG != 0
#if YYDEBUG != 0
  if (yydebug)
  if (yydebug)
    fprintf(stderr, "Shifting error token, ");
    fprintf(stderr, "Shifting error token, ");
#endif
#endif
 
 
  *++yyvsp = yylval;
  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
  *++yylsp = yylloc;
#endif
#endif
 
 
  yystate = yyn;
  yystate = yyn;
  goto yynewstate;
  goto yynewstate;
 
 
 yyacceptlab:
 yyacceptlab:
  /* YYACCEPT comes here.  */
  /* YYACCEPT comes here.  */
  if (yyfree_stacks)
  if (yyfree_stacks)
    {
    {
      free (yyss);
      free (yyss);
      free (yyvs);
      free (yyvs);
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
      free (yyls);
      free (yyls);
#endif
#endif
    }
    }
  return 0;
  return 0;
 
 
 yyabortlab:
 yyabortlab:
  /* YYABORT comes here.  */
  /* YYABORT comes here.  */
  if (yyfree_stacks)
  if (yyfree_stacks)
    {
    {
      free (yyss);
      free (yyss);
      free (yyvs);
      free (yyvs);
#ifdef YYLSP_NEEDED
#ifdef YYLSP_NEEDED
      free (yyls);
      free (yyls);
#endif
#endif
    }
    }
  return 1;
  return 1;
}
}
#line 644 "m2-exp.y"
#line 644 "m2-exp.y"
 
 
 
 
#if 0  /* FIXME! */
#if 0  /* FIXME! */
int
int
overflow(a,b)
overflow(a,b)
   long a,b;
   long a,b;
{
{
   return (MAX_OF_TYPE(builtin_type_m2_int) - b) < a;
   return (MAX_OF_TYPE(builtin_type_m2_int) - b) < a;
}
}
 
 
int
int
uoverflow(a,b)
uoverflow(a,b)
   unsigned long a,b;
   unsigned long a,b;
{
{
   return (MAX_OF_TYPE(builtin_type_m2_card) - b) < a;
   return (MAX_OF_TYPE(builtin_type_m2_card) - b) < a;
}
}
#endif /* FIXME */
#endif /* FIXME */
 
 
/* 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 (olen)
parse_number (olen)
     int olen;
     int olen;
{
{
  register char *p = lexptr;
  register char *p = lexptr;
  register LONGEST n = 0;
  register LONGEST n = 0;
  register LONGEST prevn = 0;
  register LONGEST prevn = 0;
  register int c,i,ischar=0;
  register int c,i,ischar=0;
  register int base = input_radix;
  register int base = input_radix;
  register int len = olen;
  register int len = olen;
  int unsigned_p = number_sign == 1 ? 1 : 0;
  int unsigned_p = number_sign == 1 ? 1 : 0;
 
 
  if(p[len-1] == 'H')
  if(p[len-1] == 'H')
  {
  {
     base = 16;
     base = 16;
     len--;
     len--;
  }
  }
  else if(p[len-1] == 'C' || p[len-1] == 'B')
  else if(p[len-1] == 'C' || p[len-1] == 'B')
  {
  {
     base = 8;
     base = 8;
     ischar = p[len-1] == 'C';
     ischar = p[len-1] == 'C';
     len--;
     len--;
  }
  }
 
 
  /* Scan the number */
  /* Scan the number */
  for (c = 0; c < len; c++)
  for (c = 0; c < len; c++)
  {
  {
    if (p[c] == '.' && base == 10)
    if (p[c] == '.' && base == 10)
      {
      {
        /* It's a float since it contains a point.  */
        /* It's a float since it contains a point.  */
        yylval.dval = atof (p);
        yylval.dval = atof (p);
        lexptr += len;
        lexptr += len;
        return FLOAT;
        return FLOAT;
      }
      }
    if (p[c] == '.' && base != 10)
    if (p[c] == '.' && base != 10)
       error("Floating point numbers must be base 10.");
       error("Floating point numbers must be base 10.");
    if (base == 10 && (p[c] < '0' || p[c] > '9'))
    if (base == 10 && (p[c] < '0' || p[c] > '9'))
       error("Invalid digit \'%c\' in number.",p[c]);
       error("Invalid digit \'%c\' in number.",p[c]);
 }
 }
 
 
  while (len-- > 0)
  while (len-- > 0)
    {
    {
      c = *p++;
      c = *p++;
      n *= base;
      n *= base;
      if( base == 8 && (c == '8' || c == '9'))
      if( base == 8 && (c == '8' || c == '9'))
         error("Invalid digit \'%c\' in octal number.",c);
         error("Invalid digit \'%c\' in octal number.",c);
      if (c >= '0' && c <= '9')
      if (c >= '0' && c <= '9')
        i = c - '0';
        i = c - '0';
      else
      else
        {
        {
          if (base == 16 && c >= 'A' && c <= 'F')
          if (base == 16 && c >= 'A' && c <= 'F')
            i = c - 'A' + 10;
            i = c - 'A' + 10;
          else
          else
             return ERROR;
             return ERROR;
        }
        }
      n+=i;
      n+=i;
      if(i >= base)
      if(i >= base)
         return ERROR;
         return ERROR;
      if(!unsigned_p && number_sign == 1 && (prevn >= n))
      if(!unsigned_p && number_sign == 1 && (prevn >= n))
         unsigned_p=1;          /* Try something unsigned */
         unsigned_p=1;          /* Try something unsigned */
      /* Don't do the range check if n==i and i==0, since that special
      /* Don't do the range check if n==i and i==0, since that special
         case will give an overflow error. */
         case will give an overflow error. */
      if(RANGE_CHECK && n!=i && i)
      if(RANGE_CHECK && n!=i && i)
      {
      {
         if((unsigned_p && (unsigned)prevn >= (unsigned)n) ||
         if((unsigned_p && (unsigned)prevn >= (unsigned)n) ||
            ((!unsigned_p && number_sign==-1) && -prevn <= -n))
            ((!unsigned_p && number_sign==-1) && -prevn <= -n))
            range_error("Overflow on numeric constant.");
            range_error("Overflow on numeric constant.");
      }
      }
         prevn=n;
         prevn=n;
    }
    }
 
 
  lexptr = p;
  lexptr = p;
  if(*p == 'B' || *p == 'C' || *p == 'H')
  if(*p == 'B' || *p == 'C' || *p == 'H')
     lexptr++;                  /* Advance past B,C or H */
     lexptr++;                  /* Advance past B,C or H */
 
 
  if (ischar)
  if (ischar)
  {
  {
     yylval.ulval = n;
     yylval.ulval = n;
     return CHAR;
     return CHAR;
  }
  }
  else if ( unsigned_p && number_sign == 1)
  else if ( unsigned_p && number_sign == 1)
  {
  {
     yylval.ulval = n;
     yylval.ulval = n;
     return UINT;
     return UINT;
  }
  }
  else if((unsigned_p && (n<0))) {
  else if((unsigned_p && (n<0))) {
     range_error("Overflow on numeric constant -- number too large.");
     range_error("Overflow on numeric constant -- number too large.");
     /* But, this can return if range_check == range_warn.  */
     /* But, this can return if range_check == range_warn.  */
  }
  }
  yylval.lval = n;
  yylval.lval = n;
  return INT;
  return INT;
}
}
 
 
 
 
/* Some tokens */
/* Some tokens */
 
 
static struct
static struct
{
{
   char name[2];
   char name[2];
   int token;
   int token;
} tokentab2[] =
} tokentab2[] =
{
{
    { {'<', '>'},    NOTEQUAL   },
    { {'<', '>'},    NOTEQUAL   },
    { {':', '='},    ASSIGN     },
    { {':', '='},    ASSIGN     },
    { {'<', '='},    LEQ        },
    { {'<', '='},    LEQ        },
    { {'>', '='},    GEQ        },
    { {'>', '='},    GEQ        },
    { {':', ':'},    COLONCOLON },
    { {':', ':'},    COLONCOLON },
 
 
};
};
 
 
/* Some specific keywords */
/* Some specific keywords */
 
 
struct keyword {
struct keyword {
   char keyw[10];
   char keyw[10];
   int token;
   int token;
};
};
 
 
static struct keyword keytab[] =
static struct keyword keytab[] =
{
{
    {"OR" ,   OROR       },
    {"OR" ,   OROR       },
    {"IN",    IN         },/* Note space after IN */
    {"IN",    IN         },/* Note space after IN */
    {"AND",   LOGICAL_AND},
    {"AND",   LOGICAL_AND},
    {"ABS",   ABS        },
    {"ABS",   ABS        },
    {"CHR",   CHR        },
    {"CHR",   CHR        },
    {"DEC",   DEC        },
    {"DEC",   DEC        },
    {"NOT",   NOT        },
    {"NOT",   NOT        },
    {"DIV",   DIV        },
    {"DIV",   DIV        },
    {"INC",   INC        },
    {"INC",   INC        },
    {"MAX",   MAX_FUNC   },
    {"MAX",   MAX_FUNC   },
    {"MIN",   MIN_FUNC   },
    {"MIN",   MIN_FUNC   },
    {"MOD",   MOD        },
    {"MOD",   MOD        },
    {"ODD",   ODD        },
    {"ODD",   ODD        },
    {"CAP",   CAP        },
    {"CAP",   CAP        },
    {"ORD",   ORD        },
    {"ORD",   ORD        },
    {"VAL",   VAL        },
    {"VAL",   VAL        },
    {"EXCL",  EXCL       },
    {"EXCL",  EXCL       },
    {"HIGH",  HIGH       },
    {"HIGH",  HIGH       },
    {"INCL",  INCL       },
    {"INCL",  INCL       },
    {"SIZE",  SIZE       },
    {"SIZE",  SIZE       },
    {"FLOAT", FLOAT_FUNC },
    {"FLOAT", FLOAT_FUNC },
    {"TRUNC", TRUNC      },
    {"TRUNC", TRUNC      },
};
};
 
 
 
 
/* Read one token, getting characters through lexptr.  */
/* Read one token, getting characters through lexptr.  */
 
 
/* This is where we will check to make sure that the language and the operators used are
/* This is where we will check to make sure that the language and the operators used are
   compatible  */
   compatible  */
 
 
static int
static int
yylex ()
yylex ()
{
{
  register int c;
  register int c;
  register int namelen;
  register int namelen;
  register int i;
  register int i;
  register char *tokstart;
  register char *tokstart;
  register char quote;
  register char quote;
 
 
 retry:
 retry:
 
 
  tokstart = lexptr;
  tokstart = lexptr;
 
 
 
 
  /* See if it is a special token of length 2 */
  /* See if it is a special token of length 2 */
  for( i = 0 ; i < (int) (sizeof tokentab2 / sizeof tokentab2[0]) ; i++)
  for( i = 0 ; i < (int) (sizeof tokentab2 / sizeof tokentab2[0]) ; i++)
     if(STREQN(tokentab2[i].name, tokstart, 2))
     if(STREQN(tokentab2[i].name, tokstart, 2))
     {
     {
        lexptr += 2;
        lexptr += 2;
        return tokentab2[i].token;
        return tokentab2[i].token;
     }
     }
 
 
  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 '(':
      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')
        break;                  /* Falls into number code.  */
        break;                  /* Falls into number code.  */
      else
      else
      {
      {
         lexptr++;
         lexptr++;
         return DOT;
         return DOT;
      }
      }
 
 
/* These are character tokens that appear as-is in the YACC grammar */
/* These are character tokens that appear as-is in the YACC grammar */
    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 '&':
      lexptr++;
      lexptr++;
      return c;
      return c;
 
 
    case '\'' :
    case '\'' :
    case '"':
    case '"':
      quote = c;
      quote = c;
      for (namelen = 1; (c = tokstart[namelen]) != quote && c != '\0'; namelen++)
      for (namelen = 1; (c = tokstart[namelen]) != quote && c != '\0'; namelen++)
        if (c == '\\')
        if (c == '\\')
          {
          {
            c = tokstart[++namelen];
            c = tokstart[++namelen];
            if (c >= '0' && c <= '9')
            if (c >= '0' && c <= '9')
              {
              {
                c = tokstart[++namelen];
                c = tokstart[++namelen];
                if (c >= '0' && c <= '9')
                if (c >= '0' && c <= '9')
                  c = tokstart[++namelen];
                  c = tokstart[++namelen];
              }
              }
          }
          }
      if(c != quote)
      if(c != quote)
         error("Unterminated string or character constant.");
         error("Unterminated string or character constant.");
      yylval.sval.ptr = tokstart + 1;
      yylval.sval.ptr = tokstart + 1;
      yylval.sval.length = namelen - 1;
      yylval.sval.length = namelen - 1;
      lexptr += namelen + 1;
      lexptr += namelen + 1;
 
 
      if(namelen == 2)          /* Single character */
      if(namelen == 2)          /* Single character */
      {
      {
           yylval.ulval = tokstart[1];
           yylval.ulval = tokstart[1];
           return CHAR;
           return CHAR;
      }
      }
      else
      else
         return STRING;
         return STRING;
    }
    }
 
 
  /* Is it a number?  */
  /* Is it a number?  */
  /* Note:  We have already dealt with the case of the token '.'.
  /* Note:  We have already dealt with the case of the token '.'.
     See case '.' above.  */
     See case '.' above.  */
  if ((c >= '0' && c <= '9'))
  if ((c >= '0' && c <= '9'))
    {
    {
      /* It's a number.  */
      /* It's a number.  */
      int got_dot = 0, got_e = 0;
      int got_dot = 0, got_e = 0;
      register char *p = tokstart;
      register char *p = tokstart;
      int toktype;
      int toktype;
 
 
      for (++p ;; ++p)
      for (++p ;; ++p)
        {
        {
          if (!got_e && (*p == 'e' || *p == 'E'))
          if (!got_e && (*p == 'e' || *p == 'E'))
            got_dot = got_e = 1;
            got_dot = got_e = 1;
          else if (!got_dot && *p == '.')
          else if (!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')
                   && (*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;
          else if ((*p < '0' || *p > '9') &&
          else if ((*p < '0' || *p > '9') &&
                   (*p < 'A' || *p > 'F') &&
                   (*p < 'A' || *p > 'F') &&
                   (*p != 'H'))  /* Modula-2 hexadecimal number */
                   (*p != 'H'))  /* Modula-2 hexadecimal number */
            break;
            break;
        }
        }
        toktype = parse_number (p - tokstart);
        toktype = parse_number (p - tokstart);
        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;
    }
    }
 
 
  if (!(c == '_' || c == '$'
  if (!(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);
 
 
  /* It's a name.  See how long it is.  */
  /* It's a name.  See how long it is.  */
  namelen = 0;
  namelen = 0;
  for (c = tokstart[namelen];
  for (c = tokstart[namelen];
       (c == '_' || c == '$' || (c >= '0' && c <= '9')
       (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;
 
 
  /*  Lookup special keywords */
  /*  Lookup special keywords */
  for(i = 0 ; i < (int) (sizeof(keytab) / sizeof(keytab[0])) ; i++)
  for(i = 0 ; i < (int) (sizeof(keytab) / sizeof(keytab[0])) ; i++)
     if(namelen == strlen(keytab[i].keyw) && STREQN(tokstart,keytab[i].keyw,namelen))
     if(namelen == strlen(keytab[i].keyw) && STREQN(tokstart,keytab[i].keyw,namelen))
           return keytab[i].token;
           return keytab[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 INTERNAL_VAR;
      return INTERNAL_VAR;
    }
    }
 
 
  /* Use token-type BLOCKNAME for symbols that happen to be defined as
  /* Use token-type BLOCKNAME for symbols that happen to be defined as
     functions.  If this is not so, then ...
     functions.  If this is not so, then ...
     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;
 
 
    if (lookup_partial_symtab (tmp))
    if (lookup_partial_symtab (tmp))
      return BLOCKNAME;
      return BLOCKNAME;
    sym = lookup_symbol (tmp, expression_context_block,
    sym = lookup_symbol (tmp, expression_context_block,
                         VAR_NAMESPACE, 0, NULL);
                         VAR_NAMESPACE, 0, NULL);
    if (sym && SYMBOL_CLASS (sym) == LOC_BLOCK)
    if (sym && SYMBOL_CLASS (sym) == LOC_BLOCK)
      return BLOCKNAME;
      return BLOCKNAME;
    if (lookup_typename (copy_name (yylval.sval), expression_context_block, 1))
    if (lookup_typename (copy_name (yylval.sval), expression_context_block, 1))
      return TYPENAME;
      return TYPENAME;
 
 
    if(sym)
    if(sym)
    {
    {
       switch(sym->aclass)
       switch(sym->aclass)
       {
       {
       case LOC_STATIC:
       case LOC_STATIC:
       case LOC_REGISTER:
       case LOC_REGISTER:
       case LOC_ARG:
       case LOC_ARG:
       case LOC_REF_ARG:
       case LOC_REF_ARG:
       case LOC_REGPARM:
       case LOC_REGPARM:
       case LOC_REGPARM_ADDR:
       case LOC_REGPARM_ADDR:
       case LOC_LOCAL:
       case LOC_LOCAL:
       case LOC_LOCAL_ARG:
       case LOC_LOCAL_ARG:
       case LOC_BASEREG:
       case LOC_BASEREG:
       case LOC_BASEREG_ARG:
       case LOC_BASEREG_ARG:
       case LOC_CONST:
       case LOC_CONST:
       case LOC_CONST_BYTES:
       case LOC_CONST_BYTES:
       case LOC_OPTIMIZED_OUT:
       case LOC_OPTIMIZED_OUT:
          return NAME;
          return NAME;
 
 
       case LOC_TYPEDEF:
       case LOC_TYPEDEF:
          return TYPENAME;
          return TYPENAME;
 
 
       case LOC_BLOCK:
       case LOC_BLOCK:
          return BLOCKNAME;
          return BLOCKNAME;
 
 
       case LOC_UNDEF:
       case LOC_UNDEF:
          error("internal:  Undefined class in m2lex()");
          error("internal:  Undefined class in m2lex()");
 
 
       case LOC_LABEL:
       case LOC_LABEL:
       case LOC_UNRESOLVED:
       case LOC_UNRESOLVED:
          error("internal:  Unforseen case in m2lex()");
          error("internal:  Unforseen case in m2lex()");
 
 
       default:
       default:
          error ("unhandled token in m2lex()");
          error ("unhandled token in m2lex()");
          break;
          break;
       }
       }
    }
    }
    else
    else
    {
    {
       /* Built-in BOOLEAN type.  This is sort of a hack. */
       /* Built-in BOOLEAN type.  This is sort of a hack. */
       if(STREQN(tokstart,"TRUE",4))
       if(STREQN(tokstart,"TRUE",4))
       {
       {
          yylval.ulval = 1;
          yylval.ulval = 1;
          return M2_TRUE;
          return M2_TRUE;
       }
       }
       else if(STREQN(tokstart,"FALSE",5))
       else if(STREQN(tokstart,"FALSE",5))
       {
       {
          yylval.ulval = 0;
          yylval.ulval = 0;
          return M2_FALSE;
          return M2_FALSE;
       }
       }
    }
    }
 
 
    /* Must be another type of name... */
    /* Must be another type of name... */
    return NAME;
    return NAME;
 }
 }
}
}
 
 
#if 0           /* Unused */
#if 0           /* Unused */
static char *
static char *
make_qualname(mod,ident)
make_qualname(mod,ident)
   char *mod, *ident;
   char *mod, *ident;
{
{
   char *new = xmalloc(strlen(mod)+strlen(ident)+2);
   char *new = xmalloc(strlen(mod)+strlen(ident)+2);
 
 
   strcpy(new,mod);
   strcpy(new,mod);
   strcat(new,".");
   strcat(new,".");
   strcat(new,ident);
   strcat(new,ident);
   return new;
   return new;
}
}
#endif  /* 0 */
#endif  /* 0 */
 
 
void
void
yyerror (msg)
yyerror (msg)
     char *msg;
     char *msg;
{
{
  error ("A %s in expression, near `%s'.", (msg ? msg : "error"), lexptr);
  error ("A %s in expression, near `%s'.", (msg ? msg : "error"), lexptr);
}
}
 
 

powered by: WebSVN 2.1.0

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