/* A Bison parser, made by GNU Bison 2.5.  */

/* Bison implementation for Yacc-like parsers in C
   
      Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
   
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.
   
   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output.  */
#define YYBISON 1

/* Bison version.  */
#define YYBISON_VERSION "2.5"

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 1

/* Push parsers.  */
#define YYPUSH 0

/* Pull parsers.  */
#define YYPULL 1

/* Using locations.  */
#define YYLSP_NEEDED 0

/* Substitute the variable and function names.  */
#define yyparse         genbankparse
#define yylex           genbanklex
#define yyerror         genbankerror
#define yylval          genbanklval
#define yychar          genbankchar
#define yydebug         genbankdebug
#define yynerrs         genbanknerrs


/* Copy the first part of user declarations.  */

/* Line 268 of yacc.c  */
#line 3 "sequence/genbanky.y"

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#ifdef STDC_HEADERS
# include <stdlib.h>
#endif

#include "sequence.h"
#include "sequence/parse.h"
#include "sequence/genbanky.h"

void genbankset_in(FILE *);
int genbanklex(YYSTYPE *);
int genbanklex_destroy(void);

static void yyerror(sequence_t *, const char *);

int genbanky_check(FILE *);
sequence_t *genbanky_parse(FILE *);


/* Line 268 of yacc.c  */
#line 103 "sequence/genbanky.c"

/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif

/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif

/* Enabling the token table.  */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif


/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     EOL = 258,
     ERR = 259,
     INT = 260,
     NUL = 261,
     NUM = 262,
     NXT = 263,
     SEP = 264,
     SPC = 265,
     TER = 266,
     TER2 = 267,
     TXT = 268,
     LO = 269,
     LONAM = 270,
     DE = 271,
     DETXT = 272,
     DA = 273,
     AC = 274,
     ACNUM = 275,
     VE = 276,
     GI = 277,
     VENUM = 278,
     GINUM = 279,
     PJ = 280,
     LN = 281,
     DB = 282,
     KE = 283,
     KEWRD = 284,
     KEWR2 = 285,
     SE = 286,
     SO = 287,
     OG = 288,
     RE = 289,
     RA = 290,
     RC = 291,
     RT = 292,
     RJ = 293,
     RM = 294,
     RP = 295,
     RR = 296,
     CO = 297,
     PR = 298,
     FE = 299,
     BC = 300,
     WE = 301,
     PI = 302,
     LE = 303,
     OR = 304,
     WGS = 305,
     SCA = 306,
     CON = 307,
     SEQ = 308,
     SEQBAS = 309,
     END = 310
   };
#endif
/* Tokens.  */
#define EOL 258
#define ERR 259
#define INT 260
#define NUL 261
#define NUM 262
#define NXT 263
#define SEP 264
#define SPC 265
#define TER 266
#define TER2 267
#define TXT 268
#define LO 269
#define LONAM 270
#define DE 271
#define DETXT 272
#define DA 273
#define AC 274
#define ACNUM 275
#define VE 276
#define GI 277
#define VENUM 278
#define GINUM 279
#define PJ 280
#define LN 281
#define DB 282
#define KE 283
#define KEWRD 284
#define KEWR2 285
#define SE 286
#define SO 287
#define OG 288
#define RE 289
#define RA 290
#define RC 291
#define RT 292
#define RJ 293
#define RM 294
#define RP 295
#define RR 296
#define CO 297
#define PR 298
#define FE 299
#define BC 300
#define WE 301
#define PI 302
#define LE 303
#define OR 304
#define WGS 305
#define SCA 306
#define CON 307
#define SEQ 308
#define SEQBAS 309
#define END 310




#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{

/* Line 293 of yacc.c  */
#line 29 "sequence/genbanky.y"
 char *str; int num; 


/* Line 293 of yacc.c  */
#line 253 "sequence/genbanky.c"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif


/* Copy the second part of user declarations.  */


/* Line 343 of yacc.c  */
#line 265 "sequence/genbanky.c"

#ifdef short
# undef short
#endif

#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif

#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif

#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif

#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif

#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned int
# endif
#endif

#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(msgid) dgettext ("bison-runtime", msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(msgid) msgid
# endif
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif

/* Identity function, used to suppress warnings about constant conditions.  */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static int
YYID (int yyi)
#else
static int
YYID (yyi)
    int yyi;
#endif
{
  return yyi;
}
#endif

#if ! defined yyoverflow || YYERROR_VERBOSE

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#     ifndef EXIT_SUCCESS
#      define EXIT_SUCCESS 0
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined EXIT_SUCCESS \
       && ! ((defined YYMALLOC || defined malloc) \
	     && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef EXIT_SUCCESS
#    define EXIT_SUCCESS 0
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */


#if (! defined yyoverflow \
     && (! defined __cplusplus \
	 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  yytype_int16 yyss_alloc;
  YYSTYPE yyvs_alloc;
};

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

# define YYCOPY_NEEDED 1

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack_alloc, Stack)				\
    do									\
      {									\
	YYSIZE_T yynewbytes;						\
	YYCOPY (&yyptr->Stack_alloc, Stack, yysize);			\
	Stack = &yyptr->Stack_alloc;					\
	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
	yyptr += yynewbytes / sizeof (*yyptr);				\
      }									\
    while (YYID (0))

#endif

#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
	  YYSIZE_T yyi;				\
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];		\
	}					\
      while (YYID (0))
#  endif
# endif
#endif /* !YYCOPY_NEEDED */

/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  10
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   300

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  56
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  148
/* YYNRULES -- Number of rules.  */
#define YYNRULES  240
/* YYNRULES -- Number of states.  */
#define YYNSTATES  377

/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   310

#define YYTRANSLATE(YYX)						\
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const yytype_uint8 yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const yytype_uint16 yyprhs[] =
{
       0,     0,     3,     7,    11,    15,    17,    30,    42,    55,
      57,    59,    61,    63,    65,    67,    69,    74,    77,    79,
      80,    84,    86,    88,    89,    92,    93,    98,   102,   106,
     110,   115,   118,   120,   122,   126,   129,   131,   134,   135,
     138,   139,   143,   147,   151,   153,   155,   156,   161,   165,
     167,   171,   172,   175,   177,   180,   182,   184,   186,   190,
     193,   195,   198,   201,   202,   206,   210,   213,   215,   218,
     221,   222,   226,   230,   233,   235,   239,   241,   242,   245,
     246,   251,   255,   260,   264,   269,   273,   278,   282,   286,
     288,   290,   292,   293,   297,   300,   302,   305,   307,   309,
     310,   313,   316,   317,   321,   325,   328,   330,   333,   336,
     337,   341,   345,   348,   350,   353,   354,   363,   366,   369,
     370,   374,   378,   381,   383,   386,   387,   390,   391,   395,
     399,   402,   404,   407,   408,   411,   412,   416,   420,   423,
     425,   428,   429,   432,   433,   437,   441,   444,   446,   449,
     450,   453,   454,   458,   462,   465,   467,   469,   470,   474,
     477,   479,   481,   482,   486,   489,   491,   494,   495,   498,
     499,   503,   507,   510,   512,   515,   516,   519,   520,   524,
     528,   531,   532,   535,   536,   539,   540,   544,   548,   551,
     553,   556,   557,   560,   561,   565,   569,   572,   574,   576,
     577,   581,   584,   586,   588,   592,   594,   595,   599,   601,
     605,   608,   610,   613,   615,   617,   621,   624,   625,   628,
     630,   636,   640,   642,   645,   648,   649,   653,   657,   660,
     662,   665,   667,   671,   674,   676,   679,   681,   685,   688,
     690
};

