
/*  A Bison parser, made from QuestLoader.y
 by  GNU Bison version 1.25
  */

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

#define alloca

#define yyparse QuestLoaderparse
#define yylex QuestLoaderlex
#define yyerror QuestLoadererror
#define yylval QuestLoaderlval
#define yychar QuestLoaderchar
#define yydebug QuestLoaderdebug
#define yynerrs QuestLoadernerrs
#define	QUEST_TOK	258
#define	BASIC_INFO_TOK	259
#define	QUEST_INDEX_TOK	260
#define	QUEST_NAME_TOK	261
#define	QUEST_EPISODE_TYPE_TOK	262
#define	QUEST_PARTYTYPE_TOK	263
#define	QUEST_KIND_TOK	264
#define	QUEST_TYPE_TOK	265
#define	QUEST_START_TYPE_TOK	266
#define	QUEST_END_TYPE_TOK	267
#define	QUEST_PARTY_MEMBERS_TOK	268
#define	QUEST_NPC_INFO_TOK	269
#define	NPC_INDEX_TOK	270
#define	NPC_NAME_TOK	271
#define	PRE_TALK_TOK	272
#define	MID_TALK_TOK	273
#define	FAIL_TALK_TOK	274
#define	SUCCESS_TALK_TOK	275
#define	DESCRIPTION_TOK	276
#define	EVENT_MAP_TOK	277
#define	NEXT_QUEST_INDEX_TOK	278
#define	PARTY_QUEST_MEMBER_COUNT_TOK	279
#define	DROP_ITEM_TO_ALL_ATTACK_CHARACTER_TOK	280
#define	TIME_LIMIT_IN_MINUTES_TOK	281
#define	DISCARDABLE_QUEST_TOK	282
#define	BI_QUEST_ATTRI_IS_CITYWAR_TOK	283
#define	BI_QUEST_ATTRI_NEVER_COMPLETION_BY_USER_TOK	284
#define	DROP_ITEM_TO_ALL_PARTY_MEMBERS_TOK	285
#define	START_REQ_TOK	286
#define	S_REQ_UNIT_KIND_TOK	287
#define	S_REQ_LEVEL_TOK	288
#define	S_REQ_ATTACK_PART_TOK	289
#define	S_REQ_DEFENSE_PART_TOK	290
#define	S_REQ_FUEL_PART_TOK	291
#define	S_REQ_SOUL_PART_TOK	292
#define	S_REQ_SHIELD_PART_TOK	293
#define	S_REQ_DODGE_PART_TOK	294
#define	S_REQ_ITEM_TOK	295
#define	S_REQ_QUEST_INDEX_TOK	296
#define	S_REQ_RECV_QUEST_INDEX_TOK	297
#define	S_REQ_GUILD_TOK	298
#define	S_REQ_INFLUENCE_TYPE_TOK	299
#define	S_REQ_START_AREA_TOK	300
#define	START_ACTION_TOK	301
#define	S_PAY_ITEM_TOK	302
#define	S_DEL_ITEM_TOK	303
#define	S_START_MAP_INDEX_TOK	304
#define	S_START_PARTY_WARP_FLAG_TOK	305
#define	COMPLETION_REQ_TOK	306
#define	C_REQ_MEET_NPC_INFO_TOK	307
#define	C_REQ_ITEM_TOK	308
#define	C_REQ_MEET_OBJ_INDEX_TOK	309
#define	C_REQ_DEAD_BY_MONSTER_TOK	310
#define	C_REQ_MEET_MAP_AREA_TOK	311
#define	C_REQ_MONSTER_TOK	312
#define	C_REQ_MIX_ITEM_TARGET_TOK	313
#define	C_REQ_USE_ITEM_TOK	314
#define	COMPLETION_ACTION_TOK	315
#define	C_PAY_BONUS_STAT_TOK	316
#define	C_PAY_BONUS_SKILL_POINT_TOK	317
#define	C_PAY_FAME_TOK	318
#define	C_PAY_STATUS_TOK	319
#define	C_PAY_LEVEL_TOK	320
#define	C_PAY_EXPERIENCE_TOK	321
#define	C_PAY_WARP_MAP_INDEX_TOK	322
#define	C_DEL_ITEM_TOK	323
#define	C_PAY_ITEM_TOK	324
#define	C_PAY_ITEM_MISSIONMASTER_TOK	325
#define	C_RANDOM_PAY_ITEM_TOK	326
#define	C_MIX_ITEM_TOK	327
#define	C_PAY_PROPENSITY_TOK	328
#define	C_CINEMA_NUM_TOK	329
#define	C_PAY_INFLUENCE_TYPE_TOK	330
#define	FROM_TOK	331
#define	TO_TOK	332
#define	MONSTER_TOK	333
#define	CHARACTER_TOK	334
#define	ALL_TOK	335
#define	ATTACH_TOK	336
#define	AREA_TOK	337
#define	X_TOK	338
#define	Y_TOK	339
#define	R_TOK	340
#define	PER_TOK	341
#define	PROB_100_TOK	342
#define	PROB_1K_TOK	343
#define	PROB_10K_TOK	344
#define	PROB_100K_TOK	345
#define	PROB_256_TOK	346
#define	AND_TOK	347
#define	OR_TOK	348
#define	TRUE_TOK	349
#define	FALSE_TOK	350
#define	R_ARROW_TOK	351
#define	GT_TOK	352
#define	LT_TOK	353
#define	GE_TOK	354
#define	LE_TOK	355
#define	EQUAL_TOK	356
#define	USER_VARIABLE_TOK	357
#define	INTEGER_TOK	358
#define	WORD_TOK	359
#define	QSTRING_TOK	360

#line 2 "QuestLoader.y"

#pragma warning(disable:4786)
#include <iostream>
#include "UserVariable.h"
//#include "windows.h"
#ifdef _ATUM_FIELD_SERVER
	#include "DBGOUT_Field.h"
#endif

#ifndef DBGOUT
#define DBGOUT (void(0))
#endif

#include "Quest.h"
#include "AtumDataLoader.h"

extern int QuestLoadererror(const char* s);
extern int QuestLoaderlex();

int				g_line_number_quest = 1;
CUserVariable	g_user_var_quest;

CQuest			g_quest_for_loading;
QUEST_NPC_INFO  g_quest_npc_info_for_loading;
vector<ITEM_W_COUNT>		g_item_w_count_list_for_loading;
vector<ITEM_W_COUNT_PROB>	g_item_w_count_list_for_random_pay_item;

ez_map<INT, CQuest*>	*g_pQuestInfoMap;
vectCQuestPtr			*g_pvectQuestInfoList;		// 2007-07-09 by cmkwon, 퀘스트 스크립트를 정보를 vector로 받기 위해

#line 33 "QuestLoader.y"
typedef union
{
	int					BOOLEAN;
	int					integer;
	char				string2048[2048];
	MONSTER_W_COUNT		monster_w_count;
	ITEM_W_COUNT		item_w_count;
	ITEM_W_COUNT_PROB	item_w_count_prob;
	QUEST_PAY_ITEM		quest_pay_item;
	INT_RANGE			integer_range;
	MAP_AREA			map_area;
} YYSTYPE;
#include <stdio.h>

#ifndef __cplusplus
#ifndef __STDC__
#define const
#endif
#endif



#define	YYFINAL		469
#define	YYFLAG		32768
#define	YYNTBASE	118

#define YYTRANSLATE(x) ((unsigned)(x) <= 360 ? yytranslate[x] : 144)

static const char yytranslate[] = {     0,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,   112,
   113,   109,   107,   116,   106,     2,   108,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,   111,     2,
   110,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,   114,     2,   115,   117,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     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
};

#if YYDEBUG != 0
static const short yyprhs[] = {     0,
     0,     2,     5,     7,     9,    14,    19,    24,    33,    35,
    38,    44,    49,    55,    60,    66,    71,    77,    82,    88,
    93,    95,    98,   103,   108,   113,   118,   123,   128,   133,
   138,   143,   149,   154,   159,   164,   169,   174,   179,   184,
   189,   194,   199,   204,   209,   214,   219,   224,   229,   234,
   239,   244,   249,   254,   259,   264,   269,   274,   279,   284,
   289,   295,   301,   306,   311,   328,   347,   352,   357,   362,
   368,   373,   378,   383,   388,   393,   398,   403,   408,   413,
   418,   423,   430,   438,   443,   448,   453,   455,   459,   466,
   468,   472,   473,   486,   489,   493,   499,   504,   509,   513,
   517,   521,   525,   529,   533,   537,   539,   541,   543,   545,
   550,   555,   560,   565,   570,   575,   577,   580,   585,   590,
   595,   600,   605,   610,   611,   614,   615,   617,   618,   621,
   623,   625,   630,   635,   640,   645
};

static const short yyrhs[] = {   119,
     0,   118,   119,     0,   120,     0,   121,     0,   102,   110,
   131,   111,     0,   102,   110,   105,   111,     0,   102,   110,
   102,   111,     0,     3,   112,   103,   113,   114,   122,   115,
   111,     0,   123,     0,   122,   123,     0,     4,   114,   124,
   115,   111,     0,     4,   114,   115,   111,     0,    31,   114,
   124,   115,   111,     0,    31,   114,   115,   111,     0,    46,
   114,   124,   115,   111,     0,    46,   114,   115,   111,     0,
    51,   114,   124,   115,   111,     0,    51,   114,   115,   111,
     0,    60,   114,   124,   115,   111,     0,    60,   114,   115,
   111,     0,   125,     0,   124,   125,     0,     5,   110,   131,
   111,     0,     6,   110,   132,   111,     0,     7,   110,   131,
   111,     0,     8,   110,   131,   111,     0,     9,   110,   131,
   111,     0,    10,   110,   131,   111,     0,    11,   110,   131,
   111,     0,    12,   110,   131,   111,     0,    13,   110,   131,
   111,     0,    14,   114,   137,   115,   111,     0,    21,   110,
   132,   111,     0,    22,   110,   131,   111,     0,    23,   110,
   131,   111,     0,    24,   110,   131,   111,     0,    25,   110,
   142,   111,     0,    26,   110,   131,   111,     0,    27,   110,
   142,   111,     0,    28,   110,   142,   111,     0,    29,   110,
   142,   111,     0,    30,   110,   142,   111,     0,    32,   110,
   131,   111,     0,    33,   110,   130,   111,     0,    34,   110,
   130,   111,     0,    35,   110,   130,   111,     0,    36,   110,
   130,   111,     0,    37,   110,   130,   111,     0,    38,   110,
   130,   111,     0,    39,   110,   130,   111,     0,    40,   110,
   134,   111,     0,    41,   110,   131,   111,     0,    42,   110,
   131,   111,     0,    43,   110,   131,   111,     0,    44,   110,
   131,   111,     0,    45,   110,   129,   111,     0,    47,   110,
   135,   111,     0,    48,   110,   134,   111,     0,    49,   110,
   131,   111,     0,    50,   110,   142,   111,     0,    52,   114,
   137,   115,   111,     0,    54,   110,   131,   129,   111,     0,
    59,   110,   134,   111,     0,    53,   110,   134,   111,     0,
    53,   110,   134,    76,    78,   112,   131,   116,   131,   117,
   131,   116,   131,   113,   129,   111,     0,    53,   110,   134,
    76,    79,   112,   131,   116,   131,   116,   131,   117,   131,
   116,   131,   113,   129,   111,     0,    55,   110,   131,   111,
     0,    56,   110,   129,   111,     0,    57,   110,   133,   111,
     0,    57,   110,   133,   129,   111,     0,    58,   110,   134,
   111,     0,    61,   110,   131,   111,     0,    62,   110,   131,
   111,     0,    63,   110,   131,   111,     0,    64,   110,   131,
   111,     0,    65,   110,   131,   111,     0,    66,   110,   131,
   111,     0,    67,   110,   131,   111,     0,    68,   110,   134,
   111,     0,    69,   110,   135,   111,     0,    70,   110,   136,
   111,     0,    71,   110,   126,    86,   131,   111,     0,    72,
   110,   128,    96,   131,   143,   111,     0,    73,   110,   131,
   111,     0,    74,   110,   131,   111,     0,    75,   110,   131,
   111,     0,   127,     0,   126,    93,   127,     0,   131,   112,
   131,   116,   131,   113,     0,   134,     0,   128,   107,   134,
     0,     0,    82,   131,   112,    83,   131,   116,    84,   131,
   116,    85,   131,   113,     0,    82,   131,     0,   112,   131,
   113,     0,   112,   131,   117,   131,   113,     0,   112,   131,
   117,   113,     0,   112,   117,   131,   113,     0,   131,   107,
   131,     0,   131,   106,   131,     0,   131,   109,   131,     0,
   131,   108,   131,     0,   131,    92,   131,     0,   131,    93,
   131,     0,   112,   131,   113,     0,   103,     0,   102,     0,
   105,     0,   102,     0,   131,   112,   131,   113,     0,   131,
   112,    80,   113,     0,   131,   112,   131,   113,     0,   131,
   112,    80,   113,     0,   134,   139,   140,   141,     0,   134,
   139,   140,   141,     0,   138,     0,   137,   138,     0,    15,
   110,   131,   111,     0,    16,   110,   132,   111,     0,    17,
   110,   132,   111,     0,    18,   110,   132,   111,     0,    19,
   110,   132,   111,     0,    20,   110,   132,   111,     0,     0,
    86,   131,     0,     0,    81,     0,     0,    77,   131,     0,
    94,     0,    95,     0,    87,   112,   131,   113,     0,    88,
   112,   131,   113,     0,    89,   112,   131,   113,     0,    90,
   112,   131,   113,     0,    91,   112,   131,   113,     0
};

