version 1.12, 2005/05/16 20:51:25
|
version 1.14, 2005/05/24 20:26:33
|
|
|
#define TOK_FALSE 261 | #define TOK_FALSE 261 |
#define TOK_NULL 262 | #define TOK_NULL 262 |
#define TOK_ISA 263 | #define TOK_ISA 263 |
#define TOK_EQ 264 |
#define TOK_DOT 264 |
#define TOK_NE 265 |
#define TOK_EQ 265 |
#define TOK_LT 266 |
#define TOK_NE 266 |
#define TOK_LE 267 |
#define TOK_LT 267 |
#define TOK_GT 268 |
#define TOK_LE 268 |
#define TOK_GE 269 |
#define TOK_GT 269 |
#define TOK_NOT 270 |
#define TOK_GE 270 |
#define TOK_OR 271 |
#define TOK_NOT 271 |
#define TOK_AND 272 |
#define TOK_OR 272 |
#define TOK_IS 273 |
#define TOK_AND 273 |
#define TOK_IDENTIFIER 274 |
#define TOK_IS 274 |
#define TOK_SELECT 275 |
#define TOK_IDENTIFIER 275 |
#define TOK_WHERE 276 |
#define TOK_SELECT 276 |
#define TOK_FROM 277 |
#define TOK_WHERE 277 |
#define TOK_UNEXPECTED_CHAR 278 |
#define TOK_FROM 278 |
|
#define TOK_UNEXPECTED_CHAR 279 |
| |
#line 37 "wql.y" | #line 37 "wql.y" |
| |
|
|
| |
| |
| |
#define YYFINAL 63 |
#define YYFINAL 65 |
#define YYFLAG -32768 | #define YYFLAG -32768 |
#define YYNTBASE 29 |
#define YYNTBASE 30 |
| |
#define YYTRANSLATE(x) ((unsigned)(x) <= 278 ? yytranslate[x] : 44) |
#define YYTRANSLATE(x) ((unsigned)(x) <= 279 ? yytranslate[x] : 45) |
| |
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, 27, |
2, 2, 2, 2, 2, 2, 2, 2, 2, 28, |
28, 25, 2, 26, 2, 2, 2, 2, 2, 2, |
29, 26, 2, 27, 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, 3, 4, 5, 6, | 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, |
7, 8, 9, 10, 11, 12, 13, 14, 15, 16, | 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, |
17, 18, 19, 20, 21, 22, 23, 24 |
17, 18, 19, 20, 21, 22, 23, 24, 25 |
}; | }; |
| |
#if YYDEBUG != 0 | #if YYDEBUG != 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, 89, 94, 96, | 61, 65, 69, 73, 77, 81, 85, 89, 94, 96, |
98, 100, 102, 104, 106, 108, 110 |
98, 100, 104, 106, 108, 110, 112, 114 |
}; | }; |
| |
static const short yyrhs[] = { 30, |
static const short yyrhs[] = { 31, |
0, 21, 31, 33, 0, 25, 0, 32, 0, 41, |
0, 22, 32, 34, 0, 26, 0, 33, 0, 42, |
0, 32, 26, 41, 0, 34, 35, 0, 34, 0, |
0, 33, 27, 42, 0, 35, 36, 0, 35, 0, |
23, 42, 0, 22, 36, 0, 36, 17, 36, 0, |
24, 43, 0, 23, 37, 0, 37, 18, 37, 0, |
36, 18, 36, 0, 16, 36, 0, 27, 36, 28, |
37, 19, 37, 0, 17, 37, 0, 28, 37, 29, |
0, 37, 0, 37, 19, 40, 0, 37, 19, 16, |
0, 38, 0, 38, 20, 41, 0, 38, 20, 17, |
40, 0, 38, 0, 39, 0, 43, 12, 43, 0, |
41, 0, 39, 0, 40, 0, 44, 13, 44, 0, |
43, 14, 43, 0, 43, 13, 43, 0, 43, 15, |
44, 15, 44, 0, 44, 14, 44, 0, 44, 16, |
43, 0, 43, 10, 43, 0, 43, 11, 43, 0, |
44, 0, 44, 11, 44, 0, 44, 12, 44, 0, |
41, 9, 42, 0, 43, 19, 8, 0, 43, 19, |
42, 9, 43, 0, 44, 20, 8, 0, 44, 20, |
16, 8, 0, 6, 0, 7, 0, 20, 0, 20, |
17, 8, 0, 6, 0, 7, 0, 21, 0, 21, |
0, 41, 0, 3, 0, 4, 0, 5, 0, 40, |
10, 21, 0, 21, 0, 42, 0, 3, 0, 4, |
0 |
0, 5, 0, 41, 0 |
}; | }; |
| |
#endif | #endif |
| |
#if YYDEBUG != 0 | #if YYDEBUG != 0 |
static const short yyrline[] = { 0, | static const short yyrline[] = { 0, |
159, 165, 171, 175, 181, 185, 191, 195, 201, 208, |
160, 166, 172, 176, 182, 186, 192, 196, 202, 209, |
214, 219, 224, 230, 234, 238, 243, 252, 256, 262, |
215, 220, 225, 231, 235, 239, 244, 253, 257, 263, |
267, 272, 277, 282, 287, 292, 301, 306, 313, 317, |
268, 273, 278, 283, 288, 293, 303, 308, 315, 319, |
323, 329, 336, 342, 347, 352, 357 |
332, 337, 349, 356, 362, 367, 372, 377 |
}; | }; |
#endif | #endif |
| |
|
|
#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) | #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_ISA","TOK_EQ", |
"TOK_DOUBLE","TOK_STRING","TOK_TRUE","TOK_FALSE","TOK_NULL","TOK_ISA","TOK_DOT", |
"TOK_NE","TOK_LT","TOK_LE","TOK_GT","TOK_GE","TOK_NOT","TOK_OR","TOK_AND","TOK_IS", |
"TOK_EQ","TOK_NE","TOK_LT","TOK_LE","TOK_GT","TOK_GE","TOK_NOT","TOK_OR","TOK_AND", |
"TOK_IDENTIFIER","TOK_SELECT","TOK_WHERE","TOK_FROM","TOK_UNEXPECTED_CHAR","'*'", |
"TOK_IS","TOK_IDENTIFIER","TOK_SELECT","TOK_WHERE","TOK_FROM","TOK_UNEXPECTED_CHAR", |
"','","'('","')'","start","selectStatement","selectList","propertyList","selectExpression", |
"'*'","','","'('","')'","start","selectStatement","selectList","propertyList", |
"fromClause","whereClause","searchCondition","predicate","comparisonPredicate", |
"selectExpression","fromClause","whereClause","searchCondition","predicate", |
"nullPredicate","truthValue","propertyName","className","comparisonTerm", NULL |
"comparisonPredicate","nullPredicate","truthValue","propertyName","className", |
|
"comparisonTerm", NULL |
}; | }; |
#endif | #endif |
| |
static const short yyr1[] = { 0, | static const short yyr1[] = { 0, |
29, 30, 31, 31, 32, 32, 33, 33, 34, 35, |
30, 31, 32, 32, 33, 33, 34, 34, 35, 36, |
36, 36, 36, 36, 36, 36, 36, 37, 37, 38, |
37, 37, 37, 37, 37, 37, 37, 38, 38, 39, |
38, 38, 38, 38, 38, 38, 39, 39, 40, 40, |
39, 39, 39, 39, 39, 39, 40, 40, 41, 41, |
41, 42, 43, 43, 43, 43, 43 |
42, 42, 43, 44, 44, 44, 44, 44 |
}; | }; |
| |
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, 3, 4, 1, 1, | 3, 3, 3, 3, 3, 3, 3, 4, 1, 1, |
1, 1, 1, 1, 1, 1, 1 |
1, 3, 1, 1, 1, 1, 1, 1 |
}; | }; |
| |
static const short yydefact[] = { 0, | static const short yydefact[] = { 0, |
0, 1, 31, 3, 0, 4, 5, 0, 2, 8, |
0, 1, 31, 3, 0, 4, 5, 0, 0, 2, |
0, 32, 9, 0, 7, 6, 34, 35, 36, 29, |
8, 0, 32, 33, 9, 0, 7, 6, 35, 36, |
30, 0, 0, 10, 15, 18, 19, 37, 33, 0, |
37, 29, 30, 0, 0, 10, 15, 18, 19, 38, |
13, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
34, 0, 13, 0, 0, 0, 0, 0, 0, 0, |
0, 0, 0, 14, 11, 12, 0, 16, 26, 33, |
0, 0, 0, 0, 0, 14, 11, 12, 0, 16, |
24, 25, 20, 22, 21, 23, 27, 0, 17, 28, |
26, 34, 24, 25, 20, 22, 21, 23, 27, 0, |
0, 0, 0 |
17, 28, 0, 0, 0 |
}; | }; |
| |
static const short yydefgoto[] = { 61, |
static const short yydefgoto[] = { 63, |
2, 5, 6, 9, 10, 15, 24, 25, 26, 27, |
2, 5, 6, 10, 11, 17, 26, 27, 28, 29, |
28, 50, 13, 30 |
30, 52, 15, 32 |
}; | }; |
| |
static const short yypact[] = { -9, |
static const short yypact[] = { -12, |
32,-32768,-32768,-32768, -8, 5,-32768, 22,-32768, 37, |
-7,-32768, 6,-32768, -2, 12,-32768, 25, 39,-32768, |
38,-32768,-32768, -2,-32768,-32768,-32768,-32768,-32768,-32768, |
4, 40,-32768,-32768,-32768, 0,-32768,-32768,-32768,-32768, |
-32768, -2, -2, 36, 41,-32768,-32768,-32768, 52, 26, |
-32768,-32768,-32768, 0, 0, 38, 42,-32768,-32768,-32768, |
-32768, -11, -2, -2, 28, 22, 23, 23, 23, 23, |
54, 29,-32768, 7, 0, 0, 31, 39, 26, 26, |
23, 23, 8,-32768, 44,-32768, 49,-32768,-32768,-32768, |
26, 26, 26, 26, 1,-32768, 45,-32768, 52,-32768, |
-32768,-32768,-32768,-32768,-32768,-32768,-32768, 55,-32768,-32768, |
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 57, |
64, 65,-32768 |
-32768,-32768, 66, 67,-32768 |
}; | }; |
| |
static const short yypgoto[] = {-32768, | static const short yypgoto[] = {-32768, |
-32768,-32768,-32768,-32768,-32768,-32768, -14,-32768,-32768,-32768, |
-32768,-32768,-32768,-32768,-32768,-32768, -23,-32768,-32768,-32768, |
-24, -1, 30, 9 |
-29, -1, 30, 11 |
}; | }; |
| |
| |
#define YYLAST 66 |
#define YYLAST 68 |
| |
| |
static const short yytable[] = { 7, | static const short yytable[] = { 7, |
17, 18, 19, 20, 21, 33, 34, 31, 32, 16, |
33, 34, 19, 20, 21, 22, 23, 50, 59, 1, |
48, 1, 29, 22, 8, 57, 44, 3, 45, 46, |
18, 47, 48, 3, 31, 8, 24, 60, 4, 61, |
29, 29, 59, 58, 23, 17, 18, 19, 20, 21, |
3, 9, 31, 31, 35, 36, 16, 25, 19, 20, |
11, 29, 29, 20, 21, 37, 38, 39, 40, 41, |
21, 22, 23, 31, 31, 46, 22, 23, 12, 39, |
42, 12, 3, 47, 43, 51, 52, 53, 54, 55, |
40, 41, 42, 43, 44, 13, 3, 49, 45, 53, |
56, 3, 33, 34, 20, 21, 4, 3, 14, 35, |
54, 55, 56, 57, 58, 35, 36, 22, 23, 14, |
36, 34, 60, 62, 63, 49 |
3, 37, 38, 36, 62, 64, 65, 51 |
}; | }; |
| |
static const short yycheck[] = { 1, | static const short yycheck[] = { 1, |
3, 4, 5, 6, 7, 17, 18, 22, 23, 11, |
24, 25, 3, 4, 5, 6, 7, 37, 8, 22, |
35, 21, 14, 16, 23, 8, 28, 20, 33, 34, |
12, 35, 36, 21, 16, 10, 17, 17, 26, 49, |
22, 23, 47, 16, 27, 3, 4, 5, 6, 7, |
21, 24, 24, 25, 18, 19, 23, 28, 3, 4, |
26, 33, 34, 6, 7, 10, 11, 12, 13, 14, |
5, 6, 7, 35, 36, 29, 6, 7, 27, 11, |
15, 20, 20, 16, 19, 37, 38, 39, 40, 41, |
12, 13, 14, 15, 16, 21, 21, 17, 20, 39, |
42, 20, 17, 18, 6, 7, 25, 20, 22, 19, |
40, 41, 42, 43, 44, 18, 19, 6, 7, 21, |
9, 18, 8, 0, 0, 36 |
21, 20, 9, 19, 8, 0, 0, 38 |
}; | }; |
/* -*-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 160 "wql.y" |
#line 161 "wql.y" |
{ | { |
WQL_TRACE(("YACC: start\n")); | WQL_TRACE(("YACC: start\n")); |
; | ; |
break;} | break;} |
case 2: | case 2: |
#line 166 "wql.y" |
#line 167 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 3: | case 3: |
#line 172 "wql.y" |
#line 173 "wql.y" |
{ | { |
globalParserState->statement->setAllProperties(true); | globalParserState->statement->setAllProperties(true); |
; | ; |
break;} | break;} |
case 4: | case 4: |
#line 176 "wql.y" |
#line 177 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 5: | case 5: |
#line 182 "wql.y" |
#line 183 "wql.y" |
{ | { |
globalParserState->statement->appendSelectPropertyName(CIMName(yyvsp[0].strValue)); | globalParserState->statement->appendSelectPropertyName(CIMName(yyvsp[0].strValue)); |
; | ; |
break;} | break;} |
case 6: | case 6: |
#line 186 "wql.y" |
#line 187 "wql.y" |
{ | { |
globalParserState->statement->appendSelectPropertyName(CIMName(yyvsp[0].strValue)); | globalParserState->statement->appendSelectPropertyName(CIMName(yyvsp[0].strValue)); |
; | ; |
break;} | break;} |
case 7: | case 7: |
#line 192 "wql.y" |
#line 193 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 8: | case 8: |
#line 196 "wql.y" |
#line 197 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 9: | case 9: |
#line 202 "wql.y" |
#line 203 "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(CIMName(yyvsp[0].strValue)); | globalParserState->statement->setClassName(CIMName(yyvsp[0].strValue)); |
; | ; |
break;} | break;} |
case 10: | case 10: |
#line 209 "wql.y" |
#line 210 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 11: | case 11: |
#line 215 "wql.y" |
#line 216 "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 220 "wql.y" |
#line 221 "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 225 "wql.y" |
#line 226 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_NOT\n")); | WQL_TRACE(("YACC: TOK_NOT\n")); |
| |
|
|
; | ; |
break;} | break;} |
case 14: | case 14: |
#line 231 "wql.y" |
#line 232 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 15: | case 15: |
#line 235 "wql.y" |
#line 236 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 16: | case 16: |
#line 239 "wql.y" |
#line 240 "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 244 "wql.y" |
#line 245 "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 253 "wql.y" |
#line 254 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 19: | case 19: |
#line 257 "wql.y" |
#line 258 "wql.y" |
{ | { |
| |
; | ; |
break;} | break;} |
case 20: | case 20: |
#line 263 "wql.y" |
#line 264 "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 268 "wql.y" |
#line 269 "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 273 "wql.y" |
#line 274 "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 278 "wql.y" |
#line 279 "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 283 "wql.y" |
#line 284 "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 288 "wql.y" |
#line 289 "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 293 "wql.y" |
#line 294 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_ISA\n")); | WQL_TRACE(("YACC: TOK_ISA\n")); |
#ifndef PEGASUS_SNIA_EXTENSIONS | #ifndef PEGASUS_SNIA_EXTENSIONS |
|
// If SNIA tests, allow the ISA but do not pass className |
yyerror("ISA Token Not Supported"); | yyerror("ISA Token Not Supported"); |
#endif | #endif |
; | ; |
break;} | break;} |
case 27: | case 27: |
#line 302 "wql.y" |
#line 304 "wql.y" |
{ | { |
WQL_TRACE(("YACC: nullPredicate : comparisonTerm IS NULL\n")); | WQL_TRACE(("YACC: nullPredicate : comparisonTerm IS NULL\n")); |
globalParserState->statement->appendOperation(WQL_IS_NULL); | globalParserState->statement->appendOperation(WQL_IS_NULL); |
; | ; |
break;} | break;} |
case 28: | case 28: |
#line 307 "wql.y" |
#line 309 "wql.y" |
{ | { |
WQL_TRACE(("YACC: nullPredicate : comparisonTerm IS NOT NULL\n")); | WQL_TRACE(("YACC: nullPredicate : comparisonTerm IS NOT NULL\n")); |
globalParserState->statement->appendOperation(WQL_IS_NOT_NULL); | globalParserState->statement->appendOperation(WQL_IS_NOT_NULL); |
; | ; |
break;} | break;} |
case 29: | case 29: |
#line 314 "wql.y" |
#line 316 "wql.y" |
{ | { |
yyval.intValue = 1; | yyval.intValue = 1; |
; | ; |
break;} | break;} |
case 30: | case 30: |
#line 318 "wql.y" |
#line 320 "wql.y" |
{ | { |
yyval.intValue = 0; | yyval.intValue = 0; |
; | ; |
break;} | break;} |
case 31: | case 31: |
#line 324 "wql.y" |
#line 333 "wql.y" |
{ | { |
WQL_TRACE(("YACC: propertyName : 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 330 "wql.y" |
#line 338 "wql.y" |
|
{ |
|
WQL_TRACE(("YACC: propertyName : TOK_IDENTIFIER(%s.%s)\n", yyvsp[-2].strValue, yyvsp[0].strValue)); |
|
#ifdef PEGASUS_SNIA_EXTENSIONS |
|
// Pass anything as a property name to fool parser for SNIA testing |
|
yyval.strValue = strdup("dummy"); |
|
#else |
|
yyerror("Scoped (dotted) property names not supported"); |
|
#endif |
|
; |
|
break;} |
|
case 33: |
|
#line 350 "wql.y" |
{ | { |
WQL_TRACE(("YACC: TOK_IDENTIFIER %s\n", yyvsp[0].strValue)); | WQL_TRACE(("YACC: TOK_IDENTIFIER %s\n", yyvsp[0].strValue)); |
yyval.strValue = yyvsp[0].strValue; | yyval.strValue = yyvsp[0].strValue; |
; | ; |
break;} | break;} |
case 33: |
case 34: |
#line 337 "wql.y" |
#line 357 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].strValue, WQL_PROPERTY_NAME_TAG)); | WQLOperand(yyvsp[0].strValue, WQL_PROPERTY_NAME_TAG)); |
globalParserState->statement->appendWherePropertyName(CIMName(yyvsp[0].strValue)); | globalParserState->statement->appendWherePropertyName(CIMName(yyvsp[0].strValue)); |
; | ; |
break;} | break;} |
case 34: |
case 35: |
#line 343 "wql.y" |
#line 363 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].intValue, WQL_INTEGER_VALUE_TAG)); | WQLOperand(yyvsp[0].intValue, WQL_INTEGER_VALUE_TAG)); |
; | ; |
break;} | break;} |
case 35: |
case 36: |
#line 348 "wql.y" |
#line 368 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].doubleValue, WQL_DOUBLE_VALUE_TAG)); | WQLOperand(yyvsp[0].doubleValue, WQL_DOUBLE_VALUE_TAG)); |
; | ; |
break;} | break;} |
case 36: |
case 37: |
#line 353 "wql.y" |
#line 373 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].strValue, WQL_STRING_VALUE_TAG)); | WQLOperand(yyvsp[0].strValue, WQL_STRING_VALUE_TAG)); |
; | ; |
break;} | break;} |
case 37: |
case 38: |
#line 358 "wql.y" |
#line 378 "wql.y" |
{ | { |
globalParserState->statement->appendOperand( | globalParserState->statement->appendOperand( |
WQLOperand(yyvsp[0].intValue != 0, WQL_BOOLEAN_VALUE_TAG)); | WQLOperand(yyvsp[0].intValue != 0, WQL_BOOLEAN_VALUE_TAG)); |
|
|
} | } |
return 1; | return 1; |
} | } |
#line 363 "wql.y" |
#line 383 "wql.y" |
| |