X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fcsl%2Fparser.yy;h=4fed2754d84ac3dcf728e305757abc85d9449bb5;hb=40994399d3420fe9dfc13b41cbd8b53c4e318a35;hp=486fb4b346efa9ddf0dc60126908fb5d83ed778e;hpb=6cca0302addd6ea9714f2b8deff2c48aab3002ef;p=awesomized%2Flibmemcached diff --git a/libmemcached/csl/parser.yy b/libmemcached/csl/parser.yy index 486fb4b3..4fed2754 100644 --- a/libmemcached/csl/parser.yy +++ b/libmemcached/csl/parser.yy @@ -96,14 +96,14 @@ inline void __config_error(Context *context, yyscan_t *scanner, const char *erro %token COMMENT %token END -%token ERROR +%token CSL_ERROR %token RESET %token PARSER_DEBUG %token INCLUDE %token CONFIGURE_FILE %token EMPTY_LINE %token SERVER -%token SOCKET +%token CSL_SOCKET %token SERVERS %token SERVERS_OPTION %token UNKNOWN_OPTION @@ -165,13 +165,13 @@ inline void __config_error(Context *context, yyscan_t *scanner, const char *erro %token RANDOM /* Boolean values */ -%token TRUE -%token FALSE +%token CSL_TRUE +%token CSL_FALSE %nonassoc ',' %nonassoc '=' -%token FLOAT +%token CSL_FLOAT %token NUMBER %token PORT %token WEIGHT_START @@ -208,7 +208,7 @@ statement: context->set_end(); YYACCEPT; } - | ERROR + | CSL_ERROR { context->rc= MEMCACHED_PARSE_USER_ERROR; parser_abort(context, "ERROR called directly"); @@ -252,7 +252,7 @@ expression: } context->unset_server(); } - | SOCKET string optional_weight + | CSL_SOCKET string optional_weight { if (memcached_failed(context->rc= memcached_server_add_unix_socket_with_weight(context->memc, $2.c_str, uint32_t($3)))) {