#endif

#if YYDEBUG != 0
static const short yyrline[] = { 0,
   186,   188,   192,   194,   198,   204,   210,   232,   258,   260,
   264,   269,   271,   273,   275,   277,   279,   281,   283,   285,
   289,   291,   295,   301,   313,   318,   323,   328,   333,   338,
   343,   348,   354,   366,   371,   376,   381,   386,   391,   396,
   401,   406,   411,   417,   422,   427,   432,   437,   442,   447,
   452,   457,   462,   467,   472,   477,   482,   488,   493,   498,
   503,   510,   517,   523,   528,   551,   570,   575,   580,   589,
   598,   603,   609,   615,   620,   625,   630,   635,   640,   645,
   650,   655,   676,   703,   708,   713,   720,   725,   732,   741,
   746,   753,   761,   769,   779,   785,   791,   797,   805,   807,
   809,   811,   824,   826,   828,   830,   832,   852,   854,   874,
   880,   888,   894,   902,   913,   924,   926,   930,   935,   947,
   959,   971,   983,   997,  1002,  1009,  1014,  1021,  1026,  1033,
  1038,  1045,  1050,  1055,  1060,  1065
};
#endif


#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)

static const char * const yytname[] = {   "$","error","$undefined.","QUEST_TOK",
"BASIC_INFO_TOK","QUEST_INDEX_TOK","QUEST_NAME_TOK","QUEST_EPISODE_TYPE_TOK",
"QUEST_PARTYTYPE_TOK","QUEST_KIND_TOK","QUEST_TYPE_TOK","QUEST_START_TYPE_TOK",
"QUEST_END_TYPE_TOK","QUEST_PARTY_MEMBERS_TOK","QUEST_NPC_INFO_TOK","NPC_INDEX_TOK",
"NPC_NAME_TOK","PRE_TALK_TOK","MID_TALK_TOK","FAIL_TALK_TOK","SUCCESS_TALK_TOK",
"DESCRIPTION_TOK","EVENT_MAP_TOK","NEXT_QUEST_INDEX_TOK","PARTY_QUEST_MEMBER_COUNT_TOK",
"DROP_ITEM_TO_ALL_ATTACK_CHARACTER_TOK","TIME_LIMIT_IN_MINUTES_TOK","DISCARDABLE_QUEST_TOK",
"BI_QUEST_ATTRI_IS_CITYWAR_TOK","BI_QUEST_ATTRI_NEVER_COMPLETION_BY_USER_TOK",
"DROP_ITEM_TO_ALL_PARTY_MEMBERS_TOK","START_REQ_TOK","S_REQ_UNIT_KIND_TOK","S_REQ_LEVEL_TOK",
"S_REQ_ATTACK_PART_TOK","S_REQ_DEFENSE_PART_TOK","S_REQ_FUEL_PART_TOK","S_REQ_SOUL_PART_TOK",
"S_REQ_SHIELD_PART_TOK","S_REQ_DODGE_PART_TOK","S_REQ_ITEM_TOK","S_REQ_QUEST_INDEX_TOK",
"S_REQ_RECV_QUEST_INDEX_TOK","S_REQ_GUILD_TOK","S_REQ_INFLUENCE_TYPE_TOK","S_REQ_START_AREA_TOK",
"START_ACTION_TOK","S_PAY_ITEM_TOK","S_DEL_ITEM_TOK","S_START_MAP_INDEX_TOK",
"S_START_PARTY_WARP_FLAG_TOK","COMPLETION_REQ_TOK","C_REQ_MEET_NPC_INFO_TOK",
"C_REQ_ITEM_TOK","C_REQ_MEET_OBJ_INDEX_TOK","C_REQ_DEAD_BY_MONSTER_TOK","C_REQ_MEET_MAP_AREA_TOK",
"C_REQ_MONSTER_TOK","C_REQ_MIX_ITEM_TARGET_TOK","C_REQ_USE_ITEM_TOK","COMPLETION_ACTION_TOK",
"C_PAY_BONUS_STAT_TOK","C_PAY_BONUS_SKILL_POINT_TOK","C_PAY_FAME_TOK","C_PAY_STATUS_TOK",
"C_PAY_LEVEL_TOK","C_PAY_EXPERIENCE_TOK","C_PAY_WARP_MAP_INDEX_TOK","C_DEL_ITEM_TOK",
"C_PAY_ITEM_TOK","C_PAY_ITEM_MISSIONMASTER_TOK","C_RANDOM_PAY_ITEM_TOK","C_MIX_ITEM_TOK",
"C_PAY_PROPENSITY_TOK","C_CINEMA_NUM_TOK","C_PAY_INFLUENCE_TYPE_TOK","FROM_TOK",
"TO_TOK","MONSTER_TOK","CHARACTER_TOK","ALL_TOK","ATTACH_TOK","AREA_TOK","X_TOK",
"Y_TOK","R_TOK","PER_TOK","PROB_100_TOK","PROB_1K_TOK","PROB_10K_TOK","PROB_100K_TOK",
"PROB_256_TOK","AND_TOK","OR_TOK","TRUE_TOK","FALSE_TOK","R_ARROW_TOK","GT_TOK",
"LT_TOK","GE_TOK","LE_TOK","EQUAL_TOK","USER_VARIABLE_TOK","INTEGER_TOK","WORD_TOK",
"QSTRING_TOK","'-'","'+'","'/'","'*'","'='","';'","'('","')'","'{'","'}'","','",
"'~'","command_list","command","user_variable_definition","quest_definition",
"quest_content_list","quest_content","statement_list","statement","item_w_count_prob_list",
"item_w_count_prob_value","item_w_count_list","map_area_value","integer_range_value",
"integer_expression","string_expression","monster_w_count_value","item_w_count_value",
"quest_pay_item_value","quest_missinmaster_pay_item_value","quest_npc_statement_list",
"quest_npc_statement","per_item_value","attach_value","to_unit_kind_value","boolean_value",
"prob_value", NULL
};
#endif

static const short yyr1[] = {     0,
   118,   118,   119,   119,   120,   120,   120,   121,   122,   122,
   123,   123,   123,   123,   123,   123,   123,   123,   123,   123,
   124,   124,   125,   125,   125,   125,   125,   125,   125,   125,
   125,   125,   125,   125,   125,   125,   125,   125,   125,   125,
   125,   125,   125,   125,   125,   125,   125,   125,   125,   125,
   125,   125,   125,   125,   125,   125,   125,   125,   125,   125,
   125,   125,   125,   125,   125,   125,   125,   125,   125,   125,
   125,   125,   125,   125,   125,   125,   125,   125,   125,   125,
   125,   125,   125,   125,   125,   125,   126,   126,   127,   128,
   128,   129,   129,   129,   130,   130,   130,   130,   131,   131,
   131,   131,   131,   131,   131,   131,   131,   132,   132,   133,
   133,   134,   134,   135,   136,   137,   137,   138,   138,   138,
   138,   138,   138,   139,   139,   140,   140,   141,   141,   142,
   142,   143,   143,   143,   143,   143
};

static const short yyr2[] = {     0,
     1,     2,     1,     1,     4,     4,     4,     8,     1,     2,
     5,     4,     5,     4,     5,     4,     5,     4,     5,     4,
     1,     2,     4,     4,     4,     4,     4,     4,     4,     4,
     4,     5,     4,     4,     4,     4,     4,     4,     4,     4,
     4,     4,     4,     4,     4,     4,     4,     4,     4,     4,
     4,     4,     4,     4,     4,     4,     4,     4,     4,     4,
     5,     5,     4,     4,    16,    18,     4,     4,     4,     5,
     4,     4,     4,     4,     4,     4,     4,     4,     4,     4,
     4,     6,     7,     4,     4,     4,     1,     3,     6,     1,
     3,     0,    12,     2,     3,     5,     4,     4,     3,     3,
     3,     3,     3,     3,     3,     1,     1,     1,     1,     4,
     4,     4,     4,     4,     4,     1,     2,     4,     4,     4,
     4,     4,     4,     0,     2,     0,     1,     0,     2,     1,
     1,     4,     4,     4,     4,     4
};

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

static const short yydefgoto[] = {     3,
     4,     5,     6,    41,    42,   112,   113,   268,   269,   271,
   242,   228,   235,   198,   254,   243,   244,   267,   212,   213,
   327,   377,   404,   220,   417
};

