#include <stdint.h>
#include <libmemcached/options/context.h>
-#include <libmemcached/options/build.h>
#include <libmemcached/options/string.h>
#include <libmemcached/options/symbol.h>
#include <libmemcached/visibility.h>
int conf_lex(YYSTYPE* lvalp, void* scanner);
-#define parser_abort(A, B) do { parser::abort_func((A), (B)); YYABORT; } while (0)
+#define parser_abort(A, B) do { (A)->abort((B)); YYABORT; } while (0)
inline void config_error(Context *context, yyscan_t *scanner, const char *error)
{
if (not context->end())
- parser::abort_func(context, error);
-}
-
-int config_parse(Context*, yyscan_t *);
-
-void Context::start()
-{
- config_parse(this, scanner);
+ context->abort(error);
}
/* Line 189 of yacc.c */
-#line 116 "libmemcached/options/parser.cc"
+#line 108 "libmemcached/options/parser.cc"
/* Enabling traces. */
#ifndef YYDEBUG
SERVERS_OPTION = 268,
UNKNOWN_OPTION = 269,
UNKNOWN = 270,
- AUTO_EJECT_HOSTS = 271,
- BINARY_PROTOCOL = 272,
- BUFFER_REQUESTS = 273,
- CACHE_LOOKUPS = 274,
- CONNECT_TIMEOUT = 275,
- _CORK = 276,
- DISTRIBUTION = 277,
- HASH = 278,
- HASH_WITH_PREFIX_KEY = 279,
- IO_BYTES_WATERMARK = 280,
- IO_KEY_PREFETCH = 281,
- IO_MSG_WATERMARK = 282,
- KETAMA = 283,
- KETAMA_HASH = 284,
- KETAMA_WEIGHTED = 285,
- NOREPLY = 286,
- NUMBER_OF_REPLICAS = 287,
- POLL_TIMEOUT = 288,
- RANDOMIZE_REPLICA_READ = 289,
- RCV_TIMEOUT = 290,
- RETRY_TIMEOUT = 291,
- SERVER_FAILURE_LIMIT = 292,
- SND_TIMEOUT = 293,
- SOCKET_RECV_SIZE = 294,
- SOCKET_SEND_SIZE = 295,
- SORT_HOSTS = 296,
- SUPPORT_CAS = 297,
- _TCP_NODELAY = 298,
- _TCP_KEEPALIVE = 299,
- _TCP_KEEPIDLE = 300,
- USER_DATA = 301,
- USE_UDP = 302,
- VERIFY_KEY = 303,
- PREFIX_KEY = 304,
- MD5 = 305,
- CRC = 306,
- FNV1_64 = 307,
- FNV1A_64 = 308,
- FNV1_32 = 309,
- FNV1A_32 = 310,
- HSIEH = 311,
- MURMUR = 312,
- JENKINS = 313,
- CONSISTENT = 314,
- MODULA = 315,
- RANDOM = 316,
- TRUE = 317,
- FALSE = 318,
- NUMBER = 319,
- FLOAT = 320,
- HOSTNAME = 321,
- HOSTNAME_WITH_PORT = 322,
- IPADDRESS = 323,
- IPADDRESS_WITH_PORT = 324,
- STRING = 325,
- QUOTED_STRING = 326,
- FILE_PATH = 327
+ BINARY_PROTOCOL = 271,
+ BUFFER_REQUESTS = 272,
+ CONNECT_TIMEOUT = 273,
+ DISTRIBUTION = 274,
+ HASH = 275,
+ HASH_WITH_PREFIX_KEY = 276,
+ IO_BYTES_WATERMARK = 277,
+ IO_KEY_PREFETCH = 278,
+ IO_MSG_WATERMARK = 279,
+ KETAMA_HASH = 280,
+ KETAMA_WEIGHTED = 281,
+ NOREPLY = 282,
+ NUMBER_OF_REPLICAS = 283,
+ POLL_TIMEOUT = 284,
+ RANDOMIZE_REPLICA_READ = 285,
+ RCV_TIMEOUT = 286,
+ REMOVE_FAILED_SERVERS = 287,
+ RETRY_TIMEOUT = 288,
+ SND_TIMEOUT = 289,
+ SOCKET_RECV_SIZE = 290,
+ SOCKET_SEND_SIZE = 291,
+ SORT_HOSTS = 292,
+ SUPPORT_CAS = 293,
+ USER_DATA = 294,
+ USE_UDP = 295,
+ VERIFY_KEY = 296,
+ _TCP_KEEPALIVE = 297,
+ _TCP_KEEPIDLE = 298,
+ _TCP_NODELAY = 299,
+ PREFIX_KEY = 300,
+ MD5 = 301,
+ CRC = 302,
+ FNV1_64 = 303,
+ FNV1A_64 = 304,
+ FNV1_32 = 305,
+ FNV1A_32 = 306,
+ HSIEH = 307,
+ MURMUR = 308,
+ JENKINS = 309,
+ CONSISTENT = 310,
+ MODULA = 311,
+ RANDOM = 312,
+ TRUE = 313,
+ FALSE = 314,
+ FLOAT = 315,
+ NUMBER = 316,
+ PORT = 317,
+ WEIGHT_START = 318,
+ IPADDRESS = 319,
+ HOSTNAME = 320,
+ STRING = 321,
+ QUOTED_STRING = 322,
+ FILE_PATH = 323
};
#endif
/* Line 264 of yacc.c */
-#line 229 "libmemcached/options/parser.cc"
+#line 217 "libmemcached/options/parser.cc"
#ifdef short
# undef short
#endif
/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 79
+#define YYFINAL 65
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 76
+#define YYLAST 71
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 76
+#define YYNTOKENS 72
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 12
/* YYNRULES -- Number of rules. */
-#define YYNRULES 72
+#define YYNRULES 64
/* YYNRULES -- Number of states. */
-#define YYNSTATES 88
+#define YYNSTATES 78
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 327
+#define YYMAXUTOK 323
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
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, 75, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 64, 2, 2, 2, 2, 2,
+ 2, 2, 71, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 60, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 65, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 61, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
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, 66,
- 67, 68, 69, 70, 71, 72, 73, 74
+ 55, 56, 57, 58, 59, 62, 63, 64, 65, 66,
+ 67, 68, 69, 70
};
#if YYDEBUG
static const yytype_uint8 yyprhs[] =
{
0, 0, 3, 5, 9, 11, 13, 15, 17, 19,
- 21, 23, 27, 30, 33, 36, 38, 41, 44, 47,
- 50, 53, 55, 57, 59, 61, 63, 65, 67, 69,
- 71, 73, 75, 77, 79, 81, 83, 85, 87, 89,
- 91, 93, 95, 97, 99, 101, 103, 105, 107, 109,
- 111, 113, 115, 117, 121, 124, 126, 128, 131, 133,
- 135, 137, 139, 141, 143, 145, 147, 149, 151, 153,
- 155, 157, 159
+ 21, 23, 27, 32, 37, 40, 42, 45, 48, 53,
+ 56, 59, 61, 63, 65, 67, 69, 71, 73, 75,
+ 77, 79, 81, 83, 85, 87, 89, 91, 93, 95,
+ 97, 99, 101, 103, 105, 107, 109, 111, 112, 114,
+ 115, 117, 119, 121, 123, 125, 127, 129, 131, 133,
+ 135, 137, 139, 141, 143
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int8 yyrhs[] =
{
- 77, 0, -1, 78, -1, 77, 75, 78, -1, 79,
+ 73, 0, -1, 74, -1, 73, 71, 74, -1, 75,
-1, 3, -1, 10, -1, 4, -1, 5, -1, 6,
- -1, 7, -1, 8, 75, 86, -1, 11, 84, -1,
- 13, 83, -1, 9, 86, -1, 80, -1, 49, 86,
- -1, 22, 87, -1, 23, 85, -1, 29, 85, -1,
- 81, 66, -1, 82, -1, 46, -1, 20, -1, 27,
- -1, 25, -1, 26, -1, 32, -1, 33, -1, 35,
- -1, 36, -1, 37, -1, 38, -1, 39, -1, 40,
- -1, 16, -1, 17, -1, 18, -1, 19, -1, 21,
- -1, 24, -1, 28, -1, 30, -1, 31, -1, 34,
- -1, 41, -1, 42, -1, 43, -1, 44, -1, 45,
- -1, 47, -1, 48, -1, 84, -1, 83, 64, 84,
- -1, 69, 66, -1, 68, -1, 72, -1, 71, 66,
- -1, 70, -1, 50, -1, 51, -1, 52, -1, 53,
- -1, 54, -1, 55, -1, 56, -1, 57, -1, 58,
- -1, 72, -1, 73, -1, 59, -1, 60, -1, 61,
- -1
+ -1, 7, -1, 8, 71, 82, -1, 11, 67, 79,
+ 80, -1, 11, 66, 79, 80, -1, 9, 82, -1,
+ 76, -1, 45, 82, -1, 19, 83, -1, 19, 83,
+ 60, 81, -1, 20, 81, -1, 77, 63, -1, 78,
+ -1, 39, -1, 32, -1, 18, -1, 24, -1, 22,
+ -1, 23, -1, 28, -1, 29, -1, 31, -1, 33,
+ -1, 34, -1, 35, -1, 36, -1, 16, -1, 17,
+ -1, 21, -1, 27, -1, 30, -1, 37, -1, 38,
+ -1, 44, -1, 42, -1, 43, -1, 40, -1, 41,
+ -1, -1, 64, -1, -1, 65, -1, 46, -1, 47,
+ -1, 48, -1, 49, -1, 50, -1, 51, -1, 52,
+ -1, 53, -1, 54, -1, 68, -1, 69, -1, 55,
+ -1, 56, -1, 57, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
- 0, 166, 166, 167, 171, 173, 175, 177, 182, 187,
- 191, 195, 206, 213, 216, 220, 224, 231, 238, 245,
- 252, 259, 266, 272, 276, 280, 284, 288, 292, 296,
- 300, 304, 308, 312, 316, 323, 327, 331, 335, 339,
- 343, 347, 351, 355, 359, 363, 367, 371, 375, 379,
- 383, 387, 394, 401, 411, 417, 423, 429, 435, 444,
- 448, 452, 456, 460, 464, 468, 472, 476, 483, 487,
- 495, 499, 503
+ 0, 153, 153, 154, 158, 160, 162, 164, 169, 174,
+ 178, 182, 193, 201, 209, 213, 217, 224, 231, 242,
+ 249, 256, 263, 269, 273, 277, 281, 285, 289, 293,
+ 297, 301, 305, 309, 313, 320, 324, 328, 332, 336,
+ 340, 344, 348, 352, 356, 360, 364, 371, 372, 377,
+ 378, 383, 387, 391, 395, 399, 403, 407, 411, 415,
+ 422, 426, 434, 438, 442
};
#endif
"$end", "error", "$undefined", "COMMENT", "END", "ERROR", "RESET",
"PARSER_DEBUG", "INCLUDE", "CONFIGURE_FILE", "EMPTY_LINE", "SERVER",
"SERVERS", "SERVERS_OPTION", "UNKNOWN_OPTION", "UNKNOWN",
- "AUTO_EJECT_HOSTS", "BINARY_PROTOCOL", "BUFFER_REQUESTS",
- "CACHE_LOOKUPS", "CONNECT_TIMEOUT", "_CORK", "DISTRIBUTION", "HASH",
- "HASH_WITH_PREFIX_KEY", "IO_BYTES_WATERMARK", "IO_KEY_PREFETCH",
- "IO_MSG_WATERMARK", "KETAMA", "KETAMA_HASH", "KETAMA_WEIGHTED",
- "NOREPLY", "NUMBER_OF_REPLICAS", "POLL_TIMEOUT",
- "RANDOMIZE_REPLICA_READ", "RCV_TIMEOUT", "RETRY_TIMEOUT",
- "SERVER_FAILURE_LIMIT", "SND_TIMEOUT", "SOCKET_RECV_SIZE",
- "SOCKET_SEND_SIZE", "SORT_HOSTS", "SUPPORT_CAS", "_TCP_NODELAY",
- "_TCP_KEEPALIVE", "_TCP_KEEPIDLE", "USER_DATA", "USE_UDP", "VERIFY_KEY",
- "PREFIX_KEY", "MD5", "CRC", "FNV1_64", "FNV1A_64", "FNV1_32", "FNV1A_32",
- "HSIEH", "MURMUR", "JENKINS", "CONSISTENT", "MODULA", "RANDOM", "TRUE",
- "FALSE", "','", "'='", "NUMBER", "FLOAT", "HOSTNAME",
- "HOSTNAME_WITH_PORT", "IPADDRESS", "IPADDRESS_WITH_PORT", "STRING",
+ "BINARY_PROTOCOL", "BUFFER_REQUESTS", "CONNECT_TIMEOUT", "DISTRIBUTION",
+ "HASH", "HASH_WITH_PREFIX_KEY", "IO_BYTES_WATERMARK", "IO_KEY_PREFETCH",
+ "IO_MSG_WATERMARK", "KETAMA_HASH", "KETAMA_WEIGHTED", "NOREPLY",
+ "NUMBER_OF_REPLICAS", "POLL_TIMEOUT", "RANDOMIZE_REPLICA_READ",
+ "RCV_TIMEOUT", "REMOVE_FAILED_SERVERS", "RETRY_TIMEOUT", "SND_TIMEOUT",
+ "SOCKET_RECV_SIZE", "SOCKET_SEND_SIZE", "SORT_HOSTS", "SUPPORT_CAS",
+ "USER_DATA", "USE_UDP", "VERIFY_KEY", "_TCP_KEEPALIVE", "_TCP_KEEPIDLE",
+ "_TCP_NODELAY", "PREFIX_KEY", "MD5", "CRC", "FNV1_64", "FNV1A_64",
+ "FNV1_32", "FNV1A_32", "HSIEH", "MURMUR", "JENKINS", "CONSISTENT",
+ "MODULA", "RANDOM", "TRUE", "FALSE", "','", "'='", "FLOAT", "NUMBER",
+ "PORT", "WEIGHT_START", "IPADDRESS", "HOSTNAME", "STRING",
"QUOTED_STRING", "FILE_PATH", "' '", "$accept", "begin", "statement",
"expression", "behaviors", "behavior_number", "behavior_boolean",
- "server_list", "server", "hash", "string", "distribution", 0
+ "optional_port", "optional_weight", "hash", "string", "distribution", 0
};
#endif
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, 44, 61, 319, 320, 321, 322,
- 323, 324, 325, 326, 327, 32
+ 44, 61, 315, 316, 317, 318, 319, 320, 321, 322,
+ 323, 32
};
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint8 yyr1[] =
{
- 0, 76, 77, 77, 78, 78, 78, 78, 78, 78,
- 78, 78, 79, 79, 79, 79, 80, 80, 80, 80,
- 80, 80, 80, 81, 81, 81, 81, 81, 81, 81,
- 81, 81, 81, 81, 81, 82, 82, 82, 82, 82,
- 82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
- 82, 82, 83, 83, 84, 84, 84, 84, 84, 85,
- 85, 85, 85, 85, 85, 85, 85, 85, 86, 86,
- 87, 87, 87
+ 0, 72, 73, 73, 74, 74, 74, 74, 74, 74,
+ 74, 74, 75, 75, 75, 75, 76, 76, 76, 76,
+ 76, 76, 76, 77, 77, 77, 77, 77, 77, 77,
+ 77, 77, 77, 77, 77, 78, 78, 78, 78, 78,
+ 78, 78, 78, 78, 78, 78, 78, 79, 79, 80,
+ 80, 81, 81, 81, 81, 81, 81, 81, 81, 81,
+ 82, 82, 83, 83, 83
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const yytype_uint8 yyr2[] =
{
0, 2, 1, 3, 1, 1, 1, 1, 1, 1,
- 1, 3, 2, 2, 2, 1, 2, 2, 2, 2,
+ 1, 3, 4, 4, 2, 1, 2, 2, 4, 2,
2, 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, 0, 1, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 3, 2, 1, 1, 2, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1
+ 1, 1, 1, 1, 1
};
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
static const yytype_uint8 yydefact[] =
{
0, 5, 7, 8, 9, 10, 0, 0, 6, 0,
- 0, 35, 36, 37, 38, 23, 39, 0, 0, 40,
- 25, 26, 24, 41, 0, 42, 43, 27, 28, 44,
- 29, 30, 31, 32, 33, 34, 45, 46, 47, 48,
- 49, 22, 50, 51, 0, 0, 2, 4, 15, 0,
- 21, 0, 68, 69, 14, 55, 0, 58, 0, 56,
- 12, 13, 52, 70, 71, 72, 17, 59, 60, 61,
- 62, 63, 64, 65, 66, 67, 18, 19, 16, 1,
- 0, 20, 11, 54, 57, 0, 3, 53
+ 35, 36, 24, 0, 0, 37, 26, 27, 25, 38,
+ 28, 29, 39, 30, 23, 31, 32, 33, 34, 40,
+ 41, 22, 45, 46, 43, 44, 42, 0, 0, 2,
+ 4, 15, 0, 21, 0, 60, 61, 14, 47, 47,
+ 62, 63, 64, 17, 51, 52, 53, 54, 55, 56,
+ 57, 58, 59, 19, 16, 1, 0, 20, 11, 48,
+ 49, 49, 0, 3, 50, 13, 12, 18
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int8 yydefgoto[] =
{
- -1, 45, 46, 47, 48, 49, 50, 61, 60, 76,
- 54, 66
+ -1, 38, 39, 40, 41, 42, 43, 70, 75, 63,
+ 47, 53
};
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
-#define YYPACT_NINF -65
+#define YYPACT_NINF -59
static const yytype_int8 yypact[] =
{
- -1, -65, -65, -65, -65, -65, -64, -59, -65, -7,
- -7, -65, -65, -65, -65, -65, -65, 9, 1, -65,
- -65, -65, -65, -65, 1, -65, -65, -65, -65, -65,
- -65, -65, -65, -65, -65, -65, -65, -65, -65, -65,
- -65, -65, -65, -65, -59, 0, -65, -65, -65, -17,
- -65, -59, -65, -65, -65, -65, -16, -65, 5, -65,
- -65, 2, -65, -65, -65, -65, -65, -65, -65, -65,
- -65, -65, -65, -65, -65, -65, -65, -65, -65, -65,
- -1, -65, -65, -65, -65, -7, -65, -65
+ -2, -59, -59, -59, -59, -59, -58, -13, -59, -43,
+ -59, -59, -59, -45, -1, -59, -59, -59, -59, -59,
+ -59, -59, -59, -59, -59, -59, -59, -59, -59, -59,
+ -59, -59, -59, -59, -59, -59, -59, -13, 0, -59,
+ -59, -59, -19, -59, -13, -59, -59, -59, -7, -7,
+ -59, -59, -59, 2, -59, -59, -59, -59, -59, -59,
+ -59, -59, -59, -59, -59, -59, -2, -59, -59, -59,
+ -6, -6, -1, -59, -59, -59, -59, -59
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int8 yypgoto[] =
{
- -65, -65, -8, -65, -65, -65, -65, -65, -9, 49,
- 16, -65
+ -59, -59, -8, -59, -59, -59, -59, 11, -5, -9,
+ 17, -59
};
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
#define YYTABLE_NINF -1
static const yytype_uint8 yytable[] =
{
- 79, 62, 1, 2, 3, 4, 5, 6, 7, 8,
- 9, 51, 10, 52, 53, 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, 81,
- 83, 67, 68, 69, 70, 71, 72, 73, 74, 75,
- 78, 55, 56, 57, 58, 59, 85, 82, 63, 64,
- 65, 84, 86, 77, 0, 80, 87
+ 65, 1, 2, 3, 4, 5, 6, 7, 8, 9,
+ 50, 51, 52, 44, 10, 11, 12, 13, 14, 15,
+ 16, 17, 18, 48, 49, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
+ 34, 35, 36, 37, 67, 54, 55, 56, 57, 58,
+ 59, 60, 61, 62, 64, 45, 46, 69, 73, 74,
+ 71, 68, 72, 77, 0, 0, 76, 0, 0, 0,
+ 0, 66
};
static const yytype_int8 yycheck[] =
{
- 0, 10, 3, 4, 5, 6, 7, 8, 9, 10,
- 11, 75, 13, 72, 73, 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, 66,
- 66, 50, 51, 52, 53, 54, 55, 56, 57, 58,
- 44, 68, 69, 70, 71, 72, 64, 51, 59, 60,
- 61, 66, 80, 24, -1, 75, 85
+ 0, 3, 4, 5, 6, 7, 8, 9, 10, 11,
+ 55, 56, 57, 71, 16, 17, 18, 19, 20, 21,
+ 22, 23, 24, 66, 67, 27, 28, 29, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
+ 42, 43, 44, 45, 63, 46, 47, 48, 49, 50,
+ 51, 52, 53, 54, 37, 68, 69, 64, 66, 65,
+ 49, 44, 60, 72, -1, -1, 71, -1, -1, -1,
+ -1, 71
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
static const yytype_uint8 yystos[] =
{
0, 3, 4, 5, 6, 7, 8, 9, 10, 11,
- 13, 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, 77, 78, 79, 80, 81,
- 82, 75, 72, 73, 86, 68, 69, 70, 71, 72,
- 84, 83, 84, 59, 60, 61, 87, 50, 51, 52,
- 53, 54, 55, 56, 57, 58, 85, 85, 86, 0,
- 75, 66, 86, 66, 66, 64, 78, 84
+ 16, 17, 18, 19, 20, 21, 22, 23, 24, 27,
+ 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
+ 38, 39, 40, 41, 42, 43, 44, 45, 73, 74,
+ 75, 76, 77, 78, 71, 68, 69, 82, 66, 67,
+ 55, 56, 57, 83, 46, 47, 48, 49, 50, 51,
+ 52, 53, 54, 81, 82, 0, 71, 63, 82, 64,
+ 79, 79, 60, 74, 65, 80, 80, 81
};
#define yyerrok (yyerrstatus = 0)
case 4:
/* Line 1464 of yacc.c */
-#line 172 "libmemcached/options/parser.yy"
+#line 159 "libmemcached/options/parser.yy"
{ ;}
break;
case 5:
/* Line 1464 of yacc.c */
-#line 174 "libmemcached/options/parser.yy"
+#line 161 "libmemcached/options/parser.yy"
{ ;}
break;
case 6:
/* Line 1464 of yacc.c */
-#line 176 "libmemcached/options/parser.yy"
+#line 163 "libmemcached/options/parser.yy"
{ ;}
break;
case 7:
/* Line 1464 of yacc.c */
-#line 178 "libmemcached/options/parser.yy"
+#line 165 "libmemcached/options/parser.yy"
{
context->set_end();
YYACCEPT;
case 8:
/* Line 1464 of yacc.c */
-#line 183 "libmemcached/options/parser.yy"
+#line 170 "libmemcached/options/parser.yy"
{
context->rc= MEMCACHED_PARSE_USER_ERROR;
parser_abort(context, NULL);
case 9:
/* Line 1464 of yacc.c */
-#line 188 "libmemcached/options/parser.yy"
+#line 175 "libmemcached/options/parser.yy"
{
memcached_reset(context->memc);
;}
case 10:
/* Line 1464 of yacc.c */
-#line 192 "libmemcached/options/parser.yy"
+#line 179 "libmemcached/options/parser.yy"
{
yydebug= 1;
;}
case 11:
/* Line 1464 of yacc.c */
-#line 196 "libmemcached/options/parser.yy"
+#line 183 "libmemcached/options/parser.yy"
{
if ((context->rc= memcached_parse_configure_file(context->memc, (yyvsp[(3) - (3)].string).c_str, (yyvsp[(3) - (3)].string).length)) != MEMCACHED_SUCCESS)
{
case 12:
/* Line 1464 of yacc.c */
-#line 207 "libmemcached/options/parser.yy"
- {
- if ((context->rc= memcached_server_add_parsed(context->memc, (yyvsp[(2) - (2)].server).c_str, (yyvsp[(2) - (2)].server).length, (yyvsp[(2) - (2)].server).port, 0)) != MEMCACHED_SUCCESS)
+#line 194 "libmemcached/options/parser.yy"
+ {
+ if ((context->rc= memcached_server_add_with_weight(context->memc, (yyvsp[(2) - (4)].server).c_str, (yyvsp[(2) - (4)].server).port, (yyvsp[(2) - (4)].server).weight)) != MEMCACHED_SUCCESS)
{
parser_abort(context, NULL);
}
+ context->unset_server();
;}
break;
case 13:
/* Line 1464 of yacc.c */
-#line 214 "libmemcached/options/parser.yy"
+#line 202 "libmemcached/options/parser.yy"
{
+ if ((context->rc= memcached_server_add_with_weight(context->memc, (yyvsp[(2) - (4)].server).c_str, (yyvsp[(2) - (4)].server).port, (yyvsp[(2) - (4)].server).weight)) != MEMCACHED_SUCCESS)
+ {
+ parser_abort(context, NULL);
+ }
+ context->unset_server();
;}
break;
case 14:
/* Line 1464 of yacc.c */
-#line 217 "libmemcached/options/parser.yy"
+#line 210 "libmemcached/options/parser.yy"
{
memcached_set_configuration_file(context->memc, (yyvsp[(2) - (2)].string).c_str, (yyvsp[(2) - (2)].string).length);
;}
case 16:
/* Line 1464 of yacc.c */
-#line 225 "libmemcached/options/parser.yy"
+#line 218 "libmemcached/options/parser.yy"
{
if ((context->rc= memcached_set_prefix_key(context->memc, (yyvsp[(2) - (2)].string).c_str, (yyvsp[(2) - (2)].string).length)) != MEMCACHED_SUCCESS)
{
case 17:
/* Line 1464 of yacc.c */
-#line 232 "libmemcached/options/parser.yy"
+#line 225 "libmemcached/options/parser.yy"
{
if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, (yyvsp[(2) - (2)].distribution))) != MEMCACHED_SUCCESS)
{
case 18:
/* Line 1464 of yacc.c */
-#line 239 "libmemcached/options/parser.yy"
+#line 232 "libmemcached/options/parser.yy"
{
- if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_HASH, (yyvsp[(2) - (2)].hash))) != MEMCACHED_SUCCESS)
+ if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, (yyvsp[(2) - (4)].distribution))) != MEMCACHED_SUCCESS)
{
- parser_abort(context, NULL);;
+ parser_abort(context, NULL);;
+ }
+ if ((context->rc= memcached_behavior_set_distribution_hash(context->memc, (yyvsp[(4) - (4)].hash))) != MEMCACHED_SUCCESS)
+ {
+ parser_abort(context, NULL);;
}
;}
break;
case 19:
/* Line 1464 of yacc.c */
-#line 246 "libmemcached/options/parser.yy"
+#line 243 "libmemcached/options/parser.yy"
{
- if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_KETAMA_HASH, (yyvsp[(2) - (2)].hash))) != MEMCACHED_SUCCESS)
+ if ((context->rc= memcached_behavior_set(context->memc, MEMCACHED_BEHAVIOR_HASH, (yyvsp[(2) - (2)].hash))) != MEMCACHED_SUCCESS)
{
- parser_abort(context, NULL);;
+ parser_abort(context, NULL);;
}
;}
break;
case 20:
/* Line 1464 of yacc.c */
-#line 253 "libmemcached/options/parser.yy"
+#line 250 "libmemcached/options/parser.yy"
{
if ((context->rc= memcached_behavior_set(context->memc, (yyvsp[(1) - (2)].behavior), (yyvsp[(2) - (2)].number))) != MEMCACHED_SUCCESS)
{
case 21:
/* Line 1464 of yacc.c */
-#line 260 "libmemcached/options/parser.yy"
+#line 257 "libmemcached/options/parser.yy"
{
if ((context->rc= memcached_behavior_set(context->memc, (yyvsp[(1) - (1)].behavior), true)) != MEMCACHED_SUCCESS)
{
case 22:
/* Line 1464 of yacc.c */
-#line 267 "libmemcached/options/parser.yy"
+#line 264 "libmemcached/options/parser.yy"
{
;}
break;
case 23:
/* Line 1464 of yacc.c */
-#line 273 "libmemcached/options/parser.yy"
+#line 270 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS;
;}
break;
case 24:
/* Line 1464 of yacc.c */
-#line 277 "libmemcached/options/parser.yy"
+#line 274 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT;
;}
break;
case 25:
/* Line 1464 of yacc.c */
-#line 281 "libmemcached/options/parser.yy"
+#line 278 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK;
;}
break;
case 26:
/* Line 1464 of yacc.c */
-#line 285 "libmemcached/options/parser.yy"
+#line 282 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK;
;}
break;
case 27:
/* Line 1464 of yacc.c */
-#line 289 "libmemcached/options/parser.yy"
+#line 286 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH;
;}
break;
case 28:
/* Line 1464 of yacc.c */
-#line 293 "libmemcached/options/parser.yy"
+#line 290 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_POLL_TIMEOUT;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS;
;}
break;
case 29:
/* Line 1464 of yacc.c */
-#line 297 "libmemcached/options/parser.yy"
+#line 294 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_RCV_TIMEOUT;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_POLL_TIMEOUT;
;}
break;
case 30:
/* Line 1464 of yacc.c */
-#line 301 "libmemcached/options/parser.yy"
+#line 298 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_RETRY_TIMEOUT;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_RCV_TIMEOUT;
;}
break;
case 31:
/* Line 1464 of yacc.c */
-#line 305 "libmemcached/options/parser.yy"
+#line 302 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_RETRY_TIMEOUT;
;}
break;
case 32:
/* Line 1464 of yacc.c */
-#line 309 "libmemcached/options/parser.yy"
+#line 306 "libmemcached/options/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_SND_TIMEOUT;
;}
case 33:
/* Line 1464 of yacc.c */
-#line 313 "libmemcached/options/parser.yy"
+#line 310 "libmemcached/options/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE;
;}
case 34:
/* Line 1464 of yacc.c */
-#line 317 "libmemcached/options/parser.yy"
+#line 314 "libmemcached/options/parser.yy"
{
(yyval.behavior)= MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE;
;}
case 35:
/* Line 1464 of yacc.c */
-#line 324 "libmemcached/options/parser.yy"
+#line 321 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_BINARY_PROTOCOL;
;}
break;
case 36:
/* Line 1464 of yacc.c */
-#line 328 "libmemcached/options/parser.yy"
+#line 325 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_BINARY_PROTOCOL;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_BUFFER_REQUESTS;
;}
break;
case 37:
/* Line 1464 of yacc.c */
-#line 332 "libmemcached/options/parser.yy"
+#line 329 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_BUFFER_REQUESTS;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY;
;}
break;
case 38:
/* Line 1464 of yacc.c */
-#line 336 "libmemcached/options/parser.yy"
+#line 333 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_CACHE_LOOKUPS;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_NOREPLY;
;}
break;
case 39:
/* Line 1464 of yacc.c */
-#line 340 "libmemcached/options/parser.yy"
+#line 337 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_CORK;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ;
;}
break;
case 40:
/* Line 1464 of yacc.c */
-#line 344 "libmemcached/options/parser.yy"
+#line 341 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_SORT_HOSTS;
;}
break;
case 41:
/* Line 1464 of yacc.c */
-#line 348 "libmemcached/options/parser.yy"
+#line 345 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_KETAMA;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_SUPPORT_CAS;
;}
break;
case 42:
/* Line 1464 of yacc.c */
-#line 352 "libmemcached/options/parser.yy"
+#line 349 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_NODELAY;
;}
break;
case 43:
/* Line 1464 of yacc.c */
-#line 356 "libmemcached/options/parser.yy"
+#line 353 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_NOREPLY;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPALIVE;
;}
break;
case 44:
/* Line 1464 of yacc.c */
-#line 360 "libmemcached/options/parser.yy"
+#line 357 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPIDLE;
;}
break;
case 45:
/* Line 1464 of yacc.c */
-#line 364 "libmemcached/options/parser.yy"
+#line 361 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_SORT_HOSTS;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_USE_UDP;
;}
break;
case 46:
/* Line 1464 of yacc.c */
-#line 368 "libmemcached/options/parser.yy"
+#line 365 "libmemcached/options/parser.yy"
{
- (yyval.behavior)= MEMCACHED_BEHAVIOR_SUPPORT_CAS;
+ (yyval.behavior)= MEMCACHED_BEHAVIOR_VERIFY_KEY;
;}
break;
case 47:
/* Line 1464 of yacc.c */
-#line 372 "libmemcached/options/parser.yy"
- {
- (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_NODELAY;
- ;}
+#line 371 "libmemcached/options/parser.yy"
+ { ;}
break;
case 48:
/* Line 1464 of yacc.c */
-#line 376 "libmemcached/options/parser.yy"
- {
- (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPALIVE;
- ;}
+#line 373 "libmemcached/options/parser.yy"
+ { ;}
break;
case 49:
/* Line 1464 of yacc.c */
-#line 380 "libmemcached/options/parser.yy"
- {
- (yyval.behavior)= MEMCACHED_BEHAVIOR_TCP_KEEPIDLE;
- ;}
+#line 377 "libmemcached/options/parser.yy"
+ { ;}
break;
case 50:
/* Line 1464 of yacc.c */
-#line 384 "libmemcached/options/parser.yy"
- {
- (yyval.behavior)= MEMCACHED_BEHAVIOR_USE_UDP;
- ;}
+#line 379 "libmemcached/options/parser.yy"
+ { ;}
break;
case 51:
/* Line 1464 of yacc.c */
-#line 388 "libmemcached/options/parser.yy"
- {
- (yyval.behavior)= MEMCACHED_BEHAVIOR_VERIFY_KEY;
- ;}
- break;
-
- case 52:
-
-/* Line 1464 of yacc.c */
-#line 395 "libmemcached/options/parser.yy"
- {
- if ((context->rc= memcached_server_add_parsed(context->memc, (yyvsp[(1) - (1)].server).c_str, (yyvsp[(1) - (1)].server).length, (yyvsp[(1) - (1)].server).port, 0)) != MEMCACHED_SUCCESS)
- {
- parser_abort(context, NULL);;
- }
- ;}
- break;
-
- case 53:
-
-/* Line 1464 of yacc.c */
-#line 402 "libmemcached/options/parser.yy"
- {
- if ((context->rc= memcached_server_add_parsed(context->memc, (yyvsp[(3) - (3)].server).c_str, (yyvsp[(3) - (3)].server).length, (yyvsp[(3) - (3)].server).port, 0)) != MEMCACHED_SUCCESS)
- {
- parser_abort(context, NULL);;
- }
- ;}
- break;
-
- case 54:
-
-/* Line 1464 of yacc.c */
-#line 412 "libmemcached/options/parser.yy"
- {
- (yyval.server).c_str= (yyvsp[(1) - (2)].string).c_str;
- (yyval.server).length= (yyvsp[(1) - (2)].string).length -1; // -1 to remove :
- (yyval.server).port= (yyvsp[(2) - (2)].number);
- ;}
- break;
-
- case 55:
-
-/* Line 1464 of yacc.c */
-#line 418 "libmemcached/options/parser.yy"
- {
- (yyval.server).c_str= (yyvsp[(1) - (1)].string).c_str;
- (yyval.server).length= (yyvsp[(1) - (1)].string).length;
- (yyval.server).port= MEMCACHED_DEFAULT_PORT;
- ;}
- break;
-
- case 56:
-
-/* Line 1464 of yacc.c */
-#line 424 "libmemcached/options/parser.yy"
- {
- (yyval.server).c_str= (yyvsp[(1) - (1)].string).c_str;
- (yyval.server).length= (yyvsp[(1) - (1)].string).length;
- (yyval.server).port= MEMCACHED_DEFAULT_PORT;
- ;}
- break;
-
- case 57:
-
-/* Line 1464 of yacc.c */
-#line 430 "libmemcached/options/parser.yy"
- {
- (yyval.server).c_str= (yyvsp[(1) - (2)].string).c_str;
- (yyval.server).length= (yyvsp[(1) - (2)].string).length -1; // -1 to remove :
- (yyval.server).port= (yyvsp[(2) - (2)].number);
- ;}
- break;
-
- case 58:
-
-/* Line 1464 of yacc.c */
-#line 436 "libmemcached/options/parser.yy"
- {
- (yyval.server).c_str= (yyvsp[(1) - (1)].string).c_str;
- (yyval.server).length= (yyvsp[(1) - (1)].string).length;
- (yyval.server).port= MEMCACHED_DEFAULT_PORT;
- ;}
- break;
-
- case 59:
-
-/* Line 1464 of yacc.c */
-#line 445 "libmemcached/options/parser.yy"
+#line 384 "libmemcached/options/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_MD5;
;}
break;
- case 60:
+ case 52:
/* Line 1464 of yacc.c */
-#line 449 "libmemcached/options/parser.yy"
+#line 388 "libmemcached/options/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_CRC;
;}
break;
- case 61:
+ case 53:
/* Line 1464 of yacc.c */
-#line 453 "libmemcached/options/parser.yy"
+#line 392 "libmemcached/options/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_FNV1_64;
;}
break;
- case 62:
+ case 54:
/* Line 1464 of yacc.c */
-#line 457 "libmemcached/options/parser.yy"
+#line 396 "libmemcached/options/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_FNV1A_64;
;}
break;
- case 63:
+ case 55:
/* Line 1464 of yacc.c */
-#line 461 "libmemcached/options/parser.yy"
+#line 400 "libmemcached/options/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_FNV1_32;
;}
break;
- case 64:
+ case 56:
/* Line 1464 of yacc.c */
-#line 465 "libmemcached/options/parser.yy"
+#line 404 "libmemcached/options/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_FNV1A_32;
;}
break;
- case 65:
+ case 57:
/* Line 1464 of yacc.c */
-#line 469 "libmemcached/options/parser.yy"
+#line 408 "libmemcached/options/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_HSIEH;
;}
break;
- case 66:
+ case 58:
/* Line 1464 of yacc.c */
-#line 473 "libmemcached/options/parser.yy"
+#line 412 "libmemcached/options/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_MURMUR;
;}
break;
- case 67:
+ case 59:
/* Line 1464 of yacc.c */
-#line 477 "libmemcached/options/parser.yy"
+#line 416 "libmemcached/options/parser.yy"
{
(yyval.hash)= MEMCACHED_HASH_JENKINS;
;}
break;
- case 68:
+ case 60:
/* Line 1464 of yacc.c */
-#line 484 "libmemcached/options/parser.yy"
+#line 423 "libmemcached/options/parser.yy"
{
(yyval.string)= (yyvsp[(1) - (1)].string);
;}
break;
- case 69:
+ case 61:
/* Line 1464 of yacc.c */
-#line 488 "libmemcached/options/parser.yy"
+#line 427 "libmemcached/options/parser.yy"
{
(yyval.string).c_str= (yyvsp[(1) - (1)].string).c_str +1; // +1 to move use passed the initial quote
(yyval.string).length= (yyvsp[(1) - (1)].string).length -1; // -1 removes the end quote
;}
break;
- case 70:
+ case 62:
/* Line 1464 of yacc.c */
-#line 496 "libmemcached/options/parser.yy"
+#line 435 "libmemcached/options/parser.yy"
{
(yyval.distribution)= MEMCACHED_DISTRIBUTION_CONSISTENT;
;}
break;
- case 71:
+ case 63:
/* Line 1464 of yacc.c */
-#line 500 "libmemcached/options/parser.yy"
+#line 439 "libmemcached/options/parser.yy"
{
(yyval.distribution)= MEMCACHED_DISTRIBUTION_MODULA;
;}
break;
- case 72:
+ case 64:
/* Line 1464 of yacc.c */
-#line 504 "libmemcached/options/parser.yy"
+#line 443 "libmemcached/options/parser.yy"
{
(yyval.distribution)= MEMCACHED_DISTRIBUTION_RANDOM;
;}
/* Line 1464 of yacc.c */
-#line 2189 "libmemcached/options/parser.cc"
+#line 2080 "libmemcached/options/parser.cc"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
+/* Line 1684 of yacc.c */
+#line 448 "libmemcached/options/parser.yy"
+
+
+void Context::start()
+{
+ config_parse(this, (void **)scanner);
+}
+
+