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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [intl/] [plural.c] - Diff between revs 156 and 816

Only display areas with differences | Details | Blame | View Log

Rev 156 Rev 816
/* A Bison parser, made from plural.y
/* A Bison parser, made from plural.y
   by GNU bison 1.35.  */
   by GNU bison 1.35.  */
 
 
#define YYBISON 1  /* Identify Bison output.  */
#define YYBISON 1  /* Identify Bison output.  */
 
 
#define yyparse __gettextparse
#define yyparse __gettextparse
#define yylex __gettextlex
#define yylex __gettextlex
#define yyerror __gettexterror
#define yyerror __gettexterror
#define yylval __gettextlval
#define yylval __gettextlval
#define yychar __gettextchar
#define yychar __gettextchar
#define yydebug __gettextdebug
#define yydebug __gettextdebug
#define yynerrs __gettextnerrs
#define yynerrs __gettextnerrs
# define        EQUOP2  257
# define        EQUOP2  257
# define        CMPOP2  258
# define        CMPOP2  258
# define        ADDOP2  259
# define        ADDOP2  259
# define        MULOP2  260
# define        MULOP2  260
# define        NUMBER  261
# define        NUMBER  261
 
 
#line 1 "plural.y"
#line 1 "plural.y"
 
 
/* Expression parsing for plural form selection.
/* Expression parsing for plural form selection.
   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
   Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
   Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
 
 
   This program is free software; you can redistribute it and/or modify it
   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU Library General Public License as published
   under the terms of the GNU Library General Public License as published
   by the Free Software Foundation; either version 2, or (at your option)
   by 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 GNU
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.
   Library General Public License for more details.
 
 
   You should have received a copy of the GNU Library General Public
   You should have received a copy of the GNU Library General Public
   License along with this program; if not, write to the Free Software
   License along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
   USA.  */
   USA.  */
 
 
/* The bison generated parser uses alloca.  AIX 3 forces us to put this
/* The bison generated parser uses alloca.  AIX 3 forces us to put this
   declaration at the beginning of the file.  The declaration in bison's
   declaration at the beginning of the file.  The declaration in bison's
   skeleton file comes too late.  This must come before <config.h>
   skeleton file comes too late.  This must come before <config.h>
   because <config.h> may include arbitrary system headers.  */
   because <config.h> may include arbitrary system headers.  */
#if defined _AIX && !defined __GNUC__
#if defined _AIX && !defined __GNUC__
 #pragma alloca
 #pragma alloca
#endif
#endif
 
 
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
# include <config.h>
#endif
#endif
 
 
#include <stddef.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdlib.h>
#include "plural-exp.h"
#include "plural-exp.h"
 
 
/* The main function generated by the parser is called __gettextparse,
/* The main function generated by the parser is called __gettextparse,
   but we want it to be called PLURAL_PARSE.  */
   but we want it to be called PLURAL_PARSE.  */
#ifndef _LIBC
#ifndef _LIBC
# define __gettextparse PLURAL_PARSE
# define __gettextparse PLURAL_PARSE
#endif
#endif
 
 
#define YYLEX_PARAM     &((struct parse_args *) arg)->cp
#define YYLEX_PARAM     &((struct parse_args *) arg)->cp
#define YYPARSE_PARAM   arg
#define YYPARSE_PARAM   arg
 
 
#line 49 "plural.y"
#line 49 "plural.y"
#ifndef YYSTYPE
#ifndef YYSTYPE
typedef union {
typedef union {
  unsigned long int num;
  unsigned long int num;
  enum operator op;
  enum operator op;
  struct expression *exp;
  struct expression *exp;
} yystype;
} yystype;
# define YYSTYPE yystype
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_TRIVIAL 1
#endif
#endif
#line 55 "plural.y"
#line 55 "plural.y"
 
 
/* Prototypes for local functions.  */
/* Prototypes for local functions.  */
static struct expression *new_exp PARAMS ((int nargs, enum operator op,
static struct expression *new_exp PARAMS ((int nargs, enum operator op,
                                           struct expression * const *args));
                                           struct expression * const *args));
static inline struct expression *new_exp_0 PARAMS ((enum operator op));
static inline struct expression *new_exp_0 PARAMS ((enum operator op));
static inline struct expression *new_exp_1 PARAMS ((enum operator op,
static inline struct expression *new_exp_1 PARAMS ((enum operator op,
                                                   struct expression *right));
                                                   struct expression *right));
static struct expression *new_exp_2 PARAMS ((enum operator op,
static struct expression *new_exp_2 PARAMS ((enum operator op,
                                             struct expression *left,
                                             struct expression *left,
                                             struct expression *right));
                                             struct expression *right));
static inline struct expression *new_exp_3 PARAMS ((enum operator op,
static inline struct expression *new_exp_3 PARAMS ((enum operator op,
                                                   struct expression *bexp,
                                                   struct expression *bexp,
                                                   struct expression *tbranch,
                                                   struct expression *tbranch,
                                                   struct expression *fbranch));
                                                   struct expression *fbranch));
