version 1.8, 2005/01/10 16:55:25
|
version 1.9, 2005/01/13 22:08:28
|
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
extern CQLParserState* globalParserState; |
extern CQLParserState* CQL_globalParserState; |
Array<CQLPredicate> _arglist; | Array<CQLPredicate> _arglist; |
| |
enum CQLType { Id, CId, Val, Func, Fact, Trm, Expr, SPred, Pred, Str }; | enum CQLType { Id, CId, Val, Func, Fact, Trm, Expr, SPred, Pred, Str }; |
|
|
case 1: | case 1: |
#line 225 "CQL.y" | #line 225 "CQL.y" |
{ | { |
globalParserState->currentRule = "identifier"; |
CQL_globalParserState->currentRule = "identifier"; |
sprintf(msg,"BISON::identifier\n"); | sprintf(msg,"BISON::identifier\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 2: | case 2: |
#line 238 "CQL.y" | #line 238 "CQL.y" |
{ | { |
globalParserState->currentRule = "class_name"; |
CQL_globalParserState->currentRule = "class_name"; |
sprintf(msg,"BISON::class_name = %s\n", (const char *)(yyvsp[0]._identifier->getName().getString().getCString())); | sprintf(msg,"BISON::class_name = %s\n", (const char *)(yyvsp[0]._identifier->getName().getString().getCString())); |
printf_(msg); | printf_(msg); |
yyval._identifier = yyvsp[0]._identifier; | yyval._identifier = yyvsp[0]._identifier; |
|
|
case 3: | case 3: |
#line 247 "CQL.y" | #line 247 "CQL.y" |
{ | { |
globalParserState->currentRule = "class_path"; |
CQL_globalParserState->currentRule = "class_path"; |
sprintf(msg,"BISON::class_path\n"); | sprintf(msg,"BISON::class_path\n"); |
printf_(msg); | printf_(msg); |
yyval._identifier = yyvsp[0]._identifier; | yyval._identifier = yyvsp[0]._identifier; |
|
|
- "A::class.prop#'OK' | - "A::class.prop#'OK' |
- "A::class.prop[4]" | - "A::class.prop[4]" |
*/ | */ |
globalParserState->currentRule = "scoped_property"; |
CQL_globalParserState->currentRule = "scoped_property"; |
sprintf(msg,"BISON::scoped_property = %s\n",CQL_lval.strValue); | sprintf(msg,"BISON::scoped_property = %s\n",CQL_lval.strValue); |
printf_(msg); | printf_(msg); |
| |
|
|
/* | /* |
We make sure the literal is valid UTF8, then make a String | We make sure the literal is valid UTF8, then make a String |
*/ | */ |
globalParserState->currentRule = "literal_string"; |
CQL_globalParserState->currentRule = "literal_string"; |
sprintf(msg,"BISON::literal_string-> %s\n",CQL_lval.strValue); | sprintf(msg,"BISON::literal_string-> %s\n",CQL_lval.strValue); |
printf_(msg); | printf_(msg); |
| |
|
|
MessageLoaderParms(String("CQL.CQL_y.BAD_UTF8"), | MessageLoaderParms(String("CQL.CQL_y.BAD_UTF8"), |
String("Bad UTF8 encountered parsing rule $0 in position $1."), | String("Bad UTF8 encountered parsing rule $0 in position $1."), |
String("literal_string"), | String("literal_string"), |
globalParserState->currentTokenPos) |
CQL_globalParserState->currentTokenPos) |
); | ); |
} | } |
} | } |
|
|
case 6: | case 6: |
#line 317 "CQL.y" | #line 317 "CQL.y" |
{ | { |
globalParserState->currentRule = "binary_value->BINARY"; |
CQL_globalParserState->currentRule = "binary_value->BINARY"; |
sprintf(msg,"BISON::binary_value-> %s\n",CQL_lval.strValue); | sprintf(msg,"BISON::binary_value-> %s\n",CQL_lval.strValue); |
printf_(msg); | printf_(msg); |
| |
|
|
case 7: | case 7: |
#line 328 "CQL.y" | #line 328 "CQL.y" |
{ | { |
globalParserState->currentRule = "binary_value->NEGATIVE_BINARY"; |
CQL_globalParserState->currentRule = "binary_value->NEGATIVE_BINARY"; |
sprintf(msg,"BISON::binary_value-> %s\n",CQL_lval.strValue); | sprintf(msg,"BISON::binary_value-> %s\n",CQL_lval.strValue); |
printf_(msg); | printf_(msg); |
| |
|
|
case 8: | case 8: |
#line 342 "CQL.y" | #line 342 "CQL.y" |
{ | { |
globalParserState->currentRule = "hex_value->HEXADECIMAL"; |
CQL_globalParserState->currentRule = "hex_value->HEXADECIMAL"; |
sprintf(msg,"BISON::hex_value-> %s\n",CQL_lval.strValue); | sprintf(msg,"BISON::hex_value-> %s\n",CQL_lval.strValue); |
printf_(msg); | printf_(msg); |
| |
|
|
case 9: | case 9: |
#line 353 "CQL.y" | #line 353 "CQL.y" |
{ | { |
globalParserState->currentRule = "hex_value->NEGATIVE_HEXADECIMAL"; |
CQL_globalParserState->currentRule = "hex_value->NEGATIVE_HEXADECIMAL"; |
sprintf(msg,"BISON::hex_value-> %s\n",CQL_lval.strValue); | sprintf(msg,"BISON::hex_value-> %s\n",CQL_lval.strValue); |
printf_(msg); | printf_(msg); |
| |
|
|
case 10: | case 10: |
#line 367 "CQL.y" | #line 367 "CQL.y" |
{ | { |
globalParserState->currentRule = "decimal_value->INTEGER"; |
CQL_globalParserState->currentRule = "decimal_value->INTEGER"; |
sprintf(msg,"BISON::decimal_value-> %s\n",CQL_lval.strValue); | sprintf(msg,"BISON::decimal_value-> %s\n",CQL_lval.strValue); |
printf_(msg); | printf_(msg); |
| |
|
|
case 11: | case 11: |
#line 378 "CQL.y" | #line 378 "CQL.y" |
{ | { |
globalParserState->currentRule = "decimal_value->NEGATIVE_INTEGER"; |
CQL_globalParserState->currentRule = "decimal_value->NEGATIVE_INTEGER"; |
sprintf(msg,"BISON::decimal_value-> %s\n",CQL_lval.strValue); | sprintf(msg,"BISON::decimal_value-> %s\n",CQL_lval.strValue); |
printf_(msg); | printf_(msg); |
| |
|
|
case 12: | case 12: |
#line 392 "CQL.y" | #line 392 "CQL.y" |
{ | { |
globalParserState->currentRule = "real_value->REAL"; |
CQL_globalParserState->currentRule = "real_value->REAL"; |
sprintf(msg,"BISON::real_value-> %s\n",CQL_lval.strValue); | sprintf(msg,"BISON::real_value-> %s\n",CQL_lval.strValue); |
printf_(msg); | printf_(msg); |
yyval._value = new CQLValue(CQL_lval.strValue, CQLValue::Real); | yyval._value = new CQLValue(CQL_lval.strValue, CQLValue::Real); |
|
|
case 13: | case 13: |
#line 402 "CQL.y" | #line 402 "CQL.y" |
{ | { |
globalParserState->currentRule = "real_value->NEGATIVE_REAL"; |
CQL_globalParserState->currentRule = "real_value->NEGATIVE_REAL"; |
sprintf(msg,"BISON::real_value-> %s\n",CQL_lval.strValue); | sprintf(msg,"BISON::real_value-> %s\n",CQL_lval.strValue); |
printf_(msg); | printf_(msg); |
yyval._value = new CQLValue(CQL_lval.strValue, CQLValue::Real, false); | yyval._value = new CQLValue(CQL_lval.strValue, CQLValue::Real, false); |
|
|
case 14: | case 14: |
#line 415 "CQL.y" | #line 415 "CQL.y" |
{ | { |
globalParserState->currentRule = "literal->literal_string"; |
CQL_globalParserState->currentRule = "literal->literal_string"; |
sprintf(msg,"BISON::literal->literal_string\n"); | sprintf(msg,"BISON::literal->literal_string\n"); |
printf_(msg); | printf_(msg); |
yyval._value = new CQLValue(*yyvsp[0]._string); | yyval._value = new CQLValue(*yyvsp[0]._string); |
|
|
case 15: | case 15: |
#line 425 "CQL.y" | #line 425 "CQL.y" |
{ | { |
globalParserState->currentRule = "literal->decimal_value"; |
CQL_globalParserState->currentRule = "literal->decimal_value"; |
sprintf(msg,"BISON::literal->decimal_value\n"); | sprintf(msg,"BISON::literal->decimal_value\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 16: | case 16: |
#line 432 "CQL.y" | #line 432 "CQL.y" |
{ | { |
globalParserState->currentRule = "literal->binary_value"; |
CQL_globalParserState->currentRule = "literal->binary_value"; |
sprintf(msg,"BISON::literal->binary_value\n"); | sprintf(msg,"BISON::literal->binary_value\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 17: | case 17: |
#line 439 "CQL.y" | #line 439 "CQL.y" |
{ | { |
globalParserState->currentRule = "literal->hex_value"; |
CQL_globalParserState->currentRule = "literal->hex_value"; |
sprintf(msg,"BISON::literal->hex_value\n"); | sprintf(msg,"BISON::literal->hex_value\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 18: | case 18: |
#line 446 "CQL.y" | #line 446 "CQL.y" |
{ | { |
globalParserState->currentRule = "literal->real_value"; |
CQL_globalParserState->currentRule = "literal->real_value"; |
sprintf(msg,"BISON::literal->real_value\n"); | sprintf(msg,"BISON::literal->real_value\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 19: | case 19: |
#line 453 "CQL.y" | #line 453 "CQL.y" |
{ | { |
globalParserState->currentRule = "literal->_TRUE"; |
CQL_globalParserState->currentRule = "literal->_TRUE"; |
sprintf(msg,"BISON::literal->_TRUE\n"); | sprintf(msg,"BISON::literal->_TRUE\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 20: | case 20: |
#line 464 "CQL.y" | #line 464 "CQL.y" |
{ | { |
globalParserState->currentRule = "literal->_FALSE"; |
CQL_globalParserState->currentRule = "literal->_FALSE"; |
sprintf(msg,"BISON::literal->_FALSE\n"); | sprintf(msg,"BISON::literal->_FALSE\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 21: | case 21: |
#line 478 "CQL.y" | #line 478 "CQL.y" |
{ | { |
globalParserState->currentRule = "array_index->expr"; |
CQL_globalParserState->currentRule = "array_index->expr"; |
sprintf(msg,"BISON::array_index->expr\n"); | sprintf(msg,"BISON::array_index->expr\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 22: | case 22: |
#line 493 "CQL.y" | #line 493 "CQL.y" |
{ | { |
globalParserState->currentRule = "array_index_list->array_index"; |
CQL_globalParserState->currentRule = "array_index_list->array_index"; |
sprintf(msg,"BISON::array_index_list->array_index\n"); | sprintf(msg,"BISON::array_index_list->array_index\n"); |
printf_(msg); | printf_(msg); |
yyval._string = yyvsp[0]._string; | yyval._string = yyvsp[0]._string; |
|
|
case 23: | case 23: |
#line 503 "CQL.y" | #line 503 "CQL.y" |
{ | { |
globalParserState->currentRule = "chain->literal"; |
CQL_globalParserState->currentRule = "chain->literal"; |
sprintf(msg,"BISON::chain->literal\n"); | sprintf(msg,"BISON::chain->literal\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 24: | case 24: |
#line 512 "CQL.y" | #line 512 "CQL.y" |
{ | { |
globalParserState->currentRule = "chain-> ( expr )"; |
CQL_globalParserState->currentRule = "chain-> ( expr )"; |
sprintf(msg,"BISON::chain-> ( expr )\n"); | sprintf(msg,"BISON::chain-> ( expr )\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 25: | case 25: |
#line 521 "CQL.y" | #line 521 "CQL.y" |
{ | { |
globalParserState->currentRule = "chain->identifier"; |
CQL_globalParserState->currentRule = "chain->identifier"; |
sprintf(msg,"BISON::chain->identifier\n"); | sprintf(msg,"BISON::chain->identifier\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 26: | case 26: |
#line 530 "CQL.y" | #line 530 "CQL.y" |
{ | { |
globalParserState->currentRule = "chain->identifier#literal_string"; |
CQL_globalParserState->currentRule = "chain->identifier#literal_string"; |
sprintf(msg,"BISON::chain->identifier#literal_string\n"); | sprintf(msg,"BISON::chain->identifier#literal_string\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 27: | case 27: |
#line 542 "CQL.y" | #line 542 "CQL.y" |
{ | { |
globalParserState->currentRule = "chain->scoped_property"; |
CQL_globalParserState->currentRule = "chain->scoped_property"; |
sprintf(msg,"BISON::chain-> scoped_property\n"); | sprintf(msg,"BISON::chain-> scoped_property\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 28: | case 28: |
#line 551 "CQL.y" | #line 551 "CQL.y" |
{ | { |
globalParserState->currentRule = "chain->identifier( arg_list )"; |
CQL_globalParserState->currentRule = "chain->identifier( arg_list )"; |
sprintf(msg,"BISON::chain-> identifier( arg_list )\n"); | sprintf(msg,"BISON::chain-> identifier( arg_list )\n"); |
printf_(msg); | printf_(msg); |
chain_state = CQLFUNCTION; | chain_state = CQLFUNCTION; |
|
|
case 29: | case 29: |
#line 561 "CQL.y" | #line 561 "CQL.y" |
{ | { |
globalParserState->currentRule = "chain->chain.scoped_property"; |
CQL_globalParserState->currentRule = "chain->chain.scoped_property"; |
sprintf(msg,"BISON::chain-> chain DOT scoped_property : chain_state = %d\n",chain_state); | sprintf(msg,"BISON::chain-> chain DOT scoped_property : chain_state = %d\n",chain_state); |
printf_(msg); | printf_(msg); |
| |
|
|
MessageLoaderParms(String("CQL.CQL_y.NOT_CHAINID_OR_IDENTIFIER"), | MessageLoaderParms(String("CQL.CQL_y.NOT_CHAINID_OR_IDENTIFIER"), |
String("Chain state not a CQLIdentifier or a CQLChainedIdentifier while parsing rule $0 in position $1."), | String("Chain state not a CQLIdentifier or a CQLChainedIdentifier while parsing rule $0 in position $1."), |
String("chain.scoped_property"), | String("chain.scoped_property"), |
globalParserState->currentTokenPos) |
CQL_globalParserState->currentTokenPos) |
); | ); |
} | } |
| |
|
|
case 30: | case 30: |
#line 593 "CQL.y" | #line 593 "CQL.y" |
{ | { |
globalParserState->currentRule = "chain->chain.identifier"; |
CQL_globalParserState->currentRule = "chain->chain.identifier"; |
sprintf(msg,"BISON::chain->chain.identifier : chain_state = %d\n",chain_state); | sprintf(msg,"BISON::chain->chain.identifier : chain_state = %d\n",chain_state); |
printf_(msg); | printf_(msg); |
| |
|
|
MessageLoaderParms(String("CQL.CQL_y.NOT_CHAINID_OR_IDENTIFIER"), | MessageLoaderParms(String("CQL.CQL_y.NOT_CHAINID_OR_IDENTIFIER"), |
String("Chain state not a CQLIdentifier or a CQLChainedIdentifier while parsing rule $0 in position $1."), | String("Chain state not a CQLIdentifier or a CQLChainedIdentifier while parsing rule $0 in position $1."), |
String("chain.identifier"), | String("chain.identifier"), |
globalParserState->currentTokenPos) |
CQL_globalParserState->currentTokenPos) |
); | ); |
} | } |
chain_state = CQLCHAINEDIDENTIFIER; | chain_state = CQLCHAINEDIDENTIFIER; |
|
|
case 31: | case 31: |
#line 623 "CQL.y" | #line 623 "CQL.y" |
{ | { |
globalParserState->currentRule = "chain->chain.identifier#literal_string"; |
CQL_globalParserState->currentRule = "chain->chain.identifier#literal_string"; |
sprintf(msg,"BISON::chain->chain.identifier#literal_string : chain_state = %d\n",chain_state); | sprintf(msg,"BISON::chain->chain.identifier#literal_string : chain_state = %d\n",chain_state); |
printf_(msg); | printf_(msg); |
| |
|
|
MessageLoaderParms(String("CQL.CQL_y.NOT_CHAINID_OR_IDENTIFIER"), | MessageLoaderParms(String("CQL.CQL_y.NOT_CHAINID_OR_IDENTIFIER"), |
String("Chain state not a CQLIdentifier or a CQLChainedIdentifier while parsing rule $0 in position $1."), | String("Chain state not a CQLIdentifier or a CQLChainedIdentifier while parsing rule $0 in position $1."), |
String("chain.identifier#literal_string"), | String("chain.identifier#literal_string"), |
globalParserState->currentTokenPos) |
CQL_globalParserState->currentTokenPos) |
); | ); |
} | } |
| |
|
|
case 32: | case 32: |
#line 661 "CQL.y" | #line 661 "CQL.y" |
{ | { |
globalParserState->currentRule = "chain->chain[ array_index_list ]"; |
CQL_globalParserState->currentRule = "chain->chain[ array_index_list ]"; |
sprintf(msg,"BISON::chain->chain[ array_index_list ] : chain_state = %d\n",chain_state); | sprintf(msg,"BISON::chain->chain[ array_index_list ] : chain_state = %d\n",chain_state); |
printf_(msg); | printf_(msg); |
| |
|
|
MessageLoaderParms(String("CQL.CQL_y.NOT_CHAINID_OR_IDENTIFIER_OR_VALUE"), | MessageLoaderParms(String("CQL.CQL_y.NOT_CHAINID_OR_IDENTIFIER_OR_VALUE"), |
String("Chain state not a CQLIdentifier or a CQLChainedIdentifier or a CQLValue while parsing rule $0 in position $1."), | String("Chain state not a CQLIdentifier or a CQLChainedIdentifier or a CQLValue while parsing rule $0 in position $1."), |
String("chain->chain[ array_index_list ]"), | String("chain->chain[ array_index_list ]"), |
globalParserState->currentTokenPos) |
CQL_globalParserState->currentTokenPos) |
); | ); |
} | } |
} | } |
|
|
case 33: | case 33: |
#line 704 "CQL.y" | #line 704 "CQL.y" |
{ | { |
globalParserState->currentRule = "concat->chain"; |
CQL_globalParserState->currentRule = "concat->chain"; |
sprintf(msg,"BISON::concat->chain\n"); | sprintf(msg,"BISON::concat->chain\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 34: | case 34: |
#line 712 "CQL.y" | #line 712 "CQL.y" |
{ | { |
globalParserState->currentRule = "concat->concat || chain"; |
CQL_globalParserState->currentRule = "concat->concat || chain"; |
sprintf(msg,"BISON::concat||chain\n"); | sprintf(msg,"BISON::concat||chain\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 35: | case 35: |
#line 729 "CQL.y" | #line 729 "CQL.y" |
{ | { |
globalParserState->currentRule = "factor->concat"; |
CQL_globalParserState->currentRule = "factor->concat"; |
sprintf(msg,"BISON::factor->concat\n"); | sprintf(msg,"BISON::factor->concat\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 36: | case 36: |
#line 756 "CQL.y" | #line 756 "CQL.y" |
{ | { |
globalParserState->currentRule = "term->factor"; |
CQL_globalParserState->currentRule = "term->factor"; |
sprintf(msg,"BISON::term->factor\n"); | sprintf(msg,"BISON::term->factor\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 37: | case 37: |
#line 782 "CQL.y" | #line 782 "CQL.y" |
{ | { |
globalParserState->currentRule = "arith->term"; |
CQL_globalParserState->currentRule = "arith->term"; |
sprintf(msg,"BISON::arith->term\n"); | sprintf(msg,"BISON::arith->term\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 38: | case 38: |
#line 810 "CQL.y" | #line 810 "CQL.y" |
{ | { |
globalParserState->currentRule = "value_symbol->#literal_string"; |
CQL_globalParserState->currentRule = "value_symbol->#literal_string"; |
sprintf(msg,"BISON::value_symbol->#literal_string\n"); | sprintf(msg,"BISON::value_symbol->#literal_string\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 39: | case 39: |
#line 826 "CQL.y" | #line 826 "CQL.y" |
{ | { |
globalParserState->currentRule = "arith_or_value_symbol->arith"; |
CQL_globalParserState->currentRule = "arith_or_value_symbol->arith"; |
sprintf(msg,"BISON::arith_or_value_symbol->arith\n"); | sprintf(msg,"BISON::arith_or_value_symbol->arith\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
#line 834 "CQL.y" | #line 834 "CQL.y" |
{ | { |
/* make into predicate */ | /* make into predicate */ |
globalParserState->currentRule = "arith_or_value_symbol->value_symbol"; |
CQL_globalParserState->currentRule = "arith_or_value_symbol->value_symbol"; |
sprintf(msg,"BISON::arith_or_value_symbol->value_symbol\n"); | sprintf(msg,"BISON::arith_or_value_symbol->value_symbol\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 41: | case 41: |
#line 846 "CQL.y" | #line 846 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp_op->_EQ"; |
CQL_globalParserState->currentRule = "comp_op->_EQ"; |
sprintf(msg,"BISON::comp_op->_EQ\n"); | sprintf(msg,"BISON::comp_op->_EQ\n"); |
printf_(msg); | printf_(msg); |
yyval._opType = EQ; | yyval._opType = EQ; |
|
|
case 42: | case 42: |
#line 853 "CQL.y" | #line 853 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp_op->_NE"; |
CQL_globalParserState->currentRule = "comp_op->_NE"; |
sprintf(msg,"BISON::comp_op->_NE\n"); | sprintf(msg,"BISON::comp_op->_NE\n"); |
printf_(msg); | printf_(msg); |
yyval._opType = NE; | yyval._opType = NE; |
|
|
case 43: | case 43: |
#line 860 "CQL.y" | #line 860 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp_op->_GT"; |
CQL_globalParserState->currentRule = "comp_op->_GT"; |
sprintf(msg,"BISON::comp_op->_GT\n"); | sprintf(msg,"BISON::comp_op->_GT\n"); |
printf_(msg); | printf_(msg); |
yyval._opType = GT; | yyval._opType = GT; |
|
|
case 44: | case 44: |
#line 867 "CQL.y" | #line 867 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp_op->_LT"; |
CQL_globalParserState->currentRule = "comp_op->_LT"; |
sprintf(msg,"BISON::comp_op->_LT\n"); | sprintf(msg,"BISON::comp_op->_LT\n"); |
printf_(msg); | printf_(msg); |
yyval._opType = LT; | yyval._opType = LT; |
|
|
case 45: | case 45: |
#line 874 "CQL.y" | #line 874 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp_op->_GE"; |
CQL_globalParserState->currentRule = "comp_op->_GE"; |
sprintf(msg,"BISON::comp_op->_GE\n"); | sprintf(msg,"BISON::comp_op->_GE\n"); |
printf_(msg); | printf_(msg); |
yyval._opType = GE; | yyval._opType = GE; |
|
|
case 46: | case 46: |
#line 881 "CQL.y" | #line 881 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp_op->_LE"; |
CQL_globalParserState->currentRule = "comp_op->_LE"; |
sprintf(msg,"BISON::comp_op->_LE\n"); | sprintf(msg,"BISON::comp_op->_LE\n"); |
printf_(msg); | printf_(msg); |
yyval._opType = LE; | yyval._opType = LE; |
|
|
case 47: | case 47: |
#line 890 "CQL.y" | #line 890 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp->arith"; |
CQL_globalParserState->currentRule = "comp->arith"; |
sprintf(msg,"BISON::comp->arith\n"); | sprintf(msg,"BISON::comp->arith\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 48: | case 48: |
#line 898 "CQL.y" | #line 898 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp->arith IS NOT _NULL"; |
CQL_globalParserState->currentRule = "comp->arith IS NOT _NULL"; |
sprintf(msg,"BISON::comp->arith IS NOT _NULL\n"); | sprintf(msg,"BISON::comp->arith IS NOT _NULL\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 49: | case 49: |
#line 909 "CQL.y" | #line 909 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp->arith IS _NULL"; |
CQL_globalParserState->currentRule = "comp->arith IS _NULL"; |
sprintf(msg,"BISON::comp->arith IS _NULL\n"); | sprintf(msg,"BISON::comp->arith IS _NULL\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 50: | case 50: |
#line 920 "CQL.y" | #line 920 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp->arith comp_op arith_or_value_symbol"; |
CQL_globalParserState->currentRule = "comp->arith comp_op arith_or_value_symbol"; |
sprintf(msg,"BISON::comp->arith comp_op arith_or_value_symbol\n"); | sprintf(msg,"BISON::comp->arith comp_op arith_or_value_symbol\n"); |
printf_(msg); | printf_(msg); |
if(yyvsp[-2]._predicate->isSimple() && yyvsp[0]._predicate->isSimple()){ | if(yyvsp[-2]._predicate->isSimple() && yyvsp[0]._predicate->isSimple()){ |
|
|
MessageLoaderParms(String("CQL.CQL_y.NOT_SIMPLE"), | MessageLoaderParms(String("CQL.CQL_y.NOT_SIMPLE"), |
String("The CQLSimplePredicate is not simple while parsing rule $0 in position $1."), | String("The CQLSimplePredicate is not simple while parsing rule $0 in position $1."), |
String("comp->arith comp_op arith_or_value_symbol"), | String("comp->arith comp_op arith_or_value_symbol"), |
globalParserState->currentTokenPos) |
CQL_globalParserState->currentTokenPos) |
); | ); |
} | } |
} | } |
|
|
case 51: | case 51: |
#line 945 "CQL.y" | #line 945 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp->value_symbol comp_op arith"; |
CQL_globalParserState->currentRule = "comp->value_symbol comp_op arith"; |
sprintf(msg,"BISON::comp->value_symbol comp_op arith\n"); | sprintf(msg,"BISON::comp->value_symbol comp_op arith\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
MessageLoaderParms(String("CQL.CQL_y.NOT_SIMPLE"), | MessageLoaderParms(String("CQL.CQL_y.NOT_SIMPLE"), |
String("The CQLSimplePredicate is not simple while parsing rule $0 in position $1."), | String("The CQLSimplePredicate is not simple while parsing rule $0 in position $1."), |
String("comp->value_symbol comp_op arith"), | String("comp->value_symbol comp_op arith"), |
globalParserState->currentTokenPos) |
CQL_globalParserState->currentTokenPos) |
); | ); |
| |
} | } |
|
|
case 52: | case 52: |
#line 972 "CQL.y" | #line 972 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp->value_symbol comp_op value_symbol"; |
CQL_globalParserState->currentRule = "comp->value_symbol comp_op value_symbol"; |
sprintf(msg,"BISON::comp->value_symbol comp_op value_symbol\n"); | sprintf(msg,"BISON::comp->value_symbol comp_op value_symbol\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 53: | case 53: |
#line 986 "CQL.y" | #line 986 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp->arith _ISA identifier"; |
CQL_globalParserState->currentRule = "comp->arith _ISA identifier"; |
/* make sure $1 isSimple(), get its expression, make simplepred->predicate */ | /* make sure $1 isSimple(), get its expression, make simplepred->predicate */ |
sprintf(msg,"BISON::comp->arith _ISA identifier\n"); | sprintf(msg,"BISON::comp->arith _ISA identifier\n"); |
printf_(msg); | printf_(msg); |
|
|
case 54: | case 54: |
#line 1000 "CQL.y" | #line 1000 "CQL.y" |
{ | { |
globalParserState->currentRule = "comp->arith _LIKE literal_string"; |
CQL_globalParserState->currentRule = "comp->arith _LIKE literal_string"; |
sprintf(msg,"BISON::comp->arith _LIKE literal_string\n"); | sprintf(msg,"BISON::comp->arith _LIKE literal_string\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 55: | case 55: |
#line 1014 "CQL.y" | #line 1014 "CQL.y" |
{ | { |
globalParserState->currentRule = "expr_factor->comp"; |
CQL_globalParserState->currentRule = "expr_factor->comp"; |
sprintf(msg,"BISON::expr_factor->comp\n"); | sprintf(msg,"BISON::expr_factor->comp\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 56: | case 56: |
#line 1022 "CQL.y" | #line 1022 "CQL.y" |
{ | { |
globalParserState->currentRule = "expr_factor->NOT comp"; |
CQL_globalParserState->currentRule = "expr_factor->NOT comp"; |
sprintf(msg,"BISON::expr_factor->NOT comp\n"); | sprintf(msg,"BISON::expr_factor->NOT comp\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 57: | case 57: |
#line 1033 "CQL.y" | #line 1033 "CQL.y" |
{ | { |
globalParserState->currentRule = "expr_term->expr_factor"; |
CQL_globalParserState->currentRule = "expr_term->expr_factor"; |
sprintf(msg,"BISON::expr_term->expr_factor\n"); | sprintf(msg,"BISON::expr_term->expr_factor\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 58: | case 58: |
#line 1041 "CQL.y" | #line 1041 "CQL.y" |
{ | { |
globalParserState->currentRule = "expr_term->expr_term AND expr_factor"; |
CQL_globalParserState->currentRule = "expr_term->expr_term AND expr_factor"; |
sprintf(msg,"BISON::expr_term->expr_term AND expr_factor\n"); | sprintf(msg,"BISON::expr_term->expr_term AND expr_factor\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 59: | case 59: |
#line 1056 "CQL.y" | #line 1056 "CQL.y" |
{ | { |
globalParserState->currentRule = "expr->expr_term"; |
CQL_globalParserState->currentRule = "expr->expr_term"; |
sprintf(msg,"BISON::expr->expr_term\n"); | sprintf(msg,"BISON::expr->expr_term\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 60: | case 60: |
#line 1064 "CQL.y" | #line 1064 "CQL.y" |
{ | { |
globalParserState->currentRule = "expr->expr OR expr_term"; |
CQL_globalParserState->currentRule = "expr->expr OR expr_term"; |
sprintf(msg,"BISON::expr->expr OR expr_term\n"); | sprintf(msg,"BISON::expr->expr OR expr_term\n"); |
printf_(msg); | printf_(msg); |
yyval._predicate = new CQLPredicate(); | yyval._predicate = new CQLPredicate(); |
|
|
case 62: | case 62: |
#line 1079 "CQL.y" | #line 1079 "CQL.y" |
{ | { |
globalParserState->currentRule = "arg_list->STAR"; |
CQL_globalParserState->currentRule = "arg_list->STAR"; |
sprintf(msg,"BISON::arg_list->STAR\n"); | sprintf(msg,"BISON::arg_list->STAR\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 63: | case 63: |
#line 1095 "CQL.y" | #line 1095 "CQL.y" |
{ | { |
globalParserState->currentRule = "arg_list->arg_list_sub->expr"; |
CQL_globalParserState->currentRule = "arg_list->arg_list_sub->expr"; |
sprintf(msg,"BISON::arg_list_sub->expr\n"); | sprintf(msg,"BISON::arg_list_sub->expr\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 64: | case 64: |
#line 1156 "CQL.y" | #line 1156 "CQL.y" |
{ | { |
globalParserState->currentRule = "from_specifier->class_path"; |
CQL_globalParserState->currentRule = "from_specifier->class_path"; |
sprintf(msg,"BISON::from_specifier->class_path\n"); | sprintf(msg,"BISON::from_specifier->class_path\n"); |
printf_(msg); | printf_(msg); |
| |
globalParserState->statement->appendClassPath(*yyvsp[0]._identifier); |
CQL_globalParserState->statement->appendClassPath(*yyvsp[0]._identifier); |
} | } |
break; | break; |
case 65: | case 65: |
#line 1165 "CQL.y" | #line 1165 "CQL.y" |
{ | { |
globalParserState->currentRule = "from_specifier->class_path AS identifier"; |
CQL_globalParserState->currentRule = "from_specifier->class_path AS identifier"; |
sprintf(msg,"BISON::from_specifier->class_path AS identifier\n"); | sprintf(msg,"BISON::from_specifier->class_path AS identifier\n"); |
printf_(msg); | printf_(msg); |
| |
CQLIdentifier _class(*yyvsp[-2]._identifier); | CQLIdentifier _class(*yyvsp[-2]._identifier); |
String _alias(yyvsp[0]._identifier->getName().getString()); | String _alias(yyvsp[0]._identifier->getName().getString()); |
globalParserState->statement->insertClassPathAlias(_class,_alias); |
CQL_globalParserState->statement->insertClassPathAlias(_class,_alias); |
globalParserState->statement->appendClassPath(_class); |
CQL_globalParserState->statement->appendClassPath(_class); |
} | } |
break; | break; |
case 66: | case 66: |
#line 1176 "CQL.y" | #line 1176 "CQL.y" |
{ | { |
globalParserState->currentRule = "from_specifier->class_path identifier"; |
CQL_globalParserState->currentRule = "from_specifier->class_path identifier"; |
sprintf(msg,"BISON::from_specifier->class_path identifier\n"); | sprintf(msg,"BISON::from_specifier->class_path identifier\n"); |
printf_(msg); | printf_(msg); |
| |
CQLIdentifier _class(*yyvsp[-1]._identifier); | CQLIdentifier _class(*yyvsp[-1]._identifier); |
String _alias(yyvsp[0]._identifier->getName().getString()); | String _alias(yyvsp[0]._identifier->getName().getString()); |
globalParserState->statement->insertClassPathAlias(_class,_alias); |
CQL_globalParserState->statement->insertClassPathAlias(_class,_alias); |
globalParserState->statement->appendClassPath(_class); |
CQL_globalParserState->statement->appendClassPath(_class); |
} | } |
break; | break; |
case 67: | case 67: |
#line 1189 "CQL.y" | #line 1189 "CQL.y" |
{ | { |
globalParserState->currentRule = "from_criteria->from_specifier"; |
CQL_globalParserState->currentRule = "from_criteria->from_specifier"; |
sprintf(msg,"BISON::from_criteria->from_specifier\n"); | sprintf(msg,"BISON::from_criteria->from_specifier\n"); |
printf_(msg); | printf_(msg); |
} | } |
|
|
case 68: | case 68: |
#line 1197 "CQL.y" | #line 1197 "CQL.y" |
{ | { |
globalParserState->currentRule = "star_expr->STAR"; |
CQL_globalParserState->currentRule = "star_expr->STAR"; |
sprintf(msg,"BISON::star_expr->STAR\n"); | sprintf(msg,"BISON::star_expr->STAR\n"); |
printf_(msg); | printf_(msg); |
| |
|
|
case 69: | case 69: |
#line 1206 "CQL.y" | #line 1206 "CQL.y" |
{ | { |
globalParserState->currentRule = "star_expr->chain.*"; |
CQL_globalParserState->currentRule = "star_expr->chain.*"; |
sprintf(msg,"BISON::star_expr->chain.*\n"); | sprintf(msg,"BISON::star_expr->chain.*\n"); |
printf_(msg); | printf_(msg); |
CQLChainedIdentifier* _tmp = (CQLChainedIdentifier*)(_factory.getObject(yyvsp[-2]._node,Predicate,ChainedIdentifier)); | CQLChainedIdentifier* _tmp = (CQLChainedIdentifier*)(_factory.getObject(yyvsp[-2]._node,Predicate,ChainedIdentifier)); |
|
|
case 70: | case 70: |
#line 1222 "CQL.y" | #line 1222 "CQL.y" |
{ | { |
globalParserState->currentRule = "selected_entry->expr"; |
CQL_globalParserState->currentRule = "selected_entry->expr"; |
sprintf(msg,"BISON::selected_entry->expr\n"); | sprintf(msg,"BISON::selected_entry->expr\n"); |
printf_(msg); | printf_(msg); |
if(yyvsp[0]._predicate->isSimpleValue()){ | if(yyvsp[0]._predicate->isSimpleValue()){ |
CQLChainedIdentifier *_cid = (CQLChainedIdentifier*)(_factory.getObject(yyvsp[0]._predicate,Predicate,ChainedIdentifier)); | CQLChainedIdentifier *_cid = (CQLChainedIdentifier*)(_factory.getObject(yyvsp[0]._predicate,Predicate,ChainedIdentifier)); |
globalParserState->statement->appendSelectIdentifier(*_cid); |
CQL_globalParserState->statement->appendSelectIdentifier(*_cid); |
}else{ | }else{ |
/* error */ | /* error */ |
String _msg("selected_entry->expr : $1 is not a simple value"); | String _msg("selected_entry->expr : $1 is not a simple value"); |
|
|
MessageLoaderParms(String("CQL.CQL_y.NOT_SIMPLE_VALUE"), | MessageLoaderParms(String("CQL.CQL_y.NOT_SIMPLE_VALUE"), |
String("The CQLPredicate is not a simple value while parsing rule $0 in position $1."), | String("The CQLPredicate is not a simple value while parsing rule $0 in position $1."), |
String("selected_entry->expr"), | String("selected_entry->expr"), |
globalParserState->currentTokenPos) |
CQL_globalParserState->currentTokenPos) |
); | ); |
} | } |
} | } |
|
|
case 71: | case 71: |
#line 1242 "CQL.y" | #line 1242 "CQL.y" |
{ | { |
globalParserState->currentRule = "selected_entry->star_expr"; |
CQL_globalParserState->currentRule = "selected_entry->star_expr"; |
sprintf(msg,"BISON::selected_entry->star_expr\n"); | sprintf(msg,"BISON::selected_entry->star_expr\n"); |
printf_(msg); | printf_(msg); |
globalParserState->statement->appendSelectIdentifier(*yyvsp[0]._chainedIdentifier); |
CQL_globalParserState->statement->appendSelectIdentifier(*yyvsp[0]._chainedIdentifier); |
} | } |
break; | break; |
case 72: | case 72: |
#line 1251 "CQL.y" | #line 1251 "CQL.y" |
{ | { |
globalParserState->currentRule = "select_list->selected_entry select_list_tail"; |
CQL_globalParserState->currentRule = "select_list->selected_entry select_list_tail"; |
sprintf(msg,"BISON::select_list->selected_entry select_list_tail\n"); | sprintf(msg,"BISON::select_list->selected_entry select_list_tail\n"); |
printf_(msg); | printf_(msg); |
} | } |
|
|
case 74: | case 74: |
#line 1260 "CQL.y" | #line 1260 "CQL.y" |
{ | { |
globalParserState->currentRule = "select_list_tail->COMMA selected_entry select_list_tail"; |
CQL_globalParserState->currentRule = "select_list_tail->COMMA selected_entry select_list_tail"; |
sprintf(msg,"BISON::select_list_tail->COMMA selected_entry select_list_tail\n"); | sprintf(msg,"BISON::select_list_tail->COMMA selected_entry select_list_tail\n"); |
printf_(msg); | printf_(msg); |
} | } |
|
|
case 75: | case 75: |
#line 1268 "CQL.y" | #line 1268 "CQL.y" |
{ | { |
globalParserState->currentRule = "search_condition->expr"; |
CQL_globalParserState->currentRule = "search_condition->expr"; |
sprintf(msg,"BISON::search_condition->expr\n"); | sprintf(msg,"BISON::search_condition->expr\n"); |
printf_(msg); | printf_(msg); |
globalParserState->statement->setPredicate(*yyvsp[0]._predicate); |
CQL_globalParserState->statement->setPredicate(*yyvsp[0]._predicate); |
} | } |
break; | break; |
case 76: | case 76: |
|
|
case 77: | case 77: |
#line 1278 "CQL.y" | #line 1278 "CQL.y" |
{ | { |
globalParserState->currentRule = "optional_where->WHERE search_condition"; |
CQL_globalParserState->currentRule = "optional_where->WHERE search_condition"; |
sprintf(msg,"BISON::optional_where->WHERE search_condition\n"); | sprintf(msg,"BISON::optional_where->WHERE search_condition\n"); |
printf_(msg); | printf_(msg); |
globalParserState->statement->setHasWhereClause(); |
CQL_globalParserState->statement->setHasWhereClause(); |
} | } |
break; | break; |
case 78: | case 78: |
#line 1287 "CQL.y" | #line 1287 "CQL.y" |
{ | { |
globalParserState->currentRule = "select_statement"; |
CQL_globalParserState->currentRule = "select_statement"; |
sprintf(msg,"select_statement\n\n"); | sprintf(msg,"select_statement\n\n"); |
printf_(msg); | printf_(msg); |
cleanup(); | cleanup(); |