/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
static const yytype_int16 yyrhs[] =
{
      57,     0,    -1,    58,    61,   203,    -1,    59,    62,   203,
      -1,    60,    63,   203,    -1,     6,    -1,    64,    67,    77,
      82,   100,   107,   110,   121,   159,   164,   169,   174,    -1,
      64,    67,    74,    77,    82,   100,   110,   159,   177,   179,
     181,    -1,    64,    67,    77,    82,    86,   100,   107,   110,
     121,   159,   164,   169,    -1,   183,    -1,   184,    -1,   183,
      -1,   183,    -1,   184,    -1,   185,    -1,    65,    -1,    14,
      15,    66,     3,    -1,    66,    13,    -1,    10,    -1,    -1,
      70,    68,    72,    -1,    70,    -1,    69,    -1,    -1,    68,
      71,    -1,    -1,    16,    73,    11,     3,    -1,    16,    11,
       3,    -1,    16,    73,     3,    -1,     8,    73,     3,    -1,
       8,    73,    11,     3,    -1,    73,    17,    -1,    17,    -1,
      75,    -1,    18,    76,     3,    -1,    76,    13,    -1,    13,
      -1,    79,    78,    -1,    -1,    78,    80,    -1,    -1,    19,
      81,     3,    -1,     8,    81,     3,    -1,    81,     9,    20,
      -1,    20,    -1,    83,    -1,    -1,    21,    84,    85,     3,
      -1,    20,     9,    23,    -1,    20,    -1,    10,    22,    24,
      -1,    -1,    87,    90,    -1,    87,    -1,    90,    95,    -1,
      90,    -1,    95,    -1,    88,    -1,    25,    89,     3,    -1,
      89,    13,    -1,    13,    -1,    92,    91,    -1,    91,    93,
      -1,    -1,    26,    94,     3,    -1,     8,    94,     3,    -1,
      94,    13,    -1,    13,    -1,    97,    96,    -1,    96,    98,
      -1,    -1,    27,    99,     3,    -1,     8,    99,     3,    -1,
      99,    13,    -1,    13,    -1,   103,   101,   105,    -1,   102,
      -1,    -1,   101,   104,    -1,    -1,    28,   106,    11,     3,
      -1,    28,    11,     3,    -1,    28,   106,    12,     3,    -1,
      28,   106,     3,    -1,     8,   106,    12,     3,    -1,     8,
     106,     3,    -1,     8,   106,    11,     3,    -1,   106,     9,
      29,    -1,   106,     9,    30,    -1,    29,    -1,    30,    -1,
     108,    -1,    -1,    31,   109,     3,    -1,   109,    13,    -1,
      13,    -1,   111,   116,    -1,   111,    -1,   116,    -1,    -1,
     113,   112,    -1,   112,   114,    -1,    -1,    32,   115,     3,
      -1,     8,   115,     3,    -1,   115,    13,    -1,    13,    -1,
     118,   117,    -1,   117,   119,    -1,    -1,    33,   120,     3,
      -1,     8,   120,     3,    -1,   120,    13,    -1,    13,    -1,
     121,   122,    -1,    -1,   123,   128,   133,   138,   143,   148,
     151,   154,    -1,   125,   124,    -1,   124,   126,    -1,    -1,
      34,   127,     3,    -1,     8,   127,     3,    -1,   127,    13,
      -1,    13,    -1,   130,   129,    -1,    -1,   129,   131,    -1,
      -1,    35,   132,     3,    -1,     8,   132,     3,    -1,   132,
      13,    -1,    13,    -1,   135,   134,    -1,    -1,   134,   136,
      -1,    -1,    36,   137,     3,    -1,     8,   137,     3,    -1,
     137,    13,    -1,    13,    -1,   140,   139,    -1,    -1,   139,
     141,    -1,    -1,    37,   142,     3,    -1,     8,   142,     3,
      -1,   142,    13,    -1,    13,    -1,   145,   144,    -1,    -1,
     144,   146,    -1,    -1,    38,   147,     3,    -1,     8,   147,
       3,    -1,   147,    13,    -1,    13,    -1,   149,    -1,    -1,
      39,   150,     3,    -1,   150,    13,    -1,    13,    -1,   152,
      -1,    -1,    40,   153,     3,    -1,   153,    13,    -1,    13,
      -1,   156,   155,    -1,    -1,   155,   157,    -1,    -1,    41,
     158,     3,    -1,     8,   158,     3,    -1,   158,    13,    -1,
      13,    -1,   161,   160,    -1,    -1,   160,   162,    -1,    -1,
      42,   163,     3,    -1,     8,   163,     3,    -1,   163,    13,
      -1,    -1,   166,   165,    -1,    -1,   165,   167,    -1,    -1,
      43,   168,     3,    -1,     8,   168,     3,    -1,   168,    13,
      -1,    13,    -1,   171,   170,    -1,    -1,   170,   172,    -1,
      -1,    44,   173,     3,    -1,     8,   173,     3,    -1,   173,
      13,    -1,    13,    -1,   175,    -1,    -1,    45,   176,     3,
      -1,   176,    13,    -1,    13,    -1,   178,    -1,    46,     7,
       3,    -1,   180,    -1,    -1,    47,     7,     3,    -1,   182,
      -1,    48,     5,     3,    -1,   186,   189,    -1,   192,    -1,
     197,   200,    -1,   197,    -1,   187,    -1,    49,   188,     3,
      -1,   188,    13,    -1,    -1,   189,   190,    -1,   190,    -1,
      53,     5,    10,   191,     3,    -1,   191,    10,    54,    -1,
      54,    -1,   194,   193,    -1,   193,   195,    -1,    -1,    52,
     196,     3,    -1,     8,   196,     3,    -1,   196,    13,    -1,
      13,    -1,   197,   198,    -1,   198,    -1,    50,   199,     3,
      -1,   199,    13,    -1,    13,    -1,   200,   201,    -1,   201,
      -1,    51,   202,     3,    -1,   202,    13,    -1,    13,    -1,
      55,     3,    -1
};

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,    73,    73,    74,    75,    76,    79,    80,    81,    83,
      83,    84,    85,    85,    85,    87,    88,    90,    90,    90,
      92,    92,    92,    92,    93,    93,    94,    94,    95,    96,
      97,    98,    99,   102,   103,   104,   104,   106,   106,   107,
     107,   108,   109,   110,   111,   114,   114,   115,   116,   117,
     119,   120,   123,   123,   123,   123,   123,   125,   126,   127,
     127,   129,   130,   130,   131,   132,   133,   133,   135,   136,
     136,   137,   138,   139,   139,   141,   141,   141,   142,   142,
     143,   143,   144,   144,   145,   145,   146,   147,   148,   149,
     150,   153,   153,   154,   155,   155,   157,   157,   157,   157,
     159,   160,   160,   161,   162,   163,   163,   165,   166,   166,
     167,   168,   169,   169,   171,   171,   172,   174,   175,   175,
     176,   177,   178,   178,   180,   180,   181,   181,   182,   183,
     184,   184,   186,   186,   187,   187,   188,   189,   190,   190,
     192,   192,   193,   193,   194,   195,   196,   196,   198,   198,
     199,   199,   200,   201,   202,   202,   204,   204,   205,   206,
     206,   208,   208,   209,   210,   210,   212,   212,   213,   213,
     214,   215,   216,   216,   218,   218,   219,   219,   220,   221,
     222,   222,   224,   224,   225,   225,   226,   227,   228,   228,
     230,   230,   231,   231,   232,   233,   234,   234,   236,   236,
     237,   238,   238,   240,   241,   243,   243,   244,   246,   247,
     249,   250,   251,   251,   253,   254,   255,   255,   257,   257,
     258,   259,   260,   263,   264,   264,   265,   266,   267,   267,
     269,   269,   270,   271,   271,   273,   273,   274,   275,   275,
     277
};
#endif

