version 1.1.2.8, 2001/12/03 00:08:00
|
version 1.6.2.1, 2005/04/04 15:57:22
|
|
|
#endif | #endif |
| |
extern int WQL_lex(); | extern int WQL_lex(); |
extern int WQL_error(char*); |
extern int WQL_error(const char*); |
| |
// | // |
// Define the global parser state object: | // Define the global parser state object: |
|
|
130, 136, 142, 146, 152, 156, 162, 166, 172, 179, | 130, 136, 142, 146, 152, 156, 162, 166, 172, 179, |
185, 190, 195, 201, 205, 209, 214, 223, 227, 233, | 185, 190, 195, 201, 205, 209, 214, 223, 227, 233, |
238, 243, 248, 253, 258, 265, 270, 277, 281, 287, | 238, 243, 248, 253, 258, 265, 270, 277, 281, 287, |
293, 300, 305, 310, 315, 320 |
293, 300, 306, 311, 316, 321 |
}; | }; |
#endif | #endif |
| |
|
|
case 3: | case 3: |
#line 143 "wql.y" | #line 143 "wql.y" |
{ | { |
globalParserState->statement->appendPropertyName("*"); |
globalParserState->statement->setAllProperties(true); |
; | ; |
break;} | break;} |
case 4: | case 4: |
|
|
case 5: | case 5: |
#line 153 "wql.y" | #line 153 "wql.y" |
{ | { |
globalParserState->statement->appendPropertyName(yyvsp[0].strValue); |
globalParserState->statement->appendSelectPropertyName(CIMName(yyvsp[0].strValue)); |
; | ; |
break;} | break;} |
case 6: | case 6: |
#line 157 "wql.y" | #line 157 "wql.y" |
{ | { |
globalParserState->statement->appendPropertyName(yyvsp[0].strValue); |
globalParserState->statement->appendSelectPropertyName(CIMName(yyvsp[0].strValue)); |
; | ; |
break;} | break;} |
case 7: | case 7: |
|
|
#line 173 "wql.y" | #line 173 "wql.y" |
{ | { |
WQL_TRACE(("YACC: fromClause: TOK_FROM className(%s)\n", yyvsp[0].strValue)); | WQL_TRACE(("YACC: fromClause: TOK_FROM className(%s)\n", yyvsp[0].strValue)); |
globalParserState->statement->setClassName(yyvsp[0].strValue); |
globalParserState->statement->setClassName(CIMName(yyvsp[0].strValue)); |
; | ; |
break;} | break;} |
case 10: | case 10: |
|
|
#line 301 "wql.y" | #line 301 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].strValue, WQLOperand::PROPERTY_NAME_TAG)); |
WQLOperand(yyvsp[0].strValue, WQL_PROPERTY_NAME_TAG)); |
|
globalParserState->statement->appendWherePropertyName(CIMName(yyvsp[0].strValue)); |
; | ; |
break;} | break;} |
case 33: | case 33: |
#line 306 "wql.y" |
#line 307 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].intValue, WQLOperand::INTEGER_VALUE_TAG)); |
WQLOperand(yyvsp[0].intValue, WQL_INTEGER_VALUE_TAG)); |
; | ; |
break;} | break;} |
case 34: | case 34: |
#line 311 "wql.y" |
#line 312 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].doubleValue, WQLOperand::DOUBLE_VALUE_TAG)); |
WQLOperand(yyvsp[0].doubleValue, WQL_DOUBLE_VALUE_TAG)); |
; | ; |
break;} | break;} |
case 35: | case 35: |
#line 316 "wql.y" |
#line 317 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].strValue, WQLOperand::STRING_VALUE_TAG)); |
WQLOperand(yyvsp[0].strValue, WQL_STRING_VALUE_TAG)); |
; | ; |
break;} | break;} |
case 36: | case 36: |
#line 321 "wql.y" |
#line 322 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].intValue != 0, WQLOperand::BOOLEAN_VALUE_TAG)); |
WQLOperand(yyvsp[0].intValue != 0, WQL_BOOLEAN_VALUE_TAG)); |
; | ; |
break;} | break;} |
} | } |
|
|
} | } |
return 1; | return 1; |
} | } |
#line 326 "wql.y" |
#line 327 "wql.y" |
| |