static int yylex PARAMS ((YYSTYPE *lval, const char **pexp));
static int yylex PARAMS ((YYSTYPE *lval, const char **pexp));
static void yyerror PARAMS ((const char *str));
static void yyerror PARAMS ((const char *str));
 
 
/* Allocation of expressions.  */
/* Allocation of expressions.  */
 
 
static struct expression *
static struct expression *
new_exp (nargs, op, args)
new_exp (nargs, op, args)
     int nargs;
     int nargs;
     enum operator op;
     enum operator op;
     struct expression * const *args;
     struct expression * const *args;
{
{
  int i;
  int i;
  struct expression *newp;
  struct expression *newp;
 
 
  /* If any of the argument could not be malloc'ed, just return NULL.  */
  /* If any of the argument could not be malloc'ed, just return NULL.  */
  for (i = nargs - 1; i >= 0; i--)
  for (i = nargs - 1; i >= 0; i--)
    if (args[i] == NULL)
    if (args[i] == NULL)
      goto fail;
      goto fail;
 
 
  /* Allocate a new expression.  */
  /* Allocate a new expression.  */
  newp = (struct expression *) malloc (sizeof (*newp));
  newp = (struct expression *) malloc (sizeof (*newp));
  if (newp != NULL)
  if (newp != NULL)
    {
    {
      newp->nargs = nargs;
      newp->nargs = nargs;
      newp->operation = op;
      newp->operation = op;
      for (i = nargs - 1; i >= 0; i--)
      for (i = nargs - 1; i >= 0; i--)
        newp->val.args[i] = args[i];
        newp->val.args[i] = args[i];
      return newp;
      return newp;
    }
    }
 
 
 fail:
 fail:
  for (i = nargs - 1; i >= 0; i--)
  for (i = nargs - 1; i >= 0; i--)
    FREE_EXPRESSION (args[i]);
    FREE_EXPRESSION (args[i]);
 
 
  return NULL;
  return NULL;
}
}
 
 
static inline struct expression *
static inline struct expression *
new_exp_0 (op)
new_exp_0 (op)
     enum operator op;
     enum operator op;
{
{
  return new_exp (0, op, NULL);
  return new_exp (0, op, NULL);
}
}
 
 
static inline struct expression *
static inline struct expression *
new_exp_1 (op, right)
new_exp_1 (op, right)
     enum operator op;
     enum operator op;
     struct expression *right;
     struct expression *right;
{
{
  struct expression *args[1];
  struct expression *args[1];
 
 
  args[0] = right;
  args[0] = right;
  return new_exp (1, op, args);
  return new_exp (1, op, args);
}
}
 
 
static struct expression *
static struct expression *
new_exp_2 (op, left, right)
new_exp_2 (op, left, right)
     enum operator op;
     enum operator op;
     struct expression *left;
     struct expression *left;
     struct expression *right;
     struct expression *right;
{
{
  struct expression *args[2];
  struct expression *args[2];
 
 
  args[0] = left;
  args[0] = left;
  args[1] = right;
  args[1] = right;
  return new_exp (2, op, args);
  return new_exp (2, op, args);
}
}
 
 
static inline struct expression *
static inline struct expression *
new_exp_3 (op, bexp, tbranch, fbranch)
new_exp_3 (op, bexp, tbranch, fbranch)
     enum operator op;
     enum operator op;
     struct expression *bexp;
     struct expression *bexp;
     struct expression *tbranch;
     struct expression *tbranch;
     struct expression *fbranch;
     struct expression *fbranch;
{
{
  struct expression *args[3];
  struct expression *args[3];
 
 
  args[0] = bexp;
  args[0] = bexp;
  args[1] = tbranch;
  args[1] = tbranch;
  args[2] = fbranch;
  args[2] = fbranch;
  return new_exp (3, op, args);
  return new_exp (3, op, args);
}
}
 
 
#ifndef YYDEBUG
#ifndef YYDEBUG
# define YYDEBUG 0
# define YYDEBUG 0
#endif
#endif
 
 
 
 
 
 
#define YYFINAL         27
#define YYFINAL         27
#define YYFLAG          -32768
#define YYFLAG          -32768
#define YYNTBASE        16
#define YYNTBASE        16
 
 
/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */
/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */
#define YYTRANSLATE(x) ((unsigned)(x) <= 261 ? yytranslate[x] : 18)
#define YYTRANSLATE(x) ((unsigned)(x) <= 261 ? yytranslate[x] : 18)
 
 
/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */
/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */
static const char yytranslate[] =
static const char yytranslate[] =
{
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,    10,     2,     2,     2,     2,     5,     2,
       2,     2,     2,    10,     2,     2,     2,     2,     5,     2,
      14,    15,     2,     2,     2,     2,     2,     2,     2,     2,
      14,    15,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,    12,     2,
       2,     2,     2,     2,     2,     2,     2,     2,    12,     2,
       2,     2,     2,     3,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     3,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
      13,     2,     2,     2,     2,     2,     2,     2,     2,     2,
      13,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     4,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     4,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     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,     6,     7,     8,
       2,     2,     2,     2,     2,     2,     1,     6,     7,     8,
       9,    11
       9,    11
};
};
 
 
#if YYDEBUG
#if YYDEBUG
static const short yyprhs[] =
static const short yyprhs[] =
{
{
       0,     0,     2,     8,    12,    16,    20,    24,    28,    32,
       0,     0,     2,     8,    12,    16,    20,    24,    28,    32,
      35,    37,    39
      35,    37,    39
};
};
static const short yyrhs[] =
static const short yyrhs[] =
{
{
      17,     0,    17,     3,    17,    12,    17,     0,    17,     4,
      17,     0,    17,     3,    17,    12,    17,     0,    17,     4,
      17,     0,    17,     5,    17,     0,    17,     6,    17,     0,
      17,     0,    17,     5,    17,     0,    17,     6,    17,     0,
      17,     7,    17,     0,    17,     8,    17,     0,    17,     9,
      17,     7,    17,     0,    17,     8,    17,     0,    17,     9,
      17,     0,    10,    17,     0,    13,     0,    11,     0,    14,
      17,     0,    10,    17,     0,    13,     0,    11,     0,    14,
      17,    15,     0
      17,    15,     0
};
};
 
 
#endif
#endif
 
 
#if YYDEBUG
#if YYDEBUG
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const short yyrline[] =
static const short yyrline[] =
{
{
       0,   174,   182,   186,   190,   194,   198,   202,   206,   210,
       0,   174,   182,   186,   190,   194,   198,   202,   206,   210,
     214,   218,   223
     214,   218,   223
};
};
#endif
#endif
 
 
 
 
#if (YYDEBUG) || defined YYERROR_VERBOSE
#if (YYDEBUG) || defined YYERROR_VERBOSE
 
 
/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */
/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */
static const char *const yytname[] =
static const char *const yytname[] =
{
{
  "$", "error", "$undefined.", "'?'", "'|'", "'&'", "EQUOP2", "CMPOP2",
  "$", "error", "$undefined.", "'?'", "'|'", "'&'", "EQUOP2", "CMPOP2",
  "ADDOP2", "MULOP2", "'!'", "NUMBER", "':'", "'n'", "'('", "')'",
  "ADDOP2", "MULOP2", "'!'", "NUMBER", "':'", "'n'", "'('", "')'",
  "start", "exp", 0
  "start", "exp", 0
};
};
#endif
#endif
 
 
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const short yyr1[] =
static const short yyr1[] =
{
{
       0,    16,    17,    17,    17,    17,    17,    17,    17,    17,
       0,    16,    17,    17,    17,    17,    17,    17,    17,    17,
      17,    17,    17
      17,    17,    17
};
};
 
 
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const short yyr2[] =
static const short yyr2[] =
{
{
       0,     1,     5,     3,     3,     3,     3,     3,     3,     2,
       0,     1,     5,     3,     3,     3,     3,     3,     3,     2,
       1,     1,     3
       1,     1,     3
};
};
 
 
/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
   doesn't specify something else to do.  Zero means the default is an
   doesn't specify something else to do.  Zero means the default is an
   error. */
   error. */
static const short yydefact[] =
static const short yydefact[] =
{
{
       0,     0,    11,    10,     0,     1,     9,     0,     0,     0,
       0,     0,    11,    10,     0,     1,     9,     0,     0,     0,
       0,     0,     0,     0,     0,    12,     0,     3,     4,     5,
       0,     0,     0,     0,     0,    12,     0,     3,     4,     5,
       6,     7,     8,     0,     2,     0,     0,     0
       6,     7,     8,     0,     2,     0,     0,     0
};
};
 
 
static const short yydefgoto[] =
static const short yydefgoto[] =
{
{
      25,     5
      25,     5
};
};
 
 
static const short yypact[] =
static const short yypact[] =
{
{
      -9,    -9,-32768,-32768,    -9,    34,-32768,    11,    -9,    -9,
      -9,    -9,-32768,-32768,    -9,    34,-32768,    11,    -9,    -9,
      -9,    -9,    -9,    -9,    -9,-32768,    24,    39,    43,    16,
      -9,    -9,    -9,    -9,    -9,-32768,    24,    39,    43,    16,
      26,    -3,-32768,    -9,    34,    21,    53,-32768
      26,    -3,-32768,    -9,    34,    21,    53,-32768
};
};
 
 
static const short yypgoto[] =
static const short yypgoto[] =
{
{
  -32768,    -1
  -32768,    -1
};
};
 
 
 
 
#define YYLAST          53
#define YYLAST          53
 
 
 
 
static const short yytable[] =
static const short yytable[] =
{
{
       6,     1,     2,     7,     3,     4,    14,    16,    17,    18,
       6,     1,     2,     7,     3,     4,    14,    16,    17,    18,
      19,    20,    21,    22,     8,     9,    10,    11,    12,    13,
      19,    20,    21,    22,     8,     9,    10,    11,    12,    13,
      14,    26,    24,    12,    13,    14,    15,     8,     9,    10,
      14,    26,    24,    12,    13,    14,    15,     8,     9,    10,
      11,    12,    13,    14,    13,    14,    23,     8,     9,    10,
      11,    12,    13,    14,    13,    14,    23,     8,     9,    10,
      11,    12,    13,    14,    10,    11,    12,    13,    14,    11,
      11,    12,    13,    14,    10,    11,    12,    13,    14,    11,
      12,    13,    14,    27
      12,    13,    14,    27
};
};
 
 
static const short yycheck[] =
static const short yycheck[] =
{
{
       1,    10,    11,     4,    13,    14,     9,     8,     9,    10,
       1,    10,    11,     4,    13,    14,     9,     8,     9,    10,
      11,    12,    13,    14,     3,     4,     5,     6,     7,     8,
      11,    12,    13,    14,     3,     4,     5,     6,     7,     8,
       9,     0,    23,     7,     8,     9,    15,     3,     4,     5,
       9,     0,    23,     7,     8,     9,    15,     3,     4,     5,
       6,     7,     8,     9,     8,     9,    12,     3,     4,     5,
       6,     7,     8,     9,     8,     9,    12,     3,     4,     5,
       6,     7,     8,     9,     5,     6,     7,     8,     9,     6,
       6,     7,     8,     9,     5,     6,     7,     8,     9,     6,
       7,     8,     9,     0
       7,     8,     9,     0
};
};
#define YYPURE 1
#define YYPURE 1
 
 
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
#line 3 "/usr/local/share/bison/bison.simple"
#line 3 "/usr/local/share/bison/bison.simple"
 
 
/* Skeleton output parser for bison,
/* Skeleton output parser for bison,
 
 
   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software
   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software
   Foundation, Inc.
   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., 51 Franklin Street - Fifth Floor,
   Foundation, Inc., 51 Franklin Street - Fifth Floor,
   Boston, MA 02110-1301, USA.  */
   Boston, MA 02110-1301, 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 when