static const short yypact[] = {    -2,
  -109,   -85,     4,-32768,-32768,-32768,   -76,   105,-32768,   -84,
   -80,-32768,   -31,   -79,   358,   -55,-32768,-32768,-32768,   206,
   -79,   -79,   -79,   -79,   -79,   -79,-32768,    18,-32768,-32768,
-32768,   -16,   -16,   -81,   -81,   -24,   -15,   -13,    -3,     0,
     1,-32768,   449,   533,   617,   701,   785,   -28,-32768,     2,
    19,    21,    26,    40,    42,    44,    47,    49,    28,    50,
    58,    62,    79,    87,    99,   108,   113,   135,   145,   157,
   158,   159,   177,   179,   185,   186,   190,   193,   194,   195,
   198,   199,   201,   207,   216,   218,   219,   102,   221,   222,
   223,   224,   225,   233,   234,   246,   248,   249,   250,   251,
   252,   256,   257,   264,   266,   267,   273,   274,   282,   286,
    -1,   869,-32768,   183,   953,   205,  1037,   231,  1121,   271,
  1205,-32768,   -79,   -32,   -79,   -79,   -79,   -79,   -79,   -79,
   -79,   212,   -32,   -79,   -79,   -79,   -20,   -79,   -20,   -20,
   -20,   -20,   -79,    20,    20,    20,    20,    20,    20,    20,
   -79,   -79,   -79,   -79,   -79,   317,   -79,   -79,   -79,   -20,
   212,   -79,   -79,   -79,   317,   -79,   -79,   -79,   -79,   -79,
   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,   -79,
   -79,   -79,   -79,-32768,   289,-32768,-32768,   290,-32768,   291,
-32768,   297,-32768,   299,   442,-32768,-32768,   303,   526,   610,
   694,   778,   862,   946,  1030,   305,   315,   322,   324,   333,
   334,    22,-32768,   319,  1114,  1262,  1270,-32768,-32768,   328,
  1282,   337,   338,   341,   357,  1290,    31,   369,   384,   389,
   398,   414,   415,   416,  1226,   417,  1302,  1310,  1322,  1330,
   -79,   418,   323,   419,   420,  1342,   421,    38,   -68,   -11,
  1350,   422,  1234,   -48,   425,   426,  1362,  1370,  1382,  1390,
  1402,  1410,  1422,   441,   468,   323,   473,   -14,-32768,  1244,
   -86,-32768,  1430,  1442,  1450,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,   -79,
   -32,   -32,   -32,   -32,   -32,   482,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,   -79,    -4,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,   -52,-32768,-32768,
-32768,-32768,-32768,  1252,-32768,   -79,   528,-32768,-32768,-32768,
-32768,   499,    29,-32768,   500,-32768,-32768,   -18,-32768,   501,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,   528,-32768,   -79,   -79,   -79,   -79,   -79,-32768,-32768,
-32768,  1462,   502,   503,   504,   505,   506,-32768,   214,-32768,
    93,   507,   232,   538,  1482,-32768,   559,-32768,   551,   556,
-32768,   564,   244,-32768,   559,  1470,-32768,    84,   184,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,   262,-32768,
-32768,   -79,   -79,-32768,   -79,   -79,-32768,-32768,-32768,-32768,
   -79,   581,   582,   583,   584,   585,   587,-32768,    95,  1482,
   106,   128,   272,   -79,   -79,   -79,   -79,   -79,-32768,   615,
   -79,   -79,-32768,   280,   298,   320,   329,  1189,   -79,    32,
   132,-32768,-32768,-32768,-32768,-32768,   150,   -79,   -79,   616,
   154,    77,   -79,   -79,   -79,  1197,  1208,   172,-32768,   317,
   -79,   589,  1216,-32768,   317,   593,-32768,   705,-32768
};

static const short yypgoto[] = {-32768,
   717,-32768,-32768,-32768,   706,   239,  1480,-32768,   397,-32768,
  -163,   104,    -8,  -113,-32768,  -132,   600,-32768,   618,  -203,
   495,   428,   393,   -74,-32768
};


#define	YYLAST		1601


static const short yytable[] = {    15,
     1,   252,     7,   468,    36,    20,     1,   333,   297,   357,
    21,    22,    30,    31,    32,    33,    34,    35,   236,   214,
   358,    36,    19,    12,     8,   245,    10,   372,    16,   249,
    17,    37,    14,   241,   255,   256,   206,   207,   208,   209,
   210,   211,   334,   264,   297,   266,    38,   272,    37,    19,
    12,    39,   206,   207,   208,   209,   210,   211,    28,    14,
    40,   382,   339,    38,   222,   223,   224,   225,    39,   196,
   241,   354,   197,   218,   219,    21,    22,    40,   355,    18,
    21,    22,   122,    19,    12,   247,   335,    21,    22,    43,
   340,    25,    26,    14,    23,    24,    25,    26,    44,     2,
    45,    23,    24,    25,    26,     2,   379,   380,   370,   184,
    46,   123,   371,    47,   195,    48,   199,   200,   201,   202,
   203,   204,   205,    21,    22,   215,   216,   217,   124,   221,
   125,   227,    19,    12,   226,   126,   296,    23,    24,    25,
    26,   132,    14,   237,   238,   239,   240,   309,   448,   127,
   246,   128,   332,   129,   250,   251,   130,   253,   131,   133,
   257,   258,   259,   260,   261,   262,   263,   134,    21,    22,
   270,   135,   273,   274,   275,    21,    22,   363,   364,   365,
   366,   367,    23,    24,    25,    26,    21,    22,   136,    23,
    24,    25,    26,   455,    19,    12,   137,    21,    22,   411,
    23,    24,    25,    26,    14,   398,    11,    12,   138,    13,
   430,    23,    24,    25,    26,   161,    14,   139,   310,    21,
    22,   431,   140,    21,    22,   390,   206,   207,   208,   209,
   210,   211,   324,    23,    24,    25,    26,    23,    24,    25,
    26,    21,    22,   432,   141,    21,    22,   449,   229,   230,
   231,   232,   233,   234,   142,    23,    24,    25,    26,    23,
    24,    25,    26,    21,    22,   450,   143,   144,   145,   454,
   412,   413,   414,   415,   416,    21,    22,    23,    24,    25,
    26,   362,   115,   117,   119,   121,   146,   461,   147,    23,
    24,    25,    26,   187,   148,   149,   462,    21,    22,   150,
   369,   466,   151,   152,   153,    21,    22,   154,   155,   373,
   156,    23,    24,    25,    26,   189,   157,   375,    29,    23,
    24,    25,    26,    21,    22,   158,   397,   159,   160,   383,
   162,   163,   164,   165,   166,    21,    22,    23,    24,    25,
    26,   191,   167,   168,   401,   386,   270,   388,   389,    23,
    24,    25,    26,    21,    22,   169,   408,   170,   171,   172,
   173,   174,   399,    21,    22,   175,   176,    23,    24,    25,
    26,    21,    22,   177,   418,   178,   179,    23,    24,    25,
    26,   193,   180,   181,   433,    23,    24,    25,    26,    21,
    22,   182,   442,   419,   420,   183,   421,   422,   241,   276,
   277,   278,   423,    23,    24,    25,    26,   279,   326,   280,
   443,    21,    22,   282,   290,   434,   435,   436,   437,   438,
    21,    22,   440,   441,   291,    23,    24,    25,    26,   298,
   447,   292,   444,   293,    23,    24,    25,    26,   302,   451,
   452,   445,   294,   295,   456,   457,   458,   304,   305,    21,
    22,   306,   463,    50,    51,    52,    53,    54,    55,    56,
    57,    58,    59,    23,    24,    25,    26,   307,    27,    60,
    61,    62,    63,    64,    65,    66,    67,    68,    69,   311,
    70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
    80,    81,    82,    83,   312,    84,    85,    86,    87,   313,
    88,    89,    90,    91,    92,    93,    94,    95,   314,    96,
    97,    98,    99,   100,   101,   102,   103,   104,   105,   106,
   107,   108,   109,   110,   315,   316,   317,   319,   325,   328,
   329,   331,   337,    21,    22,   341,   342,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    23,    24,    25,
    26,   350,   281,    60,    61,    62,    63,    64,    65,    66,
    67,    68,    69,   111,    70,    71,    72,    73,    74,    75,
    76,    77,    78,    79,    80,    81,    82,    83,   351,    84,
    85,    86,    87,   353,    88,    89,    90,    91,    92,    93,
    94,    95,   368,    96,    97,    98,    99,   100,   101,   102,
   103,   104,   105,   106,   107,   108,   109,   110,   376,   378,
   381,   384,   392,   393,   394,   395,   396,    21,    22,   400,
   402,    50,    51,    52,    53,    54,    55,    56,    57,    58,
    59,    23,    24,    25,    26,   403,   283,    60,    61,    62,
    63,    64,    65,    66,    67,    68,    69,   114,    70,    71,
    72,    73,    74,    75,    76,    77,    78,    79,    80,    81,
    82,    83,   405,    84,    85,    86,    87,   406,    88,    89,
    90,    91,    92,    93,    94,    95,   407,    96,    97,    98,
    99,   100,   101,   102,   103,   104,   105,   106,   107,   108,
   109,   110,   424,   425,   426,   427,   428,   429,   439,   464,
   453,    21,    22,   467,   469,    50,    51,    52,    53,    54,
    55,    56,    57,    58,    59,    23,    24,    25,    26,     9,
   284,    60,    61,    62,    63,    64,    65,    66,    67,    68,
    69,   116,    70,    71,    72,    73,    74,    75,    76,    77,
    78,    79,    80,    81,    82,    83,    49,    84,    85,    86,
    87,   387,    88,    89,    90,    91,    92,    93,    94,    95,
   352,    96,    97,    98,    99,   100,   101,   102,   103,   104,
   105,   106,   107,   108,   109,   110,   265,   409,   248,   385,
     0,     0,     0,     0,     0,    21,    22,     0,     0,    50,
    51,    52,    53,    54,    55,    56,    57,    58,    59,    23,
    24,    25,    26,     0,   285,    60,    61,    62,    63,    64,
    65,    66,    67,    68,    69,   118,    70,    71,    72,    73,
    74,    75,    76,    77,    78,    79,    80,    81,    82,    83,
     0,    84,    85,    86,    87,     0,    88,    89,    90,    91,
    92,    93,    94,    95,     0,    96,    97,    98,    99,   100,
   101,   102,   103,   104,   105,   106,   107,   108,   109,   110,
     0,     0,     0,     0,     0,     0,     0,     0,     0,    21,
    22,     0,     0,    50,    51,    52,    53,    54,    55,    56,
    57,    58,    59,    23,    24,    25,    26,     0,   286,    60,
    61,    62,    63,    64,    65,    66,    67,    68,    69,   120,
    70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
    80,    81,    82,    83,     0,    84,    85,    86,    87,     0,
    88,    89,    90,    91,    92,    93,    94,    95,     0,    96,
    97,    98,    99,   100,   101,   102,   103,   104,   105,   106,
   107,   108,   109,   110,     0,     0,     0,     0,     0,     0,
     0,     0,     0,    21,    22,     0,     0,    50,    51,    52,
    53,    54,    55,    56,    57,    58,    59,    23,    24,    25,
    26,     0,   287,    60,    61,    62,    63,    64,    65,    66,
    67,    68,    69,   185,    70,    71,    72,    73,    74,    75,
    76,    77,    78,    79,    80,    81,    82,    83,     0,    84,
    85,    86,    87,     0,    88,    89,    90,    91,    92,    93,
    94,    95,     0,    96,    97,    98,    99,   100,   101,   102,
   103,   104,   105,   106,   107,   108,   109,   110,     0,     0,
     0,     0,     0,     0,     0,     0,     0,    21,    22,     0,
     0,    50,    51,    52,    53,    54,    55,    56,    57,    58,
    59,    23,    24,    25,    26,     0,   288,    60,    61,    62,
    63,    64,    65,    66,    67,    68,    69,   188,    70,    71,
    72,    73,    74,    75,    76,    77,    78,    79,    80,    81,
    82,    83,     0,    84,    85,    86,    87,     0,    88,    89,
    90,    91,    92,    93,    94,    95,     0,    96,    97,    98,
    99,   100,   101,   102,   103,   104,   105,   106,   107,   108,
   109,   110,     0,     0,     0,     0,     0,     0,     0,     0,
     0,    21,    22,     0,     0,    50,    51,    52,    53,    54,
    55,    56,    57,    58,    59,    23,    24,    25,    26,     0,
   289,    60,    61,    62,    63,    64,    65,    66,    67,    68,
    69,   190,    70,    71,    72,    73,    74,    75,    76,    77,
    78,    79,    80,    81,    82,    83,     0,    84,    85,    86,
    87,     0,    88,    89,    90,    91,    92,    93,    94,    95,
     0,    96,    97,    98,    99,   100,   101,   102,   103,   104,
   105,   106,   107,   108,   109,   110,     0,     0,     0,     0,
     0,     0,     0,     0,     0,    21,    22,     0,     0,    50,
    51,    52,    53,    54,    55,    56,    57,    58,    59,    23,
    24,    25,    26,     0,   299,    60,    61,    62,    63,    64,
    65,    66,    67,    68,    69,   192,    70,    71,    72,    73,
    74,    75,    76,    77,    78,    79,    80,    81,    82,    83,
     0,    84,    85,    86,    87,     0,    88,    89,    90,    91,
    92,    93,    94,    95,     0,    96,    97,    98,    99,   100,
   101,   102,   103,   104,   105,   106,   107,   108,   109,   110,
    21,    22,     0,     0,     0,     0,     0,     0,    21,    22,
     0,     0,     0,     0,    23,    24,    25,    26,     0,    21,
    22,   446,    23,    24,    25,    26,     0,    21,    22,   459,
     0,     0,     0,    23,    24,    25,    26,    21,    22,   194,
   460,    23,    24,    25,    26,    21,    22,     0,   465,     0,
     0,    23,    24,    25,    26,    21,    22,   318,     0,    23,
    24,    25,    26,    21,    22,   338,     0,     0,     0,    23,
    24,    25,    26,    21,    22,   356,     0,    23,    24,    25,
    26,    21,    22,   374,     0,     0,     0,    23,    24,    25,
    26,     0,   300,    21,    22,    23,    24,    25,    26,     0,
   301,    21,    22,     0,     0,     0,     0,    23,    24,    25,
    26,     0,   303,    21,    22,    23,    24,    25,    26,     0,
   308,    21,    22,     0,     0,     0,     0,    23,    24,    25,
    26,     0,   320,    21,    22,    23,    24,    25,    26,     0,
   321,    21,    22,     0,     0,     0,     0,    23,    24,    25,
    26,     0,   322,    21,    22,    23,    24,    25,    26,     0,
   323,    21,    22,     0,     0,     0,     0,    23,    24,    25,
    26,     0,   330,    21,    22,    23,    24,    25,    26,     0,
   336,    21,    22,     0,     0,     0,     0,    23,    24,    25,
    26,     0,   343,    21,    22,    23,    24,    25,    26,     0,
   344,    21,    22,     0,     0,     0,     0,    23,    24,    25,
    26,     0,   345,    21,    22,    23,    24,    25,    26,     0,
   346,    21,    22,     0,     0,     0,     0,    23,    24,    25,
    26,     0,   347,    21,    22,    23,    24,    25,    26,     0,
   348,    21,    22,     0,     0,     0,     0,    23,    24,    25,
    26,     0,   349,    21,    22,    23,    24,    25,    26,     0,
   359,    21,    22,     0,     0,     0,     0,    23,    24,    25,
    26,     0,   360,    21,    22,    23,    24,    25,    26,     0,
   361,    21,    22,     0,     0,     0,     0,    23,    24,    25,
    26,     0,   391,    21,    22,    23,    24,    25,    26,     0,
   410,     0,     0,     0,     0,     0,     0,    23,    24,    25,
    26,   186,     0,     0,   186,     0,   186,     0,   186,     0,
   186
};

