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

/* Skeleton implementation for Bison's Yacc-like parsers in C

   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
   Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   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., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.  */

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

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

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

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

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

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

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

/* Pure parsers.  */
#define YYPURE 0

/* Using locations.  */
#define YYLSP_NEEDED 0



/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     SCREENSAVER_TOK = 258,
     SCRSVRS_DIR_TOK = 259,
     SCRSVR_TIMEOUT_TOK = 260,
     SCRN_POWER_TOK = 261,
     XSESSION_DIR_TOK = 262,
     TXTSESSION_DIR_TOK = 263,
     XINIT_TOK = 264,
     SHUTDOWN_TOK = 265,
     TTY_TOK = 266,
     THEMES_DIR_TOK = 267,
     X_SERVER_TOK = 268,
     DFB_INTERFACE_TOK = 269,
     RESET_CONSOLE_TOK = 270,
     X_ARGS_TOK = 271,
     TEMP_FILES_DIR_TOK = 272,
     THEME_TOK = 273,
     WINDOW_TOK = 274,
     RAND_TOK = 275,
     CLEAR_BACKGROUND_TOK = 276,
     LOCK_SESSIONS_TOK = 277,
     NULL_TOK = 278,
     DEFAULT_TXT_COL_TOK = 279,
     DEFAULT_CUR_COL_TOK = 280,
     OTHER_TXT_COL_TOK = 281,
     BG_TOK = 282,
     FONT_TOK = 283,
     BUTTON_OPAC_TOK = 284,
     WIN_OP_TOK = 285,
     SEL_WIN_OP_TOK = 286,
     THEME_RES_TOK = 287,
     EVERYONE_TOK = 288,
     ONLY_ROOT_TOK = 289,
     NO_ONE_TOK = 290,
     WPOLL_TIME_TOK = 291,
     WTEXT_COLOR_TOK = 292,
     WCURSOR_COLOR_TOK = 293,
     WINDOW_LINK_TOK = 294,
     WTYPE_TOK = 295,
     WWIDTH_TOK = 296,
     WHEIGHT_TOK = 297,
     WCOMMAND_TOK = 298,
     WCONTENT_TOK = 299,
     WTEXT_SIZE_TOK = 300,
     WTEXT_TINY_TOK = 301,
     WTEXT_SMALLER_TOK = 302,
     WTEXT_SMALL_TOK = 303,
     WTEXT_MEDIUM_TOK = 304,
     WTEXT_LARGE_TOK = 305,
     WTEXT_ORIENTATION = 306,
     WTEXT_LEFT_TOK = 307,
     WTEXT_CENTER_TOK = 308,
     WTEXT_RIGHT_TOK = 309,
     YES_TOK = 310,
     NO_TOK = 311,
     AUTOLOGIN_TOK = 312,
     USERNAME_TOK = 313,
     SESSION_TOK = 314,
     RELOGIN_TOK = 315,
     LAST_SESSION_TOK = 316,
     SLEEP_TOK = 317,
     NEXT_TTY_TOK = 318,
     PREV_TTY_TOK = 319,
     POWEROFF_TOK = 320,
     REBOOT_TOK = 321,
     KILL_TOK = 322,
     TEXT_MODE_TOK = 323,
     MENU_KEY_TOK = 324,
     WIN_KEY_TOK = 325,
     ALT_KEY_TOK = 326,
     CTRL_KEY_TOK = 327,
     KEYBINDINGS_TOK = 328,
     USER_TOK = 329,
     LAST_USER_POLICY_TOK = 330,
     LAST_SESSION_POLICY_TOK = 331,
     GLOBAL_TOK = 332,
     NONE_TOK = 333,
     PRE_GUI_TOK = 334,
     POST_GUI_TOK = 335,
     X_SERVER_OFFSET_TOK = 336,
     X_SERVER_TTY_TOK = 337,
     QINGY_TTY_TOK = 338,
     UNUSED_TTY_TOK = 339,
     IDLE_TIMEOUT_TOK = 340,
     IDLE_ACTION_TOK = 341,
     LOGOUT_TOK = 342,
     LOCK_TOK = 343,
     LOG_LEVEL_TOK = 344,
     DEBUG_TOK = 345,
     ERROR_TOK = 346,
     LOG_FACILITIES_TOK = 347,
     CONSOLE_TOK = 348,
     FILE_TOK = 349,
     SYSLOG_TOK = 350,
     MOUSE_CURSOR_TOK = 351,
     CHECK_RUNLEVEL_TOK = 352,
     EXCLUDE_RUNLEVELS_TOK = 353,
     SHUTDOWN_TIMEOUT_MESSAGE_TOK = 354,
     RESTART_TIMEOUT_MESSAGE_TOK = 355,
     SLEEP_TIMEOUT_MESSAGE_TOK = 356,
     SLEEP_FORBIDDEN_MESSAGE_TOK = 357,
     SHUTDOWN_FORBIDDEN_MESSAGE_TOK = 358,
     SLEEP_PASSWORD_MESSAGE_TOK = 359,
     SHUTDOWN_PASSWORD_MESSAGE_TOK = 360,
     SHUTDOWN_MESSAGE_TOK = 361,
     RESTART_MESSAGE_TOK = 362,
     LOGIN_MESSAGE_TOK = 363,
     LOGIN_FAILED_MESSAGE_TOK = 364,
     ABORT_MESSAGE_TOK = 365,
     CAPS_MESSAGE_TOK = 366,
     SLEEP_CMD_MESSAGE_TOK = 367,
     CRYPTO_ERROR_MESSAGE_TOK = 368,
     WELCOME_MESSAGE_TOK = 369,
     COUNTDOWN_TIMEOUT_TOK = 370,
     INFO_MESSAGE_TIMEOUT_TOK = 371,
     WELCOME_MESSAGE_TIMEOUT_TOK = 372,
     ANUM_T = 373,
     QUOTSTR_T = 374,
     COLOR_T = 375
   };
#endif
/* Tokens.  */
#define SCREENSAVER_TOK 258
#define SCRSVRS_DIR_TOK 259
#define SCRSVR_TIMEOUT_TOK 260
#define SCRN_POWER_TOK 261
#define XSESSION_DIR_TOK 262
#define TXTSESSION_DIR_TOK 263
#define XINIT_TOK 264
#define SHUTDOWN_TOK 265
#define TTY_TOK 266
#define THEMES_DIR_TOK 267
#define X_SERVER_TOK 268
#define DFB_INTERFACE_TOK 269
#define RESET_CONSOLE_TOK 270
#define X_ARGS_TOK 271
#define TEMP_FILES_DIR_TOK 272
#define THEME_TOK 273
#define WINDOW_TOK 274
#define RAND_TOK 275
#define CLEAR_BACKGROUND_TOK 276
#define LOCK_SESSIONS_TOK 277
#define NULL_TOK 278
#define DEFAULT_TXT_COL_TOK 279
#define DEFAULT_CUR_COL_TOK 280
#define OTHER_TXT_COL_TOK 281
#define BG_TOK 282
#define FONT_TOK 283
#define BUTTON_OPAC_TOK 284
#define WIN_OP_TOK 285
#define SEL_WIN_OP_TOK 286
#define THEME_RES_TOK 287
#define EVERYONE_TOK 288
#define ONLY_ROOT_TOK 289
#define NO_ONE_TOK 290
#define WPOLL_TIME_TOK 291
#define WTEXT_COLOR_TOK 292
#define WCURSOR_COLOR_TOK 293
#define WINDOW_LINK_TOK 294
#define WTYPE_TOK 295
#define WWIDTH_TOK 296
#define WHEIGHT_TOK 297
#define WCOMMAND_TOK 298
#define WCONTENT_TOK 299
#define WTEXT_SIZE_TOK 300
#define WTEXT_TINY_TOK 301
#define WTEXT_SMALLER_TOK 302
#define WTEXT_SMALL_TOK 303
#define WTEXT_MEDIUM_TOK 304
#define WTEXT_LARGE_TOK 305
#define WTEXT_ORIENTATION 306
#define WTEXT_LEFT_TOK 307
#define WTEXT_CENTER_TOK 308
#define WTEXT_RIGHT_TOK 309
#define YES_TOK 310
#define NO_TOK 311
#define AUTOLOGIN_TOK 312
#define USERNAME_TOK 313
#define SESSION_TOK 314
#define RELOGIN_TOK 315
#define LAST_SESSION_TOK 316
#define SLEEP_TOK 317
#define NEXT_TTY_TOK 318
#define PREV_TTY_TOK 319
#define POWEROFF_TOK 320
#define REBOOT_TOK 321
#define KILL_TOK 322
#define TEXT_MODE_TOK 323
#define MENU_KEY_TOK 324
#define WIN_KEY_TOK 325
#define ALT_KEY_TOK 326
#define CTRL_KEY_TOK 327
#define KEYBINDINGS_TOK 328
#define USER_TOK 329
#define LAST_USER_POLICY_TOK 330
#define LAST_SESSION_POLICY_TOK 331
#define GLOBAL_TOK 332
#define NONE_TOK 333
#define PRE_GUI_TOK 334
#define POST_GUI_TOK 335
#define X_SERVER_OFFSET_TOK 336
#define X_SERVER_TTY_TOK 337
#define QINGY_TTY_TOK 338
#define UNUSED_TTY_TOK 339
#define IDLE_TIMEOUT_TOK 340
#define IDLE_ACTION_TOK 341
#define LOGOUT_TOK 342
#define LOCK_TOK 343
#define LOG_LEVEL_TOK 344
#define DEBUG_TOK 345
#define ERROR_TOK 346
#define LOG_FACILITIES_TOK 347
#define CONSOLE_TOK 348
#define FILE_TOK 349
#define SYSLOG_TOK 350
#define MOUSE_CURSOR_TOK 351
#define CHECK_RUNLEVEL_TOK 352
#define EXCLUDE_RUNLEVELS_TOK 353
#define SHUTDOWN_TIMEOUT_MESSAGE_TOK 354
#define RESTART_TIMEOUT_MESSAGE_TOK 355
#define SLEEP_TIMEOUT_MESSAGE_TOK 356
#define SLEEP_FORBIDDEN_MESSAGE_TOK 357
#define SHUTDOWN_FORBIDDEN_MESSAGE_TOK 358
#define SLEEP_PASSWORD_MESSAGE_TOK 359
#define SHUTDOWN_PASSWORD_MESSAGE_TOK 360
#define SHUTDOWN_MESSAGE_TOK 361
#define RESTART_MESSAGE_TOK 362
#define LOGIN_MESSAGE_TOK 363
#define LOGIN_FAILED_MESSAGE_TOK 364
#define ABORT_MESSAGE_TOK 365
#define CAPS_MESSAGE_TOK 366
#define SLEEP_CMD_MESSAGE_TOK 367
#define CRYPTO_ERROR_MESSAGE_TOK 368
#define WELCOME_MESSAGE_TOK 369
#define COUNTDOWN_TIMEOUT_TOK 370
#define INFO_MESSAGE_TIMEOUT_TOK 371
#define WELCOME_MESSAGE_TIMEOUT_TOK 372
#define ANUM_T 373
#define QUOTSTR_T 374
#define COLOR_T 375