#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "EOL", "ERR", "INT", "NUL", "NUM", "NXT",
  "SEP", "SPC", "TER", "TER2", "TXT", "LO", "LONAM", "DE", "DETXT", "DA",
  "AC", "ACNUM", "VE", "GI", "VENUM", "GINUM", "PJ", "LN", "DB", "KE",
  "KEWRD", "KEWR2", "SE", "SO", "OG", "RE", "RA", "RC", "RT", "RJ", "RM",
  "RP", "RR", "CO", "PR", "FE", "BC", "WE", "PI", "LE", "OR", "WGS", "SCA",
  "CON", "SEQ", "SEQBAS", "END", "$accept", "genbank", "gbannots",
  "gpannots", "rfannots", "gbsequence", "gpsequence", "rfsequence",
  "locus", "loline", "lotxt", "defs", "delines", "deline", "deline1",
  "deline2", "deline3", "detxt", "date", "daline", "datxt", "access",
  "aclines", "acline1", "acline2", "aclist", "vers", "veline", "vetxt",
  "gitxt", "rfsrc", "proj", "pjline", "pjtxt", "dblnk", "lnlines",
  "lnline1", "lnline2", "lntxt", "dbsrc", "dblines", "dbline1", "dbline2",
  "dbtxt", "kwrds", "kelines", "keline", "keline1", "keline2", "keline3",
  "kelist", "segmt", "seline", "setxt", "orga", "orgsou", "solines",
  "soline1", "soline2", "sotxt", "orggan", "oglines", "ogline1", "ogline2",
  "ogtxt", "refs", "refent", "refnum", "relines", "reline1", "reline2",
  "retxt", "refaut", "ralines", "raline1", "raline2", "ratxt", "refcon",
  "rclines", "rcline1", "rcline2", "rctxt", "reftit", "rtlines", "rtline1",
  "rtline2", "rttxt", "refjou", "rjlines", "rjline1", "rjline2", "rjtxt",
  "refmed", "rmline", "rmtxt", "refpub", "rpline", "rptxt", "refrem",
  "rrlines", "rrline1", "rrline2", "rrtxt", "comm", "colines", "coline1",
  "coline2", "cotxt", "prim", "prlines", "prline1", "prline2", "prtxt",
  "feats", "felines", "feline1", "feline2", "fetxt", "bcount", "bcline",
  "bctxt", "weight", "weline", "piso", "piline", "length", "leline",
  "sequence", "contig", "shotgun", "seqhead", "orline", "ortxt", "seqdata",
  "seqline", "seqlist", "seqcont", "conlines", "conline1", "conline2",
  "contxt", "seqwgs", "wgsline", "wgstxt", "seqsca", "scaline", "scatxt",
  "end", 0
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const yytype_uint16 yytoknum[] =
{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     305,   306,   307,   308,   309,   310
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const yytype_uint8 yyr1[] =
{
       0,    56,    57,    57,    57,    57,    58,    59,    60,    61,
      61,    62,    63,    63,    63,    64,    65,    66,    66,    66,
      67,    67,    67,    67,    68,    68,    69,    69,    70,    71,
      72,    73,    73,    74,    75,    76,    76,    77,    77,    78,
      78,    79,    80,    81,    81,    82,    82,    83,    84,    84,
      85,    85,    86,    86,    86,    86,    86,    87,    88,    89,
      89,    90,    91,    91,    92,    93,    94,    94,    95,    96,
      96,    97,    98,    99,    99,   100,   100,   100,   101,   101,
     102,   102,   103,   103,   104,   104,   105,   106,   106,   106,
     106,   107,   107,   108,   109,   109,   110,   110,   110,   110,
     111,   112,   112,   113,   114,   115,   115,   116,   117,   117,
     118,   119,   120,   120,   121,   121,   122,   123,   124,   124,
     125,   126,   127,   127,   128,   128,   129,   129,   130,   131,
     132,   132,   133,   133,   134,   134,   135,   136,   137,   137,
     138,   138,   139,   139,   140,   141,   142,   142,   143,   143,
     144,   144,   145,   146,   147,   147,   148,   148,   149,   150,
     150,   151,   151,   152,   153,   153,   154,   154,   155,   155,
     156,   157,   158,   158,   159,   159,   160,   160,   161,   162,
     163,   163,   164,   164,   165,   165,   166,   167,   168,   168,
     169,   169,   170,   170,   171,   172,   173,   173,   174,   174,
     175,   176,   176,   177,   178,   179,   179,   180,   181,   182,
     183,   184,   185,   185,   186,   187,   188,   188,   189,   189,
     190,   191,   191,   192,   193,   193,   194,   195,   196,   196,
     197,   197,   198,   199,   199,   200,   200,   201,   202,   202,
     203
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const yytype_uint8 yyr2[] =
{
       0,     2,     3,     3,     3,     1,    12,    11,    12,     1,
       1,     1,     1,     1,     1,     1,     4,     2,     1,     0,
       3,     1,     1,     0,     2,     0,     4,     3,     3,     3,
       4,     2,     1,     1,     3,     2,     1,     2,     0,     2,
       0,     3,     3,     3,     1,     1,     0,     4,     3,     1,
       3,     0,     2,     1,     2,     1,     1,     1,     3,     2,
       1,     2,     2,     0,     3,     3,     2,     1,     2,     2,
       0,     3,     3,     2,     1,     3,     1,     0,     2,     0,
       4,     3,     4,     3,     4,     3,     4,     3,     3,     1,
       1,     1,     0,     3,     2,     1,     2,     1,     1,     0,
       2,     2,     0,     3,     3,     2,     1,     2,     2,     0,
       3,     3,     2,     1,     2,     0,     8,     2,     2,     0,
       3,     3,     2,     1,     2,     0,     2,     0,     3,     3,
       2,     1,     2,     0,     2,     0,     3,     3,     2,     1,
       2,     0,     2,     0,     3,     3,     2,     1,     2,     0,
       2,     0,     3,     3,     2,     1,     1,     0,     3,     2,
       1,     1,     0,     3,     2,     1,     2,     0,     2,     0,
       3,     3,     2,     1,     2,     0,     2,     0,     3,     3,
       2,     0,     2,     0,     2,     0,     3,     3,     2,     1,
       2,     0,     2,     0,     3,     3,     2,     1,     1,     0,
       3,     2,     1,     1,     3,     1,     0,     3,     1,     3,
       2,     1,     2,     1,     1,     3,     2,     0,     2,     1,
       5,     3,     1,     2,     2,     0,     3,     3,     2,     1,
       2,     1,     3,     2,     1,     2,     1,     3,     2,     1,
       2
};

/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
   Performed when YYTABLE doesn't specify something else to do.  Zero
   means the default is an error.  */
static const yytype_uint8 yydefact[] =
{
       0,     5,     0,     0,     0,     0,     0,    23,    15,    19,
       1,   217,     0,     0,     9,    10,     0,   214,   211,   225,
       0,    11,     0,     0,    12,    13,    14,   213,   231,     0,
      38,    22,    21,    18,     0,     0,   229,     0,     0,     2,
       0,   210,   219,   223,     3,   234,     0,     4,     0,   230,
     212,   236,     0,    32,     0,     0,     0,    38,    33,    46,
      40,     0,    16,    17,   215,   216,   226,   228,   240,     0,
     218,     0,   224,   232,   233,   239,     0,   235,    27,    28,
       0,    31,    36,     0,    44,     0,    46,     0,    77,    45,
      37,     0,    24,    20,     0,     0,   237,   238,    26,    34,
      35,    41,     0,    77,    49,    51,     0,     0,     0,     0,
      77,    53,    57,    55,    63,    56,    70,    92,    76,    79,
       0,    39,     0,   222,     0,   227,    43,    99,     0,     0,
       0,    60,     0,    67,     0,    74,     0,     0,    89,    90,
       0,    92,    52,    54,    61,    68,     0,    99,    91,     0,
       0,    29,     0,   220,     0,     0,     0,   175,    97,   102,
      98,   109,    48,     0,    47,    58,    59,    64,    66,    71,
      73,    81,    83,     0,     0,     0,    99,     0,    62,     0,
      69,    95,     0,   115,     0,    78,    75,    42,    30,   221,
     106,     0,   113,     0,   181,     0,   177,    96,   100,   107,
      50,    87,    88,    80,    82,   115,     0,     0,    93,    94,
     175,     0,   103,   105,   110,   112,     0,     0,   206,   203,
     174,     0,   101,     0,   108,   175,    65,    72,     0,   114,
     125,   119,   183,    85,     0,     0,   178,   180,     0,     0,
       0,   205,   181,   176,     0,     0,   183,   123,     0,     0,
     133,   127,   117,     0,   191,   185,    86,    84,   204,     0,
       0,     7,   208,     0,   104,   111,   191,   120,   122,   131,
       0,     0,   141,   135,   124,     0,   118,   189,     0,     0,
     199,   193,   182,   207,     0,   179,     8,   128,   130,   139,
       0,     0,   149,   143,   132,     0,   126,     0,   186,   188,
     197,     0,     0,     6,   198,   190,     0,   184,   209,   136,
     138,   147,     0,     0,   157,   151,   140,     0,   134,     0,
     121,   194,   196,   202,     0,     0,   192,     0,   144,   146,
     155,     0,     0,   162,   156,   148,     0,   142,     0,   129,
     200,   201,     0,   187,   152,   154,   160,     0,     0,   167,
     161,     0,   150,     0,   137,   195,   158,   159,   165,     0,
       0,   116,   169,     0,   145,   163,   164,   173,     0,   166,
     153,   170,   172,     0,   168,     0,   171
};

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,     3,     4,     5,     6,    13,    20,    23,     7,     8,
      34,    30,    61,    31,    32,    92,    93,    54,    57,    58,
      83,    59,    90,    60,   121,    85,    88,    89,   105,   130,
     110,   111,   112,   132,   113,   144,   114,   178,   134,   115,
     145,   116,   180,   136,   117,   149,   118,   119,   185,   186,
     140,   147,   148,   182,   157,   158,   198,   159,   222,   191,
     160,   199,   161,   224,   193,   210,   229,   230,   252,   231,
     276,   248,   250,   274,   251,   296,   270,   272,   294,   273,
     318,   290,   292,   316,   293,   337,   312,   314,   335,   315,
     352,   331,   333,   334,   347,   349,   350,   359,   361,   369,
     362,   374,   368,   195,   220,   196,   243,   216,   254,   282,
     255,   307,   278,   280,   305,   281,   326,   301,   303,   304,
     324,   218,   219,   240,   241,   261,   262,    14,    15,    26,
      16,    17,    35,    41,    42,   124,    18,    43,    19,    72,
      37,    27,    28,    46,    50,    51,    76,    39
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -209
static const yytype_int16 yypact[] =
{
      85,  -209,    -5,    88,    81,    41,    77,    98,  -209,   101,
    -209,  -209,   107,    46,  -209,  -209,    86,  -209,  -209,  -209,
      46,  -209,   121,    46,  -209,  -209,  -209,   -42,  -209,    -6,
     113,  -209,   136,  -209,     0,     3,  -209,    11,   115,  -209,
     140,    86,  -209,   138,  -209,  -209,    19,  -209,   134,  -209,
      97,  -209,   146,  -209,     1,   139,   130,   132,  -209,   133,
    -209,   145,  -209,  -209,  -209,  -209,  -209,  -209,  -209,   147,
    -209,   107,  -209,  -209,  -209,  -209,    20,  -209,  -209,  -209,
     152,  -209,  -209,    22,  -209,   106,   133,   141,    96,  -209,
     148,   142,  -209,  -209,   104,    23,  -209,  -209,  -209,  -209,
    -209,  -209,   143,   144,   151,   154,   149,   153,   155,   -10,
     144,   150,  -209,   156,  -209,  -209,  -209,   157,  -209,  -209,
     130,  -209,     4,  -209,   102,  -209,  -209,   103,   158,   160,
     162,  -209,    24,  -209,    25,  -209,    27,   164,  -209,  -209,
      91,   157,  -209,  -209,   161,   163,   165,   103,  -209,   166,
     110,  -209,   167,  -209,   119,   171,   172,   135,   159,  -209,
    -209,  -209,  -209,   169,  -209,  -209,  -209,  -209,  -209,  -209,
    -209,  -209,  -209,   108,   176,   177,   103,   153,  -209,   155,
    -209,  -209,    28,  -209,   111,  -209,  -209,  -209,  -209,  -209,
    -209,    31,  -209,    36,  -209,   129,  -209,  -209,   178,   179,
    -209,  -209,  -209,  -209,  -209,  -209,    39,    40,  -209,  -209,
      74,    95,  -209,  -209,  -209,  -209,    42,   182,   168,  -209,
     183,   171,  -209,   172,  -209,    74,  -209,  -209,   181,  -209,
     170,  -209,   173,  -209,   187,   192,  -209,  -209,   193,   190,
     174,  -209,  -209,  -209,    43,    44,   173,  -209,    45,   185,
     175,  -209,   191,   188,   180,  -209,  -209,  -209,  -209,   197,
     198,  -209,  -209,    47,  -209,  -209,   180,  -209,  -209,  -209,
      48,   189,   184,  -209,   196,   181,  -209,  -209,    51,   194,
     186,  -209,   200,  -209,   203,  -209,  -209,  -209,  -209,  -209,
      56,   199,   195,  -209,   201,   185,  -209,    59,  -209,  -209,
    -209,    60,   204,  -209,  -209,   202,   188,  -209,  -209,  -209,
    -209,  -209,    62,   205,   206,  -209,   211,   189,  -209,    63,
    -209,  -209,  -209,  -209,    64,   194,  -209,    65,  -209,  -209,
    -209,    67,   207,   208,  -209,   215,   199,  -209,    68,  -209,
    -209,  -209,    71,  -209,  -209,  -209,  -209,    76,   212,   209,
    -209,   205,  -209,    79,  -209,  -209,  -209,  -209,  -209,    80,
     213,  -209,  -209,    82,  -209,  -209,  -209,  -209,    83,   219,
    -209,  -209,  -209,   213,  -209,    84,  -209
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -209,  -209,  -209,  -209,  -209,  -209,  -209,  -209,  -209,  -209,
    -209,  -209,  -209,  -209,  -209,  -209,  -209,   122,  -209,  -209,
    -209,   210,  -209,  -209,  -209,    94,   214,  -209,  -209,  -209,
    -209,  -209,  -209,  -209,   117,  -209,  -209,  -209,    52,   123,
    -209,  -209,  -209,    53,     7,  -209,  -209,  -209,  -209,  -209,
      50,    89,  -209,  -209,  -147,  -209,  -209,  -209,  -209,    14,
      93,  -209,  -209,  -209,    15,    32,  -209,  -209,  -209,  -209,
    -209,   -36,  -209,  -209,  -209,  -209,   -55,  -209,  -209,  -209,
    -209,   -76,  -209,  -209,  -209,  -209,   -94,  -209,  -209,  -209,
    -209,  -108,  -209,  -209,  -209,  -209,  -209,  -209,  -209,  -209,
    -209,  -209,  -129,  -208,  -209,  -209,  -209,     5,     6,  -209,
    -209,  -209,   -60,   -17,  -209,  -209,  -209,   -72,  -209,  -209,
    -209,  -209,  -209,  -209,  -209,  -209,  -209,   137,   248,  -209,
    -209,  -209,  -209,  -209,   216,  -209,  -209,  -209,  -209,  -209,
     217,  -209,   228,  -209,  -209,   218,  -209,   105
};

/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -26
static const yytype_int16 yytable[] =
{
     183,   137,   232,    62,    79,    52,    64,   151,    22,    48,
       9,    53,    80,    63,    66,   152,    65,   246,    81,   138,
     139,    81,    73,    96,    67,    99,   125,   165,   167,   205,
     169,   208,    74,    97,   212,   100,    67,   166,   168,   214,
     170,   209,   226,   227,   213,   236,   264,   265,   267,   215,
     285,   287,   168,   170,   298,   237,   213,   215,   268,   309,
     237,   288,   320,   321,   299,   328,   339,   340,   343,   310,
     344,   354,   268,   322,   355,   329,   288,   341,   299,   356,
     345,   310,   364,   365,   322,   370,   371,   376,    10,   357,
      11,     1,   329,   366,   172,   345,   372,   372,   233,     2,
     173,    38,   174,   175,   173,   153,   234,   235,   228,   101,
     127,    33,   154,   187,    29,   102,   194,   141,    68,   102,
      36,   106,   107,   108,   109,    44,    11,    22,    47,    12,
      11,    55,    56,    12,    45,   155,   156,   201,   202,    40,
     138,   139,    21,    24,   -25,    69,    71,    75,    48,    78,
      84,    56,    82,    91,    87,    98,   120,    94,   123,    53,
     128,   104,   131,   126,   129,   164,   133,   171,   135,   177,
     188,   179,   109,   189,   184,   217,   107,   194,   181,   203,
     204,   162,   163,   108,   190,   192,   221,   223,   146,   238,
     256,   242,   156,   200,   247,   257,   258,   259,   269,   275,
     283,   277,   289,   284,   295,   249,   308,   300,   306,   317,
     325,   271,   311,   122,   150,   239,   253,   323,   330,   336,
     346,   291,   260,   351,   279,   358,   367,   373,   142,   206,
     176,   302,   207,   313,   211,   244,   143,   225,   245,   297,
     319,   338,   353,   363,   375,   332,   327,   263,   348,   286,
     360,   197,   266,   342,    25,    49,     0,    70,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    86,    77,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    95,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     103
};

#define yypact_value_is_default(yystate) \
  ((yystate) == (-209))

#define yytable_value_is_error(yytable_value) \
  YYID (0)

static const yytype_int16 yycheck[] =
{
     147,    11,   210,     3,     3,    11,     3,     3,    50,    51,
      15,    17,    11,    13,     3,    11,    13,   225,    17,    29,
      30,    17,     3,     3,    13,     3,     3,     3,     3,   176,
       3,     3,    13,    13,     3,    13,    13,    13,    13,     3,
      13,    13,     3,     3,    13,     3,     3,     3,     3,    13,
       3,     3,    13,    13,     3,    13,    13,    13,    13,     3,
      13,    13,     3,     3,    13,     3,     3,     3,     3,    13,
       3,     3,    13,    13,     3,    13,    13,    13,    13,     3,
      13,    13,     3,     3,    13,     3,     3,     3,     0,    13,
      49,     6,    13,    13,     3,    13,    13,    13,     3,    14,
       9,    55,    11,    12,     9,     3,    11,    12,    34,     3,
     103,    10,    10,     3,    16,     9,    42,   110,     3,     9,
      13,    25,    26,    27,    28,    20,    49,    50,    23,    52,
      49,    18,    19,    52,    13,    32,    33,    29,    30,    53,
      29,    30,     5,     6,     8,     5,     8,    13,    51,     3,
      20,    19,    13,     8,    21,     3,     8,    10,    54,    17,
       9,    20,    13,    20,    10,     3,    13,     3,    13,     8,
       3,     8,    28,    54,     8,    46,    26,    42,    13,     3,
       3,    23,    22,    27,    13,    13,     8,     8,    31,     7,
       3,     8,    33,    24,    13,     3,     3,     7,    13,     8,
       3,    13,    13,     5,     8,    35,     3,    13,     8,     8,
       8,    36,    13,    91,   120,    47,    43,    13,    13,     8,
      13,    37,    48,     8,    44,    13,    13,     8,   111,   177,
     141,    45,   179,    38,   184,   221,   113,   205,   223,   275,
     295,   317,   336,   351,   373,    39,   306,   242,    40,   266,
      41,   158,   246,   325,     6,    27,    -1,    41,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    57,    50,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    71,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      86
};

/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
static const yytype_uint8 yystos[] =
{
       0,     6,    14,    57,    58,    59,    60,    64,    65,    15,
       0,    49,    52,    61,   183,   184,   186,   187,   192,   194,
      62,   183,    50,    63,   183,   184,   185,   197,   198,    16,
      67,    69,    70,    10,    66,   188,    13,   196,    55,   203,
      53,   189,   190,   193,   203,    13,   199,   203,    51,   198,
     200,   201,    11,    17,    73,    18,    19,    74,    75,    77,
      79,    68,     3,    13,     3,    13,     3,    13,     3,     5,
     190,     8,   195,     3,    13,    13,   202,   201,     3,     3,
      11,    17,    13,    76,    20,    81,    77,    21,    82,    83,
      78,     8,    71,    72,    10,   196,     3,    13,     3,     3,
      13,     3,     9,    82,    20,    84,    25,    26,    27,    28,
      86,    87,    88,    90,    92,    95,    97,   100,   102,   103,
       8,    80,    73,    54,   191,     3,    20,   100,     9,    10,
      85,    13,    89,    13,    94,    13,    99,    11,    29,    30,
     106,   100,    90,    95,    91,    96,    31,   107,   108,   101,
      81,     3,    11,     3,    10,    32,    33,   110,   111,   113,
     116,   118,    23,    22,     3,     3,    13,     3,    13,     3,
      13,     3,     3,     9,    11,    12,   107,     8,    93,     8,
      98,    13,   109,   110,     8,   104,   105,     3,     3,    54,
      13,   115,    13,   120,    42,   159,   161,   116,   112,   117,
      24,    29,    30,     3,     3,   110,    94,    99,     3,    13,
     121,   106,     3,    13,     3,    13,   163,    46,   177,   178,
     160,     8,   114,     8,   119,   121,     3,     3,    34,   122,
     123,   125,   159,     3,    11,    12,     3,    13,     7,    47,
     179,   180,     8,   162,   115,   120,   159,    13,   127,    35,
     128,   130,   124,    43,   164,   166,     3,     3,     3,     7,
      48,   181,   182,   163,     3,     3,   164,     3,    13,    13,
     132,    36,   133,   135,   129,     8,   126,    13,   168,    44,
     169,   171,   165,     3,     5,     3,   169,     3,    13,    13,
     137,    37,   138,   140,   134,     8,   131,   127,     3,    13,
      13,   173,    45,   174,   175,   170,     8,   167,     3,     3,
      13,    13,   142,    38,   143,   145,   139,     8,   136,   132,
       3,     3,    13,    13,   176,     8,   172,   168,     3,    13,
      13,   147,    39,   148,   149,   144,     8,   141,   137,     3,
       3,    13,   173,     3,     3,    13,    13,   150,    40,   151,
     152,     8,   146,   142,     3,     3,     3,    13,    13,   153,
      41,   154,   156,   147,     3,     3,    13,    13,   158,   155,
       3,     3,    13,     8,   157,   158,     3
};

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		(-2)
#define YYEOF		0

#define YYACCEPT	goto yyacceptlab
#define YYABORT		goto yyabortlab
#define YYERROR		goto yyerrorlab


/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  However,
   YYFAIL appears to be in use.  Nevertheless, it is formally deprecated
   in Bison 2.4.2's NEWS entry, where a plan to phase it out is
   discussed.  */

#define YYFAIL		goto yyerrlab
#if defined YYFAIL
  /* This is here to suppress warnings from the GCC cpp's
     -Wunused-macros.  Normally we don't worry about that warning, but
     some users do, and we want to make it easy for users to remove
     YYFAIL uses, which will produce warnings from Bison 2.5.  */
#endif

#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)					\
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    {								\
      yychar = (Token);						\
      yylval = (Value);						\
      YYPOPSTACK (1);						\
      goto yybackup;						\
    }								\
  else								\
    {								\
      yyerror (seq, YY_("syntax error: cannot back up")); \
      YYERROR;							\
    }								\
while (YYID (0))


#define YYTERROR	1
#define YYERRCODE	256


/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
   If N is 0, then set CURRENT to the empty location which ends
   the previous symbol: RHS[0] (always defined).  */

#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)				\
    do									\
      if (YYID (N))                                                    \
	{								\
	  (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;	\
	  (Current).first_column = YYRHSLOC (Rhs, 1).first_column;	\
	  (Current).last_line    = YYRHSLOC (Rhs, N).last_line;		\
	  (Current).last_column  = YYRHSLOC (Rhs, N).last_column;	\
	}								\
      else								\
	{								\
	  (Current).first_line   = (Current).last_line   =		\
	    YYRHSLOC (Rhs, 0).last_line;				\
	  (Current).first_column = (Current).last_column =		\
	    YYRHSLOC (Rhs, 0).last_column;				\
	}								\
    while (YYID (0))
#endif


/* This macro is provided for backward compatibility. */

#ifndef YY_LOCATION_PRINT
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
#endif


/* YYLEX -- calling `yylex' with the right arguments.  */

#ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, YYLEX_PARAM)
#else
# define YYLEX yylex (&yylval)
#endif

/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)			\
do {						\
  if (yydebug)					\
    YYFPRINTF Args;				\
} while (YYID (0))

# define YY_SYMBOL_PRINT(Title, Type, Value, Location)			  \
do {									  \
  if (yydebug)								  \
    {									  \
      YYFPRINTF (stderr, "%s ", Title);					  \
      yy_symbol_print (stderr,						  \
		  Type, Value, seq); \
      YYFPRINTF (stderr, "\n");						  \
    }									  \
} while (YYID (0))


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, sequence_t *seq)
#else
static void
yy_symbol_value_print (yyoutput, yytype, yyvaluep, seq)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
    sequence_t *seq;
#endif
{
  if (!yyvaluep)
    return;
  YYUSE (seq);
# ifdef YYPRINT
  if (yytype < YYNTOKENS)
    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
  YYUSE (yyoutput);
# endif
  switch (yytype)
    {
      default:
	break;
    }
}


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, sequence_t *seq)
#else
static void
yy_symbol_print (yyoutput, yytype, yyvaluep, seq)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
    sequence_t *seq;
