diff --git a/source/libs/function/src/builtins.c b/source/libs/function/src/builtins.c index c1cdcbcb0c2170e3475d62b5a98d4be945fa562b..aa7343f610c9a247cd69c54cf2d2b41892c48edb 100644 --- a/source/libs/function/src/builtins.c +++ b/source/libs/function/src/builtins.c @@ -382,6 +382,16 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = { .sprocessFunc = substrFunction, .finalizeFunc = NULL }, + { + .name = "cast", + .type = FUNCTION_TYPE_CAST, + .classification = FUNC_MGT_SCALAR_FUNC, + .checkFunc = stubCheckAndGetResultType, + .getEnvFunc = NULL, + .initFunc = NULL, + .sprocessFunc = NULL, + .finalizeFunc = NULL + }, { .name = "_rowts", .type = FUNCTION_TYPE_ROWTS, @@ -588,6 +598,10 @@ int32_t stubCheckAndGetResultType(SFunctionNode* pFunc) { pFunc->node.resType = (SDataType) { .bytes = paraBytes, .type = paraType }; break; } + case FUNCTION_TYPE_CAST: { + pFunc->node.resType = (SDataType) { .bytes = tDataTypes[TSDB_DATA_TYPE_BIGINT].bytes, .type = TSDB_DATA_TYPE_BIGINT }; + break; + } case FUNCTION_TYPE_TBNAME: { // todo diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 609eb1c84e7ce1768354ba9759f828d9c7233f1e..e78101421629d1ea9f9ef0ee521c737bb5840d4c 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -81,6 +81,7 @@ SToken getTokenFromRawExprNode(SAstCreateContext* pCxt, SNode* pNode); SNodeList* createNodeList(SAstCreateContext* pCxt, SNode* pNode); SNodeList* addNodeToList(SAstCreateContext* pCxt, SNodeList* pList, SNode* pNode); +SNodeList* addValueNodeFromTypeToList(SAstCreateContext* pCxt, SDataType dataType, SNodeList* pList); SNode* createColumnNode(SAstCreateContext* pCxt, SToken* pTableAlias, SToken* pColumnName); SNode* createValueNode(SAstCreateContext* pCxt, int32_t dataType, const SToken* pLiteral); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 6f00c66ece3cf1162171fcf261b1a1151e740e5b..18bea4736c9c2ca253a8db4e64618fa9761b8d8f 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -534,6 +534,12 @@ expression(A) ::= pseudo_column(B). expression(A) ::= column_reference(B). { A = B; } expression(A) ::= function_name(B) NK_LP expression_list(C) NK_RP(D). { A = createRawExprNodeExt(pCxt, &B, &D, createFunctionNode(pCxt, &B, C)); } expression(A) ::= function_name(B) NK_LP NK_STAR(C) NK_RP(D). { A = createRawExprNodeExt(pCxt, &B, &D, createFunctionNode(pCxt, &B, createNodeList(pCxt, createColumnNode(pCxt, NULL, &C)))); } +//for CAST function CAST(expr AS type_name) +expression(A) ::= function_name(B) NK_LP expression(C) AS type_name(D) NK_RP(E). { + SNodeList *p = createNodeList(pCxt, releaseRawExprNode(pCxt, C)); + p = addValueNodeFromTypeToList(pCxt, D, p); + A = createRawExprNodeExt(pCxt, &B, &E, createFunctionNode(pCxt, &B, p)); + } //expression(A) ::= cast_expression(B). { A = B; } //expression(A) ::= case_expression(B). { A = B; } expression(A) ::= subquery(B). { A = B; } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index e13d9930f277180a91c1aebb3115287ef391ab05..4908748f0dd533b0ae3ec938c923774124615c1b 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -251,6 +251,26 @@ SNode* createColumnNode(SAstCreateContext* pCxt, SToken* pTableAlias, SToken* pC return (SNode*)col; } +SNodeList* addValueNodeFromTypeToList(SAstCreateContext* pCxt, SDataType dataType, SNodeList* pList) { + char buf[64] = {0}; + //add value node for type + snprintf(buf, sizeof(buf), "%u", dataType.type); + SToken token = {.type = TSDB_DATA_TYPE_TINYINT, .n = strlen(buf), .z = buf}; + SNode* pNode = createValueNode(pCxt, token.type, &token); + addNodeToList(pCxt, pList, pNode); + + //add value node for bytes + memset(buf, 0, sizeof(buf)); + snprintf(buf, sizeof(buf), "%u", dataType.bytes); + token.type = TSDB_DATA_TYPE_BIGINT; + token.n = strlen(buf); + token.z = buf; + pNode = createValueNode(pCxt, token.type, &token); + addNodeToList(pCxt, pList, pNode); + + return pList; +} + SNode* createValueNode(SAstCreateContext* pCxt, int32_t dataType, const SToken* pLiteral) { SValueNode* val = (SValueNode*)nodesMakeNode(QUERY_NODE_VALUE); CHECK_OUT_OF_MEM(val); diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 05362dbf97959cba1cdf13d33452ee4e000377d1..a8f764f0e166a158a7590afde11570025026b2f6 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -132,17 +132,18 @@ typedef union { #define ParseCTX_PARAM #define ParseCTX_FETCH #define ParseCTX_STORE -#define YYNSTATE 544 -#define YYNRULE 408 +#define YYNSTATE 547 +#define YYNRULE 409 +#define YYNRULE_WITH_ACTION 409 #define YYNTOKEN 207 -#define YY_MAX_SHIFT 543 -#define YY_MIN_SHIFTREDUCE 802 -#define YY_MAX_SHIFTREDUCE 1209 -#define YY_ERROR_ACTION 1210 -#define YY_ACCEPT_ACTION 1211 -#define YY_NO_ACTION 1212 -#define YY_MIN_REDUCE 1213 -#define YY_MAX_REDUCE 1620 +#define YY_MAX_SHIFT 546 +#define YY_MIN_SHIFTREDUCE 806 +#define YY_MAX_SHIFTREDUCE 1214 +#define YY_ERROR_ACTION 1215 +#define YY_ACCEPT_ACTION 1216 +#define YY_NO_ACTION 1217 +#define YY_MIN_REDUCE 1218 +#define YY_MAX_REDUCE 1626 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -209,161 +210,161 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (1523) +#define YY_ACTTAB_COUNT (1529) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 25, 193, 1473, 1322, 255, 446, 1489, 459, 267, 310, - /* 10 */ 275, 1422, 31, 29, 1469, 1476, 308, 1413, 1415, 1449, - /* 20 */ 264, 1473, 1046, 272, 427, 32, 30, 28, 27, 26, - /* 30 */ 1505, 21, 1333, 1469, 1475, 304, 458, 443, 1044, 236, - /* 40 */ 1473, 32, 30, 28, 27, 26, 1068, 445, 23, 100, - /* 50 */ 11, 1460, 1469, 1475, 1489, 287, 431, 1051, 32, 30, - /* 60 */ 28, 27, 26, 31, 29, 1152, 1599, 227, 1490, 1491, - /* 70 */ 1494, 264, 215, 1046, 1, 1363, 31, 29, 1505, 130, - /* 80 */ 1552, 136, 98, 1597, 264, 443, 1046, 1599, 1166, 1044, - /* 90 */ 52, 429, 126, 1545, 1546, 445, 1550, 540, 1549, 1460, - /* 100 */ 130, 11, 1044, 96, 1597, 1069, 1211, 50, 1051, 1045, - /* 110 */ 49, 1328, 378, 377, 11, 70, 1490, 1491, 1494, 1538, - /* 120 */ 458, 1051, 345, 1537, 1534, 1, 1214, 928, 482, 481, - /* 130 */ 480, 932, 479, 934, 935, 478, 937, 475, 1, 943, - /* 140 */ 472, 945, 946, 469, 466, 1047, 485, 84, 540, 1324, - /* 150 */ 83, 82, 81, 80, 79, 78, 77, 76, 75, 280, - /* 160 */ 1045, 540, 1050, 1070, 1071, 1096, 1097, 1098, 1099, 1100, - /* 170 */ 1101, 1102, 1103, 1045, 12, 1046, 459, 1066, 163, 31, - /* 180 */ 29, 116, 369, 1225, 131, 309, 380, 264, 374, 1046, - /* 190 */ 1599, 1044, 379, 403, 1460, 97, 1047, 375, 373, 156, - /* 200 */ 376, 1333, 154, 130, 371, 1044, 303, 1597, 302, 1047, - /* 210 */ 1051, 394, 458, 1050, 1070, 1071, 1096, 1097, 1098, 1099, - /* 220 */ 1100, 1101, 1102, 1103, 1051, 417, 1050, 1070, 1071, 1096, - /* 230 */ 1097, 1098, 1099, 1100, 1101, 1102, 1103, 404, 459, 1176, - /* 240 */ 131, 7, 1599, 31, 29, 444, 131, 72, 1070, 1071, - /* 250 */ 540, 264, 459, 1046, 366, 130, 890, 31, 29, 1597, - /* 260 */ 1072, 317, 1045, 1333, 540, 264, 12, 1046, 1599, 1044, - /* 270 */ 414, 1174, 1175, 1177, 1178, 892, 1045, 1333, 52, 422, - /* 280 */ 418, 130, 1489, 1044, 131, 1597, 84, 1599, 1051, 83, - /* 290 */ 82, 81, 80, 79, 78, 77, 76, 75, 1047, 1329, - /* 300 */ 1598, 331, 1051, 65, 1597, 7, 1505, 32, 30, 28, - /* 310 */ 27, 26, 1047, 443, 1505, 1050, 117, 101, 1236, 7, - /* 320 */ 1291, 443, 421, 445, 1325, 1489, 1311, 1460, 540, 1050, - /* 330 */ 1070, 1071, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, - /* 340 */ 1045, 131, 540, 118, 1490, 1491, 1494, 140, 139, 1505, - /* 350 */ 235, 131, 1066, 420, 1045, 459, 443, 121, 494, 324, - /* 360 */ 459, 1552, 336, 1460, 318, 1067, 445, 427, 1373, 344, - /* 370 */ 1460, 337, 1380, 263, 1235, 345, 1047, 188, 254, 1548, - /* 380 */ 1333, 432, 1612, 1378, 1309, 1333, 231, 1490, 1491, 1494, - /* 390 */ 1047, 496, 100, 1050, 1070, 1071, 1096, 1097, 1098, 1099, - /* 400 */ 1100, 1101, 1102, 1103, 28, 27, 26, 1050, 1070, 1071, - /* 410 */ 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 459, 1460, - /* 420 */ 31, 29, 434, 1380, 268, 98, 1234, 1330, 264, 269, - /* 430 */ 1046, 1262, 114, 494, 1378, 127, 1545, 1546, 1410, 1550, - /* 440 */ 1335, 536, 535, 1333, 335, 138, 1044, 330, 329, 328, - /* 450 */ 327, 326, 59, 323, 322, 321, 320, 316, 315, 314, - /* 460 */ 313, 312, 311, 459, 1151, 1051, 32, 30, 28, 27, - /* 470 */ 26, 1460, 456, 1326, 1318, 32, 30, 28, 27, 26, - /* 480 */ 248, 1320, 1, 516, 515, 514, 513, 279, 1333, 512, - /* 490 */ 511, 510, 102, 505, 504, 503, 502, 501, 500, 499, - /* 500 */ 498, 108, 1489, 459, 238, 540, 163, 508, 114, 459, - /* 510 */ 369, 298, 72, 238, 446, 274, 1336, 1045, 457, 372, - /* 520 */ 1423, 1316, 249, 114, 247, 246, 1505, 368, 1333, 1084, - /* 530 */ 1213, 1335, 371, 443, 1333, 1073, 277, 1115, 32, 30, - /* 540 */ 28, 27, 26, 445, 114, 1292, 1115, 1460, 839, 1117, - /* 550 */ 838, 1552, 1335, 1047, 93, 92, 91, 90, 89, 88, - /* 560 */ 87, 86, 85, 224, 1490, 1491, 1494, 1121, 840, 1547, - /* 570 */ 1050, 1070, 1071, 1096, 1097, 1098, 1099, 1100, 1101, 1102, - /* 580 */ 1103, 385, 9, 8, 459, 1116, 1380, 509, 507, 459, - /* 590 */ 115, 22, 276, 207, 1116, 221, 393, 1378, 278, 1480, - /* 600 */ 497, 1084, 1305, 1120, 1233, 838, 1232, 219, 1265, 1333, - /* 610 */ 165, 1478, 1120, 388, 1333, 1380, 1231, 6, 382, 433, - /* 620 */ 141, 364, 1230, 1489, 164, 1229, 1414, 24, 262, 1110, - /* 630 */ 1111, 1112, 1113, 1114, 1118, 1119, 24, 262, 1110, 1111, - /* 640 */ 1112, 1113, 1114, 1118, 1119, 1150, 168, 1505, 1380, 1460, - /* 650 */ 42, 1460, 174, 41, 443, 435, 1128, 1228, 1227, 1379, - /* 660 */ 380, 1460, 374, 484, 445, 1054, 379, 1460, 1460, 97, - /* 670 */ 1460, 375, 373, 431, 376, 1557, 1147, 1489, 1224, 1223, - /* 680 */ 1222, 1221, 295, 67, 68, 1490, 1491, 1494, 1538, 1220, - /* 690 */ 271, 270, 237, 1534, 392, 9, 8, 297, 1219, 1218, - /* 700 */ 1059, 1505, 1460, 1460, 1599, 1217, 438, 390, 430, 1216, - /* 710 */ 48, 47, 307, 402, 135, 1252, 1052, 130, 445, 301, - /* 720 */ 1226, 1597, 1460, 1460, 1460, 1460, 1460, 244, 1489, 293, - /* 730 */ 1053, 289, 285, 132, 1460, 1051, 1057, 381, 69, 1490, - /* 740 */ 1491, 1494, 1538, 1460, 1460, 864, 257, 1534, 125, 1159, - /* 750 */ 1460, 543, 1505, 190, 1460, 1068, 131, 1147, 158, 430, - /* 760 */ 189, 157, 1208, 1209, 865, 212, 410, 1565, 95, 445, - /* 770 */ 442, 1489, 1247, 1460, 532, 460, 528, 524, 520, 211, - /* 780 */ 415, 160, 162, 1489, 159, 161, 436, 1055, 1245, 69, - /* 790 */ 1490, 1491, 1494, 1538, 383, 1505, 1489, 257, 1534, 125, - /* 800 */ 340, 1056, 443, 1374, 401, 66, 183, 1505, 205, 106, - /* 810 */ 386, 363, 445, 406, 443, 44, 1460, 1568, 1566, 1173, - /* 820 */ 1505, 177, 33, 1060, 445, 179, 1122, 443, 1460, 428, - /* 830 */ 1506, 1489, 229, 1490, 1491, 1494, 192, 445, 455, 439, - /* 840 */ 1063, 1460, 2, 1489, 69, 1490, 1491, 1494, 1538, 1066, - /* 850 */ 282, 243, 257, 1534, 1611, 1505, 286, 70, 1490, 1491, - /* 860 */ 1494, 1538, 443, 1572, 890, 409, 1535, 1505, 170, 33, - /* 870 */ 64, 33, 445, 1081, 443, 1013, 1460, 196, 245, 1022, - /* 880 */ 61, 198, 1107, 1030, 445, 167, 94, 104, 1460, 213, - /* 890 */ 451, 204, 69, 1490, 1491, 1494, 1538, 319, 1412, 137, - /* 900 */ 257, 1534, 1611, 1489, 69, 1490, 1491, 1494, 1538, 325, - /* 910 */ 332, 1595, 257, 1534, 1611, 106, 333, 151, 427, 921, - /* 920 */ 124, 334, 338, 1556, 339, 1077, 362, 1505, 358, 354, - /* 930 */ 350, 150, 44, 464, 443, 1076, 916, 949, 104, 1489, - /* 940 */ 143, 105, 953, 100, 445, 959, 341, 106, 1460, 342, - /* 950 */ 1489, 958, 32, 30, 28, 27, 26, 53, 1075, 146, - /* 960 */ 148, 343, 431, 1505, 70, 1490, 1491, 1494, 1538, 365, - /* 970 */ 443, 51, 441, 1534, 1505, 104, 98, 346, 149, 107, - /* 980 */ 445, 443, 1074, 427, 1460, 74, 186, 1545, 426, 367, - /* 990 */ 425, 445, 1323, 1599, 370, 1460, 153, 1319, 411, 155, - /* 1000 */ 230, 1490, 1491, 1494, 1489, 109, 130, 110, 100, 1489, - /* 1010 */ 1597, 231, 1490, 1491, 1494, 1321, 147, 1317, 120, 253, - /* 1020 */ 144, 111, 408, 112, 396, 395, 397, 405, 1505, 169, - /* 1030 */ 398, 407, 423, 1505, 172, 443, 1073, 142, 1489, 416, - /* 1040 */ 443, 98, 449, 1579, 1051, 445, 1569, 175, 413, 1460, - /* 1050 */ 445, 128, 1545, 1546, 1460, 1550, 256, 261, 178, 419, - /* 1060 */ 412, 424, 1505, 5, 1489, 118, 1490, 1491, 1494, 443, - /* 1070 */ 231, 1490, 1491, 1494, 4, 1559, 1578, 182, 1206, 445, - /* 1080 */ 1147, 123, 99, 1460, 1072, 34, 265, 1553, 1505, 184, - /* 1090 */ 185, 258, 440, 437, 1614, 443, 17, 447, 191, 231, - /* 1100 */ 1490, 1491, 1494, 1520, 1613, 445, 1489, 452, 1421, 1460, - /* 1110 */ 1596, 1489, 448, 200, 1420, 266, 214, 1489, 453, 1334, - /* 1120 */ 454, 202, 60, 58, 462, 232, 1490, 1491, 1494, 491, - /* 1130 */ 1505, 539, 216, 210, 1306, 1505, 220, 443, 218, 40, - /* 1140 */ 222, 1505, 443, 1454, 1453, 1205, 281, 445, 443, 1310, - /* 1150 */ 223, 1460, 445, 1450, 283, 284, 1460, 1040, 445, 1489, - /* 1160 */ 1041, 133, 1460, 288, 1448, 290, 291, 225, 1490, 1491, - /* 1170 */ 1494, 1489, 233, 1490, 1491, 1494, 292, 1447, 226, 1490, - /* 1180 */ 1491, 1494, 1446, 1505, 1489, 294, 296, 1437, 134, 299, - /* 1190 */ 443, 300, 1025, 1431, 1024, 1505, 1430, 306, 305, 1429, - /* 1200 */ 445, 1308, 443, 1428, 1460, 1405, 996, 1404, 1505, 1403, - /* 1210 */ 208, 1402, 445, 1489, 490, 443, 1460, 1401, 1400, 1399, - /* 1220 */ 234, 1490, 1491, 1494, 1398, 445, 1397, 1396, 1395, 1460, - /* 1230 */ 1394, 1393, 1502, 1490, 1491, 1494, 492, 1505, 1392, 1489, - /* 1240 */ 1391, 103, 1390, 1389, 443, 1501, 1490, 1491, 1494, 1388, - /* 1250 */ 1387, 1386, 1385, 1384, 445, 489, 488, 487, 1460, 486, - /* 1260 */ 1383, 998, 208, 1505, 1382, 1489, 490, 1381, 1264, 1445, - /* 1270 */ 443, 1439, 1427, 1489, 1500, 1490, 1491, 1494, 1418, 145, - /* 1280 */ 445, 1312, 1263, 857, 1460, 1261, 347, 349, 492, 1505, - /* 1290 */ 348, 1259, 352, 351, 1257, 355, 443, 1505, 1255, 1489, - /* 1300 */ 241, 1490, 1491, 1494, 443, 353, 445, 489, 488, 487, - /* 1310 */ 1460, 486, 356, 357, 445, 359, 360, 361, 1460, 1244, - /* 1320 */ 1243, 1240, 1314, 1505, 73, 966, 240, 1490, 1491, 1494, - /* 1330 */ 443, 964, 508, 1313, 242, 1490, 1491, 1494, 889, 152, - /* 1340 */ 445, 1489, 888, 887, 1460, 886, 506, 1253, 883, 882, - /* 1350 */ 250, 1248, 251, 384, 1246, 387, 252, 1239, 389, 1238, - /* 1360 */ 239, 1490, 1491, 1494, 391, 1505, 71, 1444, 166, 1032, - /* 1370 */ 43, 1438, 443, 113, 399, 1426, 1425, 1417, 171, 122, - /* 1380 */ 54, 1478, 445, 400, 37, 14, 1460, 3, 176, 33, - /* 1390 */ 1172, 173, 15, 56, 38, 35, 10, 8, 119, 180, - /* 1400 */ 19, 55, 228, 1490, 1491, 1494, 1194, 1165, 181, 20, - /* 1410 */ 1193, 259, 1198, 1416, 1144, 1143, 36, 1197, 260, 1199, - /* 1420 */ 16, 450, 203, 1061, 13, 1108, 201, 187, 1082, 129, - /* 1430 */ 18, 463, 273, 195, 194, 1170, 197, 199, 45, 57, - /* 1440 */ 467, 1477, 470, 39, 473, 61, 476, 927, 961, 957, - /* 1450 */ 955, 871, 206, 950, 1260, 461, 465, 878, 877, 947, - /* 1460 */ 468, 876, 944, 938, 471, 474, 855, 936, 493, 896, - /* 1470 */ 477, 875, 874, 873, 62, 872, 891, 868, 893, 46, - /* 1480 */ 942, 63, 867, 866, 941, 209, 483, 863, 495, 862, - /* 1490 */ 861, 860, 518, 517, 1258, 522, 940, 939, 521, 1256, - /* 1500 */ 519, 523, 525, 526, 527, 1254, 529, 530, 531, 1242, - /* 1510 */ 533, 534, 960, 1241, 1237, 537, 538, 1212, 1048, 217, - /* 1520 */ 1212, 541, 542, + /* 0 */ 25, 194, 1478, 1327, 257, 449, 1494, 462, 269, 312, + /* 10 */ 277, 1427, 30, 28, 1474, 1481, 310, 1418, 1420, 1454, + /* 20 */ 266, 1478, 1050, 274, 429, 32, 31, 29, 27, 26, + /* 30 */ 1511, 21, 1338, 1474, 1480, 306, 461, 445, 1048, 238, + /* 40 */ 1478, 32, 31, 29, 27, 26, 1072, 448, 23, 100, + /* 50 */ 11, 1465, 1474, 1480, 1494, 289, 433, 1055, 32, 31, + /* 60 */ 29, 27, 26, 30, 28, 1157, 1605, 228, 1495, 1496, + /* 70 */ 1500, 266, 216, 1050, 1, 1368, 30, 28, 1511, 131, + /* 80 */ 1558, 137, 98, 1603, 266, 445, 1050, 1605, 1171, 1048, + /* 90 */ 52, 431, 127, 1551, 1552, 448, 1556, 543, 1555, 1465, + /* 100 */ 131, 11, 1048, 96, 1603, 1073, 1216, 50, 1055, 1049, + /* 110 */ 49, 1333, 380, 379, 11, 70, 1495, 1496, 1500, 1544, + /* 120 */ 461, 1055, 347, 1543, 1540, 1, 1219, 932, 485, 484, + /* 130 */ 483, 936, 482, 938, 939, 481, 941, 478, 1, 947, + /* 140 */ 475, 949, 950, 472, 469, 1051, 488, 84, 543, 1329, + /* 150 */ 83, 82, 81, 80, 79, 78, 77, 76, 75, 282, + /* 160 */ 1049, 543, 1054, 1074, 1075, 1101, 1102, 1103, 1104, 1105, + /* 170 */ 1106, 1107, 1108, 1049, 12, 1050, 462, 1070, 164, 30, + /* 180 */ 28, 117, 371, 1230, 132, 311, 382, 266, 376, 1050, + /* 190 */ 1605, 1048, 381, 405, 1465, 97, 1051, 377, 375, 157, + /* 200 */ 378, 1338, 155, 131, 373, 1048, 305, 1603, 304, 1051, + /* 210 */ 1055, 396, 461, 1054, 1074, 1075, 1101, 1102, 1103, 1104, + /* 220 */ 1105, 1106, 1107, 1108, 1055, 419, 1054, 1074, 1075, 1101, + /* 230 */ 1102, 1103, 1104, 1105, 1106, 1107, 1108, 406, 462, 1181, + /* 240 */ 132, 7, 1605, 30, 28, 447, 132, 72, 1074, 1075, + /* 250 */ 543, 266, 462, 1050, 368, 131, 894, 30, 28, 1603, + /* 260 */ 1076, 319, 1049, 1338, 543, 266, 12, 1050, 1605, 1048, + /* 270 */ 416, 1179, 1180, 1182, 1183, 896, 1049, 1338, 52, 424, + /* 280 */ 420, 131, 1494, 1048, 132, 1603, 84, 1605, 1055, 83, + /* 290 */ 82, 81, 80, 79, 78, 77, 76, 75, 1051, 1334, + /* 300 */ 1604, 333, 1055, 65, 1603, 7, 1511, 32, 31, 29, + /* 310 */ 27, 26, 1051, 445, 1511, 1054, 118, 101, 1241, 7, + /* 320 */ 1296, 445, 423, 448, 1330, 1494, 1316, 1465, 543, 1054, + /* 330 */ 1074, 1075, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, + /* 340 */ 1049, 132, 543, 119, 1495, 1496, 1500, 141, 140, 1511, + /* 350 */ 237, 132, 1070, 422, 1049, 462, 445, 122, 497, 326, + /* 360 */ 462, 1558, 338, 1465, 320, 1071, 448, 429, 1378, 346, + /* 370 */ 1465, 339, 1385, 265, 1240, 347, 1051, 189, 256, 1554, + /* 380 */ 1338, 434, 1618, 1383, 59, 1338, 229, 1495, 1496, 1500, + /* 390 */ 1051, 499, 100, 1054, 1074, 1075, 1101, 1102, 1103, 1104, + /* 400 */ 1105, 1106, 1107, 1108, 843, 1331, 842, 1054, 1074, 1075, + /* 410 */ 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 462, 1465, + /* 420 */ 30, 28, 1385, 1385, 844, 98, 1239, 1335, 266, 271, + /* 430 */ 1050, 1267, 114, 1419, 1383, 128, 1551, 1552, 1415, 1556, + /* 440 */ 29, 27, 26, 1338, 337, 139, 1048, 332, 331, 330, + /* 450 */ 329, 328, 1485, 325, 324, 323, 322, 318, 317, 316, + /* 460 */ 315, 314, 313, 462, 1483, 1055, 32, 31, 29, 27, + /* 470 */ 26, 1465, 459, 539, 538, 32, 31, 29, 27, 26, + /* 480 */ 250, 1323, 1, 519, 518, 517, 516, 281, 1338, 515, + /* 490 */ 514, 513, 102, 508, 507, 506, 505, 504, 503, 502, + /* 500 */ 501, 108, 1494, 462, 241, 543, 164, 511, 115, 462, + /* 510 */ 371, 300, 72, 241, 449, 270, 1341, 1049, 460, 374, + /* 520 */ 1428, 1325, 251, 115, 249, 248, 1511, 370, 1338, 1089, + /* 530 */ 1218, 1340, 373, 445, 1338, 842, 276, 1120, 32, 31, + /* 540 */ 29, 27, 26, 448, 115, 404, 1120, 1465, 9, 8, + /* 550 */ 1558, 366, 1340, 1051, 93, 92, 91, 90, 89, 88, + /* 560 */ 87, 86, 85, 225, 1495, 1496, 1500, 1314, 1553, 1122, + /* 570 */ 1054, 1074, 1075, 1101, 1102, 1103, 1104, 1105, 1106, 1107, + /* 580 */ 1108, 387, 1164, 279, 462, 1121, 1385, 1126, 1072, 462, + /* 590 */ 116, 115, 278, 208, 1121, 222, 395, 1383, 280, 1340, + /* 600 */ 1238, 1089, 868, 1125, 1237, 6, 1236, 220, 1270, 1338, + /* 610 */ 166, 22, 1125, 390, 1338, 1385, 497, 500, 384, 1310, + /* 620 */ 142, 869, 1133, 1494, 165, 1235, 1384, 24, 264, 1115, + /* 630 */ 1116, 1117, 1118, 1119, 1123, 1124, 24, 264, 1115, 1116, + /* 640 */ 1117, 1118, 1119, 1123, 1124, 1465, 1077, 1511, 1156, 1465, + /* 650 */ 42, 1465, 1234, 41, 445, 32, 31, 29, 27, 26, + /* 660 */ 382, 1233, 376, 106, 448, 1321, 381, 408, 1465, 97, + /* 670 */ 1465, 377, 375, 433, 378, 512, 510, 1494, 1232, 1229, + /* 680 */ 1228, 1227, 436, 67, 68, 1495, 1496, 1500, 1544, 1226, + /* 690 */ 273, 272, 240, 1540, 394, 9, 8, 1465, 1225, 1224, + /* 700 */ 1063, 1511, 1563, 1152, 1605, 1223, 1465, 392, 432, 1222, + /* 710 */ 48, 47, 309, 1221, 136, 297, 1056, 131, 448, 303, + /* 720 */ 437, 1603, 1465, 1465, 1465, 1465, 1465, 246, 1494, 295, + /* 730 */ 299, 291, 287, 133, 1465, 1055, 440, 444, 69, 1495, + /* 740 */ 1496, 1500, 1544, 1465, 1465, 1152, 259, 1540, 126, 169, + /* 750 */ 1465, 546, 1511, 44, 1465, 1231, 132, 1178, 1465, 432, + /* 760 */ 190, 159, 446, 175, 158, 213, 412, 1571, 95, 448, + /* 770 */ 64, 1494, 1257, 1465, 535, 463, 531, 527, 523, 212, + /* 780 */ 61, 161, 163, 1494, 160, 162, 487, 1059, 1252, 69, + /* 790 */ 1495, 1496, 1500, 1544, 383, 1511, 1494, 259, 1540, 126, + /* 800 */ 1250, 1297, 445, 1213, 1214, 66, 417, 1511, 206, 191, + /* 810 */ 385, 342, 448, 178, 445, 33, 1465, 180, 1572, 1127, + /* 820 */ 1511, 403, 388, 1064, 448, 1379, 33, 445, 1465, 1155, + /* 830 */ 1085, 1494, 231, 1495, 1496, 1500, 184, 448, 458, 1058, + /* 840 */ 1067, 1465, 365, 1494, 69, 1495, 1496, 1500, 1544, 1112, + /* 850 */ 1574, 438, 259, 1540, 1617, 1511, 1512, 70, 1495, 1496, + /* 860 */ 1500, 1544, 445, 1578, 430, 411, 1541, 1511, 171, 441, + /* 870 */ 1057, 193, 448, 1070, 445, 2, 1465, 33, 284, 435, + /* 880 */ 245, 1017, 197, 1034, 448, 168, 199, 94, 1465, 894, + /* 890 */ 247, 454, 69, 1495, 1496, 1500, 1544, 1026, 214, 288, + /* 900 */ 259, 1540, 1617, 1494, 69, 1495, 1496, 1500, 1544, 138, + /* 910 */ 1061, 1601, 259, 1540, 1617, 104, 321, 152, 429, 205, + /* 920 */ 125, 106, 1417, 1562, 327, 925, 364, 1511, 360, 356, + /* 930 */ 352, 151, 44, 467, 445, 335, 920, 953, 104, 1494, + /* 940 */ 340, 1060, 957, 100, 448, 334, 336, 1081, 1465, 341, + /* 950 */ 1494, 1080, 32, 31, 29, 27, 26, 53, 344, 144, + /* 960 */ 149, 1079, 433, 1511, 70, 1495, 1496, 1500, 1544, 343, + /* 970 */ 445, 345, 443, 1540, 1511, 105, 98, 147, 51, 963, + /* 980 */ 448, 445, 348, 429, 1465, 106, 187, 1551, 428, 962, + /* 990 */ 427, 448, 104, 1605, 150, 1465, 107, 1078, 413, 367, + /* 1000 */ 232, 1495, 1496, 1500, 1494, 369, 131, 1328, 100, 1494, + /* 1010 */ 1603, 233, 1495, 1496, 1500, 154, 148, 1324, 121, 156, + /* 1020 */ 145, 74, 372, 397, 109, 110, 1326, 1322, 1511, 111, + /* 1030 */ 112, 255, 425, 1511, 398, 445, 407, 143, 1494, 399, + /* 1040 */ 445, 98, 400, 1077, 170, 448, 173, 418, 409, 1465, + /* 1050 */ 448, 129, 1551, 1552, 1465, 1556, 1575, 263, 1585, 452, + /* 1060 */ 410, 1055, 1511, 1584, 1494, 119, 1495, 1496, 1500, 445, + /* 1070 */ 233, 1495, 1496, 1500, 176, 415, 5, 179, 1211, 448, + /* 1080 */ 258, 421, 1565, 1465, 426, 414, 267, 99, 1511, 4, + /* 1090 */ 1076, 1152, 1559, 124, 183, 445, 34, 185, 260, 233, + /* 1100 */ 1495, 1496, 1500, 442, 1619, 448, 1494, 439, 17, 1465, + /* 1110 */ 456, 1494, 186, 1526, 1426, 450, 192, 1494, 455, 1602, + /* 1120 */ 451, 1620, 1425, 201, 268, 234, 1495, 1496, 1500, 215, + /* 1130 */ 1511, 457, 203, 58, 1339, 1511, 60, 445, 217, 465, + /* 1140 */ 494, 1511, 445, 1311, 211, 1210, 542, 448, 445, 1315, + /* 1150 */ 40, 1465, 448, 223, 224, 219, 1465, 1459, 448, 1494, + /* 1160 */ 221, 1458, 1465, 283, 1455, 285, 286, 226, 1495, 1496, + /* 1170 */ 1500, 1494, 235, 1495, 1496, 1500, 1044, 1045, 227, 1495, + /* 1180 */ 1496, 1500, 134, 1511, 1494, 290, 1453, 1452, 292, 293, + /* 1190 */ 445, 294, 296, 1451, 298, 1511, 1442, 135, 301, 302, + /* 1200 */ 448, 1313, 445, 1029, 1465, 1028, 1436, 1435, 1511, 308, + /* 1210 */ 209, 307, 448, 1494, 493, 445, 1465, 1434, 1433, 1000, + /* 1220 */ 236, 1495, 1496, 1500, 1410, 448, 1409, 1408, 1407, 1465, + /* 1230 */ 1406, 1405, 1508, 1495, 1496, 1500, 495, 1511, 1404, 1494, + /* 1240 */ 1403, 1402, 1401, 1400, 445, 1507, 1495, 1496, 1500, 1399, + /* 1250 */ 1398, 1397, 1396, 1395, 448, 492, 491, 490, 1465, 489, + /* 1260 */ 103, 1394, 209, 1511, 1393, 1494, 493, 1392, 1391, 1390, + /* 1270 */ 445, 1389, 1388, 1494, 243, 1495, 1496, 1500, 1002, 1387, + /* 1280 */ 448, 1386, 1269, 1450, 1465, 1444, 1432, 1423, 495, 1511, + /* 1290 */ 146, 1317, 1268, 1266, 350, 861, 445, 1511, 349, 1494, + /* 1300 */ 1506, 1495, 1496, 1500, 445, 351, 448, 492, 491, 490, + /* 1310 */ 1465, 489, 1264, 353, 448, 1262, 354, 355, 1465, 359, + /* 1320 */ 1260, 363, 357, 1511, 358, 362, 244, 1495, 1496, 1500, + /* 1330 */ 445, 1249, 361, 1248, 242, 1495, 1496, 1500, 1245, 1319, + /* 1340 */ 448, 1494, 73, 970, 1465, 968, 153, 1318, 511, 893, + /* 1350 */ 1258, 892, 891, 1253, 890, 887, 886, 252, 253, 1251, + /* 1360 */ 239, 1495, 1496, 1500, 386, 1511, 509, 254, 389, 1244, + /* 1370 */ 391, 1243, 445, 393, 71, 1449, 43, 167, 1036, 1443, + /* 1380 */ 401, 1431, 448, 113, 1430, 402, 1465, 1422, 123, 172, + /* 1390 */ 14, 15, 37, 54, 1483, 174, 177, 3, 33, 38, + /* 1400 */ 182, 35, 230, 1495, 1496, 1500, 56, 1177, 120, 10, + /* 1410 */ 188, 181, 1199, 8, 20, 19, 1198, 1170, 55, 1113, + /* 1420 */ 261, 1203, 1421, 1202, 1149, 453, 36, 1148, 262, 202, + /* 1430 */ 204, 16, 1204, 466, 1065, 275, 470, 1087, 1086, 13, + /* 1440 */ 18, 198, 130, 196, 473, 1175, 200, 195, 61, 931, + /* 1450 */ 45, 57, 476, 479, 965, 959, 875, 540, 961, 1482, + /* 1460 */ 541, 544, 39, 882, 881, 468, 207, 954, 951, 948, + /* 1470 */ 471, 1265, 859, 474, 464, 942, 940, 477, 480, 496, + /* 1480 */ 900, 880, 879, 878, 877, 876, 895, 62, 897, 872, + /* 1490 */ 871, 870, 46, 63, 867, 866, 498, 486, 865, 210, + /* 1500 */ 1263, 864, 520, 521, 946, 525, 945, 944, 943, 522, + /* 1510 */ 524, 526, 1261, 528, 529, 1259, 530, 532, 533, 534, + /* 1520 */ 1247, 536, 537, 1246, 1242, 1052, 964, 218, 545, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 276, 277, 255, 235, 238, 251, 210, 216, 254, 216, @@ -404,121 +405,121 @@ static const YYCODETYPE yy_lookahead[] = { /* 350 */ 18, 184, 20, 273, 109, 216, 241, 233, 49, 27, /* 360 */ 216, 269, 30, 255, 225, 20, 251, 216, 244, 225, /* 370 */ 255, 39, 234, 258, 210, 49, 145, 137, 240, 287, - /* 380 */ 241, 309, 310, 245, 0, 241, 271, 272, 273, 274, + /* 380 */ 241, 309, 310, 245, 215, 241, 271, 272, 273, 274, /* 390 */ 145, 57, 241, 162, 163, 164, 165, 166, 167, 168, - /* 400 */ 169, 170, 171, 172, 14, 15, 16, 162, 163, 164, + /* 400 */ 169, 170, 171, 172, 20, 236, 22, 162, 163, 164, /* 410 */ 165, 166, 167, 168, 169, 170, 171, 172, 216, 255, - /* 420 */ 12, 13, 3, 234, 226, 274, 210, 225, 20, 240, - /* 430 */ 22, 0, 234, 49, 245, 284, 285, 286, 241, 288, - /* 440 */ 242, 213, 214, 241, 112, 248, 38, 115, 116, 117, - /* 450 */ 118, 119, 215, 121, 122, 123, 124, 125, 126, 127, - /* 460 */ 128, 129, 130, 216, 4, 57, 12, 13, 14, 15, - /* 470 */ 16, 255, 225, 236, 235, 12, 13, 14, 15, 16, + /* 420 */ 12, 13, 234, 234, 40, 274, 210, 225, 20, 240, + /* 430 */ 22, 0, 137, 245, 245, 284, 285, 286, 241, 288, + /* 440 */ 14, 15, 16, 241, 112, 248, 38, 115, 116, 117, + /* 450 */ 118, 119, 74, 121, 122, 123, 124, 125, 126, 127, + /* 460 */ 128, 129, 130, 216, 86, 57, 12, 13, 14, 15, + /* 470 */ 16, 255, 225, 213, 214, 12, 13, 14, 15, 16, /* 480 */ 35, 235, 74, 52, 53, 54, 55, 56, 241, 58, /* 490 */ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, /* 500 */ 69, 70, 210, 216, 50, 97, 61, 71, 234, 216, /* 510 */ 65, 75, 225, 50, 251, 226, 242, 109, 225, 232, /* 520 */ 257, 235, 77, 234, 79, 80, 234, 82, 241, 75, - /* 530 */ 0, 242, 87, 241, 241, 20, 226, 83, 12, 13, - /* 540 */ 14, 15, 16, 251, 234, 223, 83, 255, 20, 131, - /* 550 */ 22, 269, 242, 145, 24, 25, 26, 27, 28, 29, - /* 560 */ 30, 31, 32, 271, 272, 273, 274, 149, 40, 287, + /* 530 */ 0, 242, 87, 241, 241, 22, 226, 83, 12, 13, + /* 540 */ 14, 15, 16, 251, 234, 263, 83, 255, 1, 2, + /* 550 */ 269, 38, 242, 145, 24, 25, 26, 27, 28, 29, + /* 560 */ 30, 31, 32, 271, 272, 273, 274, 0, 287, 131, /* 570 */ 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, - /* 580 */ 172, 4, 1, 2, 216, 131, 234, 220, 221, 216, - /* 590 */ 18, 173, 240, 225, 131, 23, 19, 245, 225, 74, - /* 600 */ 222, 75, 224, 149, 210, 22, 210, 35, 0, 241, - /* 610 */ 33, 86, 149, 36, 241, 234, 210, 43, 41, 200, - /* 620 */ 48, 38, 210, 210, 47, 210, 245, 173, 174, 175, + /* 580 */ 172, 4, 14, 226, 216, 131, 234, 149, 20, 216, + /* 590 */ 18, 234, 240, 225, 131, 23, 19, 245, 225, 242, + /* 600 */ 210, 75, 38, 149, 210, 43, 210, 35, 0, 241, + /* 610 */ 33, 173, 149, 36, 241, 234, 49, 222, 41, 224, + /* 620 */ 48, 57, 75, 210, 47, 210, 245, 173, 174, 175, /* 630 */ 176, 177, 178, 179, 180, 181, 173, 174, 175, 176, - /* 640 */ 177, 178, 179, 180, 181, 185, 235, 234, 234, 255, - /* 650 */ 73, 255, 137, 76, 241, 71, 75, 210, 210, 245, - /* 660 */ 52, 255, 54, 235, 251, 38, 58, 255, 255, 61, - /* 670 */ 255, 63, 64, 260, 66, 182, 183, 210, 210, 210, - /* 680 */ 210, 210, 141, 111, 271, 272, 273, 274, 275, 210, - /* 690 */ 12, 13, 279, 280, 21, 1, 2, 156, 210, 210, - /* 700 */ 22, 234, 255, 255, 291, 210, 71, 34, 241, 210, - /* 710 */ 138, 139, 140, 263, 142, 0, 38, 304, 251, 147, - /* 720 */ 211, 308, 255, 255, 255, 255, 255, 155, 210, 157, - /* 730 */ 38, 159, 160, 161, 255, 57, 109, 22, 271, 272, - /* 740 */ 273, 274, 275, 255, 255, 38, 279, 280, 281, 14, - /* 750 */ 255, 19, 234, 311, 255, 20, 184, 183, 78, 241, - /* 760 */ 293, 81, 163, 164, 57, 33, 299, 300, 36, 251, - /* 770 */ 50, 210, 0, 255, 42, 97, 44, 45, 46, 47, - /* 780 */ 302, 78, 78, 210, 81, 81, 202, 109, 0, 271, + /* 640 */ 177, 178, 179, 180, 181, 255, 20, 234, 4, 255, + /* 650 */ 73, 255, 210, 76, 241, 12, 13, 14, 15, 16, + /* 660 */ 52, 210, 54, 71, 251, 235, 58, 75, 255, 61, + /* 670 */ 255, 63, 64, 260, 66, 220, 221, 210, 210, 210, + /* 680 */ 210, 210, 3, 111, 271, 272, 273, 274, 275, 210, + /* 690 */ 12, 13, 279, 280, 21, 1, 2, 255, 210, 210, + /* 700 */ 22, 234, 182, 183, 291, 210, 255, 34, 241, 210, + /* 710 */ 138, 139, 140, 210, 142, 141, 38, 304, 251, 147, + /* 720 */ 71, 308, 255, 255, 255, 255, 255, 155, 210, 157, + /* 730 */ 156, 159, 160, 161, 255, 57, 71, 50, 271, 272, + /* 740 */ 273, 274, 275, 255, 255, 183, 279, 280, 281, 235, + /* 750 */ 255, 19, 234, 71, 255, 211, 184, 75, 255, 241, + /* 760 */ 293, 78, 235, 137, 81, 33, 299, 300, 36, 251, + /* 770 */ 74, 210, 0, 255, 42, 97, 44, 45, 46, 47, + /* 780 */ 84, 78, 78, 210, 81, 81, 235, 109, 0, 271, /* 790 */ 272, 273, 274, 275, 22, 234, 210, 279, 280, 281, - /* 800 */ 251, 109, 241, 244, 251, 73, 296, 234, 76, 71, - /* 810 */ 22, 213, 251, 75, 241, 71, 255, 270, 300, 75, - /* 820 */ 234, 71, 71, 145, 251, 75, 75, 241, 255, 289, - /* 830 */ 234, 210, 271, 272, 273, 274, 305, 251, 106, 204, - /* 840 */ 162, 255, 292, 210, 271, 272, 273, 274, 275, 20, - /* 850 */ 216, 266, 279, 280, 281, 234, 36, 271, 272, 273, - /* 860 */ 274, 275, 241, 290, 38, 133, 280, 234, 136, 71, - /* 870 */ 74, 71, 251, 75, 241, 75, 255, 71, 220, 143, - /* 880 */ 84, 75, 162, 151, 251, 153, 71, 71, 255, 261, - /* 890 */ 75, 75, 271, 272, 273, 274, 275, 216, 216, 120, - /* 900 */ 279, 280, 281, 210, 271, 272, 273, 274, 275, 249, - /* 910 */ 247, 290, 279, 280, 281, 71, 131, 33, 216, 75, - /* 920 */ 36, 247, 216, 290, 265, 20, 42, 234, 44, 45, - /* 930 */ 46, 47, 71, 71, 241, 20, 75, 75, 71, 210, - /* 940 */ 218, 71, 75, 241, 251, 75, 259, 71, 255, 241, - /* 950 */ 210, 75, 12, 13, 14, 15, 16, 73, 20, 218, - /* 960 */ 76, 252, 260, 234, 271, 272, 273, 274, 275, 212, - /* 970 */ 241, 218, 279, 280, 234, 71, 274, 216, 218, 75, - /* 980 */ 251, 241, 20, 216, 255, 216, 284, 285, 286, 234, - /* 990 */ 288, 251, 234, 291, 220, 255, 234, 234, 258, 234, + /* 800 */ 0, 223, 241, 163, 164, 73, 302, 234, 76, 311, + /* 810 */ 22, 251, 251, 71, 241, 71, 255, 75, 300, 75, + /* 820 */ 234, 251, 22, 145, 251, 244, 71, 241, 255, 185, + /* 830 */ 75, 210, 271, 272, 273, 274, 296, 251, 106, 38, + /* 840 */ 162, 255, 213, 210, 271, 272, 273, 274, 275, 162, + /* 850 */ 270, 202, 279, 280, 281, 234, 234, 271, 272, 273, + /* 860 */ 274, 275, 241, 290, 289, 133, 280, 234, 136, 204, + /* 870 */ 38, 305, 251, 20, 241, 292, 255, 71, 216, 200, + /* 880 */ 266, 75, 71, 151, 251, 153, 75, 71, 255, 38, + /* 890 */ 220, 75, 271, 272, 273, 274, 275, 143, 261, 36, + /* 900 */ 279, 280, 281, 210, 271, 272, 273, 274, 275, 120, + /* 910 */ 109, 290, 279, 280, 281, 71, 216, 33, 216, 75, + /* 920 */ 36, 71, 216, 290, 249, 75, 42, 234, 44, 45, + /* 930 */ 46, 47, 71, 71, 241, 131, 75, 75, 71, 210, + /* 940 */ 216, 109, 75, 241, 251, 247, 247, 20, 255, 265, + /* 950 */ 210, 20, 12, 13, 14, 15, 16, 73, 241, 218, + /* 960 */ 76, 20, 260, 234, 271, 272, 273, 274, 275, 259, + /* 970 */ 241, 252, 279, 280, 234, 71, 274, 218, 218, 75, + /* 980 */ 251, 241, 216, 216, 255, 71, 284, 285, 286, 75, + /* 990 */ 288, 251, 71, 291, 218, 255, 75, 20, 258, 212, /* 1000 */ 271, 272, 273, 274, 210, 234, 304, 234, 241, 210, - /* 1010 */ 308, 271, 272, 273, 274, 234, 132, 234, 134, 212, - /* 1020 */ 136, 234, 252, 234, 265, 241, 152, 259, 234, 215, - /* 1030 */ 264, 241, 303, 234, 215, 241, 20, 153, 210, 192, - /* 1040 */ 241, 274, 191, 301, 57, 251, 270, 256, 255, 255, - /* 1050 */ 251, 284, 285, 286, 255, 288, 255, 258, 256, 255, - /* 1060 */ 187, 198, 234, 199, 210, 271, 272, 273, 274, 241, - /* 1070 */ 271, 272, 273, 274, 186, 298, 301, 297, 138, 251, - /* 1080 */ 183, 295, 241, 255, 20, 120, 258, 269, 234, 294, - /* 1090 */ 282, 206, 203, 201, 312, 241, 74, 255, 306, 271, - /* 1100 */ 272, 273, 274, 278, 310, 251, 210, 134, 256, 255, - /* 1110 */ 307, 210, 255, 241, 256, 255, 230, 210, 253, 241, - /* 1120 */ 252, 215, 74, 215, 237, 271, 272, 273, 274, 220, - /* 1130 */ 234, 212, 216, 215, 224, 234, 208, 241, 217, 262, - /* 1140 */ 228, 234, 241, 0, 0, 205, 64, 251, 241, 0, - /* 1150 */ 228, 255, 251, 0, 38, 158, 255, 38, 251, 210, - /* 1160 */ 38, 38, 255, 158, 0, 38, 38, 271, 272, 273, - /* 1170 */ 274, 210, 271, 272, 273, 274, 158, 0, 271, 272, - /* 1180 */ 273, 274, 0, 234, 210, 38, 38, 0, 74, 149, - /* 1190 */ 241, 148, 109, 0, 145, 234, 0, 141, 53, 0, - /* 1200 */ 251, 0, 241, 0, 255, 0, 86, 0, 234, 0, - /* 1210 */ 61, 0, 251, 210, 65, 241, 255, 0, 0, 0, + /* 1010 */ 308, 271, 272, 273, 274, 234, 132, 234, 134, 234, + /* 1020 */ 136, 216, 220, 241, 234, 234, 234, 234, 234, 234, + /* 1030 */ 234, 212, 303, 234, 265, 241, 259, 153, 210, 152, + /* 1040 */ 241, 274, 264, 20, 215, 251, 215, 192, 241, 255, + /* 1050 */ 251, 284, 285, 286, 255, 288, 270, 258, 301, 191, + /* 1060 */ 252, 57, 234, 301, 210, 271, 272, 273, 274, 241, + /* 1070 */ 271, 272, 273, 274, 256, 255, 199, 256, 138, 251, + /* 1080 */ 255, 255, 298, 255, 198, 187, 258, 241, 234, 186, + /* 1090 */ 20, 183, 269, 295, 297, 241, 120, 294, 206, 271, + /* 1100 */ 272, 273, 274, 203, 310, 251, 210, 201, 74, 255, + /* 1110 */ 253, 210, 282, 278, 256, 255, 306, 210, 134, 307, + /* 1120 */ 255, 312, 256, 241, 255, 271, 272, 273, 274, 230, + /* 1130 */ 234, 252, 215, 215, 241, 234, 74, 241, 216, 237, + /* 1140 */ 220, 234, 241, 224, 215, 205, 212, 251, 241, 0, + /* 1150 */ 262, 255, 251, 228, 228, 217, 255, 0, 251, 210, + /* 1160 */ 208, 0, 255, 64, 0, 38, 158, 271, 272, 273, + /* 1170 */ 274, 210, 271, 272, 273, 274, 38, 38, 271, 272, + /* 1180 */ 273, 274, 38, 234, 210, 158, 0, 0, 38, 38, + /* 1190 */ 241, 158, 38, 0, 38, 234, 0, 74, 149, 148, + /* 1200 */ 251, 0, 241, 109, 255, 145, 0, 0, 234, 141, + /* 1210 */ 61, 53, 251, 210, 65, 241, 255, 0, 0, 86, /* 1220 */ 271, 272, 273, 274, 0, 251, 0, 0, 0, 255, /* 1230 */ 0, 0, 271, 272, 273, 274, 87, 234, 0, 210, - /* 1240 */ 0, 120, 0, 0, 241, 271, 272, 273, 274, 0, + /* 1240 */ 0, 0, 0, 0, 241, 271, 272, 273, 274, 0, /* 1250 */ 0, 0, 0, 0, 251, 106, 107, 108, 255, 110, - /* 1260 */ 0, 22, 61, 234, 0, 210, 65, 0, 0, 0, - /* 1270 */ 241, 0, 0, 210, 271, 272, 273, 274, 0, 43, - /* 1280 */ 251, 0, 0, 51, 255, 0, 38, 43, 87, 234, - /* 1290 */ 36, 0, 36, 38, 0, 38, 241, 234, 0, 210, + /* 1260 */ 120, 0, 61, 234, 0, 210, 65, 0, 0, 0, + /* 1270 */ 241, 0, 0, 210, 271, 272, 273, 274, 22, 0, + /* 1280 */ 251, 0, 0, 0, 255, 0, 0, 0, 87, 234, + /* 1290 */ 43, 0, 0, 0, 36, 51, 241, 234, 38, 210, /* 1300 */ 271, 272, 273, 274, 241, 43, 251, 106, 107, 108, - /* 1310 */ 255, 110, 36, 43, 251, 38, 36, 43, 255, 0, - /* 1320 */ 0, 0, 0, 234, 83, 38, 271, 272, 273, 274, - /* 1330 */ 241, 22, 71, 0, 271, 272, 273, 274, 38, 81, - /* 1340 */ 251, 210, 38, 38, 255, 38, 71, 0, 38, 38, - /* 1350 */ 22, 0, 22, 39, 0, 38, 22, 0, 22, 0, - /* 1360 */ 271, 272, 273, 274, 22, 234, 20, 0, 154, 38, - /* 1370 */ 137, 0, 241, 150, 22, 0, 0, 0, 43, 134, - /* 1380 */ 74, 86, 251, 137, 137, 188, 255, 71, 75, 71, - /* 1390 */ 75, 132, 188, 4, 71, 182, 188, 2, 74, 74, - /* 1400 */ 74, 74, 271, 272, 273, 274, 38, 75, 71, 71, - /* 1410 */ 38, 38, 38, 0, 75, 75, 71, 38, 38, 75, - /* 1420 */ 71, 135, 132, 22, 74, 162, 43, 86, 75, 86, - /* 1430 */ 74, 38, 38, 75, 86, 75, 74, 74, 74, 74, - /* 1440 */ 38, 86, 38, 74, 38, 84, 38, 22, 38, 38, - /* 1450 */ 22, 22, 86, 75, 0, 85, 74, 38, 38, 75, - /* 1460 */ 74, 38, 75, 75, 74, 74, 51, 75, 50, 57, - /* 1470 */ 74, 38, 38, 38, 74, 38, 38, 38, 57, 74, - /* 1480 */ 99, 74, 38, 38, 99, 71, 87, 38, 72, 38, - /* 1490 */ 38, 38, 36, 38, 0, 36, 99, 99, 38, 0, - /* 1500 */ 43, 43, 38, 36, 43, 0, 38, 36, 43, 0, - /* 1510 */ 38, 37, 109, 0, 0, 22, 21, 313, 22, 22, - /* 1520 */ 313, 21, 20, 313, 313, 313, 313, 313, 313, 313, + /* 1310 */ 255, 110, 0, 38, 251, 0, 36, 43, 255, 43, + /* 1320 */ 0, 43, 38, 234, 36, 36, 271, 272, 273, 274, + /* 1330 */ 241, 0, 38, 0, 271, 272, 273, 274, 0, 0, + /* 1340 */ 251, 210, 83, 38, 255, 22, 81, 0, 71, 38, + /* 1350 */ 0, 38, 38, 0, 38, 38, 38, 22, 22, 0, + /* 1360 */ 271, 272, 273, 274, 39, 234, 71, 22, 38, 0, + /* 1370 */ 22, 0, 241, 22, 20, 0, 137, 154, 38, 0, + /* 1380 */ 22, 0, 251, 150, 0, 137, 255, 0, 134, 43, + /* 1390 */ 188, 188, 137, 74, 86, 132, 75, 71, 71, 71, + /* 1400 */ 71, 182, 271, 272, 273, 274, 4, 75, 74, 188, + /* 1410 */ 86, 74, 38, 2, 71, 74, 38, 75, 74, 162, + /* 1420 */ 38, 38, 0, 38, 75, 135, 71, 75, 38, 43, + /* 1430 */ 132, 71, 75, 38, 22, 38, 38, 75, 75, 74, + /* 1440 */ 74, 74, 86, 75, 38, 75, 74, 86, 84, 22, + /* 1450 */ 74, 74, 38, 38, 38, 22, 22, 22, 38, 86, + /* 1460 */ 21, 21, 74, 38, 38, 74, 86, 75, 75, 75, + /* 1470 */ 74, 0, 51, 74, 85, 75, 75, 74, 74, 50, + /* 1480 */ 57, 38, 38, 38, 38, 38, 38, 74, 57, 38, + /* 1490 */ 38, 38, 74, 74, 38, 38, 72, 87, 38, 71, + /* 1500 */ 0, 38, 38, 36, 99, 36, 99, 99, 99, 43, + /* 1510 */ 38, 43, 0, 38, 36, 0, 43, 38, 36, 43, + /* 1520 */ 0, 38, 37, 0, 0, 22, 109, 22, 20, 313, /* 1530 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, /* 1540 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, /* 1550 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, @@ -539,10 +540,11 @@ static const YYCODETYPE yy_lookahead[] = { /* 1700 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, /* 1710 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, /* 1720 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1730 */ 313, 313, 313, 313, 313, 313, }; -#define YY_SHIFT_COUNT (543) +#define YY_SHIFT_COUNT (546) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1514) +#define YY_SHIFT_MAX (1524) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 572, 0, 51, 64, 64, 64, 64, 167, 64, 64, /* 10 */ 245, 408, 100, 231, 245, 245, 245, 245, 245, 245, @@ -553,54 +555,54 @@ static const unsigned short int yy_shift_ofst[] = { /* 60 */ 26, 16, 26, 26, 26, 16, 309, 332, 454, 463, /* 70 */ 463, 265, 445, 153, 134, 153, 153, 153, 153, 153, /* 80 */ 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, - /* 90 */ 153, 153, 153, 153, 85, 528, 326, 218, 240, 240, - /* 100 */ 240, 384, 218, 345, 26, 26, 26, 61, 334, 39, - /* 110 */ 39, 39, 39, 39, 39, 732, 126, 608, 940, 77, - /* 120 */ 85, 117, 85, 90, 583, 515, 493, 574, 493, 735, - /* 130 */ 419, 460, 829, 820, 826, 736, 829, 829, 779, 785, - /* 140 */ 785, 829, 905, 915, 73, 345, 938, 73, 73, 829, - /* 150 */ 73, 962, 26, 26, 26, 26, 26, 26, 26, 26, - /* 160 */ 26, 26, 26, 826, 829, 962, 345, 905, 874, 915, - /* 170 */ 309, 345, 938, 309, 1016, 847, 851, 987, 847, 851, - /* 180 */ 987, 987, 864, 863, 873, 888, 897, 345, 1064, 965, - /* 190 */ 885, 889, 892, 1022, 26, 851, 987, 987, 851, 987, - /* 200 */ 973, 345, 938, 309, 61, 309, 345, 1048, 826, 334, - /* 210 */ 829, 309, 962, 1523, 1523, 1523, 1523, 1523, 431, 884, - /* 220 */ 530, 577, 1149, 1201, 13, 29, 46, 526, 295, 295, - /* 230 */ 295, 295, 295, 295, 295, 34, 234, 581, 418, 390, - /* 240 */ 390, 390, 390, 19, 541, 436, 121, 680, 703, 704, - /* 250 */ 715, 772, 788, 673, 738, 744, 750, 694, 599, 584, - /* 260 */ 635, 751, 720, 798, 525, 800, 806, 815, 816, 844, - /* 270 */ 627, 692, 861, 862, 867, 870, 876, 904, 796, 707, - /* 280 */ 1143, 1144, 1082, 1153, 1116, 997, 1119, 1122, 1123, 1005, - /* 290 */ 1164, 1127, 1128, 1018, 1177, 1147, 1182, 1148, 1187, 1114, - /* 300 */ 1040, 1043, 1083, 1049, 1193, 1196, 1145, 1056, 1199, 1203, - /* 310 */ 1120, 1205, 1207, 1209, 1211, 1217, 1218, 1219, 1224, 1226, - /* 320 */ 1227, 1228, 1230, 1231, 1238, 1240, 1121, 1242, 1243, 1249, - /* 330 */ 1250, 1251, 1252, 1239, 1253, 1260, 1264, 1267, 1268, 1269, - /* 340 */ 1271, 1272, 1278, 1236, 1281, 1232, 1282, 1285, 1248, 1254, - /* 350 */ 1244, 1291, 1255, 1256, 1262, 1294, 1257, 1276, 1270, 1298, - /* 360 */ 1277, 1280, 1274, 1319, 1320, 1321, 1322, 1241, 1258, 1287, - /* 370 */ 1261, 1309, 1333, 1300, 1304, 1305, 1307, 1275, 1261, 1310, - /* 380 */ 1311, 1347, 1328, 1351, 1330, 1314, 1354, 1334, 1317, 1357, - /* 390 */ 1336, 1359, 1342, 1346, 1367, 1233, 1214, 1331, 1371, 1223, - /* 400 */ 1352, 1246, 1245, 1375, 1376, 1247, 1377, 1306, 1335, 1259, - /* 410 */ 1316, 1318, 1197, 1313, 1323, 1315, 1324, 1325, 1326, 1332, - /* 420 */ 1337, 1295, 1327, 1338, 1204, 1339, 1340, 1341, 1213, 1345, - /* 430 */ 1343, 1344, 1349, 1208, 1389, 1368, 1372, 1373, 1374, 1379, - /* 440 */ 1380, 1395, 1263, 1348, 1353, 1350, 1356, 1358, 1360, 1362, - /* 450 */ 1363, 1286, 1364, 1413, 1383, 1290, 1365, 1361, 1355, 1366, - /* 460 */ 1401, 1369, 1370, 1378, 1393, 1394, 1382, 1384, 1402, 1386, - /* 470 */ 1387, 1404, 1390, 1388, 1406, 1391, 1392, 1408, 1396, 1381, - /* 480 */ 1385, 1397, 1398, 1425, 1399, 1400, 1410, 1403, 1405, 1407, - /* 490 */ 1411, 1261, 1428, 1415, 1418, 1412, 1416, 1414, 1419, 1420, - /* 500 */ 1423, 1433, 1434, 1435, 1437, 1429, 1421, 1275, 1438, 1261, - /* 510 */ 1439, 1444, 1445, 1449, 1451, 1452, 1453, 1454, 1455, 1456, - /* 520 */ 1457, 1494, 1460, 1459, 1458, 1499, 1464, 1467, 1461, 1505, - /* 530 */ 1468, 1471, 1465, 1509, 1472, 1474, 1513, 1514, 1493, 1495, - /* 540 */ 1496, 1497, 1500, 1502, + /* 90 */ 153, 153, 153, 153, 85, 384, 326, 218, 240, 240, + /* 100 */ 240, 567, 218, 345, 26, 26, 26, 61, 334, 39, + /* 110 */ 39, 39, 39, 39, 39, 39, 732, 126, 608, 940, + /* 120 */ 77, 85, 117, 85, 90, 513, 626, 520, 562, 520, + /* 130 */ 568, 679, 644, 853, 863, 851, 754, 853, 853, 789, + /* 140 */ 804, 804, 853, 927, 931, 73, 345, 941, 73, 73, + /* 150 */ 853, 73, 977, 26, 26, 26, 26, 26, 26, 26, + /* 160 */ 26, 26, 26, 26, 851, 853, 977, 345, 927, 887, + /* 170 */ 931, 309, 345, 941, 309, 1023, 855, 868, 1004, 855, + /* 180 */ 868, 1004, 1004, 877, 886, 898, 903, 908, 345, 1070, + /* 190 */ 976, 892, 900, 906, 1034, 26, 868, 1004, 1004, 868, + /* 200 */ 1004, 984, 345, 941, 309, 61, 309, 345, 1062, 851, + /* 210 */ 334, 853, 309, 977, 1529, 1529, 1529, 1529, 1529, 431, + /* 220 */ 884, 530, 577, 1149, 1201, 13, 29, 46, 526, 295, + /* 230 */ 643, 643, 643, 643, 643, 643, 643, 34, 234, 426, + /* 240 */ 547, 438, 426, 426, 426, 19, 574, 436, 121, 683, + /* 250 */ 703, 704, 772, 788, 800, 673, 592, 682, 742, 694, + /* 260 */ 640, 649, 665, 744, 687, 755, 378, 806, 811, 816, + /* 270 */ 844, 850, 801, 832, 861, 862, 867, 904, 914, 921, + /* 280 */ 696, 564, 1157, 1161, 1099, 1164, 1127, 1008, 1138, 1139, + /* 290 */ 1144, 1027, 1186, 1150, 1151, 1033, 1187, 1154, 1193, 1156, + /* 300 */ 1196, 1123, 1049, 1051, 1094, 1060, 1206, 1207, 1158, 1068, + /* 310 */ 1217, 1218, 1133, 1224, 1226, 1227, 1228, 1230, 1231, 1238, + /* 320 */ 1240, 1241, 1242, 1243, 1249, 1250, 1251, 1252, 1140, 1253, + /* 330 */ 1261, 1264, 1267, 1268, 1269, 1256, 1271, 1272, 1279, 1281, + /* 340 */ 1282, 1283, 1285, 1286, 1287, 1247, 1291, 1244, 1292, 1293, + /* 350 */ 1260, 1258, 1262, 1312, 1275, 1280, 1274, 1315, 1284, 1288, + /* 360 */ 1276, 1320, 1294, 1289, 1278, 1331, 1333, 1338, 1339, 1259, + /* 370 */ 1265, 1305, 1277, 1323, 1347, 1311, 1313, 1314, 1316, 1295, + /* 380 */ 1277, 1317, 1318, 1350, 1335, 1353, 1336, 1325, 1359, 1345, + /* 390 */ 1330, 1369, 1348, 1371, 1351, 1354, 1375, 1239, 1223, 1340, + /* 400 */ 1379, 1233, 1358, 1248, 1254, 1381, 1384, 1255, 1387, 1319, + /* 410 */ 1346, 1263, 1326, 1327, 1202, 1321, 1328, 1332, 1334, 1337, + /* 420 */ 1341, 1342, 1329, 1308, 1344, 1343, 1203, 1349, 1352, 1324, + /* 430 */ 1219, 1355, 1356, 1357, 1360, 1221, 1402, 1374, 1378, 1382, + /* 440 */ 1383, 1385, 1390, 1411, 1257, 1361, 1362, 1363, 1365, 1366, + /* 450 */ 1368, 1370, 1367, 1372, 1290, 1376, 1422, 1386, 1298, 1377, + /* 460 */ 1364, 1373, 1380, 1412, 1388, 1389, 1392, 1395, 1397, 1391, + /* 470 */ 1393, 1398, 1396, 1394, 1406, 1399, 1400, 1414, 1403, 1401, + /* 480 */ 1415, 1404, 1405, 1407, 1408, 1409, 1427, 1410, 1413, 1416, + /* 490 */ 1417, 1418, 1419, 1420, 1277, 1433, 1421, 1429, 1423, 1424, + /* 500 */ 1428, 1425, 1426, 1443, 1444, 1445, 1446, 1447, 1434, 1431, + /* 510 */ 1295, 1448, 1277, 1451, 1452, 1453, 1456, 1457, 1460, 1463, + /* 520 */ 1471, 1464, 1467, 1466, 1500, 1472, 1469, 1468, 1512, 1475, + /* 530 */ 1478, 1473, 1515, 1479, 1482, 1476, 1520, 1483, 1485, 1523, + /* 540 */ 1524, 1435, 1439, 1503, 1505, 1440, 1508, }; -#define YY_REDUCE_COUNT (217) +#define YY_REDUCE_COUNT (218) #define YY_REDUCE_MIN (-276) #define YY_REDUCE_MAX (1131) static const short yy_reduce_ofst[] = { @@ -609,80 +611,80 @@ static const short yy_reduce_ofst[] = { /* 20 */ 561, 854, 896, 901, 907, 949, 961, 974, 1003, 1029, /* 30 */ 1055, 1063, 1089, 1131, -192, 151, 767, -23, -234, -215, /* 40 */ -225, 22, 287, -49, -253, -246, -233, -209, -40, 36, - /* 50 */ 139, 144, 202, -128, 138, 80, -4, 198, 247, 293, - /* 60 */ 189, 368, 289, 352, 310, 373, 88, -207, -276, -276, - /* 70 */ -276, -28, 124, -61, 97, 108, 164, 216, 394, 396, - /* 80 */ 406, 412, 415, 447, 448, 468, 469, 470, 471, 479, - /* 90 */ 488, 489, 495, 499, 263, 228, 60, -108, -189, 92, - /* 100 */ 282, 237, 367, 197, 274, 381, 414, -155, 378, -232, - /* 110 */ 239, 246, 286, 411, 428, 450, 509, 322, 442, 478, - /* 120 */ 549, 559, 553, 510, 598, 547, 540, 540, 540, 596, - /* 130 */ 531, 550, 634, 585, 658, 628, 681, 682, 660, 663, - /* 140 */ 674, 706, 659, 687, 722, 708, 709, 741, 753, 761, - /* 150 */ 760, 757, 755, 758, 762, 763, 765, 771, 773, 781, - /* 160 */ 783, 787, 789, 774, 769, 807, 784, 759, 766, 768, - /* 170 */ 814, 790, 770, 819, 776, 742, 791, 793, 775, 802, - /* 180 */ 801, 804, 777, 780, 786, 795, 540, 841, 818, 808, - /* 190 */ 782, 803, 792, 825, 596, 852, 842, 857, 858, 860, - /* 200 */ 865, 872, 868, 906, 886, 908, 878, 887, 909, 910, - /* 210 */ 916, 918, 919, 877, 912, 922, 921, 928, + /* 50 */ 139, 144, 202, -128, 138, 80, -4, 289, 247, 293, + /* 60 */ 189, 368, 310, 352, 357, 373, 88, -207, -276, -276, + /* 70 */ -276, -28, 124, -61, 97, 108, 164, 216, 390, 394, + /* 80 */ 396, 415, 442, 451, 468, 469, 470, 471, 479, 488, + /* 90 */ 489, 495, 499, 503, 263, 260, 60, -108, -189, 92, + /* 100 */ 281, 169, 455, 197, 274, 188, 381, -155, 395, -232, + /* 110 */ 246, 286, 430, 514, 527, 551, 282, 544, 578, 498, + /* 120 */ 504, 560, 581, 570, 540, 629, 580, 575, 575, 575, + /* 130 */ 622, 566, 583, 662, 614, 670, 637, 700, 706, 675, + /* 140 */ 698, 699, 724, 684, 710, 741, 717, 719, 759, 760, + /* 150 */ 766, 776, 787, 771, 773, 781, 783, 785, 790, 791, + /* 160 */ 792, 793, 795, 796, 802, 805, 819, 782, 769, 778, + /* 170 */ 777, 829, 807, 808, 831, 786, 757, 818, 820, 762, + /* 180 */ 821, 825, 826, 784, 797, 798, 803, 575, 846, 823, + /* 190 */ 830, 809, 812, 810, 835, 622, 858, 860, 865, 866, + /* 200 */ 869, 857, 882, 879, 917, 899, 918, 893, 902, 920, + /* 210 */ 919, 922, 929, 934, 888, 925, 926, 938, 952, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 10 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 20 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 30 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 40 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 50 */ 1210, 1210, 1210, 1269, 1210, 1210, 1210, 1210, 1210, 1210, - /* 60 */ 1210, 1210, 1210, 1210, 1210, 1210, 1267, 1406, 1210, 1540, - /* 70 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 80 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 90 */ 1210, 1210, 1210, 1210, 1210, 1210, 1269, 1210, 1551, 1551, - /* 100 */ 1551, 1267, 1210, 1210, 1210, 1210, 1210, 1362, 1210, 1210, - /* 110 */ 1210, 1210, 1210, 1210, 1210, 1440, 1210, 1210, 1615, 1210, - /* 120 */ 1210, 1315, 1210, 1575, 1210, 1567, 1543, 1557, 1544, 1210, - /* 130 */ 1600, 1560, 1210, 1210, 1210, 1432, 1210, 1210, 1411, 1408, - /* 140 */ 1408, 1210, 1210, 1210, 1269, 1210, 1210, 1269, 1269, 1210, - /* 150 */ 1269, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 160 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1442, 1210, - /* 170 */ 1267, 1210, 1210, 1267, 1210, 1582, 1580, 1210, 1582, 1580, - /* 180 */ 1210, 1210, 1594, 1590, 1573, 1571, 1557, 1210, 1210, 1210, - /* 190 */ 1618, 1606, 1602, 1210, 1210, 1580, 1210, 1210, 1580, 1210, - /* 200 */ 1419, 1210, 1210, 1267, 1210, 1267, 1210, 1331, 1210, 1210, - /* 210 */ 1210, 1267, 1210, 1434, 1365, 1365, 1270, 1215, 1210, 1210, - /* 220 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1504, 1593, - /* 230 */ 1592, 1503, 1517, 1516, 1515, 1210, 1210, 1210, 1210, 1498, - /* 240 */ 1499, 1497, 1496, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 250 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1541, 1210, 1603, - /* 260 */ 1607, 1210, 1210, 1210, 1479, 1210, 1210, 1210, 1210, 1210, - /* 270 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 280 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 290 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 300 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 310 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 320 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 330 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 340 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 350 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 360 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 370 */ 1376, 1210, 1210, 1210, 1210, 1210, 1210, 1296, 1295, 1210, - /* 380 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 390 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 400 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 410 */ 1564, 1574, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 420 */ 1210, 1479, 1210, 1591, 1210, 1550, 1546, 1210, 1210, 1542, - /* 430 */ 1210, 1210, 1601, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 440 */ 1210, 1536, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 450 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1478, 1210, - /* 460 */ 1210, 1210, 1210, 1210, 1210, 1210, 1359, 1210, 1210, 1210, - /* 470 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1344, - /* 480 */ 1342, 1341, 1340, 1210, 1337, 1210, 1210, 1210, 1210, 1210, - /* 490 */ 1210, 1367, 1210, 1210, 1210, 1210, 1210, 1290, 1210, 1210, - /* 500 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1281, 1210, 1280, - /* 510 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 520 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 530 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, - /* 540 */ 1210, 1210, 1210, 1210, + /* 0 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 10 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 20 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 30 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 40 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 50 */ 1215, 1215, 1215, 1274, 1215, 1215, 1215, 1215, 1215, 1215, + /* 60 */ 1215, 1215, 1215, 1215, 1215, 1215, 1272, 1411, 1215, 1546, + /* 70 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 80 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 90 */ 1215, 1215, 1215, 1215, 1215, 1215, 1274, 1215, 1557, 1557, + /* 100 */ 1557, 1272, 1215, 1215, 1215, 1215, 1215, 1367, 1215, 1215, + /* 110 */ 1215, 1215, 1215, 1215, 1215, 1215, 1445, 1215, 1215, 1621, + /* 120 */ 1215, 1215, 1320, 1215, 1581, 1215, 1573, 1549, 1563, 1550, + /* 130 */ 1215, 1606, 1566, 1215, 1215, 1215, 1437, 1215, 1215, 1416, + /* 140 */ 1413, 1413, 1215, 1215, 1215, 1274, 1215, 1215, 1274, 1274, + /* 150 */ 1215, 1274, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 160 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1447, + /* 170 */ 1215, 1272, 1215, 1215, 1272, 1215, 1588, 1586, 1215, 1588, + /* 180 */ 1586, 1215, 1215, 1600, 1596, 1579, 1577, 1563, 1215, 1215, + /* 190 */ 1215, 1624, 1612, 1608, 1215, 1215, 1586, 1215, 1215, 1586, + /* 200 */ 1215, 1424, 1215, 1215, 1272, 1215, 1272, 1215, 1336, 1215, + /* 210 */ 1215, 1215, 1272, 1215, 1439, 1370, 1370, 1275, 1220, 1215, + /* 220 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1509, + /* 230 */ 1510, 1599, 1598, 1509, 1523, 1522, 1521, 1215, 1215, 1504, + /* 240 */ 1215, 1215, 1505, 1503, 1502, 1215, 1215, 1215, 1215, 1215, + /* 250 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1547, + /* 260 */ 1215, 1609, 1613, 1215, 1215, 1215, 1484, 1215, 1215, 1215, + /* 270 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 280 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 290 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 300 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 310 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 320 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 330 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 340 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 350 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 360 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 370 */ 1215, 1215, 1381, 1215, 1215, 1215, 1215, 1215, 1215, 1301, + /* 380 */ 1300, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 390 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 400 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 410 */ 1215, 1215, 1570, 1580, 1215, 1215, 1215, 1215, 1215, 1215, + /* 420 */ 1215, 1215, 1215, 1484, 1215, 1597, 1215, 1556, 1552, 1215, + /* 430 */ 1215, 1548, 1215, 1215, 1607, 1215, 1215, 1215, 1215, 1215, + /* 440 */ 1215, 1215, 1215, 1542, 1215, 1215, 1215, 1215, 1215, 1215, + /* 450 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 460 */ 1215, 1483, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1364, + /* 470 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 480 */ 1215, 1215, 1349, 1347, 1346, 1345, 1215, 1342, 1215, 1215, + /* 490 */ 1215, 1215, 1215, 1215, 1372, 1215, 1215, 1215, 1215, 1215, + /* 500 */ 1295, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 510 */ 1286, 1215, 1285, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 520 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 530 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, + /* 540 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1390,133 +1392,134 @@ static const char *const yyRuleName[] = { /* 278 */ "expression ::= column_reference", /* 279 */ "expression ::= function_name NK_LP expression_list NK_RP", /* 280 */ "expression ::= function_name NK_LP NK_STAR NK_RP", - /* 281 */ "expression ::= subquery", - /* 282 */ "expression ::= NK_LP expression NK_RP", - /* 283 */ "expression ::= NK_PLUS expression", - /* 284 */ "expression ::= NK_MINUS expression", - /* 285 */ "expression ::= expression NK_PLUS expression", - /* 286 */ "expression ::= expression NK_MINUS expression", - /* 287 */ "expression ::= expression NK_STAR expression", - /* 288 */ "expression ::= expression NK_SLASH expression", - /* 289 */ "expression ::= expression NK_REM expression", - /* 290 */ "expression_list ::= expression", - /* 291 */ "expression_list ::= expression_list NK_COMMA expression", - /* 292 */ "column_reference ::= column_name", - /* 293 */ "column_reference ::= table_name NK_DOT column_name", - /* 294 */ "pseudo_column ::= NOW", - /* 295 */ "pseudo_column ::= ROWTS", - /* 296 */ "pseudo_column ::= TBNAME", - /* 297 */ "pseudo_column ::= QSTARTTS", - /* 298 */ "pseudo_column ::= QENDTS", - /* 299 */ "pseudo_column ::= WSTARTTS", - /* 300 */ "pseudo_column ::= WENDTS", - /* 301 */ "pseudo_column ::= WDURATION", - /* 302 */ "predicate ::= expression compare_op expression", - /* 303 */ "predicate ::= expression BETWEEN expression AND expression", - /* 304 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 305 */ "predicate ::= expression IS NULL", - /* 306 */ "predicate ::= expression IS NOT NULL", - /* 307 */ "predicate ::= expression in_op in_predicate_value", - /* 308 */ "compare_op ::= NK_LT", - /* 309 */ "compare_op ::= NK_GT", - /* 310 */ "compare_op ::= NK_LE", - /* 311 */ "compare_op ::= NK_GE", - /* 312 */ "compare_op ::= NK_NE", - /* 313 */ "compare_op ::= NK_EQ", - /* 314 */ "compare_op ::= LIKE", - /* 315 */ "compare_op ::= NOT LIKE", - /* 316 */ "compare_op ::= MATCH", - /* 317 */ "compare_op ::= NMATCH", - /* 318 */ "in_op ::= IN", - /* 319 */ "in_op ::= NOT IN", - /* 320 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 321 */ "boolean_value_expression ::= boolean_primary", - /* 322 */ "boolean_value_expression ::= NOT boolean_primary", - /* 323 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 324 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 325 */ "boolean_primary ::= predicate", - /* 326 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 327 */ "common_expression ::= expression", - /* 328 */ "common_expression ::= boolean_value_expression", - /* 329 */ "from_clause ::= FROM table_reference_list", - /* 330 */ "table_reference_list ::= table_reference", - /* 331 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 332 */ "table_reference ::= table_primary", - /* 333 */ "table_reference ::= joined_table", - /* 334 */ "table_primary ::= table_name alias_opt", - /* 335 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 336 */ "table_primary ::= subquery alias_opt", - /* 337 */ "table_primary ::= parenthesized_joined_table", - /* 338 */ "alias_opt ::=", - /* 339 */ "alias_opt ::= table_alias", - /* 340 */ "alias_opt ::= AS table_alias", - /* 341 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 342 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 343 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 344 */ "join_type ::=", - /* 345 */ "join_type ::= INNER", - /* 346 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 347 */ "set_quantifier_opt ::=", - /* 348 */ "set_quantifier_opt ::= DISTINCT", - /* 349 */ "set_quantifier_opt ::= ALL", - /* 350 */ "select_list ::= NK_STAR", - /* 351 */ "select_list ::= select_sublist", - /* 352 */ "select_sublist ::= select_item", - /* 353 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 354 */ "select_item ::= common_expression", - /* 355 */ "select_item ::= common_expression column_alias", - /* 356 */ "select_item ::= common_expression AS column_alias", - /* 357 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 358 */ "where_clause_opt ::=", - /* 359 */ "where_clause_opt ::= WHERE search_condition", - /* 360 */ "partition_by_clause_opt ::=", - /* 361 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 362 */ "twindow_clause_opt ::=", - /* 363 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 364 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 365 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 366 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 367 */ "sliding_opt ::=", - /* 368 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 369 */ "fill_opt ::=", - /* 370 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 371 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 372 */ "fill_mode ::= NONE", - /* 373 */ "fill_mode ::= PREV", - /* 374 */ "fill_mode ::= NULL", - /* 375 */ "fill_mode ::= LINEAR", - /* 376 */ "fill_mode ::= NEXT", - /* 377 */ "group_by_clause_opt ::=", - /* 378 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 379 */ "group_by_list ::= expression", - /* 380 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 381 */ "having_clause_opt ::=", - /* 382 */ "having_clause_opt ::= HAVING search_condition", - /* 383 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 384 */ "query_expression_body ::= query_primary", - /* 385 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 386 */ "query_primary ::= query_specification", - /* 387 */ "order_by_clause_opt ::=", - /* 388 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 389 */ "slimit_clause_opt ::=", - /* 390 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 391 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 392 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 393 */ "limit_clause_opt ::=", - /* 394 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 395 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 396 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 397 */ "subquery ::= NK_LP query_expression NK_RP", - /* 398 */ "search_condition ::= common_expression", - /* 399 */ "sort_specification_list ::= sort_specification", - /* 400 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 401 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 402 */ "ordering_specification_opt ::=", - /* 403 */ "ordering_specification_opt ::= ASC", - /* 404 */ "ordering_specification_opt ::= DESC", - /* 405 */ "null_ordering_opt ::=", - /* 406 */ "null_ordering_opt ::= NULLS FIRST", - /* 407 */ "null_ordering_opt ::= NULLS LAST", + /* 281 */ "expression ::= function_name NK_LP expression AS type_name NK_RP", + /* 282 */ "expression ::= subquery", + /* 283 */ "expression ::= NK_LP expression NK_RP", + /* 284 */ "expression ::= NK_PLUS expression", + /* 285 */ "expression ::= NK_MINUS expression", + /* 286 */ "expression ::= expression NK_PLUS expression", + /* 287 */ "expression ::= expression NK_MINUS expression", + /* 288 */ "expression ::= expression NK_STAR expression", + /* 289 */ "expression ::= expression NK_SLASH expression", + /* 290 */ "expression ::= expression NK_REM expression", + /* 291 */ "expression_list ::= expression", + /* 292 */ "expression_list ::= expression_list NK_COMMA expression", + /* 293 */ "column_reference ::= column_name", + /* 294 */ "column_reference ::= table_name NK_DOT column_name", + /* 295 */ "pseudo_column ::= NOW", + /* 296 */ "pseudo_column ::= ROWTS", + /* 297 */ "pseudo_column ::= TBNAME", + /* 298 */ "pseudo_column ::= QSTARTTS", + /* 299 */ "pseudo_column ::= QENDTS", + /* 300 */ "pseudo_column ::= WSTARTTS", + /* 301 */ "pseudo_column ::= WENDTS", + /* 302 */ "pseudo_column ::= WDURATION", + /* 303 */ "predicate ::= expression compare_op expression", + /* 304 */ "predicate ::= expression BETWEEN expression AND expression", + /* 305 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 306 */ "predicate ::= expression IS NULL", + /* 307 */ "predicate ::= expression IS NOT NULL", + /* 308 */ "predicate ::= expression in_op in_predicate_value", + /* 309 */ "compare_op ::= NK_LT", + /* 310 */ "compare_op ::= NK_GT", + /* 311 */ "compare_op ::= NK_LE", + /* 312 */ "compare_op ::= NK_GE", + /* 313 */ "compare_op ::= NK_NE", + /* 314 */ "compare_op ::= NK_EQ", + /* 315 */ "compare_op ::= LIKE", + /* 316 */ "compare_op ::= NOT LIKE", + /* 317 */ "compare_op ::= MATCH", + /* 318 */ "compare_op ::= NMATCH", + /* 319 */ "in_op ::= IN", + /* 320 */ "in_op ::= NOT IN", + /* 321 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 322 */ "boolean_value_expression ::= boolean_primary", + /* 323 */ "boolean_value_expression ::= NOT boolean_primary", + /* 324 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 325 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 326 */ "boolean_primary ::= predicate", + /* 327 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 328 */ "common_expression ::= expression", + /* 329 */ "common_expression ::= boolean_value_expression", + /* 330 */ "from_clause ::= FROM table_reference_list", + /* 331 */ "table_reference_list ::= table_reference", + /* 332 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 333 */ "table_reference ::= table_primary", + /* 334 */ "table_reference ::= joined_table", + /* 335 */ "table_primary ::= table_name alias_opt", + /* 336 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 337 */ "table_primary ::= subquery alias_opt", + /* 338 */ "table_primary ::= parenthesized_joined_table", + /* 339 */ "alias_opt ::=", + /* 340 */ "alias_opt ::= table_alias", + /* 341 */ "alias_opt ::= AS table_alias", + /* 342 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 343 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 344 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 345 */ "join_type ::=", + /* 346 */ "join_type ::= INNER", + /* 347 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 348 */ "set_quantifier_opt ::=", + /* 349 */ "set_quantifier_opt ::= DISTINCT", + /* 350 */ "set_quantifier_opt ::= ALL", + /* 351 */ "select_list ::= NK_STAR", + /* 352 */ "select_list ::= select_sublist", + /* 353 */ "select_sublist ::= select_item", + /* 354 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 355 */ "select_item ::= common_expression", + /* 356 */ "select_item ::= common_expression column_alias", + /* 357 */ "select_item ::= common_expression AS column_alias", + /* 358 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 359 */ "where_clause_opt ::=", + /* 360 */ "where_clause_opt ::= WHERE search_condition", + /* 361 */ "partition_by_clause_opt ::=", + /* 362 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 363 */ "twindow_clause_opt ::=", + /* 364 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 365 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 366 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 367 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 368 */ "sliding_opt ::=", + /* 369 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 370 */ "fill_opt ::=", + /* 371 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 372 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 373 */ "fill_mode ::= NONE", + /* 374 */ "fill_mode ::= PREV", + /* 375 */ "fill_mode ::= NULL", + /* 376 */ "fill_mode ::= LINEAR", + /* 377 */ "fill_mode ::= NEXT", + /* 378 */ "group_by_clause_opt ::=", + /* 379 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 380 */ "group_by_list ::= expression", + /* 381 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 382 */ "having_clause_opt ::=", + /* 383 */ "having_clause_opt ::= HAVING search_condition", + /* 384 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 385 */ "query_expression_body ::= query_primary", + /* 386 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 387 */ "query_primary ::= query_specification", + /* 388 */ "order_by_clause_opt ::=", + /* 389 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 390 */ "slimit_clause_opt ::=", + /* 391 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 392 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 393 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 394 */ "limit_clause_opt ::=", + /* 395 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 396 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 397 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 398 */ "subquery ::= NK_LP query_expression NK_RP", + /* 399 */ "search_condition ::= common_expression", + /* 400 */ "sort_specification_list ::= sort_specification", + /* 401 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 402 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 403 */ "ordering_specification_opt ::=", + /* 404 */ "ordering_specification_opt ::= ASC", + /* 405 */ "ordering_specification_opt ::= DESC", + /* 406 */ "null_ordering_opt ::=", + /* 407 */ "null_ordering_opt ::= NULLS FIRST", + /* 408 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -1920,15 +1923,18 @@ static YYACTIONTYPE yy_find_shift_action( do{ i = yy_shift_ofst[stateno]; assert( i>=0 ); - /* assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); */ + assert( i<=YY_ACTTAB_COUNT ); + assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); assert( iLookAhead!=YYNOCODE ); assert( iLookAhead < YYNTOKEN ); i += iLookAhead; - if( i>=YY_NLOOKAHEAD || yy_lookahead[i]!=iLookAhead ){ + assert( i<(int)YY_NLOOKAHEAD ); + if( yy_lookahead[i]!=iLookAhead ){ #ifdef YYFALLBACK YYCODETYPE iFallback; /* Fallback token */ - if( iLookAhead %s\n", @@ -1943,16 +1949,8 @@ static YYACTIONTYPE yy_find_shift_action( #ifdef YYWILDCARD { int j = i - iLookAhead + YYWILDCARD; - if( -#if YY_SHIFT_MIN+YYWILDCARD<0 - j>=0 && -#endif -#if YY_SHIFT_MAX+YYWILDCARD>=YY_ACTTAB_COUNT - j0 - ){ + assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) ); + if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){ #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n", @@ -1966,6 +1964,7 @@ static YYACTIONTYPE yy_find_shift_action( #endif /* YYWILDCARD */ return yy_default[stateno]; }else{ + assert( i>=0 && iyytos; #ifndef NDEBUG if( yyTraceFILE && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){ - yysize = yyRuleInfo[yyruleno].nrhs; + yysize = yyRuleInfoNRhs[yyruleno]; if( yysize ){ - fprintf(yyTraceFILE, "%sReduce %d [%s], go to state %d.\n", + fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", yyTracePrompt, - yyruleno, yyRuleName[yyruleno], yymsp[yysize].stateno); + yyruleno, yyRuleName[yyruleno], + yyrulenoyytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; @@ -2737,7 +3150,7 @@ static YYACTIONTYPE yy_reduce( case 56: /* exists_opt ::= */ yytestcase(yyruleno==56); case 219: /* analyze_opt ::= */ yytestcase(yyruleno==219); case 227: /* agg_func_opt ::= */ yytestcase(yyruleno==227); - case 347: /* set_quantifier_opt ::= */ yytestcase(yyruleno==347); + case 348: /* set_quantifier_opt ::= */ yytestcase(yyruleno==348); { yymsp[1].minor.yy173 = false; } break; case 55: /* exists_opt ::= IF EXISTS */ @@ -2878,8 +3291,8 @@ static YYACTIONTYPE yy_reduce( case 200: /* func_name_list ::= func_name */ yytestcase(yyruleno==200); case 209: /* func_list ::= func */ yytestcase(yyruleno==209); case 262: /* literal_list ::= signed_literal */ yytestcase(yyruleno==262); - case 352: /* select_sublist ::= select_item */ yytestcase(yyruleno==352); - case 399: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==399); + case 353: /* select_sublist ::= select_item */ yytestcase(yyruleno==353); + case 400: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==400); { yylhsminor.yy476 = createNodeList(pCxt, yymsp[0].minor.yy564); } yymsp[0].minor.yy476 = yylhsminor.yy476; break; @@ -2889,8 +3302,8 @@ static YYACTIONTYPE yy_reduce( case 201: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==201); case 210: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==210); case 263: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==263); - case 353: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==353); - case 400: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==400); + case 354: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==354); + case 401: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==401); { yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, yymsp[0].minor.yy564); } yymsp[-2].minor.yy476 = yylhsminor.yy476; break; @@ -2971,9 +3384,9 @@ static YYACTIONTYPE yy_reduce( break; case 118: /* specific_tags_opt ::= */ case 149: /* tags_def_opt ::= */ yytestcase(yyruleno==149); - case 360: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==360); - case 377: /* group_by_clause_opt ::= */ yytestcase(yyruleno==377); - case 387: /* order_by_clause_opt ::= */ yytestcase(yyruleno==387); + case 361: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==361); + case 378: /* group_by_clause_opt ::= */ yytestcase(yyruleno==378); + case 388: /* order_by_clause_opt ::= */ yytestcase(yyruleno==388); { yymsp[1].minor.yy476 = NULL; } break; case 119: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ @@ -3063,7 +3476,7 @@ static YYACTIONTYPE yy_reduce( { yymsp[-5].minor.yy288 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 150: /* tags_def_opt ::= tags_def */ - case 351: /* select_list ::= select_sublist */ yytestcase(yyruleno==351); + case 352: /* select_list ::= select_sublist */ yytestcase(yyruleno==352); { yylhsminor.yy476 = yymsp[0].minor.yy476; } yymsp[0].minor.yy476 = yylhsminor.yy476; break; @@ -3207,13 +3620,13 @@ static YYACTIONTYPE yy_reduce( break; case 195: /* like_pattern_opt ::= */ case 206: /* index_options ::= */ yytestcase(yyruleno==206); - case 358: /* where_clause_opt ::= */ yytestcase(yyruleno==358); - case 362: /* twindow_clause_opt ::= */ yytestcase(yyruleno==362); - case 367: /* sliding_opt ::= */ yytestcase(yyruleno==367); - case 369: /* fill_opt ::= */ yytestcase(yyruleno==369); - case 381: /* having_clause_opt ::= */ yytestcase(yyruleno==381); - case 389: /* slimit_clause_opt ::= */ yytestcase(yyruleno==389); - case 393: /* limit_clause_opt ::= */ yytestcase(yyruleno==393); + case 359: /* where_clause_opt ::= */ yytestcase(yyruleno==359); + case 363: /* twindow_clause_opt ::= */ yytestcase(yyruleno==363); + case 368: /* sliding_opt ::= */ yytestcase(yyruleno==368); + case 370: /* fill_opt ::= */ yytestcase(yyruleno==370); + case 382: /* having_clause_opt ::= */ yytestcase(yyruleno==382); + case 390: /* slimit_clause_opt ::= */ yytestcase(yyruleno==390); + case 394: /* limit_clause_opt ::= */ yytestcase(yyruleno==394); { yymsp[1].minor.yy564 = NULL; } break; case 196: /* like_pattern_opt ::= LIKE NK_STRING */ @@ -3270,7 +3683,7 @@ static YYACTIONTYPE yy_reduce( break; case 220: /* analyze_opt ::= ANALYZE */ case 228: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==228); - case 348: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==348); + case 349: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==349); { yymsp[0].minor.yy173 = true; } break; case 221: /* explain_options ::= */ @@ -3351,17 +3764,17 @@ static YYACTIONTYPE yy_reduce( case 276: /* expression ::= literal */ yytestcase(yyruleno==276); case 277: /* expression ::= pseudo_column */ yytestcase(yyruleno==277); case 278: /* expression ::= column_reference */ yytestcase(yyruleno==278); - case 281: /* expression ::= subquery */ yytestcase(yyruleno==281); - case 321: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==321); - case 325: /* boolean_primary ::= predicate */ yytestcase(yyruleno==325); - case 327: /* common_expression ::= expression */ yytestcase(yyruleno==327); - case 328: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==328); - case 330: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==330); - case 332: /* table_reference ::= table_primary */ yytestcase(yyruleno==332); - case 333: /* table_reference ::= joined_table */ yytestcase(yyruleno==333); - case 337: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==337); - case 384: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==384); - case 386: /* query_primary ::= query_specification */ yytestcase(yyruleno==386); + case 282: /* expression ::= subquery */ yytestcase(yyruleno==282); + case 322: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==322); + case 326: /* boolean_primary ::= predicate */ yytestcase(yyruleno==326); + case 328: /* common_expression ::= expression */ yytestcase(yyruleno==328); + case 329: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==329); + case 331: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==331); + case 333: /* table_reference ::= table_primary */ yytestcase(yyruleno==333); + case 334: /* table_reference ::= joined_table */ yytestcase(yyruleno==334); + case 338: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==338); + case 385: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==385); + case 387: /* query_primary ::= query_specification */ yytestcase(yyruleno==387); { yylhsminor.yy564 = yymsp[0].minor.yy564; } yymsp[0].minor.yy564 = yylhsminor.yy564; break; @@ -3415,8 +3828,8 @@ static YYACTIONTYPE yy_reduce( { yymsp[-1].minor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 260: /* signed_literal ::= duration_literal */ - case 354: /* select_item ::= common_expression */ yytestcase(yyruleno==354); - case 398: /* search_condition ::= common_expression */ yytestcase(yyruleno==398); + case 355: /* select_item ::= common_expression */ yytestcase(yyruleno==355); + case 399: /* search_condition ::= common_expression */ yytestcase(yyruleno==399); { yylhsminor.yy564 = releaseRawExprNode(pCxt, yymsp[0].minor.yy564); } yymsp[0].minor.yy564 = yylhsminor.yy564; break; @@ -3431,26 +3844,34 @@ static YYACTIONTYPE yy_reduce( { yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy21, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy21, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 282: /* expression ::= NK_LP expression NK_RP */ - case 326: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==326); + case 281: /* expression ::= function_name NK_LP expression AS type_name NK_RP */ +{ + SNodeList *p = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564)); + p = addValueNodeFromTypeToList(pCxt, yymsp[-1].minor.yy288, p); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy21, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-5].minor.yy21, p)); + } + yymsp[-5].minor.yy564 = yylhsminor.yy564; + break; + case 283: /* expression ::= NK_LP expression NK_RP */ + case 327: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==327); { yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 283: /* expression ::= NK_PLUS expression */ + case 284: /* expression ::= NK_PLUS expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); } yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 284: /* expression ::= NK_MINUS expression */ + case 285: /* expression ::= NK_MINUS expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy564), NULL)); } yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 285: /* expression ::= expression NK_PLUS expression */ + case 286: /* expression ::= expression NK_PLUS expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); @@ -3458,7 +3879,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 286: /* expression ::= expression NK_MINUS expression */ + case 287: /* expression ::= expression NK_MINUS expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); @@ -3466,7 +3887,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 287: /* expression ::= expression NK_STAR expression */ + case 288: /* expression ::= expression NK_STAR expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); @@ -3474,7 +3895,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 288: /* expression ::= expression NK_SLASH expression */ + case 289: /* expression ::= expression NK_SLASH expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); @@ -3482,7 +3903,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 289: /* expression ::= expression NK_REM expression */ + case 290: /* expression ::= expression NK_REM expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); @@ -3490,35 +3911,35 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 290: /* expression_list ::= expression */ + case 291: /* expression_list ::= expression */ { yylhsminor.yy476 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); } yymsp[0].minor.yy476 = yylhsminor.yy476; break; - case 291: /* expression_list ::= expression_list NK_COMMA expression */ + case 292: /* expression_list ::= expression_list NK_COMMA expression */ { yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); } yymsp[-2].minor.yy476 = yylhsminor.yy476; break; - case 292: /* column_reference ::= column_name */ + case 293: /* column_reference ::= column_name */ { yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy21, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy21)); } yymsp[0].minor.yy564 = yylhsminor.yy564; break; - case 293: /* column_reference ::= table_name NK_DOT column_name */ + case 294: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy21, createColumnNode(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy21)); } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 294: /* pseudo_column ::= NOW */ - case 295: /* pseudo_column ::= ROWTS */ yytestcase(yyruleno==295); - case 296: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==296); - case 297: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==297); - case 298: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==298); - case 299: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==299); - case 300: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==300); - case 301: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==301); + case 295: /* pseudo_column ::= NOW */ + case 296: /* pseudo_column ::= ROWTS */ yytestcase(yyruleno==296); + case 297: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==297); + case 298: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==298); + case 299: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==299); + case 300: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==300); + case 301: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==301); + case 302: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==302); { yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy564 = yylhsminor.yy564; break; - case 302: /* predicate ::= expression compare_op expression */ - case 307: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==307); + case 303: /* predicate ::= expression compare_op expression */ + case 308: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==308); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); @@ -3526,7 +3947,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 303: /* predicate ::= expression BETWEEN expression AND expression */ + case 304: /* predicate ::= expression BETWEEN expression AND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); @@ -3534,7 +3955,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-4].minor.yy564 = yylhsminor.yy564; break; - case 304: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 305: /* predicate ::= expression NOT BETWEEN expression AND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); @@ -3542,68 +3963,68 @@ static YYACTIONTYPE yy_reduce( } yymsp[-5].minor.yy564 = yylhsminor.yy564; break; - case 305: /* predicate ::= expression IS NULL */ + case 306: /* predicate ::= expression IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), NULL)); } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 306: /* predicate ::= expression IS NOT NULL */ + case 307: /* predicate ::= expression IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy564); yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), NULL)); } yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 308: /* compare_op ::= NK_LT */ + case 309: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy468 = OP_TYPE_LOWER_THAN; } break; - case 309: /* compare_op ::= NK_GT */ + case 310: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy468 = OP_TYPE_GREATER_THAN; } break; - case 310: /* compare_op ::= NK_LE */ + case 311: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy468 = OP_TYPE_LOWER_EQUAL; } break; - case 311: /* compare_op ::= NK_GE */ + case 312: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy468 = OP_TYPE_GREATER_EQUAL; } break; - case 312: /* compare_op ::= NK_NE */ + case 313: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy468 = OP_TYPE_NOT_EQUAL; } break; - case 313: /* compare_op ::= NK_EQ */ + case 314: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy468 = OP_TYPE_EQUAL; } break; - case 314: /* compare_op ::= LIKE */ + case 315: /* compare_op ::= LIKE */ { yymsp[0].minor.yy468 = OP_TYPE_LIKE; } break; - case 315: /* compare_op ::= NOT LIKE */ + case 316: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy468 = OP_TYPE_NOT_LIKE; } break; - case 316: /* compare_op ::= MATCH */ + case 317: /* compare_op ::= MATCH */ { yymsp[0].minor.yy468 = OP_TYPE_MATCH; } break; - case 317: /* compare_op ::= NMATCH */ + case 318: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy468 = OP_TYPE_NMATCH; } break; - case 318: /* in_op ::= IN */ + case 319: /* in_op ::= IN */ { yymsp[0].minor.yy468 = OP_TYPE_IN; } break; - case 319: /* in_op ::= NOT IN */ + case 320: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy468 = OP_TYPE_NOT_IN; } break; - case 320: /* in_predicate_value ::= NK_LP expression_list NK_RP */ + case 321: /* in_predicate_value ::= NK_LP expression_list NK_RP */ { yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy476)); } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 322: /* boolean_value_expression ::= NOT boolean_primary */ + case 323: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy564), NULL)); } yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 323: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 324: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); @@ -3611,7 +4032,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 324: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 325: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); @@ -3619,52 +4040,52 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 329: /* from_clause ::= FROM table_reference_list */ - case 359: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==359); - case 382: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==382); + case 330: /* from_clause ::= FROM table_reference_list */ + case 360: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==360); + case 383: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==383); { yymsp[-1].minor.yy564 = yymsp[0].minor.yy564; } break; - case 331: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ + case 332: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy564 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy564, yymsp[0].minor.yy564, NULL); } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 334: /* table_primary ::= table_name alias_opt */ + case 335: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy564 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy21, &yymsp[0].minor.yy21); } yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 335: /* table_primary ::= db_name NK_DOT table_name alias_opt */ + case 336: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy564 = createRealTableNode(pCxt, &yymsp[-3].minor.yy21, &yymsp[-1].minor.yy21, &yymsp[0].minor.yy21); } yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 336: /* table_primary ::= subquery alias_opt */ + case 337: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy564 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564), &yymsp[0].minor.yy21); } yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 338: /* alias_opt ::= */ + case 339: /* alias_opt ::= */ { yymsp[1].minor.yy21 = nil_token; } break; - case 339: /* alias_opt ::= table_alias */ + case 340: /* alias_opt ::= table_alias */ { yylhsminor.yy21 = yymsp[0].minor.yy21; } yymsp[0].minor.yy21 = yylhsminor.yy21; break; - case 340: /* alias_opt ::= AS table_alias */ + case 341: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy21 = yymsp[0].minor.yy21; } break; - case 341: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 342: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==342); + case 342: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 343: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==343); { yymsp[-2].minor.yy564 = yymsp[-1].minor.yy564; } break; - case 343: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + case 344: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy564 = createJoinTableNode(pCxt, yymsp[-4].minor.yy440, yymsp[-5].minor.yy564, yymsp[-2].minor.yy564, yymsp[0].minor.yy564); } yymsp[-5].minor.yy564 = yylhsminor.yy564; break; - case 344: /* join_type ::= */ + case 345: /* join_type ::= */ { yymsp[1].minor.yy440 = JOIN_TYPE_INNER; } break; - case 345: /* join_type ::= INNER */ + case 346: /* join_type ::= INNER */ { yymsp[0].minor.yy440 = JOIN_TYPE_INNER; } break; - case 346: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 347: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { yymsp[-8].minor.yy564 = createSelectStmt(pCxt, yymsp[-7].minor.yy173, yymsp[-6].minor.yy476, yymsp[-5].minor.yy564); yymsp[-8].minor.yy564 = addWhereClause(pCxt, yymsp[-8].minor.yy564, yymsp[-4].minor.yy564); @@ -3674,74 +4095,74 @@ static YYACTIONTYPE yy_reduce( yymsp[-8].minor.yy564 = addHavingClause(pCxt, yymsp[-8].minor.yy564, yymsp[0].minor.yy564); } break; - case 349: /* set_quantifier_opt ::= ALL */ + case 350: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy173 = false; } break; - case 350: /* select_list ::= NK_STAR */ + case 351: /* select_list ::= NK_STAR */ { yymsp[0].minor.yy476 = NULL; } break; - case 355: /* select_item ::= common_expression column_alias */ + case 356: /* select_item ::= common_expression column_alias */ { yylhsminor.yy564 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564), &yymsp[0].minor.yy21); } yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 356: /* select_item ::= common_expression AS column_alias */ + case 357: /* select_item ::= common_expression AS column_alias */ { yylhsminor.yy564 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), &yymsp[0].minor.yy21); } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 357: /* select_item ::= table_name NK_DOT NK_STAR */ + case 358: /* select_item ::= table_name NK_DOT NK_STAR */ { yylhsminor.yy564 = createColumnNode(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 361: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 378: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==378); - case 388: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==388); + case 362: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 379: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==379); + case 389: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==389); { yymsp[-2].minor.yy476 = yymsp[0].minor.yy476; } break; - case 363: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + case 364: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { yymsp[-5].minor.yy564 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); } break; - case 364: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + case 365: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ { yymsp[-3].minor.yy564 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); } break; - case 365: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + case 366: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy564 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), NULL, yymsp[-1].minor.yy564, yymsp[0].minor.yy564); } break; - case 366: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + case 367: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy564 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy564), releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), yymsp[-1].minor.yy564, yymsp[0].minor.yy564); } break; - case 368: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + case 369: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ { yymsp[-3].minor.yy564 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy564); } break; - case 370: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ + case 371: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy564 = createFillNode(pCxt, yymsp[-1].minor.yy268, NULL); } break; - case 371: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + case 372: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ { yymsp[-5].minor.yy564 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy476)); } break; - case 372: /* fill_mode ::= NONE */ + case 373: /* fill_mode ::= NONE */ { yymsp[0].minor.yy268 = FILL_MODE_NONE; } break; - case 373: /* fill_mode ::= PREV */ + case 374: /* fill_mode ::= PREV */ { yymsp[0].minor.yy268 = FILL_MODE_PREV; } break; - case 374: /* fill_mode ::= NULL */ + case 375: /* fill_mode ::= NULL */ { yymsp[0].minor.yy268 = FILL_MODE_NULL; } break; - case 375: /* fill_mode ::= LINEAR */ + case 376: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy268 = FILL_MODE_LINEAR; } break; - case 376: /* fill_mode ::= NEXT */ + case 377: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy268 = FILL_MODE_NEXT; } break; - case 379: /* group_by_list ::= expression */ + case 380: /* group_by_list ::= expression */ { yylhsminor.yy476 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } yymsp[0].minor.yy476 = yylhsminor.yy476; break; - case 380: /* group_by_list ::= group_by_list NK_COMMA expression */ + case 381: /* group_by_list ::= group_by_list NK_COMMA expression */ { yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } yymsp[-2].minor.yy476 = yylhsminor.yy476; break; - case 383: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 384: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy564 = addOrderByClause(pCxt, yymsp[-3].minor.yy564, yymsp[-2].minor.yy476); yylhsminor.yy564 = addSlimitClause(pCxt, yylhsminor.yy564, yymsp[-1].minor.yy564); @@ -3749,55 +4170,55 @@ static YYACTIONTYPE yy_reduce( } yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 385: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + case 386: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ { yylhsminor.yy564 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy564, yymsp[0].minor.yy564); } yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 390: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 394: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==394); + case 391: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 395: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==395); { yymsp[-1].minor.yy564 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 391: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 395: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==395); + case 392: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 396: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==396); { yymsp[-3].minor.yy564 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 392: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 396: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==396); + case 393: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 397: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==397); { yymsp[-3].minor.yy564 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 397: /* subquery ::= NK_LP query_expression NK_RP */ + case 398: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy564); } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 401: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + case 402: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ { yylhsminor.yy564 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), yymsp[-1].minor.yy256, yymsp[0].minor.yy525); } yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 402: /* ordering_specification_opt ::= */ + case 403: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy256 = ORDER_ASC; } break; - case 403: /* ordering_specification_opt ::= ASC */ + case 404: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy256 = ORDER_ASC; } break; - case 404: /* ordering_specification_opt ::= DESC */ + case 405: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy256 = ORDER_DESC; } break; - case 405: /* null_ordering_opt ::= */ + case 406: /* null_ordering_opt ::= */ { yymsp[1].minor.yy525 = NULL_ORDER_DEFAULT; } break; - case 406: /* null_ordering_opt ::= NULLS FIRST */ + case 407: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy525 = NULL_ORDER_FIRST; } break; - case 407: /* null_ordering_opt ::= NULLS LAST */ + case 408: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy525 = NULL_ORDER_LAST; } break; default: break; /********** End reduce actions ************************************************/ }; - assert( yyruleno