version 1.1.2.8, 2001/12/09 02:57:09
|
version 1.4, 2003/02/12 17:18:39
|
|
|
#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: |
|
|
selectList | selectList |
: '*' | : '*' |
{ | { |
globalParserState->statement->appendPropertyName("*"); |
globalParserState->statement->setAllProperties(true); |
} | } |
| propertyList | | propertyList |
{ | { |
|
|
propertyList | propertyList |
: propertyName | : propertyName |
{ | { |
globalParserState->statement->appendPropertyName($1); |
globalParserState->statement->appendSelectPropertyName(CIMName($1)); |
} | } |
| propertyList ',' propertyName | | propertyList ',' propertyName |
{ | { |
globalParserState->statement->appendPropertyName($3); |
globalParserState->statement->appendSelectPropertyName(CIMName($3)); |
} | } |
| |
selectExpression | selectExpression |
|
|
: TOK_FROM className | : TOK_FROM className |
{ | { |
WQL_TRACE(("YACC: fromClause: TOK_FROM className(%s)\n", $2)); | WQL_TRACE(("YACC: fromClause: TOK_FROM className(%s)\n", $2)); |
globalParserState->statement->setClassName($2); |
globalParserState->statement->setClassName(CIMName($2)); |
} | } |
| |
whereClause | whereClause |
|
|
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand($1, WQL_PROPERTY_NAME_TAG)); | WQLOperand($1, WQL_PROPERTY_NAME_TAG)); |
|
globalParserState->statement->appendWherePropertyName(CIMName($1)); |
} | } |
| TOK_INTEGER | | TOK_INTEGER |
{ | { |