#endif
{
  if (yytype < YYNTOKENS)
    YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  yy_symbol_value_print (yyoutput, yytype, yyvaluep, seq);
  YYFPRINTF (yyoutput, ")");
}

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
static void
yy_stack_print (yybottom, yytop)
    yytype_int16 *yybottom;
    yytype_int16 *yytop;
#endif
{
  YYFPRINTF (stderr, "Stack now");
  for (; yybottom <= yytop; yybottom++)
    {
      int yybot = *yybottom;
      YYFPRINTF (stderr, " %d", yybot);
    }
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)				\
do {								\
  if (yydebug)							\
    yy_stack_print ((Bottom), (Top));				\
} while (YYID (0))


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_reduce_print (YYSTYPE *yyvsp, int yyrule, sequence_t *seq)
#else
static void
yy_reduce_print (yyvsp, yyrule, seq)
    YYSTYPE *yyvsp;
    int yyrule;
    sequence_t *seq;
#endif
{
  int yynrhs = yyr2[yyrule];
  int yyi;
  unsigned long int yylno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
	     yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
		       &(yyvsp[(yyi + 1) - (yynrhs)])
		       		       , seq);
      YYFPRINTF (stderr, "\n");
    }
}

# define YY_REDUCE_PRINT(Rule)		\
do {					\
  if (yydebug)				\
    yy_reduce_print (yyvsp, Rule, seq); \
} while (YYID (0))

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef	YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif


#if YYERROR_VERBOSE

# ifndef yystrlen
#  if defined __GLIBC__ && defined _STRING_H
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
#else
static YYSIZE_T
yystrlen (yystr)
    const char *yystr;
#endif
{
  YYSIZE_T yylen;
  for (yylen = 0; yystr[yylen]; yylen++)
    continue;
  return yylen;
}
#  endif
# endif

# ifndef yystpcpy
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
#   define yystpcpy stpcpy
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static char *
yystpcpy (char *yydest, const char *yysrc)
#else
static char *
yystpcpy (yydest, yysrc)
    char *yydest;
    const char *yysrc;
#endif
{
  char *yyd = yydest;
  const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
#  endif
# endif

# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
  if (*yystr == '"')
    {
      YYSIZE_T yyn = 0;
      char const *yyp = yystr;

      for (;;)
	switch (*++yyp)
	  {
	  case '\'':
	  case ',':
	    goto do_not_strip_quotes;

	  case '\\':
	    if (*++yyp != '\\')
	      goto do_not_strip_quotes;
	    /* Fall through.  */
	  default:
	    if (yyres)
	      yyres[yyn] = *yyp;
	    yyn++;
	    break;

	  case '"':
	    if (yyres)
	      yyres[yyn] = '\0';
	    return yyn;
	  }
    do_not_strip_quotes: ;
    }

  if (! yyres)
    return yystrlen (yystr);

  return yystpcpy (yyres, yystr) - yyres;
}
# endif