/* Copy the first part of user declarations.  */
#line 1 "parse_settings.y"

/*******************************************************************************/
/* parse_settings.y - Qingy theme and settings files parser 		               */
/*        								                                                     */
/*  Copyright (C) 2004 Paolo Gianrossi, (C) 2005-2006 Michele Noberasco        */
/*  All rights reserved                                                        */
/*  by Paolo Gianrossi   <paolino.gnu@disi.unige.it>                           */
/*     Michele Noberasco <michele.noberasco@tiscali.it>                        */
/* 									                                                           */
/* This program is free software; you can redistribute it and/or 	             */
/* modify  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 GNU Emacs; see the file COPYING.  If not, write to the 	         */
/* Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.	         */
/*******************************************************************************/

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

#include <stdlib.h>
#include <stdio.h>

#include "memmgmt.h"
#include "load_settings.h"
#include "logger.h"
#include "misc.h"
#include "keybindings.h"
  
#define YYERROR_VERBOSE
#define TTY_CHECK_COND    if (!intended_tty || intended_tty == current_tty)
#define SSAVER_CHECK_COND if (ssaver_is_set) { erase_options(); ssaver_is_set = 0; }
  
extern FILE* yyin;
extern int yylex();
extern int in_theme;
static int in_window               = 0;
static int clear_background_is_set = 0;
static int intended_tty            = 0;
static int ssaver_is_set           = 0;
static int set_theme_result;

/* key bindings vars */
static actions   action;

static window_t wind =
  {
		0,
    0,
    0,
    0,
    0,
    0,
    LARGE,
    LEFT,
    &default_text_color,
    &default_cursor_color,
    UNKNOWN,
    NULL,
    NULL,
    NULL,
    NULL,
		NULL
  };

static cursor_t curs =
  {
		1,
    NULL,
		0,
		0,
		0,
		NULL
  };



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

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

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

#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 87 "parse_settings.y"
{
  int ival;
  char* str;
  unsigned char color[4];
}
/* Line 187 of yacc.c.  */
#line 427 "parse_settings.c"
	YYSTYPE;
# 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 216 of yacc.c.  */
#line 440 "parse_settings.c"

#ifdef short
# undef short
#endif

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

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

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

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

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

#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

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

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

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

#if ! defined yyoverflow || YYERROR_VERBOSE

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

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

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


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

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  yytype_int16 yyss;
  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 (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

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

/* 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 (YYID (0))

#endif

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

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  128
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  66
/* YYNRULES -- Number of rules.  */
#define YYNRULES  227
/* YYNRULES -- Number of states.  */
#define YYNSTATES  444

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

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

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const yytype_uint8 yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,   124,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,   121,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,   126,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     125,   127,     2,   122,     2,   123,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     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,   107,   108,   109,   110,   111,   112,   113,   114,
     115,   116,   117,   118,   119,   120
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const yytype_uint16 yyprhs[] =
{
       0,     0,     3,     4,     7,    10,    13,    16,    19,    22,
      25,    28,    31,    34,    37,    40,    43,    46,    49,    52,
      55,    58,    61,    64,    67,    70,    73,    76,    79,    82,
      85,    88,    91,    94,    99,   104,   105,   113,   114,   117,
     120,   123,   126,   129,   132,   135,   138,   141,   144,   147,
     150,   153,   156,   159,   162,   165,   168,   171,   174,   177,
     180,   183,   186,   189,   192,   195,   198,   203,   208,   211,
     213,   215,   219,   223,   227,   229,   233,   235,   240,   242,
     245,   250,   255,   259,   263,   267,   271,   275,   279,   283,
     287,   291,   293,   295,   297,   301,   303,   307,   309,   311,
     313,   315,   317,   319,   323,   327,   331,   335,   339,   343,
     347,   351,   355,   359,   362,   367,   369,   373,   377,   381,
     385,   389,   393,   397,   401,   405,   409,   413,   417,   421,
     425,   429,   433,   437,   441,   445,   449,   453,   457,   461,
     465,   470,   471,   474,   477,   480,   485,   490,   493,   496,
     499,   502,   506,   510,   514,   518,   522,   526,   530,   534,
     538,   542,   546,   550,   554,   558,   562,   566,   570,   574,
     578,   582,   586,   592,   598,   602,   612,   616,   626,   630,
     640,   646,   652,   656,   660,   664,   668,   672,   677,   678,
     683,   685,   687,   689,   691,   693,   695,   697,   699,   704,
     706,   709,   713,   717,   721,   725,   729,   733,   737,   741,
     745,   749,   753,   755,   757,   759,   761,   763,   765,   767,
     769,   771,   773,   775,   777,   781,   791,   795
};

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

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,   183,   183,   184,   185,   186,   187,   188,   189,   190,
     191,   192,   193,   194,   195,   196,   197,   198,   199,   200,
     201,   202,   203,   204,   205,   206,   207,   208,   209,   210,
     211,   212,   213,   214,   215,   219,   219,   222,   223,   224,
     225,   226,   227,   228,   229,   230,   231,   232,   233,   234,
     235,   236,   237,   238,   239,   240,   241,   242,   243,   244,
     245,   246,   247,   248,   249,   250,   251,   252,   253,   256,
     257,   260,   261,   264,   266,   267,   270,   275,   277,   278,
     279,   280,   283,   288,   289,   291,   297,   304,   305,   308,
     309,   312,   313,   316,   317,   320,   321,   324,   325,   326,
     329,   330,   331,   335,   342,   343,   347,   374,   401,   408,
     415,   422,   429,   436,   437,   440,   441,   445,   453,   460,
     467,   474,   481,   488,   493,   501,   506,   511,   519,   524,
     529,   537,   542,   547,   555,   562,   567,   572,   580,   581,
     582,   586,   587,   588,   589,   590,   591,   592,   593,   594,
     595,   599,   600,   601,   605,   606,   607,   608,   609,   610,
     611,   612,   613,   614,   615,   616,   617,   618,   619,   620,
     624,   636,   648,   652,   667,   675,   683,   691,   699,   707,
     718,   725,   735,   736,   740,   741,   742,   746,   752,   753,
     760,   761,   762,   763,   764,   765,   766,   767,   771,   787,
     787,   789,   790,   791,   792,   793,   794,   795,   796,   797,
     798,   799,   800,   801,   804,   805,   808,   809,   810,   813,
     814,   815,   816,   817,   821,   830,   839,   848
};
#endif

