(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.2 and 1.3

version 1.2, 2004/11/21 12:13:07 version 1.3, 2004/11/23 14:02:40
Line 454 
Line 454 
 short *yysslim; short *yysslim;
 YYSTYPE *yyvs; YYSTYPE *yyvs;
 int yystacksize; int yystacksize;
 #line 1170 "CQL.y"  #line 1168 "CQL.y"
  
 /*int yyerror(char * err){yyclearin; yyerrok;throw Exception(String(err));return 1;}*/ /*int yyerror(char * err){yyclearin; yyerrok;throw Exception(String(err));return 1;}*/
 #line 461 "y.tab.c" #line 461 "y.tab.c"
Line 1038 
Line 1038 
             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);
  
             CQLChainedIdentifier *_cid;  
             CQLIdentifier *_id;  
             if(chain_state == CQLIDENTIFIER){             if(chain_state == CQLIDENTIFIER){
                 CQLIdentifier *_id = ((CQLIdentifier*)(_factory.getObject(yyvsp[-4]._node,Predicate,Identifier)));                 CQLIdentifier *_id = ((CQLIdentifier*)(_factory.getObject(yyvsp[-4]._node,Predicate,Identifier)));
                 CQLChainedIdentifier _cid(*_id);                 CQLChainedIdentifier _cid(*_id);
Line 1075 
Line 1073 
         }         }
 break; break;
 case 32: case 32:
 #line 562 "CQL.y"  #line 560 "CQL.y"
 { {
             globalParserState->currentRule = "chain->chain[ array_index_list ]";             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);
Line 1119 
Line 1117 
         }         }
 break; break;
 case 33: case 33:
 #line 606 "CQL.y"  #line 604 "CQL.y"
 { {
              globalParserState->currentRule = "concat->chain";              globalParserState->currentRule = "concat->chain";
              sprintf(msg,"BISON::concat->chain\n");              sprintf(msg,"BISON::concat->chain\n");
Line 1129 
Line 1127 
          }          }
 break; break;
 case 34: case 34:
 #line 614 "CQL.y"  #line 612 "CQL.y"
 { {
              globalParserState->currentRule = "concat->concat || chain";              globalParserState->currentRule = "concat->concat || chain";
              sprintf(msg,"BISON::concat||chain\n");              sprintf(msg,"BISON::concat||chain\n");
Line 1148 
Line 1146 
          }          }
 break; break;
 case 35: case 35:
 #line 633 "CQL.y"  #line 631 "CQL.y"
 { {
              globalParserState->currentRule = "factor->concat";              globalParserState->currentRule = "factor->concat";
              sprintf(msg,"BISON::factor->concat\n");              sprintf(msg,"BISON::factor->concat\n");
Line 1158 
Line 1156 
          }          }
 break; break;
 case 36: case 36:
 #line 660 "CQL.y"  #line 658 "CQL.y"
 { {
            globalParserState->currentRule = "term->factor";            globalParserState->currentRule = "term->factor";
            sprintf(msg,"BISON::term->factor\n");            sprintf(msg,"BISON::term->factor\n");
Line 1168 
Line 1166 
        }        }
 break; break;
 case 37: case 37:
 #line 686 "CQL.y"  #line 684 "CQL.y"
 { {
             globalParserState->currentRule = "arith->term";             globalParserState->currentRule = "arith->term";
             sprintf(msg,"BISON::arith->term\n");             sprintf(msg,"BISON::arith->term\n");
Line 1180 
Line 1178 
         }         }
 break; break;
 case 38: case 38:
 #line 714 "CQL.y"  #line 712 "CQL.y"
 { {
                    globalParserState->currentRule = "value_symbol->#literal_string";                    globalParserState->currentRule = "value_symbol->#literal_string";
                    sprintf(msg,"BISON::value_symbol->#literal_string\n");                    sprintf(msg,"BISON::value_symbol->#literal_string\n");
Line 1194 
Line 1192 
                }                }
 break; break;
 case 39: case 39:
 #line 728 "CQL.y"  #line 726 "CQL.y"
 { {
                             globalParserState->currentRule = "arith_or_value_symbol->arith";                             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");
Line 1204 
Line 1202 
                         }                         }
 break; break;
 case 40: case 40:
 #line 736 "CQL.y"  #line 734 "CQL.y"
 { {
                             /* make into predicate */                             /* make into predicate */
                             globalParserState->currentRule = "arith_or_value_symbol->value_symbol";                             globalParserState->currentRule = "arith_or_value_symbol->value_symbol";
Line 1217 
Line 1215 
                         }                         }
 break; break;
 case 41: case 41:
 #line 749 "CQL.y"  #line 747 "CQL.y"
 { {
               globalParserState->currentRule = "comp_op->_EQ";               globalParserState->currentRule = "comp_op->_EQ";
               sprintf(msg,"BISON::comp_op->_EQ\n");               sprintf(msg,"BISON::comp_op->_EQ\n");
Line 1226 
Line 1224 
           }           }
 break; break;
 case 42: case 42:
 #line 756 "CQL.y"  #line 754 "CQL.y"
 { {
               globalParserState->currentRule = "comp_op->_NE";               globalParserState->currentRule = "comp_op->_NE";
               sprintf(msg,"BISON::comp_op->_NE\n");               sprintf(msg,"BISON::comp_op->_NE\n");
Line 1235 
Line 1233 
           }           }
 break; break;
 case 43: case 43:
 #line 763 "CQL.y"  #line 761 "CQL.y"
 { {
               globalParserState->currentRule = "comp_op->_GT";               globalParserState->currentRule = "comp_op->_GT";
               sprintf(msg,"BISON::comp_op->_GT\n");               sprintf(msg,"BISON::comp_op->_GT\n");
Line 1244 
Line 1242 
           }           }
 break; break;
 case 44: case 44:
 #line 770 "CQL.y"  #line 768 "CQL.y"
 { {
               globalParserState->currentRule = "comp_op->_LT";               globalParserState->currentRule = "comp_op->_LT";
               sprintf(msg,"BISON::comp_op->_LT\n");               sprintf(msg,"BISON::comp_op->_LT\n");
Line 1253 
Line 1251 
           }           }
 break; break;
 case 45: case 45:
 #line 777 "CQL.y"  #line 775 "CQL.y"
 { {
               globalParserState->currentRule = "comp_op->_GE";               globalParserState->currentRule = "comp_op->_GE";
               sprintf(msg,"BISON::comp_op->_GE\n");               sprintf(msg,"BISON::comp_op->_GE\n");
Line 1262 
Line 1260 
           }           }
 break; break;
 case 46: case 46:
 #line 784 "CQL.y"  #line 782 "CQL.y"
 { {
               globalParserState->currentRule = "comp_op->_LE";               globalParserState->currentRule = "comp_op->_LE";
               sprintf(msg,"BISON::comp_op->_LE\n");               sprintf(msg,"BISON::comp_op->_LE\n");
Line 1271 
Line 1269 
           }           }
 break; break;
 case 47: case 47:
 #line 793 "CQL.y"  #line 791 "CQL.y"
 { {
            globalParserState->currentRule = "comp->arith";            globalParserState->currentRule = "comp->arith";
            sprintf(msg,"BISON::comp->arith\n");            sprintf(msg,"BISON::comp->arith\n");
Line 1281 
Line 1279 
        }        }
 break; break;
 case 48: case 48:
 #line 801 "CQL.y"  #line 799 "CQL.y"
 { {
            globalParserState->currentRule = "comp->arith IS NOT _NULL";            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");
Line 1294 
Line 1292 
        }        }
 break; break;
 case 49: case 49:
 #line 812 "CQL.y"  #line 810 "CQL.y"
 { {
            globalParserState->currentRule = "comp->arith IS _NULL";            globalParserState->currentRule = "comp->arith IS _NULL";
            sprintf(msg,"BISON::comp->arith IS _NULL\n");            sprintf(msg,"BISON::comp->arith IS _NULL\n");
Line 1307 
Line 1305 
        }        }
 break; break;
 case 50: case 50:
 #line 823 "CQL.y"  #line 821 "CQL.y"
 { {
            globalParserState->currentRule = "comp->arith comp_op arith_or_value_symbol";            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");
Line 1330 
Line 1328 
        }        }
 break; break;
 case 51: case 51:
 #line 844 "CQL.y"  #line 842 "CQL.y"
 { {
            globalParserState->currentRule = "comp->value_symbol comp_op arith";            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");
Line 1355 
Line 1353 
        }        }
 break; break;
 case 52: case 52:
 #line 867 "CQL.y"  #line 865 "CQL.y"
 { {
                 globalParserState->currentRule = "comp->value_symbol comp_op value_symbol";                 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");
Line 1368 
Line 1366 
        }        }
 break; break;
 case 53: case 53:
 #line 878 "CQL.y"  #line 876 "CQL.y"
 { {
            globalParserState->currentRule = "comp->arith _ISA identifier";            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 */
Line 1385 
Line 1383 
        }        }
 break; break;
 case 54: case 54:
 #line 893 "CQL.y"  #line 891 "CQL.y"
 { {
            globalParserState->currentRule = "comp->arith _LIKE literal_string";            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");
Line 1401 
Line 1399 
        }        }
 break; break;
 case 55: case 55:
 #line 908 "CQL.y"  #line 906 "CQL.y"
 { {
                   globalParserState->currentRule = "expr_factor->comp";                   globalParserState->currentRule = "expr_factor->comp";
                   sprintf(msg,"BISON::expr_factor->comp\n");                   sprintf(msg,"BISON::expr_factor->comp\n");
Line 1411 
Line 1409 
               }               }
 break; break;
 case 56: case 56:
 #line 916 "CQL.y"  #line 914 "CQL.y"
 { {
                   globalParserState->currentRule = "expr_factor->NOT comp";                   globalParserState->currentRule = "expr_factor->NOT comp";
                   sprintf(msg,"BISON::expr_factor->NOT comp\n");                   sprintf(msg,"BISON::expr_factor->NOT comp\n");
Line 1422 
Line 1420 
               }               }
 break; break;
 case 57: case 57:
 #line 927 "CQL.y"  #line 925 "CQL.y"
 { {
                 globalParserState->currentRule = "expr_term->expr_factor";                 globalParserState->currentRule = "expr_term->expr_factor";
                 sprintf(msg,"BISON::expr_term->expr_factor\n");                 sprintf(msg,"BISON::expr_term->expr_factor\n");
Line 1432 
Line 1430 
             }             }
 break; break;
 case 58: case 58:
 #line 935 "CQL.y"  #line 933 "CQL.y"
 { {
                 globalParserState->currentRule = "expr_term->expr_term AND expr_factor";                 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");
Line 1444 
Line 1442 
             }             }
 break; break;
 case 59: case 59:
 #line 947 "CQL.y"  #line 945 "CQL.y"
 { {
           globalParserState->currentRule = "expr->expr_term";           globalParserState->currentRule = "expr->expr_term";
           sprintf(msg,"BISON::expr->expr_term\n");           sprintf(msg,"BISON::expr->expr_term\n");
Line 1454 
Line 1452 
        }        }
 break; break;
 case 60: case 60:
 #line 955 "CQL.y"  #line 953 "CQL.y"
 { {
            globalParserState->currentRule = "expr->expr OR expr_term";            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");
Line 1465 
Line 1463 
        }        }
 break; break;
 case 61: case 61:
 #line 965 "CQL.y"  #line 963 "CQL.y"
 {;} {;}
 break; break;
 case 62: case 62:
 #line 967 "CQL.y"  #line 965 "CQL.y"
 { {
                globalParserState->currentRule = "arg_list->STAR";                globalParserState->currentRule = "arg_list->STAR";
                sprintf(msg,"BISON::arg_list->STAR\n");                sprintf(msg,"BISON::arg_list->STAR\n");
Line 1481 
Line 1479 
            }            }
 break; break;
 case 63: case 63:
 #line 977 "CQL.y"  #line 975 "CQL.y"
 { {
                    globalParserState->currentRule = "arg_list->arg_list_sub->expr";                    globalParserState->currentRule = "arg_list->arg_list_sub->expr";
                    sprintf(msg,"BISON::arg_list_sub->expr\n");                    sprintf(msg,"BISON::arg_list_sub->expr\n");
Line 1491 
Line 1489 
            }            }
 break; break;
 case 64: case 64:
 #line 1032 "CQL.y"  #line 1030 "CQL.y"
 { {
                      globalParserState->currentRule = "from_specifier->class_path";                      globalParserState->currentRule = "from_specifier->class_path";
                      sprintf(msg,"BISON::from_specifier->class_path\n");                      sprintf(msg,"BISON::from_specifier->class_path\n");
Line 1502 
Line 1500 
                  }                  }
 break; break;
 case 65: case 65:
 #line 1042 "CQL.y"  #line 1040 "CQL.y"
 { {
                         globalParserState->currentRule = "from_specifier->class_path AS identifier";                         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");
Line 1516 
Line 1514 
                   }                   }
 break; break;
 case 66: case 66:
 #line 1054 "CQL.y"  #line 1052 "CQL.y"
 { {
                         globalParserState->currentRule = "from_specifier->class_path identifier";                         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");
Line 1530 
Line 1528 
                   }                   }
 break; break;
 case 67: case 67:
 #line 1068 "CQL.y"  #line 1066 "CQL.y"
 { {
                     globalParserState->currentRule = "from_criteria->from_specifier";                     globalParserState->currentRule = "from_criteria->from_specifier";
                     sprintf(msg,"BISON::from_criteria->from_specifier\n");                     sprintf(msg,"BISON::from_criteria->from_specifier\n");
Line 1538 
Line 1536 
                 }                 }
 break; break;
 case 68: case 68:
 #line 1076 "CQL.y"  #line 1074 "CQL.y"
 { {
                 globalParserState->currentRule = "star_expr->STAR";                 globalParserState->currentRule = "star_expr->STAR";
                 sprintf(msg,"BISON::star_expr->STAR\n");                 sprintf(msg,"BISON::star_expr->STAR\n");
Line 1549 
Line 1547 
             }             }
 break; break;
 case 69: case 69:
 #line 1085 "CQL.y"  #line 1083 "CQL.y"
 { {
                 globalParserState->currentRule = "star_expr->chain.*";                 globalParserState->currentRule = "star_expr->chain.*";
                 sprintf(msg,"BISON::star_expr->chain.*\n");                 sprintf(msg,"BISON::star_expr->chain.*\n");
Line 1562 
Line 1560 
             }             }
 break; break;
 case 70: case 70:
 #line 1098 "CQL.y"  #line 1096 "CQL.y"
 { {
                      globalParserState->currentRule = "selected_entry->expr";                      globalParserState->currentRule = "selected_entry->expr";
                      sprintf(msg,"BISON::selected_entry->expr\n");                      sprintf(msg,"BISON::selected_entry->expr\n");
Line 1583 
Line 1581 
                  }                  }
 break; break;
 case 71: case 71:
 #line 1117 "CQL.y"  #line 1115 "CQL.y"
 { {
                      globalParserState->currentRule = "selected_entry->star_expr";                      globalParserState->currentRule = "selected_entry->star_expr";
                      sprintf(msg,"BISON::selected_entry->star_expr\n");                      sprintf(msg,"BISON::selected_entry->star_expr\n");
Line 1592 
Line 1590 
                  }                  }
 break; break;
 case 72: case 72:
 #line 1126 "CQL.y"  #line 1124 "CQL.y"
 { {
                 globalParserState->currentRule = "select_list->selected_entry select_list_tail";                 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");
Line 1600 
Line 1598 
             }             }
 break; break;
 case 73: case 73:
 #line 1133 "CQL.y"  #line 1131 "CQL.y"
 {;} {;}
 break; break;
 case 74: case 74:
 #line 1135 "CQL.y"  #line 1133 "CQL.y"
 { {
                        globalParserState->currentRule = "select_list_tail->COMMA selected_entry select_list_tail";                        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");
Line 1612 
Line 1610 
                    }                    }
 break; break;
 case 75: case 75:
 #line 1143 "CQL.y"  #line 1141 "CQL.y"
 { {
                         globalParserState->currentRule = "search_condition->expr";                         globalParserState->currentRule = "search_condition->expr";
                         sprintf(msg,"BISON::search_condition->expr\n");                         sprintf(msg,"BISON::search_condition->expr\n");
Line 1621 
Line 1619 
                    }                    }
 break; break;
 case 76: case 76:
 #line 1151 "CQL.y"  #line 1149 "CQL.y"
 {;} {;}
 break; break;
 case 77: case 77:
 #line 1153 "CQL.y"  #line 1151 "CQL.y"
 { {
                      globalParserState->currentRule = "optional_where->WHERE search_condition";                      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");
Line 1634 
Line 1632 
                  }                  }
 break; break;
 case 78: case 78:
 #line 1162 "CQL.y"  #line 1160 "CQL.y"
 { {
                        globalParserState->currentRule = "select_statement";                        globalParserState->currentRule = "select_statement";
                        sprintf(msg,"select_statement\n\n");                        sprintf(msg,"select_statement\n\n");
                        printf_(msg);                        printf_(msg);
                    }                    }
 break; break;
 #line 1645 "y.tab.c"  #line 1643 "y.tab.c"
     }     }
     yyssp -= yym;     yyssp -= yym;
     yystate = *yyssp;     yystate = *yyssp;


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2