Logo Search packages:      
Sourcecode: saods9 version File versions

ds9parser.C

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

/* Skeleton parser for Yacc-like parsing with Bison,
   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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 2, 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, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

/* 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

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

/* Pure parsers.  */
#define YYPURE 0

/* Using locations.  */
#define YYLSP_NEEDED 0

/* If NAME_PREFIX is specified substitute the variables and functions
   names.  */
#define yyparse mkparse
#define yylex   mklex
#define yyerror mkerror
#define yylval  mklval
#define yychar  mkchar
#define yydebug mkdebug
#define yynerrs mknerrs


/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     INT = 258,
     REAL = 259,
     STRING = 260,
     HOUR = 261,
     MINUTE = 262,
     SECOND = 263,
     DEGREE = 264,
     ARCMINUTE = 265,
     ARCSECOND = 266,
     RADIAN = 267,
     PHYCOORD = 268,
     IMGCOORD = 269,
     SEXSTR = 270,
     AMPLIFIER_ = 271,
     ANNULUS_ = 272,
     ARCMIN_ = 273,
     ARCSEC_ = 274,
     ARROW_ = 275,
     B1950_ = 276,
     BACKGROUND_ = 277,
     BOX_ = 278,
     BOXCIRCLE_ = 279,
     CIRCLE_ = 280,
     COLOR_ = 281,
     COMPASS_ = 282,
     CROSS_ = 283,
     DEBUG_ = 284,
     DEGREES_ = 285,
     DELETE_ = 286,
     DETECTOR_ = 287,
     DIAMOND_ = 288,
     ECLIPTIC_ = 289,
     EDIT_ = 290,
     ELLIPSE_ = 291,
     FALSE_ = 292,
     FIELD_ = 293,
     FIXED_ = 294,
     FK4_ = 295,
     FK5_ = 296,
     FONT_ = 297,
     GALACTIC_ = 298,
     GLOBAL_ = 299,
     HIGHLITE_ = 300,
     ICRS_ = 301,
     IGNORE_ = 302,
     IMAGE_ = 303,
     INCLUDE_ = 304,
     J2000_ = 305,
     LINE_ = 306,
     LINEAR_ = 307,
     MOVE_ = 308,
     N_ = 309,
     NO_ = 310,
     OFF_ = 311,
     ON_ = 312,
     PANDA_ = 313,
     PHYSICAL_ = 314,
     PIE_ = 315,
     PIXELS_ = 316,
     POINT_ = 317,
     POLYGON_ = 318,
     PROJECTION_ = 319,
     ROTATE_ = 320,
     ROTBOX_ = 321,
     RULER_ = 322,
     SELECT_ = 323,
     SOURCE_ = 324,
     TAG_ = 325,
     TEXT_ = 326,
     TEXTANGLE_ = 327,
     TILE_ = 328,
     TRUE_ = 329,
     VERSION_ = 330,
     WCS_ = 331,
     WCSA_ = 332,
     WCSB_ = 333,
     WCSC_ = 334,
     WCSD_ = 335,
     WCSE_ = 336,
     WCSF_ = 337,
     WCSG_ = 338,
     WCSH_ = 339,
     WCSI_ = 340,
     WCSJ_ = 341,
     WCSK_ = 342,
     WCSL_ = 343,
     WCSM_ = 344,
     WCSN_ = 345,
     WCSO_ = 346,
     WCSP_ = 347,
     WCSQ_ = 348,
     WCSR_ = 349,
     WCSS_ = 350,
     WCST_ = 351,
     WCSU_ = 352,
     WCSV_ = 353,
     WCSW_ = 354,
     WCSX_ = 355,
     WCSY_ = 356,
     WCSZ_ = 357,
     WIDTH_ = 358,
     X_ = 359,
     Y_ = 360,
     YES_ = 361
   };
#endif
#define INT 258
#define REAL 259
#define STRING 260
#define HOUR 261
#define MINUTE 262
#define SECOND 263
#define DEGREE 264
#define ARCMINUTE 265
#define ARCSECOND 266
#define RADIAN 267
#define PHYCOORD 268
#define IMGCOORD 269
#define SEXSTR 270
#define AMPLIFIER_ 271
#define ANNULUS_ 272
#define ARCMIN_ 273
#define ARCSEC_ 274
#define ARROW_ 275
#define B1950_ 276
#define BACKGROUND_ 277
#define BOX_ 278
#define BOXCIRCLE_ 279
#define CIRCLE_ 280
#define COLOR_ 281
#define COMPASS_ 282
#define CROSS_ 283
#define DEBUG_ 284
#define DEGREES_ 285
#define DELETE_ 286
#define DETECTOR_ 287
#define DIAMOND_ 288
#define ECLIPTIC_ 289
#define EDIT_ 290
#define ELLIPSE_ 291
#define FALSE_ 292
#define FIELD_ 293
#define FIXED_ 294
#define FK4_ 295
#define FK5_ 296
#define FONT_ 297
#define GALACTIC_ 298
#define GLOBAL_ 299
#define HIGHLITE_ 300
#define ICRS_ 301
#define IGNORE_ 302
#define IMAGE_ 303
#define INCLUDE_ 304
#define J2000_ 305
#define LINE_ 306
#define LINEAR_ 307
#define MOVE_ 308
#define N_ 309
#define NO_ 310
#define OFF_ 311
#define ON_ 312
#define PANDA_ 313
#define PHYSICAL_ 314
#define PIE_ 315
#define PIXELS_ 316
#define POINT_ 317
#define POLYGON_ 318
#define PROJECTION_ 319
#define ROTATE_ 320
#define ROTBOX_ 321
#define RULER_ 322
#define SELECT_ 323
#define SOURCE_ 324
#define TAG_ 325
#define TEXT_ 326
#define TEXTANGLE_ 327
#define TILE_ 328
#define TRUE_ 329
#define VERSION_ 330
#define WCS_ 331
#define WCSA_ 332
#define WCSB_ 333
#define WCSC_ 334
#define WCSD_ 335
#define WCSE_ 336
#define WCSF_ 337
#define WCSG_ 338
#define WCSH_ 339
#define WCSI_ 340
#define WCSJ_ 341
#define WCSK_ 342
#define WCSL_ 343
#define WCSM_ 344
#define WCSN_ 345
#define WCSO_ 346
#define WCSP_ 347
#define WCSQ_ 348
#define WCSR_ 349
#define WCSS_ 350
#define WCST_ 351
#define WCSU_ 352
#define WCSV_ 353
#define WCSW_ 354
#define WCSX_ 355
#define WCSY_ 356
#define WCSZ_ 357
#define WIDTH_ 358
#define X_ 359
#define Y_ 360
#define YES_ 361




/* Copy the first part of user declarations.  */
#line 5 "ds9parser.Y"

#define YYPARSE_PARAM fr
#define YYDEBUG 1

#define FR ((FrameBase*)fr)
#define FITSPTR (FR->findFits(globalTile))

#define DISCARD_(x) {yyclearin; mkDiscard(x);}

#include <math.h>
#include <string.h>
#include <iostream.h>

#include "framebase.h"
#include "fitsimage.h"
#include "util.h"
#include "vector.h"
#include "list.h"
#include "basemarker.h"
#include "coord.h"

extern int mklex(void);
extern void mkerror(const char*);
extern void mkDiscard(int);

int mksign;
int mksign2;

static CoordSystem globalSystem;
static CoordSystem globalWCS;
static SkyFrame globalSky;
static CoordSystem localSystem;
static SkyFrame localSky;

static int globalTile;

static unsigned short globalProps;
static unsigned short localProps;

static int globalWidth;
static int localWidth;

static char globalColor[16];
static char localColor[16];

static char globalFont[32];
static char localFont[32];

static char globalText[80];
static char localText[80];

static char localComment[80];

static int globalLine1;
static int localLine1;
static int globalLine2;
static int localLine2;

static int globalPoint;
static int localPoint;

static double globalTextAngle;
static double localTextAngle;

static CoordSystem globalRulerCoordSystem;
static CoordSystem localRulerCoordSystem;
static SkyFrame globalRulerSkyFrame;
static SkyFrame localRulerSkyFrame;
static CoordSystem globalRulerDistSystem;
static CoordSystem localRulerDistSystem;
static SkyFormat globalRulerDistFormat;
static SkyFormat localRulerDistFormat;

static CoordSystem globalCompassCoordSystem;
static SkyFrame globalCompassSkyFrame;
static char globalCompassNorth[80];
static char globalCompassEast[80];
static int globalCompassNArrow;
static int globalCompassEArrow;
static CoordSystem localCompassCoordSystem;
static SkyFrame localCompassSkyFrame;
static char localCompassNorth[80];
static char localCompassEast[80];
static int localCompassNArrow;
static int localCompassEArrow;

static int localPanda;

static List<Vertex> polylist;
static List<Tag> taglist;

static double aAnnuli[MAXANNULI];
static Vector aVector[MAXANNULI];
static int aNum;
static int aNumsao;
static int aStatus;
static Vector aCenter;
static double aAngle[MAXANGLES];
static int aAngNum;
static unsigned short aProps;
static char aColor[16];
static int aWidth;
static char aFont[32];
static char aText[80];
static char aComment[80];

static void setProps(unsigned short* props, unsigned short prop, int value);
static CoordSystem checkWCSSystem();
static SkyFrame checkWCSSky();

enum {CIRCLE,BOX,DIAMOND,CROSS,XPT,ARROW,BOXCIRCLE};
      


/* 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

#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
#line 119 "ds9parser.Y"
typedef union YYSTYPE {
  double real;
  int integer;
  char str[256];
  double vector[3];
} YYSTYPE;
/* Line 191 of yacc.c.  */
#line 417 "ds9parser.C"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif



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


/* Line 214 of yacc.c.  */
#line 429 "ds9parser.C"

#if ! defined (yyoverflow) || YYERROR_VERBOSE

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

# if YYSTACK_USE_ALLOCA
#  define YYSTACK_ALLOC alloca
# else
#  ifndef YYSTACK_USE_ALLOCA
#   if defined (alloca) || defined (_ALLOCA_H)
#    define YYSTACK_ALLOC alloca
#   else
#    ifdef __GNUC__
#     define YYSTACK_ALLOC __builtin_alloca
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning. */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# else
#  if defined (__STDC__) || defined (__cplusplus)
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   define YYSIZE_T size_t
#  endif
#  define YYSTACK_ALLOC malloc
#  define YYSTACK_FREE free
# endif
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */


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

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  short yyss;
  YYSTYPE yyvs;
  };