#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "SCREENSAVER_TOK", "SCRSVRS_DIR_TOK",
  "SCRSVR_TIMEOUT_TOK", "SCRN_POWER_TOK", "XSESSION_DIR_TOK",
  "TXTSESSION_DIR_TOK", "XINIT_TOK", "SHUTDOWN_TOK", "TTY_TOK",
  "THEMES_DIR_TOK", "X_SERVER_TOK", "DFB_INTERFACE_TOK",
  "RESET_CONSOLE_TOK", "X_ARGS_TOK", "TEMP_FILES_DIR_TOK", "THEME_TOK",
  "WINDOW_TOK", "RAND_TOK", "CLEAR_BACKGROUND_TOK", "LOCK_SESSIONS_TOK",
  "NULL_TOK", "DEFAULT_TXT_COL_TOK", "DEFAULT_CUR_COL_TOK",
  "OTHER_TXT_COL_TOK", "BG_TOK", "FONT_TOK", "BUTTON_OPAC_TOK",
  "WIN_OP_TOK", "SEL_WIN_OP_TOK", "THEME_RES_TOK", "EVERYONE_TOK",
  "ONLY_ROOT_TOK", "NO_ONE_TOK", "WPOLL_TIME_TOK", "WTEXT_COLOR_TOK",
  "WCURSOR_COLOR_TOK", "WINDOW_LINK_TOK", "WTYPE_TOK", "WWIDTH_TOK",
  "WHEIGHT_TOK", "WCOMMAND_TOK", "WCONTENT_TOK", "WTEXT_SIZE_TOK",
  "WTEXT_TINY_TOK", "WTEXT_SMALLER_TOK", "WTEXT_SMALL_TOK",
  "WTEXT_MEDIUM_TOK", "WTEXT_LARGE_TOK", "WTEXT_ORIENTATION",
  "WTEXT_LEFT_TOK", "WTEXT_CENTER_TOK", "WTEXT_RIGHT_TOK", "YES_TOK",
  "NO_TOK", "AUTOLOGIN_TOK", "USERNAME_TOK", "SESSION_TOK", "RELOGIN_TOK",
  "LAST_SESSION_TOK", "SLEEP_TOK", "NEXT_TTY_TOK", "PREV_TTY_TOK",
  "POWEROFF_TOK", "REBOOT_TOK", "KILL_TOK", "TEXT_MODE_TOK",
  "MENU_KEY_TOK", "WIN_KEY_TOK", "ALT_KEY_TOK", "CTRL_KEY_TOK",
  "KEYBINDINGS_TOK", "USER_TOK", "LAST_USER_POLICY_TOK",
  "LAST_SESSION_POLICY_TOK", "GLOBAL_TOK", "NONE_TOK", "PRE_GUI_TOK",
  "POST_GUI_TOK", "X_SERVER_OFFSET_TOK", "X_SERVER_TTY_TOK",
  "QINGY_TTY_TOK", "UNUSED_TTY_TOK", "IDLE_TIMEOUT_TOK", "IDLE_ACTION_TOK",
  "LOGOUT_TOK", "LOCK_TOK", "LOG_LEVEL_TOK", "DEBUG_TOK", "ERROR_TOK",
  "LOG_FACILITIES_TOK", "CONSOLE_TOK", "FILE_TOK", "SYSLOG_TOK",
  "MOUSE_CURSOR_TOK", "CHECK_RUNLEVEL_TOK", "EXCLUDE_RUNLEVELS_TOK",
  "SHUTDOWN_TIMEOUT_MESSAGE_TOK", "RESTART_TIMEOUT_MESSAGE_TOK",
  "SLEEP_TIMEOUT_MESSAGE_TOK", "SLEEP_FORBIDDEN_MESSAGE_TOK",
  "SHUTDOWN_FORBIDDEN_MESSAGE_TOK", "SLEEP_PASSWORD_MESSAGE_TOK",
  "SHUTDOWN_PASSWORD_MESSAGE_TOK", "SHUTDOWN_MESSAGE_TOK",
  "RESTART_MESSAGE_TOK", "LOGIN_MESSAGE_TOK", "LOGIN_FAILED_MESSAGE_TOK",
  "ABORT_MESSAGE_TOK", "CAPS_MESSAGE_TOK", "SLEEP_CMD_MESSAGE_TOK",
  "CRYPTO_ERROR_MESSAGE_TOK", "WELCOME_MESSAGE_TOK",
  "COUNTDOWN_TIMEOUT_TOK", "INFO_MESSAGE_TIMEOUT_TOK",
  "WELCOME_MESSAGE_TIMEOUT_TOK", "ANUM_T", "QUOTSTR_T", "COLOR_T", "'='",
  "'{'", "'}'", "','", "'x'", "'X'", "'y'", "$accept", "config",
  "tty_specific", "@1", "config_tty", "runlevel", "check_runlevel",
  "exclude_runlevels", "do_exclude_runlevels", "do_exclude_runlevel",
  "autologin", "config_autologin", "username", "session", "dfb_interface",
  "reset_console", "logging", "logging_tty", "loglevels", "logfacilities",
  "logfacilities_tty", "logfacility", "logfacility_tty", "sleep",
  "lck_sess", "scrsvr_timeout", "scrpvr_timeout", "scrsvrs_dir",
  "themes_dir", "temp_dir", "pre_gui", "post_gui", "ssav",
  "scrsvr_with_options", "xsessdir", "txtsessdir", "xinit", "x_server",
  "x_args", "x_serv_offset", "x_serv_tty", "shutdown", "last_user",
  "last_session", "idle_timeout", "idle_action", "theme", "themedefn",
  "guitimers", "guimessageprop", "mousecursorprop", "cursordefn",
  "colorprop", "resolutionprop", "strprop", "anumprop", "keybindings",
  "keybindingsdefns", "actiondefns", "window", "windefns", "windefn",
  "buttoncommand", "textorientation", "wintextsize", "wincolorprop", 0
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const yytype_uint16 yytoknum[] =
{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     305,   306,   307,   308,   309,   310,   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,   362,   363,   364,
     365,   366,   367,   368,   369,   370,   371,   372,   373,   374,
     375,    61,   123,   125,    44,   120,    88,   121
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const yytype_uint8 yyr1[] =
{
       0,   128,   129,   129,   129,   129,   129,   129,   129,   129,
     129,   129,   129,   129,   129,   129,   129,   129,   129,   129,
     129,   129,   129,   129,   129,   129,   129,   129,   129,   129,
     129,   129,   129,   129,   129,   131,   130,   132,   132,   132,
     132,   132,   132,   132,   132,   132,   132,   132,   132,   132,
     132,   132,   132,   132,   132,   132,   132,   132,   132,   132,
     132,   132,   132,   132,   132,   132,   132,   132,   132,   133,
     133,   134,   134,   135,   136,   136,   137,   138,   139,   139,
     139,   139,   140,   141,   141,   142,   143,   144,   144,   145,
     145,   146,   146,   147,   147,   148,   148,   149,   149,   149,
     150,   150,   150,   151,   152,   152,   153,   154,   155,   156,
     157,   158,   159,   160,   160,   161,   161,   162,   163,   164,
     165,   166,   167,   168,   168,   169,   169,   169,   170,   170,
     170,   171,   171,   171,   172,   173,   173,   173,   174,   174,
     174,   175,   175,   175,   175,   175,   175,   175,   175,   175,
     175,   176,   176,   176,   177,   177,   177,   177,   177,   177,
     177,   177,   177,   177,   177,   177,   177,   177,   177,   177,
     178,   178,   178,   179,   180,   180,   180,   180,   180,   180,
     181,   181,   182,   182,   183,   183,   183,   184,   185,   185,
     186,   186,   186,   186,   186,   186,   186,   186,   187,   188,
     188,   189,   189,   189,   189,   189,   189,   189,   189,   189,
     189,   189,   189,   189,   190,   190,   191,   191,   191,   192,
     192,   192,   192,   192,   193,   193,   193,   193
};

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

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

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,     1,    36,   176,   305,    37,    38,    39,   172,   173,
     350,   402,   403,   420,    40,    41,    42,   353,   163,   167,
     408,   168,   409,    43,    44,    45,    46,    47,    48,    49,
      50,    51,    52,   175,    53,    54,    55,    56,    57,    58,
      59,    60,    61,    62,    63,    64,    65,   121,   207,   208,
     136,   342,   210,   211,   212,   213,    66,   145,   239,    67,
     137,   138,   284,   295,   291,   139
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -110
static const yytype_int16 yypact[] =
{
    -110,   158,  -110,   -99,   -90,   -80,   -77,   -74,   -66,   -41,
     -37,   -18,    -7,    -2,     8,    35,    39,    57,   -87,   -34,
      84,    85,    86,     9,    87,    88,    89,    90,    91,    92,
      93,    94,    95,    96,    97,    98,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,   100,    76,
     104,   105,   106,   107,   108,    58,   110,   111,   113,   116,
     117,   123,   126,   -12,  -110,   145,    19,    78,   127,  -110,
      27,    37,   129,   130,   133,    71,   134,   -45,   101,   -24,
     138,   135,   139,  -110,  -110,  -110,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,
    -110,    36,   103,   136,   140,   141,   143,   144,   147,   150,
     152,   153,   154,   155,   156,   157,  -110,   -15,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,    34,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,   159,  -110,
    -110,  -110,  -110,   160,  -110,   161,   132,   165,   166,   167,
     168,   169,   170,   171,   172,   173,   174,   175,   176,   177,
     178,   179,   180,   181,   182,   183,   184,   185,   186,   187,
     188,   189,   190,   191,   192,   193,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,   149,   -62,   -33,   162,   163,   151,
     197,    -6,   198,     3,    64,   -16,   200,   201,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,   195,
     -24,   135,   202,  -110,   142,     6,     7,    10,   203,   204,
     206,   207,   208,   209,   210,   211,   212,   213,   214,   215,
     216,   217,   218,   219,   220,   221,   222,   223,   224,   225,
     227,   228,   229,  -110,   196,  -110,   226,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,   230,  -110,
    -110,   232,  -110,  -110,  -110,    -3,  -110,  -110,   231,  -110,
     233,  -110,   234,  -110,  -110,  -110,  -110,  -110,  -110,    74,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,   235,
     236,   237,   137,  -110,   238,   240,   239,   242,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,   246,   247,
     248,   249,   250,   245,   251,   252,  -110,   146,   205,   101,
      28,   253,   254,   255,  -110,  -110,   256,   258,   257,  -110,
    -110,   259,   -14,  -110,  -110,  -110,  -110,  -110,  -110,   260,
     264,   265,   267,   262,   263,   270,   271,   268,   272,  -110,
    -110,    28,   273,   274,   275,   276,   277,  -110,  -110,   -29,
     148,  -110,   278,   282,   283,  -110,  -110,  -110,  -110,  -110,
    -110,  -110,  -110,  -110
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -110,  -110,  -110,  -110,  -110,   -76,  -110,  -110,    18,  -110,
    -110,  -110,  -110,  -110,   -39,   -26,  -110,  -110,  -109,   112,
     -93,  -110,  -110,    43,    51,    66,    67,    68,    99,   102,
     109,   114,   115,  -110,   118,   119,   120,   121,   122,   124,
     125,   128,   131,   164,   194,   199,   241,  -110,  -110,  -110,
     281,  -110,  -110,  -110,  -110,  -110,  -110,  -110,  -110,   243,
    -110,   266,  -110,  -110,  -110,  -110
};

/* 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 -1
static const yytype_uint16 yytable[] =
{
       3,     4,     5,     6,     7,     8,     9,    10,   119,    12,
      13,    14,    15,    16,    17,    18,    19,   282,   344,    21,
      68,   122,   123,   124,   125,   126,   127,   128,   129,   130,
     131,    69,   437,   158,    83,    84,   132,   230,   146,   296,
     297,    70,   159,   160,    71,   417,   418,    72,   149,   286,
     287,   288,   289,   290,   345,    73,   274,   177,   275,    22,
     178,   179,   180,   181,   182,   183,   184,   185,   186,   164,
     165,   166,    24,    25,   140,   141,    26,    27,    28,    29,
      74,   133,    30,    31,    75,   276,   346,   277,    85,   347,
     438,   109,   110,   111,    34,    35,   231,   232,   233,   234,
     235,   236,   237,    76,   147,   148,   298,   120,   228,   419,
     134,   150,   135,   283,    77,   151,   292,   293,   294,    78,
     348,   405,   406,   407,   308,   310,   309,   311,   312,    79,
     313,    89,   133,   142,   143,   187,   188,   189,   190,   191,
     192,   193,   194,   195,   196,   197,   198,   199,   200,   201,
     202,   203,   204,   205,   155,   156,    80,   238,     2,   206,
      81,     3,     4,     5,     6,     7,     8,     9,    10,    11,
      12,    13,    14,    15,    16,    17,    18,    19,    82,    20,
      21,   122,   123,   124,   125,   126,   127,   128,   129,   130,
     131,   161,   162,   169,   170,   103,   132,   306,   307,   381,
     382,   399,   400,   439,   440,    86,    87,    88,    90,    91,
      92,    93,    94,    95,    96,    97,    98,    99,   100,   101,
      22,   102,   104,   105,   214,   106,   107,   108,   112,   349,
     113,    23,   114,    24,    25,   115,   116,    26,    27,    28,
      29,   133,   117,    30,    31,   118,   144,    32,   152,   153,
      33,   154,   157,   171,   243,    34,    35,   215,   174,   303,
     386,   216,   217,   401,   218,   219,   351,   273,   220,   280,
     134,   221,   135,   222,   223,   224,   225,   226,   227,   352,
     404,   278,   279,   240,   241,   242,   244,   245,   246,   247,
     248,   249,   250,   251,   252,   253,   254,   255,   256,   257,
     258,   259,   260,   261,   262,   263,   264,   265,   266,   267,
     268,   269,   270,   271,   272,   281,   301,   285,   299,   300,
     339,   304,   314,   315,   316,   317,   318,   319,   431,   320,
     321,   322,   323,   324,   325,   326,   327,   328,   329,   330,
     331,   332,   333,   334,   335,   336,   337,   338,   354,   341,
     340,   343,   302,   383,   384,   378,   355,   379,   380,   387,
     389,   385,   388,   390,   391,   392,   393,   394,   395,   396,
     398,   356,   357,   358,   413,   397,   414,   410,   411,   412,
     416,   415,   422,   423,   421,   424,   425,   426,   427,   429,
     428,     0,     0,   430,   435,   436,   441,   432,   433,   434,
     442,   443,   209,   229,   359,     0,     0,   360,     0,     0,
       0,     0,     0,     0,   361,     0,     0,     0,     0,   362,
     363,     0,     0,   364,   365,   366,   367,   368,     0,   369,
     370,     0,     0,   371,     0,     0,   372,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   373,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   374,
       0,     0,     0,     0,   375,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   376,     0,   377
};

static const yytype_int16 yycheck[] =
{
       3,     4,     5,     6,     7,     8,     9,    10,    20,    12,
      13,    14,    15,    16,    17,    18,    19,    23,    21,    22,
     119,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,   121,    61,    78,   121,   122,    51,     3,    11,    55,
      56,   121,    87,    88,   121,    59,    60,   121,    11,    46,
      47,    48,    49,    50,    57,   121,   118,    21,   120,    62,
      24,    25,    26,    27,    28,    29,    30,    31,    32,    93,
      94,    95,    75,    76,    55,    56,    79,    80,    81,    82,
     121,    96,    85,    86,   121,   118,    89,   120,   122,    92,
     119,    33,    34,    35,    97,    98,    62,    63,    64,    65,
      66,    67,    68,   121,    77,    78,   122,   119,   123,   123,
     125,    74,   127,   119,   121,    78,    52,    53,    54,   121,
     123,    93,    94,    95,   118,   118,   120,   120,   118,   121,
     120,   122,    96,    55,    56,    99,   100,   101,   102,   103,
     104,   105,   106,   107,   108,   109,   110,   111,   112,   113,
     114,   115,   116,   117,    83,    84,   121,   123,     0,   123,
     121,     3,     4,     5,     6,     7,     8,     9,    10,    11,
      12,    13,    14,    15,    16,    17,    18,    19,   121,    21,
      22,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    90,    91,    55,    56,   119,    51,    55,    56,   125,
     126,    55,    56,    55,    56,   121,   121,   121,   121,   121,
     121,   121,   121,   121,   121,   121,   121,   121,   121,   121,
      62,   121,   118,   118,   121,   119,   119,   119,   118,   305,
     119,    73,   119,    75,    76,   119,   119,    79,    80,    81,
      82,    96,   119,    85,    86,   119,   119,    89,   119,   119,
      92,   118,   118,   118,   122,    97,    98,   121,   119,   241,
     123,   121,   121,    58,   121,   121,   305,   118,   121,   118,
     125,   121,   127,   121,   121,   121,   121,   121,   121,   305,
     389,   119,   119,   124,   124,   124,   121,   121,   121,   121,
     121,   121,   121,   121,   121,   121,   121,   121,   121,   121,
     121,   121,   121,   121,   121,   121,   121,   121,   121,   121,
     121,   121,   121,   121,   121,   118,   121,   119,   118,   118,
     124,   119,   119,   119,   118,   118,   118,   118,   421,   119,
     119,   119,   119,   119,   119,   119,   119,   119,   119,   119,
     119,   119,   119,   119,   119,   118,   118,   118,   305,   119,
     124,   119,   240,   118,   118,   124,   305,   124,   124,   121,
     121,   124,   122,   121,   118,   118,   118,   118,   118,   124,
     118,   305,   305,   305,   118,   124,   118,   124,   124,   124,
     121,   124,   118,   118,   124,   118,   124,   124,   118,   121,
     119,    -1,    -1,   121,   118,   118,   118,   124,   124,   124,
     118,   118,   121,   137,   305,    -1,    -1,   305,    -1,    -1,
      -1,    -1,    -1,    -1,   305,    -1,    -1,    -1,    -1,   305,
     305,    -1,    -1,   305,   305,   305,   305,   305,    -1,   305,
     305,    -1,    -1,   305,    -1,    -1,   305,    -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,   305,
      -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,   305,
      -1,    -1,    -1,    -1,   305,    -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,   305,    -1,   305
};

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

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

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


/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */

#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 (1);						\
      goto yybackup;						\
    }								\
  else								\
    {								\
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;							\
    }								\
