version 1.20, 2008/12/16 18:55:53
|
version 1.21, 2010/12/21 12:43:39
|
|
|
/* 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, 257, 257, 283, 292, 308, 341, 370, 380, 394, |
0, 259, 259, 285, 294, 310, 343, 372, 382, 396, |
404, 418, 428, 442, 452, 465, 474, 479, 484, 489, |
406, 420, 430, 444, 454, 467, 476, 481, 486, 491, |
494, 504, 517, 531, 541, 550, 559, 568, 581, 590, |
496, 506, 519, 533, 543, 552, 561, 570, 583, 592, |
601, 643, 681, 727, 786, 794, 883, 914, 943, 974, |
603, 645, 683, 729, 788, 796, 885, 916, 945, 976, |
989, 996, 1008, 1015, 1021, 1028, 1034, 1040, 1048, 1055, |
991, 998, 1010, 1017, 1023, 1030, 1036, 1042, 1050, 1057, |
1067, 1078, 1108, 1138, 1155, 1171, 1178, 1188, 1195, 1210, |
1069, 1080, 1110, 1140, 1157, 1173, 1180, 1190, 1197, 1212, |
1217, 1231, 1250, 1309, 1316, 1328, 1341, 1348, 1357, 1374, |
1219, 1233, 1252, 1311, 1318, 1330, 1343, 1350, 1359, 1376, |
1396, 1405, 1414, 1416, 1426, 1435, 1437, 1448 |
1398, 1407, 1416, 1418, 1428, 1437, 1439, 1450 |
}; | }; |
#endif | #endif |
| |
|
|
| |
switch (yytype) | switch (yytype) |
{ | { |
|
case 52: /* "TOK_SELECT" */ |
|
#line 236 "CQL.y" |
|
{CQL_Bison_Cleanup(); }; |
|
#line 1372 "CQLtemp" |
|
break; |
| |
default: | default: |
break; | break; |
|
|
switch (yyn) | switch (yyn) |
{ | { |
case 2: | case 2: |
#line 258 "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 284 "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 293 "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 309 "CQL.y" |
#line 311 "CQL.y" |
{ | { |
/* | /* |
TOK_SCOPED_PROPERTY can be: | TOK_SCOPED_PROPERTY can be: |
|
|
break; | break; |
| |
case 6: | case 6: |
#line 342 "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 371 "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 381 "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 395 "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 405 "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 419 "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 429 "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 443 "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 453 "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 466 "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 475 "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 480 "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 485 "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 490 "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 495 "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 505 "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 518 "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 532 "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 542 "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 551 "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 560 "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 569 "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 582 "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 591 "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"); |
|
|
break; | break; |
| |
case 30: | case 30: |
#line 602 "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 644 "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 682 "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 728 "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 787 "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 795 "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 884 "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 915 "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 944 "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 975 "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 990 "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 997 "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 1009 "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 1016 "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 1022 "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 1029 "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 1035 "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 1041 "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 1049 "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 1056 "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 1068 "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 1079 "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 1109 "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 1139 "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 1156 "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 1172 "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 1179 "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 1189 "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 1196 "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 1211 "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 1218 "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 1231 "CQL.y" |
#line 1233 "CQL.y" |
{;;} | {;;} |
break; | break; |
| |
case 62: | case 62: |
#line 1251 "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 1310 "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 1317 "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 1329 "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 1342 "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 1349 "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 1358 "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 1375 "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 1397 "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 1406 "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 1414 "CQL.y" |
#line 1416 "CQL.y" |
{;;} | {;;} |
break; | break; |
| |
case 73: | case 73: |
#line 1417 "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 1427 "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 1435 "CQL.y" |
#line 1437 "CQL.y" |
{;} | {;} |
break; | break; |
| |
case 76: | case 76: |
#line 1438 "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 1449 "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 2889 "CQLtemp" |
#line 2894 "CQLtemp" |
default: break; | default: break; |
} | } |
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); | YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); |
|
|
} | } |
| |
| |
#line 1458 "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;}*/ |