static const short yycheck[] = {     8,
     3,   165,   112,     0,     4,    14,     3,    76,   212,    96,
    92,    93,    21,    22,    23,    24,    25,    26,   151,   133,
   107,     4,   102,   103,   110,   158,   103,    80,   113,   162,
   111,    31,   112,    82,   167,   168,    15,    16,    17,    18,
    19,    20,   111,   176,   248,   178,    46,   180,    31,   102,
   103,    51,    15,    16,    17,    18,    19,    20,   114,   112,
    60,    80,   111,    46,   139,   140,   141,   142,    51,   102,
    82,    86,   105,    94,    95,    92,    93,    60,    93,   111,
    92,    93,   111,   102,   103,   160,   250,    92,    93,   114,
   254,   108,   109,   112,   106,   107,   108,   109,   114,   102,
   114,   106,   107,   108,   109,   102,    78,    79,   113,   111,
   114,   110,   117,   114,   123,   115,   125,   126,   127,   128,
   129,   130,   131,    92,    93,   134,   135,   136,   110,   138,
   110,   112,   102,   103,   143,   110,   115,   106,   107,   108,
   109,   114,   112,   152,   153,   154,   155,   117,   117,   110,
   159,   110,   115,   110,   163,   164,   110,   166,   110,   110,
   169,   170,   171,   172,   173,   174,   175,   110,    92,    93,
   179,   110,   181,   182,   183,    92,    93,   291,   292,   293,
   294,   295,   106,   107,   108,   109,    92,    93,   110,   106,
   107,   108,   109,   117,   102,   103,   110,    92,    93,   116,
   106,   107,   108,   109,   112,   113,   102,   103,   110,   105,
   116,   106,   107,   108,   109,   114,   112,   110,   227,    92,
    93,   116,   110,    92,    93,   358,    15,    16,    17,    18,
    19,    20,   241,   106,   107,   108,   109,   106,   107,   108,
   109,    92,    93,   116,   110,    92,    93,   116,   145,   146,
   147,   148,   149,   150,   110,   106,   107,   108,   109,   106,
   107,   108,   109,    92,    93,   116,   110,   110,   110,   116,
    87,    88,    89,    90,    91,    92,    93,   106,   107,   108,
   109,   290,    44,    45,    46,    47,   110,   116,   110,   106,
   107,   108,   109,   111,   110,   110,   460,    92,    93,   110,
   309,   465,   110,   110,   110,    92,    93,   110,   110,   318,
   110,   106,   107,   108,   109,   111,   110,   326,   113,   106,
   107,   108,   109,    92,    93,   110,   113,   110,   110,   338,
   110,   110,   110,   110,   110,    92,    93,   106,   107,   108,
   109,   111,   110,   110,   113,   354,   355,   356,   357,   106,
   107,   108,   109,    92,    93,   110,   113,   110,   110,   110,
   110,   110,   371,    92,    93,   110,   110,   106,   107,   108,
   109,    92,    93,   110,   113,   110,   110,   106,   107,   108,
   109,   111,   110,   110,   113,   106,   107,   108,   109,    92,
    93,   110,   113,   402,   403,   110,   405,   406,    82,   111,
   111,   111,   411,   106,   107,   108,   109,   111,    86,   111,
   113,    92,    93,   111,   110,   424,   425,   426,   427,   428,
    92,    93,   431,   432,   110,   106,   107,   108,   109,   111,
   439,   110,   113,   110,   106,   107,   108,   109,   111,   448,
   449,   113,   110,   110,   453,   454,   455,   111,   111,    92,
    93,   111,   461,     5,     6,     7,     8,     9,    10,    11,
    12,    13,    14,   106,   107,   108,   109,   111,   111,    21,
    22,    23,    24,    25,    26,    27,    28,    29,    30,   111,
    32,    33,    34,    35,    36,    37,    38,    39,    40,    41,
    42,    43,    44,    45,   111,    47,    48,    49,    50,   111,
    52,    53,    54,    55,    56,    57,    58,    59,   111,    61,
    62,    63,    64,    65,    66,    67,    68,    69,    70,    71,
    72,    73,    74,    75,   111,   111,   111,   111,   111,   111,
   111,   111,   111,    92,    93,   111,   111,     5,     6,     7,
     8,     9,    10,    11,    12,    13,    14,   106,   107,   108,
   109,   111,   111,    21,    22,    23,    24,    25,    26,    27,
    28,    29,    30,   115,    32,    33,    34,    35,    36,    37,
    38,    39,    40,    41,    42,    43,    44,    45,   111,    47,
    48,    49,    50,   111,    52,    53,    54,    55,    56,    57,
    58,    59,   111,    61,    62,    63,    64,    65,    66,    67,
    68,    69,    70,    71,    72,    73,    74,    75,    81,   111,
   111,   111,   111,   111,   111,   111,   111,    92,    93,   113,
    83,     5,     6,     7,     8,     9,    10,    11,    12,    13,
    14,   106,   107,   108,   109,    77,   111,    21,    22,    23,
    24,    25,    26,    27,    28,    29,    30,   115,    32,    33,
    34,    35,    36,    37,    38,    39,    40,    41,    42,    43,
    44,    45,   112,    47,    48,    49,    50,   112,    52,    53,
    54,    55,    56,    57,    58,    59,   113,    61,    62,    63,
    64,    65,    66,    67,    68,    69,    70,    71,    72,    73,
    74,    75,   112,   112,   112,   112,   112,   111,    84,   111,
    85,    92,    93,   111,     0,     5,     6,     7,     8,     9,
    10,    11,    12,    13,    14,   106,   107,   108,   109,     3,
   111,    21,    22,    23,    24,    25,    26,    27,    28,    29,
    30,   115,    32,    33,    34,    35,    36,    37,    38,    39,
    40,    41,    42,    43,    44,    45,    41,    47,    48,    49,
    50,   355,    52,    53,    54,    55,    56,    57,    58,    59,
   266,    61,    62,    63,    64,    65,    66,    67,    68,    69,
    70,    71,    72,    73,    74,    75,   177,   385,   161,   352,
    -1,    -1,    -1,    -1,    -1,    92,    93,    -1,    -1,     5,
     6,     7,     8,     9,    10,    11,    12,    13,    14,   106,
   107,   108,   109,    -1,   111,    21,    22,    23,    24,    25,
    26,    27,    28,    29,    30,   115,    32,    33,    34,    35,
    36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
    -1,    47,    48,    49,    50,    -1,    52,    53,    54,    55,
    56,    57,    58,    59,    -1,    61,    62,    63,    64,    65,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,
    93,    -1,    -1,     5,     6,     7,     8,     9,    10,    11,
    12,    13,    14,   106,   107,   108,   109,    -1,   111,    21,
    22,    23,    24,    25,    26,    27,    28,    29,    30,   115,
    32,    33,    34,    35,    36,    37,    38,    39,    40,    41,
    42,    43,    44,    45,    -1,    47,    48,    49,    50,    -1,
    52,    53,    54,    55,    56,    57,    58,    59,    -1,    61,
    62,    63,    64,    65,    66,    67,    68,    69,    70,    71,
    72,    73,    74,    75,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    92,    93,    -1,    -1,     5,     6,     7,
     8,     9,    10,    11,    12,    13,    14,   106,   107,   108,
   109,    -1,   111,    21,    22,    23,    24,    25,    26,    27,
    28,    29,    30,   115,    32,    33,    34,    35,    36,    37,
    38,    39,    40,    41,    42,    43,    44,    45,    -1,    47,
    48,    49,    50,    -1,    52,    53,    54,    55,    56,    57,
    58,    59,    -1,    61,    62,    63,    64,    65,    66,    67,
    68,    69,    70,    71,    72,    73,    74,    75,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    92,    93,    -1,
    -1,     5,     6,     7,     8,     9,    10,    11,    12,    13,
    14,   106,   107,   108,   109,    -1,   111,    21,    22,    23,
    24,    25,    26,    27,    28,    29,    30,   115,    32,    33,
    34,    35,    36,    37,    38,    39,    40,    41,    42,    43,
    44,    45,    -1,    47,    48,    49,    50,    -1,    52,    53,
    54,    55,    56,    57,    58,    59,    -1,    61,    62,    63,
    64,    65,    66,    67,    68,    69,    70,    71,    72,    73,
    74,    75,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    92,    93,    -1,    -1,     5,     6,     7,     8,     9,
    10,    11,    12,    13,    14,   106,   107,   108,   109,    -1,
   111,    21,    22,    23,    24,    25,    26,    27,    28,    29,
    30,   115,    32,    33,    34,    35,    36,    37,    38,    39,
    40,    41,    42,    43,    44,    45,    -1,    47,    48,    49,
    50,    -1,    52,    53,    54,    55,    56,    57,    58,    59,
    -1,    61,    62,    63,    64,    65,    66,    67,    68,    69,
    70,    71,    72,    73,    74,    75,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    92,    93,    -1,    -1,     5,
     6,     7,     8,     9,    10,    11,    12,    13,    14,   106,
   107,   108,   109,    -1,   111,    21,    22,    23,    24,    25,
    26,    27,    28,    29,    30,   115,    32,    33,    34,    35,
    36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
    -1,    47,    48,    49,    50,    -1,    52,    53,    54,    55,
    56,    57,    58,    59,    -1,    61,    62,    63,    64,    65,
    66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
    92,    93,    -1,    -1,    -1,    -1,    -1,    -1,    92,    93,
    -1,    -1,    -1,    -1,   106,   107,   108,   109,    -1,    92,
    93,   113,   106,   107,   108,   109,    -1,    92,    93,   113,
    -1,    -1,    -1,   106,   107,   108,   109,    92,    93,   115,
   113,   106,   107,   108,   109,    92,    93,    -1,   113,    -1,
    -1,   106,   107,   108,   109,    92,    93,   112,    -1,   106,
   107,   108,   109,    92,    93,   112,    -1,    -1,    -1,   106,
   107,   108,   109,    92,    93,   112,    -1,   106,   107,   108,
   109,    92,    93,   112,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    92,    93,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    92,    93,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    92,    93,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    92,    93,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    92,    93,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    92,    93,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    92,    93,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    92,    93,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    92,    93,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    92,    93,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,    -1,   111,    92,    93,   106,   107,   108,   109,    -1,
   111,    -1,    -1,    -1,    -1,    -1,    -1,   106,   107,   108,
   109,   112,    -1,    -1,   115,    -1,   117,    -1,   119,    -1,
   121
};
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */

/* Skeleton output parser for bison,
   Copyright (C) 1984, 1989, 1990 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., 675 Mass Ave, Cambridge, MA 02139, USA.  */

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

#ifndef alloca
#ifdef __GNUC__
#define alloca __builtin_alloca
#else /* not GNU C.  */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
#include <alloca.h>
#else /* not sparc */
#if defined (MSDOS) && !defined (__TURBOC__)
#include <malloc.h>
#else /* not MSDOS, or __TURBOC__ */
#if defined(_AIX)
#include <malloc.h>
 #pragma alloca
#else /* not MSDOS, __TURBOC__, or _AIX */
#ifdef __hpux
#ifdef __cplusplus
extern "C" {
void *alloca (unsigned int);
};
#else /* not __cplusplus */
void *alloca ();
#endif /* not __cplusplus */
#endif /* __hpux */
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc.  */
#endif /* not GNU C.  */
#endif /* alloca not defined.  */

/* This is the parser code that is written into each bison parser
  when the %semantic_parser declaration is not specified in the grammar.
  It was written by Richard Stallman by simplifying the hairy parser
  used when %semantic_parser is specified.  */

/* Note: there must be only one dollar sign in this file.
   It is replaced by the list of actions, each action
   as one case of the switch.  */

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		-2
#define YYEOF		0
#define YYACCEPT	return(0)
#define YYABORT 	return(1)
#define YYERROR		goto yyerrlab1
/* Like YYERROR except do call yyerror.
   This remains here temporarily to ease the
   transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */
#define YYFAIL		goto yyerrlab
#define YYRECOVERING()  (!!yyerrstatus)
#define YYBACKUP(token, value) \
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    { yychar = (token), yylval = (value);			\
      yychar1 = YYTRANSLATE (yychar);				\
      YYPOPSTACK;						\
      goto yybackup;						\
    }								\
  else								\
    { yyerror ("syntax error: cannot back up"); YYERROR; }	\
while (0)

#define YYTERROR	1
#define YYERRCODE	256

#ifndef YYPURE
#define YYLEX		yylex()
#endif

#ifdef YYPURE
#ifdef YYLSP_NEEDED
#ifdef YYLEX_PARAM
#define YYLEX		yylex(&yylval, &yylloc, YYLEX_PARAM)
#else
#define YYLEX		yylex(&yylval, &yylloc)
#endif
#else /* not YYLSP_NEEDED */
#ifdef YYLEX_PARAM
#define YYLEX		yylex(&yylval, YYLEX_PARAM)
#else
#define YYLEX		yylex(&yylval)
#endif
#endif /* not YYLSP_NEEDED */
#endif

/* If nonreentrant, generate the variables here */

#ifndef YYPURE

int	yychar;			/*  the lookahead symbol		*/
YYSTYPE	yylval;			/*  the semantic value of the		*/
				/*  lookahead symbol			*/

#ifdef YYLSP_NEEDED
YYLTYPE yylloc;			/*  location data for the lookahead	*/
				/*  symbol				*/
#endif

int yynerrs;			/*  number of parse errors so far       */
#endif  /* not YYPURE */

#if YYDEBUG != 0
int yydebug;			/*  nonzero means print parse trace	*/
/* Since this is uninitialized, it does not stop multiple parsers
   from coexisting.  */
#endif

/*  YYINITDEPTH indicates the initial size of the parser's stacks	*/

#ifndef	YYINITDEPTH
#define YYINITDEPTH 200
#endif

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

#if YYMAXDEPTH == 0
#undef YYMAXDEPTH
#endif

#ifndef YYMAXDEPTH
#define YYMAXDEPTH 10000
#endif

/* Prevent warning if -Wstrict-prototypes.  */
#ifdef __GNUC__
int yyparse (void);
#endif

#if __GNUC__ > 1		/* GNU C and GNU C++ define this.  */
#define __yy_memcpy(TO,FROM,COUNT)	__builtin_memcpy(TO,FROM,COUNT)
#else				/* not GNU C or C++ */
#ifndef __cplusplus

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
__yy_memcpy (to, from, count)
     char *to;
     char *from;
     int count;
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#else /* __cplusplus */

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
__yy_memcpy (char *to, char *from, int count)
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#endif
#endif


/* The user can define YYPARSE_PARAM as the name of an argument to be passed
   into yyparse.  The argument should have type void *.
   It should actually point to an object.
   Grammar actions can access the variable by casting it
   to the proper pointer type.  */

#ifdef YYPARSE_PARAM
#ifdef __cplusplus
#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#define YYPARSE_PARAM_DECL
#else /* not __cplusplus */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
#endif /* not __cplusplus */
#else /* not YYPARSE_PARAM */
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#endif /* not YYPARSE_PARAM */

int
yyparse(YYPARSE_PARAM_ARG)
     YYPARSE_PARAM_DECL
{
  register int yystate;
  register int yyn;
  register short *yyssp;
  register YYSTYPE *yyvsp;
  int yyerrstatus;	/*  number of tokens to shift before error messages enabled */
  int yychar1 = 0;		/*  lookahead token as an internal (translated) token number */

  short	yyssa[YYINITDEPTH];	/*  the state stack			*/
  YYSTYPE yyvsa[YYINITDEPTH];	/*  the semantic value stack		*/

  short *yyss = yyssa;		/*  refer to the stacks thru separate pointers */
  YYSTYPE *yyvs = yyvsa;	/*  to allow yyoverflow to reallocate them elsewhere */

#ifdef YYLSP_NEEDED
  YYLTYPE yylsa[YYINITDEPTH];	/*  the location stack			*/
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yylsp;

#define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
#else
#define YYPOPSTACK   (yyvsp--, yyssp--)
#endif

  int yystacksize = YYINITDEPTH;

#ifdef YYPURE
  int yychar;
  YYSTYPE yylval;
  int yynerrs;
#ifdef YYLSP_NEEDED
  YYLTYPE yylloc;
#endif
#endif

  YYSTYPE yyval;		/*  the variable used to return		*/
				/*  semantic values from the action	*/
				/*  routines				*/

  int yylen;

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Starting parse\n");
#endif

  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 - 1;
  yyvsp = yyvs;
#ifdef YYLSP_NEEDED
  yylsp = yyls;
#endif

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

  *++yyssp = yystate;

  if (yyssp >= yyss + yystacksize - 1)
    {
      /* Give user a chance to reallocate the stack */
      /* Use copies of these so that the &'s don't force the real ones into memory. */
      YYSTYPE *yyvs1 = yyvs;
      short *yyss1 = yyss;
#ifdef YYLSP_NEEDED
      YYLTYPE *yyls1 = yyls;
#endif

      /* Get the current used size of the three stacks, in elements.  */
      int size = yyssp - yyss + 1;

#ifdef yyoverflow
      /* Each stack pointer address is followed by the size of
	 the data in use in that stack, in bytes.  */
#ifdef YYLSP_NEEDED
      /* This used to be a conditional around just the two extra args,
	 but that might be undefined if yyoverflow is a macro.  */
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yyls1, size * sizeof (*yylsp),
		 &yystacksize);
#else
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yystacksize);
#endif

      yyss = yyss1; yyvs = yyvs1;
#ifdef YYLSP_NEEDED
      yyls = yyls1;
#endif
#else /* no yyoverflow */
      /* Extend the stack our own way.  */
      if (yystacksize >= YYMAXDEPTH)
	{
	  yyerror("parser stack overflow");
	  return 2;
	}
      yystacksize *= 2;
      if (yystacksize > YYMAXDEPTH)
	yystacksize = YYMAXDEPTH;
      yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
      __yy_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp));
      yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
      __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp));
#ifdef YYLSP_NEEDED
      yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
      __yy_memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp));
#endif
#endif /* no yyoverflow */

      yyssp = yyss + size - 1;
      yyvsp = yyvs + size - 1;
#ifdef YYLSP_NEEDED
      yylsp = yyls + size - 1;
#endif

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Stack size increased to %d\n", yystacksize);
#endif

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

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Entering state %d\n", yystate);
#endif

  goto yybackup;
 yybackup:

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

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

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    goto yydefault;

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

  /* yychar is either YYEMPTY or YYEOF
     or a valid token in external form.  */

  if (yychar == YYEMPTY)
    {
#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Reading a token: ");
#endif
      yychar = YYLEX;
    }

  /* Convert token to internal form (in yychar1) for indexing tables with */

  if (yychar <= 0)		/* This means end of input. */
    {
      yychar1 = 0;
      yychar = YYEOF;		/* Don't call YYLEX any more */

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Now at end of input.\n");
#endif
    }
  else
    {
      yychar1 = YYTRANSLATE(yychar);

#if YYDEBUG != 0
      if (yydebug)
	{
	  fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
	  /* Give the individual parser a way to print the precise meaning
	     of a token, for further debugging info.  */
#ifdef YYPRINT
	  YYPRINT (stderr, yychar, yylval);
#endif
	  fprintf (stderr, ")\n");
	}
#endif
    }

  yyn += yychar1;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
    goto yydefault;

  yyn = yytable[yyn];

  /* yyn is what to do for this token type in this state.
     Negative => reduce, -yyn is rule number.
     Positive => shift, yyn is new state.
       New state is final state => don't bother to shift,
       just return success.
     0, or most negative number => error.  */

  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }
  else if (yyn == 0)
    goto yyerrlab;

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Shift the lookahead token.  */

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
#endif

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

  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

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

  yystate = yyn;
  goto yynewstate;

/* Do the default action for the current state.  */
yydefault:

  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;

/* Do a reduction.  yyn is the number of a rule to reduce with.  */
yyreduce:
  yylen = yyr2[yyn];
  if (yylen > 0)
    yyval = yyvsp[1-yylen]; /* implement default value of the action */

#if YYDEBUG != 0
  if (yydebug)
    {
      int i;

      fprintf (stderr, "Reducing via rule %d (line %d), ",
	       yyn, yyrline[yyn]);

      /* Print the symbols being reduced, and their result.  */
      for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
	fprintf (stderr, "%s ", yytname[yyrhs[i]]);
      fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
    }