/* This is the parser code that is written into each bison parser when
   the %semantic_parser declaration is not specified in the grammar.
   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.  */
 
 
/* All symbols defined below should begin with yy or YY, to avoid
/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */
   USER NAME SPACE" below.  */
 
 
#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
 
 
/* The parser invokes alloca or malloc; define the necessary symbols.  */
/* The parser invokes alloca or malloc; define the necessary symbols.  */
 
 
# if YYSTACK_USE_ALLOCA
# if YYSTACK_USE_ALLOCA
#  define YYSTACK_ALLOC alloca
#  define YYSTACK_ALLOC alloca
# else
# else
#  ifndef YYSTACK_USE_ALLOCA
#  ifndef YYSTACK_USE_ALLOCA
#   if defined (alloca) || defined (_ALLOCA_H)
#   if defined (alloca) || defined (_ALLOCA_H)
#    define YYSTACK_ALLOC alloca
#    define YYSTACK_ALLOC alloca
#   else
#   else
#    ifdef __GNUC__
#    ifdef __GNUC__
#     define YYSTACK_ALLOC __builtin_alloca
#     define YYSTACK_ALLOC __builtin_alloca
#    endif
#    endif
#   endif
#   endif
#  endif
#  endif
# endif
# endif
 
 
# ifdef YYSTACK_ALLOC
# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning. */
   /* Pacify GCC's `empty if-body' warning. */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# else
# else
#  if defined (__STDC__) || defined (__cplusplus)
#  if defined (__STDC__) || defined (__cplusplus)
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   define YYSIZE_T size_t
#   define YYSIZE_T size_t
#  endif
#  endif
#  define YYSTACK_ALLOC malloc
#  define YYSTACK_ALLOC malloc
#  define YYSTACK_FREE free
#  define YYSTACK_FREE free
# endif
# endif
#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */
#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */
 
 
 
 
#if (! defined (yyoverflow) \
#if (! defined (yyoverflow) \
     && (! defined (__cplusplus) \
     && (! defined (__cplusplus) \
         || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
         || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
 
 
/* A type that is properly aligned for any stack member.  */
/* A type that is properly aligned for any stack member.  */
union yyalloc
union yyalloc
{
{
  short yyss;
  short yyss;
  YYSTYPE yyvs;
  YYSTYPE yyvs;
# if YYLSP_NEEDED
# if YYLSP_NEEDED
  YYLTYPE yyls;
  YYLTYPE yyls;
# endif
# endif
};
};
 
 
/* The size of the maximum gap between one aligned stack and the next.  */
/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
 
 
/* The size of an array large to enough to hold all stacks, each with
/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
   N elements.  */
# if YYLSP_NEEDED
# if YYLSP_NEEDED
#  define YYSTACK_BYTES(N) \
#  define YYSTACK_BYTES(N) \
     ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE))      \
     ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE))      \
      + 2 * YYSTACK_GAP_MAX)
      + 2 * YYSTACK_GAP_MAX)
# else
# else
#  define YYSTACK_BYTES(N) \
#  define YYSTACK_BYTES(N) \
     ((N) * (sizeof (short) + sizeof (YYSTYPE))                         \
     ((N) * (sizeof (short) + sizeof (YYSTYPE))                         \
      + YYSTACK_GAP_MAX)
      + YYSTACK_GAP_MAX)
# endif
# endif
 
 
/* Copy COUNT objects from FROM to TO.  The source and destination do
/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
   not overlap.  */
# ifndef YYCOPY
# ifndef YYCOPY
#  if 1 < __GNUC__
#  if 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#  else
#   define YYCOPY(To, From, Count)              \
#   define YYCOPY(To, From, Count)              \
      do                                        \
      do                                        \
        {                                       \
        {                                       \
          register YYSIZE_T yyi;                \
          register YYSIZE_T yyi;                \
          for (yyi = 0; yyi < (Count); yyi++)    \
          for (yyi = 0; yyi < (Count); yyi++)    \
            (To)[yyi] = (From)[yyi];            \
            (To)[yyi] = (From)[yyi];            \
        }                                       \
        }                                       \
      while (0)
      while (0)
#  endif
#  endif
# endif
# endif
 
 
/* Relocate STACK from its old location to the new one.  The
/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
   stack.  */
# define YYSTACK_RELOCATE(Stack)                                        \
# define YYSTACK_RELOCATE(Stack)                                        \
    do                                                                  \
    do                                                                  \
      {                                                                 \
      {                                                                 \
        YYSIZE_T yynewbytes;                                            \
        YYSIZE_T yynewbytes;                                            \
        YYCOPY (&yyptr->Stack, Stack, yysize);                          \
        YYCOPY (&yyptr->Stack, Stack, yysize);                          \
        Stack = &yyptr->Stack;                                          \
        Stack = &yyptr->Stack;                                          \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX;   \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX;   \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
      }                                                                 \
      }                                                                 \
    while (0)
    while (0)
 
 
#endif
#endif
 
 
 
 
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# define YYSIZE_T __SIZE_TYPE__
# define YYSIZE_T __SIZE_TYPE__
#endif
#endif
#if ! defined (YYSIZE_T) && defined (size_t)
#if ! defined (YYSIZE_T) && defined (size_t)
# define YYSIZE_T size_t
# define YYSIZE_T size_t
#endif
#endif
#if ! defined (YYSIZE_T)
#if ! defined (YYSIZE_T)
# if defined (__STDC__) || defined (__cplusplus)
# if defined (__STDC__) || defined (__cplusplus)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
#  define YYSIZE_T size_t
# endif
# endif
#endif
#endif
#if ! defined (YYSIZE_T)
#if ! defined (YYSIZE_T)
# define YYSIZE_T unsigned int
# define YYSIZE_T unsigned int
#endif
#endif
 
 
#define yyerrok         (yyerrstatus = 0)
#define yyerrok         (yyerrstatus = 0)
#define yyclearin       (yychar = YYEMPTY)
#define yyclearin       (yychar = YYEMPTY)
#define YYEMPTY         -2
#define YYEMPTY         -2
#define YYEOF           0
#define YYEOF           0
#define YYACCEPT        goto yyacceptlab
#define YYACCEPT        goto yyacceptlab
#define YYABORT         goto yyabortlab
#define YYABORT         goto yyabortlab
#define YYERROR         goto yyerrlab1
#define YYERROR         goto yyerrlab1
/* Like YYERROR except do call yyerror.  This remains here temporarily
/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */
   Once GCC version 2 has supplanted version 1, this can go.  */
#define YYFAIL          goto yyerrlab
#define YYFAIL          goto yyerrlab
#define YYRECOVERING()  (!!yyerrstatus)
#define YYRECOVERING()  (!!yyerrstatus)
#define YYBACKUP(Token, Value)                                  \
#define YYBACKUP(Token, Value)                                  \
do                                                              \
do                                                              \
  if (yychar == YYEMPTY && yylen == 1)                          \
  if (yychar == YYEMPTY && yylen == 1)                          \
    {                                                           \
    {                                                           \
      yychar = (Token);                                         \
      yychar = (Token);                                         \
      yylval = (Value);                                         \
      yylval = (Value);                                         \
      yychar1 = YYTRANSLATE (yychar);                           \
      yychar1 = YYTRANSLATE (yychar);                           \
      YYPOPSTACK;                                               \
      YYPOPSTACK;                                               \
      goto yybackup;                                            \
      goto yybackup;                                            \
    }                                                           \
    }                                                           \
  else                                                          \
  else                                                          \
    {                                                           \
    {                                                           \
      yyerror ("syntax error: cannot back up");                 \
      yyerror ("syntax error: cannot back up");                 \
      YYERROR;                                                  \
      YYERROR;                                                  \
    }                                                           \
    }                                                           \