/* 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 (short) + sizeof (YYSTYPE))                   \
      + YYSTACK_GAP_MAXIMUM)

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

/* 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)                            \
    do                                                      \
      {                                                     \
      YYSIZE_T yynewbytes;                                  \
      YYCOPY (&yyptr->Stack, Stack, yysize);                      \
      Stack = &yyptr->Stack;                                \
      yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
      yyptr += yynewbytes / sizeof (*yyptr);                      \
      }                                                     \
    while (0)

#endif

#if defined (__STDC__) || defined (__cplusplus)
   typedef signed char yysigned_char;
#else
   typedef short yysigned_char;
#endif

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

/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS  118
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS  61
/* YYNRULES -- Number of rules. */
#define YYNRULES  252
/* YYNRULES -- Number of states. */
#define YYNSTATES  571

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

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

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const unsigned char yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     108,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   117,     2,   107,     2,     2,   116,     2,
     111,   112,     2,   114,   110,   115,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,   109,
       2,   113,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     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,    56,    57,    58,    59,    60,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
      75,    76,    77,    78,    79,    80,    81,    82,    83,    84,
      85,    86,    87,    88,    89,    90,    91,    92,    93,    94,
      95,    96,    97,    98,    99,   100,   101,   102,   103,   104,
     105,   106
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const unsigned short yyprhs[] =
{
       0,     0,     3,     7,    11,    14,    15,    18,    20,    24,
      27,    28,    32,    33,    37,    38,    42,    46,    48,    49,
      53,    54,    55,    59,    61,    62,    67,    71,    72,    78,
      80,    82,    84,    86,    88,    90,    92,    94,    96,    98,
     100,   102,   104,   106,   108,   109,   111,   112,   114,   115,
     117,   118,   120,   122,   124,   126,   128,   130,   132,   134,
     136,   138,   142,   146,   150,   154,   158,   162,   166,   168,
     172,   173,   182,   183,   192,   196,   200,   204,   208,   212,
     216,   218,   220,   222,   224,   226,   228,   230,   232,   234,
     236,   238,   240,   242,   244,   246,   248,   250,   252,   254,
     256,   258,   260,   262,   264,   266,   268,   270,   272,   274,
     276,   278,   280,   282,   284,   286,   288,   290,   292,   294,
     296,   298,   300,   302,   304,   306,   308,   310,   312,   314,
     316,   318,   322,   324,   328,   332,   336,   340,   344,   346,
     348,   352,   357,   361,   369,   373,   377,   382,   385,   388,
     391,   394,   397,   400,   402,   404,   407,   409,   411,   413,
     414,   418,   420,   424,   428,   432,   436,   440,   444,   446,
     448,   452,   457,   461,   469,   473,   477,   482,   485,   488,
     491,   494,   497,   500,   502,   504,   507,   509,   511,   513,
     514,   522,   524,   525,   527,   529,   531,   533,   535,   537,
     539,   540,   542,   544,   552,   562,   572,   582,   583,   590,
     598,   604,   605,   614,   622,   630,   640,   646,   653,   660,
     667,   674,   681,   688,   695,   705,   717,   729,   741,   755,
     769,   788,   800,   814,   828,   847,   865,   875,   887,   899,
     904,   908,   910,   912,   916,   918,   920,   924,   926,   928,
     932,   934,   938
};

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

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const unsigned short yyrline[] =
{
       0,   253,   253,   256,   257,   260,   261,   262,   263,   264,
     265,   265,   266,   266,   267,   267,   268,   269,   272,   272,
     275,   276,   276,   279,   280,   280,   282,   283,   283,   287,
     288,   291,   292,   295,   296,   299,   301,   302,   303,   304,
     306,   307,   308,   309,   312,   313,   316,   317,   320,   321,
     324,   325,   328,   329,   330,   333,   334,   335,   336,   337,
     338,   341,   348,   355,   362,   369,   376,   385,   388,   391,
     405,   405,   414,   414,   424,   431,   439,   446,   452,   460,
     470,   471,   472,   473,   474,   477,   478,   479,   480,   481,
     482,   483,   484,   485,   486,   487,   488,   489,   490,   491,
     492,   493,   494,   495,   496,   497,   498,   499,   500,   501,
     502,   503,   506,   507,   508,   509,   510,   511,   512,   515,
     516,   517,   520,   521,   522,   523,   524,   525,   526,   527,
     528,   531,   532,   535,   540,   545,   546,   551,   556,   561,
     566,   570,   575,   578,   587,   591,   594,   601,   608,   615,
     622,   629,   636,   643,   650,   659,   664,   669,   674,   681,
     716,   717,   720,   721,   722,   723,   724,   725,   726,   727,
     729,   730,   731,   732,   739,   740,   743,   750,   757,   764,
     771,   778,   785,   792,   799,   808,   813,   818,   823,   830,
     830,   831,   834,   868,   869,   870,   871,   872,   873,   874,
     877,   878,   879,   882,   887,   907,   926,   931,   931,   935,
     940,   944,   944,   949,   955,   962,   971,  1011,  1015,  1019,
    1023,  1027,  1031,  1035,  1040,  1044,  1053,  1058,  1066,  1075,
    1086,  1094,  1102,  1112,  1122,  1130,  1149,  1150,  1151,  1152,
    1155,  1156,  1159,  1162,  1163,  1166,  1173,  1174,  1177,  1184,
    1185,  1188,  1192
};
#endif

