version 1.17, 2007/07/17 20:58:31
|
version 1.18, 2007/09/10 08:50:51
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
| |
|
void CQL_Arglist_Cleanup() |
|
{ |
|
_arglist.clear(); |
|
} |
|
|
void CQL_Bison_Cleanup(){ | void CQL_Bison_Cleanup(){ |
for(Uint32 i = 0; i < _ptrs.size(); i++) | for(Uint32 i = 0; i < _ptrs.size(); i++) |
{ | { |
|
|
} | } |
} | } |
} | } |
|
CQL_Arglist_Cleanup(); |
_ptrs.clear(); | _ptrs.clear(); |
_factory.cleanup(); | _factory.cleanup(); |
_factory = CQLFactory(); | _factory = CQLFactory(); |
|
|
| |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
typedef union YYSTYPE | typedef union YYSTYPE |
#line 129 "CQL.y" |
#line 135 "CQL.y" |
{ | { |
char * strValue; | char * strValue; |
String * _string; | String * _string; |
|
|
void * _node; | void * _node; |
} | } |
/* Line 193 of yacc.c. */ | /* Line 193 of yacc.c. */ |
#line 336 "CQLtemp" |
#line 342 "CQLtemp" |
YYSTYPE; | YYSTYPE; |
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
# define YYSTYPE_IS_DECLARED 1 | # define YYSTYPE_IS_DECLARED 1 |
|
|
| |
| |
/* Line 216 of yacc.c. */ | /* Line 216 of yacc.c. */ |
#line 349 "CQLtemp" |
#line 355 "CQLtemp" |
| |
#ifdef short | #ifdef short |
# undef short | # undef short |
|
|
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ | /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
static const yytype_uint16 yyrline[] = | static const yytype_uint16 yyrline[] = |
{ | { |
0, 253, 253, 279, 288, 304, 337, 366, 376, 390, |
0, 259, 259, 285, 294, 310, 343, 372, 382, 396, |
400, 414, 424, 438, 448, 461, 470, 475, 480, 485, |
406, 420, 430, 444, 454, 467, 476, 481, 486, 491, |
490, 500, 513, 527, 537, 546, 555, 564, 577, 586, |
496, 506, 519, 533, 543, 552, 561, 570, 583, 592, |
597, 639, 677, 723, 782, 790, 879, 910, 939, 970, |
603, 645, 683, 729, 788, 796, 885, 916, 945, 976, |
985, 992, 1004, 1011, 1017, 1024, 1030, 1036, 1044, 1051, |
991, 998, 1010, 1017, 1023, 1030, 1036, 1042, 1050, 1057, |
1063, 1074, 1104, 1134, 1151, 1167, 1174, 1184, 1191, 1206, |
1069, 1080, 1110, 1140, 1157, 1173, 1180, 1190, 1197, 1212, |
1213, 1227, 1246, 1305, 1312, 1324, 1337, 1344, 1353, 1370, |
1219, 1233, 1252, 1311, 1318, 1330, 1343, 1350, 1359, 1376, |
1392, 1401, 1410, 1412, 1422, 1431, 1433, 1444 |
1398, 1407, 1416, 1418, 1428, 1437, 1439, 1450 |
}; | }; |
#endif | #endif |
| |
|
|
switch (yyn) | switch (yyn) |
{ | { |
case 2: | case 2: |
#line 254 "CQL.y" |
#line 260 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "identifier"; | CQL_globalParserState->currentRule = "identifier"; |
CQL_DEBUG_TRACE("BISON::identifier\n"); | CQL_DEBUG_TRACE("BISON::identifier\n"); |
|
|
break; | break; |
| |
case 3: | case 3: |
#line 280 "CQL.y" |
#line 286 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "class_name"; | CQL_globalParserState->currentRule = "class_name"; |
CQL_DEBUG_TRACE2("BISON::class_name = %s\n", | CQL_DEBUG_TRACE2("BISON::class_name = %s\n", |
|
|
break; | break; |
| |
case 4: | case 4: |
#line 289 "CQL.y" |
#line 295 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "class_path"; | CQL_globalParserState->currentRule = "class_path"; |
CQL_DEBUG_TRACE("BISON::class_path\n"); | CQL_DEBUG_TRACE("BISON::class_path\n"); |
|
|
break; | break; |
| |
case 5: | case 5: |
#line 305 "CQL.y" |
#line 311 "CQL.y" |
{ | { |
/* | /* |
TOK_SCOPED_PROPERTY can be: | TOK_SCOPED_PROPERTY can be: |
|
|
break; | break; |
| |
case 6: | case 6: |
#line 338 "CQL.y" |
#line 344 "CQL.y" |
{ | { |
/* | /* |
Make sure the literal is valid UTF8, then make a String | Make sure the literal is valid UTF8, then make a String |
|
|
break; | break; |
| |
case 7: | case 7: |
#line 367 "CQL.y" |
#line 373 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "binary_value->TOK_BINARY"; | CQL_globalParserState->currentRule = "binary_value->TOK_BINARY"; |
CQL_DEBUG_TRACE2("BISON::binary_value-> %s\n", CQL_lval.strValue); | CQL_DEBUG_TRACE2("BISON::binary_value-> %s\n", CQL_lval.strValue); |
|
|
break; | break; |
| |
case 8: | case 8: |
#line 377 "CQL.y" |
#line 383 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"binary_value->TOK_NEGATIVE_BINARY"; | "binary_value->TOK_NEGATIVE_BINARY"; |
|
|
break; | break; |
| |
case 9: | case 9: |
#line 391 "CQL.y" |
#line 397 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "hex_value->TOK_HEXADECIMAL"; | CQL_globalParserState->currentRule = "hex_value->TOK_HEXADECIMAL"; |
CQL_DEBUG_TRACE2("BISON::hex_value-> %s\n", CQL_lval.strValue); | CQL_DEBUG_TRACE2("BISON::hex_value-> %s\n", CQL_lval.strValue); |
|
|
break; | break; |
| |
case 10: | case 10: |
#line 401 "CQL.y" |
#line 407 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"hex_value->TOK_NEGATIVE_HEXADECIMAL"; | "hex_value->TOK_NEGATIVE_HEXADECIMAL"; |
|
|
break; | break; |
| |
case 11: | case 11: |
#line 415 "CQL.y" |
#line 421 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "decimal_value->TOK_INTEGER"; | CQL_globalParserState->currentRule = "decimal_value->TOK_INTEGER"; |
CQL_DEBUG_TRACE2("BISON::decimal_value-> %s\n", CQL_lval.strValue); | CQL_DEBUG_TRACE2("BISON::decimal_value-> %s\n", CQL_lval.strValue); |
|
|
break; | break; |
| |
case 12: | case 12: |
#line 425 "CQL.y" |
#line 431 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"decimal_value->TOK_NEGATIVE_INTEGER"; | "decimal_value->TOK_NEGATIVE_INTEGER"; |
|
|
break; | break; |
| |
case 13: | case 13: |
#line 439 "CQL.y" |
#line 445 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "real_value->TOK_REAL"; | CQL_globalParserState->currentRule = "real_value->TOK_REAL"; |
CQL_DEBUG_TRACE2("BISON::real_value-> %s\n", CQL_lval.strValue); | CQL_DEBUG_TRACE2("BISON::real_value-> %s\n", CQL_lval.strValue); |
|
|
break; | break; |
| |
case 14: | case 14: |
#line 449 "CQL.y" |
#line 455 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "real_value->TOK_NEGATIVE_REAL"; | CQL_globalParserState->currentRule = "real_value->TOK_NEGATIVE_REAL"; |
CQL_DEBUG_TRACE2("BISON::real_value-> %s\n", CQL_lval.strValue); | CQL_DEBUG_TRACE2("BISON::real_value-> %s\n", CQL_lval.strValue); |
|
|
break; | break; |
| |
case 15: | case 15: |
#line 462 "CQL.y" |
#line 468 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "literal->literal_string"; | CQL_globalParserState->currentRule = "literal->literal_string"; |
CQL_DEBUG_TRACE("BISON::literal->literal_string\n"); | CQL_DEBUG_TRACE("BISON::literal->literal_string\n"); |
|
|
break; | break; |
| |
case 16: | case 16: |
#line 471 "CQL.y" |
#line 477 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "literal->decimal_value"; | CQL_globalParserState->currentRule = "literal->decimal_value"; |
CQL_DEBUG_TRACE("BISON::literal->decimal_value\n"); | CQL_DEBUG_TRACE("BISON::literal->decimal_value\n"); |
|
|
break; | break; |
| |
case 17: | case 17: |
#line 476 "CQL.y" |
#line 482 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "literal->binary_value"; | CQL_globalParserState->currentRule = "literal->binary_value"; |
CQL_DEBUG_TRACE("BISON::literal->binary_value\n"); | CQL_DEBUG_TRACE("BISON::literal->binary_value\n"); |
|
|
break; | break; |
| |
case 18: | case 18: |
#line 481 "CQL.y" |
#line 487 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "literal->hex_value"; | CQL_globalParserState->currentRule = "literal->hex_value"; |
CQL_DEBUG_TRACE("BISON::literal->hex_value\n"); | CQL_DEBUG_TRACE("BISON::literal->hex_value\n"); |
|
|
break; | break; |
| |
case 19: | case 19: |
#line 486 "CQL.y" |
#line 492 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "literal->real_value"; | CQL_globalParserState->currentRule = "literal->real_value"; |
CQL_DEBUG_TRACE("BISON::literal->real_value\n"); | CQL_DEBUG_TRACE("BISON::literal->real_value\n"); |
|
|
break; | break; |
| |
case 20: | case 20: |
#line 491 "CQL.y" |
#line 497 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "literal->TOK_TRUE"; | CQL_globalParserState->currentRule = "literal->TOK_TRUE"; |
CQL_DEBUG_TRACE("BISON::literal->TOK_TRUE\n"); | CQL_DEBUG_TRACE("BISON::literal->TOK_TRUE\n"); |
|
|
break; | break; |
| |
case 21: | case 21: |
#line 501 "CQL.y" |
#line 507 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "literal->TOK_FALSE"; | CQL_globalParserState->currentRule = "literal->TOK_FALSE"; |
CQL_DEBUG_TRACE("BISON::literal->TOK_FALSE\n"); | CQL_DEBUG_TRACE("BISON::literal->TOK_FALSE\n"); |
|
|
break; | break; |
| |
case 22: | case 22: |
#line 514 "CQL.y" |
#line 520 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "array_index->expr"; | CQL_globalParserState->currentRule = "array_index->expr"; |
CQL_DEBUG_TRACE("BISON::array_index->expr\n"); | CQL_DEBUG_TRACE("BISON::array_index->expr\n"); |
|
|
break; | break; |
| |
case 23: | case 23: |
#line 528 "CQL.y" |
#line 534 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "array_index_list->array_index"; | CQL_globalParserState->currentRule = "array_index_list->array_index"; |
CQL_DEBUG_TRACE("BISON::array_index_list->array_index\n"); | CQL_DEBUG_TRACE("BISON::array_index_list->array_index\n"); |
|
|
break; | break; |
| |
case 24: | case 24: |
#line 538 "CQL.y" |
#line 544 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "chain->literal"; | CQL_globalParserState->currentRule = "chain->literal"; |
CQL_DEBUG_TRACE("BISON::chain->literal\n"); | CQL_DEBUG_TRACE("BISON::chain->literal\n"); |
|
|
break; | break; |
| |
case 25: | case 25: |
#line 547 "CQL.y" |
#line 553 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "chain-> ( expr )"; | CQL_globalParserState->currentRule = "chain-> ( expr )"; |
CQL_DEBUG_TRACE("BISON::chain-> ( expr )\n"); | CQL_DEBUG_TRACE("BISON::chain-> ( expr )\n"); |
|
|
break; | break; |
| |
case 26: | case 26: |
#line 556 "CQL.y" |
#line 562 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "chain->identifier"; | CQL_globalParserState->currentRule = "chain->identifier"; |
CQL_DEBUG_TRACE("BISON::chain->identifier\n"); | CQL_DEBUG_TRACE("BISON::chain->identifier\n"); |
|
|
break; | break; |
| |
case 27: | case 27: |
#line 565 "CQL.y" |
#line 571 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"chain->identifier#literal_string"; | "chain->identifier#literal_string"; |
|
|
break; | break; |
| |
case 28: | case 28: |
#line 578 "CQL.y" |
#line 584 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "chain->scoped_property"; | CQL_globalParserState->currentRule = "chain->scoped_property"; |
CQL_DEBUG_TRACE("BISON::chain->scoped_property\n"); | CQL_DEBUG_TRACE("BISON::chain->scoped_property\n"); |
|
|
break; | break; |
| |
case 29: | case 29: |
#line 587 "CQL.y" |
#line 593 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "identifier( arg_list )"; | CQL_globalParserState->currentRule = "identifier( arg_list )"; |
CQL_DEBUG_TRACE("BISON::identifier( arg_list )\n"); | CQL_DEBUG_TRACE("BISON::identifier( arg_list )\n"); |
|
|
chain_state = CQLFUNCTION; | chain_state = CQLFUNCTION; |
CQLFunction _func(*(yyvsp[(1) - (4)]._identifier),_arglist); | CQLFunction _func(*(yyvsp[(1) - (4)]._identifier),_arglist); |
(yyval._node) = (CQLPredicate*)(_factory.makeObject(&_func,Predicate)); | (yyval._node) = (CQLPredicate*)(_factory.makeObject(&_func,Predicate)); |
_arglist.clear(); |
CQL_Arglist_Cleanup(); |
;} | ;} |
break; | break; |
| |
case 30: | case 30: |
#line 598 "CQL.y" |
#line 604 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "chain->chain.scoped_property"; | CQL_globalParserState->currentRule = "chain->chain.scoped_property"; |
CQL_DEBUG_TRACE2( | CQL_DEBUG_TRACE2( |
|
|
break; | break; |
| |
case 31: | case 31: |
#line 640 "CQL.y" |
#line 646 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "chain->chain.identifier"; | CQL_globalParserState->currentRule = "chain->chain.identifier"; |
CQL_DEBUG_TRACE2("BISON::chain->chain.identifier : chain_state = %d\n" | CQL_DEBUG_TRACE2("BISON::chain->chain.identifier : chain_state = %d\n" |
|
|
break; | break; |
| |
case 32: | case 32: |
#line 678 "CQL.y" |
#line 684 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"chain->chain.identifier#literal_string"; | "chain->chain.identifier#literal_string"; |
|
|
break; | break; |
| |
case 33: | case 33: |
#line 724 "CQL.y" |
#line 730 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"chain->chain[ array_index_list ]"; | "chain->chain[ array_index_list ]"; |
|
|
break; | break; |
| |
case 34: | case 34: |
#line 783 "CQL.y" |
#line 789 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "concat->chain"; | CQL_globalParserState->currentRule = "concat->chain"; |
CQL_DEBUG_TRACE("BISON::concat->chain\n"); | CQL_DEBUG_TRACE("BISON::concat->chain\n"); |
|
|
break; | break; |
| |
case 35: | case 35: |
#line 791 "CQL.y" |
#line 797 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"concat->concat || literal_string"; | "concat->concat || literal_string"; |
|
|
break; | break; |
| |
case 36: | case 36: |
#line 880 "CQL.y" |
#line 886 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "factor->concat"; | CQL_globalParserState->currentRule = "factor->concat"; |
CQL_DEBUG_TRACE("BISON::factor->concat\n"); | CQL_DEBUG_TRACE("BISON::factor->concat\n"); |
|
|
break; | break; |
| |
case 37: | case 37: |
#line 911 "CQL.y" |
#line 917 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "term->factor"; | CQL_globalParserState->currentRule = "term->factor"; |
CQL_DEBUG_TRACE("BISON::term->factor\n"); | CQL_DEBUG_TRACE("BISON::term->factor\n"); |
|
|
break; | break; |
| |
case 38: | case 38: |
#line 940 "CQL.y" |
#line 946 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "arith->term"; | CQL_globalParserState->currentRule = "arith->term"; |
CQL_DEBUG_TRACE("BISON::arith->term\n"); | CQL_DEBUG_TRACE("BISON::arith->term\n"); |
|
|
break; | break; |
| |
case 39: | case 39: |
#line 971 "CQL.y" |
#line 977 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "value_symbol->#literal_string"; | CQL_globalParserState->currentRule = "value_symbol->#literal_string"; |
CQL_DEBUG_TRACE("BISON::value_symbol->#literal_string\n"); | CQL_DEBUG_TRACE("BISON::value_symbol->#literal_string\n"); |
|
|
break; | break; |
| |
case 40: | case 40: |
#line 986 "CQL.y" |
#line 992 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "arith_or_value_symbol->arith"; | CQL_globalParserState->currentRule = "arith_or_value_symbol->arith"; |
CQL_DEBUG_TRACE("BISON::arith_or_value_symbol->arith\n"); | CQL_DEBUG_TRACE("BISON::arith_or_value_symbol->arith\n"); |
|
|
break; | break; |
| |
case 41: | case 41: |
#line 993 "CQL.y" |
#line 999 "CQL.y" |
{ | { |
/* make into predicate */ | /* make into predicate */ |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
|
|
break; | break; |
| |
case 42: | case 42: |
#line 1005 "CQL.y" |
#line 1011 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "comp_op->TOK_EQ"; | CQL_globalParserState->currentRule = "comp_op->TOK_EQ"; |
CQL_DEBUG_TRACE("BISON::comp_op->TOK_EQ\n"); | CQL_DEBUG_TRACE("BISON::comp_op->TOK_EQ\n"); |
|
|
break; | break; |
| |
case 43: | case 43: |
#line 1012 "CQL.y" |
#line 1018 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "comp_op->TOK_NE"; | CQL_globalParserState->currentRule = "comp_op->TOK_NE"; |
CQL_DEBUG_TRACE("BISON::comp_op->TOK_NE\n"); | CQL_DEBUG_TRACE("BISON::comp_op->TOK_NE\n"); |
|
|
break; | break; |
| |
case 44: | case 44: |
#line 1018 "CQL.y" |
#line 1024 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "comp_op->TOK_GT"; | CQL_globalParserState->currentRule = "comp_op->TOK_GT"; |
CQL_DEBUG_TRACE("BISON::comp_op->TOK_GT\n"); | CQL_DEBUG_TRACE("BISON::comp_op->TOK_GT\n"); |
|
|
break; | break; |
| |
case 45: | case 45: |
#line 1025 "CQL.y" |
#line 1031 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "comp_op->TOK_LT"; | CQL_globalParserState->currentRule = "comp_op->TOK_LT"; |
CQL_DEBUG_TRACE("BISON::comp_op->TOK_LT\n"); | CQL_DEBUG_TRACE("BISON::comp_op->TOK_LT\n"); |
|
|
break; | break; |
| |
case 46: | case 46: |
#line 1031 "CQL.y" |
#line 1037 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "comp_op->TOK_GE"; | CQL_globalParserState->currentRule = "comp_op->TOK_GE"; |
CQL_DEBUG_TRACE("BISON::comp_op->TOK_GE\n"); | CQL_DEBUG_TRACE("BISON::comp_op->TOK_GE\n"); |
|
|
break; | break; |
| |
case 47: | case 47: |
#line 1037 "CQL.y" |
#line 1043 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "comp_op->TOK_LE"; | CQL_globalParserState->currentRule = "comp_op->TOK_LE"; |
CQL_DEBUG_TRACE("BISON::comp_op->TOK_LE\n"); | CQL_DEBUG_TRACE("BISON::comp_op->TOK_LE\n"); |
|
|
break; | break; |
| |
case 48: | case 48: |
#line 1045 "CQL.y" |
#line 1051 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "comp->arith"; | CQL_globalParserState->currentRule = "comp->arith"; |
CQL_DEBUG_TRACE("BISON::comp->arith\n"); | CQL_DEBUG_TRACE("BISON::comp->arith\n"); |
|
|
break; | break; |
| |
case 49: | case 49: |
#line 1052 "CQL.y" |
#line 1058 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"comp->arith TOK_IS TOK_NOT TOK_NULL"; | "comp->arith TOK_IS TOK_NOT TOK_NULL"; |
|
|
break; | break; |
| |
case 50: | case 50: |
#line 1064 "CQL.y" |
#line 1070 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "comp->arith TOK_IS TOK_NULL"; | CQL_globalParserState->currentRule = "comp->arith TOK_IS TOK_NULL"; |
CQL_DEBUG_TRACE("BISON::comp->arith TOK_IS TOK_NULL\n"); | CQL_DEBUG_TRACE("BISON::comp->arith TOK_IS TOK_NULL\n"); |
|
|
break; | break; |
| |
case 51: | case 51: |
#line 1075 "CQL.y" |
#line 1081 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"comp->arith comp_op arith_or_value_symbol"; | "comp->arith comp_op arith_or_value_symbol"; |
|
|
break; | break; |
| |
case 52: | case 52: |
#line 1105 "CQL.y" |
#line 1111 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"comp->value_symbol comp_op arith"; | "comp->value_symbol comp_op arith"; |
|
|
break; | break; |
| |
case 53: | case 53: |
#line 1135 "CQL.y" |
#line 1141 "CQL.y" |
{ | { |
/* make sure $1 isSimple(), get its expression, make | /* make sure $1 isSimple(), get its expression, make |
simplepred->predicate | simplepred->predicate |
|
|
break; | break; |
| |
case 54: | case 54: |
#line 1152 "CQL.y" |
#line 1158 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"comp->arith TOK_LIKE literal_string"; | "comp->arith TOK_LIKE literal_string"; |
|
|
break; | break; |
| |
case 55: | case 55: |
#line 1168 "CQL.y" |
#line 1174 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "expr_factor->comp"; | CQL_globalParserState->currentRule = "expr_factor->comp"; |
CQL_DEBUG_TRACE("BISON::expr_factor->comp\n"); | CQL_DEBUG_TRACE("BISON::expr_factor->comp\n"); |
|
|
break; | break; |
| |
case 56: | case 56: |
#line 1175 "CQL.y" |
#line 1181 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "expr_factor->TOK_NOT comp"; | CQL_globalParserState->currentRule = "expr_factor->TOK_NOT comp"; |
CQL_DEBUG_TRACE("BISON::expr_factor->TOK_NOT comp\n"); | CQL_DEBUG_TRACE("BISON::expr_factor->TOK_NOT comp\n"); |
|
|
break; | break; |
| |
case 57: | case 57: |
#line 1185 "CQL.y" |
#line 1191 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "expr_term->expr_factor"; | CQL_globalParserState->currentRule = "expr_term->expr_factor"; |
CQL_DEBUG_TRACE("BISON::expr_term->expr_factor\n"); | CQL_DEBUG_TRACE("BISON::expr_term->expr_factor\n"); |
|
|
break; | break; |
| |
case 58: | case 58: |
#line 1192 "CQL.y" |
#line 1198 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"expr_term->expr_term AND expr_factor"; | "expr_term->expr_term AND expr_factor"; |
|
|
break; | break; |
| |
case 59: | case 59: |
#line 1207 "CQL.y" |
#line 1213 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "expr->expr_term"; | CQL_globalParserState->currentRule = "expr->expr_term"; |
CQL_DEBUG_TRACE("BISON::expr->expr_term\n"); | CQL_DEBUG_TRACE("BISON::expr->expr_term\n"); |
|
|
break; | break; |
| |
case 60: | case 60: |
#line 1214 "CQL.y" |
#line 1220 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "expr->expr OR expr_term"; | CQL_globalParserState->currentRule = "expr->expr OR expr_term"; |
CQL_DEBUG_TRACE("BISON::expr->expr OR expr_term\n"); | CQL_DEBUG_TRACE("BISON::expr->expr OR expr_term\n"); |
|
|
break; | break; |
| |
case 61: | case 61: |
#line 1227 "CQL.y" |
#line 1233 "CQL.y" |
{;;} | {;;} |
break; | break; |
| |
case 62: | case 62: |
#line 1247 "CQL.y" |
#line 1253 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "arg_list->arg_list_sub->expr"; | CQL_globalParserState->currentRule = "arg_list->arg_list_sub->expr"; |
CQL_DEBUG_TRACE("BISON::arg_list->arg_list_sub->expr\n"); | CQL_DEBUG_TRACE("BISON::arg_list->arg_list_sub->expr\n"); |
|
|
break; | break; |
| |
case 63: | case 63: |
#line 1306 "CQL.y" |
#line 1312 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "from_specifier->class_path"; | CQL_globalParserState->currentRule = "from_specifier->class_path"; |
CQL_DEBUG_TRACE("BISON::from_specifier->class_path\n"); | CQL_DEBUG_TRACE("BISON::from_specifier->class_path\n"); |
|
|
break; | break; |
| |
case 64: | case 64: |
#line 1313 "CQL.y" |
#line 1319 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"from_specifier->class_path TOK_AS identifier"; | "from_specifier->class_path TOK_AS identifier"; |
|
|
break; | break; |
| |
case 65: | case 65: |
#line 1325 "CQL.y" |
#line 1331 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"from_specifier->class_path identifier"; | "from_specifier->class_path identifier"; |
|
|
break; | break; |
| |
case 66: | case 66: |
#line 1338 "CQL.y" |
#line 1344 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "from_criteria->from_specifier"; | CQL_globalParserState->currentRule = "from_criteria->from_specifier"; |
CQL_DEBUG_TRACE("BISON::from_criteria->from_specifier\n"); | CQL_DEBUG_TRACE("BISON::from_criteria->from_specifier\n"); |
|
|
break; | break; |
| |
case 67: | case 67: |
#line 1345 "CQL.y" |
#line 1351 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "star_expr->TOK_STAR"; | CQL_globalParserState->currentRule = "star_expr->TOK_STAR"; |
CQL_DEBUG_TRACE("BISON::star_expr->TOK_STAR\n"); | CQL_DEBUG_TRACE("BISON::star_expr->TOK_STAR\n"); |
|
|
break; | break; |
| |
case 68: | case 68: |
#line 1354 "CQL.y" |
#line 1360 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "star_expr->chain.*"; | CQL_globalParserState->currentRule = "star_expr->chain.*"; |
CQL_DEBUG_TRACE("BISON::star_expr->chain.*\n"); | CQL_DEBUG_TRACE("BISON::star_expr->chain.*\n"); |
|
|
break; | break; |
| |
case 69: | case 69: |
#line 1371 "CQL.y" |
#line 1377 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "selected_entry->expr"; | CQL_globalParserState->currentRule = "selected_entry->expr"; |
CQL_DEBUG_TRACE("BISON::selected_entry->expr\n"); | CQL_DEBUG_TRACE("BISON::selected_entry->expr\n"); |
|
|
break; | break; |
| |
case 70: | case 70: |
#line 1393 "CQL.y" |
#line 1399 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "selected_entry->star_expr"; | CQL_globalParserState->currentRule = "selected_entry->star_expr"; |
CQL_DEBUG_TRACE("BISON::selected_entry->star_expr\n"); | CQL_DEBUG_TRACE("BISON::selected_entry->star_expr\n"); |
|
|
break; | break; |
| |
case 71: | case 71: |
#line 1402 "CQL.y" |
#line 1408 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"select_list->selected_entry select_list_tail"; | "select_list->selected_entry select_list_tail"; |
|
|
break; | break; |
| |
case 72: | case 72: |
#line 1410 "CQL.y" |
#line 1416 "CQL.y" |
{;;} | {;;} |
break; | break; |
| |
case 73: | case 73: |
#line 1413 "CQL.y" |
#line 1419 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"select_list_tail->TOK_COMMA selected_entry select_list_tail"; | "select_list_tail->TOK_COMMA selected_entry select_list_tail"; |
|
|
break; | break; |
| |
case 74: | case 74: |
#line 1423 "CQL.y" |
#line 1429 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "search_condition->expr"; | CQL_globalParserState->currentRule = "search_condition->expr"; |
CQL_DEBUG_TRACE("BISON::search_condition->expr\n"); | CQL_DEBUG_TRACE("BISON::search_condition->expr\n"); |
|
|
break; | break; |
| |
case 75: | case 75: |
#line 1431 "CQL.y" |
#line 1437 "CQL.y" |
{;} | {;} |
break; | break; |
| |
case 76: | case 76: |
#line 1434 "CQL.y" |
#line 1440 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = | CQL_globalParserState->currentRule = |
"optional_where->TOK_WHERE search_condition"; | "optional_where->TOK_WHERE search_condition"; |
|
|
break; | break; |
| |
case 77: | case 77: |
#line 1445 "CQL.y" |
#line 1451 "CQL.y" |
{ | { |
CQL_globalParserState->currentRule = "select_statement"; | CQL_globalParserState->currentRule = "select_statement"; |
CQL_DEBUG_TRACE("select_statement\n"); | CQL_DEBUG_TRACE("select_statement\n"); |
|
|
| |
| |
/* Line 1267 of yacc.c. */ | /* Line 1267 of yacc.c. */ |
#line 2883 "CQLtemp" |
#line 2889 "CQLtemp" |
default: break; | default: break; |
} | } |
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); | YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); |
|
|
} | } |
| |
| |
#line 1454 "CQL.y" |
#line 1460 "CQL.y" |
| |
/*int yyerror(char * err){yyclearin; yyerrok;throw Exception(String(err)); | /*int yyerror(char * err){yyclearin; yyerrok;throw Exception(String(err)); |
return 1;}*/ | return 1;}*/ |