while (0)
while (0)
 
 
#define YYTERROR        1
#define YYTERROR        1
#define YYERRCODE       256
#define YYERRCODE       256
 
 
 
 
/* YYLLOC_DEFAULT -- Compute the default location (before the actions
/* YYLLOC_DEFAULT -- Compute the default location (before the actions
   are run).
   are run).
 
 
   When YYLLOC_DEFAULT is run, CURRENT is set the location of the
   When YYLLOC_DEFAULT is run, CURRENT is set the location of the
   first token.  By default, to implement support for ranges, extend
   first token.  By default, to implement support for ranges, extend
   its range to the last symbol.  */
   its range to the last symbol.  */
 
 
#ifndef YYLLOC_DEFAULT
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)        \
# define YYLLOC_DEFAULT(Current, Rhs, N)        \
   Current.last_line   = Rhs[N].last_line;      \
   Current.last_line   = Rhs[N].last_line;      \
   Current.last_column = Rhs[N].last_column;
   Current.last_column = Rhs[N].last_column;
#endif
#endif
 
 
 
 
/* YYLEX -- calling `yylex' with the right arguments.  */
/* YYLEX -- calling `yylex' with the right arguments.  */
 
 
#if YYPURE
#if YYPURE
# if YYLSP_NEEDED
# if 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 /* !YYLSP_NEEDED */
# else /* !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 /* !YYLSP_NEEDED */
# endif /* !YYLSP_NEEDED */
#else /* !YYPURE */
#else /* !YYPURE */
# define YYLEX                  yylex ()
# define YYLEX                  yylex ()
#endif /* !YYPURE */
#endif /* !YYPURE */
 
 
 
 
/* Enable debugging if requested.  */
/* Enable debugging if requested.  */
#if YYDEBUG
#if YYDEBUG
 
 
# ifndef YYFPRINTF
# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
#  define YYFPRINTF fprintf
# endif
# endif
 
 
# define YYDPRINTF(Args)                        \
# define YYDPRINTF(Args)                        \
do {                                            \
do {                                            \
  if (yydebug)                                  \
  if (yydebug)                                  \
    YYFPRINTF Args;                             \
    YYFPRINTF Args;                             \
} while (0)
} while (0)
/* Nonzero means print parse trace.  It is left uninitialized so that
/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
   multiple parsers can coexist.  */
int yydebug;
int yydebug;
#else /* !YYDEBUG */
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YYDPRINTF(Args)
#endif /* !YYDEBUG */
#endif /* !YYDEBUG */
 
 
/* YYINITDEPTH -- initial size of the parser's stacks.  */
/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef YYINITDEPTH
#ifndef YYINITDEPTH
# define YYINITDEPTH 200
# define YYINITDEPTH 200
#endif
#endif
 
 
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).
   if the built-in stack extension method is used).
 
 
   Do not make this value too large; the results are undefined if
   Do not make this value too large; the results are undefined if
   SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
   SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */
   evaluated with infinite-precision integer arithmetic.  */
 
 
#if YYMAXDEPTH == 0
#if YYMAXDEPTH == 0
# undef YYMAXDEPTH
# undef YYMAXDEPTH
#endif
#endif
 
 
#ifndef YYMAXDEPTH
#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
# define YYMAXDEPTH 10000
#endif
#endif


#ifdef YYERROR_VERBOSE
#ifdef YYERROR_VERBOSE
 
 
# ifndef yystrlen
# ifndef yystrlen
#  if defined (__GLIBC__) && defined (_STRING_H)
#  if defined (__GLIBC__) && defined (_STRING_H)
#   define yystrlen strlen
#   define yystrlen strlen
#  else
#  else
/* Return the length of YYSTR.  */
/* Return the length of YYSTR.  */
static YYSIZE_T
static YYSIZE_T
#   if defined (__STDC__) || defined (__cplusplus)
#   if defined (__STDC__) || defined (__cplusplus)
yystrlen (const char *yystr)
yystrlen (const char *yystr)
#   else
#   else
yystrlen (yystr)
yystrlen (yystr)
     const char *yystr;
     const char *yystr;
#   endif
#   endif
{
{
  register const char *yys = yystr;
  register const char *yys = yystr;
 
 
  while (*yys++ != '\0')
  while (*yys++ != '\0')
    continue;
    continue;
 
 
  return yys - yystr - 1;
  return yys - yystr - 1;
}
}
#  endif
#  endif
# endif
# endif
 
 
# ifndef yystpcpy
# ifndef yystpcpy
#  if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
#  if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
#   define yystpcpy stpcpy
#   define yystpcpy stpcpy
#  else
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
   YYDEST.  */
static char *
static char *
#   if defined (__STDC__) || defined (__cplusplus)
#   if defined (__STDC__) || defined (__cplusplus)
yystpcpy (char *yydest, const char *yysrc)
yystpcpy (char *yydest, const char *yysrc)
#   else
#   else
yystpcpy (yydest, yysrc)
yystpcpy (yydest, yysrc)
     char *yydest;
     char *yydest;
     const char *yysrc;
     const char *yysrc;
#   endif
#   endif
{
{
  register char *yyd = yydest;
  register char *yyd = yydest;
  register const char *yys = yysrc;
  register const char *yys = yysrc;
 
 
  while ((*yyd++ = *yys++) != '\0')
  while ((*yyd++ = *yys++) != '\0')
    continue;
    continue;
 
 
  return yyd - 1;
  return yyd - 1;
}
}
#  endif
#  endif
# endif
# endif
#endif
#endif


#line 315 "/usr/local/share/bison/bison.simple"
#line 315 "/usr/local/share/bison/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
# if defined (__STDC__) || defined (__cplusplus)
# if defined (__STDC__) || defined (__cplusplus)
#  define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#  define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#  define YYPARSE_PARAM_DECL
#  define YYPARSE_PARAM_DECL
# else
# else
#  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
# endif
#else /* !YYPARSE_PARAM */
#else /* !YYPARSE_PARAM */
# define YYPARSE_PARAM_ARG
# define YYPARSE_PARAM_ARG
# define YYPARSE_PARAM_DECL
# define YYPARSE_PARAM_DECL
#endif /* !YYPARSE_PARAM */
#endif /* !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
 
 
/* YY_DECL_VARIABLES -- depending whether we use a pure parser,
/* YY_DECL_VARIABLES -- depending whether we use a pure parser,
   variables are global, or local to YYPARSE.  */
   variables are global, or local to YYPARSE.  */
 
 
#define YY_DECL_NON_LSP_VARIABLES                       \
#define YY_DECL_NON_LSP_VARIABLES                       \
/* The lookahead symbol.  */                            \
/* The lookahead symbol.  */                            \
int yychar;                                             \
int yychar;                                             \
                                                        \
                                                        \
/* The semantic value of the lookahead symbol. */       \
/* The semantic value of the lookahead symbol. */       \
YYSTYPE yylval;                                         \
YYSTYPE yylval;                                         \
                                                        \
                                                        \
/* Number of parse errors so far.  */                   \
/* Number of parse errors so far.  */                   \
int yynerrs;
int yynerrs;
 
 
#if YYLSP_NEEDED
#if YYLSP_NEEDED
# define YY_DECL_VARIABLES                      \
# define YY_DECL_VARIABLES                      \
YY_DECL_NON_LSP_VARIABLES                       \
YY_DECL_NON_LSP_VARIABLES                       \
                                                \
                                                \