#endif


  switch (yyn) {

case 5:
#line 200 "QuestLoader.y"
{
			g_user_var_quest.AddUserVariableInteger(yyvsp[-3].string2048, yyvsp[-1].integer);
			_loader_print("user variable %s = %d\n", yyvsp[-3].string2048, yyvsp[-1].integer);
		;
    break;}
case 6:
#line 206 "QuestLoader.y"
{
			g_user_var_quest.AddUserVariableString(yyvsp[-3].string2048, yyvsp[-1].string2048);
			_loader_print("user variable %s = %s\n", yyvsp[-3].string2048, yyvsp[-1].string2048);
		;
    break;}
case 7:
#line 212 "QuestLoader.y"
{
			USER_VAR_ELEMENT *pElem = g_user_var_quest.GetUserVariable(yyvsp[-1].string2048);
			if (pElem == NULL)
			{
				// error
				QuestLoadererror("User Variable NOT Defined");
				return -1;
			}

			if (pElem->Type == ET_INTEGER)
			{
				_loader_print("user variable %s = %d\n", yyvsp[-3].string2048, pElem->IntValue);
			}
			else if (pElem->Type == ET_STRING)
			{
				_loader_print("user variable %s = %s\n", yyvsp[-3].string2048, pElem->StringValue);
			}
		;
    break;}
case 8:
#line 234 "QuestLoader.y"
{
			// 2008-09-09 by cmkwon, 퀘스트 인덱스 중복 체크 
			if(NULL != g_pQuestInfoMap->findEZ(yyvsp[-5].integer))
			{
				// error
				QuestLoadererror("QuestIndex dup");
				return -1;
			}

			// 2007-07-09 by cmkwon, 퀘스트 스크립트를 정보를 vector로 받기 위해 - 아래와 같이 수정
			//g_pQuestInfoMap->insertEZ($3, g_quest_for_loading.Clone());
			CQuest *pQuestInfo = g_quest_for_loading.Clone();
			g_pQuestInfoMap->insertEZ(yyvsp[-5].integer, pQuestInfo);
			if(g_pvectQuestInfoList)
			{
				g_pvectQuestInfoList->push_back(pQuestInfo);
			}
			_loader_print("quest %d defined...\n", yyvsp[-5].integer);

			// reset
			g_quest_for_loading.Reset();
		;
    break;}
case 11:
#line 266 "QuestLoader.y"
{
			// _loader_print("%s's BASIC_INFO Parsed\n", "rr");
		;
    break;}
case 23:
#line 298 "QuestLoader.y"
{
			g_quest_for_loading.QuestIndex = yyvsp[-1].integer;
		;
    break;}
case 24:
#line 303 "QuestLoader.y"
{
#ifdef _ATUM_FIELD_SERVER
			if(SIZE_MAX_QUEST_NAME <= strlen(yyvsp[-1].string2048))
			{
				DbgOut("QuestName overflow error, QuestIndex(%d) QuestNameLength(%d)\n", g_quest_for_loading.QuestIndex, strlen(yyvsp[-1].string2048));
			}
#endif
			memset(g_quest_for_loading.QuestName, 0x00, SIZE_MAX_QUEST_NAME);
			strncpy(g_quest_for_loading.QuestName, yyvsp[-1].string2048, SIZE_MAX_QUEST_NAME-1);
		;
    break;}
case 25:
#line 315 "QuestLoader.y"
{
			g_quest_for_loading.QuestEpisodeType = yyvsp[-1].integer;	// 2008-06-16 by cmkwon, EP3 퀘스트 기존 퀘스트와 구별 - 
		;
    break;}
case 26:
#line 320 "QuestLoader.y"
{
			g_quest_for_loading.QuestPartyType = yyvsp[-1].integer;        // 2008-12-02 by dhjin, 미션마스터
		;
    break;}
case 27:
#line 325 "QuestLoader.y"
{
			g_quest_for_loading.QuestKind = yyvsp[-1].integer;
		;
    break;}
case 28:
#line 330 "QuestLoader.y"
{
			g_quest_for_loading.QuestType = yyvsp[-1].integer;
		;
    break;}
case 29:
#line 335 "QuestLoader.y"
{
			g_quest_for_loading.QuestStartType = yyvsp[-1].integer;
		;
    break;}
case 30:
#line 340 "QuestLoader.y"
{
			g_quest_for_loading.QuestEndType = yyvsp[-1].integer;
		;
    break;}
case 31:
#line 345 "QuestLoader.y"
{
			g_quest_for_loading.QuestPartyMembers = yyvsp[-1].integer;
		;
    break;}
case 32:
#line 350 "QuestLoader.y"
{
			g_quest_for_loading.QuestNPCInfo = g_quest_npc_info_for_loading;
			g_quest_npc_info_for_loading.Reset();
		;
    break;}
case 33:
#line 356 "QuestLoader.y"
{
#ifdef _ATUM_FIELD_SERVER
			if(SIZE_MAX_NPC_TALK_STRING <= strlen(yyvsp[-1].string2048))
			{
				DbgOut("QuestDescription overflow error, QuestIndex(%d) QuestDescriptionLength(%d)\n", g_quest_for_loading.QuestIndex, strlen(yyvsp[-1].string2048));
			}
#endif
			memset(g_quest_for_loading.QuestDescription, 0x00, SIZE_MAX_NPC_TALK_STRING);
			strncpy(g_quest_for_loading.QuestDescription, yyvsp[-1].string2048, SIZE_MAX_NPC_TALK_STRING-1);
		;
    break;}
case 34:
#line 368 "QuestLoader.y"
{
			g_quest_for_loading.EventMapIndex = yyvsp[-1].integer;
		;
    break;}
case 35:
#line 373 "QuestLoader.y"
{
			g_quest_for_loading.NextQuestIndex = yyvsp[-1].integer;
		;
    break;}
case 36:
#line 378 "QuestLoader.y"
{
			g_quest_for_loading.PartyQuestMemberCount = yyvsp[-1].integer;
		;
    break;}
case 37:
#line 383 "QuestLoader.y"
{
			g_quest_for_loading.DropItemToAllAttackCharacter = yyvsp[-1].BOOLEAN;
		;
    break;}
case 38:
#line 388 "QuestLoader.y"
{
			g_quest_for_loading.TimeLimitInMinutes = yyvsp[-1].integer;
		;
    break;}
case 39:
#line 393 "QuestLoader.y"
{
			g_quest_for_loading.IsDiscardable = yyvsp[-1].BOOLEAN;
		;
    break;}
case 40:
#line 398 "QuestLoader.y"
{
			g_quest_for_loading.IsCityWar = yyvsp[-1].BOOLEAN;
		;
    break;}
case 41:
#line 403 "QuestLoader.y"
{
			g_quest_for_loading.IsNeverCompletionByUser = yyvsp[-1].BOOLEAN;
		;
    break;}
case 42:
#line 408 "QuestLoader.y"
{
			g_quest_for_loading.IsDropItemToAllPartyMembers = yyvsp[-1].BOOLEAN;
		;
    break;}
case 43:
#line 414 "QuestLoader.y"
{
			g_quest_for_loading.ReqUnitKind = yyvsp[-1].integer;
		;
    break;}
case 44:
#line 419 "QuestLoader.y"
{
			g_quest_for_loading.ReqLevel = yyvsp[-1].integer_range;
		;
    break;}
case 45:
#line 424 "QuestLoader.y"
{
			g_quest_for_loading.ReqAttackPart = yyvsp[-1].integer_range;
		;
    break;}
case 46:
#line 429 "QuestLoader.y"
{
			g_quest_for_loading.ReqDefensePart = yyvsp[-1].integer_range;
		;
    break;}
case 47:
#line 434 "QuestLoader.y"
{
			g_quest_for_loading.ReqFuelPart = yyvsp[-1].integer_range;
		;
    break;}
case 48:
#line 439 "QuestLoader.y"
{
			g_quest_for_loading.ReqSoulPart = yyvsp[-1].integer_range;
		;
    break;}
case 49:
#line 444 "QuestLoader.y"
{
			g_quest_for_loading.ReqShieldPart = yyvsp[-1].integer_range;
		;
    break;}
case 50:
#line 449 "QuestLoader.y"
{
			g_quest_for_loading.ReqDodgePart = yyvsp[-1].integer_range;
		;
    break;}
case 51:
#line 454 "QuestLoader.y"
{
			g_quest_for_loading.ReqItemVector.push_back(yyvsp[-1].item_w_count);
		;
    break;}
case 52:
#line 459 "QuestLoader.y"
{
			g_quest_for_loading.ReqQuestIndexVector.push_back(yyvsp[-1].integer);
		;
    break;}
case 53:
#line 464 "QuestLoader.y"
{
			g_quest_for_loading.ReqRecvQuestIndexVector.push_back(yyvsp[-1].integer);
		;
    break;}
case 54:
#line 469 "QuestLoader.y"
{
			g_quest_for_loading.ReqGuild = yyvsp[-1].integer;
		;
    break;}
case 55:
#line 474 "QuestLoader.y"
{
			g_quest_for_loading.ReqInfluenceType = yyvsp[-1].integer;
		;
    break;}
case 56:
#line 479 "QuestLoader.y"
{
			g_quest_for_loading.ReqStartArea = yyvsp[-1].map_area;
		;
    break;}
case 57:
#line 485 "QuestLoader.y"
{
			g_quest_for_loading.StartPayItemVector.push_back(yyvsp[-1].quest_pay_item);
		;
    break;}
case 58:
#line 490 "QuestLoader.y"
{
			g_quest_for_loading.StartDelItemVector.push_back(yyvsp[-1].item_w_count);
		;
    break;}
case 59:
#line 495 "QuestLoader.y"
{
			g_quest_for_loading.StartMapIndex = yyvsp[-1].integer;
		;
    break;}
case 60:
#line 500 "QuestLoader.y"
{
			g_quest_for_loading.StartPartyWarpFlag = yyvsp[-1].BOOLEAN;
		;
    break;}
case 61:
#line 506 "QuestLoader.y"
{
			g_quest_for_loading.TargetMeetNPCInfo = g_quest_npc_info_for_loading;
			g_quest_npc_info_for_loading.Reset();
		;
    break;}
case 62:
#line 512 "QuestLoader.y"
{
			g_quest_for_loading.TargetMeetObjectIndex = yyvsp[-2].integer;
			g_quest_for_loading.TargetMeetObjectMapArea = yyvsp[-1].map_area;
		;
    break;}
case 63:
#line 519 "QuestLoader.y"
{
			g_quest_for_loading.TargetUseItemVector.push_back(yyvsp[-1].item_w_count);
		;
    break;}
case 64:
#line 525 "QuestLoader.y"
{
			g_quest_for_loading.TargetItemVector.push_back(yyvsp[-1].item_w_count);
		;
    break;}
case 65:
#line 530 "QuestLoader.y"
{
			///////////////////////////////////////////////////////////////////////////////
			// 2007-03-14 by cmkwon, ItemNum이 0이거나 Count가 0이면 드랍아이템리스트에는 추가하지 않는다. 위치 정보에는 추가한다.
			if(0 < yyvsp[-13].item_w_count.ItemNum
				&& 0 <= yyvsp[-13].item_w_count.Count)
			{
				QUEST_DROP_ITEM tmpQuestDropItem;
				tmpQuestDropItem.MonsterUniqueNumber = yyvsp[-9].integer;
				tmpQuestDropItem.ItemNumber = yyvsp[-13].item_w_count.ItemNum;
				tmpQuestDropItem.MinCount = yyvsp[-7].integer;
				tmpQuestDropItem.MaxCount = yyvsp[-5].integer;
				tmpQuestDropItem.Probability = yyvsp[-3].integer;
				g_quest_for_loading.vecQuestDropItem.push_back(tmpQuestDropItem);
			}

			ITEM_W_COUNT_MAP_AREA tmpTargetMonsterItem;
			tmpTargetMonsterItem.ItemWithCount = yyvsp[-13].item_w_count;
			tmpTargetMonsterItem.MapArea = yyvsp[-1].map_area;
			tmpTargetMonsterItem.MonsterUniqueNumber = yyvsp[-9].integer;
			g_quest_for_loading.TargetMonsterItemVector.push_back(tmpTargetMonsterItem);
		;
    break;}
case 66:
#line 553 "QuestLoader.y"
{
			QUEST_DROP_CHARACTER2ITEM tmpQuestDropItem;
			tmpQuestDropItem.InfluenceType0				= yyvsp[-11].integer;
			tmpQuestDropItem.UnitKindMask0				= yyvsp[-9].integer;
			tmpQuestDropItem.Character2Item.ItemNumber	= yyvsp[-15].item_w_count.ItemNum;
			tmpQuestDropItem.Character2Item.MinCount	= yyvsp[-7].integer;
			tmpQuestDropItem.Character2Item.MaxCount	= yyvsp[-5].integer;
			tmpQuestDropItem.Character2Item.Probability = yyvsp[-3].integer;
			tmpQuestDropItem.Character2Item.QuestIndex	= 0;
			g_quest_for_loading.vecQuestDropCharacter2Item.push_back(tmpQuestDropItem);

			ITEM_W_COUNT_MAP_AREA tmpTargetMonsterItem;
			tmpTargetMonsterItem.ItemWithCount = yyvsp[-15].item_w_count;
			tmpTargetMonsterItem.MapArea = yyvsp[-1].map_area;
			tmpTargetMonsterItem.MonsterUniqueNumber = 0;
			g_quest_for_loading.TargetMonsterItemVector.push_back(tmpTargetMonsterItem);
		;
    break;}
case 67:
#line 572 "QuestLoader.y"
{
			g_quest_for_loading.TargetDeadByMonsterUniquenumber = yyvsp[-1].integer;
		;
    break;}
case 68:
#line 577 "QuestLoader.y"
{
			g_quest_for_loading.TargetMeetMapArea = yyvsp[-1].map_area;
		;
    break;}
case 69:
#line 582 "QuestLoader.y"
{
			MONSTER_W_COUNT tmMonCnt;
			tmMonCnt.MonsterUniqueNumber	= yyvsp[-1].monster_w_count.MonsterUniqueNumber;
			tmMonCnt.Count					= yyvsp[-1].monster_w_count.Count;
			tmMonCnt.MapArea.Reset();
			g_quest_for_loading.TargetMonsterVector.push_back(tmMonCnt);
		;
    break;}
case 70:
#line 591 "QuestLoader.y"
{
			MONSTER_W_COUNT tmMonCnt;
			tmMonCnt.MonsterUniqueNumber	= yyvsp[-2].monster_w_count.MonsterUniqueNumber;
			tmMonCnt.Count					= yyvsp[-2].monster_w_count.Count;
			tmMonCnt.MapArea				= yyvsp[-1].map_area;
			g_quest_for_loading.TargetMonsterVector.push_back(tmMonCnt);
		;
    break;}
case 71:
#line 600 "QuestLoader.y"
{
			g_quest_for_loading.TargetMixItemTarget	= yyvsp[-1].item_w_count;
		;
    break;}
case 72:
#line 606 "QuestLoader.y"
{
			g_quest_for_loading.EndPayBonusStat = yyvsp[-1].integer;
		;
    break;}
case 73:
#line 611 "QuestLoader.y"
{
// 2005-11-15 by cmkwon, 삭제함
//			g_quest_for_loading.EndPayBonusSkillPoint = $3;
		;
    break;}
case 74:
#line 617 "QuestLoader.y"
{
			g_quest_for_loading.EndPayFame = yyvsp[-1].integer;
		;
    break;}
case 75:
#line 622 "QuestLoader.y"
{
			g_quest_for_loading.EndPayStatus = yyvsp[-1].integer;
		;
    break;}
case 76:
#line 627 "QuestLoader.y"
{
			g_quest_for_loading.EndPayLevel = yyvsp[-1].integer;
		;
    break;}
case 77:
#line 632 "QuestLoader.y"
{
			g_quest_for_loading.EndPayExperience = yyvsp[-1].integer;
		;
    break;}
case 78:
#line 637 "QuestLoader.y"
{
			g_quest_for_loading.EndPayWarpMapIndex = yyvsp[-1].integer;
		;
    break;}
case 79:
#line 642 "QuestLoader.y"
{
			g_quest_for_loading.EndDeleteItemVector.push_back(yyvsp[-1].item_w_count);
		;
    break;}
case 80:
#line 647 "QuestLoader.y"
{
			g_quest_for_loading.EndPayItemVector.push_back(yyvsp[-1].quest_pay_item);
		;
    break;}
case 81:
#line 652 "QuestLoader.y"
{// 2008-12-02 by dhjin, 미션마스터
			g_quest_for_loading.EndMissionMasterPayItemVector.push_back(yyvsp[-1].quest_pay_item);
		;
    break;}
case 82:
#line 657 "QuestLoader.y"
{
			// not implemented yet
			QUEST_RANDOM_PAY_ITEM tmpRandomPayItem; tmpRandomPayItem.Reset();
			for (int i = 0; i < g_item_w_count_list_for_random_pay_item.size(); i++)
			{
				if (i >= COUNT_RANDOM_PAY_ITEM)
				{
					break;
				}

				tmpRandomPayItem.ItemWithCountProb[i] = g_item_w_count_list_for_random_pay_item[i];
				tmpRandomPayItem.NumOfItems++;
			}
			tmpRandomPayItem.PerItemNum = yyvsp[-1].integer;

			g_quest_for_loading.EndRandomPayItemVector.push_back(tmpRandomPayItem);

			g_item_w_count_list_for_random_pay_item.clear();
		;
    break;}
case 83:
#line 678 "QuestLoader.y"
{
			ITEM_MIXING_INFO tmpMixingInfo;
			tmpMixingInfo.TargetItemNum = yyvsp[-2].integer;
			tmpMixingInfo.MixingProbability = yyvsp[-1].integer;
			tmpMixingInfo.MixingCost = 0;
			memset(tmpMixingInfo.SourceItem, 0x00, COUNT_ITEM_MIXING_SOURCE*sizeof(ITEM_W_COUNT));
			tmpMixingInfo.NumOfSourceItems = 0;
			for (int i = 0; i < g_item_w_count_list_for_loading.size(); i++)
			{
				if (i >= COUNT_ITEM_MIXING_SOURCE)
				{
					break;
				}

				// 할당
				tmpMixingInfo.SourceItem[i] = g_item_w_count_list_for_loading[i];
				tmpMixingInfo.NumOfSourceItems++;

				//printf("%d(%d)\r\n", g_item_w_count_list_for_loading[i].ItemNum, g_item_w_count_list_for_loading[i].Count);
			}

			g_quest_for_loading.EndPayMixItemVector.push_back(tmpMixingInfo);

			g_item_w_count_list_for_loading.clear();
		;
    break;}
case 84:
#line 705 "QuestLoader.y"
{
			g_quest_for_loading.EndPayPropensity = yyvsp[-1].integer;
		;
    break;}
case 85:
#line 710 "QuestLoader.y"
{
			g_quest_for_loading.EndCinemaNum = yyvsp[-1].integer;
		;
    break;}
case 86:
#line 715 "QuestLoader.y"
{
			g_quest_for_loading.EndInfluenceType = yyvsp[-1].integer;
		;
    break;}
case 87:
#line 722 "QuestLoader.y"
{
			g_item_w_count_list_for_random_pay_item.push_back(yyvsp[0].item_w_count_prob);
		;
    break;}
case 88:
#line 727 "QuestLoader.y"
{
			g_item_w_count_list_for_random_pay_item.push_back(yyvsp[0].item_w_count_prob);
		;
    break;}
case 89:
#line 734 "QuestLoader.y"
{
			yyval.item_w_count_prob.ItemNum = yyvsp[-5].integer;
			yyval.item_w_count_prob.Count = yyvsp[-3].integer;
			yyval.item_w_count_prob.Prob100 = yyvsp[-1].integer;
		;
    break;}
case 90:
#line 743 "QuestLoader.y"
{
			g_item_w_count_list_for_loading.push_back(yyvsp[0].item_w_count);
		;
    break;}
case 91:
#line 748 "QuestLoader.y"
{
			g_item_w_count_list_for_loading.push_back(yyvsp[0].item_w_count);
		;
    break;}
case 92:
#line 755 "QuestLoader.y"
{
			yyval.map_area.MapIndex = 0;
			yyval.map_area.X = -1;
			yyval.map_area.Y = -1;
			yyval.map_area.Radius = -1;
		;
    break;}
case 93:
#line 763 "QuestLoader.y"
{
			yyval.map_area.MapIndex = yyvsp[-10].integer;
			yyval.map_area.X = yyvsp[-7].integer;
			yyval.map_area.Y = yyvsp[-4].integer;
			yyval.map_area.Radius = yyvsp[-1].integer;
		;
    break;}
case 94:
#line 771 "QuestLoader.y"
{
			yyval.map_area.MapIndex = yyvsp[0].integer;
			yyval.map_area.X = -1;
			yyval.map_area.Y = -1;
			yyval.map_area.Radius = -1;
		;
    break;}
case 95:
#line 781 "QuestLoader.y"
{
			yyval.integer_range.Min = yyvsp[-1].integer;
			yyval.integer_range.Max = yyvsp[-1].integer;
		;
    break;}
case 96:
#line 787 "QuestLoader.y"
{
			yyval.integer_range.Min = yyvsp[-3].integer;
			yyval.integer_range.Max = yyvsp[-1].integer;
		;
    break;}
case 97:
#line 793 "QuestLoader.y"
{
			yyval.integer_range.Min = yyvsp[-2].integer;
			yyval.integer_range.Max = MAX_INT_VALUE;
		;
    break;}
case 98:
#line 799 "QuestLoader.y"
{
			yyval.integer_range.Min = 0;
			yyval.integer_range.Max = yyvsp[-1].integer;
		;
    break;}
case 99:
#line 806 "QuestLoader.y"
{ yyval.integer = yyvsp[-2].integer + yyvsp[0].integer; ;
    break;}
case 100:
#line 808 "QuestLoader.y"
{ yyval.integer = yyvsp[-2].integer - yyvsp[0].integer; ;
    break;}
case 101:
#line 810 "QuestLoader.y"
{ yyval.integer = yyvsp[-2].integer * yyvsp[0].integer; ;
    break;}
case 102:
#line 813 "QuestLoader.y"
{
				if (yyvsp[0].integer == 0.0)
				{
					QuestLoadererror("divided by zero");
					return -1;
				}
				else
				{
					yyval.integer = yyvsp[-2].integer / yyvsp[0].integer;
				}
			;
    break;}
case 103:
#line 825 "QuestLoader.y"
{ yyval.integer = yyvsp[-2].integer & yyvsp[0].integer; ;
    break;}
case 104:
#line 827 "QuestLoader.y"
{ yyval.integer = yyvsp[-2].integer | yyvsp[0].integer; ;
    break;}
case 105:
#line 829 "QuestLoader.y"
{ yyval.integer = yyvsp[-1].integer; ;
    break;}
case 106:
#line 831 "QuestLoader.y"
{ yyval.integer = yyvsp[0].integer; ;
    break;}
case 107:
#line 834 "QuestLoader.y"
{
				USER_VAR_ELEMENT *pElem = g_user_var_quest.GetUserVariable(yyvsp[0].string2048);
				if (pElem == NULL)
				{
					// error
					QuestLoadererror("User Variable NOT Defined");
					return -1;
				}
				if (pElem->Type != ET_INTEGER)
				{
					// error
					QuestLoadererror("User Variable Type NOT Matched");
					return -1;
				}
				yyval.integer = pElem->IntValue;
			;
    break;}
case 108:
#line 853 "QuestLoader.y"
{ strncpy(yyval.string2048, yyvsp[0].string2048, 2048); ;
    break;}
case 109:
#line 856 "QuestLoader.y"
{
				USER_VAR_ELEMENT *pElem = g_user_var_quest.GetUserVariable(yyvsp[0].string2048);
				if (pElem == NULL)
				{
					// error
					QuestLoadererror("User Variable NOT Defined");
					return -1;
				}
				if (pElem->Type != ET_STRING)
				{
					// error
					QuestLoadererror("User Variable Type NOT Matched");
					return -1;
				}
				strncpy(yyval.string2048, pElem->StringValue, 2048);
			;
    break;}
case 110:
#line 876 "QuestLoader.y"
{
			yyval.monster_w_count.MonsterUniqueNumber = yyvsp[-3].integer;
			yyval.monster_w_count.Count = yyvsp[-1].integer;
		;
    break;}
case 111:
#line 882 "QuestLoader.y"
{
			yyval.monster_w_count.MonsterUniqueNumber = yyvsp[-3].integer;
			yyval.monster_w_count.Count = MAX_INT_VALUE;
		;
    break;}
case 112:
#line 890 "QuestLoader.y"
{
			yyval.item_w_count.ItemNum = yyvsp[-3].integer;
			yyval.item_w_count.Count = yyvsp[-1].integer;
		;
    break;}
case 113:
#line 896 "QuestLoader.y"
{
			yyval.item_w_count.ItemNum = yyvsp[-3].integer;
			yyval.item_w_count.Count = MAX_INT_VALUE;
		;
    break;}
case 114:
#line 904 "QuestLoader.y"
{
			yyval.quest_pay_item.ItemNum = yyvsp[-3].item_w_count.ItemNum;
			yyval.quest_pay_item.Count = yyvsp[-3].item_w_count.Count;
			yyval.quest_pay_item.PerItem = yyvsp[-2].integer;
			yyval.quest_pay_item.ToBeAttached = yyvsp[-1].BOOLEAN;
			yyval.quest_pay_item.ToUnitKind = yyvsp[0].integer;
		;
    break;}
case 115:
#line 915 "QuestLoader.y"
{
			yyval.quest_pay_item.ItemNum = yyvsp[-3].item_w_count.ItemNum;
			yyval.quest_pay_item.Count = yyvsp[-3].item_w_count.Count;
			yyval.quest_pay_item.PerItem = yyvsp[-2].integer;
			yyval.quest_pay_item.ToBeAttached = yyvsp[-1].BOOLEAN;
			yyval.quest_pay_item.ToUnitKind = yyvsp[0].integer;
		;
    break;}
case 118:
#line 932 "QuestLoader.y"
{
			g_quest_npc_info_for_loading.NPCIndex = yyvsp[-1].integer;
		;
    break;}
case 119:
#line 937 "QuestLoader.y"
{
#ifdef _ATUM_FIELD_SERVER
			if(SIZE_MAX_NPC_NAME <= strlen(yyvsp[-1].string2048))
			{
				DbgOut("Quest NPCName overflow error, QuestIndex(%d) NPCNameLength(%d)\n", g_quest_for_loading.QuestIndex, strlen(yyvsp[-1].string2048));
			}
#endif
			memset(g_quest_npc_info_for_loading.NPCName, 0x00, SIZE_MAX_NPC_NAME);
			strncpy(g_quest_npc_info_for_loading.NPCName, yyvsp[-1].string2048, SIZE_MAX_NPC_NAME-1);
		;
    break;}
case 120:
#line 949 "QuestLoader.y"
{
#ifdef _ATUM_FIELD_SERVER
			if(SIZE_MAX_NPC_TALK_STRING <= strlen(yyvsp[-1].string2048))
			{
				DbgOut("Quest PreTalk overflow error, QuestIndex(%d) PreTalkLength(%d)\n", g_quest_for_loading.QuestIndex, strlen(yyvsp[-1].string2048));
			}
#endif
			memset(g_quest_npc_info_for_loading.PreTalk, 0x00, SIZE_MAX_NPC_TALK_STRING);
			strncpy(g_quest_npc_info_for_loading.PreTalk, yyvsp[-1].string2048, SIZE_MAX_NPC_TALK_STRING-1);
		;
    break;}
case 121:
#line 961 "QuestLoader.y"
{
#ifdef _ATUM_FIELD_SERVER
			if(SIZE_MAX_NPC_TALK_STRING <= strlen(yyvsp[-1].string2048))
			{
				DbgOut("Quest MidTalk overflow error, QuestIndex(%d) MidTalkLength(%d)\n", g_quest_for_loading.QuestIndex, strlen(yyvsp[-1].string2048));
			}
#endif
			memset(g_quest_npc_info_for_loading.MidTalk, 0x00, SIZE_MAX_NPC_TALK_STRING);
			strncpy(g_quest_npc_info_for_loading.MidTalk, yyvsp[-1].string2048, SIZE_MAX_NPC_TALK_STRING-1);
		;
    break;}
case 122:
#line 973 "QuestLoader.y"
{
#ifdef _ATUM_FIELD_SERVER
			if(SIZE_MAX_NPC_TALK_STRING <= strlen(yyvsp[-1].string2048))
			{
				DbgOut("Quest FailTalk overflow error, QuestIndex(%d) FailTalkLength(%d)\n", g_quest_for_loading.QuestIndex, strlen(yyvsp[-1].string2048));
			}
#endif
			memset(g_quest_npc_info_for_loading.FailTalk, 0x00, SIZE_MAX_NPC_TALK_STRING);
			strncpy(g_quest_npc_info_for_loading.FailTalk, yyvsp[-1].string2048, SIZE_MAX_NPC_TALK_STRING-1);
		;
    break;}
case 123:
#line 985 "QuestLoader.y"
{
#ifdef _ATUM_FIELD_SERVER
			if(SIZE_MAX_NPC_TALK_STRING <= strlen(yyvsp[-1].string2048))
			{
				DbgOut("Quest SuccessTalk overflow error, QuestIndex(%d) SuccessTalkLength(%d)\n", g_quest_for_loading.QuestIndex, strlen(yyvsp[-1].string2048));
			}
#endif
			memset(g_quest_npc_info_for_loading.SuccessTalk, 0x00, SIZE_MAX_NPC_TALK_STRING);
			strncpy(g_quest_npc_info_for_loading.SuccessTalk, yyvsp[-1].string2048, SIZE_MAX_NPC_TALK_STRING-1);
		;
    break;}
case 124:
#line 999 "QuestLoader.y"
{
			yyval.integer = 0;
		;
    break;}
case 125:
#line 1004 "QuestLoader.y"
{
			yyval.integer = yyvsp[0].integer;
		;
    break;}
case 126:
#line 1011 "QuestLoader.y"
{
			yyval.BOOLEAN = FALSE;
		;
    break;}
case 127:
#line 1016 "QuestLoader.y"
{
			yyval.BOOLEAN = TRUE;
		;
    break;}
case 128:
#line 1023 "QuestLoader.y"
{
			yyval.integer = UNITKIND_ALL_MASK;
		;
    break;}
case 129:
#line 1028 "QuestLoader.y"
{
			yyval.integer = yyvsp[0].integer;
		;
    break;}
case 130:
#line 1035 "QuestLoader.y"
{
			yyval.BOOLEAN = TRUE;
		;
    break;}
case 131:
#line 1040 "QuestLoader.y"
{
			yyval.BOOLEAN = FALSE;
		;
    break;}
case 132:
#line 1047 "QuestLoader.y"
{
			yyval.integer = yyvsp[-1].integer;
		;
    break;}
case 133:
#line 1052 "QuestLoader.y"
{
			yyval.integer = yyvsp[-1].integer;
		;
    break;}
case 134:
#line 1057 "QuestLoader.y"
{
			yyval.integer = yyvsp[-1].integer;
		;
    break;}
case 135:
#line 1062 "QuestLoader.y"
{
			yyval.integer = yyvsp[-1].integer;
		;
    break;}
case 136:
#line 1067 "QuestLoader.y"
{
			yyval.integer = yyvsp[-1].integer;
		;
    break;}
}
   /* the action file gets copied in in place of this dollarsign */

  yyvsp -= yylen;
  yyssp -= yylen;