while (YYID (0))


#define YYTERROR	1
#define YYERRCODE	256


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

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


/* YY_LOCATION_PRINT -- Print the location on the stream.
   This macro was not mandated originally: define only if we know
   we won't break user code: when these are the locations we know.  */

#ifndef YY_LOCATION_PRINT
# if YYLTYPE_IS_TRIVIAL
#  define YY_LOCATION_PRINT(File, Loc)			\
     fprintf (File, "%d.%d-%d.%d",			\
	      (Loc).first_line, (Loc).first_column,	\
	      (Loc).last_line,  (Loc).last_column)
# else
#  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
#endif


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

#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 (YYID (0))

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


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

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


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

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

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

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

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
#else
static void
yy_stack_print (bottom, top)
    yytype_int16 *bottom;
    yytype_int16 *top;
#endif
{
  YYFPRINTF (stderr, "Stack now");
  for (; 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 (YYID (0))


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

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

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

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


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

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

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

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif



#if YYERROR_VERBOSE

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

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

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

  return yyd - 1;
}
#  endif
# endif

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

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

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

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

  if (! yyres)
    return yystrlen (yystr);

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

/* Copy into YYRESULT an error message about the unexpected token
   YYCHAR while in state YYSTATE.  Return the number of bytes copied,
   including the terminating null byte.  If YYRESULT is null, do not
   copy anything; just return the number of bytes that would be
   copied.  As a special case, return 0 if an ordinary "syntax error"
   message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
   size calculation.  */
static YYSIZE_T
yysyntax_error (char *yyresult, int yystate, int yychar)
{
  int yyn = yypact[yystate];

  if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
    return 0;
  else
    {
      int yytype = YYTRANSLATE (yychar);
      YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
      YYSIZE_T yysize = yysize0;
      YYSIZE_T yysize1;
      int yysize_overflow = 0;
      enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
      char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
      int yyx;

# if 0
      /* This is so xgettext sees the translatable formats that are
	 constructed on the fly.  */
      YY_("syntax error, unexpected %s");
      YY_("syntax error, unexpected %s, expecting %s");
      YY_("syntax error, unexpected %s, expecting %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
# endif
      char *yyfmt;
      char const *yyf;
      static char const yyunexpected[] = "syntax error, unexpected %s";
      static char const yyexpecting[] = ", expecting %s";
      static char const yyor[] = " or %s";
      char yyformat[sizeof yyunexpected
		    + sizeof yyexpecting - 1
		    + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
		       * (sizeof yyor - 1))];
      char const *yyprefix = yyexpecting;

      /* Start YYX at -YYN if negative to avoid negative indexes in
	 YYCHECK.  */
      int yyxbegin = yyn < 0 ? -yyn : 0;

      /* Stay within bounds of both yycheck and yytname.  */
      int yychecklim = YYLAST - yyn + 1;
      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
      int yycount = 1;

      yyarg[0] = yytname[yytype];
      yyfmt = yystpcpy (yyformat, yyunexpected);

      for (yyx = yyxbegin; yyx < yyxend; ++yyx)
	if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
	  {
	    if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
	      {
		yycount = 1;
		yysize = yysize0;
		yyformat[sizeof yyunexpected - 1] = '\0';
		break;
	      }
	    yyarg[yycount++] = yytname[yyx];
	    yysize1 = yysize + yytnamerr (0, yytname[yyx]);
	    yysize_overflow |= (yysize1 < yysize);
	    yysize = yysize1;
	    yyfmt = yystpcpy (yyfmt, yyprefix);
	    yyprefix = yyor;
	  }

      yyf = YY_(yyformat);
      yysize1 = yysize + yystrlen (yyf);
      yysize_overflow |= (yysize1 < yysize);
      yysize = yysize1;

      if (yysize_overflow)
	return YYSIZE_MAXIMUM;

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

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

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

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

  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 look-ahead symbol.  */
int yychar;

/* The semantic value of the look-ahead symbol.  */
YYSTYPE yylval;

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



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

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

#endif
#endif
{
  
  int yystate;
  int yyn;
  int yyresult;
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  /* Look-ahead token as an internal (translated) token number.  */
  int yytoken = 0;
#if YYERROR_VERBOSE
  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif

  /* 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.  */
  yytype_int16 yyssa[YYINITDEPTH];
  yytype_int16 *yyss = yyssa;
  yytype_int16 *yyssp;

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



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

  YYSIZE_T yystacksize = YYINITDEPTH;

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


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

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

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

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

  yyssp = yyss;
  yyvsp = yyvs;

  goto yysetstate;

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

 yysetstate:
  *yyssp = yystate;

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

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


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

		    &yystacksize);

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

      {
	yytype_int16 *yyss1 = yyss;
	union yyalloc *yyptr =
	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
	if (! yyptr)
	  goto yyexhaustedlab;
	YYSTACK_RELOCATE (yyss);
	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
     look-ahead token if we need one and don't already have one.  */

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

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

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

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

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

  if (yyn == YYFINAL)
    YYACCEPT;

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

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

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

  yystate = yyn;
  *++yyvsp = yylval;

  goto yynewstate;


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


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

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

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


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
        case 16:
#line 197 "parse_settings.y"
    { TTY_CHECK_COND ssaver_is_set = 1; }
    break;

  case 28:
#line 209 "parse_settings.y"
    { TTY_CHECK_COND got_theme=set_theme_result; }
    break;

  case 33:
#line 214 "parse_settings.y"
    { if (!clear_background_is_set) clear_background = 1; }
    break;

  case 34:
#line 215 "parse_settings.y"
    { if (!clear_background_is_set) clear_background = 0; }
    break;

  case 35:
#line 219 "parse_settings.y"
    { intended_tty = (yyvsp[(3) - (3)].ival); }
    break;

  case 36:
#line 219 "parse_settings.y"
    { intended_tty = 0; }
    break;

  case 50:
#line 235 "parse_settings.y"
    { TTY_CHECK_COND ssaver_is_set = 1; }
    break;

  case 62:
#line 247 "parse_settings.y"
    { TTY_CHECK_COND got_theme=set_theme_result; }
    break;

  case 66:
#line 251 "parse_settings.y"
    { TTY_CHECK_COND {if (!clear_background_is_set) clear_background = 1;} }
    break;

  case 67:
#line 252 "parse_settings.y"
    { TTY_CHECK_COND {if (!clear_background_is_set) clear_background = 0;} }
    break;

  case 68:
#line 253 "parse_settings.y"
    { TTY_CHECK_COND do_autologin=1;  }
    break;

  case 71:
#line 260 "parse_settings.y"
    { TTY_CHECK_COND do_runlevel_check = 1; }
    break;

  case 72:
#line 261 "parse_settings.y"
    { TTY_CHECK_COND do_runlevel_check = 0; }
    break;

  case 76:
#line 271 "parse_settings.y"
    {
	TTY_CHECK_COND add_to_excluded_runlevels((yyvsp[(1) - (1)].ival));
}
    break;

  case 80:
#line 279 "parse_settings.y"
    { TTY_CHECK_COND auto_relogin = 1; }
    break;

  case 81:
#line 280 "parse_settings.y"
    { TTY_CHECK_COND auto_relogin = 0; }
    break;

  case 82:
#line 284 "parse_settings.y"
    {
	  TTY_CHECK_COND autologin_username = strdup((yyvsp[(3) - (3)].str));
	}
    break;

  case 83:
#line 288 "parse_settings.y"
    { TTY_CHECK_COND autologin_session = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 84:
#line 289 "parse_settings.y"
    { TTY_CHECK_COND autologin_session = strdup("LAST"); }
    break;

  case 85:
#line 292 "parse_settings.y"
    {
	  if(in_theme) yyerror("Setting 'qingy_DirectFB' is not allowed in theme file.");
	  TTY_CHECK_COND { if (dfb_interface) free(dfb_interface); dfb_interface = strdup((yyvsp[(3) - (3)].str)); }
	}
    break;

  case 86:
#line 298 "parse_settings.y"
    {
	  if(in_theme) yyerror("Setting 'qingy_reset_console' is not allowed in theme file.");
	  TTY_CHECK_COND { if (reset_console_utility) free(reset_console_utility); reset_console_utility = strdup((yyvsp[(3) - (3)].str)); }
	}
    break;

  case 91:
#line 312 "parse_settings.y"
    { TTY_CHECK_COND max_loglevel = DEBUG; }
    break;

  case 92:
#line 313 "parse_settings.y"
    { TTY_CHECK_COND max_loglevel = ERROR; }
    break;

  case 97:
#line 324 "parse_settings.y"
    { TTY_CHECK_COND log_facilities |= LOG_TO_CONSOLE; }
    break;

  case 98:
#line 325 "parse_settings.y"
    { TTY_CHECK_COND log_facilities |= LOG_TO_FILE;    }
    break;

  case 99:
#line 326 "parse_settings.y"
    { TTY_CHECK_COND log_facilities |= LOG_TO_SYSLOG;  }
    break;

  case 100:
#line 329 "parse_settings.y"
    { TTY_CHECK_COND log_facilities_tty |= LOG_TO_CONSOLE; }
    break;

  case 101:
#line 330 "parse_settings.y"
    { TTY_CHECK_COND log_facilities_tty |= LOG_TO_FILE;    }
    break;

  case 102:
#line 331 "parse_settings.y"
    { TTY_CHECK_COND log_facilities_tty |= LOG_TO_SYSLOG;  }
    break;

  case 103:
#line 336 "parse_settings.y"
    {
	  if(in_theme) yyerror("Setting 'sleep' is not allowed in theme file.");
	  TTY_CHECK_COND { if (sleep_cmd) free(sleep_cmd); sleep_cmd = strdup((yyvsp[(3) - (3)].str)); }
	}
    break;

  case 104:
#line 342 "parse_settings.y"
    { TTY_CHECK_COND lock_sessions = 1; }
    break;

  case 105:
#line 343 "parse_settings.y"
    { TTY_CHECK_COND lock_sessions = 0; }
    break;

  case 106:
#line 348 "parse_settings.y"
    {
		if(in_theme) yyerror("Setting 'screensaver_timeout' is not allowed in theme file");
		TTY_CHECK_COND
		{
			if ((yyvsp[(3) - (3)].ival) < 0)
			{
				writelog(ERROR, "Invalid screen saver timeout: screensaver will be disabled.\n");
				use_screensaver     = 0;
				screensaver_timeout = 0;
			}
			else
			{
				use_screensaver     = 1;
				screensaver_timeout = (yyvsp[(3) - (3)].ival);
				WRITELOG(DEBUG, "You chose a screen saver timeout of %d minute%s", screensaver_timeout, (screensaver_timeout == 1) ? "" : "s");
				if ((yyvsp[(3) - (3)].ival) == 0)
				{
					use_screensaver = 0;
					writelog(DEBUG, ", thus disabling them");
				}
				writelog(DEBUG, ".\n");
			}
		}
	}
    break;

  case 107:
#line 375 "parse_settings.y"
    {
		if(in_theme) yyerror("Setting 'screen_powersaving_timeout' is not allowed in theme file");
		TTY_CHECK_COND
		{
			if ((yyvsp[(3) - (3)].ival) < 0)
			{
				writelog(ERROR, "Invalid screen power management timeout: feature will be disabled.\n");
				use_screen_power_management     = 0;
				screen_power_management_timeout = 0;
			}
			else
			{
				use_screen_power_management     = 1;
				screen_power_management_timeout = (yyvsp[(3) - (3)].ival);
				WRITELOG(DEBUG, "You chose a screen power management timeout of %d minute%s", screen_power_management_timeout, (screen_power_management_timeout == 1) ? "" : "s");
				if ((yyvsp[(3) - (3)].ival) == 0)
				{
					use_screen_power_management = 0;
					writelog(DEBUG, ", thus disabling the feature");
				}
				writelog(DEBUG, ".\n");
			}
		}
	}
    break;

  case 108:
#line 402 "parse_settings.y"
    {
		if(in_theme) yyerror("Setting 'screensavers_dir' is not allowed in theme file.");
		TTY_CHECK_COND screensavers_dir = strdup((yyvsp[(3) - (3)].str));
	}
    break;

  case 109:
#line 409 "parse_settings.y"
    {
		if(in_theme) yyerror("Setting 'themes_dir' is not allowed in theme file.");
		TTY_CHECK_COND themes_dir = strdup((yyvsp[(3) - (3)].str));
	}
    break;

  case 110:
#line 416 "parse_settings.y"
    {
		if(in_theme) yyerror("Setting 'temp_files_dir' is not allowed in theme file.");
		TTY_CHECK_COND { if (tmp_files_dir) free(tmp_files_dir); tmp_files_dir = strdup((yyvsp[(3) - (3)].str)); };
	}
    break;

  case 111:
#line 423 "parse_settings.y"
    {
		if(in_theme) yyerror("Setting 'pre_gui_script' is not allowed in theme file.");
		TTY_CHECK_COND { if (pre_gui_script) free(pre_gui_script); pre_gui_script = strdup((yyvsp[(3) - (3)].str)); };
	}
    break;

  case 112:
#line 430 "parse_settings.y"
    {
		if(in_theme) yyerror("Setting 'post_gui_script' is not allowed in theme file.");
		TTY_CHECK_COND { if (post_gui_script) free(post_gui_script); post_gui_script = strdup((yyvsp[(3) - (3)].str)); };
	}
    break;

  case 113:
#line 436 "parse_settings.y"
    { TTY_CHECK_COND {SSAVER_CHECK_COND screensaver_name = (yyvsp[(2) - (2)].str);} }
    break;

  case 114:
#line 437 "parse_settings.y"
    { TTY_CHECK_COND screensaver_name = (yyvsp[(2) - (4)].str);}
    break;

  case 115:
#line 440 "parse_settings.y"
    { TTY_CHECK_COND {SSAVER_CHECK_COND add_to_options((yyvsp[(1) - (1)].str));} }
    break;

  case 116:
#line 441 "parse_settings.y"
    { TTY_CHECK_COND {SSAVER_CHECK_COND add_to_options((yyvsp[(3) - (3)].str));} }
    break;

  case 117:
#line 446 "parse_settings.y"
    {
	  if(in_theme) yyerror("Setting 'x_sessions' is not allowed in theme file.");
	  TTY_CHECK_COND x_sessions_directory = strdup((yyvsp[(3) - (3)].str));
	}
    break;

  case 118:
#line 454 "parse_settings.y"
    {
	  if(in_theme) yyerror("Setting 'test_sessions' is not allowed in theme file.");
	  TTY_CHECK_COND text_sessions_directory = strdup((yyvsp[(3) - (3)].str));
	}
    break;

  case 119:
#line 461 "parse_settings.y"
    {
	  if(in_theme) yyerror("Setting 'xinit' is not allowed in theme file");
	  TTY_CHECK_COND xinit = strdup((yyvsp[(3) - (3)].str));
	}
    break;

  case 120:
#line 468 "parse_settings.y"
    {
	  if(in_theme) yyerror("Setting 'xinit' is not allowed in theme file");
	  TTY_CHECK_COND x_server = strdup((yyvsp[(3) - (3)].str));
	}
    break;

  case 121:
#line 475 "parse_settings.y"
    {
	  if(in_theme) yyerror("Setting 'x_args' is not allowed in theme file");
	  TTY_CHECK_COND x_args = strdup((yyvsp[(3) - (3)].str));
	}
    break;

  case 122:
#line 482 "parse_settings.y"
    {
	  if(in_theme) yyerror("Setting 'x_server_offset' is not allowed in theme file");
	  TTY_CHECK_COND x_server_offset = (yyvsp[(3) - (3)].ival);
	}
    break;

  case 123:
#line 489 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'x_server_tty' is not allowed in theme file.");
	  TTY_CHECK_COND x_serv_tty_mgmt = QINGY_TTY;
	}
    break;

  case 124:
#line 494 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'x_server_tty' is not allowed in theme file.");
	  TTY_CHECK_COND x_serv_tty_mgmt = UNUSED_TTY;
	}
    break;

  case 125:
#line 502 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'shutdown_policy' is not allowed in theme file.");
	  TTY_CHECK_COND shutdown_policy = EVERYONE;
	}
    break;

  case 126:
#line 507 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'shutdown_policy' is not allowed in theme file.");
	  TTY_CHECK_COND shutdown_policy = ROOT;
	}
    break;

  case 127:
#line 512 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'shutdown_policy' is not allowed in theme file.");
	  TTY_CHECK_COND shutdown_policy = NOONE;
	}
    break;

  case 128:
#line 520 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'last_user_policy' is not allowed in theme file.");
	  TTY_CHECK_COND last_user_policy = LU_GLOBAL;
	}
    break;

  case 129:
#line 525 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'last_user_policy' is not allowed in theme file.");
	  TTY_CHECK_COND last_user_policy = LU_TTY;
	}
    break;

  case 130:
#line 530 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'last_user_policy' is not allowed in theme file.");
	  TTY_CHECK_COND last_user_policy = LU_NONE;
	}
    break;

  case 131:
#line 538 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'last_session_policy' is not allowed in theme file.");
	  TTY_CHECK_COND last_session_policy = LS_USER;
	}
    break;

  case 132:
#line 543 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'last_session_policy' is not allowed in theme file.");
	  TTY_CHECK_COND last_session_policy = LS_TTY;
	}
    break;

  case 133:
#line 548 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'last_session_policy' is not allowed in theme file.");
	  TTY_CHECK_COND last_session_policy = LS_NONE;
	}
    break;

  case 134:
#line 556 "parse_settings.y"
    {
	if (in_theme) yyerror("Setting 'idle_timeout' is not allowed in theme file.");
	TTY_CHECK_COND idle_timeout = (yyvsp[(3) - (3)].ival);
}
    break;

  case 135:
#line 563 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'idle_action' is not allowed in theme file.");
	  TTY_CHECK_COND timeout_action = ST_LOGOUT;
	}
    break;

  case 136:
#line 568 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'idle_action' is not allowed in theme file.");
	  TTY_CHECK_COND timeout_action = ST_LOCK;
	}
    break;

  case 137:
#line 573 "parse_settings.y"
    {
	  if (in_theme) yyerror("Setting 'idle_action' is not allowed in theme file.");
	  TTY_CHECK_COND timeout_action = ST_NONE;
	}
    break;

  case 138:
#line 580 "parse_settings.y"
    { TTY_CHECK_COND {char *temp = get_random_theme(); set_theme_result=set_theme(temp); free(temp);} }
    break;

  case 139:
#line 581 "parse_settings.y"
    { TTY_CHECK_COND set_theme_result=set_theme((yyvsp[(3) - (3)].str)); }
    break;

  case 145:
#line 590 "parse_settings.y"
    { TTY_CHECK_COND {clear_background = 1; clear_background_is_set = 1;} }
    break;

  case 146:
#line 591 "parse_settings.y"
    { TTY_CHECK_COND {clear_background = 0; clear_background_is_set = 1;} }
    break;

  case 151:
#line 599 "parse_settings.y"
    { TTY_CHECK_COND countdown_timeout       = (yyvsp[(3) - (3)].ival); }
    break;

  case 152:
#line 600 "parse_settings.y"
    { TTY_CHECK_COND info_message_timeout    = (yyvsp[(3) - (3)].ival); }
    break;

  case 153:
#line 601 "parse_settings.y"
    { TTY_CHECK_COND welcome_message_timeout = (yyvsp[(3) - (3)].ival); }
    break;

  case 154:
#line 605 "parse_settings.y"
    { TTY_CHECK_COND shutdown_timeout_message   = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 155:
#line 606 "parse_settings.y"
    { TTY_CHECK_COND restart_timeout_message    = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 156:
#line 607 "parse_settings.y"
    { TTY_CHECK_COND sleep_timeout_message      = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 157:
#line 608 "parse_settings.y"
    { TTY_CHECK_COND sleep_forbidden_message    = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 158:
#line 609 "parse_settings.y"
    { TTY_CHECK_COND shutdown_forbidden_message = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 159:
#line 610 "parse_settings.y"
    { TTY_CHECK_COND sleep_password_message     = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 160:
#line 611 "parse_settings.y"
    { TTY_CHECK_COND shutdown_password_message  = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 161:
#line 612 "parse_settings.y"
    { TTY_CHECK_COND shutdown_message           = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 162:
#line 613 "parse_settings.y"
    { TTY_CHECK_COND restart_message            = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 163:
#line 614 "parse_settings.y"
    { TTY_CHECK_COND login_message              = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 164:
#line 615 "parse_settings.y"
    { TTY_CHECK_COND login_failed_message       = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 165:
#line 616 "parse_settings.y"
    { TTY_CHECK_COND abort_message              = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 166:
#line 617 "parse_settings.y"
    { TTY_CHECK_COND caps_message               = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 167:
#line 618 "parse_settings.y"
    { TTY_CHECK_COND sleep_cmd_message          = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 168:
#line 619 "parse_settings.y"
    { TTY_CHECK_COND crypto_error_message       = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 169:
#line 620 "parse_settings.y"
    { TTY_CHECK_COND welcome_message            = strdup((yyvsp[(3) - (3)].str)); }
    break;

  case 170:
#line 625 "parse_settings.y"
    {
    curs.enable = 1;
		curs.path   = NULL;
		curs.x_off  = 0;
		curs.y_off  = 0;
		if (!in_window)
			curs.window_id = -1;
		else
			curs.window_id = wind.id;
		add_cursor_to_list(&curs);
  }
    break;

  case 171:
#line 637 "parse_settings.y"
    {
    curs.enable = 0;
		curs.path   = NULL;
		curs.x_off  = 0;
		curs.y_off  = 0;
		if (!in_window)
			curs.window_id = -1;
		else
			curs.window_id = wind.id;
		add_cursor_to_list(&curs);
  }
    break;

  case 173:
#line 653 "parse_settings.y"
    {
		curs.enable    = 1;
		curs.path      = (yyvsp[(1) - (5)].str);
		curs.x_off     = (yyvsp[(3) - (5)].ival);
		curs.y_off     = (yyvsp[(5) - (5)].ival);
		if (!in_window)
			curs.window_id = -1;
		else
			curs.window_id = wind.id;
		add_cursor_to_list(&curs);
	}
    break;

  case 174:
#line 668 "parse_settings.y"
    { 
		TTY_CHECK_COND
		{
			default_text_color.R=(yyvsp[(3) - (3)].color)[3]; default_text_color.G=(yyvsp[(3) - (3)].color)[2]; 
			default_text_color.B=(yyvsp[(3) - (3)].color)[1]; default_text_color.A=(yyvsp[(3) - (3)].color)[0];
		}
	}
    break;

  case 175:
#line 676 "parse_settings.y"
    {
		TTY_CHECK_COND
		{
			default_text_color.R = (yyvsp[(3) - (9)].ival); default_text_color.G= (yyvsp[(5) - (9)].ival);
			default_text_color.B = (yyvsp[(7) - (9)].ival); default_text_color.A= (yyvsp[(9) - (9)].ival);
		}
	}
    break;

  case 176:
#line 684 "parse_settings.y"
    { 
		TTY_CHECK_COND
		{
			default_cursor_color.R=(yyvsp[(3) - (3)].color)[3]; default_cursor_color.G=(yyvsp[(3) - (3)].color)[2];
			default_cursor_color.B=(yyvsp[(3) - (3)].color)[1]; default_cursor_color.A=(yyvsp[(3) - (3)].color)[0];
		}
	}
    break;

  case 177:
#line 692 "parse_settings.y"
    { 
		TTY_CHECK_COND
		{
			default_cursor_color.R = (yyvsp[(3) - (9)].ival); default_cursor_color.G= (yyvsp[(5) - (9)].ival); 
			default_cursor_color.B = (yyvsp[(7) - (9)].ival); default_cursor_color.A= (yyvsp[(9) - (9)].ival); 
		}
	}
    break;

  case 178:
#line 700 "parse_settings.y"
    { 
		TTY_CHECK_COND
		{
			other_text_color.R=(yyvsp[(3) - (3)].color)[3]; other_text_color.G=(yyvsp[(3) - (3)].color)[2]; 
			other_text_color.B=(yyvsp[(3) - (3)].color)[1]; other_text_color.A=(yyvsp[(3) - (3)].color)[0];
		}
	}
    break;

  case 179:
#line 708 "parse_settings.y"
    { 
		TTY_CHECK_COND
		{
			other_text_color.R = (yyvsp[(3) - (9)].ival); other_text_color.G= (yyvsp[(5) - (9)].ival); 
			other_text_color.B = (yyvsp[(7) - (9)].ival); other_text_color.A= (yyvsp[(9) - (9)].ival);
		}
	}
    break;

  case 180:
#line 719 "parse_settings.y"
    {
		TTY_CHECK_COND
		{
			theme_xres = (yyvsp[(3) - (5)].ival); theme_yres = (yyvsp[(5) - (5)].ival);
		}
	}
    break;

  case 181:
#line 726 "parse_settings.y"
    {
		TTY_CHECK_COND
		{
			theme_xres = (yyvsp[(3) - (5)].ival); theme_yres = (yyvsp[(5) - (5)].ival);
		}
	}
    break;

  case 182:
#line 735 "parse_settings.y"
    { TTY_CHECK_COND background = StrApp((char**)NULL, theme_dir, (yyvsp[(3) - (3)].str), (char*)NULL); }
    break;

  case 183:
#line 736 "parse_settings.y"
    { TTY_CHECK_COND font       = StrApp((char**)NULL, theme_dir, (yyvsp[(3) - (3)].str), (char*)NULL); }
    break;

  case 184:
#line 740 "parse_settings.y"
    { TTY_CHECK_COND button_opacity          = (yyvsp[(3) - (3)].ival); }
    break;

  case 185:
#line 741 "parse_settings.y"
    { TTY_CHECK_COND window_opacity          = (yyvsp[(3) - (3)].ival); }
    break;

  case 186:
#line 742 "parse_settings.y"
    { TTY_CHECK_COND selected_window_opacity = (yyvsp[(3) - (3)].ival); }
    break;

  case 187:
#line 747 "parse_settings.y"
    {
	  if(in_theme) yyerror("Setting 'key_bindings' is not allowed in theme file.");
	}
    break;

  case 189:
#line 754 "parse_settings.y"
    {
		if (!add_to_keybindings(action, (yyvsp[(4) - (4)].str)))
			yyerror("An error occurred while parsing your keybingings configuration.");
	}
    break;

  case 190:
#line 760 "parse_settings.y"
    { action = DO_SLEEP;        }
    break;

  case 191:
#line 761 "parse_settings.y"
    { action = DO_NEXT_TTY;     }
    break;

  case 192:
#line 762 "parse_settings.y"
    { action = DO_PREV_TTY;     }
    break;

  case 193:
#line 763 "parse_settings.y"
    { action = DO_POWEROFF;     }
    break;

  case 194:
#line 764 "parse_settings.y"
    { action = DO_REBOOT;       }
    break;

  case 195:
#line 765 "parse_settings.y"
    { action = DO_SCREEN_SAVER; }
    break;

  case 196:
#line 766 "parse_settings.y"
    { action = DO_KILL;         }
    break;

  case 197:
#line 767 "parse_settings.y"
    { action = DO_TEXT_MODE;    }
    break;

  case 198:
#line 772 "parse_settings.y"
    {
		TTY_CHECK_COND
		{
			if (got_theme)
			{
				destroy_windows_list(windowsList); 
				windowsList = NULL;
				got_theme   = 0;
			}
			add_window_to_list(&wind);
			in_window=0;
		}
	}
    break;

  case 200:
#line 787 "parse_settings.y"
    { in_window=1; }
    break;

  case 201:
#line 789 "parse_settings.y"
    { TTY_CHECK_COND wind.x=(yyvsp[(3) - (3)].ival);                        }
    break;

  case 202:
#line 790 "parse_settings.y"
    { TTY_CHECK_COND wind.y=(yyvsp[(3) - (3)].ival);                        }
    break;

  case 203:
#line 791 "parse_settings.y"
    { TTY_CHECK_COND wind.type     = get_win_type((yyvsp[(3) - (3)].str)); }
    break;

  case 204:
#line 792 "parse_settings.y"
    { TTY_CHECK_COND wind.width    = (yyvsp[(3) - (3)].ival);               }
    break;

  case 205:
#line 793 "parse_settings.y"
    { TTY_CHECK_COND wind.height   = (yyvsp[(3) - (3)].ival);               }
    break;

  case 207:
#line 795 "parse_settings.y"
    { TTY_CHECK_COND wind.content  = strdup((yyvsp[(3) - (3)].str));       }
    break;

  case 208:
#line 796 "parse_settings.y"
    { TTY_CHECK_COND wind.linkto   = strdup((yyvsp[(3) - (3)].str));       }
    break;

  case 209:
#line 797 "parse_settings.y"
    { TTY_CHECK_COND wind.polltime = (yyvsp[(3) - (3)].ival);               }
    break;

  case 214:
#line 804 "parse_settings.y"
    { TTY_CHECK_COND wind.command = NULL;       }
    break;

  case 215:
#line 805 "parse_settings.y"
    { TTY_CHECK_COND wind.command = strdup((yyvsp[(1) - (1)].str)); }
    break;

  case 216:
#line 808 "parse_settings.y"
    { TTY_CHECK_COND wind.text_orientation = LEFT;   }
    break;

  case 217:
#line 809 "parse_settings.y"
    { TTY_CHECK_COND wind.text_orientation = CENTER; }
    break;

  case 218:
#line 810 "parse_settings.y"
    { TTY_CHECK_COND wind.text_orientation = RIGHT;  }
    break;

  case 219:
#line 813 "parse_settings.y"
    { TTY_CHECK_COND wind.text_size = TINY;    }
    break;

  case 220:
#line 814 "parse_settings.y"
    { TTY_CHECK_COND wind.text_size = SMALLER; }
    break;

  case 221:
#line 815 "parse_settings.y"
    { TTY_CHECK_COND wind.text_size = SMALL;   }
    break;

  case 222:
#line 816 "parse_settings.y"
    { TTY_CHECK_COND wind.text_size = MEDIUM;  }
    break;

  case 223:
#line 817 "parse_settings.y"
    { TTY_CHECK_COND wind.text_size = LARGE;   }
    break;

  case 224:
#line 822 "parse_settings.y"
    { 
		TTY_CHECK_COND
		{
			wind.text_color = (color_t *) calloc(1, sizeof(color_t));
			wind.text_color->R=(yyvsp[(3) - (3)].color)[3]; wind.text_color->G=(yyvsp[(3) - (3)].color)[2]; 
			wind.text_color->B=(yyvsp[(3) - (3)].color)[1]; wind.text_color->A=(yyvsp[(3) - (3)].color)[0];
		}
	}
    break;

  case 225:
#line 831 "parse_settings.y"
    { 
		TTY_CHECK_COND
		{
			wind.text_color = (color_t *) calloc(1, sizeof(color_t));
			wind.text_color->R = (yyvsp[(3) - (9)].ival); wind.text_color->G = (yyvsp[(5) - (9)].ival);
			wind.text_color->B = (yyvsp[(7) - (9)].ival); wind.text_color->A = (yyvsp[(9) - (9)].ival);
		}
	}
    break;

  case 226:
#line 840 "parse_settings.y"
    {	
		TTY_CHECK_COND
		{
			wind.cursor_color = (color_t *) calloc(1, sizeof(color_t));
			wind.cursor_color->R=(yyvsp[(3) - (3)].color)[3]; wind.cursor_color->G=(yyvsp[(3) - (3)].color)[2]; 
			wind.cursor_color->B=(yyvsp[(3) - (3)].color)[1]; wind.cursor_color->A=(yyvsp[(3) - (3)].color)[0];
		}
	}
    break;

  case 227:
#line 849 "parse_settings.y"
    {
		TTY_CHECK_COND
		{
			wind.cursor_color = (color_t *) calloc(1, sizeof(color_t));
			wind.cursor_color->R = (yyvsp[(3) - (9)].ival); wind.cursor_color->G = (yyvsp[(5) - (9)].ival);
			wind.cursor_color->B = (yyvsp[(7) - (9)].ival); wind.cursor_color->A = (yyvsp[(9) - (9)].ival);
		}
	}
    break;


/* Line 1267 of yacc.c.  */
#line 3054 "parse_settings.c"
      default: break;
    }
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);

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

  *++yyvsp = yyval;


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

  yyn = yyr1[yyn];

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

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if ! YYERROR_VERBOSE
      yyerror (YY_("syntax error"));
#else
      {
	YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
	if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
	  {
	    YYSIZE_T yyalloc = 2 * yysize;
	    if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
	      yyalloc = YYSTACK_ALLOC_MAXIMUM;
	    if (yymsg != yymsgbuf)
	      YYSTACK_FREE (yymsg);
	    yymsg = (char *) YYSTACK_ALLOC (yyalloc);
	    if (yymsg)
	      yymsg_alloc = yyalloc;
	    else
	      {
		yymsg = yymsgbuf;
		yymsg_alloc = sizeof yymsgbuf;
	      }
	  }

	if (0 < yysize && yysize <= yymsg_alloc)
	  {
	    (void) yysyntax_error (yymsg, yystate, yychar);
	    yyerror (yymsg);
	  }
	else
	  {
	    yyerror (YY_("syntax error"));
	    if (yysize != 0)
	      goto yyexhaustedlab;
	  }
      }
#endif
    }



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

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

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


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

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

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


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

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


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

  if (yyn == YYFINAL)
    YYACCEPT;

  *++yyvsp = yylval;


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

  yystate = yyn;
  goto yynewstate;


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

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

#ifndef yyoverflow
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here.  |
`-------------------------------------------------*/
yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  /* Fall through.  */
#endif

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


#line 859 "parse_settings.y"