/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
   about the unexpected token YYTOKEN for the state stack whose top is
   YYSSP.

   Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is
   not large enough to hold the message.  In that case, also set
   *YYMSG_ALLOC to the required number of bytes.  Return 2 if the
   required number of bytes is too large to store.  */
static int
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
                yytype_int16 *yyssp, int yytoken)
{
  YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]);
  YYSIZE_T yysize = yysize0;
  YYSIZE_T yysize1;
  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  /* Internationalized format string. */
  const char *yyformat = 0;
  /* Arguments of yyformat. */
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  /* Number of reported tokens (one for the "unexpected", one per
     "expected"). */
  int yycount = 0;

  /* There are many possibilities here to consider:
     - Assume YYFAIL is not used.  It's too flawed to consider.  See
       <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
       for details.  YYERROR is fine as it does not invoke this
       function.
     - If this state is a consistent state with a default action, then
       the only way this function was invoked is if the default action
       is an error action.  In that case, don't check for expected
       tokens because there are none.
     - The only way there can be no lookahead present (in yychar) is if
       this state is a consistent state with a default action.  Thus,
       detecting the absence of a lookahead is sufficient to determine
       that there is no unexpected or expected token to report.  In that
       case, just report a simple "syntax error".
     - Don't assume there isn't a lookahead just because this state is a
       consistent state with a default action.  There might have been a
       previous inconsistent state, consistent state with a non-default
       action, or user semantic action that manipulated yychar.
     - Of course, the expected token list depends on states to have
       correct lookahead information, and it depends on the parser not
       to perform extra reductions after fetching a lookahead from the
       scanner and before detecting a syntax error.  Thus, state merging
       (from LALR or IELR) and default reductions corrupt the expected
       token list.  However, the list is correct for canonical LR with
       one exception: it will still contain any token that will not be
       accepted due to an error action in a later state.
  */
  if (yytoken != YYEMPTY)
    {
      int yyn = yypact[*yyssp];
      yyarg[yycount++] = yytname[yytoken];
      if (!yypact_value_is_default (yyn))
        {
          /* Start YYX at -YYN if negative to avoid negative indexes in
             YYCHECK.  In other words, skip the first -YYN actions for
             this state because they are default actions.  */
          int yyxbegin = yyn < 0 ? -yyn : 0;
          /* Stay within bounds of both yycheck and yytname.  */
          int yychecklim = YYLAST - yyn + 1;
          int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
          int yyx;

          for (yyx = yyxbegin; yyx < yyxend; ++yyx)
            if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
                && !yytable_value_is_error (yytable[yyx + yyn]))
              {
                if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
                  {
                    yycount = 1;
                    yysize = yysize0;
                    break;
                  }
                yyarg[yycount++] = yytname[yyx];
                yysize1 = yysize + yytnamerr (0, yytname[yyx]);
                if (! (yysize <= yysize1
                       && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
                  return 2;
                yysize = yysize1;
              }
        }
    }

  switch (yycount)
    {
# define YYCASE_(N, S)                      \
      case N:                               \
        yyformat = S;                       \
      break
      YYCASE_(0, YY_("syntax error"));
      YYCASE_(1, YY_("syntax error, unexpected %s"));
      YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
      YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
      YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
      YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
# undef YYCASE_
    }

  yysize1 = yysize + yystrlen (yyformat);
  if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
    return 2;
  yysize = yysize1;

  if (*yymsg_alloc < yysize)
    {
      *yymsg_alloc = 2 * yysize;
      if (! (yysize <= *yymsg_alloc
             && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
        *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
      return 1;
    }

  /* Avoid sprintf, as that infringes on the user's name space.
     Don't have undefined behavior even if the translation
     produced a string with the wrong number of "%s"s.  */
  {
    char *yyp = *yymsg;
    int yyi = 0;
    while ((*yyp = *yyformat) != '\0')
      if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
        {
          yyp += yytnamerr (yyp, yyarg[yyi++]);
          yyformat += 2;
        }
      else
        {
          yyp++;
          yyformat++;
        }
  }
  return 0;
}
#endif /* YYERROR_VERBOSE */

/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, sequence_t *seq)
#else
static void
yydestruct (yymsg, yytype, yyvaluep, seq)
    const char *yymsg;
    int yytype;
    YYSTYPE *yyvaluep;
    sequence_t *seq;
#endif
{
  YYUSE (yyvaluep);
  YYUSE (seq);

  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  switch (yytype)
    {
      case 15: /* "LONAM" */

/* Line 1391 of yacc.c  */
#line 31 "sequence/genbanky.y"
	{ free((yyvaluep->str)); };

/* Line 1391 of yacc.c  */
#line 1587 "sequence/genbanky.c"
	break;
      case 17: /* "DETXT" */

/* Line 1391 of yacc.c  */
#line 31 "sequence/genbanky.y"
	{ free((yyvaluep->str)); };

/* Line 1391 of yacc.c  */
#line 1596 "sequence/genbanky.c"
	break;
      case 20: /* "ACNUM" */

/* Line 1391 of yacc.c  */
#line 31 "sequence/genbanky.y"
	{ free((yyvaluep->str)); };

/* Line 1391 of yacc.c  */
#line 1605 "sequence/genbanky.c"
	break;
      case 29: /* "KEWRD" */

/* Line 1391 of yacc.c  */
#line 31 "sequence/genbanky.y"
	{ free((yyvaluep->str)); };

/* Line 1391 of yacc.c  */
#line 1614 "sequence/genbanky.c"
	break;
      case 30: /* "KEWR2" */

/* Line 1391 of yacc.c  */
#line 31 "sequence/genbanky.y"
	{ free((yyvaluep->str)); };

/* Line 1391 of yacc.c  */
#line 1623 "sequence/genbanky.c"
	break;
      case 54: /* "SEQBAS" */

/* Line 1391 of yacc.c  */
#line 31 "sequence/genbanky.y"
	{ free((yyvaluep->str)); };

/* Line 1391 of yacc.c  */
#line 1632 "sequence/genbanky.c"
	break;

      default:
	break;
    }
}


/* Prevent warnings from -Wmissing-prototypes.  */
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
#else
int yyparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int yyparse (sequence_t *seq);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */


/*----------.
| yyparse.  |
`----------*/

#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void *YYPARSE_PARAM)
#else
int
yyparse (YYPARSE_PARAM)
    void *YYPARSE_PARAM;
#endif
#else /* ! YYPARSE_PARAM */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (sequence_t *seq)
#else
int
yyparse (seq)
    sequence_t *seq;
#endif
#endif
{
/* The lookahead symbol.  */
int yychar;

/* The semantic value of the lookahead symbol.  */
YYSTYPE yylval;

    /* Number of syntax errors so far.  */
    int yynerrs;

    int yystate;
    /* Number of tokens to shift before error messages enabled.  */
    int yyerrstatus;

    /* The stacks and their tools:
       `yyss': related to states.
       `yyvs': related to semantic values.

       Refer to the stacks thru separate pointers, to allow yyoverflow
       to reallocate them elsewhere.  */

    /* The state stack.  */
    yytype_int16 yyssa[YYINITDEPTH];
    yytype_int16 *yyss;
    yytype_int16 *yyssp;

    /* The semantic value stack.  */
    YYSTYPE yyvsa[YYINITDEPTH];
    YYSTYPE *yyvs;
    YYSTYPE *yyvsp;

    YYSIZE_T yystacksize;

  int yyn;
  int yyresult;
  /* Lookahead token as an internal (translated) token number.  */
  int yytoken;
  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;

#if YYERROR_VERBOSE
  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif

#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))

  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;

  yytoken = 0;
  yyss = yyssa;
  yyvs = yyvsa;
  yystacksize = YYINITDEPTH;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY; /* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */
  yyssp = yyss;
  yyvsp = yyvs;

  goto yysetstate;

/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
 yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed.  So pushing a state here evens the stacks.  */
  yyssp++;

 yysetstate:
  *yyssp = yystate;

  if (yyss + yystacksize - 1 <= yyssp)
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYSIZE_T yysize = yyssp - yyss + 1;

#ifdef yyoverflow
      {
	/* Give user a chance to reallocate the stack.  Use copies of
	   these so that the &'s don't force the real ones into
	   memory.  */
	YYSTYPE *yyvs1 = yyvs;
	yytype_int16 *yyss1 = yyss;

	/* Each stack pointer address is followed by the size of the
	   data in use in that stack, in bytes.  This used to be a
	   conditional around just the two extra args, but that might
	   be undefined if yyoverflow is a macro.  */
	yyoverflow (YY_("memory exhausted"),
		    &yyss1, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),
		    &yystacksize);

	yyss = yyss1;
	yyvs = yyvs1;
      }
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
      goto yyexhaustedlab;
# else
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
	goto yyexhaustedlab;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
	yystacksize = YYMAXDEPTH;

      {
	yytype_int16 *yyss1 = yyss;
	union yyalloc *yyptr =
	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
	if (! yyptr)
	  goto yyexhaustedlab;
	YYSTACK_RELOCATE (yyss_alloc, yyss);
	YYSTACK_RELOCATE (yyvs_alloc, yyvs);
#  undef YYSTACK_RELOCATE
	if (yyss1 != yyssa)
	  YYSTACK_FREE (yyss1);
      }
# endif
#endif /* no yyoverflow */

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;

      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
		  (unsigned long int) yystacksize));

      if (yyss + yystacksize - 1 <= yyssp)
	YYABORT;
    }

  YYDPRINTF ((stderr, "Entering state %d\n", yystate));

  if (yystate == YYFINAL)
    YYACCEPT;

  goto yybackup;