#ifdef YYLSP_NEEDED
  yylsp -= yylen;
#endif

#if YYDEBUG != 0
  if (yydebug)
    {
      short *ssp1 = yyss - 1;
      fprintf (stderr, "state stack now");
      while (ssp1 != yyssp)
	fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

  *++yyvsp = yyval;

#ifdef YYLSP_NEEDED
  yylsp++;
  if (yylen == 0)
    {
      yylsp->first_line = yylloc.first_line;
      yylsp->first_column = yylloc.first_column;
      yylsp->last_line = (yylsp-1)->last_line;
      yylsp->last_column = (yylsp-1)->last_column;
      yylsp->text = 0;
    }
  else
    {
      yylsp->last_line = (yylsp+yylen-1)->last_line;
      yylsp->last_column = (yylsp+yylen-1)->last_column;
    }
#endif

  /* 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 - YYNTBASE] + *yyssp;
  if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTBASE];

  goto yynewstate;

yyerrlab:   /* here on detecting error */

  if (! yyerrstatus)
    /* If not already recovering from an error, report this error.  */
    {
      ++yynerrs;

#ifdef YYERROR_VERBOSE
      yyn = yypact[yystate];

      if (yyn > YYFLAG && yyn < YYLAST)
	{
	  int size = 0;
	  char *msg;
	  int x, count;

	  count = 0;
	  /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
	  for (x = (yyn < 0 ? -yyn : 0);
	       x < (sizeof(yytname) / sizeof(char *)); x++)
	    if (yycheck[x + yyn] == x)
	      size += strlen(yytname[x]) + 15, count++;
	  msg = (char *) malloc(size + 15);
	  if (msg != 0)
	    {
	      strcpy(msg, "parse error");

	      if (count < 5)
		{
		  count = 0;
		  for (x = (yyn < 0 ? -yyn : 0);
		       x < (sizeof(yytname) / sizeof(char *)); x++)
		    if (yycheck[x + yyn] == x)
		      {
			strcat(msg, count == 0 ? ", expecting `" : " or `");
			strcat(msg, yytname[x]);
			strcat(msg, "'");
			count++;
		      }
		}
	      yyerror(msg);
	      free(msg);
	    }
	  else
	    yyerror ("parse error; also virtual memory exceeded");
	}
      else
#endif /* YYERROR_VERBOSE */
	yyerror("parse error");
    }

  goto yyerrlab1;
yyerrlab1:   /* here on error raised explicitly by an action */

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

      /* return failure if at end of input */
      if (yychar == YYEOF)
	YYABORT;

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
#endif

      yychar = YYEMPTY;
    }

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

  yyerrstatus = 3;		/* Each real token shifted decrements this */

  goto yyerrhandle;