#if YYDEBUG || YYERROR_VERBOSE
/* YYTNME[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", "INT", "REAL", "STRING", "HOUR", "MINUTE", 
  "SECOND", "DEGREE", "ARCMINUTE", "ARCSECOND", "RADIAN", "PHYCOORD", 
  "IMGCOORD", "SEXSTR", "AMPLIFIER_", "ANNULUS_", "ARCMIN_", "ARCSEC_", 
  "ARROW_", "B1950_", "BACKGROUND_", "BOX_", "BOXCIRCLE_", "CIRCLE_", 
  "COLOR_", "COMPASS_", "CROSS_", "DEBUG_", "DEGREES_", "DELETE_", 
  "DETECTOR_", "DIAMOND_", "ECLIPTIC_", "EDIT_", "ELLIPSE_", "FALSE_", 
  "FIELD_", "FIXED_", "FK4_", "FK5_", "FONT_", "GALACTIC_", "GLOBAL_", 
  "HIGHLITE_", "ICRS_", "IGNORE_", "IMAGE_", "INCLUDE_", "J2000_", 
  "LINE_", "LINEAR_", "MOVE_", "N_", "NO_", "OFF_", "ON_", "PANDA_", 
  "PHYSICAL_", "PIE_", "PIXELS_", "POINT_", "POLYGON_", "PROJECTION_", 
  "ROTATE_", "ROTBOX_", "RULER_", "SELECT_", "SOURCE_", "TAG_", "TEXT_", 
  "TEXTANGLE_", "TILE_", "TRUE_", "VERSION_", "WCS_", "WCSA_", "WCSB_", 
  "WCSC_", "WCSD_", "WCSE_", "WCSF_", "WCSG_", "WCSH_", "WCSI_", "WCSJ_", 
  "WCSK_", "WCSL_", "WCSM_", "WCSN_", "WCSO_", "WCSP_", "WCSQ_", "WCSR_", 
  "WCSS_", "WCST_", "WCSU_", "WCSV_", "WCSW_", "WCSX_", "WCSY_", "WCSZ_", 
  "WIDTH_", "X_", "Y_", "YES_", "'#'", "'\\n'", "';'", "','", "'('", 
  "')'", "'='", "'+'", "'-'", "'&'", "'!'", "$accept", "start", 
  "commands", "command", "@1", "@2", "@3", "generalComment", "@4", 
  "comment", "@5", "shapeComment", "@6", "@7", "terminator", "numeric", 
  "debug", "yesno", "sp", "bp", "ep", "optangle", "angle", "value", 
  "vvalue", "numberof", "sexagesimal", "coord", "@8", "@9", "coordSystem", 
  "wcsSystem", "skyFrame", "skyFormat", "property", "global", 
  "globalProperty", "globalRuler", "globalCompass", "initGlobal", "local", 
  "localProperty", "localRuler", "localCompass", "localPanda", "@10", 
  "initLocal", "pointProp", "include", "shape", "@11", "@12", "polyNodes", 
  "polyNode", "aRads", "aRad", "aAngs", "aAng", "vRads", "vRad", 
  "postLocal", 0
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const unsigned short 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,   311,   312,   313,   314,
     315,   316,   317,   318,   319,   320,   321,   322,   323,   324,
     325,   326,   327,   328,   329,   330,   331,   332,   333,   334,
     335,   336,   337,   338,   339,   340,   341,   342,   343,   344,
     345,   346,   347,   348,   349,   350,   351,   352,   353,   354,
     355,   356,   357,   358,   359,   360,   361,    35,    10,    59,
      44,    40,    41,    61,    43,    45,    38,    33
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const unsigned char yyr1[] =
{
       0,   118,   119,   120,   120,   121,   121,   121,   121,   121,
     122,   121,   123,   121,   124,   121,   121,   121,   126,   125,
     127,   128,   127,   129,   130,   129,   129,   131,   129,   132,
     132,   133,   133,   134,   134,   135,   135,   135,   135,   135,
     135,   135,   135,   135,   136,   136,   137,   137,   138,   138,
     139,   139,   140,   140,   140,   141,   141,   141,   141,   141,
     141,   142,   142,   142,   142,   142,   142,   143,   144,   145,
     146,   145,   147,   145,   145,   145,   145,   145,   145,   145,
     148,   148,   148,   148,   148,   149,   149,   149,   149,   149,
     149,   149,   149,   149,   149,   149,   149,   149,   149,   149,
     149,   149,   149,   149,   149,   149,   149,   149,   149,   149,
     149,   149,   150,   150,   150,   150,   150,   150,   150,   151,
     151,   151,   152,   152,   152,   152,   152,   152,   152,   152,
     152,   153,   153,   154,   154,   154,   154,   154,   154,   154,
     154,   154,   154,   154,   154,   154,   155,   155,   155,   155,
     155,   155,   155,   155,   155,   156,   156,   156,   156,   157,
     158,   158,   159,   159,   159,   159,   159,   159,   159,   159,
     159,   159,   159,   159,   159,   159,   160,   160,   160,   160,
     160,   160,   160,   160,   160,   161,   161,   161,   161,   163,
     162,   162,   164,   165,   165,   165,   165,   165,   165,   165,
     166,   166,   166,   167,   167,   167,   167,   168,   167,   167,
     167,   169,   167,   167,   167,   167,   167,   167,   167,   167,
     167,   167,   167,   167,   167,   167,   167,   167,   167,   167,
     167,   167,   167,   167,   167,   167,   167,   167,   167,   167,
     170,   170,   171,   172,   172,   173,   174,   174,   175,   176,
     176,   177,   178
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const unsigned char yyr2[] =
{
       0,     2,     3,     3,     2,     0,     2,     1,     3,     2,
       0,     3,     0,     3,     0,     3,     3,     1,     0,     3,
       0,     0,     3,     1,     0,     4,     3,     0,     5,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     0,     1,     0,     1,     0,     1,
       0,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     3,     3,     3,     3,     3,     3,     3,     1,     3,
       0,     8,     0,     8,     3,     3,     3,     3,     3,     3,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     3,     1,     3,     3,     3,     3,     3,     1,     1,
       3,     4,     3,     7,     3,     3,     4,     2,     2,     2,
       2,     2,     2,     1,     1,     2,     1,     1,     1,     0,
       3,     1,     3,     3,     3,     3,     3,     3,     1,     1,
       3,     4,     3,     7,     3,     3,     4,     2,     2,     2,
       2,     2,     2,     1,     1,     2,     1,     1,     1,     0,
       7,     1,     0,     1,     1,     1,     1,     1,     1,     1,
       0,     1,     1,     7,     9,     9,     9,     0,     6,     7,
       5,     0,     8,     7,     7,     9,     5,     6,     6,     6,
       6,     6,     6,     6,     9,    11,    11,    11,    13,    13,
      18,    11,    13,    13,    18,    17,     9,    11,    11,     4,
       3,     1,     1,     3,     1,     1,     3,     1,     1,     3,
       1,     3,     0
};

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

/* YYDEFGOTO[NTERM-NUM]. */
static const short yydefgoto[] =
{
      -1,     1,    48,    49,    89,    90,    81,    50,    83,   107,
     178,   266,   328,   377,    88,   220,    57,   177,   350,   181,
     234,   401,   402,   479,   307,   470,   221,   272,   346,   345,
      51,    52,    53,   157,    78,    79,    80,   158,   139,     2,
     330,   331,   424,   412,   416,   417,    54,   149,    93,   134,
     197,   439,   273,   274,   471,   472,   490,   491,   481,   482,
     267
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -490
static const short yypact[] =
{
    -490,     7,   830,  -490,  -490,  -490,    65,  -490,  -490,  -490,
    -490,  -490,  1440,  -490,  -490,  -490,  -490,  -490,    22,  -490,
    -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,
    -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,
    -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,   741,   -46,
    -490,  -490,  -490,  -490,    37,  -490,  -490,  -490,  -490,   -78,
     -38,  -490,  -490,  -490,   -33,  -490,  -490,   -30,  -490,   -25,
    -490,   -22,  -490,    -9,    -2,    18,    23,    27,    31,   132,
    -490,   -55,  -490,    96,   -46,  -490,  -490,  -490,  -490,   -55,
     -55,  -490,  -490,   545,   113,  1185,   174,   178,   187,   924,
     177,    28,  1468,   181,    71,  -490,  -490,  -490,  1440,  -490,
    -490,  -490,  -490,  -490,    74,   126,   -21,   127,   -18,    74,
     129,   130,    74,    74,    74,    74,    74,    74,  -490,    74,
      74,    74,    74,   131,  -490,  -490,  -490,   229,  -490,   192,
    -490,   197,  -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,
    -490,  -490,  -490,   623,  -490,  1098,   623,  -490,  -490,  -490,
    -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,
    -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,   196,  -490,
    -490,   497,    74,    74,   497,    74,    74,   497,   497,    74,
      74,   497,    91,   497,   497,   497,   497,    74,   497,   497,
     497,   497,    74,  -490,   208,  -490,  -490,  -490,  -490,  1359,
    -490,  -490,  -490,  -490,   204,   215,   136,   136,   136,  -490,
     136,   136,   136,   497,   497,   136,   497,   497,   136,   136,
     497,   497,   136,  -490,   140,   136,   136,   136,    91,   497,
     136,   136,   136,    -3,   497,   245,    41,   241,   248,   244,
     141,   146,   171,   242,   316,    91,    91,   541,    91,    91,
     316,   316,    91,    91,   541,  1361,  -490,  -490,   497,    28,
      28,   140,  -490,    58,  -490,   497,   541,   497,   253,   140,
      91,   258,  -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,
    -490,  -490,  -490,  -490,  -490,  -490,  -490,  -490,   136,   140,
     140,   136,   136,   136,   136,   136,   136,   136,   140,   140,
      91,    91,   140,   140,   136,  -490,   149,   151,   152,   155,
     158,   161,   164,    -9,   165,   167,   170,   173,   288,   183,
      25,  -490,    91,   136,   136,  -490,   497,   140,   136,   136,
      91,    91,  -490,   140,  -490,   136,   136,   316,  -490,  -490,
     289,   287,   290,   292,   286,   171,   371,  -490,  -490,   140,
     140,  -490,  -490,   371,   297,  1272,   298,   303,   263,   187,
    1011,   311,   312,    28,   315,  -490,    71,   317,  1361,  -490,
     140,    28,    28,  -490,  -490,   316,    28,   140,  -490,  -490,
     320,   329,    58,  -490,  -490,  -490,  -490,  -490,  -490,     6,
      19,    91,  -490,   136,  -490,  -490,    91,   136,  -490,  -490,
     229,  -490,   328,  -490,   333,  -490,  -490,   230,  -490,   623,
    -490,  1098,   623,  -490,  -490,  -490,  -490,  -490,  -490,  -490,
    -490,  -490,  -490,  -490,   136,    58,    91,    91,  -490,   140,
     330,   332,   195,   140,   -49,   334,    -4,   334,  -490,   344,
    -490,    28,  -490,  -490,  -490,  1359,  -490,  -490,  -490,  -490,
     347,    93,   140,   140,   140,  -490,   340,   341,   240,  -490,
      91,    58,  -490,  -490,   246,  -490,   109,   122,    91,   136,
     136,   136,  -490,   249,  -490,    91,   136,   136,   354,  -490,
     -12,  -490,    41,   136,    91,    58,  -490,  -490,  -490,  -490,
    -490,   356,   140,   316,   140,   339,   140,   316,    28,   512,
     331,   140,    28,   512,   367,   261,    28,  -490,   316,   140,
     140,  -490,  -490,  -490,  -490,    74,  -490,  -490,    91,    91,
    -490,    74,  -490,    91,    91,  -490,   316,  -490,   136,  -490,
    -490,   497,   140,   140,   497,   140,   140,     5,   316,   136,
    -490,  -490,   136,  -490,  -490,  -490,   136,   541,   541,   373,
     136,   136,    91,    28,    28,   140,    91,    91,  -490,  -490,
    -490
};

/* YYPGOTO[NTERM-NUM].  */
static const short yypgoto[] =
{
    -490,  -490,  -490,   338,  -490,  -490,  -490,  -490,  -490,   -24,
    -490,   234,  -490,  -490,   294,   -74,  -490,    13,   -79,  -113,
     198,  -276,   -97,   -16,  -243,  -400,   142,  -145,  -490,  -490,
     -61,   291,   -31,  -127,  -264,  -490,   295,  -490,  -490,  -490,
    -490,    20,  -490,  -490,  -490,  -490,  -490,    35,  -490,  -490,
    -490,  -490,  -490,    61,  -131,   -94,   -51,  -110,   -34,  -489,
     -40
};

/* 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 zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -253
static const short yytable[] =
{
     108,   329,   -44,   184,   165,   187,   188,     3,    85,   191,
     192,   193,   194,   195,   196,   -44,   198,   199,   200,   201,
     530,   314,   -44,   -44,   530,    82,   207,   164,   210,   212,
     -27,   160,   161,   339,   137,    94,   222,   162,   155,   225,
     163,   183,   228,   229,   186,   480,   232,   486,   235,   236,
     237,   238,   105,   240,   241,   242,   243,   109,   265,   150,
     151,   494,    86,    87,   138,   112,   113,   474,   156,   223,
     224,   152,   226,   227,   168,    95,   230,   231,   255,   256,
      96,   258,   259,    97,   239,   262,   263,   406,    98,   244,
     180,    99,   206,   180,   208,   211,   160,   161,   106,   280,
     515,   110,   162,   265,  -129,   163,   203,   106,   169,   233,
     437,   100,   483,   403,   329,   106,   106,   555,   135,   282,
     407,    55,    56,   332,   209,   170,   171,   172,   173,   106,
     338,   101,   340,  -252,  -252,   106,   102,   249,   250,   251,
     103,   252,   253,   254,   104,   174,   257,   468,   246,   260,
     261,    91,    92,   264,   286,   287,   268,   269,   270,   288,
     289,   275,   276,   277,   278,   -48,   -48,   -48,   106,   478,
     233,   485,   333,   334,   160,   161,   175,   176,   290,   140,
     297,   141,   159,   306,   167,   180,   297,   297,   182,   185,
     306,   189,   190,   202,   336,   164,   164,   204,   160,   161,
     205,   213,   306,   233,   292,   293,   294,   142,   295,   296,
     143,   144,   145,   245,   247,   146,   -53,   -53,   -53,   347,
     147,   -53,   248,   351,   352,   353,   354,   355,   356,   -52,
     -52,   -52,   528,   529,   -52,   363,   533,   534,   298,   105,
     -20,   -20,   106,   423,   310,   311,   106,   265,   281,   468,
       5,   378,   283,   285,   381,   382,   284,   219,   341,   385,
     386,   344,   364,     8,   365,   366,   390,   391,   367,     9,
      10,   368,    11,   297,   369,    13,   427,   370,   371,    15,
     372,   398,   400,   373,   434,   435,   374,   566,   567,   400,
     379,   148,   453,   375,   456,   458,   376,   394,   393,   164,
     397,   395,   408,   413,   410,   396,   414,   164,   164,   421,
     415,   297,   164,   442,   560,   561,   425,   426,   428,   160,
     161,   355,   431,   440,   445,   292,   293,   294,   447,   295,
     296,   392,   441,   449,   411,   429,   450,   160,   161,   422,
     466,   451,   467,   476,   293,   294,   163,   295,   296,   488,
     493,   499,   500,   501,   489,   460,   461,   514,   452,   521,
     454,   457,   525,   505,   489,   517,   510,   531,   297,   436,
     535,   477,   536,   477,   160,   161,   562,   164,   111,   448,
     399,   302,   303,   163,   304,   305,    84,   164,   468,   430,
     455,   459,   503,   166,   492,   291,   549,   383,   432,   552,
     507,   508,   509,   179,   418,   547,   537,   512,   513,   523,
     495,   516,   541,   487,   518,     0,   516,     0,   544,   489,
       0,     0,     0,     0,     0,     0,   469,     0,     0,   297,
       0,     0,     0,   297,   164,   477,   271,     0,   164,   477,
       0,   279,   164,     0,   297,     0,     0,     0,     0,     0,
       0,     0,     0,   299,   300,     0,   308,   309,     0,   548,
     312,   313,   297,     0,     0,     0,     0,     0,   503,     0,
     557,   337,     0,   558,   297,     0,     0,   559,   343,     0,
       0,   563,   564,   306,   306,     0,     0,   469,     0,   164,
     164,   527,     0,     0,     0,     0,     0,     0,     0,     0,
     214,   161,   538,   215,     0,   335,   216,     0,   359,   360,
     217,   218,   219,   342,     0,   160,   161,     0,     0,     0,
     469,   476,   293,   294,   163,   295,   296,     0,     0,     0,
     380,     0,   556,   348,   349,     0,     0,     0,   387,   388,
       0,     0,   357,   358,   160,   161,   361,   362,     0,     0,
     301,   302,   303,     0,   304,   305,     0,     0,     0,     0,
       0,     0,   114,     0,     0,   115,     0,     0,   116,   117,
     118,   384,   119,   120,     0,     0,     0,   389,   121,     0,
       0,   122,     0,   123,     0,     0,     0,     0,     0,     0,
     443,     0,     0,   404,   405,     0,   124,     0,     0,   444,
       0,     0,     0,   125,   446,   126,     0,   127,   128,   129,
       0,   130,   131,     0,   433,     0,   132,     0,     0,     0,
       0,   438,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   462,   463,   464,     0,     0,     0,     4,
       0,   150,   151,     0,     0,     0,     0,     0,     0,   133,
       0,     0,     0,   152,     0,     7,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,   502,   504,
       0,    14,     0,   465,     0,     0,   506,   473,   475,     0,
     484,     0,    17,   511,     0,     0,     0,     0,     0,     0,
       0,     0,   519,   520,     0,     0,   496,   497,   498,    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,   542,   543,     0,     0,
       0,   545,   546,     0,     0,     0,   522,     0,   524,     0,
     526,  -252,     0,     0,     0,   532,     0,     0,     0,     0,
       0,     0,     0,   539,   540,     0,     0,     4,     0,     0,
     565,     0,     5,     0,   569,   570,     0,     0,     0,     0,
       6,     0,     0,     7,     0,     8,   550,   551,     0,   553,
     554,     9,    10,     0,    11,    12,     0,    13,     0,    14,
       0,    15,     0,    16,     0,     0,     0,     0,     0,   568,
      17,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,    18,     0,    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,     0,     0,     4,     0,    47,    -5,
      -5,     5,     0,     0,     0,     0,     0,     0,     0,     6,
       0,     0,     7,     0,     8,     0,     0,     0,     0,     0,
       9,    10,     0,    11,    12,     0,    13,     0,    14,     0,
      15,     0,    16,     0,     0,     0,     0,     0,     0,    17,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    18,     0,    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,     0,     0,     0,     0,    47,    -5,    -5,
       4,     0,   150,   151,     0,     5,     0,     0,     0,     0,
       0,     0,     0,     0,   152,     0,     7,     0,     8,     0,
       0,     0,     0,     0,     9,    10,     0,    11,     0,     0,
      13,     0,    14,     0,    15,     0,   153,     0,     0,     0,
       0,     0,     0,    17,     0,   154,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      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,     4,     0,   150,
     151,     0,     5,     0,     0,     0,     0,     0,     0,     0,
       0,   152,     0,     7,     0,     8,     0,     0,     0,     0,
       0,     9,    10,     0,    11,     0,     0,    13,     0,    14,
       0,    15,     0,   419,     0,     0,     0,     0,     0,     0,
      17,     0,   420,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    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,     4,     0,   150,   151,     0,     5,
       0,     0,     0,     0,     0,     0,     0,     0,   152,     0,
       7,     0,     8,     0,     0,     0,     0,     0,     9,    10,
       0,    11,     0,     0,    13,     0,    14,     0,    15,     0,
       0,     0,     0,     0,     0,     0,     0,    17,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,    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,     4,     0,     0,     0,     0,     5,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     7,     0,     8,
       0,     0,     0,     0,     0,     9,    10,     0,    11,     0,
       0,    13,     0,    14,     0,    15,     0,   136,     0,     0,
       0,     0,     0,     0,    17,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    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,     4,     0,
       0,     0,     0,     5,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     7,     0,     8,     0,     0,     0,
       0,     0,     9,    10,     0,    11,     0,     0,    13,     0,
      14,     0,    15,     0,   409,     0,     0,     0,     0,     0,
       0,    17,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    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,     4,     0,     0,     0,     0,
       0,     0,     0,   315,     0,     0,     0,   316,   317,     0,
       0,     7,    61,     0,     0,     0,    62,     0,     0,     0,
      63,     0,     0,   318,     0,     0,    65,    14,     0,     0,
      66,     0,   319,     0,    68,     0,     0,     0,    17,   320,
       0,     0,     0,   321,     0,     0,    70,     0,   322,    72,
     323,   324,   325,   326,     0,    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,    58,     0,   327,     0,    59,    60,     0,     0,
       0,    61,     0,     0,     0,    62,     0,     0,     0,    63,
       0,     0,    64,     0,     0,    65,     0,     0,     0,    66,
       0,    67,     0,    68,     0,     0,     0,     0,     0,     0,
       0,     0,    69,     0,     0,    70,     0,    71,    72,    73,
       0,    74,    75,     0,     0,     0,    76,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    77,    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
};

static const short yycheck[] =
{
      79,   265,     5,   116,   101,   118,   119,     0,    48,   122,
     123,   124,   125,   126,   127,     9,   129,   130,   131,   132,
     509,   264,     3,     4,   513,     3,   153,   101,   155,   156,
       5,     3,     4,   276,    95,   113,   181,     9,    99,   184,
      12,    62,   187,   188,    62,   445,   191,   447,   193,   194,
     195,   196,   107,   198,   199,   200,   201,    81,   107,    18,
      19,   461,   108,   109,    95,    89,    90,   116,    99,   182,
     183,    30,   185,   186,     3,   113,   189,   190,   223,   224,
     113,   226,   227,   113,   197,   230,   231,   363,   113,   202,
     111,   113,   153,   111,   155,   156,     3,     4,   110,   244,
     112,     5,     9,   107,   113,    12,   137,   110,    37,   112,
     386,   113,   116,   356,   378,   110,   110,   112,     5,   246,
     363,    56,    57,   268,   155,    54,    55,    56,    57,   110,
     275,   113,   277,   108,   109,   110,   113,   216,   217,   218,
     113,   220,   221,   222,   113,    74,   225,    54,   209,   228,
     229,   114,   115,   232,    13,    14,   235,   236,   237,    13,
      14,   240,   241,   242,   243,   107,   108,   109,   110,   445,
     112,   447,   269,   270,     3,     4,   105,   106,   252,     5,
     254,     3,     5,   257,     3,   111,   260,   261,    62,    62,
     264,    62,    62,    62,   273,   269,   270,     5,     3,     4,
       3,     5,   276,   112,     9,    10,    11,    20,    13,    14,
      23,    24,    25,     5,    10,    28,   107,   108,   109,   298,
      33,   112,     7,   302,   303,   304,   305,   306,   307,   107,
     108,   109,   508,   509,   112,   314,   512,   513,   254,   107,
     108,   109,   110,   370,   260,   261,   110,   107,     3,    54,
      21,   330,    11,     9,   333,   334,     8,    15,     5,   338,
     339,     3,   113,    34,   113,   113,   345,   346,   113,    40,
      41,   113,    43,   347,   113,    46,   373,   113,   113,    50,
     113,   355,   356,   113,   381,   382,   113,   563,   564,   363,
     330,   104,   419,     5,   421,   422,   113,    10,     9,   373,
      14,    11,     5,     5,   365,    13,     3,   381,   382,   370,
      47,   385,   386,   392,   557,   558,     5,     5,     3,     3,
       4,   400,     5,     3,   403,     9,    10,    11,   407,    13,
      14,   347,     3,     5,   365,   375,     3,     3,     4,   370,
      10,   111,    10,     9,    10,    11,    12,    13,    14,     5,
       3,    11,    11,   113,   451,   434,   435,     3,   419,     3,
     421,   422,    23,   117,   461,   492,   117,    36,   442,   385,
       3,   445,   111,   447,     3,     4,     3,   451,    84,   410,
       9,    10,    11,    12,    13,    14,    48,   461,    54,   376,
     421,   431,   471,   102,   455,   253,   541,   336,   378,   544,
     479,   480,   481,   108,   369,   536,   516,   486,   487,   503,
     461,   490,   525,   447,   493,    -1,   495,    -1,   531,   516,
      -1,    -1,    -1,    -1,    -1,    -1,   442,    -1,    -1,   503,
      -1,    -1,    -1,   507,   508,   509,   238,    -1,   512,   513,
      -1,   243,   516,    -1,   518,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,   255,   256,    -1,   258,   259,    -1,   538,
     262,   263,   536,    -1,    -1,    -1,    -1,    -1,   547,    -1,
     549,   273,    -1,   552,   548,    -1,    -1,   556,   280,    -1,
      -1,   560,   561,   557,   558,    -1,    -1,   503,    -1,   563,
     564,   507,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
       3,     4,   518,     6,    -1,   271,     9,    -1,   310,   311,
      13,    14,    15,   279,    -1,     3,     4,    -1,    -1,    -1,
     536,     9,    10,    11,    12,    13,    14,    -1,    -1,    -1,
     332,    -1,   548,   299,   300,    -1,    -1,    -1,   340,   341,
      -1,    -1,   308,   309,     3,     4,   312,   313,    -1,    -1,
       9,    10,    11,    -1,    13,    14,    -1,    -1,    -1,    -1,
      -1,    -1,    17,    -1,    -1,    20,    -1,    -1,    23,    24,
      25,   337,    27,    28,    -1,    -1,    -1,   343,    33,    -1,
      -1,    36,    -1,    38,    -1,    -1,    -1,    -1,    -1,    -1,
     392,    -1,    -1,   359,   360,    -1,    51,    -1,    -1,   401,
      -1,    -1,    -1,    58,   406,    60,    -1,    62,    63,    64,
      -1,    66,    67,    -1,   380,    -1,    71,    -1,    -1,    -1,
      -1,   387,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,   435,   436,   437,    -1,    -1,    -1,    16,
      -1,    18,    19,    -1,    -1,    -1,    -1,    -1,    -1,   104,
      -1,    -1,    -1,    30,    -1,    32,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   470,   471,
      -1,    48,    -1,   439,    -1,    -1,   478,   443,   444,    -1,
     446,    -1,    59,   485,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   494,   495,    -1,    -1,   462,   463,   464,    76,
      77,    78,    79,    80,    81,    82,    83,    84,    85,    86,
      87,    88,    89,    90,    91,    92,    93,    94,    95,    96,
      97,    98,    99,   100,   101,   102,   528,   529,    -1,    -1,
      -1,   533,   534,    -1,    -1,    -1,   502,    -1,   504,    -1,
     506,     0,    -1,    -1,    -1,   511,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,   519,   520,    -1,    -1,    16,    -1,    -1,
     562,    -1,    21,    -1,   566,   567,    -1,    -1,    -1,    -1,
      29,    -1,    -1,    32,    -1,    34,   542,   543,    -1,   545,
     546,    40,    41,    -1,    43,    44,    -1,    46,    -1,    48,
      -1,    50,    -1,    52,    -1,    -1,    -1,    -1,    -1,   565,
      59,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    73,    -1,    75,    76,    77,    78,
      79,    80,    81,    82,    83,    84,    85,    86,    87,    88,
      89,    90,    91,    92,    93,    94,    95,    96,    97,    98,
      99,   100,   101,   102,    -1,    -1,    16,    -1,   107,   108,
     109,    21,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    29,
      -1,    -1,    32,    -1,    34,    -1,    -1,    -1,    -1,    -1,
      40,    41,    -1,    43,    44,    -1,    46,    -1,    48,    -1,
      50,    -1,    52,    -1,    -1,    -1,    -1,    -1,    -1,    59,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    73,    -1,    75,    76,    77,    78,    79,
      80,    81,    82,    83,    84,    85,    86,    87,    88,    89,
      90,    91,    92,    93,    94,    95,    96,    97,    98,    99,
     100,   101,   102,    -1,    -1,    -1,    -1,   107,   108,   109,
      16,    -1,    18,    19,    -1,    21,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    30,    -1,    32,    -1,    34,    -1,
      -1,    -1,    -1,    -1,    40,    41,    -1,    43,    -1,    -1,
      46,    -1,    48,    -1,    50,    -1,    52,    -1,    -1,    -1,
      -1,    -1,    -1,    59,    -1,    61,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      76,    77,    78,    79,    80,    81,    82,    83,    84,    85,
      86,    87,    88,    89,    90,    91,    92,    93,    94,    95,
      96,    97,    98,    99,   100,   101,   102,    16,    -1,    18,
      19,    -1,    21,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    30,    -1,    32,    -1,    34,    -1,    -1,    -1,    -1,
      -1,    40,    41,    -1,    43,    -1,    -1,    46,    -1,    48,
      -1,    50,    -1,    52,    -1,    -1,    -1,    -1,    -1,    -1,
      59,    -1,    61,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    76,    77,    78,
      79,    80,    81,    82,    83,    84,    85,    86,    87,    88,
      89,    90,    91,    92,    93,    94,    95,    96,    97,    98,
      99,   100,   101,   102,    16,    -1,    18,    19,    -1,    21,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    30,    -1,
      32,    -1,    34,    -1,    -1,    -1,    -1,    -1,    40,    41,
      -1,    43,    -1,    -1,    46,    -1,    48,    -1,    50,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    59,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    76,    77,    78,    79,    80,    81,
      82,    83,    84,    85,    86,    87,    88,    89,    90,    91,
      92,    93,    94,    95,    96,    97,    98,    99,   100,   101,
     102,    16,    -1,    -1,    -1,    -1,    21,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    32,    -1,    34,
      -1,    -1,    -1,    -1,    -1,    40,    41,    -1,    43,    -1,
      -1,    46,    -1,    48,    -1,    50,    -1,    52,    -1,    -1,
      -1,    -1,    -1,    -1,    59,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    76,    77,    78,    79,    80,    81,    82,    83,    84,
      85,    86,    87,    88,    89,    90,    91,    92,    93,    94,
      95,    96,    97,    98,    99,   100,   101,   102,    16,    -1,
      -1,    -1,    -1,    21,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    32,    -1,    34,    -1,    -1,    -1,
      -1,    -1,    40,    41,    -1,    43,    -1,    -1,    46,    -1,
      48,    -1,    50,    -1,    52,    -1,    -1,    -1,    -1,    -1,
      -1,    59,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    76,    77,
      78,    79,    80,    81,    82,    83,    84,    85,    86,    87,
      88,    89,    90,    91,    92,    93,    94,    95,    96,    97,
      98,    99,   100,   101,   102,    16,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    22,    -1,    -1,    -1,    26,    27,    -1,
      -1,    32,    31,    -1,    -1,    -1,    35,    -1,    -1,    -1,
      39,    -1,    -1,    42,    -1,    -1,    45,    48,    -1,    -1,
      49,    -1,    51,    -1,    53,    -1,    -1,    -1,    59,    58,
      -1,    -1,    -1,    62,    -1,    -1,    65,    -1,    67,    68,
      69,    70,    71,    72,    -1,    76,    77,    78,    79,    80,
      81,    82,    83,    84,    85,    86,    87,    88,    89,    90,
      91,    92,    93,    94,    95,    96,    97,    98,    99,   100,
     101,   102,    22,    -1,   103,    -1,    26,    27,    -1,    -1,
      -1,    31,    -1,    -1,    -1,    35,    -1,    -1,    -1,    39,
      -1,    -1,    42,    -1,    -1,    45,    -1,    -1,    -1,    49,
      -1,    51,    -1,    53,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    62,    -1,    -1,    65,    -1,    67,    68,    69,
      -1,    71,    72,    -1,    -1,    -1,    76,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,   103,    76,    77,    78,    79,    80,    81,
      82,    83,    84,    85,    86,    87,    88,    89,    90,    91,
      92,    93,    94,    95,    96,    97,    98,    99,   100,   101,
     102
};

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

#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# define YYSIZE_T __SIZE_TYPE__
#endif
#if ! defined (YYSIZE_T) && defined (size_t)
# define YYSIZE_T size_t
#endif
#if ! defined (YYSIZE_T)
# if defined (__STDC__) || defined (__cplusplus)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# endif
#endif
#if ! defined (YYSIZE_T)
# define YYSIZE_T unsigned int
#endif

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

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


/* 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.  */

#define YYFAIL          goto yyerrlab

#define YYRECOVERING()  (!!yyerrstatus)

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

#define YYTERROR  1
#define YYERRCODE 256

/* YYLLOC_DEFAULT -- Compute the default location (before the actions
   are run).  */

#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)         \
  Current.first_line   = Rhs[1].first_line;      \
  Current.first_column = Rhs[1].first_column;    \
  Current.last_line    = Rhs[N].last_line;       \
  Current.last_column  = Rhs[N].last_column;
#endif

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

#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
#else
# define YYLEX yylex ()
#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 (0)

# define YYDSYMPRINT(Args)                \
do {                                \
  if (yydebug)                            \
    yysymprint Args;                      \
} while (0)

# define YYDSYMPRINTF(Title, Token, Value, Location)        \
do {                                            \
  if (yydebug)                                        \
    {                                           \
      YYFPRINTF (stderr, "%s ", Title);                     \
      yysymprint (stderr,                             \
                  Token, Value);    \
      YYFPRINTF (stderr, "\n");                             \
    }                                           \
} while (0)

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

#if defined (__STDC__) || defined (__cplusplus)
static void
yy_stack_print (short *bottom, short *top)
#else
static void
yy_stack_print (bottom, top)
    short *bottom;
    short *top;
#endif
{
  YYFPRINTF (stderr, "Stack now");
  for (/* Nothing. */; bottom <= top; ++bottom)
    YYFPRINTF (stderr, " %d", *bottom);
  YYFPRINTF (stderr, "\n");
}

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


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

#if defined (__STDC__) || defined (__cplusplus)
static void
yy_reduce_print (int yyrule)
#else
static void
yy_reduce_print (yyrule)
    int yyrule;
#endif
{
  int yyi;
  unsigned int yylineno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
             yyrule - 1, yylineno);
  /* Print the symbols being reduced, and their result.  */
  for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
    YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
  YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
}

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

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YYDSYMPRINT(Args)
# define YYDSYMPRINTF(Title, Token, 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
   SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#if YYMAXDEPTH == 0
