version 1.1.2.8, 2001/12/09 02:57:09
|
version 1.3, 2002/08/27 18:47:11
|
|
|
#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->appendSelectPropertyName("*"); |
} | } |
| propertyList | | propertyList |
{ | { |
|
|
propertyList | propertyList |
: propertyName | : propertyName |
{ | { |
globalParserState->statement->appendPropertyName($1); |
globalParserState->statement->appendSelectPropertyName($1); |
} | } |
| propertyList ',' propertyName | | propertyList ',' propertyName |
{ | { |
globalParserState->statement->appendPropertyName($3); |
globalParserState->statement->appendSelectPropertyName($3); |
} | } |
| |
selectExpression | selectExpression |
|
|
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand($1, WQL_PROPERTY_NAME_TAG)); | WQLOperand($1, WQL_PROPERTY_NAME_TAG)); |
|
globalParserState->statement->appendWherePropertyName($1); |
} | } |
| TOK_INTEGER | | TOK_INTEGER |
{ | { |