yyerrdefault:  /* current state does not do anything special for the error token. */

#if 0
  /* This is wrong; only states that explicitly want error tokens
     should shift them.  */
  yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  if (yyn) goto yydefault;
#endif

yyerrpop:   /* pop the current state because it cannot handle the error token */

  if (yyssp == yyss) YYABORT;
  yyvsp--;
  yystate = *--yyssp;
#ifdef YYLSP_NEEDED
  yylsp--;
#endif

#if YYDEBUG != 0
  if (yydebug)
    {
      short *ssp1 = yyss - 1;
      fprintf (stderr, "Error: state stack now");
      while (ssp1 != yyssp)
	fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

yyerrhandle:

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    goto yyerrdefault;

  yyn += YYTERROR;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
    goto yyerrdefault;

  yyn = yytable[yyn];
  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	goto yyerrpop;
      yyn = -yyn;
      goto yyreduce;
    }
  else if (yyn == 0)
    goto yyerrpop;

  if (yyn == YYFINAL)
    YYACCEPT;

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Shifting error token, ");
#endif

  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

  yystate = yyn;
  goto yynewstate;
}
#line 1071 "QuestLoader.y"


/* programs */

/*
 * ???
 */
extern "C"
{
int
QuestLoaderwrap()
{
  return 1;
}
}

/*
 * Report an error situation discovered in a production
 *
 * This does not do anything since we report all error situations through
 * idl_global->err() operations
 */
int
QuestLoadererror(const char *s)
{
    cerr << "Error: " << s << " at line " << g_line_number_quest << endl;
	DBGOUT("Error: %s at line %d\r\n", s, g_line_number_quest);
	system("pause");
	return 0;
}