# undef YYMAXDEPTH
#endif

#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.  */
static YYSIZE_T
#   if defined (__STDC__) || defined (__cplusplus)
yystrlen (const char *yystr)
#   else
yystrlen (yystr)
     const char *yystr;
#   endif
{
  register const char *yys = yystr;

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

  return yys - yystr - 1;
}
#  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.  */
static char *
#   if defined (__STDC__) || defined (__cplusplus)
yystpcpy (char *yydest, const char *yysrc)
#   else
yystpcpy (yydest, yysrc)
     char *yydest;
     const char *yysrc;
#   endif
{
  register char *yyd = yydest;
  register const char *yys = yysrc;

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

  return yyd - 1;
}
#  endif
# endif

#endif /* !YYERROR_VERBOSE */



#if YYDEBUG
/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

#if defined (__STDC__) || defined (__cplusplus)
static void
yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
#else
static void
yysymprint (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE *yyvaluep;
#endif
{
  /* Pacify ``unused variable'' warnings.  */
  (void) yyvaluep;

  if (yytype < YYNTOKENS)
    {
      YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
# ifdef YYPRINT
      YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# endif
    }
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  switch (yytype)
    {
      default:
        break;
    }
  YYFPRINTF (yyoutput, ")");
}

#endif /* ! YYDEBUG */
/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

#if defined (__STDC__) || defined (__cplusplus)
static void
yydestruct (int yytype, YYSTYPE *yyvaluep)
#else
static void
yydestruct (yytype, yyvaluep)
    int yytype;
    YYSTYPE *yyvaluep;
#endif
{
  /* Pacify ``unused variable'' warnings.  */
  (void) yyvaluep;

  switch (yytype)
    {

      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 (void);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */



/* The lookahead symbol.  */
int yychar;

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

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



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

#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
int yyparse (void *YYPARSE_PARAM)
# else
int yyparse (YYPARSE_PARAM)
  void *YYPARSE_PARAM;
# endif
#else /* ! YYPARSE_PARAM */
#if defined (__STDC__) || defined (__cplusplus)
int
yyparse (void)
#else
int
yyparse ()

#endif
#endif
{
  
  register int yystate;
  register int yyn;
  int yyresult;
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  /* Lookahead token as an internal (translated) token number.  */
  int yytoken = 0;

  /* Three stacks and their tools:
     `yyss': related to states,
     `yyvs': related to semantic values,
     `yyls': related to locations.

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

  /* The state stack.  */
  short     yyssa[YYINITDEPTH];
  short *yyss = yyssa;
  register short *yyssp;

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



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

  YYSIZE_T yystacksize = YYINITDEPTH;

  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;


  /* When reducing, the number of symbols on the RHS of the reduced
     rule.  */
  int yylen;

  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;
      short *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 ("parser stack overflow",
                &yyss1, yysize * sizeof (*yyssp),
                &yyvs1, yysize * sizeof (*yyvsp),

                &yystacksize);

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

      {
      short *yyss1 = yyss;
      union yyalloc *yyptr =
        (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
      if (! yyptr)
        goto yyoverflowlab;
      YYSTACK_RELOCATE (yyss);
      YYSTACK_RELOCATE (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));

  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.  */
/* yyresume: */

  /* First try to decide what to do without reference to lookahead token.  */

  yyn = yypact[yystate];
  if (yyn == YYPACT_NINF)
    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);
      YYDSYMPRINTF ("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 (yyn == 0 || yyn == YYTABLE_NINF)
      goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Shift the lookahead token.  */
  YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));

  /* Discard the token being shifted unless it is eof.  */
  if (yychar != YYEOF)
    yychar = YYEMPTY;

  *++yyvsp = yylval;


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

  yystate = yyn;
  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 7:
#line 262 "ds9parser.Y"
    {cerr << "DS9 Regions File 3.0" << endl;;}
    break;

  case 9:
#line 264 "ds9parser.Y"
    {globalTile = yyvsp[0].integer;;}
    break;

  case 10:
#line 265 "ds9parser.Y"
    {globalSystem = (CoordSystem)yyvsp[0].integer;;}
    break;

  case 12:
#line 266 "ds9parser.Y"
    {globalSystem = WCS; globalSky = (SkyFrame)yyvsp[0].integer;;}
    break;

  case 14:
#line 267 "ds9parser.Y"
    {globalSystem = globalWCS; globalSky = NATIVEWCS;;}
    break;

  case 18:
#line 272 "ds9parser.Y"
    {DISCARD_(0);}
    break;

  case 21:
#line 276 "ds9parser.Y"
    {DISCARD_(1);}
    break;

  case 24:
#line 280 "ds9parser.Y"
    {DISCARD_(1);}
    break;

  case 25:
#line 281 "ds9parser.Y"
    {strncpy(localComment,yyvsp[-1].str,80);;}
    break;

  case 27:
#line 283 "ds9parser.Y"
    {DISCARD_(1);}
    break;

  case 28:
#line 284 "ds9parser.Y"
    {strncpy(localComment,yyvsp[-1].str,80);;}
    break;

  case 31:
#line 291 "ds9parser.Y"
    {yyval.real=yyvsp[0].real;;}
    break;

  case 32:
#line 292 "ds9parser.Y"
    {yyval.real=yyvsp[0].integer;;}
    break;

  case 33:
#line 295 "ds9parser.Y"
    {yydebug=1;;}
    break;

  case 34:
#line 296 "ds9parser.Y"
    {yydebug=0;;}
    break;

  case 35:
#line 299 "ds9parser.Y"
    {yyval.integer=(yyvsp[0].integer ? 1 : 0);;}
    break;

  case 36:
#line 301 "ds9parser.Y"
    {yyval.integer=1;;}
    break;

  case 37:
#line 302 "ds9parser.Y"
    {yyval.integer=1;;}
    break;

  case 38:
#line 303 "ds9parser.Y"
    {yyval.integer=1;;}
    break;

  case 39:
#line 304 "ds9parser.Y"
    {yyval.integer=1;;}
    break;

  case 40:
#line 306 "ds9parser.Y"
    {yyval.integer=0;;}
    break;

  case 41:
#line 307 "ds9parser.Y"
    {yyval.integer=0;;}
    break;

  case 42:
#line 308 "ds9parser.Y"
    {yyval.integer=0;;}
    break;

  case 43:
#line 309 "ds9parser.Y"
    {yyval.integer=0;;}
    break;

  case 50:
#line 324 "ds9parser.Y"
    {yyval.real = FR->mapAngleToRef(0,localSystem);;}
    break;

  case 51:
#line 325 "ds9parser.Y"
    {yyval.real = yyvsp[0].real;;}
    break;

  case 52:
#line 328 "ds9parser.Y"
    {yyval.real = FR->mapAngleToRef(degToRad(yyvsp[0].real),localSystem);;}
    break;

  case 53:
#line 329 "ds9parser.Y"
    {yyval.real = FR->mapAngleToRef(degToRad(yyvsp[0].real),localSystem);;}
    break;

  case 54:
#line 330 "ds9parser.Y"
    {yyval.real = FR->mapAngleToRef(yyvsp[0].real,localSystem);;}
    break;

  case 55:
#line 333 "ds9parser.Y"
    {yyval.real = FITSPTR->mapLenToRef(yyvsp[0].real, localSystem, DEGREES);;}
    break;

  case 56:
#line 334 "ds9parser.Y"
    {yyval.real = FITSPTR->mapLenToRef(yyvsp[0].real, PHYSICAL);;}
    break;

  case 57:
#line 335 "ds9parser.Y"
    {yyval.real = FITSPTR->mapLenToRef(yyvsp[0].real, IMAGE);;}
    break;

  case 58:
#line 336 "ds9parser.Y"
    {yyval.real = FITSPTR->mapLenToRef(yyvsp[0].real, checkWCSSystem(), DEGREES);;}
    break;

  case 59:
#line 337 "ds9parser.Y"
    {yyval.real = FITSPTR->mapLenToRef(yyvsp[0].real, checkWCSSystem(), ARCMIN);;}
    break;

  case 60:
#line 338 "ds9parser.Y"
    {yyval.real = FITSPTR->mapLenToRef(yyvsp[0].real, checkWCSSystem(), ARCSEC);;}
    break;

  case 61:
#line 342 "ds9parser.Y"
    {
        Vector r = FITSPTR->mapLenToRef(Vector(yyvsp[-2].real,yyvsp[0].real), localSystem, DEGREES);
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 62:
#line 349 "ds9parser.Y"
    {
        Vector r = FITSPTR->mapLenToRef(Vector(yyvsp[-2].real,yyvsp[0].real), PHYSICAL);
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 63:
#line 356 "ds9parser.Y"
    {
        Vector r = FITSPTR->mapLenToRef(Vector(yyvsp[-2].real,yyvsp[0].real), IMAGE);
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 64:
#line 363 "ds9parser.Y"
    {
        Vector r=FITSPTR->mapLenToRef(Vector(yyvsp[-2].real,yyvsp[0].real),checkWCSSystem(),DEGREES);
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 65:
#line 370 "ds9parser.Y"
    {
        Vector r=FITSPTR->mapLenToRef(Vector(yyvsp[-2].real,yyvsp[0].real),checkWCSSystem(),ARCMIN);
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 66:
#line 377 "ds9parser.Y"
    {
        Vector r=FITSPTR->mapLenToRef(Vector(yyvsp[-2].real,yyvsp[0].real),checkWCSSystem(),ARCSEC);
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 67:
#line 385 "ds9parser.Y"
    {yyval.integer = yyvsp[0].integer;;}
    break;

  case 68:
#line 388 "ds9parser.Y"
    {yyval.real = parseDMS(yyvsp[0].str);;}
    break;

  case 69:
#line 392 "ds9parser.Y"
    {
        Vector r;
        CoordSystem sys = checkWCSSystem();
        SkyFrame sky = checkWCSSky();
        if (sky == GALACTIC || sky == ECLIPTIC) 
          r = FITSPTR->mapToRef(Vector(yyvsp[-2].real,yyvsp[0].real), sys, sky);
        else
          r = FITSPTR->mapToRef(Vector(yyvsp[-2].real*360./24.,yyvsp[0].real), sys, sky);

        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 70:
#line 405 "ds9parser.Y"
    {mksign2 = mksign;;}
    break;

  case 71:
#line 406 "ds9parser.Y"
    {
        Vector r = FITSPTR->mapToRef(
          Vector(hmsToDegree(mksign2,yyvsp[-7].integer,yyvsp[-6].integer,yyvsp[-5].real),dmsToDegree(mksign,yyvsp[-2].integer,yyvsp[-1].real,yyvsp[0].real)),
          checkWCSSystem(), checkWCSSky());
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 72:
#line 414 "ds9parser.Y"
    {mksign2 = mksign;;}
    break;

  case 73:
#line 416 "ds9parser.Y"
    {
        Vector r = FITSPTR->mapToRef(
          Vector(dmsToDegree(mksign2,yyvsp[-7].integer,yyvsp[-6].real,yyvsp[-5].real),dmsToDegree(mksign,yyvsp[-2].integer,yyvsp[-1].real,yyvsp[0].real)),
          checkWCSSystem(), checkWCSSky());
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 74:
#line 425 "ds9parser.Y"
    {
        Vector r = FITSPTR->mapToRef(Vector(yyvsp[-2].real,yyvsp[0].real), localSystem, localSky);
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 75:
#line 432 "ds9parser.Y"
    {
        Vector r = FITSPTR->mapToRef(Vector(yyvsp[-2].real,yyvsp[0].real), 
          checkWCSSystem(), checkWCSSky());
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 76:
#line 440 "ds9parser.Y"
    {
        Vector r = FITSPTR->mapToRef(Vector(yyvsp[-2].real,yyvsp[0].real), IMAGE);
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
        yyval.vector[2] = r[2];
      ;}
    break;

  case 77:
#line 447 "ds9parser.Y"
    {
        Vector r = FITSPTR->mapToRef(Vector(yyvsp[-2].real,yyvsp[0].real), PHYSICAL);
        yyval.vector[0] = r[0];
        yyval.vector[1] = r[1];
      ;}
    break;

  case 78:
#line 453 "ds9parser.Y"
    {
        Vector rx = FITSPTR->mapToRef(Vector(yyvsp[-2].real,yyvsp[-2].real), IMAGE);
        Vector ry = FITSPTR->mapToRef(Vector(yyvsp[0].real,yyvsp[0].real), PHYSICAL);
        yyval.vector[0] = rx[0];
        yyval.vector[1] = ry[0];
        yyval.vector[2] = 1;
      ;}
    break;

  case 79:
#line 461 "ds9parser.Y"
    {
        Vector rx = FITSPTR->mapToRef(Vector(yyvsp[-2].real,yyvsp[-2].real), PHYSICAL);
        Vector ry = FITSPTR->mapToRef(Vector(yyvsp[0].real,yyvsp[0].real), IMAGE);
        yyval.vector[0] = rx[0];
        yyval.vector[1] = ry[0];
        yyval.vector[2] = 1;
      ;}
    break;

  case 80:
#line 470 "ds9parser.Y"
    {yyval.integer = IMAGE;;}
    break;

  case 81:
#line 471 "ds9parser.Y"
    {yyval.integer = PHYSICAL;;}
    break;

  case 82:
#line 472 "ds9parser.Y"
    {yyval.integer = DETECTOR;;}
    break;

  case 83:
#line 473 "ds9parser.Y"
    {yyval.integer = AMPLIFIER;;}
    break;

  case 84:
#line 474 "ds9parser.Y"
    {yyval.integer = yyvsp[0].integer;;}
    break;

  case 85:
#line 477 "ds9parser.Y"
    {yyval.integer = WCS;;}
    break;

  case 86:
#line 478 "ds9parser.Y"
    {yyval.integer = WCSA;;}
    break;

  case 87:
#line 479 "ds9parser.Y"
    {yyval.integer = WCSB;;}
    break;

  case 88:
#line 480 "ds9parser.Y"
    {yyval.integer = WCSC;;}
    break;

  case 89:
#line 481 "ds9parser.Y"
    {yyval.integer = WCSD;;}
    break;

  case 90:
#line 482 "ds9parser.Y"
    {yyval.integer = WCSE;;}
    break;

  case 91:
#line 483 "ds9parser.Y"
    {yyval.integer = WCSF;;}
    break;

  case 92:
#line 484 "ds9parser.Y"
    {yyval.integer = WCSG;;}
    break;

  case 93:
#line 485 "ds9parser.Y"
    {yyval.integer = WCSH;;}
    break;

  case 94:
#line 486 "ds9parser.Y"
    {yyval.integer = WCSI;;}
    break;

  case 95:
#line 487 "ds9parser.Y"
    {yyval.integer = WCSJ;;}
    break;

  case 96:
#line 488 "ds9parser.Y"
    {yyval.integer = WCSK;;}
    break;

  case 97:
#line 489 "ds9parser.Y"
    {yyval.integer = WCSL;;}
    break;

  case 98:
#line 490 "ds9parser.Y"
    {yyval.integer = WCSM;;}
    break;

  case 99:
#line 491 "ds9parser.Y"
    {yyval.integer = WCSN;;}
    break;

  case 100:
#line 492 "ds9parser.Y"
    {yyval.integer = WCSO;;}
    break;

  case 101:
#line 493 "ds9parser.Y"
    {yyval.integer = WCSP;;}
    break;

  case 102:
#line 494 "ds9parser.Y"
    {yyval.integer = WCSQ;;}
    break;

  case 103:
#line 495 "ds9parser.Y"
    {yyval.integer = WCSR;;}
    break;

  case 104:
#line 496 "ds9parser.Y"
    {yyval.integer = WCSS;;}
    break;

  case 105:
#line 497 "ds9parser.Y"
    {yyval.integer = WCST;;}
    break;

  case 106:
#line 498 "ds9parser.Y"
    {yyval.integer = WCSU;;}
    break;

  case 107:
#line 499 "ds9parser.Y"
    {yyval.integer = WCSV;;}
    break;

  case 108:
#line 500 "ds9parser.Y"
    {yyval.integer = WCSW;;}
    break;

  case 109:
#line 501 "ds9parser.Y"
    {yyval.integer = WCSX;;}
    break;

  case 110:
#line 502 "ds9parser.Y"
    {yyval.integer = WCSY;;}
    break;

  case 111:
#line 503 "ds9parser.Y"
    {yyval.integer = WCSZ;;}
    break;

  case 112:
#line 506 "ds9parser.Y"
    {yyval.integer = FK4;;}
    break;

  case 113:
#line 507 "ds9parser.Y"
    {yyval.integer = FK4;;}
    break;

  case 114:
#line 508 "ds9parser.Y"
    {yyval.integer = FK5;;}
    break;

  case 115:
#line 509 "ds9parser.Y"
    {yyval.integer = FK5;;}
    break;

  case 116:
#line 510 "ds9parser.Y"
    {yyval.integer = ICRS;;}
    break;

  case 117:
#line 511 "ds9parser.Y"
    {yyval.integer = GALACTIC;;}
    break;

  case 118:
#line 512 "ds9parser.Y"
    {yyval.integer = ECLIPTIC;;}
    break;

  case 119:
#line 515 "ds9parser.Y"
    {yyval.integer=DEGREES;;}
    break;

  case 120:
#line 516 "ds9parser.Y"
    {yyval.integer=ARCMIN;;}
    break;

  case 121:
#line 517 "ds9parser.Y"
    {yyval.integer=ARCSEC;;}
    break;

  case 122:
#line 520 "ds9parser.Y"
    {yyval.integer = Marker::SELECT;;}
    break;

  case 123:
#line 521 "ds9parser.Y"
    {yyval.integer = Marker::EDIT;;}
    break;

  case 124:
#line 522 "ds9parser.Y"
    {yyval.integer = Marker::MOVE;;}
    break;

  case 125:
#line 523 "ds9parser.Y"
    {yyval.integer = Marker::ROTATE;;}
    break;

  case 126:
#line 524 "ds9parser.Y"
    {yyval.integer = Marker::DELETE;;}
    break;

  case 127:
#line 525 "ds9parser.Y"
    {yyval.integer = Marker::HIGHLITE;;}
    break;

  case 128:
#line 526 "ds9parser.Y"
    {yyval.integer = Marker::INCLUDE;;}
    break;

  case 129:
#line 527 "ds9parser.Y"
    {yyval.integer = Marker::SOURCE;;}
    break;

  case 130:
#line 528 "ds9parser.Y"
    {yyval.integer = Marker::FIXED;;}
    break;

  case 133:
#line 536 "ds9parser.Y"
    {
        setProps(&globalProps,yyvsp[-2].integer,yyvsp[0].integer);
        setProps(&localProps,yyvsp[-2].integer,yyvsp[0].integer);
      ;}
    break;

  case 134:
#line 541 "ds9parser.Y"
    {
        strncpy(globalColor,yyvsp[0].str,16);
        strncpy(localColor,yyvsp[0].str,16);
      ;}
    break;

  case 135:
#line 545 "ds9parser.Y"
    {globalWidth = localWidth = yyvsp[0].integer;;}
    break;

  case 136:
#line 547 "ds9parser.Y"
    {
        strncpy(globalFont,yyvsp[0].str,32);
        strncpy(localFont,yyvsp[0].str,32);
      ;}
    break;

  case 137:
#line 552 "ds9parser.Y"
    {
        strncpy(globalText,yyvsp[0].str,80);
        strncpy(localText,yyvsp[0].str,80);
      ;}
    break;

  case 138:
#line 557 "ds9parser.Y"
    {
        setProps(&globalProps,Marker::SOURCE,1);
        setProps(&localProps,Marker::SOURCE,1);
      ;}
    break;

  case 139:
#line 562 "ds9parser.Y"
    {
        setProps(&globalProps,Marker::SOURCE,0);
        setProps(&localProps,Marker::SOURCE,0);
      ;}
    break;

  case 140:
#line 567 "ds9parser.Y"
    {
        globalPoint = localPoint = yyvsp[0].integer;
      ;}
    break;

  case 141:
#line 571 "ds9parser.Y"
    {
        globalLine1 = localLine1 = yyvsp[-1].integer;
        globalLine2 = localLine2 = yyvsp[0].integer;
      ;}
    break;

  case 142:
#line 576 "ds9parser.Y"
    {
      ;}
    break;

  case 143:
#line 579 "ds9parser.Y"
    {
        strncpy(globalCompassNorth,yyvsp[-3].str,80);
        strncpy(globalCompassEast,yyvsp[-2].str,80);
        strncpy(localCompassNorth,yyvsp[-3].str,80);
        strncpy(localCompassEast,yyvsp[-2].str,80);
        globalCompassNArrow = localCompassNArrow = yyvsp[-1].integer;
        globalCompassEArrow = localCompassEArrow = yyvsp[0].integer;
      ;}
    break;

  case 144:
#line 588 "ds9parser.Y"
    {
        globalTextAngle = localTextAngle = yyvsp[0].real;
      ;}
    break;

  case 145:
#line 591 "ds9parser.Y"
    {globalWCS = (CoordSystem)yyvsp[0].integer;;}
    break;

  case 146:
#line 595 "ds9parser.Y"
    {
        globalRulerCoordSystem = localRulerCoordSystem = (CoordSystem)yyvsp[-3].integer;
        globalRulerSkyFrame = localRulerSkyFrame = (SkyFrame)yyvsp[-2].integer;
        globalRulerDistSystem = localRulerDistSystem = (CoordSystem)yyvsp[-1].integer;
        globalRulerDistFormat = localRulerDistFormat = (SkyFormat)yyvsp[0].integer;
      ;}
    break;

  case 147:
#line 602 "ds9parser.Y"
    {
        globalRulerCoordSystem = localRulerCoordSystem = (CoordSystem)yyvsp[-1].integer;
        globalRulerSkyFrame = localRulerSkyFrame = FK5;
        globalRulerDistSystem = localRulerDistSystem = (CoordSystem)yyvsp[0].integer;
        globalRulerDistFormat = localRulerDistFormat = DEGREES;
      ;}
    break;

  case 148:
#line 609 "ds9parser.Y"
    {
        globalRulerCoordSystem = localRulerCoordSystem = (CoordSystem)yyvsp[-1].integer;
        globalRulerSkyFrame = localRulerSkyFrame = FK5;
        globalRulerDistSystem = localRulerDistSystem = WCS;
        globalRulerDistFormat = localRulerDistFormat = (SkyFormat)yyvsp[0].integer;
      ;}
    break;

  case 149:
#line 616 "ds9parser.Y"
    {
        globalRulerCoordSystem = localRulerCoordSystem = WCS;
        globalRulerSkyFrame = localRulerSkyFrame = (SkyFrame)yyvsp[-1].integer;
        globalRulerDistSystem = localRulerDistSystem = (CoordSystem)yyvsp[0].integer;
        globalRulerDistFormat = localRulerDistFormat = DEGREES;
      ;}
    break;

  case 150:
#line 623 "ds9parser.Y"
    {
        globalRulerCoordSystem = localRulerCoordSystem = WCS;
        globalRulerSkyFrame = localRulerSkyFrame = (SkyFrame)yyvsp[-1].integer;
        globalRulerDistSystem = localRulerDistSystem = WCS;
        globalRulerDistFormat = localRulerDistFormat = (SkyFormat)yyvsp[0].integer;
      ;}
    break;

  case 151:
#line 630 "ds9parser.Y"
    {
        globalRulerCoordSystem = localRulerCoordSystem = WCS;
        globalRulerSkyFrame = localRulerSkyFrame = FK5;
        globalRulerDistSystem = localRulerDistSystem = (CoordSystem)yyvsp[0].integer;
        globalRulerDistFormat = localRulerDistFormat = DEGREES;
      ;}
    break;

  case 152:
#line 637 "ds9parser.Y"
    {
        globalRulerCoordSystem = localRulerCoordSystem = WCS;
        globalRulerSkyFrame = localRulerSkyFrame = FK5;
        globalRulerDistSystem = localRulerDistSystem = WCS;
        globalRulerDistFormat = localRulerDistFormat = (SkyFormat)yyvsp[0].integer;
      ;}
    break;

  case 153:
#line 644 "ds9parser.Y"
    {
        globalRulerCoordSystem = localRulerCoordSystem = IMAGE;
        globalRulerSkyFrame = localRulerSkyFrame = FK5;
        globalRulerDistSystem = localRulerDistSystem = WCS;
        globalRulerDistFormat = localRulerDistFormat = (SkyFormat)yyvsp[0].integer;
      ;}
    break;

  case 154:
#line 651 "ds9parser.Y"
    {
        globalRulerCoordSystem = localRulerCoordSystem = IMAGE;
        globalRulerSkyFrame = localRulerSkyFrame = FK5;
        globalRulerDistSystem = localRulerDistSystem = IMAGE;
        globalRulerDistFormat = localRulerDistFormat = DEGREES;
      ;}
    break;

  case 155:
#line 660 "ds9parser.Y"
    {
        globalCompassCoordSystem = localCompassCoordSystem = (CoordSystem)yyvsp[-1].integer;
        globalCompassSkyFrame = localCompassSkyFrame = (SkyFrame)yyvsp[0].integer;
      ;}
    break;

  case 156:
#line 665 "ds9parser.Y"
    {
        globalCompassCoordSystem = localCompassCoordSystem = (CoordSystem)yyvsp[0].integer;
        globalCompassSkyFrame = localCompassSkyFrame = FK5;
      ;}
    break;

  case 157:
#line 670 "ds9parser.Y"
    {
        globalCompassCoordSystem = localCompassCoordSystem = WCS;
        globalCompassSkyFrame = localCompassSkyFrame = (SkyFrame)yyvsp[0].integer;
      ;}
    break;

  case 158:
#line 675 "ds9parser.Y"
    {
        globalCompassCoordSystem = localCompassCoordSystem = WCS;
        globalCompassSkyFrame = localCompassSkyFrame = FK5;
      ;}
    break;

  case 159:
#line 681 "ds9parser.Y"
    {
        // global properties
        globalSystem = PHYSICAL;
        globalWCS = WCS;
        globalSky = NATIVEWCS;
        globalTile = 1;
        globalProps =
          Marker::SELECT | Marker::EDIT | Marker::MOVE |
          Marker::ROTATE | Marker::DELETE | Marker::HIGHLITE |
          Marker::INCLUDE | Marker::SOURCE;
        strcpy(globalColor,"green");
          globalWidth = 1;
        strcpy(globalFont,"helvetica 10 normal");
        strcpy(globalText,"");

        // unique properties
        globalLine1 = 0;
        globalLine2 = 0;
        globalRulerCoordSystem = PHYSICAL;
        globalRulerSkyFrame = FK5;
        globalRulerDistSystem = PHYSICAL;
        globalRulerDistFormat = DEGREES;
        globalCompassCoordSystem = PHYSICAL;
        globalCompassSkyFrame = FK5;
        strcpy(globalCompassNorth,"N");
        strcpy(globalCompassEast,"E");
        globalCompassNArrow = 1;
        globalCompassEArrow = 1;
        globalPoint = BOXCIRCLE;
        globalTextAngle=0;

        aStatus = 0;
      ;}
    break;

  case 162:
#line 720 "ds9parser.Y"
    {setProps(&localProps,yyvsp[-2].integer,yyvsp[0].integer);;}
    break;

  case 163:
#line 721 "ds9parser.Y"
    {strncpy(localColor,yyvsp[0].str,16);;}
    break;

  case 164:
#line 722 "ds9parser.Y"
    {localWidth = yyvsp[0].integer;;}
    break;

  case 165:
#line 723 "ds9parser.Y"
    {strncpy(localFont,yyvsp[0].str,32);;}
    break;

  case 166:
#line 724 "ds9parser.Y"
    {strncpy(localText,yyvsp[0].str,80);;}
    break;

  case 167:
#line 725 "ds9parser.Y"
    {taglist.append(new Tag(yyvsp[0].str));;}
    break;

  case 168:
#line 726 "ds9parser.Y"
    {setProps(&localProps,Marker::SOURCE,1);;}
    break;

  case 169:
#line 727 "ds9parser.Y"
    {setProps(&localProps,Marker::SOURCE,0);;}
    break;

  case 170:
#line 729 "ds9parser.Y"
    {localPoint = yyvsp[0].integer;;}
    break;

  case 171:
#line 730 "ds9parser.Y"
    {localLine1=yyvsp[-1].integer; localLine2=yyvsp[0].integer;;}
    break;

  case 173:
#line 733 "ds9parser.Y"
    {
        strncpy(localCompassNorth,yyvsp[-3].str,80);
        strncpy(localCompassEast,yyvsp[-2].str,80);
        localCompassNArrow = yyvsp[-1].integer;
        localCompassEArrow = yyvsp[0].integer;
      ;}
    break;

  case 174:
#line 739 "ds9parser.Y"
    {localTextAngle=yyvsp[0].real;;}
    break;

  case 176:
#line 744 "ds9parser.Y"
    {
        localRulerCoordSystem = (CoordSystem)yyvsp[-3].integer;
        localRulerSkyFrame = (SkyFrame)yyvsp[-2].integer;
        localRulerDistSystem = (CoordSystem)yyvsp[-1].integer;
        localRulerDistFormat = (SkyFormat)yyvsp[0].integer;
      ;}
    break;

  case 177:
#line 751 "ds9parser.Y"
    {
        localRulerCoordSystem = (CoordSystem)yyvsp[-1].integer;
        localRulerSkyFrame = FK5;
        localRulerDistSystem = (CoordSystem)yyvsp[0].integer;
        localRulerDistFormat = DEGREES;
      ;}
    break;

  case 178:
#line 758 "ds9parser.Y"
    {
        localRulerCoordSystem = (CoordSystem)yyvsp[-1].integer;
        localRulerSkyFrame = FK5;
        localRulerDistSystem = WCS;
        localRulerDistFormat = (SkyFormat)yyvsp[0].integer;
      ;}
    break;

  case 179:
#line 765 "ds9parser.Y"
    {
        localRulerCoordSystem = WCS;
        localRulerSkyFrame = (SkyFrame)yyvsp[-1].integer;
        localRulerDistSystem = (CoordSystem)yyvsp[0].integer;
        localRulerDistFormat = DEGREES;
      ;}
    break;

  case 180:
#line 772 "ds9parser.Y"
    {
        localRulerCoordSystem = WCS;
        localRulerSkyFrame = (SkyFrame)yyvsp[-1].integer;
        localRulerDistSystem = WCS;
        localRulerDistFormat = (SkyFormat)yyvsp[0].integer;
      ;}
    break;

  case 181:
#line 779 "ds9parser.Y"
    {
        localRulerCoordSystem = WCS;
        localRulerSkyFrame = FK5;
        localRulerDistSystem = (CoordSystem)yyvsp[0].integer;
        localRulerDistFormat = DEGREES;
      ;}
    break;

  case 182:
#line 786 "ds9parser.Y"
    {
        localRulerCoordSystem = WCS;
        localRulerSkyFrame = FK5;
        localRulerDistSystem = WCS;
        localRulerDistFormat = (SkyFormat)yyvsp[0].integer;
      ;}
    break;

  case 183:
#line 793 "ds9parser.Y"
    {
        localRulerCoordSystem = IMAGE;
        localRulerSkyFrame = FK5;
        localRulerDistSystem = WCS;
        localRulerDistFormat = (SkyFormat)yyvsp[0].integer;
      ;}
    break;

  case 184:
#line 800 "ds9parser.Y"
    {
        localRulerCoordSystem = IMAGE;
        localRulerSkyFrame = FK5;
        localRulerDistSystem = IMAGE;
        localRulerDistFormat = DEGREES;
      ;}
    break;

  case 185:
#line 809 "ds9parser.Y"
    {
        localCompassCoordSystem = (CoordSystem)yyvsp[-1].integer;
        localCompassSkyFrame = (SkyFrame)yyvsp[0].integer;
      ;}
    break;

  case 186:
#line 814 "ds9parser.Y"
    {
        localCompassCoordSystem = (CoordSystem)yyvsp[0].integer;
        localCompassSkyFrame = FK5;
      ;}
    break;

  case 187:
#line 819 "ds9parser.Y"
    {
        localCompassCoordSystem = WCS;
        localCompassSkyFrame = (SkyFrame)yyvsp[0].integer;
      ;}
    break;

  case 188:
#line 824 "ds9parser.Y"
    {
        localCompassCoordSystem = WCS;
        localCompassSkyFrame = FK5;
      ;}
    break;

  case 189:
#line 830 "ds9parser.Y"
    {aNum=0; aAngNum=0;;}
    break;

  case 190:
#line 830 "ds9parser.Y"
    {localPanda = 2;;}
    break;

  case 191:
#line 831 "ds9parser.Y"
    {localPanda=0;;}
    break;

  case 192:
#line 834 "ds9parser.Y"
    {
        // needed for annulus, ellipse annulus, and box annulus
        aNum = 2;

        // global properties
        localSystem = globalSystem;
        localSky = globalSky;
        localProps = globalProps;
        strcpy(localColor,globalColor);
        localWidth = globalWidth;
        strcpy(localFont,globalFont);
        strcpy(localText,globalText);
        strcpy(localComment,"");
        taglist.deleteAll();

        // unique properties
        localLine1 = globalLine1;
        localLine2 = globalLine2;
        localPoint = globalPoint;
        localRulerCoordSystem = globalRulerCoordSystem;
        localRulerSkyFrame = globalRulerSkyFrame;
        localRulerDistSystem = globalRulerDistSystem;
        localRulerDistFormat = globalRulerDistFormat;
        localCompassCoordSystem = globalCompassCoordSystem;
        localCompassSkyFrame = globalCompassSkyFrame;
        strcpy(localCompassNorth,globalCompassNorth);
        strcpy(localCompassEast,globalCompassEast);
        localCompassNArrow = globalCompassNArrow;
        localCompassEArrow = globalCompassEArrow;
        localTextAngle = globalTextAngle;
        localPanda = 1;
      ;}
    break;

  case 193:
#line 868 "ds9parser.Y"
    {yyval.integer = CIRCLE;;}
    break;

  case 194:
#line 869 "ds9parser.Y"
    {yyval.integer = BOX;;}
    break;

  case 195:
#line 870 "ds9parser.Y"
    {yyval.integer = DIAMOND;;}
    break;

  case 196:
#line 871 "ds9parser.Y"
    {yyval.integer = CROSS;;}
    break;

  case 197:
#line 872 "ds9parser.Y"
    {yyval.integer = XPT;;}
    break;

  case 198:
#line 873 "ds9parser.Y"
    {yyval.integer = ARROW;;}
    break;

  case 199:
#line 874 "ds9parser.Y"
    {yyval.integer = BOXCIRCLE;;}
    break;

  case 200:
#line 877 "ds9parser.Y"
    {setProps(&localProps, Marker::INCLUDE, 1);;}
    break;

  case 201:
#line 878 "ds9parser.Y"
    {setProps(&localProps, Marker::INCLUDE, 1);;}
    break;

  case 202:
#line 879 "ds9parser.Y"
    {setProps(&localProps, Marker::INCLUDE, 0);;}
    break;

  case 203:
#line 883 "ds9parser.Y"
    {FR->createCircleCmd(Vector(yyvsp[-4].vector),yyvsp[-2].real,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 204:
#line 888 "ds9parser.Y"
    {
        // for ellipse annulus
        aStatus = 1;
        aCenter = Vector(yyvsp[-6].vector);
        aAngle[0] = yyvsp[-2].real;
        aVector[0] = Vector(yyvsp[-4].vector);
        aNumsao = 1;
        strncpy(aColor,localColor,16);
        aWidth = localWidth;
        strncpy(aFont,localFont,32);
        strncpy(aText,localText,80);
        strncpy(aComment,localComment,80);
        aProps = localProps;

        FR->createEllipseCmd(Vector(yyvsp[-6].vector),Vector(yyvsp[-4].vector),yyvsp[-2].real,
        localColor,localWidth,localFont,localText,localProps,localComment,
        taglist);
      ;}
    break;

  case 205:
#line 908 "ds9parser.Y"
    {
        // for box annulus
        aStatus = 3;
        aCenter = Vector(yyvsp[-6].vector);
        aAngle[0] = yyvsp[-2].real;
        aVector[0] = Vector(yyvsp[-4].vector);
        aNumsao = 1;
        strncpy(aColor,localColor,16);
        aWidth = localWidth;
        strncpy(aFont,localFont,32);
        strncpy(aText,localText,80);
        strncpy(aComment,localComment,80);
        aProps = localProps;

        FR->createBoxCmd(Vector(yyvsp[-6].vector),Vector(yyvsp[-4].vector),yyvsp[-2].real,
          localColor,localWidth,localFont,localText,localProps,localComment,
          taglist);
      ;}
    break;

  case 206:
#line 927 "ds9parser.Y"
    {FR->createBoxCmd(Vector(yyvsp[-6].vector),Vector(yyvsp[-4].vector),yyvsp[-2].real,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 207:
#line 931 "ds9parser.Y"
    {polylist.deleteAll();;}
    break;

  case 208:
#line 932 "ds9parser.Y"
    {FR->createPolygonCmd(polylist, localColor,localWidth,localFont,
            localText,localProps,localComment,taglist);;}
    break;

  case 209:
#line 936 "ds9parser.Y"
    {FR->createLineCmd(Vector(yyvsp[-4].vector),Vector(yyvsp[-2].vector),localLine1,localLine2,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 210:
#line 941 "ds9parser.Y"
    {FR->createTextCmd(Vector(yyvsp[-2].vector),localTextAngle,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 211:
#line 944 "ds9parser.Y"
    {strncpy(localText,yyvsp[-1].str,80);;}
    break;

  case 212:
#line 945 "ds9parser.Y"
    {FR->createTextCmd(Vector(yyvsp[-5].vector),localTextAngle,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 213:
#line 950 "ds9parser.Y"
    {FR->createRulerCmd(Vector(yyvsp[-4].vector),Vector(yyvsp[-2].vector),
         localRulerCoordSystem, localRulerSkyFrame,
         localRulerDistSystem, localRulerDistFormat,
         localColor,localWidth,localFont,
         localText,localProps,localComment,taglist);;}
    break;

  case 214:
#line 956 "ds9parser.Y"
    {FR->createCompassCmd(Vector(yyvsp[-4].vector), yyvsp[-2].real,
         localCompassNorth, localCompassEast, 
         localCompassNArrow, localCompassEArrow,
         localCompassCoordSystem, localCompassSkyFrame,
         localColor,localWidth,localFont,
         localText,localProps,localComment,taglist);;}
    break;

  case 215:
#line 963 "ds9parser.Y"
    {
        // hard coded into projection.tcl
        FR->createProjectionCmd(Vector(yyvsp[-6].vector),Vector(yyvsp[-4].vector),yyvsp[-2].real,
        "ProjectionPlot", "DeleteProjectionPlot",
        localColor,localWidth,localFont,
        localText,localProps,localComment,taglist);
      ;}
    break;

  case 216:
#line 972 "ds9parser.Y"
    {
        switch (localPoint) {
        case CIRCLE:
          FR->createCirclePointCmd(Vector(yyvsp[-2].vector),
            localColor,localWidth,localFont,
            localText,localProps,localComment,taglist);
          break;
        case BOX:
          FR->createBoxPointCmd(Vector(yyvsp[-2].vector),
            localColor,localWidth,localFont,
            localText,localProps,localComment,taglist);
          break;
        case DIAMOND:
          FR->createDiamondPointCmd(Vector(yyvsp[-2].vector),
            localColor,localWidth,localFont,
            localText,localProps,localComment,taglist);
          break;
        case CROSS:
          FR->createCrossPointCmd(Vector(yyvsp[-2].vector),
            localColor,localWidth,localFont,
            localText,localProps,localComment,taglist);
          break;
        case XPT:
          FR->createExPointCmd(Vector(yyvsp[-2].vector),
            localColor,localWidth,localFont,
            localText,localProps,localComment,taglist);
          break;
        case ARROW:
          FR->createArrowPointCmd(Vector(yyvsp[-2].vector),
            localColor,localWidth,localFont,
            localText,localProps,localComment,taglist);
          break;
        case BOXCIRCLE:
          FR->createBoxCirclePointCmd(Vector(yyvsp[-2].vector),
            localColor,localWidth,localFont,
            localText,localProps,localComment,taglist);
          break;
        }
      ;}
    break;

  case 217:
#line 1012 "ds9parser.Y"
    {FR->createCirclePointCmd(Vector(yyvsp[-2].vector),
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 218:
#line 1016 "ds9parser.Y"
    {FR->createBoxPointCmd(Vector(yyvsp[-2].vector),
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 219:
#line 1020 "ds9parser.Y"
    {FR->createDiamondPointCmd(Vector(yyvsp[-2].vector),
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 220:
#line 1024 "ds9parser.Y"
    {FR->createCrossPointCmd(Vector(yyvsp[-2].vector),
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 221:
#line 1028 "ds9parser.Y"
    {FR->createExPointCmd(Vector(yyvsp[-2].vector),
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 222:
#line 1032 "ds9parser.Y"
    {FR->createArrowPointCmd(Vector(yyvsp[-2].vector),
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 223:
#line 1036 "ds9parser.Y"
    {FR->createBoxCirclePointCmd(Vector(yyvsp[-2].vector),
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 224:
#line 1041 "ds9parser.Y"
    {FR->createAnnulusCmd(Vector(yyvsp[-6].vector),yyvsp[-4].real,yyvsp[-2].real,1,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 225:
#line 1046 "ds9parser.Y"
    {
        aAnnuli[0] = yyvsp[-6].real;
        aAnnuli[1] = yyvsp[-4].real;
        FR->createAnnulusCmd(Vector(yyvsp[-8].vector),aAnnuli,aNum,
        localColor,localWidth,localFont,localText,localProps,localComment,
        taglist);
      ;}
    break;

  case 226:
#line 1054 "ds9parser.Y"
    {FR->createAnnulusCmd(Vector(yyvsp[-8].vector),yyvsp[-6].real,yyvsp[-4].real,yyvsp[-2].integer,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);;}
    break;

  case 227:
#line 1059 "ds9parser.Y"
    {
        // prefered syntax
        FR->createEllipseAnnulusCmd(Vector(yyvsp[-8].vector),
          Vector(yyvsp[-6].vector),Vector(yyvsp[-4].vector),1,yyvsp[-2].real,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);
      ;}
    break;

  case 228:
#line 1068 "ds9parser.Y"
    {
        // prefered syntax
        FR->createEllipseAnnulusCmd(Vector(yyvsp[-10].vector),
          Vector(yyvsp[-8].vector),Vector(yyvsp[-6].vector),yyvsp[-4].integer,yyvsp[-2].real,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);
      ;}
    break;

  case 229:
#line 1077 "ds9parser.Y"
    {
        // prefered syntax
        aVector[0] = Vector(yyvsp[-8].vector);
        aVector[1] = Vector(yyvsp[-6].vector);
        FR->createEllipseAnnulusCmd(Vector(yyvsp[-10].vector),yyvsp[-2].real,aNum,
          aVector,localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);
      ;}
    break;

  case 230:
#line 1088 "ds9parser.Y"
    { 
        // old saoimage syntax
        aStatus = 2;
        aVector[aNumsao++] = Vector(yyvsp[-13].vector);
      ;}
    break;

  case 231:
#line 1095 "ds9parser.Y"
    {
        // prefered syntax
        FR->createBoxAnnulusCmd(Vector(yyvsp[-8].vector),
          Vector(yyvsp[-6].vector),Vector(yyvsp[-4].vector),1,yyvsp[-2].real,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);
      ;}
    break;

  case 232:
#line 1104 "ds9parser.Y"
    {
        // prefered syntax
        aVector[0] = Vector(yyvsp[-8].vector);
        aVector[1] = Vector(yyvsp[-6].vector);
        FR->createBoxAnnulusCmd(Vector(yyvsp[-10].vector),yyvsp[-2].real,aNum,
        aVector,localColor,localWidth,localFont,
        localText,localProps,localComment,taglist);
      ;}
    break;

  case 233:
#line 1114 "ds9parser.Y"
    {
        // prefered syntax
        FR->createBoxAnnulusCmd(Vector(yyvsp[-10].vector),
          Vector(yyvsp[-8].vector),Vector(yyvsp[-6].vector),yyvsp[-4].integer,yyvsp[-2].real,
          localColor,localWidth,localFont,
          localText,localProps,localComment,taglist);
      ;}
    break;

  case 234:
#line 1124 "ds9parser.Y"
    { 
        // old saoimage syntax
        aStatus = 4;
        aVector[aNumsao++] = Vector(yyvsp[-13].vector);
      ;}
    break;

  case 235:
#line 1132 "ds9parser.Y"
    {
        switch (localPanda) {
        case 0: /* ignore it */
          break;
        case 1: /* normal panda */
          FR->createPandaCmd(Vector(yyvsp[-14].vector),yyvsp[-12].real,yyvsp[-10].real,yyvsp[-8].integer,yyvsp[-6].real,yyvsp[-4].real,yyvsp[-2].integer,
            localColor,localWidth,localFont,
            localText,localProps,localComment,taglist);
          break;
        case 2: /* one of our special pandas */
          FR->createPandaCmd(Vector(yyvsp[-14].vector),aAngle,aAngNum,aAnnuli,aNum,
            localColor,localWidth,localFont,
            localText,localProps,localComment,taglist);
          break;
        }
      ;}
    break;

  case 242:
#line 1159 "ds9parser.Y"
    {polylist.append(new Vertex(yyvsp[0].vector));;}
    break;

  case 245:
#line 1167 "ds9parser.Y"
    {
        if (aNum < MAXANNULI)
          aAnnuli[aNum++] = yyvsp[0].real;
      ;}
    break;

  case 248:
#line 1178 "ds9parser.Y"
    {
        if (aAngNum < MAXANGLES)
          aAngle[aAngNum++] = yyvsp[0].real;
      ;}
    break;

  case 251:
#line 1188 "ds9parser.Y"
    {aVector[aNum++] = Vector(yyvsp[-2].real,yyvsp[0].real);;}
    break;

  case 252:
#line 1192 "ds9parser.Y"
    {
        // old style annulus
        switch (aStatus) {
        case 0: // do nothing
          break;
        case 1: // we found just an ellipse, do nothing
          break;
        case 2: // ok we have an ellipse annulus
          FR->markerDeleteLastCmd(); // delete the previous ellipse
          FR->createEllipseAnnulusCmd(aCenter,aAngle[0],aNumsao,aVector,
            aColor,aWidth,aFont,aText,aProps,aComment,taglist);
          break;
        case 3: // we found just a box, do nothing
          break;
        case 4: // ok, we have a box annulus
          FR->markerDeleteLastCmd(); // delete the previous box
          FR->createBoxAnnulusCmd(aCenter,aAngle[0],aNumsao,aVector,
            aColor,aWidth,aFont,aText,aProps,aComment,taglist);
          break;
        }
        aStatus = 0;
      ;}
    break;


    }

/* Line 999 of yacc.c.  */
#line 3585 "ds9parser.C"

  yyvsp -= yylen;
  yyssp -= yylen;


  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:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if YYERROR_VERBOSE
      yyn = yypact[yystate];

      if (YYPACT_NINF < yyn && yyn < YYLAST)
      {
        YYSIZE_T yysize = 0;
        int yytype = YYTRANSLATE (yychar);
        char *yymsg;
        int yyx, yycount;

        yycount = 0;
        /* Start YYX at -YYN if negative to avoid negative indexes in
           YYCHECK.  */
        for (yyx = yyn < 0 ? -yyn : 0;
             yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
          if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
            yysize += yystrlen (yytname[yyx]) + 15, yycount++;
        yysize += yystrlen ("syntax error, unexpected ") + 1;
        yysize += yystrlen (yytname[yytype]);
        yymsg = (char *) YYSTACK_ALLOC (yysize);
        if (yymsg != 0)
          {
            char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
            yyp = yystpcpy (yyp, yytname[yytype]);

            if (yycount < 5)
            {
              yycount = 0;
              for (yyx = yyn < 0 ? -yyn : 0;
                   yyx < (int) (sizeof (yytname) / sizeof (char *));
                   yyx++)
                if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
                  {
                  const char *yyq = ! yycount ? ", expecting " : " or ";
                  yyp = yystpcpy (yyp, yyq);
                  yyp = yystpcpy (yyp, yytname[yyx]);
                  yycount++;
                  }
            }
            yyerror (yymsg);
            YYSTACK_FREE (yymsg);
          }
        else
          yyerror ("syntax error; also virtual memory exhausted");
      }
      else
#endif /* YYERROR_VERBOSE */
      yyerror ("syntax error");
    }



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

      /* Return failure if at end of input.  */
      if (yychar == YYEOF)
        {
        /* Pop the error token.  */
          YYPOPSTACK;
        /* Pop the rest of the stack.  */
        while (yyss < yyssp)
          {
            YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
            yydestruct (yystos[*yyssp], yyvsp);
            YYPOPSTACK;
          }
        YYABORT;
        }

      YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
      yydestruct (yytoken, &yylval);
      yychar = YYEMPTY;

    }

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


/*----------------------------------------------------.
| yyerrlab1 -- error raised explicitly by an action.  |
`----------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */

  for (;;)
    {
      yyn = yypact[yystate];
      if (yyn != YYPACT_NINF)
      {
        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;

      YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
      yydestruct (yystos[yystate], yyvsp);
      yyvsp--;
      yystate = *--yyssp;

      YY_STACK_PRINT (yyss, yyssp);
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  YYDPRINTF ((stderr, "Shifting error token, "));

  *++yyvsp = yylval;


  yystate = yyn;
  goto yynewstate;


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

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

#ifndef yyoverflow
/*----------------------------------------------.
| yyoverflowlab -- parser overflow comes here.  |
`----------------------------------------------*/
yyoverflowlab:
  yyerror ("parser stack overflow");
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
  return yyresult;
}


#line 1215 "ds9parser.Y"


static void setProps(unsigned short* props, unsigned short prop, int value)
{
  if (value)
    *props |= prop;
  else
    *props &= ~prop;
}

static CoordSystem checkWCSSystem()
{
  switch (localSystem) {
  case IMAGE:
  case PHYSICAL:
    return WCS;
  default:
   return localSystem;
  }
}

static SkyFrame checkWCSSky()
{
  switch (localSystem) {
  case IMAGE:
  case PHYSICAL:
    return NATIVEWCS;
  default:
   return localSky;
  }
}



Generated by  Doxygen 1.6.0   Back to index