/* Location data for the lookahead symbol.  */  \
/* Location data for the lookahead symbol.  */  \
YYLTYPE yylloc;
YYLTYPE yylloc;
#else
#else
# define YY_DECL_VARIABLES                      \
# define YY_DECL_VARIABLES                      \
YY_DECL_NON_LSP_VARIABLES
YY_DECL_NON_LSP_VARIABLES
#endif
#endif
 
 
 
 
/* If nonreentrant, generate the variables here. */
/* If nonreentrant, generate the variables here. */
 
 
#if !YYPURE
#if !YYPURE
YY_DECL_VARIABLES
YY_DECL_VARIABLES
#endif  /* !YYPURE */
#endif  /* !YYPURE */
 
 
int
int
yyparse (YYPARSE_PARAM_ARG)
yyparse (YYPARSE_PARAM_ARG)
     YYPARSE_PARAM_DECL
     YYPARSE_PARAM_DECL
{
{
  /* If reentrant, generate the variables here. */
  /* If reentrant, generate the variables here. */
#if YYPURE
#if YYPURE
  YY_DECL_VARIABLES
  YY_DECL_VARIABLES
#endif  /* !YYPURE */
#endif  /* !YYPURE */
 
 
  register int yystate;
  register int yystate;
  register int yyn;
  register int yyn;
  int yyresult;
  int yyresult;
  /* Number of tokens to shift before error messages enabled.  */
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  int yyerrstatus;
  /* Lookahead token as an internal (translated) token number.  */
  /* Lookahead token as an internal (translated) token number.  */
  int yychar1 = 0;
  int yychar1 = 0;
 
 
  /* Three stacks and their tools:
  /* Three stacks and their tools:
     `yyss': related to states,
     `yyss': related to states,
     `yyvs': related to semantic values,
     `yyvs': related to semantic values,
     `yyls': related to locations.
     `yyls': related to locations.
 
 
     Refer to the stacks thru separate pointers, to allow yyoverflow
     Refer to the stacks thru separate pointers, to allow yyoverflow
     to reallocate them elsewhere.  */
     to reallocate them elsewhere.  */
 
 
  /* The state stack. */
  /* The state stack. */
  short yyssa[YYINITDEPTH];
  short yyssa[YYINITDEPTH];
  short *yyss = yyssa;
  short *yyss = yyssa;
  register short *yyssp;
  register short *yyssp;
 
 
  /* The semantic value stack.  */
  /* The semantic value stack.  */
  YYSTYPE yyvsa[YYINITDEPTH];
  YYSTYPE yyvsa[YYINITDEPTH];
  YYSTYPE *yyvs = yyvsa;
  YYSTYPE *yyvs = yyvsa;
  register YYSTYPE *yyvsp;
  register YYSTYPE *yyvsp;
 
 
#if YYLSP_NEEDED
#if YYLSP_NEEDED
  /* The location stack.  */
  /* The location stack.  */
  YYLTYPE yylsa[YYINITDEPTH];
  YYLTYPE yylsa[YYINITDEPTH];
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yylsp;
  YYLTYPE *yylsp;
#endif
#endif
 
 
#if YYLSP_NEEDED
#if YYLSP_NEEDED
# define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
# define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
#else
#else
# define YYPOPSTACK   (yyvsp--, yyssp--)
# define YYPOPSTACK   (yyvsp--, yyssp--)
#endif
#endif
 
 
  YYSIZE_T yystacksize = YYINITDEPTH;
  YYSIZE_T yystacksize = YYINITDEPTH;
 
 
 
 
  /* The variables used to return semantic value and location from the
  /* The variables used to return semantic value and location from the
     action routines.  */
     action routines.  */
  YYSTYPE yyval;
  YYSTYPE yyval;
#if YYLSP_NEEDED
#if YYLSP_NEEDED
  YYLTYPE yyloc;
  YYLTYPE yyloc;
#endif
#endif
 
 
  /* When reducing, the number of symbols on the RHS of the reduced
  /* When reducing, the number of symbols on the RHS of the reduced
     rule. */
     rule. */
  int yylen;
  int yylen;
 
 
  YYDPRINTF ((stderr, "Starting parse\n"));
  YYDPRINTF ((stderr, "Starting parse\n"));
 
 
  yystate = 0;
  yystate = 0;
  yyerrstatus = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yynerrs = 0;
  yychar = YYEMPTY;             /* Cause a token to be read.  */
  yychar = YYEMPTY;             /* Cause a token to be read.  */
 
 
  /* Initialize stack pointers.
  /* Initialize stack pointers.
     Waste one element of value and location stack
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */
     The wasted elements are never initialized.  */
 
 
  yyssp = yyss;
  yyssp = yyss;
  yyvsp = yyvs;
  yyvsp = yyvs;
#if YYLSP_NEEDED
#if YYLSP_NEEDED
  yylsp = yyls;
  yylsp = yyls;
#endif
#endif
  goto yysetstate;
  goto yysetstate;
 
 
/*------------------------------------------------------------.
/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate.  |
| yynewstate -- Push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
`------------------------------------------------------------*/
 yynewstate:
 yynewstate:
  /* In all cases, when you get here, the value and location stacks
  /* In all cases, when you get here, the value and location stacks
     have just been pushed. so pushing a state here evens the stacks.
     have just been pushed. so pushing a state here evens the stacks.
     */
     */
  yyssp++;
  yyssp++;
 
 
 yysetstate:
 yysetstate:
  *yyssp = yystate;
  *yyssp = yystate;
 
 
  if (yyssp >= yyss + yystacksize - 1)
  if (yyssp >= yyss + yystacksize - 1)
    {
    {
      /* Get the current used size of the three stacks, in elements.  */
      /* Get the current used size of the three stacks, in elements.  */
      YYSIZE_T yysize = yyssp - yyss + 1;
      YYSIZE_T yysize = yyssp - yyss + 1;
 
 
#ifdef yyoverflow
#ifdef yyoverflow
      {
      {
        /* Give user a chance to reallocate the stack. Use copies of
        /* Give user a chance to reallocate the stack. Use copies of
           these so that the &'s don't force the real ones into
           these so that the &'s don't force the real ones into
           memory.  */
           memory.  */
        YYSTYPE *yyvs1 = yyvs;
        YYSTYPE *yyvs1 = yyvs;
        short *yyss1 = yyss;
        short *yyss1 = yyss;
 
 
        /* Each stack pointer address is followed by the size of the
        /* Each stack pointer address is followed by the size of the
           data in use in that stack, in bytes.  */
           data in use in that stack, in bytes.  */
# if YYLSP_NEEDED
# if YYLSP_NEEDED
        YYLTYPE *yyls1 = yyls;
        YYLTYPE *yyls1 = yyls;
        /* 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, yysize * sizeof (*yyssp),
                    &yyss1, yysize * sizeof (*yyssp),
                    &yyvs1, yysize * sizeof (*yyvsp),
                    &yyvs1, yysize * sizeof (*yyvsp),
                    &yyls1, yysize * sizeof (*yylsp),
                    &yyls1, yysize * sizeof (*yylsp),
                    &yystacksize);
                    &yystacksize);
        yyls = yyls1;
        yyls = yyls1;
# else
# else
        yyoverflow ("parser stack overflow",
        yyoverflow ("parser stack overflow",
                    &yyss1, yysize * sizeof (*yyssp),
                    &yyss1, yysize * sizeof (*yyssp),
                    &yyvs1, yysize * sizeof (*yyvsp),
                    &yyvs1, yysize * sizeof (*yyvsp),
                    &yystacksize);
                    &yystacksize);
# endif
# endif
        yyss = yyss1;
        yyss = yyss1;
        yyvs = yyvs1;
        yyvs = yyvs1;
      }
      }
#else /* no yyoverflow */
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
# ifndef YYSTACK_RELOCATE
      goto yyoverflowlab;
      goto yyoverflowlab;
# else
# else
      /* Extend the stack our own way.  */
      /* Extend the stack our own way.  */
      if (yystacksize >= YYMAXDEPTH)
      if (yystacksize >= YYMAXDEPTH)
        goto yyoverflowlab;
        goto yyoverflowlab;
      yystacksize *= 2;
      yystacksize *= 2;
      if (yystacksize > YYMAXDEPTH)
      if (yystacksize > YYMAXDEPTH)
        yystacksize = YYMAXDEPTH;
        yystacksize = YYMAXDEPTH;
 
 
      {
      {
        short *yyss1 = yyss;
        short *yyss1 = yyss;
        union yyalloc *yyptr =
        union yyalloc *yyptr =
          (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
          (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
        if (! yyptr)
        if (! yyptr)
          goto yyoverflowlab;
          goto yyoverflowlab;
        YYSTACK_RELOCATE (yyss);
        YYSTACK_RELOCATE (yyss);
        YYSTACK_RELOCATE (yyvs);
        YYSTACK_RELOCATE (yyvs);
# if YYLSP_NEEDED
# if YYLSP_NEEDED
        YYSTACK_RELOCATE (yyls);
        YYSTACK_RELOCATE (yyls);
# endif
# endif
# undef YYSTACK_RELOCATE
# undef YYSTACK_RELOCATE
        if (yyss1 != yyssa)
        if (yyss1 != yyssa)
          YYSTACK_FREE (yyss1);
          YYSTACK_FREE (yyss1);
      }
      }
# endif
# endif
#endif /* no yyoverflow */
#endif /* no yyoverflow */
 
 
      yyssp = yyss + yysize - 1;
      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;
      yyvsp = yyvs + yysize - 1;
#if YYLSP_NEEDED
#if YYLSP_NEEDED
      yylsp = yyls + yysize - 1;
      yylsp = yyls + yysize - 1;
#endif
#endif
 
 
      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
                  (unsigned long int) yystacksize));
                  (unsigned long int) yystacksize));
 
 
      if (yyssp >= yyss + yystacksize - 1)
      if (yyssp >= yyss + yystacksize - 1)
        YYABORT;
        YYABORT;
    }
    }
 
 
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
 
 
  goto yybackup;
  goto yybackup;
 
 
 
 
/*-----------.
/*-----------.
| yybackup.  |
| 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)
    {
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      YYDPRINTF ((stderr, "Reading a token: "));
      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 */
 
 
      YYDPRINTF ((stderr, "Now at end of input.\n"));
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
    }
  else
  else
    {
    {
      yychar1 = YYTRANSLATE (yychar);
      yychar1 = YYTRANSLATE (yychar);
 
 
#if YYDEBUG
#if YYDEBUG
     /* We have to keep this `#if YYDEBUG', since we use variables
     /* We have to keep this `#if YYDEBUG', since we use variables
        which are defined only if `YYDEBUG' is set.  */
        which are defined only if `YYDEBUG' is set.  */
      if (yydebug)
      if (yydebug)
        {
        {
          YYFPRINTF (stderr, "Next token is %d (%s",
          YYFPRINTF (stderr, "Next token is %d (%s",
                     yychar, yytname[yychar1]);
                     yychar, yytname[yychar1]);
          /* Give the individual parser a way to print the precise
          /* Give the individual parser a way to print the precise
             meaning of a token, for further debugging info.  */
             meaning of a token, for further debugging info.  */
# ifdef YYPRINT
# ifdef YYPRINT
          YYPRINT (stderr, yychar, yylval);
          YYPRINT (stderr, yychar, yylval);
# endif
# endif
          YYFPRINTF (stderr, ")\n");
          YYFPRINTF (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.  */
  YYDPRINTF ((stderr, "Shifting token %d (%s), ",
  YYDPRINTF ((stderr, "Shifting token %d (%s), ",
              yychar, yytname[yychar1]));
              yychar, yytname[yychar1]));
 
 
  /* 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;
#if YYLSP_NEEDED
#if YYLSP_NEEDED
  *++yylsp = yylloc;
  *++yylsp = yylloc;
#endif
#endif
 
 
  /* Count tokens shifted since error; after three, turn off error
  /* Count tokens shifted since error; after three, turn off error
     status.  */
     status.  */
  if (yyerrstatus)
  if (yyerrstatus)
    yyerrstatus--;
    yyerrstatus--;
 
 
  yystate = yyn;
  yystate = yyn;
  goto yynewstate;
  goto yynewstate;
 
 
 
 
/*-----------------------------------------------------------.
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
`-----------------------------------------------------------*/
yydefault:
yydefault:
  yyn = yydefact[yystate];
  yyn = yydefact[yystate];
  if (yyn == 0)
  if (yyn == 0)
    goto yyerrlab;
    goto yyerrlab;
  goto yyreduce;
  goto yyreduce;
 
 
 
 
/*-----------------------------.
/*-----------------------------.
| yyreduce -- Do a reduction.  |
| yyreduce -- Do a reduction.  |
`-----------------------------*/
`-----------------------------*/
yyreduce:
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];
  yylen = yyr2[yyn];
 
 
  /* If YYLEN is nonzero, implement the default value of the action:
  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ = $1'.
     `$$ = $1'.
 
 
     Otherwise, the following line sets YYVAL to the semantic value of
     Otherwise, the following line sets YYVAL to the semantic value of
     the lookahead token.  This behavior is undocumented and Bison
     the lookahead token.  This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];
  yyval = yyvsp[1-yylen];
 
 
#if YYLSP_NEEDED
#if YYLSP_NEEDED
  /* Similarly for the default location.  Let the user run additional
  /* Similarly for the default location.  Let the user run additional
     commands if for instance locations are ranges.  */
     commands if for instance locations are ranges.  */
  yyloc = yylsp[1-yylen];
  yyloc = yylsp[1-yylen];
  YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
  YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
#endif
#endif
 
 
#if YYDEBUG
#if YYDEBUG
  /* We have to keep this `#if YYDEBUG', since we use variables which
  /* We have to keep this `#if YYDEBUG', since we use variables which
     are defined only if `YYDEBUG' is set.  */
     are defined only if `YYDEBUG' is set.  */
  if (yydebug)
  if (yydebug)
    {
    {
      int yyi;
      int yyi;
 
 
      YYFPRINTF (stderr, "Reducing via rule %d (line %d), ",
      YYFPRINTF (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 (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++)
      for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++)
        YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
        YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
      YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]);
      YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]);
    }
    }
#endif
#endif
 
 
  switch (yyn) {
  switch (yyn) {
 
 
case 1:
case 1:
#line 175 "plural.y"
#line 175 "plural.y"
{
{
            if (yyvsp[0].exp == NULL)
            if (yyvsp[0].exp == NULL)
              YYABORT;
              YYABORT;
            ((struct parse_args *) arg)->res = yyvsp[0].exp;
            ((struct parse_args *) arg)->res = yyvsp[0].exp;
          }
          }
    break;
    break;
case 2:
case 2:
#line 183 "plural.y"
#line 183 "plural.y"
{
{
            yyval.exp = new_exp_3 (qmop, yyvsp[-4].exp, yyvsp[-2].exp, yyvsp[0].exp);
            yyval.exp = new_exp_3 (qmop, yyvsp[-4].exp, yyvsp[-2].exp, yyvsp[0].exp);
          }
          }
    break;
    break;
case 3:
case 3:
#line 187 "plural.y"
#line 187 "plural.y"
{
{
            yyval.exp = new_exp_2 (lor, yyvsp[-2].exp, yyvsp[0].exp);
            yyval.exp = new_exp_2 (lor, yyvsp[-2].exp, yyvsp[0].exp);
          }
          }
    break;
    break;
case 4:
case 4:
#line 191 "plural.y"
#line 191 "plural.y"
{
{
            yyval.exp = new_exp_2 (land, yyvsp[-2].exp, yyvsp[0].exp);
            yyval.exp = new_exp_2 (land, yyvsp[-2].exp, yyvsp[0].exp);
          }
          }
    break;
    break;
case 5:
case 5:
#line 195 "plural.y"
#line 195 "plural.y"
{
{
            yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
            yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
          }
          }
    break;
    break;
case 6:
case 6:
#line 199 "plural.y"
#line 199 "plural.y"
{
{
            yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
            yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
          }
          }
    break;
    break;
case 7:
case 7:
#line 203 "plural.y"
#line 203 "plural.y"
{
{
            yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
            yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
          }
          }
    break;
    break;
case 8:
case 8:
#line 207 "plural.y"
#line 207 "plural.y"
{
{
            yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
            yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp);
          }
          }
    break;
    break;
case 9:
case 9:
#line 211 "plural.y"
#line 211 "plural.y"
{
{
            yyval.exp = new_exp_1 (lnot, yyvsp[0].exp);
            yyval.exp = new_exp_1 (lnot, yyvsp[0].exp);
          }
          }
    break;
    break;
case 10:
case 10:
#line 215 "plural.y"
#line 215 "plural.y"
{
{
            yyval.exp = new_exp_0 (var);
            yyval.exp = new_exp_0 (var);
          }
          }
    break;
    break;
case 11:
case 11:
#line 219 "plural.y"
#line 219 "plural.y"
{
{
            if ((yyval.exp = new_exp_0 (num)) != NULL)
            if ((yyval.exp = new_exp_0 (num)) != NULL)
              yyval.exp->val.num = yyvsp[0].num;
              yyval.exp->val.num = yyvsp[0].num;
          }
          }
    break;
    break;
case 12:
case 12:
#line 224 "plural.y"
#line 224 "plural.y"
{
{
            yyval.exp = yyvsp[-1].exp;
            yyval.exp = yyvsp[-1].exp;
          }
          }
    break;
    break;
}
}
 
 
#line 705 "/usr/local/share/bison/bison.simple"
#line 705 "/usr/local/share/bison/bison.simple"
 
 


  yyvsp -= yylen;
  yyvsp -= yylen;
  yyssp -= yylen;
  yyssp -= yylen;
#if YYLSP_NEEDED
#if YYLSP_NEEDED
  yylsp -= yylen;
  yylsp -= yylen;
#endif
#endif
 
 
#if YYDEBUG
#if YYDEBUG
  if (yydebug)
  if (yydebug)
    {
    {
      short *yyssp1 = yyss - 1;
      short *yyssp1 = yyss - 1;
      YYFPRINTF (stderr, "state stack now");
      YYFPRINTF (stderr, "state stack now");
      while (yyssp1 != yyssp)
      while (yyssp1 != yyssp)
        YYFPRINTF (stderr, " %d", *++yyssp1);
        YYFPRINTF (stderr, " %d", *++yyssp1);
      YYFPRINTF (stderr, "\n");
      YYFPRINTF (stderr, "\n");
    }
    }
#endif
#endif
 
 
  *++yyvsp = yyval;
  *++yyvsp = yyval;
#if YYLSP_NEEDED
#if YYLSP_NEEDED
  *++yylsp = yyloc;
  *++yylsp = yyloc;
#endif
#endif
 
 
  /* Now `shift' the result of the reduction.  Determine what state
  /* Now `shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */
     number reduced by.  */
 
 
  yyn = yyr1[yyn];
  yyn = yyr1[yyn];
 
 
  yystate = yypgoto[yyn - 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 |
`------------------------------------*/
`------------------------------------*/
yyerrlab:
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
  if (!yyerrstatus)
    {
    {
      ++yynerrs;
      ++yynerrs;
 
 
#ifdef YYERROR_VERBOSE
#ifdef YYERROR_VERBOSE
      yyn = yypact[yystate];
      yyn = yypact[yystate];
 
 
      if (yyn > YYFLAG && yyn < YYLAST)
      if (yyn > YYFLAG && yyn < YYLAST)
        {
        {
          YYSIZE_T yysize = 0;
          YYSIZE_T yysize = 0;
          char *yymsg;
          char *yymsg;
          int yyx, yycount;
          int yyx, yycount;
 
 
          yycount = 0;
          yycount = 0;
          /* Start YYX at -YYN if negative to avoid negative indexes in
          /* Start YYX at -YYN if negative to avoid negative indexes in
             YYCHECK.  */
             YYCHECK.  */
          for (yyx = yyn < 0 ? -yyn : 0;
          for (yyx = yyn < 0 ? -yyn : 0;
               yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
               yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
            if (yycheck[yyx + yyn] == yyx)
            if (yycheck[yyx + yyn] == yyx)
              yysize += yystrlen (yytname[yyx]) + 15, yycount++;
              yysize += yystrlen (yytname[yyx]) + 15, yycount++;
          yysize += yystrlen ("parse error, unexpected ") + 1;
          yysize += yystrlen ("parse error, unexpected ") + 1;
          yysize += yystrlen (yytname[YYTRANSLATE (yychar)]);
          yysize += yystrlen (yytname[YYTRANSLATE (yychar)]);
          yymsg = (char *) YYSTACK_ALLOC (yysize);
          yymsg = (char *) YYSTACK_ALLOC (yysize);
          if (yymsg != 0)
          if (yymsg != 0)
            {
            {
              char *yyp = yystpcpy (yymsg, "parse error, unexpected ");
              char *yyp = yystpcpy (yymsg, "parse error, unexpected ");
              yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]);
              yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]);
 
 
              if (yycount < 5)
              if (yycount < 5)
                {
                {
                  yycount = 0;
                  yycount = 0;
                  for (yyx = yyn < 0 ? -yyn : 0;
                  for (yyx = yyn < 0 ? -yyn : 0;
                       yyx < (int) (sizeof (yytname) / sizeof (char *));
                       yyx < (int) (sizeof (yytname) / sizeof (char *));
                       yyx++)
                       yyx++)
                    if (yycheck[yyx + yyn] == yyx)
                    if (yycheck[yyx + yyn] == yyx)
                      {
                      {
                        const char *yyq = ! yycount ? ", expecting " : " or ";
                        const char *yyq = ! yycount ? ", expecting " : " or ";
                        yyp = yystpcpy (yyp, yyq);
                        yyp = yystpcpy (yyp, yyq);
                        yyp = yystpcpy (yyp, yytname[yyx]);
                        yyp = yystpcpy (yyp, yytname[yyx]);
                        yycount++;
                        yycount++;
                      }
                      }
                }
                }
              yyerror (yymsg);
              yyerror (yymsg);
              YYSTACK_FREE (yymsg);
              YYSTACK_FREE (yymsg);
            }
            }
          else
          else
            yyerror ("parse error; also virtual memory exhausted");
            yyerror ("parse error; also virtual memory exhausted");
        }
        }
      else
      else
#endif /* defined (YYERROR_VERBOSE) */
#endif /* defined (YYERROR_VERBOSE) */
        yyerror ("parse error");
        yyerror ("parse error");
    }
    }
  goto yyerrlab1;
  goto yyerrlab1;
 
 
 
 
/*--------------------------------------------------.
/*--------------------------------------------------.
| yyerrlab1 -- error raised explicitly by an action |
| yyerrlab1 -- error raised explicitly by an action |
`--------------------------------------------------*/
`--------------------------------------------------*/
yyerrlab1:
yyerrlab1:
  if (yyerrstatus == 3)
  if (yyerrstatus == 3)
    {
    {
      /* If just tried and failed to reuse lookahead token after an
      /* If just tried and failed to reuse lookahead token after an
         error, discard it.  */
         error, discard it.  */
 
 
      /* return failure if at end of input */
      /* return failure if at end of input */
      if (yychar == YYEOF)
      if (yychar == YYEOF)
        YYABORT;
        YYABORT;
      YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
      YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
                  yychar, yytname[yychar1]));
                  yychar, yytname[yychar1]));
      yychar = YYEMPTY;
      yychar = YYEMPTY;
    }
    }
 
 
  /* Else will try to reuse lookahead token after shifting the error
  /* Else will try to reuse lookahead token after shifting the error
     token.  */
     token.  */
 
 
  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 |
| yyerrdefault -- current state does not do anything special for the |
| error token.                                                       |
| error token.                                                       |
`-------------------------------------------------------------------*/
`-------------------------------------------------------------------*/
yyerrdefault:
yyerrdefault:
#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.  */
 
 
  /* If its default is to accept any token, ok.  Otherwise pop it.  */
  /* If its default is to accept any token, ok.  Otherwise pop it.  */
  yyn = yydefact[yystate];
  yyn = yydefact[yystate];
  if (yyn)
  if (yyn)
    goto yydefault;
    goto yydefault;
#endif
#endif
 
 
 
 
/*---------------------------------------------------------------.
/*---------------------------------------------------------------.
| yyerrpop -- pop the current state because it cannot handle the |
| yyerrpop -- pop the current state because it cannot handle the |
| error token                                                    |
| error token                                                    |
`---------------------------------------------------------------*/
`---------------------------------------------------------------*/
yyerrpop:
yyerrpop:
  if (yyssp == yyss)
  if (yyssp == yyss)
    YYABORT;
    YYABORT;
  yyvsp--;
  yyvsp--;
  yystate = *--yyssp;
  yystate = *--yyssp;
#if YYLSP_NEEDED
#if YYLSP_NEEDED
  yylsp--;
  yylsp--;
#endif
#endif
 
 
#if YYDEBUG
#if YYDEBUG
  if (yydebug)
  if (yydebug)
    {
    {
      short *yyssp1 = yyss - 1;
      short *yyssp1 = yyss - 1;
      YYFPRINTF (stderr, "Error: state stack now");
      YYFPRINTF (stderr, "Error: state stack now");
      while (yyssp1 != yyssp)
      while (yyssp1 != yyssp)
        YYFPRINTF (stderr, " %d", *++yyssp1);
        YYFPRINTF (stderr, " %d", *++yyssp1);
      YYFPRINTF (stderr, "\n");
      YYFPRINTF (stderr, "\n");
    }
    }
#endif
#endif
 
 
/*--------------.
/*--------------.
| yyerrhandle.  |
| yyerrhandle.  |
`--------------*/
`--------------*/
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;
 
 
  YYDPRINTF ((stderr, "Shifting error token, "));
  YYDPRINTF ((stderr, "Shifting error token, "));
 
 
  *++yyvsp = yylval;
  *++yyvsp = yylval;
#if YYLSP_NEEDED
#if YYLSP_NEEDED
  *++yylsp = yylloc;
  *++yylsp = yylloc;
#endif
#endif
 
 
  yystate = yyn;
  yystate = yyn;
  goto yynewstate;
  goto yynewstate;
 
 
 
 
/*-------------------------------------.
/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
`-------------------------------------*/
yyacceptlab:
yyacceptlab:
  yyresult = 0;
  yyresult = 0;
  goto yyreturn;
  goto yyreturn;
 
 
/*-----------------------------------.
/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
`-----------------------------------*/
yyabortlab:
yyabortlab:
  yyresult = 1;
  yyresult = 1;
  goto yyreturn;
  goto yyreturn;
 
 
/*---------------------------------------------.
/*---------------------------------------------.
| yyoverflowab -- parser overflow comes here.  |
| yyoverflowab -- parser overflow comes here.  |
`---------------------------------------------*/
`---------------------------------------------*/
yyoverflowlab:
yyoverflowlab:
  yyerror ("parser stack overflow");
  yyerror ("parser stack overflow");
  yyresult = 2;
  yyresult = 2;
  /* Fall through.  */
  /* Fall through.  */
 
 
yyreturn:
yyreturn:
#ifndef yyoverflow
#ifndef yyoverflow
  if (yyss != yyssa)
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
    YYSTACK_FREE (yyss);
#endif
#endif
  return yyresult;
  return yyresult;
}
}
#line 229 "plural.y"
#line 229 "plural.y"
 
 
 
 
void
void
internal_function
internal_function
FREE_EXPRESSION (exp)
FREE_EXPRESSION (exp)
     struct expression *exp;
     struct expression *exp;
{
{
  if (exp == NULL)
  if (exp == NULL)
    return;
    return;
 
 
  /* Handle the recursive case.  */
  /* Handle the recursive case.  */
  switch (exp->nargs)
  switch (exp->nargs)
    {
    {
    case 3:
    case 3:
      FREE_EXPRESSION (exp->val.args[2]);
      FREE_EXPRESSION (exp->val.args[2]);
      /* FALLTHROUGH */
      /* FALLTHROUGH */
    case 2:
    case 2:
      FREE_EXPRESSION (exp->val.args[1]);
      FREE_EXPRESSION (exp->val.args[1]);
      /* FALLTHROUGH */
      /* FALLTHROUGH */
    case 1:
    case 1:
      FREE_EXPRESSION (exp->val.args[0]);
      FREE_EXPRESSION (exp->val.args[0]);
      /* FALLTHROUGH */
      /* FALLTHROUGH */
    default:
    default:
      break;
      break;
    }
    }
 
 
  free (exp);
  free (exp);
}
}
 
 
 
 
static int
static int
yylex (lval, pexp)
yylex (lval, pexp)
     YYSTYPE *lval;
     YYSTYPE *lval;
     const char **pexp;
     const char **pexp;
{
{
  const char *exp = *pexp;
  const char *exp = *pexp;
  int result;
  int result;
 
 
  while (1)
  while (1)
    {
    {
      if (exp[0] == '\0')
      if (exp[0] == '\0')
        {
        {
          *pexp = exp;
          *pexp = exp;
          return YYEOF;
          return YYEOF;
        }
        }
 
 
      if (exp[0] != ' ' && exp[0] != '\t')
      if (exp[0] != ' ' && exp[0] != '\t')
        break;
        break;
 
 
      ++exp;
      ++exp;
    }
    }
 
 
  result = *exp++;
  result = *exp++;
  switch (result)
  switch (result)
    {
    {
    case '0': case '1': case '2': case '3': case '4':
    case '0': case '1': case '2': case '3': case '4':
    case '5': case '6': case '7': case '8': case '9':
    case '5': case '6': case '7': case '8': case '9':
      {
      {
        unsigned long int n = result - '0';
        unsigned long int n = result - '0';
        while (exp[0] >= '0' && exp[0] <= '9')
        while (exp[0] >= '0' && exp[0] <= '9')
          {
          {
            n *= 10;
            n *= 10;
            n += exp[0] - '0';
            n += exp[0] - '0';
            ++exp;
            ++exp;
          }
          }
        lval->num = n;
        lval->num = n;
        result = NUMBER;
        result = NUMBER;
      }
      }
      break;
      break;
 
 
    case '=':
    case '=':
      if (exp[0] == '=')
      if (exp[0] == '=')
        {
        {
          ++exp;
          ++exp;
          lval->op = equal;
          lval->op = equal;
          result = EQUOP2;
          result = EQUOP2;
        }
        }
      else
      else
        result = YYERRCODE;
        result = YYERRCODE;
      break;
      break;
 
 
    case '!':
    case '!':
      if (exp[0] == '=')
      if (exp[0] == '=')
        {
        {
          ++exp;
          ++exp;
          lval->op = not_equal;
          lval->op = not_equal;
          result = EQUOP2;
          result = EQUOP2;
        }
        }
      break;
      break;
 
 
    case '&':
    case '&':
    case '|':
    case '|':
      if (exp[0] == result)
      if (exp[0] == result)
        ++exp;
        ++exp;
      else
      else
        result = YYERRCODE;
        result = YYERRCODE;
      break;
      break;
 
 
    case '<':
    case '<':
      if (exp[0] == '=')
      if (exp[0] == '=')
        {
        {
          ++exp;
          ++exp;
          lval->op = less_or_equal;
          lval->op = less_or_equal;
        }
        }
      else
      else
        lval->op = less_than;
        lval->op = less_than;
      result = CMPOP2;
      result = CMPOP2;
      break;
      break;
 
 
    case '>':
    case '>':
      if (exp[0] == '=')
      if (exp[0] == '=')
        {
        {
          ++exp;
          ++exp;
          lval->op = greater_or_equal;
          lval->op = greater_or_equal;
        }
        }
      else
      else
        lval->op = greater_than;
        lval->op = greater_than;
      result = CMPOP2;
      result = CMPOP2;
      break;
      break;
 
 
    case '*':
    case '*':
      lval->op = mult;
      lval->op = mult;
      result = MULOP2;
      result = MULOP2;
      break;
      break;
 
 
    case '/':
    case '/':
      lval->op = divide;
      lval->op = divide;
      result = MULOP2;
      result = MULOP2;
      break;
      break;
 
 
    case '%':
    case '%':
      lval->op = module;
      lval->op = module;
      result = MULOP2;
      result = MULOP2;
      break;
      break;
 
 
    case '+':
    case '+':
      lval->op = plus;
      lval->op = plus;
      result = ADDOP2;
      result = ADDOP2;
      break;
      break;
 
 
    case '-':
    case '-':
      lval->op = minus;
      lval->op = minus;
      result = ADDOP2;
      result = ADDOP2;
      break;
      break;
 
 
    case 'n':
    case 'n':
    case '?':
    case '?':
    case ':':
    case ':':
    case '(':
    case '(':
    case ')':
    case ')':
      /* Nothing, just return the character.  */
      /* Nothing, just return the character.  */
      break;
      break;
 
 
    case ';':
    case ';':
    case '\n':
    case '\n':
    case '\0':
    case '\0':
      /* Be safe and let the user call this function again.  */
      /* Be safe and let the user call this function again.  */
      --exp;
      --exp;
      result = YYEOF;
      result = YYEOF;
      break;
      break;
 
 
    default:
    default:
      result = YYERRCODE;
      result = YYERRCODE;
#if YYDEBUG != 0
#if YYDEBUG != 0
      --exp;
      --exp;
#endif
#endif
      break;
      break;
    }
    }
 
 
  *pexp = exp;
  *pexp = exp;
 
 
  return result;
  return result;
}
}
 
 
 
 
static void
static void
yyerror (str)
yyerror (str)
     const char *str;
     const char *str;
{
{
  /* Do nothing.  We don't print error messages here.  */
  /* Do nothing.  We don't print error messages here.  */
}
}
 
 

powered by: WebSVN 2.1.0

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