/*-----------.
| yybackup.  |
`-----------*/
yybackup:

  /* Do appropriate processing given the current state.  Read a
     lookahead token if we need one and don't already have one.  */

  /* First try to decide what to do without reference to lookahead token.  */
  yyn = yypact[yystate];
  if (yypact_value_is_default (yyn))
    goto yydefault;

  /* Not known => get a lookahead token if don't already have one.  */

  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar = YYLEX;
    }

  if (yychar <= YYEOF)
    {
      yychar = yytoken = YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yytable_value_is_error (yyn))
        goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  /* Shift the lookahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);

  /* Discard the shifted token.  */
  yychar = YYEMPTY;

  yystate = yyn;
  *++yyvsp = yylval;

  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- Do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
        case 2:

/* Line 1806 of yacc.c  */
#line 73 "sequence/genbanky.y"
    { return 0;  /*NOTREACHED*/ }
    break;

  case 3:

/* Line 1806 of yacc.c  */
#line 74 "sequence/genbanky.y"
    { return 0;  /*NOTREACHED*/ }
    break;

  case 4:

/* Line 1806 of yacc.c  */
#line 75 "sequence/genbanky.y"
    { return 0;  /*NOTREACHED*/ }
    break;

  case 5:

/* Line 1806 of yacc.c  */
#line 76 "sequence/genbanky.y"
    { return -1; /*NOTREACHED*/ }
    break;

  case 16:

