version 1.1.2.10, 2001/12/07 00:37:56
|
version 1.12, 2005/05/16 20:51:25
|
|
|
| |
/* A Bison parser, made from wql.y with Bison version GNU Bison version 1.24 |
/* A Bison parser, made from wql.y |
*/ |
by GNU Bison version 1.28 */ |
| |
#define YYBISON 1 /* Identify Bison output. */ | #define YYBISON 1 /* Identify Bison output. */ |
| |
|
|
#define yychar WQL_char | #define yychar WQL_char |
#define yydebug WQL_debug | #define yydebug WQL_debug |
#define yynerrs WQL_nerrs | #define yynerrs WQL_nerrs |
#define TOK_INTEGER 258 |
#define TOK_INTEGER 257 |
#define TOK_DOUBLE 259 |
#define TOK_DOUBLE 258 |
#define TOK_STRING 260 |
#define TOK_STRING 259 |
#define TOK_TRUE 261 |
#define TOK_TRUE 260 |
#define TOK_FALSE 262 |
#define TOK_FALSE 261 |
#define TOK_NULL 263 |
#define TOK_NULL 262 |
|
#define TOK_ISA 263 |
#define TOK_EQ 264 | #define TOK_EQ 264 |
#define TOK_NE 265 | #define TOK_NE 265 |
#define TOK_LT 266 | #define TOK_LT 266 |
|
|
#define TOK_FROM 277 | #define TOK_FROM 277 |
#define TOK_UNEXPECTED_CHAR 278 | #define TOK_UNEXPECTED_CHAR 278 |
| |
#line 9 "wql.y" |
#line 37 "wql.y" |
| |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
|
#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: |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
| |
#line 58 "wql.y" |
#line 86 "wql.y" |
typedef union | typedef union |
{ | { |
int intValue; | int intValue; |
|
|
char* strValue; | char* strValue; |
void* nodeValue; | void* nodeValue; |
} YYSTYPE; | } YYSTYPE; |
|
|
#ifndef YYLTYPE |
|
typedef |
|
struct yyltype |
|
{ |
|
int timestamp; |
|
int first_line; |
|
int first_column; |
|
int last_line; |
|
int last_column; |
|
char *text; |
|
} |
|
yyltype; |
|
|
|
#define YYLTYPE yyltype |
|
#endif |
|
|
|
#include <stdio.h> | #include <stdio.h> |
| |
#ifndef __cplusplus | #ifndef __cplusplus |
|
|
| |
| |
| |
#define YYFINAL 60 |
#define YYFINAL 63 |
#define YYFLAG -32768 | #define YYFLAG -32768 |
#define YYNTBASE 28 |
#define YYNTBASE 29 |
| |
#define YYTRANSLATE(x) ((unsigned)(x) <= 278 ? yytranslate[x] : 43) |
#define YYTRANSLATE(x) ((unsigned)(x) <= 278 ? yytranslate[x] : 44) |
| |
static const char yytranslate[] = { 0, | static const char yytranslate[] = { 0, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 26, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 27, |
27, 24, 2, 25, 2, 2, 2, 2, 2, 2, |
28, 25, 2, 26, 2, 2, 2, 2, 2, 2, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
2, 2, 2, 2, 2, 1, 2, 3, 4, 5, |
2, 2, 2, 2, 2, 1, 3, 4, 5, 6, |
6, 7, 8, 9, 10, 11, 12, 13, 14, 15, |
7, 8, 9, 10, 11, 12, 13, 14, 15, 16, |
16, 17, 18, 19, 20, 21, 22, 23 |
17, 18, 19, 20, 21, 22, 23, 24 |
}; | }; |
| |
#if YYDEBUG != 0 | #if YYDEBUG != 0 |
static const short yyprhs[] = { 0, | static const short yyprhs[] = { 0, |
0, 2, 6, 8, 10, 12, 16, 19, 21, 24, | 0, 2, 6, 8, 10, 12, 16, 19, 21, 24, |
27, 31, 35, 38, 42, 44, 48, 53, 55, 57, | 27, 31, 35, 38, 42, 44, 48, 53, 55, 57, |
61, 65, 69, 73, 77, 81, 85, 90, 92, 94, |
61, 65, 69, 73, 77, 81, 85, 89, 94, 96, |
96, 98, 100, 102, 104, 106 |
98, 100, 102, 104, 106, 108, 110 |
}; | }; |
| |
static const short yyrhs[] = { 29, |
static const short yyrhs[] = { 30, |
0, 20, 30, 32, 0, 24, 0, 31, 0, 40, |
0, 21, 31, 33, 0, 25, 0, 32, 0, 41, |
0, 31, 25, 40, 0, 33, 34, 0, 33, 0, |
0, 32, 26, 41, 0, 34, 35, 0, 34, 0, |
22, 41, 0, 21, 35, 0, 35, 16, 35, 0, |
23, 42, 0, 22, 36, 0, 36, 17, 36, 0, |
35, 17, 35, 0, 15, 35, 0, 26, 35, 27, |
36, 18, 36, 0, 16, 36, 0, 27, 36, 28, |
0, 36, 0, 36, 18, 39, 0, 36, 18, 15, |
0, 37, 0, 37, 19, 40, 0, 37, 19, 16, |
39, 0, 37, 0, 38, 0, 42, 11, 42, 0, |
40, 0, 38, 0, 39, 0, 43, 12, 43, 0, |
42, 13, 42, 0, 42, 12, 42, 0, 42, 14, |
43, 14, 43, 0, 43, 13, 43, 0, 43, 15, |
42, 0, 42, 9, 42, 0, 42, 10, 42, 0, |
43, 0, 43, 10, 43, 0, 43, 11, 43, 0, |
42, 18, 8, 0, 42, 18, 15, 8, 0, 6, |
41, 9, 42, 0, 43, 19, 8, 0, 43, 19, |
0, 7, 0, 19, 0, 19, 0, 40, 0, 3, |
16, 8, 0, 6, 0, 7, 0, 20, 0, 20, |
0, 4, 0, 5, 0, 39, 0 |
0, 41, 0, 3, 0, 4, 0, 5, 0, 40, |
|
0 |
}; | }; |
| |
#endif | #endif |
| |
#if YYDEBUG != 0 | #if YYDEBUG != 0 |
static const short yyrline[] = { 0, | static const short yyrline[] = { 0, |
130, 136, 142, 146, 152, 156, 162, 166, 172, 179, |
159, 165, 171, 175, 181, 185, 191, 195, 201, 208, |
185, 190, 195, 201, 205, 209, 214, 223, 227, 233, |
214, 219, 224, 230, 234, 238, 243, 252, 256, 262, |
238, 243, 248, 253, 258, 265, 270, 277, 281, 287, |
267, 272, 277, 282, 287, 292, 301, 306, 313, 317, |
293, 300, 305, 310, 315, 320 |
323, 329, 336, 342, 347, 352, 357 |
}; | }; |
|
#endif |
|
|
|
|
|
#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) |
| |
static const char * const yytname[] = { "$","error","$undefined.","TOK_INTEGER", | static const char * const yytname[] = { "$","error","$undefined.","TOK_INTEGER", |
"TOK_DOUBLE","TOK_STRING","TOK_TRUE","TOK_FALSE","TOK_NULL","TOK_EQ","TOK_NE", |
"TOK_DOUBLE","TOK_STRING","TOK_TRUE","TOK_FALSE","TOK_NULL","TOK_ISA","TOK_EQ", |
"TOK_LT","TOK_LE","TOK_GT","TOK_GE","TOK_NOT","TOK_OR","TOK_AND","TOK_IS","TOK_IDENTIFIER", |
"TOK_NE","TOK_LT","TOK_LE","TOK_GT","TOK_GE","TOK_NOT","TOK_OR","TOK_AND","TOK_IS", |
"TOK_SELECT","TOK_WHERE","TOK_FROM","TOK_UNEXPECTED_CHAR","'*'","','","'('", |
"TOK_IDENTIFIER","TOK_SELECT","TOK_WHERE","TOK_FROM","TOK_UNEXPECTED_CHAR","'*'", |
"')'","start","selectStatement","selectList","propertyList","selectExpression", |
"','","'('","')'","start","selectStatement","selectList","propertyList","selectExpression", |
"fromClause","whereClause","searchCondition","predicate","comparisonPredicate", | "fromClause","whereClause","searchCondition","predicate","comparisonPredicate", |
"nullPredicate","truthValue","propertyName","className","comparisonTerm","" |
"nullPredicate","truthValue","propertyName","className","comparisonTerm", NULL |
}; | }; |
#endif | #endif |
| |
static const short yyr1[] = { 0, | static const short yyr1[] = { 0, |
28, 29, 30, 30, 31, 31, 32, 32, 33, 34, |
29, 30, 31, 31, 32, 32, 33, 33, 34, 35, |
35, 35, 35, 35, 35, 35, 35, 36, 36, 37, |
36, 36, 36, 36, 36, 36, 36, 37, 37, 38, |
37, 37, 37, 37, 37, 38, 38, 39, 39, 40, |
38, 38, 38, 38, 38, 38, 39, 39, 40, 40, |
41, 42, 42, 42, 42, 42 |
41, 42, 43, 43, 43, 43, 43 |
}; | }; |
| |
static const short yyr2[] = { 0, | static const short yyr2[] = { 0, |
1, 3, 1, 1, 1, 3, 2, 1, 2, 2, | 1, 3, 1, 1, 1, 3, 2, 1, 2, 2, |
3, 3, 2, 3, 1, 3, 4, 1, 1, 3, | 3, 3, 2, 3, 1, 3, 4, 1, 1, 3, |
3, 3, 3, 3, 3, 3, 4, 1, 1, 1, |
3, 3, 3, 3, 3, 3, 3, 4, 1, 1, |
1, 1, 1, 1, 1, 1 |
1, 1, 1, 1, 1, 1, 1 |
}; | }; |
| |
static const short yydefact[] = { 0, | static const short yydefact[] = { 0, |
0, 1, 30, 3, 0, 4, 5, 0, 2, 8, |
0, 1, 31, 3, 0, 4, 5, 0, 2, 8, |
0, 31, 9, 0, 7, 6, 33, 34, 35, 28, |
0, 32, 9, 0, 7, 6, 34, 35, 36, 29, |
29, 0, 0, 10, 15, 18, 19, 36, 32, 0, |
30, 0, 0, 10, 15, 18, 19, 37, 33, 0, |
13, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
0, 0, 14, 11, 12, 0, 16, 24, 25, 20, |
0, 0, 0, 14, 11, 12, 0, 16, 26, 33, |
22, 21, 23, 26, 0, 17, 27, 0, 0, 0 |
24, 25, 20, 22, 21, 23, 27, 0, 17, 28, |
|
0, 0, 0 |
}; | }; |
| |
static const short yydefgoto[] = { 58, |
static const short yydefgoto[] = { 61, |
2, 5, 6, 9, 10, 15, 24, 25, 26, 27, | 2, 5, 6, 9, 10, 15, 24, 25, 26, 27, |
28, 29, 13, 30 |
28, 50, 13, 30 |
}; | }; |
| |
static const short yypact[] = { -5, |
static const short yypact[] = { -9, |
18,-32768,-32768,-32768, 5, 16,-32768, 24,-32768, 33, |
32,-32768,-32768,-32768, -8, 5,-32768, 22,-32768, 37, |
26,-32768,-32768, -3,-32768,-32768,-32768,-32768,-32768,-32768, |
38,-32768,-32768, -2,-32768,-32768,-32768,-32768,-32768,-32768, |
-32768, -3, -3, 23, 37,-32768,-32768,-32768,-32768, 20, |
-32768, -2, -2, 36, 41,-32768,-32768,-32768, 52, 26, |
-32768, 1, -3, -3, 29, 2, 2, 2, 2, 2, |
-32768, -11, -2, -2, 28, 22, 23, 23, 23, 23, |
2, 11,-32768, 39,-32768, 46,-32768,-32768,-32768,-32768, |
23, 23, 8,-32768, 44,-32768, 49,-32768,-32768,-32768, |
-32768,-32768,-32768,-32768, 49,-32768,-32768, 58, 59,-32768 |
-32768,-32768,-32768,-32768,-32768,-32768,-32768, 55,-32768,-32768, |
|
64, 65,-32768 |
}; | }; |
| |
static const short yypgoto[] = {-32768, | static const short yypgoto[] = {-32768, |
-32768,-32768,-32768,-32768,-32768,-32768, -9,-32768,-32768,-32768, |
-32768,-32768,-32768,-32768,-32768,-32768, -14,-32768,-32768,-32768, |
-24, 9,-32768, 10 |
-24, -1, 30, 9 |
}; | }; |
| |
| |
#define YYLAST 59 |
#define YYLAST 66 |
| |
| |
static const short yytable[] = { 17, |
static const short yytable[] = { 7, |
18, 19, 20, 21, 17, 18, 19, 20, 21, 7, |
17, 18, 19, 20, 21, 33, 34, 31, 32, 16, |
47, 22, 31, 32, 1, 3, 33, 34, 54, 16, |
48, 1, 29, 22, 8, 57, 44, 3, 45, 46, |
3, 56, 23, 44, 45, 55, 8, 43, 36, 37, |
29, 29, 59, 58, 23, 17, 18, 19, 20, 21, |
38, 39, 40, 41, 20, 21, 3, 42, 33, 34, |
11, 29, 29, 20, 21, 37, 38, 39, 40, 41, |
11, 4, 12, 46, 3, 48, 49, 50, 51, 52, |
42, 12, 3, 47, 43, 51, 52, 53, 54, 55, |
53, 20, 21, 14, 35, 34, 57, 59, 60 |
56, 3, 33, 34, 20, 21, 4, 3, 14, 35, |
|
36, 34, 60, 62, 63, 49 |
}; | }; |
| |
static const short yycheck[] = { 3, |
static const short yycheck[] = { 1, |
4, 5, 6, 7, 3, 4, 5, 6, 7, 1, |
3, 4, 5, 6, 7, 17, 18, 22, 23, 11, |
35, 15, 22, 23, 20, 19, 16, 17, 8, 11, |
35, 21, 14, 16, 23, 8, 28, 20, 33, 34, |
19, 46, 26, 33, 34, 15, 22, 27, 9, 10, |
22, 23, 47, 16, 27, 3, 4, 5, 6, 7, |
11, 12, 13, 14, 6, 7, 19, 18, 16, 17, |
26, 33, 34, 6, 7, 10, 11, 12, 13, 14, |
25, 24, 19, 15, 19, 36, 37, 38, 39, 40, |
15, 20, 20, 16, 19, 37, 38, 39, 40, 41, |
41, 6, 7, 21, 18, 17, 8, 0, 0 |
42, 20, 17, 18, 6, 7, 25, 20, 22, 19, |
|
9, 18, 8, 0, 0, 36 |
}; | }; |
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */ | /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ |
#line 3 "bison.simple" | #line 3 "bison.simple" |
|
|
switch (yyn) { | switch (yyn) { |
| |
case 1: | case 1: |
#line 131 "wql.y" |
#line 160 "wql.y" |
{ | { |
WQL_TRACE(("YACC: start\n")); | WQL_TRACE(("YACC: start\n")); |
; | ; |
break;} | break;} |
case 2: | case 2: |
#line 137 "wql.y" |
#line 166 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 3: | case 3: |
#line 143 "wql.y" |
#line 172 "wql.y" |
{ | { |
globalParserState->statement->appendPropertyName("*"); |
globalParserState->statement->setAllProperties(true); |
; | ; |
break;} | break;} |
case 4: | case 4: |
#line 147 "wql.y" |
#line 176 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 5: | case 5: |
#line 153 "wql.y" |
#line 182 "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 186 "wql.y" |
{ | { |
globalParserState->statement->appendPropertyName(yyvsp[0].strValue); |
globalParserState->statement->appendSelectPropertyName(CIMName(yyvsp[0].strValue)); |
; | ; |
break;} | break;} |
case 7: | case 7: |
#line 163 "wql.y" |
#line 192 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 8: | case 8: |
#line 167 "wql.y" |
#line 196 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 9: | case 9: |
#line 173 "wql.y" |
#line 202 "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 180 "wql.y" |
#line 209 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 11: | case 11: |
#line 186 "wql.y" |
#line 215 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_OR\n")); | WQL_TRACE(("YACC: TOK_OR\n")); |
globalParserState->statement->appendOperation(WQL_OR); | globalParserState->statement->appendOperation(WQL_OR); |
; | ; |
break;} | break;} |
case 12: | case 12: |
#line 191 "wql.y" |
#line 220 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_AND\n")); | WQL_TRACE(("YACC: TOK_AND\n")); |
globalParserState->statement->appendOperation(WQL_AND); | globalParserState->statement->appendOperation(WQL_AND); |
; | ; |
break;} | break;} |
case 13: | case 13: |
#line 196 "wql.y" |
#line 225 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_NOT\n")); | WQL_TRACE(("YACC: TOK_NOT\n")); |
| |
|
|
; | ; |
break;} | break;} |
case 14: | case 14: |
#line 202 "wql.y" |
#line 231 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 15: | case 15: |
#line 206 "wql.y" |
#line 235 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 16: | case 16: |
#line 210 "wql.y" |
#line 239 "wql.y" |
{ | { |
WQLOperation op = yyvsp[0].intValue ? WQL_IS_TRUE : WQL_IS_FALSE; | WQLOperation op = yyvsp[0].intValue ? WQL_IS_TRUE : WQL_IS_FALSE; |
globalParserState->statement->appendOperation(op); | globalParserState->statement->appendOperation(op); |
; | ; |
break;} | break;} |
case 17: | case 17: |
#line 215 "wql.y" |
#line 244 "wql.y" |
{ | { |
WQLOperation op = yyvsp[0].intValue ? WQL_IS_NOT_TRUE : WQL_IS_NOT_FALSE; | WQLOperation op = yyvsp[0].intValue ? WQL_IS_NOT_TRUE : WQL_IS_NOT_FALSE; |
globalParserState->statement->appendOperation(op); | globalParserState->statement->appendOperation(op); |
; | ; |
break;} | break;} |
case 18: | case 18: |
#line 224 "wql.y" |
#line 253 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 19: | case 19: |
#line 228 "wql.y" |
#line 257 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 20: | case 20: |
#line 234 "wql.y" |
#line 263 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_LT\n")); | WQL_TRACE(("YACC: TOK_LT\n")); |
globalParserState->statement->appendOperation(WQL_LT); | globalParserState->statement->appendOperation(WQL_LT); |
; | ; |
break;} | break;} |
case 21: | case 21: |
#line 239 "wql.y" |
#line 268 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_GT\n")); | WQL_TRACE(("YACC: TOK_GT\n")); |
globalParserState->statement->appendOperation(WQL_GT); | globalParserState->statement->appendOperation(WQL_GT); |
; | ; |
break;} | break;} |
case 22: | case 22: |
#line 244 "wql.y" |
#line 273 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_LE\n")); | WQL_TRACE(("YACC: TOK_LE\n")); |
globalParserState->statement->appendOperation(WQL_LE); | globalParserState->statement->appendOperation(WQL_LE); |
; | ; |
break;} | break;} |
case 23: | case 23: |
#line 249 "wql.y" |
#line 278 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_GE\n")); | WQL_TRACE(("YACC: TOK_GE\n")); |
globalParserState->statement->appendOperation(WQL_GE); | globalParserState->statement->appendOperation(WQL_GE); |
; | ; |
break;} | break;} |
case 24: | case 24: |
#line 254 "wql.y" |
#line 283 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_EQ\n")); | WQL_TRACE(("YACC: TOK_EQ\n")); |
globalParserState->statement->appendOperation(WQL_EQ); | globalParserState->statement->appendOperation(WQL_EQ); |
; | ; |
break;} | break;} |
case 25: | case 25: |
#line 259 "wql.y" |
#line 288 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_NE\n")); | WQL_TRACE(("YACC: TOK_NE\n")); |
globalParserState->statement->appendOperation(WQL_NE); | globalParserState->statement->appendOperation(WQL_NE); |
; | ; |
break;} | break;} |
case 26: | case 26: |
#line 266 "wql.y" |
#line 293 "wql.y" |
{ | { |
WQL_TRACE(("YACC: nullPredicate : comparisonTerm IS NULL\n")); |
WQL_TRACE(("YACC: TOK_ISA\n")); |
globalParserState->statement->appendOperation(WQL_IS_NULL); |
#ifndef PEGASUS_SNIA_EXTENSIONS |
|
yyerror("ISA Token Not Supported"); |
|
#endif |
; | ; |
break;} | break;} |
case 27: | case 27: |
#line 271 "wql.y" |
#line 302 "wql.y" |
{ | { |
WQL_TRACE(("YACC: nullPredicate : comparisonTerm IS NOT NULL\n")); |
WQL_TRACE(("YACC: nullPredicate : comparisonTerm IS NULL\n")); |
globalParserState->statement->appendOperation(WQL_IS_NOT_NULL); |
globalParserState->statement->appendOperation(WQL_IS_NULL); |
; | ; |
break;} | break;} |
case 28: | case 28: |
#line 278 "wql.y" |
#line 307 "wql.y" |
{ | { |
yyval.intValue = 1; |
WQL_TRACE(("YACC: nullPredicate : comparisonTerm IS NOT NULL\n")); |
|
globalParserState->statement->appendOperation(WQL_IS_NOT_NULL); |
; | ; |
break;} | break;} |
case 29: | case 29: |
#line 282 "wql.y" |
#line 314 "wql.y" |
{ | { |
yyval.intValue = 0; |
yyval.intValue = 1; |
; | ; |
break;} | break;} |
case 30: | case 30: |
#line 288 "wql.y" |
#line 318 "wql.y" |
{ | { |
WQL_TRACE(("YACC: propertyName : TOK_IDENTIFIER(%s)\n", yyvsp[0].strValue)); |
yyval.intValue = 0; |
yyval.strValue = yyvsp[0].strValue; |
|
; | ; |
break;} | break;} |
case 31: | case 31: |
#line 294 "wql.y" |
#line 324 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_IDENTIFIER %s\n", yyvsp[0].strValue)); |
WQL_TRACE(("YACC: propertyName : TOK_IDENTIFIER(%s)\n", yyvsp[0].strValue)); |
yyval.strValue = yyvsp[0].strValue; | yyval.strValue = yyvsp[0].strValue; |
; | ; |
break;} | break;} |
case 32: | case 32: |
#line 301 "wql.y" |
#line 330 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( |
WQL_TRACE(("YACC: TOK_IDENTIFIER %s\n", yyvsp[0].strValue)); |
WQLOperand(yyvsp[0].strValue, WQLOperand::PROPERTY_NAME_TAG)); |
yyval.strValue = yyvsp[0].strValue; |
; | ; |
break;} | break;} |
case 33: | case 33: |
#line 306 "wql.y" |
#line 337 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].intValue, WQLOperand::INTEGER_VALUE_TAG)); |
WQLOperand(yyvsp[0].strValue, WQL_PROPERTY_NAME_TAG)); |
|
globalParserState->statement->appendWherePropertyName(CIMName(yyvsp[0].strValue)); |
; | ; |
break;} | break;} |
case 34: | case 34: |
#line 311 "wql.y" |
#line 343 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].doubleValue, WQLOperand::DOUBLE_VALUE_TAG)); |
WQLOperand(yyvsp[0].intValue, WQL_INTEGER_VALUE_TAG)); |
; | ; |
break;} | break;} |
case 35: | case 35: |
#line 316 "wql.y" |
#line 348 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].strValue, WQLOperand::STRING_VALUE_TAG)); |
WQLOperand(yyvsp[0].doubleValue, WQL_DOUBLE_VALUE_TAG)); |
; | ; |
break;} | break;} |
case 36: | case 36: |
#line 321 "wql.y" |
#line 353 "wql.y" |
|
{ |
|
globalParserState->statement->appendOperand( |
|
WQLOperand(yyvsp[0].strValue, WQL_STRING_VALUE_TAG)); |
|
; |
|
break;} |
|
case 37: |
|
#line 358 "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 363 "wql.y" |
| |