(file) Return to CQLYACC.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / CQL

Diff for /pegasus/src/Pegasus/CQL/CQLYACC.cpp between version 1.8 and 1.9

version 1.8, 2005/01/10 16:55:25 version 1.9, 2005/01/13 22:08:28
Line 75 
Line 75 
  
 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 };
Line 708 
Line 708 
 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);
  
Line 721 
Line 721 
 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;
Line 730 
Line 730 
 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;
Line 746 
Line 746 
                                                 - "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);
  
Line 763 
Line 763 
                 /*                 /*
                    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);
  
Line 780 
Line 780 
                                         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)
                                                  );                                                  );
                 }                 }
              }              }
Line 788 
Line 788 
 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);
  
Line 801 
Line 801 
 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);
  
Line 814 
Line 814 
 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);
  
Line 827 
Line 827 
 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);
  
Line 840 
Line 840 
 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);
  
Line 853 
Line 853 
 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);
  
Line 866 
Line 866 
 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);
Line 878 
Line 878 
 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);
Line 890 
Line 890 
 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);
Line 902 
Line 902 
 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);
  
Line 911 
Line 911 
 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);
  
Line 920 
Line 920 
 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);
  
Line 929 
Line 929 
 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);
  
Line 938 
Line 938 
 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);
  
Line 951 
Line 951 
 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);
  
Line 964 
Line 964 
 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);
  
Line 978 
Line 978 
 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;
Line 987 
Line 987 
 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);
  
Line 998 
Line 998 
 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);
  
Line 1009 
Line 1009 
 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);
  
Line 1020 
Line 1020 
 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);
  
Line 1034 
Line 1034 
 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);
  
Line 1045 
Line 1045 
 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;
Line 1057 
Line 1057 
 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);
  
Line 1081 
Line 1081 
                                         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)
                                                  );                                                  );
             }             }
  
Line 1091 
Line 1091 
 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);
  
Line 1113 
Line 1113 
                                         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;
Line 1123 
Line 1123 
 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);
  
Line 1152 
Line 1152 
                                         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)
                                                  );                                                  );
             }             }
  
Line 1163 
Line 1163 
 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);
  
Line 1198 
Line 1198 
                                         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)
                                                  );                                                  );
             }             }
         }         }
Line 1206 
Line 1206 
 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);
  
Line 1216 
Line 1216 
 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);
  
Line 1233 
Line 1233 
 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);
  
Line 1243 
Line 1243 
 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);
  
Line 1253 
Line 1253 
 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);
  
Line 1265 
Line 1265 
 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);
  
Line 1281 
Line 1281 
 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 1292 
Line 1292 
 #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);
  
Line 1303 
Line 1303 
 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;
Line 1312 
Line 1312 
 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;
Line 1321 
Line 1321 
 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;
Line 1330 
Line 1330 
 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;
Line 1339 
Line 1339 
 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;
Line 1348 
Line 1348 
 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;
Line 1357 
Line 1357 
 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);
  
Line 1367 
Line 1367 
 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);
  
Line 1380 
Line 1380 
 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);
  
Line 1393 
Line 1393 
 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()){
Line 1412 
Line 1412 
                                         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)
                                                  );                                                  );
            }            }
        }        }
Line 1420 
Line 1420 
 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);
  
Line 1440 
Line 1440 
                                         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)
                                                  );                                                  );
  
            }            }
Line 1449 
Line 1449 
 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);
  
Line 1465 
Line 1465 
 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);
Line 1481 
Line 1481 
 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);
  
Line 1496 
Line 1496 
 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);
  
Line 1506 
Line 1506 
 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);
  
Line 1517 
Line 1517 
 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);
  
Line 1527 
Line 1527 
 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);
  
Line 1542 
Line 1542 
 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);
  
Line 1552 
Line 1552 
 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();
Line 1570 
Line 1570 
 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);
  
Line 1588 
Line 1588 
 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);
  
Line 1604 
Line 1604 
 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);
                 }                 }
Line 1648 
Line 1648 
 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);
  
Line 1659 
Line 1659 
 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));
Line 1675 
Line 1675 
 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");
Line 1689 
Line 1689 
                                         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)
                                                  );                                                  );
                      }                      }
                  }                  }
Line 1697 
Line 1697 
 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);
             }             }
Line 1718 
Line 1718 
 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);
                    }                    }
Line 1726 
Line 1726 
 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:
Line 1739 
Line 1739 
 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();


Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2