/* Line 1806 of yacc.c  */
#line 88 "sequence/genbanky.y"
    { parse_namadd(seq, (yyvsp[(2) - (4)].str)); }
    break;

  case 31:

/* Line 1806 of yacc.c  */
#line 98 "sequence/genbanky.y"
    { parse_dscadd2(seq, (yyvsp[(2) - (2)].str)); }
    break;

  case 32:

/* Line 1806 of yacc.c  */
#line 99 "sequence/genbanky.y"
    { parse_dscadd1(seq, (yyvsp[(1) - (1)].str)); }
    break;

  case 43:

/* Line 1806 of yacc.c  */
#line 110 "sequence/genbanky.y"
    { parse_accadd(seq, (yyvsp[(3) - (3)].str)); }
    break;

  case 44:

/* Line 1806 of yacc.c  */
#line 111 "sequence/genbanky.y"
    { parse_accadd(seq, (yyvsp[(1) - (1)].str)); }
    break;

  case 48:

/* Line 1806 of yacc.c  */
#line 116 "sequence/genbanky.y"
    { parse_veradd(seq, (yyvsp[(3) - (3)].num)); }
    break;

  case 50:

/* Line 1806 of yacc.c  */
#line 119 "sequence/genbanky.y"
    { parse_giadd(seq, (yyvsp[(3) - (3)].num)); }
    break;

  case 87:

/* Line 1806 of yacc.c  */
#line 147 "sequence/genbanky.y"
    { parse_kwdadd(seq, (yyvsp[(3) - (3)].str)); }
    break;

  case 88:

/* Line 1806 of yacc.c  */
#line 148 "sequence/genbanky.y"
    { parse_kwdupd(seq, (yyvsp[(3) - (3)].str)); }
    break;

  case 89:

/* Line 1806 of yacc.c  */
#line 149 "sequence/genbanky.y"
    { parse_kwdadd(seq, (yyvsp[(1) - (1)].str)); }
    break;

  case 90:

/* Line 1806 of yacc.c  */
#line 150 "sequence/genbanky.y"
    { parse_kwdupd(seq, (yyvsp[(1) - (1)].str)); }
    break;

  case 221:

/* Line 1806 of yacc.c  */
#line 259 "sequence/genbanky.y"
    { parse_stradd(seq, (yyvsp[(3) - (3)].str)); }
    break;

  case 222:

/* Line 1806 of yacc.c  */
#line 260 "sequence/genbanky.y"
    { parse_stradd(seq, (yyvsp[(1) - (1)].str)); }
    break;



/* Line 1806 of yacc.c  */
#line 2053 "sequence/genbanky.c"
      default: break;
    }
  /* User semantic actions sometimes alter yychar, and that requires
     that yytoken be updated with the new translation.  We take the
     approach of translating immediately before every use of yytoken.
     One alternative is translating here after every semantic action,
     but that translation would be missed if the semantic action invokes
     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
     incorrect destructor might then be invoked immediately.  In the
     case of YYERROR or YYBACKUP, subsequent parser actions might lead
     to an incorrect destructor call or verbose syntax error message
     before the lookahead is translated.  */
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);

  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);

  *++yyvsp = yyval;

  /* Now `shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */

  yyn = yyr1[yyn];

  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTOKENS];

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* Make sure we have latest lookahead translation.  See comments at
     user semantic actions for why this is necessary.  */
  yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);

  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if ! YYERROR_VERBOSE
      yyerror (seq, YY_("syntax error"));
#else
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
                                        yyssp, yytoken)
      {
        char const *yymsgp = YY_("syntax error");
        int yysyntax_error_status;
        yysyntax_error_status = YYSYNTAX_ERROR;
        if (yysyntax_error_status == 0)
          yymsgp = yymsg;
        else if (yysyntax_error_status == 1)
          {
            if (yymsg != yymsgbuf)
              YYSTACK_FREE (yymsg);
            yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
            if (!yymsg)
              {
                yymsg = yymsgbuf;
                yymsg_alloc = sizeof yymsgbuf;
                yysyntax_error_status = 2;
              }
            else
              {
                yysyntax_error_status = YYSYNTAX_ERROR;
                yymsgp = yymsg;
              }
          }
        yyerror (seq, yymsgp);
        if (yysyntax_error_status == 2)
          goto yyexhaustedlab;
      }
# undef YYSYNTAX_ERROR
#endif
    }



  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse lookahead token after an
	 error, discard it.  */

      if (yychar <= YYEOF)
	{
	  /* Return failure if at end of input.  */
	  if (yychar == YYEOF)
	    YYABORT;
	}
      else
	{
	  yydestruct ("Error: discarding",
		      yytoken, &yylval, seq);
	  yychar = YYEMPTY;
	}
    }

  /* Else will try to reuse lookahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:

  /* Pacify compilers like GCC when the user code never invokes
     YYERROR and the label yyerrorlab therefore never appears in user
     code.  */
  if (/*CONSTCOND*/ 0)
     goto yyerrorlab;

  /* Do not reclaim the symbols of the rule which action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;	/* Each real token shifted decrements this.  */

  for (;;)
    {
      yyn = yypact[yystate];
      if (!yypact_value_is_default (yyn))
	{
	  yyn += YYTERROR;
	  if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
	    {
	      yyn = yytable[yyn];
	      if (0 < yyn)
		break;
	    }
	}

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
	YYABORT;


      yydestruct ("Error: popping",
		  yystos[yystate], yyvsp, seq);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  *++yyvsp = yylval;


  /* Shift the error token.  */
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);

  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturn;

/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturn;

#if !defined(yyoverflow) || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here.  |
`-------------------------------------------------*/
yyexhaustedlab:
  yyerror (seq, YY_("memory exhausted"));
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
  if (yychar != YYEMPTY)
    {
      /* Make sure we have latest lookahead translation.  See comments at
         user semantic actions for why this is necessary.  */
      yytoken = YYTRANSLATE (yychar);
      yydestruct ("Cleanup: discarding lookahead",
                  yytoken, &yylval, seq);
    }
  /* Do not reclaim the symbols of the rule which action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
		  yystos[*yyssp], yyvsp, seq);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
  if (yymsg != yymsgbuf)
    YYSTACK_FREE (yymsg);
#endif
  /* Make sure YYID is used.  */
  return YYID (yyresult);
}



/* Line 2067 of yacc.c  */
#line 281 "sequence/genbanky.y"



/* Check GENBANK sequence */
int genbanky_check(FILE *f) {
  int i;

  genbankset_in(f);

  i = yyparse(NULL);
  if (i == 0) { return i; }

  genbanklex_destroy();

  return i; }


/* Parse GENBANK sequence */
sequence_t *genbanky_parse(FILE *f) {
  int i;
  sequence_t *seq;

  seq = sequence_new();
  if (seq == NULL) { return seq; }
  genbankset_in(f);

  i = yyparse((void *)seq);
  if (i == 0) {
    return seq; }

  genbanklex_destroy();
  sequence_free(seq);

  return NULL; }


/* Helpers ... */

/*ARGSUSED*/
static void yyerror(sequence_t *seq, const char *s) { return; }

